@pendo/agent 2.275.1 → 2.276.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/README.md +1 -1
- package/dist/dom.esm.js +222 -1
- package/dist/pendo.module.js +552 -252
- package/dist/pendo.module.min.js +1 -1
- package/dist/servers.json +6 -3
- package/package.json +1 -1
package/dist/pendo.module.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license https://agent.pendo.io/licenses
|
|
3
3
|
*/
|
|
4
|
-
function loadAgent(h){P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");var P,G={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 P[e>>18&63]+P[e>>12&63]+P[e>>6&63]+P[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=P[n>>2])+P[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=P[n>>10])+P[n>>4&63])+P[n<<2&63]}return o}},Bt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function D(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var B,o,W,$,U,j,z,e={exports:{}};function Z(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}st=e,B="object"==typeof window?window:{},i=!B.JS_SHA1_NO_COMMON_JS&&st.exports,o="0123456789abcdef".split(""),W=[-2147483648,8388608,32768,128],$=[24,16,8,0],U=["hex","array","digest","arrayBuffer"],j=[],z=function(t){return function(e){return new Z(!0).update(e)[t]()}},Z.prototype.update=function(e){if(!this.finalized){for(var t,n,i="string"!=typeof e,r=0,o=(e=i&&e.constructor===B.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]<<$[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<$[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<$[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<$[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<$[3&n++],a[n>>2]|=(128|t>>12&63)<<$[3&n++]),a[n>>2]|=(128|t>>6&63)<<$[3&n++]),a[n>>2]|=(128|63&t)<<$[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}},Z.prototype.finalize=function(){var e,t;this.finalized||(this.finalized=!0,e=this.blocks,t=this.lastByteIndex,e[16]=this.block,e[t>>2]|=W[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())},Z.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},Z.prototype.toString=Z.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]},Z.prototype.array=Z.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]},Z.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},qe=function(){var t=z("hex");t.create=function(){return new Z},t.update=function(e){return t.create().update(e)};for(var e=0;e<U.length;++e){var n=U[e];t[n]=z(n)}return t}(),i?st.exports=qe:B.sha1=qe;var V,Y=D(e.exports),H={createScriptURL:function(e){return e},createHTML:function(e){return e}};function K(e){return V||(V=e.trustedTypesPolicy||(window.trustedTypes&&"function"==typeof window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("pendo",H):H),e.trustedTypesPolicy=V),V}var v,X="stagingServerHashes",J={};function q(e){return e.loadAsModule}function Q(e){return"staging"===e.environmentName}function ee(e){return"extension"===e.installType}function te(e,t,n){e=function(e){void 0===e&&(e=[]);for(var t=/^https:\/\/[\w\-.]*cdn[\w\-.]*\.(pendo-dev\.com|pendo\.io)\/agent\/static\/([\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12}|PENDO_API_KEY)\/pendo\.js$/g,n=0;n<e.length;n++){var i=e[n];if(t.test(i.src))return i.src.replace(/\.js$/,"-staging.js")}}(document.getElementsByTagName("script"))||e.stagingAgentUrl;return n&&(n="unminified.js",t&&(n="staging-"+n),e=e&&e.replace(/staging\.js$/,n)),e}function ne(e,t){if(Q(e=e||J))return!0;if(t=t||window.location,(o=e)&&o.stagingAgentUrl&&o[X]){o=t.host;for(var n=G.uint8ToBase64(Y.create().update(o).digest()),i=0,r=e[X].length;i<r;++i)if(e[X][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 ie=["initialize","identify","updateOptions","pageLoad","track","clearSession"];function re(e,t,n){(e._q=e._q||[])["initialize"===t?"unshift":"push"]([].concat.apply([t],n))}function oe(e){if(!e._q)for(var t=ie,n=0,i=t.length;n<i;++n)!function(e,t){t[e]=t[e]||function(){re(t,e,arguments)}}(t[n],e)}function ae(e,t,n){if(!ee(i=e)&&!Q(i)&&ne(i)){i=te(e,!0,n);if(i)return oe(t),de(i,t),!0}var i;return!1}function se(e,t,n){if(r=n,!ee(i=e)&&!i.unminified&&r){i=te(e,!1,n);if(i)return oe(t),de(i,t),!0}var i,r;return!1}function de(e,t){var n=document.createElement("script"),t=(n["async"]=!0,n.src=K(t).createScriptURL(e),document.getElementsByTagName("script")[0]);t&&t.parentNode?t.parentNode.insertBefore(n,t):(document.head||document.body).appendChild(n)}function ue(e){J=e}function ce(){return void 0===h?{}:h}function le(e){return J[e]}pe(window.setTimeout,window);function pe(e,t){return"function"==typeof e.bind?e.bind(t):e}var he,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 pe(e[t],e)}(window),y=D(function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof Bt&&Bt.global===Bt&&Bt||Function("return this")()||{},i=Array.prototype,P=Object.prototype,G="undefined"!=typeof Symbol?Symbol.prototype:null,D=i.push,d=i.slice,l=P.toString,B=P.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),W=Array.isArray,$=Object.keys,U=Object.create,j=t&&ArrayBuffer.isView,z=isNaN,Z=isFinite,V=!{toString:null}.propertyIsEnumerable("toString"),Y=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],H=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 K(e){return void 0===e}function X(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 J=r("String"),q=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=W||r("Array");function g(e,t){return null!=e&&B.call(e,t)}var oe=r("Arguments"),ae=(!function(){oe(arguments)||(oe=function(e){return g(e,"callee")})}(),oe);function se(e){return q(e)&&z(e)}function de(e){return function(){return e}}function ue(t){return function(e){e=t(e);return"number"==typeof e&&0<=e&&e<=H}}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 j?j(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=Y.length,i=e.constructor,r=p(i)&&i.prototype||P,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=Y[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function y(e){if(!o(e))return[];if($)return $(e);var t,n=[];for(t in e)g(e,t)&&n.push(t);return V&&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 G.valueOf.call(e)===G.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 V&&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!==we||!p(e[Ie])}}var Ie="forEach",e=["clear","delete"],n=["get","has","set"],W=e.concat(Ie,n),we=e.concat(n),t=["add"].concat(e,Ie,"has"),n=a?be(W):r("Map"),e=a?be(we):r("WeakMap"),W=a?be(t):r("Set"),a=r("WeakSet");function I(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 Ce(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Se(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function Ae(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 Ee=Ae(u),s=Ae(y),Te=Ae(u,!0);function _e(e){var t;return o(e)?U?U(e):((t=function(){}).prototype=e,e=new t,t.prototype=null,e):{}}function xe(e){return f(e)?e:[e]}function w(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 ke(e,t,n){e=Re(e,w(t));return K(e)?n:e}function Oe(e){return e}function C(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=w(t),function(e){return Re(e,t)}}function S(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)?S(e,t,n):(o(e)&&!f(e)?C:Ne)(e)}function Le(e,t){return Me(e,t,Infinity)}function A(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=xe,b.iteratee=Le;var E=Date.now||function(){return(new Date).getTime()};function Ge(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=Ge(t),t=Ge(Ce(t)),Be=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},We=/(.)^/,$e={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ue=/\\|'|\r|\n|\u2028|\u2029/g;function je(e){return"\\"+$e[e]}var ze=/^\s*(\w|\$)+\s*$/;var Ze=0;function Ve(e,t,n,i,r){return i instanceof t?(i=_e(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 Ve(r,s,this,this,n)};return s}),Ye=(T.placeholder=b,c(function(t,n,i){var r;if(p(t))return r=c(function(e){return Ve(t,r,n,this,i.concat(e))});throw new TypeError("Bind must be called on a function")})),_=ue(v);function x(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(_(s)&&(f(s)||ae(s)))if(1<t)x(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 He=c(function(e,t){var n=(t=x(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Ye(e[i],e)}return e});var Ke=c(function(e,t,n){return Dt(function(){return e.apply(null,n)},t)}),Xe=T(Ke,b,1);function Je(e){return function(){return!e.apply(this,arguments)}}function qe(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=T(qe,2);function et(e,t,n){t=A(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=A(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=A(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=(_(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function R(e,t,n){if(t=S(t,n),_(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 k(e,t,n){t=A(t,n);for(var i=!_(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=S(t,i,4),s=n,d=!_(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 O(e,i,t){var r=[];return i=A(i,t),R(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=A(t,n);for(var i=!_(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=A(t,n);for(var i=!_(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 _(e)||(e=I(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=w(n),r=n.slice(0,-1),n=n[n.length-1]),k(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 k(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=_(e)?e:I(e)).length;s<d;s++)null!=(n=e[s])&&o<n&&(o=n);else i=A(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):J(e)?e.match(vt):_(e)?k(e,Oe):I(e):[]}function bt(e,t,n){if(null==t||n)return(e=_(e)?e:I(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=A(i,e),R(n,function(e,t){t=i(e,t,n);o(r,e,t)}),r}}var It=M(function(e,t,n){g(e,n)?e[n].push(t):e[n]=[t]}),wt=M(function(e,t,n){e[n]=t}),Ct=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),St=M(function(e,t,n){e[n?0:1].push(t)},!0);function At(e,t,n){return t in n}var Et=c(function(e,t){var n={},i=t[0];if(null!=e){p(i)?(1<t.length&&(i=S(i,t[1])),t=u(e)):(i=At,t=x(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=Je(i),1<n.length&&(t=n[1])):(n=k(x(n,!1,!1),String),i=function(e,t){return!N(n,t)}),Et(e,i,t)});function _t(e,t,n){return d.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function xt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:_t(e,e.length-t)}function L(e,t,n){return d.call(e,null==t||n?1:t)}var Rt=c(function(e,t){return t=x(t,!0,!0),O(e,function(e){return!N(t,e)})}),kt=c(function(e,t){return Rt(e,t)});function Ot(e,t,n,i){X(t)||(i=n,n=t,t=!1),null!=n&&(n=A(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=c(function(e){return Ot(x(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=c(Mt);function Ft(e,t){return e._chain?b(t).chain():t}function Pt(n){return R(Se(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return D.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:c,isObject:o,isNull:function(e){return null===e},isUndefined:K,isBoolean:X,isElement:function(e){return!(!e||1!==e.nodeType)},isString:J,isNumber:q,isDate:Q,isRegExp:ee,isError:te,isSymbol:ne,isArrayBuffer:ie,isDataView:h,isArray:f,isFunction:p,isArguments:ae,isFinite:function(e){return!ne(e)&&Z(e)&&!isNaN(parseFloat(e))},isNaN:se,isTypedArray:he,isEmpty:function(e){var t;return null==e||("number"==typeof(t=v(e))&&(f(e)||J(e)||ae(e))?0===t:0===v(y(e)))},isMatch:ge,isEqual:function(e,t){return ye(e,t)},isMap:n,isWeakMap:e,isSet:W,isWeakSet:a,keys:y,allKeys:u,values:I,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:Ce,functions:Se,methods:Se,extend:Ee,extendOwn:s,assign:s,defaults:Te,create:function(e,t){return e=_e(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():Ee({},e):e},tap:function(e,t){return t(e),e},get:ke,has:function(e,t){for(var n=(t=w(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=A(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:xe,property:Ne,propertyOf:function(t){return null==t?Fe:function(e){return ke(t,e)}},matcher:C,matches:C,times:function(e,t,n){var i=Array(Math.max(0,e));t=S(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:Pe,now:E,escape:De,unescape:t,templateSettings:Be,template:function(o,e,t){e=Te({},e=!e&&t?t:e,b.templateSettings);var t=RegExp([(e.escape||We).source,(e.interpolate||We).source,(e.evaluate||We).source].join("|")+"|$","g"),a=0,s="__p+='";if(o.replace(t,function(e,t,n,i,r){return s+=o.slice(a,r).replace(Ue,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(!ze.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=w(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=++Ze+"";return e?e+t:t},chain:function(e){return(e=b(e))._chain=!0,e},iteratee:Le,partial:T,bind:Ye,bindAll:He,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:Ke,defer:Xe,throttle:function(n,i,r){var o,a,s,d,u=0,c=(r=r||{},function(){u=!1===r.leading?0:E(),o=null,d=n.apply(a,s),o||(a=s=null)}),e=function(){var e=E(),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=E()-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=E(),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:Je,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:qe,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,C(t))},each:R,forEach:R,map:k,collect:k,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:O,select:O,reject:function(e,t,n){return O(e,Je(A(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,C(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=_(e)?e:I(e)).length;s<d;s++)null!=(n=e[s])&&n<o&&(o=n);else i=A(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=A(i,t),gt(k(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:It,indexBy:wt,countBy:Ct,partition:St,toArray:yt,size:function(e){return null==e?0:(_(e)?e:y(e)).length},pick:Et,omit:Tt,first:xt,head:xt,take:xt,initial:_t,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 x(e,t,!1)},without:kt,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}),Gt=F.toPath;return F.mixin({toPath:function(e){return F.isString(e)?e.split("."):Gt(e)}}),F._=F}());function fe(e){return!(null==e)}function ge(e){return y.isFunction(e)||y.isRegExp(e)?e:y.isArray(e)?y.map(e,ge):y.isObject(e)?y.reduce(e,function(e,t,n){return e[n]=ge(t),e},{}):e}me=y.all,ve=y.each,ye=y.filter,be=y.first,Ie=y.find,we=y.map,Ce=y.pluck,Se="global",Ae="default",Ee={},t("additionalApiKeys",[r="pendoconfig",n="snippet"]),t("allowedOriginServers"),t("allowMixedApiKeyFrames",[n,r],!0),t("annotateUrl",[n]),t("apiKey",[r,n]),t("assetHost",[n,r]),t("autoFrameInstall",[n,r],!1),t("blockAgentMetadata",[r],!1),t("contentHost",[n,r]),t("cookieDomain",[n,r]),t("dataHost",[n,r]),t("disableAutoInitialize"),t("disableCookies",[n,r]),t("disablePendo",[n,r],!1),t("disablePersistence",[n,r]),t("enableSignedMetadata",[r],!1),t("frameIdentitySync",[n,r],!1),t("frameIdentityTopDownOnly",[n,r],!0),t("forceAnonymous",[n,r],!1),t("identityStorageLifetime",[n,r]),t("identityStorageSuffix",[n,r]),t("ignoreHashRouting",[n,r]),t("initializeImmediately",[n,r],!1),t("installType"),t("localStorageOnly",[n,r]),t("location.pushState",[n,r],!0),t("maxCookieTTLDays",[n,r],Infinity),t("observeShadowRoots",[n,r],!1),t("pendoCore",[r],!0),t("pendoGlobalKey",[r]),t("preferBroadcastChannel",[n,r],!1),t("preferMutationObserver",[n,r],!1),t("preventCookieRefresh"),t("preventUnloadListener",[n,r],!1),t("promotedAgentMetadataConfigurations",[r]),t("queryStringWhitelist",[n]),t("requireSignedMetadata",[r],!1),t("sanitizeUrl",[n]),t("selfHosted"),t("selfHostedAgentUrl",[n,r]),t("sendEventsWithPostOnly",[n,r],!1),t("siblingSelectors"),t("dropAnonymous"),t("allowedText",[n,r],[]),t("analytics.excludeEvents",[n,r],[]),t("enableDebugEvents",[n,r]),t("freeNPSData"),t("eventPropertyConfigurations"),t("eventPropertyMatchParents",[n,r],!0),t("excludeAllText",[r,n],!1,!0),t("excludeNonGuideAnalytics",[n,r],!1),t("htmlAttributeBlacklist"),t("htmlAttributes"),t("interceptElementRemoval",[n,r],!1),t("interceptPreventDefault",[n,r],!0),t("interceptStopPropagation",[n,r],!0),t("syntheticClicks.elementRemoval",[n,r],!1),t("syntheticClicks.targetChanged",[n,r],!0),t("xhrWhitelist"),t("appAutoOrdering",[n,r]),t("cacheGuides",[n,r],!1),t("cacheGuidesTimeout",[r],6e5),t("delayGuides",[n]),t("disableDesigner",[r,n],!1),t("disableDesignerKeyboardShortcut",[r],!1),t("disableGlobalCSS",[n,r],!1),t("disableGuidePseudoStyles",[n,r],!1),t("disableGuides",[n]),t("disablePrefetch",[n,r]),t("enableDesignerKeyboardShortcut",[n]),t("enableGuideTimeout",[r,n],!1),t("guideCssAssetPath"),t("guideSeenTimeoutLength",[r,n],1e4),t("guideTimeout",[n]),t("guideValidation",[n,r],!1),t("guides.attachPoint",[n]),t("guides.delay",[n]),t("guides.disabled",[n]),t("guides.ejectOnTimeout",[n,r],!1),t("guides.globalScripts",[n,r],[]),t("guides.timeout",[n]),t("guides.tooltip.arrowSize",[n]),t("inlineStyleNonce",[n]),t("leaderKey",[n,r],[]),t("preventCodeInjection",[r,n,Se],!1),t("previewModeAssetPath"),t("storage.allowKeys",[n],"*"),t("disableFeedback",[n]),t("disableFeedbackAutoInit"),t("feedbackSettings",[r],{}),t("pendoFeedback",[r],!1),t("crossAppGuideStorageSuffix",[n,r]),t("enableCrossOriginIsolation",[n,r],!1),t("adoptHost"),t("adoptAnalyticsForwarding"),t("agentDebuggerPluginLoader"),t("allowPartnerAnalyticsForwarding",[n],!1),t("adoptPrioritizeAdoptGuides",[r],!1),t("designerAgentPluginsLoader",[r,n]),t("trainingPartner"),t("errorClickLogging",[r],!1),t("forceParentDesigner",[n]),t("enableAllEmbeddedGuideEvents",[r],!1),t("formValidation",[r],!1),(Te={})[n]=function(){return{lookup:he||window.pendo_options,name:n}},Te[r]=function(){return{lookup:J,name:r}},Te[Se]=function(){return{lookup:v,name:Se}},Ne.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"};var me,ve,ye,be,Ie,we,Ce,n,r,Se,Ae,Ee,Te,m={audit:Me,get:function(e,t){return Oe(e,t).value},getLocalConfig:function(e,t){return arguments.length?Oe(e,t,[n]).value:ge(he)},getHostedConfig:function(e,t){return Oe(e,t,[r]).value},addOption:t,setLocalConfig:function(e){he=e},options:function(){return Ce(Ee,"name")},sources:{SNIPPET_SRC:n,PENDO_CONFIG_SRC:r,GLOBAL_SRC:Se,DEFAULT_SRC:Ae},validate:function(t){t.groupCollapsed("Validate Config options"),ve(Me(),function(e){t.log(String(e.active)),0<e.conflicts.length&&(t.warn("Multiple sources found with values for "+e.name),ve(e.conflicts,function(e){t.warn(String(e))}))}),t.groupEnd()}};function t(e,t,n,i){void 0===t&&(t=[r]),e&&!Ee[e]&&(n={name:e,defaultValue:n,supportedSources:t},null!=i&&(n.useAnySource=i),Ee[e]=n)}function _e(e){return Ee[e]||{name:e}}function xe(e,t){if(t)return t=t(),fe(e=y.get(t.lookup,(t=e,y.get(t,"key")||y.get(t,"name"))))?e:undefined}function Re(e,t){var n=xe(e,Te[t]);return new Ne(e.name,n,t)}function ke(e,t){return t=t||y.get(e,"supportedSources",[n,r,Se]),ye(we(t,y.partial(Re,e)),function(e){return fe(e.value)})}function Oe(e,t,n){var i=_e(e),e=new Ne(e,t=t||y.get(i,"defaultValue",null),Ae),n=ke(i,n);return i.useAnySource&&fe(t)?Ie(n,function(e){return e.value!==t})||e:be(n)||e}function Ne(e,t,n){this.name=e,this.value=t,this.source=n}function Me(){var n=[];return ve(Ee,function(e){var t;n.push({name:e.name,active:Oe(e.name),conflicts:(e=_e(e=e.name),(t=ye(ke(e),function(e){return e.source!==Ae})).length<2||me(Ce(t,"value"),function(e){return e===t[0].value})?[]:t)})}),n}var Le="prod",Fe="extension",Pe="native";function Ge(){return m.get("installType")||Pe}function De(e){var t;return e===Le?"pendo-io-static":"prod-jp"===e?"pendo-jp-prod-static":"pendo-"+((t=/^prod-(.+)$/.exec(e))&&1<t.length?t[1]:e)+"-static"}var Be,We=function(e,t){return e=e||10,(t=!isNaN(Ze)&&(!t||Ze<t))&&Be<e};function $e(e){return parseInt(e,10)}var Ue=function(e){return y.isString(e)?e.toLowerCase():e};function je(){return(window.navigator||{}).userAgent}i=je(),st=$e((/msie (\d+)/.exec(Ue(i))||[])[1]),Be=st=isNaN(st)?$e((/trident\/.*; rv:(\d+)/.exec(Ue(i))||[])[1]):st;var ze,Ze=function(e,t){e=$e((/trident\/(\d+)/.exec(Ue(e))||[])[1]);return e=isNaN(e)&&7==t?3:e}(je(),Be),Ve={},Ye=$e((/android (\d+)/.exec(Ue(je()))||[])[1]),He=/Boxee/i.test(je()),Ke=window.document||{},Xe=Ke.documentMode,Je=/^(Moz|webkit|O|ms)(?=[A-Z])/,qe=Ke.body&&Ke.body.style,e=!1,i=!1;if(qe){for(var Qe in qe)if(Qe=Je.exec(Qe)){ze=(ze=Qe[0]).substr(0,1).toUpperCase()+ze.substr(1);break}ze=ze||"WebkitOpacity"in qe&&"webkit",e=!!("transition"in qe||ze+"Transition"in qe),i=!!("animation"in qe||ze+"Animation"in qe),!Ye||e&&i||(e=y.isString(Ke.body.style.webkitTransition),i=y.isString(Ke.body.style.webkitAnimation))}var et={supportsHistoryApi:y.memoize(function(){var e=window.history&&window.history.pushState&&window.history.replaceState,t=window.history&&y.isFunction(Object.isFrozen)&&Object.isFrozen(window.history),n=window.history&&y.isFunction(Object.getOwnPropertyDescriptors)&&Object.getOwnPropertyDescriptors(window.history),n=n&&y.get(n,"pushState.writable",!0)&&y.get(n,"replaceState.writable",!0),i=!(Ye<4),r=Ge()===Fe;return!(!e||t||!n||!i||He||r)}),supportsHashChange:function(){var e="onhashchange"in window,t=!Xe||7<Xe,n=Ge()===Fe;return!(!e||!t||n)},hasEvent:function(e){var t;return("input"!=e||9!=Be)&&(y.isUndefined(Ve[e])&&(t=Ke.createElement("div"),Ve[e]="on"+e in t),Ve[e])},vendorPrefix:ze,transitions:e,animations:i,android:Ye,msie:Be,msieDocumentMode:Xe,safari:/apple/i.test(navigator.vendor),sri:"integrity"in document.createElement("script"),addEventListener:y.isFunction(window.addEventListener),MutationObserver:/native/.test(window.MutationObserver),isMinimumIEVersion:function(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e},isMobileUserAgent:y.memoize(function(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(je())})},tt=function(){return!isNaN(Be)&&11!=Be&&"CSS1Compat"!==document.compatMode},nt=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,Be<=9&&(e.arrow.top=6)):"bottom"==e.arrowPosition&&(e.top=t.top-(i+v.TOOLTIP_ARROW_SIZE),e.arrow.top=i-v.TOOLTIP_ARROW_SIZE,10==Be?e.arrow.top--:Be<=9&&(e.arrow.top+=4),n=1),"left"==e.arrow.hbias?(e.left=t.left+t.width/2-(10+2*v.TOOLTIP_ARROW_SIZE),e.arrow.left=10+v.TOOLTIP_ARROW_SIZE):"right"==e.arrow.hbias?(e.left=t.left-r+t.width/2+(10+2*v.TOOLTIP_ARROW_SIZE),e.arrow.left=r-3*v.TOOLTIP_ARROW_SIZE-10):(e.left=t.left+t.width/2-r/2,e.arrow.left=r/2-v.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-v.TOOLTIP_ARROW_SIZE),e.arrow.left=r-v.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-v.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e},it="",rt="",ot="",at="",st="",dt="2.275.1_",qe="2.275.1",ut="xhr",ct=function(){return tt()?dt+"+quirksmode":dt};function lt(){return(le("installType")||ce().installType)===Fe}function pt(){return-1!==it.indexOf("prod")}var ht=/^\s+|\s+$/g;function ft(e){for(var t=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||57344<=i?t.push(224|i>>12,128|i>>6&63,128|63&i):(n++,i=65536+((1023&i)<<10|1023&e.charCodeAt(n)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return t}var gt=(gt=String.prototype.trim)||function(){return this.replace(ht,"")},e={exports:{}};!function(){var q=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===q?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,P,n=this.input;switch(this.d){case 0:for(t=0,P=n.length;t<P;){var G,D,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===P,o=q,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),G=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&G,a[s++]=G>>>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,B=c.length;l<B;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,W,b,I,w,$,C=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=Array(19),S=ne;for(C.b(1,1,Q),C.b(S,2,Q),p=re(this,n),S=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 A,E,T,_,x,z=h,Z=f,R=new(ee?Uint32Array:Array)(z+Z),k=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=A=0;N<z;N++)R[A++]=m[N];for(N=0;N<Z;N++)R[A++]=v[N];if(!ee)for(N=0,T=O.length;N<T;++N)O[N]=0;for(N=_=0,T=R.length;N<T;N+=A){for(A=1;N+A<T&&R[N+A]===R[N];++A);if(E=A,0===R[N])if(E<3)for(;0<E--;)O[k[_++]=0]++;else for(;0<E;)(x=E-3<(x=E<138?E:138)&&x<E?E-3:x)<=10?(k[_++]=17,k[_++]=x-3,O[17]++):(k[_++]=18,k[_++]=x-11,O[18]++),E-=x;else if(k[_++]=R[N],O[R[N]]++,--E<3)for(;0<E--;)k[_++]=R[N],O[R[N]]++;else for(;0<E;)E-3<(x=E<6?E:6)&&x<E&&(x=E-3),k[_++]=16,k[_++]=x-3,O[16]++,E-=x}for(e=ee?k.subarray(0,_):k.slice(0,_),y=oe(O,7),w=0;w<19;w++)j[w]=y[U[w]];for(g=19;4<g&&0===j[g-1];g--);for(W=ae(y),C.b(h-257,5,Q),C.b(f-1,5,Q),C.b(g-4,4,Q),w=0;w<g;w++)C.b(j[w],3,Q);for(w=0,$=e.length;w<$;w++)if(b=e[w],C.b(W[b],y[b],Q),16<=b){switch(w++,b){case 16:I=2;break;case 17:I=3;break;case 18:I=7;break;default:throw"invalid code: "+b}C.b(e[w],I,Q)}for(var M,V,S=[S,m],L=[L,v],Y=S[0],H=S[1],K=L[0],X=L[1],F=0,J=p.length;F<J;++F)if(M=p[F],C.b(Y[M],H[M],Q),256<M)C.b(p[++F],p[++F],Q),V=p[++F],C.b(K[V],X[V],Q),C.b(p[++F],p[++F],Q);else if(256===M)break;this.a=C.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}(),I=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,d=I[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]===q&&(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=w.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,w=l,C=(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 w.NONE:t=0;break;case w.h:t=1;break;case w.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:w.NONE,FIXED:w.h,DYNAMIC:w.g});if(Object.keys)g=Object.keys(C);else for(m in g=[],v=0,C)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),C[m])}.call(e.exports);var mt={Deflate:D(e.exports).Zlib.Deflate},vt="base64url";function yt(e,t){t=t||vt;e=ft("string"==typeof e?e:JSON.stringify(e)),e=new mt.Deflate(e).compress();return t===vt?G.uint8ToBase64(e):e}i={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(i.exports);var bt={CRC32:D(i.exports).Zlib.CRC32},It=function(e,n){var i;return 200<=(n=n||0)?e:y.isArray(e)?y.map(e,function(e){return It(e,n+1)}):!y.isObject(e)||y.isDate(e)||y.isRegExp(e)||y.isElement(e)?y.isString(e)?y.escape(e):e:(i={},y.each(e,function(e,t){i[t]=It(e,n+1)}),i)},wt=function(e){e=ft(e);return G.uint8ToBase64(e)},Ct=function(e){if(void 0!==e)return e=ft(e=y.isString(e)?e:JSON.stringify(e)),bt.CRC32.calc(e,0,e.length)};function St(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+=St(i);return n}var Et=function(e,t,n){return!(!fe(e)||!fe(t))&&(n&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<e.indexOf(t))};function b(){return(new Date).getTime()}function Tt(){return"undefined"!=typeof $A&&y.isFunction($A.get)&&y.isString($A.get("$Browser.formFactor"))}function _t(e,t){void 0===t&&(t=window);var n="__symbol__";if("undefined"!=typeof Zone&&y.isFunction(Zone[n])){n=t[Zone[n](e)];if(y.isFunction(n))return n}return t[e]}e=window;var xt=y.isFunction(e.isFinite)?e.isFinite:e.Number&&y.isFunction(e.Number.isFinite)?e.Number.isFinite:function(e){return e!=Infinity&&e!=-Infinity&&!isNaN(e)};function Rt(e){return"number"==typeof e&&xt(e)&&Math.floor(e)===e}function kt(e,t,n,i){(t=t||{}).maxRetries=Rt(t.maxRetries)?t.maxRetries:10,t.delay=Rt(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,kt(e,t,o,a)},t.delay):(a||function(){})()}var Ot=function(e){e=e.match(/-?[\d,]+\.?([\d,]+)*/);return e?parseFloat(e[0].replace(/,/g,"")):null};function Nt(e){return y.isObject(e)&&y.isFunction(e.then)}var Mt=y.isFunction(window.decodeURIComponent)?window.decodeURIComponent:y.identity,Lt=y.isFunction(window.encodeURIComponent)?window.encodeURIComponent:y.identity,Ft=(window.Promise,i=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(e=window.Promise)&&/native/.test(e)?e:i()),Pt=function(e,t){return(Pt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};var Gt=function(){return(Gt=Object.assign||function Gt(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function Wt(e,t,s,d){return new(s=s||Ft)(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())})}function $t(n,i){var r,o,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},d=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return d.next=e(0),d["throw"]=e(1),d["return"]=e(2),"function"==typeof Symbol&&(d[Symbol.iterator]=function(){return this}),d;function e(t){return function(e){return u([t,e])}}function u(e){if(r)throw new TypeError("Generator is already executing.");for(;s=d&&e[d=0]?0:s;)try{if(r=1,o&&(a=2&e[0]?o["return"]:e[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,e[1])).done)return a;switch(o=0,(e=a?[2&e[0],a.value]:e)[0]){case 0:case 1:a=e;break;case 4:return s.label++,{value:e[1],done:!1};case 5:s.label++,o=e[1],e=[0];continue;case 7:e=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===e[0]||2===e[0])){s=0;continue}if(3===e[0]&&(!a||e[1]>a[0]&&e[1]<a[3]))s.label=e[1];else if(6===e[0]&&s.label<a[1])s.label=a[1],a=e;else{if(!(a&&s.label<a[2])){a[2]&&s.ops.pop(),s.trys.pop();continue}s.label=a[2],s.ops.push(e)}}e=i.call(n,s)}catch(t){e=[6,t],o=0}finally{r=a=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}function Ut(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||((i=i||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}jt.prototype.addEventListener=function(e,t){var n=this.listeners[e];n||(this.listeners[e]=n=[]),y.findIndex(n,function(e){return t===e})<0&&n.push(t)},jt.prototype.removeEventListener=function(e,t){var n,i=this.listeners[e];i&&0<=(n=y.findIndex(i,function(e){return t===e}))&&(i.splice(n,1),i.length||delete this.listeners[e])},jt.prototype.dispatchEvent=function(t){var e=this.listeners[t.type];e&&y.each(e,function(e){e(t)})};e=jt;function jt(){this.listeners={}}Vt.prototype.toString=function(){var e=this.message;return this.error&&e!==this.error.message&&(e="".concat(e,":").concat(this.error.message)),this.attributes&&(e+=": ".concat(y.map(this.attributes,function(e,t){return"".concat(t,"=").concat(e)}))),e},Vt.prototype.hashCode=function(){return this.toString()};var zt,Zt=Vt;function Vt(e,t,n){this.type="log",this.logged=!1,this.level=e,this.message=t,this.attributes=n}(i=zt=zt||{}).Debug="debug",i.Info="info",i.Warn="warn",i.Error="error",i.Critical="critical";var I=new(function(e){var t=r,n=e;if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}function r(){return null!==e&&e.apply(this,arguments)||this}return Pt(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i),r.prototype.write=function(e,t,n){this.dispatchEvent(new Zt(t,e,n))},r.prototype.writeError=function(e,t,n){y.isString(e)?r={message:i=e}:i=(r=e).message,n&&n.error&&(r=n.error,delete n.error);var i,r,e=new Zt(t,i,n);e.error=r,this.dispatchEvent(e)},r.prototype.debug=function(e,t){this.write(e,zt.Debug,t)},r.prototype.info=function(e,t){this.write(e,zt.Info,t)},r.prototype.warn=function(e,t){this.writeError(e,zt.Warn,t)},r.prototype.error=function(e,t){this.writeError(e,zt.Error,t)},r.prototype.critical=function(e,t){this.writeError(e,zt.Critical,t)},r}(e));function Yt(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var Ht=function(){var e=m.get("storage.allowKeys")||"*";return y.isArray(e)?y.indexBy(e):e};function Kt(t,n,i){return function(){try{return n.apply(t,arguments)}catch(e){return i}}}function Xt(n){y.forEach(y.keys(n),function(e){try{/^_?pendo_/.test(e)&&n.removeItem(e)}catch(t){}})}function Jt(e){var t=y.noop,t={getItem:function(){return null},setItem:t,removeItem:t,clearPendo:t};try{var n=e();return n?{getItem:Kt(n,n.getItem,null),setItem:Kt(n,n.setItem),removeItem:Kt(n,n.removeItem),clearPendo:y.partial(Xt,n)}:t}catch(i){return t}}var qt,i=Jt(function(){return window.localStorage}),e=Jt(function(){return window.sessionStorage}),Qt={},en=!0,tn=function(){return m.get("localStorageOnly")},nn=function(){return!!m.get("disableCookies")};function rn(e){en=e}var on=function(e){var t=nn()||tn()?Qt[e]:document.cookie;return(e=new RegExp("(^|; )"+e+"=([^;]*)").exec(t))?Mt(e[2]):null},an=function(e,t,n,i){var r,o;!en||m.get("preventCookieRefresh")&&on(e)===t||(o=pn(n),(r=new Date).setTime(r.getTime()+o),o=e+"="+Lt(t)+(n?";expires="+r.toUTCString():"")+"; path=/"+("https:"===document.location.protocol||i?";secure":"")+"; SameSite=Strict",qt&&(o+=";domain="+qt),nn()||tn()?Qt[e]=o:document.cookie=o)};function sn(e){qt?an(e,""):document.cookie=e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"}var dn=function(e,t){return"_pendo_".concat(e,".").concat(t||v.apiKey)},un=function(e,t){return on(dn(e,t))},cn=864e5,ln=100*cn,pn=function(e){void 0===e&&(e=ln);var t=m.get("maxCookieTTLDays"),t=t<Infinity?t*cn:Infinity;return Math.min(e,t)},hn=function(e,t,n,i,r){n=n||ln,an(dn(e,r),t,n,i)};function fn(){this.keys={}}fn.prototype.addLocal=function(e){this._add(e,"local")},fn.prototype.addSession=function(e){this._add(e,"session")},fn.prototype.hasLocal=function(e){return this._has(e,"local")},fn.prototype.hasSession=function(e){return this._has(e,"session")},fn.prototype._add=function(e,t){this.keys[e]||(this.keys[e]=t)},fn.prototype._has=function(e,t){return this.keys[e]===t};gn=new fn,mn=y.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}}),(vn=y.extend({},e)).setItem=bn(vn.setItem,"hasSession"),(yn=y.extend({},i)).setItem=bn(yn.setItem,"hasLocal");var gn,mn,vn,yn,w={read:function(e,t,n){var i;return In()?(i=t?e:dn(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)))&&Cn(e,t,n),i):t?on(e):un(e,n)},write:bn(function(e,t,n,i,r,o){if(wn(mn),In())try{var a=i?e:dn(e,o);return localStorage.setItem(a,function(e,t){if(null===t)return e;t=(new Date).getTime()+pn(t);return JSON.stringify({ttl:t,value:e})}(t,n)),void wn(mn)}catch(s){}if(!i)return hn(e,t,n,r,o);an(e,t,n,r)},"hasLocal"),clear:Cn,registry:gn,getLocal:function(){return yn},getSession:function(){return vn}};function bn(i,r){return function(e){var t,n;if(t=e,"*"===(n=Ht())||n[t])return gn[r](e)||I.warn("storage key ".concat(e," is not registered")),i.apply(this,arguments);I.debug("writing storage key ".concat(e," is not allowed"))}}function In(){return!nn()&&!qt&&mn("localStorage")}function wn(e){e.cache&&(e.cache={})}function Cn(e,t,n){t=t?e:dn(e,n);if(In())return localStorage.removeItem(t);sn(t)}An=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},En=function(n,i){var r=Sn.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===Tn?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},Tn=1,(Sn={}).defer=function(){var n,i=0,r=[],t=function(e,t){i=e,n=t,y.each(r,function(e){e.handle(i,n)}),r=null},o=function(e){t(Tn,e)},a=function(e){t(2,e)},s=function(e,t){e=En(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},d=function(e){var t=An();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=An();return{resolve:e(u),reject:e(a),promise:{then:s,"catch":function(e){return s(null,e)}}}};var Sn,An,En,Tn,C,e=Sn;function _n(e){var n,i=C.defer(),r=y.isArray(e)?[]:{},o=y.size(e);return o?(n=!1,y.each(e,function(e,t){C.resolve(e).then(function(e){r[t]=e,0!=--o||n||i.resolve(r)},function(e){n||(n=!0,i.reject(e))})}),i.promise):C.resolve(e)}!lt()&&et.isMinimumIEVersion(11)?C={all:function(e){return y.isArray(e)?Ft.all.apply(Ft,arguments):_n(e)},reject:function(){return Ft.reject.apply(Ft,arguments)},resolve:function(){return Ft.resolve.apply(Ft,arguments)},defer:function(){var n={};return n.promise=new Ft(function(e,t){n.resolve=e,n.reject=t}),n}}:((C=e).all=_n,C.reject=function(e){var t=C.defer();return t.reject(e),t.promise},C.resolve=function(e){var t=C.defer();return t.resolve(e),t.promise});var xn=w.getSession(),Rn="pendo_tabId",kn="pendo_parentTabId";On=window,i=y.partial,Nn=y.extend,Mn=y.omit,Ln={data:{},getItem:function(e){return Ln.data[e]},setItem:function(e,t){Ln.data[e]=t},removeItem:function(e){Ln.data[e]=null,delete Ln.data[e]}},Fn=i(Wn,Rn,$n),Pn=i(Wn,"pendo_frameId",Ln);var On,Nn,Mn,Ln,Fn,Pn,Gn={addTracerIds:function(e){return Mn(Nn(e,{parentTabId:Dn(kn,$n),tabId:Fn(),frameId:Pn()}),function(e){return e===undefined})},setParentTabId:function(e){Bn(kn,e,$n)},newTabId:function(){var e=At(16);return Bn(Rn,e,$n),e},getTabId:Fn,getFrameId:Pn,tabIdChanged:function(t){var e;if(et.addEventListener)return On.addEventListener("storage",e=function(e){e.key===Rn&&(Ln.removeItem(Rn),t())}),function(){On.removeEventListener("storage",e)}}};function Dn(e,t){return(y.isFunction(t)?t():t).getItem(e)}function Bn(e,t,n){(y.isFunction(n)?n():n).setItem(e,t)}function Wn(e,t){var n=Dn(e,t);return n||Bn(e,n=At(16),t),n}function $n(){return n=Ln,i=xn,{getItem:function(e){var t=n.getItem(e);return t===undefined&&(t=i.getItem(e),n.setItem(e,t)),t},setItem:function(e,t){n.setItem(e,t),i.setItem(e,t)},removeItem:function(e){n.removeItem(e),i.removeItem(e)}};var n,i}function Un(){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(y.isString(e)||y.isFunction(t))&&(n=(n=i[e])||(i[e]=[]),y.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 y.isFunction(t)?(n=y.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=y.toArray(arguments).slice(1);return y.map(t,function(e){return e.apply(v,n)})},this.triggerCancelable=function(e,t){e=i[e]?i[e].slice():[];return y.map(e,function(e){if(!t.cancel)return e.apply(v,[t])})},this.triggerAsync=function(){var e=y.map(this.trigger.apply(this,arguments),function(e){return!1===e?C.reject():e});return C.all(e)},this}Un.clear=function(t){t&&y.each(y.keys(t._handlers),function(e){t.off(e),delete t._handlers[e]})};rr={DEBUG:e="debug",FRAMES:i="frames",LIFECYCLE:s="lifecycle",RUNTIME:lr="runtime"},jn=[new a("ready",[e,s]),new a("deliverablesLoaded",[e,s]),new a("guidesFailed",[e,s]),new a("guidesLoaded",[e,s]),new a("guideListChanged",[e,s]),new a("guideSeen",[e,s]),new a("guideNotSeen",[e,s]),new a("guideAdvanced",[e,s]),new a("guideDismissed",[e,s]),new a("guideSnoozed",[e,s]),new a("beforeGuideShow",[s]),new a("beforeMount",[lr]),new a("beforeAdvance",[lr]),new a("beforePrevious",[lr]),new a("beforeSnooze",[lr]),new a("beforeDismiss",[lr]),new a("beforeUnmount",[lr]),new a("unmounted",[lr]),new a("beforeUpdate",[lr]),new a("updated",[lr]),new a("guideSnoozeCancelled",[e,s]),new a("guideTimeout",[e,s]),new a("guideLoopStopped",[e,s]),new a("guideUpdateComplete",[s]),new a("designerLaunched",[e,s]),new a("debuggerLaunched",[e,s]),new a("stepEligibility",[e]),new a("identify",[e,s]),new a("metadata",[e,s]),new a("appUnloaded",[e,s]),new a("appHidden",[e,s]),new a("startPreview",[e]),new a("resourceFetchFail",[e]),new a("contentVerificationFail",[e]),new a("contentValidationFail",[e]),new a("renderFail",[e]),new a("appUsage",[s]),new a("eventCaptured",[e]),new a("error",[e,s]),new a("onClickCaptured",[e]),new a("urlChanged",[s]),new a("leaderChanged",[s,i]),new a("transmit:locked",[s]),new a("transmit:unlocked",[s]),new a("sessionChanged",[s]),new a("childFrameJoined",[i]),new a("tabIdChanged:self",[e,s])],zn=Un.call({}),Zn={debug:function(){return Gn.addTracerIds(Yn.apply(null,arguments))},lifecycle:Yn,runtime:Yn,frames:Yn},Vn=zn.trigger,zn.trigger=Hn,y.each(y.values(rr),function(e){zn[e]={on:y.partial(zn.on,e),one:y.partial(zn.one,e),off:y.partial(zn.off,e)}}),y.each(jn,function(e){e=e.name,zn[e]={on:y.partial(zn.on,e),one:y.partial(zn.one,e),off:y.partial(zn.off,e),trigger:y.partial(Hn,e)}});var jn,zn,Zn,Vn,S=zn;function a(e,t){this.name=e,this.groups=t||[]}function Yn(e,t){e={type:e,ts:b()};return fe(t)&&y.isObject(t)&&(e.data=t),e}function Hn(t){var e=y.findWhere(jn,{name:t}),n=y.toArray(arguments).slice(1),i={};return y.each(e.groups,function(e){i.cancel||(i=Zn[e](t,n),Vn.apply(zn,[e].concat(i)))}),i.cancel||(i=Yn(t,n),Vn.apply(zn,[t].concat(i))),i}function Kn(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),y.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),y.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:y.partial(t,i),subscribeAction:y.partial(t,r),registerModule:function h(n,e){y.isString(n)&&(n=[n]);var t=u(s.state,e,n);y.extend(s.getters,p(e,t,s,n));y.extend(o,c(e,t,n));y.extend(a,l(e,t,s,n));y.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return y.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):y.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 y.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),y.extend(i,ge(t.state||{}))}function c(e,n,i){var r={};return y.each(e.mutations,function(e,t){r[d(i,t)]=y.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 y.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return y.each(e.actions,function(e,t){n[d(r,t)]=y.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return y.each(e.getters,function(e,t){a[t]=o[d(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}var A=Kn(),Xn=(A.subscribe(function(e,t){}),"_PENDO_T_"),Jn=11,qn="visitorId",Qn="oldVisitorId",ei="accountId",ti=function(e){return(e=void 0===e?"":e)+At(Jn)};var ni=function(e){return fe(e)&&""!==e&&e!==di&&"boolean"!=typeof e&&"object"!=typeof e&&!((e=e)&&"string"==typeof e&&0===gt.call(e).length)},ii=function(e){return!(!e||"number"==typeof e)&&e.substring(0,Xn.length)===Xn},ri=function(){return!m.get("disablePersistence")},oi=function(e){e=e||[qn,ei,Qn];var t=m.get("identityStorageSuffix")||v.apiKey;y.each(e,function(e){sn(dn(e,t)),w.clear(e,!1,t)})},ai="VISITOR-UNIQUE-ID",si=function(e){return ai===e},di="::",ui=function(e){return new RegExp(di).test(e)};function ci(e){return e.old_visitor_id!==e.visitor_id}var li,pi=function(e,t){var n,i={old_visitor_id:E(),old_account_id:mi()};ni(e)?(ni(n=e)?fi(""+n):I.info("Invalid visitor id "+n),n=t,y.isUndefined(n)?I.info("No account id provided"):ni(n)?(v.accountId=""+n,ri()&&vi(ei,v.accountId)):(delete v.accountId,delete(t=m.getLocalConfig()).account,m.setLocalConfig(t),A.commit("metadata/clearAccount"),ri()&&w.clear(ei),I.info("Invalid account id: "+n+". Account cleared")),i.visitor_id=E({generate:!0}),i.account_id=mi(),!ci(t=i)&&t.old_account_id===t.account_id||(ci(i)&&(n=i.old_visitor_id)&&vi(Qn,li=n),S.identify.trigger(i))):I.info("Invalid visitor id "+e)};function hi(){return ti(Xn)}function fi(e){v.visitorId!==e&&(ri()&&vi(qn,e),v.visitorId=e)}function E(e){void 0===e&&(e={});var t=function(){if(ni(v.visitorId))return v.visitorId;var e=m.get("forceAnonymous");if(ri()){var t=yi(qn);if(ni(t)&&(!e||ii(t)))return t}return undefined}();return fi(t=!t&&e.generate?hi():t),t}function gi(){return E()||hi()}var mi=function(){var e=m.get("forceAnonymous");return ni(v.accountId)||!ri()||e||(e=yi(ei),v.accountId=e),v.accountId};function vi(e,t){var n=m.get("identityStorageLifetime")||ln,i=m.get("identityStorageSuffix")||v.apiKey;w.write(e,t,n,!1,!0,i)}function yi(e){var t=m.get("identityStorageSuffix"),n=t||v.apiKey,n=w.read(e,!1,n)||w.read(e,!1,v.apiKey);return t&&w.clear(e,!1,v.apiKey),n}function bi(){var e={old_visitor_id:E({generate:!1}),old_account_id:mi(),wasCleared:!0};oi(),delete v.visitorId,delete v.accountId,E({generate:!0}),y.extend(e,{visitor_id:E(),account_id:mi()}),S.identify.trigger(e)}function Ii(e){e=e.data[0];return y.get(e,"wasCleared")}var wi=function(t,n){return n=!!n,function(){try{return t.apply(this,arguments)}catch(e){n||I.critical(e)}}};lr=function(n){return function Ci(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 Ci="function"==typeof(i=window.URL)&&/native/.test(i)?i:lr(document);function Si(e){if((t=e)&&y.isFunction(t.composedPath))try{return e.composedPath()}catch(n){return e.path}var t;return null}function Ai(e){return e.shadowRoot}function Ei(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function Ti(e,t){return Ei(e,t)?e.host:e.parentNode}var _i={PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:Si,getShadowRoot:Ai,isElementShadowRoot:Ei,getParent:Ti,isShadowSelector:xi,wrapSizzle:function(i){i.intercept(function(a,e,n,i,r){var t,o;return xi(e)?y.isFunction(document.documentElement.attachShadow)?(o=a,t=(t=e).replace(_i.PSEUDO_REGEX,_i.PSEUDO_SAFE),t=y.map(o.tokenize(t),Ri),y.reduce(t,function(e,t){return e.concat(s(t,n,i,r))},[])):a(e.replace(_i.PSEUDO_REGEX,""),n,i,r):a(e,n,i,r);function s(e,t,n,i){var r,o;return xi(e)?(o=s((r={baseCss:(o=(o=e).split(_i.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:o.join(_i.PSEUDO_ELEMENT)}).baseCss,t),y.reduce(o,function(e,t){return _i.getShadowRoot(t)?e.concat(s(r.shadowCss,_i.getShadowRoot(t),n,i)):e},[])):a(e,t,n,i)}}),i.intercept(function(e,t,n){return!_i.isElementShadowRoot(t)&&(xi(n)?0<i(n,document,null,[t]).length:e(t,n))},"matchesSelector")}};function xi(e){return!!e&&-1<e.indexOf(_i.PSEUDO_ELEMENT)}function Ri(e){return y.reduce(e,function(e,t){return t.value===_i.PSEUDO_SAFE?e+_i.PSEUDO_ELEMENT:e+t.value},"")}var ki,Oi,T,Ni,Mi,Li,Fi,Pi,Gi,Di,Bi,Wi,_,$i,Ui,ji,zi,Zi,Vi,e={exports:{}},s=e,Yi=window,Hi="sizzle"+ +new Date,Ki=Yi.document,Xi=0,Ji=0,qi=Mr(),Qi=Mr(),er=Mr(),tr=Mr(),nr=function(e,t){return e===t&&(Bi=!0),0},ir={}.hasOwnProperty,rr=[],or=rr.pop,ar=rr.push,sr=rr.push,dr=rr.slice,ur=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},cr="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",d="[\\x20\\t\\r\\n\\f]",i="(?:\\\\[\\da-fA-F]{1,6}"+d+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",lr="\\["+d+"*("+i+")(?:"+d+"*([*^$|!~]?=)"+d+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+i+"))|)"+d+"*\\]",pr=":("+i+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+lr+")*)|.*)\\)|)",hr=new RegExp(d+"+","g"),fr=new RegExp("^"+d+"+|((?:^|[^\\\\])(?:\\\\.)*)"+d+"+$","g"),gr=new RegExp("^"+d+"*,"+d+"*"),mr=new RegExp("^"+d+"*([>+~]|"+d+")"+d+"*"),vr=new RegExp(d+"|>"),yr=new RegExp(pr),br=new RegExp("^"+i+"$"),Ir={ID:new RegExp("^#("+i+")"),CLASS:new RegExp("^\\.("+i+")"),TAG:new RegExp("^("+i+"|[*])"),ATTR:new RegExp("^"+lr),PSEUDO:new RegExp("^"+pr),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+d+"*(even|odd|(([+-]|)(\\d*)n|)"+d+"*(?:([+-]|)"+d+"*(\\d+)|))"+d+"*\\)|)","i"),bool:new RegExp("^(?:"+cr+")$","i"),needsContext:new RegExp("^"+d+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+d+"*((?:-\\d)?\\d*)"+d+"*\\)|)(?=[^-]|$)","i")},wr=/HTML$/i,Cr=/^(?:input|select|textarea|button)$/i,Sr=/^h\d$/i,Ar=/^[^{]+\{\s*\[native \w/,Er=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Tr=/[+~]/,_r=new RegExp("\\\\[\\da-fA-F]{1,6}"+d+"?|\\\\([^\\r\\n\\f])","g"),xr=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))},Rr=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,kr=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Or=function(){Wi()},Nr=jr(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{sr.apply(rr=dr.call(Ki.childNodes),Ki.childNodes),rr[Ki.childNodes.length].nodeType}catch(ZS){sr={apply:rr.length?function(e,t){ar.apply(e,dr.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&&(Wi(t),t=t||_,Ui)){if(11!==l&&(s=Er.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))&&Vi(t,u)&&u.id===r)return n.push(u),n}else{if(s[2])return sr.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&Oi.getElementsByClassName&&t.getElementsByClassName)return sr.apply(n,t.getElementsByClassName(r)),n}if(Oi.qsa&&!tr[e+" "]&&(!ji||!ji.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(u=e,c=t,1===l&&(vr.test(e)||mr.test(e))){for((c=Tr.test(e)&&Wr(t.parentNode)||t)===t&&Oi.scope||((a=t.getAttribute("id"))?a=a.replace(Rr,kr):t.setAttribute("id",a=Hi)),o=(d=Li(e)).length;o--;)d[o]=(a?"#"+a:":scope")+" "+Ur(d[o]);u=d.join(",")}try{return sr.apply(n,c.querySelectorAll(u)),n}catch(p){tr(e,!0)}finally{a===Hi&&t.removeAttribute("id")}}}return Pi(e.replace(fr,"$1"),t,n,i)}function Mr(){var n=[];function i(e,t){return n.push(e+" ")>T.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function Lr(e){return e[Hi]=!0,e}function Fr(e){var t=_.createElement("fieldset");try{return!!e(t)}catch(ZS){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function Pr(e,t){for(var n=e.split("|"),i=n.length;i--;)T.attrHandle[n[i]]=t}function Gr(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 Dr(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&&Nr(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function Br(a){return Lr(function(o){return o=+o,Lr(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 Wr(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(ki in Oi=x.support={},Mi=x.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!wr.test(t||e&&e.nodeName||"HTML")},Wi=x.setDocument=function(e){var e=e?e.ownerDocument||e:Ki;return e!=_&&9===e.nodeType&&e.documentElement&&($i=(_=e).documentElement,Ui=!Mi(_),Ki!=_&&(e=_.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",Or,!1):e.attachEvent&&e.attachEvent("onunload",Or)),Oi.scope=Fr(function(e){return $i.appendChild(e).appendChild(_.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),Oi.attributes=Fr(function(e){return e.className="i",!e.getAttribute("className")}),Oi.getElementsByTagName=Fr(function(e){return e.appendChild(_.createComment("")),!e.getElementsByTagName("*").length}),Oi.getElementsByClassName=!!_.getElementsByClassName,Oi.getById=Fr(function(e){return $i.appendChild(e).id=Hi,!_.getElementsByName||!_.getElementsByName(Hi).length}),Oi.getById?(T.filter.ID=function(e){var t=e.replace(_r,xr);return function(e){return e.getAttribute("id")===t}},T.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&Ui)return(e=t.getElementById(e))?[e]:[]}):(T.filter.ID=function(e){var t=e.replace(_r,xr);return function(e){e="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},T.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&Ui){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[]}}),T.find.TAG=Oi.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):Oi.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},T.find.CLASS=Oi.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&Ui?t.getElementsByClassName(e):Oi.qsa&&Ui?t.querySelectorAll("."+e):void 0},zi=[],ji=[],(Oi.qsa=!!_.querySelectorAll)&&(Fr(function(e){var t;$i.appendChild(e).innerHTML=K().createHTML("<a id='"+Hi+"'></a><select id='"+Hi+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&ji.push("[*^$]="+d+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||ji.push("\\["+d+"*(?:value|"+cr+")"),e.querySelectorAll("[id~="+Hi+"-]").length||ji.push("~="),(t=_.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||ji.push("\\["+d+"*name"+d+"*="+d+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||ji.push(":checked"),e.querySelectorAll("a#"+Hi+"+*").length||ji.push(".#.+[+~]"),e.querySelectorAll("\\\f"),ji.push("[\\r\\n\\f]")}),Fr(function(e){e.innerHTML=K().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&&ji.push("name"+d+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&ji.push(":enabled",":disabled"),$i.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&ji.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),ji.push(",.*:")})),(Oi.matchesSelector=Ar.test(Zi=$i.matches||$i.webkitMatchesSelector||$i.mozMatchesSelector||$i.oMatchesSelector||$i.msMatchesSelector))&&Fr(function(e){Oi.disconnectedMatch=Zi.call(e,"*"),Zi.call(e,"[s!='']:x"),zi.push("!=",pr)}),ji=ji.length&&new RegExp(ji.join("|")),zi=zi.length&&new RegExp(zi.join("|")),e=!!$i.compareDocumentPosition,Vi=e||$i.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},nr=e?function(e,t){var n;return e===t?(Bi=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!Oi.sortDetached&&t.compareDocumentPosition(e)===n?e==_||e.ownerDocument==Ki&&Vi(Ki,e)?-1:t==_||t.ownerDocument==Ki&&Vi(Ki,t)?1:Di?ur(Di,e)-ur(Di,t):0:4&n?-1:1)}:function(e,t){if(e===t)return Bi=!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:Di?ur(Di,e)-ur(Di,t):0;if(r===o)return Gr(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?Gr(a[i],s[i]):a[i]==Ki?-1:s[i]==Ki?1:0}),_},x.matches=function(e,t){return x(e,null,null,t)},x.matchesSelector=function(e,t){if(Wi(e),Oi.matchesSelector&&Ui&&!tr[t+" "]&&(!zi||!zi.test(t))&&(!ji||!ji.test(t)))try{var n=Zi.call(e,t);if(n||Oi.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(ZS){tr(t,!0)}return 0<x(t,_,null,[e]).length},x.contains=function(e,t){return(e.ownerDocument||e)!=_&&Wi(e),Vi(e,t)},x.attr=function(e,t){(e.ownerDocument||e)!=_&&Wi(e);var n=T.attrHandle[t.toLowerCase()],n=n&&ir.call(T.attrHandle,t.toLowerCase())?n(e,t,!Ui):undefined;return n!==undefined?n:Oi.attributes||!Ui?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},x.escape=function(e){return(e+"").replace(Rr,kr)},x.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},x.uniqueSort=function(e){var t,n=[],i=0,r=0;if(Bi=!Oi.detectDuplicates,Di=!Oi.sortStable&&e.slice(0),e.sort(nr),Bi){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return Di=null,e},Ni=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+=Ni(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=Ni(t);return n},(T=x.selectors={cacheLength:50,createPseudo:Lr,match:Ir,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(_r,xr),e[3]=(e[3]||e[4]||e[5]||"").replace(_r,xr),"~="===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 Ir.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&yr.test(n)&&(t=(t=Li(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(_r,xr).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=qi[e+" "];return t||(t=new RegExp("(^|"+d+")"+e+"("+d+"|$)"))&&qi(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(hr," ")+" ").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)[Hi]||(a[Hi]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===Xi&&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]=[Xi,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[Hi]||(a[Hi]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===Xi&&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[Hi]||(a[Hi]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[Xi,h]),a!==e)););return(h-=m)===g||h%g==0&&0<=h/g}}},PSEUDO:function(e,o){var t,a=T.pseudos[e]||T.setFilters[e.toLowerCase()]||x.error("unsupported pseudo: "+e);return a[Hi]?a(o):1<a.length?(t=[e,e,"",o],T.setFilters.hasOwnProperty(e.toLowerCase())?Lr(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=ur(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:Lr(function(e){var i=[],r=[],s=Fi(e.replace(fr,"$1"));return s[Hi]?Lr(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:Lr(function(t){return function(e){return 0<x(t,e).length}}),contains:Lr(function(t){return t=t.replace(_r,xr),function(e){return-1<(e.textContent||Ni(e)).indexOf(t)}}),lang:Lr(function(n){return br.test(n||"")||x.error("unsupported lang: "+n),n=n.replace(_r,xr).toLowerCase(),function(e){var t;do{if(t=Ui?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=Yi.location&&Yi.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===$i},focus:function(e){return e===_.activeElement&&(!_.hasFocus||_.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:Dr(!1),disabled:Dr(!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!T.pseudos.empty(e)},header:function(e){return Sr.test(e.nodeName)},input:function(e){return Cr.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:Br(function(){return[0]}),last:Br(function(e,t){return[t-1]}),eq:Br(function(e,t,n){return[n<0?n+t:n]}),even:Br(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:Br(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:Br(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:Br(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=T.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})T.pseudos[ki]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(ki);for(ki in{submit:!0,reset:!0})T.pseudos[ki]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(ki);function $r(){}function Ur(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function jr(a,e,t){var s=e.dir,d=e.next,u=d||s,c=t&&"parentNode"===u,l=Ji++;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=[Xi,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[Hi]||(e[Hi]={}))[e.uniqueID]||(r[e.uniqueID]={}),d&&d===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=r[u])&&i[0]===Xi&&i[1]===l)return o[2]=i[2];if((r[u]=o)[2]=a(e,t,n))return!0}return!1}}function zr(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 Zr(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 Vr(h,f,g,m,v,e){return m&&!m[Hi]&&(m=Vr(m)),v&&!v[Hi]&&(v=Vr(v,e)),Lr(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:Zr(c,s,h,n,i),p=g?v||(e?h:u||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=Zr(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?ur(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=Zr(p===t?p.splice(u,p.length):p),v?v(null,t,p,i):sr.apply(t,p)})}$r.prototype=T.filters=T.pseudos,T.setFilters=new $r,Li=x.tokenize=function(e,t){var n,i,r,o,a,s,d,u=Qi[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],d=T.preFilter;a;){for(o in n&&!(i=gr.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=mr.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(fr," ")}),a=a.slice(n.length)),T.filter)T.filter.hasOwnProperty(o)&&(i=Ir[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):Qi(e,s).slice(0)},Fi=x.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=er[e+" "];if(!a){for(n=(t=t||Li(e)).length;n--;)((a=function l(e){for(var i,t,n,r=e.length,o=T.relative[e[0].type],a=o||T.relative[" "],s=o?1:0,d=jr(function(e){return e===i},a,!0),u=jr(function(e){return-1<ur(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==Gi)||((i=t).nodeType?d:u)(e,t,n),i=null,e}];s<r;s++)if(t=T.relative[e[s].type])c=[jr(zr(c),t)];else{if((t=T.filter[e[s].type].apply(null,e[s].matches))[Hi]){for(n=++s;n<r&&!T.relative[e[n].type];n++);return Vr(1<s&&zr(c),1<s&&Ur(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(fr,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&Ur(e))}c.push(t)}return zr(c)}(t[n]))[Hi]?r:o).push(a);(a=er(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=Gi,h=e||b&&T.find.TAG("*",r),f=Xi+=null==p?1:Math.random()||.1,g=h.length;for(r&&(Gi=t==_||t||r);u!==g&&null!=(o=h[u]);u++){if(b&&o){for(a=0,t||o.ownerDocument==_||(Wi(o),n=!Ui);s=m[a++];)if(s(o,t||_,n)){i.push(o);break}r&&(Xi=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]=or.call(i));l=Zr(l)}sr.apply(i,l),r&&!e&&0<l.length&&1<d+v.length&&x.uniqueSort(i)}return r&&(Xi=f,Gi=p),c},y?Lr(i):i))).selector=e}return a},Pi=x.select=function(e,t,n,i){var r,o,a,s,d,u="function"==typeof e&&e,c=!i&&Li(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&&Ui&&T.relative[o[1].type]){if(!(t=(T.find.ID(a.matches[0].replace(_r,xr),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=Ir.needsContext.test(e)?0:o.length;r--&&(a=o[r],!T.relative[s=a.type]);)if((d=T.find[s])&&(i=d(a.matches[0].replace(_r,xr),Tr.test(o[0].type)&&Wr(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&Ur(o))break;return sr.apply(n,i),n}}return(u||Fi(e,c))(i,t,!Ui,n,!t||Tr.test(e)&&Wr(t.parentNode)||t),n},Oi.sortStable=Hi.split("").sort(nr).join("")===Hi,Oi.detectDuplicates=!!Bi,Wi(),Oi.sortDetached=Fr(function(e){return 1&e.compareDocumentPosition(_.createElement("fieldset"))}),Fr(function(e){return e.innerHTML=K().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||Pr("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),Oi.attributes&&Fr(function(e){return e.innerHTML=K().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||Pr("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),Fr(function(e){return null==e.getAttribute("disabled")})||Pr(cr,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var Yr=Yi.Sizzle;x.noConflict=function(){return Yi.Sizzle===x&&(Yi.Sizzle=Yr),x},s.exports?s.exports=x:Yi.Sizzle=x;Hr=D(e.exports),(Kr=y.extend(function(){return Kr.Sizzle.apply(this,arguments)},Hr)).reset=function(){Kr.Sizzle=Hr,Kr.matchesSelector=Hr.matchesSelector,Kr.matches=Hr.matches},Kr.intercept=function(e,t){Kr[t=void 0===t?"Sizzle":t]=y.wrap(Kr[t],e)},Kr.reset();var Hr,Kr,Xr=Kr;function R(e,t){var n,i=this;if(e&&e instanceof R)return e;if(!(i instanceof R))return new R(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=y.toArray(r.childNodes)}else if(y.isString(e)){t instanceof R&&(t=0<t.length?t[0]:null);try{n=Xr(e,t)}catch(o){n=[]}}else n=[e];else n=[];return y.each(n,function(e,t){i[t]=e}),i.context=t,i.length=n.length,i}function Jr(){this.ownerKey="_pendo_"+At(8)}y.extend(Jr.prototype,{cache:function(e){var t;return y.isObject(e)?((t=e[this.ownerKey])||(e[this.ownerKey]=t={}),t):{}},set:function(e,t,n){e=this.cache(e);return e[t]=n,e},get:function(e,t){return t===undefined?this.cache(e):e[this.ownerKey]&&e[this.ownerKey][t]},remove:function(e,t){var n=this.cache(e);delete n[t],t!==undefined&&!y.isEmpty(n)||(e[this.ownerKey]=undefined)}});var qr=new Jr,Qr=1;function eo(e){return y.isNumber(e.eventPhase)&&e.eventPhase===Qr}function to(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?_t("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),function(){no(e,t,n,i)}):y.noop}function no(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?_t("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var io=function(e){var t=_i.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},ro={add:function(t,e){var n=qr.get(t),i=(n.handle||(n.handle=function(e){ro.dispatch(t,e)}),e.id=y.uniqueId(),e.capture?"captureEvents":"bubbleEvents"),i=n[i]=n[i]||{},i=i[e.type]=i[e.type]||[];return i.length||to(t,e.type,n.handle,e.capture),i.push(e),function(){R.event.remove(t,e.type,e.handler,e.capture)}},dispatch:function(r,o){var e,t,a;r&&(e=(qr.get(r,"captureEvents")||{})[o.type]||[],t=(qr.get(r,"bubbleEvents")||{})[o.type]||[],(t=e.concat(t)).length)&&!(a=qr.get(o)).ignore&&(a.handled=a.handled||{},y.each(t.slice(),function(e){var t=!!e.capture===eo(o),n=(n=o,y.isNumber(n.eventPhase)&&2===n.eventPhase),t=!t&&!n;if(!(io(o)!==r&&t||a.handled[e.id])){a.handled[e.id]=!0;try{(!fe(e.selector)||0<R(io(o)).closest(e.selector).length)&&e.handler.call(r,o)}catch(i){I.error(i)}}}))},remove:function(e,t,n,i){var r=qr.get(e);if(r){if(y.isFunction(n)){var o=i?r.captureEvents:r.bubbleEvents;if(!o)return;var a=o[t];if(!a)return;var s=y.findIndex(a,function(e){return e.handler===n});0<=s&&a.splice(s,1),a.length||(delete o[t],no(e,t,r.handle,i))}else n===undefined&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],no(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],no(e,t,r.handle));y.isEmpty(r.captureEvents)&&y.isEmpty(r.bubbleEvents)&&(qr.remove(e,"captureEvents"),qr.remove(e,"bubbleEvents"),qr.remove(e,"handle"))}},trigger:function(e){var t=qr.get(e);if(!t.pendoStopped)if(e.bubbles){var n=io(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=_i.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),eo(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)ro.dispatch(o[i],e);(e=ro.clone(e)).eventPhase=2}for(2!==e.eventPhase||t.pendoStopped||(ro.dispatch(n,e),(e=ro.clone(e)).eventPhase=3),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)ro.dispatch(o[i],e)}}else ro.dispatch(io(e),e)},clone:function(e){var t=y.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",qr.ownerKey]),e=_i.getComposedPath(e);return e&&(t.composedPath=y.constant(e)),t},$:{on:function(e,n,i,r){return y.isFunction(n)&&(r=i,i=n,n=null),e=e.split(" "),this.each(function(t){y.each(e,function(e){ro.add(t,{type:e,selector:n,handler:i,capture:r})})})}}},oo=y.extend(so,{get:function(e,t){return so({method:"GET",url:e,headers:t})},post:uo,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",uo(e,t=JSON.stringify(t),n)},urlFor:function(e,t,n){if(y.isArray(t))i=t;else{if(!y.isObject(t))return e||"";i=y.keys(t)}var i=y.map(i,function(e){return y.isArray(t)?Lt(e):Lt(e)+"="+Lt(t[e])}).join("&"),r=(e=e.split("#",2))[0],o=y.contains(r,"?");return[r,i?(o?"&":"?")+i:"",(n=void 0!==n?n:e[1])?"#"+n:""].join("")},supported:function(){return void 0!==ao()}});function ao(){return window.XMLHttpRequest||ActiveXObject}function so(e){var t=C.defer(),n=new(ao())("MSXML2.XMLHTTP.3.0");return n.open(e.method||"GET",e.url,!e.sync),y.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 uo(e,t,n){return so({method:"POST",url:e,data:t,headers:n})}var co,lo=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},po=function(){return m.get("annotateUrl")||vo()||m.get("sanitizeUrl")||m.get(Eo)||m.get("xhrWhitelist")},ho=function(){return vo()?{href:mo(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},fo=function(){return new Ci(window.location.href)},go=function(){var e,t,n,i;return po()?(e=fo(),vo()&&(e.href=mo(e.href)),lo()?(t=Lo.electronResourcesPath(),n=Lo.electronUserDirectory(),i=Lo.electronAppName(),("https://"+e.href.replace(t,i)).replace(e.origin+n,i).replace(Lo.electronUserHomeDirectory(),"").replace("file:///","")):_o(e.href)):A.getters["location/href"]()},mo=function(e){return e.match(/(.+?)(?:#|$)/)[1]},vo=function(){return!0===m.get("ignoreHashRouting")},yo=500;function bo(){return y.isUndefined(co)&&function e(){Ao(),co=Dt(e,yo)}(),function(){clearTimeout(co)}}var Io=function(e){var t;try{t=go()}catch(n){}return t},wo=[],Co=!1,So=null;function Ao(){var t=ho().href;So!=t&&(So=t,y.map(wo,function(e){e(t)}))}var Eo="queryStringWhitelist";function To(e){var t=m.get("sanitizeUrl");return y.isFunction(t)?t(e):e}function _o(e){e=e||ho().href;var t=m.get("annotateUrl");if(t)if(y.isFunction(t))try{var n,i,r,o=t();return o&&(y.isObject(o)||y.isArray(o))?(n=o.exclude,i=o.include,r=o.fragment,delete o.fragment,(n&&y.isArray(n)||i&&(y.isArray(i)||y.isObject(i)))&&(n&&(e=Ro(e,null,n,!0)),o=i||{}),oo.urlFor(e,o,r)):e}catch(a){I.error("customer-provided `annotateUrl` function threw an exception",{error:a})}else I.error("customer-provided `annotateUrl` must be of type: function");return e}function xo(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function Ro(e,t,n,i){e=e||Io(),t=t||xo(e).substring(1),o=(r=e.indexOf(t))+t.length;var r=e.substring(0,r),o=e.substring(o);return(r=(t=y.isArray(n)?Oo(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var ko,Oo=function(e,t,n){return n&&y.contains(t,"*")?"":(e=No(e),e=n?y.omit(e,t):y.pick(e,t),Mo(e))},No=function(e){e=e.split("&");return y.reduce(e,function(e,t){return(t=t.split("="))[0]&&(e[t[0]]=t[1]&&Mt(t[1])),e},{})},Mo=function(e){return y.reduce(e,function(e,t,n){return t&&(n+="="+t),e&&(e+="&"),e+n},"")},Lo={watch:function(e){var n,i=[],t=(I.info("Initializing Pendo URL Watcher"),m.get("location.pushState")&&et.supportsHistoryApi());return Co||(t&&(n=window.history,y.each(["pushState","replaceState"],function(e){var t=n[e];n[e]=y.wrap(n[e],function(e){var t=e.apply(n,y.toArray(arguments).slice(1));return Dt(Ao,0),t}),i.push(function(){n[e]=t})}),i.push(to(window,"popstate",Ao))),et.supportsHashChange()&&i.push(to(window,"hashchange",Ao)),!1!==t&&et.supportsHashChange()||i.push(bo()),Co=!0),wo.push(e),function(){y.each(i,function(e){e()}),wo.length=0,Co=!1}},get:Io,externalizeURL:function(e,t,n){n=n||m.get(Eo);return To(Ro(e,t,n=y.isFunction(n)?n():n,!1))},startPoller:bo,getWindowLocation:ho,clear:function(){wo=[]},isElectron:lo,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 Fo(){var e=m.getLocalConfig("dataHost");return e||((e=m.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:rt)}function Po(){ko=Fo()}function Go(){var e=m.get("contentHost")||m.get("assetHost")||ot;return e=e&&-1===e.indexOf("://")?"https://"+e:e}function Do(e){return"".concat(Go(),"/").concat(at?at+"/":"").concat(e)}function Bo(){var e=m.get("allowPartnerAnalyticsForwarding",!1)&&m.get("adoptAnalyticsForwarding",!1);return m.get("trainingPartner",!1)||e}var Wo=3,$o=1,Uo=4;function f(e){var t;if((t=e)&&t.nodeType===$o)try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(n){}}function jo(e,t){var n;return!(!e||!y.isFunction(e.getPropertyValue))&&(n=[e.getPropertyValue("transform")],void 0!==t&&y.isString(t)&&n.push(e.getPropertyValue("-"+t.toLowerCase()+"-transform")),y.any(n,function(e){return e&&"none"!==e}))}function zo(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function Zo(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function Vo(e){return y.isNumber(e)?e:0}function Yo(e,t){e=e.offsetParent;return t=t||window,e=e&&e.parentElement===t.document.documentElement&&!Ko(e)?null:e}function Ho(e){return jo(f(e),ze)&&isNaN(Be)}function Ko(e){if(e)return(e=f(e))&&(y.contains(["relative","absolute","fixed"],e.position)||jo(e,ze))}function Xo(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=Ko(t)?t:Yo(t,n),i=t?Jo(t):{top:0,left:0},e=Jo(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+=Vo(t.scrollTop),i.left+=Vo(t.scrollLeft)),i.top-=Vo(t.clientTop),i.left-=Vo(t.clientLeft)):(i.top+=zo(n),i.left+=Zo(n)),i.bottom=i.top+i.height,i.right=i.left+i.width,i}function Jo(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 qo=void 0===(i=m.get("pendoCore"))||i,Qo=function(e,t,n){e=ko+"/data/"+e+"/"+t,t=y.map(n,function(e,t){return t+"="+e});return 0<t.length&&(e+="?"+t.join("&")),e};function ea(){return y.compact([v.apiKey].concat(v.additionalApiKeys))}var ta=function(e){return e+="v"+dt,ia(Qo("log.gif",v.apiKey,{msg:e,version:dt}))};function na(e){try{var t=ko+"/data/errorlog?apiKey="+v.apiKey,n={error:e,version:"v"+dt,visitorId:E()},i=ra.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):oo.postJSON(t,n);return i.then(function(){I.info("successfully wrote error")},function(e){I.info("error writing error:"+e)})}catch(r){return I.info("Failed to write error to server using POST endpoint: "+r),ta("Failed to write error to server using POST endpoint: "+r)}}function ia(e){var t,n;return da()?(t=C.defer(),to(n=new Image,"load",t.resolve),to(n,"error",t.reject),n.src=e,t.promise):C.resolve()}function ra(e,t){t=y.extend({},{method:"GET",keepalive:!0},t=void 0===t?{}:t);return fetch(e,t)}function oa(e,t){return navigator.sendBeacon(e,t)}ra.supported=function(){try{return y.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(e){return!1}};var aa=!(oa.supported=function(){return y.isFunction(navigator.sendBeacon)}),sa=function(){var e=da();return aa=!0,e&&S["transmit:locked"].trigger(),"Pendo Agent locked. No more events will be written."},da=function(){return!aa&&qo},ua=function(e,t){try{return new RegExp("(\\s|^)"+t+"(\\s|$)").test(ha(e))}catch(n){return!1}},ca=function(e,t){try{var n;ua(e,t)||(n=gt.call(ha(e))+" "+t,pa(e,n))}catch(i){}},la=function(e,t){try{var n,i;ua(e,t)&&(n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=ha(e).replace(n," "),pa(e,i))}catch(r){}},pa=function(e,t){y.isString(e.className)?e.className=t:e.setAttribute("class",t)},ha=function(e){try{var t=e.className;return(y.isString(t)||!fe(t)?t:e.getAttribute("class"))||""}catch(n){return""}},fa=function(e){e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});return e=e.substr(0,1).toLowerCase()+e.substr(1)},ga={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},ma=function(e,t){t=function(e){if(y.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);va(e,t)},va=function(a,e){y.each(e,function(e,t){if(""!==(t=gt.call(t))){var n=fa(t),i=(!y.isNumber(e)||isNaN(e)||ga[n]?y.isString(e)||(e=""+e):e+="px",e.indexOf("!important"));if(-1!==i)try{var r=gt.call(r.substring(0,i));a.style.setProperty(t,r,"important")}catch(o){a.style.cssText+=";"+t+":"+e}else try{a.style[n]=gt.call(e)}catch(o){I.info("failed to set style: "+t+" with value "+e)}}})},ya=function(){return tt()?{width:document.documentElement.offsetWidth||0,height:document.documentElement.offsetHeight||0}:{width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}},ba=function(e){var t=ya(),n=zo(),i=Zo();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function Ia(t){return y.each(["left","top","width","height"],function(e){t[e]=Math.round(t[e])}),t}function wa(e){var t;return function(e){var t,n=e;for(;n;){if(!(t=f(n)))return;if("fixed"===t.position)return!isNaN(Be)||!ka(n);n=n.parentNode}return}(e)?((t=Jo(e)).fixed=!0,Ia(t)):Ia(Xo(e,Ea()))}var Ca=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},Sa=y.compose(function(e){return Array.prototype.slice.call(e)},function(e,t){try{return Xr(e,t)}catch(n){return ta("error using sizzle: "+n),t.getElementsByTagName(e)}}),Aa=function(e,t){try{return t.children.length+t.offsetHeight+t.offsetWidth-(e.children.length+e.offsetHeight+e.offsetWidth)}catch(n){return I.info("error interrogating body elements: "+n),ta("error picking best body:"+n),0}},Ea=function(e){e=e||document;try{var t=Sa("body",e);return t&&1<t.length?(t.sort(Aa),t[0]||e.body):e.body&&e.body.tagName&&"body"!==e.body.tagName.toLowerCase()?e.documentElement:e.body}catch(n){return ta("Error getting body element: "+n),e.body}};function Ta(e){if(e&&e.parentNode){var t=e.parentNode,n=e;if(!t)return[];var i=[];if(t.childNodes)for(var r=0;r<t.childNodes.length;r++){var o=t.childNodes[r];1===o.nodeType&&o!==n&&i.push(o)}return i}return[]}function _a(e){if(Xr.contains(document,e))return!0;for(;e&&e.parentNode||_i.isElementShadowRoot(e);)e=_i.getParent(e);return e===document}var xa=function(e){var t=Ea();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=wa(e)).right=t.left+t.width,t.bottom=t.top+t.height,t)},Ra=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function ka(e){for(var t=e&&e.parentNode;t;){if(jo(f(t),ze))return 1;t=t.parentNode}}var Oa=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if(_a(e))for(i=e;i;)if(_i.isElementShadowRoot(i))i=i.host;else{if(i===r)return null;if(!(o=f(i)))return null;var o,a=o.position;if(i!==e&&t.test(o.overflow+o.overflowY+o.overflowX))return i.parentNode!==r||(o=f(r))&&!y.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&ka(i))i=Yo(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function Na(e,t){e=f(e);return t=t||/(auto|scroll|hidden)/,!e||"inline"===e.display?Ma.NONE:t.test(e.overflowY)&&t.test(e.overflowX)?Ma.BOTH:t.test(e.overflowY)?Ma.Y:t.test(e.overflowX)?Ma.X:t.test(e.overflow)?Ma.BOTH:Ma.NONE}var Ma={X:"x",Y:"y",BOTH:"both",NONE:"none"};function La(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&_a(e)}function Fa(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 Pa(e){if(e){if(y.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function Ga(e,t,n){for(var i=[],r=Pa(document.documentElement),o=Pa(Oa(t)),a=0;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=Pa(Oa(o)),a++;return function(){y.each(y.compact(i),function(e){e()}),i.length=0}}var Da=['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 Ba(e,t,n){var i=xa(t),t=Na(t,n);if(t!==Ma.BOTH||Ra(e,i)){if(t===Ma.Y){if(e.top>=i.bottom)return;if(e.bottom<=i.top)return}if(t===Ma.X){if(e.left>=i.right)return;if(e.right<=i.left)return}return 1}}function Wa(e){if(e){if(La(e))return 1;var t=xa(e);if(0!==t.width&&0!==t.height){var n=f(e);if(!n||"hidden"!==n.visibility){for(var i=e;i&&n;){if("none"===n.display)return;if(parseFloat(n.opacity)<=0)return;n=f(i=i.parentNode)}return 1}}}}function $a(e,t){if(!Wa(e))return!1;if(!La(e)){for(var n=xa(e),i=Oa(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!Ba(n,i,t))return!1;i=Oa(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=Zo(),e+=zo()),o<=0||e<=0)return!1}}return!0}function Ua(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,d=xa(e),u=Oa(e,s);if(!Wa(e))return!1;for(;u;){if(t=xa(u),(o=Na(u,a))!==Ma.NONE&&(i=n=0,o!==Ma.Y&&o!==Ma.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!==Ma.X&&o!==Ma.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))),!Ba(d,u,s))return!1;u=Oa(u,s)}return!0}function ja(e){for(var t,n,i,r,o,a=/(auto|scroll)/,s=Ea(),d=Oa(e,a);d&&d!==s;)t=xa(e),n=xa(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),y.isFunction(d.scrollBy)?d.scrollBy(r,i):(d.scrollTop+=i,d.scrollLeft+=r),d=Oa(d,a)}lr={};function za(t){if(!t)return!1;if(t===window.location.origin)return!0;if(t===Fo())return!0;if(t===Go())return!0;var e=[/^https:\/\/(app|via|adopt)(\.eu|\.us|\.jpn|\.hsbc|\.au)?\.pendo\.io$/,/^https:\/\/((adopt\.)?us1\.)?(app|via|adopt)\.pendo\.io$/,/^https:\/\/([0-9]{8}t[0-9]{4}-dot-)pendo-(io|eu|us1|jp-prod|hsbc|au)\.appspot\.com$/,/^https:\/\/hotfix-(ops|app)-([0-9]+-dot-)pendo-(io|eu|us1|jp-prod|hsbc|au)\.appspot\.com$/,/^https:\/\/pendo-(io|eu|us1|jp-prod|hsbc|au)-static\.storage\.googleapis\.com$/,/^https:\/\/(us1\.)?cdn(\.eu|\.jpn|\.hsbc|\.au)?\.pendo\.io$/],n=(pt()||(e=e.concat([/^https:\/\/([a-zA-Z0-9-]+\.)*pendo-dev\.com$/,/^https:\/\/([a-zA-Z0-9-]+-dot-)?pendo-(dev|test|io|us1|jp-prod|hsbc|au|batman|magic|atlas|wildlings|ionchef|mobile-guides|mobile-hummus|mobile-fbi|mobile-plat|eu|eu-dev|apollo|security|perfserf|freeze|armada|voc|mcfly|calypso|dap|scrum-ops|ml|helix|uat)\.appspot\.com$/,/^https:\/\/via\.pendo\.local:\d{4}$/,/^https:\/\/adopt\.pendo\.local:\d{4}$/,/^https:\/\/local\.pendo\.io:\d{4}$/,new RegExp("^https://pendo-"+it+"-static\\.storage\\.googleapis\\.com$")])),m.get("adoptHost"));if(n&&t==="https://"+n)return!0;return!!y.contains(m.get("allowedOriginServers",[]),t)||y.any(e,function(e){return e.test(t)})}function Za(e){var t;if(y.isString(e))return t=(t=xo(e).substring(1))&&t.length?No(t):{},e=y.last(y.first(e.split("?")).split("/")).split("."),{filename:y.first(e),extension:e.slice(1).join("."),query:t}}function Va(e,t){var n;m.get("guideValidation")&&et.sri&&(n=Za(t),t=y.find(["sha512","sha384","sha256"],function(e){return!!n.query[e]}))&&(e.integrity=t+"-"+(t=n.query[t],y.isString?t.replace(/-/g,"+").replace(/_/g,"/"):t),e.setAttribute("crossorigin","anonymous"))}lr.$={findOrCreate:function(e){return 0<this.length?this:R(e)},find:function(e){var t=R();return t.context=this.context,this.each(function(){R(e,this).each(function(){t[t.length++]=this})}),t},each:function(e){for(var t=0,n=this.length;t<n;++t)e.call(this[t],this[t],t);return this},html:function(e){return e===undefined?this.length?this[0].innerHTML:this:this.each(function(){this.innerHTML=e})},text:function(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(){ma(this,{"white-space":"pre-wrap"}),t?this.innerText=e:this.textContent=e})},addClass:function(e){return e=e.split(/\s+/),this.each(function(t){y.each(e,function(e){ca(t,e)})})},removeClass:function(e){return e=e.split(/\s+/),this.each(function(t){y.each(e,function(e){la(t,e)})})},hasClass:function(e){e=e.split(/\s+/);var n=!0;return 0!==this.length&&(this.each(function(t){y.each(e,function(e){n=n&&ua(t,e)})}),n)},toggleClass:function(e){return e=e.split(/\s+/),this.each(function(t){y.each(e,function(e){(ua(t,e)?la:ca)(t,e)})})},css:function(e){return this.each(function(){ma(this,e)}),this},appendTo:function(e){return R(e).append(this),this},append:function(e){var t=this;return R(e).each(function(){t.length&&t[0].appendChild(this),_a(this)&&y.each(Xr("script",this),Fa)}),t},prependTo:function(e){return R(e).prepend(this),this},prepend:function(e){var t,n;return this.length&&(t=this[0],n=t.childNodes[0],R(e).each(function(){n?R(this).insertBefore(n):R(this).appendTo(t)})),this},getParent:function(){var e=R(this)[0];if(e&&e.parentNode)return R(e.parentNode)},insertBefore:function(e){e=R(e)[0];e&&e.parentNode&&(e.parentNode.insertBefore(this[0],e),_a(document))&&y.each(Xr("script",this[0]),Fa)},remove:function(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),this},attr:function(e,t){return y.isObject(e)?(this.each(function(){y.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:function(e,t){for(var n=this[0];n&&!Xr.matchesSelector(n,e);)if((n=Ti(n))===document||t&&Xr.matchesSelector(n,t))return R();return R(n)},eq:function(e){return R(this[e])},height:function(e){if(this.length)return e===undefined?this[0].offsetHeight:(this[0].style.height=e+"px",this)},width:function(e){if(this.length)return e===undefined?this[0].offsetWidth:(this[0].style.width=e+"px",this)},focus:function(){return this.each(function(){y.isFunction(this.focus)&&this.focus()})}},y.extend(R,{data:qr,event:ro,removeNode:Ca,getClass:ha,hasClass:ua,addClass:function(e,t){var n;"string"==typeof e?(n=R(e),y.map(n,function(e){ca(e,t)})):ca(e,t)},removeClass:function(e,t){var n;"string"==typeof e?(n=R(e),y.map(n,function(e){la(e,t)})):la(e,t)},getBody:Ea,getComputedStyle:f,getClientRect:xa,intersectRect:Ra,getScrollParent:Oa,isElementVisible:$a,scrollIntoView:ja,getRootNode:Pa}),y.extend(R.prototype,ro.$,lr.$);var Ya,Ha=function(e){var t=0===m.get("allowedOriginServers",[]).length,n=Bo();return!(!t&&!n&&(t=it,n=J,!/prod/.test(t)||ne(n)))||za(e)},Ka=function(e,t,n){void 0===n&&(n=!1);try{var i,r="text/css",o="text/javascript";if(y.isString(e)&&(e={url:e}),!Ha((u=e.url,new Ci(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,Va(d,e.url),a=d}else{if(Tt())return(i=document.createElement("script")).addEventListener("load",function(){t(),Ca(i)}),i.type=o,i.src=K(v).createScriptURL(e.url),Va(i,e.url),document.body.appendChild(i),{};(i=document.createElement("script")).type=o,i["async"]=!0,i.src=K(v).createScriptURL(e.url),Va(i,e.url),a=i,t=y.wrap(t,function(e,t){R.removeNode(i),t?n&&e(t):e.apply(this,y.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;fe(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||ta("Failed to load "+t+" within 10 seconds")},1e4))},Ja=function(e){var t=JSON.parse(e.data),n=e.origin;I.debug(v.app_name+": Message: "+JSON.stringify(t)+" from "+n),ps(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},qa=function(e){es(rs)(Qa(e))},Qa=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};I.debug("Invalid Message: Missing 'type' in data format")}}catch(r){}};function es(t){return function(e){if(e&&za(e.origin))return t.apply(this,arguments)}}var ts={disconnect:function(e){},module:function(e){ls(e.moduleURL)},debug:function(e){gs(Ja)}},ns=function(e,t){ts[e]=t},is=function(e){delete ts[e]},rs=function(e){var t;e&&(t=e.data)&&fe(ts[t.type])&&ts[t.type](t,e)},os={},as=function(e){if(os[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},ss=function(e){return fe(os[e])},ds=function(e){if(os)for(var t in os)if(0<=t.indexOf(e))return t;return null},us=[],cs=function(){var e;us.length<1||(e=us.shift(),ss(e))||Ka(e,function(){as(e),cs()})};var ls=function(e){var t,n,i;e=e.replace(/^[a-zA-Z-:]*\/\//,"https://"),t=e,n={"/js/lib/ckeditor/ckeditor.js":1},y.each(["depres.js","tether.js","sortable.js","selection.js","selection.css","html2canvas.js","ckeditor/ckeditor.js"],function(e){n["/modules/pendo.designer/plugins/"+e]=1,n["/engage-app-ui/assets/classic-designer/plugins/"+e]=1}),i=(t=t.replace(/^https:\/\//,"")).substring(0,t.indexOf("/")),t=t.substring(t.indexOf("/")),za("https://"+i)&&n[t]&&(us.push(e),1<us.length||cs())},ps=function(e,t,n){var i,r=y.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=Ya||fs(),n="*"),t.guid=r,e&&y.isFunction(e.postMessage)&&(i=JSON.stringify(t),e.postMessage(i,n))}catch(o){t=o&&o.message||"";I.info("Failed to postMessage: "+t)}return r},hs=function(){return window!=window.top},fs=function(){var e=new RegExp("^"+Yt(ko).replace(/^https?:/,"https?:")),t=m.get("forceParentDesigner");return!pt()&&t||e.test(location.href)?window.parent:window.top},gs=function(e){var t;return fe(window.addEventListener)&&y.isFunction(window.addEventListener)&&(t=es(e),window.addEventListener("message",t,!1)),function(){fe(window.removeEventListener)&&y.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},ms=y.memoize(function(){return m.get("restrictP1Access")}),vs=[],ys=[],bs=12e4,Is=16,ws=1900,Cs=65536,Ss=function(e){return!(!e||""===e)},As=function(){return Lo.get()},Es={flush:y.noop,flushBy:y.noop,flushEvents:Rs,flushTrackEvents:Rs,flushSilos:Rs,flushTrackEventSilos:Rs,flushBeacons:Rs,flushNow:Rs,flushLater:ks,flushEvery:Os,flushStop:Ns,beacons:[],silos:[],trackEventSilos:[],lock:sa,unlock:function(){if(!da())return Ms(),function(){var e=!da();return aa=!1,e&&S["transmit:unlocked"].trigger(),"Pendo Agent unlocked. Events will be written."}()}},Ts=[];function _s(e){Ts.push(e)}function xs(e){e=Ts.indexOf(e);0<=e&&Ts.splice(e,1)}function Rs(e,t){try{y.each(Ts,function(e){e.flush&&e.flush(t)})}catch(n){I.critical("unhandled error while flushing event cache",{error:n})}}function ks(e){return t=y.partial(Rs,!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 Os(e){var t;if(e=parseInt(e,10)||0,y.isObject(Os.intervals)||(Os.intervals={}),!Os.intervals[e])return t=window.setInterval(Rs,e),Os.intervals[e]=function(){clearInterval(t),delete Os.intervals[e]}}function Ns(){var e=y.values(Os.intervals).concat([Rs]);y.map(e,function(e){y.isFunction(e)&&e()})}function Ms(){y.each(Ts,function(e){e.clear&&e.clear()}),Ns()}function Ls(e){try{return window.TextDecoder?JSON.parse((new TextDecoder).decode((t=e.split(".")[1],t=atob(t),Uint8Array.from(t,function(e){return e.codePointAt(0)})))):JSON.parse(atob(e.split(".")[1]))}catch(n){return null}var t}function Fs(e,t){return t=t?t+": ":"",e.jwt||e.signingKeyName?e.jwt&&!e.signingKeyName?(I.debug(t+"The jwt is supplied but missing signingKeyName."),!1):e.signingKeyName&&!e.jwt?(I.debug(t+"The signingKeyName is supplied but missing jwt."),!1):(e=e.jwt,!(!y.isString(e)||!/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/.test(e))||(I.debug(t+"The jwt is invalid."),!1)):(I.debug(t+"Missing jwt and signingKeyName."),!1)}Ps=null;var Ps,Gs={set:function(e){Ps=JSON.parse(JSON.stringify(e||{}))},get:function(){return null!==Ps?Ps:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!m.get("enableSignedMetadata")&&(n=Fs(e,t),m.get("requireSignedMetadata")&&!n?(I.debug("Pendo will not "+t+"."),!1):n?Ls(e.jwt):void I.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}},Ds=100,Bs=(Ws.prototype.isEmpty=function(){return this.queue.length<=0},Ws.prototype.stop=function(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.stopped=!0,clearTimeout(this.timer),delete this.timer},Ws.prototype.start=function(){this.stopped=!1},Ws.prototype.push=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.queue).push.apply(e,t),this.next()},Ws.prototype.next=function(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)},Ws.prototype.incrementFailure=function(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),t},Ws.prototype.pass=function(e,t){void 0===t&&(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()},Ws.prototype.fail=function(e,t){void 0===t&&(t=!0),this.unloads["delete"](e),this.pending["delete"](e);var n=this.incrementFailure(e);!this.stopped&&t&&(n>=this.maxFailures&&(this.onTimeout&&this.onTimeout(),this.pass(e,!1)),this.retryLater(1e3*Math.pow(2,Math.min(n-1,6))))},Ws.prototype.retryLater=function(e){var t=this;this.timer=Dt(function(){delete t.timer,t.next()},e)},Ws.prototype.failed=function(){return 0<this.failures.get(this.queue[0])&&null!=this.timer},Ws.prototype.send=function(e,t,n){var i=this;return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(function(){return i.pass(e,n)},function(){return i.fail(e,n)})},Ws.prototype.drain=function(e,t){var n;if(void 0===t&&(t=!0),(n=this.queue).push.apply(n,e),this.failed())return Ft.reject();for(var i=[],r=0,o=this.queue;r<o.length;r++){var a=o[r];this.pending.has(a)?this.retryPending&&t&&!this.unloads.has(a)&&(this.incrementFailure(a),i.push(this.send(a,t,!1))):i.push(this.send(a,t,!1))}return Ft.all(i)},Ws);function Ws(e,t){void 0===t&&(t=Ds),this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.sendFn=e,this.maxFailures=t}var $s="_PENDO_UNNAMED_",Us=5;function js(e,t,n,i,r,o){var a,s;a=m.get("dropAnonymous"),s=ii(E()),!qo||a&&s||(a=t,s=n,t=i,n=r,i=o,s={type:r=e,browser_time:b(),visitor_id:E({generate:!0}),account_id:mi(),url:Lo.externalizeURL(s),props:a||{},eventProperties:n},s=Gn.addTracerIds(s),"track"===r&&(s.track_event_name=t||$s),S.eventCaptured.trigger(s,i),Ss((o=s).url)&&function(e){if(m.get("freeNPSData"))return y.contains(zs,e.type);return 1}(o)&&("track"===e?Ad.push(o):Sd.push(function(e,t){try{if(!e.getters["monitoring/shouldFlush"]())return t;var n=e.getters["monitoring/payload"]();e.dispatch("monitoring/flush"),y.isEmpty(n)||(t.ops=n)}catch(i){}return t}(A,o))))}var zs=["load","meta","identify"];function Zs(){var r=y.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)}}var Vs=0;function Ys(e,t){e.sequence=Vs++,t(e)}function Hs(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 Ks(e,t){return Bo()?Xs("account_id")(e,t):t(e)}function Xs(s){return function(e,t){if(!e.length)return t(e);for(var n=y.get(e[0],s),i=!0,r=1;r<e.length;r++)if(n!==y.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 Js(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function qs(e,t,n){t=n[t-1]||y.last(n);return Math.ceil(e/t)}function Qs(e,t){for(var n,i=0,r=(y.isFunction(t.overhead)?t.overhead:y.constant(0))(),o=0;o<e.length;++o){if(qs(n=Js(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if(qs(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(qs(i+(n=Js(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return-1}function ed(){var e=Gs.get();return y.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}function td(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=v.squeezeAndCompress(e.slice()),e.JZB.length<=Cs)||1===e.length?t(e):(n=e.length/2,td(e.slice(0,n),t),void td(e.slice(n),t))}function nd(e,t){da()&&t(e)}function id(){return function(e,t){1===e.length&&e.JZB.length>Cs?(I.debug("Couldn't write event"),ta("Single item is: "+e.JZB.length+". Dropping."),na(e.JZB)):t(e)}}function rd(e,t){return Qo(t.beacon+".gif",e,y.extend({v:dt,ct:b(),jzb:t.JZB},t.params,t.auth))}function od(e,t){return Qo(t.beacon+".gif",e,y.extend({v:dt,ct:b(),s:t.JZB.length},t.params))}function ad(i){return function(e,t){e.params=y.extend({},e.params,i.params),e.beacon=i.beacon,e.eventLength=e.JZB.length;var n=Gs.get();y.isEmpty(n)||(e.auth=n,e.eventLength+=n.jwt.length,e.eventLength+=n.signingKeyName.length),t(e)}}function sd(e,t){var n=Bo(),i=y.first(e),i=y.get(i,"account_id");n&&i&&(e.params=y.extend({},e.params,{acc:wt(i)})),t(e)}function dd(e,t){var n=y.first(e),n=y.get(n,"props.source");n&&(e.params=y.extend({},e.params,{source:n})),t(e)}function ud(e){return JSON.stringify(y.extend({events:e.JZB},e.auth))}function cd(e){return e.status<200||300<=e.status?C.reject(new Error("received status code ".concat(e.status,": ").concat(e.statusText))):C.resolve()}function ld(e,t){return ra(rd(e,t)).then(cd)}function pd(e,t){return fetch(od(e,t),{method:"POST",keepalive:!0,body:ud(t),headers:{"Content-Type":"application/json"}}).then(cd)}function hd(e,t){var n=ud(t);return oa(od(e,t),n)?C.resolve():C.reject()}function fd(n){return function(e,t){return t.JZB?t.eventLength<=ws&&!m.get("sendEventsWithPostOnly")?n.preferFetch&&!t.auth&&ra.supported()?ld(e,t):t.auth?oo({method:"GET",url:rd(e,t)}):ia(rd(e,t)):n.allowPost&&t.eventLength<=Cs?ra.supported()?pd(e,t):oa.supported()?hd(e,t):oo({method:"POST",url:od(e,e=t),data:ud(e),headers:{"Content-Type":"application/json"}}):C.resolve():C.resolve()}}function gd(n){return function(e,t){if(t.JZB){if(t.eventLength<=ws&&!m.get("sendEventsWithPostOnly",!1)){if(!t.auth&&ra.supported())return ld(e,t);if(et.msie<=11)return oo({method:"GET",url:rd(e,t),sync:!0})}if(t.eventLength<=Cs&&n.allowPost){if(ra.supported())return pd(e,t);if(oa.supported())return hd(e,t);if(et.msie<=11)return oo({method:"POST",url:od(e,e=t),data:ud(e),sync:!0,headers:{"Content-Type":"application/json"}})}}return C.resolve()}}function md(e){return Zs(nd,Ks,td,(t=e.shorten,t=y.defaults(t||{},{fields:[],siloMaxLength:Cs}),function(n,e){var i;1===n.length&&n.JZB.length>t.siloMaxLength&&(i=n[0],I.debug("Max length exceeded for an event"),y.each(t.fields,function(e){var t=i[e];t&&2e3<t.length&&(I.debug("shortening "+t+" and retrying"),i[e]=t.substring(0,2e3),delete n.JZB)})),e(n)}),td,id(),ad(e),sd,dd);var t}yd.prototype.isEmpty=function(){return y.all(this.queues,function(e){return e.isEmpty()})},yd.prototype.stop=function(){y.each(this.queues,function(e){return e.stop()})},yd.prototype.push=function(){var t=y.toArray(arguments);y.each(this.queues,function(e){return e.push.apply(e,t)})},yd.prototype.drain=function(){var t=y.toArray(arguments);return C.all(y.map(this.queues,function(e){return e.drain.apply(e,t)}))};var vd=yd;function yd(e){this.queues=e}function bd(t,r,o){r=r||fd(t),o=o||gd(t);e=t;var e=y.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey),e=y.map(e,function(i){var e=new Bs(function(e,t,n){return n&&(e.params=y.extend({},e.params,{rt:n})),(t?o:r)(i,e)});return e.onTimeout=function(){A.commit("monitoring/incrementCounter",t.beacon+"GifFailures")},e.retryPending=!0,e});return new vd(e)}function Id(e,t){var n=m.get("analytics.excludeEvents");0<=y.indexOf(n,e.type)||t(e)}Td.prototype.pause=function(e){var t=this,n=(void 0===e&&(e=1e4),y.uniqueId()),i=this.locks,r=(i[n]=1,function(){i[n]&&(clearTimeout(o),delete i[n],t.flush())}),o=Dt(r,e);return r},Td.prototype.push=function(e){var t=this;this.packageSilos(e,function(e){t.silos.push(e)})},Td.prototype.clear=function(){this.cache.length=0,this.silos.length=0,this.sendQueue.stop()},Td.prototype.flush=function(e){var t,e=void 0===e?{}:e,n=e.unload,n=void 0!==n&&n,e=e.hidden,e=void 0!==e&&e,i=this.cache,r=this.silos;0===i.length&&0===r.length&&this.sendQueue.isEmpty()||y.isEmpty(this.locks)&&(r.push(i.slice()),i.length=0,i=r.slice(),r.length=0,t=[],y.each(i,function(e){this.processSilos(e,function(e){t.push(e)})},this),n||e?this.sendQueue.drain(t,n):(r=this.sendQueue).push.apply(r,t))};var wd,Cd,Sd,Ad,Ed=Td;function Td(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.sendQueue=bd(e)}function _d(e){var i,r,t=md(e),n=Zs((r=e.beacon,function(e,t){var n=m.get("excludeNonGuideAnalytics");"ptm"===r&&n||t(e)}),Id,Ys,Hs(e.cache),(i={overhead:ed,lower:m.get("sendEventsWithPostOnly")?Cs:ws,upper:Cs,compressionRatio:[.5*Us,.75*Us,Us]},function(e,t){for(var n=Qs(e,i);0<=n;)t(e.splice(0,Math.max(n,1))),n=Qs(e,i)}));return new Ed(y.extend({processSilos:t,packageSilos:n},e))}var xd=wi(function(e){var t,n,i;if((e=e||Lo.get())&&e!==xd.lastUrl)return xd.lastUrl=e,t=-1,ms()||hs()&&(i=fs(),ps(i,{type:"load",url:location.toString()},"*")),I.debug("sending load event for url "+e),t={load_time:t="undefined"!=typeof performance&&y.isFunction(performance.getEntriesByType)&&!y.isEmpty(performance.getEntriesByType("navigation"))?(i=performance.getEntriesByType("navigation")[0]).loadEventStart-i.fetchStart:t},hs()&&(t.is_frame=!0),"*"!==(n=Ht())&&(t.allowed_storage_keys=y.keys(n)),js("load",t,e),ks(),S.urlChanged.trigger(),!0});function Rd(e){return"hidden"===e.visibilityState}xd.reset=function(){xd.lastUrl=null};var kd="visibilitychange",Od="pagehide",Nd="unload";function Md(){this.serializers=y.toArray(arguments)}function Ld(e,t){return e.tag=_i.isElementShadowRoot(t)?"#shadow-root":t.nodeName||"",e}function Fd(e){return fe(e)?""+e:""}function Pd(e,t){return e.id=Fd(t.id),e}function Gd(e,t){return e.cls=Fd(R.getClass(t)),e}y.extend(Md.prototype,{add:function(e){this.serializers.push(e)},remove:function(e){e=y.indexOf(this.serializers,e);0<=e&&this.serializers.splice(e,1)},serialize:function(n,i){return n?(i=i||n,y.reduce(this.serializers,function(e,t){return t.call(this,e,n,i)},{},this)):{}}});var Dd=256,Bd=64,Wd={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 $d=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),To((i=i)&&0===i.indexOf("data:")?(I.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?y.isString(e)?gt.call(e).substring(0,Dd):e:null):null};function Ud(t){var e,n,i;return y.isRegExp(t)&&y.isFunction(t.test)?function(e){return t.test(e)}:y.isArray(t)?(e=y.map(y.filter(t,y.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 y.any(e,function(e){return e.test(t)})}):y.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)}):y.constant(!1)}function jd(e,t,n,i){try{var r,o=y.indexBy(t),a=y.filter(y.filter(e,function(e){return n(e.nodeName)||o[e.nodeName]}),function(e){return!i(e.nodeName)});return a.length<=Bd?y.pluck(a,"nodeName"):(r=y.groupBy(e,function(e){return o[e.nodeName]?"defaults":y.isString(e.value)&&e.value.length>Dd?"large":"small"}),y.pluck([].concat(y.sortBy(r.defaults,"nodeName")).concat(y.sortBy(r.small,"nodeName")).concat(y.sortBy(r.large,"nodeName")).slice(0,Bd),"nodeName"))}catch(s){return I.error("Error collecting DOM Node attributes: ".concat(s)),[]}}function zd(t,n){var e=Ud(m.get("htmlAttributes")),i=Ud(m.get("htmlAttributeBlacklist")),r=(i("title")||(t.title=$d(n,"title","string")),(t.tag||"").toLowerCase()),r=("input"===r&&(r+='[type="'+n.type+'"]'),t.attrs={},jd(n.attributes,Wd[r]&&Wd[r].attr,e,i));return y.each(r,function(e){t.attrs[e.toLowerCase()]=$d(n,e)}),t}function Zd(e,t){var n;return t.parentNode&&t.parentNode.childNodes&&(n=y.chain(t.parentNode.childNodes),e.myIndex=n.indexOf(t).value(),e.childIndex=n.filter(function(e){return e.nodeType==$o}).indexOf(t).value()),e}function Vd(i,e){var r;return m.get("siblingSelectors")&&e.previousElementSibling&&(r="_pendo_sibling_",this.remove(Vd),e=this.serialize(e.previousElementSibling),this.add(Vd),i.attrs=i.attrs||{},y.each(e,function(e,t){var n={cls:"class",txt:"pendo_text"}[t]||t;y.isEmpty(e)||(y.isObject(e)?y.each(e,function(e,t){e&&!y.isEmpty(e)&&(i.attrs[r+n+"_"+t]=e)}):i.attrs[r+n]=e)})),i}var Yd=new Md(Ld,Pd,Gd,zd,Zd,Vd),Hd=function(e){return"BODY"===e.nodeName&&e===Ea()||null===e.parentNode&&!_i.isElementShadowRoot(e)},Kd="pendo-ignore",Xd="pendo-analytics-ignore",Jd=function(e){var t={},n=t,i=e,r=!1;if(!e)return t;do{var o=i,a=Yd.serialize(o,e)}while(r||!Et(a.cls,Kd)&&!Et(a.cls,Xd)||(r=!0),n.parentElem=a,n=a,(i=_i.getParent(o))&&!Hd(o));return r&&(t.parentElem.ignore=!0),t.parentElem},qd=["","left","right","middle"],rr=function(e){return e},s=function(e,t){return e[t]},Qd=[["button",function(e){return e.which||e.button},function(){return!0},function(e,t){return qd[t]}],["altKey",s,rr,rr],["ctrlKey",s,rr,rr],["metaKey",s,rr,rr],["shiftKey",s,rr,rr]],eu={click:function(e,t){for(var n=[],i=0;i<Qd.length;i++){var r=Qd[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}},tu=function(e){try{var t,n,i,r,o,a;R.data.get(e,"counted")||(R.data.set(e,"counted",!0),t=io(e),n=e.type,i={},(r=eu[n])&&(i=r(e,i)),R.data.get(e,"stopped")&&(i.stopped=!0),e.from&&y.isString(e.from)&&(i.from=e.from),(t=(s=t).nodeType===Wo?s.parentNode:s.nodeType===Uo?null:s.correspondingUseElement||s)?(o=Jd(t),y.extend(o,i),xd()&&Lo.startPoller(),o.ignore||(a=void 0,"click"===n&&(a=function(e){e=function(e){var n={};return{getEventProperties:function(){return n},addEventProperty:function(e,t){y.isString(e)&&!y.isUndefined(t)?n[e]=t:I.error("Failed to add click event property")},target:e}}(e),S.onClickCaptured.trigger(e),e=e.getEventProperties();if(!y.isEmpty(e))return e}(t)),js(n,{target:o},undefined,undefined,a,e),S.trigger("appUsage",o,e))):I.info("Invalid HTML target",{contexts:["event","dom","processing"]}))}catch(d){I.critical("pendo.io while handling event",{error:d})}var s};var nu=y.debounce(tu,5e3,!0),iu=function(e){var t,n,i,r=[],o=(y.contains(e=e||["click","focus","submit","change"],"change")&&(e=y.without(e,"change"),r.push(function(){nu.cancel()}),r.push(to(document,"change",nu,!0))),m.get("interceptElementRemoval")||m.get("syntheticClicks.elementRemoval")),a=m.get("syntheticClicks.targetChanged"),a=(r.push(function(t,e,n,i){var r,o,a=[],s=et.hasEvent("pointerdown"),d=s?"pointerdown":"mousedown",s=s?"pointerup":"mouseup",u=[],c={cloneEvent:function(e){e=R.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&&io(r)!==io(e)&&(o=!0,t(r))},click:function(e){r=null,o&&R.data.set(e,"ignore",!0),o=!1,n&&c.unwrap()},intercept:function(e){e=function(e){var t=[];for(;e&&!Hd(e);)t.push(e),e=e.parentNode;return t}(io(e));y.each(e,function(e){e=ru(e,c.remove);a.push(e)})},remove:function(){r&&(t(r),r=null),c.unwrap()},unwrap:function(){0<a.length&&(y.each(a,function(e){e()}),a=[])},teardown:function fy(){c.unwrap(),y.each(u,function(e){e()})}};e&&(u.push(to(document,d,c.down,!0)),u.push(to(document,s,c.up,!0)),u.push(to(document,"click",c.click,!0)));return c}(R.event.trigger,et.addEventListener,o,a).teardown),r.push((o=e,t=y.map(o,function(e){return l(document,e,tu,!0)}),function(){y.each(t,function(e){e()})})),r.push((n=function(e,t){t&&S.appUnloaded.trigger(),e&&S.appHidden.trigger()},m.get("preventUnloadListener")?((i=[]).push(to(document,kd,function(){Rd(document)&&n(!0,!1)})),i.push(to(window,Od,y.partial(n,!1,!0))),function(){return y.each(i,function(e){e()})}):to(window,Nd,y.partial(n,!0,!0)))),S.appHidden.on(function(){Rs(0,{hidden:!0})}),S.appUnloaded.on(function(){Rs(0,{unload:!0})}),m.get("interceptStopPropagation",!0)),o=m.get("interceptPreventDefault",!0);return a&&r.push(ou(window.Event,e)),o&&r.push(au(window.Event,["touchend"])),function(){y.each(r,function(e){e()})}};function ru(n,i){var e=["remove","removeChild"];try{if(!n)return y.noop;y.each(e,function(e){var t=n[e];if(!t)return y.noop;n[e]=y.wrap(t,function(e){return i&&i(),e.apply(this,y.toArray(arguments).slice(1))}),n[e]._pendoUnwrap=function(){if(!n)return y.noop;n[e]=t,delete n[e]._pendoUnwrap}})}catch(t){I.critical("ERROR in interceptRemove",{error:t})}return function(){y.each(e,function(e){if(!n[e])return y.noop;e=n[e]._pendoUnwrap;y.isFunction(e)&&e()})}}function ou(n,e){var t=["stopPropagation","stopImmediatePropagation"];try{if(!n||!n.prototype)return y.noop;var i=y.indexBy(e);y.each(t,function(e){var t=n.prototype[e];t&&(n.prototype[e]=y.wrap(t,function(e){var t=e.apply(this,arguments);return i[this.type]&&(R.data.set(this,"stopped",!0),R.event.trigger(this)),t}),n.prototype[e]._pendoUnwrap=function(){n.prototype[e]=t,delete n.prototype[e]._pendoUnwrap})})}catch(r){I.critical("ERROR in interceptStopPropagation",{error:r})}return function(){y.each(t,function(e){e=n.prototype[e]._pendoUnwrap;y.isFunction(e)&&e()})}}function au(t,e){try{if(!t||!t.prototype)return y.noop;var i=y.indexBy(e),n=t.prototype.preventDefault;if(!n)return y.noop;t.prototype.preventDefault=y.wrap(n,function(e){var t,n=e.apply(this,arguments);return i[this.type]&&((t=R.event.clone(this)).type="click",t.from=this.type,t.bubbles=!0,t.eventPhase=Qr,R.event.trigger(t)),n}),t.prototype.preventDefault._pendoUnwrap=function(){t.prototype.preventDefault=n,delete t.prototype.preventDefault._pendoUnwrap}}catch(r){I.critical("ERROR in interceptPreventDefault",{error:r})}return function(){var e=t.prototype.preventDefault._pendoUnwrap;y.isFunction(e)&&e()}}function l(e,t,n,i){return e&&t&&n?(i&&!et.addEventListener&&(i=!1),R.event.add(e,{type:t,handler:n,capture:i})):y.noop}function su(e,t,n,i){e&&t&&n&&(i&&!et.addEventListener&&(i=!1),R.event.remove(e,t,n,i))}var du=function(e){R.data.set(e,"pendoStopped",!0),e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1},uu=function(e,t){return"complete"!==(t=t||window).document.readyState?to(t,"load",e):(e(),y.noop)},k=[],cu=[],lu={},pu={};function hu(){return k}function fu(){return gu(k)}function gu(e){return y.filter(e,function(e){return!e.isFrameProxy})}function mu(e){y.isArray(e)?(k=e,S.guideListChanged.trigger({guideIds:y.pluck(e,"id")})):I.info("bad guide array input to `setActiveGuides`")}vu=[];var vu,yu={addGuide:function(e){var t;y.isEmpty(e)||(vu=vu.concat(e),y.each(vu,function(e){return e.hide&&e.hide()}),e=k,(t=y.difference(e,vu)).length<e.length&&(mu(t),A.dispatch("frames/changeGuideList",t)))}};function bu(t,n){return y.find(Su(),function(e){return y.get(e,t)===n})||null}function Iu(e){return bu("id",e)}function wu(e){return bu("name",e)}function Cu(e,t){return e&&e.id?(e=Iu(e.id)).findStepById(t):null}function Su(){var e=y.values(pu);return e.length?k.concat(y.flatten(e)):k}var Au="_pendo-guide-tt_",Eu="_pendo-guide-mobile-tt_",Tu=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},_u=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)},xu=function(e){return!!y.get(e,"attributes.form")};function Ru(){return"undefined"!=typeof selmo&&selmo.isPreviewing}function ku(){return!!(Ru()&&ya().width<=320)||et.isMobileUserAgent()}function Ou(){var e=Ou.attachPoint;if(null==e){var t=m.get("guides.attachPoint");if(y.isString(t)){try{e=Xr(t)[0]}catch(n){I.info('Error finding guide attach point "'+t+'"')}e=e||document.createElement("div")}else e=!!y.isFunction(t)&&t();Ou.attachPoint=e}return e||Ea()}var Nu=function(e){var t=lu[e.guideId];if(t){t=t.element();if(_a(t)&&t.id==="_pendo-badge_"+e.id)return t}},Mu=function(e){var t;return e?(t=e.getGuide(),t="building-block"===y.get(t,"attributes.type")||!_u(t),!e.overrideElement&&t&&(e.overrideElement=Nu(e)),e.targetElement=Lu(e),e.overrideElement||e.targetElement):(I.info("Can't get element for null step"),null)},Lu=function(e){e=e.elementPathRule||null,e=e?Xr(e):[Ea()];return 0===e.length?null:y.first(e)};function Fu(e){var t=y.get(e,"attributes.activation.selector");return t||e.steps[0].elementPathRule}function Pu(e,t,n){var i,r,o,e=wa(e),t=wa(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!==ba(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),y.contains([Ma.X,Ma.BOTH],i)&&(r.x=0);y.contains([Ma.Y,Ma.BOTH],i)&&(r.y=0);return r}(a,ya(),n,Na(Ea(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}function Gu(e,t,n,i,r){var o,a=y.toArray(arguments).slice(1),s=e.apply(this,a);return n||Pa(o=Ou())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function Du(){return A.getters["frames/isLeader"]()}function Bu(e){return A.dispatch("frames/updateFrameVisibility",{visibility:e})}Wu=Un.call({}),$u={validateGuide:1,validateLauncher:1,validateGlobalScript:1},Uu={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1},y.each(["ready","onClickCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","validateGuide","validateLauncher","validateGlobalScript"],function(t){Uu[t]&&S[t].on(function(e){return ju[t].apply(ju[t],e.data)}),Wu[t]=function(e){return y.isFunction(e)?Wu.on(t,e):Wu[$u[t]?"triggerAsync":"trigger"].apply(Wu,[t].concat(y.toArray(arguments)))}});var Wu,$u,Uu,ju=Wu;var zu={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:function(e,t,n){return t.ajax.get(e).then(function(e){t.guidesPayload(e.data),n()})},endpoint:function(){return"guide.json"},usesXhr:function(){return!0}};function Zu(e){e=Za(e);if(e){e=e.filename;if(e)return 54<e.length?e.substring(28,55):e}}Yu=Ju={failed:{},verified:{}},Ku=na,Xu=function(e){try{var t=[];return!zu.usesXhr()&&e.domJsonpUrl?t.push(ec(e,"domJsonpUrl")):zu.usesXhr()&&e.domUrl&&t.push(Qu(e,"domUrl")),e.contentUrlJs?t.push(ec(e,"contentUrlJs")):e.contentUrl&&t.push(ec(e,"contentUrl")),C.all(t)}catch(n){throw S.contentVerificationFail.trigger(e,n),n}},Hu=function(e){return Xu(e).then(y.noop,function(e){return/verify/.test(e)&&Ku(e),C.reject(e)})},Vu=function(t){return Yu.failed[t.id]?C.reject():Yu.verified[t.id]?C.resolve():Hu(t).then(function(){Yu.verified[t.id]=!0},function(e){return Yu.failed[t.id]=!0,C.reject(e)})};var Vu,Yu,Hu,Ku,Xu,Ju,qu={verify:function(e){return m.get("guideValidation")?Vu(e):C.resolve()},reset:function(){Ju.failed={},Ju.verified={}}};function Qu(e,t){var n,i=e[t];return y.isString(i)?(n=(e=e)[{domUrl:"domHash",domJsonpUrl:"domJsonpHash",contentUrl:"contentHash",contentUrlJs:"contentJsHash"}[t=t]]||Zu(e[t]),oo.get(i).then(function(e){var t;if("object"==typeof(e=e.data)&&(e=JSON.stringify(e)),(t=Y.create()).update(e),G.uint8ToBase64(t.digest())!==n)return C.reject('Unable to verify content at "'+i+'"')})):C.reject('unable to parse "'+i+'"')}function ec(e,t){var n=e[t];return et.sri&&/[?&]sha(256|384|512)=/.test(n)?C.resolve():Qu(e,t)}tc="allow",nc="deny",ic="pending",oc=function(){return 0<y.size(ju._handlers.validateGuide)},ac=function(e,n){var i=[];return y.each(e,function(e,t){n&&(t=n+"."+t),y.isObject(e)?y.each(ac(e,t),function(e){i.push(e)}):i.push([t,e])}),i};var tc,nc,ic,rc,oc,ac,sc={state:rc={},Step:function(e){var n=this;function i(e){return y.filter([["content",Zu(e.contentUrl)],["contentCss",Zu(e.contentUrlCss)],["contentJs",Zu(e.contentUrlJs)],["dom",Zu(e.domUrl)],["domJsonp",Zu(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=ac(t)).length&&(t=y.sortBy(t,function(e){return e[0]}),e.push(["variables",t])),e)},n},Guide:function(){return this.signature=function(){return y.map(this.steps,function(e){return e.signature()})},this},Launcher:function(){var n=this,i=!1,r=function(){return 0<y.size(ju._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-"+Ct(n.signature()),(t=rc[t])!==nc)&&(t!==tc?(i=!0,t=JSON.stringify(n.signature()),e="launcher-"+Ct(t),ju.validateLauncher(t).then(function(){rc[e]=tc},function(){rc[e]=nc}).then(function(){i=!1,n.render(),n.update(k)},function(){i=!1}),!1):void 0)}),n.signature=function(){var e=[],t=ac(this.data);return t.length&&(t=y.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(!oc())return C.resolve();try{return y.get(e,"attributes.resourceCenter.isTopLevel",!1)?(t=e,n=N.findResourceCenterModules(t,k),t=[t].concat(n),C.all(y.map(t,dc))):dc(e)}catch(i){throw S.contentValidationFail.trigger(e,i),i}var t,n},valid:function(e){return!oc()||!!(e=rc[e.guideId])&&e.status===tc},invalid:function(e){return!!oc()&&!!(e=rc[e.guideId])&&e.status===nc},reset:function(){rc={}}};function dc(i){var r=rc[i.id];return r||(r={},rc[i.id]=r),r.contentPromise||(r.contentPromise=i.fetchContent()),r.contentPromise.then(function(){var e=JSON.stringify(i.signature()),t=i.id+"-"+Ct(e),n=(r[t]||(r[t]={status:ic},r.status=ic),r[t].promise);return n||(n=ju.validateGuide(e,i).then(function(){r[t].status=tc,r.status=tc},function(e){return r[t].status=nc,r.status=nc,C.reject(e)}),r[t].promise=n),n})}function uc(e,t){var n=y.toArray(arguments).slice(2);return y.reduce(e,function(e,t){return t.apply(e,n)},t)}function cc(e){return y.isFunction(e.before)?e:uc(cc.behaviors,e)}function lc(e,t){return uc(lc.behaviors,e,t)}function pc(e){var t,n,i=m.getLocalConfig("contentHost");return i&&e?(t=new RegExp("(https:)?\\/\\/"+((t=it)===Le?"pendo-static":De(t))+"-\\d+\\.storage\\.googleapis\\.com","g"),n=new RegExp("(https:)?\\/\\/"+De(it)+"\\.storage\\.googleapis\\.com","g"),e.replace(t,i).replace(n,i).replace(new RegExp("(https:)?\\/\\/"+Yt(ot),"g"),i)):e}function hc(e){return m.getLocalConfig("contentHost")?JSON.parse(pc(JSON.stringify(e))):e}cc.behaviors=[],lc.behaviors=[];fc={},gc=y.compose(function(e){var t=function(){var e=Yt(m.getHostedConfig("contentHost"));if(e)return e+"*"}();return t&&!new RegExp(t).test(e)&&I.debug("Failed to verify URL: "+e+" vs "+t),e},pc),mc=[function(e,t,n){return t="var guide = pendo.findGuideById('".concat(t,"');\nvar step = guide && guide.findStepById('").concat(n,"');"),e.replace("<% if (typeof guide !== 'undefined') { %>\nvar guide = pendo.findGuideById('<%= guide.id %>');\nvar step = guide && guide.findStepById('<%= step.id %>');\n<% } %>",t)}];var fc,gc,mc,vc={load:function(t){try{var e=fc[t.id];if(e&&e.language!==t.language&&delete fc[t.id],!fc[t.id]){var n,i=[],r={deferred:{},language:t.language},o=!1;if(fc[t.id]=r,zu.usesXhr()&&t.domUrl?(r.deferred.domJson=C.defer(),oo.get(gc(t.domUrl)).then(function(e){r.domJson=hc(e.data);var e=e.data;e=e,y.isObject(e)&&e.hasOwnProperty("type")&&e.hasOwnProperty("children")&&e.hasOwnProperty("props")?r.deferred.domJson.resolve():(I.critical(new Error("Response from the guide was not in proper JSON format")),r.deferred.domJson.reject())})["catch"](function(e){I.critical(e),S.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=C.defer(),n=Ka(gc(t.domJsonpUrl),function(e){R.removeNode(n),e&&S.resourceFetchFail.trigger(t,e)},!0),i.push(r.deferred.domJson.promise),o=!0),t.contentUrlJs&&!m.get("preventCodeInjection")){r.deferred.content=C.defer();var a=Ka(gc(function(e){if(Tt()){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}(ft(n)));if(y.isString(n))return n+"/"+t.join("/")}return e}(t.contentUrlJs)),function(e){R.removeNode(a),e&&S.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise),t.contentUrlCss&&(r.deferred.css=C.defer(),Ka({url:gc(t.contentUrlCss),type:"text/css"},function(){r.deferred.css.resolve()}),i.push(r.deferred.css.promise))}else if(t.contentUrl&&!m.get("preventCodeInjection")){r.deferred.content=C.defer();var s=Ka(function(e,t){if(!y.isString(e))return e;var n=y.indexOf(e,"?");return n<0?e+t:e.substring(0,n)+t+e.substring(n)}(gc(t.contentUrl),".js"),function(e){R.removeNode(s),e&&S.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise)}else if(!o)return C.reject("fetchedDomContent is still false");r.deferred.promise=C.all(i).then(function(){return y.omit(r,"deferred")})}return fc[t.id].deferred.promise}catch(d){throw S.resourceFetchFail.trigger(t,d),d}},reset:function(){fc={}},guideContent:function(e,t,n,i,r){var o,a,s;y.isString(n)&&(o=n,a=e,s=t,n=y.reduce(mc,function(e,t){return t(e,a,s)},o),y.isFunction(i)||(o=n,i=/<%/.test(o)&&/%>/.test(o)?y.template(n):y.constant(n)),o=fc[e+t])&&o.deferred.content&&(o.content=n,o.template=i,o.script=r,o.deferred.content.resolve())},receiveDomStructureJson:function(e,t,n){(e=fc[e+t])&&e.deferred.domJson&&(e.domJson=hc(n),e.deferred.domJson.resolve())}},yc=(bc.state={},bc.queue=[],bc.pending=function(){return y.reduce(bc.state,function(e,t){return e+(t.loaded?0:1)},0)},bc.reset=function(){vc.reset(),bc.state={},bc.queue=[]},bc.prefetch=function(e){var t;return bc.hasContent(e)?y.get(bc.state[Ic(e)],"promise"):(t=C.defer(),bc.queue.push([t,e]),t.promise)},bc.processPrefetch=function(e){return void 0===e&&(e=10),bc.queue.length?(e=bc.queue.splice(0,Math.max(e-bc.pending(),0)),C.all(y.map(e,function(t){return bc.fetchContent(t[1]).then(function(e){t[0].resolve(e)})["catch"](function(e){t[0].reject(e)})}))):C.resolve()},bc.fetchContent=function(t){var e=Ic(t);if(!(i=bc.state[e])){var n,i={},r=t.getGuide();if(r.control)return C.resolve();r&&r.language&&(n=r.language);var r=t.guideId+t.id,o=y.extend({id:r,language:n,guideId:t.guideId},y.pick(t,"contentUrl","contentUrlCss","contentUrlJs","domJsonpUrl","domUrl","domHash","contentHash","contentJsHash"));i.promise=qu.verify(o).then(function(){return i.verified=!0,vc.load(o)}).then(function(e){return i.loaded=!0,e}),bc.state[e]=i}return i.promise.then(function(e){y.extend(t,e)})},bc.hasContent=function(e){return fe(e.content)||fe(e.domJson)},bc);function bc(n){var i=this,t=1;return(i.contentUrl||i.domJsonpUrl)&&(y.extend(i,{fetchContent:function(e){void 0===e&&(e=!1);return e?bc.prefetch(i):bc.fetchContent(i)}}),i.after("render",function(e){!function(e){var t=y.indexOf(n.steps,i);y.chain(n.steps).rest(t+1).first(e).each(function(e){y.isFunction(e.fetchContent)&&e.fetchContent()}).value()}(t)})),i}function Ic(e){var t=e.getGuide(),t=t&&t.language?t.language:"default";return e.id+"."+t}e=S.runtime,wc=[],Cc=Un.call({}),Sc={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}},e.on(function(e){var t,n=e.data[0];if(e.step=n,delete e.data,xc(e.type))return-1<y.indexOf(["beforeUnmount","unmounted"],e.type)&&(t="active"===(t=n).seenState?"hidden":t.seenState,e.reason=t,"unmounted"===e.type)&&Cc.trigger(t,e),t=Sc[e.type].type,Cc[t](e.type,e),"unmounted"===e.type?Cc.trigger("afterUnmounted",e):"beforeMount"===e.type&&_c(this,e,n),"triggerCancelable"!==t&&e.cancel&&delete e.cancel,e}),Rc.prototype.on=function(e,t){var n,i;xc(e)?(Sc[e].fromUnmount&&(t=y.once(t)),n=this.step,i=t,t=wi(t=function(e){if(e.step.id===n.id)return i(e);I.debug("called guide runtime callback on wrong step")}),Cc.on(e,t),this.purge=y.compose(this.purge,y.partial(Cc.off,e,t))):I.info("GUIDE-RUNTIME: Warning! Unregisterable event type "+e)};var wc,Cc,Sc,Ac={initialize:function(){var e=m.get("guides.globalScripts");y.each(e,Ac.addGlobalScript)},teardown:function(){y.each(wc,Ac.removeGlobalScript)},addGlobalScript:function(e){var t,n,i,r;t=e,(i=y.without(y.keys(t),"script","test","regex","beforeMount")).length&&(n=t.script,t.script=function(){if(y.each(i,function(e){xc(e)&&this.on(e,t[e])},this),y.isFunction(n))return n.apply(this,arguments)}),r=e=t,!y.isFunction(r.script)&&!y.isFunction(r.beforeMount)||r.test&&!y.isFunction(r.test)||r.regex&&!y.isRegExp(r.regex)?I.critical("Error adding invalid GlobalScript via API"):wc.push(e)},removeGlobalScript:function(e){0<=(e=y.indexOf(wc,e))&&wc.splice(e,1)},getContext:function(e){return new Rc(e)},runCustomScripts:function(i,r){y.each(Tc(i,r),function(e){try{var t=Ac.getContext(i);e.call(t,i,r)}catch(n){I.critical("Exception thrown running code block for: "+JSON.stringify({guideId:r.id,stepId:i.id}),{error:n})}})}};function Ec(e,n,i,r){return y.filter(e,function(e){if(y.isFunction(e[r])){if(y.isFunction(e.test))try{return e.test(n,i)}catch(t){return I.critical("Error in global script test code block",{error:t}),!1}return y.isRegExp(e.regex)?e.regex.test(i.name)||e.regex.test(n.name):!0}})}function Tc(e,t,n){var i=[];return"script"===(n=void 0===n?"script":n)&&y.isFunction(e.script)&&i.push(e.script),y.size(wc)&&(e=Ec(wc,e,t,n),y.each(e,function(e){i.push(e[n])})),i}function _c(n,i,r){var o=r.guide;o&&y.all(Tc(r,o,"beforeMount"),function(e){try{return e.call(n,i),!i.cancel}catch(t){return I.critical("Exception thrown running beforeMount for: "+JSON.stringify({guideId:o.id,stepId:r.id}),{error:t}),!1}})}function xc(e){return Sc[e]}function Rc(n){this.step=n,y.each(["read","write","clear"],function(t){this[t]=w[t],this[t+"ByGuide"]=function(){var e=y.first(arguments)+":"+y.get(n,"guide.id");return w[t].apply(this,[e].concat(y.rest(arguments)))}},this);var e=y.bind(function(e){this.step.id!==e.step.id?I.debug("aborting afterUnmounted b/c step ids don't match"):this.purge()},this);this.purge=y.partial(Cc.off,"afterUnmounted",e),Cc.on("afterUnmounted",e)}function kc(e){return e.props&&e.props.id&&0===e.props.id.indexOf("pendo-g-")?e:e.children?y.find(e.children,kc):void 0}function Oc(e,t){if(t(e))return e;if(e.children)for(var n=0;n<e.children.length;n++){var i=Oc(e.children[n],t);if(i)return i}return!1}function Nc(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=Nc(e,t.children[n]);if(i)return i}}var Mc={buildNodesFromTemplate:function(e,t,n,i,r){var o=i||k,a=r||v.BuildingBlockGuides.buildNodeFromJSON;switch(e){case"pendo_resource_center_module_list_item":return function(p,h,f,g){var e=p.templateChildren;return y.reduce(e,function(e,t,n){var i=N.findResourceCenterHomeView(f),r=y.find(f,function(e){return e.id===t.id});if(v.designer)r=t,i=y.find(f,function(e){return y.get(e,"attributes.resourceCenter.isTopLevel")});else{if(!r)return e;if(!r.hasResourceCenterContent)return y.each(r.children,function(e){e=Iu(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"]}),v.designer||d.actions.push(u),y.get(i,"attributes.notificationBubble")),c=y.get(i,"attributes.notifications"),u=(u&&c&&("AnnouncementsModule"===y.get(r,"attributes.resourceCenter.moduleId")&&(o=r.id),o="chat"===y.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=Oc(c,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-row")}))&&(s=y.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:Gt(Gt(Gt({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)),Oc(d=Fc(d,t,d.props.id,n),function(e){e=y.get(e,"props.class");return e&&0<=e.indexOf("_pendo-resource-center-module-list-item-text-container")})),i=Oc(d,function(e){e=y.get(e,"props.id");return e&&0<=e.indexOf("pendo-right-caret")}),l=Oc(d,function(e){e=y.get(e,"props.id");return e&&0<=e.indexOf("pendo-home-view-bubble-".concat(n))});return u&&(u.props["aria-hidden"]=!0,i)&&(i.props["aria-labelledby"]="".concat(u.props.id," ").concat(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 y.reduce(e,function(e,t,n){var i,r=Pc(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"},v.designer||i.actions.push(r),i=Fc(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;y.filter(r,function(e){return Pc(n,e)}).length?(e.children=y.filter(e.children,function(e){return"pendo_task_list_fallback_text"!==e.templateName}),function o(e,t){e.templateName&&(e.templateChildren=t);if(!e.children||!e.children.length)return;for(var n=0;n<e.children.length;n++)o(e.children[n],t)}(e,r)):e.children=y.filter(e.children,function(e){return"pendo_task_list_item"!==e.templateName&&"pendo_task_list_progress_bar"!==e.templateName});return N.updatePseudoStyleSelectors(e),[i(e,t,n)]}(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 y.reduce(e,function(e,t,n){var i,r,o,a=Pc(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"},v.designer||i.actions.push(r),r=a.getTotalSteps(),o=a.getSeenSteps(),a.isComplete()&&(o=r),a=parseInt(o/r*100,10),Oc(i,function(e){return e.svgWidgetId}).svgAttributes.fillCircle.percentComplete=a,t.hasOwnProperty("subtitle")?t.stepProgress=Lc(t.subtitle,{currentStep:o,totalSteps:r}):t.stepProgress="Step "+o+" of "+r,i=Fc(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=(y.forEach(r,function(e){e=Pc(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 Oc(e=Fc(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=y.reduce(e,function(e,t){t=Pc(n,t);return t&&t.steps&&t.steps.length?e.concat(t):e},[]);if(!y.every(e,function(e){e=e.steps[0];return!!yc.hasContent(e)}))return[];var t=N.getResourceCenter(),h=y.get(t,"attributes.notificationBubble");h&&(delete h.dir,"rtl"===l.props["data-localization-direction"])&&(h.dir="rtl");return y.map(e,function(e,t){var n,i,r,o,a,s,d,u="whatsnew"===y.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=cc(r=e),(d=n.steps[0]).render(),Ac.runCustomScripts(d,n),i="#"+(n=d.guideElement)[0].id+" h1::after { display:none; }",n[0].appendChild(document.createElement("style")).innerHTML=i,u&&((o=Gc(u)).props.style.top="20px"),!N.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=cc(t=e),s=t.steps[0],Ac.runCustomScripts(s,d),d=JSON.parse(JSON.stringify(s.domJson)),u.children=[d],r&&(a=Gc(r),d=Oc(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"),!N.hasAnnouncementBeenSeen(t)&&a&&(u.props["class"]+=" pendo-unseen-announcement",u.children.unshift(a)),delete u.templateName,(d=Nc("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():y.find(n,function(e){return e.id===t.guideId}),o=y.get(r,"attributes.dates."+r.language,!1);o=o?{showsAfter:o}:(o=y.get(r,"currentFirstEligibleToBeSeenAt")||y.get(r,"showsAfter")||y.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=Fc(r=JSON.parse(JSON.stringify(e)),o),[i(r,t,n)]}(t,n,o,a);default:return[]}},generateUnreadAnnouncementMiniBubble:Gc,getGuidesInResourceCenterModule:function(e,i){e=e.attributes.resourceCenter.children;return y.reduce(e,function(e,t,n){t=Pc(i,t);return t&&e.push(t),e},[])}};function Lc(e,n){return e.replace(/<%=\s*([A-Za-z_0-9$]+)\s*%>/gi,function(e,t){return y.isNull(n[t])||y.isUndefined(n[t])?e:n[t]})}function Fc(e,t,n,i){if(e.content&&(e.content=Lc(e.content,t)),e.props&&(e.props["aria-label"]&&(e.props["aria-label"]=t.ariaLabel?Lc(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++)Fc(e.children[r],t,n,i);return e}function Pc(e,t){e=y.find(e,function(e){return e.id===(t.id||t)});if(v.designer)return t;if(e){if(!e.ineligibleForRC)return e;e.control&&e.steps[0].onControlGuide("control")}}function Gc(e){var t={left:"0px"};return"rtl"===e.dir&&(t={right:"0px"}),{type:"div",children:[],props:{"class":"pendo-unread-announcement-mini-bubble",style:Gt(Gt({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 Dc={buildSvgNode:function(e,t){switch(e){case"onboardingProgressCircle":case"taskListProgressCircle":return Bc(t)}},createProgressCircleSvg:Bc};function Bc(e){var t,n,i,r,o,a,s;return We(9)?(n=(t=(t=e).svgAttributes).fillCircle.stroke,i=t.backgroundCircle.stroke,t=100<=(t.fillCircle.percentComplete||0),r=R(K(v).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=R(K(v).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=R(K(v).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 Wc=function(e,t){return e<t},$c=y.negate(Wc);function Uc(){var e=Ea();return Ho(e)?xa(e):((e=ya()).left=0,e.top=0,e.right=e.width,e.bottom=e.height,e)}function jc(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 zc(e){var t;if(e&&e.length)return t=Ho(Ea())?xa:Jo,(e=y.reduce(e,function(n,e){var i;return $a(e)?(i=t(e))?(y.each([["top",Wc],["right",$c],["bottom",$c],["left",Wc]],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 Zc(e,t){var n=Uc(),e=zc(e)||{top:0,left:0,right:n.width,bottom:n.height,width:0,height:0};return{viewport:n,box:e,overlays:jc(n,e,t)}}function Vc(e){var t=[],n=y.get(e,"attributes.blockOutUI",{});if(n.additionalElements=n.additionalElements||"",n.enabled&&e.element!==Ea()){t.push(e.element);for(var i=n.additionalElements.replace(/\s/g,"").split(","),r=0;r<n.additionalElements.length;r++)try{var o=R(i[r]);o&&y.each(o,function(e){t.push(e)})}catch(a){I.info("Additional element for blockOutUI is invalid selector",{contexts:["error"]})}}return t}var Yc=null,Hc=function(e){var t=!y.isEqual(e,Yc);return Yc=e,t},Kc=null,Xc=function(e){var t=!y.isEqual(e,Kc);return Kc=e,t},Jc=null,qc=function(e){var t=!y.isEqual(e,Jc);return Jc=e,t},Qc=function(e){return Xc(e.viewport)||Hc(e.box)||qc(e.overlays)};function el(e){try{var t=Zc(Vc(e),y.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0}));Qc(t)&&y.each(e.backdrop.children,function(n){var e=n.getAttribute("pendo-region"),e=t.overlays[e];y.each(e,function(e,t){n.style[t]=e+"px"})})}catch(n){I.info("Failed to update BlockOut ui",{contexts:["error"]})}}function tl(e){try{var t,n,i,r;if(!(0<R("._pendo-guide-backdrop_").length))return t=Zc(Vc(e),y.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0})),Qc(t),n={"z-index":1e4,position:"fixed"},i=[],y.each(t.overlays,function(e,t){t=function(e,t){var n=R("div.pendo-backdrop-region-"+e);n.length||(n=R(document.createElement("div")).addClass("pendo-backdrop-region-"+e));return R(n).css(t).attr("pendo-region",e),n}(t,y.extend({},e,n));i.push(t)}),o=i,a=Nc("pendo-backdrop",e.domJson),y.each(["left","right","width","height","bottom","top"],function(e){delete a.props.style[e]}),s=R(document.createElement("div")).attr("id","pendo-backdrop").addClass("_pendo-guide-backdrop_"),y.each(a.props,function(n,i){y.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){I.info("Failed to add BlockOut ui",{contexts:["error"]})}var o,a,s}var nl="top",il="bottom",rl="left",ol="right",al="center";function sl(e,t,n){return n===ol||n===rl?n:(n=e.left,(t=(e=t.width)/3)<n&&n<2*t?al:n<e/2?ol:rl)}var dl={createBBTooltip:ul,getBBTooltipDimensions:hl,determineBBHorizontalBias:sl,determineTooltipPosition:fl,positionBBTooltipWithBias:gl,calculateToolTipPositionForTopBottom:ml,calculateToolTipPositionForLeftRight:vl,buildTooltipCaret:yl,styleTopOrBottomCaret:Il,styleLeftOrRightCaret:wl,buildBorderCaret:Cl,determineBorderCaretColor:Al,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=kc(e.domJson),(t?e.guideElement:e.guideElement.find("#"+n.props.id))[0]}(e);t&&(i=e.element||Mu(e),n=wa(i),"none"!==f(e.elements[0]).display)&&(i=Jo(i),a=e.attributes.layoutDir,e=e.guideElement,r=R(t).find("#pendo-guide-container"),o=r[0].style,t=f(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&&bl(t,o,r),a)&&Sl(a,r,o.layoutDir,t),e.css({top:o.top,left:o.left,position:n.fixed?"fixed":"absolute"}))},attachBBAdvanceActions:pl,attachScrollHandlers:cl,isBuildingBlockGuideRelativeToElement:function(e){return!(!e.domJson||!y.isObject(e.domJson)||!(e=kc(e.domJson))||"Relative to Element"!==e.props["data-vertical-alignment"])},positionStepForTooltip:function(e,t,n){ul(t,e.element,e,n),e.hasBeenScrolledTo||(ja(e.element),Pu(e.element,n,e.attributes.layoutDir),e.hasBeenScrolledTo=!0)}};function ul(e,t,n,i){var r,o,a,s,d,u;if(n.guideElement)return(r=n.guideElement).addClass(ku()?Eu:Au),0===(o=wa(t)).height&&0===o.width?null:(t=Jo(t),(e=Oc(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},pl(n),e.props.style.border&&(e=e.props.style.border.split(" "),a.borderColor=e[2],a.borderWidth=parseInt(e[0],10)),e=hl(o,d,a,u,t),n&&(n.dim=e),n&&y.isFunction(n.getGuide)&&(s=n.getGuide()),d=y.get(s,"attributes.resourceCenter"),o.fixed?(r.css({position:"fixed"}),i.style.position="absolute"):n&&d||(i.style.position="absolute"),a.height&&a.width&&yl(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===rl&&r.find("#pendo-watermark").css({top:"auto",bottom:"100%"}),cl(n,El),r[0]):void 0)}function cl(e,t){e&&y.isFunction(e.attachEvent)&&(Ru()&&e.element===R.getBody()||(t=y.throttle(y.bind(t,e,e),10),e.attachEvent(window,"scroll",t,!0),Ga(y.bind(e.attachEvent,e),e.targetElement,t)))}function ll(t,n){var e=R(n.elementPathRule)[0];n.attachEvent(e,t,function(e){R.data.set(e,"advanced",!0),um(t,n)})}function pl(e){e.attributes&&e.attributes.advanceActions&&e.elementPathRule&&(e.attributes.advanceActions.elementHover?ll("mouseover",e):e.attributes.advanceActions.elementClick&&ll("click",e))}function hl(e,t,n,i,r){var o,a,s=ya(),i=i||"auto",t={width:Math.min(t.width,s.width),height:t.height},d=(t.layoutDir=i,t.hbias=sl(e,s,i),t.vbias=(o=e,d=s,(a=i)===nl||a===il?a:(a=o.top,(d=(o=d.height)/3)<a&&a<2*d?al:a<o/2?il:nl)),t.layoutDir=fl(t,s,r,i),gl(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 fl(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===al)&&(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!==al&&(c=e.hbias),d&&u||(u||(c="right"),d)||(c="left")),(c=c&&"bottom"!==c||!s||a?c:"top")||e.hbias)||"bottom")}function gl(e,t,n){return"top"===e.layoutDir||"bottom"===e.layoutDir?ml(e,n,t,e.layoutDir,e.hbias):vl(e,n,t,e.vbias)}function ml(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 vl(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 yl(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,bl(i,t,n),e.find("#pendo-guide-container")[0].parentNode);e.appendChild(i),n.borderWidth&&(i=Cl(i,n,t.layoutDir),e.appendChild(i))}function bl(e,t,n){"top"!==t.layoutDir&&"bottom"!==t.layoutDir||Il(e,t,n),"left"!==t.layoutDir&&"right"!==t.layoutDir||wl(e,t,n)}function Il(e,t,n){var i,r=ya();return e.style["border-left"]=n.width+"px solid transparent",e.style["border-right"]=n.width+"px solid transparent",e.style.right="",t.hbias===rl?(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===ol?(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 wl(e,t,n){var i,r=ya();return e.style["border-top"]=n.width+"px solid transparent",e.style["border-bottom"]=n.width+"px solid transparent",e.style.bottom="",t.vbias===nl?(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 Cl(e,t,n){var i=e.cloneNode();return i.setAttribute("class","pendo-tooltip-caret-border"),i.style.zIndex=10,Sl(i,t,n,e),i}function Sl(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]=Al(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"),y.extend(e.style,r)}function Al(e,t){return"transparent"===e?e:t}function El(e){$a(e.element)?(dl.placeBBTooltip(e),R(e.elements[0]).css({display:"block"})):R(e.elements[0]).css({display:"none"})}function Tl(i){var e=i.find('[data-pendo-grow-height="true"]');if(e.length)for(var r=Object.entries(e),o=[],t=0;t<r.length;t++)!function(e){if(Number.isInteger(Number.parseInt(r[e][0],10))){var t=r[e][1];if(y.some(o,function(e){return e.parentNode===t.parentNode}))return;var e=i[0],n=t.parentNode.closest('[data-pendo-grow-height="true"]');if(n){if(!o.includes(n))return;e=n}_l(t,e),o.push(t)}}(t)}function _l(e,t){for(var n=0,i=e.parentNode.children,r=0;r<i.length;r++){var o,a=i[r];a!==e&&(o=f(a),o=parseInt(o.marginTop,10)+parseInt(o.marginBottom,10),n+=a.offsetHeight+o)}var s=t.offsetHeight,t=f(t),t=parseInt(t.paddingTop,10)+parseInt(t.paddingBottom,10),d=f(e),d=parseInt(d.marginTop,10)+parseInt(d.marginBottom,10),s=Math.max(s-t-n-d,0);0<s&&(e.style.height=s+"px")}function xl(e,t){var n,i,r,o,a,s,d,u,c,e=R("#"+e,t)[0];e&&(t=R(e),n=R(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(f(e).height,10),d=ya().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 Rl(e,t){e=R("#"+e,t)[0];if(e){t=e.getAttribute("data-pendo-mobile-layout");if(!t){var n=R(e),t=R(n.find("#pendo-guide-container")[0]),i=parseInt(e.style.width,10),r=(t.css({"max-width":"none"}),n.css({"margin-right":"0px"}),parseInt(f(e).width,10)),o=ya().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 kl(e,i){var e=y.isArray(e)?e:[e],e=y.reduce(e,function(e,t){var t=R("#"+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=y.reduce(t,function(e,t){return e.concat(y.toArray(R(['[class*="_pendo-text-"]:not([class*="_pendo-resource-center-"])','.pendo-mock-flexbox-element > [class*="_pendo-button-"]',"._pendo-multi-choice-poll-select"].join(","),t)))},[]))&&t.length&&Ol(y.reduce(t,function(e,t){var n,t=R(t),i=Ll(t[0]),i=i.marginLeft+i.marginRight,r=Ml(t);return r&&(n=r.paddingLeft+r.paddingRight,r=r.width-i-n,e.push({$blockElement:t,availableSpace:r})),e},[])),y.each(e,function(e){var t=e,t=((t=R("._pendo-open-text-poll-input",t))&&t.length&&y.each(t,function(e){var t,n=R(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)),Ll(n[0])),r=e.marginLeft+e.marginRight,o=Ml(n);o&&(t=o.paddingLeft+o.paddingRight,o=o.width-r-t,-1!==i.indexOf("%")&&Nl(n,e.width,i,o),-1===i.indexOf("%")&&(i=parseInt(i,10))<o&&n.css({width:i}),Ol({$blockElement:n,availableSpace:o}))}),e);(t=R(["._pendo-video","._pendo-image"].join(","),t))&&t.length&&y.each(t,function(e){var t=R(e),n=Ll(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=Ml(t);o&&(a=o.width-(o.paddingLeft+o.paddingRight)-n,e&&Nl(t,i,r,a),Ol({$blockElement:t,availableSpace:a}))})})}function Ol(e){y.isArray(e)||(e=[e]),y.each(e,function(e){e.$blockElement.css({"max-width":"none"})});var n=y.map(e,function(e){return Ll(e.$blockElement[0]).width});y.each(e,function(e,t){n[t]>=e.availableSpace&&e.$blockElement.css({"max-width":e.availableSpace})})}function Nl(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 Ml(e){e=e.closest("._pendo-row");if(e){e=f(e[0]);if(e)return{width:parseFloat(e.width),paddingLeft:parseInt(e.paddingLeft,10),paddingRight:parseInt(e.paddingRight,10)}}}function Ll(e){e=f(e);return{width:parseFloat(e.width),marginLeft:parseInt(e.marginLeft||0,10),marginRight:parseInt(e.marginRight||0,10)}}var Fl,g={calculateTotalOffsetWidth:Dl,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=Dl(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){var t=document.createElement("div");t.style.display="inline-block",e||(t.style.position="absolute");return t.style["vertical-align"]="top",t.setAttribute("class","pendo-mock-flexbox-element"),t},createFlexRow:function(){var e=document.createElement("div");return e.setAttribute("class","pendo-mock-flexbox-row"),e.style.display="block",e.style.position="relative",e.style.width="100%",e},findMaxChildHeight:function(e,t){for(var n=[],i=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 y.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=Dl(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=Dl(e,t);e[t].style.left=n+"px"}},getPendoInlineUIElements:function(e){return y.filter(e,Gl)},getPendoVisualElements:function(e){return y.filter(e,function(e){return!Gl(e)})},initializeFlexElements:function(e){var t=e.cloneNode(),n=Pl(e),i=g.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++)Wl(n[r])?t.appendChild(n[r]):t.appendChild(g.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:Gl,setElementHorizontalAlignment:function(e,t,n){if(!(e.length<1))switch(n){case"space-between":g.spaceBetween(e,t);break;case"space-around":g.spaceAround(e,t);break;case"space-evenly":g.spaceEvenly(e,t);break;case"center":g.center(e,t);break;case"flex-start":g.flexStart(e);break;case"flex-end":g.flexEnd(e,t)}},setElementVerticalAlignment:function(e,t,n){switch(n){case"top":g.topAlignment(e);break;case"center":g.centerAlignment(e,t);break;case"bottom":g.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=Dl(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=Dl(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=Dl(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=y.get(e.style,"width",""),s=f(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)||f(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(f(t).width,10),u=parseInt(f(e).width,10)+parseInt(e.style.marginRight||0,10)+parseInt(e.style.marginLeft||0,10),t=(R(t).find("._pendo-simple-text").getParent()||R(n).find("._pendo-simple-text").getParent())[0],n=s-u,"border-box"!==y.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=g.createFlexContainer(o)).appendChild(e),-1<e.id.indexOf("pendo-text")&&"rtl"===e.dir&&(s.style.right="0px"),u=y.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:Pl,initializeFlexRows:function(e,t,n){var i,r=function(e){return y.filter(e,function(e){e=e.getAttribute("class")||"";return e&&-1<e.indexOf("pendo-mock-flexbox-element")})}(e.children);0!==r.length&&(i=g.getRowWidth(e),r=g.wrapFlexElementsInFlexRows(r,e,i),g.formatFlexRows(r,e,t,n,i))},getRowWidth:Bl,wrapFlexElementsInFlexRows:function(e,t,n){for(var i=n||Bl(t),r=g.createFlexRow(),o={row:r,rowWidthUsed:0},a=[o],s=0;s<e.length;s++){var d=e[s],u=Jo(d).width,u=parseInt(u,10);o.rowWidthUsed+=u,o.rowWidthUsed>i&&0!==y.indexOf(e,d)&&(o.rowWidthUsed-=u,(r=g.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||Bl(t),a=0;a<e.length;a++){var s=e[a],d=(t.appendChild(s.row),g.findMaxChildHeight(s.row.children,!1)),u=(s.row.style["min-height"]=d+"px",o-parseInt(s.rowWidthUsed,10));g.setElementHorizontalAlignment(s.row.children,u,n),g.setElementVerticalAlignment(s.row.children,d,i)}},isElementHiddenInGuide:Wl,flexAllThings:function(e,t){e=R("#"+e,t)[0];e&&(Ul(e),g.flexElement(e))},flexElement:function(e){e=R("[data-pendo-display-flex]",e);y.each(e,function(e){var t=g.initializeFlexElements(e),n=e.getAttribute("data-pendo-justify-content"),e=e.getAttribute("data-row-vertical-alignment");g.initializeFlexRows(t,n,e)})},maintainAspectRatios:Ul};function Pl(e){return R(["._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 Gl(e){e=e.getAttribute("class");return!!(e&&-1<e.indexOf("pendo-inline-ui"))}function Dl(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 Bl(e){var t=Jo(e).width,e=f(e);return parseInt(t,10)-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10)}function Wl(e){$l(e);var t=xa(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-")&&($l(n),i=(n=n.parentNode).id||"",!(10<++r)););return!1}function $l(e){e.style&&"none"===e.style.display||e.style&&"0"===e.style.opacity||e.style&&e.style.visibility}function Ul(e){var n="data-aspect-ratio",e=R("["+n+"]",e);y.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 jl(){return!v.designer&&m.get("disableGuidePseudoStyles")}function zl(e,t,n){return e&&e.templateName?Mc.buildNodesFromTemplate(e.templateName,e,t,n,Yl):"style"===e.type&&jl()?[]:[Yl(e,t,n)]}function Zl(e,t,n,i){e='illegal building block key "'+e+'" found on guide "'+t+'" step "'+n+'"';throw i&&(e+=' for node type "'+i+'"'),I.info(e),new Error(e)}function Vl(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=y.keys(n);return y.reduce(e,function(e,t){return s[o]&&s[o][t]&&Zl(t,r,i,o),a[t]||d.test(t)||u.test(t)||Zl(t,r,i),e[t]=n[t],e},{})}function Yl(n,i,e){i=i||{id:"unknown",guideId:"unknown"},n.props=Vl(n.props,i.id,i.guideId,n.type);var t,r=R(document.createElement(n.type));if(document.createElement("div").appendChild(r[0]),"script"===r[0].tagName.toLowerCase())return R(document.createElement("noscript"));if("pendo-backdrop"===(n.props&&n.props.id))return i.attributes&&i.attributes.blockOutUI&&i.attributes.blockOutUI.enabled&&dl.attachScrollHandlers(i,el),tl(i);if(y.each(n.props,function(e,t){"style"===t?r.css(n.props.style):"data-pendo-code-block"!==t||!0!==e||m.get("preventCodeInjection")?r.attr(t,e):(t=i.getContent(),0!==gt.call(t).length&&r.addClass("pendo-code-block").html(t))}),n.content&&r.text(n.content),"style"===n.type&&(v.designer||(n.css=function(e){for(var t=["button:focus"],n=[],i=0;i<e.length;i++)y.contains(t,e[i].selector)||n.push(e[i]);return n}(n.css)),(t=m.get("inlineStyleNonce"))&&r.attr("nonce",t),r.styleSheet?r.styleSheet.cssText=Jl(n.css):r.text(Jl(n.css))),n.svgWidgetId&&Dc.buildSvgNode(n.svgWidgetId,n).appendTo(r),n.actions&&n.actions.length)for(var o,a=0;a<n.actions.length;a++)Xl(r,n.actions[a],i),"renderGuidesListItem"===n.actions[a].action&&((o=Iu(n.actions[a].parameters[0]))?r.text(o.name):r.attr("style","display: none;"));if(y.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=Pa(Ou()),d=s!==document,u=0;u<n.children.length;u++){var c=zl(n.children[u],i,e);y.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)):(R.addClass(e[0],"pendo-style-".concat(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++,Kl(R(e),t))}function Kl(e,i){e.on("load",function(){var e,t={},t=(!i.containerId&&i.domJson&&(t=kc(i.domJson)),i.containerId||t.props&&t.props.id||""),n=t&&R("#"+t,i.guideElement)[0];i&&i.attributes&&i.attributes.imgCount&&(i.attributes.imgCount--,n)&&i.attributes.imgCount<=0&&(Rl(t,i.guideElement),kl(t,i.guideElement),g.flexAllThings(t,i.guideElement),e=i.getGuide(),y.get(e,"attributes.isAnnouncement")||"AnnouncementsModule"===y.get(e,"attributes.resourceCenter.moduleId")||(xl(t,i.guideElement),(e=n.children.item("pendo-guide-container"))&&e.style&&"auto"===e.style.overflow&&(kl(t,i.guideElement),g.flexAllThings(i.containerId,i.guideElement))),"tooltip"===i.attributes.calculatedType&&dl.positionStepForTooltip(i,i.domJson,n),n.style.visibility="visible",n.parentNode.style.visibility="visible",R.event.dispatch(n,{type:"imagesLoaded"}))}),e.on("error",function(){var e=R("#"+i.containerId,i.guideElement)[0];e?("tooltip"===i.attributes.calculatedType&&dl.positionStepForTooltip(i,i.domJson,e),e.style.visibility="visible",e.parentNode.style.visibility="visible",g.flexAllThings(i.containerId,i.guideElement)):I.info("Failed to find guideContainer for id: "+i.containerId)})}function Xl(n,i,r){n.on(i.eventType,function(e){var t;i.designerAction?v.designerv2&&v.designerv2.designerActions&&v.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 Jl(n){for(var i="",r=0;r<n.length;r++)i+=n[r].selector+"{",n[r].styles instanceof Array?i+=Jl(n[r].styles):y.each(n[r].styles,function(e,t){i+=t+":"+e,n[r].selector.match(/\d+%/)||(i+="!important;")}),i+="}";return i}function ql(t){y.each(document.head.childNodes,function(e){e&&R.hasClass(e,"pendo-style-".concat(t))&&Ca(e)})}var Ql=function(){var e=window.navigator;return((y.isArray(e.languages)?e.languages[0]:e.language||e.browserLanguage||e.systemLanguage||e.userLanguage)||"").split("-").join("_")},ep="meta",tp=y.compose(JSON.parse,JSON.stringify),np=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()},ip=function(e){(e=y.isObject(e=void 0===e?{}:e)?e:{}).jwt&&e.signingKeyName&&(t=Gs.getJwtOptions(e,"updateOptions"))&&(Gs.set(y.pick(e,"jwt","signingKeyName")),e=t),t=e,n=y.extend({},t.visitor),i=y.extend({},t.account),t=y.extend({},t.parentAccount),n.id===ai&&(I.info("Missing visitor id."),delete n.id),ni(i.id)&&ni(t.id)&&(ui(i.id)?t.id=i.id.split(di)[0]:i.id=""+t.id+di+i.id),ni(i.id)&&(i.id=""+i.id),ni(n.id)?n.id=""+n.id:n.id=E({generate:!0}),n.language=Ql(),e={visitor:tp(n),account:tp(i),parentAccount:tp(t),date:np(),version:v.VERSION},A.getters["metadata/selfHosted"]()&&(e.selfHosted=!0);var t,n=y.clone(dp()),i=(m.setLocalConfig(y.extend({},m.getLocalConfig(),e)),A.commit("metadata/setMetadata",e),dp()),r=(ni(e.visitor.id)&&(v.identify(e.visitor.id,e.account.id),e.visitor.id=E(),e.account.id=mi()),Ct(e)),o=(void 0!==(o="object"==typeof(o=r)?Ct(o):o)&&o.toString&&(o=o.toString()),""+(y.isNumber(Fl)?Fl:yi(ep))!==o);return Fl=r,o&&vi(ep,r),{options:e,hashChanged:o,storeChanged:!y.isEqual(n,i)}},rp=wi(function(e){e=ip(e);S.metadata.trigger(e)}),op=wi(function(e,t){y.isObject(e)?rp(e):pi(e,t)}),ap=function(){var t,e=R("script");return e=e,t=new RegExp("/agent/static/"+v.apiKey+"/pendo\\.js$"),!y.any(e,function(e){return t.test(e.src)})&&"extension"!==Ge()},sp=function(){var e=m.get("blockAgentMetadata");return e!==undefined&&e};function dp(){return A.getters["metadata/metadata"]()}function up(){return JSON.parse(JSON.stringify(dp()))}S.identify.on(function(e){var t=e.data[0],n=m.getLocalConfig()||{};Ii(e)?(oi([ep]),A.commit("metadata/reset",t)):(n.visitor=y.extend({},n.visitor,{id:t.visitor_id}),n.account=y.extend({},n.account,{id:t.account_id}),m.setLocalConfig(n),A.commit("metadata/setMetadata",n))});var cp={Launcher:{addBehavior:y.noop},Metadata:{getMetadata:dp},Util:{documentScrollTop:zo,documentScrollLeft:Zo,getOffsetPosition:wa},Events:S,JWT:{getJWT:Gs.get}};var lp,pp,hp,fp,gp={},mp=(pp=[],hp=[],fp={},(lp=gp).tagExtension=function(e,t){e=lp.findExtensionByName(e);e.tags=[].concat(e.tags||[],t)},lp.findExtensionByTag=function(t){return y.find(hp,function(e){return y.contains(e.tags,t)})},lp.findExtensionByName=function(e){return y.findWhere(hp,{name:e})},lp.filterExtensionsByUse=function(t){return y.filter(hp,function(e){return e.use===t})},lp.findExtensionByNameAndProvider=function(t,n){return y.find(hp,function(e){e=e.data;return!!e&&e.name===t&&e.provider&&e.provider.name===n})},lp.registerExtensionsByUse=function(e,t,n){n=n?[].concat(n):[],fp[e]={handler:t,validators:n}},lp.getExtensionFrames=function(){return y.reduce(hp,function(e,t){return t.frame&&t.frame[0]&&e.push(t.frame[0]),e},[])},function(e){e=[].concat(e),(e=y.filter(e,vp)).length&&(pp=function n(e){if(!e.length)return e;var t=y.filter(e,yp);if(t.length)return n(y.difference(e,t));return e}(pp.concat(e)))});function vp(t){var e;return!!y.every(["name","version","use","type","uri"],y.partial(y.has,t))&&(e=t.use,e=fp[e]?fp[e].validators:[],y.every(y.map(e,function(e){return e(t)})))}function yp(e){var t;return"behavior"===e.use?!!e.uri(lp,cp)&&(hp.push(e),!0):(t=e.use,!!(t=fp[t]?fp[t].handler||y.identity:null)&&((e=t(e))&&hp.push(e),!!e))}var O,bp,Ip,wp,Cp,Sp,N={initializeResourceCenter:function(r){if(!(O=Ep(r)))return C.resolve();if(A.getters["frames/isShownInAnotherFrame"]()(O.steps[0]))return C.resolve();if(N.isFullyCustom(O))return O.hasResourceCenterContent=!0,C.resolve();var e=Tp(O,r),t=y.reduce(e,function(e,t){return Ap(t)?e.concat(t.steps[0].fetchContent()):e},[]);return t.push(sc.validate(O).then(y.noop,function(){O.launchMethod="api"})),O.attributes.notifications={totalUnseenCount:0,individualCounts:{chat:0}},y.forEach(Np(),function(e){var t=gp.findExtensionByNameAndProvider("chat",e),t=(t&&Pp(e,t),gp.findExtensionByNameAndProvider("helpcenter",e));t&&Pp(e,t)}),y.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=kp(e.integrationName,e.integrationProvider),t.hasResourceCenterContent=!!t.integrationConfig,t.integrationConfig)&&"chat"===t.integrationConfig.name&&Op(e.integrationName,e.integrationProvider),y.reduce(n,function(e,t){var n=y.find(r,function(e){return e.id===t});return n?e.concat(n):e},[]));"AnnouncementsModule"===i&&(O.attributes.notifications.individualCounts[t.id]=0,y.forEach(e,function(e){dh(e)||e.isControlGroup()||O.attributes.notifications.individualCounts[t.id]++}));-1<y.indexOf(["GuideListModule","OnboardingModule","AnnouncementsModule"],i)&&y.filter(e,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):!(e.ineligibleForRC=!0)}).length&&(t.hasResourceCenterContent=!0),t.guidesInModule=e}),O.modules=e,O.badgeHidden=!0,C.all(t)["catch"](function(){return O=null,I.error("Failed to load one or more Resource Center modules"),C.resolve()})},findResourceCenterHomeView:Ep,findResourceCenterModules:Tp,replaceResourceCenterContent:_p,renderResourceCenterModule:function(e,t){_p(e.id,undefined,!0,t)},showHomeViewOrEmptyState:function(e){R("#pendo-resource-center-container._pendo-guide-walkthrough_").remove(),delete e.activeModule,e.hasResourceCenterContent&&e.skipResourceCenterHomeView?N.replaceResourceCenterContent(e.moduleIdToReplaceHomeViewWith,[{value:"none"},{value:"left"}]):e.showEmptyState&&(N.showResourceCenterEmptyState(),y.each(e.controlGuidesInAllModules,function(e){e.hasGuideBeenControlled()||e.steps[0].onControlGuide("control")}))},showResourceCenterEmptyState:function(){var e=R("#pendo-resource-center-empty-state-container");e&&e.length&&R(e[0]).css({display:"block"})},launchIntegrationByNameAndProvider:function(e,t,n){var e=gp.findExtensionByNameAndProvider(e,t);return e?(n=R(n))?((e=e.getFrame()).appendTo(n),void e.css({display:"block"})):I.info("could not find target element for "+t+" integration"):I.info(t+" integration has not been loaded into the agent")},appendIntegrationToBodyByNameAndProvider:Op,attemptToPreserveIntegrationIframes:function(e){e.step&&(e=e.step.getGuide()).attributes&&e.attributes.resourceCenter&&(e=N.getResourceCenterContainer())&&(e=R(e).find('iframe[id^="_pendo-launcher-ext-frame-chat"]'))&&e.length&&e.each(function(e){e=R(e);e.css({display:"none"}),e.appendTo(Ou())})},getResourceCenter:jp,getResourceCenterContainer:zp,getResourceCenterBadge:Zp,addNotificationBubbleToResourceCenterBadge:eh,addNotificationBubbleToTargetElement:th,updateNotificationBubbles:function(){var e=O,t=y.get(e,"attributes.notifications");if(t){var n=Kp(t.individualCounts);if(n<=0)n!==t.totalUnseenCount&&ah(),t.totalUnseenCount=n;else{Xp();var i=n!==t.totalUnseenCount;if(i||!Yp(wp)){if("badge"===e.launchMethod){i=Zp();if(!i)return;eh(i.element(),e.attributes.notificationBubble,n)}if("dom"===e.launchMethod&&y.get(e,"attributes.activation.selector")){i=R(e.attributes.activation.selector);if(!i.length)return;th(i[0],e.attributes.notificationBubble,n),to(window,"resize",y.debounce(Hp,50))}t.totalUnseenCount=n}}}},removeNotificationBubble:ah,updateNotificationBubbleCount:sh,updateNotificationBubbleOnHomeView:Jp,updateOrCreateNotificationBubble:nh,hexToRgb:Vp,doesIntegrationExist:kp,calculateTotalNotificationCount:Kp,updateNotificationBubblesOnHomeView:Xp,createNotification:rh,appendNotificationBubble:oh,hasAnnouncementBeenSeen:dh,clearAnnouncementUnseenInterval:xp,createAnnouncementUnseenInterval:Rp,findShownResourceCenterModule:function(){var e=N.getResourceCenterContainer();if(e){e=R(e).find('[id^="pendo-g-"]');if(e){var t=e.attr("data-pendo-guide-id"),e=y.find(fu(),function(e){return e.id===t});if(y.get(e,"attributes.resourceCenter.isModule",!1))return e}}},dismissResourceCenter:uh,repositionResourceCenter:function(){var e=N.getResourceCenterContainer();{var t,n,i;e&&(i=N.findResourceCenterHomeView(fu()).steps[0],t=y.get(i,"domJson.props.style.height"),t=parseInt(t,10),t=isNaN(t)?0:t,n=parseInt(y.get(i,"domJson.props.style.bottom",0),10),i=parseInt(y.get(i,"domJson.props.style.top",0),10),n=isNaN(n)?0:n,i=isNaN(i)?0:i,(n=ya().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")}Tl(R(e))},repositionDoubleResourceCenterBadge:function(){var e,t,n;A.getters["frames/isLeader"]()&&1<(e=y.unique(y.compact([].concat(y.toArray(R("._pendo-resource-center-badge-container"))).concat(y.toArray(R("._pendo-resource-center-badge-container")))))).length&&function(e){var t=xa(e[0]),e=xa(e[1]);return Ra(t,e)}(e)&&(t=wa(e[0]).width+5,n=wa(e[1]).left-t<0?"":"-",e[1].style.transform="translateX("+n+t+"px)")},resourceCenterIgnoreRtl:function(){return y.get(this.getResourceCenterBadge(),"ignoreRTL",!1)},adjustResourceCenterWidth:function(e){var t=zp();if(t){o=ya().width,r=R(t),e=R(e),r.css({"max-width":"none"}),e.css({"max-width":"none"}),i=parseInt(f(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=R('button[id^="pendo-a11y-list-item-button-block"]');if(n&&n.length)for(var i=R(t.find("ol._pendo-text-list-ordered"))[0],r=0,o=0,i=(i&&(i=f(i),o=parseInt(i.paddingLeft,10),r=parseInt(i.paddingRight,10)),R('[id^="pendo-onboarding-guide-progress-circle"]')[0]),e=0,a=0,s=0,d=(i&&(i=f(i),e=parseInt(i.width,10),a=parseInt(i.marginRight,10),s=parseInt(i.marginLeft,10)),o+r+e+s+a),u=parseInt(f(t[0]).width,10),c=0;c<n.length;c++){var l=n[c],p=R(l),l=(p.css({"max-width":"none"}),f(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:Pp,renderNativeIntegration:$p,isSupportedNativeIntegration:Mp,handleNativeIntegrationContinuation:Up,isProviderInstalled:Lp,adjustNotificationBubbleForResize:Hp,getNotificationBubbleDefaultCss:ih,getModuleId:ch,isIframeModule:function(e){return"IframeModule"===ch(e)&&e.hasResourceCenterContent},isSandboxModule:function(e){return"SandboxModule"===ch(e)&&e.hasResourceCenterContent},isIntegrationModule:function(e){return"IntegrationModule"===ch(e)&&e.hasResourceCenterContent},isFullyCustom:function(e){return"FullyCustomModule"===ch(e)},integrationModuleHasContent:function(e){e=e.attributes.resourceCenter;return!N.isSupportedNativeIntegration(e.integrationProvider)||N.isProviderInstalled(e.integrationProvider)},fetchAnnouncementGuidesContent:function(e,t){var n=Ep(e);if(!n)return C.resolve();if(t.getters["frames/isShownInAnotherFrame"]()(n.steps[0]))return C.resolve();if(N.isFullyCustom(n))return C.resolve();var t=Tp(n,e),i=[],r=y.indexBy(e,"id");return y.each(t,function(e){var e=e.attributes.resourceCenter;"AnnouncementsModule"===e.moduleId&&(e=e.children,e=y.reduce(e,function(e,t){t=r[t];return t?e.concat(t):e},[]),y.each(e,function(e){Ap(e)&&i.push(e.steps[0].fetchContent(!0))}))}),C.all(i)},setFocusForResourceCenterModule:function(e,t){var n;"HomeViewModule"===e[0].getAttribute("data-layout")?t&&(e=R('[data-pendo-module-guide-id="'+t+'"]'),n=e.find('button[id^="pendo-right-caret-"]')[0]):(t=R('[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"===y.get(t,"data-localization-direction",!1),e=y.get(e,"attributes.badge.ignoreRTL",!1);n&&e&&!t["data-direction-changed"]&&(n=y.get(t,"style.left",!1),e=y.get(t,"style.right",!1),n)&&e&&(t.style.left=e,t.style.right=n,t["data-direction-changed"]=!0)},stashBadgeAriaLabel:qp,resetBadgeAriaLabel:function(){var e=N.getResourceCenterBadge();{var t;e&&(e=e.element(),t=e.getAttribute("data-pendo-stashed-aria-label"))&&e.setAttribute("aria-label",t)}},getNotificationBubbleAriaLabelAttribute:Qp,updatePseudoStyleSelectors:lh,hideRCBadge:ph};function Ap(e){return e.steps&&e.steps.length&&y.isFunction(e.steps[0].fetchContent)}function Ep(e){var e=y.filter(e,function(e){return y.get(e,"attributes.resourceCenter.isTopLevel")&&!e.isFrameProxy}),t=y.find(e,function(e){return"staged"===e.state});return t||e[0]}function Tp(t,e){return y.filter(e,function(e){return e&&!e.isFrameProxy&&y.get(e,"attributes.resourceCenter.isModule",!1)&&e.state===t.state})}function _p(t,e,n,i){if(void 0===i&&(i=!0),!Ip){var r="left 200ms",o="left",e=(e&&2<=e.length&&(r=e[0].value,o=e[1].value),zp());if(e){var a=R(e).find('[id^="pendo-g-"]')[0];if(a){var s,d=a.getAttribute("data-pendo-guide-id"),u=y.find(fu(),function(e){return e.id===t}),c=(t!==O.id?(ql(y.get(O.activeModule||O,"steps.0.id")),O.activeModule=u):(s=O.activeModule,ql(y.get(s,"steps.0.id")),delete O.activeModule),y.get(u,"attributes.resourceCenter.integrationProvider")),l=(Mp(c)&&$p(c),u.steps[0]),c=lh(l.domJson),c=(c.props["data-pendo-guide-id"]=u.id,Yl(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&&(R(a).remove(),s)&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),R(e).find('[id^="pendo-end-focus-bumper-"]')[0]);if(r?R(p).insertBefore(r):R(p).appendTo(e),l.guideElement=R(e),l.elements.push(l.guideElement[0]),N.adjustResourceCenterWidth(p),"AnnouncementsModule"===ch(u)&&l.guide.guidesInModule?(kl(r=y.reduce(l.guide.guidesInModule,function(e,t){var n;return y.isUndefined(t.steps[0].attributes.imgCount)&&(n=t.steps[0].id,n=R(p).find("#pendo-g-"+n)[0]?n:t.id,e.push("pendo-g-"+n)),e},[]),l.guideElement),y.each(r,function(e){g.flexAllThings(e,l.guideElement)})):g.flexAllThings("pendo-resource-center-container"),Tl(R(e)),p.style.left="0px",!n){Ip=!0;try{"left"===o?a.style.left=-1*e.offsetWidth+"px":"right"===o&&(a.style.left=e.offsetWidth+"px"),Dt(function(){R(a).remove(),s&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),Ip=!1},200)}catch(h){throw Ip=!1,h}}return"AnnouncementsModule"===ch(u)&&(Rp(),r=Mc.getGuidesInResourceCenterModule(u,fu()),(n=y.reduce(r,function(e,t){return t.steps&&t.steps.length&&yc.hasContent(t.steps[0])||e.push(t.fetchContent()),e},[])).length)&&((o=function(){var i,e,t;if(y.isFunction(document.createElementNS))return i="http://www.w3.org/2000/svg",e=function(e,t){var n=R(document.createElementNS(i,"circle")).attr({cx:e,cy:t,fill:"#9a9ca5",r:5});return y.each(y.toArray(arguments).slice(2),function(e){n.append(e)}),n},t=function(e){return R(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=R(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"))),R(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),C.all(n).then(function(){var e=C.defer();return Dt(e.resolve,500),e.promise}).then(function(){O.activeModule===u&&N.renderResourceCenterModule(u,i)})),N.setFocusForResourceCenterModule(c,d),i&&l.onShown("launcher"),c}}}}function xp(){window.clearInterval(bp),bp=null}function Rp(){bp=bp||window.setInterval(function(){var e=zp();if(!e)return xp();e=R(e).find('[data-layout="AnnouncementsModule"]');if(!e.length)return xp();var t=R(e).find('ol[id^="pendo-list"]');if(!t.length)return xp();var n=xa(t[0]),i=R(t).find("li");if(!i.length)return xp();for(var r=e.attr("data-pendo-guide-id"),o=O.attributes.notifications.individualCounts[r],a=n.height/3,s=xa(i[i.length-1]).bottom-30<n.top+n.height,d=0;d<i.length;d++){var u=R(i[d]),c=u.hasClass("pendo-unseen-announcement"),l=u.attr("data-pendo-announcement-send-seen-event");if(c||l){if(xa(i[d]).top-n.top>n.height-a&&!s)break;var p=u.attr("data-pendo-announcement-guide-id"),l=y.find(fu(),function(e){return e.id===p});if(!l)break;c&&(u.removeClass("pendo-unseen-announcement"),c=u.find(".pendo-unread-announcement-mini-bubble"),We(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"),dh(l)||o--,sh(o,r)),l.steps[0].seenState="advanced",Em(l.id,l.steps[0].id,E(),"whatsnew",l.language,{last_updated_at:l.steps[0].lastUpdatedAt}),u[0].removeAttribute("data-pendo-announcement-send-seen-event"),_m(l.id,l.steps[0].id,E(),"advanced",l.language)}}},500)}function kp(e,t){return gp.findExtensionByNameAndProvider(e,t)}function Op(e,t){e=gp.findExtensionByNameAndProvider(e,t);if(!e)return I.info(t+" integration has not been loaded into the agent");Mp(t)&&Lp(t)?O.hasEligibleNativeIntegrationModule=!0:(_a((t=e.getFrame())[0])||t.appendTo(Ou()),t.css({display:"none"}))}function Np(){return["drift-native-chat","intercom-chat","zendesk-chat","zendesk-native-kb","zendesk-messaging"]}function Mp(e){return!!e&&0<=Np().indexOf(e)}function Lp(e){return!!e&&null!==(e=Fp(e))&&y.isFunction(window[e])}function Fp(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 Pp(e,t){var n,i,r;e&&(Lp(e)?Gp(e,t):(e=e,t=t,"function"==typeof Object.defineProperty&&null!==(i=Fp(e))&&(Cp&&Cp[i]?Cp[i][e]||(Cp[i][e]={installed:!1,integrationObj:t}):((Cp=Cp||{})[i]=((n={})[e]={installed:!1,integrationObj:t},n),Object.defineProperty(window,i,{get:function(){return r},set:function(e){r=e,y.forEach(Cp[i],function(e,t){var n=e.integrationObj;!e.installed&&Lp(t)&&(e.installed=!0,Gp(t,n),Op(n.name,t),y.forEach(O.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 Gp(e,t){switch(e){case"zendesk-chat":case"zendesk-native-kb":var n=(i=t).data.provider.name,i=Bp(i);Dp(n,"webWidget","hide"),Dp(n,"webWidget","updateSettings",{webWidget:{navigation:{popoutButton:{enabled:!1}},position:{vertical:i?i[0]:"bottom",horizontal:i?i[1]:"right"}}}),Dp(n,"webWidget:on","close",function(){Dp(n,"webWidget","hide"),Wp()}),O.isInProgress()&&Up(O.activeModule),Dp(n,"webWidget:on","chat:unreadMessages",function(e){sh(e,"chat")});break;case"zendesk-messaging":i=t;Dp(i=i.data.provider.name,"messenger","hide"),Dp(i,"messenger:on","close",function(){Wp()}),Dp(i,"messenger:on","unreadMessages",function(e){sh(e,"chat")});break;case"intercom-chat":var r=t;r=Bp(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(){Wp()});break;case"drift-native-chat":window.drift.on("ready",function(e){window.drift.hide();var t=dp();window.drift.identify(t.visitor.id,function o(e){var t={};for(var n in e)if("object"!=typeof e[n]||Array.isArray(e[n]))t[n]=e[n];else{var i,r=o(e[n]);for(i in r)r[i]&&(t[n+"."+i]=r[i])}return t}(t)),window.drift.on("message",function(e){if(!O.isNativeModuleActive)return sh(1,"chat")})}),window.drift.on("chatClose",function(e){sh(0,"chat"),window.drift.hide(),Wp()})}}function Dp(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];try{Sp&&Sp[e]||window.zE.apply(null,n)}catch(r){Sp?Sp[e]=!0:((t={})[e]=!0,Sp=t)}}function Bp(e){e=y.get(e,"data.options.labels.position");return e=e&&e.split("-")}function Wp(){uh(O.activeModule),delete O.activeModule,O.continueToNativeModule=!1}function $p(e,t){if(e){var n=dp();if(O.isShown()&&O.hide(),Sp&&Sp[e])I.info(e+" integration failed to communicate with API, closing"),N.replaceResourceCenterContent(O.id,undefined,!0),Wp();else{var i=Zp();switch(i&&ph(i,O),e){case"zendesk-messaging":Dp(e,"messenger","show"),Dp(e,"messenger","open");break;case"zendesk-native-kb":Dp(e,"webWidget","updateSettings",{webWidget:{helpCenter:{suppress:!1},chat:{suppress:!0}}}),Dp(e,"webWidget","show"),Dp(e,"webWidget","open");break;case"zendesk-chat":Dp(e,"webWidget","updateSettings",{webWidget:{chat:{suppress:!1},helpCenter:{suppress:!0}}}),window.$zopim.livechat.window.show(),n&&n.visitor&&n.visitor.email&&Dp(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})}sh(0,"chat"),!O.activeModule&&t&&(O.activeModule=t).steps[0].onShown("launcher")}}}function Up(e){e&&!e.isTopLevel&&($p(y.get(e,"attributes.resourceCenter.integrationProvider")),O.activeModule||(O.activeModule=e),e.steps[0].onShown("continue"),e.attributes.doNotResume=!0)}function jp(){return O}function zp(){return y.get(O,"steps.0.guideElement.0")}function Zp(){if(O&&O.id)return lu[O.id]}function Vp(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 Yp(e){return e&&y.all(e,function(e){return _a(e&&e.length?e[0]:e)})}function Hp(){var e,t=N.getResourceCenter(),n=y.get(t,"attributes.notifications");n&&(n=N.calculateTotalNotificationCount(n.individualCounts),"dom"===t.launchMethod)&&y.get(t,"attributes.activation.selector")&&(e=R(t.attributes.activation.selector)).length&&N.addNotificationBubbleToTargetElement(e[0],t.attributes.notificationBubble,n)}function Kp(e){return y.reduce(e,function(e,t){return e+t},0)}function Xp(){var e,t=O;t&&(t=y.get(t,"attributes.notifications"))&&(e=zp())&&R(e).find("._pendo-resource-center-home-list").length&&y.each(t.individualCounts,function(e,t){Jp(e,t)})}function Jp(e,t){var n=N.getResourceCenterContainer();n&&(n=R(n).find('[data-pendo-notification-id="'+t+'"]')).length&&(t=R(n[0]).find("._pendo-home-view-bubble"),n=R(t[0].children[0]),e!==parseInt(n.text(),10))&&(0<e?(n.text(e),R(t[0]).css({display:"block","margin-right":"0"})):(n.text(""),R(t[0]).css({display:"none"})))}function qp(e){var t;e.getAttribute("data-pendo-stashed-aria-label")||(t=e.getAttribute("aria-label"),e.setAttribute("data-pendo-stashed-aria-label",t))}function Qp(e){return 1!==e?"data-pendo-aria-label-alert-plural":"data-pendo-aria-label-alert-singular"}function eh(e,t,n){var i=Qp(n),i=e.getAttribute(i),i=(i&&(qp(e),i=i.replace("{UNSEEN_COUNT}",n),e.setAttribute("aria-label",i)),y.get(t,"position","top-left")),r=f(e),r=(parseInt(r.width,10)||56)/2,o=r/Math.sqrt(2),r=Math.round(r-o)-10,a=r-10,o=Math.round(2*o),r={"top-left":{top:r+"px",left:a+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"top-right":{top:r+"px",left:a+o+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-left":{top:r+o,left:a+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-right":{top:r+o,left:a+o+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"}},a=e.attributes["data-localization-direction"]||!1,o=N.resourceCenterIgnoreRtl();nh(e,t,n,r[i=a&&!o?{"top-left":"top-right","top-right":"top-left","bottom-left":"bottom-right","bottom-right":"bottom-left"}[i]:i])}function th(e,t,n){var i=Xo(e,e),r=Xo(e,Ea());nh(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 nh(e,t,n,i,r){var o,a;Yp(wp)?(a=(o=ih(t)).defaultBubbleCss,o=o.defaultUnseenCountCss,a=y.extend(a,i),o=y.extend(o,r),wp.bubbleEle.css(a),wp.unseenCountEle.css(o),wp.unseenCountEle.text()!=""+n&&wp.unseenCountEle.text(n)):(a=R(e).find(".pendo-resource-center-badge-notification-bubble")).length?a[0].getElementsByClassName("pendo-notification-bubble-unread-count")[0].textContent=n:n&&oh(wp=rh(t,n,i,r),e)}function ih(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 rh(e,t,n,i){var r,o=ih(e),a=o.defaultBubbleCss,o=o.defaultUnseenCountCss,s=(t=t||0,R(document.createElement("div")).addClass("pendo-resource-center-badge-notification-bubble")),d=R(document.createElement("div")).addClass("pendo-notification-bubble-unread-count"),a=y.extend(a,n),n=y.extend(o,i);return s.css(a),d.css(n),We(10)||jl()||(r=R(document.createElement("style")).attr("id","pendo-resource-center-bubble-animation"),i="@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6) } } "+('.pendo-resource-center-badge-notification-bubble::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: '+("rgb("+(o=Vp(e["background-color"])).r+", "+o.g+", "+o.b+")")+"; border-radius: 100%; z-index: -1; animation: pulse 2s infinite; will-change: transform; }"),r.styleSheet?r.styleSheet.cssText=i:r[0].innerHTML=i),d.text(t),{bubbleEle:s,unseenCountEle:d,styleEle:r}}function oh(e,t){e.styleEle&&e.styleEle.appendTo(t),e.unseenCountEle.appendTo(e.bubbleEle),e.bubbleEle.appendTo(t)}function ah(){var n=wp?wp.bubbleEle:R(".pendo-resource-center-badge-notification-bubble"),i=wp?wp.styleEle:R("#pendo-resource-center-bubble-animation");n&&y.each(n,function(e,t){n[t]&&(t=n[t])&&t.parentNode&&t.parentNode.removeChild(t)}),i&&y.each(i,function(e,t){i[t]&&(t=i[t])&&t.parentNode&&t.parentNode.removeChild(t)}),wp=null,N.resetBadgeAriaLabel()}function sh(e,t){var n=O;n&&(n=y.get(n,"attributes.notifications"))&&n.individualCounts[t]!==e&&(n.individualCounts[t]=e,N.updateNotificationBubbles())}function dh(e){return!(!y.isFunction(e.hasBeenSeen)||!e.hasBeenSeen())||"active"===e.steps[0].seenState}function uh(e){var t=y.get(e,"attributes.resourceCenter.isModule",!1)?e:N.findShownResourceCenterModule();t&&(t=y.first(t.steps),am(t));t=(y.get(e,"attributes.resourceCenter.isTopLevel",!1)?e:N.findResourceCenterHomeView(fu())).steps[0];return am(t)}function ch(e){return y.get(e,"attributes.resourceCenter.moduleId")}function lh(e){var t=["pendo-a11y-list-item-button-block","pendo-link-","pendo-right-caret-","pendo-row-","pendo-text-"].join("|"),n=new RegExp("#((".concat(t,")[^:]*)")),t=function i(e,t){var n=[];return t(e)&&n.push(e),e.children?n.concat.apply(n,y.map(e.children,function(e){return i(e,t)})):n}(e,function(e){return e.css&&e.css.length});return y.forEach(t,function(e){y.forEach(e.css,function(e){e.selector=e.selector.replace(n,"[id^='$1']")})}),e}function ph(e,t){e.hide(),t&&t.id&&(t.steps&&t.steps.length&&(t.steps[0].overrideElement=undefined),delete lu[t.id])}var hh=1e4,fh="lastStepAdvanced";function gh(e){A.dispatch("guideState/updateLastGuideStepSeen",e),A.dispatch("guideState/write"),A.dispatch("frames/changeLastGuideStepSeen",e)}function mh(){A.dispatch("guideState/regainFocus")}function vh(){return A.state.guideState.lastGuideStepSeen}var i={actions:{init:function(e){e.getters.storage().registry.addLocal(fh),e.commit("setScopedStorageKey",dn(e.state.storageKey)),S.identify.on(function(e){Ii(e)&&oi([fh])})},load:function(t,e){if(e){var n;try{n=JSON.parse(e)}catch(i){}n&&y.each([].concat(n),function(e){t.commit("setStepState",e)})}},forceExpire:function(n){y.each(n.state.steps,function(e,t){n.commit("expireStepState",t)})},expire:function(n){var i=n.getters.now();y.each(n.state.steps,function(e,t){i-e.time>n.state.ttl&&n.commit("expireStepState",t)})},apply:function(o){var a,s=y.indexBy(o.getters.guideList(),"id");o.dispatch("expire"),y.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=y.findWhere(i.steps,{id:r}))&&(n=o.state.storageKey,t.seenState!=e.state&&(I.info("making sure that seenState = '"+e.state+"' for "+n+": "+r),t.seenState=e.state),t.snoozeEndTime!=e.snoozeEndTime&&(I.info("making sure that snoozeEndTime = '"+e.snoozeEndTime+"' for "+n+": "+r),t.snoozeEndTime=e.snoozeEndTime),t.seenReason!=e.seenReason&&(I.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),I.info("making sure that dismissCount = '"+t.dismissCount+"' for "+n+": "+r)),e=y.indexOf(i.steps,t),y.each(i.steps.slice(0,e),function(e){y.contains(["advanced","dismissed"],e.seenState)||(e.seenState="advanced")})))}),a&&o.dispatch("updateLastGuideStepSeen",y.extend({},o.state.lastGuideStepSeen,a))},receiveLastGuideStepSeen:function(e,t){e.commit("setReceivedLastGuideStepSeen",t),e.commit("setLastGuideStepSeen",t)},updateLastGuideStepSeen:function(e,t){var n;t.visitorId&&t.visitorId!==e.getters.visitorId()||(n=y.some(e.getters.guideList(),function(e){return e.id===t.guideId}),t.guideStepId&&e.commit("setStepState",t),n&&(e.commit("setLastGuideStepSeen",t),v.lastGuideStepSeen=t))},updateThrottlingState:function(e,t){e.commit("setThrottlingState",t)},write:function(e){e.dispatch("expire");var t=e.rootState.frames.tabId,n=e.state.storageKey,i=e.getters.cookieSuffix(),r=e.state.ttl,o=e.getters.storage(),a=JSON.stringify(y.map(e.state.steps,function(e){return y.extend({tabId:t},e)}));I.info("writing "+a+" to a cookie named "+n+" for "+r+" and cookieSuffix "+i),o.write(n,a,r,!1,!1,i),e.dispatch("preview/update",e.state.lastGuideStepSeen,{root:!0})},storageChanged:function(e,t){if(t.key===e.state.scopedStorageKey){try{var n=e.getters.storage(),i=e.getters.cookieSuffix(),r=n.read(e.state.storageKey,!1,i),o=[].concat(JSON.parse(r))}catch(a){}e.getters.storageChangedInOtherTab()(o)&&(Rh(),e.dispatch("load",r),e.dispatch("apply"),e.state.receivedStateChangeAt||e.commit("setReceivedStateChange",e.getters.now()))}},regainFocus:function(e){var t=e.getters.tabLostFocus(),n=e.getters.isGuideRequestStale();t&&(e.commit("setReceivedStateChange",null),n||(kh(),Oh())),n&&kv()}},mutations:{expireStepState:function(e,t){e.expired[t]=e.steps[t],delete e.steps[t]},setStepState:function(e,t){e.steps[t.guideStepId]=t},setScopedStorageKey:function(e,t){e.scopedStorageKey=t},setLastGuideStepSeen:function(e,t){e.lastGuideStepSeen=t},setReceivedLastGuideStepSeen:function(e,t){e.receivedLastGuideStepSeen=t},setReceivedStateChange:function(e,t){e.receivedStateChangeAt=t},setLastGuideRequestAt:function(e,t){e.lastGuideRequestAt=t},setThrottlingState:function(e,t){e[t.name]=t.value}},state:{steps:{},expired:{},ttl:hh,storageKey:fh,guideRequestExpiration:36e5,scopedStorageKey:null,receivedStateChangeAt:null,receivedLastGuideStepSeen:null,lastGuideStepSeen:null,lastGuideRequestAt:null,latestDismissedAutoAt:null,latestSnoozedAutoAt:null,finalAdvancedAutoAt:null},getters:{now:b,storage:function(){return w},guideList:function(){return k},tabLostFocus:function(e){return!!e.receivedStateChangeAt},isGuideRequestStale:function(e,t){return null!=e.lastGuideRequestAt&&t.now()-e.lastGuideRequestAt>e.guideRequestExpiration},storageChangedInOtherTab:function(n,e,i){return function(e){var t=y.get(i,"frames.tabId");return!!e&&!!((e=y.max(y.compact(e),"time"))&&e.tabId&&t&&e.tabId!==t)&&(!n.lastGuideStepSeen||!n.lastGuideStepSeen.time||e.time>n.lastGuideStepSeen.time)}},cookieSuffix:function(){return m.get("crossAppGuideStorageSuffix")},visitorId:function(){return E()}}},yh={canDisplay:function(e,t,n){if(n&&n.enabled&&y.isFinite(t)){t=wh(t,n);if(y.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=m.get("appAutoOrdering")||[].concat(m.get("leaderKey"));{var i;n.length&&(i=A.getters["frames/autoOrdering"](),n=y.reduce(n,function(e,t){return e.concat(i[t]||[])},[]),t=y.uniq(n.concat(t)))}var r,o,n=function(e){e=y.defaults(y.groupBy(e,function(e){return Ih(e)?"override":"auto"}),{override:[],auto:[]});return e.override.concat(e.auto)}(function(e,t){var n;return y.isArray(t)&&t.length?(n=y.indexBy(e,"id"),t=y.reduce(t,i,[]),y.chain(e).pluck("id").reduce(i,t).value()):e;function i(e,t){return n[t]&&(e.push(n[t]),delete n[t]),e}}(y.filter(e,bh),t));return y.find(e,function(e){return e.isTraining})?(t=m.get("adoptPrioritizeAdoptGuides"),e=t,r=[],o=[],y.each(n,function(e){(e.isTraining?r:o).push(e)}),e?r.concat(o):o.concat(r)):n},tryDisplayGuide:function(e,t){var n=yh.lastDismissedTime(t),n=yh.canDisplay(b(),n,t.throttling);if((Ih(e)||n)&&e.shouldAutoDisplay())return e.autoDisplay()},getNextAutoDisplayTime:wh};function bh(e){return e&&/auto/.test(e.launchMethod)}function Ih(e){return(t=e).attributes&&t.attributes.overrideAutoThrottling||y.isFunction(e.shouldShowSnoozedGuide)&&e.shouldShowSnoozedGuide();var t}function wh(e,t){var n=t.interval,t=(t.unit||"").toLowerCase();return y.isNumber(n)&&xt(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:y.isNumber(n)?(new Date).getTime():void 0}function Ch(t){return S.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+"?"+Mo(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 y.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=xo(e).substring(1),t=No(t),n=e.indexOf("#");return!t.pendo&&0<=n&&(n=xo(e.substring(n+1)).substring(1),y.extend(t,No(n))),t}}var Sh=y.memoize(function(){return Ch(Iu)});function Ah(e,t){var e=y.find(e,function(e){return e.isContinuation(t)}),n=e&&e.attributes&&e.attributes.doNotResume;if(e&&!n)return e}Eh.prototype.markDirty=function(){var e;Du()&&(this.queue.push("permalink","continuation"),(e=this.queue).push.apply(e,yh.sortAndFilter(k,v.autoOrdering)))},Eh.prototype.process=function(e){if(Zg())this.cancel();else{var t=this.queue.shift();if("permalink"===t)return Sh().tryDisplay(v);if("continuation"===t){var n=Ah(k,vh());if(n)return e.saveContext(n),n.show("continue")}else if(t){if(!Ah(k,vh()))return e.saveContext(t),yh.tryDisplayGuide(t,v);this.cancel()}}},Eh.prototype.handleProcessTimeExceeded=function(e){e=e.getContext();e&&I.warn("Auto display ("+e.id+") timeout exceeded")},Eh.prototype.cancel=function(){this.queue.length=0},Eh.prototype.isComplete=function(){return!this.queue.length};lr=Eh;function Eh(){this.name="autoDisplay",this.queue=[]}var Th=null,_h=500,xh=function(e){Th=y.delay(function(){Th=null,Oh()},e=e||_h),v.guidesProcessingThreadHandle=Th},Rh=function(){Th&&(clearTimeout(Th),Th=null,v.guidesProcessingThreadHandle=Th),A.dispatch("guideUpdate/stopScheduledUpdate")},kh=function(){Xg(),jh.cancel();for(var e=0;e<cu.length;e++){var t=cu[e];t.parentNode.removeChild(t)}cu.length=0,A.dispatch("guideUpdate/stopObserver"),S.guideLoopStopped.trigger()},Oh=function(){if(Rh(),Rv.pending||Um&&v.id&&v.id!==Um.id)I.info("guides are loading.",{contexts:["guides","loading"]});else if(yv())I.info("guides are disabled.",{contexts:["guides","disabled"]});else if(bv())I.info("guides are delayed.",{contexts:["guides","delayed"]});else if(!A.getters["guideState/tabLostFocus"]())try{var e=Su();e&&0!==e.length&&(A.dispatch("guideUpdate/startObserverIfNeeded"),jh.isComplete()&&jh.markDirty(),A.getters["frames/leaderExists"]())&&jh.process()}catch(t){jh.cancel(),I.critical("ERROR in guide-loop",{error:t})}finally{jh.paused||(jh.isComplete()?(A.state.guideUpdate.useObserver&&!A.state.guideUpdate.needsUpdate||xh(),S.guideUpdateComplete.trigger()):xh(50))}};var Nh=function(){var e=m.getLocalConfig();m.get("delayGuides")&&(delete e.delayGuides,m.setLocalConfig(e)),m.get("guides.delay")&&(delete e.guides.delay,m.setLocalConfig(e)),Oh()},Mh=function(){yv()||wv(!0),kh(),jm()},Lh=(Fh.prototype.markDirty=function(){this.dirty=!0},Fh.prototype.process=function(){this.processFn(),this.dirty=!1},Fh.prototype.cancel=function(){this.dirty=!1},Fh.prototype.isComplete=function(){return!this.dirty},Fh);function Fh(e,t){this.dirty=!1,this.name=e,this.processFn=y.isFunction(t)?t:y.noop}Ph.prototype.markDirty=function(){this.queue.push.apply(this.queue,y.filter(gu(k),Tu))},Ph.prototype.process=function(e){var t=this.queue.shift();e.saveContext(t),t&&t.placeBadge()},Ph.prototype.handleProcessTimeExceeded=function(e){e=e.getContext();I.warn("Badge ("+e.id+") timeout exceeded")},Ph.prototype.cancel=function(){this.queue.length=0},Ph.prototype.isComplete=function(){return!this.queue.length};s=Ph;function Ph(){this.name="badge",this.queue=[]}function Gh(i,e){var r,o,t,n,a;N.isFullyCustom(i)||(r=!1,o=[],t=y.filter(i.modules,function(e){var t,n;return!!e&&(!!N.isIframeModule(e)||!!N.isSandboxModule(e)||(N.isIntegrationModule(e)?!!N.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1):(t=(n=y.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=Ct(y.map(n,function(e){var t=e.isAnnouncement()||e.isWhatsNew()?null:y.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=Ct(y.map(t,function(e){return{id:e.id}})),i.eligibleModulesHash&&i.eligibleModulesHash!==a&&(n=!0,N.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)&&N.replaceResourceCenterContent(i.moduleIdToReplaceHomeViewWith,undefined,!0),t&&(n=y.find(t,function(e){return e.isContinuation(vh())}),a=y.get(n,"attributes.doNotResume"),e=y.get(n,"attributes.resourceCenter.integrationProvider"),N.isSupportedNativeIntegration(e))&&!a&&i&&(i.continueToNativeModule=!0,n.continueToNativeModule=!0),i.activeModule&&((e=y.find(t,function(e){return e.id===i.activeModule.id}))&&r&&N.replaceResourceCenterContent(i.activeModule.id,undefined,!0),e||N.replaceResourceCenterContent(i.id)),N.repositionResourceCenter())}function Dh(e,t,n){var i,r,o=lu[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&&N.hideRCBadge(o,e),y.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||(y.isFunction(e.placeBadge)&&e.placeBadge(),o=lu[e.id]),o&&o.show(),e.badgeHidden=!1)}function Bh(e){var t,n,i,r,o,a;e&&e.launchMethod&&(e.skipResourceCenterHomeView=!1,e.hasResourceCenterContent=!0,delete e.moduleIdToReplaceHomeViewWith,t=e.activeModule,n=y.get(t,"attributes.resourceCenter.integrationProvider"),e.isNativeModuleActive=t&&N.isSupportedNativeIntegration(n),N.isFullyCustom(e)?e.hasResourceCenterContent=!0:(e.isShown()||!A.getters["frames/isLeader"]()?Gh(e,Dh):(t=e,n=Dh,N.isFullyCustom(t)||(i=[],o=[],(r=y.find(t.modules,function(e){return!!N.isIframeModule(e)||!!N.isSandboxModule(e)||!!N.isIntegrationModule(e)&&(!!N.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1))}))&&i.push(r),r=y.flatten(y.pluck(t.modules,"guidesInModule")),o=y.filter(y.compact(r),function(e){return e.control}),!i.length&&(a=y.reduce(t.modules,function(t,n){return y.each(n.guidesInModule,function(e){t[e.id]=n}),t},{}),r=y.filter(r,function(e){return e&&e.steps&&e.steps.length}),r=y.sortBy(r,function(e){return e.steps[0].elementPathRule?1:0}),r=a[(r=y.find(r,function(e){return e.shouldBeAddedToResourceCenter()}))&&r.id])&&i.push(r),n(t,i,o))),e.isNativeModuleActive&&(e.isShown()&&e.hide(),a=lu[e.id])&&N.hideRCBadge(a,e),"dom"===e.launchMethod&&(N.updateNotificationBubbles(),N.adjustNotificationBubbleForResize())))}$h.prototype.start=function(){this.context=null,this.startTime=b()},$h.prototype.isTimeExceeded=function(){return b()-this.startTime>this.timeLimit},$h.prototype.saveContext=function(e){this.context=e},$h.prototype.getContext=function(){return this.context};var Wh=$h;function $h(e){void 0===e&&(e=50),this.startTime=-1,this.timeLimit=e,this.context=null}function Uh(e){this.phases=e,this.queue=[],this.paused=!1}Uh.prototype.markDirty=function(){for(var e=0,t=this.phases;e<t.length;e++)t[e].markDirty();this.queue=this.phases.slice()},Uh.prototype.runGuidePhase=function(){for(var e,t,n,i=this.queue[0],r=new Wh(50);!this.timedOut()&&!i.isComplete()&&!e;)r.start(),!(e=i.process(r))&&r.isTimeExceeded()&&(i.handleProcessTimeExceeded&&i.handleProcessTimeExceeded(r),this.ejectGuide(r.getContext()));Nt(e)?(t=this.updateId,n=y.bind(function(){this.updateId===t&&(this.paused=!1,Oh())},this),this.paused=!0,e.then(n)["catch"](n)):i.isComplete()&&this.queue.shift()},Uh.prototype.addPhase=function(e,t){t=t||e.name||this.phases.length,y.isFunction(e)&&(e=new Lh(t,e)),this.phases.push(e)},Uh.prototype.removePhase=function(t){var e=y.findIndex(this.phases,function(e){return e.name===t});0<=e&&this.phases.splice(e,1)},Uh.prototype.timedOut=function(){return!!this.iterationStartTime&&b()-this.iterationStartTime>A.state.guideUpdate.iterationTimeLimit},Uh.prototype.ejectGuide=function(e){this.ejectOnTimeout===undefined&&(this.ejectOnTimeout=m.get("guides.ejectOnTimeout")),this.ejectOnTimeout&&e&&!e.isShown()&&yu.addGuide(e)},Uh.prototype.process=function(){var e=b();for(this.updateId||(this.updateId=e,this.updateTotalTime=0,A.commit("guideUpdate/startUpdate",e)),this.iterationStartTime=e;!this.paused&&this.queue.length&&!this.timedOut();)this.runGuidePhase();e=b(),this.updateTotalTime+=e-this.iterationStartTime,this.isComplete()&&this.complete(e)},Uh.prototype.complete=function(e){A.commit("monitoring/setTimer",{name:"guideUpdateTimeMS",time:this.updateTotalTime}),A.commit("guideUpdate/completeUpdate",e),this.cancel()},Uh.prototype.cancel=function(){this.updateId=null,this.paused=!1;for(var e=this.queue.length=0,t=this.phases;e<t.length;e++){var n=t[e];y.isFunction(n.cancel)&&n.cancel()}},Uh.prototype.isComplete=function(){return!this.queue.length};var jh=new Uh([new s,new Lh("resourceCenter",function(){Bh(N.getResourceCenter())}),new Lh("frameVisibility",function(){A.dispatch("frames/checkFrameVisibility")}),new Lh("guideShowing",function(){var a=Nv();a&&(y.each(a.steps,function(e){var t,n,i,r,o;a.guide,(e=e).isLocked()||A.getters["frames/isShownInAnotherFrame"]()(e)||(t=e.element,n=e.targetElement,r=e.guideElement,i=R("."+$g),(r=r.find("#pendo-guide-container")[0])&&r.textContent&&(r=f(r).fontSize,e.attributes.currentTextZoomFontSize!==r)&&(e.attributes.currentTextZoomFontSize&&e.redraw(),e.attributes.currentTextZoomFontSize=r),e.elementPathRule&&n&&!Xr.matchesSelector(n,e.elementPathRule)?e.hide():(r=$a(t),o=!0,n&&r&&e.elementContainsRulesList&&(o=mm(n,e.elementContainsRulesList),r=o),t&&(r||i.hasClass("mouseover"))?e.checkPlacement():("tooltip"===e.type||"tooltip"===e.attributes.calculatedType)&&Ua(t)&&o||e.hide()))}),a.guide.checkForHiddenGroupSteps())}),new lr]);function zh(){jh.addPhase.apply(jh,arguments)}function Zh(){jh.removePhase.apply(jh,arguments)}function Vh(){var s={};return y.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=y.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 Yh="debug-enabled";function Hh(){try{return JSON.parse(w.read(Yh,!0)||on(Yh))||{}}catch(e){return{}}}function Kh(e){var t;return void 0===e&&(e=!0),t=A&&A.getters&&A.getters["debugger/debuggingEnabled"]?A.getters["debugger/debuggingEnabled"]():!0===Hh().enabled,e?t:t?"Yes":"No"}Xh.prototype.test=function(e){return this.identificationFn(e)};rr=Xh;function Xh(e,t){this.type=t,this.identificationFn=e}Jh={},qh=function(e){var e=e.data,t=e[0];e[1];var n=Iu(t.guideId),e=(y.find(Jh,function(e){return e.GuideType.test(n)})||{}).handler;e&&e(n,"resourceFetchFail")};var Jh,qh,Qh={run:function(){S.resourceFetchFail.on(qh)},stop:function(){S.resourceFetchFail.off(qh)},addTypeHandler:function(e,t){y.isFunction(t)?Jh[e.type]={GuideType:e,handler:t}:I.error("Invalid Handler function provided for type ".concat(e.type))}},ef=(Qh.addTypeHandler(new rr(Tu,"badge"),function(e,t){yu.addGuide(e)}),"_pendo-badge_");function tf(e){var t;return e&&((t=(t=e.props=e.props||{}).style=t.style||{}).cursor=t.cursor||"pointer"),e}function nf(t,n){var e,i,r,o,a,s=Lu(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=y.reduce([(o=t.language,a=d?["he","ar"]:[],function(e){return y.contains(a,o)&&(e.props["data-localization-direction"]=!0),e}),(r=u,function(e){var t,n;return y.get(e,"props.data-localization-direction",!1)&&!r&&(t=y.get(e,"props.style.left","auto"),n=y.get(e,"props.style.right","auto"),t)&&n&&(e.props.style.left=n,e.props.style.right=t),e}),tf,hc,function(e){return Yl(e,{id:n.id,guideId:t.id,isBadge:!0})}],function(e,t){return t(e)},this.domJson)[0],i=e,R.removeNode(e),-1===i.className.indexOf("_pendo-badge_")&&(i.className+=" _pendo-badge_"),this.isP2Badge=!0):((i=document.createElement("img")).src=pc(this.imageUrl),i.className="_pendo-badge "+ef,d=this.width||13,u=this.height||13,ma(i,"width:"+d+"px;height:"+u+"px;")),i.id="_pendo-badge_"+n.id,this.activate=function(){var e=y.isFunction(n.getGuide)&&n.getGuide(),t=wm(e);!e.isShown()||A.getters["frames/isShownInAnotherFrame"]()(n)?Sm(n,"badge"):t?n.eventRouter.eventable.trigger("pendoEvent",{step:n,action:"dismissGuide"}):(t=y.find(e.steps,function(e){return e.isShown()}),am(t))},this.shouldShow=function(){return t.canBadgeBeShown()||!1},this.show=function(){if(y.isFunction(this.shouldShow))return this.shouldShow()},this.hide=function(){R.removeNode(i),ql(t.id),y.isFunction(this.removeScrollHandlers)&&(this.removeScrollHandlers(),this.removeScrollHandlers=null),n.overrideElement=undefined},wm(t)&&(this.toggleAriaExpanded=function(){var e=!!R("#pendo-resource-center-container")[0],t=R("button._pendo-resource-center-badge-container")[0]||R('._pendo-resource-center-badge-container [id^="pendo-image-badge-"]')[0];t&&t.setAttribute("aria-expanded",e)},i.checkAriaExpanded=this.toggleAriaExpanded),this.step=y.constant(n),this.target=y.constant(s),this.element=y.constant(i),this}nf.create=function(n){var i=nf.findStep(n);if(i)return y.reduce(nf.behaviors,function(e,t){return t.call(e,n,i)},n.attributes.badge)},nf.findStep=function(e){var t=y.find(e.steps,function(e){return!!e.elementPathRule});if(t&&e.attributes&&e.attributes.badge)return t},nf.behaviors=[Vh,nf,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&&ma(n,"display:inline-block;vertical-align:text-bottom;"),this.css&&ma(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,t=this.element(),n=wa(this.target()),i=0,r=0,o=0;if(this.offsets&&(i=this.offsets.top||0,r=this.offsets.right||0,o=this.offsets.left||0),!y.get(s,"attributes.resourceCenter",!1)){var a="position:"+(n.fixed?"fixed":"absolute")+";top:"+(n.top+i)+"px;";switch(this.position){case"top-right":a+="left:"+(n.left+n.width-r)+"px";break;case"top-left":a+="left:"+(n.left+o)+"px"}ma(t,a)}t.parentNode||(Ou().appendChild(t),e=Ga(to,this.target(),df),this.removeScrollHandlers=function(){df.cancel(),e()})});return this},function(){"over"===this.position&&this.before("show",function(){var e,t=this.element(),n=wa(this.target()),i="position:absolute;top:"+n.top+"px;left:"+n.left+"px;";i+="height:"+n.height+"px;width:"+n.width+"px;",ma(t,i+="background-color:transparent;"),t.parentNode||(Ou().appendChild(t),e=Ga(df,t,this.target()),this.removeScrollHandlers=function(){df.cancel(),e()})});return this},function(){var t=this,e=t.element(),n=!1,i=function(e){t.activate(),t.toggleAriaExpanded&&t.toggleAriaExpanded(),du(e)};return t.after("show",function(){n||(l(e,"click",i),n=!0)}),t.after("hide",function(){su(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=y.throttle(function(e){io(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}(io(e))||o()},50,{trailing:!1}),r=function(e){n.isShown()||Sm(n,"badge"),l(document,"mousemove",i),du(e)},o=function(e){su(document,"mousemove",i),Ru()||am(n)},this.after("show",function(){e||(l(t,"mouseover",r),e=!0)}),this.after("hide",function(){su(t,"mouseover",r),su(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=y.throttle(function(e){var t,n,i,r,o,a;io(e)===d||io(e)===s||ua(s,"triggered")||(t=e.clientX,e=e.clientY,n=xa(d),i=xa(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(){ma(s,t),l(document,"mousemove",i)},u=function(){su(document,"mousemove",i),ma(s,n)},this.after("show",function(){e||(l(d,"mouseover",r),e=!0,u())}),this.after("hide",function(){e&&(su(d,"mouseover",r),e=!1),u()}))}return this}];var rf=function(e,t){var n,i,r=(t=t||lu)[e.id],o=r?r.step():nf.findStep(e);o&&(i=r?r.target():Lu(o),(n=y.get(e,"attributes.resourceCenter"))&&!A.getters["frames/canShowRCBadge"]()?r&&y.isFunction(r.hide)&&(t[e.id]=undefined,r.hide()):n&&!e.hasResourceCenterContent||(N.updateNotificationBubbles(),n=!0,o.elementContainsRulesList&&(n=i&&mm(i,o.elementContainsRulesList)),(i=o.elementPathRule&&$a(i)&&Xr.matchesSelector(i,o.elementPathRule)&&n)?((r=r||nf.create(e)).show(),t[e.id]=r):r&&!o.isShown()&&(t[e.id]=undefined,r.hide()),Kh()&&S.stepEligibility.trigger({stepId:o.id,guideId:e.id,eligible:i,reason:"target_element_badge"}),N.repositionDoubleResourceCenterBadge()))},of=function(){y.map(lu,af),lu={}},af=function(e,t){e&&(y.isFunction(e.hide)&&e.hide(),y.isFunction(e.shouldShow))&&!e.shouldShow()&&t&&delete lu[t.id]},sf=function(e){var t=lu[e.id];t&&af(t,e)};var df=y.throttle(function(){y.map(lu,function(e){e&&e.show&&e.show()})},10);var M,uf=w.getLocal(),cf="pendo-preview",lf="current-guide-preview";function pf(e){return A.dispatch("preview/load"),hf(e)}function hf(t){var e=xf();if(e)return gf(t),A.dispatch("preview/start",y.extend(e)),w.clear(fh),rn(!1),Es.lock(),Ym=Nf,S.startPreview.trigger(),S.leaderChanged.on(function(e){A.dispatch("preview/write"),e.oldLeaderId||kv(),A.getters["frames/isLeader"]()||(R(M).remove(),M=null,t.removeEventListener("message",vf))}),zh(ff),!0}function ff(){if(!A.getters["frames/isFollower"]()){var t,n,i,r,o,e,a=document,s=k,d=vh();if(yf()&&(t=xf())&&M&&M.contentWindow)if(s&&s.length){M.contentWindow.postMessage({mutation:"preview/setGuideLoaded",payload:{guideLoaded:!0}},location.origin),n=y.find(s,function(e){return e.id===t.guideId}),i=0,r=n.steps.length,o=d||{},y.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=y.indexOf(n.steps,y.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],h=e.isShown(),M.contentWindow.postMessage({mutation:"preview/setHostname",payload:{hostname:rt}},location.origin),M.contentWindow.postMessage({mutation:"preview/setGuidePages",payload:{guidePages:n.previewPages}},location.origin),M.contentWindow.postMessage({mutation:"preview/setGuideProgress",payload:{guideName:n.name,guideAttributes:JSON.stringify(n.attributes),guideLaunchMethod:n.launchMethod,guideActivationSelector:Fu(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:h,pageId:e.pageId,completed:s,languageOptions:y.get(t,"languageOptions",[]),currentLanguage:t.language}},location.origin);var u=e,c=d,l=M;if(u&&l&&l.contentWindow){var p=u.getGuide().id,h=y.filter(A.state.frames.frames,function(e){return"hidden"!==e.visibility&&e.guides&&e.guides[p]});if(h.length)h=y.map(h,function(e){return L.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:e.id,stepId:u.id,guideId:p,currentStepIndex:c})}),C.all(h).then(function(e){for(var t={},n=-1,i=0;i<e.length;i++){var r=JSON.parse(e[i]).errors;if(!r.GUIDE){var o=y.keys(r).length;if(!o){t={};break}-1===n?(t=r,n=o):u.regexUrlRule?!r.PAGE&&o<=n&&(t=r,n=o):o<n&&(t=r,n=o)}}l.contentWindow.postMessage({mutation:"preview/setErrors",payload:{errors:t}},location.origin)})["catch"](y.noop)}}else Af(0,{status:404,data:"Guide not found"})}return!0}function gf(e){if(A.getters["frames/leaderExists"]()){if(!A.getters["frames/isFollower"]()){if(M)return!0;var t,n;y.isFunction(e.addEventListener)&&e.addEventListener("message",vf),(t=document.createElement("iframe")).id=cf,va(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(){m.get("inlineStyleNonce")&&(o=t.contentDocument.createElement.bind(t.contentDocument),t.contentDocument.createElement=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i,r=o.apply(void 0,Ut([e],t,!1));return"style"===e&&(i=m.get("inlineStyleNonce"))&&r.setAttribute("nonce",i),r});var o,e=document.createElement("script");e.src=m.get("previewModeAssetPath")||Do("pendo.preview.min.js"),t.contentDocument.body.appendChild(e),t.contentWindow.ignoreIframeMonitor=!0},M=t,Ea().appendChild(M)}}else S.one("leaderChanged",y.partial(gf,e))}function mf(e,t,n){Xg(),A.commit("healthCheck/resetStepStatus",null,{root:!0}),yc.reset(),kv();var i=e[0],i=(i&&y.each(i.steps,function(e){e.seenState=null}),w.clear(fh),A.dispatch("preview/update",null),xf());return i&&(i=y.findWhere(e,{id:i.guideId}))&&(i={stepId:i.steps[0].id},n&&(i.language=n),A.dispatch("preview/restart",i)),Sf(e,t)}function vf(e){var t,n;e.origin===location.origin&&(t=e.data.type,n=!!e.data.preventWindowClose,t===cf+"::exit"?(Ef({preventWindowClose:n}),A.dispatch("frames/stopPreview",{preventWindowClose:n})):t===cf+"::restart"?(n=mf(k,vh(),e.data.language),A.dispatch("guideState/forceExpire"),A.dispatch("guideState/updateLastGuideStepSeen",n),A.dispatch("frames/restartPreview")):t===cf+"::resize"?(n=e.data.height,M&&M.style&&(M.style.height=n)):t===cf+"::request-preview-mode-type"&&(e=Rf(),M)&&M.contentWindow&&e&&M.contentWindow.postMessage({mutation:"preview/setPreviewModeType",payload:{previewModeType:e.previewModeType||"NEW_TAB"}},location.origin))}function yf(){return A.getters["preview/isInPreviewMode"]()}function bf(){return A.getters["preview/isInDesignerPreviewMode"]()}function If(e){var t,n,i,r,o,a=xf();return a?a.isResourceCenter?(i=e,t=a,n=N.findResourceCenterHomeView(i),i=y.filter(i,function(e){return e.id!==n.id}),Cf(n,t.stepId),t=y.map(i,function(e){return e.launchMethod="launcher",e}),[n].concat(t)):(i=e,r=a,y.each(i,function(e){e.id===r.guideId?o=e:((e=e).launchMethod="api",(e=e.steps[0])&&(e.seenState="advanced"))}),wf(o),o.showsAfter=null,o.expiresAfter=null,Cf(o,r.stepId),i):e}function wf(e){"launcher"===e.launchMethod?e.launchMethod="auto-launcher":"api"===e.launchMethod&&(e.launchMethod="auto")}function Cf(e,t){for(var n=y.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 Sf(e,t){null==t&&(t={});var n=xf();if(!n)return t;e=y.findWhere(e,{id:n.guideId});if(!e)return t;if(n.state)return n.state;wf(e);t=-1<e.launchMethod.indexOf("auto");return n.stepId!==e.steps[0].id||t?{guideId:n.guideId,guideStepId:n.stepId,state:"active"}:{}}function Af(e,t){M&&M.contentWindow&&M.contentWindow.postMessage({mutation:"preview/setGuideLoadError",payload:{guideLoadError:t}},location.origin)}function Ef(e){var t=Rf(),n=!1,i=(t&&(n="SAME_TAB"===t.previewModeType),uf.getItem("pendo-navigation-state"));if(A.dispatch("preview/exit"),Xg({stayHidden:!0}),w.clear(fh),Es.unlock(),R(M).remove(),Ym=zu,Zh(ff),rn(!0),n&&i){uf.setItem(lf,JSON.stringify(y.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};A.dispatch("preview/launchInAppDesigner",o)}catch(a){A.dispatch("preview/exitDesignerPreview")}}else e&&!e.preventWindowClose&&window.close(),kv()}function Tf(e,t){e=y.get(e(),t);if(e)return JSON.parse(JSON.stringify(e))}function _f(){return A}var xf=y.partial(Tf,_f,"state.preview.preview"),Rf=y.partial(Tf,_f,"state.preview.designerPreview");function kf(e){var t;if(e.subscriptionId&&e.guideId)return t=e.isResourceCenter?"/resourcecenter/":"/guide/","/api/s/"+Lt(e.subscriptionId)+t+Lt(e.guideId)+"/preview"}var Of=function(e){var t;return za(e.origin)?(t=kf(e))?(t={url:e.origin+t+"?url="+Lt(Lo.externalizeURL())+"&apiKey="+v.apiKey,withCredentials:!0},e.headers&&(t.headers=e.headers),oo(t).then(function(e){return e.data.guide})):(I.info("Invalid guide url, exiting preview"),C.reject("invalid guide url")):(I.info("Invalid origin, exiting preview"),C.reject("invalid origin"))},Nf={load:Lf,post:function(e,t,n){return Lf(e,n)},endpoint:function(){return""},usesXhr:function(){return!0}};function Mf(n,t){var e,i;return za(n.origin)?(e=kf(n))?A.getters["frames/leaderExists"]()&&n.apiKey===v.apiKey?(e="".concat(n.origin).concat(e,"?url=").concat(Lt(Lo.externalizeURL()),"&apiKey=").concat(v.apiKey),n.childGuides&&n.childGuides.length&&(e+="&childGuides="+n.childGuides.toString()),bf()&&(e+="&ignoreGuide=true"),e={url:e,withCredentials:!0},n.headers&&(e.headers=n.headers),i=[],oo(e).then(function(e){var t,c,e=e.data;return bf()?(t=Rf(),i=t?bf()?(y.each(t.guide.steps,function(t){var e=["domJsonpUrl","domUrl"];t.domUrl&&0===t.domUrl.indexOf("data:")&&(e=["domJson","contentJs","contentCss","content"]),y.each(e,function(e){delete t[e]})}),t.guide.showsAfter=null,t.guide.expiresAfter=null,[t.guide]):void 0:[],e.guide=i[0]):i=n.isResourceCenter?e.guide:(e.guide.previewPages=e.pages,[e.guide]),e.children&&(i=i.concat(e.children)),n.language&&n.language!==y.get(i,"[0].authoredLanguage")&&(t=i,c=n.language.value,y.forEach(t,function(u){y.forEach(u.steps,function(e){var t=y.get(u,"translationStates."+c+".stepTranslations."+e.id,{}),n=t.domHash,i=t.domJsonpHash,r=t.translationHash,o=t.originalDomJsonHash,a=t.originalDomJsonpHash,s=t.originalBuildingBlockHash,d=t.domHash256,t=t.domJsonpHash256;e.domUrl=Ff(o,e.domUrl,".dom.json",d),e.domJsonpUrl=Ff(a,e.domJsonpUrl,".dom.jsonp",t),e.buildingBlocksUrl=Ff(s,e.buildingBlocksUrl,".buildingBlocks.json"),n&&i&&r&&(e.domUrl=e.domUrl.replace(".dom.json","-"+n+"-"+c+".dom.json"),e.domJsonpUrl=e.domJsonpUrl.replace(".dom.jsonp","-"+i+"-"+c+".dom.jsonp"),e.buildingBlocksUrl=e.buildingBlocksUrl.replace(".buildingBlocks.json","-"+r+"-"+c+".buildingBlocks.json"))})})),n.watermarkConfig&&(e.guide.isTraining=!0),v.guideWidget={enabled:!1,data:{guideCssUrl:e.guideCssUrl}},v.guideCssUrl=e.guideCssUrl,v.normalizedUrl=e.normalizedUrl,v.throttling=undefined,e.guide}).then(function(e){var t;return n.watermarkConfig?(t=JSON.parse(JSON.stringify(n)),t=Object.assign(t,n.watermarkConfig),Of(t)):e}).then(function(e){e&&e.attributes&&e.attributes.isWatermark&&i.push(e),v.guidesPayload({id:t,lastGuideStepSeen:Sf(i,v.lastGuideStepSeen),guides:If(i)})})["catch"](function(e){return Af(document,e),C.reject(e)})):(v.guidesPayload({id:t,lastGuideStepSeen:{},guides:[]}),C.resolve()):(I.info("Invalid guide url, exiting preview"),C.reject("invalid guide url")):(I.info("Invalid origin, exiting preview"),C.reject("invalid origin"))}function Lf(e,t){var n=xf();return!n||!kf(n)||!(e=/[?&]id=(\d+)/.exec(e))||e.length<1?C.reject():Mf(n,e[1]).then(t)}function Ff(e,t,n,i){var r,o;if(t)return o=r=(t=t.split("/"))[t.length-1],e&&(o="".concat(e).concat(r.slice(r.indexOf(n)))),i&&-1<(e=o.indexOf("sha256="))&&(o="".concat(o.slice(0,e)).concat("sha256=").concat(i)),t[t.length-1]=o,t.join("/")}Pf=null,Gf=[],Df=function(e){v.apiKey=e+="",Pf=e};var Pf,Gf,Df,Bf,Wf,$f,Uf={getApiKey:function(){return v.apiKey},discoverKeys:function(e){var t=e.apiKey,e=e.additionalApiKeys,e=void 0===e?[]:e;Pf=null,Gf=[],t=t,(t=m.get("apiKey",t))&&Df(t),t=e,t=m.get("additionalApiKeys",t),Gf=y.reduce(t,function(e,t){return t&&e.push(t+""),e},[]),Gf=[].concat(t),v.additionalApiKeys=Gf,!Pf&&Gf&&Gf.length&&Df(Gf[0])},getAdditionalApiKeys:function(){return v.additionalApiKeys},tamperedWith:function(){return v.apiKey!==Pf||v.additionalApiKeys!==Gf}},jf=w.getLocal(),zf=(Bf=rt,Wf="in-app-designer",$f="latest","local"===st&&(Bf="https://local.pendo.io:8080"),S.leaderChanged.on(function(){Zf({ignoreLocalStorageNavigation:/pendo-/.test(window.name)||bf()})}),{launchDesigner:function(e){var t,n="latest",i="designer";eg("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%;}"),tg("designer-shims",Bf+"/"+i+"/"+n+"/plugin.js"),v.DESIGNER_VERSION?qf(n,i):t=window.setInterval(function(){v.DESIGNER_VERSION&&(qf(n,i),clearInterval(t))},100)},launchInAppDesigner:Jf,localStorageNavigation:Zf,launchOnToken:function(e){if(!ng(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=Yf(t),n=Xf(t),window.localStorage.removeItem("pendo-navigation-state"),window.localStorage.removeItem("pendo-designer-mode"),Jf({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,zf.hostConfig.host)},isValidDesignerHost:Vf,isValidTarget:Kf,addCommunicationIframe:function(e,t){e=e||{};y.isFunction(t)||(t=y.noop);var n=Xf(e),e=Hf(e),i=(new Date).getTime(),r=(zf.windowCommunicationId=i,"pendo-designer-communication-iframe");if(document.getElementById(r))return t(),document.getElementById(r);var o="pendo-designer-communication-embedded";o+="__"+i;i=Qf(r,Bf+"/"+e+"/"+n+"/communication.html","border-width:0;height:0;width:0;");return i.setAttribute("name",o),i.onload=t,document.body.appendChild(i),i},addStylesToPage:eg,hostConfig:{host:Bf},isDesignerFrame:ng,addScriptToPage:tg});function Zf(e){if(!e.ignoreLocalStorageNavigation){var t,e=jf.getItem("pendo-navigation-state");if(e&&A.getters["frames/isLeader"]()){try{t=JSON.parse(e)}catch(n){return}if(!t.apiKey||t.apiKey===Uf.getApiKey())if(t.apiKey||!t.agentInstallType||t.agentInstallType===Ge())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},zf.launchInAppDesigner(e),!0}}}function Vf(e){return!!e&&za(e)}function Yf(e){var e=(e=e||{}).host||Bf,t=Vf(e),e=t?e:rt;return t||I.info("Invalid host, falling back to "+rt),e}function Hf(e){var e=(e=e||{}).gcsBucket||Wf,t="in-app-designer"===(t=e)||"da-designer"===t||"adopt-studio"===t,e=t?e:Wf;return t||I.info("Invalid bucket, falling back to "+Wf),e}function Kf(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 Xf(e){e=e||{};var t=m.get("enableCrossOriginIsolation")?"strict":$f,e=e.target||e.baseFolder||t,t=Kf(e),e=t?e:$f;return t||I.info("Invalid target, falling back to "+$f),e}function Jf(e){if(!ng(window.name)&&!v.designerLaunched)if(m.get("disableDesigner"))I.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){}zf.crossFrameChannel===undefined&&(zf.crossFrameChannel=L,zf.useCrossFrameChannel=!0),hs()&&a&&!e.allowChildFrame&&!e.selectionOnly?I.info("skipping designer launch from a child frame. pass `allowChildFrame: true` to override"):v.isReady()?(v.designerLaunchTime=(new Date).getTime(),a=Yf(e=e||{}),i=Hf(e),r=Xf(e),n=e.preloader?"preloader.js":"plugin.js",t=e.preloader?"preloader-shims":"designer-shims",n=a+"/"+i+"/"+r+"/"+n,zf.hostConfig={gcsBucket:i,baseFolder:r,uniqueWindowId:e.uniqueWindowId,host:a,adoptv2:e.adoptv2,DADesigner:e.DADesigner,agentInstallType:Ge(),forceNativeDesigner:!!e.forceNativeDesigner,sidebarDesigner:!!e.sidebarDesigner,apiKey:Uf.getApiKey()},i={},e.selectionOnly&&(i["selection-only"]=!0),m.get("pendoGlobalKey")&&(i["data-pendo-global-key"]=m.get("pendoGlobalKey")),r=m.get("designerAgentPluginsLoader"),a=window.__pendoExtensions&&e.forceNativeDesigner,o=!window.__pendoExtensions&&!y.isFunction(r),(a||o)&&(zf.addScriptToPage(t,n,i),v.designerLaunched=!0),!e.forceNativeDesigner&&y.isFunction(r)&&(r(t,n,i),v.designerLaunched=!0)):I.error("Unable to launch the designer, the agent has not been initialized. Please use `pendo.initialize` prior to launching the designer")}}function qf(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+="__"+zf.windowCommunicationId,(t=Qf("pendo-designer-iframe",Bf+"/"+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 Qf(e,t,n){var i=document.createElement("iframe");return i.setAttribute("id",e),n&&ma(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 eg(e,t){var n;document.getElementById(e)||((n=document.createElement("style")).setAttribute("id",e),n.type="text/css",e=document.createTextNode(t),n.appendChild(e),document.getElementsByTagName("head")[0].appendChild(n))}function tg(e,t,n){var i;document.getElementById(e)||((i=document.createElement("script")).setAttribute("charset","utf-8"),i.setAttribute("id",e),i.src=K(v).createScriptURL(t),n&&y.forEach(n,function(e,t){i.setAttribute(t,e)}),document.body.appendChild(i))}function ng(e){try{var t=JSON.parse(e);return/^pendo-/.test(t.frameName)||/^pendo-/.test(t.frame)}catch(n){return!1}}ig={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"},rg={GRAY_LIGHTER_6:"#EAECF1",GRAY_PRIMARY:"#2A2C35",PENDO_PINK:"#FF4876",TEAL_DARKER:"#036463",TEAL_PRIMARY:"#008180",WHITE:"#FFFFFF"},(og={BUTTON_HEIGHT:35,HEADER_HEIGHT:60,MODAL_HEIGHT:235,MODAL_TOP_OFFSET:150,MODAL_WIDTH:370}).FOOTER_HEIGHT=1.25*og.HEADER_HEIGHT,og.BODY_HEIGHT="calc(100% - "+og.HEADER_HEIGHT+"px - "+og.FOOTER_HEIGHT+"px)",ag='<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>',(sg={})["#"+ig.closeButton+":hover"]={"background-color":rg.GRAY_LIGHTER_6},sg["#"+ig.launchButton+":hover"]={"background-color":rg.TEAL_DARKER+" !important"},dg={PRIMARY_FONT:"Helvetica Neue"};var ig,rg,og,ag,sg,dg,ug={listen:function(){return y.isFunction(document.addEventListener)?(document.addEventListener("keyup",cg,!1),function(){document.removeEventListener("keyup",cg,!1)}):function(){}},launchOnLocalStorageToken:vg,ids:ig,removeElement:fg,attemptToLaunch:hg,loadPluginJs:function(){var t;v.designerLaunched||(t=y.once(function(e){vg(e,!0)}),gs(function(e){"pendo-designer-launch-modal"===e.data.destination&&e.data.token&&t(e.data.token)}))}};function cg(e){e.shiftKey&&e.altKey&&"Digit7"===e.code&&hg(!0),e.shiftKey&&e.altKey&&"Digit8"===e.code&&hg(!1,!0)}function lg(e,t){var n,i,r,o={"background-color":rg.WHITE,height:og.MODAL_HEIGHT+"px","min-height":og.MODAL_HEIGHT+"px",width:og.MODAL_WIDTH+"px",position:"fixed",top:og.MODAL_TOP_OFFSET+"px",left:"50%","margin-left":-og.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=pg("div",ig.container,o);o.appendChild(((i=document.createElement("style")).setAttribute("id",ig.style),i.type="text/css",r=document.createTextNode(function(e){return y.reduce(y.pairs(e),function(e,t){var n=t[0],t=t[1];return e+n+"{"+y.reduce(y.pairs(t),function(e,t){return e+t[0]+":"+t[1]+";"},"")+"} "},"")}(sg)),i.appendChild(r),i)),o.appendChild((r=t,i=pg("div",ig.header,{"background-color":rg.GRAY_PRIMARY,height:og.HEADER_HEIGHT+"px","min-height":og.HEADER_HEIGHT+"px",width:"100%",padding:"10px 20px",display:"flex","align-items":"center","box-sizing":"border-box"}),(t=pg("div",ig.logoContainer,{height:"38px",width:"44px","background-color":rg.PENDO_PINK,padding:"8px","border-radius":"3px","box-sizing":"border-box"})).innerHTML=K(v).createHTML(ag),i.appendChild(t),(t=pg("div",ig.title,{width:"100%",display:"flex","align-items":"center","font-family":dg.PRIMARY_FONT,"font-size":"18px",color:rg.WHITE,"margin-left":"10px","box-sizing":"border-box"})).innerText=r?"VIA Designer":"Pendo Designer",i.appendChild(t),i)),o.appendChild(((r=pg("div",ig.body,{height:og.BODY_HEIGHT,"min-height":og.BODY_HEIGHT,width:"100%",display:"flex",padding:"32px 20px","font-family":dg.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.",r)),o.appendChild((n=e,t=pg("div",ig.footer,{"align-items":"center","border-top":"1px solid"+rg.GRAY_LIGHTER_6,display:"flex",height:og.FOOTER_HEIGHT+"px","justify-content":"flex-end","min-height":og.FOOTER_HEIGHT+"px",padding:"10px",width:"100%","box-sizing":"border-box"}),(i=pg("button",ig.closeButton,{"border-radius":"3px",border:"none",height:og.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":dg.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",i.onclick=function(){fg(ig.container),fg(ig.commIframeId)},(r=pg("button",ig.launchButton,{"background-color":rg.TEAL_PRIMARY,"border-radius":"3px",color:rg.WHITE,border:"none",height:og.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":dg.PRIMARY_FONT,"font-size":"14px",display:"flex","line-height":"120%","min-width":"90px","justify-content":"center","box-sizing":"border-box"})).textContent="Launch Designer",r.onclick=function(){vg(n)},t.appendChild(i),t.appendChild(r),t)),document.body.appendChild(o)}function pg(e,t,n){e=document.createElement(e);return e.setAttribute("id",t),y.extend(e.style,n),e}function hg(t,n){var i,r,o;v.designerLaunched||(o=y.once(function(e){t||!n?vg(e):lg(e,t),gg()}),gs(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),y.contains(e.host,"via")&&!e.visitorId&&(r=r||setInterval(function(){document.getElementById(ig.commIframeId)&&mg()},100))):gg())}),zf.addCommunicationIframe({defaultBucket:"in-app-designer"},function(){mg(),i=window.setInterval(mg,50)}))}function fg(e){document.getElementById(e)&&document.getElementById(e).remove()}function gg(){var e=document.querySelector("#"+ig.commIframeId+'[src*="pendo"]');e&&e.remove()}function mg(){var e=document.getElementById(ig.commIframeId);e&&e.contentWindow&&y.isFunction(e.contentWindow.postMessage)&&e.contentWindow.postMessage({destination:"pendo-designer-ls",source:"pendo-designer-launch-modal",visitorId:v.visitorId},y.get(v,"designerv2.hostConfig.host",rt))}function vg(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),fg(ig.container),zf.launchInAppDesigner(n)}var yg=y.wrap(y.wrap(y.once(y.wrap(function(e){var t=C.defer();return Ka(e,function(){t.resolve()}),t.promise},function(e,t){return 0<y.size(ju._handlers.validateGlobalScript)?oo.get(t).then(function(e){return ju.validateGlobalScript(e.data)}).then(function(){return e(t)}):e(t)})),function(e,t){return t?e(t):C.resolve()}),function(e,t){return m.get("preventCodeInjection")?C.resolve():e(t)}),bg={initializeWatermark:function(e){e=y.filter(e,function(e){return e&&e.attributes&&e.attributes.isWatermark}),bg.watermarkGuides=e,e=y.map(e,function(e){return e.fetchContent()});return C.all(e)},buildWatermark:function(e,t){if((e=e||{}).isTraining){var n=e.targetAccount?function(t){return y.find(bg.watermarkGuides,function(e){return t===e.targetAccount})}(e.targetAccount):function(t){return y.find(bg.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}}}},Ig=1e4;function wg(n,i){var r=!1,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){void 0===t&&(t=Ig);var n=C.defer(),i=At(32),r=(e=y.extend(e,{promiseId:i}),Dt(function(){o[i]&&(n.reject(JSON.stringify({message:"request timed out"})),delete o[i])},t));return s(e).then(function(e){clearTimeout(r),n.resolve(e)}),n.promise},close:function(){r=!0,y.isFunction(n.close)&&n.close()}};function a(e){var t;r||(t=y.extend({apiKey:v.apiKey,allowMixedApiKeyFrames:m.get("allowMixedApiKeyFrames"),agentInstallType:Ge()},e),n.postMessage(t),Dt(function(){d(t)},0))}function s(e){e.promiseId||(t=At(32),e=y.extend(e,{promiseId:t}));var t=C.defer();return o[e.promiseId]=t,a(y.extend(e,{sourceFrame:i.state.frames.frameId})),t.promise}function d(e){try{var t;r||e.apiKey!==v.apiKey&&(!1===e.allowMixedApiKeyFrames||!1===m.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){I.critical("ERROR in cross frame channel",{error:n})}}}var Cg="frames/removeFrame";function Sg(e,t,n){return new Ag(e,t,n,(e=t,t=n,new(y.isFunction(e.MessageChannel)?Eg:Tg)(e,t)))}function Ag(e,t,n,i){this.init(e,t,n,i)}y.extend(Ag.prototype,{init:function(e,t,n,i){this._store=e,this._window=t,this._singletonMessageHandler=n,this._listeners=[],this._targetOrigin=n.targetOrigin(),this._impl=i,this._impl.onconnect=y.bind(this._frameConnectHandler,this),this._impl.onmessage=y.bind(this._fireMessageListeners,this),this._impl.onrelay=y.bind(this._topMessageHandler,this),this._connectToTop(10,0,function(){this._addControlMessageHandler(),this._connectToTop(250,21,function(){this.close(),this._store.commit("frames/setConnectFailed")})})},_fireMessageListeners:function(t){y.each(this._listeners,function(e){e(t)})},_controlMessageHandler:function(e){e=this._impl._parseMessage(e);e.data&&("pendo::connect"===e.data.action&&this._impl.frameConnect(e),e.data.action===Cg)&&this._topMessageHandler(e)},_topMessageHandler:function(e){!e.data||/^pendo::/.test(e.data.action)||this._closed||(e.data.action===Cg&&this._impl.frameDisconnect(e),this._impl.broadcast(e))},_connectToTop:function(e,t,n){this._impl.connectToTop({action:"pendo::connect",frameId:this._store.state.frames.frameId},this._targetOrigin),Dt(y.bind(function(){this._connected||(0===t?y.isFunction(n)&&n.call(this):0<t&&this._connectToTop(Math.min(2*e,1e4),t-1,n))},this),e)},_addControlMessageHandler:function(){this._singletonMessageHandler.addEventListener(y.bind(this._controlMessageHandler,this))},_frameConnectHandler:function(e){e.data&&"pendo::connectSuccess"===e.data.action&&(this._connected=!0,this._impl.connectSuccess(e),this._store.dispatch("frames/join"))},addEventListener:function(e,t){"message"===e&&this._listeners.push(t)},postMessage:function(e){this._closed||this._impl.postMessage(e)},close:function(){this._closed=!0,this._listeners.length=0,this._impl.close()}});e={_frameConnectHandler:function(e){y.isFunction(this.onconnect)&&this.onconnect(this._parseMessage(e))},_messageReceived:function(e){y.isFunction(this.onmessage)&&this.onmessage(this._parseMessage(e))},_relayMessage:function(e){y.isFunction(this.onrelay)&&this.onrelay(this._parseMessage(e))},_parseMessage:function(e){var t;return y.isString(e.data)?((t=y.pick(e,"type","origin","source","ports","lastEventId","target")).data=function(e){if(!y.isString(e))return e;try{return JSON.parse(e)}catch(t){return e}}(e.data),t):e}};function Eg(e,t){this._window=e,this._ports={},this._singletonMessageHandler=t,this._targetOrigin=t.targetOrigin()}function Tg(e,t){this._window=e,this._frames={},this._isTop=e==e.top,this._singletonMessageHandler=t,this._boundMessageReceived=y.bind(this._messageReceived,this),this._isTop||(this._boundFrameConnectHandler=y.bind(this._frameConnectHandler,this),t.addEventListener(this._boundFrameConnectHandler))}y.extend(Eg.prototype,e,{connectToTop:function(e,t){this._closeChannel(),this._openChannel();var n=[];this._channel.port2&&n.push(this._channel.port2),this._window.top.postMessage(e,t,n)},frameConnect:function(e){var t,n=e.ports[0];(t=n)&&y.all(["addEventListener","start"],function(e){return y.isFunction(t[e])})&&((this._ports[e.data.frameId]=n).addEventListener("message",y.bind(this._relayMessage,this)),n.start(),n.postMessage({action:"pendo::connectSuccess"}),n.postMessage({action:"frames/receiveFrame",frame:A.state.frames.frames[A.state.frames.frameId],"pendo-preview":A.state.preview.preview}))},frameDisconnect:function(e){delete this._ports[e.data.frameId]},connectSuccess:function(){this._port.removeEventListener("message",this._boundFrameConnectHandler),this._port.addEventListener("message",y.bind(this._messageReceived,this))},broadcast:function(t){y.each(this._ports,function(e){t.target!==e&&e.postMessage(t.data)})},postMessage:function(e){this._port&&this._port.postMessage(e),e.action===Cg&&this._window.top.postMessage(e,this._targetOrigin)},close:function(){y.each(this._ports,function(e){e.close()}),this._ports={},this._closeChannel()},_openChannel:function(){this._channel=new this._window.MessageChannel,this._port=this._channel.port1,this._boundFrameConnectHandler=y.bind(this._frameConnectHandler,this),this._port.addEventListener("message",this._boundFrameConnectHandler),this._port.start()},_closeChannel:function(){this._port&&y.isFunction(this._port.close)&&(this._port.close(),this._port=null,this._channel=null)}}),y.extend(Tg.prototype,e,{connectToTop:function(e,t){this._isTop||this._window.top.postMessage(JSON.stringify(e),t)},frameConnect:function(e){this._frames[e.data.frameId]=e.source,this._relayHandlerAdded||(this._relayHandlerAdded=!0,this._boundRelayMessage=y.bind(this._relayMessage,this),this._singletonMessageHandler.addEventListener(this._boundRelayMessage)),e.source.postMessage(JSON.stringify({action:"pendo::connectSuccess"}))},frameDisconnect:function(e){delete this._frames[e.data.frameId]},connectSuccess:function(){this._singletonMessageHandler.removeEventListener(this._boundFrameConnectHandler),this._singletonMessageHandler.addEventListener(this._boundMessageReceived)},broadcast:function(t){var n=this._singletonMessageHandler.targetOrigin();y.each(this._frames,function(e){t.source!=e&&e.postMessage(JSON.stringify(t.data),n)}),t.source!=this._window&&this._messageReceived(t)},postMessage:function(e){this._isTop?this._relayMessage({data:e,source:this._window}):this._window.top.postMessage(JSON.stringify(e),this._singletonMessageHandler.targetOrigin())},close:function(){var e=this._singletonMessageHandler;e.removeEventListener(this._boundFrameConnectHandler),e.removeEventListener(this._boundMessageReceived),e.removeEventListener(this._boundRelayMessage)}});_g=window,xg=za,kg=!(Rg=[]);var _g,xg,Rg,kg,Og={targetOrigin:function(){return kg?location.origin:"*"},secure:function(e){kg=e},addEventListener:function(e){0===Rg.length&&_g.addEventListener("message",Ng),Rg.push(e)},removeEventListener:function(e){e=Rg.indexOf(e);0<=e&&Rg.splice(e,1),0===Rg.length&&_g.removeEventListener("message",Ng)},close:function(){_g.removeEventListener("message",Ng),Rg.length=0}};function Ng(t){kg&&!xg(t.origin)||y.each(Rg,function(e){y.isFunction(e)&&e(t)})}function Mg(e){if(!et.addEventListener)return{addEventListener:y.noop,postMessage:y.noop,close:y.noop};var o,a,t=!!window.__pendoExtensions;if(m.get("preferBroadcastChannel")&&!t&&y.isFunction(window.BroadcastChannel)){e.commit("frames/setChannelType","BroadcastChannel");t=new BroadcastChannel("pendo"),o=Gn,a=[],t.removeEventListener=y.wrap(t.removeEventListener,function(e,t,n){var i,r=y.toArray(arguments).slice(1);return"message"===t&&0<=(i=y.findIndex(a,function(e){return e[0]===n}))&&(r[1]=a[i][1],a.splice(i,1)),e.apply(this,r)}),t.addEventListener=y.wrap(t.addEventListener,function(e,t,n){var i,r=y.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)}),t.postMessage=y.wrap(t.postMessage,function(e,t){return t.tabId=o.getTabId(),e.apply(this,y.toArray(arguments).slice(1))});if(t&&y.isFunction(t.postMessage))return t}return e.commit("frames/setChannelType","TopFrameRelay"),Sg(e,window,Og)}var Lg="guides_blocked",Fg="Guides disabled: unreachable endpoint guide.gif";var Pg=w.getLocal(),Gg=[],Dg="Guide was not shown because this visitor is in a control group of an active experiment for the guide",Bg=[];function Wg(){var e=m.get("guideCssAssetPath");return e||Do("guide.css")}var $g="_pendo-guide_",Ug="_pendo_g_",jg=0;function zg(e){jg=e}var Zg=function(){return y.any(k,function(e){return e.isShown()})},Vg=function(e,t){var n=R("._pendo-close-guide_",e);return n.length||(n=R(document.createElement("button")).attr("id","_pendo-close-guide_").attr("aria-label","close").addClass("_pendo-close-guide_").text("\xd7"),tt()?9<Be&&n.css({top:3}):8===Be?n.css({top:9,right:2}):9===Be?n.css({right:2,top:3}):9<Be&&n.css({top:3}),e=R("._pendo-guide-container_",e)[0]||e,n.appendTo(e),n[0].onclick=function(){t()}),n[0]},Yg=function(n){return y.reduce(k,function(e,t){return n(t)&&e.push(t),e},[])},Hg=function(e,t,n,i,r){e=Cu(Iu(e),t);e&&(e.seenState=n,e.lastSeenAt=i,r!==undefined)&&(e.dismissCount=r)},Kg=function(e){for(var t=new RegExp("^"+Ug);e;){if(y.isString(e.id)&&t.test(e.id))return e.id.replace(t,"");e=e.parentNode}return null};function Xg(t){y.each(k,function(e){y.isFunction(e.isShown)&&e.isShown()&&e.hide(t)})}var Jg=function(e){return e&&e.guideId};var qg=function(e,t){var n,i;return Jg(e)&&(t=e,e=null),(n=t)&&y.isFunction(n.render)?t:t?(n=Iu(t.guideId))&&n.findStepById(t.id):(n=y.find(k,function(e){return e.isShown()}))?((i=e?Kg(e.target||e.srcElement||e):i)?(t=n.findStepById(i))||ta("findStepForGuideEvent: step with id "+i):(t=y.find(n.steps,function(e){return e.isShown()}))||ta("findStepForGuideEvent: no step shown"),t):void 0},Qg=function(e){var t="element"===e.advanceMethod?"click":"mouseover",n=Mu(e);"tooltip"===e.type&&y.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):su(n,t,um,!0)};function em(e){return e.isLocked()&&(!e.elements||!e.elements.length||void na('guide "'+e.guideId+'", step "'+e.id+'" locked and rendered'))}var tm=function(e){var e=R("#_pendo-badge_"+e.id),t=e.find("input"),t=0<t.length?t:e;t.length<1||t[0].focus()},nm=function(e){e=y.get(e,"attributes.activation.selector",""),e=Xr(e);e.length<1||e[0].focus()},im=function(){var e=N.getResourceCenterBadge();e?e.element().focus():(e=N.getResourceCenter(),nm(e))},rm=function(e){if(!v.designer&&e&&"building-block"===y.get(e,"attributes.type","")){var t=e.steps[0],n=t.seenReason,i=y.get(e,"launchMethod","").split("-"),r=y.contains(i,"dom"),o=y.contains(i,"badge"),i=wm(e);if(y.get(t,"attributes.isAutoFocus")||i)switch(n){case"badge":o&&tm(t);break;case"dom":r&&nm(e);break;case"launcher":im();break;default:return}}};function om(e,t){return!e.isMultiApp&&("auto"===t||"repeatGuide"===t)}var am=function(e,t){var n,i,r,o,a,s=null;e&&e instanceof Object&&e.until&&(s=e.until),(t=qg(e,t))&&t.id?em(t)||("dismissed"===t.seenState?I.info("step already dismissed. can't dismiss again",{contexts:["guides","error"]}):(I.info("onGuideDismissed called",{contexts:["guides"]}),S.beforeDismiss.trigger(t).cancel?I.info("Guide dismiss canceled during runtime in step: "+t.id):s?t.hide({stayHidden:!0}):(Qg(t),e=t.id,n=Iu(s=t.guideId),i=(i=y.first(n&&n.steps))&&i.seenReason,o=n&&n.language,r=y.get(t,"dismissCount",0)+1,Tm(s,e,E(),i,o),o=b(),Hg(s,e,"dismissed",o,r),(a=y.isFunction(t.getGuide)&&t.getGuide())&&a.attributes&&a.attributes.doNotResume||gh({guideId:s,guideStepId:e,time:o,state:"dismissed",seenReason:i,visitorId:E(),dismissCount:r}),om(n,i)&&Rm(o,xm.DISMISSED),t.hide(),rm(a),Zg()||(kh(),Oh())))):kh()},sm=function(e,t,n){var i,r,o,a,s,d,u,c;I.info("onGuideSnoozed called",{contexts:["guides"]}),(t=qg(e,t))?"snoozed"===t.seenState?I.info("step already snoozed. can't snooze again",{contexts:["guides","error"]}):S.beforeSnooze.trigger(t).cancel?I.info("Guide snooze canceled during runtime in step: "+t.id):(n||(n=864e5,I.info("no snooze duration provided, defaulting to 1 day")),em(t)||(Qg(t),e=t.id,i=t.guideId,r=E(),o=Iu(i),a=o&&o.language,s=y.first(o&&o.steps),s=s&&s.seenReason,d=b(),I.info("snoozing guide for "+n+" ms"),u=d+n,t.snoozeEndTime=u,c=Om({type:"guideSnoozed",guideId:c=i,stepId:e,visitorId:r,seen_reason:s,language:a,snooze_duration:n}),Lm(c),S.guideSnoozed.trigger(c),Hg(i,e,"snoozed",d),o&&o.attributes&&o.attributes.doNotResume||gh({guideId:i,guideStepId:e,time:d,state:"snoozed",seenReason:s,visitorId:E(),snoozeEndTime:u}),om(o,s)&&Rm(d,xm.SNOOZED),t.hide(),rm(o),Zg())||(kh(),Oh())):(I.info("missing step. can't snooze",{contexts:["guides","error"]}),kh(),ta("onGuideSnoozed: missing step"))},dm=function(e){var t,n,i,r=(r=e&&e.step)||qg(e);r?(i=e&&e.params,i=y.find(i,function(e){return"goToStepId"===e.name}),t=i&&i.value,(t=e&&e.destinationStepId?e.destinationStepId:t)?t===r.id?I.info("[goToStep] step id matches the current step",{contexts:["guides","error"]}):(i=Iu(r.guideId),(n=y.find(i.steps,function(e){return e.id===t}))?(n=y.indexOf(i.steps,n),i=y.indexOf(i.steps,r),e.steps=Math.abs(n-i),e.action=e.action||"goToStep",e.destinationStepId=t,i<n?um(e,r,!1):cm(e,r)):I.info("[goToStep] guide has no step matching the step id",{contexts:["guides","error"]})):I.info("[goToStep] missing step id to go to",{contexts:["guides","error"]})):I.info("[goToStep] missing current step",{contexts:["guides","error"]})},um=function(e,t,n){if((s=Nv())&&y.each(s.steps,function(e){var t="element"==e.advanceMethod?"click":"mouseover",n=Mu(e);"tooltip"===e.type&&y.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):su(n,t,um,!0)}),1===arguments.length&&Jg(e)&&(s=bu(e.guideId),i=qg(),s)&&i&&y.first(s.steps).id===i.id&&y.last(s.steps).id===e.id&&(I.info("Cannot skip to last step from first step"),e=null),I.info("onGuideAdvanced called",{contexts:["guides"]}),(t=qg(e,t))===e&&(e=null),t){if(!em(t))if("advanced"!==t.seenState||n)if(S.beforeAdvance.trigger(t).cancel)I.info("Guide advance canceled during runtime in step: "+t.id);else{var i=e&&e.action&&"goToStep"===e.action||!1,r=Iu(t.guideId),o=r&&r.language,a=r&&r.steps&&y.findIndex(r.steps,function(e){return t.id==e.id});if(e&&y.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],_m(r.id,t.id,E(),t.seenReason,o,u!==a);var c=b();gh({guideId:t.guideId,guideStepId:t.id,time:c,state:"advanced",seenReason:t.seenReason,visitorId:E()}),Hg(r.id,t.id,"advanced",c)}return um(r.steps[s],t,!0)}var l,i=t.id,s=t.guideId,p=y.first(r&&r.steps),p=p&&p.seenReason,h=e&&e.destinationStepId,f=(h||(f=e&&y.isNumber(e.steps)&&1<e.steps?e.steps:1,h=(f=y.isNumber(a)&&r&&r.steps&&r.steps[a+f])&&f.id||null),h||I.info("missing destination step id"),I.info("advancing guide"),_m(s,i,E(),p,o,n,h),I.info("update guide status"),r&&y.last(r.steps).id===i&&(l=y.get(t,"dismissCount",0)+1),(new Date).getTime()),g=(Hg(s,i,"advanced",f,l),y.isFunction(t.getGuide)&&t.getGuide());g&&g.attributes&&g.attributes.doNotResume||gh({guideId:s,guideStepId:i,time:f,state:"advanced",seenReason:p,visitorId:E(),destinationStepId:h,dismissCount:l}),om(r,p)&&Rm(f,xm.ADVANCED),I.info("stop guide"),kh(),I.info("start guides"),Oh()}else I.info("step already advanced. can't advance again",{contexts:["guides","error"]})}else I.info("missing step. can't advance",{contexts:["guides","error"]}),kh(),ta("onGuideAdvanced: missing step")},cm=function(e,t){var n,i,r,o,a,s;I.info("onGuidePrevious called",{contexts:["guides"]}),(t=qg(e,t))?"advanced"===t.seenState?I.info("step already advanced. can't go to previous again",{contexts:["guides","error"]}):S.beforePrevious.trigger(t).cancel?I.info("Guide previous canceled during runtime in step: "+t.id):(o=Iu(n=t.guideId),s=e&&e.action&&"goToStep"===e.action||!1,0!==(i=y.indexOf(o.steps,t))&&(r="element"==t.advanceMethod?"click":"mouseover",a=Mu(t),"tooltip"===t.type&&y.isFunction(t.teardownElementEvent)?t.teardownElementEvent(a,r):su(a,r,um,!0),a=e&&y.isNumber(e.steps)?e.steps:1,r=y.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)||I.info("missing destination step id"),I.info("advancing guide"),_m(n,t.id,E(),i,r,!1,o),I.info("update guide status"),a=(new Date).getTime(),Hg(t.guideId,t.id,"advanced",a),(s=y.isFunction(t.getGuide)&&t.getGuide())&&s.attributes&&s.attributes.doNotResume||gh({guideId:t.guideId,guideStepId:t.id,time:a,state:"advanced",seenReason:i,visitorId:E(),destinationStepId:o}),kh(),Oh())):(kh(),ta("onGuidePrevious: missing step"))},lm=function(e){var t;R("._pendo-credits_",e).length||((t=document.createElement("img")).setAttribute("src",Go()+"/img/tiny-logo.png"),t=R(document.createElement("div")).addClass("_pendo-credits_").css({bottom:0,right:v.TOOLTIP_ARROW_SIZE}).append(t),cu.push(t[0]),t.appendTo(e))};function pm(e){return e&&e.attributes&&e.attributes.stayHidden}var hm=function(e,t,n){var i;return Kh()&&(i=e.id,e=e.guideId,S.stepEligibility.trigger({stepId:i,guideId:e,eligible:t,reason:n})),t},fm=function(e){var t,n,i=y.partial(hm,e);return pm(e)?i(!1,"dismissed"):e.elementPathRule||"lightbox"!==e.type&&"whatsnew"!==e.type?e.triggerElementPathRule&&!$a(Xr(e.triggerElementPathRule)[0])?i(!1,"trigger_element"):(t=Mu(e),(n=e.targetElement)&&e.elementContainsRulesList&&!mm(n,e.elementContainsRulesList)?i(!1,"contains_rules"):(n="tooltip"===e.type||dl.isBuildingBlockGuideRelativeToElement(e),e=$a(t),n?e?i(e,"target_element_tooltip"):i(Ua(t),"target_element_tooltip_scroll"):i(e,"target_element"))):i(!0,"")};function gm(e){var t=(R(e).text()||"").trim().toLowerCase(),e=e.value;return t||e}function mm(e,t){for(var n=gm(e),i=0;i<t.length;i++)if(!vm(n,t[i]))return!1;return!0}function vm(e,t){var n=t.matchType,i=t.matchValue,t=t.dataType,e=e||"";if("number"===t){var r=Ot(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 ym=function(e){return Ug+e.id},bm=function(e){var t=e.element,n=y.first(R("#"+ym(e)));t&&n?$a(t)||R.hasClass(n,"mouseover")?Dt(function(){bm(e)},_h):e.hide&&(e.hide(),Zg())||(kh(),Oh()):t||!n||e.hide&&(e.hide(),Zg())||(kh(),Oh())},Im=function(){return!1},wm=y.partial(y.get,y,"attributes.resourceCenter"),Cm=function(t){var e;Zg()&&(e=qg(),Qg(e),wm(t)?(e=Yg(wm),(e=y.filter(e,function(e){return e.id!==t.id})).length&&A.dispatch("frames/hideGuides",y.pluck(e,"id"))):(Xg(),A.dispatch("frames/hideGuides")))},Sm=function(e,t){return!(!e||!e.guideId||!(e=Iu(e.guideId)))&&(Cm(e),e.launch(t),e.isShown())},Am=function(e,t,n,i,r,o){e=Om({type:"guideNotSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r});o&&y.extend(e.props,{step_poll_types:o}),Lm(e),S.guideNotSeen.trigger(e)};var Em=function(e,t,n,i,r,o){i||(I.critical("pendo.io guideSeen exception",{guideId:e,stepId:t,error:new Error("seenGuide called without seen reason")}),a=Iu(e),s="auto",i=a&&(a=(a.launchMethod||s).split("-"),!y.contains(a,s))&&a.length?y.first(a):s);var a=Om({type:"guideSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r}),s=(y.extend(a.props,o),Lm(a),b());gh({guideId:e,guideStepId:t,time:s,state:"active",seenReason:i,visitorId:E()}),Hg(e,t,"active",s),S.guideSeen.trigger(a)};function Tm(e,t,n,i,r){e=Om({type:"guideDismissed",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r});Lm(e),S.guideDismissed.trigger(e)}function _m(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=Om(e);Lm(t,null,o),S.guideAdvanced.trigger(t)}var xm={DISMISSED:"latestDismissedAutoAt",SNOOZED:"latestSnoozedAutoAt",ADVANCED:"finalAdvancedAutoAt"};function Rm(e,t){km(e,t);var n={};n[t]=e,A.dispatch("frames/changeThrottlingState",n)}function km(e,t){y.contains(y.values(xm),t)&&(y.isFunction(e.getTime)&&(e=e.getTime()),v[t]=e,w.write(t,e,hh),A.dispatch("guideState/updateThrottlingState",{name:t,value:e}))}function Om(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),y.isString(a.language)||delete a.language,y.extend({guide_id:a.guideId,guide_step_id:a.stepId},y.omit(a,"type","guideId","stepId","visitorId"))),t=Gn.addTracerIds({type:a.type,visitor_id:a.visitorId,account_id:mi(),browser_time:(new Date).getTime(),url:Lo.externalizeURL(),props:e});return S.eventCaptured.trigger(t),t}var Nm=null,Mm=function(e){window.clearTimeout(Nm),Nm=Dt(cv,e)},Lm=function(e,t,n){t=t||500,e.props.duration=n?0:(new Date).getTime()-jg,gv(),dv.push(e),Mm(t)},Fm=function(e,t){return"dismissed"===e.state?null:Iu(e.guideId).nextStep(e,t||Pm())},Pm=function(){return v.normalizedUrl||Gm(Lo.externalizeURL())},Gm=function(e){try{var t=new Ci(e),n=y.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(i){return I.error("Invalid URL provided to normalize"),e}},Dm=function(e,t){return!fe(e)||new RegExp(e).test(t)},Bm=function(e,t){e=wu(e);return!!e&&(!(t=Sm(y.first(e.steps),t||"api"))&&e.control&&I.info(Dg),t)},Wm=function(e,t){e=Iu(e);return!!e&&(!(t=Sm(y.first(e.steps),t||"api"))&&e.control&&I.info(Dg),t)};function $m(e,t){return t=parseInt(t,10),isNaN(t)||!y.isNumber(t)||!(y.isNumber(e)&&e<t)&&y.isNumber(e)?e:t}var Um,jm=function(){kh(),Rh(),N.removeNotificationBubble(),of(),ks()};function zm(){kh(),sa(),v.segmentFlags=[],v.doNotProcess=!0,I.info("not tracking visitor due to 451 response")}function Zm(e){var t;Um&&(451===e.statusCode&&(zm(),Um.deferred.reject(e)),y.isString(e.id)&&e.id!==Um.id||(t=y.indexBy(v.guides,"id"),y.extend(v,e),v.guides=y.map(v.guides,function(e){return 1==y.keys(e).length&&e.id?t[e.id]:e}),Um.deferred&&Um.deferred.resolve(),Um=null))}var Vm=function(e,t){var n=Bo(),i=y.uniqueId(),r=C.defer(),o=(Um={id:i,deferred:r},sp()||((o=dp())?(I.info("sending metadata: "+JSON.stringify(o),{contexts:["guides","metadata"]}),t.metadata=o):I.info("no metadata to send",{contexts:["guides","metadata"]})),yt(t)),i={id:i,jzb:o,v:dt,ct:(new Date).getTime()},n=(n&&t.accountId&&"ACCOUNT-UNIQUE-ID"!==t.accountId&&(i.acc=wt(t.accountId)),Kh()&&(i.debug=!0),Qo(Ym.endpoint(),e,i)),t=Gs.get();return o=2e3<n.length||!y.isEmpty(t)?(delete i.jzb,n=Qo("guide.json",e,i),i=y.extend({events:o},t),Ym.post(n,i,v,y.noop)):Ym.load(n,v,y.noop),C.all([o["catch"](function(e){return 451===e.status&&zm(),C.reject(e)}),r.promise,(t=Ym,i=e,"1"===(n=w.read(Lg))?(I.info(Fg),C.resolve({success:!1,cached:!0})):"0"===n?C.resolve({success:!0,cached:!0}):(n=Qo("guide.gif",i,{jzb:"eJwFwIEIAAAAwDDQd3-N1QABFQC5",ct:b(),v:dt}),(t.usesXhr()?oo.get(n):ia(n)).then(function(){return{success:!0}},function(e){return e&&e.status?{success:!0}:{success:!1}})))]).then(function(e){var t,e=e[2];if((t=e).cached||(t.success?w.write(Lg,"0",144e5):(I.info(Fg),w.write(Lg,"1",18e5))),!e.success)return C.reject()})},Ym=zu;function Hm(e){e=y.find(e.steps,function(e){return e.pageId&&!e.regexUrlRule});return!e||(I.critical("pendo.io guide validation exception",{guideId:e.guideId,stepId:e.id,error:new Error("missing regexUrlRule for page "+e.pageId+'"')}),!1)}function Km(n){return y.every(Bg,function(e){try{return e(n)}catch(t){return console.debug("Error in guide processor",e,n.id),!1}})}function Xm(e,t){return e.attributes||(e.attributes={}),!isNaN(e.attributes.priority)&&y.isNumber(e.attributes.priority)||(e.attributes.priority=t),-e.attributes.priority}var Jm,qm=function(){return!m.get("disableGlobalCSS")};function Qm(e,t){var n=m.get("dropAnonymous");if(ii(e)&&n)I.info("loading guides blocked for anonymous visitors due to dropAnonymous config setting being set to true"),y.isFunction(t)&&t("error: guides are blocked");else if("1"===w.read(Lg))I.info("guide events are blocked, load guides cancelled"),y.isFunction(t)&&t("error: guides are blocked");else{if(Ss(As()))return 1;I.info("bad url: probably local file system",{contexts:["guides","error"]}),y.isFunction(t)&&t("error: invalid url")}}var ev=function(e,o,a,s){var t,d,n,i,r,u,c,l,p,h,f=C.defer(),g=!1;return e=e||v.apiKey,Qm(o=o||E(),s)?(I.info("loading guides for "+a+"...",{context:["guides"]}),a=Lo.externalizeURL(a),t=ev.lastVisitorId!==o,d=t?y.noop:(r=k,(i=y.find(r,function(e){return y.isFunction(e.isRendered)&&e.isRendered()&&!e.isTopLevel}))?(n=y.chain(i.steps).filter(function(e){return e.isRendered()}).indexBy("id").value(),function(e){e=y.findWhere(e,{id:i.id});e&&!y.get(e,"attributes.doNotResume")&&y.each(e.steps,function(e){var t=n[e.id];!t||e.seenState&&"active"!==e.seenState||e.show(t.seenReason)})}):function(){}),r=(ev.lastVisitorId=o,Rh(),A.commit("guideState/setLastGuideRequestAt",b()),{visitorId:o,accountId:mi(),url:a,oldVisitorId:li=li===undefined&&ri()?yi(Qn):li}),u=v,h=ev,void 0===c&&(c=b()),l=[],m.get("cacheGuides")&&!(l=c-(h.lastUncached||0)<m.get("cacheGuidesTimeout")?y.map(u.guides,function(e){return y.pick(e,"id","lastUpdatedAt")}):l).length&&(h.lastUncached=c),p=((u=l).length&&!t&&(r.cachedGuides=u),y.uniqueId()),h=(ev.reqId=p,Vm(e,r).then(function(){var e,t,n,i,r;g||v.designer||(ev.reqId!==p?f.resolve():(S.deliverablesLoaded.trigger(),I.info("successfully loaded guides for "+a,{contexts:["guides"]}),v.designerEnabled&&"true"!==Pg.getItem("pendo-designer-mode")&&ug.loadPluginJs(),jm(),(r=v.lastGuideStepSeen)?(A.dispatch("guideState/receiveLastGuideStepSeen",r),r.visitorId=o,A.dispatch("guideState/updateLastGuideStepSeen",r),A.commit("guideState/setLastGuideRequestAt",b()),pu={},r=v.guides,mu(r=y.chain(r).map(cc).filter(Hm).filter(Km).sortBy(Xm).value()),e=Su(),A.dispatch("guideState/load",(n=fh,i=m.get("crossAppGuideStorageSuffix"),w.read(n,!1,i))),A.dispatch("guideState/apply"),v.latestDismissedAutoAt=$m(v.latestDismissedAutoAt,w.read("latestDismissedAutoAt")),A.dispatch("guideState/updateThrottlingState",{name:"latestDismissedAutoAt",value:v.latestDismissedAutoAt}),v.finalAdvancedAutoAt=$m(v.finalAdvancedAutoAt,w.read("finalAdvancedAutoAt")),A.dispatch("guideState/updateThrottlingState",{name:"finalAdvancedAutoAt",value:v.finalAdvancedAutoAt}),v.latestSnoozedAutoAt=$m(v.latestSnoozedAutoAt,w.read("latestSnoozedAutoAt")),A.dispatch("guideState/updateThrottlingState",{name:"latestSnoozedAutoAt",value:v.latestSnoozedAutoAt}),A.dispatch("healthCheck/init",r),A.dispatch("frames/changeGuideList",e),v.eventProperties=Cv(v.features),e.length?C.all([sv(),yg(pc(v.globalJsUrl)),hv(r),bg.initializeWatermark(r),iv(5e3)].concat((t=r,y.map(tv,function(e){return e(t)})))).then(function(){ev.reqId===p&&(A.getters["frames/isLeader"]()&&d(k),S.guidesLoaded.trigger(),Oh(),clearTimeout(Jm)),y.isFunction(s)&&s(),f.resolve()},function(e){I.error("Post loadGuide request failed: ",e),S.guidesFailed.trigger(),f.reject()}):(S.guidesLoaded.trigger(),f.resolve())):I.info("lastGuideStepSeen is not set, shutting down guides")))})["catch"](function(e){S.guidesFailed.trigger(),f.reject(e)}),m.get("guideTimeout")||m.get("guides.timeout")),y.isNumber(h)&&(clearTimeout(Jm),Jm=Dt(function(){var e;e=f,jm(),e.reject(),g=!0},h))):f.reject(),f.promise};var tv=[];function nv(e,t){var n,i=document.getElementById(e);return i&&i.href&&0<=i.href.indexOf(t)?C.resolve():(n=C.defer(),R(i).remove(),v.loadResource(t,function(){n.resolve()}).id=e,n.promise)}var iv=y.memoize(function(t,n,e){if(!qm()||!rv(k))return C.resolve();n=n||b,e=e||"_pendo-hidden_";var i=R(document.createElement("div")).addClass(e).css({position:"absolute",bottom:"0px",right:"0px",width:"0px",height:"0px",visibility:"hidden"}).appendTo(R.getBody()),r=n(),o=C.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=f(e);if(e)return"none"===e.display}});function rv(e,t){return t&&t.designer||y.any(e,function(e){return!xu(e)&&y.any(e.steps,function(e){return!(e.domUrl||e.domJsonpUrl||e.domJson)})})}var ov="_pendo-default-css_",av="_pendo-css_";function sv(){var e=[];if(!qm())return C.resolve();rv(k,v)&&e.push(nv(ov,Wg()));var t=((v.guideWidget||{}).data||{}).guideCssUrl;return t?e.push(nv(av,pc(t))):R("#"+av).remove(),C.all(e)}var dv,uv,cv=function(e){dv&&dv.flush(e)},lv=function(){return Gg};function pv(e){var t=Zs(nd,Xs("visitor_id"),Xs("props.guide_id"),Xs("props.source"),td,id(),ad(e),sd,dd),n=Zs(Ys,Hs(e.cache),y.noop);return new Ed(y.extend({processSilos:t,packageSilos:n},e))}var hv=function(e){return N.initializeResourceCenter(e)},L={postMessage:y.noop,close:y.noop},fv=L;function gv(){return dv=dv||pv({cache:Gg,apiKey:function(){return v.apiKey},beacon:"guide",allowPost:!0,preferFetch:et.safari}),uv=uv||pv({cache:[],apiKey:function(){return v.apiKey},beacon:"poll",allowPost:!0,preferFetch:et.safari}),function(){dv.clear(),uv.clear()}}function mv(e){var e=e.blockedURI;e&&-1!==e.indexOf("/data/guide.json")&&m.get("cacheGuides")&&((e=m.getLocalConfig()).cacheGuides=!1,m.setLocalConfig(e),no(window,"securitypolicyviolation",mv),kv())}var vv=function(){var e,t,n,i,r,o,a=[],s=(a.push(gv()),Qh.run(),a.push(Qh.stop),S.appHidden.on(function(){cv({hidden:!0})}),S.appUnloaded.on(function(){cv({unload:!0}),A.dispatch("frames/leave")}),S.metadata.on(function(e){e.data[0].storeChanged&&!sp()&&Rv()}),S.identify.on(function(){Rv()}),S.urlChanged.on(function(){Rv(Lo.get())}),S.guideUpdateComplete.on(function(){var e,t,n;e=y.filter(k,function(e){return y.isFunction(e.outsideTimebox)&&e.outsideTimebox()}),yu.addGuide(e),yc.processPrefetch(),e=k,t=lu,m.get("disablePrefetch")||(t=y.keys(t)).length&&(n=y.indexBy(e,"id"),y.each(t,function(e){var e=n[e];e&&(e=y.first(e.steps))&&y.isFunction(e.fetchContent)&&e.fetchContent(!0)}))}),S.guidesLoaded.on(function(){N.fetchAnnouncementGuidesContent(k,A)}),S.guideListChanged.on(function(e){var n,e=e.data[0].guideIds;(e=e)&&e.length&&(n=y.indexBy(e),y.each(lu,function(e,t){n[t]||(e.hide(),delete lu[t])}))}),a.push((e=document,t=function(){Lo.get()===xv.lastUrl&&kv()},s=window.Turbolinks,i=window.Turbo,s&&(n=s.EVENTS&&s.EVENTS.LOAD),(n=i&&i.visit?"turbo:load":n)?to(e,n,t):function(){})),m.get("guides.tooltip.arrowSize"));return y.isNumber(s)&&(v.TOOLTIP_ARROW_SIZE=s),fv=Mg(A),L=wg(fv,A),a.push(function(){return L.close()}),a.push(Gn.tabIdChanged(function(){var e=Gn.getTabId();A.commit("frames/setTabId",e),A.dispatch("frames/join")})),A.dispatch("frames/init"),A.dispatch("frames/join"),a.push((r=[],A.dispatch("guideState/init"),r.push(to(window,"focus",mh)),r.push(to(window,"storage",function(e){A.dispatch("guideState/storageChanged",e)})),function(){return y.each(r,function(e){e()})})),a.push(function(){Ev.cancel(),df.cancel()}),a.push(to(window,"resize",Ev)),a.push(to(window,"scroll",df,!0)),a.push(to(window,"gestureend",Tv,!0)),a.push(to(window,"securitypolicyviolation",mv)),a.push(function(){for(var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],t=[],n=0;n<e.length;n++)t.push(to(document,e[n],_v));return function(){y.each(t,function(e){e()})}}()),m.get("preferMutationObserver")&&et.MutationObserver&&(o=y.debounce(function(e){A.dispatch("guideUpdate/documentChanged")},50),a.push(function(){o.cancel()}),a.push(l(window,"animationend",o)),a.push(l(window,"transitionend",o)),a.push(l(window,"mouseover",o)),A.commit("guideUpdate/setUseObserver"),m.get("observeShadowRoots")&&A.commit("guideUpdate/setObserveShadowRoots"),a.push(function(){return A.dispatch("guideUpdate/stopObserver")})),w.registry.addLocal(xm.ADVANCED),w.registry.addLocal(xm.DISMISSED),w.registry.addLocal(xm.SNOOZED),w.registry.addLocal(Lg),Ac.initialize(),function(){xv.reset(),jm(),Rv.reset(),ev.reqId=null,y.each(a,function(e){e()}),R("#"+ov).remove(),R("#"+av).remove(),Ac.teardown()}},yv=function(){return m.get("guides.disabled",!1)||m.get("disableGuides",!1)||!qo},bv=function(){return m.get("guides.delay",!1)||m.get("delayGuides",!1)},Iv=function(e){var t=m.getLocalConfig();t.disableGuides=e,m.setLocalConfig(t)},wv=function(e){var t=m.getLocalConfig();t.delayGuides=e,m.setLocalConfig(t)},Cv=wi(function(e){if(e&&e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n].featureRule,r=y.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}}),Sv=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement},Av=function(){I.debug("adjustActiveGuideOnResize firing");var e=Nv();e&&e.step&&!v.ignoreResize&&e.step.redraw()},Ev=y.debounce(function(){var e;-1<y.get(document,"activeElement.id","").indexOf("pendo-video-")?(!(e=Sv())||e.id.indexOf("pendo-video-")<0)&&Dt(function(){Av()},150):Av(),df()},50),Tv=function(e){1!==e.scale&&Ev()},_v=function(e){var t=y.get(document,"activeElement.id",""),e=y.get(e,"target.id","");y.filter([t,e],function(e){return-1<e.indexOf("pendo-video-")}).length&&(Sv()?v.ignoreResize=!0:Dt(function(){v.ignoreResize=!1},1e3))};function xv(e){var t,n,i,r,o=E(),a=mi();e=e||Lo.get(),n=o,i=a,r=Fl,!(t=e)||!v.apiKey||yv()&&"true"!==Pg.getItem("pendo-designer-mode")||t===xv.lastUrl&&n===xv.lastVisitorId&&i===xv.lastAccountId&&r===xv.lastMetadataHash||(xv.lastUrl=e,xv.lastVisitorId=o,xv.lastAccountId=a,xv.lastMetadataHash=Fl,ev(v.apiKey,o,e)["catch"](y.noop))}xv.reset=function(){y.each(["lastUrl","lastVisitorId","lastAccountId","lastMetadataHash"],function(e){xv[e]=null})};var Rv=function(e){qo&&(Rv.reset(),Rv.pending=Dt(function(){delete Rv.pending,xv(e)},0))};function kv(){xv.lastUrl=null,Rv()}function Ov(e){e=Bg.indexOf(e);-1!==e&&Bg.splice(e,1)}function Nv(){var e,n,t=y.find(k,function(e){return e.isShown()});return!t||y.get(t,"attributes.resourceCenter.isModule")&&!(t=N.getResourceCenter())?null:(e=y.find(t.steps,function(e,t){return n=t,e.isShown()}),{guide:t,steps:y.filter(t.steps,function(e,t){return e.isShown()}),step:e,stepIndex:n})}function Mv(e){var t,n=y.get(e,"value","");-1!==y.get(e,"parentElement.className","").indexOf("_pendo-nps-poll-"+n+"-wrapper")&&(e=R("._pendo-nps-open-text-poll-question"),t=R("._pendo-nps-open-text-poll-input")[0],y.forEach(e,function(e){"none"!==y.get(e,"style.display","none")&&t&&t.setAttribute("aria-labelledby",e.id)}))}Rv.reset=function(){Rv.pending&&clearTimeout(Rv.pending)};var Lv,Fv,Pv,Gv,Dv,Bv=function(){var n=this,o=(this.eventable=Un.call({}),this.eventable.on("pendoEvent",function(e){try{n.eventHandler(e)}catch(t){e=e&&e.action||"NO ACTION DEFINED";I.critical("Error in Action "+e,{error:t})}}),this.eventHandler=function(e){if(!e.ignore&&!v.designer){var t=e.step.guideElement;switch(e.action){case o.advanceGuide:um(e,e.step);break;case o.previousStep:cm(e,e.step);break;case o.goToStep:dm(e);break;case o.submitPoll:this.submitPoll(e);break;case o.guideSnoozed:var n=e&&e.params&&e.params[0]&&e.params[0].value;sm(e,e.step,n);break;case o.dismissGuide:N.attemptToPreserveIntegrationIframes(e),!function(e){if(!e||!e.step)return am();var t=e.step.getGuide();if(t&&t.attributes&&t.attributes.resourceCenter)return N.dismissResourceCenter(t);am(e,e.step)}(e);break;case o.showElements:this.setElementDisplay(e,"block"),e.srcElement&&Mv(e.srcElement),Rl((i=kc(e.step.domJson)).props.id,t),kl(i.props.id,t),g.flexAllThings(i.props.id,t),xl(i.props.id,t);break;case o.hideElements:this.setElementDisplay(e,"none"),Rl((i=kc(e.step.domJson)).props.id,t),kl(i.props.id,t),g.flexAllThings(i.props.id,t),xl(i.props.id,t);break;case o.slideElement:this.setElementAnimation(e);break;case o.showGuide:n=y.find(e.params,function(e){return"reason"===e.name});Wm(e.params[0].value,n&&n.value);break;case o.launchGuide:this.launchGuide(e);break;case o.renderResourceCenterModule:var i=a(e);N.replaceResourceCenterContent(e.params[0].value,i);break;case o.returnToResourceCenterHome:n=N.findResourceCenterHomeView(fu());if(!n)return;N.attemptToPreserveIntegrationIframes(e),N.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),dm(e);break;case o.confirmation:this.confirmGuide(e)}var r=Bv.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=R("[data-pendo-poll-id]",i.guideElement[0]);n=n.concat(y.map(r,function(e){var t,n=R("textarea,input:text,select,input:radio:checked",e);if(n&&n.length&&n[0].value)return t=e.getAttribute("data-pendo-poll-id"),e=y.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(y.compact(n)):I.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=R(y.find(e.params,function(e){return"selectors"===e.name}).value,n.guideElement[0]);y.each(e,function(e){e.style.display=t})},this.setElementAnimation=function(e){var t=R(y.find(e.params,function(e){return"selector"===e.name}).value,e.step.guideElement[0])[0],n=y.find(e.params,function(e){return"transition"===e.name}).value,e=y.find(e.params,function(e){return"left"===e.name}).value;t.style.transition=n,t.style.left=e},this.openLink=function(e){var t=y.find(e.params,function(e){return"url"===e.name}).value,e=y.find(e.params,function(e){return"target"===e.name}).value;"_self"===e&&hs()&&(e="_top");window.open(t,e)},this.goToStep=dm,this.searchGuides=function(e){var t="",n=e.srcElement.value,e=R("#pendo-resource-center-container"),i=e.find('[id^="pendo-list-item-"]'),r=e.find('[id^="pendo-results-count-container"]'),e=e.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,R(i[d]).text()&&(-1!==R(i[d]).text().toLowerCase().indexOf(n.toLowerCase())?(R(i[d]).css({display:"list-item"}),u=!(a=!1)):R(i[d]).css({display:"none"})),y.isFunction(i[d].getAttribute)&&(t=i[d].getAttribute("data-_pendo-text-list-item-1").split(","),y.forEach(t,function(e){y.contains(o,e)||o.push(e)})),this.searchAllTerms(o,t,n)&&i[d]&&(R(i[d]).css({display:"list-item"}),u=!(a=!1)),t="",u)&&s++}a?R(e[0]).css({display:"block"}):R(e[0]).css({display:"none"});{var c;r&&r.length&&(r[0].innerHTML="",n)&&(c="",0===s?(c=e[0].innerText,this.debounceAnnounceResults(r[0],c)):(e=1===s?"data-pendo-aria-label-alert-singular":"data-pendo-aria-label-alert-plural",(c=r[0].getAttribute(e))&&(c=c.replace("{RESULT_COUNT}",s),this.debounceAnnounceResults(r[0],c))))}},this.searchAllTerms=function(t,e,n){return!!e&&e.some(function(e){return y.contains(t,e)&&e===n})},this.confirmGuide=function(e){var e=e.step,t=function(e){if(e.confirmationElementPathRule)return Xr(e.confirmationElementPathRule)[0]}(e);e.advance(),t?t.click():I.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){y.get(e,"params.2.value.doNotDismiss")||am(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=Iu(e.params[0].value),i=e.params[1].value,r=(r=y.find(n.steps,function(e){return e.id===i}))||n.steps[0],Cm(n),r.show("api")):t&&Wm(e.params[0].value)}},this.debounceAnnounceResults=y.debounce(function(e,t){e.innerHTML=t},300),{advanceGuide:"advanceGuide",previousStep:"previousStep",goToStep:"goToStep",submitPoll:"submitPoll",guideSnoozed:"guideSnoozed",dismissGuide:"dismissGuide",showElements:"showElements",hideElements:"hideElements",slideElement:"slideElement",showGuide:"showGuide",launchGuide:"launchGuide",renderResourceCenterModule:"renderResourceCenterModule",returnToResourceCenterHome:"returnToResourceCenterHome",openLink:"openLink",searchGuides:"searchGuides",submitPollAndGoToStep:"submitPollAndGoToStep",confirmation:"confirmation"});function a(e){return e.params.find(function(e){return"transitionDirection"===e.name})?[{name:"transitionCss",type:"string",value:"left 200ms"},{name:"transitionDirection",type:"string",value:"right"}]:[]}return this},Wv=(Bv.registerAction=function(e,t){e&&"string"==typeof e&&t&&"function"==typeof t&&((Bv.prototype.registeredActions=Bv.prototype.registeredActions?Bv.prototype.registeredActions:{})[e]=t)},Bv.deregisterAction=function(e){e&&"string"==typeof e&&delete(Bv.prototype.registeredActions=Bv.prototype.registeredActions?Bv.prototype.registeredActions:{})[e]},Lv="guideActivity",Fv=function(){return(new Date).getTime()-jg},Pv=y.isObject,Gv=y.findWhere,{type:Lv,handler:function(e){var t,n=e.data[0],e=e.data[1];e=e,Pv(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if(y.isString(e.id)&&0===e.id.indexOf("pendo-base"))return!0;if(Pv(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return $v(e)}(t)||function(e){return jv(e)}(t)||function(e){return Uv(e)}(t))&&(e=function(e){var t=function(e){for(var t=0,n=Dv;t<n.length;t++){var i=(0,n[t])(e);if(i)return i}return Nv()}(e);if(t&&(!function(e){e=e.guide.activeModule;return e&&e.attributes&&e.attributes.resourceCenter&&"AnnouncementsModule"===e.attributes.resourceCenter.moduleId}(t)||(t=function(e){var t=R("#"+e).closest("[data-pendo-announcement-guide-id]").attr("data-pendo-announcement-guide-id"),e=y.find(fu(),function(e){return e.id===t});return e?{guide:e,step:e.steps[0]}:undefined}(e.id)))&&t.step&&t.step.domJson){var n,i,r,e=jv(e)||$v(e)||Uv(e)||{type:e.tag,id:e.id},o=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(o)return n=e.id,o=function(e,t){if(e!==undefined){if("a"===e.type)return[{action:"openLink",url:To(e.props.href),target:e.props.target}];if(e.actions!==undefined)return y.map(e.actions,function(e){switch(e.action){case"automation":var t=Gv(e.parameters,{name:"automationIds"});return{action:e.action,automationIds:t};case"openLink":var t=Gv(e.parameters,{name:"url"}),n=Gv(e.parameters,{name:"target"});return{action:e.action,url:To(t.value),target:n.value};case"submitPollAndGoToStep":case"goToStep":t=Gv(e.parameters,{name:"goToStepId"});return{action:e.action,guideStepId:t.value};case"guideSnoozed":n=Gv(e.parameters,{name:"snooze_duration"}),t=Gv(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&&y.isArray(e.templateChildren)&&e.templateChildren[t.templateChildIndex])return[{action:"showGuide",guideId:e.templateChildren[t.templateChildIndex].id}]}return[]}(o,e),r=o[0],i=(r=void 0===r?{}:r).action,r=r.guideId,"showGuide"===i&&r&&(n+="-"+r),Om({type:Lv,visitorId:E(),ui_element_id:n,ui_element_type:e.type,ui_element_actions:o,guideId:t.guide.id,stepId:t.step.id,duration:Fv(),language:t.guide.language})}}(n))&&Lm(e)},registerGuideResolver:function(e){Dv.push(e)},removeGuideResolver:function(e){e=Dv.indexOf(e);-1!==e&&Dv.splice(e,1)}});function $v(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-button/.test(e.id))?{type:e.tag,id:e.id}:zv(e)||!Pv(e.parentElem)?null:$v(e.parentElem)}function Uv(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 zv(e)||!Pv(e.parentElem)?null:Uv(e.parentElem)}function jv(e){return"A"===e.tag?{type:e.tag,id:e.id}:zv(e)||!Pv(e.parentElem)?null:jv(e.parentElem)}function zv(e){return y.isString(e.id)&&0===e.id.indexOf("pendo-guide-container")}var Zv=[],Vv=!(Dv=[]),Yv={agent:{getJwtInfoCopy:Gs.get,treatAsAdoptPartner:Bo},agentStorage:w,analytics:{ptm:function(){return Sd}},attachEvent:l,ConfigReader:m,Events:S,EventTracer:Gn,EventRouter:Bv,Extensions:{API:{addTopic:function(e,t){var n=cp[e]||{};y.extend(n,t),cp[e]=n}}},frames:{getChannel:function(){return fv}},getAssetUrl:Do,getEventable:function(){return Un.call({})},GlobalRuntime:{addGlobalScript:Ac.addGlobalScript,removeGlobalScript:Ac.removeGlobalScript},GuideActivity:Wv,GuideLoop:{addUpdatePhase:zh,removeUpdatePhase:Zh},guides:{addProcessor:function(e){return Bg.push(e),y.partial(Ov,e)},removeProcessor:Ov,registerDisplayableGuides:function(e,t){y.isArray(t)&&(pu[e]=t)},removeDisplayableGuides:function(e){delete pu[e]}},hosts:{SERVER:rt},NodeSerializer:Yd,q:C,sessionStorage:w.getSession(),sizeElements:Tl,store:A,Tombstone:yu,transmit:{buildBaseDataUrl:Qo,fetchKeepalive:ra,sendBeacon:oa},log:I,util:{trim:gt,base64EncodeString:wt,parseUrl:Za},constants:{URL_MAX_LENGTH:2e3}};function Hv(t){y.find(Zv,function(e){return e.name===t.name})?I.warn("Plugin with name ".concat(t.name," already exists. Skipping registration.")):(Zv.push(t),Vv&&t.initialize(v,Yv))}function Kv(){y.each(Zv,function(e){y.isFunction(e.teardown)&&e.teardown(v,Yv)}),Vv=!1}gp.registerExtensionsByUse("plugin",function(e){return y.extend(e.uri,y.pick(e,"name")),Hv(e.uri),e},function(e){return!!e.uri.initialize&&!!e.uri.teardown});var Xv=!1;function Jv(){Xv||(S.identify.on(function(e){var t,n,e=e.data[0];n=(t=e).old_visitor_id,t=t.visitor_id,(ii(n)?ni(t)?ii(t)?(I.info("Visitor is anonymous: "+t),1):si(t)?(I.info("Visitor id is the default: "+t),1):(I.info("Re-mapping visitor identity from "+n+" to "+t),0):(I.info("Not valid visitor id: "+t),1):(I.info("Visitor is already identified: "+n),1))&&(n=(t=e).old_account_id,t=t.account_id,ni(t)?n===t||(I.info("Re-mapping account identity from "+n+" to "+t),0):(I.info("Not valid account id: "+t),1))||(js("identify",e),ks())}),S.metadata.on(function(e){var t;sp()||(t=(e=e.data[0]).options,e.hashChanged&&(js("meta",t),ks()))}),Xv=!0)}qv="guideActivity",Qv=function(){return(new Date).getTime()-jg},ey=y.isObject;var qv,Qv,ey,ty={type:qv,handler:function(e){var t,n=e.data[0],e=e.data[1];e=e,ey(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if("pendo-resource-center-container"==e.id)return!0;if(ey(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return ry(e)}(t)||function(e){return ny(e)}(t)||function(e){return iy(e)}(t))&&(e=function(e){var t=N.getResourceCenter();if(t){var n=t.activeModule,i=ry(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=ny(e)||iy(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),Om({type:qv,visitorId:E(),ui_element_id:i.elementId,ui_element_type:i.type,ui_element_actions:i.actions,guideId:i.guideId,stepId:i.stepId,duration:Qv(),language:i.language})}}(n))&&Lm(e)}};function ny(e){return-1!==e.cls.split(" ").indexOf("_pendo-resource-center-module-list-item")?{type:"BUTTON",elementId:R("#"+e.id).closest("[data-pendo-module-guide-id]").attr("data-pendo-module-guide-id")}:"pendo-resource-center-container"!==e.id&&ey(e.parentElem)?ny(e.parentElem):null}function iy(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&&ey(e.parentElem)?iy(e.parentElem):null;t=N.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 ry(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&&ey(e.parentElem)?ry(e.parentElem):null}var oy=function(e){return(e=e||v).doesExist(e.apiKey)};var ay=0,sy="initializeImmediately",dy=[],uy=wi(function(e){if("complete"===document.readyState||y.get(e,sy)||m.get(sy))if(I.info("pendo.initialize called with "+JSON.stringify(e)),v.apiKey)1==ay++&&I.info(["pendo.initialize only needs to be called once",Tt()?" per namespace":"",". Use pendo.updateOptions to update metadata after the agent has initialized."].join(""));else{if(e=e||{},y.isEmpty(Gs.get())&&(r=Gs.getJwtOptions(e,"initialize"))&&(Gs.set(y.pick(e,"jwt","signingKeyName")),y.extend(e,r,{forceAnonymous:!0})),y.isString(e))return oo.get(e).then(function(e){return ue(h=e.data),uy()});A.dispatch("location/init",e.location||{}),m.setLocalConfig(e),Po(),v.HOST=ko;var t,n,i,r=m.get("cookieDomain");r&&(r=r,t=location.host,r?y.isString(r)&&(t=t.replace(/:\d+$/,""),r=r.replace(/^\./,""),n=new RegExp("\\."+Yt(r)+"$"),i=new RegExp("^"+Yt(r)+"$"),n.test(t)||i.test(t))&&(qt="."+r):qt=r),Uf.discoverKeys(e),Uf.getApiKey()?(A.commit("metadata/setMetadata",{selfHosted:ap()}),e.logStackTraces&&(v.logStackTraces=e.logStackTraces),m.get("preferBroadcastChannel")&&Og.secure(!0),dy.push((wd=Es.events=vs,Cd=Es.trackEvents=ys,Sd=_d({cache:wd,silos:Es.silos,apiKey:ea,beacon:"ptm",allowPost:!0}),Ad=_d({cache:Cd,silos:Es.trackEventSilos,apiKey:ea,beacon:"ptm",allowPost:!0,params:{type:"track"}}),_s(Sd),_s(Ad),function(){Ms(),xs(Sd),xs(Ad)})),qo&&(w.registry.addLocal(qn),w.registry.addLocal(Qn),w.registry.addLocal(ei),w.registry.addLocal(ep),w.registry.addLocal(Yh),v.disableGuideCenterContentSearch=e.disableGuideCenterContentSearch,n=(n=e).events,y.each(void 0===n?[]:n,function(e,t){ju[t]&&ju[t](e)}),dy.push(vv()),Jv(),dy.push(iu()),dy.push((y.each(Zv,function(e){e.initialize(v,Yv)}),Vv=!0,Kv)),dy.push((t=e,w.registry.addLocal(cf),w.registry.addLocal(lf),y.find([y.partial(zf.launchOnToken,window.location),y.partial(pf,window),y.partial(zf.localStorageNavigation,t)],function(e){return e()}),t.enableDesignerKeyboardShortcut||!m.get("disableDesignerKeyboardShortcut")?ug.listen():function(){})),S.appUsage.on(Wv.handler),S.appUsage.on(ty.handler),dy.push(Os(bs))),ri()||oi(),v.updateOptions(e),e.visitorId&&e.visitorId!=ai&&v.identify(e.visitorId),dy.push(Lo.watch(function(){v.pageLoad()})),qo&&S.ready.trigger(),xd(Lo.get()),ay++,window.parent&&window.parent.postMessage&&"function"==typeof window.parent.postMessage&&((i=Og.targetOrigin())?window.parent.postMessage({type:"announce-frame-initialized",destination:"pendo-designer-agent",source:"pendo-designer-agent",localStorageRouter:!0},i):I.warn("Unable to announce frame to designer plugin, targetOrigin is not set. Check if broadcastChannel is enabled and cross origin frames are allowed.")),py()):I.debug("API key is not set, Pendo will not initialize.")}else re(v,"initialize",arguments)});function cy(e){return!y.isArray(e)||y.isEmpty(e)}function ly(e){if(!cy(e))return y.find(e,function(e){return"initialize"===e[0]})}function py(i){var e;return!cy((i=i||v)._q)&&(e=!!ly(i._q),oy(i)||e)?(e=i._q.splice(0,i._q.length),y.reduce(e,function(e,t){var n;return y.isArray(t)&&(n=i[t.shift()],y.isFunction(n))?e.then(function(){return n.apply(i,t)}):e},C.resolve()).then(py)):C.resolve()}function hy(){oy()?I.info("already running"):(window.pendo_options&&uy(window.pendo_options),py())}function fy(){S.appHidden.trigger(),S.appUnloaded.trigger(),y.each(dy,function(e){e()}),xd.reset(),dy.length=0,Og.close(),Un.clear(S),Un.clear(ju),delete v.apiKey,ay=0}var gy,my,vy={getActiveGuide:Nv,smartNextStep:function(e){var t,n=Nv();n&&(t=n.guide.steps[n.stepIndex+1],Dt(function(){var e=Xr(t.elementPathRule);0!==e.length&&y.some(e,$a)?um(n.step):um(t)},e=e||0))},smartFirstStep:function(){R("._pendo-guide_").css("display:none;");var t=Pm(),e=Nv().guide.steps,n=y.filter(y.rest(e),function(e){return!!e.pageId}),n=y.indexOf(e,y.find(n,function(e){return Dm(e.regexUrlRule,t)}));I.info("startingPoint is "+n),-1==n?R("._pendo-guide_").css("display:block;"):(n=e[Math.max(0,n-1)],I.info("found starting step to be "+n.id),um(n))},advanceOn:function(e,t){var n=Nv(),i=R(t=t||n.step.elementPathRule)[0],r=function(){um(),su(i,e,r,!0)};l(i,e,r,!0)},renderStepPosition:function(e,t,n){if(t)n||(i=[].concat(t.steps).reverse(),n=y.findWhere(i,{seenState:"active"}));else{var i=Nv();if(!i)return;t=i.guide,n=i.step}return(e=y.template(e=e||"Step <%= currPos %> of <%= total %>"))({currPos:t.getPositionOfStep(n),total:t.getTotalSteps()})}},F={renderGuideFromJSON:function(e,n,t,i){var r=n.getGuide(),o=kc(e),a=y.get(r,"attributes.resourceCenter");a&&(N.revertRtlChanges(r,e.props),e=N.updatePseudoStyleSelectors(e));var s=a&&N.isFullyCustom(r),d="AnnouncementsModule"===y.get(r,"attributes.resourceCenter.moduleId"),o=(n.hasEscapeListener=!1,n.containerId=o&&o.props&&o.props.id,n.element=Mu(n),F.buildNodeFromJSON(e,n,t)),t=(n.guideElement=o).find("#"+n.containerId),u="data-vertical-alignment",c="Relative to Element"===t.attr(u);c&&!a&&R(n.guideElement).css({overflow:"hidden",height:"0",width:"0"});t.css({visibility:"hidden"}),o.css({visibility:"hidden"});u=bg.buildWatermark({appId:r.appId,targetAccount:r.targetAccount,isTraining:r.isTraining,isBottomAligned:"Bottom Aligned"===t.attr(u)},F.buildNodeFromJSON);u&&t.append(u);var u=n&&n.attributes&&n.attributes.imgCount,l=Ou(),p=y.get(r,"attributes.embedConfig",null);{var h,f;p?(f="pendo-guide-container",g=o[0],h=g.querySelector("#".concat(f)),h&&(h.id="".concat(f,"-").concat(n.id),g.id="".concat("pendo-base","-").concat(n.id)),h=p.selector,f=p.method,l=R(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){var i,r,t=R.getRootNode(t),e=R.getRootNode(e);e!==t&&(e!==document?e.hasOwnProperty("wrappedJSObject")?(i=e.wrappedJSObject.adoptedStyleSheets,(r=t.wrappedJSObject.adoptedStyleSheets).push.apply(r,i)):(i=e.adoptedStyleSheets,(r=t.adoptedStyleSheets).push.apply(r,i)):(r=R(".pendo-style-".concat(n),e)).length&&(r.remove(),r.appendTo(t)))})(Ou(),o[0],n.id),Tl(o),s||d||(F.recalculateGuideWidth(n.containerId,n.guideElement),F.adjustGuideContentWidth(n.containerId,n.guideElement));u||a||F.flexAllThings(n.containerId,n.guideElement);s||F.recalculateGuideHeight(n.containerId,n.guideElement);c?n.attributes.calculatedType="tooltip":dl.attachBBAdvanceActions(n);c&&!u&&dl.positionStepForTooltip(n,e,t[0]);{var g;a&&(N.showHomeViewOrEmptyState(r),g=[],d?g=[r.attributes.resourceCenter]:F.flexAllThings(n.containerId,n.guideElement),g.length)&&y.forEach(g,function(e){e=y.get(e,"children",[]);y.forEach(e,function(e){var t;e&&(t=e.steps[0],y.isUndefined(t.attributes.imgCount))&&(t=y.get(t,"id",n.id),e=y.get(e,"id",r.id),t=R("#pendo-g-"+t).length?t:e,F.flexAllThings("pendo-g-"+t,n.guideElement))})})}{var m;u?(m=C.defer(),o.rendered=m.promise,t.on("imagesLoaded",function(){m.resolve()})):(t.css({visibility:"visible"}),o.rendered=C.resolve())}o.css({visibility:"visible"}),n.elements.push(n.guideElement[0]),v.designer||(y.get(n,"attributes.isAutoFocus")&&(F.autofocusStep(n,t),F.trapFocusStep(n,t),n.hiddenElements=F.addAriaHiddenOutsideGuide(o[0])),a&&(F.attachRCFocusHandlers(),r.skipResourceCenterHomeView?(p=r.activeModule.steps[0],F.autofocusStep(p,p.guideElement)):F.autofocusStep(n,t)));return R(".pendo-video-wrapper",o).each(function(t){R("iframe",t).each(function(e){t.setAttribute("data-pendo-video-loading",""),F.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};kt(function(){var e,t,n,i,r=R(o).find("#pendo-guide-container");return(r=r[0]||r)&&$a(r)&&(n=Jo(n=r),i=ya(),y.extend(i,{top:0,left:0,bottom:i.height,right:i.width}),Ra(i,n))&&(i=r,n=y.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){kt(function(){return!!(e=t)&&(e.focus(),e===R.getRootNode(e).activeElement);var e},i,function(){},function(){I.warn(n+"#pendo-guide-container is available on page but could not capture focus")})},function(){I.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=y.toArray(e.find(t))).length)&&(a=o[0],s=o[o.length-1],t=wy(e),d=t[0],u=t[1],n=function(e){var t,n,i=yy(e),r=e.shiftKey;i&&(t=(i=R.getRootNode(c).activeElement)===c,n=document.activeElement===document.body,r?(i===d||t||n)&&(Iy(o,s).focus(),e.preventDefault()):(t||i===u||n)&&(Iy(o,a).focus(),e.preventDefault()))},l(document,"keyup",n),l(document,"keydown",n),S.one("unmounted",function(){su(document,"keyup",n),su(document,"keydown",n)}))}(t.find("#pendo-guide-container"))},attachRCFocusHandlers:function(){var e,t,s,d,n,i,r,u=N.getResourceCenter(),c=N.getResourceCenterContainer();"dom"===u.launchMethod&&c&&(e=R(u.attributes.activation.selector)[0])&&(t=wy(R(c)),s=t[0],d=t[1],n=function(e){var t,n,i,r=yy(e),o=e.shiftKey;function a(t){return Object.values(i).findIndex(function(e){return e===t})}r&&(r=R.getRootNode(c).activeElement,t=R(u.attributes.activation.selector)[0])&&(n=r===s,r=r===d,i=R(Da),o?n?(t.focus(),e.preventDefault()):r&&by(0===(o=a(s))?i.length-1:o-1,i,e):r?by(a(t)+1,i,e):n&&by((o=a(d))>=i.length-1?0:o+1,i,e))},i=function(e){var t=yy(e),n=e.shiftKey;t&&!n&&by(0,R('[id^="pendo-g-"]').find(Da),e)},r=function(e){var t=e.target,n=e.relatedTarget,t=t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING;n!=s&&t&&by((n=R('[id^="pendo-g-"]').find(Da)).length-1,n,e)},l(document,"keyup",n),l(document,"keydown",n),l(e,"keydown",i),l(e,"focus",r),S.one("unmounted",function(){su(document,"keyup",n),su(document,"keydown",n),su(e,"keydown",i),su(e,"focus",r)}))},addAriaHiddenOutsideGuide:function VS(e,n){void 0===n&&(n=[]);if(!e||e===Ea())return n;var t=Ta(e);y.each(t,function(e){var t;-1===n.indexOf(e)&&"true"!==e.getAttribute("aria-hidden")&&"script"!==(t=e.tagName.toLowerCase())&&"style"!==t&&(e.setAttribute("aria-hidden","true"),n.push(e))});e.parentNode&&VS(e.parentNode,n);return n},renderResourceCenterModule:N.renderResourceCenterModule,buildNodeFromJSON:Yl,attachImgLoadHandlers:Hl,recalculateGuideHeightOnImgLoad:Kl,buildStyleString:function(e){var n="";return y.each(e,function(e,t){n=n+t+":"+e+";"}),n},buildStyleTagContent:Jl,bindActionToNode:Xl,recalculateGuideHeight:xl,recalculateGuideWidth:Rl,adjustGuideContentWidth:kl,findDomBlockInDomJson:Oc,isElementHiddenInGuide:g.isElementHiddenInGuide,positionStepForTooltip:dl.positionStepForTooltip,flexAllThings:g.flexAllThings,flexElement:g.flexElement,findTopLevelContainer:function(t){for(var e=["pendo-base","pendo-resource-center-container"],n=0;n<20;n++){if(y.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:el,buildNodesFromJSON:zl,findGuideContainerJSON:kc,maintainAspectRatios:g.maintainAspectRatios,sizeElement:_l,sizeElements:Tl,getAllowedAttributes:Vl,repositionFlexElementsInFullWidthGuides:function(){},isBuildingBlockGuideRelativeToElement:dl.isBuildingBlockGuideRelativeToElement,updateAriaLabelledbyForActiveFollowupQuestion:Mv,addVideoLoadListener:function(e,t){l(t,"load",function(){e.removeAttribute("data-pendo-video-loading")})}};function yy(e){return"Tab"===e.key||9===e.keyCode}function by(e,t,n){e=t[e];e&&(e.focus(),n.preventDefault())}function Iy(e,t){var n,i;return"radio"===t.getAttribute("type")&&(n=t.getAttribute("data-pendo-poll-id"),i=y.find(e,function(e){var t=e.getAttribute("data-pendo-poll-id");return n===t&&e.checked})),i||t}function wy(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:y.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:y.extend({},t,{tabIndex:0})},{selector:".pendo-end-focus-bumper:hover",styles:t},{selector:".pendo-end-focus-bumper:focus",styles:t}]},t=F.buildNodeFromJSON(t),t=(e.prepend(t),document.createElement("div")),n=(t.setAttribute("id","pendo-start-focus-bumper-"+Date.now()),t.setAttribute("class","pendo-start-focus-bumper"),t.setAttribute("tabIndex",0),e.prepend(t),document.createElement("div"));return n.setAttribute("id","pendo-end-focus-bumper-"+Date.now()),n.setAttribute("class","pendo-end-focus-bumper"),n.setAttribute("tabIndex",0),e.append(n),[t,n]}function Cy(e,t){var n,i="",r=e.nodeType;if(t=t||128,r===Wo||r===Uo)return e.nodeValue;if((n=e).tagName&&"textarea"!=n.tagName.toLowerCase()&&(r===$o||9===r||11===r)){if(!e.childNodes)return i;for(var o,a=0;a<e.childNodes.length;++a){if(t<=(i+(o=Cy(e.childNodes[a],t-i.length))).length)return i+function(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(Sy(t)||Ay(t)){if(1===e.length)return e.slice(0,-1);if(Sy(t))return e.slice(0,-1);if(Ay(t))if(!Sy(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}(o.substring(0,t-i.length));i+=o}}return i}function Sy(e){return 55296<=e&&e<=56319}function Ay(e){return 56320<=e&&e<=57343}var Ey=100,Ty=[],_y=[],xy="log-enabled",Ry="active-contexts",ky=function(){return My()?my?"logging already enabled":(w.write(xy,"true",null,!0),my=!0,"logging enabled"):"logging unavailable"},Oy=function(){return my?(w.write(xy,"false",null,!0),my=!1,"logging disabled"):"logging already disabled"};var Ny=function(e,t){return y.compact([].concat(e,t))},My=function(e){return e=e||"log","undefined"!=typeof console&&y.isFunction(console[e])},Ly=function(e){return e=Ny(e),0<gy.length?0<y.intersection(gy,e).length:!!my||!!Kh()},Fy=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];I.info(e,{contexts:t})};function Py(e){var t;e.level!==zt.Debug&&e.level!==zt.Info||(t=e.attributes?Ny(e.attributes.contexts):[],My()&&Ly(t)&&Uy(e.message),Dy(Ty,e.message,t))}function Gy(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];My("error")&&console.error.apply(console,e),Dy(_y,e.join(" "))}var Dy=function(e,t,n){y.contains(n,"debug")||(e.length==Ey&&e.shift(),e.push([t,n]))},By=function(t){t=Ny(t),y.each(y.map(y.filter(Ty,function(e){return 0===t.length||0<y.intersection(t,e[1]).length}),function(e){return e[0]}),function(e){Uy(e,"[Pendo-History] ")})},Wy=function(){return y.union.apply(y,y.map(Ty,function(e){return e[1]}))},$y=function(e){gy=Ny(e),w.write(Ry,gy.join(","),null,!0)},Uy=function(e,t){var n;My()&&(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 jy(e,t){var n;e&&y.isString(e)?(y.isObject(n=t)||(n={__err__:t}),t=Lo.get(),js("track",n,t,e)):I.error("Must provide valid name string for event tracking")}Fy.init=function(){var e,t;e=w.read(Ry,!0),gy=e?e.split(","):[],e=it,t=w.read(xy,!0),my=null!==t?"true"==t:!y.contains(["prod","prod-eu","prod-us1","prod-jp","prod-hsbc","prod-au","rc"],e),I.addEventListener("log",Py),w.registry.addLocal(xy),w.registry.addLocal(Ry)},Fy.enableLogging=ky,Fy.disableLogging=Oy,Fy.getActiveContexts=function(){return gy},Fy.setActiveContexts=$y,Fy.showLogHistory=By,Fy.getLoggedContexts=Wy;var zy=function zy(r){var o=[];function a(e,t,n,i){r?o.push({type:n,message:t,value:i}):fe(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"),v.apiKey||a("error","No Pendo API key configured. Make sure to call pendo.initialize() with a valid Pendo API key.","apiKey");var e=E(),e=(ii(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"),si(e)&&a("error","The current visitor ID matches the example visitor ID from the Pendo installation instructions.","isDefaultVisitor"),mi()),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"),m.get("disableCookies")&&a("warn","Cookies are disabled in Pendo config. Is this expected?","disableCookies"),dp());if(y.each(["visitor","account","parentAccount"],function(n){var i=t&&t[n],e=y.chain(i).keys().value();0<e.length?(r||console.group(n+" metadata (does this look right?):"),0<(e=y.chain(e).map(function(e){return e.toLowerCase()}).countBy().pick(function(e){return 1<e}).keys().value()).length&&y.each(e,function(e){a("warn","Keys will be lowercased and any duplicates overwritten. Please choose unique key names for:",n+"MetadataConflict",e)}),y.each(y.keys(i),function(e){var t=i[e];y.isObject(t)&&!y.isArray(t)?a("warn",e+" is an object and will be ignored.",n+"Metadata",t):y.isArray(t)&&y.any(t,y.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()},Zy=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:Ft.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=(y.each(e,function(e){var n=e.nativeType,i=[],t=e.propsToCheck||Object.getOwnPropertyNames(n);y.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"),y.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())},Vy=function(e){var t=[];if(y.isNumber(window.frames.length)&&y.isFinite(window.frames.length)&&R("iframe").length+R("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:"),y.each(t,function(e){console.warn(e)}),console.groupEnd()}},Yy=function(e){var t,n=window.location.href,i=[];try{(t=go())!==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=Lo.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),y.each(i,function(e){e.method?console[e.method](e.msg+"\n"+e.value):console.warn(e.msg+"\n"+e.value)}),console.groupEnd()},Hy=function(e){if(0<_y.length){var t=[].concat(_y);if(e)return t;console.group("Agent Error History"),y.each(t,function(e,t){console.log("Error History ",t,e)}),console.groupEnd()}},Ky=function(e){t=e;var t,n=y.map(Zv,function(e){return e.validate&&!t&&e.validate(v,Yv),e.name});if(e)return n;console.group("Active Plugins"),y.each(n,function(e){return console.log(e)}),console.groupEnd()},Xy=function(e){var t={install:zy(e),plugins:Ky(e),globals:Vy(e),url:Yy(e),errors:Hy(e)};if(e)return t.methods=Zy(e),t;m.validate(console)},Jy={BuildingBlockGuides:F,BuildingBlockResourceCenter:N,BuildingBlockTemplates:Mc,BuildingBlockTooltips:dl,BuildingBlockSvgs:Dc};function qy(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=y.compose(y.bind(this.afterJobRun,this),y.bind(this.doJob,this),y.bind(this.shouldJobRun,this))}qy.prototype.start=function(e){this.state.isStopped&&(this.state.isStopped=!1,this.state.options.skipFirstRun=e,this.run())},qy.prototype.stop=function(){clearTimeout(this.state.handle),this.state.isStopped=!0,this.state.hasRun=!1};var Qy=oo.urlFor;function eb(e,t,n){var i={search:["AllowOnlyKeys","ExcludeKeys","AddTo","Replace","Clear"],hash:["Replace","Clear"],pathname:["Replace"],hostname:["Replace"],href:["Replace","ForceSecure"],protocol:["ForceSecure"]};if(y.isObject(e)&&(t=e.action,n=e.data,e=e.attr),!i[e])throw new Error("Invalid URL attribute type: "+e);if(!y.contains(i[e],t))throw new Error("Invalid transform ("+t+") for attribute ("+e+")");this.attr=e,this.action=t,this.data=n}function tb(e){return e instanceof Ci||e instanceof HTMLAnchorElement}eb.prototype.applyToURL=function(e){return{AllowOnlyKeys:function(e,t,n){y.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Ci(Ro(t,null,n,!1))},ExcludeKeys:function(e,t,n){y.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Ci(Ro(t,null,n,!0))},AddTo:function(e,t,n){y.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Ci(Qy(t,n))},Clear:function(e,t){return e[t]="",e},Replace:function(e,t,n){return y.isFunction(n)&&(n=n(e[t],e)),"href"===t?new Ci(n):(e[t]=n,e)},ForceSecure:function(e,t){return"protocol"===t?e.protocol="https":e.href=e.href.replace(/^(.*:\/\/\/)/,"https://"),e}}[this.action](e,this.attr,this.data)},eb.prototype.toString=function(){return this.attr+" - "+this.action+" - "+JSON.stringify(this.data)},eb.fromJSON=function(e){return e instanceof eb?e:new eb(e.attr,e.action,e.data)};nb=function(t,n,i,r){return[new eb("pathname","Replace",function(e){e=e.replace(n,t);return e=(e=e.replace(i,t)).replace(r,"")}),new eb("href","ForceSecure")]},s={transforms:[],internalTransforms:[],electronTransforms:[],currentSrcFn:ib=function(){var e=fo(),t=Lo.isElectron()?nb(Lo.electronAppName(),Lo.electronResourcesPath(),Lo.electronUserDirectory(),Lo.electronUserHomeDirectory()):[];return sb([].concat(t),e)}},rb=new qy(500,function(e){!oy()||Rd(document)||xd()}),ob=function(e){if("string"==typeof e)return new Ci(e);if(tb(e))return e;throw new Error("Invalid type from custom URL source. Must be either an URL or a String of a valid url.")},ab=function(e){return e||window.location},sb=function(e,t){return y.reduce(e,function(e,t){return t.applyToURL(e)},t)};var nb,ib,rb,ob,ab,sb,db,lr={state:s,actions:{init:function(e,t){e.commit("clearTransforms"),e.commit("clearInternalTransforms"),e.commit("changeUrlSource"),t.transforms&&e.dispatch("addTransforms",t.transforms),t.setUrl&&e.commit("changeUrlSource",t.setUrl)},addTransforms:function(t,e){y.each(e,function(e){t.commit("addTransform",eb.fromJSON(e))})},addInternalTransforms:function(t,e){y.each(e,function(e){t.commit("addInternalTransform",eb.fromJSON(e))})},removeInternalTransforms:function(t,e){y.each(e,function(e){t.commit("removeInternalTransform",eb.fromJSON(e))})},startPolling:function(e){rb.start()},stopPolling:function(e){e.state.currentSrcFn===ib&&rb.stop()}},mutations:{addTransform:function(e,t){e.transforms.push(t)},addInternalTransform:function(e,t){e.internalTransforms.push(t)},removeInternalTransform:function(e,t){t=y.indexOf(e.internalTransforms,t);0<=t&&e.internalTransforms.splice(t,1)},clearTransforms:function(e){e.transforms=[]},clearInternalTransforms:function(e){e.internalTransforms=[]},changeUrlSource:function(e,t){if(t){if("string"==typeof t)var n=new Ci(t),n=y.partial(y.identity,n);else if(tb(t))n=y.partial(y.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,rb.start(!oy())}else e.currentSrcFn=ib,rb.stop()}},getters:{url:db=function(e){try{var t=function(e){return n=e},n=y.reduce([e.currentSrcFn,ob,t,y.partial(sb,e.transforms),ob,t,y.partial(sb,e.internalTransforms),ob],function(e,t){return t(e)},null)}catch(i){I.critical(i),n=ab(n)}return n},href:function(e){return db(e).href}}};function ub(e){var t;if("function"==typeof ub[e])return t=y.toArray(arguments).slice(1),ub[e].apply(ub,t)}y.extend(ub,{getHref:function(){return A.getters["location/href"]()},clearTransforms:function(){A.commit("location/clearTransforms"),xd()},addTransforms:function(e){A.dispatch("location/addTransforms",e),xd()},setUrl:function(e){A.commit("location/changeUrlSource",e)},useBrowserUrl:function(){A.commit("location/changeUrlSource"),xd()}});function cb(){return m.get("guideSeenTimeoutLength")||1e4}lb=[];var lb,pb={name:"StepTimeoutMonitor",initialize:function(){this._beforeGuideShow=y.bind(pb.beforeGuideShow,pb),this._stop=y.bind(pb.stop,pb),S.beforeGuideShow.on(this._beforeGuideShow),S.guideSeen.on(this._stop),S.guideNotSeen.on(this._stop)},teardown:function(){pb.stop(),S.beforeGuideShow.off(this._beforeGuideShow),S.guideSeen.off(this._stop),S.guideNotSeen.off(this._stop)},beforeGuideShow:function(e){var t=e.data[0],e=e.data[1],n=t.guide;m.get("enableGuideTimeout")&&(e=-1<y.indexOf(["dom","launcher","badge","api"],e),"active"===t.seenState||t.hasBeenControlled()||t.isTimedOut()||(n=n&&n.steps)&&(0!==y.indexOf(n,t)||e)&&pb.start(t))},start:function(e){var d,t,n=lb[0];n&&n===e.id||(n&&n!==e.id&&(n=lb[1],y.isFunction(n))&&n(),e.shouldStartTimer()&&(d=cb(),n=y.partial(function(e,t){var n,i,r,o,a,s=Iu(t);s&&(n=s.findStepById(e))&&!s.isShown()&&(a=n.canShowOnPage(Pm())?fm(n)?"other":"element":"page",i=t,r=e,o=E(),a=a,s=s.language,i=Om({type:"guideTimeout",guideId:i,stepId:r,visitorId:o,seen_reason:a,language:s,guideSeenTimeoutLength:d}),Lm(i),S.guideTimeout.trigger(i),I.info("Guide "+t+" timed out showing Step "+e),n.timeout()),pb.stop()},e.id,e.guide.id),t=Dt(n,d),lb=[e.id,n,t]))},stop:function(){var e=lb[2];e&&clearTimeout(e),lb=[]},getGuideSeenTimeoutLength:cb};function hb(){console.warn("This functionality is not supported by your subscription.")}function u(e){return qo?e:hb}var fb="is going away",gb="is gone",mb=y.memoize(function(e,t){e=(e=e||"Function")+" deprecated"+(t=t?" and "+t:"");return I.info(e),e});function vb(e,t,n){return function(){return mb("pendo."+t,n),(e||y.noop).apply(null,arguments)}}function yb(e){return e&&1===e.length?e[0]:y.any(e,Nt)?C.all(e).then(function(e){return y.any(e)}):void 0}function bb(){var e,t=this,n=(this.elements=[],this.attributes=this.attributes||{},this.attributes.device&&this.attributes.device.type?"all"==this.attributes.device.type?this.attributes.device={desktop:!0,mobile:!0}:(e=this.attributes.device.type,this.attributes.device={mobile:!1,desktop:!1},this.attributes.device[e]=!0):this.attributes.device=this.attributes.device||{},y.each(this.steps,function(e){"mobile-lightbox"===e.type&&(this.attributes.device.desktop=!1,this.attributes.device.mobile=!0),lc(e,this)},this),this.isActivatedByEvent=function(e){return!!(this.hasLaunchMethod("dom")&&this.attributes&&this.attributes.activation&&y.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=y.first(this.steps);return e&&"whatsnew"===e.type},this.isAnnouncement=function(){return y.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")&&y.any(this.steps,function(e){return e.shouldAutoDisplay()})},this.autoDisplay=function(){if(this.shouldAutoDisplay())return yb(y.map(this.steps,function(e){return e.autoDisplay()}))},this.isRendered=function(){return y.any(this.steps,function(e){return e.isRendered()})},this.isShown=function(){return y.any(this.steps,function(e){return e.isShown()})},this.canShowOnDevice=function(){if(!Ru()){var e=ku(),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()&&y.any(this.steps,function(e){return e.canShow()})},this.launch=function(e){var t;return this.hasGuideBeenControlled()||(t=this.show(e)),this.isShown()?y.each(this.steps,function(e){e.seenState="active"}):!this.isShown()&&this.isControlGroup()&&y.each(this.steps,function(e){e.seenState="notSeen"}),t},this.show=function(t){return yb(y.map(this.steps,function(e){return e.show(t)}))},this.checkForHiddenGroupSteps=function(){},this.hide=function(t){y.each(this.steps,function(e){e.hide(t)})},this.hasBeenSeen=function(){return y.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=y.get(this,"attributes.resourceCenter"),this.isControlGroup()&&!e?this.hasGuideBeenControlled()||this.steps[0].onControlGuide("control"):(e=y.first(this.steps))&&y.isFunction(e.canShowOnPage)&&e.canShowOnPage(Pm())&&rf(this)):sf(this)},this.findStepById=function(t){return y.find(this.steps,function(e){return e.id===t})},this.isPoweredByEnabled=function(){return!!y.find(this.steps,function(e){return e.isPoweredByEnabled()})},this.searchFor=function(t){var e,n,i=null;return Et(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?y.find(n,function(e){return Et(e.text,t,!0)}):e)?i="tag":(n=y.map(this.steps,function(e){return e.searchFor(t)}),0<y.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&&!y.isFunction(t.steps[0].fetchContent)||(e=t.steps[0],!t.hasLaunchMethod("launcher")&&!t.isWhatsNew())||!e.canShowOnPage(Pm())||!t.canShowOnDevice()||!fm(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(Pm())||!this.canShowOnDevice()||!fm(e)||this.outsideTimebox())},"PENDO_HELPER_STEP");return this.getPositionOfStep=function(e){var t=y.reject(this.steps,function(e){return Et(e.content,n)});return y.indexOf(t,e)+1},this.getTotalSteps=function(){return y.reject(this.steps,function(e){return Et(e.content,n)}).length},this.getSeenSteps=function(){return y.size(y.filter(this.steps,function(e){return e.hasBeenSeen()}))},this.isComplete=function(){var t=["advanced","dismissed"];return y.all(this.steps,function(e){return y.contains(t,e.seenState)})},this.isInProgress=function(){var t=["active","advanced","dismissed"];return!this.isComplete()&&y.any(this.steps,function(e){return y.contains(t,e.seenState)})},this.isNotStarted=function(){return!this.isInProgress()&&!this.isComplete()},this.fetchContent=function(){return C.all(y.map(this.steps,function(e){if(y.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 y.any(this.steps,function(e){return e.isSnoozed()})},this.hasGuideBeenControlled=function(){return y.any(this.steps,function(e){return e.hasBeenControlled()})},this.isControlGroup=function(){return this.control},this.shouldShowSnoozedGuide=function(){var t=!1;return!this.outsideTimebox()&&y.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,y.forEach(this.steps,function(e){t=Math.max(t,e.lastSeenAt||0)}),!t))&&b()-t>=this.redisplay.interval},this.isExpired=function(){return!!this.expiresAfter&&b()>this.expiresAfter},this.isBeforeStartTime=function(){return!!t.showsAfter&&b()<t.showsAfter},this.outsideTimebox=function(){return t.isExpired()||t.isBeforeStartTime()},this.calculateDismissCountFromSteps=function(){var t=0;return y.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 Ib(){var e=this;return e.attributes&&"group"==e.attributes.type&&(e.checkForHiddenGroupSteps=function(){y.each(e.steps,function(e){e.isShown()||e.autoDisplay()})}),e}var wb=function(e){return e&&e.attributes&&!!e.attributes.isOnboarding};function Cb(){var r,o=!1;return(this.isMultiStep||this.isModule||this.isTopLevel)&&(y.each(this.steps,function(e){e.after("render",function(){y.each(e.elements,function(e){R(e).addClass("_pendo-guide-walkthrough_")})})}),r=null,this.sections=y.reduce(this.steps,function(e,t){var n,i;return i=t,!(n=r)||(n=y.last(n)).attributes.isRequired!=i.attributes.isRequired&&n.attributes.isRequired?(e.push(r),r=[t]):r.push(t),e},[]),this.sections=y.compact(this.sections.concat([r])),this.findSectionForStep=function(t){return y.find(this.sections,function(e){return y.contains(e,t)})},this.getSubSection=function(e,t){t=y.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=y.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&&!wb(this)?(o||(I.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()||y.all(this.steps,function(e){return e.shouldAutoDisplay()}))},this.autoDisplay=function(){var e,t,n;if(this.shouldAutoDisplay())return e=this.shouldRepeatGuide(),t=y.first(this.steps),n=this.nextStep(vh())||t,this.shouldShowSnoozedGuide()||e?n.show(e?"repeatGuide":"auto"):t.autoDisplay()},this.launch=function(e){return y.first(this.steps).show(e)},this.show=function(e){var t=vh(),n=y.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=y.last(this.steps);return!!e&&y.contains(["advanced","dismissed"],e.seenState)},this.activeStep=function(){var e=[].concat(this.steps).reverse();return y.findWhere(e,{seenState:"active"})}),this}function Sb(){var a=this;function t(r){var o=[];return function(e){try{return e.apply(a,y.toArray(arguments).slice(1))}catch(i){var t,n="ERROR in guide "+r+' (ID="'+a.id+'")';throw o.push(b()),5<=o.length&&(t=0<(t=y.last(o)-y.first(o))?(o.length-1)/(t/6e4):Infinity,Sb.MAX_ERRORS_PER_MINUTE<=t&&(n="Exceeded error rate limit, dropping guide.\n"+n,yu.addGuide(a),S.trigger("renderFail",a)),o.shift()),I.critical(n,{error:i}),i}}}return y.each(["canShow","placeBadge","show"],function(e){a[e]=y.wrap(a[e],t(e))}),a}function Ab(){return y.isFunction(this.isAnnouncement)&&this.isAnnouncement()||(this.shouldBeAddedToLauncher=y.wrap(this.shouldBeAddedToLauncher,function(e){return A.getters["frames/hasFrames"]()?!(!A.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!A.getters["frames/isGuideInDifferentFrame"]()(this)&&A.getters["frames/shouldBeAddedToLauncher"]()(this):e.apply(this,arguments)}),this.shouldBeAddedToResourceCenter=y.wrap(this.shouldBeAddedToResourceCenter,function(e){return A.getters["frames/hasFrames"]()?!(!A.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!A.getters["frames/isGuideInDifferentFrame"]()(this)&&A.getters["frames/shouldBeAddedToResourceCenter"]()(this):e.apply(this,arguments)})),this}function Eb(e){var t=this;return"whatsnew"===t.type||y.isFunction(e.isAnnouncement)&&e.isAnnouncement()||(t.isShown=y.wrap(t.isShown,function(e){return e.apply(this,arguments)||A.getters["frames/isShownInAnotherFrame"]()(t)})),t}function Tb(o){var a,t,i,s,r,n,d,u=this;return u.pollIds&&u.pollIds.length&&(a="_pendo-poll-selected_",t=y.indexBy(o.polls,"id"),i=y.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=b();_m(e,t,E(),u.seenReason,o.language),Hg(e,t,"advanced",n),gh({guideId:e,guideStepId:t,time:n,state:"advanced"})},d=function(){var e=R("._pendo-poll_"),t=R("._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=R("._pendo-poll_")[0],e=R("._pendo-poll-submit_",n)[0];e?u.attachEvent(e,"click",function(e){var t=R("._pendo-poll-question_",n),t=y.map(t,function(e,t){e=R("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(y.compact(t)),d()}):u.attachEvent(n,"click",function(e){var t,e=R(io(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=R("._pendo-poll_ ._pendo-poll-npsrating_")[0],r=R("._pendo-poll_ ._pendo-poll-submit_"),o="_pendo-poll-npsrating-selected_";i&&(r.css({display:"none"}),u.attachEvent(i,"click",function(e){var t=R(":radio:checked",i)[0],n=R("._pendo-poll_");R("label",i).removeClass(a),n.removeClass(o),t&&(R('label[for="'+t.id+'"]').addClass(a),n.addClass(o),r.css({display:""})),y.isFunction(u.resize)&&u.resize()}))}),u.after("show",function(){s=(new Date).getTime()}),u.response=function(e,r){e&&e.length&&(gv(),y.each(e,function(e,t){var n=function(t,e){if(e&&e.polls&&e.polls.length)return y.find(e.polls,function(e){return e.id===t})}(e.pollId,o),i=Om("pollResponse",u.guideId,u.id,E(),undefined,o.language);y.extend(i.props,{poll_id:e.pollId,poll_response:e.value,duration:(new Date).getTime()-s},r),n&&n.attributes&&n.attributes.type&&y.extend(i.props,{poll_type:n.attributes.type}),uv.push(i)}),uv.flush())}),u}Sb.MAX_ERRORS_PER_MINUTE=30;var _b={show:function(t,n){if(Ru()&&y.isFunction(t._show))return t._show(n),t.isShown();var e=t.getGuide();if("whatsnew"===t.type)return xb(t,n);if(!A.getters["frames/hasFrames"]()||A.getters["frames/isGuideInThisFrame"]()(e)){e=function(e,t){if(e.getGuide().isModule){e=N.getResourceCenter();if(e)return xb(e.steps[0],t)}}(t,n);if(Nt(e))return e.then(function(){return xb(t,n)}).then(function(e){return!!e||Rb(t,n)});e=xb(t,n);if(Nt(e))return e.then(function(e){return!!e||Rb(t,n)});if(e)return!0}return Rb(t,n)},showLocal:xb};function xb(e,t){return yc.hasContent(e)&&sc.valid(e)?(e._show(t),e.isShown()):!(yc.hasContent(e)&&sc.invalid(e)||!e.getGuide().canShowOnDevice()||!e.canShowOnPage(Pm()))&&(e.lock(),yc.fetchContent(e).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&sc.validate(e.getGuide())}).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&(e.unlock(),e._show(t),e.isShown())}))}function Rb(t,e){var n=t.getGuide();return!(!A.getters["frames/hasFrames"]()||!A.getters["frames/isGuideInDifferentFrame"]()(n))&&(t.lock(),A.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 kb(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 Bv),this.getGuide=function(){return this.guide},this.getContent=function(){var e=this.getGuide(),t=e&&e.steps||[],n=y.indexOf(t,this),i=dp();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:It(i),template:r};return this.template||(this.template=y.template(this.content||"")),pc(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!y.get(this,"guide.attributes.isAnnouncement")&&!!d.canShowOnDevice()&&!this.isShown()&&!y.get(this,"stepIneligibleForApp")&&this.canShowOnPage(Pm())&&fm(this)},this.canShowOnPage=function(e){e=Dm(this.regexUrlRule,e);return Kh()&&S.stepEligibility.trigger({stepId:this.id,guideId:this.guideId,eligible:e,reason:"page_match"}),e},this.shouldAutoDisplay=function(){return this.shouldRepeat()||!this.hasBeenControlled()&&!this.isSnoozed()&&!y.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!(!(v.designer||Ru()||yf())&&(e=Pm(),t={guideId:this.guideId,stepId:this.id},this.regexUrlRule&&!Dm(this.regexUrlRule,e)?(yu.addGuide(d),t.error=new Error('attempted display on page "'+e+'"'),I.critical("pendo.io page rule exception",t),1):A.getters["healthCheck/isMissingPageRule"]()(this)?(yu.addGuide(d),t.error=new Error('missing regexUrlRule"'),I.critical("pendo.io page rule exception",t),1):this.pageId&&!this.regexUrlRule&&(yu.addGuide(d),t.error=new Error("missing regexUrlRule for page "+this.pageId+'"'),I.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=y.find(fu(),function(e){return e.id===d.moduleIdToReplaceHomeViewWith}),n=y.get(t,"attributes.resourceCenter.integrationProvider"),N.renderNativeIntegration(n,t)):d.continueToNativeModule?N.handleNativeIntegrationContinuation(d):(y.get(d,"attributes.resourceCenter")&&Gh(N.getResourceCenter(),Dh),d.isModule?F.renderResourceCenterModule(d,!1):(n=F.renderGuideFromJSON(e.domJson,e),y.get(d,"attributes.resourceCenter")&&(t=d.activeModule?d.activeModule.activeStep().domJson.props.id:e.containerId,t=e.guideElement.find("#"+t),N.adjustResourceCenterWidth(t)),n));var t=e.attributes.width,n=e.attributes.height,i=v.TOOLTIP_ARROW_SIZE,r="_pendo-group-id-"+d.id+"_",r=R(document.createElement("div")).attr("id",ym(e)).addClass($g+" "+r),o=R(document.createElement("div")).addClass("_pendo-guide-content_").html(e.getContent()),a=R(document.createElement("div")).addClass("_pendo-guide-container_"),s=R(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&&y.isFunction(d.isOnboarding)&&d.isOnboarding()&&r.addClass("_pendo-onboarding_"),e.overlayDiv=s,e.guideElement=r}},this.teardown=function(){I.info("guide step teardown",{contexts:["guide","render"]}),y.each(this.handlers,function(e){su(e.element,e.type,e.fn,!0)}),this.hasBeenScrolledTo=!1,this.handlers.length=0,y.has(this.attributes,"imgCount")&&(this.attributes.imgCount=0),this.hiddenElements&&(y.each(this.hiddenElements,function(e){try{e&&"function"==typeof e.removeAttribute&&e.removeAttribute("aria-hidden")}catch(t){I.error("unable to remove aria-hidden from element",{error:t})}}),this.hiddenElements.length=0,this.hiddenElements=null),ql(this.id)},this.show=function(e){var t;if(!y.contains(["auto","continue"],e)||!A.getters["healthCheck/isRedisplay"]()(this))return(t=_b.show(this,e))&&t["catch"]&&t["catch"](y.noop),t;A.dispatch("healthCheck/fixSeenStateAndLogError",{step:this,reason:e})},this.redraw=function(){var e,t,n,i,r,o=this;o.guideElement&&!v.designer&&(t=(e=y.get(d,"attributes.resourceCenter"))&&N.isFullyCustom(d),n=d.activeModule?d.activeModule.activeStep().domJson.props.id:o.containerId,i=o.guideElement.find("#"+n),r=d.activeModule&&"AnnouncementsModule"===y.get(d.activeModule,"attributes.resourceCenter.moduleId"),S.beforeUpdate.trigger(o),t||r||(F.recalculateGuideWidth(n,o.guideElement),F.adjustGuideContentWidth(n,o.guideElement)),e?(N.adjustResourceCenterWidth(i),r&&d.activeModule.guidesInModule?y.forEach(d.activeModule.guidesInModule,function(e){var t;!y.isUndefined(e.steps[0].attributes.imgCount)&&0!==y.get(e.steps[0],"attributes.imgCount")||(t=e.steps[0].id,t=R(i).find("#pendo-g-"+t)[0]?t:e.id,F.adjustGuideContentWidth("pendo-g-"+t,o.guideElement),F.flexAllThings("pendo-g-"+t,o.guideElement))}):F.flexAllThings("pendo-resource-center-container")):F.flexAllThings(n,o.guideElement),t||F.recalculateGuideHeight(n,o.guideElement),S.updated.trigger(o))},this._show=function(e){S.beforeGuideShow.trigger(this,e),this.canShow()&&(!Ru()&&d.control?this.hasBeenControlled()||this.onControlGuide("control"):S.beforeMount.trigger(this).cancel||(this.render(),this.isShown()&&this.onShown(e)))},this.shouldStartTimer=function(){return d.canShowOnDevice()&&!d.attributes.isAnnouncement&&!pm(this)},this.getStepPollTypes=function(n,e){var i;if(e.pollIds&&e.pollIds.length)return i=[],y.forEach(e.pollIds,function(t){var e=y.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,zg(b()),t=this.getStepPollTypes(d,this),this.hasBeenControlled())||(Am(this.guideId,this.id,E(),e,d.language,t),y.each(d.steps,function(e){e.seenState="notSeen"}))},this.onShown=function(r,e){void 0===e&&(e=!0);var t,n,i=this;i.overrideElement&&(R.addClass(i.overrideElement,"triggered"),i.overrideElement.checkAriaExpanded)&&i.overrideElement.checkAriaExpanded(),Ru()||(i.seenReason=r,i.seenState="active",zg(b()),t={last_updated_at:i.lastUpdatedAt},(n=this.getStepPollTypes(d,i))&&(t.step_poll_types=n),e&&Em(i.guideId,i.id,E(),r,d.language,t),A.dispatch("guideState/updateLastGuideStepSeen",{guideId:d.id,guideStepId:i.id,time:jg,state:i.seenState,seenReason:r,visitorId:E()}),y.each(d.steps,function(e){var t,n,i;"snoozed"===e.seenState&&(e.snoozeEndTime=0,t=d.id,e=e.id,n=E(),i=d.language,t=Om({type:"guideSnoozeCanceled",guideId:t,stepId:e,visitorId:n,seen_reason:r,language:i}),Lm(t,null,!0),S.guideSnoozeCancelled.trigger(t))}),Ac.runCustomScripts(i,d)),A.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||(v.ignoreResize=!0,Dt(function(){v.ignoreResize=!1},1e3))})},this.hide=function(e){var t=this;t.unlock(),S.beforeUnmount.trigger(t),t.teardown(),y.each(t.elements,function(e){Ca(e)}),S.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&&(R.removeClass(t.overrideElement,"triggered"),t.overrideElement.checkAriaExpanded)&&t.overrideElement.checkAriaExpanded(),A.dispatch("frames/guideStepHiddenInFrame",{guideId:d.id,stepId:t.id})},this.advance=function(){"advanced"===this.seenState&&!this.isRendered()||um(this)},this.dismiss=function(){"dismissed"===this.seenState&&!this.isRendered()||am(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()&&b()-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)&&Et(this.content,e,!0)},this.hasBeenSeen=function(){return"advanced"==this.seenState||"dismissed"==this.seenState},this.reposition=function(){},this.checkPlacement=function(){"tooltip"===this.getType()&&dl.placeBBTooltip(this),this.attributes.blockOutUI&&this.attributes.blockOutUI.enabled&&el(this)},this.getType=function(){return this.domJson?y.get(this,"attributes.calculatedType"):this.type},this}function Ob(){return this.after("render",function(){var e,t;M&&M.contentWindow&&M.style&&(e=y.first(R('#pendo-resource-center-container, [id^="pendo-g-"]')))&&(e=f(e))&&(t={mutation:"preview/setIsPreviewBarTop",payload:{isPreviewBarTop:!1}},"0px"===e.top?(M.style.top="auto",M.style.bottom="0px",M.contentWindow.postMessage(t,location.origin)):"0px"!==e.bottom&&M.style.top||(M.style.top="0px",M.style.bottom="auto",t.payload.isPreviewBarTop=!0,M.contentWindow.postMessage(t,location.origin)))}),this}kb.isGuideStep=function(e){return!!e&&y.isFunction(e.render)};var rr={state:{errorCount:0,errors:{}},actions:{write:function(e,t){var n=t.error;if(n&&!t.logged){var i=e.getters.hasLogged()(t);if(e.dispatch("update",t),!i){try{t.logged=!0}catch(r){}e="[".concat(t,"]");t.level===zt.Critical?(i=window.pendo_options||{},Gy(e),!1!==v.logStackTraces&&!1!==i.logStackTraces&&n.stack?na("".concat(e,"\n").concat(n.stack)):ta(e)):t.level===zt.Error?Gy(e):t.level===zt.Warn&&function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];My("warn")&&console.warn.apply(console,e)}(e)}}},update:function(e,t){t&&(e.getters.hasLogged()(t)||e.commit("addError",t),e.commit("incrementError",t))}},mutations:{addError:function(e,t){var n=t.message,i=t.level,r=t.hashCode();e.errors[r]={count:0,stack:t.error.stack,message:n,level:i,hash:r}},incrementError:function(e,t){e.errors[t.hashCode()].count++,e.errorCount++}},getters:{hasLogged:function(t){return function(e){return!!t.errors[e.hashCode()]}}}},Nb=w.getSession(),Mb="pendo_cd";function Lb(){this.name="CloneDetection"}Lb.prototype.initialize=function(){if(y.isFunction(window.BroadcastChannel))return w.registry.addSession(Mb),this.tabId=Gn.getTabId(),this.id=At(16),this.channel=new BroadcastChannel("pendo-clone-detection-".concat(v.apiKey)),this.channel.addEventListener("message",y.bind(this.onmessage,this)),this.detectClonedSession(this.id),y.bind(this.teardown,this)},Lb.prototype.teardown=function(){this.stopCloneDetectionTimer(),this.channel.removeEventListener("message",this.onmessage),this.channel.close(),this.channel=null},Lb.prototype.onmessage=function(e){var t=y.get(e,"data.type"),n=y.get(e,"data.tabId"),i=y.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()}},Lb.prototype.detectClonedSession=function(e){var t=Nb.getItem(Mb)||"";-1===t.indexOf(e)&&(t+="-"+e),Nb.setItem(Mb,t),this.sendMessage("pendo-clone-test",{tabId:this.tabId,id:this.id}),this.startCloneDetectionTimer()},Lb.prototype.isClonedSession=function(e){return this.startCloneDetectionTimer(),-1===(Nb.getItem(Mb)||"").indexOf(e)},Lb.prototype.clearCloneDetectionValue=function(){Nb.removeItem(Mb),this.cloneDetectionTimer=null},Lb.prototype.startCloneDetectionTimer=function(){this.stopCloneDetectionTimer(),this.cloneDetectionTimer=Dt(this.clearCloneDetectionValue.bind(this),1e4)},Lb.prototype.stopCloneDetectionTimer=function(){this.cloneDetectionTimer&&(clearTimeout(this.cloneDetectionTimer),this.cloneDetectionTimer=null)},Lb.prototype.clearClonedStorage=function(){Nb.clearPendo(),Gn.setParentTabId(this.tabId),this.tabId=Gn.newTabId(),S.trigger("tabIdChanged:self"),A.dispatch("frames/setTabId",this.tabId)},Lb.prototype.sendMessage=function(e,t){this.channel.postMessage(Gt({type:e},t))};var Fb=new Lb;function Pb(e){A.dispatch("frames/setReady",{isReady:!0})}var Gb=["unknown","hidden","visible"];function Db(e){return"visible"===e.visibility||"unknown"===e.visibility}Bb={};var Bb,e={actions:{init:function(e){var t,n,i=e.state;i.initialized||(w.registry.addSession(Rn),w.registry.addSession(kn),t=Gn.addTracerIds({}),n=Ge(),e.commit("setFrameId",t.frameId),e.commit("setTabId",t.tabId),e.commit("setAgentInstallType",n),e.commit("setLeadershipMode",n),S.ready.on(Pb),S.guideSeen.on(function(e){e=e.data[0];e&&e.frameId===i.frameId&&L.postMessage({action:"frames/receiveGuideSeen",frameId:i.frameId,guideSeen:e})}),Fb.initialize(),e.commit("setInitialized",!0))},changeGuideList:function(e,t){e=e.state,t=$b(t);L.postMessage({action:"frames/receiveGuideList",frameId:e.frameId,guides:t,autoOrdering:v.autoOrdering||[]})},receiveGuideList:function(e,t){e.commit("setGuideList",t),t.frameId===e.state.frameId&&e.commit("setGuidesLoaded"),Ub(e.state)},join:function(e){var t,n,i,r;e.state.disabled||(kh(),t=e.state,n=window.top==window,i=t.frames[t.frameId],e.commit("removeFrame",t.frameId),e.commit("setGuideList",{frameId:t.frameId,guides:$b(Su())}),(r=[].concat(m.get("leaderKey"))).length||t.agentInstallType!==Fe||(r=[v.apiKey]),e.dispatch("receiveFrame",{frame:y.extend({agentInstallType:t.agentInstallType,id:t.frameId,joinedAt:b(),isTop:n,visibility:n?"visible":"unknown",apiKey:v.apiKey,leaderKey:r},i)}))},receiveFrame:function(e,t){var n,i=e.state;if(v.designerv2.launched&&(n=Object.assign({},zf.hostConfig,{selectionOnly:!0}),L.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:y.toArray(y.get(t,"frame.guides",[]))}),t.frame.isTop){for(var r=e.getters.leaderKeyPreference(),o=y.filter(i.frames,function(e){return e.isTop});r.length;){var a=r.shift(),s=y.filter(o,function(e){return e.apiKey===a});if(s.length){o=s;break}}e.commit("setTopId",o[0].id)}e.commit("setLeadershipMode",t.frame.agentInstallType),t[cf]&&e.dispatch("receiveStartPreview",t),L.postMessage({action:"frames/receiveFrame",frame:i.frames[i.frameId],"pendo-preview":e.rootState.preview.preview}),e.dispatch("waitThenElectLeader")}},leave:function(t){var e=t.state;L.postMessage({action:"frames/removeFrame",frameId:e.frameId}),y.each(e.frames,function(e){t.commit("removeFrame",e.id)}),L.close()},removeFrame:function(e,n){e.getters.hasFrame()(n.frameId)&&(e.commit("removeFrame",n.frameId),y.each(Bb,function(e,t){0===t.indexOf(n.frameId+"/")&&(e.reject(),delete Bb[t])}),e.dispatch("electLeader"))},waitThenElectLeader:y.debounce(function(e){e.dispatch("electLeader")},50),electLeader:function(e){var t=e.state,n=t.frames,i=e.getters.leaderKeyPreference();if(i.length)for(;i.length;){var r=i.shift(),o=y.filter(t.frames,function(e){return e.apiKey===r});if(o.length){n=o;break}}var a=y.find(n,function(e){return e.isTop});a?e.dispatch("followLeader",{leaderId:a.id}):(a=y.min(n,"joinedAt"),e.dispatch("followLeader",{leaderId:a.id})),Ub(e.state),e.getters.isLeader()&&S.childFrameJoined.trigger()},followLeader:function(e,t){var n=e.state,i=n.leaderId,r=t.leaderId;e.commit("setLeaderId",t.leaderId),i!==r&&S.leaderChanged.trigger({frameId:n.frameId,oldLeaderId:i,newLeaderId:r})},showGuideStep:function(t,n){var i=y.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",y.extend({frameId:e.id},n)).then(function(e){return e.error?C.reject(e.error):e.isShown?e:r()}):C.resolve({isShown:!1})}()},requestShowGuideStepInFrame:function(e,t){var n=t.frameId+"/"+At(32),i=C.defer();return Bb[n]=i,L.postMessage(y.extend({action:"frames/showGuideStepInFrame",requestId:n},t)),i.promise},showGuideStepInFrame:function(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=Iu(n.guideId))&&e.findStepById(n.stepId))?Nt(e=_b.showLocal(e,n.reason))?e.then(i)["catch"](y.noop):i(e):t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:!1}))},guideStepShownInFrame:function(e,t){e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:t.isShown}),L.postMessage(y.extend({action:"frames/receiveGuideStepShownInFrame",frameId:e.state.frameId},t))},receiveGuideStepShownInFrame:function(e,t){var n=Bb[t.requestId];n&&(n.resolve(t),delete Bb[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:function(e,t){t=y.isArray(t)?t:[],L.postMessage({action:"frames/receiveHideGuides",frameId:e.state.frameId,guideIds:t}),e.commit("hideGuides")},receiveHideGuides:function(e,t){e.state.frameId!==t.frameId&&(t.guideIds.length?y.each(y.compact(y.map(t.guideIds,Iu)),function(e){e.hide()}):Xg(),e.commit("hideGuides"))},guideStepHiddenInFrame:function(e,t){var n=e.getters.isShownInFrame()(e.state.frameId,{id:t.stepId});e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:!1}),L.postMessage(y.extend({action:"frames/receiveGuideStepHiddenInFrame",frameId:e.state.frameId},t)),n&&e.dispatch("fixDoubleDisplay",t)},receiveGuideStepHiddenInFrame:function(e,t){e.state.frameId!==t.frameId&&e.getters.isShownInFrame()(t.frameId,{id:t.stepId})&&e.commit("setStepShown",{frameId:t.frameId,stepId:t.stepId,shown:!1})},fixDoubleDisplay:function(n,i){y.each(n.state.frames,function(e,t){t!==n.state.frameId&&n.getters.isShownInFrame()(t,{id:i.stepId})&&L.postMessage(y.extend({action:"frames/receiveHideGuideInFrame",frameId:t,guideId:i.guideId,stepId:i.stepId},i))})},receiveHideGuideInFrame:function(e,t){e.state.frameId===t.frameId&&(t=(e=Iu(t.guideId))&&e.findStepById(t.stepId))&&t.hide()},changeLastGuideStepSeen:function(e,t){L.postMessage({action:"frames/receiveLastGuideStepSeen",frameId:e.state.frameId,lastGuideStepSeen:t}),e.commit("updateLastGuideStepSeen",t),e.commit("healthCheck/updateStepState",{id:t.guideStepId,seenState:t.state},{root:!0})},receiveLastGuideStepSeen:function(e,t){var n;t.frameId!==e.state.frameId&&(n=e.state.frames[t.frameId],(n=y.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=Iu((n=t.lastGuideStepSeen).guideId))&&t.findStepById(n.guideStepId))&&(t.seenState=n.state,t.seenReason=n.seenReason,t.lastSeenAt=n.time,n.dismissCount&&(t.dismissCount=n.dismissCount),n.snoozeEndTime&&(t.snoozeEndTime=n.snoozeEndTime),e.commit("updateLastGuideStepSeen",n),e.commit("healthCheck/updateStepState",t,{root:!0}))},changeThrottlingState:function(e,t){L.postMessage(y.extend({action:"frames/receiveThrottlingState",frameId:e.state.frameId},t))},receiveThrottlingState:function(e,t){t.frameId!==e.state.frameId&&y.each(xm,function(e){t[e]&&km(t[e],e)})},startPreview:function(e){L.postMessage({action:"frames/receiveStartPreview","pendo-preview":e.rootState.preview.preview})},restartPreview:function(e){L.postMessage({action:"frames/receiveRestartPreview","pendo-preview":e.rootState.preview.preview})},stopPreview:function(e,t){L.postMessage(y.extend({action:"frames/receiveStopPreview"},t))},receiveStartPreview:function(e,t){e.dispatch("preview/start",t[cf],{root:!0}),hf(window),kv()},receiveRestartPreview:function(e){var t=mf(k,vh());e.dispatch("guideState/updateLastGuideStepSeen",t,{root:!0})},receiveStopPreview:function(e,t){Ef({preventWindowClose:!!t.preventWindowClose})},checkFrameVisibility:function(e,t){if(!e.getters.isTop()&&!e.state.disableFrameVisibilityCheck)try{var n="unknown",i=(t=null==t?window:t).frameElement;i?(n=$a(i)?"visible":"hidden",e.dispatch("updateFrameVisibility",{visibility:n})):e.commit("disableFrameVisibilityCheck")}catch(r){e.commit("disableFrameVisibilityCheck")}},updateFrameVisibility:function(e,t){var n;!y.find(Gb,function(e){return e===t.visibility})||(n=t.visibility,e.getters.frameVisibility()===n)||(e.commit("setFrameVisibility",{frameId:e.state.frameId,visibility:n}),L.postMessage({action:"frames/receiveFrameVisibility",frameId:e.state.frameId,visibility:n}))},receiveFrameVisibility:function(e,t){e.commit("setFrameVisibility",t)},addSelectionModeToFrames:function(e,t){t=t.options;zf.launchInAppDesigner(t)},syncOptions:function(e,t){t.options&&L.postMessage({action:"frames/receiveOptions",frameId:e.state.frameId,options:t.options})},receiveOptions:function(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&t.options&&ip(t.options)},syncIdentity:function(e,t){var n;(t.visitorId||t.accountId)&&(n=t.visitorId,t=t.accountId,L.postMessage({action:"frames/receiveIdentity",frameId:e.state.frameId,visitorId:n,accountId:t}))},receiveIdentity:function(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&(t.visitorId||t.accountId)&&pi(t.visitorId,t.accountId)},setReady:function(e,t){e.commit("setReady",t.isReady)},receiveGuideSeen:function(e,t){t.frameId!==e.state.frameId&&S.guideSeen.trigger(t.guideSeen)},checkGuideEligibility:function(e,t){var n=t.guideId,i=t.stepId,r=t.currentStepIndex,o=t.sourceFrame,t=t.promiseId,n=Iu(n),i=n&&n.findStepById(i),a={};return n&&i?(0===r&&(r=Fu(n))&&((r=y.first(Xr(r)))?$a(r)||(a.ACTIVATION="notVisible"):a.ACTIVATION="notFound"),y.isFunction(i.canShowOnPage)&&!i.canShowOnPage(Pm())&&(a.PAGE="mismatch"),i.elementPathRule&&((r=y.first(Xr(i.elementPathRule)))?$a(r)?i.elementContainsRulesList&&!mm(r,i.elementContainsRulesList)&&(a.ELEMENT="containsRuleMismatch"):a.ELEMENT="notVisible":a.ELEMENT="notFound"),i.triggerElementPathRule&&((r=y.first(Xr(i.triggerElementPathRule)))?$a(r)||(a.TRIGGER_ELEMENT="notVisible"):a.TRIGGER_ELEMENT="notFound"),y.get(n,"attributes.embedConfig")&&(i=y.get(n,"attributes.embedConfig.selector"),(r=y.first(Xr(i)))?$a(r)||(a.EMBED_CONTAINER="notVisible"):a.EMBED_CONTAINER="notFound")):a.GUIDE="notFound",t&&o&&L.postMessage({errors:a,action:"frameEligibilityResponse",targetFrame:o,resolveId:t}),a},setTabId:function(e,t){e.commit("setTabId",t)}},mutations:{addFrame:function(e,t){var n=t.id;e.frames[n]=y.extend({},e.frames[n],t)},removeFrame:function(e,t){delete e.frames[t]},setGuideList:function(e,t){var n=t.frameId;e.frames[n]=y.extend({},e.frames[n],{guides:y.indexBy($b(t.guides),"id"),autoOrdering:t.autoOrdering})},setStepShown:function(e,t){var n=t.frameId,n=e.frames[n]=y.extend({},e.frames[n]);n.shown=y.extend({},n.shown),n.shown[t.stepId]=t.shown},setInitialized:function(e,t){e.initialized=t},setLeaderId:function(e,t){e.leaderId=t},setFrameId:function(e,t){e.frameId=t},setTabId:function(e,t){e.tabId=t},setTopId:function(e,t){e.topId=t},setAgentInstallType:function(e,t){e.agentInstallType=t},setLeadershipMode:function(e,t){e.leadershipMode!==Fe&&(e.leadershipMode=t)},setFrameVisibility:function(e,t){var n=t.frameId;e.frames[n]=y.extend({},e.frames[n],{visibility:t.visibility})},setReady:function(e,t){e.isReady=t},disableFrameVisibilityCheck:function(e){e.disableFrameVisibilityCheck=!0},hideGuides:function(e){y.each(e.frames,function(n){y.each(n.shown,function(e,t){n.shown[t]=!1})})},setChannelType:function(e,t){e.channelType=t},setGuidesLoaded:function(e){e.guidesLoaded=!0},setConnectFailed:function(e){e.connectFailed=!0},updateLastGuideStepSeen:function(e,t){t&&y.each(e.frames,function(e){e.guides&&(e=e.guides[t.guideId])&&(e=y.findWhere(e.steps,{id:t.guideStepId}))&&(e.seenState=t.state,e.lastSeenAt=t.time,e.seenReason=t.seenReason,t.dismissCount&&(e.dismissCount=t.dismissCount),t.snoozeEndTime)&&(e.snoozeEndTime=t.snoozeEndTime)})}},getters:{allFrames:function(e){return e.frames},autoOrdering:function(e){return y.reduce(e.frames,function(e,t){return e[t.apiKey]=t.autoOrdering,e},{})},leaderExists:function(e){return!!e.leaderId},isLeader:function(e){return e.leaderId===e.frameId},leaderKey:function(e,t){if(t.leaderExists()){t=e.frames[e.leaderId];if(t)return t.apiKey}},isFollower:function(e){return!!e.leaderId&&e.leaderId!==e.frameId},isTop:function(e,t){t=t.window();return e.topId===e.frameId||t==t.top},frameVisibility:function(e){return(e.frames?e.frames[e.frameId]:{}).visibility||"unknown"},isGuideInThisFrame:function(n){return function(e){var t=n.frames&&n.frames[n.frameId];return!!(t&&t.guides||{})[e.id]}},isGuideInDifferentFrame:function(i){return function(n){return y.any(i.frames,function(e,t){return t!==i.frameId&&e.guides&&e.guides[n.id]})}},isReady:function(e){return e.isReady},isShownInAnotherFrame:function(i){return function(n){return y.any(i.frames,function(e,t){return t!==i.frameId&&e.shown&&e.shown[n.id]})}},isShownInFrame:function(n){return function(e,t){e=n.frames&&n.frames[e],e=e&&e.shown||{};return!(!e||!e[t.id])}},hasFrame:function(t){return function(e){return t.frames&&t.frames[e]}},hasFrames:function(e){return 1<y.size(e.frames)},shouldBeAddedToLauncher:function(i,e){return function(n){return e.canShowRCBadge()&&y.any(i.frames,function(e,t){return t!==i.frameId&&!!Db(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToLauncher})}},shouldBeAddedToResourceCenter:function(i,e){return function(n){return e.canShowRCBadge()&&y.any(i.frames,function(e,t){return t!==i.frameId&&e.apiKey===v.apiKey&&!!Db(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToResourceCenter})}},isBroadcastChannel:function(e){return"BroadcastChannel"===e.channelType},channelType:function(e){return e.channelType},canShowRCBadge:function(e,t){var n,i;return t.leaderKey()!==v.apiKey?(n=y.filter(e.frames,function(e){return e.apiKey===v.apiKey}),(i=y.find(n,function(e){return e.isTop}))?e.frameId===i.id:(i=y.min(n,function(e){return e.joinedAt}),e.frameId===i.id)):y.any(e.frames,function(e){return e.isTop})?t.isTop():t.isLeader()},leaderKeyPreference:function(e){e=y.filter(e.frames,function(e){return e.leaderKey&&e.leaderKey.length});return 1===y.unique(y.map(e,function(e){return e.leaderKey.join(",")})).length?[].concat(e[0].leaderKey):[]},getMyApiKey:function(e,t){return t.getMyFrame().apiKey},getMyFrame:function(e){return e.frames[e.frameId]},window:function(){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:Bb};function Wb(e){var t=y.pick(e,"id","name","launchMethod","isMultiStep","steps","control","lastUpdatedAt","language","state","polls","redisplay");return t.attributes=y.pick(e.attributes,"overrideAutoThrottling","priority","isAnnouncement","resourceCenter","device","sharedServiceVersion","embedConfig"),t._shouldBeAddedToLauncher=y.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e._shouldBeAddedToLauncher||!1,t._shouldBeAddedToResourceCenter=y.isFunction(e.shouldBeAddedToResourceCenter)?e.shouldBeAddedToResourceCenter():e._shouldBeAddedToResourceCenter||!1,t.steps=y.map(e.steps,function(e){return y.pick(e,"id","guideId","type","seenReason","seenState","lastSeenAt","lastUpdatedAt","dismissCount","snoozeEndTime","regexUrlRule","pageId","elementPathRule","triggerElementPathRule","elementContainsRulesList")}),t}function $b(e){return y.map(e,Wb)}function Ub(t){var n=y.indexBy(y.filter(Su(),function(e){return!e.isFrameProxy}),"id"),e=y.chain(t.frames).filter(function(e){return e.id!==t.frameId}).map(function(e){return y.toArray(y.get(e,"guides",[]))}).flatten(!0).unique("id").filter(function(e){return!n[e.id]}).map(function(e){return y.extend(JSON.parse(JSON.stringify(e)),{isFrameProxy:!0})}).map(cc).value(),e=y.toArray(n).concat(e).filter(Km);y.sortBy(e,Xm),hv(e),mu(e),t.guidesLoaded&&0===y.size(y.get(t,"frames."+t.frameId+".guides",[]))&&Oh()}function jb(e,t){new(_t("MutationObserver"))(t).observe(e,{subtree:!0,attributes:!0,childList:!0,characterData:!0})}var zb,Zb={startObserver:function(t){var n,i,r,o,a;n=t,i=Element.prototype.attachShadow,Element.prototype.attachShadow=function(e){e=i.call(this,e);return this.shadowRoot&&jb(this.shadowRoot,n),e},Element.prototype.attachShadow.toString=function(){return i.toString()},y.isFunction(document.createNodeIterator)&&(r=0,o=[Ea()],function s(e){do{if(!(e=e||document.createNodeIterator(o.pop(),NodeFilter.SHOW_ELEMENT))||!e.nextNode)break;for(;(a=e.nextNode())&&(r++,a&&a.shadowRoot&&(jb(a.shadowRoot,t),o.push(a.shadowRoot),Zb.foundShadowRoots=!0),r%5e3!=0););}while(!a&&(e=null,o.length));a&&Zb.foundShadowRoots&&Dt(function(){s(e)},50),5e3!==r||Zb.foundShadowRoots||(Zb.stoppedSearchEarly=!0)}())},foundShadowRoots:!1,stoppedSearchEarly:!1},s={actions:{documentChanged:function(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,_h-t),_h),t=Dt(Yb,t),e.commit("setScheduledUpdate",t))},handleScheduledUpdate:function(e){e.dispatch("stopScheduledUpdate"),Oh()},stopScheduledUpdate:function(e){e.state.scheduledUpdate&&(clearTimeout(e.state.scheduledUpdate),e.commit("setScheduledUpdate",null))},startObserverIfNeeded:function(e,t){var n;e.state.useObserver&&((n=e.getters.observer())||(n=new(t||_t("MutationObserver"))(Vb),zb=n),e.state.observing||(n.observe(document.documentElement,{subtree:!0,attributes:!0,childList:!0,characterData:!0}),e.state.observeShadowRoots&&Zb.startObserver(Vb),e.commit("setObserving",!0)))},stopObserver:function(e){var t=e.getters.observer();t&&y.isFunction(t.disconnect)&&t.disconnect(),e.commit("setObserving",!1),e.dispatch("stopScheduledUpdate")}},mutations:{setUseObserver:function(e){e.useObserver=!0},setObserveShadowRoots:function(e){e.observeShadowRoots=!0},setObserving:function(e,t){e.observing=t},setNeedsUpdate:function(e){e.needsUpdate=!0},setScheduledUpdate:function(e,t){e.scheduledUpdate=t},startUpdate:function(e,t){e.needsUpdate=!1,e.updateId=t},completeUpdate:function(e,t){e.updateId=null,e.updateCompleteTime=t}},getters:{now:b,observer:function(){return zb}},state:{useObserver:!1,observeShadowRoots:!1,observing:!1,needsUpdate:!1,scheduledUpdate:null,updateId:null,updateCompleteTime:0,iterationTimeLimit:50}};function Vb(){A.dispatch("guideUpdate/documentChanged")}function Yb(){A.dispatch("guideUpdate/handleScheduledUpdate")}Hb=["advanced","dismissed","snoozed"];var Hb,Kb,Xb,Jb,qb,Qb,e0,t0,n0,i0={actions:{init:function(t,e){y.each(e,function(e){y.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){na(['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=b();e.steps[t.id]=y.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)&&!(b()>=t.allowedAt)&&y.contains(Hb,t.seenState)&&!y.contains(Hb,e.seenState)}},isMissingPageRule:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(!t.regexUrlRule||e.regexUrlRule)}}},state:{steps:{},exceptions:{}}},r0={state:{lastFlush:b(),flushInterval:3e5,counters:{ptmGifFailures:0,guideGifFailures:0},timers:{}},actions:{flush:function(n){y.each(n.state.counters,function(e,t){n.commit("resetCounter",t)}),y.each(n.state.timers,function(e,t){n.commit("resetTimer",t)}),n.commit("setLastFlush",n.getters.now())}},mutations:{setLastFlush:function(e,t){e.lastFlush=t},incrementCounter:function(e,t){e.counters[t]!==undefined&&e.counters[t]++},resetCounter:function(e,t){e.counters[t]!==undefined&&(e.counters[t]=0)},setTimer:function(e,t){var t=void 0===t?{}:t,n=t.name,t=t.time;n&&null!=t&&(e.timers[n]=t)},resetTimer:function(e,t){delete e.timers[t]}},getters:{shouldFlush:function(e,t){return t.now()-e.lastFlush>=e.flushInterval},payload:function(e){var t=y.reduce(e.counters,function(e,t,n){return 0<t&&(e[n]=t),e},{});return y.extend({},t,e.timers)},now:b}},o0={state:{visitor:{},account:{},parentAccount:{},date:null,version:null,selfHosted:null},actions:{},mutations:{setMetadata:function(e,t){t&&(t.visitor&&(e.visitor=t.visitor),t.account&&(e.account=t.account),t.parentAccount&&(e.parentAccount=t.parentAccount),t.date&&(e.date=t.date),t.version&&(e.version=t.version),null!==t.selfHosted)&&(e.selfHosted=t.selfHosted)},clearAccount:function(e){e.account={}},reset:function(e,t){e.visitor={id:t.visitor_id},e.account={},e.parentAccount={},e.date=null,e.version=null,e.selfHosted=null}},getters:{metadata:function(e){return e},selfHosted:function(e){return e.selfHosted}}},a0=w.getLocal(),s0="pendo-preview",d0="current-guide-preview",u0={state:{preview:null,designerPreview:null},actions:{start:function(e,t){e.commit("setPreview",t),e.dispatch("write")},restart:function(e,t){e.commit("updatePreview",{state:null}),e.commit("updatePreview",t)},update:function(e,t){e.commit("updatePreview",{state:t}),e.dispatch("write")},load:function(e){try{var t=e.getters.storage(),n=JSON.parse(t.getItem(s0)),i=(n.apiKey===v.apiKey&&e.commit("setPreview",n),t.getItem(d0));i&&e.commit("setDesignerPreview",JSON.parse(i))}catch(r){}},write:function(e){try{var t=e.getters.storage();e.state.preview?t.setItem(s0,JSON.stringify(e.state.preview)):t.removeItem(s0)}catch(n){}},exit:function(e){e.commit("setPreview",null),e.dispatch("write")},exitDesignerPreview:function(e){e.commit("setDesignerPreview",null),e.getters.storage().removeItem(d0)},launchInAppDesigner:function(e,t){zf.launchInAppDesigner(t)}},mutations:{updatePreview:function(e,t){e.preview&&y.extend(e.preview,t)},setPreview:function(e,t){e.preview=t},setDesignerPreview:function(e,t){e.designerPreview=t}},getters:{isInPreviewMode:function(e){return!!e.preview},isInDesignerPreviewMode:function(e,t){return!!e.designerPreview&&t.isInPreviewMode()},storage:function(){return a0}}},c0=(Kb={isTop:undefined,isLeader:undefined,frameId:null,tabId:null,frames:{},autoOrdering:[],excludedGuides:[],throttling:{},enableEventLogging:!1,eventsCaptured:[],cspErrors:[],installType:null},qb={debuggingEnabled:{type:Xb="top-down",defaultValue:!(Jb="bottom-up")},guideLoopRunning:{type:Jb,defaultValue:!1},stepEligibilitySet:{type:Jb,defaultValue:{}},identity:{type:Jb,defaultValue:{}},location:{type:Jb,defaultValue:{}}},c0={init:function(e){e.commit("setFrameId",Gn.getFrameId()),e.commit("setTabId",Gn.getTabId()),e.commit("setInstallType",Ge());var t=Du()&&window.top===window;Kb.isTop,e.commit("setIsTop",t),e.commit("isLeader",Du()),t?(t=Hh(),e.commit("debuggingEnabled",!0===t.enabled),t.enableEventLogging&&e.commit("enableEventLogging",!0)):L.postMessage({action:"debugger/join",frameId:e.state.frameId})},join:function(n,e){n.state.frameId!==e.frameId&&y.each(qb,function(e,t){e.type===Xb&&L.postMessage({action:"debugger/sync",frameId:n.state.frameId,fields:((e={})[t]=n.state[t],e)})})},sync:function(i,e){var r;i.state.frameId!==e.frameId&&(r=e.frameId,e=e.fields,y.each(e,function(e,t){var n;!qb[t]||(n=qb[t].type)===Xb&&i.state.isTop||n===Jb&&!i.state.isTop||i.commit("_sync_".concat(t),{value:e,frameId:r})}))},enableEventLogging:function(e,t){e.commit("enableEventLogging",t)},eventCaptured:function(e,t){e.state.isTop?e.commit("eventsCaptured",t):L.postMessage({action:"debugger/receiveEventCaptured",frameId:e.state.frameId,event:t})},receiveEventCaptured:function(e,t){e.state.isTop&&e.commit("eventsCaptured",t.event)},clearEventsCaptured:function(e){e.commit("eventsCaptured",[])},onCspError:function(e,t){e.state.isTop?e.commit("cspError",t):L.postMessage({action:"debugger/recieveCspError",frameId:e.state.frameId,data:t})},recieveCspError:function(e,t){e.state.isTop&&e.commit("cspError",t.data)},checkGuideEligibility:function(e,t){var i=t.guideId,n=t.response,t=y.filter(A.state.frames.frames,function(e){return e.guides&&e.guides[i]});t.length&&(t=y.map(t,function(n){var e=y.map(n.guides[i].steps,function(e,t){return L.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:n.id,stepId:e.id,currentStepIndex:t,guideId:i})});return C.all(e).then(function(e){return{frameId:n.id,frameVisibility:n.visibility,errors:y.map(e,function(e){return JSON.parse(e).errors})}})}),C.all(t).then(function(e){return e}).then(function(e){return n(e)})["catch"](function(e){return n({error:e})}))}},Qb={},e0={setFrameId:function(e,t){e.frameId=t},setTabId:function(e,t){e.tabId=t},setIsTop:function(e,t){e.isTop=t},isLeader:function(e,t){e.isLeader=t},setInstallType:function(e,t){e.installType=t},stepEligibilitySet:function(e,t){var n=t.stepId;e.stepEligibilitySet[n]=t},guideLoopRunning:function(e,t){e.guideLoopRunning!==t&&(e.guideLoopRunning=t)},identity:function(e,t){e.identity=t},location:function(e,t){e.location=t},debuggingEnabled:function(e,t){e.debuggingEnabled=t,t=t,e=e.isTop,Kb.debuggingEnabled!==t&&(t?(f0(),g0(),S.on("stepEligibility",l0),S.on("guideUpdateComplete",t0),S.on("guideLoopStopped",n0),S.on("eventCaptured",h0),S.on("identify",f0),S.on("urlChanged",g0),e&&(p0(),S.on("guidesLoaded",p0))):(S.off("stepEligibility",l0),S.off("guideUpdateComplete",t0),S.off("guideLoopStopped",n0),S.off("eventCaptured",h0),S.off("identify",f0),S.off("urlChanged",g0),e&&S.off("guidesLoaded",p0)))},excludedGuides:function(e,t){e.excludedGuides=t},autoOrdering:function(e,t){e.autoOrdering=t},throttling:function(e,t){e.throttling=t},eventsCaptured:function(e,t){y.isArray(t)&&0===t.length?e.eventsCaptured=[]:e.debuggingEnabled&&e.enableEventLogging&&e.eventsCaptured.unshift(t)},enableEventLogging:function(e,t){e.enableEventLogging=t},cspError:function(e,t){e.cspErrors.unshift(t),10<e.cspErrors.length&&e.cspErrors.pop()}},t0=y.partial(m0,!0),n0=y.partial(m0,!1),y.each(qb,function(e,i){var r=e.type,e=e.defaultValue,o=(Kb[i]=e,Qb[i]=function(e){return e[i]},e0[i]||function(e,t){e[i]=t});e0[i]=y.wrap(o,function(e,t,n){!t.isTop&&r===Xb||(e(t,n),t.isTop&&r===Jb)||L.postMessage({action:"debugger/sync",frameId:t.frameId,fields:((e={})[i]=n,e)})}),o=e0["_sync_".concat(i)]||o,e0["_sync_".concat(i)]=function(e,t){var n=t.value,t=t.frameId;e.frames[t]||(e.frames[t]={}),e.frames[t][i]||(e.frames[t][i]=qb[i].defaultValue),o(e.frames[t],n),e.isTop||r!==Xb||o(e,n)}}),{state:Kb,actions:c0,getters:Qb,mutations:e0});function l0(e){e=e.data[0];A.commit("debugger/stepEligibilitySet",e)}function p0(e){var t=y.map(yh.sortAndFilter(k,v.autoOrdering),function(e){return e.id});A.commit("debugger/autoOrdering",t||[]),A.commit("debugger/excludedGuides",v.excludedGuides||[]),A.commit("debugger/throttling",v.throttling||{})}function h0(e){A.dispatch("debugger/eventCaptured",e.data[0])}function f0(e){A.commit("debugger/identity",{visitorId:y.get(e,"data.0.visitor_id")||v.get_visitor_id(),accountId:y.get(e,"data.0.account_id")||v.get_account_id(),apiKey:v.apiKey})}function g0(){A.commit("debugger/location",{href:go(),browserUrl:window.location.href})}function m0(e){A.commit("debugger/guideLoopRunning",e)}I0="pendo-loader";var v0,y0,b0,I0,w0={name:"IFrameMonitor",initialize:function(e,t){v0=e,y0=t,function(){y0.ConfigReader.get("autoFrameInstall")&&y0.Events.ready.on(x0);y0.ConfigReader.get("frameIdentitySync")&&(y0.Events.metadata.on(k0),y0.Events.identify.on(O0),y0.Events.childFrameJoined.on(C0))}(),b0=y0.ConfigReader.get("frameIdentityTopDownOnly")},teardown:function(){y0.Events.ready.off(x0),y0.Events.metadata.off(k0),y0.Events.identify.off(O0),y0.Events.childFrameJoined.off(C0)}};function C0(){N0()}function S0(e){return e.ignoreIframeMonitor||e.pendo&&(e.pendo.initialize||e.pendo.iframeWaiting)||!!e.document.getElementById(I0)}function A0(e,t){var n;S0(e)||((n=y0.ConfigReader.getLocalConfig()).apiKey||(n.apiKey=v0.apiKey),e.pendo={_q:[["initialize",n]]},(n=e.document.createElement("script")).src=t,n["async"]=!0,n.id=I0,(t=e.document.getElementsByTagName("script")[0])&&t.parentNode?t.parentNode.insertBefore(n,t):(e.document.head||e.document.body).appendChild(n))}function E0(e,t){e.pendo.iframeWaiting=!1,A0(e,t)}function T0(e){try{if(S0(e))return}catch(i){return}var t,n=(n=y0.ConfigReader.get("selfHostedAgentUrl"))||(n=v0.dom("script"),t=/\/pendo(\.\w+)?\.js$/,(n=v0._.find(n,function(e){return t.test(e.src)}))&&n.src);n?"complete"===e.document.readyState?A0(e,n):(e.pendo={iframeWaiting:!0},e.document.addEventListener("DOMContentLoaded",v0._.partial(E0,e,n))):v0.log("Unable to find agent url to install agent in frames","debug")}function _0(){for(var e=v0.dom("iframe").length,t=0;t<e;t++)T0(window.frames[t]);Dt(_0,250)}function x0(){_0()}function R0(){return!b0||y0.store.getters["frames/isLeader"]()}function k0(e){R0()&&(e=null==(e=e.data)?void 0:e[0]).storeChanged&&y0.store.dispatch("frames/syncOptions",{options:e.options})}function O0(e){var t;N0(null==(t=e.data)?void 0:t[0].visitor_id,null==(t=e.data)?void 0:t[0].account_id)}function N0(e,t){void 0===e&&(e=E()),void 0===t&&(t=mi()),R0()&&y0.store.dispatch("frames/syncIdentity",{visitorId:e,accountId:t})}L0.prototype.markDirty=function(){this.queue.push.apply(this.queue,this.domActivation.guides)},L0.prototype.process=function(e){var t,n,i=this.queue.shift();if(i){e.saveContext(i);try{t=Xr(i.selector)}catch(r){t=[]}t.length>this.maxTargets&&(t.length=this.maxTargets),e=t,n=i.targets,e.length==n.length&&y.all(e,function(e,t){return e===n[t]})||(i.targets=t,this.domActivation.detach(i,this.domActivation.targets),y.each(t,function(e){this.domActivation.attach(e,i,this.domActivation.targets)},this))}},L0.prototype.handleProcessTimeExceeded=function(e){e=e.getContext();e&&I.warn("Element activated guide ("+e.id+") timeout exceeded")},L0.prototype.cancel=function(){this.queue.length=0},L0.prototype.isComplete=function(){return!this.queue.length};var M0=L0;function L0(e){this.maxTargets=50,this.domActivation=e,this.name="dom",this.queue=[]}var F0,P0,G0,D0,B0,W0,$0={name:"DOMActivation",key:G0="pendoTargetId",guides:D0=[],targets:B0={},reset:V0,init:H0,attach:function(n,i,e){var t=n[G0],r=t?e[t]:null;r||(t=t||"target"+y.uniqueId(),r={target:n,events:{}},e[t]=r,n[G0]=t);var o=e[i.id]||[];o.push(t),e[i.id]=o,y.each(i.events,function(e){var t=r.events[e];t||((t={guideIds:{}}).fn=y.partial(Z0,y,t.guideIds),l(n,e="mouseover"===e?"mouseenter":e,t.fn),r.events[e]=t),t.guideIds[i.id]=1})},detach:z0,handler:Z0,activates:Y0,prefetch:K0,initialize:function(e,t){(F0=t).Events.on("deliverablesLoaded",V0),t.Events.on("guideListChanged",U0),t.Events.on("guidesLoaded",j0),zh(P0=new M0($0))},teardown:function(){Zh(P0),F0.Events.off("deliverablesLoaded",V0),F0.Events.off("guideListChanged",U0),F0.Events.off("guidesLoaded",j0)}};function U0(){V0(),H0(fu())}function j0(){K0(fu())}function z0(i,t){y.each(t[i.id],function(e){var n=e?t[e]:null;n&&(y.each(n.events,function(e,t){e&&e.guideIds&&(delete e.guideIds[i.id],y.size(e.guideIds)<=0)&&(su(n.target,t="mouseover"===t?"mouseenter":t,e.fn),delete n.events[t])}),y.size(n.events)<=0)&&(delete n.target[G0],n.target=null,delete t[e])}),delete t[i.id]}function Z0(e,t){var n;!e.pendoActivatedGuide&&!R.data.get(e,"advanced")&&(n=m.get("adoptPrioritizeAdoptGuides"),t=y.compact(y.map(y.keys(t),Iu)),t=y.filter(t,function(e){return!(!e.steps||!e.steps.length||y.get(e,"attributes.dom.isOnlyShowOnce")&&e.steps[0].hasBeenSeen())}),t=y(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=y.find(t,function(e){var t=y.first(e.steps);return y.get(e,"attributes.resourceCenter",!1)&&e.isShown()?N.dismissResourceCenter():!!t.canShow()&&(!!e.isShown()||Sm(t,"dom"))}))&&(e.pendoActivatedGuide=t.id)}function V0(){y.each(D0,function(e){z0(e,B0),e.targets=[]}),D0.length=0}function Y0(e){if(e.id&&e.steps&&e.steps.length&&e.hasLaunchMethod("dom")&&e.steps[0].canShowOnPage(Pm())){var t=y.get(e,"attributes.activation.event",[]);if(t&&t.length){var n=Fu(e);if(n)return{id:e.id,events:t,selector:n,targets:[]}}}}function H0(e){y.each(e,function(e){e=Y0(e);e&&D0.push(e)})}function K0(e){m.get("disablePrefetch")||y.each(e,function(e){y.isFunction(e.hasLaunchMethod)&&e.hasLaunchMethod("dom")&&e.steps&&e.steps.length&&y.isFunction(e.steps[0].fetchContent)&&e.steps[0].fetchContent(!0)})}var X0,J0,q0,Q0,eI=function(){(W0=W0||{dom:R,placeBadge:rf,showPreview:Im,stopGuides:kh,removeAllBadges:of,_:y,sizzle:Xr,tellMaster:ps,tell:ps,log:Fy,attachEvent:l,createLauncher:y.constant({}),removeLauncher:y.noop,addGuideToLauncher:y.noop,updateLauncherContent:y.noop,DEFAULT_TIMER_LENGTH:_h,getOffsetPosition:wa,getScreenDimensions:ya,registerMessageHandler:ns,whenLoadedCall:uu,loadResource:Ka,loadGuideCss:sv,GuideFactory:cc,GuideStep:lc,extractElementTreeContext:Jd,previewGuideFromJSON:F.previewGuideFromJSON,hidePreviewedGuide:F.hidePreviewedGuide,shadowAPI:_i,getTarget:io,pullContentsFromTargetElement:gm,doesElementMatchContainsRules:mm,doesElementContentMatchRule:vm,getGuideAttachPoint:Ou}).areGuidesEnabled=!yv(),v.designer||(v.designer=W0)},tI={name:"DesignerConnect",initialize:function(e,t){X0=e,J0=t,ms()||ns("connect",nI);ns("pendo-designer-launch::launch",oI),ns("pendo-preview::launch",aI),e.app_name=document.title,(hs()||window.opener)&&window.addEventListener&&(X0.log(e.app_name+": listening to messages"),window.addEventListener("message",qa,!1));window.opener&&X0._.isFunction(window.opener.postMessage)&&window.opener.postMessage({type:"pendo::ready"},"*");X0.onConnectMessage=nI},teardown:function(){window.removeEventListener&&window.removeEventListener("message",qa,!1),iI(),is("connect"),is("pendo-designer-launch::launch"),is("pendo-preview::launch"),Q0&&(J0.Events.appUnloaded.off(Q0),Q0=undefined);q0=q0&&undefined},onConnectMessage:nI,disconnectDesigner:iI,launchDesignerListener:oI,launchPreviewListener:aI,sendToken:rI};function nI(e,t){var n,i;X0.isSendingEvents()&&(n=t.origin,X0.stopGuides(),X0.buffers.lock(),i=t.source,Ya=i,X0.designerv2.hostConfig||(J0.store.dispatch("frames/leave"),Q0=X0._.partial(iI,i,n),J0.Events.appUnloaded.on(Q0)),eI(),ps(t.source,{status:"success",type:"connect"},n),ds("selection.js")&&(X0.log("Designer Modules already loaded."),ps({type:"ready"},n)),J0.Events.designerLaunched.trigger())}function iI(e,t){X0.buffers.unlock(),v.designer&&(v.designer=null,delete v.designer),e&&ps(e,{type:"unload"},t)}function rI(e,t){var n;q0&&(n={token:q0,type:"pendo-designer-launch::set-token"},t.source.postMessage(n,t.origin),q0=undefined)}function oI(e,t){var n,t=t.data.token;t&&(q0=t,ns("pendo-designer-launch::get-token",rI),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},X0.designerv2.launchInAppDesigner(n))}function aI(e,t){var n=t.data.config.preferredAgentInstallType;n&&n!==Ge()?X0.log("Skipping preview launch due to agent install type mismatch."):(n=X0._.extend({},t.data.config,{origin:t.origin}),Bo()&&(n.apiKey=X0.apiKey),J0.store.dispatch("preview/exitDesignerPreview"),J0.store.dispatch("preview/start",n),hf(window)&&(t.source.postMessage({type:"pendo-preview::ready",apiKey:X0.apiKey,accountId:X0.accountId},t.origin),kv(),J0.store.dispatch("frames/startPreview")))}var sI,dI,uI,cI,lI,pI="__sg__",hI=(dI="promotedAgentMetadataConfigurations",uI=[],cI={},lI={},{name:"PromoteMetadata",initialize:function(e,t){if(uI=(sI=t).ConfigReader.get(dI),lI={},w.registry.addLocal(pI),ri())try{cI=JSON.parse(w.read(pI))||{}}catch(n){cI={}}uI&&uI.length&&(sI.Events.on("metadata",mI),sI.Events.on("eventCaptured",II),sI.Events.on("identify",vI))},teardown:function(){sI.Events.off("metadata",mI),sI.Events.off("eventCaptured",II),sI.Events.off("identify",vI)},getPromotedMetadata:function(){return uI},hasPromotedMetadataKind:fI,setSchemaGroup:mI,getSchemaGroup:gI,resetSchemaGroup:yI});function fI(t){return y.some(uI,function(e){return e.kind===t})}function gI(){return lI}function mI(e){var t;e?(e=e.data[0].options)&&(t=e):t=dp(),lI=function(r){ri()&&(cI=function(e){return y.mapObject(e,function(t,e){var n={};return Object.keys(t).forEach(function(e){n[e.replace("agent__","")]=t[e]}),n})}(cI=JSON.parse(w.read(pI))||{}));var o=lI;y.each(["visitor","account","parentAccount"],function(e){var t=fI(e),n=!y.isEmpty(r[e]),i=e.toLowerCase()+"metadata";t&&(!y.isEmpty(cI)&&y.isEmpty(Gs.get())&&(o[i]=bI(cI[i],e)),n)&&(t=bI(r[e],e),y.isEmpty(t)||(o[i]=Gt(Gt({},o[i]),t)))}),ri()&&w.write(pI,JSON.stringify(o),undefined,!1,!0);return o}(t)}function vI(e){e=e.data[0];y.get(e,"wasCleared")&&(w.clear(pI),yI())}function yI(){lI={}}function bI(e,i){var r={};return e&&y.each(e,function(e,t){var n=t.toLowerCase();Boolean(y.find(uI,function(e){return e.fieldName===n&&e.kind===i}))&&(r["agent__"+n]=e)}),r}function II(e){e=e.data[0];e&&(y.isEmpty(lI)&&mI(),y.isEmpty(lI)||("track"===e.type?e.props.__sg__=lI:(e.hasOwnProperty("eventProperties")||(e.eventProperties={}),e.eventProperties.__sg__=lI)))}function wI(e,t,n){this.element=e,this.method="element"==t?"click":"hover"==t?"mouseover":t,this.step=n,this.guide=n.getGuide()}wI.prototype.add=function(){0===y.indexOf(this.guide.steps,this.step)&&!wI.shouldAttachHandler(this.guide,this.method)||Tu(this.guide)&&!_u(this.guide)||this.setupElementEvent(this.element,this.method)},wI.prototype.remove=function(){this.teardownElementEvent(this.element,this.method)},wI.prototype.setupElementEvent=function(e,t){this.advanceFn||(this.advanceFn=y.compose(y.bind(this.teardownElementEvent,this,e,t),y.bind(this.step.advance,this.step))),wI.attach(this.step,e,t,this.advanceFn)},wI.prototype.teardownElementEvent=function(e,t){I.info("detach onGuideAdvanced",{contexts:["guide"]}),su(e,t,this.advanceFn,!0),this.step.removeTrigger(this)},wI.shouldAttachHandler=function(e,t){return!e.isActivatedByEvent(t)||$0.activates(e)||e.attributes.activation.selector!==e.steps[0].elementPathRule&&!!e.attributes.activation.selector};var CI=null,SI=function(){return ku()?Eu:Au},AI=function(e){return"#_pendo_g_"+e.id},EI=function(e,t){CI=null;var n,i,r,o,e=wa(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(SI()),o=FI(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"}),R("._pendo-guide-container_",n).addClass(o.arrowPosition).css({top:o.content.top,left:o.content.left,width:o.content.width,height:o.content.height}),TI(n[0],o),n[0])},TI=function(e,t){var n=["top","right","bottom","left"],i="_pendo-guide-arrow-",r=i+"border-",o=t.arrowPosition,a=y.chain(n).filter(function(e){return e!==o}).map(function(e){return"border-"+e+"-width:"+v.TOOLTIP_ARROW_SIZE+"px;"}).value().join(""),s=R("div._pendo-guide-arrow_",e).remove().findOrCreate("<div class='_pendo-guide-arrow_'></div>"),d=R("div._pendo-guide-arrow-border_ ",e).remove().findOrCreate("<div class='_pendo-guide-arrow-border_'></div>");y.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;"),R(e).append(s).append(d)},_I=function(e,t){t===undefined&&(t=cu),e.element=Mu(e);var n=e.element;if(!n)return I.info("No element found for step: "+e.id),null;ja(n);var i=EI(n,e);return null===i?null:(i.id=v.getTooltipDivId(e),R(i).appendTo(Ou()),t.push(i),l(i,"mouseover",y.partial(R.addClass,i,"mouseover")),l(i,"mouseout",y.partial(R.removeClass,i,"mouseover")),Pu(n,i),NI(e),n)},xI=null,RI=null;var kI=null,OI={top:"north",left:"east",bottom:"south",right:"west"},NI=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=zc(n=n.concat(y.compact(y.flatten(y.map(t.additionalElements,function(e){return y.toArray(R(e))}))))),o={top:r=t.padding||0,left:r,bottom:r,right:r},s=jc(a=Uc(),i,o),h=i,f=!y.isEqual(h,xI),xI=h,f||(l=a,p=!y.isEqual(l,RI),RI=l,p)||(u=s,c=!y.isEqual(u,kI),kI=u,c))&&(d={"z-index":t.zindex||1e4,position:"fixed"},t.bgColor&&(d["background-color"]=t.bgColor),t.opacity&&(d.opacity=t.opacity),y.each(s,function(e,t){t=OI[t],e=y.extend({},e,d),t=R("div._pendo-guide-tt-region-block_._pendo-region-"+t+"_")[0]||MI(t),R(t).css(e)}))}catch(g){I.info("Failed to add BlockOut ui",{contexts:["error"]})}var u,c,l,p,h,f},MI=function(e){e=R(document.createElement("div")).addClass("_pendo-guide-tt-region-block_").addClass("_pendo-region-"+e+"_");R("body").append(e)},LI=function(e){var t=y.isEqual(e,CI);return CI=e,!t},FI=function(e,t,n,i){var r=v.TOOLTIP_ARROW_SIZE,o={arrow:{border:{}},content:{top:r,left:r}},a=ya();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=PI(o,e,a,i=i||"auto"),o=GI(o,e,a,i),o=DI(o,e,a)},PI=function(e,t,n,i){return e.arrow.hbias=sl(t,n,i),e},GI=function(e,t,n,i){var r;return i&&"DEFAULT"!=i&&"auto"!=i&&(e.arrowPosition=i),e.arrowPosition||(i=t.top-zo(),t=(r=t.left-Zo())+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},DI=function(e,t,n){var i,r,o,a=e.height,s=e.width;return tt()?nt(e,t):("top"==e.arrowPosition||"bottom"==e.arrowPosition?(i=0,"top"==e.arrowPosition?(e.top=t.top+t.height,e.arrow.top=We(9,6)?6:2,i=-1):"bottom"==e.arrowPosition&&(e.top=t.top-a,e.arrow.top=a-v.TOOLTIP_ARROW_SIZE-1,e.arrow.top+=We(9,6)?6:0,e.arrow.top+=8==Be?-1:0,i=1),r=10+v.TOOLTIP_ARROW_SIZE,o=s-3*v.TOOLTIP_ARROW_SIZE-10,e.arrow.hbias==rl?(e.left=t.left+t.width/2-(10+2*v.TOOLTIP_ARROW_SIZE),e.arrow.left=r):e.arrow.hbias==ol?(e.left=t.left-s+t.width/2+(10+2*v.TOOLTIP_ARROW_SIZE),e.arrow.left=o):(e.left=t.left+t.width/2-s/2,e.arrow.left=s/2-v.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==rl?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=We(10,6)?5:0,e.arrow.border.left=e.arrow.left-1):e.arrow.hbias==ol&&(e.left=Math.max(0,t.left-s),e.arrow.left=s-v.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=We(10,6)?5:0,e.arrow.left+=7==Be&&6<=Ze?1:0,e.arrow.border.left=e.arrow.left+1),e.top=t.top-a/2+t.height/2,e.arrow.top=a/2-v.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e)},BI=430,WI=200,$I=15;function UI(e){var t;return"tooltip"===this.type&&((t=this).attributes.height=t.attributes.height||v.TOOLTIP_DEFAULT_HEIGHT,t.attributes.width=t.attributes.width||v.TOOLTIP_DEFAULT_WIDTH,t.attributes.layoutDir=t.attributes.layoutDir||"DEFAULT",this.getTriggers=function(e){var t=this,n=t.element||Mu(t);return!n&&e?[]:(e=(t.advanceMethod||"").split(","),this.triggers=y.map(e,function(e){return new wI(n,e,t)}),this.triggers)},this.removeTrigger=function(e){this.triggers=y.without(this.triggers,e),0===this.triggers.length&&(this.triggers=null)},this.canShow=function(){return!pm(t)&&!!e.canShowOnDevice()&&!t.isShown()&&t.canShowOnPage(Pm())&&fm(t)},this.after("render",function(){_I(this,this.elements)&&(y.each(this.getTriggers(),function(e){e.add()}),dl.attachScrollHandlers(this,this.onscroll))}),this.reposition=function(){var e=this.attributes.width,t=this.attributes.height,n=this.attributes.layoutDir,i=this.guideElement,r=R("._pendo-guide-container_",i),o=wa(this.element),t=FI(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+"_"),R("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),TI(i,t),i.css({top:t.top,left:t.left,height:t.height,width:t.width,position:o.fixed?"fixed":""}),this.dim=t,NI(this)},this.onscroll=function(e){$a(e.element)?(e.reposition(),ma(e.elements[0],"display:block")):ma(e.elements[0],"display:none")},this.teardownElementEvent=function(){y.each(this.triggers,function(e){e.remove()})},this.after("hide",function(){R("._pendo-guide-tt-region-block_").remove(),kI=RI=xI=null})),this}var jI=function(e,t){var n=!!R("._pendo-backdrop_")[0];return y.get(t,"overlayDiv[0]")||(t.overlayDiv=R(document.createElement("div")).addClass("_pendo-backdrop_")),!1==n&&(t.elements.push(t.overlayDiv[0]),t.overlayDiv.appendTo(Ou())),tt()&&t.overlayDiv.css({height:"100%",width:"100%",position:"absolute"}),e&&R(t.overlayDiv).addClass("_pendo-onboarding_"),t.overlayDiv},zI=function(e){var t=e.guideElement,n=v.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}),R("._pendo-guide-container_",t).css({bottom:n,right:n}),tt()&&t.css({position:"absolute"})},ZI=function(e,t){t===undefined&&(t=cu),e.element=Mu(e),zI(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=(jI(n,e),e.guideElement);t.push(n[0]),n.appendTo(Ou())},VI=function(e,t){t===undefined&&(t=cu),e.element=Mu(e),e.guideElement.addClass("_pendo-guide-mobile-lb_");var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=jI(n,e),e=e.guideElement,i=v.TOOLTIP_ARROW_SIZE,i=(e.css({width:"",height:""}),R("._pendo-guide-container_",e).css({bottom:i,right:i}));function r(e){e.preventDefault()}R("._pendo-close-guide_",e).remove().prependTo(i),e.appendTo(Ou()),t.push(e[0]),l(n[0],"touchmove",r),l(e[0],"touchmove",r)};function YI(){var e=this;return/lightbox/i.test(e.type)&&(e.attributes.height=e.attributes.height||v.LB_DEFAULT_HEIGHT,e.attributes.width=e.attributes.width||v.LB_DEFAULT_WIDTH,e.after("render",function(){(ku()?VI:ZI)(e,e.elements)}),e.reposition=function(){ku()||e.guideElement.css({"margin-left":-Math.floor(e.attributes.width/2),"margin-top":-Math.floor(e.attributes.height/2)})}),e}var HI=500,KI="_pendo-guide-banner_";function XI(){var n=this;return"banner"===n.type&&(n.attributes.height=n.attributes.height||HI,n.attributes.position=n.attributes.position||"top",n.after("render",function(){var e=n.guideElement,t=v.TOOLTIP_ARROW_SIZE;e.css({width:""}).addClass(KI).addClass("_pendo-guide-banner-"+n.attributes.position+"_"),Ru()||e.addClass("_pendo-in_"),R("._pendo-guide-container_",e).css({bottom:t,right:t}),n.element=Mu(n),n.elements.push(e[0]),e.appendTo(Ou())})),n}function JI(t){var n=this,e="whatsnew",i="_pendo-guide-whatsnew-seen_",r="active",o=1e3;return n.type===e&&(y.extend(n,{isShown:y.constant(!1),launch:d,onShown:d,render:function(){var e=n.guideElement,t=n.attributes.height;e&&e.html()||(e=R(document.createElement("div")).attr("id",ym(n)).addClass("_pendo-guide-whatsnew_").html(n.getContent()),y.isNumber(t)&&!n.attributes.autoHeight&&e.height(t),n.seenState===r&&e.addClass(i),n.guideElement=e)},seen:s}),y.extend(t,{addToLauncher:function(){var e=n.guideElement;e&&!_a(e[0])&&(R("._pendo-launcher_ #launcher-"+n.guideId).html("").append(e),Ac.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($a(e,/(auto|scroll|hidden)/))return(t=Oa(e))?(t=xa(t),e=xa(e),n=t.top+Math.floor(t.height/3),e.bottom<=t.bottom||e.top<=n):1}}(n.guideElement[0])&&(Em(n.guideId,n.id,E(),e,t.language,{last_updated_at:n.lastUpdatedAt}),n.seenState=r,y.delay(function(){n.guideElement.addClass(i+" out")},y.isNumber(n.attributes.seenDelay)?n.attributes.seenDelay:o))}function d(){}}var qI="_pendo-launcher-searching_",QI="._pendo-launcher-search-box_ input";var ew,tw=function(e){return e&&y.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e&&e.launchMethod&&0<=e.launchMethod.indexOf("launcher")};function nw(){var e;return function(){var e;if(v.guideWidget)return(e=v.guideWidget.data)&&e.enableSearch}()&&(e=R(QI)[0])&&0<(e=e.value).length?(e=gt.call(e),[].concat(y.compact(e.split(" ")))):[]}function iw(e){if(!m.get("disablePrefetch"))return C.all(y.map(e,function(e){return e.fetchContent()}))}function rw(e,t){return I.info("doing search on "+t,{contexts:["launcher","search","guides"]}),e=e||k,t&&0!==t.length?y.chain(e).filter(tw).map(function(e){return e.searchFor(t)}).compact().sortBy(function(e){return y.indexOf(["tag","name","content"],e.field)}).pluck("guide").value():e}var ow=function(){var e=Su();if(Du()){if(v.guideWidget&&v.guideWidget.enabled){var t=fw(e),n=!0;if(v.guideWidget&&y.isFunction(v.guideWidget.update))v.guideWidget.update(t,n)}}else{Aw();t=gu(e),n=gw(fw(t));n!==ew&&A.dispatch("frames/changeGuideList",t),ew=n}},aw="launcher-closed",sw=null,dw=null,uw=!(wI.attach=function(e,t,n,i){if(e){for(var r=wI.handlers=wI.handlers||{},o=r[e.id]=r[e.id]||[],a=0;a<o.length;++a){var s=o[a];t===s[0]&&n===s[1]&&(su(t,n,s[2],!0),o.splice(y.indexOf(o,s),1),a--)}o.push([t,n,i]),su(t,n,i,!0),l(t,n,i,!0)}}),cw="_pendo-launcher-active_",lw=null,pw=function(){return""};function hw(e,t){pw=t}function fw(e){var t,e=y.filter(e||k,tw);return e=e,0===(t=nw()).length?e:(t=y.map(t,y.partial(rw,e)),y.union.apply(y,t))}function gw(e){return Ct(y.map(e,function(e){var t=e.isWhatsNew()?[]:y.pluck(e.steps,"seenState");return{id:e.id,seenState:t}}))}function mw(e){var n=this,t=e.launchType||"badge",i=(y.extend(n,{show:function(){"badge"===t&&R(n.element).css("display: ;")},hide:function(){R(n.element).css("display: none;")},wrap:function(){var e=n.element;{var t;e&&/^img$/i.test(e.nodeName)&&(t=R(document.createElement("div")).addClass(e.className).append(e).appendTo(Ou()),e.className="",n.element=t[0])}},dispose:function(){R.removeNode(n.element)},setActive:function(e){e?R(n.element).addClass(cw):R(n.element).removeClass(cw)}}),e),e=i.position||"bottom-right",r=document.createElement("img");R(n.element=r).addClass("_pendo-launcher-badge_").addClass("_pendo-launcher-badge-"+e+"_"),i.launcherBadgeUrl&&(r.src=pc(i.launcherBadgeUrl)),r.onerror=function(e){I.info("[Agent] Error! Unable to load guide center image "+i.launcherBadgeUrl),I.critical("ERROR in when attempting to render guide center badge image",{imgSrc:i.launcherBadgeUrl})},tt()&&(l(r,"mouseover",function(e){R(r).addClass("_pendo-launcher-badge-active_")}),l(r,"mouseout",function(e){R(r).removeClass("_pendo-launcher-badge-active_")}),R(r).css({position:"absolute"})),Ou().appendChild(r)}function vw(e){function n(){return"element"===e.launchType&&e.launchElement?e.launchElement:"._pendo-launcher-badge_"}function t(e){var e=io(e),t=n();R(e).closest(t).length&&(Rw()?w.write(aw,"yes",864e6):v.guideWidget.position(e),Mw())}v.guideWidget.removeCountBadge=function(){R("._pendo-launcher-whatsnew-count_").remove()},e&&e.elementMatch&&(e.launchElement=e.elementMatch.selection),y.extend(this,{getLauncherTarget:function(){return R(n())[0]},dispose:function(){su(document,"click",t),e&&e.whatsnew&&e.whatsnew.enabled&&R("._pendo-launcher-whatsnew-count_").remove()}}),l(document,"click",t)}function yw(){var n,s="bottom-right",d="bottom-left";return this.update=function(e,t){t=t?e:fw(e),e=gw(t)+Ct(nw());return e!==n&&(n=e,this.updateLauncherContent(t)),Cw(),0<t.length},this.updateLauncherContent=_w,this.guideStatus=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":"not-started"},this.render=function(){var e=this.data||{},t=(sw=new mw(e),e.height||310),n=(e.enableSearch&&(t+=tt()?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,R(document.createElement("div")).addClass("_pendo-launcher_")),r=(dw=i[0],wa(sw.element)),r=FI(r,t,n),o=(i.css({width:n,height:t}),v.TOOLTIP_ARROW_SIZE),n=R(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=Tw(),o=pc(bw(this.template(t))),t=R(document.createElement("div")).addClass("_pendo-guide-content_").html(o).appendTo(n);e.addUISection&&e.addUISection(i[0]),Vg(i[0],function(){Ow(),w.write(aw,"yes",288e5)}),t.on("click",function(e){var t=R(io(e)).closest("._pendo-launcher-item_");t&&t.length&&(t=Iu((t=/^launcher-(.+)$/.exec(gt.call(t.attr("id"))))&&t[1]))&&!t.isWhatsNew()&&(Sm(t.steps[0],"launcher"),Ow(),du(e))}),tt()&&(R("._pendo-launcher-header_",i).css({padding:"10px","margin-right":"10px","margin-left":"10px"}),R("._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");R(this).css(e)}),i.appendTo(Ou()),y.isFunction(this.script)&&this.script(this),e.autoHeight&&e.autoHeight.enabled&&!We(9,6)&&(o=e.autoHeight.offset||100,i.css({height:"calc(100% - "+o+"px)",maxHeight:e.height,minHeight:e.height/2}),R("._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=wa(e),n=FI(e,this.height,this.width),i=R(dw),"badge"===(r=t.launchType||"badge")?(o=t.position,y.indexOf(a=[s,d,"top-left","top-right"],t.position)<0&&(o=s),y.each(a,function(e){i.removeClass("_pendo-launcher-"+e+"_")}),i.addClass("_pendo-launcher-"+o+"_"),n.arrow=n.arrow||{},n.arrowPosition=y.contains([s,d],o)?"bottom":"top",n.arrow.hbias=y.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"}),R("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),DI(n,e,{width:Infinity,height:Infinity}),TI(i[0],n),i.find("._pendo-guide-container_").removeClass("top left bottom right").addClass(n.arrowPosition))},this.toggle=Mw,this}function bw(e){return e=y.isString(e)?e.replace(/\s+(style)=/gi," pendo-style="):e}function Iw(e,t){e.contentHostUrl&&(e.contentHostUrl=(n=e.contentHostUrl,i=location,(r=m.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)),lw=new vw(e);var n,i,r=yw.create(v.guideWidget);return y.isFunction(r.template)||(r.template=e.template?y.template(e.template):pw),r.render(),r.position(lw.getLauncherTarget()),t&&r.toggle(),r}yw.create=function(e){return y.reduce(yw.behaviors,function(e,t){return t.call(e)},e)},yw.behaviors=[Vh,yw,sc.Launcher,function(){var t={text:"",highlight:function(e){return t.text?(e||"").replace(new RegExp(t.text,"gi"),"<strong>$&</strong>"):e},clear:function(){R(QI).each(function(){this.value=""})}};return this.data&&this.data.enableSearch&&this.data.enableSearch&&(this.data.search=t,v.disableGuideCenterContentSearch||this.before("update",iw),this.before("update",function(){t.text=nw().join(" ");var e=R("._pendo-launcher_");t.text?e.addClass(qI):e.removeClass(qI)})),this},function(){var n=this;{var i;n.data&&n.data.onboarding&&(i=n.onboarding=n.onboarding||{},n.before("update",function(e){var e=y.filter(e,wb),t=y.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,R("._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=R(document.createElement("div")).addClass("_pendo-launcher-whatsnew-count_");n.data&&n.data.whatsnew&&n.data.whatsnew.enabled&&(n.before("updateLauncherContent",function(e){e=y.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=(y.each(t,function(e){e.show()}),y.find(t,function(e){if(!e.isReady())return!0;e.addToLauncher()}),y.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,R("span._pendo-launcher-whatsnew-count_").text(n.data.whatsnew.unseenCount))}),n.after("render",function(){Ew()?i.appendTo(this.data.launchElement):(sw.wrap(),i.appendTo(sw.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 ww=function(){dw&&(R.removeNode(dw),dw=null),lw&&(lw.dispose(),lw=null),sw&&(sw.dispose(),sw=null)},Cw=function(){(!Ew()&&(kw()||0<nw().length)?Sw:Aw)()},Sw=function(){sw&&sw.show()},Aw=function(){Ew()||Ow(),sw&&sw.hide()},Ew=function(){return!(!v.guideWidget||!v.guideWidget.data||"element"!==v.guideWidget.data.launchType)},Tw=function(e){var t=dp(),t=y.extend({hidePoweredBy:!1,guides:[],guide:{},step:{},metadata:It(t)},v.guideWidget);return t.data=y.extend({},t.data),e&&(t.guides=e),t};function _w(e){var t=v.guideWidget.template||pw,e=Tw(e),e=R(document.createElement("div")).html(bw(t(e))),n=e.find("._pendo-launcher-guide-listing_"),t=e.find("._pendo-launcher-footer_").html(),e=e.find("._pendo-launcher-search-results_").html();R("._pendo-launcher_ ._pendo-launcher-guide-listing_").each(function(e,t){R(e).html(n.eq(t).html())}),R("._pendo-launcher_ ._pendo-launcher-footer_").html(t),R("._pendo-launcher_ ._pendo-launcher-search-results_").html(e)}var xw=y.compose(Cw,function(e,t){var n,i,r,o;tw(e)&&(n=R("._pendo-launcher_ ._pendo-launcher-guide-listing_")[0])&&(e=(o=R("#launcher-"+e.id)).length?o[0]:(e=e,R(i=document.createElement("div")).addClass("_pendo-launcher-item_"),R(i).attr("id","launcher-"+e.id),(r=document.createElement("a")).href="#",r.innerHTML=e.name,i.appendChild(r),i),o=0<o.length,y.isNumber(t)&&(r=R("._pendo-launcher-item_"))[t]?e.id!=r[t].id&&n.insertBefore(e,r[t]):n.appendChild(e))}),Rw=function(){return R(dw).hasClass(cw)},kw=function(){return 0<R("._pendo-launcher-item_").length},Ow=function(){var e;dw&&(e=R(dw))&&e.hasClass(cw)&&(e.removeClass(cw),sw)&&sw.setActive(!1)},Nw=function(){var e;dw&&(e=R(dw))&&!e.hasClass(cw)&&(e.addClass(cw),sw)&&sw.setActive(!0)},Mw=function(){dw&&!uw&&(Rw()?Ow:Nw)()};var Lw=function(){try{var e=v.guideWidget||{},t=e.data||{},n=t.device||{desktop:!0,mobile:!1,iframe:!1};ww(),!ku()&&!n.desktop||ku()&&!n.mobile||hs()&&!n.iframe||e.enabled&&(Iw(t),Aw())}catch(i){I.critical("ERROR while initializing launcher",{error:i})}},Fw=function(e){e.defaultLauncher=hw,e.toggleLauncher=Mw,e.showLauncher=Nw,e.hideLauncher=Ow,e.removeLauncher=ww,e.initLauncher=Lw,e.createLauncher=Iw,e._addGuideToLauncher=xw,e.launcherToolTipDiv=dw},Pw=function(){Lw()},Gw=function(){var e;(e=v).designer&&(e.designer.createLauncher=Iw,e.designer.removeLauncher=ww,e.designer.addGuideToLauncher=xw,e.designer.updateLauncherContent=_w)},Dw=function(){var e;(e=v).debugging&&(e.debugging.getLauncherGuides=fw)},Bw=function(e){return i=v.guideWidget,e=e,r=i&&i.data,e=y.filter(e,function(e){e=y.first(e.steps);return e&&"launcher"===e.type}),(e=y.first(y.sortBy(e,function(e){return-e.lastUpdatedAt})))&&r&&(e=y.first(e.steps),y.extend(r,y.pick(e,"contentUrl","contentUrlCss","contentUrlJs"),e.attributes),y.defaults(r,{whatsnew:{},knowledgebase:{}}),r.id=e.guideId+e.id),n=(t=i)&&t.data||{},!0!==m.get("preventCodeInjection")&&(n.contentUrlJs||n.contentUrl)?qu.verify(n).then(function(){return vc.load(n)}).then(function(e){return n.template=e.content,y.extend(t,e)}):C.resolve();var t,n,i,r},Ww=function(e,t){Fw(e),t.Events.on("guidesLoaded",Pw),t.Events.on("designerLaunched",Gw),t.Events.on("debuggerLaunched",Dw),t.GuideLoop.addUpdatePhase(ow),tv.push(Bw),t.agentStorage.registry.addLocal(aw)},$w=function(e,t){var n;n=Bw,0<=(n=y.indexOf(tv,n))&&tv.splice(n,1),t.GuideLoop.removeUpdatePhase(ow),t.Events.off("guidesLoaded",Pw),t.Events.off("designerLaunched",Gw),t.Events.off("debuggerLaunched",Dw)};Yv.Extensions.API.addTopic("Launcher",{addBehavior:function(e){yw.behaviors.push(e)}});var Uw,jw,zw,Zw={name:"P1Guides",initialize:function(e,t){var n;jw=t,Uw=e.dom,zw=[UI,YI,XI,JI,Hw,Kw,Yw,Vw],-1<y.indexOf(lc.behaviors,UI)||(n=y.indexOf(lc.behaviors,Tb),lc.behaviors.splice.apply(lc.behaviors,[n,0].concat(zw)),t.Events.guideLoopStopped.on(Aw),e.TOOLTIP_DEFAULT_WIDTH=BI,e.TOOLTIP_DEFAULT_HEIGHT=WI,e.TOOLTIP_ARROW_SIZE=$I,e._showElementGuide=_I,e._createTooltip=EI,e._get_tooltip_dimensions=FI,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e._showLightboxGuide=ZI,Ww(e,t))},teardown:function(){$w(0,jw),jw.Events.guideLoopStopped.off(Aw),zw.forEach(function(e){e=y.indexOf(lc.behaviors,e);0<=e&&lc.behaviors.splice(e,1)}),zw=[]}};function Vw(){var o=this;return"tooltip"!==o.type||o.domJson||(o.checkPlacement=function(){var e,t,n,i,r;r=wa((e=o).element||Mu(e)),NI(e),LI(r)&&(n=e.attributes.height,i=e.attributes.width,t=e.attributes.layoutDir,n=FI(r,n,i,t),(i=R(AI(e))).css({top:n.top,left:n.left,position:r.fixed?"fixed":""}),TI(i,n))}),o}function Yw(){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=v.TOOLTIP_ARROW_SIZE,n=i.guideElement;n&&(e=Uw("._pendo-guide-container_",n),"tooltip"==i.type||tt()&&"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 Hw(e){var t=this;return t.domJson||t.domJsonpUrl||t.after("render",function(){t.guideElement&&t.guideElement.length&&Vg(t.guideElement[0],function(){e.isOnboarding()&&!confirm("Are you sure you want to stop this tutorial?")||am(t)})}),t}function Kw(){var e=this;return e.hideCredits||e.domJson||e.domJsonpUrl||xu(e.guide)||e.after("render",function(){lm(e.guideElement[0])}),e}var Xw,Jw,qw={name:"Branding",initialize:function(e,t){Xw=e,(Jw=t).ConfigReader.get("isPendoFree")&&Jw.Events.on("guideSeen",Qw)},teardown:function(){Jw.Events.off("guideSeen",Qw)},addBranding:e1};function Qw(e){e1(Xw,e)}function e1(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",Jw.getAssetUrl("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))}o1="automation",a1=250,s1=500,u1=10;var t1,n1,i1,r1,o1,a1,s1,d1,u1,c1={name:"ActionAutomation",automationQueue:void(d1=0),initialize:function(e,t){i1=t,t1=(n1=e)._,this.automationQueue=[],t.EventRouter.registerAction(o1,e._.bind(l1,this))},teardown:function(){i1.EventRouter.deregisterAction(o1),this.automationQueue=[]},guideActivity:l1,getAutomationFromGuide:function(i,e){return t1.reduce(e,function(e,t){var n=t1.find(i,function(e){return e.id===t});return n?e.push(n):n1.log("could not find automation for "+t,"debug"),e},[])},getAutomationConfigs:function(e){if(!e||e.length<=0)return[];if(!r1)return[];var t=r1.guide,n=r1.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 n1.log("Automation is already in queue autoId: "+e.id+", guideId: "+t.id,"debug"),[];return n},getTarget:function(e){e=e.target.elementPathRules,e=n1.Sizzle(e,document);return e&&e[0]},getElement:function(n,i){void 0===i&&(i=u1);return new Ft(function(t){return Dt(function(){var e=this.getTarget(n);e&&!e.disabled||i<1?t(e):this.getElement(n,i-1).then(function(e){t(e)})}.bind(this),a1)}.bind(this))},getValue:function(e){return e.value},injectText:function(e,t){"INPUT"===e.tagName&&(n=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"));"TEXTAREA"===e.tagName&&(n=Object.getOwnPropertyDescriptor(window.HTMLTextAreaElement.prototype,"value"));n&&"function"==typeof n.set&&n.set.call(e,t);e.value=t;var n=new InputEvent("input",{bubbles:!0,data:t[t.length-1]}),t=(n.simulated=!0,e.dispatchEvent(n),new InputEvent("change",{bubbles:!0}));t.simulated=!0,e.dispatchEvent(t)},isAutomationInQueue:function(t){return!!t1.find(this.automationQueue,function(e){return t.id===e.id})},popQueue:function(){var e=d1,n=this.automationQueue[0];"autoclick"===n.type&&(e=s1);return Dt(function(){return this.getElement(n,u1).then(function(e){if(e)if(e.disabled)this.automationQueue=[],n1.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":e.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0,cancelable:!0})),e.click()}this.automationQueue.shift(),this.automationQueue.length&&this.popQueue()}else this.automationQueue=[],n1.log("automation target element not found. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug")}.bind(this))}.bind(this),e)},setActive:function(e){r1=e}};function l1(e){var t;e.step&&(this.setActive({guide:e.step.guide,step:e.step}),e.params)&&((e=t1.find(e.params,function(e){return"automationIds"===e.name&&t1.isArray(e.value)&&e.value.length}))?(e=this.getAutomationConfigs(e.value),t=!this.automationQueue.length,this.automationQueue=this.automationQueue.concat(e),t&&this.popQueue()):n1.log("no automation ids were found","debug"))}function p1(e,i){return"undefined"!=typeof Proxy&&y.isFunction(i)?new Proxy(e,{get:function(e,t){if("textContent"===t)return i(e);if("parentNode"===t){var n=e[t];if(e.ownerDocument!==n)return p1(e[t],i)}return y.isFunction(e[t])?function(){return e[t].apply(e,arguments)}:e[t]}}):e}y1=wi(function(n){{var e;g1.eventProperties&&g1.eventProperties.length&&(e=function c(i){var r=m1.ConfigReader.get("eventPropertyMatchParents");var e=b();var t={};var n;for(var o=0;o<g1.eventProperties.length&&b()-e<50;o++){n=g1.eventProperties[o];var a=g1._.any(n.featureRules,function(e){try{var t=C1(r,f1);return t(i,e)}catch(n){return!1}});if(a)for(var s=0;s<n.eventPropertyRules.length&&b()-e<50;s++){var d=n.eventPropertyRules[s];if(!d.name)return;t[d.name]=T1(d,i)}}var u=b()-e;if(50<u){if(r&&f1===g1._.identity&&g1._.isFunction(g1.getText))return g1.log("switching event property collection to fast text implementation"),f1=function(e){return p1(e,function(e){return g1.getText(e,128)})},c(i);E1(50,n)}return t}(n.target),y.pairs(e).forEach(function(e){var t=e[0],e=e[1];n.addEventProperty(t,e)}))}}),b1=wi(function(){var e={};if(h1)return{};var t=m1.ConfigReader.get("eventPropertyConfigurations");if(!t||g1._.isEmpty(t))return{};if(e=function(e){for(var t,n=b(),i={},r=0;r<e.length&&b()-n<50;r++){if(!(t=e[r]).name)return;var o=T1(t);o&&(i["_pendo_"+t.name]=o)}50<b()-n&&E1(50,t);return i}(t),g1._.isEmpty(e))return{};return e});var h1,f1,g1,m1,v1,y1,b1,I1,w1={name:"EventProperties",initialize:function(e,t){m1=t,f1=(g1=e)._.identity,h1=!1,g1.getEventPropertyTarget=_1,g1.previewEventProperty=T1,m1.Events.onClickCaptured.off(S1),m1.Events.onClickCaptured.on(S1),m1.Events.ready.on(A1)},teardown:function(){m1.Events.onClickCaptured.off(S1),m1.Events.ready.off(A1),m1.store.dispatch("location/removeInternalTransforms",v1),v1=[],m1.store.dispatch("location/stopPolling")},collectClickEventProperties:y1,collectEventProperty:T1,collectPageEventProperties:b1,getEventPropertyTarget:_1,addPageEventProperties:A1};function C1(e,n){return e?function(e,t){return 0<g1.dom(n(e)).closest(t).length}:function(e,t){return g1.Sizzle.matchesSelector(e,t)}}function S1(e){y1(e.data[0])}function A1(){var e;e=m1.ConfigReader.get("eventPropertyConfigurations"),v1=e&&!g1._.isEmpty(e)?[new eb("search","AddTo",function(){return b1()})]:[],m1.store.dispatch("location/addInternalTransforms",v1),0<v1.length&&m1.store.dispatch("location/startPolling")}function E1(e,t){g1.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,I.critical(e),t.featureId?g1.eventProperties=[]:h1=!0}function T1(e,t){if(e.path)return t=_1(e,t),g1._.get(t,e.path,undefined)}function _1(e,t){e=e.source||e.selector;if(e&&t){for(var n,i=e,r=t;!n&&r;){try{if((n=g1.Sizzle.matchesSelector(r,i)?r:g1.Sizzle(i,r)[0])&&("password"===n.type||"hidden"===n.type))return}catch(o){return}r=_i.getParent(r)}return n}return e?!(t=g1.Sizzle(e)[0])||"password"!==t.type&&"hidden"!==t.type?t:void 0:window}function x1(){var e;Hh().enabled&&(A.commit("debugger/debuggingEnabled",!0),R1(),R("#pendo-client-debugger").length||(e=m.get("agentDebuggerPluginLoader"),Yv.restartDebugger?Yv.restartDebugger():"function"==typeof e?e():((e=document.createElement("script")).src=K(v).createScriptURL(Do("debugger-plugin.min.js")),R.getBody().appendChild(e)),S.debuggerLaunched.trigger()))}function R1(){I1=I1||{store:A,ConfigReader:m,getState:function(){return JSON.stringify(A.state)},getEventCache:function(){return[].concat(vs)},getAllGuides:function(){return[].concat(k)},getAutoGuides:function(){return yh.sortAndFilter(k,v.autoOrdering)},getBadgeGuides:function(){return y.filter(k,Tu)},getLauncherGuides:function(){return[]},getEventHistory:function(){return[]},getAllFrames:function(){return A.getters["frames/allFrames"]()},getChannelType:function(){return A.getters["frames/channelType"]()},isStepShownInFrame:function(e,t){return A.getters["frames/isShownInFrame"]()(e,t)},setActiveGuides:mu,getBody:R.getBody,isMobileUserAgent:et.isMobileUserAgent,areGuidesDelayed:bv,doesElementMatchContainsRules:mm,getMetadata:dp,isStagingServer:ne,AutoDisplay:yh,isLeader:Du,Events:S},v.debugging=I1}function k1(e){var t;return Kh()?e?t:"debugging already enabled":Du()?((t=Hh()).enabled=!0,w.write(Yh,JSON.stringify(t),null,!0),x1(),e?t:"debugging enabled"):void 0}function O1(){if(!Kh())return"debugging already disabled";A.commit("debugger/debuggingEnabled",!1);var e=Hh();return e.enabled=!1,w.write(Yh,JSON.stringify(e),null,!0),v.debugging=null,delete v.debugging,R("#pendo-client-debugger").remove(),"debugging disabled"}y.extend(function(e){I.debug(e,{contexts:["debug"]})},I1);var N1,M1,L1=function(e,t,n){var i;return t.getters["frames/leaderExists"]()?n.resolve():(i=n.defer(),e.on("leaderChanged",function(){i.resolve()}),i.promise)},F1={name:"DebuggerLauncher",initialize:function(n,e){var i=e.Events,r=e.q;M1=e.store,L1(i,M1,r).then(function(){M1.dispatch("debugger/init"),M1.getters["frames/isLeader"]()&&x1()}),ns("pendo-debugger::launch",function(e,t){e.config.apiKey===n.apiKey&&L1(i,M1,r).then(function(){t.source.postMessage({type:"pendo-debugger::ready",apiKey:n.apiKey},t.origin),!Kh()&&M1.getters["frames/isLeader"]()&&k1(!1)})}),window.addEventListener&&window.addEventListener("securitypolicyviolation",P1);(N1=n).isDebuggingEnabled=function(e){return Kh(e=void 0===e?!1:e)},n.enableDebugging=k1,n.disableDebugging=O1,n.addDebuggingFunctions=R1},teardown:function(){is("pendo-debugger::launch"),window.removeEventListener("securitypolicyviolation",P1),N1.debugging&&N1.debugging.teardown&&N1.debugging.teardown();O1()}};function P1(e){var t=e.blockedURI,n=e.documentURI,i=e.originalPolicy,e=e.violatedDirective;t&&-1!==t.indexOf("pendo")&&M1.dispatch("debugger/onCspError",{blockedURI:t,documentURI:n,originalPolicy:i,violatedDirective:e})}H1=[],K1=100,X1=4,J1=500,q1=["TEXTAREA","INPUT"],Q1=!(Y1=0),eC={},tC="previous_page_loads",nC="errorClickLogging",rC=!(iC=1500);var G1,D1,B1,W1,$1,U1,j1,z1,Z1,V1,Y1,H1,K1,X1,J1,q1,Q1,eC,tC,nC,iC,rC,oC={name:"FrustrationEvent",initialize:function(e,t){$1=(V1=e)._,Y1=0,H1=[],U1=[],eC={},rC=(G1=t).ConfigReader.get(nC),this.detachErrorEvent=G1.attachEvent(window,"error",mC,!0),this.detachDocumentEvents=function(){for(var e=Ut(Ut([],["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],!0),["visibilitychange","selectionchange","scroll"],!1),t=[],n=0;n<e.length;n++)switch(e[n]){case"selectionchange":t.push(G1.attachEvent(window,e[n],dC,!0));break;case"visibilitychange":t.push(G1.attachEvent(window,e[n],function(){sC(250)},!0));break;default:t.push(G1.attachEvent(window,e[n],sC,!0))}return t}(),G1.Events.on("eventCaptured",yC),G1.agentStorage.registry.addSession(tC),V1.sniffer.MutationObserver&&(e=_t("MutationObserver"),(j1=new e(uC)).observe(V1.dom.getBody(),{childList:!0,attributes:!0,subtree:!0}))},teardown:function(){G1.Events.off("eventCaptured",yC),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}j1&&j1.disconnect()},addErrorClickLog:hC,getErrorEventTarget:gC,checkErrorEvent:mC,observeDOMMutation:uC};function aC(t){void 0===t&&(t="undefined"==typeof performance||"function"!=typeof performance.now?Infinity:performance.now()),(H1=$1.filter(H1,function(e){return t-e.timestamp<=K1})).length&&Dt(aC,K1)}function sC(e){void 0===e&&(e=J1),Q1=!1,$1.each(eC,function(e){clearTimeout(e)}),eC={},Dt(function(){Q1=!0},e)}function dC(){var e=document.getSelection().toString();(z1||e.length)&&(sC(),z1=!!e.length)}function uC(e){e.length&&sC()}function cC(e){return e&&!(e instanceof HTMLScriptElement&&e instanceof HTMLLinkElement&&e instanceof HTMLBodyElement)}function lC(e){return e&&cC(e.element)}function pC(e,t){var n=e.frustrationTypes,n=void 0===n?[]:n;$1.contains(n,t)||(n.push(t),e.frustrationTypes=n)}function hC(e,t){var n=t.detail,n=void 0===n?{}:n,n=(lC(n)&&n.error?n.error:t).message;n&&n.length>iC&&(n=n.substring(0,iC)),e.errorClickLog=n}function fC(e,t){var n,i,r=t.target&&"A"===t.target.tagName&&t.target.hasAttribute("href"),o=t.target&&!$1.contains(q1,t.target.tagName);Q1&&!z1&&o&&!r&&(n=e,i=Dt(function(){delete eC[i],pC(n,"deadClick")},J1),eC[i]=i),9<H1.length&&H1.pop(),H1.unshift({target:t.target,activeElement:document.activeElement,browser_time:e.browser_time,timestamp:t.timeStamp}),Dt(aC,K1),$1.each(U1,function(e){mC(e)}),D1?(o=t,e.browser_time-D1<=1e3&&Math.abs(B1-o.x)<=30&&Math.abs(W1-o.y)<=30?Y1++:(Y1=1,B1=t.x,W1=t.y),D1=e.browser_time,4===Y1&&(D1=null,pC(e,"rageClick"))):(D1=e.browser_time,B1=t.x,W1=t.y,Y1=1)}function gC(e){if(cC(e.target))return lC(e=void 0===(e=e.detail)?{}:e)?e.element:cC(document.activeElement)?document.activeElement:void 0}function mC(t){var n,i,e,r=gC(t);r&&((n=$1.find(H1,function(e){return(e.target===r||e.activeElement===r)&&t.timeStamp-e.timestamp<K1}))?(e=$1.find(V1.buffers.events,i=function(e){return e.browser_time===n.browser_time&&"click"===e.type})||$1.find(V1.buffers.silos,function(e){return $1.find(e,i)}))&&(pC(e,"errorClick"),rC)&&hC(e,t):($1.contains(U1,t)||U1.push(t),U1.length>X1&&U1.pop()))}function vC(e){var t;null!=(t=G1.sessionStorage.getItem(tC))&&0<t.length&&(t=JSON.parse(t)),Z1=$1.isArray(t)?t:[],function(e){var t,n;if(!(Z1.length<2))return t=Z1[0],n=Z1[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)&&pC(e,"uTurn"),2===Z1.length&&Z1.shift(),Z1.push({url:e.url,browser_time:e.browser_time}),t=Z1,G1.sessionStorage.setItem(tC,JSON.stringify(t))}function yC(e){var t=e.data[0],e=e.data[1],e=("click"===t.type&&e&&fC(t,e),"load"===t.type&&vC(t),"submit"!==t.type&&"change"!==t.type||sC(),$1.has(e,"target")&&$1.contains(q1,e.target.tagName));"focus"===t.type&&e&&sC()}AC=[];var bC,IC,wC,CC,SC,AC,EC={name:"EmbeddedGuides",activeEmbeddedGuides:SC=[],initialize:function(e,t){bC=t,CC=(IC=e)._,function(e){e.getEmbeddedGuides=LC,e.getActiveEmbeddedGuides=FC}(e),wC=function(e){var r=e._,o=e.store;return{show:function(e){var t=r.first(this.steps),n=r.map(this.steps,function(e){return e.id}),n=r.pick(o.state.guideState.steps,n),i=null;return r.isEmpty(n)||(i=r.max(n,function(e){return e.time||0})),(this.nextStep(i)||t).show(e)},isShownInThisFrame:function(){return r.any(this.steps,function(e){return e.isRendered()||e.isLocked()})}}}({_:CC,store:bC.store,globalPendo:IC}),bC.Events.on("deliverablesLoaded",xC),bC.Events.on("guideLoopStopped",_C),bC.Events.on("guideListChanged",MC),bC.GuideLoop.addUpdatePhase(TC),bC.guides.addProcessor(RC),bC.GuideActivity.registerGuideResolver(NC),this.removeResizeEvent=e.attachEvent(window,"resize",OC)},teardown:function(){xC(),bC.Events.off("deliverablesLoaded",xC),bC.Events.off("guideLoopStopped",_C),bC.Events.off("guideListChanged",MC),bC.GuideLoop.removeUpdatePhase(TC),bC.guides.removeProcessor(RC),bC.GuideActivity.removeGuideResolver(NC),this.removeResizeEvent&&this.removeResizeEvent()}};function TC(){var o=IC.Sizzle;CC.forEach(SC,function(e){var t,n=null,i=CC.get(e,"attributes.embedConfig.selector"),i=CC.first(o(i)),r=e.isShownInThisFrame();i&&r&&(t="#pendo-guide-container-".concat(CC.get(kC(e),"id")),n=CC.first(o(t,i))),!r&&i&&((t=e).shouldShowSnoozedGuide()||t.shouldRepeatGuide()||CC.all(t.steps,function(e){return e.shouldRepeat()||!e.isSnoozed()&&"dismissed"!==e.seenState}))?e.show("embed"):!r||i&&n||e.hide()})}function _C(){CC.forEach(SC,function(e){e.isShownInThisFrame()&&e.hide()})}function xC(){AC=CC.toArray(SC),bC.guides.removeDisplayableGuides("embeddedGuides"),SC.length=0}function RC(t){var e;return!(e=t)||!e.launchMethod||"embed"!==e.launchMethod||(CC.some(SC,function(e){return e.id===t.id})||SC.push(t),bC.store.getters["preview/isInPreviewMode"]())}function kC(e){return e?CC.find(e.steps,function(e){return e.isShown()}):null}function OC(){CC.forEach(SC,function(e){e=kC(e);e&&!IC.ignoreResize&&e.redraw()})}function NC(e){if(SC.length){var t,n="pendo-base-";if(CC.isString(e.id)&&0===e.id.indexOf(n)){var i=e.id.substring(n.length);if((n=CC.find(SC,function(e){t=CC.find(e.steps,function(e){if(e.id===i)return e});return!!t}))&&t)return{guide:n,step:t};return}else return CC.isObject(e.parentElem)?NC(e.parentElem):null}return null}function MC(){CC.each(AC,function(t){var e=CC.findIndex(SC,function(e){return e.id===t.id});-1===e&&t.isShownInThisFrame()?t.hide():t.isFrameProxy||(SC[e]=t)}),AC.length=0,bC.guides.registerDisplayableGuides("embeddedGuides",SC),CC.map(SC,function(e){Object.assign(e,wC),CC.map(e.steps,function(e){var t=function(e){var n=e.pluginApi;e._;return this._onShown||Object.defineProperty(this,"_onShown",{value:this.onShown,writable:!1,configurable:!1}),this._onShown?{onShown:function(e){var t=!this.lastSeenAt||!!n.ConfigReader.get("enableAllEmbeddedGuideEvents");return this._onShown(e,t)}}:null}.call(e,{pluginApi:bC,_:CC});Object.assign(e,t)})})}function LC(){return EC.activeEmbeddedGuides}function FC(){return EC.activeEmbeddedGuides.filter(function(e){return e.isShown()})}var PC="sessionId";function GC(){this.name="SessionManager"}GC.prototype.initialize=function(e,t){this.api=t,this.pendo=e,this.subscriptions=[this.api.attachEvent(this.api.Events,"ready",y.bind(this.ready,this)),this.api.attachEvent(this.api.Events,"eventCaptured",y.bind(this.eventCaptured,this))],this.inactivityDuration=this.api.ConfigReader.get("inactivityDuration",18e5),this.api.agentStorage.registry.addLocal(PC),this.api.agentStorage.registry.addLocal("sessionLastUserInteractionEvent"),this.api.store.getters["frames/isReady"]()&&this.ready()},GC.prototype.teardown=function(){y.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0},GC.prototype.ready=function(){this.isReady||(this.sessionId(),this.isReady=!0)},GC.prototype.isExpired=function(e){var t=y.get(this._sessionInfo,"timestamp");return!!(t&&e-t>this.inactivityDuration)},GC.prototype.eventCaptured=function(e){var t;e&&e.data&&e.data.length&&(e=e.data[0],this.ready(),t=e.browser_time||(new Date).getTime(),this.isExpired(t)&&(this.clearSessionInfo(),this.api.Events.sessionChanged.trigger()),this.storeLastInteractionEventInformation(t),e.sessionId=this.sessionId())},GC.prototype.sessionId=function(e){var t;return void 0===e&&(e=this.pendo.randomString(16)),this._sessionInfo||((t=this.api.agentStorage.read(PC))||(t=JSON.stringify({sessionId:e,timestamp:(new Date).getTime()}),this.api.agentStorage.write(PC,t)),this._sessionInfo=JSON.parse(t)),this._sessionInfo.sessionId},GC.prototype.clearSessionInfo=function(){delete this._sessionInfo,this.api.agentStorage.clear(PC),this.sessionId()},GC.prototype.storeLastInteractionEventInformation=function(e){this._sessionInfo.timestamp=e,this.api.agentStorage.write(PC,JSON.stringify(this._sessionInfo))};var DC=new GC;function BC(){this.name="SegmentFlags"}BC.prototype.initialize=function(e,t){var n="requestSegmentFlags",e=(this.pendo=e,(this.api=t).ConfigReader);e.addOption(n,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],!1),this.segmentFlagsEnabled=e.get(n),this.segmentFlagsEnabled&&(this.mostRecentSegmentsRequest=null,this.pendo.segmentsPayload=this.pendo._.bind(this.segmentsPayload,this),this.handleMetadataChange=this.pendo._.debounce(this.pendo._.bind(this.requestSegmentFlags,this),50),this.handleReadyBound=this.pendo._.bind(this.handleReady,this),this.api.Events.ready.on(this.handleReadyBound),this.api.Events.metadata.on(this.handleMetadataChange),this.api.Events.identify.on(this.handleMetadataChange))},BC.prototype.teardown=function(){this.segmentFlagsEnabled&&(this.pendo.segmentsPayload=this.pendo._.noop,this.handleMetadataChange.cancel(),this.api.Events.ready.off(this.handleReadyBound),this.api.Events.metadata.off(this.handleMetadataChange),this.api.Events.identify.off(this.handleMetadataChange))},BC.prototype.handleReady=function(){this.ready=!0,this.requestSegmentFlags()},BC.prototype.requestSegmentFlags=function(){if(this.ready){var e,t=this.pendo._.uniqueId(),n=(this.mostRecentSegmentsRequest=t,{visitorId:this.pendo.get_visitor_id(),accountId:this.pendo.get_account_id(),metadata:this.pendo.getSerializedMetadata(),url:this.pendo.url.get()}),i=this.pendo.compress(n),t={id:t,jzb:i,v:this.pendo.VERSION,ct:(new Date).getTime()},n=(this.api.agent.treatAsAdoptPartner()&&n.accountId&&"ACCOUNT-UNIQUE-ID"!==n.accountId&&(t.acc=this.api.util.base64EncodeString(n.accountId)),"script"===this.pendo.LOADER?"segmentflag.js":"segmentflag.json"),n=this.api.transmit.buildBaseDataUrl(n,this.pendo.apiKey,t),r=this.api.agent.getJwtInfoCopy();try{n.length>this.api.constants.URL_MAX_LENGTH||!this.pendo._.isEmpty(r)?(delete t.jzb,n=this.api.transmit.buildBaseDataUrl("segmentflag.json",this.pendo.apiKey,t),e=this.pendo._.extend({events:i},r),this.postLoad(n,e)):"script"===this.pendo.LOADER?this.scriptLoad(n):this.getLoad(n)}catch(o){this.api.log.error("Failed to load segment flags",{error:o})}}},BC.prototype.segmentsPayload=function(e){!this.mostRecentSegmentsRequest||this.pendo._.isString(e.id)&&e.id!==this.mostRecentSegmentsRequest||(this.pendo.segmentFlags=e.segmentFlags,this.api.log.info("successfully loaded segment flags"),this.mostRecentSegmentsRequest=null)},BC.prototype.scriptLoad=function(e){this.pendo.loadResource(e,this.pendo._.noop)},BC.prototype.getLoad=function(n){return Wt(this,void 0,void 0,function(){var t;return $t(this,function(e){switch(e.label){case 0:return[4,this.pendo.ajax.get(n)];case 1:return t=e.sent(),this.segmentsPayload(t.data),[2]}})})},BC.prototype.postLoad=function(n,i){return Wt(this,void 0,void 0,function(){var t;return $t(this,function(e){switch(e.label){case 0:return[4,this.pendo.ajax.postJSON(n,i)];case 1:return t=e.sent(),this.segmentsPayload(t.data),[2]}})})};var WC=new BC,$C=["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"],UC=new RegExp("(".concat($C.join("|"),")"),"i"),jC=["facebook","twitter","linkedin","instagram","pinterest","tiktok","snapchat"],zC=new RegExp("(".concat(jC.join("|"),")"),"i"),ZC=["youtube","vimeo","dailymotion","twitch","bilibili","youku","tencent","iqiyi","peertube","rutube","metacafe","veoh","break","vidyard","wistia","brightcove","jwplayer","kaltura","sproutvideo"],VC=new RegExp("(".concat(ZC.join("|"),")"),"i"),YC=new RegExp("(".concat(["amazon","ebay","walmart","etsy","shopify","shop","target","bestbuy","costco"].join("|"),")"),"i"),HC=new RegExp("(".concat(["google performance max","microsoft audience network","facebook audience network"].join("|"),")"),"i");function KC(e,t){return"self"!==t&&"direct"!==t&&null!==t.match(e)}var XC=new RegExp("^(.*cp.*|ppc|retargeting)$"),JC=new RegExp("(.*email.*|.*e_mail.*|.*e mail.*|.*e-mail.*)","i"),qC=[["Email",function(e){var t=e.source,n=e.medium;return"direct"===e.referrer&&(null!==n.match(JC)||null!==t.match(JC)||"newsletter"===n)}],["Paid Search",function(e){var t=e.source,n=e.medium,i=e.gclid,e=e._;return i||"paid-search"===n||n.match(XC)&&e.contains($C,t)}],["Organic Search",function(e){var t=e.source,n=e.medium,i=e.referrer,e=e._;return"organic"===n&&e.contains($C,t)||!n&&KC(UC,i)}],["Display",function(e){var t=e.medium;return e._.contains(["display","cpm","banner","interstitial","expandable","programmatic"],t)}],["Paid Social",function(e){var t=e.source,n=e.medium,i=e.fbclid,e=e._;return i||"paid-social"===n||n.match(XC)&&e.contains(jC,t)}],["Organic Social",function(e){var t=e.source,n=e.medium,i=e.referrer,e=e._;return!n&&KC(zC,i)||"social"===n||e.contains(jC,t)}],["Paid Shopping",function(e){e=e.medium;return"shopping"==e||"paid-shopping"==e}],["Organic Shopping",function(e){var t=e.medium,e=e.referrer;return"organic-shopping"===t||!t&&KC(YC,e)}],["Paid Video",function(e){var t=e.medium,n=e.source,e=e._;return"paid-video"==t||!t.match(XC)&&e.contains(ZC,n)}],["Organic Video",function(e){var t=e.medium,e=e.referrer;return"video"===t||!t&&KC(VC,e)}],["Affiliates",function(e){e=e.medium;return"affiliate"===e||"partner"===e}],["Audio",function(e){e=e.medium;return"podcast"===e||"audio"===e}],["Cross-network",function(e){var t=e.source;return"cross-network"===e.medium||t.match(HC)}],["Other Advertising",function(e){e=e.medium;return"cpv"===e||"cpa"===e}],["SMS",function(e){var t=e.source,e=e.medium;return"sms"===t||"sms"===e}],["Mobile Push Notifications",function(e){var t=e.source,e=e.medium;return e.endsWith("push")||0<=e.indexOf("mobile")||0<=e.indexOf("notification")||"firebase"===t}],["Referral",function(e){var t=e.medium,e=e.referrer;return"referral"===t||!!e&&"self"!==e&&"direct"!==e}],["Paid Other",function(e){var t=e.medium;return e.source,e._,"paid-other"==t||t.match(XC)}],["Other",function(e){return!!e.medium}],["Direct",function(e){var t=e.source;return!e.medium&&!t}]],QC="utm",eS="enableFullUtmReferrer";function tS(){this.name="WebAnalytics"}tS.prototype.initialize=function(e,t){this.pendo=e;var n=(this.api=t).ConfigReader,n=(n.addOption(eS,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),e._.bind),n=(this.subscriptions=[t.attachEvent(t.Events,"eventCaptured",n(this.addUtmToEvent,this)),t.attachEvent(t.Events,"sessionChanged",n(this.sessionChanged,this))],this.loadParameters(t.agentStorage));n&&!e._.isEmpty(n)||(n=this.extractParameters(window.location.href,document.referrer)),this.api.agentStorage.registry.addLocal(QC),this.storeParameters(n,t.agentStorage)},tS.prototype.extractParameters=function(e,t){var n=new Ci(e).hostname,n=(i=(n={referrer:t,currentHost:n}).referrer,n=n.currentHost,i&&""!==i?(r="self",(i=new Ci(i).hostname)!==n?null==i?void 0:i.toLowerCase():r):"direct");if("self"!==n){var i=this.api.util.parseUrl(e);if(!i)return{};var r=i.query,e=r.utm_source,i=r.utm_medium,o=r.utm_campaign,a=r.utm_term,s=r.utm_content,d=r.gclid,u=r.fbclid;if(this.pendo._.compact([e,i,o,a,s,d]).length)return(e={source:e,medium:i,campaign:o,term:a,content:s}).channel=this.calculateUtmChannel({referrerValue:n,utm:e,gclid:d,fbclid:u}),t&&this.api.ConfigReader.get(eS)?e.referrer=t:"direct"!==n&&(e.referrer=n),e}return{}},tS.prototype.calculateUtmChannel=function(e){var t=e.referrerValue,n=e.utm,i=e.gclid,e=e.fbclid,r=(null==(r=n.medium)?void 0:r.toLowerCase())||"",n=(null==(n=n.source)?void 0:n.toLowerCase())||"",o={_:this.pendo._,referrer:t,source:n,medium:r,gclid:i,fbclid:e},t=this.pendo._.find(qC,function(e){return e[1](o)});return t?t[0]:"Direct"},tS.prototype.storeParameters=function(e,t){0<this.pendo._.size(e)&&(this.utm=e,t.write(QC,JSON.stringify(e)))},tS.prototype.loadParameters=function(e){e=e.read(QC);return e?JSON.parse(e):null},tS.prototype.teardown=function(){for(var e=0,t=this.subscriptions;e<t.length;e++)(0,t[e])();this.subscriptions.length=0,this.utm=null},tS.prototype.addUtmToEvent=function(e){this.utm&&(e.data[0].utm=this.utm)},tS.prototype.sessionChanged=function(){this.utm=null;var e=this.api.agentStorage,t=(e.clear(QC),this.extractParameters(window.location.href,document.referrer));this.storeParameters(t,e)};var nS=new tS,iS={children:[],props:{"class":"_pendo-step-container","data-layout":"tooltipBlank",id:"pendo-base"},type:"div"},rS={css:[],props:{scoped:"scoped",type:"text/css"},type:"style"},oS={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"},aS={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"},sS={children:[],props:{"class":"_pendo-text-paragraph",style:{}},type:"div"};function dS(e,t){return{content:t,props:{id:"text-".concat(e),"class":"_pendo-text-plain",style:{color:"gray",margin:0}},type:"p"}}function uS(e){var e=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement,t=document.createElement("div");return t.style.marginRight="5px",t.appendChild(e),t}var cS='\n<svg xmlns="http://www.w3.org/2000/svg" \n width="10" height="10" fill="none"\n stroke="gray" stroke-linecap="round" stroke-linejoin="round" \n stroke-width="2" viewBox="0 0 10 10">\n <line x1="2" y1="5" x2="8" y2="5"/>\n</svg>\n',lS='\n<svg xmlns="http://www.w3.org/2000/svg" \n width="10" height="10" viewBox="0 0 10 10" \n fill="none" stroke="green" stroke-width="2" \n stroke-linecap="round" stroke-linejoin="round" \n class="feather feather-check">\n <polyline points="2 5 4 7 8 2"></polyline>\n</svg>\n',pS='\n<svg xmlns="http://www.w3.org/2000/svg" \n width="10" height="10" viewBox="0 0 10 10" \n fill="none" stroke="red" stroke-width="2" \n stroke-linecap="round" stroke-linejoin="round" \n class="feather feather-x">\n <line x1="2" y1="2" x2="8" y2="8"/>\n <line x1="8" y1="2" x2="2" y2="8"/>\n</svg>\n',hS={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()@:%_+.~#?&/=]*)$/},fS={"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])$/},gS={email:function(e){return hS.emailRegex.test(e)},phone:function(e){return hS.phoneRegex.test(e)},date:function(e,t){return(fS[(t=void 0===t?{}:t).format]||fS["MM/DD/YYYY"]).test(e)},url:function(e){return hS.urlRegex.test(e)},number:function(e,t){var n,i,r,o;return""!==e&&(n=(t=void 0===t?{}:t).min,i=t.max,t=t.allowDecimal,r=mS(n),o=mS(i),r&&(n=Number(n)),o&&(i=Number(i)),e=Number(e),!isNaN(e))&&!(r&&e<n||o&&i<e||!t&&e%1!=0)},characterLength:function(e,t){var n=(t=void 0===t?{}:t).min,t=t.max,i=mS(n),r=mS(t);return i&&(n=Number(n)),r&&(t=Number(t)),!(i&&e.length<n||r&&e.length>t)}};function mS(e){return e!==undefined&&null!==e&&""!==e}CS=null;var vS,yS,bS,c,p,IS,wS,CS,SS={name:"FormValidation",validationGuides:wS=[],debouncedValidate:bS,initialize:function(e,t){var n;t.ConfigReader.get("formValidation")&&(vS=e,yS=t,bS=y.debounce(FS,100),yS.Events.on("deliverablesLoaded",ES),yS.Events.on("guideLoopStopped",TS),yS.Events.on("guideListChanged",_S),yS.GuideLoop.addUpdatePhase(RS),yS.guides.addProcessor(kS),n=!(null==vS||!vS.designer),IS=setInterval(function(){n&&(AS(),clearInterval(IS),IS=null)},1e3),e.attachEvent(document,"focusin",NS),e.attachEvent(document,"focusout",MS),e.attachEvent(document,"input",bS))},teardown:AS,appendValidationStyles:OS,getActiveStep:function(){return c},setActiveStep:function(e){c=e},setActiveField:function(e){p=e},getActiveField:function(){return p},getActiveFieldIsValid:function(){return CS},setActiveFieldIsValid:function(e){CS=e},getValidationGuides:function(){return wS},setValidationGuides:function(e){wS=e},initializeFormValidation:_S,clearAllValidationGuides:ES,extractValidationGuides:kS,applyFormBehaviors:xS,checkValidationFieldVisibility:RS,hideValidationTooltip:TS,focusField:NS,blurField:MS,findFieldByElement:LS,validateInput:FS,validateField:PS,getRuleText:GS,setValidationStyle:DS};function AS(){yS&&(IS&&(clearInterval(IS),IS=null),yS.Events.off("deliverablesLoaded",ES),yS.Events.off("guideLoopStopped",TS),yS.Events.off("guideListChanged",_S),yS.GuideLoop.removeUpdatePhase(RS),yS.guides.removeProcessor(kS),vS.detachEvent(document,"focusin",NS),vS.detachEvent(document,"focusout",MS),vS.detachEvent(document,"input",bS),bS.cancel(),wS=[],CS=p=c=null)}function ES(){yS.guides.removeDisplayableGuides("validationGuides"),wS=[]}function TS(){vS.detachEvent(document,"focusin",NS),p&&(CS=p=null),c&&(c.hide({validationHidden:!0}),c=null)}function _S(){OS(),yS.guides.registerDisplayableGuides("validationGuides",wS),xS()}function xS(){y.map(wS,function(e){y.map(e.steps,function(e){var t=function(){var t,n,i;return this.attributes?(n=(t=this).show,i=t.hide,{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)}}):(I.info("buildFormStepBehaviors called with invalid context"),{})}.call(e);Object.assign(e,t)})})}function RS(){var e;!p||(e=vS.Sizzle(c.elementPathRule)[0])&&vS.isElementVisible(e)||(CS=p=null,c.hide({validationHidden:!0}),c=null),((null==(e=qr.get(document).bubbleEvents)?void 0:e.focusin)||[]).some(function(e){return e.handler===NS})||vS.attachEvent(document,"focusin",NS)}function kS(t){return"form"!==t.launchMethod||y.some(wS,function(e){return e.id===t.id})||wS.push(t),!0}function OS(){var e=document.createElement("style");e.innerHTML='\n input[data-pendo-field-valid="false"] {\n border-color: red !important;\n outline-color: red !important;\n }\n ',document.head.appendChild(e)}function NS(e){var t,n,i,r,o,a,s,e=e.target;"INPUT"===e.tagName&&(t=LS(e))&&c&&(c.attributes.validationHidden=!1,c.domJson||(a=p.rules[0],s=dS("context-".concat(p.id),p.context),a=null!=a&&a.type?function(e,t){return t=dS(e,t),{props:{id:"rule-".concat(e),"class":"text-row",style:{display:"flex","align-items":"center"}},children:[t],type:"div"}}(a.id,a.ruleText):null,0!==(s=[s,a].filter(Boolean)).length&&(a=ge(iS),n=ge(rS),i=ge(oS),r=ge(aS),o=ge(sS),a.children.push(n,i),i.children.push(r),r.children.push(o),o.children=s,c.domJson=a)),c.show("api"),(i=document.getElementById("rule-".concat(null==(n=null==p?void 0:p.rules[0])?void 0:n.id)))&&null!=(r=null==p?void 0:p.rules[0])&&r.type&&(o=null===p.isValid?uS(cS):uS(CS?lS:pS),i.insertBefore(o,i.firstChild)),""!==t.value)&&PS(e)}function MS(e){e=e.target;p&&c&&(vS.Sizzle.matchesSelector(e,null==c?void 0:c.elementPathRule)&&DS(e,CS),c.hide({validationHidden:!0}),null===p.isValid&&!1===CS&&(GS().props.style.color="red"),p.isValid=CS,CS=c=p=null)}function LS(t){c&&c.hide({validationHidden:!0}),CS=p=c=null;for(var e=0,n=wS;e<n.length;e++){var i=n[e],i=y.find(i.steps,function(e){return vS.Sizzle.matchesSelector(t,e.elementPathRule)});if(i)return p=null==(i=(c=i).attributes)?void 0:i.field,CS=p.isValid,p}return null}function FS(e){var t,e=e.target;vS.Sizzle.matchesSelector(e,null==c?void 0:c.elementPathRule)?PS(e):(t=LS(e))&&(CS=t.isValid,PS(e))}function PS(e){var t,n,i=null==p?void 0:p.rules[0];i&&(n=gS[i.type])&&(i=n(e.value,i.options),CS=!!i,n=GS(),null===p.isValid?(n.props.style.color=i?"green":"gray",t=uS(i?lS:cS)):(n.props.style.color=i?"green":"red",t=uS(i?lS:pS),DS(e,i)),c.hide({stepHidden:!0}),c.show("api"),n=document.getElementById("rule-".concat(p.rules[0].id)))&&n.insertBefore(t,n.firstChild)}function GS(){var e=p.rules[0].id;return Nc("text-".concat(e),c.domJson)}function DS(e,t){!1===t?e.setAttribute("data-pendo-field-valid",!1):e.removeAttribute("data-pendo-field-valid")}function BS(i){var e,t;(e=i).getVersion=ct,e.isReady=oy,e.pageLoad=xd,e.getVisitorId=gi,e.getAccountId=mi,e.clearSession=bi,e.VERSION=dt,e.LOADER=ut,e.flushNow=u(function(e){return Rs(0,e)}),e.teardown=wi(fy),e.initGuides=u(vv),e.loadGuides=u(ev),e.findGuideByName=u(wu),e.hideGuides=u(Xg),e.onGuideDismissed=u(am),e.goToStep=dm,e.onGuideAdvanced=u(um),e.onGuidePrevious=u(cm),e.onGuideSnoozed=sm,e.startGuides=u(Nh),e.stopGuides=u(Mh),e.defaultCssUrl=u(Wg()),e.getActiveGuides=hu,e.getActiveGuide=Nv,e.guideSeenTimeoutLength=pb.getGuideSeenTimeoutLength(),e.guidesPayload=Zm,e.areGuidesDisabled=u(yv),e.setGuidesDisabled=u(Iv),e.buildNodeFromJSON=F.buildNodeFromJSON,e.flexElement=u(F.flexElement),e.GuideFactory=u(cc),e.dom=R,e.getText=Cy,e.attachEvent=u(l),e.detactEvent=u(su),e.frames={setFrameVisibility:Bu},e.log=Fy,e.enableLogging=ky,e.disableLogging=Oy,e.setActiveContexts=$y,e.showLogHistory=By,e.getLoggedContexts=Wy,e.isDebuggingEnabled=y.noop,e.enableDebugging=y.noop,e.disableDebugging=y.noop,e.addDebuggingFunctions=y.noop,e.stopSendingEvents=u(Es.lock),e.startSendingEvents=u(Es.unlock),e.isSendingEvents=u(da),e.fromByteArray=G.uint8ToBase64,e.events=u(ju),e.track=u(jy),e.validateInstall=zy,e.validateNativeMethods=Zy,e.validateBuiltInGlobals=Vy,e.validateUrl=Yy,e.validateEnvironment=Xy,e.doesExist=fe,e.generate_unique_id=ti,e.TEMP_PREFIX=Xn,e.SIZE_UNIQUE_ID=Jn,e.defaultLauncher=y.noop,e.toggleLauncher=y.noop,e.showLauncher=y.noop,e.hideLauncher=y.noop,e.removeLauncher=y.noop,e.identify=op,e.get_visitor_id=gi,e.set_visitor_id=function(e){op(e)},e.get_account_id=mi,e.set_account_id=function(e){op(E(),e)},e.getSerializedMetadata=up,e.compress=yt,e.squeezeAndCompress=yt,e.randomElement=St,e.randomString=At,e.toUTF8Array=ft,e.getNumberFromText=Ot,e._addCredits=u(lm),e.getCurrentUrl=Pm,e.getNormalizedUrl=Pm,e.testUrlForStep=u(Dm),e.showGuideByName=u(Bm),e.showGuideById=u(Wm),e.designerv2=zf,e.P2AutoLaunch=u(ug),e.BuildingBlocks=u(Jy),e.onConnectMessage=y.noop,e.buffers=Es,e.guideDev=u(vy),e.badgesShown=u(lu),e.get_pendo_cookie=un,e.DEFAULT_EXPIRE_LEN=ln,e.set_pendo_cookie=hn,e.loadResource=Ka,e.loadWatcher=Xa,e.messageLogger=Ja,e.messageReceiver=qa,e.messageValidator=Qa,e.MESSAGE_TYPES=ts,e.messageDispatcher=rs,e.moduleRegistry=os,e.addModule=as,e.hasModule=u(ss),e.findModuleByName=u(ds),e.modulesWaiting=us,e.loadModules=cs,e.moduleLoader=ls,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=et,e.url=Lo,e.location=ub,e.Sizzle=Xr,e._=y,e.ajax=oo,e.Zlib=bt,e.guideContent=u(vc.guideContent),e.receiveDomStructureJson=u(vc.receiveDomStructureJson),e.addExtension=mp,(t=i).SHADOW_STYLE="",y.extend(t,{_showElementGuide:y.noop,flushEventCache:vb(null,"flushEventCache",gb),HOST:ko,MAX_LENGTH:ws,MAX_NUM_EVENTS:Is,_createToolTip:y.noop,_get_tooltip_dimensions:y.noop,_isOldIE:u(vb(We,"_isOldIE",fb)),_logMessage:vb(ta,"_logMessage",fb),_sendEvent:vb(null,"_sendEvent",gb),_sendGuideEvent:vb(null,"_sendGuideEvent",gb),_stopEvents:!1,_storeInCache:vb(null,"_storeInCache",gb),_writeEventImgTag:vb(null,"_writeEventImgTag",gb),_writeImgTag:u(vb(ia,"_writeImgTag",fb)),getUA:vb(je,"getUA",fb),ifDebugThen:vb(null,"ifDebugThen",gb),send_event:u(vb(js,"send_event","has changed to pendo.cache.createEvent")),wire_page:vb(iu,"wire_page",fb),messageOriginTester:vb(null,"messageOriginTester",gb),findGuideBy:u(bu),findGuideById:u(Iu),findStepInGuide:u(Cu),_updateGuideStepStatus:u(Hg),_addCloseButton:u(Vg),initialize:uy,getEventCache:u(lv),processEventCache:u(cv),isGuideShown:u(Zg),_getNextStepInMultistep:u(Fm),attachEvent:l,detachEvent:su,updateOptions:rp,createLauncher:y.constant({}),initLauncher:y.noop,_addGuideToLauncher:y.noop,launcherToolTipDiv:null,isAnonymousVisitor:function(e){return void 0===e&&(e=t.get_visitor_id()),ii(e)},DEFAULT_VISITOR_ID:ai,shouldIdentityChange:y.constant(!1),read:w.read,write:w.write,_delete_cookie:w.clear,_set_cookie:an,_get_cookie:on,get_cookie_key:dn,ENV:it,eventCache:u(vs),_getOpacityStyles:vb(null,"_getOpacityStyles",fb),setStyle:ma,_createGuideEvent:u(Om),seenGuide:u(Em),dismissedGuide:u(Tm),advancedGuide:u(_m),seenTime:0,placeBadge:u(rf),isBadge:u(Tu),showPreview:u(vb(Im,"showPreview",fb)),removeAllBadges:u(of),tellMaster:ps,DEFAULT_TIMER_LENGTH:_h,registerMessageHandler:ns,_get_offset:u(wa),_shouldAutoDisplayGuide:y.constant(!1),removeBadge:af,_showLightboxGuide:y.noop,_showGuide:u(Sm),getElementForGuideStep:u(Mu),isElementVisible:$a,getTooltipDivId:u(ym),setupWatchOnTooltip:u(bm),letters:"",charset:"",detectMaster:hs,listenToMaster:vb(null,"listenToMaster",gb),start:uu,SEND_INTERVAL:bs,stageGuideEvent:u(Lm),startStagedTimer:Mm,isURLValid:Ss,getURL:As,_get_screen_dim:u(ya),_isInViewport:u(ba),_getCss3Prop:fa,waitThenStartGuides:u(xh),guidesProcessingThreadHandle:Th,getMode:y.constant("default")}),y.each(["identify","updateOptions","pageLoad","track"],function(t){var n=i[t];i[t]=function(){try{oy()?n.apply(this,arguments):re(i,t,arguments)}catch(e){I.critical(e)}}})}var WS,$S,US,jS=ce(),zS=(zS=q(zS=jS)?{}:window,v=zS.pendo=zS.pendo||{});return WS=zS,ue(jS=jS),it=le("env")||it,rt=le("server")||rt,ot=le("assetHost")||ot,at=le("assetPath")||at,st=le("designerEnv")||st,st=lt()?it+"_ext":it,dt=qe+"_"+st,!q(jS)&&(st=jS,jS=WS,US=Kh(),ae(st,jS,US)||se(st,jS,US))||WS&&WS.VERSION||(m.get("disablePendo")?($S=WS,y.each(["initialize","identify","updateOptions","pageLoad","track"],function(e){$S[e]=function(){console.log("Pendo is currently disabled.")}})):((st=A).registerModule("debugger",c0),st.registerModule("errorLog",rr),st.registerModule("frames",e),st.registerModule("guideUpdate",s),st.registerModule("guideState",i),st.registerModule("healthCheck",i0),st.registerModule("location",lr),st.registerModule("monitoring",r0),st.registerModule("metadata",o0),st.registerModule("preview",u0),Po(),cc.behaviors=[Vh,bb,sc.Guide,Ib,Cb,Sb,Ab],lc.behaviors=[Vh,kb,Eb,yc,sc.Step,Tb,Ob],yc.reset(),A.dispatch("frames/init"),Fy.init(),_i.wrapSizzle(Xr),Xr.intercept(Gu),BS(WS),I.addEventListener("log",y.partial(A.dispatch,"errorLog/write")),Hv(w0),Hv($0),Hv(tI),Hv(hI),Hv(Zw),Hv(qw),Hv(c1),Hv(w1),Hv(pb),Hv(F1),Hv(oC),Hv(EC),Hv(DC),Hv(WC),Hv(nS),Hv(SS),jS=WS._q,US=hy,st=uu,m.get("disableAutoInitialize")||(jS=(jS=ly(jS))&&1<jS.length?jS[1]:{},y.get(jS,sy)||m.get(sy)?US():dy.push(st(US))))),zS}var TextCapture=function(){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:function(e){var t=r.util.trim.call(e);return d()||i._.has(o,t)||i._.has(o,e)},hasWhitelist:function(){return 0<i._.size(o)},serializer:a};function a(e,t,n){return t===n&&(TextCapture.isEnabled()||!TextCapture.isEnabled()&&TextCapture.hasWhitelist())&&(t=i.getText(n,128),TextCapture.isTextCapturable(t))&&(e.txt=TextCapture.hasWhitelist()?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}}(),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}var substitutionRegex="\\{(?:\\s?)([^.\\s]?visitor|account|parentAccount)\\.([^|\\s/]*)(?:\\s?\\|\\s?([^}]+|[\\/s]+))?(?:\\s?\\/\\s?){1}\\}",skipStepString="{skipStep:* *(auto|\\d+)\\/}",goToMiddleString="(?!0)(\\d+)",goToString="({goto-".concat(goToMiddleString,"\\/})");function lookupGuideButtons(e,t){return void 0===t&&(t=[]),"button"===e.type&&e.actions&&t.push(e),e.children&&e.children.forEach(function(e){lookupGuideButtons(e,t)}),t}function removeMarkdownSyntax(e,t,n){var i;window.pendo.dom(e).hasClass("_pendo-nps-open-text-poll-question")&&(e.innerHTML=null==(i=e.innerHTML)?void 0:i.replace(t,n)),"div"===e.localName||("button"!==e.localName&&"label"!==e.localName&&"a"!==e.localName||(e.textContent=e.textContent.replace(t,n)),0<e.children.length)||(window.pendo.dom(e).hasClass("_pendo-simple-text")||window.pendo.dom(e).hasClass("_pendo-text-plain")||window.pendo.dom(e).hasClass("_pendo-text-list-item")||window.pendo.dom(e).hasClass("_pendo-text-link"))&&(e.textContent=e.textContent.replace(t,n))}var guideMarkdownUtil={substitutionRegex:substitutionRegex,skipStepString:skipStepString,goToString:goToString,lookupGuideButtons:lookupGuideButtons,removeMarkdownSyntax:removeMarkdownSyntax},goToRegex=new RegExp(guideMarkdownUtil.goToString),PollBranching={name:"PollBranching",script:function(r,o){var a=!1,e=initialBranchingSetup(r);!e||1<window.pendo._.size(e)||this.on("beforeAdvance",function(e){var t,n=0===r.guideElement.find("[branching] .pendo-radio:checked").length,i=r.guideElement.find("[branching] .pendo-radio:checked + label")[0];i&&(t=window.pendo._.isNull(i.getAttribute("goToStep"))),a||n||t||(a=!0,branchingGoToStep(e,r,o))})},test:function(e){e=null==(e=e.guideElement)?void 0:e.find('._pendo-multi-choice-poll-question:contains("{branching/}")');return!window.pendo._.isUndefined(e)&&window.pendo._.size(e)},designerListener:function(){var e=window.pendo.dom.getBody();function i(e,t){return'<svg id="pendo-ps-branching-svg" viewBox="0 0 24 24" fill="none"\n style="margin-left: 5px;\n height:'.concat(t,"; width:").concat(t,'; display:inline; vertical-align:middle;" xmlns="http://www.w3.org/2000/svg">\n <g stroke-width="0"></g>\n <g stroke-linecap="round" stroke-linejoin="round"></g>\n <g> <circle cx="4" cy="7" r="2" stroke="').concat(e,'"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></circle>\n <circle cx="20" cy="7" r="2" stroke="').concat(e,'"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></circle>\n <circle cx="20" cy="17" r="2" stroke="').concat(e,'" stroke-width="2"\n stroke-linecap="round" stroke-linejoin="round"></circle>\n <path d="M18 7H6" stroke="').concat(e,'" stroke-width="2"\n stroke-linecap="round" stroke-linejoin="round"></path>\n <path d="M7 7V7C8.65685 7 10 8.34315 10 10V15C10 16.1046 10.8954 17 12 17H18"\n stroke="').concat(e,'" stroke-width="2" stroke-linecap="round"\n stroke-linejoin="round"></path> </g></svg>')}new MutationObserver(function(e){e.forEach(function(e){var t=window.pendo._.isFunction(null==(t=e.addedNodes[0])?void 0:t.querySelector);e.addedNodes.length&&t&&e.addedNodes[0].querySelector("._pendo-multi-choice-poll-select-border")&&window.pendo._.size(window.pendo.dom('._pendo-multi-choice-poll-question:contains("{branching/}")'))&&window.pendo.dom('._pendo-multi-choice-poll-question:contains("{branching/}")').each(function(e,t){window.pendo._.each(window.pendo.dom("#".concat(e.id," *")),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{branching/}","")}),window.pendo.dom("#".concat(e.id," p")).css({display:"inline-block !important"}).append(i("#999","20px")).attr({title:"Custom Branching Added"});var n=e.getAttribute("data-pendo-poll-id"),n=(window.pendo.dom("._pendo-multi-choice-poll-question[data-pendo-poll-id=".concat(n,"]"))[0]&&window.pendo.dom("._pendo-multi-choice-poll-question[data-pendo-poll-id=".concat(n,"]"))[0].textContent.trim(),window.pendo.dom("label[for*=".concat(n,"]")));window.pendo._.size(n)&&window.pendo._.forEach(n,function(e){var t;goToRegex.test(e.textContent)&&(t=goToRegex.exec(e.textContent)[2],guideMarkdownUtil.removeMarkdownSyntax(e,goToRegex,""),window.pendo.dom(e).append(i("#999","14px")).attr({title:"Branching to step ".concat(t)}))}),0<t&&(window.pendo.dom(e).append('<div style="text-align:lrft; font-size: 14px; color: red;\n font-style: italic; margin-top: 0px;" class="branching-wrapper"\n name="'.concat(e.dataset.pendoPollId,'">\n * Branching Error: Multiple branching polls not supported</div>')),window.pendo.dom("#".concat(e.id," #pendo-ps-branching-svg")).remove(),window.pendo.dom("#".concat(e.id," p")).css({display:"inline-block !important"}).append(i("red","20px")).attr({title:"Unsupported Branching configuration"}))})})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}};function initialBranchingSetup(n){var e=n.guideElement.find('._pendo-multi-choice-poll-question:contains("{branching/}")');return window.pendo._.forEach(e,function(e){var t=e.getAttribute("data-pendo-poll-id"),e=(window.pendo._.each(n.guideElement.find("#".concat(e.id," *")),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{branching/}","")}),n.guideElement.find("label[for*=".concat(t,"]"))),e=(window.pendo._.forEach(e,function(e){var t,n;window.pendo._.isNull(goToRegex.exec(e.textContent))||(t=goToRegex.exec(e.textContent)[1],n=goToRegex.exec(e.textContent)[2],e.setAttribute("goToStep",n),guideMarkdownUtil.removeMarkdownSyntax(e,t,""))}),n.guideElement.find("[data-pendo-poll-id=".concat(t,"]._pendo-multi-choice-poll-select-border")));e&&e[0].setAttribute("branching","")}),e}function branchingGoToStep(e,t,n){var i=null==(i=t.guideElement.find("[branching] input.pendo-radio[data-pendo-poll-id]:checked")[0])?void 0:i.id,i=t.guideElement.find('label[for="'.concat(i,'"]'))[0],t=(null==i?void 0:i.getAttribute("goToStep"))-1;t<0||(i={destinationStepId:n.steps[t].id},window.pendo.goToStep(i),e.cancel=!0)}var containerSelector='[id^="pendo-guide-container"]',MetadataSubstitution={name:"MetadataSubstitution",script:function(e,t){var n=findSubstitutableElements();e.domJson&&findSubstitutableUrlsInJson(e.domJson,n),window.pendo._.size(n)&&(window.pendo._.each(n,function(e){processPlaceholder(e)}),updateGuideContainer("pendo-g-".concat(e.id),e.guideElement))},designerListener:function(){var e=window.pendo.dom.getBody();new MutationObserver(function(e){e.forEach(function(e){var t,n;e.addedNodes.length&&document.querySelector(containerSelector)&&(e=findSubstitutableElements(),t=null==(t=window.pendo.designerv2.currentlyPreviewedGuide)?void 0:t.steps[0])&&(n=t.buildingBlocks,window.pendo._.isUndefined(n)||findSubstitutableUrlsInJson(n,e),window.pendo._.size(e))&&(window.pendo._.each(e,function(e){window.pendo._.isUndefined(e)||processPlaceholder(e)}),updateGuideContainer("pendo-g-".concat(t.id),t.guideElement))})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}};function processPlaceholder(e){for(var t=e.data,n=e.target,i=new RegExp(guideMarkdownUtil.substitutionRegex);r=matchPlaceholder(e,i);){var r=i.exec(r);substituteMetadataByTarget(t,n,getSubstitueValue(r),r)}}function matchPlaceholder(e,t){return("textContent"===e.target?e.data[e.target]:decodeURI(e.data[e.target])).match(t)}function getSubstitueValue(e){if(!window.pendo._.isUndefined(e[1])&&!window.pendo._.isUndefined(e[2])){var t=e[1],n=e[2],e=e[3];if(!window.pendo._.isUndefined(t)&&!window.pendo._.isUndefined(n))return window.pendo._.get(window.pendo.getSerializedMetadata(),"".concat(t,".").concat(n))||e||""}}function substituteMetadataByTarget(e,t,n,i){e[t]="href"===t||"value"===t?decodeURI(e[t]).replace(i[0],window.encodeURI(n)):e[t].replace(i[0],n)}function updateGuideContainer(e,t){window.pendo.designer&&!window.pendo._.size(window.pendo.dom("#pendo-ps-substitution-icon"))&&window.pendo.dom(containerSelector).append(substitutionIcon("#999","30px")),window.pendo.flexElement(window.pendo.dom(containerSelector)),window.pendo.BuildingBlocks.BuildingBlockGuides.recalculateGuideHeight(e,t)}function findSubstitutableUrlsInJson(e,t){void 0===t&&(t=[]);var n=new RegExp(guideMarkdownUtil.substitutionRegex);return"url"!==e.name&&"href"!==e.name||!e.value||n.test(e.value)&&t.push({data:e,target:"value"}),e.properties&&"href_link_block"===e.id&&window.pendo._.each(e.properties,function(e){findSubstitutableUrlsInJson(e,t)}),e.views&&window.pendo._.each(e.views,function(e){findSubstitutableUrlsInJson(e,t)}),e.parameters&&window.pendo._.each(e.parameters,function(e){findSubstitutableUrlsInJson(e,t)}),e.actions&&window.pendo._.each(e.actions,function(e){findSubstitutableUrlsInJson(e,t)}),e.children&&window.pendo._.each(e.children,function(e){findSubstitutableUrlsInJson(e,t)}),t}function findSubstitutableElements(){var e=window.pendo.dom("".concat(containerSelector," *:not(.pendo-inline-ui)"));return window.pendo._.chain(e).filter(function(e){var t=new RegExp(guideMarkdownUtil.substitutionRegex);return"a"===e.localName?t.test(decodeURI(e.href))||t.test(e.textContent):"div"!==e.localName?"button"===e.localName||"label"===e.localName?t.test(e.textContent):0<e.children.length?void 0:window.pendo.dom(e).hasClass("_pendo-simple-text")||window.pendo.dom(e).hasClass("_pendo-text-plain")||window.pendo.dom(e).hasClass("_pendo-text-list-item")||window.pendo.dom(e).hasClass("_pendo-text-link")?t.test(e.textContent):t.test(e.textContent)||t.test(decodeURI(e.href)):void 0}).map(function(e){return"a"===e.localName&&window.pendo.dom(e).hasClass("_pendo-text-link")?[{data:e,target:"href"},{data:e,target:"textContent"}]:"a"===e.localName?{data:e,target:"href"}:"button"===e.localName||window.pendo.dom(e).hasClass("_pendo-simple-text")||window.pendo.dom(e).hasClass("_pendo-text-plain")||window.pendo.dom(e).hasClass("_pendo-text-list-item")||window.pendo.dom(e).hasClass("_pendo-text-link")?{data:e,target:"textContent"}:void 0}).flatten().value()}function substitutionIcon(e,t){return'<div title="Metadata Substitution added">\n <svg id="pendo-ps-substitution-icon" viewBox="0 0 24 24"\n preserveAspectRatio="xMidYMid meet"\n height='.concat(t," width=").concat(t,' title="Metadata Substitution"\n style="bottom:5px; right:10px; position: absolute;"\n fill="none" xmlns="http://www.w3.org/2000/svg" stroke="').concat(e,'"\n transform="matrix(1, 0, 0, 1, 0, 0)rotate(0)">\n <g stroke-width="0"></g>\n <g stroke-linecap="round" stroke-linejoin="round"\n stroke="').concat(e,'" stroke-width="0.528"></g>\n <g><path fill-rule="evenodd" clip-rule="evenodd"\n d="M5 5.5C4.17157 5.5 3.5 6.17157 3.5 7V10C3.5 10.8284\n 4.17157 11.5 5 11.5H8C8.82843 11.5 9.5 10.8284 9.5\n 10V9H17V11C17 11.2761 17.2239 11.5 17.5 11.5C17.7761\n 11.5 18 11.2761 18 11V8.5C18 8.22386 17.7761 8 17.5\n 8H9.5V7C9.5 6.17157 8.82843 5.5 8 5.5H5ZM8.5 7C8.5\n 6.72386 8.27614 6.5 8 6.5H5C4.72386 6.5 4.5 6.72386\n 4.5 7V10C4.5 10.2761 4.72386 10.5 5 10.5H8C8.27614\n 10.5 8.5 10.2761 8.5 10V7Z" fill="').concat(e,'"></path>\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M7 13C7 12.7239 6.77614 12.5 6.5 12.5C6.22386 12.5\n 6 12.7239 6 13V15.5C6 15.7761 6.22386 16 6.5\n 16H14.5V17C14.5 17.8284 15.1716 18.5 16 18.5H19C19.8284\n 18.5 20.5 17.8284 20.5 17V14C20.5 13.1716 19.8284 12.5\n 19 12.5H16C15.1716 12.5 14.5 13.1716 14.5\n 14V15H7V13ZM15.5 17C15.5 17.2761 15.7239 17.5 16\n 17.5H19C19.2761 17.5 19.5 17.2761 19.5 17V14C19.5\n 13.7239 19.2761 13.5 19 13.5H16C15.7239 13.5 15.5\n 13.7239 15.5 14V17Z" fill="').concat(e,'"></path> </g></svg></div>')}var requiredElement='<span class="_pendo-required-indicator" style="color:red; font-style:italic;" title="Question is required"> *</span>',RequiredQuestions={name:"RequiredQuestions",script:function(i,e){var t,n=[],r=null==(t=guideMarkdownUtil.lookupGuideButtons(i.domJson))?void 0:t.filter(function(e){return e.actions.find(function(e){return"submitPoll"===e.action||"submitPollAndGoToStep"===e.action})}),o=function(){var e=i.guideElement.find("[class*=-poll-question]:contains({required/})");e&&window.pendo._.forEach(e,function(e){var t=e.getAttribute("data-pendo-poll-id");n.push(t),window.pendo._.each(i.guideElement.find("#".concat(e.id," *, #").concat(e.id)),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{required/}","")}),i.guideElement.find("#".concat(e.id," p")).append(requiredElement)});window.pendo._.size(n)&&(0===window.pendo.dom("#_pendo-guide-required-disabled").length&&window.pendo.dom("head").append("<style type=text/css\n id=_pendo-guide-required-disabled>\n ._pendo-button:disabled, ._pendo-buttons[disabled] {\n border: 1px solid #999999 !important;\n background-color: #cccccc !important;\n color: #666666 !important;\n pointer-events: none !important;\n }\n </style>"),s(r));return e}();function a(e){var t,n;0!==e.length&&(t=!0,(t=(n=(n=[]).concat(window.pendo._.map(e,function(e){e=e.getAttribute("data-pendo-poll-id"),e=i.guideElement.find("\n [data-pendo-poll-id=".concat(e,"] textarea,\n [data-pendo-poll-id=").concat(e,"] input:text,\n [data-pendo-poll-id=").concat(e,"] select,\n [data-pendo-poll-id=").concat(e,"] input:radio:checked"));if(e&&e.length&&e[0].value)return e[0].value}))).includes(undefined)||window.pendo._.isEmpty(n)?!1:t)?r.forEach(function(e){i.guideElement.find("#".concat(e.props.id))[0]&&(i.guideElement.find("#".concat(e.props.id))[0].disabled=!1,i.guideElement.find("#".concat(e.props.id))[0].parentElement.title="")}):s(r))}function s(e){e.forEach(function(e){i.guideElement.find("#".concat(e.props.id))[0]&&(i.guideElement.find("#".concat(e.props.id))[0].disabled=!0,i.guideElement.find("#".concat(e.props.id))[0].parentElement.title="Please complete all required questions.")})}o&&(window.pendo._.forEach(o,function(e){e.classList.contains("_pendo-open-text-poll-question")&&(e=e.dataset.pendoPollId,i.attachEvent(i.guideElement.find("[data-pendo-poll-id=".concat(e,"]._pendo-open-text-poll-input"))[0],"input",function(){a(o)}))}),i.attachEvent(i.guideElement.find("#pendo-guide-container")[0],"click",function(e){e.target.classList.contains("_pendo-button")||a(o)}))},test:function(e){e=null==(e=e.guideElement)?void 0:e.find("[class*=-poll-question]:contains({required/})");return!window.pendo._.isUndefined(e)&&window.pendo._.size(e)},designerListener:function(){var e=window.pendo.dom.getBody();new MutationObserver(function(e){e.forEach(function(e){var t=window.pendo._.isFunction(null==(t=e.addedNodes[0])?void 0:t.querySelectorAll);e.addedNodes.length&&t&&(t=e.addedNodes[0].querySelectorAll("[class*=-poll-wrapper], [class*=-poll-select-border]"))&&t.forEach(function(e){var t,e=e.classList.contains("_pendo-open-text-poll-wrapper")||e.classList.contains("_pendo-number-scale-poll-wrapper")?e.getAttribute("name"):e.getAttribute("data-pendo-poll-id");(t=window.pendo.dom('[class*="-poll-question"][data-pendo-poll-id='.concat(e,"]"))[0]?window.pendo.dom('[class*="-poll-question"][data-pendo-poll-id='.concat(e,"]"))[0].textContent:t).includes("{required/}")&&(window.pendo._.each(window.pendo.dom("[data-pendo-poll-id=".concat(e,"]:not(.pendo-radio)")),function(e){window.pendo._.each(window.pendo.dom("#".concat(e.id,' *:not(".pendo-radio"), #').concat(e.id,':not(".pendo-radio")')),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{required/}","")})}),(0!==window.pendo.dom(".bb-text[data-pendo-poll-id=".concat(e,"] p")).length||0!==window.pendo.dom(".bb-text[data-pendo-poll-id=".concat(e,"] li")).length?(window.pendo.dom(".bb-text[data-pendo-poll-id=".concat(e,"] p")).append(requiredElement),window.pendo.dom(".bb-text[data-pendo-poll-id=".concat(e,"] li"))):window.pendo.dom(".bb-text[data-pendo-poll-id=".concat(e,"]"))).append(requiredElement))})})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}},skipStepRegex=new RegExp(guideMarkdownUtil.skipStepString),SkipToEligibleStep={script:function(i,r){var n=!1,o=!1,e=i.guideElement.find("#pendo-guide-container"),t=e.attr("aria-label"),a=skipStepRegex.exec(t)[1];function s(e,t){var n=d(r.getPositionOfStep(i),"next",e),e=d(r.getPositionOfStep(i)-2,"previous",e);return n&&"next"==t&&window.pendo.goToStep({destinationStepId:n}),e&&"previous"==t&&window.pendo.goToStep({destinationStepId:e}),"next"===t?n:e}function d(e,t,n){var i;if(!window.pendo._.isNaN(e))return(i=r.steps[e])&&!i.canShow()?"auto"!==n?r.steps[n-1]:"next"===t?d(e+1,"next",n):d(e-1,"previous",n):i}e&&e.attr({"aria-label":e.attr("aria-label").replace(skipStepRegex,"")}),this.on("beforeAdvance",function(e){var t;r.getPositionOfStep(i)===r.steps.length||window.pendo._.isUndefined(a)||(t=s(a,"next"),!n&&a&&(n=!0,window.pendo.goToStep({destinationStepId:t.id}),e.cancel=!0))}),this.on("beforePrevious",function(e){var t;window.pendo._.isUndefined(a)||(t=s(a,"previous"),!o&&a&&(o=!0,window.pendo.goToStep({destinationStepId:t.id}),e.cancel=!0))})},test:function(e){e=null==(e=e.guideElement)?void 0:e.find("#pendo-guide-container").attr("aria-label");return!window.pendo._.isUndefined(e)&&(null==e?void 0:e.includes("{skipStep"))},designerListener:function(){var e=window.pendo.dom.getBody();new MutationObserver(function(e){e.forEach(function(e){var t=window.pendo._.isFunction(null==(t=e.addedNodes[0])?void 0:t.querySelectorAll);e.addedNodes.length&&t&&(e=null==(t=e.addedNodes[0].querySelectorAll("#pendo-guide-container")[0])?void 0:t.getAttribute("aria-label"))&&e.match(skipStepRegex)&&(t=e.match(skipStepRegex)[0],e.replace(t,""),window.pendo.dom("#_pendoSkipIcon").length||window.pendo.dom("#pendo-guide-container").append((t="#999",'<div title="Skip step added"><svg id="_pendoSkipIcon" version="1.0" xmlns="http://www.w3.org/2000/svg"\n width="'.concat(e="30px",'" height="').concat(e,'" viewBox="0 0 512.000000 512.000000"\n preserveAspectRatio="xMidYMid meet" style="bottom:5px; right:10px; position: absolute;">\n <g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)"\n fill="').concat(t,'" stroke="none">\n <path d="M2185 4469 c-363 -38 -739 -186 -1034 -407 -95 -71 -273 -243 -357\n -343 -205 -246 -364 -577 -429 -897 -25 -121 -45 -288 -45 -373 l0 -49 160 0\n 160 0 0 48 c0 26 5 88 10 137 68 593 417 1103 940 1374 1100 570 2418 -137\n 2560 -1374 5 -49 10 -111 10 -137 l0 -47 -155 -3 -155 -3 235 -235 235 -236\n 235 236 235 235 -155 3 -155 3 0 48 c0 27 -5 95 -10 152 -100 989 -878 1767\n -1869 1868 -117 12 -298 12 -416 0z"/>\n <path d="M320 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M960 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M1600 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M2240 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M2880 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M3840 1440 l0 -160 480 0 480 0 0 160 0 160 -480 0 -480 0 0 -160z"/>\n </g></svg></div>\n ').trim())))})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}},GuideMarkdown=function(){var r,o;return{name:"GuideMarkdown",initialize:function(e,t){var n=(o=t).ConfigReader,i="guideMarkdown";n.addOption(i,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),n.get(i)&&(r=[PollBranching,MetadataSubstitution,RequiredQuestions,SkipToEligibleStep],e.designer||r.forEach(function(e){t.GlobalRuntime.addGlobalScript(e)}),t.Events.on("designerLaunched",a))},teardown:function(){o.Events.off("designerLaunched",a),r.forEach(function(e){o.GlobalRuntime.removeGlobalScript(e)})}};function a(){r.forEach(function(e){e.designerListener&&e.designerListener()})}}(),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$1(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$1,throttle$2=getDefaultExportFromCjs(throttle$1),isArray$8=Array.isArray,isArray_1=isArray$8,isArray$7=isArray_1,isSymbol$2=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$1(e,t){var n;return!isArray$7(e)&&(!("number"!=(n=typeof e)&&"symbol"!=n&&"boolean"!=n&&null!=e&&!isSymbol$2(e))||reIsPlainProp.test(e)||!reIsDeepProp.test(e)||null!=t&&e in Object(t))}var _isKey=isKey$1,baseGetTag$4=_baseGetTag,isObject$4=isObject_1,asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(e){return!!isObject$4(e)&&((e=baseGetTag$4(e))==funcTag$2||e==genTag$1||e==asyncTag||e==proxyTag)}var isFunction_1=isFunction$2,isFunction$3=getDefaultExportFromCjs(isFunction_1),root$6=_root,coreJsData$1=_root["__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$9(e,t){e=getValue(e,t);return baseIsNative(e)?e:undefined}var _getNative=getNative$9,getNative$8=_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$7=_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$6=_getNative,defineProperty$2=function(){try{var e=getNative$6(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$5=_getNative,root$4=_root,DataView$2=_getNative(_root,"DataView"),_DataView=DataView$2,getNative$4=_getNative,root$3=_root,Promise$2=_getNative(_root,"Promise"),_Promise=Promise$2,getNative$3=_getNative,root$2=_root,Set$2=_getNative(_root,"Set"),_Set=Set$2,getNative$2=_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$2(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)}};var VocPortal=function(){var r,h;return{name:"VocPortal",initialize:function(e,t){r=e;e=(h=t).EventTracer.addTracerIds({}).frameId;this.removeResizeEvent=r.attachEvent(window,"resize",f),startListening("VocPortal",e,n,function(){return"*"})},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 f(){var e=document.getElementById("pendo-resource-center-container"),e=r.dom(e);h.sizeElements(e)}function t(e,t){var n=r.getSerializedMetadata(),i=!!r.designer||h.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=e.data.width,o=r.value,a=r.unit,s=r.isImportant,d=e.data.height,u=d.value,c=d.unit,l=d.isImportant;"number"==typeof o&&"number"==typeof u&&((t=["px","%","vh","vw"]).includes(a)&&t.includes(c))&&(n="".concat(o).concat(a).concat(s?" !important":""),i="".concat(u).concat(c).concat(l?" !important":""),document.getElementById("pendo-resource-center-container").appendChild(document.createElement("style")).innerHTML='#pendo-resource-center-container:has(iframe[src*="portal"][src*="mode=rc"]) {\n width: '.concat(n,";\n height: ").concat(i,";\n ._pendo-step-container-size {\n width: ").concat(n,";\n height: ").concat(i,";\n }\n }"),f())}catch(p){h.log.error("Error while adjusting RC module",p)}}}();function isFeedbackOn(e){return e.ConfigReader.get("pendoFeedback")}function isUnsupportedIE(e){return!e.sniffer.isMinimumIEVersion(10)}var Feedback=function(){var a,s,i="feedback_notification_count",d="",u="",c="",r="",o=!1,l="",p=!1,h="feedback_ping_sent",G=36e5,f={feedbackIframe:"feedback-widget_iframe",feedbackTrigger:"feedback-trigger",feedbackWidget:"feedback-widget",feedbackOverlay:"feedback-overlay",feedbackTriggerButton:"feedback-trigger-button",feedbackStyles:"pendo-feedback-styles",feedbackFrameStyles:"pendo-feedback-visible-buttons-styles"};return{name:"Feedback",initialize:function(e,t){s=t;var n={ping:I,init:F,initialized:j,loginAndRedirect:A,openFeedback:k,initializeFeedbackOnce:S,isFeedbackLoaded:$,convertPendoToFeedbackOptions:P,isUnsupportedIE:(a=e)._.partial(isUnsupportedIE,t),removeFeedbackWidget:z};return e.feedback=n,e.getFeedbackSettings=Z,t.Events.identify.on(m),t.Events.metadata.on(m),t.Events.ready.on(v),t.agentStorage.registry.addLocal(i),t.agentStorage.registry.addLocal(h),{validate:g}},teardown:function(){z(),s.Events.identify.off(m),s.Events.metadata.off(m),s.Events.ready.off(v),delete a.feedback,delete a.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=L();p?I(P(e)):!isFeedbackOn(s)||s.ConfigReader.get("disableFeedbackAutoInit")||s.ConfigReader.get("disableFeedback",!1)||a._.isEmpty(e)||F(e,s.ConfigReader.get("feedbackSettings"))["catch"](a._.noop)}function m(e){e=a._.get(e,"data.0.visitor_id")||a._.get(e,"data.0.options.visitor.id");a.isAnonymousVisitor(e)||t()}function v(){t()}function y(){return c+"/html/widget/notLoaded.html"}function n(e){return e=e||P(L()),s.agentStorage.read(h)===b(e)}function b(e){return JSON.stringify(e)}function I(e){if(!n(e)){s.agentStorage.write(h,b(e),G);e=w(e);if(e.data&&"{}"!==e.data&&"null"!==e.data)return a.ajax.postJSON(d+"/widget/pendo_ping",e).then(function(e){e=e.data.notifications;s.agentStorage.write(i,e),C()})["catch"](function(){s.agentStorage.clear(h)})}return s.q.resolve()}function w(e){return e=e||P(L()),{data:JSON.stringify(e)}}function C(){var e,t=a.dom("#feedback-trigger-notification");0!==t.length&&(e=s.agentStorage.read(i)||0,0<parseInt(e,10)?a._.each(t,function(e){a.dom(e).css({visibility:"visible"})}):a._.each(t,function(e){a.dom(e).css({visibility:"hidden"})}))}function S(){return p&&n()?s.q.resolve():F(L(),s.ConfigReader.get("feedbackSettings"))}function A(e){return S().then(function(){if(a._.isUndefined(e)&&(e={}),"A"===a._.get(e,"anchor.nodeName","").toUpperCase())return t=window.open(y(),Math.random().toString(36).substring(7)),T().then(function(e){t.location=e}),!1;var t;T().then(function(e){window.location.href=e})},function(){})}function E(e){var t=document.createElement("a");return t.href=e,t.host}function T(){var e=w();if(e.data&&"{}"!==e.data&&"null"!==e.data)return a.ajax.postJSON(d+"/widget/token",e).then(function(e){var t;return t=e.data.login_url,r=E(t),e.data.login_url})}function _(){return document.getElementById(f.feedbackWidget)}function x(){return document.getElementById(f.feedbackIframe)}function R(){var e=x();return e||(W(),e=x()),e}function k(e){var t,n;U()&&(e&&e.preventDefault&&e.preventDefault(),(t=R()).src&&t.src!==y()||T().then(function(e){t.src=e+"&inWidget=true"}),(e=a.dom("#".concat(f.feedbackWidget)))&&((n=a.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())),a.dom.addClass(_(),"visible"),N("user.widget.opened"))}function O(){var e,t;e=document.getElementById(f.feedbackWidget),t=document.getElementById(f.feedbackOverlay),e&&t&&(e=document.getElementById(f.feedbackOverlay)).parentNode.removeChild(e),a.dom.removeClass(_(),"visible"),N("user.widget.closed")}function N(e){var t=w();t.event=e,a.ajax.postJSON(d+"/analytics",t)}function D(){window.addEventListener("message",function(e){var t=e.origin||e.originalEvent.origin;if(t=t,r?E(t)===r:E(t)===E(c)){var t=e.data.message,n=e.data.data;switch(t){case"close-receptive-widget":O();break;case"open-receptive":A();break;case"update-receptive-notification-count":s.agentStorage.write(i,n.count),C();break;case"handle-logout":R().src=y(),O();break;case"loaded-receptive-widget":o=!0}}},!1)}function M(e,t){var n;a.dom("#".concat(e))[0]||((n=a.dom(document.createElement("style"))).attr("id",e),n.html(t),n.appendTo(document.head))}function B(e){var t,n,i=a._.extend(e,{triggerColor:"#"+e.triggerColor,triggerPosition:e.triggerPosition.toLowerCase()}),r=("undefined"!=typeof Turbolinks&&document.addEventListener("turbolinks:before-visit",function(e){var t=document.getElementById(f.feedbackIframe);t&&(t.src=y())}),function(e){e=e.triggerPosition.split("_");return{horizontalPosition:e[1],verticalPosition:e[0]}}(i));M(f.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,M("pendo-feedback-trigger-styles","\n #feedback-trigger button:hover {\n box-shadow: 0 -5px 20px rgba(0,0,0,.19) !important;\n outline: none !important;\n background: #3e566f !important;\n }\n #feedback-trigger button:focus {\n box-shadow: 0 -5px 20px rgba(0,0,0,.19) !important;\n outline: none !important;\n background: #3e566f !important;\n }\n "),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=a._.extend({position:"fixed",height:"43px",opacity:"1 !important","z-index":"9001"},t,e),e=a.dom(document.createElement("div"));return e.attr("id",f.feedbackTrigger),e.css(t),e.attr("data-turbolinks-permanent",""),e}(n),i=function(){var e=a.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){t="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":t,"font-size":"15px",color:"#fff","box-shadow":"0 -5px 9px rgba(0,0,0,.16)",cursor:"pointer","text-align":"left"},n=a.dom(document.createElement("button"));return n.attr("id",f.feedbackTriggerButton),n.css(t),n.text(e.triggerText),n}(t,n),e.append(i),e.append(t),e.appendTo(a.dom.getBody()),s.attachEvent(t[0],"click",k)),W(r.horizontalPosition)}function W(e){t="\n .buttonIs-".concat(t="left"===(t=e)?"left":"right",".visible {\n ").concat(t,": 0 !important;\n width: 470px !important;\n animation-direction: alternate-reverse !important;\n animation: pendoFeedbackSlideFrom-").concat(t," 0.5s 0s 1 alternate both !important;\n -webkit-animation: pendoFeedbackSlideFrom-").concat(t," 0.5s 0s 1 alternate both !important;\n z-index: 9002 !important;\n }\n "),M(f.feedbackFrameStyles,t),t=e,(e=a.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",f.feedbackWidget),e.attr("data-turbolinks-permanent","true"),e.addClass("buttonIs-".concat(t));var t=e;t.append(((e=a.dom(document.createElement("iframe"))).css({width:"100%",height:"99.6%",border:"0 none"}),e.attr("id",f.feedbackIframe),e.attr("title","Feedback"),e.attr("src",y()),e)),t.appendTo(a.dom.getBody()),D()}function $(){return o}function L(){var e=s.ConfigReader.getLocalConfig();return a._.isObject(e)||(e={}),a._.isObject(e.visitor)||(e.visitor={}),a._.isObject(e.account)||(e.account={}),e}function U(e){e=e||L();if(!isUnsupportedIE(a)&&u&&d&&c&&l)if(a._.get(e.visitor,"id")){if(!a.isAnonymousVisitor(e.visitor.id)){if(a._.get(e.account,"id"))return 1;a.log("The current visitor is not associated with an account.")}}else a.log("Not valid visitor id")}function F(e,t){if(u=t.vendorId,d=t.apiUrl,c=t.siteUrl,l=t.productId,p)return s.q.reject();if(!U(e))return s.q.reject();var n,i,e=P(e);try{n=a.url.get(),i="fdbkDst";var r=null!=(i=new RegExp("[?&]"+i+"=([^&#]*)").exec(n))&&decodeURI(i[1])||null;if(r&&r.startsWith("case"))return p=!0,void T().then(function(e){window.location.href=e+"&fdbkDst="+r})}catch(o){p=!1,a.log(o,"unhandled error while checking feedback destination")}try{return p=!0,"WIDGET"===t.type&&B(t),C(),I(e)}catch(o){return p=!1,a.log(o,"unhandled error while initializing feedback"),s.q.reject(o)}}function P(e){var t,n,i=s.agent.getJwtInfoCopy();return a._.isEmpty(i)?((t={}).user=a._.pick(e.visitor,"id","full_name","firstName","lastName","email","tags","custom_allowed_products"),a._.extend(t.user,{allowed_products:[{id:l}]}),t.account=a._.pick(e.account,"id","name","monthly_value","is_paying","tags"),a._.extend(t,{vendor:{id:u}}),a._.isUndefined(t.account.is_paying)&&(t.account.is_paying=!0),null!=t.user.email&&""!=t.user.email||(t.user.email=(e=t,a._.isUndefined(e.user)||a._.isUndefined(e.user.id)?"noemail+"+a.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,a._.isUndefined(e.user.firstName)&&a._.isUndefined(e.user.lastName)?a._.isUndefined(e.user)||a._.isUndefined(e.user.id)?"No Name Provided"+a.randomString(32):"No Name Provided"+e.user.id:(n=[],a._.isUndefined(e.user.firstName)||n.push(e.user.firstName),a._.isUndefined(e.user.lastName)||n.push(e.user.lastName),n.join(" ")))),t):(e=JSON.parse(JSON.stringify(i)),a._.extend(e,{vendor:{id:u}}),a._.extend(e,{allowed_products:[{id:l}]}),e)}function j(){return p}function z(){a._.each(a._.values(f),function(e){a.dom("#"+e).remove()}),l=r=c=u=d="",p=o=!1}function Z(){return JSON.parse(JSON.stringify(s.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 _a,URL$1=function(e){var t=window.URL;return"function"==typeof t&&/native/.test(t)?t:e(document)}(URLPolyfillFactory),__defProp=Object.defineProperty,__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),__defProp$1=Object.defineProperty,__defNormalProp$1=(e,t,n)=>t in e?__defProp$1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField$1=(e,t,n)=>__defNormalProp$1(e,"symbol"!=typeof t?t+"":t,n),NodeType$2=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(NodeType$2||{});const testableAccessors$1={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},testableMethods$1={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},untaintedBasePrototype$1={};function angularZoneUnpatchedAlternative$1(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]}function getUntaintedPrototype$1(e){if(untaintedBasePrototype$1[e])return untaintedBasePrototype$1[e];var t=angularZoneUnpatchedAlternative$1(e)||globalThis[e];const n=t.prototype;var i=e in testableAccessors$1?testableAccessors$1[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 testableMethods$1?testableMethods$1[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 untaintedBasePrototype$1[e]=t.prototype,t.prototype;try{var o,a=document.createElement("iframe"),s=(document.body.appendChild(a),a.contentWindow);return s?(o=s[e].prototype,document.body.removeChild(a),o?untaintedBasePrototype$1[e]=o:n):t.prototype}catch{return n}}const untaintedAccessorCache$1={};function getUntaintedAccessor$1(e,t,n){var i=e+"."+String(n);return untaintedAccessorCache$1[i]?untaintedAccessorCache$1[i].call(t):(e=getUntaintedPrototype$1(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(untaintedAccessorCache$1[i]=e).call(t):t[n])}const untaintedMethodCache$1={};function getUntaintedMethod$1(e,t,n){var i=e+"."+String(n);return untaintedMethodCache$1[i]?untaintedMethodCache$1[i].bind(t):"function"!=typeof(e=getUntaintedPrototype$1(e)[n])?t[n]:(untaintedMethodCache$1[i]=e).bind(t)}function childNodes$1(e){return getUntaintedAccessor$1("Node",e,"childNodes")}function parentNode$1(e){return getUntaintedAccessor$1("Node",e,"parentNode")}function parentElement$1(e){return getUntaintedAccessor$1("Node",e,"parentElement")}function textContent$1(e){return getUntaintedAccessor$1("Node",e,"textContent")}function contains$1(e,t){return getUntaintedMethod$1("Node",e,"contains")(t)}function getRootNode$1(e){return getUntaintedMethod$1("Node",e,"getRootNode")()}function host$1(e){return e&&"host"in e?getUntaintedAccessor$1("ShadowRoot",e,"host"):null}function styleSheets$1(e){return e.styleSheets}function shadowRoot$1(e){return e&&"shadowRoot"in e?getUntaintedAccessor$1("Element",e,"shadowRoot"):null}function querySelector$1(e,t){return getUntaintedAccessor$1("Element",e,"querySelector")(t)}function querySelectorAll$1(e,t){return getUntaintedAccessor$1("Element",e,"querySelectorAll")(t)}function mutationObserverCtor$1(){return getUntaintedPrototype$1("MutationObserver").constructor}const index$1={childNodes:childNodes$1,parentNode:parentNode$1,parentElement:parentElement$1,textContent:textContent$1,contains:contains$1,getRootNode:getRootNode$1,host:host$1,styleSheets:styleSheets$1,shadowRoot:shadowRoot$1,querySelector:querySelector$1,querySelectorAll:querySelectorAll$1,mutationObserver:mutationObserverCtor$1};function isElement(e){return e.nodeType===e.ELEMENT_NODE}function isShadowRoot(e){var t=e&&"host"in e&&"mode"in e&&index$1.host(e)||null;return Boolean(t&&"shadowRoot"in t&&index$1.shadowRoot(t)===e)}function isNativeShadowDom(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function getNative$1(e,t=window){var n=null==(i=null==(n=null==t?void 0:t.Zone)?void 0:n.__symbol__)?void 0:i.call(n,e);if(n){var i=t[n];if(i)return i}return t[e]}const nativeSetTimeout="undefined"!=typeof window?getNative$1("setTimeout").bind(window):global.setTimeout;function fixBrowserCompatibilityIssuesInCSS(e){return e=e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")?e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"):e}function escapeImportStatement(e){var t=e["cssText"];return t.split('"').length<3?t:(t=["@import",`url(${JSON.stringify(e.href)})`],""===e.layerName?t.push("layer"):e.layerName&&t.push(`layer(${e.layerName})`),e.supportsText&&t.push(`supports(${e.supportsText})`),e.media.length&&t.push(e.media.mediaText),t.join(" ")+";")}function stringifyStylesheet(e){try{var n=e.rules||e.cssRules;if(!n)return null;let t=e.href;return!t&&e.ownerNode&&e.ownerNode.ownerDocument&&(t=e.ownerNode.ownerDocument.location.href),fixBrowserCompatibilityIssuesInCSS(Array.from(n,e=>stringifyRule(e,t)).join(""))}catch(t){return null}}function stringifyRule(t,n){var i;if(isCSSImportRule(t)){let e;try{e=stringifyStylesheet(t.styleSheet)||escapeImportStatement(t)}catch(r){e=t.cssText}return null!=(i=null==t?void 0:t.styleSheet)&&i.href?absolutifyURLs(e,t.styleSheet.href):e}{let e=t.cssText;return isCSSStyleRule(t)&&(e=replaceChromeGridTemplateAreas(t),t.selectorText.includes(":"))&&(e=fixSafariColons(e)),n?absolutifyURLs(e,n):e}}function replaceChromeGridTemplateAreas(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}function fixSafariColons(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function isCSSImportRule(e){return"styleSheet"in e}function isCSSStyleRule(e){return"selectorText"in e}class Mirror{constructor(){__publicField$1(this,"idNodeMap",new Map),__publicField$1(this,"nodeMetaMap",new WeakMap)}getId(e){return e?(null==(e=this.getMeta(e))?void 0:e.id)??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){var t=this.getId(e);this.idNodeMap["delete"](t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){var n=this.getNode(e);n&&(n=this.nodeMetaMap.get(n))&&this.nodeMetaMap.set(t,n),this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function createMirror$2(){return new Mirror}function maskInputValue({element:e,maskInputOptions:t,tagName:n,type:i,value:r,maskInputFn:o,needsMask:a}){let s=r||"";r=i&&toLowerCase(i);return s=t[n.toLowerCase()]||r&&t[r]||a?o?o(s,e):"*".repeat(s.length):s}function toLowerCase(e){return e.toLowerCase()}const ORIGINAL_ATTRIBUTE_NAME="__rrweb_original__";function is2DCanvasBlank(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=ORIGINAL_ATTRIBUTE_NAME in r?r[ORIGINAL_ATTRIBUTE_NAME]: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!1}return!0}function getInputType(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?toLowerCase(t):null}function extractFileExtension(e,t){let n;try{n=new URL$1(e,t??window.location.href)}catch(i){return null}e=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==e?void 0:e[1])??null}function extractOrigin(e){let t="";return t=(t=-1<e.indexOf("//")?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}const URL_IN_CSS_REF=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,URL_PROTOCOL_MATCH=/^(?:[a-z+]+:)?\/\//i,URL_WWW_MATCH=/^www\..*/i,DATA_URI=/^(data:)([^,]*),(.*)/i;function absolutifyURLs(e,d){return(e||"").replace(URL_IN_CSS_REF,(e,t,n,i,r,o)=>{n=n||r||o,r=t||i||"";if(!n)return e;if(URL_PROTOCOL_MATCH.test(n)||URL_WWW_MATCH.test(n))return`url(${r}${n}${r})`;if(DATA_URI.test(n))return`url(${r}${n}${r})`;if("/"===n[0])return`url(${r}${extractOrigin(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})`})}let _id=1;const tagNameRegex=new RegExp("[^a-z0-9-_:]"),IGNORED_NODE=-2;function genId(){return _id++}function getValidTagName$1(e){return e instanceof HTMLFormElement?"form":(e=toLowerCase(e.tagName),tagNameRegex.test(e)?"div":e)}let canvasService,canvasCtx;const SRCSET_NOT_SPACES=/^[^ \t\n\r\u000c]+/,SRCSET_COMMAS_OR_SPACES=/^[, \t\n\r\u000c]+/;function getAbsoluteSrcsetString(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(SRCSET_COMMAS_OR_SPACES),!(o>=r.length);){let n=e(SRCSET_NOT_SPACES);if(","===n.slice(-1))n=absoluteToDoc(i,n.substring(0,n.length-1)),a.push(n);else{let e="",t=(n=absoluteToDoc(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 cachedDocument=new WeakMap;function absoluteToDoc(e,t){return t&&""!==t.trim()?getHref(e,t):t}function isSVGElement(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function getHref(e,t){let n=cachedDocument.get(e);if(n||(n=e.createElement("a"),cachedDocument.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function transformAttribute(e,t,n,i){return i&&("src"!==n&&("href"!==n||"use"===t&&"#"===i[0])&&("xlink:href"!==n||"#"===i[0])&&("background"!==n||"table"!==t&&"td"!==t&&"th"!==t)?"srcset"===n?getAbsoluteSrcsetString(e,i):"style"===n?absolutifyURLs(i,getHref(e)):"object"===t&&"data"===n?absoluteToDoc(e,i):i:absoluteToDoc(e,i))}function ignoreAttribute(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function _isBlockedElement(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}function classMatchesRegex(t,n,e){if(!t)return!1;if(!n)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!e&&classMatchesRegex(index$1.parentNode(t),n,e);for(let e=t.classList.length;e--;){var i=t.classList[e];if(n.test(i))return!0}return!!e&&classMatchesRegex(index$1.parentNode(t),n,e)}function needMaskingText(e,t,n,i){let r;if(isElement(e)){if(r=e,"*"===n)return!0;if(!index$1.childNodes(r).length)return!1}else{if(null===index$1.parentElement(e))return!1;r=index$1.parentElement(e)}try{if("string"==typeof t){if(i){if(r.closest("."+t))return!0}else if(r.classList.contains(t))return!0}else if(classMatchesRegex(r,t,i))return!0;if(n)if(i){if(r.closest(n))return!0}else if(r.matches(n))return!0}catch(o){}return!1}function onceIframeLoaded(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=nativeSetTimeout(()=>{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 nativeSetTimeout(i,0),n.addEventListener("load",i);n.addEventListener("load",i)}}}function onceStylesheetLoaded(e,t,n){let i=!1,r;try{r=e.sheet}catch(o){return}if(!r){const a=nativeSetTimeout(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{clearTimeout(a),i=!0,t()})}}function serializeNode(e,t){var{doc:n,mirror:t,blockClass:i,blockSelector:r,needsMask:o,inlineStylesheet:a,maskInputOptions:s={},maskTextFn:d,maskInputFn:u,dataURLOptions:c={},inlineImages:l,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:f=!1}=t,g=getRootId(n,t);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:NodeType$2.Document,childNodes:[],compatMode:e.compatMode}:{type:NodeType$2.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:NodeType$2.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:g};case e.ELEMENT_NODE:return serializeElementNode(e,{doc:n,blockClass:i,blockSelector:r,inlineStylesheet:a,maskInputOptions:s,maskInputFn:u,dataURLOptions:c,inlineImages:l,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:f,rootId:g,needsMask:o});case e.TEXT_NODE:return serializeTextNode(e,{doc:n,needsMask:o,maskTextFn:d,maskInputOptions:s,maskInputFn:u,rootId:g});case e.CDATA_SECTION_NODE:return{type:NodeType$2.CDATA,textContent:"",rootId:g};case e.COMMENT_NODE:return{type:NodeType$2.Comment,textContent:index$1.textContent(e)||"",rootId:g};default:return!1}}function getRootId(e,t){return!t.hasNode(e)||1===(e=t.getId(e))?void 0:e}function serializeTextNode(e,t){var n,{needsMask:i,maskTextFn:r,rootId:o,maskInputOptions:a,maskInputFn:s}=t,d=index$1.parentNode(e),u=d&&d.tagName;let c=index$1.textContent(e);var l="STYLE"===u||void 0,p="SCRIPT"===u||void 0,u="TEXTAREA"===u||void 0;if(l&&c){try{e.nextSibling||e.previousSibling||null!=(n=d.sheet)&&n.cssRules&&(c=stringifyStylesheet(d.sheet))}catch(h){console.warn("Cannot get CSS styles from text's parentNode. Error: "+h,e)}c=absolutifyURLs(c,getHref(t.doc))}return p&&(c="SCRIPT_PLACEHOLDER"),!l&&!p&&c&&i&&(c=r?r(c,index$1.parentElement(e)):c.replace(/[\S]/g,"*")),u&&c&&a.textarea&&(c=s?s(c,e.parentNode):c.replace(/[\S]/g,"*")),{type:NodeType$2.Text,textContent:c||"",isStyle:l,rootId:o}}function serializeElementNode(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=_isBlockedElement(t,i,r),g=getValidTagName$1(t);let m={};var v,y=t.attributes.length;for(let e=0;e<y;e++){var b=t.attributes[e];ignoreAttribute(g,b.name,b.value)||(m[b.name]=transformAttribute(n,g,toLowerCase(b.name),b.value))}if("link"===g&&o){var I=Array.from(n.styleSheets).find(e=>e.href===t.href);let e=null;(e=I?stringifyStylesheet(I):e)&&(delete m.rel,delete m.href,m._cssText=e)}if("style"===g&&t.sheet&&!(t.innerText||index$1.textContent(t)||"").trim().length&&(I=stringifyStylesheet(t.sheet))&&(m._cssText=I),"input"!==g&&"textarea"!==g&&"select"!==g||(I=t.value,v=t.checked,"radio"!==m.type&&"checkbox"!==m.type&&"submit"!==m.type&&"button"!==m.type&&I?m.value=maskInputValue({element:t,type:getInputType(t),tagName:g,value:I,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?is2DCanvasBlank(t)||(m.rr_dataURL=t.toDataURL(d.type,d.quality)):"__context"in t||(I=t.toDataURL(d.type,d.quality),(v=n.createElement("canvas")).width=t.width,v.height=t.height,I!==v.toDataURL(d.type,d.quality)&&(m.rr_dataURL=I))),"img"===g&&u){canvasService||(canvasService=n.createElement("canvas"),canvasCtx=canvasService.getContext("2d"));const S=t,A=S.currentSrc||S.getAttribute("src")||"<unknown-src>",E=S.crossOrigin,T=()=>{S.removeEventListener("load",T);try{canvasService.width=S.naturalWidth,canvasService.height=S.naturalHeight,canvasCtx.drawImage(S,0,0),m.rr_dataURL=canvasService.toDataURL(d.type,d.quality)}catch(e){if("anonymous"!==S.crossOrigin)return S.crossOrigin="anonymous",void(S.complete&&0!==S.naturalWidth?T():S.addEventListener("load",T));console.warn(`Cannot inline img src=${A}! Error: `+e)}"anonymous"===S.crossOrigin&&(E?m.crossOrigin=E:S.removeAttribute("crossorigin"))};S.complete&&0!==S.naturalWidth?T():S.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:I,height:v}=t.getBoundingClientRect(),m={"class":m["class"],rr_width:I+"px",rr_height:v+"px"}),"iframe"!==g||l(m.src)||(t.contentDocument||(m.rr_src=m.src),delete m.src);let w;try{customElements.get(g)&&(w=!0)}catch(C){}return{type:NodeType$2.Element,tagName:g,attributes:m,childNodes:[],isSVG:isSVGElement(t)||void 0,needBlock:e,rootId:h,isCustom:w}}function lowerIfExists(e){return null==e?"":e.toLowerCase()}function slimDOMExcluded(e,t){if(t.comment&&e.type===NodeType$2.Comment)return!0;if(e.type===NodeType$2.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===extractFileExtension(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(lowerIfExists(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===lowerIfExists(e.attributes.name)||"icon"===lowerIfExists(e.attributes.rel)||"apple-touch-icon"===lowerIfExists(e.attributes.rel)||"shortcut icon"===lowerIfExists(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&lowerIfExists(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(lowerIfExists(e.attributes.property).match(/^(og|twitter|fb):/)||lowerIfExists(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===lowerIfExists(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===lowerIfExists(e.attributes.name)||"googlebot"===lowerIfExists(e.attributes.name)||"bingbot"===lowerIfExists(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===lowerIfExists(e.attributes.name)||"generator"===lowerIfExists(e.attributes.name)||"framework"===lowerIfExists(e.attributes.name)||"publisher"===lowerIfExists(e.attributes.name)||"progid"===lowerIfExists(e.attributes.name)||lowerIfExists(e.attributes.property).match(/^article:/)||lowerIfExists(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===lowerIfExists(e.attributes.name)||"yandex-verification"===lowerIfExists(e.attributes.name)||"csrf-token"===lowerIfExists(e.attributes.name)||"p:domain_verify"===lowerIfExists(e.attributes.name)||"verify-v1"===lowerIfExists(e.attributes.name)||"verification"===lowerIfExists(e.attributes.name)||"shopify-checkout-api-token"===lowerIfExists(e.attributes.name)))return!0}}return!1}function serializeNodeWithId(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:I,stylesheetLoadTimeout:w=5e3,keepIframeSrcFn:C=()=>!1,newlyAddedElement:S=!1}=e;let A=e["needsMask"],{preserveWhiteSpace:E=!0}=e;A||(e=void 0===A,A=needMaskingText(t,a,s,e));e=serializeNode(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:A,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,dataURLOptions:f,inlineImages:g,recordCanvas:m,keepIframeSrcFn:C,newlyAddedElement:S});if(!e)return console.warn(t,"not serialized"),null;let T;T=i.hasNode(t)?i.getId(t):slimDOMExcluded(e,h)||!E&&e.type===NodeType$2.Text&&!e.isStyle&&!e.textContent.replace(/^\s+|\s+$/gm,"").length?IGNORED_NODE:genId();var _=Object.assign(e,{id:T});if(i.add(t,_),T===IGNORED_NODE)return null;v&&v(t);let x=!d;if(_.type===NodeType$2.Element&&(x=x&&!_.needBlock,delete _.needBlock,e=index$1.shadowRoot(t))&&isNativeShadowDom(e)&&(_.isShadowHost=!0),(_.type===NodeType$2.Document||_.type===NodeType$2.Element)&&x){h.headWhitespace&&_.type===NodeType$2.Element&&"head"===_.tagName&&(E=!1);var R={doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:A,maskTextClass:a,maskTextSelector:s,skipChild:d,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:E,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:I,stylesheetLoadTimeout:w,keepIframeSrcFn:C};if(_.type!==NodeType$2.Element||"textarea"!==_.tagName||void 0===_.attributes.value)for(const N of Array.from(index$1.childNodes(t))){var k=serializeNodeWithId(N,R);k&&_.childNodes.push(k)}let e=null;if(isElement(t)&&(e=index$1.shadowRoot(t)))for(const M of Array.from(index$1.childNodes(e))){var O=serializeNodeWithId(M,R);O&&(isNativeShadowDom(e)&&(O.isShadow=!0),_.childNodes.push(O))}}e=index$1.parentNode(t);return e&&isShadowRoot(e)&&isNativeShadowDom(e)&&(_.isShadow=!0),_.type===NodeType$2.Element&&"iframe"===_.tagName&&onceIframeLoaded(t,()=>{var e=t.contentDocument;e&&y&&(e=serializeNodeWithId(e,{doc:e,mirror:i,blockClass:r,blockSelector:o,needsMask:A,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:E,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:I,stylesheetLoadTimeout:w,keepIframeSrcFn:C}))&&y(t,e)},b),_.type===NodeType$2.Element&&"link"===_.tagName&&"string"==typeof _.attributes.rel&&("stylesheet"===_.attributes.rel||"preload"===_.attributes.rel&&"string"==typeof _.attributes.href&&"css"===extractFileExtension(_.attributes.href))&&onceStylesheetLoaded(t,()=>{var e;I&&(e=serializeNodeWithId(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:A,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:E,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:I,stylesheetLoadTimeout:w,keepIframeSrcFn:C}))&&I(t,e)},w),_}function snapshot(e,t){var{mirror:t=new Mirror,blockClass:n="rr-block",blockSelector:i=null,maskTextClass:r="rr-mask",maskTextSelector:o=null,inlineStylesheet:a=!0,inlineImages:s=!1,recordCanvas:d=!1,maskAllInputs:u=!1,maskTextFn:c,maskInputFn:l,slimDOM:p=!1,dataURLOptions:h,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:m,iframeLoadTimeout:v,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:I=()=>!1}=t||{};return serializeNodeWithId(e,{doc:e,mirror:t,blockClass:n,blockSelector:i,maskTextClass:r,maskTextSelector:o,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===u?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===u?{password:!0}:u,maskTextFn:c,maskInputFn:l,slimDOMOptions:!0===p||"all"===p?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===p,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===p?{}:p,dataURLOptions:h,inlineImages:s,recordCanvas:d,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:m,iframeLoadTimeout:v,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:I,newlyAddedElement:!1})}var __defProp2=Object.defineProperty,__defNormalProp2=(e,t,n)=>t in e?__defProp2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField2=(e,t,n)=>__defNormalProp2(e,"symbol"!=typeof t?t+"":t,n);function getNative(e,t=window){var n=null==(i=null==(n=null==t?void 0:t.Zone)?void 0:n.__symbol__)?void 0:i.call(n,e);if(n){var i=t[n];if(i)return i}return t[e]}"undefined"!=typeof window?getNative("setTimeout").bind(window):global.setTimeout;class BaseRRNode{constructor(){__publicField2(this,"parentElement",null),__publicField2(this,"parentNode",null),__publicField2(this,"ownerDocument"),__publicField2(this,"firstChild",null),__publicField2(this,"lastChild",null),__publicField2(this,"previousSibling",null),__publicField2(this,"nextSibling",null),__publicField2(this,"ELEMENT_NODE",1),__publicField2(this,"TEXT_NODE",3),__publicField2(this,"nodeType"),__publicField2(this,"nodeName"),__publicField2(this,"RRNodeType")}get childNodes(){var e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(e instanceof BaseRRNode&&e.ownerDocument===this.ownerDocument){if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}const testableAccessors={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},testableMethods={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},untaintedBasePrototype={};function angularZoneUnpatchedAlternative(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]}function getUntaintedPrototype(e){if(untaintedBasePrototype[e])return untaintedBasePrototype[e];var t=angularZoneUnpatchedAlternative(e)||globalThis[e];const n=t.prototype;var i=e in testableAccessors?testableAccessors[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 testableMethods?testableMethods[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 untaintedBasePrototype[e]=t.prototype,t.prototype;try{var o,a=document.createElement("iframe"),s=(document.body.appendChild(a),a.contentWindow);return s?(o=s[e].prototype,document.body.removeChild(a),o?untaintedBasePrototype[e]=o:n):t.prototype}catch{return n}}const untaintedAccessorCache={};function getUntaintedAccessor(e,t,n){var i=e+"."+String(n);return untaintedAccessorCache[i]?untaintedAccessorCache[i].call(t):(e=getUntaintedPrototype(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(untaintedAccessorCache[i]=e).call(t):t[n])}const untaintedMethodCache={};function getUntaintedMethod(e,t,n){var i=e+"."+String(n);return untaintedMethodCache[i]?untaintedMethodCache[i].bind(t):"function"!=typeof(e=getUntaintedPrototype(e)[n])?t[n]:(untaintedMethodCache[i]=e).bind(t)}function childNodes(e){return getUntaintedAccessor("Node",e,"childNodes")}function parentNode(e){return getUntaintedAccessor("Node",e,"parentNode")}function parentElement(e){return getUntaintedAccessor("Node",e,"parentElement")}function textContent(e){return getUntaintedAccessor("Node",e,"textContent")}function contains(e,t){return getUntaintedMethod("Node",e,"contains")(t)}function getRootNode(e){return getUntaintedMethod("Node",e,"getRootNode")()}function host(e){return e&&"host"in e?getUntaintedAccessor("ShadowRoot",e,"host"):null}function styleSheets(e){return e.styleSheets}function shadowRoot(e){return e&&"shadowRoot"in e?getUntaintedAccessor("Element",e,"shadowRoot"):null}function querySelector(e,t){return getUntaintedAccessor("Element",e,"querySelector")(t)}function querySelectorAll(e,t){return getUntaintedAccessor("Element",e,"querySelectorAll")(t)}function mutationObserverCtor(){return getUntaintedPrototype("MutationObserver").constructor}const index={childNodes:childNodes,parentNode:parentNode,parentElement:parentElement,textContent:textContent,contains:contains,getRootNode:getRootNode,host:host,styleSheets:styleSheets,shadowRoot:shadowRoot,querySelector:querySelector,querySelectorAll:querySelectorAll,mutationObserver:mutationObserverCtor};function getWindow(e){var t=e.defaultView;return t||e}function on(e,t,n=document){var i=getWindow(n),r=getNative$1("addEventListener",i);const o=getNative$1("removeEventListener",i),a={capture:!0,passive:!0};return r.call(n,e,t,a),()=>o.call(n,e,t,a)}const DEPARTED_MIRROR_ACCESS_WARNING="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let _mirror={map:{},getId(){return console.error(DEPARTED_MIRROR_ACCESS_WARNING),-1},getNode(){return console.error(DEPARTED_MIRROR_ACCESS_WARNING),null},removeNodeFromMap(){console.error(DEPARTED_MIRROR_ACCESS_WARNING)},has(){return console.error(DEPARTED_MIRROR_ACCESS_WARNING),!1},reset(){console.error(DEPARTED_MIRROR_ACCESS_WARNING)}};function throttle(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=nativeSetTimeout(()=>{d=!1===a.leading?0:Date.now(),s=null,r.apply(i,e)},n))}}function hookSetter(e,t,n,i,r=window){const o=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,i?n:{set(e){nativeSetTimeout(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>hookSetter(e,t,o||{},!0)}function patch(e,t,n){try{if(!(t in e))return()=>{};const r=e[t];var i=n(r);return"function"==typeof i&&(i.toString=function(){return r.toString()},i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(_mirror=new Proxy(_mirror,{get(e,t,n){return"map"===t&&console.error(DEPARTED_MIRROR_ACCESS_WARNING),Reflect.get(e,t,n)}}));let nowTimestamp=Date.now;function getWindowScroll(e){var t,n=e.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:n.documentElement.scrollLeft||(null==n?void 0:n.body)&&(null==(t=index.parentElement(n.body))?void 0:t.scrollLeft)||(null==(t=null==n?void 0:n.body)?void 0:t.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==n?void 0:n.documentElement.scrollTop)||(null==n?void 0:n.body)&&(null==(t=index.parentElement(n.body))?void 0:t.scrollTop)||(null==(e=null==n?void 0:n.body)?void 0:e.scrollTop)||0}}function getWindowHeight(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function getWindowWidth(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function closestElementOfNode(e){return e?e.nodeType===e.ELEMENT_NODE?e:index.parentElement(e):null}function isBlocked(e,t,n,i){if(e){e=closestElementOfNode(e);if(e){try{if("string"==typeof t){if(e.classList.contains(t))return!0;if(i&&null!==e.closest("."+t))return!0}else if(classMatchesRegex(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 isSerialized(e,t){return-1!==t.getId(e)}function isIgnored(e,t,n){return!("TITLE"!==e.tagName||!n.headTitleMutations)||t.getId(e)===IGNORED_NODE}function isAncestorRemoved(e,t){var n;return!isShadowRoot(e)&&(n=t.getId(e),!t.has(n)||(!(n=index.parentNode(e))||n.nodeType!==e.DOCUMENT_NODE)&&(!n||isAncestorRemoved(n,t)))}function legacy_isTouchEvent(e){return Boolean(e.changedTouches)}function polyfill$1(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function isSerializedIframe(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function isSerializedStylesheet(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function hasShadowRoot(e){return!!e&&(e instanceof BaseRRNode&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(index.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(nowTimestamp=()=>(new Date).getTime());class StyleSheetMirror{constructor(){__publicField(this,"id",1),__publicField(this,"styleIDMap",new WeakMap),__publicField(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){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 getShadowHost(e){var t;let n=null;return n="getRootNode"in e&&(null==(t=index.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&index.host(index.getRootNode(e))?index.host(index.getRootNode(e)):n}function getRootShadowHost(e){let t=e;for(var n;n=getShadowHost(t);)t=n;return t}function shadowHostInDom(e){var t=e.ownerDocument;return!!t&&(e=getRootShadowHost(e),index.contains(t,e))}function inDom(e){var t=e.ownerDocument;return!!t&&(index.contains(t,e)||shadowHostInDom(e))}var EventType=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(EventType||{}),IncrementalSource=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(IncrementalSource||{}),MouseInteractions=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(MouseInteractions||{}),PointerTypes=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(PointerTypes||{}),CanvasContext=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(CanvasContext||{}),MediaInteractions=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(MediaInteractions||{});function isNodeInLinkedList(e){return"__ln"in e}class DoubleLinkedList{constructor(){__publicField(this,"length",0),__publicField(this,"head",null),__publicField(this,"tail",null),__publicField(this,"reordered",!1)}get(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&&isNodeInLinkedList(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&&isNodeInLinkedList(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||!isNodeInLinkedList(e.value.previousSibling)||!e.previous||e.previous.value===e.value.previousSibling)}reorder(){if(this.reordered)return!1;let e=this.tail;for(var t=this.head;e;){var n=e.previous;if(this.removeNode(e.value),this.addNode(e.value),e===t)break;e=n}return this.reordered=!0}}const moveKey=(e,t)=>e+"@"+t;class MutationBuffer{constructor(){__publicField(this,"frozen",!1),__publicField(this,"locked",!1),__publicField(this,"texts",[]),__publicField(this,"attributes",[]),__publicField(this,"attributeMap",new WeakMap),__publicField(this,"removes",[]),__publicField(this,"mapRemoves",[]),__publicField(this,"movedMap",{}),__publicField(this,"addedSet",new Set),__publicField(this,"movedSet",new Set),__publicField(this,"droppedSet",new Set),__publicField(this,"removesSubTreeCache",new Set),__publicField(this,"mutationCb"),__publicField(this,"blockClass"),__publicField(this,"blockSelector"),__publicField(this,"maskTextClass"),__publicField(this,"maskTextSelector"),__publicField(this,"inlineStylesheet"),__publicField(this,"maskInputOptions"),__publicField(this,"maskTextFn"),__publicField(this,"maskInputFn"),__publicField(this,"keepIframeSrcFn"),__publicField(this,"recordCanvas"),__publicField(this,"inlineImages"),__publicField(this,"slimDOMOptions"),__publicField(this,"dataURLOptions"),__publicField(this,"doc"),__publicField(this,"mirror"),__publicField(this,"iframeManager"),__publicField(this,"stylesheetManager"),__publicField(this,"shadowDomManager"),__publicField(this,"canvasManager"),__publicField(this,"processedNodeManager"),__publicField(this,"unattachedDoc"),__publicField(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),__publicField(this,"emit",()=>{if(!this.frozen&&!this.locked){const d=[],u=new Set,c=new DoubleLinkedList,l=e=>{let t=e,n=IGNORED_NODE;for(;n===IGNORED_NODE;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n};for(var n,i,r=t=>{var e,n,i=index.parentNode(t);if(i&&inDom(t)&&"TEXTAREA"!==i.tagName)return i=isShadowRoot(i)?this.mirror.getId(getShadowHost(t)):this.mirror.getId(i),e=l(t),-1===i||-1===e?c.addNode(t):void((n=serializeNodeWithId(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=>{isSerializedIframe(e,this.mirror)&&this.iframeManager.addIframe(e),isSerializedStylesheet(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),hasShadowRoot(t)&&this.shadowDomManager.addShadowRoot(index.shadowRoot(t),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}}))&&(d.push({parentId:i,nextId:e,node:n}),u.add(n.id)))};this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const p of this.movedSet){var t=index.parentNode(p);isParentRemoved(this.removesSubTreeCache,p,this.mirror)&&!this.movedSet.has(t)&&!this.addedSet.has(t)||r(p)}for(const h of this.addedSet)!isAncestorInSet(this.droppedSet,h)&&!isParentRemoved(this.removesSubTreeCache,h,this.mirror)||isAncestorInSet(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(index.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(index.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=index.parentNode(a);if(a&&a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){a=index.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=index.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))}}),__publicField(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t)),t.attributes.value=Array.from(index.childNodes(e),e=>index.textContent(e)||"").join("")}),__publicField(this,"processMutation",i=>{if(!isIgnored(i.target,this.mirror,this.slimDOMOptions))switch(i.type){case"characterData":var r=index.textContent(i.target);isBlocked(i.target,this.blockClass,this.blockSelector,!1)||r===i.oldValue||this.texts.push({value:needMaskingText(i.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,closestElementOfNode(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=getInputType(a),o=needMaskingText(i.target,this.maskTextClass,this.maskTextSelector,!0),t=maskInputValue({element:a,maskInputOptions:this.maskInputOptions,tagName:a.tagName,type:r,value:t,maskInputFn:this.maskInputFn,needsMask:o})),isBlocked(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"),!ignoreAttribute(a.tagName,e))if(n.attributes[e]=transformAttribute(this.doc,toLowerCase(a.tagName),toLowerCase(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":isBlocked(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=isShadowRoot(i.target)?this.mirror.getId(index.host(i.target)):this.mirror.getId(i.target);isBlocked(i.target,this.blockClass,this.blockSelector,!1)||isIgnored(e,this.mirror,this.slimDOMOptions)||!isSerialized(e,this.mirror)||(this.addedSet.has(e)?(deepDelete(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(i.target)&&-1===t||isAncestorRemoved(i.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[moveKey(t,n)]?deepDelete(this.movedSet,e):(this.removes.push({parentId:n,id:t,isShadow:!(!isShadowRoot(i.target)||!isNativeShadowDom(i.target))||void 0}),processRemoves(e,this.removesSubTreeCache))),this.mapRemoves.push(e))})):this.genTextAreaValueMutation(i.target))}}),__publicField(this,"genAdds",(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(isIgnored(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[moveKey(this.mirror.getId(t),e)]=!0)}else this.addedSet.add(t),this.droppedSet["delete"](t);isBlocked(t,this.blockClass,this.blockSelector,!1)||(index.childNodes(t).forEach(e=>this.genAdds(e)),hasShadowRoot(t)&&index.childNodes(index.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 deepDelete(t,e){t["delete"](e),index.childNodes(e).forEach(e=>deepDelete(t,e))}function processRemoves(e,t){const n=[e];for(;n.length;){var i=n.pop();t.has(i)||(t.add(i),index.childNodes(i).forEach(e=>n.push(e)))}}function isParentRemoved(e,t,n){return 0!==e.size&&_isParentRemoved(e,t)}function _isParentRemoved(e,t,n){t=index.parentNode(t);return!!t&&e.has(t)}function isAncestorInSet(e,t){return 0!==e.size&&_isAncestorInSet(e,t)}function _isAncestorInSet(e,t){t=index.parentNode(t);return!!t&&(!!e.has(t)||_isAncestorInSet(e,t))}let errorHandler;function registerErrorHandler(e){errorHandler=e}function unregisterErrorHandler(){errorHandler=void 0}const callbackWrapper=n=>{return errorHandler?(...e)=>{try{return n(...e)}catch(t){if(!errorHandler||!0!==errorHandler(t))throw t}}:n},mutationBuffers=[];function getEventTarget(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function initMutationObserver(e,t){var n=new MutationBuffer,e=(mutationBuffers.push(n),n.init(e),new(mutationObserverCtor())(callbackWrapper(n.processMutations.bind(n))));return e.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function initMoveObserver({mousemoveCb: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=throttle(callbackWrapper(e=>{const t=Date.now()-a;n(o.map(e=>(e.timeOffset-=t,e)),e),o=[],a=null}),e);e=callbackWrapper(throttle(callbackWrapper(e=>{var t=getEventTarget(e),{clientX:n,clientY:i}=legacy_isTouchEvent(e)?e.changedTouches[0]:e;a=a||nowTimestamp(),o.push({x:n,y:i,id:r.getId(t),timeOffset:nowTimestamp()-a}),s("undefined"!=typeof DragEvent&&e instanceof DragEvent?IncrementalSource.Drag:e instanceof MouseEvent?IncrementalSource.MouseMove:IncrementalSource.TouchMove)}),i,{trailing:!1}));const d=[on("mousemove",e,t),on("touchmove",e,t),on("drag",e,t)];return callbackWrapper(()=>{d.forEach(e=>e())})}function initMouseInteractionObserver({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(MouseInteractions).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==t[e]).forEach(e=>{let t=toLowerCase(e);o=e;var o,n=n=>{var i=getEventTarget(n);if(!isBlocked(i,d,u,!0)){let e=null,t=o;if("pointerType"in n){switch(n.pointerType){case"mouse":e=PointerTypes.Mouse;break;case"touch":e=PointerTypes.Touch;break;case"pen":e=PointerTypes.Pen}e===PointerTypes.Touch?MouseInteractions[o]===MouseInteractions.MouseDown?t="TouchStart":MouseInteractions[o]===MouseInteractions.MouseUp&&(t="TouchEnd"):(e,PointerTypes.Pen)}else legacy_isTouchEvent(n)&&(e=PointerTypes.Touch);null!==e?(c=e,(t.startsWith("Touch")&&e===PointerTypes.Touch||t.startsWith("Mouse")&&e===PointerTypes.Mouse)&&(e=null)):MouseInteractions[o]===MouseInteractions.Click&&(e=c,c=null);var r,n=legacy_isTouchEvent(n)?n.changedTouches[0]:n;n&&(i=s.getId(i),{clientX:n,clientY:r}=n,callbackWrapper(a)({type:MouseInteractions[t],id:i,x:n,y:r,...null!==e&&{pointerType:e}}))}};if(window.PointerEvent)switch(MouseInteractions[e]){case MouseInteractions.MouseDown:case MouseInteractions.MouseUp:t=t.replace("mouse","pointer");break;case MouseInteractions.TouchStart:case MouseInteractions.TouchEnd:return}r.push(on(t,n,i))}),callbackWrapper(()=>{r.forEach(e=>e())})}function initScrollObserver({scrollCb:i,doc:r,mirror:o,blockClass:a,blockSelector:s,sampling:e}){return on("scroll",callbackWrapper(throttle(callbackWrapper(e=>{var t,n,e=getEventTarget(e);e&&!isBlocked(e,a,s,!0)&&(t=o.getId(e),e===r&&r.defaultView?(n=getWindowScroll(r.defaultView),i({id:t,x:n.left,y:n.top})):i({id:t,x:e.scrollLeft,y:e.scrollTop}))}),e.scroll||100)),r)}function initViewportResizeObserver({viewportResizeCb:n},{win:e}){let i=-1,r=-1;return on("resize",callbackWrapper(throttle(callbackWrapper(()=>{var e=getWindowHeight(),t=getWindowWidth();i===e&&r===t||(n({width:Number(t),height:Number(e)}),i=e,r=t)}),200)),e)}const INPUT_TAGS=["INPUT","TEXTAREA","SELECT"],lastInputValueMap=new WeakMap;function initInputObserver({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=getEventTarget(t);var t=t.isTrusted,r=i&&i.tagName;if((i=i&&"OPTION"===r?index.parentElement(i):i)&&r&&!(INPUT_TAGS.indexOf(r)<0)&&!isBlocked(i,e,n,!0)&&!(i.classList.contains(d)||u&&i.matches(u))){let e=i.value,n=!1;var o=getInputType(i)||"",a=needMaskingText(i,h,f,!0),r=("radio"===o||"checkbox"===o?n=i.checked:(c[r.toLowerCase()]||c[o]||a)&&(e=maskInputValue({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=lastInputValueMap.get(e);n&&n.text===t.text&&n.isChecked===t.isChecked||(lastInputValueMap.set(e,t),n=r.getId(e),callbackWrapper(i)({...t,id:n}))}var a;const m=("last"===t.input?["change"]:["input","change"]).map(e=>on(e,callbackWrapper(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=>hookSetter(e[0],e[1],{set(){callbackWrapper(o)({target:this,isTrusted:!1})}},!1,v))),callbackWrapper(()=>{m.forEach(e=>e())})):()=>{m.forEach(e=>e())}}function getNestedCSSRulePositions(e){var t,n;return e=e,t=[],hasNestedCSSRule("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||hasNestedCSSRule("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||hasNestedCSSRule("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||hasNestedCSSRule("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?(n=Array.from(e.parentRule.cssRules).indexOf(e),t.unshift(n)):e.parentStyleSheet&&(n=Array.from(e.parentStyleSheet.cssRules).indexOf(e),t.unshift(n)),t}function getIdAndStyleId(e,t,n){let i,r;return e?(e.ownerNode?i=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:i}):{}}function initStyleSheetObserver({styleSheetRuleCb: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:callbackWrapper((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=getIdAndStyleId(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:callbackWrapper((e,t,n)=>{var[i]=n,{id:r,styleId:o}=getIdAndStyleId(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:callbackWrapper((e,t,n)=>{var[i]=n,{id:r,styleId:o}=getIdAndStyleId(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:callbackWrapper((e,t,n)=>{var[i]=n,{id:r,styleId:o}=getIdAndStyleId(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=(canMonkeyPatchNestedCSSRule("CSSGroupingRule")?o.CSSGroupingRule=i.CSSGroupingRule:(canMonkeyPatchNestedCSSRule("CSSMediaRule")&&(o.CSSMediaRule=i.CSSMediaRule),canMonkeyPatchNestedCSSRule("CSSConditionRule")&&(o.CSSConditionRule=i.CSSConditionRule),canMonkeyPatchNestedCSSRule("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:callbackWrapper((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=getIdAndStyleId(t.parentStyleSheet,d,u.styleMirror);return(o&&-1!==o||a&&-1!==a)&&s({id:o,styleId:a,adds:[{rule:i,index:[...getNestedCSSRulePositions(t),r||0]}]}),e.apply(t,n)})}),t.prototype.deleteRule=new Proxy(a[e].deleteRule,{apply:callbackWrapper((e,t,n)=>{var[i]=n,{id:r,styleId:o}=getIdAndStyleId(t.parentStyleSheet,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,removes:[{index:[...getNestedCSSRulePositions(t),i]}]}),e.apply(t,n)})})}),callbackWrapper(()=>{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})})}function initAdoptedStyleSheetObserver({mirror:e,stylesheetManager:i},t){let r=null;r="#document"===t.nodeName?e.getId(t):e.getId(index.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}}),callbackWrapper(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function initStyleDeclarationObserver({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:callbackWrapper((e,t,n)=>{var i,r,[o,a,s]=n;return c.has(o)?p.apply(t,[o,a,s]):({id:i,styleId:r}=getIdAndStyleId(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:getNestedCSSRulePositions(t.parentRule)}),e.apply(t,n))})}),e.CSSStyleDeclaration.prototype.removeProperty);return e.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:callbackWrapper((e,t,n)=>{var i,r,[o]=n;return c.has(o)?a.apply(t,[o]):({id:i,styleId:r}=getIdAndStyleId(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:getNestedCSSRulePositions(t.parentRule)}),e.apply(t,n))})}),callbackWrapper(()=>{e.CSSStyleDeclaration.prototype.setProperty=p,e.CSSStyleDeclaration.prototype.removeProperty=a})}function initMediaInteractionObserver({mediaInteractionCb:s,blockClass:d,blockSelector:u,mirror:c,sampling:e,doc:t}){var n=callbackWrapper(a=>throttle(callbackWrapper(e=>{var t,n,i,r,o,e=getEventTarget(e);e&&!isBlocked(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=[on("play",n(MediaInteractions.Play),t),on("pause",n(MediaInteractions.Pause),t),on("seeked",n(MediaInteractions.Seeked),t),on("volumechange",n(MediaInteractions.VolumeChange),t),on("ratechange",n(MediaInteractions.RateChange),t)];return callbackWrapper(()=>{i.forEach(e=>e())})}function initFontObserver({fontCb:n,doc:e}){const t=e.defaultView;if(!t)return()=>{};const i=[],r=new WeakMap,o=t.FontFace;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=patch(e.fonts,"add",function(e){return function(t){return nativeSetTimeout(callbackWrapper(()=>{var e=r.get(t);e&&(n(e),r["delete"](t))}),0),e.apply(this,[t])}});return i.push(()=>{t.FontFace=o}),i.push(e),callbackWrapper(()=>{i.forEach(e=>e())})}function initSelectionObserver(e){const{doc:d,mirror:u,blockClass:c,blockSelector:l,selectionCb:p}=e;let h=!0;e=callbackWrapper(()=>{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);isBlocked(r,c,l,!0)||isBlocked(a,c,l,!0)||n.push({start:u.getId(r),startOffset:o,end:u.getId(a),endOffset:s})}p({ranges:n})}});return e(),on("selectionchange",e)}function initCustomElementObserver({doc:e,customElementCb:o}){e=e.defaultView;return e&&e.customElements?patch(e.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])}}):()=>{}}function mergeHooks(e,t){const{mutationCb:n,mousemoveCb:i,mouseInteractionCb:r,scrollCb:o,viewportResizeCb:a,inputCb:s,mediaInteractionCb:d,styleSheetRuleCb:u,styleDeclarationCb:c,canvasMutationCb:l,fontCb:p,selectionCb:h,customElementCb:f}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),n(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),i(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),r(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),o(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),a(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),s(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),d(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),u(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),c(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),l(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),p(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),h(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),f(...e)}}function initObservers(e,t={}){var n=e.doc.defaultView;if(!n)return()=>{};mergeHooks(e,t);let i;e.recordDOM&&(i=initMutationObserver(e,e.doc));const r=initMoveObserver(e),o=initMouseInteractionObserver(e),a=initScrollObserver(e),s=initViewportResizeObserver(e,{win:n}),d=initInputObserver(e),u=initMediaInteractionObserver(e);let c=()=>{},l=()=>{},p=()=>{},h=()=>{};e.recordDOM&&(c=initStyleSheetObserver(e,{win:n}),l=initAdoptedStyleSheetObserver(e,e.doc),p=initStyleDeclarationObserver(e,{win:n}),e.collectFonts)&&(h=initFontObserver(e));const f=initSelectionObserver(e),g=initCustomElementObserver(e),m=[];for(const v of e.plugins)m.push(v.observer(v.callback,n,v.options));return callbackWrapper(()=>{mutationBuffers.forEach(e=>e.reset()),null!=i&&i.disconnect(),r(),o(),a(),s(),d(),u(),c(),l(),p(),h(),f(),g(),m.forEach(e=>e())})}function hasNestedCSSRule(e){return"undefined"!=typeof window[e]}function canMonkeyPatchNestedCSSRule(e){return Boolean("undefined"!=typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class CrossOriginIframeMirror{constructor(e){__publicField(this,"iframeIdToRemoteIdMap",new WeakMap),__publicField(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,n,i){n=n||this.getIdToRemoteIdMap(e),i=i||this.getRemoteIdToIdMap(e);let r=n.get(t);return r||(r=this.generateIdFn(),n.set(t,r),i.set(r,t)),r}getIds(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 IframeManager{constructor(e){__publicField(this,"iframes",new WeakMap),__publicField(this,"crossOriginIframeMap",new WeakMap),__publicField(this,"crossOriginIframeMirror",new CrossOriginIframeMirror(genId)),__publicField(this,"crossOriginIframeStyleMirror"),__publicField(this,"crossOriginIframeRootIdMap",new WeakMap),__publicField(this,"mirror"),__publicField(this,"mutationCb"),__publicField(this,"wrappedEmit"),__publicField(this,"takeFullSnapshot"),__publicField(this,"loadListener"),__publicField(this,"stylesheetManager"),__publicField(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.takeFullSnapshot=e.takeFullSnapshot,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new CrossOriginIframeMirror(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}setTakeFullSnapshot(e){this.takeFullSnapshot=e}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e),!e.contentDocument&&e.contentWindow&&e.contentWindow.postMessage({type:"rrweb",origin:window.location.origin,snapshot:!0},"*")}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&null!=(t=e.contentWindow)&&t.addEventListener("message",this.handleMessage.bind(this)),null!=(t=this.loadListener)&&t.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&0<e.contentDocument.adoptedStyleSheets.length&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){var t,n=e;"rrweb"===n.data.type&&n.origin===n.data.origin&&(t=e.source)&&(t==window.parent&&window!=window.parent&&e.data.snapshot?this.takeFullSnapshot():(t=this.crossOriginIframeMap.get(e.source))&&(e=this.transformCrossOriginEvent(t,n.data.event))&&this.wrappedEmit(e,n.data.isCheckout))}transformCrossOriginEvent(n,e){var t;switch(e.type){case EventType.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:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Mutation,adds:[{parentId:this.mirror.getId(n),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case EventType.Meta:case EventType.Load:case EventType.DomContentLoaded:return!1;case EventType.Plugin:return e;case EventType.Custom:return this.replaceIds(e.data.payload,n,["id","parentId","previousId","nextId"]),e;case EventType.IncrementalSnapshot:switch(e.data.source){case IncrementalSource.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 IncrementalSource.Drag:case IncrementalSource.TouchMove:case IncrementalSource.MouseMove:return e.data.positions.forEach(e=>{this.replaceIds(e,n,["id"])}),e;case IncrementalSource.ViewportResize:return!1;case IncrementalSource.MediaInteraction:case IncrementalSource.MouseInteraction:case IncrementalSource.Scroll:case IncrementalSource.CanvasMutation:case IncrementalSource.Input:return this.replaceIds(e.data,n,["id"]),e;case IncrementalSource.StyleSheetRule:case IncrementalSource.StyleDeclaration:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleId"]),e;case IncrementalSource.Font:return e;case IncrementalSource.Selection:return e.data.ranges.forEach(e=>{this.replaceIds(e,n,["start","end"])}),e;case IncrementalSource.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===NodeType$2.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class ShadowDomManager{constructor(e){__publicField(this,"shadowDoms",new WeakSet),__publicField(this,"mutationCb"),__publicField(this,"scrollCb"),__publicField(this,"bypassOptions"),__publicField(this,"mirror"),__publicField(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(isNativeShadowDom(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);const n=initMutationObserver({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(initScrollObserver({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),nativeSetTimeout(()=>{e.adoptedStyleSheets&&0<e.adoptedStyleSheets.length&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(index.host(e))),this.restoreHandlers.push(initAdoptedStyleSheetObserver({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,i){const r=this;this.restoreHandlers.push(patch(e.prototype,"attachShadow",function(n){return function(e){var e=n.call(this,e),t=index.shadowRoot(this);return t&&inDom(this)&&r.addShadowRoot(t,i),e}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup="undefined"==typeof Uint8Array?[]:new Uint8Array(256),i$1=0;i$1<chars.length;i$1++)lookup[chars.charCodeAt(i$1)]=i$1;var n,encode=function(e){for(var t=new Uint8Array(e),n=t.length,i="",r=0;r<n;r+=3)i=(i=(i=(i+=chars[t[r]>>2])+chars[(3&t[r])<<4|t[r+1]>>4])+chars[(15&t[r+1])<<2|t[r+2]>>6])+chars[63&t[r+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i};const canvasVarMap=new Map;function variableListFor$1(e,t){let n=canvasVarMap.get(e);return n||(n=new Map,canvasVarMap.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const saveWebGLVar=(t,n,i)=>{if(t&&(isInstanceOfWebGLObject(t,n)||"object"==typeof t)){n=variableListFor$1(i,t.constructor.name);let e=n.indexOf(t);return-1===e&&(e=n.length,n.push(t)),e}};function serializeArg(e,t,n){var i;return e instanceof Array?e.map(e=>serializeArg(e,t,n)):null===e?e:e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray?{rr_type:e.constructor.name,args:[Object.values(e)]}:e instanceof ArrayBuffer?{rr_type:e.constructor.name,base64:encode(e)}:e instanceof DataView?{rr_type:e.constructor.name,args:[serializeArg(e.buffer,t,n),e.byteOffset,e.byteLength]}:e instanceof HTMLImageElement?(i=e["src"],{rr_type:e.constructor.name,src:i}):e instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:e.toDataURL()}:e instanceof ImageData?{rr_type:e.constructor.name,args:[serializeArg(e.data,t,n),e.width,e.height]}:isInstanceOfWebGLObject(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:saveWebGLVar(e,t,n)}:e}const serializeArgs=(e,t,n)=>e.map(e=>serializeArg(e,t,n)),isInstanceOfWebGLObject=(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 initCanvas2DMutationObserver(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=patch(i.CanvasRenderingContext2D.prototype,s,function(e){return function(...t){return isBlocked(this.canvas,r,o,!0)||nativeSetTimeout(()=>{var e=serializeArgs(t,i,this);n(this.canvas,{type:CanvasContext["2D"],property:s,args:e})},0),e.apply(this,t)}}),e.push(t))}catch{var a=hookSetter(i.CanvasRenderingContext2D.prototype,s,{set(e){n(this.canvas,{type:CanvasContext["2D"],property:s,args:[e],setter:!0})}});e.push(a)}return()=>{e.forEach(e=>e())}}function getNormalizedContextName(e){return"experimental-webgl"===e?"webgl":e}function initCanvasContextObserver(e,r,o,a){const t=[];try{var n=patch(e.HTMLCanvasElement.prototype,"getContext",function(i){return function(e,...t){var n;return isBlocked(this,r,o,!0)||(n=getNormalizedContextName(e),"__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 patchGLPrototype(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=patch(e,u,function(n){return function(...e){var t=n.apply(this,e);return saveWebGLVar(t,s,this),"tagName"in this.canvas&&!isBlocked(this.canvas,o,a,!0)&&(e=serializeArgs(e,s,this),e={type:i,property:u,args:e},r(this.canvas,e)),t}}),n.push(t))}catch{var d=hookSetter(e,u,{set(e){r(this.canvas,{type:i,property:u,args:[e],setter:!0})}});n.push(d)}return n}function initCanvasWebGLMutationObserver(e,t,n,i){const r=[];return r.push(...patchGLPrototype(t.WebGLRenderingContext.prototype,CanvasContext.WebGL,e,n,i,t)),"undefined"!=typeof t.WebGL2RenderingContext&&r.push(...patchGLPrototype(t.WebGL2RenderingContext.prototype,CanvasContext.WebGL2,e,n,i,t)),()=>{r.forEach(e=>e())}}const encodedJs="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",decodeBase64$1=e=>Uint8Array.from(atob(e),e=>e.charCodeAt(0)),blob="undefined"!=typeof window&&window.Blob&&new Blob([decodeBase64$1(encodedJs)],{type:"text/javascript;charset=utf-8"});function WorkerWrapper(e){let t;try{var n;if(t=blob&&(window.URL||window.webkitURL).createObjectURL(blob))return(n=new Worker(t,{name:null==e?void 0:e.name})).addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),n;throw""}catch(i){return new Worker("data:text/javascript;base64,"+encodedJs,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}class CanvasManager{constructor(e){__publicField(this,"pendingCanvasMutations",new Map),__publicField(this,"rafStamps",{latestId:0,invokeId:null}),__publicField(this,"mirror"),__publicField(this,"mutationCb"),__publicField(this,"resetObservers"),__publicField(this,"frozen",!1),__publicField(this,"locked",!1),__publicField(this,"processMutation",(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)});var{sampling:t="all",win:n,blockClass:i,blockSelector:r,recordCanvas:o,dataURLOptions:a}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&"all"===t&&this.initCanvasMutationObserver(n,i,r),o&&"number"==typeof t&&this.initCanvasFPSObserver(t,n,i,r,{dataURLOptions:a})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,n,i,r,o){const t=initCanvasContextObserver(n,i,r,!0),a=new Map,s=new WorkerWrapper,d=(s.onmessage=e=>{var t,n,i,r=e.data["id"];a.set(r,!1),"base64"in e.data&&({base64:e,type:t,width:n,height:i}=e.data,this.mutationCb({id:r,type:CanvasContext["2D"],commands:[{property:"clearRect",args:[0,0,n,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:e}],type:t}]},0,0]}]}))},1e3/e);let u=0,c;const l=()=>{const t=[];return n.document.querySelectorAll("canvas").forEach(e=>{isBlocked(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=initCanvasContextObserver(e,t,n,!1),r=initCanvas2DMutationObserver(this.processMutation.bind(this),e,t,n),o=initCanvasWebGLMutationObserver(this.processMutation.bind(this),e,t,n);this.resetObservers=()=>{i(),r(),o()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){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 StylesheetManager{constructor(e){__publicField(this,"trackedLinkElements",new WeakSet),__publicField(this,"mutationCb"),__publicField(this,"adoptedStyleSheetCb"),__publicField(this,"styleMirror",new StyleSheetMirror),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0!==e.length){var n={id:t,styleIds:[]},i=[];for(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:stringifyRule(o.rules[e],o.href),index:e});i.push({styleId:e,rules:Array.from(o.rules||CSSRule,(e,t)=>({rule:stringifyRule(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 ProcessedNodeManager{constructor(){__publicField(this,"nodeMap",new WeakMap),__publicField(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 wrappedEmit,takeFullSnapshot$1=()=>{},canvasManager,recording=!1;try{if(2!==Array.from([1],e=>2*e)[0]){const GNb=document.createElement("iframe");document.body.appendChild(GNb),Array.from=(null==(_a=GNb.contentWindow)?void 0:_a.Array.from)||Array.from,document.body.removeChild(GNb)}}catch(err){console.debug("Unable to override Array.from",err)}const mirror=createMirror$2();function record(e={}){const{emit:i,checkoutEveryNms:r,checkoutEveryNth:o,blockClass:n="rr-block",blockSelector:a=null,ignoreClass:P="rr-ignore",ignoreSelector:G=null,maskTextClass:s="rr-mask",maskTextSelector:d=null,inlineStylesheet:u=!0,maskAllInputs:D,maskInputOptions:t,slimDOMOptions:c,maskInputFn:l,maskTextFn:p,hooks:B,packFn:h,sampling:f={},dataURLOptions:g={},mousemoveWait:m,recordDOM:W=!0,recordCanvas:v=!1,recordCrossOriginIframes:$=!1,recordAfter:U="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:j=!1,collectFonts:z=!1,inlineImages:y=!1,plugins:b,keepIframeSrcFn:I=()=>!1,ignoreCSSAttributes:Z=new Set([]),errorHandler:V}=e,w=(registerErrorHandler(V),!$||window.parent===window);let C=!1;if(!w)try{window.parent.document&&(C=!1)}catch(J){C=!0}if(w&&!i)throw new Error("emit function is required");if(!w&&!C)return()=>{};void 0!==m&&void 0===f.mousemove&&(f.mousemove=m),mirror.reset();const S=!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},A=!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||{};polyfill$1();let Y,E=0;const H=e=>{for(const t of b||[])t.eventProcessor&&(e=t.eventProcessor(e));return e=h&&!C?h(e):e},T=(wrappedEmit=(e,t)=>{var n;e.timestamp=nowTimestamp(),null==(n=mutationBuffers[0])||!n.isFrozen()||e.type===EventType.FullSnapshot||e.type===EventType.IncrementalSnapshot&&e.data.source===IncrementalSource.Mutation||mutationBuffers.forEach(e=>e.unfreeze()),w?null!=i&&i(H(e),t):C&&(n={type:"rrweb",event:H(e),origin:window.location.origin,isCheckout:t},window.parent.postMessage(n,"*")),e.type===EventType.FullSnapshot?(Y=e,E=0):e.type!==EventType.IncrementalSnapshot||e.data.source===IncrementalSource.Mutation&&e.data.isAttachIframe||(E++,t=o&&E>=o,n=r&&e.timestamp-Y.timestamp>r,(t||n)&&takeFullSnapshot$1(!0))},e=>{wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Mutation,...e}})}),K=e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Scroll,...e}}),X=e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.CanvasMutation,...e}});const _=new StylesheetManager({mutationCb:T,adoptedStyleSheetCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.AdoptedStyleSheet,...e}})}),x=new IframeManager({mirror:mirror,mutationCb:T,stylesheetManager:_,recordCrossOriginIframes:$,wrappedEmit:wrappedEmit,takeFullSnapshot:takeFullSnapshot$1});for(const N of b||[])N.getMirror&&N.getMirror({nodeMirror:mirror,crossOriginIframeMirror:x.crossOriginIframeMirror,crossOriginIframeStyleMirror:x.crossOriginIframeStyleMirror});const R=new ProcessedNodeManager,k=(canvasManager=new CanvasManager({recordCanvas:v,mutationCb:X,win:window,blockClass:n,blockSelector:a,mirror:mirror,sampling:f.canvas,dataURLOptions:g}),new ShadowDomManager({mutationCb:T,scrollCb:K,bypassOptions:{blockClass:n,blockSelector:a,maskTextClass:s,maskTextSelector:d,inlineStylesheet:u,maskInputOptions:S,dataURLOptions:g,maskTextFn:p,maskInputFn:l,recordCanvas:v,inlineImages:y,sampling:f,slimDOMOptions:A,iframeManager:x,stylesheetManager:_,canvasManager:canvasManager,keepIframeSrcFn:I,processedNodeManager:R},mirror:mirror}));takeFullSnapshot$1=(e=!1)=>{if(W){wrappedEmit({type:EventType.Meta,data:{href:window.location.href,width:getWindowWidth(),height:getWindowHeight()}},e),_.reset(),k.init(),mutationBuffers.forEach(e=>e.lock());var t=snapshot(document,{mirror:mirror,blockClass:n,blockSelector:a,maskTextClass:s,maskTextSelector:d,inlineStylesheet:u,maskAllInputs:S,maskTextFn:p,maskInputFn:l,slimDOM:A,dataURLOptions:g,recordCanvas:v,inlineImages:y,onSerialize:e=>{isSerializedIframe(e,mirror)&&x.addIframe(e),isSerializedStylesheet(e,mirror)&&_.trackLinkElement(e),hasShadowRoot(e)&&k.addShadowRoot(index.shadowRoot(e),document)},onIframeLoad:(e,t)=>{x.attachIframe(e,t),k.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{_.attachLinkElement(e,t)},keepIframeSrcFn:I});if(!t)return console.warn("Failed to snapshot the document");wrappedEmit({type:EventType.FullSnapshot,data:{node:t,initialOffset:getWindowScroll(window)}},e),mutationBuffers.forEach(e=>e.unlock()),document.adoptedStyleSheets&&0<document.adoptedStyleSheets.length&&_.adoptStyleSheets(document.adoptedStyleSheets,mirror.getId(document))}},x.setTakeFullSnapshot(takeFullSnapshot$1);try{const M=[],L=e=>{return callbackWrapper(initObservers)({mutationCb:T,mousemoveCb:(e,t)=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.ViewportResize,...e}}),inputCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Input,...e}}),mediaInteractionCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.MediaInteraction,...e}}),styleSheetRuleCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.StyleSheetRule,...e}}),styleDeclarationCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.StyleDeclaration,...e}}),canvasMutationCb:X,fontCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Font,...e}}),selectionCb:e=>{wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Selection,...e}})},customElementCb:e=>{wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.CustomElement,...e}})},blockClass:n,ignoreClass:P,ignoreSelector:G,maskTextClass:s,maskTextSelector:d,maskInputOptions:S,inlineStylesheet:u,sampling:f,recordDOM:W,recordCanvas:v,inlineImages:y,userTriggeredOnInput:j,collectFonts:z,doc:e,maskInputFn:l,maskTextFn:p,keepIframeSrcFn:I,blockSelector:a,slimDOMOptions:A,dataURLOptions:g,mirror:mirror,iframeManager:x,stylesheetManager:_,shadowDomManager:k,processedNodeManager:R,canvasManager:canvasManager,ignoreCSSAttributes:Z,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=>wrappedEmit({type:EventType.Plugin,data:{plugin:t.name,payload:e}})})))||[]},B)},F=(x.addLoadListener(e=>{try{M.push(L(e.contentDocument))}catch(t){console.warn(t)}}),()=>{takeFullSnapshot$1(),M.push(L(document)),recording=!0});return"interactive"===document.readyState||"complete"===document.readyState?F():(M.push(on("DOMContentLoaded",()=>{wrappedEmit({type:EventType.DomContentLoaded,data:{}}),"DOMContentLoaded"===U&&F()})),M.push(on("load",()=>{wrappedEmit({type:EventType.Load,data:{}}),"load"===U&&F()},window))),()=>{M.forEach(e=>e()),R.destroy(),recording=!1,unregisterErrorHandler()}}catch(O){console.warn(O)}}record.addCustomEvent=(e,t)=>{if(!recording)throw new Error("please add custom event after start recording");wrappedEmit({type:EventType.Custom,data:{tag:e,payload:t}})},record.freezePage=()=>{mutationBuffers.forEach(e=>e.freeze())},record.takeFullSnapshot=e=>{if(!recording)throw new Error("please take full snapshot after start recording");takeFullSnapshot$1(e)},record.mirror=mirror,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(n=n||{});var __assign=function(){return(__assign=Object.assign||function __assign(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},SessionRecorderBuffer=function(){function e(e,t){void 0===t&&(t=Infinity),this.data=[],this.sequenceNumber=0,this.interval=e,this.maxCount=t,this.doubledMaxCount=2*t}return e.prototype.isEmpty=function(){return 0===this.data.length},e.prototype.count=function(){return this.data.length},e.prototype.clear=function(){this.data.length=0},e.prototype.clearSequence=function(){this.sequenceNumber=0},e.prototype.push=function(e){this.data.push(e),this.checkRateLimit()},e.prototype.pack=function(e,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,function(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},e.prototype.checkRateLimit=function(){var e=this.data.length;e>=this.doubledMaxCount&&e%this.maxCount==0&&this.data[e-1].timestamp-this.data[e-this.doubledMaxCount].timestamp<=this.interval&&this.onRateLimit&&this.onRateLimit()},e}(),MAX_BACKOFF=6,MAX_FAILURES=100,SendQueue=function(){function e(e,t){void 0===t&&(t=MAX_FAILURES),this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.sendFn=e,this.maxFailures=t}return e.prototype.isEmpty=function(){return this.queue.length<=0},e.prototype.stop=function(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.stopped=!0,clearTimeout(this.timer),delete this.timer},e.prototype.start=function(){this.stopped=!1},e.prototype.push=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.queue).push.apply(e,t),this.next()},e.prototype.next=function(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)},e.prototype.incrementFailure=function(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),t},e.prototype.pass=function(e,t){void 0===t&&(t=!0),this.unloads["delete"](e),this.pending["delete"](e),this.failures.clear();e=this.queue.indexOf(e);0<=e&&this.queue.splice(e,1),!this.stopped&&t&&this.next()},e.prototype.fail=function(e,t){void 0===t&&(t=!0),this.unloads["delete"](e),this.pending["delete"](e);var n=this.incrementFailure(e);!this.stopped&&t&&(n>=this.maxFailures&&(this.onTimeout&&this.onTimeout(),this.pass(e,!1)),this.retryLater(1e3*Math.pow(2,Math.min(n-1,MAX_BACKOFF))))},e.prototype.retryLater=function(e){var t=this;this.timer=setTimeout$1(function(){delete t.timer,t.next()},e)},e.prototype.failed=function(){return 0<this.failures.get(this.queue[0])&&null!=this.timer},e.prototype.send=function(e,t,n){var i=this;return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(function(){return i.pass(e,n)},function(){return i.fail(e,n)})},e.prototype.drain=function(e,t){var n;if(void 0===t&&(t=!0),(n=this.queue).push.apply(n,e),this.failed())return Promise$4.reject();for(var i=[],r=0,o=this.queue;r<o.length;r++){var a=o[r];this.pending.has(a)?this.retryPending&&t&&!this.unloads.has(a)&&(this.incrementFailure(a),i.push(this.send(a,t,!1))):i.push(this.send(a,t,!1))}return Promise$4.all(i)},e}(),RECORDING_CONFIG_WORKERURL$1="recording.workerUrl",MAX_SIZE=1e6,RESOURCE_CACHING$1="resourceCaching",Transport=function(){function e(e,t,n){this.WorkerClass=e,this.pendo=t,this.api=n,this.maxSize=MAX_SIZE,this.isResourceCachingEnabled=this.api.ConfigReader.get(RESOURCE_CACHING$1)}return e.prototype.start=function(e){if(!e.disableWorker&&!this.worker)try{var t;e.workerOverride?this.worker=e.workerOverride:(t=this.api.ConfigReader.get(RECORDING_CONFIG_WORKERURL$1),this.usesSelfHostedWorker=null!=t,this.worker=t?new Worker(t):new this.WorkerClass),this.worker.onmessage=this.pendo._.bind(this._onMessage,this),this.worker.onerror=this.pendo._.bind(this._onError,this)}catch(n){this.worker=null}},e.prototype.stop=function(){this.worker&&(this.worker.terminate(),delete this.worker)},e.prototype.send=function(e,t,n){var i,r=e.url,o=e.payload;if(0<(n=void 0===n?0:n)&&(r="".concat(r,"&rt=").concat(n)),this.worker&&!t&&o)return(i={}).promise=new Promise$4(function(e,t){i.resolve=e,i.reject=t}),this.workerResponse=i,this.worker.postMessage({url:r,payload:o,shouldCacheResources:this.isResourceCachingEnabled}),i.promise;if(!e.body){n=JSON.stringify(o);if(n.length>this.maxSize)throw(o=new Error("maximum recording payload size exceeded")).reason="HEAVY_EVENT",o;e.body=this.pendo.compress(n,"binary"),delete e.payload}return r="".concat(r,"&ct=").concat((new Date).getTime()),this.post(r,{keepalive:t,body:e.body})},e.prototype.post=function(e,t){return t.method="POST",t.keepalive&&this.api.transmit.fetchKeepalive.supported()?this.api.transmit.fetchKeepalive(e,t):t.keepalive&&this.api.transmit.sendBeacon.supported()?this.api.transmit.sendBeacon(e,new Blob([t.body]))?Promise$4.resolve():Promise$4.reject(new Error("sendBeacon failed to send recording data")):this.pendo.ajax.post(e,t.body)},e.prototype._onMessage=function(e){e.data&&e.data.type?this.onWorkerMessage(e.data):(e.data&&e.data.error&&((e.data.status&&e.data.status<500||null==e.data.sequence)&&this.api.log.critical("Failed to send recording data from web worker",{error:e.data.error}),this.workerResponse)&&(this.workerResponse.reject(),this.workerResponse=null),this.workerResponse&&(this.workerResponse.resolve(),this.workerResponse=null))},e.prototype._onError=function(){this.onError&&this.onError()},e}(),ELEMENT_NODE=1,INPUT_MASK="*".repeat(10);function isElementNode(e){return!!e&&e.nodeType===ELEMENT_NODE}function distanceToMatch(e,t,n,i){return void 0===n&&(n=Infinity),void 0===i&&(i=0),!isElementNode(e)||n<i?-1:e.matches(t)?i:distanceToMatch(e.parentNode,t,n,i+1)}function shouldMask(e,t){var n=t.maskAllText,i=t.maskTextSelector,t=t.unmaskTextSelector;try{var r=isElementNode(e)?e:e.parentElement;if(null===r)return!1;var o=-1,a=-1;if(n){if((a=distanceToMatch(r,t))<0)return!0;o=distanceToMatch(r,i,0<=a?a:Infinity)}else{if((o=distanceToMatch(r,i))<0)return!1;a=distanceToMatch(r,t,0<=o?o:Infinity)}return 0<=o?!(0<=a)||o<=a:!(0<=a||!n)}catch(s){}return!!n}function shouldMaskInput(e,t){if(t&&isElementNode(e)){var n=(e.tagName||"").toLowerCase(),e=(e.type||"").toLowerCase();if(t[n]||t[e])return!0}return!1}function maskInput(e,t,n){return shouldMaskInput(n,e.maskInputOptions)||shouldMask(n,e)?t?INPUT_MASK:"":t}function maskText(e,t,n){return shouldMask(n,e)?t?t.replace(/[\S]/g,"*"):"":t}function SessionRecorder(e,t){this.record=e,this.lastKeyFrameTime=0,this.eventsSinceLastKeyFrame=0,this.currentRecordingSize=0,this.WorkerClass=t}SessionRecorder.FULL_SNAPSHOT=2,SessionRecorder.META=4,SessionRecorder.INCREMENTAL_SNAPSHOT=3,SessionRecorder.INCREMENTAL_SOURCE_MUTATION=0,SessionRecorder.INCREMENTAL_SOURCE_INPUT=5,SessionRecorder.SEND_INTERVAL=5e3,SessionRecorder.MAX_SEND_COUNT=2e4;var RECORDING_CONFIG="recording",RECORDING_CONFIG_ENABLED="recording.enabled",RECORDING_CONFIG_AUTO_START="recording.autoStart",RECORDING_CONFIG_WORKERURL="recording.workerUrl",RECORDING_CONFIG_ON_RECORDING_START="recording.onRecordingStart",RECORDING_CONFIG_ON_RECORDING_STOP="recording.onRecordingStop",RECORDING_CONFIG_WORKER_OVERRIDE="recording.workerOverride",RESOURCE_CACHING="resourceCaching",ONE_DAY_IN_MILLISECONDS=864e5,THIRTY_MINUTES=18e5,ONE_HUNDRED_MB_IN_BYTES=104857600,SESSION_RECORDING_ID="pendo_srId",SESSION_RECORDING_LAST_USER_INTERACTION_EVENT="pendo_srLastUserInteractionEvent";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=0,n=Object.getOwnPropertyNames(e.constructor.prototype);t<n.length;t++){var i=n[t];"constructor"!==i&&(e[i]=wrapMethodWithCatch(e[i]))}return e}function decodeBase64(e,t){var n=atob(e);if(t){for(var i=new Uint8Array(n.length),r=0,o=n.length;r<o;++r)i[r]=n.charCodeAt(r);return new TextDecoder("utf-16le").decode(new Uint16Array(i.buffer))}return n}function createURL(e,t,n){t=t===undefined?null:t,e=decodeBase64(e,n!==undefined&&n),n=e.indexOf("\n",10)+1,n=e.substring(n)+(t?"//# sourceMappingURL="+t:""),e=new Blob([n],{type:"application/javascript"});return URL.createObjectURL(e)}function createBase64WorkerFactory(t,n,i){var r;return function WorkerFactory(e){return r=r||createURL(t,n,i),new Worker(r,e)}}SessionRecorder.prototype.addConfigOptions=function(){var e=this.api.ConfigReader;e.addOption(RECORDING_CONFIG,[e.sources.PENDO_CONFIG_SRC],{}),e.addOption(RECORDING_CONFIG_AUTO_START,[e.sources.SNIPPET_SRC],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)},SessionRecorder.prototype.name="Replay",SessionRecorder.prototype.initialize=function(e,t){this.pendo=e,this.api=t;var n=this.pendo._.bind,i=this.api.ConfigReader,r=(this.buffer=new SessionRecorderBuffer(SessionRecorder.SEND_INTERVAL,SessionRecorder.MAX_SEND_COUNT),this.buffer.onRateLimit=n(this.rateLimitExceeded,this),this.transport=new Transport(this.WorkerClass,e,t),this.transport.onError=n(this.sendFailure,this,"WORKER_ERROR"),this.transport.onWorkerMessage=n(this.onWorkerMessage,this),this.sendQueue=new SendQueue(n(this.transport.send,this.transport)),this.sendQueue.onTimeout=n(this.sendFailure,this,"SEND_TIMEOUT"),this.isNewSession=!1,this.addConfigOptions(),this.config=i.get(RECORDING_CONFIG),this.onRecordingStart=e._.isFunction(i.get(RECORDING_CONFIG_ON_RECORDING_START))?i.get(RECORDING_CONFIG_ON_RECORDING_START):function(){},this.onRecordingStop=e._.isFunction(i.get(RECORDING_CONFIG_ON_RECORDING_STOP))?i.get(RECORDING_CONFIG_ON_RECORDING_STOP):function(){},!1),o=i.get(RECORDING_CONFIG_ENABLED);e._.isBoolean(o)?(r=o)||this.api.log.info("Session Replay disabled via the snippet config"):r=this.config.enabled,r&&(i.get("excludeNonGuideAnalytics")?this.api.log.info("Session Replay is disabled because excludeNonGuideAnalytics is enabled"):(o=this.sessionIdKey="".concat(SESSION_RECORDING_ID,".").concat(e.apiKey),e.recording={start:n(this.start,this),stop:n(this.stop,this)},this.subscriptions=[t.attachEvent(t.Events,"appHidden",n(this.handleHidden,this)),t.attachEvent(t.Events,"appUnloaded",n(this.handleUnload,this)),t.attachEvent(t.Events,"identify",n(this.changeIdentity,this)),t.attachEvent(t.Events,"metadata",n(this.changeMetadata,this)),t.attachEvent(t.Events,"eventCaptured",n(this.addRecordingId,this)),t.attachEvent(t.Events,"transmit:locked",n(this.stop,this)),t.attachEvent(t.Events,"transmit:unlocked",n(this._start,this)),t.attachEvent(t.frames.getChannel(),"message",n(this._frameMessage,this)),t.attachEvent(t.Events,"tabIdChanged:self",n(this.handleTabIdChange,this))],t.store.getters["frames/isReady"]()?this.ready():this.subscriptions.push(t.attachEvent(t.Events,"ready",n(this.ready,this))),t.agentStorage.registry.addSession(o),t.agentStorage.registry.addSession(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)))},SessionRecorder.prototype.teardown=function(){delete this.pendo.recording,delete this.allowStart,this.pendo._.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0,this.stop(),this.transport.stop()},SessionRecorder.prototype.ready=function(){!1!==this.api.ConfigReader.get(RECORDING_CONFIG_AUTO_START)&&this.start()},SessionRecorder.prototype.changeIdentity=function(e){var t=this;this.allowStart&&(clearTimeout(this._changeIdentityTimer),this.isRecording()&&this.stop(),this.visitorId=e.data[0].visitor_id,this.accountId=e.data[0].account_id,this._changeIdentityTimer=setTimeout$1(function(){t._start()},500))},SessionRecorder.prototype.changeMetadata=function(e){var t=this,e=e.data[0],n=e.hashChanged,e=e.options;if(this.allowStart&&n)return clearTimeout(this._changeIdentityTimer),this.visitorId=e.visitor.id,this.accountId=e.account.id,this.fetchVisitorConfig().then(function(e){e&&e.enable||!t.isRecording()?e&&e.enable&&!t.isRecording()&&t._startRecordingForVisitor(e):t.stop()})["catch"](function(e){t.api.log.critical("Failed to re-fetch recording config",{error:e}),t.logStopReason("VISITOR_CONFIG_ERROR")})},SessionRecorder.prototype.snapshot=function(){this.isRecording()&&(this.send(),this.record.takeFullSnapshot())},SessionRecorder.prototype.isRecording=function(){return null!=this.interval},SessionRecorder.prototype.recordingConfig=function(e){var e=this.pendo._.extend({},this.config.options,e),t={maskAllText:null==e.privateByDefault||e.privateByDefault,maskTextSelector:[".pendo-sr-mask"].concat(e.maskedSelectors||[]).join(","),unmaskTextSelector:[".pendo-sr-unmask"].concat(e.unmaskedSelectors||[]).join(","),maskInputOptions:{}};return this.pendo._.isObject(e.maskInputOptions)&&(t.maskInputOptions=e.maskInputOptions),t.maskInputOptions=this.pendo._.extend(t.maskInputOptions,{email:!0,password:!0,tel:!0}),{maskInputFn:this.pendo._.partial(maskInput,t),maskTextFn:this.pendo._.partial(maskText,t),maskTextSelector:"*",maskTextClass:null,maskInputOptions:t.maskInputOptions,blockClass:null,blockSelector:[".pendo-ignore",".pendo-sr-ignore"].concat(e.blockedSelectors||[]).join(","),recordCrossOriginIframes:null==e.recordCrossOriginIframes||e.recordCrossOriginIframes}},SessionRecorder.prototype.start=function(){this._restartPtm=this.api.analytics.ptm().pause(),this.allowStart=!0,this.visitorId=this.pendo.get_visitor_id(),this.accountId=this.pendo.get_account_id(),this._start()},SessionRecorder.prototype._markEvents=function(e){if(this.recordingId)for(var t=0,n=e;t<n.length;t++){var i=n[t];i.visitor_id===this.visitorId&&"identify"!==i.type&&(i.recordingId=this.recordingId,i.recordingSessionId=this.sessionId(this.recordingId))}},SessionRecorder.prototype.restartPtm=function(){if(this.pendo._.isFunction(this._restartPtm)){this._markEvents(this.pendo.buffers.events);for(var e=0,t=this.pendo.buffers.silos;e<t.length;e++){var n=t[e];this._markEvents(n)}this._restartPtm(),this._restartPtm=null}},SessionRecorder.prototype._start=function(){var t=this;if(!this.isRecording()&&this.pendo.isSendingEvents()&&this.allowStart)return this.fetchVisitorConfig().then(function(e){t.allowStart&&(e&&e.enable?t._startRecordingForVisitor(e):(t.restartPtm(),t.logStopReason("VISITOR_DISABLED")))})["catch"](function(e){t.restartPtm(),t.api.log.critical("Failed to fetch recording config",{error:e}),t.logStopReason("VISITOR_CONFIG_ERROR")})},SessionRecorder.prototype._startRecordingForVisitor=function(e){var t=this;if(this.transport.start(this.config),this.pendo._.get(this.config,"disableFallback",!0)&&!this.transport.worker)this.restartPtm(),this.pendo.log("Worker failed to start and main thread fallback is disabled. Recording prevented from starting."),this.logStopReason("WORKER_ERROR");else try{var n=this.pendo._.bind,i=(this.visitorConfig=e,this.clearOldSessionId(),this.sendQueue.start(),this.interval=setInterval(function(){t.sendQueue.failed()||t.send()},SessionRecorder.SEND_INTERVAL),this.recordingConfig(e));this._stop=this.record(this.pendo._.extend({emit:n(this.emit,this)},i)),this._refreshIds(),this.onRecordingStart()}catch(r){this.restartPtm(),this.logStopReason("RECORDING_ERROR")}},SessionRecorder.prototype._sendIds=function(){window==window.top&&this.api.frames.getChannel().postMessage({type:"pendo:sr:id",recordingId:this.recordingId,_sessionId:this._sessionId,topId:this.api.store.state.frames.topId})},SessionRecorder.prototype._refreshIds=function(e){window!=window.top&&this.api.frames.getChannel().postMessage({type:"pendo:sr:refresh"})},SessionRecorder.prototype._frameMessage=function(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()},SessionRecorder.prototype.clearSessionId=function(){delete this._sessionId,this.api.sessionStorage.removeItem(SESSION_RECORDING_ID),this.api.sessionStorage.removeItem(this.sessionIdKey)},SessionRecorder.prototype.sessionId=function(e){var t,n;return void 0===e&&(e=this.pendo.randomString(16)),this._sessionId||((t=this.api.sessionStorage.getItem(this.sessionIdKey))||((n=this.api.sessionStorage.getItem(SESSION_RECORDING_ID))?(t=n,this.api.sessionStorage.removeItem(SESSION_RECORDING_ID)):t=e,this.api.sessionStorage.setItem(this.sessionIdKey,t)),this._sessionId=t),this._sessionId},SessionRecorder.prototype.clearOldSessionId=function(){var e=this.getLastUserInteractionEventInformation();if(e){var t=e.timestamp,e=e.visitorId===this.visitorId&&e.accountId===this.accountId,t=t>Date.now()-this.pendo._.get(this.visitorConfig,"inactivityDuration",THIRTY_MINUTES);if(e&&t)return}this.clearSessionInfo(),this.isNewSession=!0},SessionRecorder.prototype.clearSessionInfo=function(){this.currentRecordingSize=0,this.clearSessionId(),this.clearLastUserInteractionEventInformation()},SessionRecorder.prototype.isUserInteraction=function(e){return e.type===SessionRecorder.INCREMENTAL_SNAPSHOT&&e.data.source>SessionRecorder.INCREMENTAL_SOURCE_MUTATION&&e.data.source<=SessionRecorder.INCREMENTAL_SOURCE_INPUT},SessionRecorder.prototype.storeLastUserInteractionEventInformation=function(e,t,n,i){(this.isUserInteraction(e)||i)&&(this.lastUserInteractionEventInfo={timestamp:e.timestamp,visitorId:t,accountId:n},this.api.sessionStorage.setItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT,JSON.stringify(this.lastUserInteractionEventInfo)))},SessionRecorder.prototype.clearLastUserInteractionEventInformation=function(){delete this.lastUserInteractionEventInfo,this.api.sessionStorage.removeItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)},SessionRecorder.prototype.getLastUserInteractionEventInformation=function(){if(this.lastUserInteractionEventInfo)return this.lastUserInteractionEventInfo;try{return this.lastUserInteractionEventInfo=JSON.parse(this.api.sessionStorage.getItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)),this.lastUserInteractionEventInfo}catch(e){return null}},SessionRecorder.prototype.emit=function(e){e.timestamp&&e.timestamp.getTime&&(e.timestamp=e.timestamp.getTime()),e.timestamp||(e.timestamp=(new Date).getTime());var t=e.type===SessionRecorder.META,n=e.type===SessionRecorder.FULL_SNAPSHOT,i=this.pendo._.get(this.getLastUserInteractionEventInformation(),"timestamp"),r=!i&&t?!0:!1,r=(this.storeLastUserInteractionEventInformation(e,this.visitorId,this.accountId,r),this.pendo._.get(this.visitorConfig,"inactivityDuration",THIRTY_MINUTES));i&&e.timestamp-i>r&&!n&&!t?(this.send(),this.clearSessionInfo(),this.snapshot()):(t&&this.send(),this.buffer.push(e),n?(this.lastKeyFrameTime=e.timestamp,this.eventsSinceLastKeyFrame=0,this.recordingId=this.pendo.randomString(16),this.buffer.clearSequence(),this.sessionId(this.recordingId),this.restartPtm(),this._sendIds(),this.send({keyframe:!0})):!t&&(this.eventsSinceLastKeyFrame+=1,i=e.timestamp-this.lastKeyFrameTime,r=ONE_DAY_IN_MILLISECONDS<=i,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),r||n&&t||e)&&(this.currentRecordingSize=0,this.snapshot()))},SessionRecorder.prototype.updateCurrentRecordingSize=function(e){this.currentRecordingSize+=e},SessionRecorder.prototype.onWorkerMessage=function(e){switch(e.type){case"recordingPayloadSize":var t=e.recordingPayloadSize,n=e.exceedsPayloadSizeLimit;if(!t)return;if(n)return this.stop(),void this.logStopReason("BIG_PAYLOAD",t);this.updateCurrentRecordingSize(t);break;case"hostedResources":n=e.hostedResourcesEvent;n&&this.sendHostedResources(n)}},SessionRecorder.prototype.addRecordingId=function(e){this.recordingId&&e&&e.data&&e.data.length&&"recording"!==(e=e.data[0]).type&&"identify"!==e.type&&(e.visitor_id!==this.visitorId?(this.api.log.warn("Visitor id has diverged from agent"),this.stop()):this._markEvents([e]))},SessionRecorder.prototype.stop=function(){this._stop&&this._stop(),this.send(),this.sendQueue.stop(),this.recordingId=null,clearInterval(this.interval),this.interval=null,this._stop=null,this.visitorConfig=null,this.visitorId=null,this.accountId=null,this.clearSessionInfo(),this.onRecordingStop()},SessionRecorder.prototype.handleHidden=function(){this.send({hidden:!0})},SessionRecorder.prototype.handleUnload=function(){this.send({unload:!0})},SessionRecorder.prototype.buildRequestUrl=function(e,t){t=this.pendo._.extend({},this.api.agent.getJwtInfoCopy(),t),t=this.pendo._.map(t,function(e,t){return"".concat(t,"=").concat(e)}).join("&");return t.length?"".concat(e,"?").concat(t):e},SessionRecorder.prototype.sendFailure=function(e){this.stop(),this.logStopReason(e)},SessionRecorder.prototype.rateLimitExceeded=function(){this.send(),this.stop(),this.logStopReason("DATA_OVERLOAD")},SessionRecorder.prototype.send=function(e){var e=void 0===e?{}:e,t=e.unload,t=void 0!==t&&t,n=e.keyframe,n=void 0!==n&&n,e=e.hidden,e=void 0!==e&&e;if(this.isRecording()&&this.buffer&&this.recordingId&&!this.buffer.isEmpty())if(this.pendo.isSendingEvents()){var i=this.api.EventTracer.addTracerIds({}),n=this.pendo._.extend({type:"recording",visitorId:this.visitorId,accountId:this.accountId,keyFrame:!!n,lastKeyFrame:this.lastKeyFrameTime,recordingId:this.recordingId,recordingSessionId:this.sessionId(this.recordingId),url:this.pendo.url.get()},i),i=(this.transport.usesSelfHostedWorker&&(n.usesSelfHostedWorker=!0),this.api.Events.eventCaptured.trigger(n),{v:this.pendo.VERSION,recordingId:this.recordingId}),i=(n.keyFrame&&(i.kf=1),this.isNewSession&&(this.isNewSession=!(i.ns=1)),this.buildRequestUrl("".concat(this.pendo.HOST,"/data/rec/").concat(this.pendo.apiKey),i)),n=this.buffer.pack(n,this.pendo._);if(t||e)try{this.sendQueue.drain([{url:i,payload:n}],t)}catch(r){r.reason&&this.logStopReason(r.reason)}else this.sendQueue.push({url:i,payload:n});this.buffer.isEmpty()||this.send({unload:t})}else this.buffer.clear()},SessionRecorder.prototype.fetchVisitorConfig=function(){var e=this.pendo.compress({url:this.pendo.url.get(),metadata:this.pendo.getSerializedMetadata(),visitorId:this.visitorId,accountId:this.accountId}),e=this.buildRequestUrl("".concat(this.pendo.HOST,"/data/recordingconf/").concat(this.pendo.apiKey),{jzb:e,ct:(new Date).getTime(),v:this.pendo.VERSION});return fetch(e,{method:"GET"}).then(function(e){return e.json()})},SessionRecorder.prototype.logStopReason=function(e,t){var n=this,i=this.api.EventTracer.addTracerIds({}),e=this.pendo._.extend({type:"recording",visitorId:this.visitorId||this.pendo.get_visitor_id(),accountId:this.accountId||this.pendo.get_account_id(),browserTime:(new Date).getTime(),keyFrame:!1,lastKeyFrame:0,recordingId:"log",recordingSessionId:"log",url:this.pendo.url.get(),subType:"log",recordingPayload:[],sequence:0,recordingPayloadCount:0,props:__assign({reason:e},t&&{error:t})},i),t=this.pendo.compress(e),i=this.buildRequestUrl("".concat(this.pendo.HOST,"/data/rec/").concat(this.pendo.apiKey),{jzb:t,ct:(new Date).getTime(),v:this.pendo.VERSION,recordingId:e.recordingId}),t=this.pendo.compress(e,"binary");return this.transport.post(i,{body:t,keepalive:!0})["catch"](function(e){n.api.log.critical("Failed to send reason for stopping recording",{error:e})})},SessionRecorder.prototype.sendHostedResources=function(e){var t=this,n=this.api.EventTracer.addTracerIds({}),e=this.pendo._.extend(__assign(__assign({},e),{browserTime:(new Date).getTime()}),n),n=this.buildRequestUrl("".concat(this.pendo.HOST,"/data/rec/").concat(this.pendo.apiKey),{ct:(new Date).getTime(),v:this.pendo.VERSION,recordingId:e.recordingId}),e=this.pendo.compress(e,"binary");return this.transport.post(n,{body:e,keepalive:!0})["catch"](function(e){t.api.log.critical("Failed to send hosted resources for recording event",{error:e})})};var WorkerFactory=createBase64WorkerFactory("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwp2YXIgd29ya2VyX2NvZGUgPSAoZnVuY3Rpb24gKGV4cG9ydHMpIHsKICAgICd1c2Ugc3RyaWN0JzsKCiAgICB2YXIgYjY0ID0gKGZ1bmN0aW9uKCkgewoKICAgICAgICB2YXIgbG9va3VwID0gJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5LV8nLnNwbGl0KCcnKTsKCiAgICAgICAgcmV0dXJuIHsKICAgICAgICAgICAgJ3VpbnQ4VG9CYXNlNjQnOiB1aW50OFRvQmFzZTY0CiAgICAgICAgfTsKCiAgICAgICAgZnVuY3Rpb24gdWludDhUb0Jhc2U2NCh1aW50OCkgewogICAgICAgICAgICB2YXIgaSwKICAgICAgICAgICAgICAgIGV4dHJhQnl0ZXMgPSB1aW50OC5sZW5ndGggJSAzLCAvLyBpZiB3ZSBoYXZlIDEgYnl0ZSBsZWZ0LCBwYWQgMiBieXRlcwogICAgICAgICAgICAgICAgb3V0cHV0ID0gJycsCiAgICAgICAgICAgICAgICB0ZW1wLCBsZW5ndGg7CgogICAgICAgICAgICBmdW5jdGlvbiB0cmlwbGV0VG9CYXNlNjQobnVtKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gbG9va3VwW251bSA+PiAxOCAmIDB4M0ZdICsgbG9va3VwW251bSA+PiAxMiAmIDB4M0ZdICsgbG9va3VwW251bSA+PiA2ICYgMHgzRl0gKyBsb29rdXBbbnVtICYgMHgzRl07CiAgICAgICAgICAgIH0KCiAgICAJCS8vIGdvIHRocm91Z2ggdGhlIGFycmF5IGV2ZXJ5IHRocmVlIGJ5dGVzLCB3ZSdsbCBkZWFsIHdpdGggdHJhaWxpbmcgc3R1ZmYgbGF0ZXIKICAgICAgICAgICAgZm9yIChpID0gMCwgbGVuZ3RoID0gdWludDgubGVuZ3RoIC0gZXh0cmFCeXRlczsgaSA8IGxlbmd0aDsgaSArPSAzKSB7CiAgICAgICAgICAgICAgICB0ZW1wID0gKHVpbnQ4W2ldIDw8IDE2KSArICh1aW50OFtpICsgMV0gPDwgOCkgKyAodWludDhbaSArIDJdKTsKICAgICAgICAgICAgICAgIG91dHB1dCArPSB0cmlwbGV0VG9CYXNlNjQodGVtcCk7CiAgICAgICAgICAgIH0KCiAgICAJCS8vIHBhZCB0aGUgZW5kIHdpdGggemVyb3MsIGJ1dCBtYWtlIHN1cmUgdG8gbm90IGZvcmdldCB0aGUgZXh0cmEgYnl0ZXMKICAgICAgICAgICAgLy9lc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgZGVmYXVsdC1jYXNlCiAgICAgICAgICAgIHN3aXRjaCAoZXh0cmFCeXRlcykgewogICAgICAgICAgICBjYXNlIDE6CiAgICAgICAgICAgICAgICB0ZW1wID0gdWludDhbdWludDgubGVuZ3RoIC0gMV07CiAgICAgICAgICAgICAgICBvdXRwdXQgKz0gbG9va3VwW3RlbXAgPj4gMl07CiAgICAgICAgICAgICAgICBvdXRwdXQgKz0gbG9va3VwWyh0ZW1wIDw8IDQpICYgMHgzRl07CiAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgY2FzZSAyOgogICAgICAgICAgICAgICAgdGVtcCA9ICh1aW50OFt1aW50OC5sZW5ndGggLSAyXSA8PCA4KSArICh1aW50OFt1aW50OC5sZW5ndGggLSAxXSk7CiAgICAgICAgICAgICAgICBvdXRwdXQgKz0gbG9va3VwW3RlbXAgPj4gMTBdOwogICAgICAgICAgICAgICAgb3V0cHV0ICs9IGxvb2t1cFsodGVtcCA+PiA0KSAmIDB4M0ZdOwogICAgICAgICAgICAgICAgb3V0cHV0ICs9IGxvb2t1cFsodGVtcCA8PCAyKSAmIDB4M0ZdOwogICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIHJldHVybiBvdXRwdXQ7CiAgICAgICAgfQogICAgfSkoKTsKCiAgICBmdW5jdGlvbiBnZXREZWZhdWx0RXhwb3J0RnJvbUNqcyAoeCkgewogICAgCXJldHVybiB4ICYmIHguX19lc01vZHVsZSAmJiBPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoeCwgJ2RlZmF1bHQnKSA/IHhbJ2RlZmF1bHQnXSA6IHg7CiAgICB9CgogICAgdmFyIGRlZmxhdGVfbWluID0ge2V4cG9ydHM6IHt9fTsKCiAgICAvKgogICAgICogQGxpY2Vuc2UgemxpYi5qcyAyMDEyIC0gaW1heWEgWyBodHRwczovL2dpdGh1Yi5jb20vaW1heWEvemxpYi5qcyBdIFRoZSBNSVQgTGljZW5zZQogICAgICovCgogICAgKGZ1bmN0aW9uIChtb2R1bGUpIHsKICAgIAkoZnVuY3Rpb24oKSB7dmFyIG49dm9pZCAwLHc9ITAsYWE9dGhpcztmdW5jdGlvbiBiYShmLGQpe3ZhciBjPWYuc3BsaXQoIi4iKSxlPWFhOyEoY1swXWluIGUpJiZlLmV4ZWNTY3JpcHQmJmUuZXhlY1NjcmlwdCgidmFyICIrY1swXSk7Zm9yKHZhciBiO2MubGVuZ3RoJiYoYj1jLnNoaWZ0KCkpOykhYy5sZW5ndGgmJmQhPT1uP2VbYl09ZDplPWVbYl0/ZVtiXTplW2JdPXt9O312YXIgQz0idW5kZWZpbmVkIiE9PXR5cGVvZiBVaW50OEFycmF5JiYidW5kZWZpbmVkIiE9PXR5cGVvZiBVaW50MTZBcnJheSYmInVuZGVmaW5lZCIhPT10eXBlb2YgVWludDMyQXJyYXk7ZnVuY3Rpb24gSyhmLGQpe3RoaXMuaW5kZXg9Im51bWJlciI9PT10eXBlb2YgZD9kOjA7dGhpcy5lPTA7dGhpcy5idWZmZXI9ZiBpbnN0YW5jZW9mKEM/VWludDhBcnJheTpBcnJheSk/ZjpuZXcgKEM/VWludDhBcnJheTpBcnJheSkoMzI3NjgpO2lmKDIqdGhpcy5idWZmZXIubGVuZ3RoPD10aGlzLmluZGV4KXRocm93IEVycm9yKCJpbnZhbGlkIGluZGV4Iik7dGhpcy5idWZmZXIubGVuZ3RoPD10aGlzLmluZGV4JiZjYSh0aGlzKTt9ZnVuY3Rpb24gY2EoZil7dmFyIGQ9Zi5idWZmZXIsYyxlPWQubGVuZ3RoLGI9bmV3IChDP1VpbnQ4QXJyYXk6QXJyYXkpKGU8PDEpO2lmKEMpYi5zZXQoZCk7ZWxzZSBmb3IoYz0wO2M8ZTsrK2MpYltjXT1kW2NdO3JldHVybiBmLmJ1ZmZlcj1ifQogICAgCUsucHJvdG90eXBlLmI9ZnVuY3Rpb24oZixkLGMpe3ZhciBlPXRoaXMuYnVmZmVyLGI9dGhpcy5pbmRleCxhPXRoaXMuZSxnPWVbYl0sbTtjJiYxPGQmJihmPTg8ZD8oTFtmJjI1NV08PDI0fExbZj4+PjgmMjU1XTw8MTZ8TFtmPj4+MTYmMjU1XTw8OHxMW2Y+Pj4yNCYyNTVdKT4+MzItZDpMW2ZdPj44LWQpO2lmKDg+ZCthKWc9Zzw8ZHxmLGErPWQ7ZWxzZSBmb3IobT0wO208ZDsrK20pZz1nPDwxfGY+PmQtbS0xJjEsOD09PSsrYSYmKGE9MCxlW2IrK109TFtnXSxnPTAsYj09PWUubGVuZ3RoJiYoZT1jYSh0aGlzKSkpO2VbYl09Zzt0aGlzLmJ1ZmZlcj1lO3RoaXMuZT1hO3RoaXMuaW5kZXg9Yjt9O0sucHJvdG90eXBlLmZpbmlzaD1mdW5jdGlvbigpe3ZhciBmPXRoaXMuYnVmZmVyLGQ9dGhpcy5pbmRleCxjOzA8dGhpcy5lJiYoZltkXTw8PTgtdGhpcy5lLGZbZF09TFtmW2RdXSxkKyspO0M/Yz1mLnN1YmFycmF5KDAsZCk6KGYubGVuZ3RoPWQsYz1mKTtyZXR1cm4gY307CiAgICAJdmFyIGRhPW5ldyAoQz9VaW50OEFycmF5OkFycmF5KSgyNTYpLE07Zm9yKE09MDsyNTY+TTsrK00pe2Zvcih2YXIgTj1NLFM9TixlYT03LE49Tj4+PjE7TjtOPj4+PTEpUzw8PTEsU3w9TiYxLC0tZWE7ZGFbTV09KFM8PGVhJjI1NSk+Pj4wO312YXIgTD1kYTtmdW5jdGlvbiBpYShmKXt0aGlzLmJ1ZmZlcj1uZXcgKEM/VWludDE2QXJyYXk6QXJyYXkpKDIqZik7dGhpcy5sZW5ndGg9MDt9aWEucHJvdG90eXBlLmdldFBhcmVudD1mdW5jdGlvbihmKXtyZXR1cm4gMiooKGYtMikvNHwwKX07aWEucHJvdG90eXBlLnB1c2g9ZnVuY3Rpb24oZixkKXt2YXIgYyxlLGI9dGhpcy5idWZmZXIsYTtjPXRoaXMubGVuZ3RoO2JbdGhpcy5sZW5ndGgrK109ZDtmb3IoYlt0aGlzLmxlbmd0aCsrXT1mOzA8YzspaWYoZT10aGlzLmdldFBhcmVudChjKSxiW2NdPmJbZV0pYT1iW2NdLGJbY109YltlXSxiW2VdPWEsYT1iW2MrMV0sYltjKzFdPWJbZSsxXSxiW2UrMV09YSxjPWU7ZWxzZSBicmVhaztyZXR1cm4gdGhpcy5sZW5ndGh9OwogICAgCWlhLnByb3RvdHlwZS5wb3A9ZnVuY3Rpb24oKXt2YXIgZixkLGM9dGhpcy5idWZmZXIsZSxiLGE7ZD1jWzBdO2Y9Y1sxXTt0aGlzLmxlbmd0aC09MjtjWzBdPWNbdGhpcy5sZW5ndGhdO2NbMV09Y1t0aGlzLmxlbmd0aCsxXTtmb3IoYT0wOzspe2I9MiphKzI7aWYoYj49dGhpcy5sZW5ndGgpYnJlYWs7YisyPHRoaXMubGVuZ3RoJiZjW2IrMl0+Y1tiXSYmKGIrPTIpO2lmKGNbYl0+Y1thXSllPWNbYV0sY1thXT1jW2JdLGNbYl09ZSxlPWNbYSsxXSxjW2ErMV09Y1tiKzFdLGNbYisxXT1lO2Vsc2UgYnJlYWs7YT1iO31yZXR1cm4ge2luZGV4OmYsdmFsdWU6ZCxsZW5ndGg6dGhpcy5sZW5ndGh9fTtmdW5jdGlvbiBrYShmLGQpe3RoaXMuZD1sYTt0aGlzLmk9MDt0aGlzLmlucHV0PUMmJmYgaW5zdGFuY2VvZiBBcnJheT9uZXcgVWludDhBcnJheShmKTpmO3RoaXMuYz0wO2QmJihkLmxhenkmJih0aGlzLmk9ZC5sYXp5KSwibnVtYmVyIj09PXR5cGVvZiBkLmNvbXByZXNzaW9uVHlwZSYmKHRoaXMuZD1kLmNvbXByZXNzaW9uVHlwZSksZC5vdXRwdXRCdWZmZXImJih0aGlzLmE9QyYmZC5vdXRwdXRCdWZmZXIgaW5zdGFuY2VvZiBBcnJheT9uZXcgVWludDhBcnJheShkLm91dHB1dEJ1ZmZlcik6ZC5vdXRwdXRCdWZmZXIpLCJudW1iZXIiPT09dHlwZW9mIGQub3V0cHV0SW5kZXgmJih0aGlzLmM9ZC5vdXRwdXRJbmRleCkpO3RoaXMuYXx8KHRoaXMuYT1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoMzI3NjgpKTt9dmFyIGxhPTIsbmE9e05PTkU6MCxoOjEsZzpsYSxuOjN9LFQ9W10sVTsKICAgIAlmb3IoVT0wOzI4OD5VO1UrKylzd2l0Y2godyl7Y2FzZSAxNDM+PVU6VC5wdXNoKFtVKzQ4LDhdKTticmVhaztjYXNlIDI1NT49VTpULnB1c2goW1UtMTQ0KzQwMCw5XSk7YnJlYWs7Y2FzZSAyNzk+PVU6VC5wdXNoKFtVLTI1NiswLDddKTticmVhaztjYXNlIDI4Nz49VTpULnB1c2goW1UtMjgwKzE5Miw4XSk7YnJlYWs7ZGVmYXVsdDp0aHJvdyAiaW52YWxpZCBsaXRlcmFsOiAiK1U7fQogICAgCWthLnByb3RvdHlwZS5mPWZ1bmN0aW9uKCl7dmFyIGYsZCxjLGUsYj10aGlzLmlucHV0O3N3aXRjaCh0aGlzLmQpe2Nhc2UgMDpjPTA7Zm9yKGU9Yi5sZW5ndGg7YzxlOyl7ZD1DP2Iuc3ViYXJyYXkoYyxjKzY1NTM1KTpiLnNsaWNlKGMsYys2NTUzNSk7Yys9ZC5sZW5ndGg7dmFyIGE9ZCxnPWM9PT1lLG09bixrPW4scD1uLHQ9bix1PW4sbD10aGlzLmEsaD10aGlzLmM7aWYoQyl7Zm9yKGw9bmV3IFVpbnQ4QXJyYXkodGhpcy5hLmJ1ZmZlcik7bC5sZW5ndGg8PWgrYS5sZW5ndGgrNTspbD1uZXcgVWludDhBcnJheShsLmxlbmd0aDw8MSk7bC5zZXQodGhpcy5hKTt9bT1nPzE6MDtsW2grK109bXwwO2s9YS5sZW5ndGg7cD1+ays2NTUzNiY2NTUzNTtsW2grK109ayYyNTU7bFtoKytdPWs+Pj44JjI1NTtsW2grK109cCYyNTU7bFtoKytdPXA+Pj44JjI1NTtpZihDKWwuc2V0KGEsaCksaCs9YS5sZW5ndGgsbD1sLnN1YmFycmF5KDAsaCk7ZWxzZSB7dD0wO2Zvcih1PWEubGVuZ3RoO3Q8dTsrK3QpbFtoKytdPQogICAgCWFbdF07bC5sZW5ndGg9aDt9dGhpcy5jPWg7dGhpcy5hPWw7fWJyZWFrO2Nhc2UgMTp2YXIgcT1uZXcgSyhDP25ldyBVaW50OEFycmF5KHRoaXMuYS5idWZmZXIpOnRoaXMuYSx0aGlzLmMpO3EuYigxLDEsdyk7cS5iKDEsMix3KTt2YXIgcz1vYSh0aGlzLGIpLHgsZmEsejt4PTA7Zm9yKGZhPXMubGVuZ3RoO3g8ZmE7eCsrKWlmKHo9c1t4XSxLLnByb3RvdHlwZS5iLmFwcGx5KHEsVFt6XSksMjU2PHopcS5iKHNbKyt4XSxzWysreF0sdykscS5iKHNbKyt4XSw1KSxxLmIoc1srK3hdLHNbKyt4XSx3KTtlbHNlIGlmKDI1Nj09PXopYnJlYWs7dGhpcy5hPXEuZmluaXNoKCk7dGhpcy5jPXRoaXMuYS5sZW5ndGg7YnJlYWs7Y2FzZSBsYTp2YXIgQj1uZXcgSyhDP25ldyBVaW50OEFycmF5KHRoaXMuYS5idWZmZXIpOnRoaXMuYSx0aGlzLmMpLHRhLEosTyxQLFEsTGE9WzE2LDE3LDE4LDAsOCw3LDksNiwxMCw1LDExLDQsMTIsMywxMywyLDE0LDEsMTVdLFgsdWEsWSx2YSxnYSxqYT1BcnJheSgxOSksCiAgICAJd2EsUixoYSx5LHhhO3RhPWxhO0IuYigxLDEsdyk7Qi5iKHRhLDIsdyk7Sj1vYSh0aGlzLGIpO1g9cGEodGhpcy5tLDE1KTt1YT1xYShYKTtZPXBhKHRoaXMubCw3KTt2YT1xYShZKTtmb3IoTz0yODY7MjU3PE8mJjA9PT1YW08tMV07Ty0tKTtmb3IoUD0zMDsxPFAmJjA9PT1ZW1AtMV07UC0tKTt2YXIgeWE9Tyx6YT1QLEY9bmV3IChDP1VpbnQzMkFycmF5OkFycmF5KSh5YSt6YSkscixHLHYsWixFPW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoMzE2KSxELEEsSD1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoMTkpO2ZvcihyPUc9MDtyPHlhO3IrKylGW0crK109WFtyXTtmb3Iocj0wO3I8emE7cisrKUZbRysrXT1ZW3JdO2lmKCFDKXtyPTA7Zm9yKFo9SC5sZW5ndGg7cjxaOysrcilIW3JdPTA7fXI9RD0wO2ZvcihaPUYubGVuZ3RoO3I8WjtyKz1HKXtmb3IoRz0xO3IrRzxaJiZGW3IrR109PT1GW3JdOysrRyk7dj1HO2lmKDA9PT1GW3JdKWlmKDM+dilmb3IoOzA8di0tOylFW0QrK109MCwKICAgIAlIWzBdKys7ZWxzZSBmb3IoOzA8djspQT0xMzg+dj92OjEzOCxBPnYtMyYmQTx2JiYoQT12LTMpLDEwPj1BPyhFW0QrK109MTcsRVtEKytdPUEtMyxIWzE3XSsrKTooRVtEKytdPTE4LEVbRCsrXT1BLTExLEhbMThdKyspLHYtPUE7ZWxzZSBpZihFW0QrK109RltyXSxIW0Zbcl1dKyssdi0tLDM+dilmb3IoOzA8di0tOylFW0QrK109RltyXSxIW0Zbcl1dKys7ZWxzZSBmb3IoOzA8djspQT02PnY/djo2LEE+di0zJiZBPHYmJihBPXYtMyksRVtEKytdPTE2LEVbRCsrXT1BLTMsSFsxNl0rKyx2LT1BO31mPUM/RS5zdWJhcnJheSgwLEQpOkUuc2xpY2UoMCxEKTtnYT1wYShILDcpO2Zvcih5PTA7MTk+eTt5KyspamFbeV09Z2FbTGFbeV1dO2ZvcihRPTE5OzQ8USYmMD09PWphW1EtMV07US0tKTt3YT1xYShnYSk7Qi5iKE8tMjU3LDUsdyk7Qi5iKFAtMSw1LHcpO0IuYihRLTQsNCx3KTtmb3IoeT0wO3k8UTt5KyspQi5iKGphW3ldLDMsdyk7eT0wO2Zvcih4YT1mLmxlbmd0aDt5PHhhO3krKylpZihSPQogICAgCWZbeV0sQi5iKHdhW1JdLGdhW1JdLHcpLDE2PD1SKXt5Kys7c3dpdGNoKFIpe2Nhc2UgMTY6aGE9MjticmVhaztjYXNlIDE3OmhhPTM7YnJlYWs7Y2FzZSAxODpoYT03O2JyZWFrO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgY29kZTogIitSO31CLmIoZlt5XSxoYSx3KTt9dmFyIEFhPVt1YSxYXSxCYT1bdmEsWV0sSSxDYSwkLG1hLERhLEVhLEZhLEdhO0RhPUFhWzBdO0VhPUFhWzFdO0ZhPUJhWzBdO0dhPUJhWzFdO0k9MDtmb3IoQ2E9Si5sZW5ndGg7STxDYTsrK0kpaWYoJD1KW0ldLEIuYihEYVskXSxFYVskXSx3KSwyNTY8JClCLmIoSlsrK0ldLEpbKytJXSx3KSxtYT1KWysrSV0sQi5iKEZhW21hXSxHYVttYV0sdyksQi5iKEpbKytJXSxKWysrSV0sdyk7ZWxzZSBpZigyNTY9PT0kKWJyZWFrO3RoaXMuYT1CLmZpbmlzaCgpO3RoaXMuYz10aGlzLmEubGVuZ3RoO2JyZWFrO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgY29tcHJlc3Npb24gdHlwZSI7fXJldHVybiB0aGlzLmF9OwogICAgCWZ1bmN0aW9uIHJhKGYsZCl7dGhpcy5sZW5ndGg9Zjt0aGlzLms9ZDt9CiAgICAJdmFyIHNhPWZ1bmN0aW9uKCl7ZnVuY3Rpb24gZihiKXtzd2l0Y2godyl7Y2FzZSAzPT09YjpyZXR1cm4gWzI1NyxiLTMsMF07Y2FzZSA0PT09YjpyZXR1cm4gWzI1OCxiLTQsMF07Y2FzZSA1PT09YjpyZXR1cm4gWzI1OSxiLTUsMF07Y2FzZSA2PT09YjpyZXR1cm4gWzI2MCxiLTYsMF07Y2FzZSA3PT09YjpyZXR1cm4gWzI2MSxiLTcsMF07Y2FzZSA4PT09YjpyZXR1cm4gWzI2MixiLTgsMF07Y2FzZSA5PT09YjpyZXR1cm4gWzI2MyxiLTksMF07Y2FzZSAxMD09PWI6cmV0dXJuIFsyNjQsYi0xMCwwXTtjYXNlIDEyPj1iOnJldHVybiBbMjY1LGItMTEsMV07Y2FzZSAxND49YjpyZXR1cm4gWzI2NixiLTEzLDFdO2Nhc2UgMTY+PWI6cmV0dXJuIFsyNjcsYi0xNSwxXTtjYXNlIDE4Pj1iOnJldHVybiBbMjY4LGItMTcsMV07Y2FzZSAyMj49YjpyZXR1cm4gWzI2OSxiLTE5LDJdO2Nhc2UgMjY+PWI6cmV0dXJuIFsyNzAsYi0yMywyXTtjYXNlIDMwPj1iOnJldHVybiBbMjcxLGItMjcsMl07Y2FzZSAzND49YjpyZXR1cm4gWzI3MiwKICAgIAliLTMxLDJdO2Nhc2UgNDI+PWI6cmV0dXJuIFsyNzMsYi0zNSwzXTtjYXNlIDUwPj1iOnJldHVybiBbMjc0LGItNDMsM107Y2FzZSA1OD49YjpyZXR1cm4gWzI3NSxiLTUxLDNdO2Nhc2UgNjY+PWI6cmV0dXJuIFsyNzYsYi01OSwzXTtjYXNlIDgyPj1iOnJldHVybiBbMjc3LGItNjcsNF07Y2FzZSA5OD49YjpyZXR1cm4gWzI3OCxiLTgzLDRdO2Nhc2UgMTE0Pj1iOnJldHVybiBbMjc5LGItOTksNF07Y2FzZSAxMzA+PWI6cmV0dXJuIFsyODAsYi0xMTUsNF07Y2FzZSAxNjI+PWI6cmV0dXJuIFsyODEsYi0xMzEsNV07Y2FzZSAxOTQ+PWI6cmV0dXJuIFsyODIsYi0xNjMsNV07Y2FzZSAyMjY+PWI6cmV0dXJuIFsyODMsYi0xOTUsNV07Y2FzZSAyNTc+PWI6cmV0dXJuIFsyODQsYi0yMjcsNV07Y2FzZSAyNTg9PT1iOnJldHVybiBbMjg1LGItMjU4LDBdO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgbGVuZ3RoOiAiK2I7fX12YXIgZD1bXSxjLGU7Zm9yKGM9MzsyNTg+PWM7YysrKWU9ZihjKSxkW2NdPWVbMl08PDI0fAogICAgCWVbMV08PDE2fGVbMF07cmV0dXJuIGR9KCksSGE9Qz9uZXcgVWludDMyQXJyYXkoc2EpOnNhOwogICAgCWZ1bmN0aW9uIG9hKGYsZCl7ZnVuY3Rpb24gYyhiLGMpe3ZhciBhPWIuayxkPVtdLGU9MCxmO2Y9SGFbYi5sZW5ndGhdO2RbZSsrXT1mJjY1NTM1O2RbZSsrXT1mPj4xNiYyNTU7ZFtlKytdPWY+PjI0O3ZhciBnO3N3aXRjaCh3KXtjYXNlIDE9PT1hOmc9WzAsYS0xLDBdO2JyZWFrO2Nhc2UgMj09PWE6Zz1bMSxhLTIsMF07YnJlYWs7Y2FzZSAzPT09YTpnPVsyLGEtMywwXTticmVhaztjYXNlIDQ9PT1hOmc9WzMsYS00LDBdO2JyZWFrO2Nhc2UgNj49YTpnPVs0LGEtNSwxXTticmVhaztjYXNlIDg+PWE6Zz1bNSxhLTcsMV07YnJlYWs7Y2FzZSAxMj49YTpnPVs2LGEtOSwyXTticmVhaztjYXNlIDE2Pj1hOmc9WzcsYS0xMywyXTticmVhaztjYXNlIDI0Pj1hOmc9WzgsYS0xNywzXTticmVhaztjYXNlIDMyPj1hOmc9WzksYS0yNSwzXTticmVhaztjYXNlIDQ4Pj1hOmc9WzEwLGEtMzMsNF07YnJlYWs7Y2FzZSA2ND49YTpnPVsxMSxhLTQ5LDRdO2JyZWFrO2Nhc2UgOTY+PWE6Zz1bMTIsYS0KICAgIAk2NSw1XTticmVhaztjYXNlIDEyOD49YTpnPVsxMyxhLTk3LDVdO2JyZWFrO2Nhc2UgMTkyPj1hOmc9WzE0LGEtMTI5LDZdO2JyZWFrO2Nhc2UgMjU2Pj1hOmc9WzE1LGEtMTkzLDZdO2JyZWFrO2Nhc2UgMzg0Pj1hOmc9WzE2LGEtMjU3LDddO2JyZWFrO2Nhc2UgNTEyPj1hOmc9WzE3LGEtMzg1LDddO2JyZWFrO2Nhc2UgNzY4Pj1hOmc9WzE4LGEtNTEzLDhdO2JyZWFrO2Nhc2UgMTAyND49YTpnPVsxOSxhLTc2OSw4XTticmVhaztjYXNlIDE1MzY+PWE6Zz1bMjAsYS0xMDI1LDldO2JyZWFrO2Nhc2UgMjA0OD49YTpnPVsyMSxhLTE1MzcsOV07YnJlYWs7Y2FzZSAzMDcyPj1hOmc9WzIyLGEtMjA0OSwxMF07YnJlYWs7Y2FzZSA0MDk2Pj1hOmc9WzIzLGEtMzA3MywxMF07YnJlYWs7Y2FzZSA2MTQ0Pj1hOmc9WzI0LGEtNDA5NywxMV07YnJlYWs7Y2FzZSA4MTkyPj1hOmc9WzI1LGEtNjE0NSwxMV07YnJlYWs7Y2FzZSAxMjI4OD49YTpnPVsyNixhLTgxOTMsMTJdO2JyZWFrO2Nhc2UgMTYzODQ+PQogICAgCWE6Zz1bMjcsYS0xMjI4OSwxMl07YnJlYWs7Y2FzZSAyNDU3Nj49YTpnPVsyOCxhLTE2Mzg1LDEzXTticmVhaztjYXNlIDMyNzY4Pj1hOmc9WzI5LGEtMjQ1NzcsMTNdO2JyZWFrO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgZGlzdGFuY2UiO31mPWc7ZFtlKytdPWZbMF07ZFtlKytdPWZbMV07ZFtlKytdPWZbMl07dmFyIGssbTtrPTA7Zm9yKG09ZC5sZW5ndGg7azxtOysraylsW2grK109ZFtrXTtzW2RbMF1dKys7eFtkWzNdXSsrO3E9Yi5sZW5ndGgrYy0xO3U9bnVsbDt9dmFyIGUsYixhLGcsbSxrPXt9LHAsdCx1LGw9Qz9uZXcgVWludDE2QXJyYXkoMipkLmxlbmd0aCk6W10saD0wLHE9MCxzPW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoMjg2KSx4PW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoMzApLGZhPWYuaSx6O2lmKCFDKXtmb3IoYT0wOzI4NT49YTspc1thKytdPTA7Zm9yKGE9MDsyOT49YTspeFthKytdPTA7fXNbMjU2XT0xO2U9MDtmb3IoYj1kLmxlbmd0aDtlPGI7KytlKXthPQogICAgCW09MDtmb3IoZz0zO2E8ZyYmZSthIT09YjsrK2EpbT1tPDw4fGRbZSthXTtrW21dPT09biYmKGtbbV09W10pO3A9a1ttXTtpZighKDA8cS0tKSl7Zm9yKDswPHAubGVuZ3RoJiYzMjc2ODxlLXBbMF07KXAuc2hpZnQoKTtpZihlKzM+PWIpe3UmJmModSwtMSk7YT0wO2ZvcihnPWItZTthPGc7KythKXo9ZFtlK2FdLGxbaCsrXT16LCsrc1t6XTticmVha30wPHAubGVuZ3RoPyh0PUlhKGQsZSxwKSx1P3UubGVuZ3RoPHQubGVuZ3RoPyh6PWRbZS0xXSxsW2grK109eiwrK3Nbel0sYyh0LDApKTpjKHUsLTEpOnQubGVuZ3RoPGZhP3U9dDpjKHQsMCkpOnU/Yyh1LC0xKTooej1kW2VdLGxbaCsrXT16LCsrc1t6XSk7fXAucHVzaChlKTt9bFtoKytdPTI1NjtzWzI1Nl0rKztmLm09cztmLmw9eDtyZXR1cm4gQz9sLnN1YmFycmF5KDAsaCk6bH0KICAgIAlmdW5jdGlvbiBJYShmLGQsYyl7dmFyIGUsYixhPTAsZyxtLGsscCx0PWYubGVuZ3RoO209MDtwPWMubGVuZ3RoO2E6Zm9yKDttPHA7bSsrKXtlPWNbcC1tLTFdO2c9MztpZigzPGEpe2ZvcihrPWE7MzxrO2stLSlpZihmW2Uray0xXSE9PWZbZCtrLTFdKWNvbnRpbnVlIGE7Zz1hO31mb3IoOzI1OD5nJiZkK2c8dCYmZltlK2ddPT09ZltkK2ddOykrK2c7Zz5hJiYoYj1lLGE9Zyk7aWYoMjU4PT09ZylicmVha31yZXR1cm4gbmV3IHJhKGEsZC1iKX0KICAgIAlmdW5jdGlvbiBwYShmLGQpe3ZhciBjPWYubGVuZ3RoLGU9bmV3IGlhKDU3MiksYj1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoYyksYSxnLG0sayxwO2lmKCFDKWZvcihrPTA7azxjO2srKyliW2tdPTA7Zm9yKGs9MDtrPGM7KytrKTA8ZltrXSYmZS5wdXNoKGssZltrXSk7YT1BcnJheShlLmxlbmd0aC8yKTtnPW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoZS5sZW5ndGgvMik7aWYoMT09PWEubGVuZ3RoKXJldHVybiBiW2UucG9wKCkuaW5kZXhdPTEsYjtrPTA7Zm9yKHA9ZS5sZW5ndGgvMjtrPHA7KytrKWFba109ZS5wb3AoKSxnW2tdPWFba10udmFsdWU7bT1KYShnLGcubGVuZ3RoLGQpO2s9MDtmb3IocD1hLmxlbmd0aDtrPHA7KytrKWJbYVtrXS5pbmRleF09bVtrXTtyZXR1cm4gYn0KICAgIAlmdW5jdGlvbiBKYShmLGQsYyl7ZnVuY3Rpb24gZShhKXt2YXIgYj1rW2FdW3BbYV1dO2I9PT1kPyhlKGErMSksZShhKzEpKTotLWdbYl07KytwW2FdO312YXIgYj1uZXcgKEM/VWludDE2QXJyYXk6QXJyYXkpKGMpLGE9bmV3IChDP1VpbnQ4QXJyYXk6QXJyYXkpKGMpLGc9bmV3IChDP1VpbnQ4QXJyYXk6QXJyYXkpKGQpLG09QXJyYXkoYyksaz1BcnJheShjKSxwPUFycmF5KGMpLHQ9KDE8PGMpLWQsdT0xPDxjLTEsbCxoLHEscyx4O2JbYy0xXT1kO2ZvcihoPTA7aDxjOysraCl0PHU/YVtoXT0wOihhW2hdPTEsdC09dSksdDw8PTEsYltjLTItaF09KGJbYy0xLWhdLzJ8MCkrZDtiWzBdPWFbMF07bVswXT1BcnJheShiWzBdKTtrWzBdPUFycmF5KGJbMF0pO2ZvcihoPTE7aDxjOysraCliW2hdPjIqYltoLTFdK2FbaF0mJihiW2hdPTIqYltoLTFdK2FbaF0pLG1baF09QXJyYXkoYltoXSksa1toXT1BcnJheShiW2hdKTtmb3IobD0wO2w8ZDsrK2wpZ1tsXT1jO2ZvcihxPTA7cTxiW2MtMV07KytxKW1bYy0KICAgIAkxXVtxXT1mW3FdLGtbYy0xXVtxXT1xO2ZvcihsPTA7bDxjOysrbClwW2xdPTA7MT09PWFbYy0xXSYmKC0tZ1swXSwrK3BbYy0xXSk7Zm9yKGg9Yy0yOzA8PWg7LS1oKXtzPWw9MDt4PXBbaCsxXTtmb3IocT0wO3E8YltoXTtxKyspcz1tW2grMV1beF0rbVtoKzFdW3grMV0scz5mW2xdPyhtW2hdW3FdPXMsa1toXVtxXT1kLHgrPTIpOihtW2hdW3FdPWZbbF0sa1toXVtxXT1sLCsrbCk7cFtoXT0wOzE9PT1hW2hdJiZlKGgpO31yZXR1cm4gZ30KICAgIAlmdW5jdGlvbiBxYShmKXt2YXIgZD1uZXcgKEM/VWludDE2QXJyYXk6QXJyYXkpKGYubGVuZ3RoKSxjPVtdLGU9W10sYj0wLGEsZyxtLGs7YT0wO2ZvcihnPWYubGVuZ3RoO2E8ZzthKyspY1tmW2FdXT0oY1tmW2FdXXwwKSsxO2E9MTtmb3IoZz0xNjthPD1nO2ErKyllW2FdPWIsYis9Y1thXXwwLGI8PD0xO2E9MDtmb3IoZz1mLmxlbmd0aDthPGc7YSsrKXtiPWVbZlthXV07ZVtmW2FdXSs9MTttPWRbYV09MDtmb3Ioaz1mW2FdO208azttKyspZFthXT1kW2FdPDwxfGImMSxiPj4+PTE7fXJldHVybiBkfWZ1bmN0aW9uIEthKGYsZCl7dGhpcy5pbnB1dD1mO3RoaXMuYT1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoMzI3NjgpO3RoaXMuZD1WLmc7dmFyIGM9e30sZTtpZigoZHx8IShkPXt9KSkmJiJudW1iZXIiPT09dHlwZW9mIGQuY29tcHJlc3Npb25UeXBlKXRoaXMuZD1kLmNvbXByZXNzaW9uVHlwZTtmb3IoZSBpbiBkKWNbZV09ZFtlXTtjLm91dHB1dEJ1ZmZlcj10aGlzLmE7dGhpcy5qPW5ldyBrYSh0aGlzLmlucHV0LGMpO312YXIgVj1uYTsKICAgIAlLYS5wcm90b3R5cGUuZj1mdW5jdGlvbigpe3ZhciBmLGQsYyxlLGIsYSxnPTA7YT10aGlzLmE7c3dpdGNoKDgpe2Nhc2UgODpmPU1hdGguTE9HMkUqTWF0aC5sb2coMzI3NjgpLTg7YnJlYWs7ZGVmYXVsdDp0aHJvdyBFcnJvcigiaW52YWxpZCBjb21wcmVzc2lvbiBtZXRob2QiKTt9ZD1mPDw0fDg7YVtnKytdPWQ7c3dpdGNoKDgpe2Nhc2UgODpzd2l0Y2godGhpcy5kKXtjYXNlIFYuTk9ORTplPTA7YnJlYWs7Y2FzZSBWLmg6ZT0xO2JyZWFrO2Nhc2UgVi5nOmU9MjticmVhaztkZWZhdWx0OnRocm93IEVycm9yKCJ1bnN1cHBvcnRlZCBjb21wcmVzc2lvbiB0eXBlIik7fWJyZWFrO2RlZmF1bHQ6dGhyb3cgRXJyb3IoImludmFsaWQgY29tcHJlc3Npb24gbWV0aG9kIik7fWM9ZTw8NnwwO2FbZysrXT1jfDMxLSgyNTYqZCtjKSUzMTt2YXIgbT10aGlzLmlucHV0O2lmKCJzdHJpbmciPT09dHlwZW9mIG0pe3ZhciBrPW0uc3BsaXQoIiIpLHAsdDtwPTA7Zm9yKHQ9ay5sZW5ndGg7cDx0O3ArKylrW3BdPQogICAgCShrW3BdLmNoYXJDb2RlQXQoMCkmMjU1KT4+PjA7bT1rO31mb3IodmFyIHU9MSxsPTAsaD1tLmxlbmd0aCxxLHM9MDswPGg7KXtxPTEwMjQ8aD8xMDI0Omg7aC09cTtkbyB1Kz1tW3MrK10sbCs9dTt3aGlsZSgtLXEpO3UlPTY1NTIxO2wlPTY1NTIxO31iPShsPDwxNnx1KT4+PjA7dGhpcy5qLmM9ZzthPXRoaXMuai5mKCk7Zz1hLmxlbmd0aDtDJiYoYT1uZXcgVWludDhBcnJheShhLmJ1ZmZlciksYS5sZW5ndGg8PWcrNCYmKHRoaXMuYT1uZXcgVWludDhBcnJheShhLmxlbmd0aCs0KSx0aGlzLmEuc2V0KGEpLGE9dGhpcy5hKSxhPWEuc3ViYXJyYXkoMCxnKzQpKTthW2crK109Yj4+MjQmMjU1O2FbZysrXT1iPj4xNiYyNTU7YVtnKytdPWI+PjgmMjU1O2FbZysrXT1iJjI1NTtyZXR1cm4gYX07YmEoIlpsaWIuRGVmbGF0ZSIsS2EpO2JhKCJabGliLkRlZmxhdGUuY29tcHJlc3MiLGZ1bmN0aW9uKGYsZCl7cmV0dXJuIChuZXcgS2EoZixkKSkuZigpfSk7YmEoIlpsaWIuRGVmbGF0ZS5wcm90b3R5cGUuY29tcHJlc3MiLEthLnByb3RvdHlwZS5mKTt2YXIgTWE9e05PTkU6Vi5OT05FLEZJWEVEOlYuaCxEWU5BTUlDOlYuZ30sTmEsT2EsVyxQYTtpZihPYmplY3Qua2V5cylOYT1PYmplY3Qua2V5cyhNYSk7ZWxzZSBmb3IoT2EgaW4gTmE9W10sVz0wLE1hKU5hW1crK109T2E7Vz0wO2ZvcihQYT1OYS5sZW5ndGg7VzxQYTsrK1cpT2E9TmFbV10sYmEoIlpsaWIuRGVmbGF0ZS5Db21wcmVzc2lvblR5cGUuIitPYSxNYVtPYV0pO30pLmNhbGwobW9kdWxlLmV4cG9ydHMpOyAKICAgIH0gKGRlZmxhdGVfbWluKSk7CgogICAgdmFyIGRlZmxhdGVfbWluRXhwb3J0cyA9IGRlZmxhdGVfbWluLmV4cG9ydHM7CiAgICB2YXIgWkxpYkRlZmxhdGUgPSAvKkBfX1BVUkVfXyovZ2V0RGVmYXVsdEV4cG9ydEZyb21DanMoZGVmbGF0ZV9taW5FeHBvcnRzKTsKCiAgICBmdW5jdGlvbiB0b1VURjhBcnJheShzdHIpIHsKICAgICAgICB2YXIgdXRmOCA9IFtdOwogICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgc3RyLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgIHZhciBjaGFyY29kZSA9IHN0ci5jaGFyQ29kZUF0KGkpOwogICAgICAgICAgICBpZiAoY2hhcmNvZGUgPCAweDgwKQogICAgICAgICAgICAgICAgdXRmOC5wdXNoKGNoYXJjb2RlKTsKICAgICAgICAgICAgZWxzZSBpZiAoY2hhcmNvZGUgPCAweDgwMCkgewogICAgICAgICAgICAgICAgdXRmOC5wdXNoKDB4YzAgfCAoY2hhcmNvZGUgPj4gNiksIDB4ODAgfCAoY2hhcmNvZGUgJiAweDNmKSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZSBpZiAoY2hhcmNvZGUgPCAweGQ4MDAgfHwgY2hhcmNvZGUgPj0gMHhlMDAwKSB7CiAgICAgICAgICAgICAgICB1dGY4LnB1c2goMHhlMCB8IChjaGFyY29kZSA+PiAxMiksIDB4ODAgfCAoKGNoYXJjb2RlID4+IDYpICYgMHgzZiksIDB4ODAgfCAoY2hhcmNvZGUgJiAweDNmKSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZSB7CiAgICAgICAgICAgICAgICAvLyBzdXJyb2dhdGUgcGFpcgogICAgICAgICAgICAgICAgaSsrOwogICAgICAgICAgICAgICAgLy8gVVRGLTE2IGVuY29kZXMgMHgxMDAwMC0weDEwRkZGRiBieQogICAgICAgICAgICAgICAgLy8gc3VidHJhY3RpbmcgMHgxMDAwMCBhbmQgc3BsaXR0aW5nIHRoZQogICAgICAgICAgICAgICAgLy8gMjAgYml0cyBvZiAweDAtMHhGRkZGRiBpbnRvIHR3byBoYWx2ZXMKICAgICAgICAgICAgICAgIGNoYXJjb2RlID0gMHgxMDAwMCArICgoKGNoYXJjb2RlICYgMHgzZmYpIDw8IDEwKSB8CiAgICAgICAgICAgICAgICAgICAgKHN0ci5jaGFyQ29kZUF0KGkpICYgMHgzZmYpKTsKICAgICAgICAgICAgICAgIHV0ZjgucHVzaCgweGYwIHwgKGNoYXJjb2RlID4+IDE4KSwgMHg4MCB8ICgoY2hhcmNvZGUgPj4gMTIpICYgMHgzZiksIDB4ODAgfCAoKGNoYXJjb2RlID4+IDYpICYgMHgzZiksIDB4ODAgfCAoY2hhcmNvZGUgJiAweDNmKSk7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIHV0Zjg7CiAgICB9CgogICAgdmFyIFpsaWIgPSB7CiAgICAgICAgJ0RlZmxhdGUnOiBaTGliRGVmbGF0ZS5abGliLkRlZmxhdGUKICAgIH07CiAgICB2YXIgRW5jb2RpbmcgPSB7CiAgICAgICAgJ2Jhc2U2NFVybCc6ICdiYXNlNjR1cmwnLAogICAgICAgICdiaW5hcnknOiAnYmluYXJ5JwogICAgfTsKICAgIGZ1bmN0aW9uIGNvbXByZXNzKGpzb25fb2JqLCBlbmNvZGluZykgewogICAgICAgIGlmICghZW5jb2RpbmcpIHsKICAgICAgICAgICAgZW5jb2RpbmcgPSBFbmNvZGluZy5iYXNlNjRVcmw7CiAgICAgICAgfQogICAgICAgIC8qIC0tIFRoaXMgaXMgWkxJQiAqLwogICAgICAgIHZhciBjb21wcmVzc0RhdGEgPSB0b1VURjhBcnJheSh0eXBlb2YganNvbl9vYmogPT09ICdzdHJpbmcnID8ganNvbl9vYmogOiBKU09OLnN0cmluZ2lmeShqc29uX29iaikpOwogICAgICAgIHZhciBkZWZsYXRlID0gbmV3IFpsaWIuRGVmbGF0ZShjb21wcmVzc0RhdGEpOwogICAgICAgIHZhciBjb21wcmVzc2VkQnl0ZXMgPSBkZWZsYXRlLmNvbXByZXNzKCk7CiAgICAgICAgaWYgKGVuY29kaW5nID09PSBFbmNvZGluZy5iYXNlNjRVcmwpIHsKICAgICAgICAgICAgcmV0dXJuIGI2NC51aW50OFRvQmFzZTY0KGNvbXByZXNzZWRCeXRlcyk7CiAgICAgICAgfQogICAgICAgIGVsc2UgewogICAgICAgICAgICByZXR1cm4gY29tcHJlc3NlZEJ5dGVzOwogICAgICAgIH0KICAgIH0KCiAgICB2YXIgT05FX0hVTkRSRURfTUJfSU5fQllURVMgPSAxMDAgKiAxMDI0ICogMTAyNDsKICAgIGZ1bmN0aW9uIG1hdGNoSG9zdGVkUmVzb3VyY2VzKHJlY29yZGluZ0V2ZW50LCBzdHJpbmdpZmllZFJlY29yZGluZ1BheWxvYWQpIHsKICAgICAgICB2YXIgZm9udFVSTFJlZ2V4ID0gL2h0dHBzOlwvXC9bXlxzXSs/XC4od29mZnx3b2ZmMnx0dGZ8b3RmfGVvdClcYi9nOwogICAgICAgIHZhciBob3N0ZWRSZXNvdXJjZXMgPSBzdHJpbmdpZmllZFJlY29yZGluZ1BheWxvYWQubWF0Y2goZm9udFVSTFJlZ2V4KTsKICAgICAgICByZXR1cm4gewogICAgICAgICAgICAndHlwZSc6ICdyZWNvcmRpbmcnLAogICAgICAgICAgICAndmlzaXRvcklkJzogcmVjb3JkaW5nRXZlbnQudmlzaXRvcklkLAogICAgICAgICAgICAnYWNjb3VudElkJzogcmVjb3JkaW5nRXZlbnQuYWNjb3VudElkLAogICAgICAgICAgICAna2V5RnJhbWUnOiBmYWxzZSwKICAgICAgICAgICAgJ2xhc3RLZXlGcmFtZSc6IHJlY29yZGluZ0V2ZW50Lmxhc3RLZXlGcmFtZSwKICAgICAgICAgICAgJ3JlY29yZGluZ0lkJzogcmVjb3JkaW5nRXZlbnQucmVjb3JkaW5nSWQsCiAgICAgICAgICAgICdyZWNvcmRpbmdTZXNzaW9uSWQnOiByZWNvcmRpbmdFdmVudC5yZWNvcmRpbmdTZXNzaW9uSWQsCiAgICAgICAgICAgICd1cmwnOiByZWNvcmRpbmdFdmVudC51cmwsCiAgICAgICAgICAgICdzdWJUeXBlJzogJ2hvc3RlZFJlc291cmNlcycsCiAgICAgICAgICAgICdyZWNvcmRpbmdQYXlsb2FkJzogW10sCiAgICAgICAgICAgICdyZWNvcmRpbmdQYXlsb2FkTWV0YWRhdGEnOiBbXSwKICAgICAgICAgICAgJ3NlcXVlbmNlJzogMCwKICAgICAgICAgICAgJ3JlY29yZGluZ1BheWxvYWRDb3VudCc6IDAsCiAgICAgICAgICAgICdob3N0ZWRSZXNvdXJjZXMnOiBob3N0ZWRSZXNvdXJjZXMgfHwgW10KICAgICAgICB9OwogICAgfQogICAgLy8ga2VlcCBpbiBtaW5kIGNoYW5nZXMgaGVyZSBtYXkgbmVlZCBhZGRyZXNzaW5nIGluIHRoZSBleHRlbnNpb24gd29ya2VyIHByb3h5IGFzIHdlbGwKICAgIHNlbGYub25tZXNzYWdlID0gZnVuY3Rpb24gKGUpIHsKICAgICAgICB0cnkgewogICAgICAgICAgICBpZiAoZS5kYXRhLnVybCAmJiBlLmRhdGEucGF5bG9hZCkgewogICAgICAgICAgICAgICAgdmFyIF9hID0gZS5kYXRhLCB1cmwgPSBfYS51cmwsIHBheWxvYWQgPSBfYS5wYXlsb2FkLCBzaG91bGRDYWNoZVJlc291cmNlcyA9IF9hLnNob3VsZENhY2hlUmVzb3VyY2VzOwogICAgICAgICAgICAgICAgdmFyIHNlcXVlbmNlXzEgPSBwYXlsb2FkLnNlcXVlbmNlOwogICAgICAgICAgICAgICAgdmFyIHN0cmluZ2lmaWVkUmVjb3JkaW5nUGF5bG9hZCA9IEpTT04uc3RyaW5naWZ5KHBheWxvYWQucmVjb3JkaW5nUGF5bG9hZCk7CiAgICAgICAgICAgICAgICAvLyBjYWxjdWxhdGUgYW5kIHBvc3QgYmFjayB0aGUgcmVjb3JkaW5nIHBheWxvYWQgc2l6ZSBiZWZvcmUgdGhlIHBheWxvYWQgaXMgY29tcHJlc3NlZAogICAgICAgICAgICAgICAgdmFyIHJlY29yZGluZ1BheWxvYWRTaXplID0gbmV3IFRleHRFbmNvZGVyKCkuZW5jb2RlKHN0cmluZ2lmaWVkUmVjb3JkaW5nUGF5bG9hZCkubGVuZ3RoOwogICAgICAgICAgICAgICAgdmFyIGV4Y2VlZHNQYXlsb2FkU2l6ZUxpbWl0ID0gcmVjb3JkaW5nUGF5bG9hZFNpemUgPj0gT05FX0hVTkRSRURfTUJfSU5fQllURVM7CiAgICAgICAgICAgICAgICBwb3N0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICAgICAgJ3R5cGUnOiAncmVjb3JkaW5nUGF5bG9hZFNpemUnLAogICAgICAgICAgICAgICAgICAgICdyZWNvcmRpbmdQYXlsb2FkU2l6ZSc6IHJlY29yZGluZ1BheWxvYWRTaXplLAogICAgICAgICAgICAgICAgICAgICdleGNlZWRzUGF5bG9hZFNpemVMaW1pdCc6IGV4Y2VlZHNQYXlsb2FkU2l6ZUxpbWl0CiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgIC8vIGRvbid0IGF0dGVtcHQgdG8gc2VuZCB0aGUgcGF5bG9hZCBpZiBpdCBleGNlZWRzIHRoZSBhbGxvd2VkIGxpbWl0CiAgICAgICAgICAgICAgICBpZiAoZXhjZWVkc1BheWxvYWRTaXplTGltaXQpCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgaWYgKHNob3VsZENhY2hlUmVzb3VyY2VzKSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIGhvc3RlZFJlc291cmNlc0V2ZW50ID0gbWF0Y2hIb3N0ZWRSZXNvdXJjZXMocGF5bG9hZCwgc3RyaW5naWZpZWRSZWNvcmRpbmdQYXlsb2FkKTsKICAgICAgICAgICAgICAgICAgICBpZiAoaG9zdGVkUmVzb3VyY2VzRXZlbnQuaG9zdGVkUmVzb3VyY2VzLmxlbmd0aCkgewogICAgICAgICAgICAgICAgICAgICAgICBwb3N0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAndHlwZSc6ICdob3N0ZWRSZXNvdXJjZXMnLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgJ2hvc3RlZFJlc291cmNlc0V2ZW50JzogaG9zdGVkUmVzb3VyY2VzRXZlbnQKICAgICAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgcGF5bG9hZC5yZWNvcmRpbmdTaXplID0gcmVjb3JkaW5nUGF5bG9hZFNpemU7CiAgICAgICAgICAgICAgICB2YXIgYm9keSA9IGNvbXByZXNzKHBheWxvYWQsICdiaW5hcnknKTsKICAgICAgICAgICAgICAgIC8vIHdlIHdhbnQgdG8gY2FsY3VsYXRlIGN0IChjdXJyZW50IHRpbWUpIGFzIGNsb3NlIGFzIHdlIGNhbiB0byB0aGUgYWN0dWFsIFBPU1QgcmVxdWVzdAogICAgICAgICAgICAgICAgLy8gc28gdGhhdCBpdCdzIGFzIGFjY3VyYXRlIGFzIHBvc3NpYmxlCiAgICAgICAgICAgICAgICB1cmwgPSAiIi5jb25jYXQodXJsLCAiJmN0PSIpLmNvbmNhdChuZXcgRGF0ZSgpLmdldFRpbWUoKSk7CiAgICAgICAgICAgICAgICBmZXRjaCh1cmwsIHsKICAgICAgICAgICAgICAgICAgICAnbWV0aG9kJzogJ1BPU1QnLAogICAgICAgICAgICAgICAgICAgICdib2R5JzogYm9keQogICAgICAgICAgICAgICAgfSkudGhlbihmdW5jdGlvbiAocmVzcG9uc2UpIHsKICAgICAgICAgICAgICAgICAgICBpZiAocmVzcG9uc2Uuc3RhdHVzIDwgMjAwIHx8IHJlc3BvbnNlLnN0YXR1cyA+PSAzMDApIHsKICAgICAgICAgICAgICAgICAgICAgICAgcG9zdE1lc3NhZ2UoewogICAgICAgICAgICAgICAgICAgICAgICAgICAgJ2Vycm9yJzogbmV3IEVycm9yKCJyZWNlaXZlZCBzdGF0dXMgY29kZSAiLmNvbmNhdChyZXNwb25zZS5zdGF0dXMsICI6ICIpLmNvbmNhdChyZXNwb25zZS5zdGF0dXNUZXh0KSksCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAnc3RhdHVzJzogcmVzcG9uc2Uuc3RhdHVzLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgc2VxdWVuY2U6IHNlcXVlbmNlXzEKICAgICAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIGVsc2UgewogICAgICAgICAgICAgICAgICAgICAgICBwb3N0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZXF1ZW5jZTogc2VxdWVuY2VfMQogICAgICAgICAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9KVsnY2F0Y2gnXShmdW5jdGlvbiAoZSkgewogICAgICAgICAgICAgICAgICAgIHBvc3RNZXNzYWdlKHsKICAgICAgICAgICAgICAgICAgICAgICAgJ2Vycm9yJzogZSwKICAgICAgICAgICAgICAgICAgICAgICAgc2VxdWVuY2U6IHNlcXVlbmNlXzEKICAgICAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGNhdGNoIChlKSB7CiAgICAgICAgICAgIHBvc3RNZXNzYWdlKHsKICAgICAgICAgICAgICAgICdlcnJvcic6IGUKICAgICAgICAgICAgfSk7CiAgICAgICAgfQogICAgfTsKCiAgICBleHBvcnRzLm1hdGNoSG9zdGVkUmVzb3VyY2VzID0gbWF0Y2hIb3N0ZWRSZXNvdXJjZXM7CgogICAgcmV0dXJuIGV4cG9ydHM7Cgp9KSh7fSk7Ci8vIyBzb3VyY2VNYXBwaW5nVVJMPXdvcmtlci5qcy5tYXAKCg==",null,!(SessionRecorder.prototype.handleTabIdChange=function(){this.send(),this.clearSessionInfo(),this.snapshot()}));function createReplayPlugin(){return errorLogger(new SessionRecorder(record,WorkerFactory))}export{Feedback,GuideMarkdown,createReplayPlugin as Replay,TextCapture,VocPortal,loadAgent};
|
|
4
|
+
function loadAgent(h){P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");var P,G={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 P[e>>18&63]+P[e>>12&63]+P[e>>6&63]+P[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=P[n>>2])+P[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=P[n>>10])+P[n>>4&63])+P[n<<2&63]}return o}},Bt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function D(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var B,o,W,$,U,j,z,e={exports:{}};function Z(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}st=e,B="object"==typeof window?window:{},i=!B.JS_SHA1_NO_COMMON_JS&&st.exports,o="0123456789abcdef".split(""),W=[-2147483648,8388608,32768,128],$=[24,16,8,0],U=["hex","array","digest","arrayBuffer"],j=[],z=function(t){return function(e){return new Z(!0).update(e)[t]()}},Z.prototype.update=function(e){if(!this.finalized){for(var t,n,i="string"!=typeof e,r=0,o=(e=i&&e.constructor===B.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]<<$[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<$[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<$[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<$[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<$[3&n++],a[n>>2]|=(128|t>>12&63)<<$[3&n++]),a[n>>2]|=(128|t>>6&63)<<$[3&n++]),a[n>>2]|=(128|63&t)<<$[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}},Z.prototype.finalize=function(){var e,t;this.finalized||(this.finalized=!0,e=this.blocks,t=this.lastByteIndex,e[16]=this.block,e[t>>2]|=W[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())},Z.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},Z.prototype.toString=Z.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]},Z.prototype.array=Z.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]},Z.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},qe=function(){var t=z("hex");t.create=function(){return new Z},t.update=function(e){return t.create().update(e)};for(var e=0;e<U.length;++e){var n=U[e];t[n]=z(n)}return t}(),i?st.exports=qe:B.sha1=qe;var V,Y=D(e.exports),H={createScriptURL:function(e){return e},createHTML:function(e){return e}};function K(e){return V||(V=e.trustedTypesPolicy||(window.trustedTypes&&"function"==typeof window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("pendo",H):H),e.trustedTypesPolicy=V),V}var v,X="stagingServerHashes",J={};function q(e){return e.loadAsModule}function Q(e){return"staging"===e.environmentName}function ee(e){return"extension"===e.installType}function te(e,t,n){e=function(e){void 0===e&&(e=[]);for(var t=/^https:\/\/[\w\-.]*cdn[\w\-.]*\.(pendo-dev\.com|pendo\.io)\/agent\/static\/([\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12}|PENDO_API_KEY)\/pendo\.js$/g,n=0;n<e.length;n++){var i=e[n];if(t.test(i.src))return i.src.replace(/\.js$/,"-staging.js")}}(document.getElementsByTagName("script"))||e.stagingAgentUrl;return n&&(n="unminified.js",t&&(n="staging-"+n),e=e&&e.replace(/staging\.js$/,n)),e}function ne(e,t){if(Q(e=e||J))return!0;if(t=t||window.location,(o=e)&&o.stagingAgentUrl&&o[X]){o=t.host;for(var n=G.uint8ToBase64(Y.create().update(o).digest()),i=0,r=e[X].length;i<r;++i)if(e[X][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 ie=["initialize","identify","updateOptions","pageLoad","track","clearSession"];function re(e,t,n){(e._q=e._q||[])["initialize"===t?"unshift":"push"]([].concat.apply([t],n))}function oe(e){if(!e._q)for(var t=ie,n=0,i=t.length;n<i;++n)!function(e,t){t[e]=t[e]||function(){re(t,e,arguments)}}(t[n],e)}function ae(e,t,n){if(!ee(i=e)&&!Q(i)&&ne(i)){i=te(e,!0,n);if(i)return oe(t),de(i,t),!0}var i;return!1}function se(e,t,n){if(r=n,!ee(i=e)&&!i.unminified&&r){i=te(e,!1,n);if(i)return oe(t),de(i,t),!0}var i,r;return!1}function de(e,t){var n=document.createElement("script"),t=(n["async"]=!0,n.src=K(t).createScriptURL(e),document.getElementsByTagName("script")[0]);t&&t.parentNode?t.parentNode.insertBefore(n,t):(document.head||document.body).appendChild(n)}function ue(e){J=e}function ce(){return void 0===h?{}:h}function le(e){return J[e]}pe(window.setTimeout,window);function pe(e,t){return"function"==typeof e.bind?e.bind(t):e}var he,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 pe(e[t],e)}(window),y=D(function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof Bt&&Bt.global===Bt&&Bt||Function("return this")()||{},i=Array.prototype,P=Object.prototype,G="undefined"!=typeof Symbol?Symbol.prototype:null,D=i.push,d=i.slice,l=P.toString,B=P.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),W=Array.isArray,$=Object.keys,U=Object.create,j=t&&ArrayBuffer.isView,z=isNaN,Z=isFinite,V=!{toString:null}.propertyIsEnumerable("toString"),Y=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],H=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 K(e){return void 0===e}function X(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 J=r("String"),q=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=W||r("Array");function g(e,t){return null!=e&&B.call(e,t)}var oe=r("Arguments"),ae=(!function(){oe(arguments)||(oe=function(e){return g(e,"callee")})}(),oe);function se(e){return q(e)&&z(e)}function de(e){return function(){return e}}function ue(t){return function(e){e=t(e);return"number"==typeof e&&0<=e&&e<=H}}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 j?j(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=Y.length,i=e.constructor,r=p(i)&&i.prototype||P,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=Y[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function y(e){if(!o(e))return[];if($)return $(e);var t,n=[];for(t in e)g(e,t)&&n.push(t);return V&&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 G.valueOf.call(e)===G.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 V&&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!==we||!p(e[Ie])}}var Ie="forEach",e=["clear","delete"],n=["get","has","set"],W=e.concat(Ie,n),we=e.concat(n),t=["add"].concat(e,Ie,"has"),n=a?be(W):r("Map"),e=a?be(we):r("WeakMap"),W=a?be(t):r("Set"),a=r("WeakSet");function I(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 Ce(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Se(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function Ae(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 Ee=Ae(u),s=Ae(y),Te=Ae(u,!0);function _e(e){var t;return o(e)?U?U(e):((t=function(){}).prototype=e,e=new t,t.prototype=null,e):{}}function xe(e){return f(e)?e:[e]}function w(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 ke(e,t,n){e=Re(e,w(t));return K(e)?n:e}function Oe(e){return e}function C(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=w(t),function(e){return Re(e,t)}}function S(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)?S(e,t,n):(o(e)&&!f(e)?C:Ne)(e)}function Le(e,t){return Me(e,t,Infinity)}function A(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=xe,b.iteratee=Le;var E=Date.now||function(){return(new Date).getTime()};function Ge(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=Ge(t),t=Ge(Ce(t)),Be=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},We=/(.)^/,$e={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ue=/\\|'|\r|\n|\u2028|\u2029/g;function je(e){return"\\"+$e[e]}var ze=/^\s*(\w|\$)+\s*$/;var Ze=0;function Ve(e,t,n,i,r){return i instanceof t?(i=_e(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 Ve(r,s,this,this,n)};return s}),Ye=(T.placeholder=b,c(function(t,n,i){var r;if(p(t))return r=c(function(e){return Ve(t,r,n,this,i.concat(e))});throw new TypeError("Bind must be called on a function")})),_=ue(v);function x(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(_(s)&&(f(s)||ae(s)))if(1<t)x(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 He=c(function(e,t){var n=(t=x(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Ye(e[i],e)}return e});var Ke=c(function(e,t,n){return Dt(function(){return e.apply(null,n)},t)}),Xe=T(Ke,b,1);function Je(e){return function(){return!e.apply(this,arguments)}}function qe(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=T(qe,2);function et(e,t,n){t=A(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=A(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=A(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=(_(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function R(e,t,n){if(t=S(t,n),_(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 k(e,t,n){t=A(t,n);for(var i=!_(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=S(t,i,4),s=n,d=!_(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 O(e,i,t){var r=[];return i=A(i,t),R(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=A(t,n);for(var i=!_(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=A(t,n);for(var i=!_(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 _(e)||(e=I(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=w(n),r=n.slice(0,-1),n=n[n.length-1]),k(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 k(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=_(e)?e:I(e)).length;s<d;s++)null!=(n=e[s])&&o<n&&(o=n);else i=A(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):J(e)?e.match(vt):_(e)?k(e,Oe):I(e):[]}function bt(e,t,n){if(null==t||n)return(e=_(e)?e:I(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=A(i,e),R(n,function(e,t){t=i(e,t,n);o(r,e,t)}),r}}var It=M(function(e,t,n){g(e,n)?e[n].push(t):e[n]=[t]}),wt=M(function(e,t,n){e[n]=t}),Ct=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),St=M(function(e,t,n){e[n?0:1].push(t)},!0);function At(e,t,n){return t in n}var Et=c(function(e,t){var n={},i=t[0];if(null!=e){p(i)?(1<t.length&&(i=S(i,t[1])),t=u(e)):(i=At,t=x(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=Je(i),1<n.length&&(t=n[1])):(n=k(x(n,!1,!1),String),i=function(e,t){return!N(n,t)}),Et(e,i,t)});function _t(e,t,n){return d.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function xt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:_t(e,e.length-t)}function L(e,t,n){return d.call(e,null==t||n?1:t)}var Rt=c(function(e,t){return t=x(t,!0,!0),O(e,function(e){return!N(t,e)})}),kt=c(function(e,t){return Rt(e,t)});function Ot(e,t,n,i){X(t)||(i=n,n=t,t=!1),null!=n&&(n=A(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=c(function(e){return Ot(x(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=c(Mt);function Ft(e,t){return e._chain?b(t).chain():t}function Pt(n){return R(Se(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return D.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:c,isObject:o,isNull:function(e){return null===e},isUndefined:K,isBoolean:X,isElement:function(e){return!(!e||1!==e.nodeType)},isString:J,isNumber:q,isDate:Q,isRegExp:ee,isError:te,isSymbol:ne,isArrayBuffer:ie,isDataView:h,isArray:f,isFunction:p,isArguments:ae,isFinite:function(e){return!ne(e)&&Z(e)&&!isNaN(parseFloat(e))},isNaN:se,isTypedArray:he,isEmpty:function(e){var t;return null==e||("number"==typeof(t=v(e))&&(f(e)||J(e)||ae(e))?0===t:0===v(y(e)))},isMatch:ge,isEqual:function(e,t){return ye(e,t)},isMap:n,isWeakMap:e,isSet:W,isWeakSet:a,keys:y,allKeys:u,values:I,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:Ce,functions:Se,methods:Se,extend:Ee,extendOwn:s,assign:s,defaults:Te,create:function(e,t){return e=_e(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():Ee({},e):e},tap:function(e,t){return t(e),e},get:ke,has:function(e,t){for(var n=(t=w(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=A(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:xe,property:Ne,propertyOf:function(t){return null==t?Fe:function(e){return ke(t,e)}},matcher:C,matches:C,times:function(e,t,n){var i=Array(Math.max(0,e));t=S(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:Pe,now:E,escape:De,unescape:t,templateSettings:Be,template:function(o,e,t){e=Te({},e=!e&&t?t:e,b.templateSettings);var t=RegExp([(e.escape||We).source,(e.interpolate||We).source,(e.evaluate||We).source].join("|")+"|$","g"),a=0,s="__p+='";if(o.replace(t,function(e,t,n,i,r){return s+=o.slice(a,r).replace(Ue,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(!ze.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=w(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=++Ze+"";return e?e+t:t},chain:function(e){return(e=b(e))._chain=!0,e},iteratee:Le,partial:T,bind:Ye,bindAll:He,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:Ke,defer:Xe,throttle:function(n,i,r){var o,a,s,d,u=0,c=(r=r||{},function(){u=!1===r.leading?0:E(),o=null,d=n.apply(a,s),o||(a=s=null)}),e=function(){var e=E(),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=E()-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=E(),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:Je,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:qe,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,C(t))},each:R,forEach:R,map:k,collect:k,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:O,select:O,reject:function(e,t,n){return O(e,Je(A(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,C(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=_(e)?e:I(e)).length;s<d;s++)null!=(n=e[s])&&n<o&&(o=n);else i=A(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=A(i,t),gt(k(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:It,indexBy:wt,countBy:Ct,partition:St,toArray:yt,size:function(e){return null==e?0:(_(e)?e:y(e)).length},pick:Et,omit:Tt,first:xt,head:xt,take:xt,initial:_t,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 x(e,t,!1)},without:kt,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}),Gt=F.toPath;return F.mixin({toPath:function(e){return F.isString(e)?e.split("."):Gt(e)}}),F._=F}());function fe(e){return!(null==e)}function ge(e){return y.isFunction(e)||y.isRegExp(e)?e:y.isArray(e)?y.map(e,ge):y.isObject(e)?y.reduce(e,function(e,t,n){return e[n]=ge(t),e},{}):e}me=y.all,ve=y.each,ye=y.filter,be=y.first,Ie=y.find,we=y.map,Ce=y.pluck,Se="global",Ae="default",Ee={},t("additionalApiKeys",[r="pendoconfig",n="snippet"]),t("allowedOriginServers"),t("allowMixedApiKeyFrames",[n,r],!0),t("annotateUrl",[n]),t("apiKey",[r,n]),t("assetHost",[n,r]),t("autoFrameInstall",[n,r],!1),t("blockAgentMetadata",[r],!1),t("contentHost",[n,r]),t("cookieDomain",[n,r]),t("dataHost",[n,r]),t("disableAutoInitialize"),t("disableCookies",[n,r]),t("disablePendo",[n,r],!1),t("disablePersistence",[n,r]),t("enableSignedMetadata",[r],!1),t("frameIdentitySync",[n,r],!1),t("frameIdentityTopDownOnly",[n,r],!0),t("forceAnonymous",[n,r],!1),t("identityStorageLifetime",[n,r]),t("identityStorageSuffix",[n,r]),t("ignoreHashRouting",[n,r]),t("initializeImmediately",[n,r],!1),t("installType"),t("localStorageOnly",[n,r]),t("location.pushState",[n,r],!0),t("maxCookieTTLDays",[n,r],Infinity),t("observeShadowRoots",[n,r],!1),t("pendoCore",[r],!0),t("pendoGlobalKey",[r]),t("preferBroadcastChannel",[n,r],!1),t("preferMutationObserver",[n,r],!1),t("preventCookieRefresh"),t("preventUnloadListener",[n,r],!1),t("promotedAgentMetadataConfigurations",[r]),t("queryStringWhitelist",[n]),t("requireSignedMetadata",[r],!1),t("sanitizeUrl",[n]),t("selfHosted"),t("selfHostedAgentUrl",[n,r]),t("sendEventsWithPostOnly",[n,r],!1),t("siblingSelectors"),t("dropAnonymous"),t("allowedText",[n,r],[]),t("analytics.excludeEvents",[n,r],[]),t("enableDebugEvents",[n,r]),t("freeNPSData"),t("eventPropertyConfigurations"),t("eventPropertyMatchParents",[n,r],!0),t("excludeAllText",[r,n],!1,!0),t("excludeNonGuideAnalytics",[n,r],!1),t("htmlAttributeBlacklist"),t("htmlAttributes"),t("interceptElementRemoval",[n,r],!1),t("interceptPreventDefault",[n,r],!0),t("interceptStopPropagation",[n,r],!0),t("syntheticClicks.elementRemoval",[n,r],!1),t("syntheticClicks.targetChanged",[n,r],!0),t("xhrWhitelist"),t("appAutoOrdering",[n,r]),t("cacheGuides",[n,r],!1),t("cacheGuidesTimeout",[r],6e5),t("delayGuides",[n]),t("disableDesigner",[r,n],!1),t("disableDesignerKeyboardShortcut",[r],!1),t("disableGlobalCSS",[n,r],!1),t("disableGuidePseudoStyles",[n,r],!1),t("disableGuides",[n]),t("disablePrefetch",[n,r]),t("enableDesignerKeyboardShortcut",[n]),t("enableGuideTimeout",[r,n],!1),t("guideCssAssetPath"),t("guideSeenTimeoutLength",[r,n],1e4),t("guideTimeout",[n]),t("guideValidation",[n,r],!1),t("guides.attachPoint",[n]),t("guides.delay",[n]),t("guides.disabled",[n]),t("guides.ejectOnTimeout",[n,r],!1),t("guides.globalScripts",[n,r],[]),t("guides.timeout",[n]),t("guides.tooltip.arrowSize",[n]),t("inlineStyleNonce",[n]),t("leaderKey",[n,r],[]),t("preventCodeInjection",[r,n,Se],!1),t("previewModeAssetPath"),t("storage.allowKeys",[n],"*"),t("disableFeedback",[n]),t("disableFeedbackAutoInit"),t("feedbackSettings",[r],{}),t("pendoFeedback",[r],!1),t("crossAppGuideStorageSuffix",[n,r]),t("enableCrossOriginIsolation",[n,r],!1),t("adoptHost"),t("adoptAnalyticsForwarding"),t("agentDebuggerPluginLoader"),t("allowPartnerAnalyticsForwarding",[n],!1),t("adoptPrioritizeAdoptGuides",[r],!1),t("designerAgentPluginsLoader",[r,n]),t("trainingPartner"),t("errorClickLogging",[r],!1),t("forceParentDesigner",[n]),t("enableAllEmbeddedGuideEvents",[r],!1),t("formValidation",[r],!1),(Te={})[n]=function(){return{lookup:he||window.pendo_options,name:n}},Te[r]=function(){return{lookup:J,name:r}},Te[Se]=function(){return{lookup:v,name:Se}},Ne.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"};var me,ve,ye,be,Ie,we,Ce,n,r,Se,Ae,Ee,Te,m={audit:Me,get:function(e,t){return Oe(e,t).value},getLocalConfig:function(e,t){return arguments.length?Oe(e,t,[n]).value:ge(he)},getHostedConfig:function(e,t){return Oe(e,t,[r]).value},addOption:t,setLocalConfig:function(e){he=e},options:function(){return Ce(Ee,"name")},sources:{SNIPPET_SRC:n,PENDO_CONFIG_SRC:r,GLOBAL_SRC:Se,DEFAULT_SRC:Ae},validate:function(t){t.groupCollapsed("Validate Config options"),ve(Me(),function(e){t.log(String(e.active)),0<e.conflicts.length&&(t.warn("Multiple sources found with values for "+e.name),ve(e.conflicts,function(e){t.warn(String(e))}))}),t.groupEnd()}};function t(e,t,n,i){void 0===t&&(t=[r]),e&&!Ee[e]&&(n={name:e,defaultValue:n,supportedSources:t},null!=i&&(n.useAnySource=i),Ee[e]=n)}function _e(e){return Ee[e]||{name:e}}function xe(e,t){if(t)return t=t(),fe(e=y.get(t.lookup,(t=e,y.get(t,"key")||y.get(t,"name"))))?e:undefined}function Re(e,t){var n=xe(e,Te[t]);return new Ne(e.name,n,t)}function ke(e,t){return t=t||y.get(e,"supportedSources",[n,r,Se]),ye(we(t,y.partial(Re,e)),function(e){return fe(e.value)})}function Oe(e,t,n){var i=_e(e),e=new Ne(e,t=t||y.get(i,"defaultValue",null),Ae),n=ke(i,n);return i.useAnySource&&fe(t)?Ie(n,function(e){return e.value!==t})||e:be(n)||e}function Ne(e,t,n){this.name=e,this.value=t,this.source=n}function Me(){var n=[];return ve(Ee,function(e){var t;n.push({name:e.name,active:Oe(e.name),conflicts:(e=_e(e=e.name),(t=ye(ke(e),function(e){return e.source!==Ae})).length<2||me(Ce(t,"value"),function(e){return e===t[0].value})?[]:t)})}),n}var Le="prod",Fe="extension",Pe="native";function Ge(){return m.get("installType")||Pe}function De(e){var t;return e===Le?"pendo-io-static":"prod-jp"===e?"pendo-jp-prod-static":"pendo-"+((t=/^prod-(.+)$/.exec(e))&&1<t.length?t[1]:e)+"-static"}var Be,We=function(e,t){return e=e||10,(t=!isNaN(Ze)&&(!t||Ze<t))&&Be<e};function $e(e){return parseInt(e,10)}var Ue=function(e){return y.isString(e)?e.toLowerCase():e};function je(){return(window.navigator||{}).userAgent}i=je(),st=$e((/msie (\d+)/.exec(Ue(i))||[])[1]),Be=st=isNaN(st)?$e((/trident\/.*; rv:(\d+)/.exec(Ue(i))||[])[1]):st;var ze,Ze=function(e,t){e=$e((/trident\/(\d+)/.exec(Ue(e))||[])[1]);return e=isNaN(e)&&7==t?3:e}(je(),Be),Ve={},Ye=$e((/android (\d+)/.exec(Ue(je()))||[])[1]),He=/Boxee/i.test(je()),Ke=window.document||{},Xe=Ke.documentMode,Je=/^(Moz|webkit|O|ms)(?=[A-Z])/,qe=Ke.body&&Ke.body.style,e=!1,i=!1;if(qe){for(var Qe in qe)if(Qe=Je.exec(Qe)){ze=(ze=Qe[0]).substr(0,1).toUpperCase()+ze.substr(1);break}ze=ze||"WebkitOpacity"in qe&&"webkit",e=!!("transition"in qe||ze+"Transition"in qe),i=!!("animation"in qe||ze+"Animation"in qe),!Ye||e&&i||(e=y.isString(Ke.body.style.webkitTransition),i=y.isString(Ke.body.style.webkitAnimation))}var et={supportsHistoryApi:y.memoize(function(){var e=window.history&&window.history.pushState&&window.history.replaceState,t=window.history&&y.isFunction(Object.isFrozen)&&Object.isFrozen(window.history),n=window.history&&y.isFunction(Object.getOwnPropertyDescriptors)&&Object.getOwnPropertyDescriptors(window.history),n=n&&y.get(n,"pushState.writable",!0)&&y.get(n,"replaceState.writable",!0),i=!(Ye<4),r=Ge()===Fe;return!(!e||t||!n||!i||He||r)}),supportsHashChange:function(){var e="onhashchange"in window,t=!Xe||7<Xe,n=Ge()===Fe;return!(!e||!t||n)},hasEvent:function(e){var t;return("input"!=e||9!=Be)&&(y.isUndefined(Ve[e])&&(t=Ke.createElement("div"),Ve[e]="on"+e in t),Ve[e])},vendorPrefix:ze,transitions:e,animations:i,android:Ye,msie:Be,msieDocumentMode:Xe,safari:/apple/i.test(navigator.vendor),sri:"integrity"in document.createElement("script"),addEventListener:y.isFunction(window.addEventListener),MutationObserver:/native/.test(window.MutationObserver),isMinimumIEVersion:function(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e},isMobileUserAgent:y.memoize(function(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(je())})},tt=function(){return!isNaN(Be)&&11!=Be&&"CSS1Compat"!==document.compatMode},nt=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,Be<=9&&(e.arrow.top=6)):"bottom"==e.arrowPosition&&(e.top=t.top-(i+v.TOOLTIP_ARROW_SIZE),e.arrow.top=i-v.TOOLTIP_ARROW_SIZE,10==Be?e.arrow.top--:Be<=9&&(e.arrow.top+=4),n=1),"left"==e.arrow.hbias?(e.left=t.left+t.width/2-(10+2*v.TOOLTIP_ARROW_SIZE),e.arrow.left=10+v.TOOLTIP_ARROW_SIZE):"right"==e.arrow.hbias?(e.left=t.left-r+t.width/2+(10+2*v.TOOLTIP_ARROW_SIZE),e.arrow.left=r-3*v.TOOLTIP_ARROW_SIZE-10):(e.left=t.left+t.width/2-r/2,e.arrow.left=r/2-v.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-v.TOOLTIP_ARROW_SIZE),e.arrow.left=r-v.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-v.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e},it="",rt="",ot="",at="",st="",dt="2.276.0_",qe="2.276.0",ut="xhr",ct=function(){return tt()?dt+"+quirksmode":dt};function lt(){return(le("installType")||ce().installType)===Fe}function pt(){return-1!==it.indexOf("prod")}var ht=/^\s+|\s+$/g;function ft(e){for(var t=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||57344<=i?t.push(224|i>>12,128|i>>6&63,128|63&i):(n++,i=65536+((1023&i)<<10|1023&e.charCodeAt(n)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return t}var gt=(gt=String.prototype.trim)||function(){return this.replace(ht,"")},e={exports:{}};!function(){var q=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===q?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,P,n=this.input;switch(this.d){case 0:for(t=0,P=n.length;t<P;){var G,D,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===P,o=q,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),G=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&G,a[s++]=G>>>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,B=c.length;l<B;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,W,b,I,w,$,C=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=Array(19),S=ne;for(C.b(1,1,Q),C.b(S,2,Q),p=re(this,n),S=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 A,E,T,_,x,z=h,Z=f,R=new(ee?Uint32Array:Array)(z+Z),k=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=A=0;N<z;N++)R[A++]=m[N];for(N=0;N<Z;N++)R[A++]=v[N];if(!ee)for(N=0,T=O.length;N<T;++N)O[N]=0;for(N=_=0,T=R.length;N<T;N+=A){for(A=1;N+A<T&&R[N+A]===R[N];++A);if(E=A,0===R[N])if(E<3)for(;0<E--;)O[k[_++]=0]++;else for(;0<E;)(x=E-3<(x=E<138?E:138)&&x<E?E-3:x)<=10?(k[_++]=17,k[_++]=x-3,O[17]++):(k[_++]=18,k[_++]=x-11,O[18]++),E-=x;else if(k[_++]=R[N],O[R[N]]++,--E<3)for(;0<E--;)k[_++]=R[N],O[R[N]]++;else for(;0<E;)E-3<(x=E<6?E:6)&&x<E&&(x=E-3),k[_++]=16,k[_++]=x-3,O[16]++,E-=x}for(e=ee?k.subarray(0,_):k.slice(0,_),y=oe(O,7),w=0;w<19;w++)j[w]=y[U[w]];for(g=19;4<g&&0===j[g-1];g--);for(W=ae(y),C.b(h-257,5,Q),C.b(f-1,5,Q),C.b(g-4,4,Q),w=0;w<g;w++)C.b(j[w],3,Q);for(w=0,$=e.length;w<$;w++)if(b=e[w],C.b(W[b],y[b],Q),16<=b){switch(w++,b){case 16:I=2;break;case 17:I=3;break;case 18:I=7;break;default:throw"invalid code: "+b}C.b(e[w],I,Q)}for(var M,V,S=[S,m],L=[L,v],Y=S[0],H=S[1],K=L[0],X=L[1],F=0,J=p.length;F<J;++F)if(M=p[F],C.b(Y[M],H[M],Q),256<M)C.b(p[++F],p[++F],Q),V=p[++F],C.b(K[V],X[V],Q),C.b(p[++F],p[++F],Q);else if(256===M)break;this.a=C.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}(),I=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,d=I[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]===q&&(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=w.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,w=l,C=(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 w.NONE:t=0;break;case w.h:t=1;break;case w.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:w.NONE,FIXED:w.h,DYNAMIC:w.g});if(Object.keys)g=Object.keys(C);else for(m in g=[],v=0,C)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),C[m])}.call(e.exports);var mt={Deflate:D(e.exports).Zlib.Deflate},vt="base64url";function yt(e,t){t=t||vt;e=ft("string"==typeof e?e:JSON.stringify(e)),e=new mt.Deflate(e).compress();return t===vt?G.uint8ToBase64(e):e}i={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(i.exports);var bt={CRC32:D(i.exports).Zlib.CRC32},It=function(e,n){var i;return 200<=(n=n||0)?e:y.isArray(e)?y.map(e,function(e){return It(e,n+1)}):!y.isObject(e)||y.isDate(e)||y.isRegExp(e)||y.isElement(e)?y.isString(e)?y.escape(e):e:(i={},y.each(e,function(e,t){i[t]=It(e,n+1)}),i)},wt=function(e){e=ft(e);return G.uint8ToBase64(e)},Ct=function(e){if(void 0!==e)return e=ft(e=y.isString(e)?e:JSON.stringify(e)),bt.CRC32.calc(e,0,e.length)};function St(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+=St(i);return n}var Et=function(e,t,n){return!(!fe(e)||!fe(t))&&(n&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<e.indexOf(t))};function b(){return(new Date).getTime()}function Tt(){return"undefined"!=typeof $A&&y.isFunction($A.get)&&y.isString($A.get("$Browser.formFactor"))}function _t(e,t){void 0===t&&(t=window);var n="__symbol__";if("undefined"!=typeof Zone&&y.isFunction(Zone[n])){n=t[Zone[n](e)];if(y.isFunction(n))return n}return t[e]}e=window;var xt=y.isFunction(e.isFinite)?e.isFinite:e.Number&&y.isFunction(e.Number.isFinite)?e.Number.isFinite:function(e){return e!=Infinity&&e!=-Infinity&&!isNaN(e)};function Rt(e){return"number"==typeof e&&xt(e)&&Math.floor(e)===e}function kt(e,t,n,i){(t=t||{}).maxRetries=Rt(t.maxRetries)?t.maxRetries:10,t.delay=Rt(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,kt(e,t,o,a)},t.delay):(a||function(){})()}var Ot=function(e){e=e.match(/-?[\d,]+\.?([\d,]+)*/);return e?parseFloat(e[0].replace(/,/g,"")):null};function Nt(e){return y.isObject(e)&&y.isFunction(e.then)}var Mt=y.isFunction(window.decodeURIComponent)?window.decodeURIComponent:y.identity,Lt=y.isFunction(window.encodeURIComponent)?window.encodeURIComponent:y.identity,Ft=(window.Promise,i=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(e=window.Promise)&&/native/.test(e)?e:i()),Pt=function(e,t){return(Pt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};var Gt=function(){return(Gt=Object.assign||function Gt(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function Wt(e,t,s,d){return new(s=s||Ft)(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())})}function $t(n,i){var r,o,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},d=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return d.next=e(0),d["throw"]=e(1),d["return"]=e(2),"function"==typeof Symbol&&(d[Symbol.iterator]=function(){return this}),d;function e(t){return function(e){return u([t,e])}}function u(e){if(r)throw new TypeError("Generator is already executing.");for(;s=d&&e[d=0]?0:s;)try{if(r=1,o&&(a=2&e[0]?o["return"]:e[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,e[1])).done)return a;switch(o=0,(e=a?[2&e[0],a.value]:e)[0]){case 0:case 1:a=e;break;case 4:return s.label++,{value:e[1],done:!1};case 5:s.label++,o=e[1],e=[0];continue;case 7:e=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===e[0]||2===e[0])){s=0;continue}if(3===e[0]&&(!a||e[1]>a[0]&&e[1]<a[3]))s.label=e[1];else if(6===e[0]&&s.label<a[1])s.label=a[1],a=e;else{if(!(a&&s.label<a[2])){a[2]&&s.ops.pop(),s.trys.pop();continue}s.label=a[2],s.ops.push(e)}}e=i.call(n,s)}catch(t){e=[6,t],o=0}finally{r=a=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}function Ut(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||((i=i||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}jt.prototype.addEventListener=function(e,t){var n=this.listeners[e];n||(this.listeners[e]=n=[]),y.findIndex(n,function(e){return t===e})<0&&n.push(t)},jt.prototype.removeEventListener=function(e,t){var n,i=this.listeners[e];i&&0<=(n=y.findIndex(i,function(e){return t===e}))&&(i.splice(n,1),i.length||delete this.listeners[e])},jt.prototype.dispatchEvent=function(t){var e=this.listeners[t.type];e&&y.each(e,function(e){e(t)})};e=jt;function jt(){this.listeners={}}Vt.prototype.toString=function(){var e=this.message;return this.error&&e!==this.error.message&&(e="".concat(e,":").concat(this.error.message)),this.attributes&&(e+=": ".concat(y.map(this.attributes,function(e,t){return"".concat(t,"=").concat(e)}))),e},Vt.prototype.hashCode=function(){return this.toString()};var zt,Zt=Vt;function Vt(e,t,n){this.type="log",this.logged=!1,this.level=e,this.message=t,this.attributes=n}(i=zt=zt||{}).Debug="debug",i.Info="info",i.Warn="warn",i.Error="error",i.Critical="critical";var I=new(function(e){var t=r,n=e;if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}function r(){return null!==e&&e.apply(this,arguments)||this}return Pt(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i),r.prototype.write=function(e,t,n){this.dispatchEvent(new Zt(t,e,n))},r.prototype.writeError=function(e,t,n){y.isString(e)?r={message:i=e}:i=(r=e).message,n&&n.error&&(r=n.error,delete n.error);var i,r,e=new Zt(t,i,n);e.error=r,this.dispatchEvent(e)},r.prototype.debug=function(e,t){this.write(e,zt.Debug,t)},r.prototype.info=function(e,t){this.write(e,zt.Info,t)},r.prototype.warn=function(e,t){this.writeError(e,zt.Warn,t)},r.prototype.error=function(e,t){this.writeError(e,zt.Error,t)},r.prototype.critical=function(e,t){this.writeError(e,zt.Critical,t)},r}(e));function Yt(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var Ht=function(){var e=m.get("storage.allowKeys")||"*";return y.isArray(e)?y.indexBy(e):e};function Kt(t,n,i){return function(){try{return n.apply(t,arguments)}catch(e){return i}}}function Xt(n){y.forEach(y.keys(n),function(e){try{/^_?pendo_/.test(e)&&n.removeItem(e)}catch(t){}})}function Jt(e){var t=y.noop,t={getItem:function(){return null},setItem:t,removeItem:t,clearPendo:t};try{var n=e();return n?{getItem:Kt(n,n.getItem,null),setItem:Kt(n,n.setItem),removeItem:Kt(n,n.removeItem),clearPendo:y.partial(Xt,n)}:t}catch(i){return t}}var qt,i=Jt(function(){return window.localStorage}),e=Jt(function(){return window.sessionStorage}),Qt={},en=!0,tn=function(){return m.get("localStorageOnly")},nn=function(){return!!m.get("disableCookies")};function rn(e){en=e}var on=function(e){var t=nn()||tn()?Qt[e]:document.cookie;return(e=new RegExp("(^|; )"+e+"=([^;]*)").exec(t))?Mt(e[2]):null},an=function(e,t,n,i){var r,o;!en||m.get("preventCookieRefresh")&&on(e)===t||(o=pn(n),(r=new Date).setTime(r.getTime()+o),o=e+"="+Lt(t)+(n?";expires="+r.toUTCString():"")+"; path=/"+("https:"===document.location.protocol||i?";secure":"")+"; SameSite=Strict",qt&&(o+=";domain="+qt),nn()||tn()?Qt[e]=o:document.cookie=o)};function sn(e){qt?an(e,""):document.cookie=e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"}var dn=function(e,t){return"_pendo_".concat(e,".").concat(t||v.apiKey)},un=function(e,t){return on(dn(e,t))},cn=864e5,ln=100*cn,pn=function(e){void 0===e&&(e=ln);var t=m.get("maxCookieTTLDays"),t=t<Infinity?t*cn:Infinity;return Math.min(e,t)},hn=function(e,t,n,i,r){n=n||ln,an(dn(e,r),t,n,i)};function fn(){this.keys={}}fn.prototype.addLocal=function(e){this._add(e,"local")},fn.prototype.addSession=function(e){this._add(e,"session")},fn.prototype.hasLocal=function(e){return this._has(e,"local")},fn.prototype.hasSession=function(e){return this._has(e,"session")},fn.prototype._add=function(e,t){this.keys[e]||(this.keys[e]=t)},fn.prototype._has=function(e,t){return this.keys[e]===t};gn=new fn,mn=y.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}}),(vn=y.extend({},e)).setItem=bn(vn.setItem,"hasSession"),(yn=y.extend({},i)).setItem=bn(yn.setItem,"hasLocal");var gn,mn,vn,yn,w={read:function(e,t,n){var i;return In()?(i=t?e:dn(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)))&&Cn(e,t,n),i):t?on(e):un(e,n)},write:bn(function(e,t,n,i,r,o){if(wn(mn),In())try{var a=i?e:dn(e,o);return localStorage.setItem(a,function(e,t){if(null===t)return e;t=(new Date).getTime()+pn(t);return JSON.stringify({ttl:t,value:e})}(t,n)),void wn(mn)}catch(s){}if(!i)return hn(e,t,n,r,o);an(e,t,n,r)},"hasLocal"),clear:Cn,registry:gn,getLocal:function(){return yn},getSession:function(){return vn}};function bn(i,r){return function(e){var t,n;if(t=e,"*"===(n=Ht())||n[t])return gn[r](e)||I.warn("storage key ".concat(e," is not registered")),i.apply(this,arguments);I.debug("writing storage key ".concat(e," is not allowed"))}}function In(){return!nn()&&!qt&&mn("localStorage")}function wn(e){e.cache&&(e.cache={})}function Cn(e,t,n){t=t?e:dn(e,n);if(In())return localStorage.removeItem(t);sn(t)}An=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},En=function(n,i){var r=Sn.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===Tn?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},Tn=1,(Sn={}).defer=function(){var n,i=0,r=[],t=function(e,t){i=e,n=t,y.each(r,function(e){e.handle(i,n)}),r=null},o=function(e){t(Tn,e)},a=function(e){t(2,e)},s=function(e,t){e=En(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},d=function(e){var t=An();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=An();return{resolve:e(u),reject:e(a),promise:{then:s,"catch":function(e){return s(null,e)}}}};var Sn,An,En,Tn,C,e=Sn;function _n(e){var n,i=C.defer(),r=y.isArray(e)?[]:{},o=y.size(e);return o?(n=!1,y.each(e,function(e,t){C.resolve(e).then(function(e){r[t]=e,0!=--o||n||i.resolve(r)},function(e){n||(n=!0,i.reject(e))})}),i.promise):C.resolve(e)}!lt()&&et.isMinimumIEVersion(11)?C={all:function(e){return y.isArray(e)?Ft.all.apply(Ft,arguments):_n(e)},reject:function(){return Ft.reject.apply(Ft,arguments)},resolve:function(){return Ft.resolve.apply(Ft,arguments)},defer:function(){var n={};return n.promise=new Ft(function(e,t){n.resolve=e,n.reject=t}),n}}:((C=e).all=_n,C.reject=function(e){var t=C.defer();return t.reject(e),t.promise},C.resolve=function(e){var t=C.defer();return t.resolve(e),t.promise});var xn=w.getSession(),Rn="pendo_tabId",kn="pendo_parentTabId";On=window,i=y.partial,Nn=y.extend,Mn=y.omit,Ln={data:{},getItem:function(e){return Ln.data[e]},setItem:function(e,t){Ln.data[e]=t},removeItem:function(e){Ln.data[e]=null,delete Ln.data[e]}},Fn=i(Wn,Rn,$n),Pn=i(Wn,"pendo_frameId",Ln);var On,Nn,Mn,Ln,Fn,Pn,Gn={addTracerIds:function(e){return Mn(Nn(e,{parentTabId:Dn(kn,$n),tabId:Fn(),frameId:Pn()}),function(e){return e===undefined})},setParentTabId:function(e){Bn(kn,e,$n)},newTabId:function(){var e=At(16);return Bn(Rn,e,$n),e},getTabId:Fn,getFrameId:Pn,tabIdChanged:function(t){var e;if(et.addEventListener)return On.addEventListener("storage",e=function(e){e.key===Rn&&(Ln.removeItem(Rn),t())}),function(){On.removeEventListener("storage",e)}}};function Dn(e,t){return(y.isFunction(t)?t():t).getItem(e)}function Bn(e,t,n){(y.isFunction(n)?n():n).setItem(e,t)}function Wn(e,t){var n=Dn(e,t);return n||Bn(e,n=At(16),t),n}function $n(){return n=Ln,i=xn,{getItem:function(e){var t=n.getItem(e);return t===undefined&&(t=i.getItem(e),n.setItem(e,t)),t},setItem:function(e,t){n.setItem(e,t),i.setItem(e,t)},removeItem:function(e){n.removeItem(e),i.removeItem(e)}};var n,i}function Un(){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(y.isString(e)||y.isFunction(t))&&(n=(n=i[e])||(i[e]=[]),y.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 y.isFunction(t)?(n=y.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=y.toArray(arguments).slice(1);return y.map(t,function(e){return e.apply(v,n)})},this.triggerCancelable=function(e,t){e=i[e]?i[e].slice():[];return y.map(e,function(e){if(!t.cancel)return e.apply(v,[t])})},this.triggerAsync=function(){var e=y.map(this.trigger.apply(this,arguments),function(e){return!1===e?C.reject():e});return C.all(e)},this}Un.clear=function(t){t&&y.each(y.keys(t._handlers),function(e){t.off(e),delete t._handlers[e]})};rr={DEBUG:e="debug",FRAMES:i="frames",LIFECYCLE:s="lifecycle",RUNTIME:lr="runtime"},jn=[new a("ready",[e,s]),new a("deliverablesLoaded",[e,s]),new a("guidesFailed",[e,s]),new a("guidesLoaded",[e,s]),new a("guideListChanged",[e,s]),new a("guideSeen",[e,s]),new a("guideNotSeen",[e,s]),new a("guideAdvanced",[e,s]),new a("guideDismissed",[e,s]),new a("guideSnoozed",[e,s]),new a("beforeGuideShow",[s]),new a("beforeMount",[lr]),new a("beforeAdvance",[lr]),new a("beforePrevious",[lr]),new a("beforeSnooze",[lr]),new a("beforeDismiss",[lr]),new a("beforeUnmount",[lr]),new a("unmounted",[lr]),new a("beforeUpdate",[lr]),new a("updated",[lr]),new a("guideSnoozeCancelled",[e,s]),new a("guideTimeout",[e,s]),new a("guideLoopStopped",[e,s]),new a("guideUpdateComplete",[s]),new a("designerLaunched",[e,s]),new a("debuggerLaunched",[e,s]),new a("stepEligibility",[e]),new a("identify",[e,s]),new a("metadata",[e,s]),new a("appUnloaded",[e,s]),new a("appHidden",[e,s]),new a("startPreview",[e]),new a("resourceFetchFail",[e]),new a("contentVerificationFail",[e]),new a("contentValidationFail",[e]),new a("renderFail",[e]),new a("appUsage",[s]),new a("eventCaptured",[e]),new a("error",[e,s]),new a("onClickCaptured",[e]),new a("urlChanged",[s]),new a("leaderChanged",[s,i]),new a("transmit:locked",[s]),new a("transmit:unlocked",[s]),new a("sessionChanged",[s]),new a("childFrameJoined",[i]),new a("tabIdChanged:self",[e,s])],zn=Un.call({}),Zn={debug:function(){return Gn.addTracerIds(Yn.apply(null,arguments))},lifecycle:Yn,runtime:Yn,frames:Yn},Vn=zn.trigger,zn.trigger=Hn,y.each(y.values(rr),function(e){zn[e]={on:y.partial(zn.on,e),one:y.partial(zn.one,e),off:y.partial(zn.off,e)}}),y.each(jn,function(e){e=e.name,zn[e]={on:y.partial(zn.on,e),one:y.partial(zn.one,e),off:y.partial(zn.off,e),trigger:y.partial(Hn,e)}});var jn,zn,Zn,Vn,S=zn;function a(e,t){this.name=e,this.groups=t||[]}function Yn(e,t){e={type:e,ts:b()};return fe(t)&&y.isObject(t)&&(e.data=t),e}function Hn(t){var e=y.findWhere(jn,{name:t}),n=y.toArray(arguments).slice(1),i={};return y.each(e.groups,function(e){i.cancel||(i=Zn[e](t,n),Vn.apply(zn,[e].concat(i)))}),i.cancel||(i=Yn(t,n),Vn.apply(zn,[t].concat(i))),i}function Kn(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),y.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),y.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:y.partial(t,i),subscribeAction:y.partial(t,r),registerModule:function h(n,e){y.isString(n)&&(n=[n]);var t=u(s.state,e,n);y.extend(s.getters,p(e,t,s,n));y.extend(o,c(e,t,n));y.extend(a,l(e,t,s,n));y.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return y.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):y.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 y.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),y.extend(i,ge(t.state||{}))}function c(e,n,i){var r={};return y.each(e.mutations,function(e,t){r[d(i,t)]=y.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 y.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return y.each(e.actions,function(e,t){n[d(r,t)]=y.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return y.each(e.getters,function(e,t){a[t]=o[d(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}var A=Kn(),Xn=(A.subscribe(function(e,t){}),"_PENDO_T_"),Jn=11,qn="visitorId",Qn="oldVisitorId",ei="accountId",ti=function(e){return(e=void 0===e?"":e)+At(Jn)};var ni=function(e){return fe(e)&&""!==e&&e!==di&&"boolean"!=typeof e&&"object"!=typeof e&&!((e=e)&&"string"==typeof e&&0===gt.call(e).length)},ii=function(e){return!(!e||"number"==typeof e)&&e.substring(0,Xn.length)===Xn},ri=function(){return!m.get("disablePersistence")},oi=function(e){e=e||[qn,ei,Qn];var t=m.get("identityStorageSuffix")||v.apiKey;y.each(e,function(e){sn(dn(e,t)),w.clear(e,!1,t)})},ai="VISITOR-UNIQUE-ID",si=function(e){return ai===e},di="::",ui=function(e){return new RegExp(di).test(e)};function ci(e){return e.old_visitor_id!==e.visitor_id}var li,pi=function(e,t){var n,i={old_visitor_id:E(),old_account_id:mi()};ni(e)?(ni(n=e)?fi(""+n):I.info("Invalid visitor id "+n),n=t,y.isUndefined(n)?I.info("No account id provided"):ni(n)?(v.accountId=""+n,ri()&&vi(ei,v.accountId)):(delete v.accountId,delete(t=m.getLocalConfig()).account,m.setLocalConfig(t),A.commit("metadata/clearAccount"),ri()&&w.clear(ei),I.info("Invalid account id: "+n+". Account cleared")),i.visitor_id=E({generate:!0}),i.account_id=mi(),!ci(t=i)&&t.old_account_id===t.account_id||(ci(i)&&(n=i.old_visitor_id)&&vi(Qn,li=n),S.identify.trigger(i))):I.info("Invalid visitor id "+e)};function hi(){return ti(Xn)}function fi(e){v.visitorId!==e&&(ri()&&vi(qn,e),v.visitorId=e)}function E(e){void 0===e&&(e={});var t=function(){if(ni(v.visitorId))return v.visitorId;var e=m.get("forceAnonymous");if(ri()){var t=yi(qn);if(ni(t)&&(!e||ii(t)))return t}return undefined}();return fi(t=!t&&e.generate?hi():t),t}function gi(){return E()||hi()}var mi=function(){var e=m.get("forceAnonymous");return ni(v.accountId)||!ri()||e||(e=yi(ei),v.accountId=e),v.accountId};function vi(e,t){var n=m.get("identityStorageLifetime")||ln,i=m.get("identityStorageSuffix")||v.apiKey;w.write(e,t,n,!1,!0,i)}function yi(e){var t=m.get("identityStorageSuffix"),n=t||v.apiKey,n=w.read(e,!1,n)||w.read(e,!1,v.apiKey);return t&&w.clear(e,!1,v.apiKey),n}function bi(){var e={old_visitor_id:E({generate:!1}),old_account_id:mi(),wasCleared:!0};oi(),delete v.visitorId,delete v.accountId,E({generate:!0}),y.extend(e,{visitor_id:E(),account_id:mi()}),S.identify.trigger(e)}function Ii(e){e=e.data[0];return y.get(e,"wasCleared")}var wi=function(t,n){return n=!!n,function(){try{return t.apply(this,arguments)}catch(e){n||I.critical(e)}}};lr=function(n){return function Ci(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 Ci="function"==typeof(i=window.URL)&&/native/.test(i)?i:lr(document);function Si(e){if((t=e)&&y.isFunction(t.composedPath))try{return e.composedPath()}catch(n){return e.path}var t;return null}function Ai(e){return e.shadowRoot}function Ei(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function Ti(e,t){return Ei(e,t)?e.host:e.parentNode}var _i={PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:Si,getShadowRoot:Ai,isElementShadowRoot:Ei,getParent:Ti,isShadowSelector:xi,wrapSizzle:function(i){i.intercept(function(a,e,n,i,r){var t,o;return xi(e)?y.isFunction(document.documentElement.attachShadow)?(o=a,t=(t=e).replace(_i.PSEUDO_REGEX,_i.PSEUDO_SAFE),t=y.map(o.tokenize(t),Ri),y.reduce(t,function(e,t){return e.concat(s(t,n,i,r))},[])):a(e.replace(_i.PSEUDO_REGEX,""),n,i,r):a(e,n,i,r);function s(e,t,n,i){var r,o;return xi(e)?(o=s((r={baseCss:(o=(o=e).split(_i.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:o.join(_i.PSEUDO_ELEMENT)}).baseCss,t),y.reduce(o,function(e,t){return _i.getShadowRoot(t)?e.concat(s(r.shadowCss,_i.getShadowRoot(t),n,i)):e},[])):a(e,t,n,i)}}),i.intercept(function(e,t,n){return!_i.isElementShadowRoot(t)&&(xi(n)?0<i(n,document,null,[t]).length:e(t,n))},"matchesSelector")}};function xi(e){return!!e&&-1<e.indexOf(_i.PSEUDO_ELEMENT)}function Ri(e){return y.reduce(e,function(e,t){return t.value===_i.PSEUDO_SAFE?e+_i.PSEUDO_ELEMENT:e+t.value},"")}var ki,Oi,T,Ni,Mi,Li,Fi,Pi,Gi,Di,Bi,Wi,_,$i,Ui,ji,zi,Zi,Vi,e={exports:{}},s=e,Yi=window,Hi="sizzle"+ +new Date,Ki=Yi.document,Xi=0,Ji=0,qi=Mr(),Qi=Mr(),er=Mr(),tr=Mr(),nr=function(e,t){return e===t&&(Bi=!0),0},ir={}.hasOwnProperty,rr=[],or=rr.pop,ar=rr.push,sr=rr.push,dr=rr.slice,ur=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},cr="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",d="[\\x20\\t\\r\\n\\f]",i="(?:\\\\[\\da-fA-F]{1,6}"+d+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",lr="\\["+d+"*("+i+")(?:"+d+"*([*^$|!~]?=)"+d+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+i+"))|)"+d+"*\\]",pr=":("+i+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+lr+")*)|.*)\\)|)",hr=new RegExp(d+"+","g"),fr=new RegExp("^"+d+"+|((?:^|[^\\\\])(?:\\\\.)*)"+d+"+$","g"),gr=new RegExp("^"+d+"*,"+d+"*"),mr=new RegExp("^"+d+"*([>+~]|"+d+")"+d+"*"),vr=new RegExp(d+"|>"),yr=new RegExp(pr),br=new RegExp("^"+i+"$"),Ir={ID:new RegExp("^#("+i+")"),CLASS:new RegExp("^\\.("+i+")"),TAG:new RegExp("^("+i+"|[*])"),ATTR:new RegExp("^"+lr),PSEUDO:new RegExp("^"+pr),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+d+"*(even|odd|(([+-]|)(\\d*)n|)"+d+"*(?:([+-]|)"+d+"*(\\d+)|))"+d+"*\\)|)","i"),bool:new RegExp("^(?:"+cr+")$","i"),needsContext:new RegExp("^"+d+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+d+"*((?:-\\d)?\\d*)"+d+"*\\)|)(?=[^-]|$)","i")},wr=/HTML$/i,Cr=/^(?:input|select|textarea|button)$/i,Sr=/^h\d$/i,Ar=/^[^{]+\{\s*\[native \w/,Er=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Tr=/[+~]/,_r=new RegExp("\\\\[\\da-fA-F]{1,6}"+d+"?|\\\\([^\\r\\n\\f])","g"),xr=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))},Rr=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,kr=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Or=function(){Wi()},Nr=jr(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{sr.apply(rr=dr.call(Ki.childNodes),Ki.childNodes),rr[Ki.childNodes.length].nodeType}catch(qS){sr={apply:rr.length?function(e,t){ar.apply(e,dr.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&&(Wi(t),t=t||_,Ui)){if(11!==l&&(s=Er.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))&&Vi(t,u)&&u.id===r)return n.push(u),n}else{if(s[2])return sr.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&Oi.getElementsByClassName&&t.getElementsByClassName)return sr.apply(n,t.getElementsByClassName(r)),n}if(Oi.qsa&&!tr[e+" "]&&(!ji||!ji.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(u=e,c=t,1===l&&(vr.test(e)||mr.test(e))){for((c=Tr.test(e)&&Wr(t.parentNode)||t)===t&&Oi.scope||((a=t.getAttribute("id"))?a=a.replace(Rr,kr):t.setAttribute("id",a=Hi)),o=(d=Li(e)).length;o--;)d[o]=(a?"#"+a:":scope")+" "+Ur(d[o]);u=d.join(",")}try{return sr.apply(n,c.querySelectorAll(u)),n}catch(p){tr(e,!0)}finally{a===Hi&&t.removeAttribute("id")}}}return Pi(e.replace(fr,"$1"),t,n,i)}function Mr(){var n=[];function i(e,t){return n.push(e+" ")>T.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function Lr(e){return e[Hi]=!0,e}function Fr(e){var t=_.createElement("fieldset");try{return!!e(t)}catch(qS){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function Pr(e,t){for(var n=e.split("|"),i=n.length;i--;)T.attrHandle[n[i]]=t}function Gr(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 Dr(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&&Nr(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function Br(a){return Lr(function(o){return o=+o,Lr(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 Wr(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(ki in Oi=x.support={},Mi=x.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!wr.test(t||e&&e.nodeName||"HTML")},Wi=x.setDocument=function(e){var e=e?e.ownerDocument||e:Ki;return e!=_&&9===e.nodeType&&e.documentElement&&($i=(_=e).documentElement,Ui=!Mi(_),Ki!=_&&(e=_.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",Or,!1):e.attachEvent&&e.attachEvent("onunload",Or)),Oi.scope=Fr(function(e){return $i.appendChild(e).appendChild(_.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),Oi.attributes=Fr(function(e){return e.className="i",!e.getAttribute("className")}),Oi.getElementsByTagName=Fr(function(e){return e.appendChild(_.createComment("")),!e.getElementsByTagName("*").length}),Oi.getElementsByClassName=!!_.getElementsByClassName,Oi.getById=Fr(function(e){return $i.appendChild(e).id=Hi,!_.getElementsByName||!_.getElementsByName(Hi).length}),Oi.getById?(T.filter.ID=function(e){var t=e.replace(_r,xr);return function(e){return e.getAttribute("id")===t}},T.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&Ui)return(e=t.getElementById(e))?[e]:[]}):(T.filter.ID=function(e){var t=e.replace(_r,xr);return function(e){e="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},T.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&Ui){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[]}}),T.find.TAG=Oi.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):Oi.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},T.find.CLASS=Oi.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&Ui?t.getElementsByClassName(e):Oi.qsa&&Ui?t.querySelectorAll("."+e):void 0},zi=[],ji=[],(Oi.qsa=!!_.querySelectorAll)&&(Fr(function(e){var t;$i.appendChild(e).innerHTML=K().createHTML("<a id='"+Hi+"'></a><select id='"+Hi+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&ji.push("[*^$]="+d+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||ji.push("\\["+d+"*(?:value|"+cr+")"),e.querySelectorAll("[id~="+Hi+"-]").length||ji.push("~="),(t=_.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||ji.push("\\["+d+"*name"+d+"*="+d+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||ji.push(":checked"),e.querySelectorAll("a#"+Hi+"+*").length||ji.push(".#.+[+~]"),e.querySelectorAll("\\\f"),ji.push("[\\r\\n\\f]")}),Fr(function(e){e.innerHTML=K().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&&ji.push("name"+d+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&ji.push(":enabled",":disabled"),$i.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&ji.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),ji.push(",.*:")})),(Oi.matchesSelector=Ar.test(Zi=$i.matches||$i.webkitMatchesSelector||$i.mozMatchesSelector||$i.oMatchesSelector||$i.msMatchesSelector))&&Fr(function(e){Oi.disconnectedMatch=Zi.call(e,"*"),Zi.call(e,"[s!='']:x"),zi.push("!=",pr)}),ji=ji.length&&new RegExp(ji.join("|")),zi=zi.length&&new RegExp(zi.join("|")),e=!!$i.compareDocumentPosition,Vi=e||$i.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},nr=e?function(e,t){var n;return e===t?(Bi=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!Oi.sortDetached&&t.compareDocumentPosition(e)===n?e==_||e.ownerDocument==Ki&&Vi(Ki,e)?-1:t==_||t.ownerDocument==Ki&&Vi(Ki,t)?1:Di?ur(Di,e)-ur(Di,t):0:4&n?-1:1)}:function(e,t){if(e===t)return Bi=!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:Di?ur(Di,e)-ur(Di,t):0;if(r===o)return Gr(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?Gr(a[i],s[i]):a[i]==Ki?-1:s[i]==Ki?1:0}),_},x.matches=function(e,t){return x(e,null,null,t)},x.matchesSelector=function(e,t){if(Wi(e),Oi.matchesSelector&&Ui&&!tr[t+" "]&&(!zi||!zi.test(t))&&(!ji||!ji.test(t)))try{var n=Zi.call(e,t);if(n||Oi.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(qS){tr(t,!0)}return 0<x(t,_,null,[e]).length},x.contains=function(e,t){return(e.ownerDocument||e)!=_&&Wi(e),Vi(e,t)},x.attr=function(e,t){(e.ownerDocument||e)!=_&&Wi(e);var n=T.attrHandle[t.toLowerCase()],n=n&&ir.call(T.attrHandle,t.toLowerCase())?n(e,t,!Ui):undefined;return n!==undefined?n:Oi.attributes||!Ui?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},x.escape=function(e){return(e+"").replace(Rr,kr)},x.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},x.uniqueSort=function(e){var t,n=[],i=0,r=0;if(Bi=!Oi.detectDuplicates,Di=!Oi.sortStable&&e.slice(0),e.sort(nr),Bi){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return Di=null,e},Ni=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+=Ni(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=Ni(t);return n},(T=x.selectors={cacheLength:50,createPseudo:Lr,match:Ir,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(_r,xr),e[3]=(e[3]||e[4]||e[5]||"").replace(_r,xr),"~="===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 Ir.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&yr.test(n)&&(t=(t=Li(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(_r,xr).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=qi[e+" "];return t||(t=new RegExp("(^|"+d+")"+e+"("+d+"|$)"))&&qi(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(hr," ")+" ").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)[Hi]||(a[Hi]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===Xi&&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]=[Xi,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[Hi]||(a[Hi]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===Xi&&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[Hi]||(a[Hi]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[Xi,h]),a!==e)););return(h-=m)===g||h%g==0&&0<=h/g}}},PSEUDO:function(e,o){var t,a=T.pseudos[e]||T.setFilters[e.toLowerCase()]||x.error("unsupported pseudo: "+e);return a[Hi]?a(o):1<a.length?(t=[e,e,"",o],T.setFilters.hasOwnProperty(e.toLowerCase())?Lr(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=ur(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:Lr(function(e){var i=[],r=[],s=Fi(e.replace(fr,"$1"));return s[Hi]?Lr(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:Lr(function(t){return function(e){return 0<x(t,e).length}}),contains:Lr(function(t){return t=t.replace(_r,xr),function(e){return-1<(e.textContent||Ni(e)).indexOf(t)}}),lang:Lr(function(n){return br.test(n||"")||x.error("unsupported lang: "+n),n=n.replace(_r,xr).toLowerCase(),function(e){var t;do{if(t=Ui?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=Yi.location&&Yi.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===$i},focus:function(e){return e===_.activeElement&&(!_.hasFocus||_.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:Dr(!1),disabled:Dr(!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!T.pseudos.empty(e)},header:function(e){return Sr.test(e.nodeName)},input:function(e){return Cr.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:Br(function(){return[0]}),last:Br(function(e,t){return[t-1]}),eq:Br(function(e,t,n){return[n<0?n+t:n]}),even:Br(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:Br(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:Br(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:Br(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=T.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})T.pseudos[ki]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(ki);for(ki in{submit:!0,reset:!0})T.pseudos[ki]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(ki);function $r(){}function Ur(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function jr(a,e,t){var s=e.dir,d=e.next,u=d||s,c=t&&"parentNode"===u,l=Ji++;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=[Xi,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[Hi]||(e[Hi]={}))[e.uniqueID]||(r[e.uniqueID]={}),d&&d===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=r[u])&&i[0]===Xi&&i[1]===l)return o[2]=i[2];if((r[u]=o)[2]=a(e,t,n))return!0}return!1}}function zr(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 Zr(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 Vr(h,f,g,m,v,e){return m&&!m[Hi]&&(m=Vr(m)),v&&!v[Hi]&&(v=Vr(v,e)),Lr(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:Zr(c,s,h,n,i),p=g?v||(e?h:u||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=Zr(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?ur(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=Zr(p===t?p.splice(u,p.length):p),v?v(null,t,p,i):sr.apply(t,p)})}$r.prototype=T.filters=T.pseudos,T.setFilters=new $r,Li=x.tokenize=function(e,t){var n,i,r,o,a,s,d,u=Qi[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],d=T.preFilter;a;){for(o in n&&!(i=gr.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=mr.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(fr," ")}),a=a.slice(n.length)),T.filter)T.filter.hasOwnProperty(o)&&(i=Ir[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):Qi(e,s).slice(0)},Fi=x.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=er[e+" "];if(!a){for(n=(t=t||Li(e)).length;n--;)((a=function l(e){for(var i,t,n,r=e.length,o=T.relative[e[0].type],a=o||T.relative[" "],s=o?1:0,d=jr(function(e){return e===i},a,!0),u=jr(function(e){return-1<ur(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==Gi)||((i=t).nodeType?d:u)(e,t,n),i=null,e}];s<r;s++)if(t=T.relative[e[s].type])c=[jr(zr(c),t)];else{if((t=T.filter[e[s].type].apply(null,e[s].matches))[Hi]){for(n=++s;n<r&&!T.relative[e[n].type];n++);return Vr(1<s&&zr(c),1<s&&Ur(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(fr,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&Ur(e))}c.push(t)}return zr(c)}(t[n]))[Hi]?r:o).push(a);(a=er(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=Gi,h=e||b&&T.find.TAG("*",r),f=Xi+=null==p?1:Math.random()||.1,g=h.length;for(r&&(Gi=t==_||t||r);u!==g&&null!=(o=h[u]);u++){if(b&&o){for(a=0,t||o.ownerDocument==_||(Wi(o),n=!Ui);s=m[a++];)if(s(o,t||_,n)){i.push(o);break}r&&(Xi=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]=or.call(i));l=Zr(l)}sr.apply(i,l),r&&!e&&0<l.length&&1<d+v.length&&x.uniqueSort(i)}return r&&(Xi=f,Gi=p),c},y?Lr(i):i))).selector=e}return a},Pi=x.select=function(e,t,n,i){var r,o,a,s,d,u="function"==typeof e&&e,c=!i&&Li(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&&Ui&&T.relative[o[1].type]){if(!(t=(T.find.ID(a.matches[0].replace(_r,xr),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=Ir.needsContext.test(e)?0:o.length;r--&&(a=o[r],!T.relative[s=a.type]);)if((d=T.find[s])&&(i=d(a.matches[0].replace(_r,xr),Tr.test(o[0].type)&&Wr(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&Ur(o))break;return sr.apply(n,i),n}}return(u||Fi(e,c))(i,t,!Ui,n,!t||Tr.test(e)&&Wr(t.parentNode)||t),n},Oi.sortStable=Hi.split("").sort(nr).join("")===Hi,Oi.detectDuplicates=!!Bi,Wi(),Oi.sortDetached=Fr(function(e){return 1&e.compareDocumentPosition(_.createElement("fieldset"))}),Fr(function(e){return e.innerHTML=K().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||Pr("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),Oi.attributes&&Fr(function(e){return e.innerHTML=K().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||Pr("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),Fr(function(e){return null==e.getAttribute("disabled")})||Pr(cr,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var Yr=Yi.Sizzle;x.noConflict=function(){return Yi.Sizzle===x&&(Yi.Sizzle=Yr),x},s.exports?s.exports=x:Yi.Sizzle=x;Hr=D(e.exports),(Kr=y.extend(function(){return Kr.Sizzle.apply(this,arguments)},Hr)).reset=function(){Kr.Sizzle=Hr,Kr.matchesSelector=Hr.matchesSelector,Kr.matches=Hr.matches},Kr.intercept=function(e,t){Kr[t=void 0===t?"Sizzle":t]=y.wrap(Kr[t],e)},Kr.reset();var Hr,Kr,Xr=Kr;function R(e,t){var n,i=this;if(e&&e instanceof R)return e;if(!(i instanceof R))return new R(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=y.toArray(r.childNodes)}else if(y.isString(e)){t instanceof R&&(t=0<t.length?t[0]:null);try{n=Xr(e,t)}catch(o){n=[]}}else n=[e];else n=[];return y.each(n,function(e,t){i[t]=e}),i.context=t,i.length=n.length,i}function Jr(){this.ownerKey="_pendo_"+At(8)}y.extend(Jr.prototype,{cache:function(e){var t;return y.isObject(e)?((t=e[this.ownerKey])||(e[this.ownerKey]=t={}),t):{}},set:function(e,t,n){e=this.cache(e);return e[t]=n,e},get:function(e,t){return t===undefined?this.cache(e):e[this.ownerKey]&&e[this.ownerKey][t]},remove:function(e,t){var n=this.cache(e);delete n[t],t!==undefined&&!y.isEmpty(n)||(e[this.ownerKey]=undefined)}});var qr=new Jr,Qr=1;function eo(e){return y.isNumber(e.eventPhase)&&e.eventPhase===Qr}function to(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?_t("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),function(){no(e,t,n,i)}):y.noop}function no(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?_t("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var io=function(e){var t=_i.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},ro={add:function(t,e){var n=qr.get(t),i=(n.handle||(n.handle=function(e){ro.dispatch(t,e)}),e.id=y.uniqueId(),e.capture?"captureEvents":"bubbleEvents"),i=n[i]=n[i]||{},i=i[e.type]=i[e.type]||[];return i.length||to(t,e.type,n.handle,e.capture),i.push(e),function(){R.event.remove(t,e.type,e.handler,e.capture)}},dispatch:function(r,o){var e,t,a;r&&(e=(qr.get(r,"captureEvents")||{})[o.type]||[],t=(qr.get(r,"bubbleEvents")||{})[o.type]||[],(t=e.concat(t)).length)&&!(a=qr.get(o)).ignore&&(a.handled=a.handled||{},y.each(t.slice(),function(e){var t=!!e.capture===eo(o),n=(n=o,y.isNumber(n.eventPhase)&&2===n.eventPhase),t=!t&&!n;if(!(io(o)!==r&&t||a.handled[e.id])){a.handled[e.id]=!0;try{(!fe(e.selector)||0<R(io(o)).closest(e.selector).length)&&e.handler.call(r,o)}catch(i){I.error(i)}}}))},remove:function(e,t,n,i){var r=qr.get(e);if(r){if(y.isFunction(n)){var o=i?r.captureEvents:r.bubbleEvents;if(!o)return;var a=o[t];if(!a)return;var s=y.findIndex(a,function(e){return e.handler===n});0<=s&&a.splice(s,1),a.length||(delete o[t],no(e,t,r.handle,i))}else n===undefined&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],no(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],no(e,t,r.handle));y.isEmpty(r.captureEvents)&&y.isEmpty(r.bubbleEvents)&&(qr.remove(e,"captureEvents"),qr.remove(e,"bubbleEvents"),qr.remove(e,"handle"))}},trigger:function(e){var t=qr.get(e);if(!t.pendoStopped)if(e.bubbles){var n=io(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=_i.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),eo(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)ro.dispatch(o[i],e);(e=ro.clone(e)).eventPhase=2}for(2!==e.eventPhase||t.pendoStopped||(ro.dispatch(n,e),(e=ro.clone(e)).eventPhase=3),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)ro.dispatch(o[i],e)}}else ro.dispatch(io(e),e)},clone:function(e){var t=y.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",qr.ownerKey]),e=_i.getComposedPath(e);return e&&(t.composedPath=y.constant(e)),t},$:{on:function(e,n,i,r){return y.isFunction(n)&&(r=i,i=n,n=null),e=e.split(" "),this.each(function(t){y.each(e,function(e){ro.add(t,{type:e,selector:n,handler:i,capture:r})})})}}},oo=y.extend(so,{get:function(e,t){return so({method:"GET",url:e,headers:t})},post:uo,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",uo(e,t=JSON.stringify(t),n)},urlFor:function(e,t,n){if(y.isArray(t))i=t;else{if(!y.isObject(t))return e||"";i=y.keys(t)}var i=y.map(i,function(e){return y.isArray(t)?Lt(e):Lt(e)+"="+Lt(t[e])}).join("&"),r=(e=e.split("#",2))[0],o=y.contains(r,"?");return[r,i?(o?"&":"?")+i:"",(n=void 0!==n?n:e[1])?"#"+n:""].join("")},supported:function(){return void 0!==ao()}});function ao(){return window.XMLHttpRequest||ActiveXObject}function so(e){var t=C.defer(),n=new(ao())("MSXML2.XMLHTTP.3.0");return n.open(e.method||"GET",e.url,!e.sync),y.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 uo(e,t,n){return so({method:"POST",url:e,data:t,headers:n})}var co,lo=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},po=function(){return m.get("annotateUrl")||vo()||m.get("sanitizeUrl")||m.get(Eo)||m.get("xhrWhitelist")},ho=function(){return vo()?{href:mo(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},fo=function(){return new Ci(window.location.href)},go=function(){var e,t,n,i;return po()?(e=fo(),vo()&&(e.href=mo(e.href)),lo()?(t=Lo.electronResourcesPath(),n=Lo.electronUserDirectory(),i=Lo.electronAppName(),("https://"+e.href.replace(t,i)).replace(e.origin+n,i).replace(Lo.electronUserHomeDirectory(),"").replace("file:///","")):_o(e.href)):A.getters["location/href"]()},mo=function(e){return e.match(/(.+?)(?:#|$)/)[1]},vo=function(){return!0===m.get("ignoreHashRouting")},yo=500;function bo(){return y.isUndefined(co)&&function e(){Ao(),co=Dt(e,yo)}(),function(){clearTimeout(co)}}var Io=function(e){var t;try{t=go()}catch(n){}return t},wo=[],Co=!1,So=null;function Ao(){var t=ho().href;So!=t&&(So=t,y.map(wo,function(e){e(t)}))}var Eo="queryStringWhitelist";function To(e){var t=m.get("sanitizeUrl");return y.isFunction(t)?t(e):e}function _o(e){e=e||ho().href;var t=m.get("annotateUrl");if(t)if(y.isFunction(t))try{var n,i,r,o=t();return o&&(y.isObject(o)||y.isArray(o))?(n=o.exclude,i=o.include,r=o.fragment,delete o.fragment,(n&&y.isArray(n)||i&&(y.isArray(i)||y.isObject(i)))&&(n&&(e=Ro(e,null,n,!0)),o=i||{}),oo.urlFor(e,o,r)):e}catch(a){I.error("customer-provided `annotateUrl` function threw an exception",{error:a})}else I.error("customer-provided `annotateUrl` must be of type: function");return e}function xo(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function Ro(e,t,n,i){e=e||Io(),t=t||xo(e).substring(1),o=(r=e.indexOf(t))+t.length;var r=e.substring(0,r),o=e.substring(o);return(r=(t=y.isArray(n)?Oo(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var ko,Oo=function(e,t,n){return n&&y.contains(t,"*")?"":(e=No(e),e=n?y.omit(e,t):y.pick(e,t),Mo(e))},No=function(e){e=e.split("&");return y.reduce(e,function(e,t){return(t=t.split("="))[0]&&(e[t[0]]=t[1]&&Mt(t[1])),e},{})},Mo=function(e){return y.reduce(e,function(e,t,n){return t&&(n+="="+t),e&&(e+="&"),e+n},"")},Lo={watch:function(e){var n,i=[],t=(I.info("Initializing Pendo URL Watcher"),m.get("location.pushState")&&et.supportsHistoryApi());return Co||(t&&(n=window.history,y.each(["pushState","replaceState"],function(e){var t=n[e];n[e]=y.wrap(n[e],function(e){var t=e.apply(n,y.toArray(arguments).slice(1));return Dt(Ao,0),t}),i.push(function(){n[e]=t})}),i.push(to(window,"popstate",Ao))),et.supportsHashChange()&&i.push(to(window,"hashchange",Ao)),!1!==t&&et.supportsHashChange()||i.push(bo()),Co=!0),wo.push(e),function(){y.each(i,function(e){e()}),wo.length=0,Co=!1}},get:Io,externalizeURL:function(e,t,n){n=n||m.get(Eo);return To(Ro(e,t,n=y.isFunction(n)?n():n,!1))},startPoller:bo,getWindowLocation:ho,clear:function(){wo=[]},isElectron:lo,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 Fo(){var e=m.getLocalConfig("dataHost");return e||((e=m.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:rt)}function Po(){ko=Fo()}function Go(){var e=m.get("contentHost")||m.get("assetHost")||ot;return e=e&&-1===e.indexOf("://")?"https://"+e:e}function Do(e){return"".concat(Go(),"/").concat(at?at+"/":"").concat(e)}function Bo(){var e=m.get("allowPartnerAnalyticsForwarding",!1)&&m.get("adoptAnalyticsForwarding",!1);return m.get("trainingPartner",!1)||e}var Wo=3,$o=1,Uo=4;function f(e){var t;if((t=e)&&t.nodeType===$o)try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(n){}}function jo(e,t){var n;return!(!e||!y.isFunction(e.getPropertyValue))&&(n=[e.getPropertyValue("transform")],void 0!==t&&y.isString(t)&&n.push(e.getPropertyValue("-"+t.toLowerCase()+"-transform")),y.any(n,function(e){return e&&"none"!==e}))}function zo(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function Zo(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function Vo(e){return y.isNumber(e)?e:0}function Yo(e,t){e=e.offsetParent;return t=t||window,e=e&&e.parentElement===t.document.documentElement&&!Ko(e)?null:e}function Ho(e){return jo(f(e),ze)&&isNaN(Be)}function Ko(e){if(e)return(e=f(e))&&(y.contains(["relative","absolute","fixed"],e.position)||jo(e,ze))}function Xo(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=Ko(t)?t:Yo(t,n),i=t?Jo(t):{top:0,left:0},e=Jo(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+=Vo(t.scrollTop),i.left+=Vo(t.scrollLeft)),i.top-=Vo(t.clientTop),i.left-=Vo(t.clientLeft)):(i.top+=zo(n),i.left+=Zo(n)),i.bottom=i.top+i.height,i.right=i.left+i.width,i}function Jo(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 qo=void 0===(i=m.get("pendoCore"))||i,Qo=function(e,t,n){e=ko+"/data/"+e+"/"+t,t=y.map(n,function(e,t){return t+"="+e});return 0<t.length&&(e+="?"+t.join("&")),e};function ea(){return y.compact([v.apiKey].concat(v.additionalApiKeys))}var ta=function(e){return e+="v"+dt,ia(Qo("log.gif",v.apiKey,{msg:e,version:dt}))};function na(e){try{var t=ko+"/data/errorlog?apiKey="+v.apiKey,n={error:e,version:"v"+dt,visitorId:E()},i=ra.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):oo.postJSON(t,n);return i.then(function(){I.info("successfully wrote error")},function(e){I.info("error writing error:"+e)})}catch(r){return I.info("Failed to write error to server using POST endpoint: "+r),ta("Failed to write error to server using POST endpoint: "+r)}}function ia(e){var t,n;return da()?(t=C.defer(),to(n=new Image,"load",t.resolve),to(n,"error",t.reject),n.src=e,t.promise):C.resolve()}function ra(e,t){t=y.extend({},{method:"GET",keepalive:!0},t=void 0===t?{}:t);return fetch(e,t)}function oa(e,t){return navigator.sendBeacon(e,t)}ra.supported=function(){try{return y.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(e){return!1}};var aa=!(oa.supported=function(){return y.isFunction(navigator.sendBeacon)}),sa=function(){var e=da();return aa=!0,e&&S["transmit:locked"].trigger(),"Pendo Agent locked. No more events will be written."},da=function(){return!aa&&qo},ua=function(e,t){try{return new RegExp("(\\s|^)"+t+"(\\s|$)").test(ha(e))}catch(n){return!1}},ca=function(e,t){try{var n;ua(e,t)||(n=gt.call(ha(e))+" "+t,pa(e,n))}catch(i){}},la=function(e,t){try{var n,i;ua(e,t)&&(n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=ha(e).replace(n," "),pa(e,i))}catch(r){}},pa=function(e,t){y.isString(e.className)?e.className=t:e.setAttribute("class",t)},ha=function(e){try{var t=e.className;return(y.isString(t)||!fe(t)?t:e.getAttribute("class"))||""}catch(n){return""}},fa=function(e){e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});return e=e.substr(0,1).toLowerCase()+e.substr(1)},ga={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},ma=function(e,t){t=function(e){if(y.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);va(e,t)},va=function(a,e){y.each(e,function(e,t){if(""!==(t=gt.call(t))){var n=fa(t),i=(!y.isNumber(e)||isNaN(e)||ga[n]?y.isString(e)||(e=""+e):e+="px",e.indexOf("!important"));if(-1!==i)try{var r=gt.call(r.substring(0,i));a.style.setProperty(t,r,"important")}catch(o){a.style.cssText+=";"+t+":"+e}else try{a.style[n]=gt.call(e)}catch(o){I.info("failed to set style: "+t+" with value "+e)}}})},ya=function(){return tt()?{width:document.documentElement.offsetWidth||0,height:document.documentElement.offsetHeight||0}:{width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}},ba=function(e){var t=ya(),n=zo(),i=Zo();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function Ia(t){return y.each(["left","top","width","height"],function(e){t[e]=Math.round(t[e])}),t}function wa(e){var t;return function(e){var t,n=e;for(;n;){if(!(t=f(n)))return;if("fixed"===t.position)return!isNaN(Be)||!ka(n);n=n.parentNode}return}(e)?((t=Jo(e)).fixed=!0,Ia(t)):Ia(Xo(e,Ea()))}var Ca=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},Sa=y.compose(function(e){return Array.prototype.slice.call(e)},function(e,t){try{return Xr(e,t)}catch(n){return ta("error using sizzle: "+n),t.getElementsByTagName(e)}}),Aa=function(e,t){try{return t.children.length+t.offsetHeight+t.offsetWidth-(e.children.length+e.offsetHeight+e.offsetWidth)}catch(n){return I.info("error interrogating body elements: "+n),ta("error picking best body:"+n),0}},Ea=function(e){e=e||document;try{var t=Sa("body",e);return t&&1<t.length?(t.sort(Aa),t[0]||e.body):e.body&&e.body.tagName&&"body"!==e.body.tagName.toLowerCase()?e.documentElement:e.body}catch(n){return ta("Error getting body element: "+n),e.body}};function Ta(e){if(e&&e.parentNode){var t=e.parentNode,n=e;if(!t)return[];var i=[];if(t.childNodes)for(var r=0;r<t.childNodes.length;r++){var o=t.childNodes[r];1===o.nodeType&&o!==n&&i.push(o)}return i}return[]}function _a(e){if(Xr.contains(document,e))return!0;for(;e&&e.parentNode||_i.isElementShadowRoot(e);)e=_i.getParent(e);return e===document}var xa=function(e){var t=Ea();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=wa(e)).right=t.left+t.width,t.bottom=t.top+t.height,t)},Ra=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function ka(e){for(var t=e&&e.parentNode;t;){if(jo(f(t),ze))return 1;t=t.parentNode}}var Oa=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if(_a(e))for(i=e;i;)if(_i.isElementShadowRoot(i))i=i.host;else{if(i===r)return null;if(!(o=f(i)))return null;var o,a=o.position;if(i!==e&&t.test(o.overflow+o.overflowY+o.overflowX))return i.parentNode!==r||(o=f(r))&&!y.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&ka(i))i=Yo(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function Na(e,t){e=f(e);return t=t||/(auto|scroll|hidden)/,!e||"inline"===e.display?Ma.NONE:t.test(e.overflowY)&&t.test(e.overflowX)?Ma.BOTH:t.test(e.overflowY)?Ma.Y:t.test(e.overflowX)?Ma.X:t.test(e.overflow)?Ma.BOTH:Ma.NONE}var Ma={X:"x",Y:"y",BOTH:"both",NONE:"none"};function La(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&_a(e)}function Fa(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 Pa(e){if(e){if(y.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function Ga(e,t,n){for(var i=[],r=Pa(document.documentElement),o=Pa(Oa(t)),a=0;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=Pa(Oa(o)),a++;return function(){y.each(y.compact(i),function(e){e()}),i.length=0}}var Da=['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 Ba(e,t,n){var i=xa(t),t=Na(t,n);if(t!==Ma.BOTH||Ra(e,i)){if(t===Ma.Y){if(e.top>=i.bottom)return;if(e.bottom<=i.top)return}if(t===Ma.X){if(e.left>=i.right)return;if(e.right<=i.left)return}return 1}}function Wa(e){if(e){if(La(e))return 1;var t=xa(e);if(0!==t.width&&0!==t.height){var n=f(e);if(!n||"hidden"!==n.visibility){for(var i=e;i&&n;){if("none"===n.display)return;if(parseFloat(n.opacity)<=0)return;n=f(i=i.parentNode)}return 1}}}}function $a(e,t){if(!Wa(e))return!1;if(!La(e)){for(var n=xa(e),i=Oa(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!Ba(n,i,t))return!1;i=Oa(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=Zo(),e+=zo()),o<=0||e<=0)return!1}}return!0}function Ua(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,d=xa(e),u=Oa(e,s);if(!Wa(e))return!1;for(;u;){if(t=xa(u),(o=Na(u,a))!==Ma.NONE&&(i=n=0,o!==Ma.Y&&o!==Ma.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!==Ma.X&&o!==Ma.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))),!Ba(d,u,s))return!1;u=Oa(u,s)}return!0}function ja(e){for(var t,n,i,r,o,a=/(auto|scroll)/,s=Ea(),d=Oa(e,a);d&&d!==s;)t=xa(e),n=xa(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),y.isFunction(d.scrollBy)?d.scrollBy(r,i):(d.scrollTop+=i,d.scrollLeft+=r),d=Oa(d,a)}lr={$:{findOrCreate:function(e){return 0<this.length?this:R(e)},find:function(e){var t=R();return t.context=this.context,this.each(function(){R(e,this).each(function(){t[t.length++]=this})}),t},each:function(e){for(var t=0,n=this.length;t<n;++t)e.call(this[t],this[t],t);return this},html:function(e){return e===undefined?this.length?this[0].innerHTML:this:this.each(function(){this.innerHTML=e})},text:function(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(){ma(this,{"white-space":"pre-wrap"}),t?this.innerText=e:this.textContent=e})},addClass:function(e){return e=e.split(/\s+/),this.each(function(t){y.each(e,function(e){ca(t,e)})})},removeClass:function(e){return e=e.split(/\s+/),this.each(function(t){y.each(e,function(e){la(t,e)})})},hasClass:function(e){e=e.split(/\s+/);var n=!0;return 0!==this.length&&(this.each(function(t){y.each(e,function(e){n=n&&ua(t,e)})}),n)},toggleClass:function(e){return e=e.split(/\s+/),this.each(function(t){y.each(e,function(e){(ua(t,e)?la:ca)(t,e)})})},css:function(e){return this.each(function(){ma(this,e)}),this},appendTo:function(e){return R(e).append(this),this},append:function(e){var t=this;return R(e).each(function(){t.length&&t[0].appendChild(this),_a(this)&&y.each(Xr("script",this),Fa)}),t},prependTo:function(e){return R(e).prepend(this),this},prepend:function(e){var t,n;return this.length&&(t=this[0],n=t.childNodes[0],R(e).each(function(){n?R(this).insertBefore(n):R(this).appendTo(t)})),this},getParent:function(){var e=R(this)[0];if(e&&e.parentNode)return R(e.parentNode)},insertBefore:function(e){e=R(e)[0];e&&e.parentNode&&(e.parentNode.insertBefore(this[0],e),_a(document))&&y.each(Xr("script",this[0]),Fa)},remove:function(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),this},attr:function(e,t){return y.isObject(e)?(this.each(function(){y.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:function(e,t){for(var n=this[0];n&&!Xr.matchesSelector(n,e);)if((n=Ti(n))===document||t&&Xr.matchesSelector(n,t))return R();return R(n)},eq:function(e){return R(this[e])},height:function(e){if(this.length)return e===undefined?this[0].offsetHeight:(this[0].style.height=e+"px",this)},width:function(e){if(this.length)return e===undefined?this[0].offsetWidth:(this[0].style.width=e+"px",this)},focus:function(){return this.each(function(){y.isFunction(this.focus)&&this.focus()})}}},za.prototype.signal=function(){y.each(this.listeners,function(e){e.get()})},za.prototype.addObservers=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.listeners=[].concat(this.listeners,e)},za.prototype.teardown=function(){this._teardown()},rr=za;function za(e,t){void 0===e&&(e=Ea()),void 0===t&&(t={attributes:!0,childList:!0,subtree:!0});var n,i,r=this;this.listeners=[],this._teardown=function(){},et.MutationObserver?((n=new(_t("MutationObserver"))(function(e,t){r.signal()})).observe(e,t),this._teardown=function(){return n.disconnect}):(i=Dt(function(){r.signal()},500),this._teardown=function(){clearTimeout(i)})}s=function(){function e(e){this._object=e}return e.prototype.deref=function(){return this._object},e};var Za="function"==typeof(e=window.WeakRef)&&/native/.test(e)?e:s();function Va(e,t){var n,i="",r=e.nodeType;if(t=t||128,r===Wo||r===Uo)return e.nodeValue;if((n=e).tagName&&"textarea"!=n.tagName.toLowerCase()&&(r===$o||9===r||11===r)){if(!e.childNodes)return i;for(var o,a=0;a<e.childNodes.length;++a){if(t<=(i+(o=Va(e.childNodes[a],t-i.length))).length)return i+function(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(Ya(t)||Ha(t)){if(1===e.length)return e.slice(0,-1);if(Ya(t))return e.slice(0,-1);if(Ha(t))if(!Ya(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}(o.substring(0,t-i.length));i+=o}}return i}function Ya(e){return 55296<=e&&e<=56319}function Ha(e){return 56320<=e&&e<=57343}function Ka(e){this.listeners={},this.events=[],this.cssSelector=e}function Xa(t){if(!t)return!1;if(t===window.location.origin)return!0;if(t===Fo())return!0;if(t===Go())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=(pt()||(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-"+it+"-static\\.storage\\.googleapis\\.com$")])),m.get("adoptHost"));if(n&&t==="https://"+n)return!0;return!!y.contains(m.get("allowedOriginServers",[]),t)||y.any(e,function(e){return e.test(t)})}function Ja(e){var t;if(y.isString(e))return t=(t=xo(e).substring(1))&&t.length?No(t):{},e=y.last(y.first(e.split("?")).split("/")).split("."),{filename:y.first(e),extension:e.slice(1).join("."),query:t}}function qa(e,t){var n;m.get("guideValidation")&&et.sri&&(n=Ja(t),t=y.find(["sha512","sha384","sha256"],function(e){return!!n.query[e]}))&&(e.integrity=t+"-"+(t=n.query[t],y.isString?t.replace(/-/g,"+").replace(/_/g,"/"):t),e.setAttribute("crossorigin","anonymous"))}Ka.prototype.get=function(){var t=this,n=this.elRef&&this.elRef.deref(),e=_a(n);if(!n||!e){if(n&&!e)return undefined;if(!(n=R(this.cssSelector)[0]))return undefined;y.each(this.events,function(e){n.addEventListener(e,function(e){return t.onEvent(e)})}),this.elRef=new Za(n)}return n},Ka.prototype.getText=function(e){return void 0===e&&(e=1024),Va(this.get(),e)},Ka.prototype.addEventListener=function(e,t){var n=this,i=this.get();this.events.indexOf(e)<0&&(this.events.push(e),i)&&i.addEventListener(e,function(e){return n.onEvent(e)}),this.listeners[e]=this.listeners[e]?this.listeners[e].push(t):[].concat(t)},Ka.prototype.onEvent=function(t){var e=t.type;y.each(this.listeners[e],function(e){return e(t)})},Ka.prototype.teardown=function(){var t=this,n=this.get();n&&y.each(this.events,function(e){return n.removeEventListener(e,t.onEvent)})},y.extend(R,{data:qr,event:ro,removeNode:Ca,getClass:ha,hasClass:ua,addClass:function(e,t){var n;"string"==typeof e?(n=R(e),y.map(n,function(e){ca(e,t)})):ca(e,t)},removeClass:function(e,t){var n;"string"==typeof e?(n=R(e),y.map(n,function(e){la(e,t)})):la(e,t)},getBody:Ea,getComputedStyle:f,getClientRect:xa,intersectRect:Ra,getScrollParent:Oa,isElementVisible:$a,Observer:rr,Element:Ka,scrollIntoView:ja,getRootNode:Pa}),y.extend(R.prototype,ro.$,lr.$);var Qa,es=function(e){var t=0===m.get("allowedOriginServers",[]).length,n=Bo();return!(!t&&!n&&(t=it,n=J,!/prod/.test(t)||ne(n)))||Xa(e)},ts=function(e,t,n){void 0===n&&(n=!1);try{var i,r="text/css",o="text/javascript";if(y.isString(e)&&(e={url:e}),!es((u=e.url,new Ci(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,qa(d,e.url),a=d}else{if(Tt())return(i=document.createElement("script")).addEventListener("load",function(){t(),Ca(i)}),i.type=o,i.src=K(v).createScriptURL(e.url),qa(i,e.url),document.body.appendChild(i),{};(i=document.createElement("script")).type=o,i["async"]=!0,i.src=K(v).createScriptURL(e.url),qa(i,e.url),a=i,t=y.wrap(t,function(e,t){R.removeNode(i),t?n&&e(t):e.apply(this,y.toArray(arguments).slice(1))})}return s.appendChild(a),ns(a,e.url,t),a}catch(c){return{}}var u},ns=function(e,t,n){var i=!1;fe(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||ta("Failed to load "+t+" within 10 seconds")},1e4))},is=function(e){var t=JSON.parse(e.data),n=e.origin;I.debug(v.app_name+": Message: "+JSON.stringify(t)+" from "+n),ys(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},rs=function(e){as(cs)(os(e))},os=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};I.debug("Invalid Message: Missing 'type' in data format")}}catch(r){}};function as(t){return function(e){if(e&&Xa(e.origin))return t.apply(this,arguments)}}var ss={disconnect:function(e){},module:function(e){vs(e.moduleURL)},debug:function(e){ws(is)}},ds=function(e,t){ss[e]=t},us=function(e){delete ss[e]},cs=function(e){var t;e&&(t=e.data)&&fe(ss[t.type])&&ss[t.type](t,e)},ls={},ps=function(e){if(ls[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},hs=function(e){return fe(ls[e])},fs=function(e){if(ls)for(var t in ls)if(0<=t.indexOf(e))return t;return null},gs=[],ms=function(){var e;gs.length<1||(e=gs.shift(),hs(e))||ts(e,function(){ps(e),ms()})};var vs=function(e){!function(e){var t={"/js/lib/ckeditor/ckeditor.js":1};y.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 Ci(e);return Xa(n.origin)&&t[n.pathname]}catch(i){I.debug("Invalid module URL: "+e)}}(e)||(gs.push(e),1<gs.length)||ms()},ys=function(e,t,n){var i,r=y.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=Qa||Is(),n="*"),t.guid=r,e&&y.isFunction(e.postMessage)&&(i=JSON.stringify(t),e.postMessage(i,n))}catch(o){t=o&&o.message||"";I.info("Failed to postMessage: "+t)}return r},bs=function(){return window!=window.top},Is=function(){var e=new RegExp("^"+Yt(ko).replace(/^https?:/,"https?:")),t=m.get("forceParentDesigner");return!pt()&&t||e.test(location.href)?window.parent:window.top},ws=function(e){var t;return fe(window.addEventListener)&&y.isFunction(window.addEventListener)&&(t=as(e),window.addEventListener("message",t,!1)),function(){fe(window.removeEventListener)&&y.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},Cs=y.memoize(function(){return m.get("restrictP1Access")}),Ss=[],As=[],Es=12e4,Ts=16,_s=1900,xs=65536,Rs=function(e){return!(!e||""===e)},ks=function(){return Lo.get()},Os={flush:y.noop,flushBy:y.noop,flushEvents:Fs,flushTrackEvents:Fs,flushSilos:Fs,flushTrackEventSilos:Fs,flushBeacons:Fs,flushNow:Fs,flushLater:Ps,flushEvery:Gs,flushStop:Ds,beacons:[],silos:[],trackEventSilos:[],lock:sa,unlock:function(){if(!da())return Bs(),function(){var e=!da();return aa=!1,e&&S["transmit:unlocked"].trigger(),"Pendo Agent unlocked. Events will be written."}()}},Ns=[];function Ms(e){Ns.push(e)}function Ls(e){e=Ns.indexOf(e);0<=e&&Ns.splice(e,1)}function Fs(e,t){try{y.each(Ns,function(e){e.flush&&e.flush(t)})}catch(n){I.critical("unhandled error while flushing event cache",{error:n})}}function Ps(e){return t=y.partial(Fs,!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 Gs(e){var t;if(e=parseInt(e,10)||0,y.isObject(Gs.intervals)||(Gs.intervals={}),!Gs.intervals[e])return t=window.setInterval(Fs,e),Gs.intervals[e]=function(){clearInterval(t),delete Gs.intervals[e]}}function Ds(){var e=y.values(Gs.intervals).concat([Fs]);y.map(e,function(e){y.isFunction(e)&&e()})}function Bs(){y.each(Ns,function(e){e.clear&&e.clear()}),Ds()}function Ws(e){try{return window.TextDecoder?JSON.parse((new TextDecoder).decode((t=e.split(".")[1],t=atob(t),Uint8Array.from(t,function(e){return e.codePointAt(0)})))):JSON.parse(atob(e.split(".")[1]))}catch(n){return null}var t}function $s(e,t){return t=t?t+": ":"",e.jwt||e.signingKeyName?e.jwt&&!e.signingKeyName?(I.debug(t+"The jwt is supplied but missing signingKeyName."),!1):e.signingKeyName&&!e.jwt?(I.debug(t+"The signingKeyName is supplied but missing jwt."),!1):(e=e.jwt,!(!y.isString(e)||!/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/.test(e))||(I.debug(t+"The jwt is invalid."),!1)):(I.debug(t+"Missing jwt and signingKeyName."),!1)}Us=null;var Us,js={set:function(e){Us=JSON.parse(JSON.stringify(e||{}))},get:function(){return null!==Us?Us:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!m.get("enableSignedMetadata")&&(n=$s(e,t),m.get("requireSignedMetadata")&&!n?(I.debug("Pendo will not "+t+"."),!1):n?Ws(e.jwt):void I.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}},zs=100,Zs=(Vs.prototype.isEmpty=function(){return this.queue.length<=0},Vs.prototype.stop=function(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.stopped=!0,clearTimeout(this.timer),delete this.timer},Vs.prototype.start=function(){this.stopped=!1},Vs.prototype.push=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.queue).push.apply(e,t),this.next()},Vs.prototype.next=function(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)},Vs.prototype.incrementFailure=function(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),t},Vs.prototype.pass=function(e,t){void 0===t&&(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()},Vs.prototype.fail=function(e,t){void 0===t&&(t=!0),this.unloads["delete"](e),this.pending["delete"](e);var n=this.incrementFailure(e);!this.stopped&&t&&(n>=this.maxFailures&&(this.onTimeout&&this.onTimeout(),this.pass(e,!1)),this.retryLater(1e3*Math.pow(2,Math.min(n-1,6))))},Vs.prototype.retryLater=function(e){var t=this;this.timer=Dt(function(){delete t.timer,t.next()},e)},Vs.prototype.failed=function(){return 0<this.failures.get(this.queue[0])&&null!=this.timer},Vs.prototype.send=function(e,t,n){var i=this;return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(function(){return i.pass(e,n)},function(){return i.fail(e,n)})},Vs.prototype.drain=function(e,t){var n;if(void 0===t&&(t=!0),(n=this.queue).push.apply(n,e),this.failed())return Ft.reject();for(var i=[],r=0,o=this.queue;r<o.length;r++){var a=o[r];this.pending.has(a)?this.retryPending&&t&&!this.unloads.has(a)&&(this.incrementFailure(a),i.push(this.send(a,t,!1))):i.push(this.send(a,t,!1))}return Ft.all(i)},Vs);function Vs(e,t){void 0===t&&(t=zs),this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.sendFn=e,this.maxFailures=t}var Ys="_PENDO_UNNAMED_",Hs=5;function Ks(e,t,n,i,r,o){var a,s;a=m.get("dropAnonymous"),s=ii(E()),!qo||a&&s||(a=t,s=n,t=i,n=r,i=o,s={type:r=e,browser_time:b(),visitor_id:E({generate:!0}),account_id:mi(),url:Lo.externalizeURL(s),props:a||{},eventProperties:n},s=Gn.addTracerIds(s),"track"===r&&(s.track_event_name=t||Ys),S.eventCaptured.trigger(s,i),Rs((o=s).url)&&function(e){if(m.get("freeNPSData"))return y.contains(Xs,e.type);return 1}(o)&&("track"===e?kd.push(o):Rd.push(function(e,t){try{if(!e.getters["monitoring/shouldFlush"]())return t;var n=e.getters["monitoring/payload"]();e.dispatch("monitoring/flush"),y.isEmpty(n)||(t.ops=n)}catch(i){}return t}(A,o))))}var Xs=["load","meta","identify"];function Js(){var r=y.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)}}var qs=0;function Qs(e,t){e.sequence=qs++,t(e)}function ed(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 td(e,t){return Bo()?nd("account_id")(e,t):t(e)}function nd(s){return function(e,t){if(!e.length)return t(e);for(var n=y.get(e[0],s),i=!0,r=1;r<e.length;r++)if(n!==y.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 id(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function rd(e,t,n){t=n[t-1]||y.last(n);return Math.ceil(e/t)}function od(e,t){for(var n,i=0,r=(y.isFunction(t.overhead)?t.overhead:y.constant(0))(),o=0;o<e.length;++o){if(rd(n=id(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if(rd(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(rd(i+(n=id(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return-1}function ad(){var e=js.get();return y.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}function sd(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=v.squeezeAndCompress(e.slice()),e.JZB.length<=xs)||1===e.length?t(e):(n=e.length/2,sd(e.slice(0,n),t),void sd(e.slice(n),t))}function dd(e,t){da()&&t(e)}function ud(){return function(e,t){1===e.length&&e.JZB.length>xs?(I.debug("Couldn't write event"),ta("Single item is: "+e.JZB.length+". Dropping."),na(e.JZB)):t(e)}}function cd(e,t){return Qo(t.beacon+".gif",e,y.extend({v:dt,ct:b(),jzb:t.JZB},t.params,t.auth))}function ld(e,t){return Qo(t.beacon+".gif",e,y.extend({v:dt,ct:b(),s:t.JZB.length},t.params))}function pd(i){return function(e,t){e.params=y.extend({},e.params,i.params),e.beacon=i.beacon,e.eventLength=e.JZB.length;var n=js.get();y.isEmpty(n)||(e.auth=n,e.eventLength+=n.jwt.length,e.eventLength+=n.signingKeyName.length),t(e)}}function hd(e,t){var n=Bo(),i=y.first(e),i=y.get(i,"account_id");n&&i&&(e.params=y.extend({},e.params,{acc:wt(i)})),t(e)}function fd(e,t){var n=y.first(e),n=y.get(n,"props.source");n&&(e.params=y.extend({},e.params,{source:n})),t(e)}function gd(e){return JSON.stringify(y.extend({events:e.JZB},e.auth))}function md(e){return e.status<200||300<=e.status?C.reject(new Error("received status code ".concat(e.status,": ").concat(e.statusText))):C.resolve()}function vd(e,t){return ra(cd(e,t)).then(md)}function yd(e,t){return fetch(ld(e,t),{method:"POST",keepalive:!0,body:gd(t),headers:{"Content-Type":"application/json"}}).then(md)}function bd(e,t){var n=gd(t);return oa(ld(e,t),n)?C.resolve():C.reject()}function Id(n){return function(e,t){return t.JZB?t.eventLength<=_s&&!m.get("sendEventsWithPostOnly")?n.preferFetch&&!t.auth&&ra.supported()?vd(e,t):t.auth?oo({method:"GET",url:cd(e,t)}):ia(cd(e,t)):n.allowPost&&t.eventLength<=xs?ra.supported()?yd(e,t):oa.supported()?bd(e,t):oo({method:"POST",url:ld(e,e=t),data:gd(e),headers:{"Content-Type":"application/json"}}):C.resolve():C.resolve()}}function wd(n){return function(e,t){if(t.JZB){if(t.eventLength<=_s&&!m.get("sendEventsWithPostOnly",!1)){if(!t.auth&&ra.supported())return vd(e,t);if(et.msie<=11)return oo({method:"GET",url:cd(e,t),sync:!0})}if(t.eventLength<=xs&&n.allowPost){if(ra.supported())return yd(e,t);if(oa.supported())return bd(e,t);if(et.msie<=11)return oo({method:"POST",url:ld(e,e=t),data:gd(e),sync:!0,headers:{"Content-Type":"application/json"}})}}return C.resolve()}}function Cd(e){return Js(dd,td,sd,(t=e.shorten,t=y.defaults(t||{},{fields:[],siloMaxLength:xs}),function(n,e){var i;1===n.length&&n.JZB.length>t.siloMaxLength&&(i=n[0],I.debug("Max length exceeded for an event"),y.each(t.fields,function(e){var t=i[e];t&&2e3<t.length&&(I.debug("shortening "+t+" and retrying"),i[e]=t.substring(0,2e3),delete n.JZB)})),e(n)}),sd,ud(),pd(e),hd,fd);var t}Ad.prototype.isEmpty=function(){return y.all(this.queues,function(e){return e.isEmpty()})},Ad.prototype.stop=function(){y.each(this.queues,function(e){return e.stop()})},Ad.prototype.push=function(){var t=y.toArray(arguments);y.each(this.queues,function(e){return e.push.apply(e,t)})},Ad.prototype.drain=function(){var t=y.toArray(arguments);return C.all(y.map(this.queues,function(e){return e.drain.apply(e,t)}))};var Sd=Ad;function Ad(e){this.queues=e}function Ed(t,r,o){r=r||Id(t),o=o||wd(t);e=t;var e=y.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey),e=y.map(e,function(i){var e=new Zs(function(e,t,n){return n&&(e.params=y.extend({},e.params,{rt:n})),(t?o:r)(i,e)});return e.onTimeout=function(){A.commit("monitoring/incrementCounter",t.beacon+"GifFailures")},e.retryPending=!0,e});return new Sd(e)}function Td(e,t){var n=m.get("analytics.excludeEvents");0<=y.indexOf(n,e.type)||t(e)}Nd.prototype.pause=function(e){var t=this,n=(void 0===e&&(e=1e4),y.uniqueId()),i=this.locks,r=(i[n]=1,function(){i[n]&&(clearTimeout(o),delete i[n],t.flush())}),o=Dt(r,e);return r},Nd.prototype.push=function(e){var t=this;this.packageSilos(e,function(e){t.silos.push(e)})},Nd.prototype.clear=function(){this.cache.length=0,this.silos.length=0,this.sendQueue.stop()},Nd.prototype.flush=function(e){var t,e=void 0===e?{}:e,n=e.unload,n=void 0!==n&&n,e=e.hidden,e=void 0!==e&&e,i=this.cache,r=this.silos;0===i.length&&0===r.length&&this.sendQueue.isEmpty()||y.isEmpty(this.locks)&&(r.push(i.slice()),i.length=0,i=r.slice(),r.length=0,t=[],y.each(i,function(e){this.processSilos(e,function(e){t.push(e)})},this),n||e?this.sendQueue.drain(t,n):(r=this.sendQueue).push.apply(r,t))};var _d,xd,Rd,kd,Od=Nd;function Nd(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.sendQueue=Ed(e)}function Md(e){var i,r,t=Cd(e),n=Js((r=e.beacon,function(e,t){var n=m.get("excludeNonGuideAnalytics");"ptm"===r&&n||t(e)}),Td,Qs,ed(e.cache),(i={overhead:ad,lower:m.get("sendEventsWithPostOnly")?xs:_s,upper:xs,compressionRatio:[.5*Hs,.75*Hs,Hs]},function(e,t){for(var n=od(e,i);0<=n;)t(e.splice(0,Math.max(n,1))),n=od(e,i)}));return new Od(y.extend({processSilos:t,packageSilos:n},e))}var Ld=wi(function(e){var t,n,i;if((e=e||Lo.get())&&e!==Ld.lastUrl)return Ld.lastUrl=e,t=-1,Cs()||bs()&&(i=Is(),ys(i,{type:"load",url:location.toString()},"*")),I.debug("sending load event for url "+e),t={load_time:t="undefined"!=typeof performance&&y.isFunction(performance.getEntriesByType)&&!y.isEmpty(performance.getEntriesByType("navigation"))?(i=performance.getEntriesByType("navigation")[0]).loadEventStart-i.fetchStart:t},bs()&&(t.is_frame=!0),"*"!==(n=Ht())&&(t.allowed_storage_keys=y.keys(n)),Ks("load",t,e),Ps(),S.urlChanged.trigger(),!0});function Fd(e){return"hidden"===e.visibilityState}Ld.reset=function(){Ld.lastUrl=null};var Pd="visibilitychange",Gd="pagehide",Dd="unload";function Bd(){this.serializers=y.toArray(arguments)}function Wd(e,t){return e.tag=_i.isElementShadowRoot(t)?"#shadow-root":t.nodeName||"",e}function $d(e){return fe(e)?""+e:""}function Ud(e,t){return e.id=$d(t.id),e}function jd(e,t){return e.cls=$d(R.getClass(t)),e}y.extend(Bd.prototype,{add:function(e){this.serializers.push(e)},remove:function(e){e=y.indexOf(this.serializers,e);0<=e&&this.serializers.splice(e,1)},serialize:function(n,i){return n?(i=i||n,y.reduce(this.serializers,function(e,t){return t.call(this,e,n,i)},{},this)):{}}});var zd=256,Zd=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),To((i=i)&&0===i.indexOf("data:")?(I.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?y.isString(e)?gt.call(e).substring(0,zd):e:null):null};function Hd(t){var e,n,i;return y.isRegExp(t)&&y.isFunction(t.test)?function(e){return t.test(e)}:y.isArray(t)?(e=y.map(y.filter(t,y.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 y.any(e,function(e){return e.test(t)})}):y.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)}):y.constant(!1)}function Kd(e,t,n,i){try{var r,o=y.indexBy(t),a=y.filter(y.filter(e,function(e){return n(e.nodeName)||o[e.nodeName]}),function(e){return!i(e.nodeName)});return a.length<=Zd?y.pluck(a,"nodeName"):(r=y.groupBy(e,function(e){return o[e.nodeName]?"defaults":y.isString(e.value)&&e.value.length>zd?"large":"small"}),y.pluck([].concat(y.sortBy(r.defaults,"nodeName")).concat(y.sortBy(r.small,"nodeName")).concat(y.sortBy(r.large,"nodeName")).slice(0,Zd),"nodeName"))}catch(s){return I.error("Error collecting DOM Node attributes: ".concat(s)),[]}}function Xd(t,n){var e=Hd(m.get("htmlAttributes")),i=Hd(m.get("htmlAttributeBlacklist")),r=(i("title")||(t.title=Yd(n,"title","string")),(t.tag||"").toLowerCase()),r=("input"===r&&(r+='[type="'+n.type+'"]'),t.attrs={},Kd(n.attributes,Vd[r]&&Vd[r].attr,e,i));return y.each(r,function(e){t.attrs[e.toLowerCase()]=Yd(n,e)}),t}function Jd(e,t){var n;return t.parentNode&&t.parentNode.childNodes&&(n=y.chain(t.parentNode.childNodes),e.myIndex=n.indexOf(t).value(),e.childIndex=n.filter(function(e){return e.nodeType==$o}).indexOf(t).value()),e}function qd(i,e){var r;return m.get("siblingSelectors")&&e.previousElementSibling&&(r="_pendo_sibling_",this.remove(qd),e=this.serialize(e.previousElementSibling),this.add(qd),i.attrs=i.attrs||{},y.each(e,function(e,t){var n={cls:"class",txt:"pendo_text"}[t]||t;y.isEmpty(e)||(y.isObject(e)?y.each(e,function(e,t){e&&!y.isEmpty(e)&&(i.attrs[r+n+"_"+t]=e)}):i.attrs[r+n]=e)})),i}var Qd=new Bd(Wd,Ud,jd,Xd,Jd,qd),eu=function(e){return"BODY"===e.nodeName&&e===Ea()||null===e.parentNode&&!_i.isElementShadowRoot(e)},tu="pendo-ignore",nu="pendo-analytics-ignore",iu=function(e){var t={},n=t,i=e,r=!1;if(!e)return t;do{var o=i,a=Qd.serialize(o,e)}while(r||!Et(a.cls,tu)&&!Et(a.cls,nu)||(r=!0),n.parentElem=a,n=a,(i=_i.getParent(o))&&!eu(o));return r&&(t.parentElem.ignore=!0),t.parentElem},ru=["","left","right","middle"],i=function(e){return e},e=function(e,t){return e[t]},ou=[["button",function(e){return e.which||e.button},function(){return!0},function(e,t){return ru[t]}],["altKey",e,i,i],["ctrlKey",e,i,i],["metaKey",e,i,i],["shiftKey",e,i,i]],au={click:function(e,t){for(var n=[],i=0;i<ou.length;i++){var r=ou[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}},su=function(e){try{var t,n,i,r,o,a;R.data.get(e,"counted")||(R.data.set(e,"counted",!0),t=io(e),n=e.type,i={},(r=au[n])&&(i=r(e,i)),R.data.get(e,"stopped")&&(i.stopped=!0),e.from&&y.isString(e.from)&&(i.from=e.from),(t=(s=t).nodeType===Wo?s.parentNode:s.nodeType===Uo?null:s.correspondingUseElement||s)?(o=iu(t),y.extend(o,i),Ld()&&Lo.startPoller(),o.ignore||(a=void 0,"click"===n&&(a=function(e){e=function(e){var n={};return{getEventProperties:function(){return n},addEventProperty:function(e,t){y.isString(e)&&!y.isUndefined(t)?n[e]=t:I.error("Failed to add click event property")},target:e}}(e),S.onClickCaptured.trigger(e),e=e.getEventProperties();if(!y.isEmpty(e))return e}(t)),Ks(n,{target:o},undefined,undefined,a,e),S.trigger("appUsage",o,e))):I.info("Invalid HTML target",{contexts:["event","dom","processing"]}))}catch(d){I.critical("pendo.io while handling event",{error:d})}var s};var du=y.debounce(su,5e3,!0),uu=function(e){var t,n,i,r=[],o=(y.contains(e=e||["click","focus","submit","change"],"change")&&(e=y.without(e,"change"),r.push(function(){du.cancel()}),r.push(to(document,"change",du,!0))),m.get("interceptElementRemoval")||m.get("syntheticClicks.elementRemoval")),a=m.get("syntheticClicks.targetChanged"),a=(r.push(function(t,e,n,i){var r,o,a=[],s=et.hasEvent("pointerdown"),d=s?"pointerdown":"mousedown",s=s?"pointerup":"mouseup",u=[],c={cloneEvent:function(e){e=R.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&&io(r)!==io(e)&&(o=!0,t(r))},click:function(e){r=null,o&&R.data.set(e,"ignore",!0),o=!1,n&&c.unwrap()},intercept:function(e){e=function(e){var t=[];for(;e&&!eu(e);)t.push(e),e=e.parentNode;return t}(io(e));y.each(e,function(e){e=cu(e,c.remove);a.push(e)})},remove:function(){r&&(t(r),r=null),c.unwrap()},unwrap:function(){0<a.length&&(y.each(a,function(e){e()}),a=[])},teardown:function Iy(){c.unwrap(),y.each(u,function(e){e()})}};e&&(u.push(to(document,d,c.down,!0)),u.push(to(document,s,c.up,!0)),u.push(to(document,"click",c.click,!0)));return c}(R.event.trigger,et.addEventListener,o,a).teardown),r.push((o=e,t=y.map(o,function(e){return l(document,e,su,!0)}),function(){y.each(t,function(e){e()})})),r.push((n=function(e,t){t&&S.appUnloaded.trigger(),e&&S.appHidden.trigger()},m.get("preventUnloadListener")?((i=[]).push(to(document,Pd,function(){Fd(document)&&n(!0,!1)})),i.push(to(window,Gd,y.partial(n,!1,!0))),function(){return y.each(i,function(e){e()})}):to(window,Dd,y.partial(n,!0,!0)))),S.appHidden.on(function(){Fs(0,{hidden:!0})}),S.appUnloaded.on(function(){Fs(0,{unload:!0})}),m.get("interceptStopPropagation",!0)),o=m.get("interceptPreventDefault",!0);return a&&r.push(lu(window.Event,e)),o&&r.push(pu(window.Event,["touchend"])),function(){y.each(r,function(e){e()})}};function cu(n,i){var e=["remove","removeChild"];try{if(!n)return y.noop;y.each(e,function(e){var t=n[e];if(!t)return y.noop;n[e]=y.wrap(t,function(e){return i&&i(),e.apply(this,y.toArray(arguments).slice(1))}),n[e]._pendoUnwrap=function(){if(!n)return y.noop;n[e]=t,delete n[e]._pendoUnwrap}})}catch(t){I.critical("ERROR in interceptRemove",{error:t})}return function(){y.each(e,function(e){if(!n[e])return y.noop;e=n[e]._pendoUnwrap;y.isFunction(e)&&e()})}}function lu(n,e){var t=["stopPropagation","stopImmediatePropagation"];try{if(!n||!n.prototype)return y.noop;var i=y.indexBy(e);y.each(t,function(e){var t=n.prototype[e];t&&(n.prototype[e]=y.wrap(t,function(e){var t=e.apply(this,arguments);return i[this.type]&&(R.data.set(this,"stopped",!0),R.event.trigger(this)),t}),n.prototype[e]._pendoUnwrap=function(){n.prototype[e]=t,delete n.prototype[e]._pendoUnwrap})})}catch(r){I.critical("ERROR in interceptStopPropagation",{error:r})}return function(){y.each(t,function(e){e=n.prototype[e]._pendoUnwrap;y.isFunction(e)&&e()})}}function pu(t,e){try{if(!t||!t.prototype)return y.noop;var i=y.indexBy(e),n=t.prototype.preventDefault;if(!n)return y.noop;t.prototype.preventDefault=y.wrap(n,function(e){var t,n=e.apply(this,arguments);return i[this.type]&&((t=R.event.clone(this)).type="click",t.from=this.type,t.bubbles=!0,t.eventPhase=Qr,R.event.trigger(t)),n}),t.prototype.preventDefault._pendoUnwrap=function(){t.prototype.preventDefault=n,delete t.prototype.preventDefault._pendoUnwrap}}catch(r){I.critical("ERROR in interceptPreventDefault",{error:r})}return function(){var e=t.prototype.preventDefault._pendoUnwrap;y.isFunction(e)&&e()}}function l(e,t,n,i){return e&&t&&n?(i&&!et.addEventListener&&(i=!1),R.event.add(e,{type:t,handler:n,capture:i})):y.noop}function hu(e,t,n,i){e&&t&&n&&(i&&!et.addEventListener&&(i=!1),R.event.remove(e,t,n,i))}var fu=function(e){R.data.set(e,"pendoStopped",!0),e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1},gu=function(e,t){return"complete"!==(t=t||window).document.readyState?to(t,"load",e):(e(),y.noop)},k=[],mu=[],vu={},yu={};function bu(){return k}function Iu(){return wu(k)}function wu(e){return y.filter(e,function(e){return!e.isFrameProxy})}function Cu(e){y.isArray(e)?(k=e,S.guideListChanged.trigger({guideIds:y.pluck(e,"id")})):I.info("bad guide array input to `setActiveGuides`")}Su=[];var Su,Au={addGuide:function(e){var t;y.isEmpty(e)||(Su=Su.concat(e),y.each(Su,function(e){return e.hide&&e.hide()}),e=k,(t=y.difference(e,Su)).length<e.length&&(Cu(t),A.dispatch("frames/changeGuideList",t)))}};function Eu(t,n){return y.find(Ru(),function(e){return y.get(e,t)===n})||null}function Tu(e){return Eu("id",e)}function _u(e){return Eu("name",e)}function xu(e,t){return e&&e.id?(e=Tu(e.id)).findStepById(t):null}function Ru(){var e=y.values(yu);return e.length?k.concat(y.flatten(e)):k}var ku="_pendo-guide-tt_",Ou="_pendo-guide-mobile-tt_",Nu=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},Mu=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)},Lu=function(e){return!!y.get(e,"attributes.form")};function Fu(){return"undefined"!=typeof selmo&&selmo.isPreviewing}function Pu(){return!!(Fu()&&ya().width<=320)||et.isMobileUserAgent()}function Gu(){var e=Gu.attachPoint;if(null==e){var t=m.get("guides.attachPoint");if(y.isString(t)){try{e=Xr(t)[0]}catch(n){I.info('Error finding guide attach point "'+t+'"')}e=e||document.createElement("div")}else e=!!y.isFunction(t)&&t();Gu.attachPoint=e}return e||Ea()}var Du=function(e){var t=vu[e.guideId];if(t){t=t.element();if(_a(t)&&t.id==="_pendo-badge_"+e.id)return t}},Bu=function(e){var t;return e?(t=e.getGuide(),t="building-block"===y.get(t,"attributes.type")||!Mu(t),!e.overrideElement&&t&&(e.overrideElement=Du(e)),e.targetElement=Wu(e),e.overrideElement||e.targetElement):(I.info("Can't get element for null step"),null)},Wu=function(e){e=e.elementPathRule||null,e=e?Xr(e):[Ea()];return 0===e.length?null:y.first(e)};function $u(e){var t=y.get(e,"attributes.activation.selector");return t||e.steps[0].elementPathRule}function Uu(e,t,n){var i,r,o,e=wa(e),t=wa(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!==ba(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),y.contains([Ma.X,Ma.BOTH],i)&&(r.x=0);y.contains([Ma.Y,Ma.BOTH],i)&&(r.y=0);return r}(a,ya(),n,Na(Ea(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}function ju(e,t,n,i,r){var o,a=y.toArray(arguments).slice(1),s=e.apply(this,a);return n||Pa(o=Gu())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function zu(){return A.getters["frames/isLeader"]()}function Zu(e){return A.dispatch("frames/updateFrameVisibility",{visibility:e})}Vu=Un.call({}),Yu={validateGuide:1,validateLauncher:1,validateGlobalScript:1},Hu={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1},y.each(["ready","onClickCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","validateGuide","validateLauncher","validateGlobalScript"],function(t){Hu[t]&&S[t].on(function(e){return Ku[t].apply(Ku[t],e.data)}),Vu[t]=function(e){return y.isFunction(e)?Vu.on(t,e):Vu[Yu[t]?"triggerAsync":"trigger"].apply(Vu,[t].concat(y.toArray(arguments)))}});var Vu,Yu,Hu,Ku=Vu;var Xu={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:function(e,t,n){return t.ajax.get(e).then(function(e){t.guidesPayload(e.data),n()})},endpoint:function(){return"guide.json"},usesXhr:function(){return!0}};function Ju(e){e=Ja(e);if(e){e=e.filename;if(e)return 54<e.length?e.substring(28,55):e}}Qu=ic={failed:{},verified:{}},tc=na,nc=function(e){try{var t=[];return!Xu.usesXhr()&&e.domJsonpUrl?t.push(ac(e,"domJsonpUrl")):Xu.usesXhr()&&e.domUrl&&t.push(oc(e,"domUrl")),e.contentUrlJs?t.push(ac(e,"contentUrlJs")):e.contentUrl&&t.push(ac(e,"contentUrl")),C.all(t)}catch(n){throw S.contentVerificationFail.trigger(e,n),n}},ec=function(e){return nc(e).then(y.noop,function(e){return/verify/.test(e)&&tc(e),C.reject(e)})},qu=function(t){return Qu.failed[t.id]?C.reject():Qu.verified[t.id]?C.resolve():ec(t).then(function(){Qu.verified[t.id]=!0},function(e){return Qu.failed[t.id]=!0,C.reject(e)})};var qu,Qu,ec,tc,nc,ic,rc={verify:function(e){return m.get("guideValidation")?qu(e):C.resolve()},reset:function(){ic.failed={},ic.verified={}}};function oc(e,t){var n,i=e[t];return y.isString(i)?(n=(e=e)[{domUrl:"domHash",domJsonpUrl:"domJsonpHash",contentUrl:"contentHash",contentUrlJs:"contentJsHash"}[t=t]]||Ju(e[t]),oo.get(i).then(function(e){var t;if("object"==typeof(e=e.data)&&(e=JSON.stringify(e)),(t=Y.create()).update(e),G.uint8ToBase64(t.digest())!==n)return C.reject('Unable to verify content at "'+i+'"')})):C.reject('unable to parse "'+i+'"')}function ac(e,t){var n=e[t];return et.sri&&/[?&]sha(256|384|512)=/.test(n)?C.resolve():oc(e,t)}sc="allow",dc="deny",uc="pending",lc=function(){return 0<y.size(Ku._handlers.validateGuide)},pc=function(e,n){var i=[];return y.each(e,function(e,t){n&&(t=n+"."+t),y.isObject(e)?y.each(pc(e,t),function(e){i.push(e)}):i.push([t,e])}),i};var sc,dc,uc,cc,lc,pc,hc={state:cc={},Step:function(e){var n=this;function i(e){return y.filter([["content",Ju(e.contentUrl)],["contentCss",Ju(e.contentUrlCss)],["contentJs",Ju(e.contentUrlJs)],["dom",Ju(e.domUrl)],["domJsonp",Ju(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=pc(t)).length&&(t=y.sortBy(t,function(e){return e[0]}),e.push(["variables",t])),e)},n},Guide:function(){return this.signature=function(){return y.map(this.steps,function(e){return e.signature()})},this},Launcher:function(){var n=this,i=!1,r=function(){return 0<y.size(Ku._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-"+Ct(n.signature()),(t=cc[t])!==dc)&&(t!==sc?(i=!0,t=JSON.stringify(n.signature()),e="launcher-"+Ct(t),Ku.validateLauncher(t).then(function(){cc[e]=sc},function(){cc[e]=dc}).then(function(){i=!1,n.render(),n.update(k)},function(){i=!1}),!1):void 0)}),n.signature=function(){var e=[],t=pc(this.data);return t.length&&(t=y.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(!lc())return C.resolve();try{return y.get(e,"attributes.resourceCenter.isTopLevel",!1)?(t=e,n=N.findResourceCenterModules(t,k),t=[t].concat(n),C.all(y.map(t,fc))):fc(e)}catch(i){throw S.contentValidationFail.trigger(e,i),i}var t,n},valid:function(e){return!lc()||!!(e=cc[e.guideId])&&e.status===sc},invalid:function(e){return!!lc()&&!!(e=cc[e.guideId])&&e.status===dc},reset:function(){cc={}}};function fc(i){var r=cc[i.id];return r||(r={},cc[i.id]=r),r.contentPromise||(r.contentPromise=i.fetchContent()),r.contentPromise.then(function(){var e=JSON.stringify(i.signature()),t=i.id+"-"+Ct(e),n=(r[t]||(r[t]={status:uc},r.status=uc),r[t].promise);return n||(n=Ku.validateGuide(e,i).then(function(){r[t].status=sc,r.status=sc},function(e){return r[t].status=dc,r.status=dc,C.reject(e)}),r[t].promise=n),n})}function gc(e,t){var n=y.toArray(arguments).slice(2);return y.reduce(e,function(e,t){return t.apply(e,n)},t)}function mc(e){return y.isFunction(e.before)?e:gc(mc.behaviors,e)}function vc(e,t){return gc(vc.behaviors,e,t)}function yc(e){var t,n,i=m.getLocalConfig("contentHost");return i&&e?(t=new RegExp("(https:)?\\/\\/"+((t=it)===Le?"pendo-static":De(t))+"-\\d+\\.storage\\.googleapis\\.com","g"),n=new RegExp("(https:)?\\/\\/"+De(it)+"\\.storage\\.googleapis\\.com","g"),e.replace(t,i).replace(n,i).replace(new RegExp("(https:)?\\/\\/"+Yt(ot),"g"),i)):e}function bc(e){return m.getLocalConfig("contentHost")?JSON.parse(yc(JSON.stringify(e))):e}mc.behaviors=[],vc.behaviors=[];Ic={},wc=y.compose(function(e){var t=function(){var e=Yt(m.getHostedConfig("contentHost"));if(e)return e+"*"}();return t&&!new RegExp(t).test(e)&&I.debug("Failed to verify URL: "+e+" vs "+t),e},yc),Cc=[function(e,t,n){return t="var guide = pendo.findGuideById('".concat(t,"');\nvar step = guide && guide.findStepById('").concat(n,"');"),e.replace("<% if (typeof guide !== 'undefined') { %>\nvar guide = pendo.findGuideById('<%= guide.id %>');\nvar step = guide && guide.findStepById('<%= step.id %>');\n<% } %>",t)}];var Ic,wc,Cc,Sc={load:function(t){try{var e=Ic[t.id];if(e&&e.language!==t.language&&delete Ic[t.id],!Ic[t.id]){var n,i=[],r={deferred:{},language:t.language},o=!1;if(Ic[t.id]=r,Xu.usesXhr()&&t.domUrl?(r.deferred.domJson=C.defer(),oo.get(wc(t.domUrl)).then(function(e){r.domJson=bc(e.data);var e=e.data;e=e,y.isObject(e)&&e.hasOwnProperty("type")&&e.hasOwnProperty("children")&&e.hasOwnProperty("props")?r.deferred.domJson.resolve():(I.critical(new Error("Response from the guide was not in proper JSON format")),r.deferred.domJson.reject())})["catch"](function(e){I.critical(e),S.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=C.defer(),n=ts(wc(t.domJsonpUrl),function(e){R.removeNode(n),e&&S.resourceFetchFail.trigger(t,e)},!0),i.push(r.deferred.domJson.promise),o=!0),t.contentUrlJs&&!m.get("preventCodeInjection")){r.deferred.content=C.defer();var a=ts(wc(function(e){if(Tt()){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}(ft(n)));if(y.isString(n))return n+"/"+t.join("/")}return e}(t.contentUrlJs)),function(e){R.removeNode(a),e&&S.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise),t.contentUrlCss&&(r.deferred.css=C.defer(),ts({url:wc(t.contentUrlCss),type:"text/css"},function(){r.deferred.css.resolve()}),i.push(r.deferred.css.promise))}else if(t.contentUrl&&!m.get("preventCodeInjection")){r.deferred.content=C.defer();var s=ts(function(e,t){if(!y.isString(e))return e;var n=y.indexOf(e,"?");return n<0?e+t:e.substring(0,n)+t+e.substring(n)}(wc(t.contentUrl),".js"),function(e){R.removeNode(s),e&&S.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise)}else if(!o)return C.reject("fetchedDomContent is still false");r.deferred.promise=C.all(i).then(function(){return y.omit(r,"deferred")})}return Ic[t.id].deferred.promise}catch(d){throw S.resourceFetchFail.trigger(t,d),d}},reset:function(){Ic={}},guideContent:function(e,t,n,i,r){var o,a,s;y.isString(n)&&(o=n,a=e,s=t,n=y.reduce(Cc,function(e,t){return t(e,a,s)},o),y.isFunction(i)||(o=n,i=/<%/.test(o)&&/%>/.test(o)?y.template(n):y.constant(n)),o=Ic[e+t])&&o.deferred.content&&(o.content=n,o.template=i,o.script=r,o.deferred.content.resolve())},receiveDomStructureJson:function(e,t,n){(e=Ic[e+t])&&e.deferred.domJson&&(e.domJson=bc(n),e.deferred.domJson.resolve())}},Ac=(Ec.state={},Ec.queue=[],Ec.pending=function(){return y.reduce(Ec.state,function(e,t){return e+(t.loaded?0:1)},0)},Ec.reset=function(){Sc.reset(),Ec.state={},Ec.queue=[]},Ec.prefetch=function(e){var t;return Ec.hasContent(e)?y.get(Ec.state[Tc(e)],"promise"):(t=C.defer(),Ec.queue.push([t,e]),t.promise)},Ec.processPrefetch=function(e){return void 0===e&&(e=10),Ec.queue.length?(e=Ec.queue.splice(0,Math.max(e-Ec.pending(),0)),C.all(y.map(e,function(t){return Ec.fetchContent(t[1]).then(function(e){t[0].resolve(e)})["catch"](function(e){t[0].reject(e)})}))):C.resolve()},Ec.fetchContent=function(t){var e=Tc(t);if(!(i=Ec.state[e])){var n,i={},r=t.getGuide();if(r.control)return C.resolve();r&&r.language&&(n=r.language);var r=t.guideId+t.id,o=y.extend({id:r,language:n,guideId:t.guideId},y.pick(t,"contentUrl","contentUrlCss","contentUrlJs","domJsonpUrl","domUrl","domHash","contentHash","contentJsHash"));i.promise=rc.verify(o).then(function(){return i.verified=!0,Sc.load(o)}).then(function(e){return i.loaded=!0,e}),Ec.state[e]=i}return i.promise.then(function(e){y.extend(t,e)})},Ec.hasContent=function(e){return fe(e.content)||fe(e.domJson)},Ec);function Ec(n){var i=this,t=1;return(i.contentUrl||i.domJsonpUrl)&&(y.extend(i,{fetchContent:function(e){void 0===e&&(e=!1);return e?Ec.prefetch(i):Ec.fetchContent(i)}}),i.after("render",function(e){!function(e){var t=y.indexOf(n.steps,i);y.chain(n.steps).rest(t+1).first(e).each(function(e){y.isFunction(e.fetchContent)&&e.fetchContent()}).value()}(t)})),i}function Tc(e){var t=e.getGuide(),t=t&&t.language?t.language:"default";return e.id+"."+t}s=S.runtime,_c=[],xc=Un.call({}),Rc={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}},s.on(function(e){var t,n=e.data[0];if(e.step=n,delete e.data,Lc(e.type))return-1<y.indexOf(["beforeUnmount","unmounted"],e.type)&&(t="active"===(t=n).seenState?"hidden":t.seenState,e.reason=t,"unmounted"===e.type)&&xc.trigger(t,e),t=Rc[e.type].type,xc[t](e.type,e),"unmounted"===e.type?xc.trigger("afterUnmounted",e):"beforeMount"===e.type&&Mc(this,e,n),"triggerCancelable"!==t&&e.cancel&&delete e.cancel,e}),Fc.prototype.on=function(e,t){var n,i;Lc(e)?(Rc[e].fromUnmount&&(t=y.once(t)),n=this.step,i=t,t=wi(t=function(e){if(e.step.id===n.id)return i(e);I.debug("called guide runtime callback on wrong step")}),xc.on(e,t),this.purge=y.compose(this.purge,y.partial(xc.off,e,t))):I.info("GUIDE-RUNTIME: Warning! Unregisterable event type "+e)};var _c,xc,Rc,kc={initialize:function(){var e=m.get("guides.globalScripts");y.each(e,kc.addGlobalScript)},teardown:function(){y.each(_c,kc.removeGlobalScript)},addGlobalScript:function(e){var t,n,i,r;t=e,(i=y.without(y.keys(t),"script","test","regex","beforeMount")).length&&(n=t.script,t.script=function(){if(y.each(i,function(e){Lc(e)&&this.on(e,t[e])},this),y.isFunction(n))return n.apply(this,arguments)}),r=e=t,!y.isFunction(r.script)&&!y.isFunction(r.beforeMount)||r.test&&!y.isFunction(r.test)||r.regex&&!y.isRegExp(r.regex)?I.critical("Error adding invalid GlobalScript via API"):_c.push(e)},removeGlobalScript:function(e){0<=(e=y.indexOf(_c,e))&&_c.splice(e,1)},getContext:function(e){return new Fc(e)},runCustomScripts:function(i,r){y.each(Nc(i,r),function(e){try{var t=kc.getContext(i);e.call(t,i,r,v)}catch(n){I.critical("Exception thrown running code block for: "+JSON.stringify({guideId:r.id,stepId:i.id}),{error:n})}})}};function Oc(e,n,i,r){return y.filter(e,function(e){if(y.isFunction(e[r])){if(y.isFunction(e.test))try{return e.test(n,i,v)}catch(t){return I.critical("Error in global script test code block",{error:t}),!1}return y.isRegExp(e.regex)?e.regex.test(i.name)||e.regex.test(n.name):!0}})}function Nc(e,t,n){var i=[];return"script"===(n=void 0===n?"script":n)&&y.isFunction(e.script)&&i.push(e.script),y.size(_c)&&(e=Oc(_c,e,t,n),y.each(e,function(e){i.push(e[n])})),i}function Mc(n,i,r){var o=r.guide;o&&y.all(Nc(r,o,"beforeMount"),function(e){try{return e.call(n,i),!i.cancel}catch(t){return I.critical("Exception thrown running beforeMount for: "+JSON.stringify({guideId:o.id,stepId:r.id}),{error:t}),!1}})}function Lc(e){return Rc[e]}function Fc(n){this.step=n,y.each(["read","write","clear"],function(t){this[t]=w[t],this[t+"ByGuide"]=function(){var e=y.first(arguments)+":"+y.get(n,"guide.id");return w[t].apply(this,[e].concat(y.rest(arguments)))}},this);var e=y.bind(function(e){this.step.id!==e.step.id?I.debug("aborting afterUnmounted b/c step ids don't match"):this.purge()},this);this.purge=y.partial(xc.off,"afterUnmounted",e),xc.on("afterUnmounted",e)}function Pc(e){return e.props&&e.props.id&&0===e.props.id.indexOf("pendo-g-")?e:e.children?y.find(e.children,Pc):void 0}function Gc(e,t){if(t(e))return e;if(e.children)for(var n=0;n<e.children.length;n++){var i=Gc(e.children[n],t);if(i)return i}return!1}function Dc(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=Dc(e,t.children[n]);if(i)return i}}var Bc={buildNodesFromTemplate:function(e,t,n,i,r){var o=i||k,a=r||v.BuildingBlockGuides.buildNodeFromJSON;switch(e){case"pendo_resource_center_module_list_item":return function(p,h,f,g){var e=p.templateChildren;return y.reduce(e,function(e,t,n){var i=N.findResourceCenterHomeView(f),r=y.find(f,function(e){return e.id===t.id});if(v.designer)r=t,i=y.find(f,function(e){return y.get(e,"attributes.resourceCenter.isTopLevel")});else{if(!r)return e;if(!r.hasResourceCenterContent)return y.each(r.children,function(e){e=Tu(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"]}),v.designer||d.actions.push(u),y.get(i,"attributes.notificationBubble")),c=y.get(i,"attributes.notifications"),u=(u&&c&&("AnnouncementsModule"===y.get(r,"attributes.resourceCenter.moduleId")&&(o=r.id),o="chat"===y.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=Gc(c,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-row")}))&&(s=y.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:Gt(Gt(Gt({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)),Gc(d=$c(d,t,d.props.id,n),function(e){e=y.get(e,"props.class");return e&&0<=e.indexOf("_pendo-resource-center-module-list-item-text-container")})),i=Gc(d,function(e){e=y.get(e,"props.id");return e&&0<=e.indexOf("pendo-right-caret")}),l=Gc(d,function(e){e=y.get(e,"props.id");return e&&0<=e.indexOf("pendo-home-view-bubble-".concat(n))});return u&&(u.props["aria-hidden"]=!0,i)&&(i.props["aria-labelledby"]="".concat(u.props.id," ").concat(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 y.reduce(e,function(e,t,n){var i,r=Uc(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"},v.designer||i.actions.push(r),i=$c(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;y.filter(r,function(e){return Uc(n,e)}).length?(e.children=y.filter(e.children,function(e){return"pendo_task_list_fallback_text"!==e.templateName}),function o(e,t){e.templateName&&(e.templateChildren=t);if(!e.children||!e.children.length)return;for(var n=0;n<e.children.length;n++)o(e.children[n],t)}(e,r)):e.children=y.filter(e.children,function(e){return"pendo_task_list_item"!==e.templateName&&"pendo_task_list_progress_bar"!==e.templateName});return N.updatePseudoStyleSelectors(e),[i(e,t,n)]}(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 y.reduce(e,function(e,t,n){var i,r,o,a=Uc(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"},v.designer||i.actions.push(r),r=a.getTotalSteps(),o=a.getSeenSteps(),a.isComplete()&&(o=r),a=parseInt(o/r*100,10),Gc(i,function(e){return e.svgWidgetId}).svgAttributes.fillCircle.percentComplete=a,t.hasOwnProperty("subtitle")?t.stepProgress=Wc(t.subtitle,{currentStep:o,totalSteps:r}):t.stepProgress="Step "+o+" of "+r,i=$c(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=(y.forEach(r,function(e){e=Uc(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 Gc(e=$c(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=y.reduce(e,function(e,t){t=Uc(n,t);return t&&t.steps&&t.steps.length?e.concat(t):e},[]);if(!y.every(e,function(e){e=e.steps[0];return!!Ac.hasContent(e)}))return[];var t=N.getResourceCenter(),h=y.get(t,"attributes.notificationBubble");h&&(delete h.dir,"rtl"===l.props["data-localization-direction"])&&(h.dir="rtl");return y.map(e,function(e,t){var n,i,r,o,a,s,d,u="whatsnew"===y.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=mc(r=e),(d=n.steps[0]).render(),kc.runCustomScripts(d,n),i="#"+(n=d.guideElement)[0].id+" h1::after { display:none; }",n[0].appendChild(document.createElement("style")).innerHTML=i,u&&((o=jc(u)).props.style.top="20px"),!N.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=mc(t=e),s=t.steps[0],kc.runCustomScripts(s,d),d=JSON.parse(JSON.stringify(s.domJson)),u.children=[d],r&&(a=jc(r),d=Gc(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"),!N.hasAnnouncementBeenSeen(t)&&a&&(u.props["class"]+=" pendo-unseen-announcement",u.children.unshift(a)),delete u.templateName,(d=Dc("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():y.find(n,function(e){return e.id===t.guideId}),o=y.get(r,"attributes.dates."+r.language,!1);o=o?{showsAfter:o}:(o=y.get(r,"currentFirstEligibleToBeSeenAt")||y.get(r,"showsAfter")||y.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=$c(r=JSON.parse(JSON.stringify(e)),o),[i(r,t,n)]}(t,n,o,a);default:return[]}},generateUnreadAnnouncementMiniBubble:jc,getGuidesInResourceCenterModule:function(e,i){e=e.attributes.resourceCenter.children;return y.reduce(e,function(e,t,n){t=Uc(i,t);return t&&e.push(t),e},[])}};function Wc(e,n){return e.replace(/<%=\s*([A-Za-z_0-9$]+)\s*%>/gi,function(e,t){return y.isNull(n[t])||y.isUndefined(n[t])?e:n[t]})}function $c(e,t,n,i){if(e.content&&(e.content=Wc(e.content,t)),e.props&&(e.props["aria-label"]&&(e.props["aria-label"]=t.ariaLabel?Wc(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++)$c(e.children[r],t,n,i);return e}function Uc(e,t){e=y.find(e,function(e){return e.id===(t.id||t)});if(v.designer)return t;if(e){if(!e.ineligibleForRC)return e;e.control&&e.steps[0].onControlGuide("control")}}function jc(e){var t={left:"0px"};return"rtl"===e.dir&&(t={right:"0px"}),{type:"div",children:[],props:{"class":"pendo-unread-announcement-mini-bubble",style:Gt(Gt({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 zc={buildSvgNode:function(e,t){switch(e){case"onboardingProgressCircle":case"taskListProgressCircle":return Zc(t)}},createProgressCircleSvg:Zc};function Zc(e){var t,n,i,r,o,a,s;return We(9)?(n=(t=(t=e).svgAttributes).fillCircle.stroke,i=t.backgroundCircle.stroke,t=100<=(t.fillCircle.percentComplete||0),r=R(K(v).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=R(K(v).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=R(K(v).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 Vc=function(e,t){return e<t},Yc=y.negate(Vc);function Hc(){var e=Ea();return Ho(e)?xa(e):((e=ya()).left=0,e.top=0,e.right=e.width,e.bottom=e.height,e)}function Kc(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 Xc(e){var t;if(e&&e.length)return t=Ho(Ea())?xa:Jo,(e=y.reduce(e,function(n,e){var i;return $a(e)?(i=t(e))?(y.each([["top",Vc],["right",Yc],["bottom",Yc],["left",Vc]],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 Jc(e,t){var n=Hc(),e=Xc(e)||{top:0,left:0,right:n.width,bottom:n.height,width:0,height:0};return{viewport:n,box:e,overlays:Kc(n,e,t)}}function qc(e){var t=[],n=y.get(e,"attributes.blockOutUI",{});if(n.additionalElements=n.additionalElements||"",n.enabled&&e.element!==Ea()){t.push(e.element);for(var i=n.additionalElements.replace(/\s/g,"").split(","),r=0;r<n.additionalElements.length;r++)try{var o=R(i[r]);o&&y.each(o,function(e){t.push(e)})}catch(a){I.info("Additional element for blockOutUI is invalid selector",{contexts:["error"]})}}return t}var Qc=null,el=function(e){var t=!y.isEqual(e,Qc);return Qc=e,t},tl=null,nl=function(e){var t=!y.isEqual(e,tl);return tl=e,t},il=null,rl=function(e){var t=!y.isEqual(e,il);return il=e,t},ol=function(e){return nl(e.viewport)||el(e.box)||rl(e.overlays)};function al(e){try{var t=Jc(qc(e),y.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0}));ol(t)&&y.each(e.backdrop.children,function(n){var e=n.getAttribute("pendo-region"),e=t.overlays[e];y.each(e,function(e,t){n.style[t]=e+"px"})})}catch(n){I.info("Failed to update BlockOut ui",{contexts:["error"]})}}function sl(e){try{var t,n,i,r;if(!(0<R("._pendo-guide-backdrop_").length))return t=Jc(qc(e),y.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0})),ol(t),n={"z-index":1e4,position:"fixed"},i=[],y.each(t.overlays,function(e,t){t=function(e,t){var n=R("div.pendo-backdrop-region-"+e);n.length||(n=R(document.createElement("div")).addClass("pendo-backdrop-region-"+e));return R(n).css(t).attr("pendo-region",e),n}(t,y.extend({},e,n));i.push(t)}),o=i,a=Dc("pendo-backdrop",e.domJson),y.each(["left","right","width","height","bottom","top"],function(e){delete a.props.style[e]}),s=R(document.createElement("div")).attr("id","pendo-backdrop").addClass("_pendo-guide-backdrop_"),y.each(a.props,function(n,i){y.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){I.info("Failed to add BlockOut ui",{contexts:["error"]})}var o,a,s}var dl="top",ul="bottom",cl="left",ll="right",pl="center";function hl(e,t,n){return n===ll||n===cl?n:(n=e.left,(t=(e=t.width)/3)<n&&n<2*t?pl:n<e/2?ll:cl)}var fl={createBBTooltip:gl,getBBTooltipDimensions:bl,determineBBHorizontalBias:hl,determineTooltipPosition:Il,positionBBTooltipWithBias:wl,calculateToolTipPositionForTopBottom:Cl,calculateToolTipPositionForLeftRight:Sl,buildTooltipCaret:Al,styleTopOrBottomCaret:Tl,styleLeftOrRightCaret:_l,buildBorderCaret:xl,determineBorderCaretColor:kl,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=Pc(e.domJson),(t?e.guideElement:e.guideElement.find("#"+n.props.id))[0]}(e);t&&(i=e.element||Bu(e),n=wa(i),"none"!==f(e.elements[0]).display)&&(i=Jo(i),a=e.attributes.layoutDir,e=e.guideElement,r=R(t).find("#pendo-guide-container"),o=r[0].style,t=f(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&&El(t,o,r),a)&&Rl(a,r,o.layoutDir,t),e.css({top:o.top,left:o.left,position:n.fixed?"fixed":"absolute"}))},attachBBAdvanceActions:yl,attachScrollHandlers:ml,isBuildingBlockGuideRelativeToElement:function(e){return!(!e.domJson||!y.isObject(e.domJson)||!(e=Pc(e.domJson))||"Relative to Element"!==e.props["data-vertical-alignment"])},positionStepForTooltip:function(e,t,n){gl(t,e.element,e,n),e.hasBeenScrolledTo||(ja(e.element),Uu(e.element,n,e.attributes.layoutDir),e.hasBeenScrolledTo=!0)}};function gl(e,t,n,i){var r,o,a,s,d,u;if(n.guideElement)return(r=n.guideElement).addClass(Pu()?Ou:ku),0===(o=wa(t)).height&&0===o.width?null:(t=Jo(t),(e=Gc(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},yl(n),e.props.style.border&&(e=e.props.style.border.split(" "),a.borderColor=e[2],a.borderWidth=parseInt(e[0],10)),e=bl(o,d,a,u,t),n&&(n.dim=e),n&&y.isFunction(n.getGuide)&&(s=n.getGuide()),d=y.get(s,"attributes.resourceCenter"),o.fixed?(r.css({position:"fixed"}),i.style.position="absolute"):n&&d||(i.style.position="absolute"),a.height&&a.width&&Al(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===cl&&r.find("#pendo-watermark").css({top:"auto",bottom:"100%"}),ml(n,Ol),r[0]):void 0)}function ml(e,t){e&&y.isFunction(e.attachEvent)&&(Fu()&&e.element===R.getBody()||(t=y.throttle(y.bind(t,e,e),10),e.attachEvent(window,"scroll",t,!0),Ga(y.bind(e.attachEvent,e),e.targetElement,t)))}function vl(t,n){var e=R(n.elementPathRule)[0];n.attachEvent(e,t,function(e){R.data.set(e,"advanced",!0),gm(t,n)})}function yl(e){e.attributes&&e.attributes.advanceActions&&e.elementPathRule&&(e.attributes.advanceActions.elementHover?vl("mouseover",e):e.attributes.advanceActions.elementClick&&vl("click",e))}function bl(e,t,n,i,r){var o,a,s=ya(),i=i||"auto",t={width:Math.min(t.width,s.width),height:t.height},d=(t.layoutDir=i,t.hbias=hl(e,s,i),t.vbias=(o=e,d=s,(a=i)===dl||a===ul?a:(a=o.top,(d=(o=d.height)/3)<a&&a<2*d?pl:a<o/2?ul:dl)),t.layoutDir=Il(t,s,r,i),wl(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 Il(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===pl)&&(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!==pl&&(c=e.hbias),d&&u||(u||(c="right"),d)||(c="left")),(c=c&&"bottom"!==c||!s||a?c:"top")||e.hbias)||"bottom")}function wl(e,t,n){return"top"===e.layoutDir||"bottom"===e.layoutDir?Cl(e,n,t,e.layoutDir,e.hbias):Sl(e,n,t,e.vbias)}function Cl(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 Sl(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 Al(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,El(i,t,n),e.find("#pendo-guide-container")[0].parentNode);e.appendChild(i),n.borderWidth&&(i=xl(i,n,t.layoutDir),e.appendChild(i))}function El(e,t,n){"top"!==t.layoutDir&&"bottom"!==t.layoutDir||Tl(e,t,n),"left"!==t.layoutDir&&"right"!==t.layoutDir||_l(e,t,n)}function Tl(e,t,n){var i,r=ya();return e.style["border-left"]=n.width+"px solid transparent",e.style["border-right"]=n.width+"px solid transparent",e.style.right="",t.hbias===cl?(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===ll?(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 _l(e,t,n){var i,r=ya();return e.style["border-top"]=n.width+"px solid transparent",e.style["border-bottom"]=n.width+"px solid transparent",e.style.bottom="",t.vbias===dl?(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===ul?(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 xl(e,t,n){var i=e.cloneNode();return i.setAttribute("class","pendo-tooltip-caret-border"),i.style.zIndex=10,Rl(i,t,n,e),i}function Rl(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]=kl(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"),y.extend(e.style,r)}function kl(e,t){return"transparent"===e?e:t}function Ol(e){$a(e.element)?(fl.placeBBTooltip(e),R(e.elements[0]).css({display:"block"})):R(e.elements[0]).css({display:"none"})}function Nl(i){var e=i.find('[data-pendo-grow-height="true"]');if(e.length)for(var r=Object.entries(e),o=[],t=0;t<r.length;t++)!function(e){if(Number.isInteger(Number.parseInt(r[e][0],10))){var t=r[e][1];if(y.some(o,function(e){return e.parentNode===t.parentNode}))return;var e=i[0],n=t.parentNode.closest('[data-pendo-grow-height="true"]');if(n){if(!o.includes(n))return;e=n}Ml(t,e),o.push(t)}}(t)}function Ml(e,t){for(var n=0,i=e.parentNode.children,r=0;r<i.length;r++){var o,a=i[r];a!==e&&(o=f(a),o=parseInt(o.marginTop,10)+parseInt(o.marginBottom,10),n+=a.offsetHeight+o)}var s=t.offsetHeight,t=f(t),t=parseInt(t.paddingTop,10)+parseInt(t.paddingBottom,10),d=f(e),d=parseInt(d.marginTop,10)+parseInt(d.marginBottom,10),s=Math.max(s-t-n-d,0);0<s&&(e.style.height=s+"px")}function Ll(e,t){var n,i,r,o,a,s,d,u,c,e=R("#"+e,t)[0];e&&(t=R(e),n=R(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(f(e).height,10),d=ya().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 Fl(e,t){e=R("#"+e,t)[0];if(e){t=e.getAttribute("data-pendo-mobile-layout");if(!t){var n=R(e),t=R(n.find("#pendo-guide-container")[0]),i=parseInt(e.style.width,10),r=(t.css({"max-width":"none"}),n.css({"margin-right":"0px"}),parseInt(f(e).width,10)),o=ya().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 Pl(e,i){var e=y.isArray(e)?e:[e],e=y.reduce(e,function(e,t){var t=R("#"+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=y.reduce(t,function(e,t){return e.concat(y.toArray(R(['[class*="_pendo-text-"]:not([class*="_pendo-resource-center-"])','.pendo-mock-flexbox-element > [class*="_pendo-button-"]',"._pendo-multi-choice-poll-select"].join(","),t)))},[]))&&t.length&&Gl(y.reduce(t,function(e,t){var n,t=R(t),i=Wl(t[0]),i=i.marginLeft+i.marginRight,r=Bl(t);return r&&(n=r.paddingLeft+r.paddingRight,r=r.width-i-n,e.push({$blockElement:t,availableSpace:r})),e},[])),y.each(e,function(e){var t=e,t=((t=R("._pendo-open-text-poll-input",t))&&t.length&&y.each(t,function(e){var t,n=R(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)),Wl(n[0])),r=e.marginLeft+e.marginRight,o=Bl(n);o&&(t=o.paddingLeft+o.paddingRight,o=o.width-r-t,-1!==i.indexOf("%")&&Dl(n,e.width,i,o),-1===i.indexOf("%")&&(i=parseInt(i,10))<o&&n.css({width:i}),Gl({$blockElement:n,availableSpace:o}))}),e);(t=R(["._pendo-video","._pendo-image"].join(","),t))&&t.length&&y.each(t,function(e){var t=R(e),n=Wl(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=Bl(t);o&&(a=o.width-(o.paddingLeft+o.paddingRight)-n,e&&Dl(t,i,r,a),Gl({$blockElement:t,availableSpace:a}))})})}function Gl(e){y.isArray(e)||(e=[e]),y.each(e,function(e){e.$blockElement.css({"max-width":"none"})});var n=y.map(e,function(e){return Wl(e.$blockElement[0]).width});y.each(e,function(e,t){n[t]>=e.availableSpace&&e.$blockElement.css({"max-width":e.availableSpace})})}function Dl(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 Bl(e){e=e.closest("._pendo-row");if(e){e=f(e[0]);if(e)return{width:parseFloat(e.width),paddingLeft:parseInt(e.paddingLeft,10),paddingRight:parseInt(e.paddingRight,10)}}}function Wl(e){e=f(e);return{width:parseFloat(e.width),marginLeft:parseInt(e.marginLeft||0,10),marginRight:parseInt(e.marginRight||0,10)}}var $l,g={calculateTotalOffsetWidth:zl,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=zl(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){var t=document.createElement("div");t.style.display="inline-block",e||(t.style.position="absolute");return t.style["vertical-align"]="top",t.setAttribute("class","pendo-mock-flexbox-element"),t},createFlexRow:function(){var e=document.createElement("div");return e.setAttribute("class","pendo-mock-flexbox-row"),e.style.display="block",e.style.position="relative",e.style.width="100%",e},findMaxChildHeight:function(e,t){for(var n=[],i=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 y.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=zl(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=zl(e,t);e[t].style.left=n+"px"}},getPendoInlineUIElements:function(e){return y.filter(e,jl)},getPendoVisualElements:function(e){return y.filter(e,function(e){return!jl(e)})},initializeFlexElements:function(e){var t=e.cloneNode(),n=Ul(e),i=g.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++)Vl(n[r])?t.appendChild(n[r]):t.appendChild(g.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:jl,setElementHorizontalAlignment:function(e,t,n){if(!(e.length<1))switch(n){case"space-between":g.spaceBetween(e,t);break;case"space-around":g.spaceAround(e,t);break;case"space-evenly":g.spaceEvenly(e,t);break;case"center":g.center(e,t);break;case"flex-start":g.flexStart(e);break;case"flex-end":g.flexEnd(e,t)}},setElementVerticalAlignment:function(e,t,n){switch(n){case"top":g.topAlignment(e);break;case"center":g.centerAlignment(e,t);break;case"bottom":g.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=zl(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=zl(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=zl(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=y.get(e.style,"width",""),s=f(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)||f(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(f(t).width,10),u=parseInt(f(e).width,10)+parseInt(e.style.marginRight||0,10)+parseInt(e.style.marginLeft||0,10),t=(R(t).find("._pendo-simple-text").getParent()||R(n).find("._pendo-simple-text").getParent())[0],n=s-u,"border-box"!==y.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=g.createFlexContainer(o)).appendChild(e),-1<e.id.indexOf("pendo-text")&&"rtl"===e.dir&&(s.style.right="0px"),u=y.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:Ul,initializeFlexRows:function(e,t,n){var i,r=function(e){return y.filter(e,function(e){e=e.getAttribute("class")||"";return e&&-1<e.indexOf("pendo-mock-flexbox-element")})}(e.children);0!==r.length&&(i=g.getRowWidth(e),r=g.wrapFlexElementsInFlexRows(r,e,i),g.formatFlexRows(r,e,t,n,i))},getRowWidth:Zl,wrapFlexElementsInFlexRows:function(e,t,n){for(var i=n||Zl(t),r=g.createFlexRow(),o={row:r,rowWidthUsed:0},a=[o],s=0;s<e.length;s++){var d=e[s],u=Jo(d).width,u=parseInt(u,10);o.rowWidthUsed+=u,o.rowWidthUsed>i&&0!==y.indexOf(e,d)&&(o.rowWidthUsed-=u,(r=g.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||Zl(t),a=0;a<e.length;a++){var s=e[a],d=(t.appendChild(s.row),g.findMaxChildHeight(s.row.children,!1)),u=(s.row.style["min-height"]=d+"px",o-parseInt(s.rowWidthUsed,10));g.setElementHorizontalAlignment(s.row.children,u,n),g.setElementVerticalAlignment(s.row.children,d,i)}},isElementHiddenInGuide:Vl,flexAllThings:function(e,t){e=R("#"+e,t)[0];e&&(Hl(e),g.flexElement(e))},flexElement:function(e){e=R("[data-pendo-display-flex]",e);y.each(e,function(e){var t=g.initializeFlexElements(e),n=e.getAttribute("data-pendo-justify-content"),e=e.getAttribute("data-row-vertical-alignment");g.initializeFlexRows(t,n,e)})},maintainAspectRatios:Hl};function Ul(e){return R(["._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 jl(e){e=e.getAttribute("class");return!!(e&&-1<e.indexOf("pendo-inline-ui"))}function zl(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 Zl(e){var t=Jo(e).width,e=f(e);return parseInt(t,10)-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10)}function Vl(e){Yl(e);var t=xa(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-")&&(Yl(n),i=(n=n.parentNode).id||"",!(10<++r)););return!1}function Yl(e){e.style&&"none"===e.style.display||e.style&&"0"===e.style.opacity||e.style&&e.style.visibility}function Hl(e){var n="data-aspect-ratio",e=R("["+n+"]",e);y.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 Kl(){return!v.designer&&m.get("disableGuidePseudoStyles")}function Xl(e,t,n){return e&&e.templateName?Bc.buildNodesFromTemplate(e.templateName,e,t,n,Ql):"style"===e.type&&Kl()?[]:[Ql(e,t,n)]}function Jl(e,t,n,i){e='illegal building block key "'+e+'" found on guide "'+t+'" step "'+n+'"';throw i&&(e+=' for node type "'+i+'"'),I.info(e),new Error(e)}function ql(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=y.keys(n);return y.reduce(e,function(e,t){return s[o]&&s[o][t]&&Jl(t,r,i,o),a[t]||d.test(t)||u.test(t)||Jl(t,r,i),e[t]=n[t],e},{})}function Ql(n,i,e){i=i||{id:"unknown",guideId:"unknown"},n.props=ql(n.props,i.id,i.guideId,n.type);var t,r=R(document.createElement(n.type));if(document.createElement("div").appendChild(r[0]),"script"===r[0].tagName.toLowerCase())return R(document.createElement("noscript"));if("pendo-backdrop"===(n.props&&n.props.id))return i.attributes&&i.attributes.blockOutUI&&i.attributes.blockOutUI.enabled&&fl.attachScrollHandlers(i,al),sl(i);if(y.each(n.props,function(e,t){"style"===t?r.css(n.props.style):"data-pendo-code-block"!==t||!0!==e||m.get("preventCodeInjection")?r.attr(t,e):(t=i.getContent(),0!==gt.call(t).length&&r.addClass("pendo-code-block").html(t))}),n.content&&r.text(n.content),"style"===n.type&&(v.designer||(n.css=function(e){for(var t=["button:focus"],n=[],i=0;i<e.length;i++)y.contains(t,e[i].selector)||n.push(e[i]);return n}(n.css)),(t=m.get("inlineStyleNonce"))&&r.attr("nonce",t),r.styleSheet?r.styleSheet.cssText=ip(n.css):r.text(ip(n.css))),n.svgWidgetId&&zc.buildSvgNode(n.svgWidgetId,n).appendTo(r),n.actions&&n.actions.length)for(var o,a=0;a<n.actions.length;a++)np(r,n.actions[a],i),"renderGuidesListItem"===n.actions[a].action&&((o=Tu(n.actions[a].parameters[0]))?r.text(o.name):r.attr("style","display: none;"));if(y.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=Pa(Gu()),d=s!==document,u=0;u<n.children.length;u++){var c=Xl(n.children[u],i,e);y.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)):(R.addClass(e[0],"pendo-style-".concat(i.isBadge?i.guideId:i.id)),e.appendTo(document.head)))})}return r.hasClass("pendo-code-block")?r.find("img").each(function(e){ep(e,i)}):ep(r[0],i),r}function ep(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++,tp(R(e),t))}function tp(e,i){e.on("load",function(){var e,t={},t=(!i.containerId&&i.domJson&&(t=Pc(i.domJson)),i.containerId||t.props&&t.props.id||""),n=t&&R("#"+t,i.guideElement)[0];i&&i.attributes&&i.attributes.imgCount&&(i.attributes.imgCount--,n)&&i.attributes.imgCount<=0&&(Fl(t,i.guideElement),Pl(t,i.guideElement),g.flexAllThings(t,i.guideElement),e=i.getGuide(),y.get(e,"attributes.isAnnouncement")||"AnnouncementsModule"===y.get(e,"attributes.resourceCenter.moduleId")||(Ll(t,i.guideElement),(e=n.children.item("pendo-guide-container"))&&e.style&&"auto"===e.style.overflow&&(Pl(t,i.guideElement),g.flexAllThings(i.containerId,i.guideElement))),"tooltip"===i.attributes.calculatedType&&fl.positionStepForTooltip(i,i.domJson,n),n.style.visibility="visible",n.parentNode.style.visibility="visible",R.event.dispatch(n,{type:"imagesLoaded"}))}),e.on("error",function(){var e=R("#"+i.containerId,i.guideElement)[0];e?("tooltip"===i.attributes.calculatedType&&fl.positionStepForTooltip(i,i.domJson,e),e.style.visibility="visible",e.parentNode.style.visibility="visible",g.flexAllThings(i.containerId,i.guideElement)):I.info("Failed to find guideContainer for id: "+i.containerId)})}function np(n,i,r){n.on(i.eventType,function(e){var t;i.designerAction?v.designerv2&&v.designerv2.designerActions&&v.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 ip(n){for(var i="",r=0;r<n.length;r++)i+=n[r].selector+"{",n[r].styles instanceof Array?i+=ip(n[r].styles):y.each(n[r].styles,function(e,t){i+=t+":"+e,n[r].selector.match(/\d+%/)||(i+="!important;")}),i+="}";return i}function rp(t){y.each(document.head.childNodes,function(e){e&&R.hasClass(e,"pendo-style-".concat(t))&&Ca(e)})}var op=function(){var e=window.navigator;return((y.isArray(e.languages)?e.languages[0]:e.language||e.browserLanguage||e.systemLanguage||e.userLanguage)||"").split("-").join("_")},ap="meta",sp=y.compose(JSON.parse,JSON.stringify),dp=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()},up=function(e){(e=y.isObject(e=void 0===e?{}:e)?e:{}).jwt&&e.signingKeyName&&(t=js.getJwtOptions(e,"updateOptions"))&&(js.set(y.pick(e,"jwt","signingKeyName")),e=t),t=e,n=y.extend({},t.visitor),i=y.extend({},t.account),t=y.extend({},t.parentAccount),n.id===ai&&(I.info("Missing visitor id."),delete n.id),ni(i.id)&&ni(t.id)&&(ui(i.id)?t.id=i.id.split(di)[0]:i.id=""+t.id+di+i.id),ni(i.id)&&(i.id=""+i.id),ni(n.id)?n.id=""+n.id:n.id=E({generate:!0}),n.language=op(),e={visitor:sp(n),account:sp(i),parentAccount:sp(t),date:dp(),version:v.VERSION},A.getters["metadata/selfHosted"]()&&(e.selfHosted=!0);var t,n=y.clone(fp()),i=(m.setLocalConfig(y.extend({},m.getLocalConfig(),e)),A.commit("metadata/setMetadata",e),fp()),r=(ni(e.visitor.id)&&(v.identify(e.visitor.id,e.account.id),e.visitor.id=E(),e.account.id=mi()),Ct(e)),o=(void 0!==(o="object"==typeof(o=r)?Ct(o):o)&&o.toString&&(o=o.toString()),""+(y.isNumber($l)?$l:yi(ap))!==o);return $l=r,o&&vi(ap,r),{options:e,hashChanged:o,storeChanged:!y.isEqual(n,i)}},cp=wi(function(e){e=up(e);S.metadata.trigger(e)}),lp=wi(function(e,t){y.isObject(e)?cp(e):pi(e,t)}),pp=function(){var t,e=R("script");return e=e,t=new RegExp("/agent/static/"+v.apiKey+"/pendo\\.js$"),!y.any(e,function(e){return t.test(e.src)})&&"extension"!==Ge()},hp=function(){var e=m.get("blockAgentMetadata");return e!==undefined&&e};function fp(){return A.getters["metadata/metadata"]()}function gp(){return JSON.parse(JSON.stringify(fp()))}S.identify.on(function(e){var t=e.data[0],n=m.getLocalConfig()||{};Ii(e)?(oi([ap]),A.commit("metadata/reset",t)):(n.visitor=y.extend({},n.visitor,{id:t.visitor_id}),n.account=y.extend({},n.account,{id:t.account_id}),m.setLocalConfig(n),A.commit("metadata/setMetadata",n))});var mp={Launcher:{addBehavior:y.noop},Metadata:{getMetadata:fp},Util:{documentScrollTop:zo,documentScrollLeft:Zo,getOffsetPosition:wa},Events:S,JWT:{getJWT:js.get}};var vp,yp,bp,Ip,wp={},Cp=(yp=[],bp=[],Ip={},(vp=wp).tagExtension=function(e,t){e=vp.findExtensionByName(e);e.tags=[].concat(e.tags||[],t)},vp.findExtensionByTag=function(t){return y.find(bp,function(e){return y.contains(e.tags,t)})},vp.findExtensionByName=function(e){return y.findWhere(bp,{name:e})},vp.filterExtensionsByUse=function(t){return y.filter(bp,function(e){return e.use===t})},vp.findExtensionByNameAndProvider=function(t,n){return y.find(bp,function(e){e=e.data;return!!e&&e.name===t&&e.provider&&e.provider.name===n})},vp.registerExtensionsByUse=function(e,t,n){n=n?[].concat(n):[],Ip[e]={handler:t,validators:n}},vp.getExtensionFrames=function(){return y.reduce(bp,function(e,t){return t.frame&&t.frame[0]&&e.push(t.frame[0]),e},[])},function(e){e=[].concat(e),(e=y.filter(e,Sp)).length&&(yp=function n(e){if(!e.length)return e;var t=y.filter(e,Ap);if(t.length)return n(y.difference(e,t));return e}(yp.concat(e)))});function Sp(t){var e;return!!y.every(["name","version","use","type","uri"],y.partial(y.has,t))&&(e=t.use,e=Ip[e]?Ip[e].validators:[],y.every(y.map(e,function(e){return e(t)})))}function Ap(e){var t;return"behavior"===e.use?!!e.uri(vp,mp)&&(bp.push(e),!0):(t=e.use,!!(t=Ip[t]?Ip[t].handler||y.identity:null)&&((e=t(e))&&bp.push(e),!!e))}var O,Ep,Tp,_p,xp,Rp,N={initializeResourceCenter:function(r){if(!(O=Op(r)))return C.resolve();if(A.getters["frames/isShownInAnotherFrame"]()(O.steps[0]))return C.resolve();if(N.isFullyCustom(O))return O.hasResourceCenterContent=!0,C.resolve();var e=Np(O,r),t=y.reduce(e,function(e,t){return kp(t)?e.concat(t.steps[0].fetchContent()):e},[]);return t.push(hc.validate(O).then(y.noop,function(){O.launchMethod="api"})),O.attributes.notifications={totalUnseenCount:0,individualCounts:{chat:0}},y.forEach(Dp(),function(e){var t=wp.findExtensionByNameAndProvider("chat",e),t=(t&&Up(e,t),wp.findExtensionByNameAndProvider("helpcenter",e));t&&Up(e,t)}),y.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=Pp(e.integrationName,e.integrationProvider),t.hasResourceCenterContent=!!t.integrationConfig,t.integrationConfig)&&"chat"===t.integrationConfig.name&&Gp(e.integrationName,e.integrationProvider),y.reduce(n,function(e,t){var n=y.find(r,function(e){return e.id===t});return n?e.concat(n):e},[]));"AnnouncementsModule"===i&&(O.attributes.notifications.individualCounts[t.id]=0,y.forEach(e,function(e){fh(e)||e.isControlGroup()||O.attributes.notifications.individualCounts[t.id]++}));-1<y.indexOf(["GuideListModule","OnboardingModule","AnnouncementsModule"],i)&&y.filter(e,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):!(e.ineligibleForRC=!0)}).length&&(t.hasResourceCenterContent=!0),t.guidesInModule=e}),O.modules=e,O.badgeHidden=!0,C.all(t)["catch"](function(){return O=null,I.error("Failed to load one or more Resource Center modules"),C.resolve()})},findResourceCenterHomeView:Op,findResourceCenterModules:Np,replaceResourceCenterContent:Mp,renderResourceCenterModule:function(e,t){Mp(e.id,undefined,!0,t)},showHomeViewOrEmptyState:function(e){R("#pendo-resource-center-container._pendo-guide-walkthrough_").remove(),delete e.activeModule,e.hasResourceCenterContent&&e.skipResourceCenterHomeView?N.replaceResourceCenterContent(e.moduleIdToReplaceHomeViewWith,[{value:"none"},{value:"left"}]):e.showEmptyState&&(N.showResourceCenterEmptyState(),y.each(e.controlGuidesInAllModules,function(e){e.hasGuideBeenControlled()||e.steps[0].onControlGuide("control")}))},showResourceCenterEmptyState:function(){var e=R("#pendo-resource-center-empty-state-container");e&&e.length&&R(e[0]).css({display:"block"})},launchIntegrationByNameAndProvider:function(e,t,n){var e=wp.findExtensionByNameAndProvider(e,t);return e?(n=R(n))?((e=e.getFrame()).appendTo(n),void e.css({display:"block"})):I.info("could not find target element for "+t+" integration"):I.info(t+" integration has not been loaded into the agent")},appendIntegrationToBodyByNameAndProvider:Gp,attemptToPreserveIntegrationIframes:function(e){e.step&&(e=e.step.getGuide()).attributes&&e.attributes.resourceCenter&&(e=N.getResourceCenterContainer())&&(e=R(e).find('iframe[id^="_pendo-launcher-ext-frame-chat"]'))&&e.length&&e.each(function(e){e=R(e);e.css({display:"none"}),e.appendTo(Gu())})},getResourceCenter:Kp,getResourceCenterContainer:Xp,getResourceCenterBadge:Jp,addNotificationBubbleToResourceCenterBadge:ah,addNotificationBubbleToTargetElement:sh,updateNotificationBubbles:function(){var e=O,t=y.get(e,"attributes.notifications");if(t){var n=th(t.individualCounts);if(n<=0)n!==t.totalUnseenCount&&ph(),t.totalUnseenCount=n;else{nh();var i=n!==t.totalUnseenCount;if(i||!Qp(_p)){if("badge"===e.launchMethod){i=Jp();if(!i)return;ah(i.element(),e.attributes.notificationBubble,n)}if("dom"===e.launchMethod&&y.get(e,"attributes.activation.selector")){i=R(e.attributes.activation.selector);if(!i.length)return;sh(i[0],e.attributes.notificationBubble,n),to(window,"resize",y.debounce(eh,50))}t.totalUnseenCount=n}}}},removeNotificationBubble:ph,updateNotificationBubbleCount:hh,updateNotificationBubbleOnHomeView:ih,updateOrCreateNotificationBubble:dh,hexToRgb:qp,doesIntegrationExist:Pp,calculateTotalNotificationCount:th,updateNotificationBubblesOnHomeView:nh,createNotification:ch,appendNotificationBubble:lh,hasAnnouncementBeenSeen:fh,clearAnnouncementUnseenInterval:Lp,createAnnouncementUnseenInterval:Fp,findShownResourceCenterModule:function(){var e=N.getResourceCenterContainer();if(e){e=R(e).find('[id^="pendo-g-"]');if(e){var t=e.attr("data-pendo-guide-id"),e=y.find(Iu(),function(e){return e.id===t});if(y.get(e,"attributes.resourceCenter.isModule",!1))return e}}},dismissResourceCenter:gh,repositionResourceCenter:function(){var e=N.getResourceCenterContainer();{var t,n,i;e&&(i=N.findResourceCenterHomeView(Iu()).steps[0],t=y.get(i,"domJson.props.style.height"),t=parseInt(t,10),t=isNaN(t)?0:t,n=parseInt(y.get(i,"domJson.props.style.bottom",0),10),i=parseInt(y.get(i,"domJson.props.style.top",0),10),n=isNaN(n)?0:n,i=isNaN(i)?0:i,(n=ya().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")}Nl(R(e))},repositionDoubleResourceCenterBadge:function(){var e,t,n;A.getters["frames/isLeader"]()&&1<(e=y.unique(y.compact([].concat(y.toArray(R("._pendo-resource-center-badge-container"))).concat(y.toArray(R("._pendo-resource-center-badge-container")))))).length&&function(e){var t=xa(e[0]),e=xa(e[1]);return Ra(t,e)}(e)&&(t=wa(e[0]).width+5,n=wa(e[1]).left-t<0?"":"-",e[1].style.transform="translateX("+n+t+"px)")},resourceCenterIgnoreRtl:function(){return y.get(this.getResourceCenterBadge(),"ignoreRTL",!1)},adjustResourceCenterWidth:function(e){var t=Xp();if(t){o=ya().width,r=R(t),e=R(e),r.css({"max-width":"none"}),e.css({"max-width":"none"}),i=parseInt(f(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=R('button[id^="pendo-a11y-list-item-button-block"]');if(n&&n.length)for(var i=R(t.find("ol._pendo-text-list-ordered"))[0],r=0,o=0,i=(i&&(i=f(i),o=parseInt(i.paddingLeft,10),r=parseInt(i.paddingRight,10)),R('[id^="pendo-onboarding-guide-progress-circle"]')[0]),e=0,a=0,s=0,d=(i&&(i=f(i),e=parseInt(i.width,10),a=parseInt(i.marginRight,10),s=parseInt(i.marginLeft,10)),o+r+e+s+a),u=parseInt(f(t[0]).width,10),c=0;c<n.length;c++){var l=n[c],p=R(l),l=(p.css({"max-width":"none"}),f(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:Up,renderNativeIntegration:Yp,isSupportedNativeIntegration:Bp,handleNativeIntegrationContinuation:Hp,isProviderInstalled:Wp,adjustNotificationBubbleForResize:eh,getNotificationBubbleDefaultCss:uh,getModuleId:mh,isIframeModule:function(e){return"IframeModule"===mh(e)&&e.hasResourceCenterContent},isSandboxModule:function(e){return"SandboxModule"===mh(e)&&e.hasResourceCenterContent},isIntegrationModule:function(e){return"IntegrationModule"===mh(e)&&e.hasResourceCenterContent},isFullyCustom:function(e){return"FullyCustomModule"===mh(e)},integrationModuleHasContent:function(e){e=e.attributes.resourceCenter;return!N.isSupportedNativeIntegration(e.integrationProvider)||N.isProviderInstalled(e.integrationProvider)},fetchAnnouncementGuidesContent:function(e,t){var n=Op(e);if(!n)return C.resolve();if(t.getters["frames/isShownInAnotherFrame"]()(n.steps[0]))return C.resolve();if(N.isFullyCustom(n))return C.resolve();var t=Np(n,e),i=[],r=y.indexBy(e,"id");return y.each(t,function(e){var e=e.attributes.resourceCenter;"AnnouncementsModule"===e.moduleId&&(e=e.children,e=y.reduce(e,function(e,t){t=r[t];return t?e.concat(t):e},[]),y.each(e,function(e){kp(e)&&i.push(e.steps[0].fetchContent(!0))}))}),C.all(i)},setFocusForResourceCenterModule:function(e,t){var n;"HomeViewModule"===e[0].getAttribute("data-layout")?t&&(e=R('[data-pendo-module-guide-id="'+t+'"]'),n=e.find('button[id^="pendo-right-caret-"]')[0]):(t=R('[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"===y.get(t,"data-localization-direction",!1),e=y.get(e,"attributes.badge.ignoreRTL",!1);n&&e&&!t["data-direction-changed"]&&(n=y.get(t,"style.left",!1),e=y.get(t,"style.right",!1),n)&&e&&(t.style.left=e,t.style.right=n,t["data-direction-changed"]=!0)},stashBadgeAriaLabel:rh,resetBadgeAriaLabel:function(){var e=N.getResourceCenterBadge();{var t;e&&(e=e.element(),t=e.getAttribute("data-pendo-stashed-aria-label"))&&e.setAttribute("aria-label",t)}},getNotificationBubbleAriaLabelAttribute:oh,updatePseudoStyleSelectors:vh,hideRCBadge:yh};function kp(e){return e.steps&&e.steps.length&&y.isFunction(e.steps[0].fetchContent)}function Op(e){var e=y.filter(e,function(e){return y.get(e,"attributes.resourceCenter.isTopLevel")&&!e.isFrameProxy}),t=y.find(e,function(e){return"staged"===e.state});return t||e[0]}function Np(t,e){return y.filter(e,function(e){return e&&!e.isFrameProxy&&y.get(e,"attributes.resourceCenter.isModule",!1)&&e.state===t.state})}function Mp(t,e,n,i){if(void 0===i&&(i=!0),!Tp){var r="left 200ms",o="left",e=(e&&2<=e.length&&(r=e[0].value,o=e[1].value),Xp());if(e){var a=R(e).find('[id^="pendo-g-"]')[0];if(a){var s,d=a.getAttribute("data-pendo-guide-id"),u=y.find(Iu(),function(e){return e.id===t}),c=(t!==O.id?(rp(y.get(O.activeModule||O,"steps.0.id")),O.activeModule=u):(s=O.activeModule,rp(y.get(s,"steps.0.id")),delete O.activeModule),y.get(u,"attributes.resourceCenter.integrationProvider")),l=(Bp(c)&&Yp(c),u.steps[0]),c=vh(l.domJson),c=(c.props["data-pendo-guide-id"]=u.id,Ql(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&&(R(a).remove(),s)&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),R(e).find('[id^="pendo-end-focus-bumper-"]')[0]);if(r?R(p).insertBefore(r):R(p).appendTo(e),l.guideElement=R(e),l.elements.push(l.guideElement[0]),N.adjustResourceCenterWidth(p),"AnnouncementsModule"===mh(u)&&l.guide.guidesInModule?(Pl(r=y.reduce(l.guide.guidesInModule,function(e,t){var n;return y.isUndefined(t.steps[0].attributes.imgCount)&&(n=t.steps[0].id,n=R(p).find("#pendo-g-"+n)[0]?n:t.id,e.push("pendo-g-"+n)),e},[]),l.guideElement),y.each(r,function(e){g.flexAllThings(e,l.guideElement)})):g.flexAllThings("pendo-resource-center-container"),Nl(R(e)),p.style.left="0px",!n){Tp=!0;try{"left"===o?a.style.left=-1*e.offsetWidth+"px":"right"===o&&(a.style.left=e.offsetWidth+"px"),Dt(function(){R(a).remove(),s&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),Tp=!1},200)}catch(h){throw Tp=!1,h}}return"AnnouncementsModule"===mh(u)&&(Fp(),r=Bc.getGuidesInResourceCenterModule(u,Iu()),(n=y.reduce(r,function(e,t){return t.steps&&t.steps.length&&Ac.hasContent(t.steps[0])||e.push(t.fetchContent()),e},[])).length)&&((o=function(){var i,e,t;if(y.isFunction(document.createElementNS))return i="http://www.w3.org/2000/svg",e=function(e,t){var n=R(document.createElementNS(i,"circle")).attr({cx:e,cy:t,fill:"#9a9ca5",r:5});return y.each(y.toArray(arguments).slice(2),function(e){n.append(e)}),n},t=function(e){return R(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=R(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"))),R(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),C.all(n).then(function(){var e=C.defer();return Dt(e.resolve,500),e.promise}).then(function(){O.activeModule===u&&N.renderResourceCenterModule(u,i)})),N.setFocusForResourceCenterModule(c,d),i&&l.onShown("launcher"),c}}}}function Lp(){window.clearInterval(Ep),Ep=null}function Fp(){Ep=Ep||window.setInterval(function(){var e=Xp();if(!e)return Lp();e=R(e).find('[data-layout="AnnouncementsModule"]');if(!e.length)return Lp();var t=R(e).find('ol[id^="pendo-list"]');if(!t.length)return Lp();var n=xa(t[0]),i=R(t).find("li");if(!i.length)return Lp();for(var r=e.attr("data-pendo-guide-id"),o=O.attributes.notifications.individualCounts[r],a=n.height/3,s=xa(i[i.length-1]).bottom-30<n.top+n.height,d=0;d<i.length;d++){var u=R(i[d]),c=u.hasClass("pendo-unseen-announcement"),l=u.attr("data-pendo-announcement-send-seen-event");if(c||l){if(xa(i[d]).top-n.top>n.height-a&&!s)break;var p=u.attr("data-pendo-announcement-guide-id"),l=y.find(Iu(),function(e){return e.id===p});if(!l)break;c&&(u.removeClass("pendo-unseen-announcement"),c=u.find(".pendo-unread-announcement-mini-bubble"),We(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"),fh(l)||o--,hh(o,r)),l.steps[0].seenState="advanced",Om(l.id,l.steps[0].id,E(),"whatsnew",l.language,{last_updated_at:l.steps[0].lastUpdatedAt}),u[0].removeAttribute("data-pendo-announcement-send-seen-event"),Mm(l.id,l.steps[0].id,E(),"advanced",l.language)}}},500)}function Pp(e,t){return wp.findExtensionByNameAndProvider(e,t)}function Gp(e,t){e=wp.findExtensionByNameAndProvider(e,t);if(!e)return I.info(t+" integration has not been loaded into the agent");Bp(t)&&Wp(t)?O.hasEligibleNativeIntegrationModule=!0:(_a((t=e.getFrame())[0])||t.appendTo(Gu()),t.css({display:"none"}))}function Dp(){return["drift-native-chat","intercom-chat","zendesk-chat","zendesk-native-kb","zendesk-messaging"]}function Bp(e){return!!e&&0<=Dp().indexOf(e)}function Wp(e){return!!e&&null!==(e=$p(e))&&y.isFunction(window[e])}function $p(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 Up(e,t){var n,i,r;e&&(Wp(e)?jp(e,t):(e=e,t=t,"function"==typeof Object.defineProperty&&null!==(i=$p(e))&&(xp&&xp[i]?xp[i][e]||(xp[i][e]={installed:!1,integrationObj:t}):((xp=xp||{})[i]=((n={})[e]={installed:!1,integrationObj:t},n),Object.defineProperty(window,i,{get:function(){return r},set:function(e){r=e,y.forEach(xp[i],function(e,t){var n=e.integrationObj;!e.installed&&Wp(t)&&(e.installed=!0,jp(t,n),Gp(n.name,t),y.forEach(O.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 jp(e,t){switch(e){case"zendesk-chat":case"zendesk-native-kb":var n=(i=t).data.provider.name,i=Zp(i);zp(n,"webWidget","hide"),zp(n,"webWidget","updateSettings",{webWidget:{navigation:{popoutButton:{enabled:!1}},position:{vertical:i?i[0]:"bottom",horizontal:i?i[1]:"right"}}}),zp(n,"webWidget:on","close",function(){zp(n,"webWidget","hide"),Vp()}),O.isInProgress()&&Hp(O.activeModule),zp(n,"webWidget:on","chat:unreadMessages",function(e){hh(e,"chat")});break;case"zendesk-messaging":i=t;zp(i=i.data.provider.name,"messenger","hide"),zp(i,"messenger:on","close",function(){Vp()}),zp(i,"messenger:on","unreadMessages",function(e){hh(e,"chat")});break;case"intercom-chat":var r=t;r=Zp(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(){Vp()});break;case"drift-native-chat":window.drift.on("ready",function(e){window.drift.hide();var t=fp();window.drift.identify(t.visitor.id,function o(e){var t={};for(var n in e)if("object"!=typeof e[n]||Array.isArray(e[n]))t[n]=e[n];else{var i,r=o(e[n]);for(i in r)r[i]&&(t[n+"."+i]=r[i])}return t}(t)),window.drift.on("message",function(e){if(!O.isNativeModuleActive)return hh(1,"chat")})}),window.drift.on("chatClose",function(e){hh(0,"chat"),window.drift.hide(),Vp()})}}function zp(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];try{Rp&&Rp[e]||window.zE.apply(null,n)}catch(r){Rp?Rp[e]=!0:((t={})[e]=!0,Rp=t)}}function Zp(e){e=y.get(e,"data.options.labels.position");return e=e&&e.split("-")}function Vp(){gh(O.activeModule),delete O.activeModule,O.continueToNativeModule=!1}function Yp(e,t){if(e){var n=fp();if(O.isShown()&&O.hide(),Rp&&Rp[e])I.info(e+" integration failed to communicate with API, closing"),N.replaceResourceCenterContent(O.id,undefined,!0),Vp();else{var i=Jp();switch(i&&yh(i,O),e){case"zendesk-messaging":zp(e,"messenger","show"),zp(e,"messenger","open");break;case"zendesk-native-kb":zp(e,"webWidget","updateSettings",{webWidget:{helpCenter:{suppress:!1},chat:{suppress:!0}}}),zp(e,"webWidget","show"),zp(e,"webWidget","open");break;case"zendesk-chat":zp(e,"webWidget","updateSettings",{webWidget:{chat:{suppress:!1},helpCenter:{suppress:!0}}}),window.$zopim.livechat.window.show(),n&&n.visitor&&n.visitor.email&&zp(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})}hh(0,"chat"),!O.activeModule&&t&&(O.activeModule=t).steps[0].onShown("launcher")}}}function Hp(e){e&&!e.isTopLevel&&(Yp(y.get(e,"attributes.resourceCenter.integrationProvider")),O.activeModule||(O.activeModule=e),e.steps[0].onShown("continue"),e.attributes.doNotResume=!0)}function Kp(){return O}function Xp(){return y.get(O,"steps.0.guideElement.0")}function Jp(){if(O&&O.id)return vu[O.id]}function qp(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 Qp(e){return e&&y.all(e,function(e){return _a(e&&e.length?e[0]:e)})}function eh(){var e,t=N.getResourceCenter(),n=y.get(t,"attributes.notifications");n&&(n=N.calculateTotalNotificationCount(n.individualCounts),"dom"===t.launchMethod)&&y.get(t,"attributes.activation.selector")&&(e=R(t.attributes.activation.selector)).length&&N.addNotificationBubbleToTargetElement(e[0],t.attributes.notificationBubble,n)}function th(e){return y.reduce(e,function(e,t){return e+t},0)}function nh(){var e,t=O;t&&(t=y.get(t,"attributes.notifications"))&&(e=Xp())&&R(e).find("._pendo-resource-center-home-list").length&&y.each(t.individualCounts,function(e,t){ih(e,t)})}function ih(e,t){var n=N.getResourceCenterContainer();n&&(n=R(n).find('[data-pendo-notification-id="'+t+'"]')).length&&(t=R(n[0]).find("._pendo-home-view-bubble"),n=R(t[0].children[0]),e!==parseInt(n.text(),10))&&(0<e?(n.text(e),R(t[0]).css({display:"block","margin-right":"0"})):(n.text(""),R(t[0]).css({display:"none"})))}function rh(e){var t;e.getAttribute("data-pendo-stashed-aria-label")||(t=e.getAttribute("aria-label"),e.setAttribute("data-pendo-stashed-aria-label",t))}function oh(e){return 1!==e?"data-pendo-aria-label-alert-plural":"data-pendo-aria-label-alert-singular"}function ah(e,t,n){var i=oh(n),i=e.getAttribute(i),i=(i&&(rh(e),i=i.replace("{UNSEEN_COUNT}",n),e.setAttribute("aria-label",i)),y.get(t,"position","top-left")),r=f(e),r=(parseInt(r.width,10)||56)/2,o=r/Math.sqrt(2),r=Math.round(r-o)-10,a=r-10,o=Math.round(2*o),r={"top-left":{top:r+"px",left:a+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"top-right":{top:r+"px",left:a+o+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-left":{top:r+o,left:a+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-right":{top:r+o,left:a+o+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"}},a=e.attributes["data-localization-direction"]||!1,o=N.resourceCenterIgnoreRtl();dh(e,t,n,r[i=a&&!o?{"top-left":"top-right","top-right":"top-left","bottom-left":"bottom-right","bottom-right":"bottom-left"}[i]:i])}function sh(e,t,n){var i=Xo(e,e),r=Xo(e,Ea());dh(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 dh(e,t,n,i,r){var o,a;Qp(_p)?(a=(o=uh(t)).defaultBubbleCss,o=o.defaultUnseenCountCss,a=y.extend(a,i),o=y.extend(o,r),_p.bubbleEle.css(a),_p.unseenCountEle.css(o),_p.unseenCountEle.text()!=""+n&&_p.unseenCountEle.text(n)):(a=R(e).find(".pendo-resource-center-badge-notification-bubble")).length?a[0].getElementsByClassName("pendo-notification-bubble-unread-count")[0].textContent=n:n&&lh(_p=ch(t,n,i,r),e)}function uh(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 ch(e,t,n,i){var r,o=uh(e),a=o.defaultBubbleCss,o=o.defaultUnseenCountCss,s=(t=t||0,R(document.createElement("div")).addClass("pendo-resource-center-badge-notification-bubble")),d=R(document.createElement("div")).addClass("pendo-notification-bubble-unread-count"),a=y.extend(a,n),n=y.extend(o,i);return s.css(a),d.css(n),We(10)||Kl()||(r=R(document.createElement("style")).attr("id","pendo-resource-center-bubble-animation"),i="@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6) } } "+('.pendo-resource-center-badge-notification-bubble::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: '+("rgb("+(o=qp(e["background-color"])).r+", "+o.g+", "+o.b+")")+"; border-radius: 100%; z-index: -1; animation: pulse 2s infinite; will-change: transform; }"),r.styleSheet?r.styleSheet.cssText=i:r[0].innerHTML=i),d.text(t),{bubbleEle:s,unseenCountEle:d,styleEle:r}}function lh(e,t){e.styleEle&&e.styleEle.appendTo(t),e.unseenCountEle.appendTo(e.bubbleEle),e.bubbleEle.appendTo(t)}function ph(){var n=_p?_p.bubbleEle:R(".pendo-resource-center-badge-notification-bubble"),i=_p?_p.styleEle:R("#pendo-resource-center-bubble-animation");n&&y.each(n,function(e,t){n[t]&&(t=n[t])&&t.parentNode&&t.parentNode.removeChild(t)}),i&&y.each(i,function(e,t){i[t]&&(t=i[t])&&t.parentNode&&t.parentNode.removeChild(t)}),_p=null,N.resetBadgeAriaLabel()}function hh(e,t){var n=O;n&&(n=y.get(n,"attributes.notifications"))&&n.individualCounts[t]!==e&&(n.individualCounts[t]=e,N.updateNotificationBubbles())}function fh(e){return!(!y.isFunction(e.hasBeenSeen)||!e.hasBeenSeen())||"active"===e.steps[0].seenState}function gh(e){var t=y.get(e,"attributes.resourceCenter.isModule",!1)?e:N.findShownResourceCenterModule();t&&(t=y.first(t.steps),pm(t));t=(y.get(e,"attributes.resourceCenter.isTopLevel",!1)?e:N.findResourceCenterHomeView(Iu())).steps[0];return pm(t)}function mh(e){return y.get(e,"attributes.resourceCenter.moduleId")}function vh(e){var t=["pendo-a11y-list-item-button-block","pendo-link-","pendo-right-caret-","pendo-row-","pendo-text-"].join("|"),n=new RegExp("#((".concat(t,")[^:]*)")),t=function i(e,t){var n=[];return t(e)&&n.push(e),e.children?n.concat.apply(n,y.map(e.children,function(e){return i(e,t)})):n}(e,function(e){return e.css&&e.css.length});return y.forEach(t,function(e){y.forEach(e.css,function(e){e.selector=e.selector.replace(n,"[id^='$1']")})}),e}function yh(e,t){e.hide(),t&&t.id&&(t.steps&&t.steps.length&&(t.steps[0].overrideElement=undefined),delete vu[t.id])}var bh=1e4,Ih="lastStepAdvanced";function wh(e){A.dispatch("guideState/updateLastGuideStepSeen",e),A.dispatch("guideState/write"),A.dispatch("frames/changeLastGuideStepSeen",e)}function Ch(){A.dispatch("guideState/regainFocus")}function Sh(){return A.state.guideState.lastGuideStepSeen}var rr={actions:{init:function(e){e.getters.storage().registry.addLocal(Ih),e.commit("setScopedStorageKey",dn(e.state.storageKey)),S.identify.on(function(e){Ii(e)&&oi([Ih])})},load:function(t,e){if(e){var n;try{n=JSON.parse(e)}catch(i){}n&&y.each([].concat(n),function(e){t.commit("setStepState",e)})}},forceExpire:function(n){y.each(n.state.steps,function(e,t){n.commit("expireStepState",t)})},expire:function(n){var i=n.getters.now();y.each(n.state.steps,function(e,t){i-e.time>n.state.ttl&&n.commit("expireStepState",t)})},apply:function(o){var a,s=y.indexBy(o.getters.guideList(),"id");o.dispatch("expire"),y.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=y.findWhere(i.steps,{id:r}))&&(n=o.state.storageKey,t.seenState!=e.state&&(I.info("making sure that seenState = '"+e.state+"' for "+n+": "+r),t.seenState=e.state),t.snoozeEndTime!=e.snoozeEndTime&&(I.info("making sure that snoozeEndTime = '"+e.snoozeEndTime+"' for "+n+": "+r),t.snoozeEndTime=e.snoozeEndTime),t.seenReason!=e.seenReason&&(I.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),I.info("making sure that dismissCount = '"+t.dismissCount+"' for "+n+": "+r)),e=y.indexOf(i.steps,t),y.each(i.steps.slice(0,e),function(e){y.contains(["advanced","dismissed"],e.seenState)||(e.seenState="advanced")})))}),a&&o.dispatch("updateLastGuideStepSeen",y.extend({},o.state.lastGuideStepSeen,a))},receiveLastGuideStepSeen:function(e,t){e.commit("setReceivedLastGuideStepSeen",t),e.commit("setLastGuideStepSeen",t)},updateLastGuideStepSeen:function(e,t){var n;t.visitorId&&t.visitorId!==e.getters.visitorId()||(n=y.some(e.getters.guideList(),function(e){return e.id===t.guideId}),t.guideStepId&&e.commit("setStepState",t),n&&(e.commit("setLastGuideStepSeen",t),v.lastGuideStepSeen=t))},updateThrottlingState:function(e,t){e.commit("setThrottlingState",t)},write:function(e){e.dispatch("expire");var t=e.rootState.frames.tabId,n=e.state.storageKey,i=e.getters.cookieSuffix(),r=e.state.ttl,o=e.getters.storage(),a=JSON.stringify(y.map(e.state.steps,function(e){return y.extend({tabId:t},e)}));I.info("writing "+a+" to a cookie named "+n+" for "+r+" and cookieSuffix "+i),o.write(n,a,r,!1,!1,i),e.dispatch("preview/update",e.state.lastGuideStepSeen,{root:!0})},storageChanged:function(e,t){if(t.key===e.state.scopedStorageKey){try{var n=e.getters.storage(),i=e.getters.cookieSuffix(),r=n.read(e.state.storageKey,!1,i),o=[].concat(JSON.parse(r))}catch(a){}e.getters.storageChangedInOtherTab()(o)&&(Fh(),e.dispatch("load",r),e.dispatch("apply"),e.state.receivedStateChangeAt||e.commit("setReceivedStateChange",e.getters.now()))}},regainFocus:function(e){var t=e.getters.tabLostFocus(),n=e.getters.isGuideRequestStale();t&&(e.commit("setReceivedStateChange",null),n||(Ph(),Gh())),n&&Pv()}},mutations:{expireStepState:function(e,t){e.expired[t]=e.steps[t],delete e.steps[t]},setStepState:function(e,t){e.steps[t.guideStepId]=t},setScopedStorageKey:function(e,t){e.scopedStorageKey=t},setLastGuideStepSeen:function(e,t){e.lastGuideStepSeen=t},setReceivedLastGuideStepSeen:function(e,t){e.receivedLastGuideStepSeen=t},setReceivedStateChange:function(e,t){e.receivedStateChangeAt=t},setLastGuideRequestAt:function(e,t){e.lastGuideRequestAt=t},setThrottlingState:function(e,t){e[t.name]=t.value}},state:{steps:{},expired:{},ttl:bh,storageKey:Ih,guideRequestExpiration:36e5,scopedStorageKey:null,receivedStateChangeAt:null,receivedLastGuideStepSeen:null,lastGuideStepSeen:null,lastGuideRequestAt:null,latestDismissedAutoAt:null,latestSnoozedAutoAt:null,finalAdvancedAutoAt:null},getters:{now:b,storage:function(){return w},guideList:function(){return k},tabLostFocus:function(e){return!!e.receivedStateChangeAt},isGuideRequestStale:function(e,t){return null!=e.lastGuideRequestAt&&t.now()-e.lastGuideRequestAt>e.guideRequestExpiration},storageChangedInOtherTab:function(n,e,i){return function(e){var t=y.get(i,"frames.tabId");return!!e&&!!((e=y.max(y.compact(e),"time"))&&e.tabId&&t&&e.tabId!==t)&&(!n.lastGuideStepSeen||!n.lastGuideStepSeen.time||e.time>n.lastGuideStepSeen.time)}},cookieSuffix:function(){return m.get("crossAppGuideStorageSuffix")},visitorId:function(){return E()}}},Ah={canDisplay:function(e,t,n){if(n&&n.enabled&&y.isFinite(t)){t=_h(t,n);if(y.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=m.get("appAutoOrdering")||[].concat(m.get("leaderKey"));{var i;n.length&&(i=A.getters["frames/autoOrdering"](),n=y.reduce(n,function(e,t){return e.concat(i[t]||[])},[]),t=y.uniq(n.concat(t)))}var r,o,n=function(e){e=y.defaults(y.groupBy(e,function(e){return Th(e)?"override":"auto"}),{override:[],auto:[]});return e.override.concat(e.auto)}(function(e,t){var n;return y.isArray(t)&&t.length?(n=y.indexBy(e,"id"),t=y.reduce(t,i,[]),y.chain(e).pluck("id").reduce(i,t).value()):e;function i(e,t){return n[t]&&(e.push(n[t]),delete n[t]),e}}(y.filter(e,Eh),t));return y.find(e,function(e){return e.isTraining})?(t=m.get("adoptPrioritizeAdoptGuides"),e=t,r=[],o=[],y.each(n,function(e){(e.isTraining?r:o).push(e)}),e?r.concat(o):o.concat(r)):n},tryDisplayGuide:function(e,t){var n=Ah.lastDismissedTime(t),n=Ah.canDisplay(b(),n,t.throttling);if((Th(e)||n)&&e.shouldAutoDisplay())return e.autoDisplay()},getNextAutoDisplayTime:_h};function Eh(e){return e&&/auto/.test(e.launchMethod)}function Th(e){return(t=e).attributes&&t.attributes.overrideAutoThrottling||y.isFunction(e.shouldShowSnoozedGuide)&&e.shouldShowSnoozedGuide();var t}function _h(e,t){var n=t.interval,t=(t.unit||"").toLowerCase();return y.isNumber(n)&&xt(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:y.isNumber(n)?(new Date).getTime():void 0}function xh(t){return S.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+"?"+Mo(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 y.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=xo(e).substring(1),t=No(t),n=e.indexOf("#");return!t.pendo&&0<=n&&(n=xo(e.substring(n+1)).substring(1),y.extend(t,No(n))),t}}var Rh=y.memoize(function(){return xh(Tu)});function kh(e,t){var e=y.find(e,function(e){return e.isContinuation(t)}),n=e&&e.attributes&&e.attributes.doNotResume;if(e&&!n)return e}Oh.prototype.markDirty=function(){var e;zu()&&(this.queue.push("permalink","continuation"),(e=this.queue).push.apply(e,Ah.sortAndFilter(k,v.autoOrdering)))},Oh.prototype.process=function(e){if(Jg())this.cancel();else{var t=this.queue.shift();if("permalink"===t)return Rh().tryDisplay(v);if("continuation"===t){var n=kh(k,Sh());if(n)return e.saveContext(n),n.show("continue")}else if(t){if(!kh(k,Sh()))return e.saveContext(t),Ah.tryDisplayGuide(t,v);this.cancel()}}},Oh.prototype.handleProcessTimeExceeded=function(e){e=e.getContext();e&&I.warn("Auto display ("+e.id+") timeout exceeded")},Oh.prototype.cancel=function(){this.queue.length=0},Oh.prototype.isComplete=function(){return!this.queue.length};lr=Oh;function Oh(){this.name="autoDisplay",this.queue=[]}var Nh=null,Mh=500,Lh=function(e){Nh=y.delay(function(){Nh=null,Gh()},e=e||Mh),v.guidesProcessingThreadHandle=Nh},Fh=function(){Nh&&(clearTimeout(Nh),Nh=null,v.guidesProcessingThreadHandle=Nh),A.dispatch("guideUpdate/stopScheduledUpdate")},Ph=function(){nm(),Kh.cancel();for(var e=0;e<mu.length;e++){var t=mu[e];t.parentNode.removeChild(t)}mu.length=0,A.dispatch("guideUpdate/stopObserver"),S.guideLoopStopped.trigger()},Gh=function(){if(Fh(),Fv.pending||Hm&&v.id&&v.id!==Hm.id)I.info("guides are loading.",{contexts:["guides","loading"]});else if(Av())I.info("guides are disabled.",{contexts:["guides","disabled"]});else if(Ev())I.info("guides are delayed.",{contexts:["guides","delayed"]});else if(!A.getters["guideState/tabLostFocus"]())try{var e=Ru();e&&0!==e.length&&(A.dispatch("guideUpdate/startObserverIfNeeded"),Kh.isComplete()&&Kh.markDirty(),A.getters["frames/leaderExists"]())&&Kh.process()}catch(t){Kh.cancel(),I.critical("ERROR in guide-loop",{error:t})}finally{Kh.paused||(Kh.isComplete()?(A.state.guideUpdate.useObserver&&!A.state.guideUpdate.needsUpdate||Lh(),S.guideUpdateComplete.trigger()):Lh(50))}};var Dh=function(){var e=m.getLocalConfig();m.get("delayGuides")&&(delete e.delayGuides,m.setLocalConfig(e)),m.get("guides.delay")&&(delete e.guides.delay,m.setLocalConfig(e)),Gh()},Bh=function(){Av()||_v(!0),Ph(),Km()},Wh=($h.prototype.markDirty=function(){this.dirty=!0},$h.prototype.process=function(){this.processFn(),this.dirty=!1},$h.prototype.cancel=function(){this.dirty=!1},$h.prototype.isComplete=function(){return!this.dirty},$h);function $h(e,t){this.dirty=!1,this.name=e,this.processFn=y.isFunction(t)?t:y.noop}Uh.prototype.markDirty=function(){this.queue.push.apply(this.queue,y.filter(wu(k),Nu))},Uh.prototype.process=function(e){var t=this.queue.shift();e.saveContext(t),t&&t.placeBadge()},Uh.prototype.handleProcessTimeExceeded=function(e){e=e.getContext();I.warn("Badge ("+e.id+") timeout exceeded")},Uh.prototype.cancel=function(){this.queue.length=0},Uh.prototype.isComplete=function(){return!this.queue.length};e=Uh;function Uh(){this.name="badge",this.queue=[]}function jh(i,e){var r,o,t,n,a;N.isFullyCustom(i)||(r=!1,o=[],t=y.filter(i.modules,function(e){var t,n;return!!e&&(!!N.isIframeModule(e)||!!N.isSandboxModule(e)||(N.isIntegrationModule(e)?!!N.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1):(t=(n=y.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=Ct(y.map(n,function(e){var t=e.isAnnouncement()||e.isWhatsNew()?null:y.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=Ct(y.map(t,function(e){return{id:e.id}})),i.eligibleModulesHash&&i.eligibleModulesHash!==a&&(n=!0,N.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)&&N.replaceResourceCenterContent(i.moduleIdToReplaceHomeViewWith,undefined,!0),t&&(n=y.find(t,function(e){return e.isContinuation(Sh())}),a=y.get(n,"attributes.doNotResume"),e=y.get(n,"attributes.resourceCenter.integrationProvider"),N.isSupportedNativeIntegration(e))&&!a&&i&&(i.continueToNativeModule=!0,n.continueToNativeModule=!0),i.activeModule&&((e=y.find(t,function(e){return e.id===i.activeModule.id}))&&r&&N.replaceResourceCenterContent(i.activeModule.id,undefined,!0),e||N.replaceResourceCenterContent(i.id)),N.repositionResourceCenter())}function zh(e,t,n){var i,r,o=vu[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&&N.hideRCBadge(o,e),y.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||(y.isFunction(e.placeBadge)&&e.placeBadge(),o=vu[e.id]),o&&o.show(),e.badgeHidden=!1)}function Zh(e){var t,n,i,r,o,a;e&&e.launchMethod&&(e.skipResourceCenterHomeView=!1,e.hasResourceCenterContent=!0,delete e.moduleIdToReplaceHomeViewWith,t=e.activeModule,n=y.get(t,"attributes.resourceCenter.integrationProvider"),e.isNativeModuleActive=t&&N.isSupportedNativeIntegration(n),N.isFullyCustom(e)?e.hasResourceCenterContent=!0:(e.isShown()||!A.getters["frames/isLeader"]()?jh(e,zh):(t=e,n=zh,N.isFullyCustom(t)||(i=[],o=[],(r=y.find(t.modules,function(e){return!!N.isIframeModule(e)||!!N.isSandboxModule(e)||!!N.isIntegrationModule(e)&&(!!N.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1))}))&&i.push(r),r=y.flatten(y.pluck(t.modules,"guidesInModule")),o=y.filter(y.compact(r),function(e){return e.control}),!i.length&&(a=y.reduce(t.modules,function(t,n){return y.each(n.guidesInModule,function(e){t[e.id]=n}),t},{}),r=y.filter(r,function(e){return e&&e.steps&&e.steps.length}),r=y.sortBy(r,function(e){return e.steps[0].elementPathRule?1:0}),r=a[(r=y.find(r,function(e){return e.shouldBeAddedToResourceCenter()}))&&r.id])&&i.push(r),n(t,i,o))),e.isNativeModuleActive&&(e.isShown()&&e.hide(),a=vu[e.id])&&N.hideRCBadge(a,e),"dom"===e.launchMethod&&(N.updateNotificationBubbles(),N.adjustNotificationBubbleForResize())))}Yh.prototype.start=function(){this.context=null,this.startTime=b()},Yh.prototype.isTimeExceeded=function(){return b()-this.startTime>this.timeLimit},Yh.prototype.saveContext=function(e){this.context=e},Yh.prototype.getContext=function(){return this.context};var Vh=Yh;function Yh(e){void 0===e&&(e=50),this.startTime=-1,this.timeLimit=e,this.context=null}function Hh(e){this.phases=e,this.queue=[],this.paused=!1}Hh.prototype.markDirty=function(){for(var e=0,t=this.phases;e<t.length;e++)t[e].markDirty();this.queue=this.phases.slice()},Hh.prototype.runGuidePhase=function(){for(var e,t,n,i=this.queue[0],r=new Vh(50);!this.timedOut()&&!i.isComplete()&&!e;)r.start(),!(e=i.process(r))&&r.isTimeExceeded()&&(i.handleProcessTimeExceeded&&i.handleProcessTimeExceeded(r),this.ejectGuide(r.getContext()));Nt(e)?(t=this.updateId,n=y.bind(function(){this.updateId===t&&(this.paused=!1,Gh())},this),this.paused=!0,e.then(n)["catch"](n)):i.isComplete()&&this.queue.shift()},Hh.prototype.addPhase=function(e,t){t=t||e.name||this.phases.length,y.isFunction(e)&&(e=new Wh(t,e)),this.phases.push(e)},Hh.prototype.removePhase=function(t){var e=y.findIndex(this.phases,function(e){return e.name===t});0<=e&&this.phases.splice(e,1)},Hh.prototype.timedOut=function(){return!!this.iterationStartTime&&b()-this.iterationStartTime>A.state.guideUpdate.iterationTimeLimit},Hh.prototype.ejectGuide=function(e){this.ejectOnTimeout===undefined&&(this.ejectOnTimeout=m.get("guides.ejectOnTimeout")),this.ejectOnTimeout&&e&&!e.isShown()&&Au.addGuide(e)},Hh.prototype.process=function(){var e=b();for(this.updateId||(this.updateId=e,this.updateTotalTime=0,A.commit("guideUpdate/startUpdate",e)),this.iterationStartTime=e;!this.paused&&this.queue.length&&!this.timedOut();)this.runGuidePhase();e=b(),this.updateTotalTime+=e-this.iterationStartTime,this.isComplete()&&this.complete(e)},Hh.prototype.complete=function(e){A.commit("monitoring/setTimer",{name:"guideUpdateTimeMS",time:this.updateTotalTime}),A.commit("guideUpdate/completeUpdate",e),this.cancel()},Hh.prototype.cancel=function(){this.updateId=null,this.paused=!1;for(var e=this.queue.length=0,t=this.phases;e<t.length;e++){var n=t[e];y.isFunction(n.cancel)&&n.cancel()}},Hh.prototype.isComplete=function(){return!this.queue.length};var Kh=new Hh([new e,new Wh("resourceCenter",function(){Zh(N.getResourceCenter())}),new Wh("frameVisibility",function(){A.dispatch("frames/checkFrameVisibility")}),new Wh("guideShowing",function(){var a=Dv();a&&(y.each(a.steps,function(e){var t,n,i,r,o;a.guide,(e=e).isLocked()||A.getters["frames/isShownInAnotherFrame"]()(e)||(t=e.element,n=e.targetElement,r=e.guideElement,i=R("."+Yg),(r=r.find("#pendo-guide-container")[0])&&r.textContent&&(r=f(r).fontSize,e.attributes.currentTextZoomFontSize!==r)&&(e.attributes.currentTextZoomFontSize&&e.redraw(),e.attributes.currentTextZoomFontSize=r),e.elementPathRule&&n&&!Xr.matchesSelector(n,e.elementPathRule)?e.hide():(r=$a(t),o=!0,n&&r&&e.elementContainsRulesList&&(o=Cm(n,e.elementContainsRulesList),r=o),t&&(r||i.hasClass("mouseover"))?e.checkPlacement():("tooltip"===e.type||"tooltip"===e.attributes.calculatedType)&&Ua(t)&&o||e.hide()))}),a.guide.checkForHiddenGroupSteps())}),new lr]);function Xh(){Kh.addPhase.apply(Kh,arguments)}function Jh(){Kh.removePhase.apply(Kh,arguments)}function qh(){var s={};return y.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=y.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 Qh="debug-enabled";function ef(){try{return JSON.parse(w.read(Qh,!0)||on(Qh))||{}}catch(e){return{}}}function tf(e){var t;return void 0===e&&(e=!0),t=A&&A.getters&&A.getters["debugger/debuggingEnabled"]?A.getters["debugger/debuggingEnabled"]():!0===ef().enabled,e?t:t?"Yes":"No"}nf.prototype.test=function(e){return this.identificationFn(e)};i=nf;function nf(e,t){this.type=t,this.identificationFn=e}rf={},of=function(e){var e=e.data,t=e[0];e[1];var n=Tu(t.guideId),e=(y.find(rf,function(e){return e.GuideType.test(n)})||{}).handler;e&&e(n,"resourceFetchFail")};var rf,of,af={run:function(){S.resourceFetchFail.on(of)},stop:function(){S.resourceFetchFail.off(of)},addTypeHandler:function(e,t){y.isFunction(t)?rf[e.type]={GuideType:e,handler:t}:I.error("Invalid Handler function provided for type ".concat(e.type))}},sf=(af.addTypeHandler(new i(Nu,"badge"),function(e,t){Au.addGuide(e)}),"_pendo-badge_");function df(e){var t;return e&&((t=(t=e.props=e.props||{}).style=t.style||{}).cursor=t.cursor||"pointer"),e}function uf(t,n){var e,i,r,o,a,s=Wu(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=y.reduce([(o=t.language,a=d?["he","ar"]:[],function(e){return y.contains(a,o)&&(e.props["data-localization-direction"]=!0),e}),(r=u,function(e){var t,n;return y.get(e,"props.data-localization-direction",!1)&&!r&&(t=y.get(e,"props.style.left","auto"),n=y.get(e,"props.style.right","auto"),t)&&n&&(e.props.style.left=n,e.props.style.right=t),e}),df,bc,function(e){return Ql(e,{id:n.id,guideId:t.id,isBadge:!0})}],function(e,t){return t(e)},this.domJson)[0],i=e,R.removeNode(e),-1===i.className.indexOf("_pendo-badge_")&&(i.className+=" _pendo-badge_"),this.isP2Badge=!0):((i=document.createElement("img")).src=yc(this.imageUrl),i.className="_pendo-badge "+sf,d=this.width||13,u=this.height||13,ma(i,"width:"+d+"px;height:"+u+"px;")),i.id="_pendo-badge_"+n.id,this.activate=function(){var e=y.isFunction(n.getGuide)&&n.getGuide(),t=_m(e);!e.isShown()||A.getters["frames/isShownInAnotherFrame"]()(n)?Rm(n,"badge"):t?n.eventRouter.eventable.trigger("pendoEvent",{step:n,action:"dismissGuide"}):(t=y.find(e.steps,function(e){return e.isShown()}),pm(t))},this.shouldShow=function(){return t.canBadgeBeShown()||!1},this.show=function(){if(y.isFunction(this.shouldShow))return this.shouldShow()},this.hide=function(){R.removeNode(i),rp(t.id),y.isFunction(this.removeScrollHandlers)&&(this.removeScrollHandlers(),this.removeScrollHandlers=null),n.overrideElement=undefined},_m(t)&&(this.toggleAriaExpanded=function(){var e=!!R("#pendo-resource-center-container")[0],t=R("button._pendo-resource-center-badge-container")[0]||R('._pendo-resource-center-badge-container [id^="pendo-image-badge-"]')[0];t&&t.setAttribute("aria-expanded",e)},i.checkAriaExpanded=this.toggleAriaExpanded),this.step=y.constant(n),this.target=y.constant(s),this.element=y.constant(i),this}uf.create=function(n){var i=uf.findStep(n);if(i)return y.reduce(uf.behaviors,function(e,t){return t.call(e,n,i)},n.attributes.badge)},uf.findStep=function(e){var t=y.find(e.steps,function(e){return!!e.elementPathRule});if(t&&e.attributes&&e.attributes.badge)return t},uf.behaviors=[qh,uf,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&&ma(n,"display:inline-block;vertical-align:text-bottom;"),this.css&&ma(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,t=this.element(),n=wa(this.target()),i=0,r=0,o=0;if(this.offsets&&(i=this.offsets.top||0,r=this.offsets.right||0,o=this.offsets.left||0),!y.get(s,"attributes.resourceCenter",!1)){var a="position:"+(n.fixed?"fixed":"absolute")+";top:"+(n.top+i)+"px;";switch(this.position){case"top-right":a+="left:"+(n.left+n.width-r)+"px";break;case"top-left":a+="left:"+(n.left+o)+"px"}ma(t,a)}t.parentNode||(Gu().appendChild(t),e=Ga(to,this.target(),ff),this.removeScrollHandlers=function(){ff.cancel(),e()})});return this},function(){"over"===this.position&&this.before("show",function(){var e,t=this.element(),n=wa(this.target()),i="position:absolute;top:"+n.top+"px;left:"+n.left+"px;";i+="height:"+n.height+"px;width:"+n.width+"px;",ma(t,i+="background-color:transparent;"),t.parentNode||(Gu().appendChild(t),e=Ga(ff,t,this.target()),this.removeScrollHandlers=function(){ff.cancel(),e()})});return this},function(){var t=this,e=t.element(),n=!1,i=function(e){t.activate(),t.toggleAriaExpanded&&t.toggleAriaExpanded(),fu(e)};return t.after("show",function(){n||(l(e,"click",i),n=!0)}),t.after("hide",function(){hu(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=y.throttle(function(e){io(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}(io(e))||o()},50,{trailing:!1}),r=function(e){n.isShown()||Rm(n,"badge"),l(document,"mousemove",i),fu(e)},o=function(e){hu(document,"mousemove",i),Fu()||pm(n)},this.after("show",function(){e||(l(t,"mouseover",r),e=!0)}),this.after("hide",function(){hu(t,"mouseover",r),hu(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)||Fu()||(t="inline"===this.position?"visibility:visible;":"display:inline;",n="inline"===this.position?"visibility:hidden;":"display:none;",i=y.throttle(function(e){var t,n,i,r,o,a;io(e)===d||io(e)===s||ua(s,"triggered")||(t=e.clientX,e=e.clientY,n=xa(d),i=xa(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(){ma(s,t),l(document,"mousemove",i)},u=function(){hu(document,"mousemove",i),ma(s,n)},this.after("show",function(){e||(l(d,"mouseover",r),e=!0,u())}),this.after("hide",function(){e&&(hu(d,"mouseover",r),e=!1),u()}))}return this}];var cf=function(e,t){var n,i,r=(t=t||vu)[e.id],o=r?r.step():uf.findStep(e);o&&(i=r?r.target():Wu(o),(n=y.get(e,"attributes.resourceCenter"))&&!A.getters["frames/canShowRCBadge"]()?r&&y.isFunction(r.hide)&&(t[e.id]=undefined,r.hide()):n&&!e.hasResourceCenterContent||(N.updateNotificationBubbles(),n=!0,o.elementContainsRulesList&&(n=i&&Cm(i,o.elementContainsRulesList)),(i=o.elementPathRule&&$a(i)&&Xr.matchesSelector(i,o.elementPathRule)&&n)?((r=r||uf.create(e)).show(),t[e.id]=r):r&&!o.isShown()&&(t[e.id]=undefined,r.hide()),tf()&&S.stepEligibility.trigger({stepId:o.id,guideId:e.id,eligible:i,reason:"target_element_badge"}),N.repositionDoubleResourceCenterBadge()))},lf=function(){y.map(vu,pf),vu={}},pf=function(e,t){e&&(y.isFunction(e.hide)&&e.hide(),y.isFunction(e.shouldShow))&&!e.shouldShow()&&t&&delete vu[t.id]},hf=function(e){var t=vu[e.id];t&&pf(t,e)};var ff=y.throttle(function(){y.map(vu,function(e){e&&e.show&&e.show()})},10);var M,gf=w.getLocal(),mf="pendo-preview",vf="current-guide-preview";function yf(e){return A.dispatch("preview/load"),bf(e)}function bf(t){var e=Lf();if(e)return wf(t),A.dispatch("preview/start",y.extend(e)),w.clear(Ih),rn(!1),Os.lock(),Qm=Df,S.startPreview.trigger(),S.leaderChanged.on(function(e){A.dispatch("preview/write"),e.oldLeaderId||Pv(),A.getters["frames/isLeader"]()||(R(M).remove(),M=null,t.removeEventListener("message",Sf))}),Xh(If),!0}function If(){if(!A.getters["frames/isFollower"]()){var t,n,i,r,o,e,a=document,s=k,d=Sh();if(Af()&&(t=Lf())&&M&&M.contentWindow)if(s&&s.length){M.contentWindow.postMessage({mutation:"preview/setGuideLoaded",payload:{guideLoaded:!0}},location.origin),n=y.find(s,function(e){return e.id===t.guideId}),i=0,r=n.steps.length,o=d||{},y.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=y.indexOf(n.steps,y.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],h=e.isShown(),M.contentWindow.postMessage({mutation:"preview/setHostname",payload:{hostname:rt}},location.origin),M.contentWindow.postMessage({mutation:"preview/setGuidePages",payload:{guidePages:n.previewPages}},location.origin),M.contentWindow.postMessage({mutation:"preview/setGuideProgress",payload:{guideName:n.name,guideAttributes:JSON.stringify(n.attributes),guideLaunchMethod:n.launchMethod,guideActivationSelector:$u(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:h,pageId:e.pageId,completed:s,languageOptions:y.get(t,"languageOptions",[]),currentLanguage:t.language}},location.origin);var u=e,c=d,l=M;if(u&&l&&l.contentWindow){var p=u.getGuide().id,h=y.filter(A.state.frames.frames,function(e){return"hidden"!==e.visibility&&e.guides&&e.guides[p]});if(h.length)h=y.map(h,function(e){return L.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:e.id,stepId:u.id,guideId:p,currentStepIndex:c})}),C.all(h).then(function(e){for(var t={},n=-1,i=0;i<e.length;i++){var r=JSON.parse(e[i]).errors;if(!r.GUIDE){var o=y.keys(r).length;if(!o){t={};break}-1===n?(t=r,n=o):u.regexUrlRule?!r.PAGE&&o<=n&&(t=r,n=o):o<n&&(t=r,n=o)}}l.contentWindow.postMessage({mutation:"preview/setErrors",payload:{errors:t}},location.origin)})["catch"](y.noop)}}else kf(0,{status:404,data:"Guide not found"})}return!0}function wf(e){if(A.getters["frames/leaderExists"]()){if(!A.getters["frames/isFollower"]()){if(M)return!0;var t,n;y.isFunction(e.addEventListener)&&e.addEventListener("message",Sf),(t=document.createElement("iframe")).id=mf,va(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(){m.get("inlineStyleNonce")&&(o=t.contentDocument.createElement.bind(t.contentDocument),t.contentDocument.createElement=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i,r=o.apply(void 0,Ut([e],t,!1));return"style"===e&&(i=m.get("inlineStyleNonce"))&&r.setAttribute("nonce",i),r});var o,e=document.createElement("script");e.src=m.get("previewModeAssetPath")||Do("pendo.preview.min.js"),t.contentDocument.body.appendChild(e),t.contentWindow.ignoreIframeMonitor=!0},M=t,Ea().appendChild(M)}}else S.one("leaderChanged",y.partial(wf,e))}function Cf(e,t,n){nm(),A.commit("healthCheck/resetStepStatus",null,{root:!0}),Ac.reset(),Pv();var i=e[0],i=(i&&y.each(i.steps,function(e){e.seenState=null}),w.clear(Ih),A.dispatch("preview/update",null),Lf());return i&&(i=y.findWhere(e,{id:i.guideId}))&&(i={stepId:i.steps[0].id},n&&(i.language=n),A.dispatch("preview/restart",i)),Rf(e,t)}function Sf(e){var t,n;e.origin===location.origin&&(t=e.data.type,n=!!e.data.preventWindowClose,t===mf+"::exit"?(Of({preventWindowClose:n}),A.dispatch("frames/stopPreview",{preventWindowClose:n})):t===mf+"::restart"?(n=Cf(k,Sh(),e.data.language),A.dispatch("guideState/forceExpire"),A.dispatch("guideState/updateLastGuideStepSeen",n),A.dispatch("frames/restartPreview")):t===mf+"::resize"?(n=e.data.height,M&&M.style&&(M.style.height=n)):t===mf+"::request-preview-mode-type"&&(e=Ff(),M)&&M.contentWindow&&e&&M.contentWindow.postMessage({mutation:"preview/setPreviewModeType",payload:{previewModeType:e.previewModeType||"NEW_TAB"}},location.origin))}function Af(){return A.getters["preview/isInPreviewMode"]()}function Ef(){return A.getters["preview/isInDesignerPreviewMode"]()}function Tf(e){var t,n,i,r,o,a=Lf();return a?a.isResourceCenter?(i=e,t=a,n=N.findResourceCenterHomeView(i),i=y.filter(i,function(e){return e.id!==n.id}),xf(n,t.stepId),t=y.map(i,function(e){return e.launchMethod="launcher",e}),[n].concat(t)):(i=e,r=a,y.each(i,function(e){e.id===r.guideId?o=e:((e=e).launchMethod="api",(e=e.steps[0])&&(e.seenState="advanced"))}),_f(o),o.showsAfter=null,o.expiresAfter=null,xf(o,r.stepId),i):e}function _f(e){"launcher"===e.launchMethod?e.launchMethod="auto-launcher":"api"===e.launchMethod&&(e.launchMethod="auto")}function xf(e,t){for(var n=y.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 Rf(e,t){null==t&&(t={});var n=Lf();if(!n)return t;e=y.findWhere(e,{id:n.guideId});if(!e)return t;if(n.state)return n.state;_f(e);t=-1<e.launchMethod.indexOf("auto");return n.stepId!==e.steps[0].id||t?{guideId:n.guideId,guideStepId:n.stepId,state:"active"}:{}}function kf(e,t){M&&M.contentWindow&&M.contentWindow.postMessage({mutation:"preview/setGuideLoadError",payload:{guideLoadError:t}},location.origin)}function Of(e){var t=Ff(),n=!1,i=(t&&(n="SAME_TAB"===t.previewModeType),gf.getItem("pendo-navigation-state"));if(A.dispatch("preview/exit"),nm({stayHidden:!0}),w.clear(Ih),Os.unlock(),R(M).remove(),Qm=Xu,Jh(If),rn(!0),n&&i){gf.setItem(vf,JSON.stringify(y.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};A.dispatch("preview/launchInAppDesigner",o)}catch(a){A.dispatch("preview/exitDesignerPreview")}}else e&&!e.preventWindowClose&&window.close(),Pv()}function Nf(e,t){e=y.get(e(),t);if(e)return JSON.parse(JSON.stringify(e))}function Mf(){return A}var Lf=y.partial(Nf,Mf,"state.preview.preview"),Ff=y.partial(Nf,Mf,"state.preview.designerPreview");function Pf(e){var t;if(e.subscriptionId&&e.guideId)return t=e.isResourceCenter?"/resourcecenter/":"/guide/","/api/s/"+Lt(e.subscriptionId)+t+Lt(e.guideId)+"/preview"}var Gf=function(e){var t;return Xa(e.origin)?(t=Pf(e))?(t={url:e.origin+t+"?url="+Lt(Lo.externalizeURL())+"&apiKey="+v.apiKey,withCredentials:!0},e.headers&&(t.headers=e.headers),oo(t).then(function(e){return e.data.guide})):(I.info("Invalid guide url, exiting preview"),C.reject("invalid guide url")):(I.info("Invalid origin, exiting preview"),C.reject("invalid origin"))},Df={load:Wf,post:function(e,t,n){return Wf(e,n)},endpoint:function(){return""},usesXhr:function(){return!0}};function Bf(n,t){var e,i;return Xa(n.origin)?(e=Pf(n))?A.getters["frames/leaderExists"]()&&n.apiKey===v.apiKey?(e="".concat(n.origin).concat(e,"?url=").concat(Lt(Lo.externalizeURL()),"&apiKey=").concat(v.apiKey),n.childGuides&&n.childGuides.length&&(e+="&childGuides="+n.childGuides.toString()),Ef()&&(e+="&ignoreGuide=true"),e={url:e,withCredentials:!0},n.headers&&(e.headers=n.headers),i=[],oo(e).then(function(e){var t,c,e=e.data;return Ef()?(t=Ff(),i=t?Ef()?(y.each(t.guide.steps,function(t){var e=["domJsonpUrl","domUrl"];t.domUrl&&0===t.domUrl.indexOf("data:")&&(e=["domJson","contentJs","contentCss","content"]),y.each(e,function(e){delete t[e]})}),t.guide.showsAfter=null,t.guide.expiresAfter=null,[t.guide]):void 0:[],e.guide=i[0]):i=n.isResourceCenter?e.guide:(e.guide.previewPages=e.pages,[e.guide]),e.children&&(i=i.concat(e.children)),n.language&&n.language!==y.get(i,"[0].authoredLanguage")&&(t=i,c=n.language.value,y.forEach(t,function(u){y.forEach(u.steps,function(e){var t=y.get(u,"translationStates."+c+".stepTranslations."+e.id,{}),n=t.domHash,i=t.domJsonpHash,r=t.translationHash,o=t.originalDomJsonHash,a=t.originalDomJsonpHash,s=t.originalBuildingBlockHash,d=t.domHash256,t=t.domJsonpHash256;e.domUrl=$f(o,e.domUrl,".dom.json",d),e.domJsonpUrl=$f(a,e.domJsonpUrl,".dom.jsonp",t),e.buildingBlocksUrl=$f(s,e.buildingBlocksUrl,".buildingBlocks.json"),n&&i&&r&&(e.domUrl=e.domUrl.replace(".dom.json","-"+n+"-"+c+".dom.json"),e.domJsonpUrl=e.domJsonpUrl.replace(".dom.jsonp","-"+i+"-"+c+".dom.jsonp"),e.buildingBlocksUrl=e.buildingBlocksUrl.replace(".buildingBlocks.json","-"+r+"-"+c+".buildingBlocks.json"))})})),n.watermarkConfig&&(e.guide.isTraining=!0),v.guideWidget={enabled:!1,data:{guideCssUrl:e.guideCssUrl}},v.guideCssUrl=e.guideCssUrl,v.normalizedUrl=e.normalizedUrl,v.throttling=undefined,e.guide}).then(function(e){var t;return n.watermarkConfig?(t=JSON.parse(JSON.stringify(n)),t=Object.assign(t,n.watermarkConfig),Gf(t)):e}).then(function(e){e&&e.attributes&&e.attributes.isWatermark&&i.push(e),v.guidesPayload({id:t,lastGuideStepSeen:Rf(i,v.lastGuideStepSeen),guides:Tf(i)})})["catch"](function(e){return kf(document,e),C.reject(e)})):(v.guidesPayload({id:t,lastGuideStepSeen:{},guides:[]}),C.resolve()):(I.info("Invalid guide url, exiting preview"),C.reject("invalid guide url")):(I.info("Invalid origin, exiting preview"),C.reject("invalid origin"))}function Wf(e,t){var n=Lf();return!n||!Pf(n)||!(e=/[?&]id=(\d+)/.exec(e))||e.length<1?C.reject():Bf(n,e[1]).then(t)}function $f(e,t,n,i){var r,o;if(t)return o=r=(t=t.split("/"))[t.length-1],e&&(o="".concat(e).concat(r.slice(r.indexOf(n)))),i&&-1<(e=o.indexOf("sha256="))&&(o="".concat(o.slice(0,e)).concat("sha256=").concat(i)),t[t.length-1]=o,t.join("/")}Uf=null,jf=[],zf=function(e){v.apiKey=e+="",Uf=e};var Uf,jf,zf,Zf,Vf,Yf,Hf={getApiKey:function(){return v.apiKey},discoverKeys:function(e){var t=e.apiKey,e=e.additionalApiKeys,e=void 0===e?[]:e;Uf=null,jf=[],t=t,(t=m.get("apiKey",t))&&zf(t),t=e,t=m.get("additionalApiKeys",t),jf=y.reduce(t,function(e,t){return t&&e.push(t+""),e},[]),jf=[].concat(t),v.additionalApiKeys=jf,!Uf&&jf&&jf.length&&zf(jf[0])},getAdditionalApiKeys:function(){return v.additionalApiKeys},tamperedWith:function(){return v.apiKey!==Uf||v.additionalApiKeys!==jf}},Kf=w.getLocal(),Xf=(Zf=rt,Vf="in-app-designer",Yf="latest","local"===st&&(Zf="https://local.pendo.io:8080"),S.leaderChanged.on(function(){Jf({ignoreLocalStorageNavigation:/pendo-/.test(window.name)||Ef()})}),{launchDesigner:function(e){var t,n="latest",i="designer";ag("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%;}"),sg("designer-shims",Zf+"/"+i+"/"+n+"/plugin.js"),v.DESIGNER_VERSION?rg(n,i):t=window.setInterval(function(){v.DESIGNER_VERSION&&(rg(n,i),clearInterval(t))},100)},launchInAppDesigner:ig,localStorageNavigation:Jf,launchOnToken:function(e){if(!dg(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=Qf(t),n=ng(t),window.localStorage.removeItem("pendo-navigation-state"),window.localStorage.removeItem("pendo-designer-mode"),ig({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,Xf.hostConfig.host)},isValidDesignerHost:qf,isValidTarget:tg,addCommunicationIframe:function(e,t){e=e||{};y.isFunction(t)||(t=y.noop);var n=ng(e),e=eg(e),i=(new Date).getTime(),r=(Xf.windowCommunicationId=i,"pendo-designer-communication-iframe");if(document.getElementById(r))return t(),document.getElementById(r);var o="pendo-designer-communication-embedded";o+="__"+i;i=og(r,Zf+"/"+e+"/"+n+"/communication.html","border-width:0;height:0;width:0;");return i.setAttribute("name",o),i.onload=t,document.body.appendChild(i),i},addStylesToPage:ag,hostConfig:{host:Zf},isDesignerFrame:dg,addScriptToPage:sg});function Jf(e){if(!e.ignoreLocalStorageNavigation){var t,e=Kf.getItem("pendo-navigation-state");if(e&&A.getters["frames/isLeader"]()){try{t=JSON.parse(e)}catch(n){return}if(!t.apiKey||t.apiKey===Hf.getApiKey())if(t.apiKey||!t.agentInstallType||t.agentInstallType===Ge())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},Xf.launchInAppDesigner(e),!0}}}function qf(e){return!!e&&Xa(e)}function Qf(e){var e=(e=e||{}).host||Zf,t=qf(e),e=t?e:rt;return t||I.info("Invalid host, falling back to "+rt),e}function eg(e){var e=(e=e||{}).gcsBucket||Vf,t="in-app-designer"===(t=e)||"da-designer"===t||"adopt-studio"===t,e=t?e:Vf;return t||I.info("Invalid bucket, falling back to "+Vf),e}function tg(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 ng(e){e=e||{};var t=m.get("enableCrossOriginIsolation")?"strict":Yf,e=e.target||e.baseFolder||t,t=tg(e),e=t?e:Yf;return t||I.info("Invalid target, falling back to "+Yf),e}function ig(e){if(!dg(window.name)&&!v.designerLaunched)if(m.get("disableDesigner"))I.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){}Xf.crossFrameChannel===undefined&&(Xf.crossFrameChannel=L,Xf.useCrossFrameChannel=!0),bs()&&a&&!e.allowChildFrame&&!e.selectionOnly?I.info("skipping designer launch from a child frame. pass `allowChildFrame: true` to override"):v.isReady()?(v.designerLaunchTime=(new Date).getTime(),a=Qf(e=e||{}),i=eg(e),r=ng(e),n=e.preloader?"preloader.js":"plugin.js",t=e.preloader?"preloader-shims":"designer-shims",n=a+"/"+i+"/"+r+"/"+n,Xf.hostConfig={gcsBucket:i,baseFolder:r,uniqueWindowId:e.uniqueWindowId,host:a,adoptv2:e.adoptv2,DADesigner:e.DADesigner,agentInstallType:Ge(),forceNativeDesigner:!!e.forceNativeDesigner,sidebarDesigner:!!e.sidebarDesigner,apiKey:Hf.getApiKey()},i={},e.selectionOnly&&(i["selection-only"]=!0),m.get("pendoGlobalKey")&&(i["data-pendo-global-key"]=m.get("pendoGlobalKey")),r=m.get("designerAgentPluginsLoader"),a=window.__pendoExtensions&&e.forceNativeDesigner,o=!window.__pendoExtensions&&!y.isFunction(r),(a||o)&&(Xf.addScriptToPage(t,n,i),v.designerLaunched=!0),!e.forceNativeDesigner&&y.isFunction(r)&&(r(t,n,i),v.designerLaunched=!0)):I.error("Unable to launch the designer, the agent has not been initialized. Please use `pendo.initialize` prior to launching the designer")}}function rg(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+="__"+Xf.windowCommunicationId,(t=og("pendo-designer-iframe",Zf+"/"+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 og(e,t,n){var i=document.createElement("iframe");return i.setAttribute("id",e),n&&ma(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 ag(e,t){var n;document.getElementById(e)||((n=document.createElement("style")).setAttribute("id",e),n.type="text/css",e=document.createTextNode(t),n.appendChild(e),document.getElementsByTagName("head")[0].appendChild(n))}function sg(e,t,n){var i;document.getElementById(e)||((i=document.createElement("script")).setAttribute("charset","utf-8"),i.setAttribute("id",e),i.src=K(v).createScriptURL(t),n&&y.forEach(n,function(e,t){i.setAttribute(t,e)}),document.body.appendChild(i))}function dg(e){try{var t=JSON.parse(e);return/^pendo-/.test(t.frameName)||/^pendo-/.test(t.frame)}catch(n){return!1}}ug={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"},cg={GRAY_LIGHTER_6:"#EAECF1",GRAY_PRIMARY:"#2A2C35",PENDO_PINK:"#FF4876",TEAL_DARKER:"#036463",TEAL_PRIMARY:"#008180",WHITE:"#FFFFFF"},(lg={BUTTON_HEIGHT:35,HEADER_HEIGHT:60,MODAL_HEIGHT:235,MODAL_TOP_OFFSET:150,MODAL_WIDTH:370}).FOOTER_HEIGHT=1.25*lg.HEADER_HEIGHT,lg.BODY_HEIGHT="calc(100% - "+lg.HEADER_HEIGHT+"px - "+lg.FOOTER_HEIGHT+"px)",pg='<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>',(hg={})["#"+ug.closeButton+":hover"]={"background-color":cg.GRAY_LIGHTER_6},hg["#"+ug.launchButton+":hover"]={"background-color":cg.TEAL_DARKER+" !important"},fg={PRIMARY_FONT:"Helvetica Neue"};var ug,cg,lg,pg,hg,fg,gg={listen:function(){return y.isFunction(document.addEventListener)?(document.addEventListener("keyup",mg,!1),function(){document.removeEventListener("keyup",mg,!1)}):function(){}},launchOnLocalStorageToken:Sg,ids:ug,removeElement:Ig,attemptToLaunch:bg,loadPluginJs:function(){var t;v.designerLaunched||(t=y.once(function(e){Sg(e,!0)}),ws(function(e){"pendo-designer-launch-modal"===e.data.destination&&e.data.token&&t(e.data.token)}))}};function mg(e){e.shiftKey&&e.altKey&&"Digit7"===e.code&&bg(!0),e.shiftKey&&e.altKey&&"Digit8"===e.code&&bg(!1,!0)}function vg(e,t){var n,i,r,o={"background-color":cg.WHITE,height:lg.MODAL_HEIGHT+"px","min-height":lg.MODAL_HEIGHT+"px",width:lg.MODAL_WIDTH+"px",position:"fixed",top:lg.MODAL_TOP_OFFSET+"px",left:"50%","margin-left":-lg.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=yg("div",ug.container,o);o.appendChild(((i=document.createElement("style")).setAttribute("id",ug.style),i.type="text/css",r=document.createTextNode(function(e){return y.reduce(y.pairs(e),function(e,t){var n=t[0],t=t[1];return e+n+"{"+y.reduce(y.pairs(t),function(e,t){return e+t[0]+":"+t[1]+";"},"")+"} "},"")}(hg)),i.appendChild(r),i)),o.appendChild((r=t,i=yg("div",ug.header,{"background-color":cg.GRAY_PRIMARY,height:lg.HEADER_HEIGHT+"px","min-height":lg.HEADER_HEIGHT+"px",width:"100%",padding:"10px 20px",display:"flex","align-items":"center","box-sizing":"border-box"}),(t=yg("div",ug.logoContainer,{height:"38px",width:"44px","background-color":cg.PENDO_PINK,padding:"8px","border-radius":"3px","box-sizing":"border-box"})).innerHTML=K(v).createHTML(pg),i.appendChild(t),(t=yg("div",ug.title,{width:"100%",display:"flex","align-items":"center","font-family":fg.PRIMARY_FONT,"font-size":"18px",color:cg.WHITE,"margin-left":"10px","box-sizing":"border-box"})).innerText=r?"VIA Designer":"Pendo Designer",i.appendChild(t),i)),o.appendChild(((r=yg("div",ug.body,{height:lg.BODY_HEIGHT,"min-height":lg.BODY_HEIGHT,width:"100%",display:"flex",padding:"32px 20px","font-family":fg.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.",r)),o.appendChild((n=e,t=yg("div",ug.footer,{"align-items":"center","border-top":"1px solid"+cg.GRAY_LIGHTER_6,display:"flex",height:lg.FOOTER_HEIGHT+"px","justify-content":"flex-end","min-height":lg.FOOTER_HEIGHT+"px",padding:"10px",width:"100%","box-sizing":"border-box"}),(i=yg("button",ug.closeButton,{"border-radius":"3px",border:"none",height:lg.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":fg.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",i.onclick=function(){Ig(ug.container),Ig(ug.commIframeId)},(r=yg("button",ug.launchButton,{"background-color":cg.TEAL_PRIMARY,"border-radius":"3px",color:cg.WHITE,border:"none",height:lg.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":fg.PRIMARY_FONT,"font-size":"14px",display:"flex","line-height":"120%","min-width":"90px","justify-content":"center","box-sizing":"border-box"})).textContent="Launch Designer",r.onclick=function(){Sg(n)},t.appendChild(i),t.appendChild(r),t)),document.body.appendChild(o)}function yg(e,t,n){e=document.createElement(e);return e.setAttribute("id",t),y.extend(e.style,n),e}function bg(t,n){var i,r,o;v.designerLaunched||(o=y.once(function(e){t||!n?Sg(e):vg(e,t),wg()}),ws(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),y.contains(e.host,"via")&&!e.visitorId&&(r=r||setInterval(function(){document.getElementById(ug.commIframeId)&&Cg()},100))):wg())}),Xf.addCommunicationIframe({defaultBucket:"in-app-designer"},function(){Cg(),i=window.setInterval(Cg,50)}))}function Ig(e){document.getElementById(e)&&document.getElementById(e).remove()}function wg(){var e=document.querySelector("#"+ug.commIframeId+'[src*="pendo"]');e&&e.remove()}function Cg(){var e=document.getElementById(ug.commIframeId);e&&e.contentWindow&&y.isFunction(e.contentWindow.postMessage)&&e.contentWindow.postMessage({destination:"pendo-designer-ls",source:"pendo-designer-launch-modal",visitorId:v.visitorId},y.get(v,"designerv2.hostConfig.host",rt))}function Sg(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),Ig(ug.container),Xf.launchInAppDesigner(n)}var Ag=y.wrap(y.wrap(y.once(y.wrap(function(e){var t=C.defer();return ts(e,function(){t.resolve()}),t.promise},function(e,t){return 0<y.size(Ku._handlers.validateGlobalScript)?oo.get(t).then(function(e){return Ku.validateGlobalScript(e.data)}).then(function(){return e(t)}):e(t)})),function(e,t){return t?e(t):C.resolve()}),function(e,t){return m.get("preventCodeInjection")?C.resolve():e(t)}),Eg={initializeWatermark:function(e){e=y.filter(e,function(e){return e&&e.attributes&&e.attributes.isWatermark}),Eg.watermarkGuides=e,e=y.map(e,function(e){return e.fetchContent()});return C.all(e)},buildWatermark:function(e,t){if((e=e||{}).isTraining){var n=e.targetAccount?function(t){return y.find(Eg.watermarkGuides,function(e){return t===e.targetAccount})}(e.targetAccount):function(t){return y.find(Eg.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}}}},Tg=1e4;function _g(n,i){var r=!1,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){void 0===t&&(t=Tg);var n=C.defer(),i=At(32),r=(e=y.extend(e,{promiseId:i}),Dt(function(){o[i]&&(n.reject(JSON.stringify({message:"request timed out"})),delete o[i])},t));return s(e).then(function(e){clearTimeout(r),n.resolve(e)}),n.promise},close:function(){r=!0,y.isFunction(n.close)&&n.close()}};function a(e){var t;r||(t=y.extend({apiKey:v.apiKey,allowMixedApiKeyFrames:m.get("allowMixedApiKeyFrames"),agentInstallType:Ge()},e),n.postMessage(t),Dt(function(){d(t)},0))}function s(e){e.promiseId||(t=At(32),e=y.extend(e,{promiseId:t}));var t=C.defer();return o[e.promiseId]=t,a(y.extend(e,{sourceFrame:i.state.frames.frameId})),t.promise}function d(e){try{var t;r||e.apiKey!==v.apiKey&&(!1===e.allowMixedApiKeyFrames||!1===m.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){I.critical("ERROR in cross frame channel",{error:n})}}}var xg="frames/removeFrame";function Rg(e,t,n){return new kg(e,t,n,(e=t,t=n,new(y.isFunction(e.MessageChannel)?Og:Ng)(e,t)))}function kg(e,t,n,i){this.init(e,t,n,i)}y.extend(kg.prototype,{init:function(e,t,n,i){this._store=e,this._window=t,this._singletonMessageHandler=n,this._listeners=[],this._targetOrigin=n.targetOrigin(),this._impl=i,this._impl.onconnect=y.bind(this._frameConnectHandler,this),this._impl.onmessage=y.bind(this._fireMessageListeners,this),this._impl.onrelay=y.bind(this._topMessageHandler,this),this._connectToTop(10,0,function(){this._addControlMessageHandler(),this._connectToTop(250,21,function(){this.close(),this._store.commit("frames/setConnectFailed")})})},_fireMessageListeners:function(t){y.each(this._listeners,function(e){e(t)})},_controlMessageHandler:function(e){e=this._impl._parseMessage(e);e.data&&("pendo::connect"===e.data.action&&this._impl.frameConnect(e),e.data.action===xg)&&this._topMessageHandler(e)},_topMessageHandler:function(e){!e.data||/^pendo::/.test(e.data.action)||this._closed||(e.data.action===xg&&this._impl.frameDisconnect(e),this._impl.broadcast(e))},_connectToTop:function(e,t,n){this._impl.connectToTop({action:"pendo::connect",frameId:this._store.state.frames.frameId},this._targetOrigin),Dt(y.bind(function(){this._connected||(0===t?y.isFunction(n)&&n.call(this):0<t&&this._connectToTop(Math.min(2*e,1e4),t-1,n))},this),e)},_addControlMessageHandler:function(){this._singletonMessageHandler.addEventListener(y.bind(this._controlMessageHandler,this))},_frameConnectHandler:function(e){e.data&&"pendo::connectSuccess"===e.data.action&&(this._connected=!0,this._impl.connectSuccess(e),this._store.dispatch("frames/join"))},addEventListener:function(e,t){"message"===e&&this._listeners.push(t)},postMessage:function(e){this._closed||this._impl.postMessage(e)},close:function(){this._closed=!0,this._listeners.length=0,this._impl.close()}});s={_frameConnectHandler:function(e){y.isFunction(this.onconnect)&&this.onconnect(this._parseMessage(e))},_messageReceived:function(e){y.isFunction(this.onmessage)&&this.onmessage(this._parseMessage(e))},_relayMessage:function(e){y.isFunction(this.onrelay)&&this.onrelay(this._parseMessage(e))},_parseMessage:function(e){var t;return y.isString(e.data)?((t=y.pick(e,"type","origin","source","ports","lastEventId","target")).data=function(e){if(!y.isString(e))return e;try{return JSON.parse(e)}catch(t){return e}}(e.data),t):e}};function Og(e,t){this._window=e,this._ports={},this._singletonMessageHandler=t,this._targetOrigin=t.targetOrigin()}function Ng(e,t){this._window=e,this._frames={},this._isTop=e==e.top,this._singletonMessageHandler=t,this._boundMessageReceived=y.bind(this._messageReceived,this),this._isTop||(this._boundFrameConnectHandler=y.bind(this._frameConnectHandler,this),t.addEventListener(this._boundFrameConnectHandler))}y.extend(Og.prototype,s,{connectToTop:function(e,t){this._closeChannel(),this._openChannel();var n=[];this._channel.port2&&n.push(this._channel.port2),this._window.top.postMessage(e,t,n)},frameConnect:function(e){var t,n=e.ports[0];(t=n)&&y.all(["addEventListener","start"],function(e){return y.isFunction(t[e])})&&((this._ports[e.data.frameId]=n).addEventListener("message",y.bind(this._relayMessage,this)),n.start(),n.postMessage({action:"pendo::connectSuccess"}),n.postMessage({action:"frames/receiveFrame",frame:A.state.frames.frames[A.state.frames.frameId],"pendo-preview":A.state.preview.preview}))},frameDisconnect:function(e){delete this._ports[e.data.frameId]},connectSuccess:function(){this._port.removeEventListener("message",this._boundFrameConnectHandler),this._port.addEventListener("message",y.bind(this._messageReceived,this))},broadcast:function(t){y.each(this._ports,function(e){t.target!==e&&e.postMessage(t.data)})},postMessage:function(e){this._port&&this._port.postMessage(e),e.action===xg&&this._window.top.postMessage(e,this._targetOrigin)},close:function(){y.each(this._ports,function(e){e.close()}),this._ports={},this._closeChannel()},_openChannel:function(){this._channel=new this._window.MessageChannel,this._port=this._channel.port1,this._boundFrameConnectHandler=y.bind(this._frameConnectHandler,this),this._port.addEventListener("message",this._boundFrameConnectHandler),this._port.start()},_closeChannel:function(){this._port&&y.isFunction(this._port.close)&&(this._port.close(),this._port=null,this._channel=null)}}),y.extend(Ng.prototype,s,{connectToTop:function(e,t){this._isTop||this._window.top.postMessage(JSON.stringify(e),t)},frameConnect:function(e){this._frames[e.data.frameId]=e.source,this._relayHandlerAdded||(this._relayHandlerAdded=!0,this._boundRelayMessage=y.bind(this._relayMessage,this),this._singletonMessageHandler.addEventListener(this._boundRelayMessage)),e.source.postMessage(JSON.stringify({action:"pendo::connectSuccess"}))},frameDisconnect:function(e){delete this._frames[e.data.frameId]},connectSuccess:function(){this._singletonMessageHandler.removeEventListener(this._boundFrameConnectHandler),this._singletonMessageHandler.addEventListener(this._boundMessageReceived)},broadcast:function(t){var n=this._singletonMessageHandler.targetOrigin();y.each(this._frames,function(e){t.source!=e&&e.postMessage(JSON.stringify(t.data),n)}),t.source!=this._window&&this._messageReceived(t)},postMessage:function(e){this._isTop?this._relayMessage({data:e,source:this._window}):this._window.top.postMessage(JSON.stringify(e),this._singletonMessageHandler.targetOrigin())},close:function(){var e=this._singletonMessageHandler;e.removeEventListener(this._boundFrameConnectHandler),e.removeEventListener(this._boundMessageReceived),e.removeEventListener(this._boundRelayMessage)}});Mg=window,Lg=Xa,Pg=!(Fg=[]);var Mg,Lg,Fg,Pg,Gg={targetOrigin:function(){return Pg?location.origin:"*"},secure:function(e){Pg=e},addEventListener:function(e){0===Fg.length&&Mg.addEventListener("message",Dg),Fg.push(e)},removeEventListener:function(e){e=Fg.indexOf(e);0<=e&&Fg.splice(e,1),0===Fg.length&&Mg.removeEventListener("message",Dg)},close:function(){Mg.removeEventListener("message",Dg),Fg.length=0}};function Dg(t){Pg&&!Lg(t.origin)||y.each(Fg,function(e){y.isFunction(e)&&e(t)})}function Bg(e){if(!et.addEventListener)return{addEventListener:y.noop,postMessage:y.noop,close:y.noop};var o,a,t=!!window.__pendoExtensions;if(m.get("preferBroadcastChannel")&&!t&&y.isFunction(window.BroadcastChannel)){e.commit("frames/setChannelType","BroadcastChannel");t=new BroadcastChannel("pendo"),o=Gn,a=[],t.removeEventListener=y.wrap(t.removeEventListener,function(e,t,n){var i,r=y.toArray(arguments).slice(1);return"message"===t&&0<=(i=y.findIndex(a,function(e){return e[0]===n}))&&(r[1]=a[i][1],a.splice(i,1)),e.apply(this,r)}),t.addEventListener=y.wrap(t.addEventListener,function(e,t,n){var i,r=y.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)}),t.postMessage=y.wrap(t.postMessage,function(e,t){return t.tabId=o.getTabId(),e.apply(this,y.toArray(arguments).slice(1))});if(t&&y.isFunction(t.postMessage))return t}return e.commit("frames/setChannelType","TopFrameRelay"),Rg(e,window,Gg)}var Wg="guides_blocked",$g="Guides disabled: unreachable endpoint guide.gif";var Ug=w.getLocal(),jg=[],zg="Guide was not shown because this visitor is in a control group of an active experiment for the guide",Zg=[];function Vg(){var e=m.get("guideCssAssetPath");return e||Do("guide.css")}var Yg="_pendo-guide_",Hg="_pendo_g_",Kg=0;function Xg(e){Kg=e}var Jg=function(){return y.any(k,function(e){return e.isShown()})},qg=function(e,t){var n=R("._pendo-close-guide_",e);return n.length||(n=R(document.createElement("button")).attr("id","_pendo-close-guide_").attr("aria-label","close").addClass("_pendo-close-guide_").text("\xd7"),tt()?9<Be&&n.css({top:3}):8===Be?n.css({top:9,right:2}):9===Be?n.css({right:2,top:3}):9<Be&&n.css({top:3}),e=R("._pendo-guide-container_",e)[0]||e,n.appendTo(e),n[0].onclick=function(){t()}),n[0]},Qg=function(n){return y.reduce(k,function(e,t){return n(t)&&e.push(t),e},[])},em=function(e,t,n,i,r){e=xu(Tu(e),t);e&&(e.seenState=n,e.lastSeenAt=i,r!==undefined)&&(e.dismissCount=r)},tm=function(e){for(var t=new RegExp("^"+Hg);e;){if(y.isString(e.id)&&t.test(e.id))return e.id.replace(t,"");e=e.parentNode}return null};function nm(t){y.each(k,function(e){y.isFunction(e.isShown)&&e.isShown()&&e.hide(t)})}var im=function(e){return e&&e.guideId};var rm=function(e,t){var n,i;return im(e)&&(t=e,e=null),(n=t)&&y.isFunction(n.render)?t:t?(n=Tu(t.guideId))&&n.findStepById(t.id):(n=y.find(k,function(e){return e.isShown()}))?((i=e?tm(e.target||e.srcElement||e):i)?(t=n.findStepById(i))||ta("findStepForGuideEvent: step with id "+i):(t=y.find(n.steps,function(e){return e.isShown()}))||ta("findStepForGuideEvent: no step shown"),t):void 0},om=function(e){var t="element"===e.advanceMethod?"click":"mouseover",n=Bu(e);"tooltip"===e.type&&y.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):hu(n,t,gm,!0)};function am(e){return e.isLocked()&&(!e.elements||!e.elements.length||void na('guide "'+e.guideId+'", step "'+e.id+'" locked and rendered'))}var sm=function(e){var e=R("#_pendo-badge_"+e.id),t=e.find("input"),t=0<t.length?t:e;t.length<1||t[0].focus()},dm=function(e){e=y.get(e,"attributes.activation.selector",""),e=Xr(e);e.length<1||e[0].focus()},um=function(){var e=N.getResourceCenterBadge();e?e.element().focus():(e=N.getResourceCenter(),dm(e))},cm=function(e){if(!v.designer&&e&&"building-block"===y.get(e,"attributes.type","")){var t=e.steps[0],n=t.seenReason,i=y.get(e,"launchMethod","").split("-"),r=y.contains(i,"dom"),o=y.contains(i,"badge"),i=_m(e);if(y.get(t,"attributes.isAutoFocus")||i)switch(n){case"badge":o&&sm(t);break;case"dom":r&&dm(e);break;case"launcher":um();break;default:return}}};function lm(e,t){return!e.isMultiApp&&("auto"===t||"repeatGuide"===t)}var pm=function(e,t){var n,i,r,o,a,s=null;e&&e instanceof Object&&e.until&&(s=e.until),(t=rm(e,t))&&t.id?am(t)||("dismissed"===t.seenState?I.info("step already dismissed. can't dismiss again",{contexts:["guides","error"]}):(I.info("onGuideDismissed called",{contexts:["guides"]}),S.beforeDismiss.trigger(t).cancel?I.info("Guide dismiss canceled during runtime in step: "+t.id):s?t.hide({stayHidden:!0}):(om(t),e=t.id,n=Tu(s=t.guideId),i=(i=y.first(n&&n.steps))&&i.seenReason,o=n&&n.language,r=y.get(t,"dismissCount",0)+1,Nm(s,e,E(),i,o),o=b(),em(s,e,"dismissed",o,r),(a=y.isFunction(t.getGuide)&&t.getGuide())&&a.attributes&&a.attributes.doNotResume||wh({guideId:s,guideStepId:e,time:o,state:"dismissed",seenReason:i,visitorId:E(),dismissCount:r}),lm(n,i)&&Fm(o,Lm.DISMISSED),t.hide(),cm(a),Jg()||(Ph(),Gh())))):Ph()},hm=function(e,t,n){var i,r,o,a,s,d,u,c;I.info("onGuideSnoozed called",{contexts:["guides"]}),(t=rm(e,t))?"snoozed"===t.seenState?I.info("step already snoozed. can't snooze again",{contexts:["guides","error"]}):S.beforeSnooze.trigger(t).cancel?I.info("Guide snooze canceled during runtime in step: "+t.id):(n||(n=864e5,I.info("no snooze duration provided, defaulting to 1 day")),am(t)||(om(t),e=t.id,i=t.guideId,r=E(),o=Tu(i),a=o&&o.language,s=y.first(o&&o.steps),s=s&&s.seenReason,d=b(),I.info("snoozing guide for "+n+" ms"),u=d+n,t.snoozeEndTime=u,c=Gm({type:"guideSnoozed",guideId:c=i,stepId:e,visitorId:r,seen_reason:s,language:a,snooze_duration:n}),Wm(c),S.guideSnoozed.trigger(c),em(i,e,"snoozed",d),o&&o.attributes&&o.attributes.doNotResume||wh({guideId:i,guideStepId:e,time:d,state:"snoozed",seenReason:s,visitorId:E(),snoozeEndTime:u}),lm(o,s)&&Fm(d,Lm.SNOOZED),t.hide(),cm(o),Jg())||(Ph(),Gh())):(I.info("missing step. can't snooze",{contexts:["guides","error"]}),Ph(),ta("onGuideSnoozed: missing step"))},fm=function(e){var t,n,i,r=(r=e&&e.step)||rm(e);r?(i=e&&e.params,i=y.find(i,function(e){return"goToStepId"===e.name}),t=i&&i.value,(t=e&&e.destinationStepId?e.destinationStepId:t)?t===r.id?I.info("[goToStep] step id matches the current step",{contexts:["guides","error"]}):(i=Tu(r.guideId),(n=y.find(i.steps,function(e){return e.id===t}))?(n=y.indexOf(i.steps,n),i=y.indexOf(i.steps,r),e.steps=Math.abs(n-i),e.action=e.action||"goToStep",e.destinationStepId=t,i<n?gm(e,r,!1):mm(e,r)):I.info("[goToStep] guide has no step matching the step id",{contexts:["guides","error"]})):I.info("[goToStep] missing step id to go to",{contexts:["guides","error"]})):I.info("[goToStep] missing current step",{contexts:["guides","error"]})},gm=function(e,t,n){if((s=Dv())&&y.each(s.steps,function(e){var t="element"==e.advanceMethod?"click":"mouseover",n=Bu(e);"tooltip"===e.type&&y.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):hu(n,t,gm,!0)}),1===arguments.length&&im(e)&&(s=Eu(e.guideId),i=rm(),s)&&i&&y.first(s.steps).id===i.id&&y.last(s.steps).id===e.id&&(I.info("Cannot skip to last step from first step"),e=null),I.info("onGuideAdvanced called",{contexts:["guides"]}),(t=rm(e,t))===e&&(e=null),t){if(!am(t))if("advanced"!==t.seenState||n)if(S.beforeAdvance.trigger(t).cancel)I.info("Guide advance canceled during runtime in step: "+t.id);else{var i=e&&e.action&&"goToStep"===e.action||!1,r=Tu(t.guideId),o=r&&r.language,a=r&&r.steps&&y.findIndex(r.steps,function(e){return t.id==e.id});if(e&&y.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],Mm(r.id,t.id,E(),t.seenReason,o,u!==a);var c=b();wh({guideId:t.guideId,guideStepId:t.id,time:c,state:"advanced",seenReason:t.seenReason,visitorId:E()}),em(r.id,t.id,"advanced",c)}return gm(r.steps[s],t,!0)}var l,i=t.id,s=t.guideId,p=y.first(r&&r.steps),p=p&&p.seenReason,h=e&&e.destinationStepId,f=(h||(f=e&&y.isNumber(e.steps)&&1<e.steps?e.steps:1,h=(f=y.isNumber(a)&&r&&r.steps&&r.steps[a+f])&&f.id||null),h||I.info("missing destination step id"),I.info("advancing guide"),Mm(s,i,E(),p,o,n,h),I.info("update guide status"),r&&y.last(r.steps).id===i&&(l=y.get(t,"dismissCount",0)+1),(new Date).getTime()),g=(em(s,i,"advanced",f,l),y.isFunction(t.getGuide)&&t.getGuide());g&&g.attributes&&g.attributes.doNotResume||wh({guideId:s,guideStepId:i,time:f,state:"advanced",seenReason:p,visitorId:E(),destinationStepId:h,dismissCount:l}),lm(r,p)&&Fm(f,Lm.ADVANCED),I.info("stop guide"),Ph(),I.info("start guides"),Gh()}else I.info("step already advanced. can't advance again",{contexts:["guides","error"]})}else I.info("missing step. can't advance",{contexts:["guides","error"]}),Ph(),ta("onGuideAdvanced: missing step")},mm=function(e,t){var n,i,r,o,a,s;I.info("onGuidePrevious called",{contexts:["guides"]}),(t=rm(e,t))?"advanced"===t.seenState?I.info("step already advanced. can't go to previous again",{contexts:["guides","error"]}):S.beforePrevious.trigger(t).cancel?I.info("Guide previous canceled during runtime in step: "+t.id):(o=Tu(n=t.guideId),s=e&&e.action&&"goToStep"===e.action||!1,0!==(i=y.indexOf(o.steps,t))&&(r="element"==t.advanceMethod?"click":"mouseover",a=Bu(t),"tooltip"===t.type&&y.isFunction(t.teardownElementEvent)?t.teardownElementEvent(a,r):hu(a,r,gm,!0),a=e&&y.isNumber(e.steps)?e.steps:1,r=y.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)||I.info("missing destination step id"),I.info("advancing guide"),Mm(n,t.id,E(),i,r,!1,o),I.info("update guide status"),a=(new Date).getTime(),em(t.guideId,t.id,"advanced",a),(s=y.isFunction(t.getGuide)&&t.getGuide())&&s.attributes&&s.attributes.doNotResume||wh({guideId:t.guideId,guideStepId:t.id,time:a,state:"advanced",seenReason:i,visitorId:E(),destinationStepId:o}),Ph(),Gh())):(Ph(),ta("onGuidePrevious: missing step"))},vm=function(e){var t;R("._pendo-credits_",e).length||((t=document.createElement("img")).setAttribute("src",Go()+"/img/tiny-logo.png"),t=R(document.createElement("div")).addClass("_pendo-credits_").css({bottom:0,right:v.TOOLTIP_ARROW_SIZE}).append(t),mu.push(t[0]),t.appendTo(e))};function ym(e){return e&&e.attributes&&e.attributes.stayHidden}var bm=function(e,t,n){var i;return tf()&&(i=e.id,e=e.guideId,S.stepEligibility.trigger({stepId:i,guideId:e,eligible:t,reason:n})),t},Im=function(e){var t,n,i=y.partial(bm,e);return ym(e)?i(!1,"dismissed"):e.elementPathRule||"lightbox"!==e.type&&"whatsnew"!==e.type?e.triggerElementPathRule&&!$a(Xr(e.triggerElementPathRule)[0])?i(!1,"trigger_element"):(t=Bu(e),(n=e.targetElement)&&e.elementContainsRulesList&&!Cm(n,e.elementContainsRulesList)?i(!1,"contains_rules"):(n="tooltip"===e.type||fl.isBuildingBlockGuideRelativeToElement(e),e=$a(t),n?e?i(e,"target_element_tooltip"):i(Ua(t),"target_element_tooltip_scroll"):i(e,"target_element"))):i(!0,"")};function wm(e){var t=(R(e).text()||"").trim().toLowerCase(),e=e.value;return t||e}function Cm(e,t){for(var n=wm(e),i=0;i<t.length;i++)if(!Sm(n,t[i]))return!1;return!0}function Sm(e,t){var n=t.matchType,i=t.matchValue,t=t.dataType,e=e||"";if("number"===t){var r=Ot(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 Am=function(e){return Hg+e.id},Em=function(e){var t=e.element,n=y.first(R("#"+Am(e)));t&&n?$a(t)||R.hasClass(n,"mouseover")?Dt(function(){Em(e)},Mh):e.hide&&(e.hide(),Jg())||(Ph(),Gh()):t||!n||e.hide&&(e.hide(),Jg())||(Ph(),Gh())},Tm=function(){return!1},_m=y.partial(y.get,y,"attributes.resourceCenter"),xm=function(t){var e;Jg()&&(e=rm(),om(e),_m(t)?(e=Qg(_m),(e=y.filter(e,function(e){return e.id!==t.id})).length&&A.dispatch("frames/hideGuides",y.pluck(e,"id"))):(nm(),A.dispatch("frames/hideGuides")))},Rm=function(e,t){return!(!e||!e.guideId||!(e=Tu(e.guideId)))&&(xm(e),e.launch(t),e.isShown())},km=function(e,t,n,i,r,o){e=Gm({type:"guideNotSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r});o&&y.extend(e.props,{step_poll_types:o}),Wm(e),S.guideNotSeen.trigger(e)};var Om=function(e,t,n,i,r,o){i||(I.critical("pendo.io guideSeen exception",{guideId:e,stepId:t,error:new Error("seenGuide called without seen reason")}),a=Tu(e),s="auto",i=a&&(a=(a.launchMethod||s).split("-"),!y.contains(a,s))&&a.length?y.first(a):s);var a=Gm({type:"guideSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r}),s=(y.extend(a.props,o),Wm(a),b());wh({guideId:e,guideStepId:t,time:s,state:"active",seenReason:i,visitorId:E()}),em(e,t,"active",s),S.guideSeen.trigger(a)};function Nm(e,t,n,i,r){e=Gm({type:"guideDismissed",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r});Wm(e),S.guideDismissed.trigger(e)}function Mm(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=Gm(e);Wm(t,null,o),S.guideAdvanced.trigger(t)}var Lm={DISMISSED:"latestDismissedAutoAt",SNOOZED:"latestSnoozedAutoAt",ADVANCED:"finalAdvancedAutoAt"};function Fm(e,t){Pm(e,t);var n={};n[t]=e,A.dispatch("frames/changeThrottlingState",n)}function Pm(e,t){y.contains(y.values(Lm),t)&&(y.isFunction(e.getTime)&&(e=e.getTime()),v[t]=e,w.write(t,e,bh),A.dispatch("guideState/updateThrottlingState",{name:t,value:e}))}function Gm(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),y.isString(a.language)||delete a.language,y.extend({guide_id:a.guideId,guide_step_id:a.stepId},y.omit(a,"type","guideId","stepId","visitorId"))),t=Gn.addTracerIds({type:a.type,visitor_id:a.visitorId,account_id:mi(),browser_time:(new Date).getTime(),url:Lo.externalizeURL(),props:e});return S.eventCaptured.trigger(t),t}var Dm=null,Bm=function(e){window.clearTimeout(Dm),Dm=Dt(mv,e)},Wm=function(e,t,n){t=t||500,e.props.duration=n?0:(new Date).getTime()-Kg,wv(),fv.push(e),Bm(t)},$m=function(e,t){return"dismissed"===e.state?null:Tu(e.guideId).nextStep(e,t||Um())},Um=function(){return v.normalizedUrl||jm(Lo.externalizeURL())},jm=function(e){try{var t=new Ci(e),n=y.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(i){return I.error("Invalid URL provided to normalize"),e}},zm=function(e,t){return!fe(e)||new RegExp(e).test(t)},Zm=function(e,t){e=_u(e);return!!e&&(!(t=Rm(y.first(e.steps),t||"api"))&&e.control&&I.info(zg),t)},Vm=function(e,t){e=Tu(e);return!!e&&(!(t=Rm(y.first(e.steps),t||"api"))&&e.control&&I.info(zg),t)};function Ym(e,t){return t=parseInt(t,10),isNaN(t)||!y.isNumber(t)||!(y.isNumber(e)&&e<t)&&y.isNumber(e)?e:t}var Hm,Km=function(){Ph(),Fh(),N.removeNotificationBubble(),lf(),Ps()};function Xm(){Ph(),sa(),v.segmentFlags=[],v.doNotProcess=!0,I.info("not tracking visitor due to 451 response")}function Jm(e){var t;Hm&&(451===e.statusCode&&(Xm(),Hm.deferred.reject(e)),y.isString(e.id)&&e.id!==Hm.id||(t=y.indexBy(v.guides,"id"),y.extend(v,e),v.guides=y.map(v.guides,function(e){return 1==y.keys(e).length&&e.id?t[e.id]:e}),Hm.deferred&&Hm.deferred.resolve(),Hm=null))}var qm=function(e,t){var n=Bo(),i=y.uniqueId(),r=C.defer(),o=(Hm={id:i,deferred:r},hp()||((o=fp())?(I.info("sending metadata: "+JSON.stringify(o),{contexts:["guides","metadata"]}),t.metadata=o):I.info("no metadata to send",{contexts:["guides","metadata"]})),yt(t)),i={id:i,jzb:o,v:dt,ct:(new Date).getTime()},n=(n&&t.accountId&&"ACCOUNT-UNIQUE-ID"!==t.accountId&&(i.acc=wt(t.accountId)),tf()&&(i.debug=!0),Qo(Qm.endpoint(),e,i)),t=js.get();return o=2e3<n.length||!y.isEmpty(t)?(delete i.jzb,n=Qo("guide.json",e,i),i=y.extend({events:o},t),Qm.post(n,i,v,y.noop)):Qm.load(n,v,y.noop),C.all([o["catch"](function(e){return 451===e.status&&Xm(),C.reject(e)}),r.promise,(t=Qm,i=e,"1"===(n=w.read(Wg))?(I.info($g),C.resolve({success:!1,cached:!0})):"0"===n?C.resolve({success:!0,cached:!0}):(n=Qo("guide.gif",i,{jzb:"eJwFwIEIAAAAwDDQd3-N1QABFQC5",ct:b(),v:dt}),(t.usesXhr()?oo.get(n):ia(n)).then(function(){return{success:!0}},function(e){return e&&e.status?{success:!0}:{success:!1}})))]).then(function(e){var t,e=e[2];if((t=e).cached||(t.success?w.write(Wg,"0",144e5):(I.info($g),w.write(Wg,"1",18e5))),!e.success)return C.reject()})},Qm=Xu;function ev(e){e=y.find(e.steps,function(e){return e.pageId&&!e.regexUrlRule});return!e||(I.critical("pendo.io guide validation exception",{guideId:e.guideId,stepId:e.id,error:new Error("missing regexUrlRule for page "+e.pageId+'"')}),!1)}function tv(n){return y.every(Zg,function(e){try{return e(n)}catch(t){return console.debug("Error in guide processor",e,n.id),!1}})}function nv(e,t){return e.attributes||(e.attributes={}),!isNaN(e.attributes.priority)&&y.isNumber(e.attributes.priority)||(e.attributes.priority=t),-e.attributes.priority}var iv,rv=function(){return!m.get("disableGlobalCSS")};function ov(e,t){var n=m.get("dropAnonymous");if(ii(e)&&n)I.info("loading guides blocked for anonymous visitors due to dropAnonymous config setting being set to true"),y.isFunction(t)&&t("error: guides are blocked");else if("1"===w.read(Wg))I.info("guide events are blocked, load guides cancelled"),y.isFunction(t)&&t("error: guides are blocked");else{if(Rs(ks()))return 1;I.info("bad url: probably local file system",{contexts:["guides","error"]}),y.isFunction(t)&&t("error: invalid url")}}var av=function(e,o,a,s){var t,d,n,i,r,u,c,l,p,h,f=C.defer(),g=!1;return e=e||v.apiKey,ov(o=o||E(),s)?(I.info("loading guides for "+a+"...",{context:["guides"]}),a=Lo.externalizeURL(a),t=av.lastVisitorId!==o,d=t?y.noop:(r=k,(i=y.find(r,function(e){return y.isFunction(e.isRendered)&&e.isRendered()&&!e.isTopLevel}))?(n=y.chain(i.steps).filter(function(e){return e.isRendered()}).indexBy("id").value(),function(e){e=y.findWhere(e,{id:i.id});e&&!y.get(e,"attributes.doNotResume")&&y.each(e.steps,function(e){var t=n[e.id];!t||e.seenState&&"active"!==e.seenState||e.show(t.seenReason)})}):function(){}),r=(av.lastVisitorId=o,Fh(),A.commit("guideState/setLastGuideRequestAt",b()),{visitorId:o,accountId:mi(),url:a,oldVisitorId:li=li===undefined&&ri()?yi(Qn):li}),u=v,h=av,void 0===c&&(c=b()),l=[],m.get("cacheGuides")&&!(l=c-(h.lastUncached||0)<m.get("cacheGuidesTimeout")?y.map(u.guides,function(e){return y.pick(e,"id","lastUpdatedAt")}):l).length&&(h.lastUncached=c),p=((u=l).length&&!t&&(r.cachedGuides=u),y.uniqueId()),h=(av.reqId=p,qm(e,r).then(function(){var e,t,n,i,r;g||v.designer||(av.reqId!==p?f.resolve():(S.deliverablesLoaded.trigger(),I.info("successfully loaded guides for "+a,{contexts:["guides"]}),v.designerEnabled&&"true"!==Ug.getItem("pendo-designer-mode")&&gg.loadPluginJs(),Km(),(r=v.lastGuideStepSeen)?(A.dispatch("guideState/receiveLastGuideStepSeen",r),r.visitorId=o,A.dispatch("guideState/updateLastGuideStepSeen",r),A.commit("guideState/setLastGuideRequestAt",b()),yu={},r=v.guides,Cu(r=y.chain(r).map(mc).filter(ev).filter(tv).sortBy(nv).value()),e=Ru(),A.dispatch("guideState/load",(n=Ih,i=m.get("crossAppGuideStorageSuffix"),w.read(n,!1,i))),A.dispatch("guideState/apply"),v.latestDismissedAutoAt=Ym(v.latestDismissedAutoAt,w.read("latestDismissedAutoAt")),A.dispatch("guideState/updateThrottlingState",{name:"latestDismissedAutoAt",value:v.latestDismissedAutoAt}),v.finalAdvancedAutoAt=Ym(v.finalAdvancedAutoAt,w.read("finalAdvancedAutoAt")),A.dispatch("guideState/updateThrottlingState",{name:"finalAdvancedAutoAt",value:v.finalAdvancedAutoAt}),v.latestSnoozedAutoAt=Ym(v.latestSnoozedAutoAt,w.read("latestSnoozedAutoAt")),A.dispatch("guideState/updateThrottlingState",{name:"latestSnoozedAutoAt",value:v.latestSnoozedAutoAt}),A.dispatch("healthCheck/init",r),A.dispatch("frames/changeGuideList",e),v.eventProperties=xv(v.features),e.length?C.all([hv(),Ag(yc(v.globalJsUrl)),bv(r),Eg.initializeWatermark(r),uv(5e3)].concat((t=r,y.map(sv,function(e){return e(t)})))).then(function(){av.reqId===p&&(A.getters["frames/isLeader"]()&&d(k),S.guidesLoaded.trigger(),Gh(),clearTimeout(iv)),y.isFunction(s)&&s(),f.resolve()},function(e){I.error("Post loadGuide request failed: ",e),S.guidesFailed.trigger(),f.reject()}):(S.guidesLoaded.trigger(),f.resolve())):I.info("lastGuideStepSeen is not set, shutting down guides")))})["catch"](function(e){S.guidesFailed.trigger(),f.reject(e)}),m.get("guideTimeout")||m.get("guides.timeout")),y.isNumber(h)&&(clearTimeout(iv),iv=Dt(function(){var e;e=f,Km(),e.reject(),g=!0},h))):f.reject(),f.promise};var sv=[];function dv(e,t){var n,i=document.getElementById(e);return i&&i.href&&0<=i.href.indexOf(t)?C.resolve():(n=C.defer(),R(i).remove(),v.loadResource(t,function(){n.resolve()}).id=e,n.promise)}var uv=y.memoize(function(t,n,e){if(!rv()||!cv(k))return C.resolve();n=n||b,e=e||"_pendo-hidden_";var i=R(document.createElement("div")).addClass(e).css({position:"absolute",bottom:"0px",right:"0px",width:"0px",height:"0px",visibility:"hidden"}).appendTo(R.getBody()),r=n(),o=C.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=f(e);if(e)return"none"===e.display}});function cv(e,t){return t&&t.designer||y.any(e,function(e){return!Lu(e)&&y.any(e.steps,function(e){return!(e.domUrl||e.domJsonpUrl||e.domJson)})})}var lv="_pendo-default-css_",pv="_pendo-css_";function hv(){var e=[];if(!rv())return C.resolve();cv(k,v)&&e.push(dv(lv,Vg()));var t=((v.guideWidget||{}).data||{}).guideCssUrl;return t?e.push(dv(pv,yc(t))):R("#"+pv).remove(),C.all(e)}var fv,gv,mv=function(e){fv&&fv.flush(e)},vv=function(){return jg};function yv(e){var t=Js(dd,nd("visitor_id"),nd("props.guide_id"),nd("props.source"),sd,ud(),pd(e),hd,fd),n=Js(Qs,ed(e.cache),y.noop);return new Od(y.extend({processSilos:t,packageSilos:n},e))}var bv=function(e){return N.initializeResourceCenter(e)},L={postMessage:y.noop,close:y.noop},Iv=L;function wv(){return fv=fv||yv({cache:jg,apiKey:function(){return v.apiKey},beacon:"guide",allowPost:!0,preferFetch:et.safari}),gv=gv||yv({cache:[],apiKey:function(){return v.apiKey},beacon:"poll",allowPost:!0,preferFetch:et.safari}),function(){fv.clear(),gv.clear()}}function Cv(e){var e=e.blockedURI;e&&-1!==e.indexOf("/data/guide.json")&&m.get("cacheGuides")&&((e=m.getLocalConfig()).cacheGuides=!1,m.setLocalConfig(e),no(window,"securitypolicyviolation",Cv),Pv())}var Sv=function(){var e,t,n,i,r,o,a,s,d,u=[],c=(u.push(wv()),af.run(),u.push(af.stop),S.appHidden.on(function(){mv({hidden:!0})}),S.appUnloaded.on(function(){mv({unload:!0}),A.dispatch("frames/leave")}),S.metadata.on(function(e){e.data[0].storeChanged&&!hp()&&Fv()}),S.identify.on(function(){Fv()}),S.urlChanged.on(function(){Fv(Lo.get())}),S.guideUpdateComplete.on(function(){var e,t,n;e=y.filter(k,function(e){return y.isFunction(e.outsideTimebox)&&e.outsideTimebox()}),Au.addGuide(e),Ac.processPrefetch(),e=k,t=vu,m.get("disablePrefetch")||(t=y.keys(t)).length&&(n=y.indexBy(e,"id"),y.each(t,function(e){var e=n[e];e&&(e=y.first(e.steps))&&y.isFunction(e.fetchContent)&&e.fetchContent(!0)}))}),S.guidesLoaded.on(function(){N.fetchAnnouncementGuidesContent(k,A)}),S.guideListChanged.on(function(e){var n,e=e.data[0].guideIds;(e=e)&&e.length&&(n=y.indexBy(e),y.each(vu,function(e,t){n[t]||(e.hide(),delete vu[t])}))}),u.push((e=document,t=function(){Lo.get()===Lv.lastUrl&&Pv()},n=function(){Km()},c=window.Turbolinks,a=window.Turbo,c&&(i=c.EVENTS&&c.EVENTS.LOAD),(i=a&&a.visit?"turbo:load":i)?(r=to(e,i,t),o=to(e,"turbo:before-cache",n),function(){r(),o()}):function(){})),m.get("guides.tooltip.arrowSize"));return y.isNumber(c)&&(v.TOOLTIP_ARROW_SIZE=c),Iv=Bg(A),L=_g(Iv,A),u.push(function(){return L.close()}),u.push(Gn.tabIdChanged(function(){var e=Gn.getTabId();A.commit("frames/setTabId",e),A.dispatch("frames/join")})),A.dispatch("frames/init"),A.dispatch("frames/join"),u.push((s=[],A.dispatch("guideState/init"),s.push(to(window,"focus",Ch)),s.push(to(window,"storage",function(e){A.dispatch("guideState/storageChanged",e)})),function(){return y.each(s,function(e){e()})})),u.push(function(){Ov.cancel(),ff.cancel()}),u.push(to(window,"resize",Ov)),u.push(to(window,"scroll",ff,!0)),u.push(to(window,"gestureend",Nv,!0)),u.push(to(window,"securitypolicyviolation",Cv)),u.push(function(){for(var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],t=[],n=0;n<e.length;n++)t.push(to(document,e[n],Mv));return function(){y.each(t,function(e){e()})}}()),m.get("preferMutationObserver")&&et.MutationObserver&&(d=y.debounce(function(e){A.dispatch("guideUpdate/documentChanged")},50),u.push(function(){d.cancel()}),u.push(l(window,"animationend",d)),u.push(l(window,"transitionend",d)),u.push(l(window,"mouseover",d)),A.commit("guideUpdate/setUseObserver"),m.get("observeShadowRoots")&&A.commit("guideUpdate/setObserveShadowRoots"),u.push(function(){return A.dispatch("guideUpdate/stopObserver")})),w.registry.addLocal(Lm.ADVANCED),w.registry.addLocal(Lm.DISMISSED),w.registry.addLocal(Lm.SNOOZED),w.registry.addLocal(Wg),kc.initialize(),function(){Lv.reset(),Km(),Fv.reset(),av.reqId=null,y.each(u,function(e){e()}),R("#"+lv).remove(),R("#"+pv).remove(),kc.teardown()}},Av=function(){return m.get("guides.disabled",!1)||m.get("disableGuides",!1)||!qo},Ev=function(){return m.get("guides.delay",!1)||m.get("delayGuides",!1)},Tv=function(e){var t=m.getLocalConfig();t.disableGuides=e,m.setLocalConfig(t)},_v=function(e){var t=m.getLocalConfig();t.delayGuides=e,m.setLocalConfig(t)},xv=wi(function(e){if(e&&e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n].featureRule,r=y.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}}),Rv=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement},kv=function(){I.debug("adjustActiveGuideOnResize firing");var e=Dv();e&&e.step&&!v.ignoreResize&&e.step.redraw()},Ov=y.debounce(function(){var e;-1<y.get(document,"activeElement.id","").indexOf("pendo-video-")?(!(e=Rv())||e.id.indexOf("pendo-video-")<0)&&Dt(function(){kv()},150):kv(),ff()},50),Nv=function(e){1!==e.scale&&Ov()},Mv=function(e){var t=y.get(document,"activeElement.id",""),e=y.get(e,"target.id","");y.filter([t,e],function(e){return-1<e.indexOf("pendo-video-")}).length&&(Rv()?v.ignoreResize=!0:Dt(function(){v.ignoreResize=!1},1e3))};function Lv(e){var t,n,i,r,o=E(),a=mi();e=e||Lo.get(),n=o,i=a,r=$l,!(t=e)||!v.apiKey||Av()&&"true"!==Ug.getItem("pendo-designer-mode")||t===Lv.lastUrl&&n===Lv.lastVisitorId&&i===Lv.lastAccountId&&r===Lv.lastMetadataHash||(Lv.lastUrl=e,Lv.lastVisitorId=o,Lv.lastAccountId=a,Lv.lastMetadataHash=$l,av(v.apiKey,o,e)["catch"](y.noop))}Lv.reset=function(){y.each(["lastUrl","lastVisitorId","lastAccountId","lastMetadataHash"],function(e){Lv[e]=null})};var Fv=function(e){qo&&(Fv.reset(),Fv.pending=Dt(function(){delete Fv.pending,Lv(e)},0))};function Pv(){Lv.lastUrl=null,Fv()}function Gv(e){e=Zg.indexOf(e);-1!==e&&Zg.splice(e,1)}function Dv(){var e,n,t=y.find(k,function(e){return e.isShown()});return!t||y.get(t,"attributes.resourceCenter.isModule")&&!(t=N.getResourceCenter())?null:(e=y.find(t.steps,function(e,t){return n=t,e.isShown()}),{guide:t,steps:y.filter(t.steps,function(e,t){return e.isShown()}),step:e,stepIndex:n})}function Bv(e){var t,n=y.get(e,"value","");-1!==y.get(e,"parentElement.className","").indexOf("_pendo-nps-poll-"+n+"-wrapper")&&(e=R("._pendo-nps-open-text-poll-question"),t=R("._pendo-nps-open-text-poll-input")[0],y.forEach(e,function(e){"none"!==y.get(e,"style.display","none")&&t&&t.setAttribute("aria-labelledby",e.id)}))}Fv.reset=function(){Fv.pending&&clearTimeout(Fv.pending)};var Wv,$v,Uv,jv,zv,Zv=function(){var n=this,o=(this.eventable=Un.call({}),this.eventable.on("pendoEvent",function(e){try{n.eventHandler(e)}catch(t){e=e&&e.action||"NO ACTION DEFINED";I.critical("Error in Action "+e,{error:t})}}),this.eventHandler=function(e){if(!e.ignore&&!v.designer){var t=e.step.guideElement;switch(e.action){case o.advanceGuide:gm(e,e.step);break;case o.previousStep:mm(e,e.step);break;case o.goToStep:fm(e);break;case o.submitPoll:this.submitPoll(e);break;case o.guideSnoozed:var n=e&&e.params&&e.params[0]&&e.params[0].value;hm(e,e.step,n);break;case o.dismissGuide:N.attemptToPreserveIntegrationIframes(e),!function(e){if(!e||!e.step)return pm();var t=e.step.getGuide();if(t&&t.attributes&&t.attributes.resourceCenter)return N.dismissResourceCenter(t);pm(e,e.step)}(e);break;case o.showElements:this.setElementDisplay(e,"block"),e.srcElement&&Bv(e.srcElement),Fl((i=Pc(e.step.domJson)).props.id,t),Pl(i.props.id,t),g.flexAllThings(i.props.id,t),Ll(i.props.id,t);break;case o.hideElements:this.setElementDisplay(e,"none"),Fl((i=Pc(e.step.domJson)).props.id,t),Pl(i.props.id,t),g.flexAllThings(i.props.id,t),Ll(i.props.id,t);break;case o.slideElement:this.setElementAnimation(e);break;case o.showGuide:n=y.find(e.params,function(e){return"reason"===e.name});Vm(e.params[0].value,n&&n.value);break;case o.launchGuide:this.launchGuide(e);break;case o.renderResourceCenterModule:var i=a(e);N.replaceResourceCenterContent(e.params[0].value,i);break;case o.returnToResourceCenterHome:n=N.findResourceCenterHomeView(Iu());if(!n)return;N.attemptToPreserveIntegrationIframes(e),N.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),fm(e);break;case o.confirmation:this.confirmGuide(e)}var r=Zv.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=R("[data-pendo-poll-id]",i.guideElement[0]);n=n.concat(y.map(r,function(e){var t,n=R("textarea,input:text,select,input:radio:checked",e);if(n&&n.length&&n[0].value)return t=e.getAttribute("data-pendo-poll-id"),e=y.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(y.compact(n)):I.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=R(y.find(e.params,function(e){return"selectors"===e.name}).value,n.guideElement[0]);y.each(e,function(e){e.style.display=t})},this.setElementAnimation=function(e){var t=R(y.find(e.params,function(e){return"selector"===e.name}).value,e.step.guideElement[0])[0],n=y.find(e.params,function(e){return"transition"===e.name}).value,e=y.find(e.params,function(e){return"left"===e.name}).value;t.style.transition=n,t.style.left=e},this.openLink=function(e){var t=y.find(e.params,function(e){return"url"===e.name}).value,e=y.find(e.params,function(e){return"target"===e.name}).value;"_self"===e&&bs()&&(e="_top");window.open(t,e)},this.goToStep=fm,this.searchGuides=function(e){var t="",n=e.srcElement.value,e=R("#pendo-resource-center-container"),i=e.find('[id^="pendo-list-item-"]'),r=e.find('[id^="pendo-results-count-container"]'),e=e.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,R(i[d]).text()&&(-1!==R(i[d]).text().toLowerCase().indexOf(n.toLowerCase())?(R(i[d]).css({display:"list-item"}),u=!(a=!1)):R(i[d]).css({display:"none"})),y.isFunction(i[d].getAttribute)&&(t=i[d].getAttribute("data-_pendo-text-list-item-1").split(","),y.forEach(t,function(e){y.contains(o,e)||o.push(e)})),this.searchAllTerms(o,t,n)&&i[d]&&(R(i[d]).css({display:"list-item"}),u=!(a=!1)),t="",u)&&s++}a?R(e[0]).css({display:"block"}):R(e[0]).css({display:"none"});{var c;r&&r.length&&(r[0].innerHTML="",n)&&(c="",0===s?(c=e[0].innerText,this.debounceAnnounceResults(r[0],c)):(e=1===s?"data-pendo-aria-label-alert-singular":"data-pendo-aria-label-alert-plural",(c=r[0].getAttribute(e))&&(c=c.replace("{RESULT_COUNT}",s),this.debounceAnnounceResults(r[0],c))))}},this.searchAllTerms=function(t,e,n){return!!e&&e.some(function(e){return y.contains(t,e)&&e===n})},this.confirmGuide=function(e){var e=e.step,t=function(e){if(e.confirmationElementPathRule)return Xr(e.confirmationElementPathRule)[0]}(e);e.advance(),t?t.click():I.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){y.get(e,"params.2.value.doNotDismiss")||pm(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=Tu(e.params[0].value),i=e.params[1].value,r=(r=y.find(n.steps,function(e){return e.id===i}))||n.steps[0],xm(n),r.show("api")):t&&Vm(e.params[0].value)}},this.debounceAnnounceResults=y.debounce(function(e,t){e.innerHTML=t},300),{advanceGuide:"advanceGuide",previousStep:"previousStep",goToStep:"goToStep",submitPoll:"submitPoll",guideSnoozed:"guideSnoozed",dismissGuide:"dismissGuide",showElements:"showElements",hideElements:"hideElements",slideElement:"slideElement",showGuide:"showGuide",launchGuide:"launchGuide",renderResourceCenterModule:"renderResourceCenterModule",returnToResourceCenterHome:"returnToResourceCenterHome",openLink:"openLink",searchGuides:"searchGuides",submitPollAndGoToStep:"submitPollAndGoToStep",confirmation:"confirmation"});function a(e){return e.params.find(function(e){return"transitionDirection"===e.name})?[{name:"transitionCss",type:"string",value:"left 200ms"},{name:"transitionDirection",type:"string",value:"right"}]:[]}return this},Vv=(Zv.registerAction=function(e,t){e&&"string"==typeof e&&t&&"function"==typeof t&&((Zv.prototype.registeredActions=Zv.prototype.registeredActions?Zv.prototype.registeredActions:{})[e]=t)},Zv.deregisterAction=function(e){e&&"string"==typeof e&&delete(Zv.prototype.registeredActions=Zv.prototype.registeredActions?Zv.prototype.registeredActions:{})[e]},Wv="guideActivity",$v=function(){return(new Date).getTime()-Kg},Uv=y.isObject,jv=y.findWhere,{type:Wv,handler:function(e){var t,n=e.data[0],e=e.data[1];e=e,Uv(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if(y.isString(e.id)&&0===e.id.indexOf("pendo-base"))return!0;if(Uv(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return Yv(e)}(t)||function(e){return Kv(e)}(t)||function(e){return Hv(e)}(t))&&(e=function(e){var t=function(e){for(var t=0,n=zv;t<n.length;t++){var i=(0,n[t])(e);if(i)return i}return Dv()}(e);if(t&&(!function(e){e=e.guide.activeModule;return e&&e.attributes&&e.attributes.resourceCenter&&"AnnouncementsModule"===e.attributes.resourceCenter.moduleId}(t)||(t=function(e){var t=R("#"+e).closest("[data-pendo-announcement-guide-id]").attr("data-pendo-announcement-guide-id"),e=y.find(Iu(),function(e){return e.id===t});return e?{guide:e,step:e.steps[0]}:undefined}(e.id)))&&t.step&&t.step.domJson){var n,i,r,e=Kv(e)||Yv(e)||Hv(e)||{type:e.tag,id:e.id},o=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(o)return n=e.id,o=function(e,t){if(e!==undefined){if("a"===e.type)return[{action:"openLink",url:To(e.props.href),target:e.props.target}];if(e.actions!==undefined)return y.map(e.actions,function(e){switch(e.action){case"automation":var t=jv(e.parameters,{name:"automationIds"});return{action:e.action,automationIds:t};case"openLink":var t=jv(e.parameters,{name:"url"}),n=jv(e.parameters,{name:"target"});return{action:e.action,url:To(t.value),target:n.value};case"submitPollAndGoToStep":case"goToStep":t=jv(e.parameters,{name:"goToStepId"});return{action:e.action,guideStepId:t.value};case"guideSnoozed":n=jv(e.parameters,{name:"snooze_duration"}),t=jv(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&&y.isArray(e.templateChildren)&&e.templateChildren[t.templateChildIndex])return[{action:"showGuide",guideId:e.templateChildren[t.templateChildIndex].id}]}return[]}(o,e),r=o[0],i=(r=void 0===r?{}:r).action,r=r.guideId,"showGuide"===i&&r&&(n+="-"+r),Gm({type:Wv,visitorId:E(),ui_element_id:n,ui_element_type:e.type,ui_element_actions:o,guideId:t.guide.id,stepId:t.step.id,duration:$v(),language:t.guide.language})}}(n))&&Wm(e)},registerGuideResolver:function(e){zv.push(e)},removeGuideResolver:function(e){e=zv.indexOf(e);-1!==e&&zv.splice(e,1)}});function Yv(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-button/.test(e.id))?{type:e.tag,id:e.id}:Xv(e)||!Uv(e.parentElem)?null:Yv(e.parentElem)}function Hv(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 Xv(e)||!Uv(e.parentElem)?null:Hv(e.parentElem)}function Kv(e){return"A"===e.tag?{type:e.tag,id:e.id}:Xv(e)||!Uv(e.parentElem)?null:Kv(e.parentElem)}function Xv(e){return y.isString(e.id)&&0===e.id.indexOf("pendo-guide-container")}var Jv=[],qv=!(zv=[]),Qv={agent:{getJwtInfoCopy:js.get,treatAsAdoptPartner:Bo},agentStorage:w,analytics:{ptm:function(){return Rd},collectEvent:Ks},attachEvent:l,ConfigReader:m,Events:S,EventTracer:Gn,EventRouter:Zv,Extensions:{API:{addTopic:function(e,t){var n=mp[e]||{};y.extend(n,t),mp[e]=n}}},frames:{getChannel:function(){return Iv}},getAssetUrl:Do,getEventable:function(){return Un.call({})},GlobalRuntime:{addGlobalScript:kc.addGlobalScript,removeGlobalScript:kc.removeGlobalScript},GuideActivity:Vv,GuideLoop:{addUpdatePhase:Xh,removeUpdatePhase:Jh},guides:{addProcessor:function(e){return Zg.push(e),y.partial(Gv,e)},removeProcessor:Gv,registerDisplayableGuides:function(e,t){y.isArray(t)&&(yu[e]=t)},removeDisplayableGuides:function(e){delete yu[e]}},hosts:{SERVER:rt},NodeSerializer:Qd,q:C,sessionStorage:w.getSession(),sizeElements:Nl,store:A,Tombstone:Au,transmit:{buildBaseDataUrl:Qo,fetchKeepalive:ra,sendBeacon:oa},log:I,util:{trim:gt,base64EncodeString:wt,parseUrl:Ja},constants:{URL_MAX_LENGTH:2e3}};function ey(t){y.find(Jv,function(e){return e.name===t.name})?I.warn("Plugin with name ".concat(t.name," already exists. Skipping registration.")):(Jv.push(t),qv&&t.initialize(v,Qv))}function ty(){y.each(Jv,function(e){y.isFunction(e.teardown)&&e.teardown(v,Qv)}),qv=!1}wp.registerExtensionsByUse("plugin",function(e){return y.extend(e.uri,y.pick(e,"name")),ey(e.uri),e},function(e){return!!e.uri.initialize&&!!e.uri.teardown});var ny=!1;function iy(){ny||(S.identify.on(function(e){var t,n,e=e.data[0];n=(t=e).old_visitor_id,t=t.visitor_id,(ii(n)?ni(t)?ii(t)?(I.info("Visitor is anonymous: "+t),1):si(t)?(I.info("Visitor id is the default: "+t),1):(I.info("Re-mapping visitor identity from "+n+" to "+t),0):(I.info("Not valid visitor id: "+t),1):(I.info("Visitor is already identified: "+n),1))&&(n=(t=e).old_account_id,t=t.account_id,ni(t)?n===t||(I.info("Re-mapping account identity from "+n+" to "+t),0):(I.info("Not valid account id: "+t),1))||(Ks("identify",e),Ps())}),S.metadata.on(function(e){var t;hp()||(t=(e=e.data[0]).options,e.hashChanged&&(Ks("meta",t),Ps()))}),ny=!0)}ry="guideActivity",oy=function(){return(new Date).getTime()-Kg},ay=y.isObject;var ry,oy,ay,sy={type:ry,handler:function(e){var t,n=e.data[0],e=e.data[1];e=e,ay(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if("pendo-resource-center-container"==e.id)return!0;if(ay(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return cy(e)}(t)||function(e){return dy(e)}(t)||function(e){return uy(e)}(t))&&(e=function(e){var t=N.getResourceCenter();if(t){var n=t.activeModule,i=cy(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=dy(e)||uy(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),Gm({type:ry,visitorId:E(),ui_element_id:i.elementId,ui_element_type:i.type,ui_element_actions:i.actions,guideId:i.guideId,stepId:i.stepId,duration:oy(),language:i.language})}}(n))&&Wm(e)}};function dy(e){return-1!==e.cls.split(" ").indexOf("_pendo-resource-center-module-list-item")?{type:"BUTTON",elementId:R("#"+e.id).closest("[data-pendo-module-guide-id]").attr("data-pendo-module-guide-id")}:"pendo-resource-center-container"!==e.id&&ay(e.parentElem)?dy(e.parentElem):null}function uy(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&&ay(e.parentElem)?uy(e.parentElem):null;t=N.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 cy(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&&ay(e.parentElem)?cy(e.parentElem):null}var ly=function(e){return(e=e||v).doesExist(e.apiKey)};var py=0,hy="initializeImmediately",fy=[],gy=wi(function(e){if("complete"===document.readyState||y.get(e,hy)||m.get(hy))if(I.info("pendo.initialize called with "+JSON.stringify(e)),v.apiKey)1==py++&&I.info(["pendo.initialize only needs to be called once",Tt()?" per namespace":"",". Use pendo.updateOptions to update metadata after the agent has initialized."].join(""));else{if(e=e||{},y.isEmpty(js.get())&&(r=js.getJwtOptions(e,"initialize"))&&(js.set(y.pick(e,"jwt","signingKeyName")),y.extend(e,r,{forceAnonymous:!0})),y.isString(e))return oo.get(e).then(function(e){return ue(h=e.data),gy()});A.dispatch("location/init",e.location||{}),m.setLocalConfig(e),Po(),v.HOST=ko;var t,n,i,r=m.get("cookieDomain");r&&(r=r,t=location.host,r?y.isString(r)&&(t=t.replace(/:\d+$/,""),r=r.replace(/^\./,""),n=new RegExp("\\."+Yt(r)+"$"),i=new RegExp("^"+Yt(r)+"$"),n.test(t)||i.test(t))&&(qt="."+r):qt=r),Hf.discoverKeys(e),Hf.getApiKey()?(A.commit("metadata/setMetadata",{selfHosted:pp()}),e.logStackTraces&&(v.logStackTraces=e.logStackTraces),m.get("preferBroadcastChannel")&&Gg.secure(!0),fy.push((_d=Os.events=Ss,xd=Os.trackEvents=As,Rd=Md({cache:_d,silos:Os.silos,apiKey:ea,beacon:"ptm",allowPost:!0}),kd=Md({cache:xd,silos:Os.trackEventSilos,apiKey:ea,beacon:"ptm",allowPost:!0,params:{type:"track"}}),Ms(Rd),Ms(kd),function(){Bs(),Ls(Rd),Ls(kd)})),qo&&(w.registry.addLocal(qn),w.registry.addLocal(Qn),w.registry.addLocal(ei),w.registry.addLocal(ap),w.registry.addLocal(Qh),v.disableGuideCenterContentSearch=e.disableGuideCenterContentSearch,n=(n=e).events,y.each(void 0===n?[]:n,function(e,t){Ku[t]&&Ku[t](e)}),fy.push(Sv()),iy(),fy.push(uu()),fy.push((y.each(Jv,function(e){e.initialize(v,Qv)}),qv=!0,ty)),fy.push((t=e,w.registry.addLocal(mf),w.registry.addLocal(vf),y.find([y.partial(Xf.launchOnToken,window.location),y.partial(yf,window),y.partial(Xf.localStorageNavigation,t)],function(e){return e()}),t.enableDesignerKeyboardShortcut||!m.get("disableDesignerKeyboardShortcut")?gg.listen():function(){})),S.appUsage.on(Vv.handler),S.appUsage.on(sy.handler),fy.push(Gs(Es))),ri()||oi(),v.updateOptions(e),e.visitorId&&e.visitorId!=ai&&v.identify(e.visitorId),fy.push(Lo.watch(function(){v.pageLoad()})),qo&&S.ready.trigger(),Ld(Lo.get()),py++,window.parent&&window.parent.postMessage&&"function"==typeof window.parent.postMessage&&((i=Gg.targetOrigin())?window.parent.postMessage({type:"announce-frame-initialized",destination:"pendo-designer-agent",source:"pendo-designer-agent",localStorageRouter:!0},i):I.warn("Unable to announce frame to designer plugin, targetOrigin is not set. Check if broadcastChannel is enabled and cross origin frames are allowed.")),yy()):I.debug("API key is not set, Pendo will not initialize.")}else re(v,"initialize",arguments)});function my(e){return!y.isArray(e)||y.isEmpty(e)}function vy(e){if(!my(e))return y.find(e,function(e){return"initialize"===e[0]})}function yy(i){var e;return!my((i=i||v)._q)&&(e=!!vy(i._q),ly(i)||e)?(e=i._q.splice(0,i._q.length),y.reduce(e,function(e,t){var n;return y.isArray(t)&&(n=i[t.shift()],y.isFunction(n))?e.then(function(){return n.apply(i,t)}):e},C.resolve()).then(yy)):C.resolve()}function by(){ly()?I.info("already running"):(window.pendo_options&&gy(window.pendo_options),yy())}function Iy(){S.appHidden.trigger(),S.appUnloaded.trigger(),y.each(fy,function(e){e()}),Ld.reset(),fy.length=0,Gg.close(),Un.clear(S),Un.clear(Ku),delete v.apiKey,py=0}var wy,Cy,Sy={getActiveGuide:Dv,smartNextStep:function(e){var t,n=Dv();n&&(t=n.guide.steps[n.stepIndex+1],Dt(function(){var e=Xr(t.elementPathRule);0!==e.length&&y.some(e,$a)?gm(n.step):gm(t)},e=e||0))},smartFirstStep:function(){R("._pendo-guide_").css("display:none;");var t=Um(),e=Dv().guide.steps,n=y.filter(y.rest(e),function(e){return!!e.pageId}),n=y.indexOf(e,y.find(n,function(e){return zm(e.regexUrlRule,t)}));I.info("startingPoint is "+n),-1==n?R("._pendo-guide_").css("display:block;"):(n=e[Math.max(0,n-1)],I.info("found starting step to be "+n.id),gm(n))},advanceOn:function(e,t){var n=Dv(),i=R(t=t||n.step.elementPathRule)[0],r=function(){gm(),hu(i,e,r,!0)};l(i,e,r,!0)},renderStepPosition:function(e,t,n){if(t)n||(i=[].concat(t.steps).reverse(),n=y.findWhere(i,{seenState:"active"}));else{var i=Dv();if(!i)return;t=i.guide,n=i.step}return(e=y.template(e=e||"Step <%= currPos %> of <%= total %>"))({currPos:t.getPositionOfStep(n),total:t.getTotalSteps()})}},F={renderGuideFromJSON:function(e,n,t,i){var r=n.getGuide(),o=Pc(e),a=y.get(r,"attributes.resourceCenter");a&&(N.revertRtlChanges(r,e.props),e=N.updatePseudoStyleSelectors(e));var s=a&&N.isFullyCustom(r),d="AnnouncementsModule"===y.get(r,"attributes.resourceCenter.moduleId"),o=(n.hasEscapeListener=!1,n.containerId=o&&o.props&&o.props.id,n.element=Bu(n),F.buildNodeFromJSON(e,n,t)),t=(n.guideElement=o).find("#"+n.containerId),u="data-vertical-alignment",c="Relative to Element"===t.attr(u);c&&!a&&R(n.guideElement).css({overflow:"hidden",height:"0",width:"0"});t.css({visibility:"hidden"}),o.css({visibility:"hidden"});u=Eg.buildWatermark({appId:r.appId,targetAccount:r.targetAccount,isTraining:r.isTraining,isBottomAligned:"Bottom Aligned"===t.attr(u)},F.buildNodeFromJSON);u&&t.append(u);var u=n&&n.attributes&&n.attributes.imgCount,l=Gu(),p=y.get(r,"attributes.embedConfig",null);{var h,f;p?(f="pendo-guide-container",g=o[0],h=g.querySelector("#".concat(f)),h&&(h.id="".concat(f,"-").concat(n.id),g.id="".concat("pendo-base","-").concat(n.id)),h=p.selector,f=p.method,l=R(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){var i,r,t=R.getRootNode(t),e=R.getRootNode(e);e!==t&&(e!==document?e.hasOwnProperty("wrappedJSObject")?(i=e.wrappedJSObject.adoptedStyleSheets,(r=t.wrappedJSObject.adoptedStyleSheets).push.apply(r,i)):(i=e.adoptedStyleSheets,(r=t.adoptedStyleSheets).push.apply(r,i)):(r=R(".pendo-style-".concat(n),e)).length&&(r.remove(),r.appendTo(t)))})(Gu(),o[0],n.id),Nl(o),s||d||(F.recalculateGuideWidth(n.containerId,n.guideElement),F.adjustGuideContentWidth(n.containerId,n.guideElement));u||a||F.flexAllThings(n.containerId,n.guideElement);s||F.recalculateGuideHeight(n.containerId,n.guideElement);c?n.attributes.calculatedType="tooltip":fl.attachBBAdvanceActions(n);c&&!u&&fl.positionStepForTooltip(n,e,t[0]);{var g;a&&(N.showHomeViewOrEmptyState(r),g=[],d?g=[r.attributes.resourceCenter]:F.flexAllThings(n.containerId,n.guideElement),g.length)&&y.forEach(g,function(e){e=y.get(e,"children",[]);y.forEach(e,function(e){var t;e&&(t=e.steps[0],y.isUndefined(t.attributes.imgCount))&&(t=y.get(t,"id",n.id),e=y.get(e,"id",r.id),t=R("#pendo-g-"+t).length?t:e,F.flexAllThings("pendo-g-"+t,n.guideElement))})})}{var m;u?(m=C.defer(),o.rendered=m.promise,t.on("imagesLoaded",function(){m.resolve()})):(t.css({visibility:"visible"}),o.rendered=C.resolve())}o.css({visibility:"visible"}),n.elements.push(n.guideElement[0]),v.designer||(y.get(n,"attributes.isAutoFocus")&&(F.autofocusStep(n,t),F.trapFocusStep(n,t),n.hiddenElements=F.addAriaHiddenOutsideGuide(o[0])),a&&(F.attachRCFocusHandlers(),r.skipResourceCenterHomeView?(p=r.activeModule.steps[0],F.autofocusStep(p,p.guideElement)):F.autofocusStep(n,t)));return R(".pendo-video-wrapper",o).each(function(t){R("iframe",t).each(function(e){t.setAttribute("data-pendo-video-loading",""),F.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};kt(function(){var e,t,n,i,r=R(o).find("#pendo-guide-container");return(r=r[0]||r)&&$a(r)&&(n=Jo(n=r),i=ya(),y.extend(i,{top:0,left:0,bottom:i.height,right:i.width}),Ra(i,n))&&(i=r,n=y.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){kt(function(){return!!(e=t)&&(e.focus(),e===R.getRootNode(e).activeElement);var e},i,function(){},function(){I.warn(n+"#pendo-guide-container is available on page but could not capture focus")})},function(){I.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=y.toArray(e.find(t))).length)&&(a=o[0],s=o[o.length-1],t=_y(e),d=t[0],u=t[1],n=function(e){var t,n,i=Ay(e),r=e.shiftKey;i&&(t=(i=R.getRootNode(c).activeElement)===c,n=document.activeElement===document.body,r?(i===d||t||n)&&(Ty(o,s).focus(),e.preventDefault()):(t||i===u||n)&&(Ty(o,a).focus(),e.preventDefault()))},l(document,"keyup",n),l(document,"keydown",n),S.one("unmounted",function(){hu(document,"keyup",n),hu(document,"keydown",n)}))}(t.find("#pendo-guide-container"))},attachRCFocusHandlers:function(){var e,t,s,d,n,i,r,u=N.getResourceCenter(),c=N.getResourceCenterContainer();"dom"===u.launchMethod&&c&&(e=R(u.attributes.activation.selector)[0])&&(t=_y(R(c)),s=t[0],d=t[1],n=function(e){var t,n,i,r=Ay(e),o=e.shiftKey;function a(t){return Object.values(i).findIndex(function(e){return e===t})}r&&(r=R.getRootNode(c).activeElement,t=R(u.attributes.activation.selector)[0])&&(n=r===s,r=r===d,i=R(Da),o?n?(t.focus(),e.preventDefault()):r&&Ey(0===(o=a(s))?i.length-1:o-1,i,e):r?Ey(a(t)+1,i,e):n&&Ey((o=a(d))>=i.length-1?0:o+1,i,e))},i=function(e){var t=Ay(e),n=e.shiftKey;t&&!n&&Ey(0,R('[id^="pendo-g-"]').find(Da),e)},r=function(e){var t=e.target,n=e.relatedTarget,t=t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING;n!=s&&t&&Ey((n=R('[id^="pendo-g-"]').find(Da)).length-1,n,e)},l(document,"keyup",n),l(document,"keydown",n),l(e,"keydown",i),l(e,"focus",r),S.one("unmounted",function(){hu(document,"keyup",n),hu(document,"keydown",n),hu(e,"keydown",i),hu(e,"focus",r)}))},addAriaHiddenOutsideGuide:function QS(e,n){void 0===n&&(n=[]);if(!e||e===Ea())return n;var t=Ta(e);y.each(t,function(e){var t;-1===n.indexOf(e)&&"true"!==e.getAttribute("aria-hidden")&&"script"!==(t=e.tagName.toLowerCase())&&"style"!==t&&(e.setAttribute("aria-hidden","true"),n.push(e))});e.parentNode&&QS(e.parentNode,n);return n},renderResourceCenterModule:N.renderResourceCenterModule,buildNodeFromJSON:Ql,attachImgLoadHandlers:ep,recalculateGuideHeightOnImgLoad:tp,buildStyleString:function(e){var n="";return y.each(e,function(e,t){n=n+t+":"+e+";"}),n},buildStyleTagContent:ip,bindActionToNode:np,recalculateGuideHeight:Ll,recalculateGuideWidth:Fl,adjustGuideContentWidth:Pl,findDomBlockInDomJson:Gc,isElementHiddenInGuide:g.isElementHiddenInGuide,positionStepForTooltip:fl.positionStepForTooltip,flexAllThings:g.flexAllThings,flexElement:g.flexElement,findTopLevelContainer:function(t){for(var e=["pendo-base","pendo-resource-center-container"],n=0;n<20;n++){if(y.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:al,buildNodesFromJSON:Xl,findGuideContainerJSON:Pc,maintainAspectRatios:g.maintainAspectRatios,sizeElement:Ml,sizeElements:Nl,getAllowedAttributes:ql,repositionFlexElementsInFullWidthGuides:function(){},isBuildingBlockGuideRelativeToElement:fl.isBuildingBlockGuideRelativeToElement,updateAriaLabelledbyForActiveFollowupQuestion:Bv,addVideoLoadListener:function(e,t){l(t,"load",function(){e.removeAttribute("data-pendo-video-loading")})}};function Ay(e){return"Tab"===e.key||9===e.keyCode}function Ey(e,t,n){e=t[e];e&&(e.focus(),n.preventDefault())}function Ty(e,t){var n,i;return"radio"===t.getAttribute("type")&&(n=t.getAttribute("data-pendo-poll-id"),i=y.find(e,function(e){var t=e.getAttribute("data-pendo-poll-id");return n===t&&e.checked})),i||t}function _y(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:y.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:y.extend({},t,{tabIndex:0})},{selector:".pendo-end-focus-bumper:hover",styles:t},{selector:".pendo-end-focus-bumper:focus",styles:t}]},t=F.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 xy=100,Ry=[],ky=[],Oy="log-enabled",Ny="active-contexts",My=function(){return Py()?Cy?"logging already enabled":(w.write(Oy,"true",null,!0),Cy=!0,"logging enabled"):"logging unavailable"},Ly=function(){return Cy?(w.write(Oy,"false",null,!0),Cy=!1,"logging disabled"):"logging already disabled"};var Fy=function(e,t){return y.compact([].concat(e,t))},Py=function(e){return e=e||"log","undefined"!=typeof console&&y.isFunction(console[e])},Gy=function(e){return e=Fy(e),0<wy.length?0<y.intersection(wy,e).length:!!Cy||!!tf()},Dy=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];I.info(e,{contexts:t})};function By(e){var t;e.level!==zt.Debug&&e.level!==zt.Info||(t=e.attributes?Fy(e.attributes.contexts):[],Py()&&Gy(t)&&Zy(e.message),$y(Ry,e.message,t))}function Wy(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];Py("error")&&console.error.apply(console,e),$y(ky,e.join(" "))}var $y=function(e,t,n){y.contains(n,"debug")||(e.length==xy&&e.shift(),e.push([t,n]))},Uy=function(t){t=Fy(t),y.each(y.map(y.filter(Ry,function(e){return 0===t.length||0<y.intersection(t,e[1]).length}),function(e){return e[0]}),function(e){Zy(e,"[Pendo-History] ")})},jy=function(){return y.union.apply(y,y.map(Ry,function(e){return e[1]}))},zy=function(e){wy=Fy(e),w.write(Ny,wy.join(","),null,!0)},Zy=function(e,t){var n;Py()&&(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 Vy(e,t){var n;e&&y.isString(e)?(y.isObject(n=t)||(n={__err__:t}),t=Lo.get(),Ks("track",n,t,e)):I.error("Must provide valid name string for event tracking")}Dy.init=function(){var e,t;e=w.read(Ny,!0),wy=e?e.split(","):[],e=it,t=w.read(Oy,!0),Cy=null!==t?"true"==t:!y.contains(["prod","prod-eu","prod-us1","prod-jp","prod-hsbc","prod-au","prod-gov","rc"],e),I.addEventListener("log",By),w.registry.addLocal(Oy),w.registry.addLocal(Ny)},Dy.enableLogging=My,Dy.disableLogging=Ly,Dy.getActiveContexts=function(){return wy},Dy.setActiveContexts=zy,Dy.showLogHistory=Uy,Dy.getLoggedContexts=jy;var Yy=function Yy(r){var o=[];function a(e,t,n,i){r?o.push({type:n,message:t,value:i}):fe(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"),v.apiKey||a("error","No Pendo API key configured. Make sure to call pendo.initialize() with a valid Pendo API key.","apiKey");var e=E(),e=(ii(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"),si(e)&&a("error","The current visitor ID matches the example visitor ID from the Pendo installation instructions.","isDefaultVisitor"),mi()),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"),m.get("disableCookies")&&a("warn","Cookies are disabled in Pendo config. Is this expected?","disableCookies"),fp());if(y.each(["visitor","account","parentAccount"],function(n){var i=t&&t[n],e=y.chain(i).keys().value();0<e.length?(r||console.group(n+" metadata (does this look right?):"),0<(e=y.chain(e).map(function(e){return e.toLowerCase()}).countBy().pick(function(e){return 1<e}).keys().value()).length&&y.each(e,function(e){a("warn","Keys will be lowercased and any duplicates overwritten. Please choose unique key names for:",n+"MetadataConflict",e)}),y.each(y.keys(i),function(e){var t=i[e];y.isObject(t)&&!y.isArray(t)?a("warn",e+" is an object and will be ignored.",n+"Metadata",t):y.isArray(t)&&y.any(t,y.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()},Hy=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:Ft.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=(y.each(e,function(e){var n=e.nativeType,i=[],t=e.propsToCheck||Object.getOwnPropertyNames(n);y.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"),y.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())},Ky=function(e){var t=[];if(y.isNumber(window.frames.length)&&y.isFinite(window.frames.length)&&R("iframe").length+R("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:"),y.each(t,function(e){console.warn(e)}),console.groupEnd()}},Xy=function(e){var t,n=window.location.href,i=[];try{(t=go())!==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=Lo.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),y.each(i,function(e){e.method?console[e.method](e.msg+"\n"+e.value):console.warn(e.msg+"\n"+e.value)}),console.groupEnd()},Jy=function(e){if(0<ky.length){var t=[].concat(ky);if(e)return t;console.group("Agent Error History"),y.each(t,function(e,t){console.log("Error History ",t,e)}),console.groupEnd()}},qy=function(e){t=e;var t,n=y.map(Jv,function(e){return e.validate&&!t&&e.validate(v,Qv),e.name});if(e)return n;console.group("Active Plugins"),y.each(n,function(e){return console.log(e)}),console.groupEnd()},Qy=function(e){var t={install:Yy(e),plugins:qy(e),globals:Ky(e),url:Xy(e),errors:Jy(e)};if(e)return t.methods=Hy(e),t;m.validate(console)},eb={BuildingBlockGuides:F,BuildingBlockResourceCenter:N,BuildingBlockTemplates:Bc,BuildingBlockTooltips:fl,BuildingBlockSvgs:zc};function tb(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=y.compose(y.bind(this.afterJobRun,this),y.bind(this.doJob,this),y.bind(this.shouldJobRun,this))}tb.prototype.start=function(e){this.state.isStopped&&(this.state.isStopped=!1,this.state.options.skipFirstRun=e,this.run())},tb.prototype.stop=function(){clearTimeout(this.state.handle),this.state.isStopped=!0,this.state.hasRun=!1};var nb=oo.urlFor;function ib(e,t,n){var i={search:["AllowOnlyKeys","ExcludeKeys","AddTo","Replace","Clear"],hash:["Replace","Clear"],pathname:["Replace"],hostname:["Replace"],href:["Replace","ForceSecure"],protocol:["ForceSecure"]};if(y.isObject(e)&&(t=e.action,n=e.data,e=e.attr),!i[e])throw new Error("Invalid URL attribute type: "+e);if(!y.contains(i[e],t))throw new Error("Invalid transform ("+t+") for attribute ("+e+")");this.attr=e,this.action=t,this.data=n}function rb(e){return e instanceof Ci||e instanceof HTMLAnchorElement}ib.prototype.applyToURL=function(e){return{AllowOnlyKeys:function(e,t,n){y.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Ci(Ro(t,null,n,!1))},ExcludeKeys:function(e,t,n){y.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Ci(Ro(t,null,n,!0))},AddTo:function(e,t,n){y.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Ci(nb(t,n))},Clear:function(e,t){return e[t]="",e},Replace:function(e,t,n){return y.isFunction(n)&&(n=n(e[t],e)),"href"===t?new Ci(n):(e[t]=n,e)},ForceSecure:function(e,t){return"protocol"===t?e.protocol="https":e.href=e.href.replace(/^(.*:\/\/\/)/,"https://"),e}}[this.action](e,this.attr,this.data)},ib.prototype.toString=function(){return this.attr+" - "+this.action+" - "+JSON.stringify(this.data)},ib.fromJSON=function(e){return e instanceof ib?e:new ib(e.attr,e.action,e.data)};ob=function(t,n,i,r){return[new ib("pathname","Replace",function(e){e=e.replace(n,t);return e=(e=e.replace(i,t)).replace(r,"")}),new ib("href","ForceSecure")]},e={transforms:[],internalTransforms:[],electronTransforms:[],currentSrcFn:ab=function(){var e=fo(),t=Lo.isElectron()?ob(Lo.electronAppName(),Lo.electronResourcesPath(),Lo.electronUserDirectory(),Lo.electronUserHomeDirectory()):[];return cb([].concat(t),e)}},sb=new tb(500,function(e){!ly()||Fd(document)||Ld()}),db=function(e){if("string"==typeof e)return new Ci(e);if(rb(e))return e;throw new Error("Invalid type from custom URL source. Must be either an URL or a String of a valid url.")},ub=function(e){return e||window.location},cb=function(e,t){return y.reduce(e,function(e,t){return t.applyToURL(e)},t)};var ob,ab,sb,db,ub,cb,lb,lr={state:e,actions:{init:function(e,t){e.commit("clearTransforms"),e.commit("clearInternalTransforms"),e.commit("changeUrlSource"),t.transforms&&e.dispatch("addTransforms",t.transforms),t.setUrl&&e.commit("changeUrlSource",t.setUrl)},addTransforms:function(t,e){y.each(e,function(e){t.commit("addTransform",ib.fromJSON(e))})},addInternalTransforms:function(t,e){y.each(e,function(e){t.commit("addInternalTransform",ib.fromJSON(e))})},removeInternalTransforms:function(t,e){y.each(e,function(e){t.commit("removeInternalTransform",ib.fromJSON(e))})},startPolling:function(e){sb.start()},stopPolling:function(e){e.state.currentSrcFn===ab&&sb.stop()}},mutations:{addTransform:function(e,t){e.transforms.push(t)},addInternalTransform:function(e,t){e.internalTransforms.push(t)},removeInternalTransform:function(e,t){t=y.indexOf(e.internalTransforms,t);0<=t&&e.internalTransforms.splice(t,1)},clearTransforms:function(e){e.transforms=[]},clearInternalTransforms:function(e){e.internalTransforms=[]},changeUrlSource:function(e,t){if(t){if("string"==typeof t)var n=new Ci(t),n=y.partial(y.identity,n);else if(rb(t))n=y.partial(y.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,sb.start(!ly())}else e.currentSrcFn=ab,sb.stop()}},getters:{url:lb=function(e){try{var t=function(e){return n=e},n=y.reduce([e.currentSrcFn,db,t,y.partial(cb,e.transforms),db,t,y.partial(cb,e.internalTransforms),db],function(e,t){return t(e)},null)}catch(i){I.critical(i),n=ub(n)}return n},href:function(e){return lb(e).href}}};function pb(e){var t;if("function"==typeof pb[e])return t=y.toArray(arguments).slice(1),pb[e].apply(pb,t)}y.extend(pb,{getHref:function(){return A.getters["location/href"]()},clearTransforms:function(){A.commit("location/clearTransforms"),Ld()},addTransforms:function(e){A.dispatch("location/addTransforms",e),Ld()},setUrl:function(e){A.commit("location/changeUrlSource",e)},useBrowserUrl:function(){A.commit("location/changeUrlSource"),Ld()}});function hb(){return m.get("guideSeenTimeoutLength")||1e4}fb=[];var fb,gb={name:"StepTimeoutMonitor",initialize:function(){this._beforeGuideShow=y.bind(gb.beforeGuideShow,gb),this._stop=y.bind(gb.stop,gb),S.beforeGuideShow.on(this._beforeGuideShow),S.guideSeen.on(this._stop),S.guideNotSeen.on(this._stop)},teardown:function(){gb.stop(),S.beforeGuideShow.off(this._beforeGuideShow),S.guideSeen.off(this._stop),S.guideNotSeen.off(this._stop)},beforeGuideShow:function(e){var t=e.data[0],e=e.data[1],n=t.guide;m.get("enableGuideTimeout")&&(e=-1<y.indexOf(["dom","launcher","badge","api"],e),"active"===t.seenState||t.hasBeenControlled()||t.isTimedOut()||(n=n&&n.steps)&&(0!==y.indexOf(n,t)||e)&&gb.start(t))},start:function(e){var d,t,n=fb[0];n&&n===e.id||(n&&n!==e.id&&(n=fb[1],y.isFunction(n))&&n(),e.shouldStartTimer()&&(d=hb(),n=y.partial(function(e,t){var n,i,r,o,a,s=Tu(t);s&&(n=s.findStepById(e))&&!s.isShown()&&(a=n.canShowOnPage(Um())?Im(n)?"other":"element":"page",i=t,r=e,o=E(),a=a,s=s.language,i=Gm({type:"guideTimeout",guideId:i,stepId:r,visitorId:o,seen_reason:a,language:s,guideSeenTimeoutLength:d}),Wm(i),S.guideTimeout.trigger(i),I.info("Guide "+t+" timed out showing Step "+e),n.timeout()),gb.stop()},e.id,e.guide.id),t=Dt(n,d),fb=[e.id,n,t]))},stop:function(){var e=fb[2];e&&clearTimeout(e),fb=[]},getGuideSeenTimeoutLength:hb};function mb(){console.warn("This functionality is not supported by your subscription.")}function u(e){return qo?e:mb}var vb="is going away",yb="is gone",bb=y.memoize(function(e,t){e=(e=e||"Function")+" deprecated"+(t=t?" and "+t:"");return I.info(e),e});function Ib(e,t,n){return function(){return bb("pendo."+t,n),(e||y.noop).apply(null,arguments)}}function wb(e){return e&&1===e.length?e[0]:y.any(e,Nt)?C.all(e).then(function(e){return y.any(e)}):void 0}function Cb(){var e,t=this,n=(this.elements=[],this.attributes=this.attributes||{},this.attributes.device&&this.attributes.device.type?"all"==this.attributes.device.type?this.attributes.device={desktop:!0,mobile:!0}:(e=this.attributes.device.type,this.attributes.device={mobile:!1,desktop:!1},this.attributes.device[e]=!0):this.attributes.device=this.attributes.device||{},y.each(this.steps,function(e){"mobile-lightbox"===e.type&&(this.attributes.device.desktop=!1,this.attributes.device.mobile=!0),vc(e,this)},this),this.isActivatedByEvent=function(e){return!!(this.hasLaunchMethod("dom")&&this.attributes&&this.attributes.activation&&y.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=y.first(this.steps);return e&&"whatsnew"===e.type},this.isAnnouncement=function(){return y.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")&&y.any(this.steps,function(e){return e.shouldAutoDisplay()})},this.autoDisplay=function(){if(this.shouldAutoDisplay())return wb(y.map(this.steps,function(e){return e.autoDisplay()}))},this.isRendered=function(){return y.any(this.steps,function(e){return e.isRendered()})},this.isShown=function(){return y.any(this.steps,function(e){return e.isShown()})},this.canShowOnDevice=function(){if(!Fu()){var e=Pu(),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()&&y.any(this.steps,function(e){return e.canShow()})},this.launch=function(e){var t;return this.hasGuideBeenControlled()||(t=this.show(e)),this.isShown()?y.each(this.steps,function(e){e.seenState="active"}):!this.isShown()&&this.isControlGroup()&&y.each(this.steps,function(e){e.seenState="notSeen"}),t},this.show=function(t){return wb(y.map(this.steps,function(e){return e.show(t)}))},this.checkForHiddenGroupSteps=function(){},this.hide=function(t){y.each(this.steps,function(e){e.hide(t)})},this.hasBeenSeen=function(){return y.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=y.get(this,"attributes.resourceCenter"),this.isControlGroup()&&!e?this.hasGuideBeenControlled()||this.steps[0].onControlGuide("control"):(e=y.first(this.steps))&&y.isFunction(e.canShowOnPage)&&e.canShowOnPage(Um())&&cf(this)):hf(this)},this.findStepById=function(t){return y.find(this.steps,function(e){return e.id===t})},this.isPoweredByEnabled=function(){return!!y.find(this.steps,function(e){return e.isPoweredByEnabled()})},this.searchFor=function(t){var e,n,i=null;return Et(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?y.find(n,function(e){return Et(e.text,t,!0)}):e)?i="tag":(n=y.map(this.steps,function(e){return e.searchFor(t)}),0<y.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&&!y.isFunction(t.steps[0].fetchContent)||(e=t.steps[0],!t.hasLaunchMethod("launcher")&&!t.isWhatsNew())||!e.canShowOnPage(Um())||!t.canShowOnDevice()||!Im(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(Um())||!this.canShowOnDevice()||!Im(e)||this.outsideTimebox())},"PENDO_HELPER_STEP");return this.getPositionOfStep=function(e){var t=y.reject(this.steps,function(e){return Et(e.content,n)});return y.indexOf(t,e)+1},this.getTotalSteps=function(){return y.reject(this.steps,function(e){return Et(e.content,n)}).length},this.getSeenSteps=function(){return y.size(y.filter(this.steps,function(e){return e.hasBeenSeen()}))},this.isComplete=function(){var t=["advanced","dismissed"];return y.all(this.steps,function(e){return y.contains(t,e.seenState)})},this.isInProgress=function(){var t=["active","advanced","dismissed"];return!this.isComplete()&&y.any(this.steps,function(e){return y.contains(t,e.seenState)})},this.isNotStarted=function(){return!this.isInProgress()&&!this.isComplete()},this.fetchContent=function(){return C.all(y.map(this.steps,function(e){if(y.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 y.any(this.steps,function(e){return e.isSnoozed()})},this.hasGuideBeenControlled=function(){return y.any(this.steps,function(e){return e.hasBeenControlled()})},this.isControlGroup=function(){return this.control},this.shouldShowSnoozedGuide=function(){var t=!1;return!this.outsideTimebox()&&y.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,y.forEach(this.steps,function(e){t=Math.max(t,e.lastSeenAt||0)}),!t))&&b()-t>=this.redisplay.interval},this.isExpired=function(){return!!this.expiresAfter&&b()>this.expiresAfter},this.isBeforeStartTime=function(){return!!t.showsAfter&&b()<t.showsAfter},this.outsideTimebox=function(){return t.isExpired()||t.isBeforeStartTime()},this.calculateDismissCountFromSteps=function(){var t=0;return y.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 Sb(){var e=this;return e.attributes&&"group"==e.attributes.type&&(e.checkForHiddenGroupSteps=function(){y.each(e.steps,function(e){e.isShown()||e.autoDisplay()})}),e}var Ab=function(e){return e&&e.attributes&&!!e.attributes.isOnboarding};function Eb(){var r,o=!1;return(this.isMultiStep||this.isModule||this.isTopLevel)&&(y.each(this.steps,function(e){e.after("render",function(){y.each(e.elements,function(e){R(e).addClass("_pendo-guide-walkthrough_")})})}),r=null,this.sections=y.reduce(this.steps,function(e,t){var n,i;return i=t,!(n=r)||(n=y.last(n)).attributes.isRequired!=i.attributes.isRequired&&n.attributes.isRequired?(e.push(r),r=[t]):r.push(t),e},[]),this.sections=y.compact(this.sections.concat([r])),this.findSectionForStep=function(t){return y.find(this.sections,function(e){return y.contains(e,t)})},this.getSubSection=function(e,t){t=y.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=y.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&&!Ab(this)?(o||(I.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()||y.all(this.steps,function(e){return e.shouldAutoDisplay()}))},this.autoDisplay=function(){var e,t,n;if(this.shouldAutoDisplay())return e=this.shouldRepeatGuide(),t=y.first(this.steps),n=this.nextStep(Sh())||t,this.shouldShowSnoozedGuide()||e?n.show(e?"repeatGuide":"auto"):t.autoDisplay()},this.launch=function(e){return y.first(this.steps).show(e)},this.show=function(e){var t=Sh(),n=y.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=y.last(this.steps);return!!e&&y.contains(["advanced","dismissed"],e.seenState)},this.activeStep=function(){var e=[].concat(this.steps).reverse();return y.findWhere(e,{seenState:"active"})}),this}function Tb(){var a=this;function t(r){var o=[];return function(e){try{return e.apply(a,y.toArray(arguments).slice(1))}catch(i){var t,n="ERROR in guide "+r+' (ID="'+a.id+'")';throw o.push(b()),5<=o.length&&(t=0<(t=y.last(o)-y.first(o))?(o.length-1)/(t/6e4):Infinity,Tb.MAX_ERRORS_PER_MINUTE<=t&&(n="Exceeded error rate limit, dropping guide.\n"+n,Au.addGuide(a),S.trigger("renderFail",a)),o.shift()),I.critical(n,{error:i}),i}}}return y.each(["canShow","placeBadge","show"],function(e){a[e]=y.wrap(a[e],t(e))}),a}function _b(){return y.isFunction(this.isAnnouncement)&&this.isAnnouncement()||(this.shouldBeAddedToLauncher=y.wrap(this.shouldBeAddedToLauncher,function(e){return A.getters["frames/hasFrames"]()?!(!A.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!A.getters["frames/isGuideInDifferentFrame"]()(this)&&A.getters["frames/shouldBeAddedToLauncher"]()(this):e.apply(this,arguments)}),this.shouldBeAddedToResourceCenter=y.wrap(this.shouldBeAddedToResourceCenter,function(e){return A.getters["frames/hasFrames"]()?!(!A.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!A.getters["frames/isGuideInDifferentFrame"]()(this)&&A.getters["frames/shouldBeAddedToResourceCenter"]()(this):e.apply(this,arguments)})),this}function xb(e){var t=this;return"whatsnew"===t.type||y.isFunction(e.isAnnouncement)&&e.isAnnouncement()||(t.isShown=y.wrap(t.isShown,function(e){return e.apply(this,arguments)||A.getters["frames/isShownInAnotherFrame"]()(t)})),t}function Rb(o){var a,t,i,s,r,n,d,u=this;return u.pollIds&&u.pollIds.length&&(a="_pendo-poll-selected_",t=y.indexBy(o.polls,"id"),i=y.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=b();Mm(e,t,E(),u.seenReason,o.language),em(e,t,"advanced",n),wh({guideId:e,guideStepId:t,time:n,state:"advanced"})},d=function(){var e=R("._pendo-poll_"),t=R("._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=R("._pendo-poll_")[0],e=R("._pendo-poll-submit_",n)[0];e?u.attachEvent(e,"click",function(e){var t=R("._pendo-poll-question_",n),t=y.map(t,function(e,t){e=R("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(y.compact(t)),d()}):u.attachEvent(n,"click",function(e){var t,e=R(io(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=R("._pendo-poll_ ._pendo-poll-npsrating_")[0],r=R("._pendo-poll_ ._pendo-poll-submit_"),o="_pendo-poll-npsrating-selected_";i&&(r.css({display:"none"}),u.attachEvent(i,"click",function(e){var t=R(":radio:checked",i)[0],n=R("._pendo-poll_");R("label",i).removeClass(a),n.removeClass(o),t&&(R('label[for="'+t.id+'"]').addClass(a),n.addClass(o),r.css({display:""})),y.isFunction(u.resize)&&u.resize()}))}),u.after("show",function(){s=(new Date).getTime()}),u.response=function(e,r){e&&e.length&&(wv(),y.each(e,function(e,t){var n=function(t,e){if(e&&e.polls&&e.polls.length)return y.find(e.polls,function(e){return e.id===t})}(e.pollId,o),i=Gm("pollResponse",u.guideId,u.id,E(),undefined,o.language);y.extend(i.props,{poll_id:e.pollId,poll_response:e.value,duration:(new Date).getTime()-s},r),n&&n.attributes&&n.attributes.type&&y.extend(i.props,{poll_type:n.attributes.type}),gv.push(i)}),gv.flush())}),u}Tb.MAX_ERRORS_PER_MINUTE=30;var kb={show:function(t,n){if(Fu()&&y.isFunction(t._show))return t._show(n),t.isShown();var e=t.getGuide();if("whatsnew"===t.type)return Ob(t,n);if(!A.getters["frames/hasFrames"]()||A.getters["frames/isGuideInThisFrame"]()(e)){e=function(e,t){if(e.getGuide().isModule){e=N.getResourceCenter();if(e)return Ob(e.steps[0],t)}}(t,n);if(Nt(e))return e.then(function(){return Ob(t,n)}).then(function(e){return!!e||Nb(t,n)});e=Ob(t,n);if(Nt(e))return e.then(function(e){return!!e||Nb(t,n)});if(e)return!0}return Nb(t,n)},showLocal:Ob};function Ob(e,t){return Ac.hasContent(e)&&hc.valid(e)?(e._show(t),e.isShown()):!(Ac.hasContent(e)&&hc.invalid(e)||!e.getGuide().canShowOnDevice()||!e.canShowOnPage(Um()))&&(e.lock(),Ac.fetchContent(e).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&hc.validate(e.getGuide())}).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&(e.unlock(),e._show(t),e.isShown())}))}function Nb(t,e){var n=t.getGuide();return!(!A.getters["frames/hasFrames"]()||!A.getters["frames/isGuideInDifferentFrame"]()(n))&&(t.lock(),A.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 Mb(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 Zv),this.getGuide=function(){return this.guide},this.getContent=function(){var e=this.getGuide(),t=e&&e.steps||[],n=y.indexOf(t,this),i=fp();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:It(i),template:r};return this.template||(this.template=y.template(this.content||"")),yc(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!y.get(this,"guide.attributes.isAnnouncement")&&!!d.canShowOnDevice()&&!this.isShown()&&!y.get(this,"stepIneligibleForApp")&&this.canShowOnPage(Um())&&Im(this)},this.canShowOnPage=function(e){e=zm(this.regexUrlRule,e);return tf()&&S.stepEligibility.trigger({stepId:this.id,guideId:this.guideId,eligible:e,reason:"page_match"}),e},this.shouldAutoDisplay=function(){return this.shouldRepeat()||!this.hasBeenControlled()&&!this.isSnoozed()&&!y.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!(!(v.designer||Fu()||Af())&&(e=Um(),t={guideId:this.guideId,stepId:this.id},this.regexUrlRule&&!zm(this.regexUrlRule,e)?(Au.addGuide(d),t.error=new Error('attempted display on page "'+e+'"'),I.critical("pendo.io page rule exception",t),1):A.getters["healthCheck/isMissingPageRule"]()(this)?(Au.addGuide(d),t.error=new Error('missing regexUrlRule"'),I.critical("pendo.io page rule exception",t),1):this.pageId&&!this.regexUrlRule&&(Au.addGuide(d),t.error=new Error("missing regexUrlRule for page "+this.pageId+'"'),I.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=y.find(Iu(),function(e){return e.id===d.moduleIdToReplaceHomeViewWith}),n=y.get(t,"attributes.resourceCenter.integrationProvider"),N.renderNativeIntegration(n,t)):d.continueToNativeModule?N.handleNativeIntegrationContinuation(d):(y.get(d,"attributes.resourceCenter")&&jh(N.getResourceCenter(),zh),d.isModule?F.renderResourceCenterModule(d,!1):(n=F.renderGuideFromJSON(e.domJson,e),y.get(d,"attributes.resourceCenter")&&(t=d.activeModule?d.activeModule.activeStep().domJson.props.id:e.containerId,t=e.guideElement.find("#"+t),N.adjustResourceCenterWidth(t)),n));var t=e.attributes.width,n=e.attributes.height,i=v.TOOLTIP_ARROW_SIZE,r="_pendo-group-id-"+d.id+"_",r=R(document.createElement("div")).attr("id",Am(e)).addClass(Yg+" "+r),o=R(document.createElement("div")).addClass("_pendo-guide-content_").html(e.getContent()),a=R(document.createElement("div")).addClass("_pendo-guide-container_"),s=R(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&&y.isFunction(d.isOnboarding)&&d.isOnboarding()&&r.addClass("_pendo-onboarding_"),e.overlayDiv=s,e.guideElement=r}},this.teardown=function(){I.info("guide step teardown",{contexts:["guide","render"]}),y.each(this.handlers,function(e){hu(e.element,e.type,e.fn,!0)}),this.hasBeenScrolledTo=!1,this.handlers.length=0,y.has(this.attributes,"imgCount")&&(this.attributes.imgCount=0),this.hiddenElements&&(y.each(this.hiddenElements,function(e){try{e&&"function"==typeof e.removeAttribute&&e.removeAttribute("aria-hidden")}catch(t){I.error("unable to remove aria-hidden from element",{error:t})}}),this.hiddenElements.length=0,this.hiddenElements=null),rp(this.id)},this.show=function(e){var t;if(!y.contains(["auto","continue"],e)||!A.getters["healthCheck/isRedisplay"]()(this))return(t=kb.show(this,e))&&t["catch"]&&t["catch"](y.noop),t;A.dispatch("healthCheck/fixSeenStateAndLogError",{step:this,reason:e})},this.redraw=function(){var e,t,n,i,r,o=this;o.guideElement&&!v.designer&&(t=(e=y.get(d,"attributes.resourceCenter"))&&N.isFullyCustom(d),n=d.activeModule?d.activeModule.activeStep().domJson.props.id:o.containerId,i=o.guideElement.find("#"+n),r=d.activeModule&&"AnnouncementsModule"===y.get(d.activeModule,"attributes.resourceCenter.moduleId"),S.beforeUpdate.trigger(o),t||r||(F.recalculateGuideWidth(n,o.guideElement),F.adjustGuideContentWidth(n,o.guideElement)),e?(N.adjustResourceCenterWidth(i),r&&d.activeModule.guidesInModule?y.forEach(d.activeModule.guidesInModule,function(e){var t;!y.isUndefined(e.steps[0].attributes.imgCount)&&0!==y.get(e.steps[0],"attributes.imgCount")||(t=e.steps[0].id,t=R(i).find("#pendo-g-"+t)[0]?t:e.id,F.adjustGuideContentWidth("pendo-g-"+t,o.guideElement),F.flexAllThings("pendo-g-"+t,o.guideElement))}):F.flexAllThings("pendo-resource-center-container")):F.flexAllThings(n,o.guideElement),t||F.recalculateGuideHeight(n,o.guideElement),S.updated.trigger(o))},this._show=function(e){S.beforeGuideShow.trigger(this,e),this.canShow()&&(!Fu()&&d.control?this.hasBeenControlled()||this.onControlGuide("control"):S.beforeMount.trigger(this).cancel||(this.render(),this.isShown()&&this.onShown(e)))},this.shouldStartTimer=function(){return d.canShowOnDevice()&&!d.attributes.isAnnouncement&&!ym(this)},this.getStepPollTypes=function(n,e){var i;if(e.pollIds&&e.pollIds.length)return i=[],y.forEach(e.pollIds,function(t){var e=y.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;Fu()||(this.seenReason=e,Xg(b()),t=this.getStepPollTypes(d,this),this.hasBeenControlled())||(km(this.guideId,this.id,E(),e,d.language,t),y.each(d.steps,function(e){e.seenState="notSeen"}))},this.onShown=function(r,e){void 0===e&&(e=!0);var t,n,i=this;i.overrideElement&&(R.addClass(i.overrideElement,"triggered"),i.overrideElement.checkAriaExpanded)&&i.overrideElement.checkAriaExpanded(),Fu()||(i.seenReason=r,i.seenState="active",Xg(b()),t={last_updated_at:i.lastUpdatedAt},(n=this.getStepPollTypes(d,i))&&(t.step_poll_types=n),e&&Om(i.guideId,i.id,E(),r,d.language,t),A.dispatch("guideState/updateLastGuideStepSeen",{guideId:d.id,guideStepId:i.id,time:Kg,state:i.seenState,seenReason:r,visitorId:E()}),y.each(d.steps,function(e){var t,n,i;"snoozed"===e.seenState&&(e.snoozeEndTime=0,t=d.id,e=e.id,n=E(),i=d.language,t=Gm({type:"guideSnoozeCanceled",guideId:t,stepId:e,visitorId:n,seen_reason:r,language:i}),Wm(t,null,!0),S.guideSnoozeCancelled.trigger(t))}),kc.runCustomScripts(i,d)),A.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||(v.ignoreResize=!0,Dt(function(){v.ignoreResize=!1},1e3))})},this.hide=function(e){var t=this;t.unlock(),S.beforeUnmount.trigger(t),t.teardown(),y.each(t.elements,function(e){Ca(e)}),S.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&&(R.removeClass(t.overrideElement,"triggered"),t.overrideElement.checkAriaExpanded)&&t.overrideElement.checkAriaExpanded(),A.dispatch("frames/guideStepHiddenInFrame",{guideId:d.id,stepId:t.id})},this.advance=function(){"advanced"===this.seenState&&!this.isRendered()||gm(this)},this.dismiss=function(){"dismissed"===this.seenState&&!this.isRendered()||pm(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()&&b()-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)&&Et(this.content,e,!0)},this.hasBeenSeen=function(){return"advanced"==this.seenState||"dismissed"==this.seenState},this.reposition=function(){},this.checkPlacement=function(){"tooltip"===this.getType()&&fl.placeBBTooltip(this),this.attributes.blockOutUI&&this.attributes.blockOutUI.enabled&&al(this)},this.getType=function(){return this.domJson?y.get(this,"attributes.calculatedType"):this.type},this}function Lb(){return this.after("render",function(){var e,t;M&&M.contentWindow&&M.style&&(e=y.first(R('#pendo-resource-center-container, [id^="pendo-g-"]')))&&(e=f(e))&&(t={mutation:"preview/setIsPreviewBarTop",payload:{isPreviewBarTop:!1}},"0px"===e.top?(M.style.top="auto",M.style.bottom="0px",M.contentWindow.postMessage(t,location.origin)):"0px"!==e.bottom&&M.style.top||(M.style.top="0px",M.style.bottom="auto",t.payload.isPreviewBarTop=!0,M.contentWindow.postMessage(t,location.origin)))}),this}Mb.isGuideStep=function(e){return!!e&&y.isFunction(e.render)};var i={state:{errorCount:0,errors:{}},actions:{write:function(e,t){var n=t.error;if(n&&!t.logged){var i=e.getters.hasLogged()(t);if(e.dispatch("update",t),!i){try{t.logged=!0}catch(r){}e="[".concat(t,"]");t.level===zt.Critical?(i=window.pendo_options||{},Wy(e),!1!==v.logStackTraces&&!1!==i.logStackTraces&&n.stack?na("".concat(e,"\n").concat(n.stack)):ta(e)):t.level===zt.Error?Wy(e):t.level===zt.Warn&&function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];Py("warn")&&console.warn.apply(console,e)}(e)}}},update:function(e,t){t&&(e.getters.hasLogged()(t)||e.commit("addError",t),e.commit("incrementError",t))}},mutations:{addError:function(e,t){var n=t.message,i=t.level,r=t.hashCode();e.errors[r]={count:0,stack:t.error.stack,message:n,level:i,hash:r}},incrementError:function(e,t){e.errors[t.hashCode()].count++,e.errorCount++}},getters:{hasLogged:function(t){return function(e){return!!t.errors[e.hashCode()]}}}},Fb=w.getSession(),Pb="pendo_cd";function Gb(){this.name="CloneDetection"}Gb.prototype.initialize=function(){if(y.isFunction(window.BroadcastChannel))return w.registry.addSession(Pb),this.tabId=Gn.getTabId(),this.id=At(16),this.channel=new BroadcastChannel("pendo-clone-detection-".concat(v.apiKey)),this.channel.addEventListener("message",y.bind(this.onmessage,this)),this.detectClonedSession(this.id),y.bind(this.teardown,this)},Gb.prototype.teardown=function(){this.stopCloneDetectionTimer(),this.channel.removeEventListener("message",this.onmessage),this.channel.close(),this.channel=null},Gb.prototype.onmessage=function(e){var t=y.get(e,"data.type"),n=y.get(e,"data.tabId"),i=y.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()}},Gb.prototype.detectClonedSession=function(e){var t=Fb.getItem(Pb)||"";-1===t.indexOf(e)&&(t+="-"+e),Fb.setItem(Pb,t),this.sendMessage("pendo-clone-test",{tabId:this.tabId,id:this.id}),this.startCloneDetectionTimer()},Gb.prototype.isClonedSession=function(e){return this.startCloneDetectionTimer(),-1===(Fb.getItem(Pb)||"").indexOf(e)},Gb.prototype.clearCloneDetectionValue=function(){Fb.removeItem(Pb),this.cloneDetectionTimer=null},Gb.prototype.startCloneDetectionTimer=function(){this.stopCloneDetectionTimer(),this.cloneDetectionTimer=Dt(this.clearCloneDetectionValue.bind(this),1e4)},Gb.prototype.stopCloneDetectionTimer=function(){this.cloneDetectionTimer&&(clearTimeout(this.cloneDetectionTimer),this.cloneDetectionTimer=null)},Gb.prototype.clearClonedStorage=function(){Fb.clearPendo(),Gn.setParentTabId(this.tabId),this.tabId=Gn.newTabId(),S.trigger("tabIdChanged:self"),A.dispatch("frames/setTabId",this.tabId)},Gb.prototype.sendMessage=function(e,t){this.channel.postMessage(Gt({type:e},t))};var Db=new Gb;function Bb(e){A.dispatch("frames/setReady",{isReady:!0})}var Wb=["unknown","hidden","visible"];function $b(e){return"visible"===e.visibility||"unknown"===e.visibility}Ub={};var Ub,s={actions:{init:function(e){var t,n,i=e.state;i.initialized||(w.registry.addSession(Rn),w.registry.addSession(kn),t=Gn.addTracerIds({}),n=Ge(),e.commit("setFrameId",t.frameId),e.commit("setTabId",t.tabId),e.commit("setAgentInstallType",n),e.commit("setLeadershipMode",n),S.ready.on(Bb),S.guideSeen.on(function(e){e=e.data[0];e&&e.frameId===i.frameId&&L.postMessage({action:"frames/receiveGuideSeen",frameId:i.frameId,guideSeen:e})}),Db.initialize(),e.commit("setInitialized",!0))},changeGuideList:function(e,t){e=e.state,t=zb(t);L.postMessage({action:"frames/receiveGuideList",frameId:e.frameId,guides:t,autoOrdering:v.autoOrdering||[]})},receiveGuideList:function(e,t){e.commit("setGuideList",t),t.frameId===e.state.frameId&&e.commit("setGuidesLoaded"),Zb(e.state)},join:function(e){var t,n,i,r;e.state.disabled||(Ph(),t=e.state,n=window.top==window,i=t.frames[t.frameId],e.commit("removeFrame",t.frameId),e.commit("setGuideList",{frameId:t.frameId,guides:zb(Ru())}),(r=[].concat(m.get("leaderKey"))).length||t.agentInstallType!==Fe||(r=[v.apiKey]),e.dispatch("receiveFrame",{frame:y.extend({agentInstallType:t.agentInstallType,id:t.frameId,joinedAt:b(),isTop:n,visibility:n?"visible":"unknown",apiKey:v.apiKey,leaderKey:r},i)}))},receiveFrame:function(e,t){var n,i=e.state;if(v.designerv2.launched&&(n=Object.assign({},Xf.hostConfig,{selectionOnly:!0}),L.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:y.toArray(y.get(t,"frame.guides",[]))}),t.frame.isTop){for(var r=e.getters.leaderKeyPreference(),o=y.filter(i.frames,function(e){return e.isTop});r.length;){var a=r.shift(),s=y.filter(o,function(e){return e.apiKey===a});if(s.length){o=s;break}}e.commit("setTopId",o[0].id)}e.commit("setLeadershipMode",t.frame.agentInstallType),t[mf]&&e.dispatch("receiveStartPreview",t),L.postMessage({action:"frames/receiveFrame",frame:i.frames[i.frameId],"pendo-preview":e.rootState.preview.preview}),e.dispatch("waitThenElectLeader")}},leave:function(t){var e=t.state;L.postMessage({action:"frames/removeFrame",frameId:e.frameId}),y.each(e.frames,function(e){t.commit("removeFrame",e.id)}),L.close()},removeFrame:function(e,n){e.getters.hasFrame()(n.frameId)&&(e.commit("removeFrame",n.frameId),y.each(Ub,function(e,t){0===t.indexOf(n.frameId+"/")&&(e.reject(),delete Ub[t])}),e.dispatch("electLeader"))},waitThenElectLeader:y.debounce(function(e){e.dispatch("electLeader")},50),electLeader:function(e){var t=e.state,n=t.frames,i=e.getters.leaderKeyPreference();if(i.length)for(;i.length;){var r=i.shift(),o=y.filter(t.frames,function(e){return e.apiKey===r});if(o.length){n=o;break}}var a=y.find(n,function(e){return e.isTop});a?e.dispatch("followLeader",{leaderId:a.id}):(a=y.min(n,"joinedAt"),e.dispatch("followLeader",{leaderId:a.id})),Zb(e.state),e.getters.isLeader()&&S.childFrameJoined.trigger()},followLeader:function(e,t){var n=e.state,i=n.leaderId,r=t.leaderId;e.commit("setLeaderId",t.leaderId),i!==r&&S.leaderChanged.trigger({frameId:n.frameId,oldLeaderId:i,newLeaderId:r})},showGuideStep:function(t,n){var i=y.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",y.extend({frameId:e.id},n)).then(function(e){return e.error?C.reject(e.error):e.isShown?e:r()}):C.resolve({isShown:!1})}()},requestShowGuideStepInFrame:function(e,t){var n=t.frameId+"/"+At(32),i=C.defer();return Ub[n]=i,L.postMessage(y.extend({action:"frames/showGuideStepInFrame",requestId:n},t)),i.promise},showGuideStepInFrame:function(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=Tu(n.guideId))&&e.findStepById(n.stepId))?Nt(e=kb.showLocal(e,n.reason))?e.then(i)["catch"](y.noop):i(e):t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:!1}))},guideStepShownInFrame:function(e,t){e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:t.isShown}),L.postMessage(y.extend({action:"frames/receiveGuideStepShownInFrame",frameId:e.state.frameId},t))},receiveGuideStepShownInFrame:function(e,t){var n=Ub[t.requestId];n&&(n.resolve(t),delete Ub[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:function(e,t){t=y.isArray(t)?t:[],L.postMessage({action:"frames/receiveHideGuides",frameId:e.state.frameId,guideIds:t}),e.commit("hideGuides")},receiveHideGuides:function(e,t){e.state.frameId!==t.frameId&&(t.guideIds.length?y.each(y.compact(y.map(t.guideIds,Tu)),function(e){e.hide()}):nm(),e.commit("hideGuides"))},guideStepHiddenInFrame:function(e,t){var n=e.getters.isShownInFrame()(e.state.frameId,{id:t.stepId});e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:!1}),L.postMessage(y.extend({action:"frames/receiveGuideStepHiddenInFrame",frameId:e.state.frameId},t)),n&&e.dispatch("fixDoubleDisplay",t)},receiveGuideStepHiddenInFrame:function(e,t){e.state.frameId!==t.frameId&&e.getters.isShownInFrame()(t.frameId,{id:t.stepId})&&e.commit("setStepShown",{frameId:t.frameId,stepId:t.stepId,shown:!1})},fixDoubleDisplay:function(n,i){y.each(n.state.frames,function(e,t){t!==n.state.frameId&&n.getters.isShownInFrame()(t,{id:i.stepId})&&L.postMessage(y.extend({action:"frames/receiveHideGuideInFrame",frameId:t,guideId:i.guideId,stepId:i.stepId},i))})},receiveHideGuideInFrame:function(e,t){e.state.frameId===t.frameId&&(t=(e=Tu(t.guideId))&&e.findStepById(t.stepId))&&t.hide()},changeLastGuideStepSeen:function(e,t){L.postMessage({action:"frames/receiveLastGuideStepSeen",frameId:e.state.frameId,lastGuideStepSeen:t}),e.commit("updateLastGuideStepSeen",t),e.commit("healthCheck/updateStepState",{id:t.guideStepId,seenState:t.state},{root:!0})},receiveLastGuideStepSeen:function(e,t){var n;t.frameId!==e.state.frameId&&(n=e.state.frames[t.frameId],(n=y.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=Tu((n=t.lastGuideStepSeen).guideId))&&t.findStepById(n.guideStepId))&&(t.seenState=n.state,t.seenReason=n.seenReason,t.lastSeenAt=n.time,n.dismissCount&&(t.dismissCount=n.dismissCount),n.snoozeEndTime&&(t.snoozeEndTime=n.snoozeEndTime),e.commit("updateLastGuideStepSeen",n),e.commit("healthCheck/updateStepState",t,{root:!0}))},changeThrottlingState:function(e,t){L.postMessage(y.extend({action:"frames/receiveThrottlingState",frameId:e.state.frameId},t))},receiveThrottlingState:function(e,t){t.frameId!==e.state.frameId&&y.each(Lm,function(e){t[e]&&Pm(t[e],e)})},startPreview:function(e){L.postMessage({action:"frames/receiveStartPreview","pendo-preview":e.rootState.preview.preview})},restartPreview:function(e){L.postMessage({action:"frames/receiveRestartPreview","pendo-preview":e.rootState.preview.preview})},stopPreview:function(e,t){L.postMessage(y.extend({action:"frames/receiveStopPreview"},t))},receiveStartPreview:function(e,t){e.dispatch("preview/start",t[mf],{root:!0}),bf(window),Pv()},receiveRestartPreview:function(e){var t=Cf(k,Sh());e.dispatch("guideState/updateLastGuideStepSeen",t,{root:!0})},receiveStopPreview:function(e,t){Of({preventWindowClose:!!t.preventWindowClose})},checkFrameVisibility:function(e,t){if(!e.getters.isTop()&&!e.state.disableFrameVisibilityCheck)try{var n="unknown",i=(t=null==t?window:t).frameElement;i?(n=$a(i)?"visible":"hidden",e.dispatch("updateFrameVisibility",{visibility:n})):e.commit("disableFrameVisibilityCheck")}catch(r){e.commit("disableFrameVisibilityCheck")}},updateFrameVisibility:function(e,t){var n;!y.find(Wb,function(e){return e===t.visibility})||(n=t.visibility,e.getters.frameVisibility()===n)||(e.commit("setFrameVisibility",{frameId:e.state.frameId,visibility:n}),L.postMessage({action:"frames/receiveFrameVisibility",frameId:e.state.frameId,visibility:n}))},receiveFrameVisibility:function(e,t){e.commit("setFrameVisibility",t)},addSelectionModeToFrames:function(e,t){t=t.options;Xf.launchInAppDesigner(t)},syncOptions:function(e,t){t.options&&L.postMessage({action:"frames/receiveOptions",frameId:e.state.frameId,options:t.options})},receiveOptions:function(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&t.options&&up(t.options)},syncIdentity:function(e,t){var n;(t.visitorId||t.accountId)&&(n=t.visitorId,t=t.accountId,L.postMessage({action:"frames/receiveIdentity",frameId:e.state.frameId,visitorId:n,accountId:t}))},receiveIdentity:function(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&(t.visitorId||t.accountId)&&pi(t.visitorId,t.accountId)},setReady:function(e,t){e.commit("setReady",t.isReady)},receiveGuideSeen:function(e,t){t.frameId!==e.state.frameId&&S.guideSeen.trigger(t.guideSeen)},checkGuideEligibility:function(e,t){var n=t.guideId,i=t.stepId,r=t.currentStepIndex,o=t.sourceFrame,t=t.promiseId,n=Tu(n),i=n&&n.findStepById(i),a={};return n&&i?(0===r&&(r=$u(n))&&((r=y.first(Xr(r)))?$a(r)||(a.ACTIVATION="notVisible"):a.ACTIVATION="notFound"),y.isFunction(i.canShowOnPage)&&!i.canShowOnPage(Um())&&(a.PAGE="mismatch"),i.elementPathRule&&((r=y.first(Xr(i.elementPathRule)))?$a(r)?i.elementContainsRulesList&&!Cm(r,i.elementContainsRulesList)&&(a.ELEMENT="containsRuleMismatch"):a.ELEMENT="notVisible":a.ELEMENT="notFound"),i.triggerElementPathRule&&((r=y.first(Xr(i.triggerElementPathRule)))?$a(r)||(a.TRIGGER_ELEMENT="notVisible"):a.TRIGGER_ELEMENT="notFound"),y.get(n,"attributes.embedConfig")&&(i=y.get(n,"attributes.embedConfig.selector"),(r=y.first(Xr(i)))?$a(r)||(a.EMBED_CONTAINER="notVisible"):a.EMBED_CONTAINER="notFound")):a.GUIDE="notFound",t&&o&&L.postMessage({errors:a,action:"frameEligibilityResponse",targetFrame:o,resolveId:t}),a},setTabId:function(e,t){e.commit("setTabId",t)}},mutations:{addFrame:function(e,t){var n=t.id;e.frames[n]=y.extend({},e.frames[n],t)},removeFrame:function(e,t){delete e.frames[t]},setGuideList:function(e,t){var n=t.frameId;e.frames[n]=y.extend({},e.frames[n],{guides:y.indexBy(zb(t.guides),"id"),autoOrdering:t.autoOrdering})},setStepShown:function(e,t){var n=t.frameId,n=e.frames[n]=y.extend({},e.frames[n]);n.shown=y.extend({},n.shown),n.shown[t.stepId]=t.shown},setInitialized:function(e,t){e.initialized=t},setLeaderId:function(e,t){e.leaderId=t},setFrameId:function(e,t){e.frameId=t},setTabId:function(e,t){e.tabId=t},setTopId:function(e,t){e.topId=t},setAgentInstallType:function(e,t){e.agentInstallType=t},setLeadershipMode:function(e,t){e.leadershipMode!==Fe&&(e.leadershipMode=t)},setFrameVisibility:function(e,t){var n=t.frameId;e.frames[n]=y.extend({},e.frames[n],{visibility:t.visibility})},setReady:function(e,t){e.isReady=t},disableFrameVisibilityCheck:function(e){e.disableFrameVisibilityCheck=!0},hideGuides:function(e){y.each(e.frames,function(n){y.each(n.shown,function(e,t){n.shown[t]=!1})})},setChannelType:function(e,t){e.channelType=t},setGuidesLoaded:function(e){e.guidesLoaded=!0},setConnectFailed:function(e){e.connectFailed=!0},updateLastGuideStepSeen:function(e,t){t&&y.each(e.frames,function(e){e.guides&&(e=e.guides[t.guideId])&&(e=y.findWhere(e.steps,{id:t.guideStepId}))&&(e.seenState=t.state,e.lastSeenAt=t.time,e.seenReason=t.seenReason,t.dismissCount&&(e.dismissCount=t.dismissCount),t.snoozeEndTime)&&(e.snoozeEndTime=t.snoozeEndTime)})}},getters:{allFrames:function(e){return e.frames},autoOrdering:function(e){return y.reduce(e.frames,function(e,t){return e[t.apiKey]=t.autoOrdering,e},{})},leaderExists:function(e){return!!e.leaderId},isLeader:function(e){return e.leaderId===e.frameId},leaderKey:function(e,t){if(t.leaderExists()){t=e.frames[e.leaderId];if(t)return t.apiKey}},isFollower:function(e){return!!e.leaderId&&e.leaderId!==e.frameId},isTop:function(e,t){t=t.window();return e.topId===e.frameId||t==t.top},frameVisibility:function(e){return(e.frames?e.frames[e.frameId]:{}).visibility||"unknown"},isGuideInThisFrame:function(n){return function(e){var t=n.frames&&n.frames[n.frameId];return!!(t&&t.guides||{})[e.id]}},isGuideInDifferentFrame:function(i){return function(n){return y.any(i.frames,function(e,t){return t!==i.frameId&&e.guides&&e.guides[n.id]})}},isReady:function(e){return e.isReady},isShownInAnotherFrame:function(i){return function(n){return y.any(i.frames,function(e,t){return t!==i.frameId&&e.shown&&e.shown[n.id]})}},isShownInFrame:function(n){return function(e,t){e=n.frames&&n.frames[e],e=e&&e.shown||{};return!(!e||!e[t.id])}},hasFrame:function(t){return function(e){return t.frames&&t.frames[e]}},hasFrames:function(e){return 1<y.size(e.frames)},shouldBeAddedToLauncher:function(i,e){return function(n){return e.canShowRCBadge()&&y.any(i.frames,function(e,t){return t!==i.frameId&&!!$b(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToLauncher})}},shouldBeAddedToResourceCenter:function(i,e){return function(n){return e.canShowRCBadge()&&y.any(i.frames,function(e,t){return t!==i.frameId&&e.apiKey===v.apiKey&&!!$b(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToResourceCenter})}},isBroadcastChannel:function(e){return"BroadcastChannel"===e.channelType},channelType:function(e){return e.channelType},canShowRCBadge:function(e,t){var n,i;return t.leaderKey()!==v.apiKey?(n=y.filter(e.frames,function(e){return e.apiKey===v.apiKey}),(i=y.find(n,function(e){return e.isTop}))?e.frameId===i.id:(i=y.min(n,function(e){return e.joinedAt}),e.frameId===i.id)):y.any(e.frames,function(e){return e.isTop})?t.isTop():t.isLeader()},leaderKeyPreference:function(e){e=y.filter(e.frames,function(e){return e.leaderKey&&e.leaderKey.length});return 1===y.unique(y.map(e,function(e){return e.leaderKey.join(",")})).length?[].concat(e[0].leaderKey):[]},getMyApiKey:function(e,t){return t.getMyFrame().apiKey},getMyFrame:function(e){return e.frames[e.frameId]},window:function(){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:Ub};function jb(e){var t=y.pick(e,"id","name","launchMethod","isMultiStep","steps","control","lastUpdatedAt","language","state","polls","redisplay");return t.attributes=y.pick(e.attributes,"overrideAutoThrottling","priority","isAnnouncement","resourceCenter","device","sharedServiceVersion","embedConfig"),t._shouldBeAddedToLauncher=y.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e._shouldBeAddedToLauncher||!1,t._shouldBeAddedToResourceCenter=y.isFunction(e.shouldBeAddedToResourceCenter)?e.shouldBeAddedToResourceCenter():e._shouldBeAddedToResourceCenter||!1,t.steps=y.map(e.steps,function(e){return y.pick(e,"id","guideId","type","seenReason","seenState","lastSeenAt","lastUpdatedAt","dismissCount","snoozeEndTime","regexUrlRule","pageId","elementPathRule","triggerElementPathRule","elementContainsRulesList")}),t}function zb(e){return y.map(e,jb)}function Zb(t){var n=y.indexBy(y.filter(Ru(),function(e){return!e.isFrameProxy}),"id"),e=y.chain(t.frames).filter(function(e){return e.id!==t.frameId}).map(function(e){return y.toArray(y.get(e,"guides",[]))}).flatten(!0).unique("id").filter(function(e){return!n[e.id]}).map(function(e){return y.extend(JSON.parse(JSON.stringify(e)),{isFrameProxy:!0})}).map(mc).value(),e=y.toArray(n).concat(e).filter(tv);y.sortBy(e,nv),bv(e),Cu(e),t.guidesLoaded&&0===y.size(y.get(t,"frames."+t.frameId+".guides",[]))&&Gh()}function Vb(e,t){new(_t("MutationObserver"))(t).observe(e,{subtree:!0,attributes:!0,childList:!0,characterData:!0})}var Yb,Hb={startObserver:function(t){var n,i,r,o,a;n=t,i=Element.prototype.attachShadow,Element.prototype.attachShadow=function(e){e=i.call(this,e);return this.shadowRoot&&Vb(this.shadowRoot,n),e},Element.prototype.attachShadow.toString=function(){return i.toString()},y.isFunction(document.createNodeIterator)&&(r=0,o=[Ea()],function s(e){do{if(!(e=e||document.createNodeIterator(o.pop(),NodeFilter.SHOW_ELEMENT))||!e.nextNode)break;for(;(a=e.nextNode())&&(r++,a&&a.shadowRoot&&(Vb(a.shadowRoot,t),o.push(a.shadowRoot),Hb.foundShadowRoots=!0),r%5e3!=0););}while(!a&&(e=null,o.length));a&&Hb.foundShadowRoots&&Dt(function(){s(e)},50),5e3!==r||Hb.foundShadowRoots||(Hb.stoppedSearchEarly=!0)}())},foundShadowRoots:!1,stoppedSearchEarly:!1},e={actions:{documentChanged:function(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,Mh-t),Mh),t=Dt(Xb,t),e.commit("setScheduledUpdate",t))},handleScheduledUpdate:function(e){e.dispatch("stopScheduledUpdate"),Gh()},stopScheduledUpdate:function(e){e.state.scheduledUpdate&&(clearTimeout(e.state.scheduledUpdate),e.commit("setScheduledUpdate",null))},startObserverIfNeeded:function(e,t){var n;e.state.useObserver&&((n=e.getters.observer())||(n=new(t||_t("MutationObserver"))(Kb),Yb=n),e.state.observing||(n.observe(document.documentElement,{subtree:!0,attributes:!0,childList:!0,characterData:!0}),e.state.observeShadowRoots&&Hb.startObserver(Kb),e.commit("setObserving",!0)))},stopObserver:function(e){var t=e.getters.observer();t&&y.isFunction(t.disconnect)&&t.disconnect(),e.commit("setObserving",!1),e.dispatch("stopScheduledUpdate")}},mutations:{setUseObserver:function(e){e.useObserver=!0},setObserveShadowRoots:function(e){e.observeShadowRoots=!0},setObserving:function(e,t){e.observing=t},setNeedsUpdate:function(e){e.needsUpdate=!0},setScheduledUpdate:function(e,t){e.scheduledUpdate=t},startUpdate:function(e,t){e.needsUpdate=!1,e.updateId=t},completeUpdate:function(e,t){e.updateId=null,e.updateCompleteTime=t}},getters:{now:b,observer:function(){return Yb}},state:{useObserver:!1,observeShadowRoots:!1,observing:!1,needsUpdate:!1,scheduledUpdate:null,updateId:null,updateCompleteTime:0,iterationTimeLimit:50}};function Kb(){A.dispatch("guideUpdate/documentChanged")}function Xb(){A.dispatch("guideUpdate/handleScheduledUpdate")}Jb=["advanced","dismissed","snoozed"];var Jb,qb,Qb,e0,t0,n0,i0,r0,o0,a0={actions:{init:function(t,e){y.each(e,function(e){y.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){na(['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=b();e.steps[t.id]=y.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)&&!(b()>=t.allowedAt)&&y.contains(Jb,t.seenState)&&!y.contains(Jb,e.seenState)}},isMissingPageRule:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(!t.regexUrlRule||e.regexUrlRule)}}},state:{steps:{},exceptions:{}}},s0={state:{lastFlush:b(),flushInterval:3e5,counters:{ptmGifFailures:0,guideGifFailures:0},timers:{}},actions:{flush:function(n){y.each(n.state.counters,function(e,t){n.commit("resetCounter",t)}),y.each(n.state.timers,function(e,t){n.commit("resetTimer",t)}),n.commit("setLastFlush",n.getters.now())}},mutations:{setLastFlush:function(e,t){e.lastFlush=t},incrementCounter:function(e,t){e.counters[t]!==undefined&&e.counters[t]++},resetCounter:function(e,t){e.counters[t]!==undefined&&(e.counters[t]=0)},setTimer:function(e,t){var t=void 0===t?{}:t,n=t.name,t=t.time;n&&null!=t&&(e.timers[n]=t)},resetTimer:function(e,t){delete e.timers[t]}},getters:{shouldFlush:function(e,t){return t.now()-e.lastFlush>=e.flushInterval},payload:function(e){var t=y.reduce(e.counters,function(e,t,n){return 0<t&&(e[n]=t),e},{});return y.extend({},t,e.timers)},now:b}},d0={state:{visitor:{},account:{},parentAccount:{},date:null,version:null,selfHosted:null},actions:{},mutations:{setMetadata:function(e,t){t&&(t.visitor&&(e.visitor=t.visitor),t.account&&(e.account=t.account),t.parentAccount&&(e.parentAccount=t.parentAccount),t.date&&(e.date=t.date),t.version&&(e.version=t.version),null!==t.selfHosted)&&(e.selfHosted=t.selfHosted)},clearAccount:function(e){e.account={}},reset:function(e,t){e.visitor={id:t.visitor_id},e.account={},e.parentAccount={},e.date=null,e.version=null,e.selfHosted=null}},getters:{metadata:function(e){return e},selfHosted:function(e){return e.selfHosted}}},u0=w.getLocal(),c0="pendo-preview",l0="current-guide-preview",p0={state:{preview:null,designerPreview:null},actions:{start:function(e,t){e.commit("setPreview",t),e.dispatch("write")},restart:function(e,t){e.commit("updatePreview",{state:null}),e.commit("updatePreview",t)},update:function(e,t){e.commit("updatePreview",{state:t}),e.dispatch("write")},load:function(e){try{var t=e.getters.storage(),n=JSON.parse(t.getItem(c0)),i=(n.apiKey===v.apiKey&&e.commit("setPreview",n),t.getItem(l0));i&&e.commit("setDesignerPreview",JSON.parse(i))}catch(r){}},write:function(e){try{var t=e.getters.storage();e.state.preview?t.setItem(c0,JSON.stringify(e.state.preview)):t.removeItem(c0)}catch(n){}},exit:function(e){e.commit("setPreview",null),e.dispatch("write")},exitDesignerPreview:function(e){e.commit("setDesignerPreview",null),e.getters.storage().removeItem(l0)},launchInAppDesigner:function(e,t){Xf.launchInAppDesigner(t)}},mutations:{updatePreview:function(e,t){e.preview&&y.extend(e.preview,t)},setPreview:function(e,t){e.preview=t},setDesignerPreview:function(e,t){e.designerPreview=t}},getters:{isInPreviewMode:function(e){return!!e.preview},isInDesignerPreviewMode:function(e,t){return!!e.designerPreview&&t.isInPreviewMode()},storage:function(){return u0}}},h0=(qb={isTop:undefined,isLeader:undefined,frameId:null,tabId:null,frames:{},autoOrdering:[],excludedGuides:[],throttling:{},enableEventLogging:!1,eventsCaptured:[],cspErrors:[],installType:null},t0={debuggingEnabled:{type:Qb="top-down",defaultValue:!(e0="bottom-up")},guideLoopRunning:{type:e0,defaultValue:!1},stepEligibilitySet:{type:e0,defaultValue:{}},identity:{type:e0,defaultValue:{}},location:{type:e0,defaultValue:{}}},h0={init:function(e){e.commit("setFrameId",Gn.getFrameId()),e.commit("setTabId",Gn.getTabId()),e.commit("setInstallType",Ge());var t=zu()&&window.top===window;qb.isTop,e.commit("setIsTop",t),e.commit("isLeader",zu()),t?(t=ef(),e.commit("debuggingEnabled",!0===t.enabled),t.enableEventLogging&&e.commit("enableEventLogging",!0)):L.postMessage({action:"debugger/join",frameId:e.state.frameId})},join:function(n,e){n.state.frameId!==e.frameId&&y.each(t0,function(e,t){e.type===Qb&&L.postMessage({action:"debugger/sync",frameId:n.state.frameId,fields:((e={})[t]=n.state[t],e)})})},sync:function(i,e){var r;i.state.frameId!==e.frameId&&(r=e.frameId,e=e.fields,y.each(e,function(e,t){var n;!t0[t]||(n=t0[t].type)===Qb&&i.state.isTop||n===e0&&!i.state.isTop||i.commit("_sync_".concat(t),{value:e,frameId:r})}))},enableEventLogging:function(e,t){e.commit("enableEventLogging",t)},eventCaptured:function(e,t){e.state.isTop?e.commit("eventsCaptured",t):L.postMessage({action:"debugger/receiveEventCaptured",frameId:e.state.frameId,event:t})},receiveEventCaptured:function(e,t){e.state.isTop&&e.commit("eventsCaptured",t.event)},clearEventsCaptured:function(e){e.commit("eventsCaptured",[])},onCspError:function(e,t){e.state.isTop?e.commit("cspError",t):L.postMessage({action:"debugger/recieveCspError",frameId:e.state.frameId,data:t})},recieveCspError:function(e,t){e.state.isTop&&e.commit("cspError",t.data)},checkGuideEligibility:function(e,t){var i=t.guideId,n=t.response,t=y.filter(A.state.frames.frames,function(e){return e.guides&&e.guides[i]});t.length&&(t=y.map(t,function(n){var e=y.map(n.guides[i].steps,function(e,t){return L.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:n.id,stepId:e.id,currentStepIndex:t,guideId:i})});return C.all(e).then(function(e){return{frameId:n.id,frameVisibility:n.visibility,errors:y.map(e,function(e){return JSON.parse(e).errors})}})}),C.all(t).then(function(e){return e}).then(function(e){return n(e)})["catch"](function(e){return n({error:e})}))}},n0={},i0={setFrameId:function(e,t){e.frameId=t},setTabId:function(e,t){e.tabId=t},setIsTop:function(e,t){e.isTop=t},isLeader:function(e,t){e.isLeader=t},setInstallType:function(e,t){e.installType=t},stepEligibilitySet:function(e,t){var n=t.stepId;e.stepEligibilitySet[n]=t},guideLoopRunning:function(e,t){e.guideLoopRunning!==t&&(e.guideLoopRunning=t)},identity:function(e,t){e.identity=t},location:function(e,t){e.location=t},debuggingEnabled:function(e,t){e.debuggingEnabled=t,t=t,e=e.isTop,qb.debuggingEnabled!==t&&(t?(v0(),y0(),S.on("stepEligibility",f0),S.on("guideUpdateComplete",r0),S.on("guideLoopStopped",o0),S.on("eventCaptured",m0),S.on("identify",v0),S.on("urlChanged",y0),e&&(g0(),S.on("guidesLoaded",g0))):(S.off("stepEligibility",f0),S.off("guideUpdateComplete",r0),S.off("guideLoopStopped",o0),S.off("eventCaptured",m0),S.off("identify",v0),S.off("urlChanged",y0),e&&S.off("guidesLoaded",g0)))},excludedGuides:function(e,t){e.excludedGuides=t},autoOrdering:function(e,t){e.autoOrdering=t},throttling:function(e,t){e.throttling=t},eventsCaptured:function(e,t){y.isArray(t)&&0===t.length?e.eventsCaptured=[]:e.debuggingEnabled&&e.enableEventLogging&&e.eventsCaptured.unshift(t)},enableEventLogging:function(e,t){e.enableEventLogging=t},cspError:function(e,t){e.cspErrors.unshift(t),10<e.cspErrors.length&&e.cspErrors.pop()}},r0=y.partial(b0,!0),o0=y.partial(b0,!1),y.each(t0,function(e,i){var r=e.type,e=e.defaultValue,o=(qb[i]=e,n0[i]=function(e){return e[i]},i0[i]||function(e,t){e[i]=t});i0[i]=y.wrap(o,function(e,t,n){!t.isTop&&r===Qb||(e(t,n),t.isTop&&r===e0)||L.postMessage({action:"debugger/sync",frameId:t.frameId,fields:((e={})[i]=n,e)})}),o=i0["_sync_".concat(i)]||o,i0["_sync_".concat(i)]=function(e,t){var n=t.value,t=t.frameId;e.frames[t]||(e.frames[t]={}),e.frames[t][i]||(e.frames[t][i]=t0[i].defaultValue),o(e.frames[t],n),e.isTop||r!==Qb||o(e,n)}}),{state:qb,actions:h0,getters:n0,mutations:i0});function f0(e){e=e.data[0];A.commit("debugger/stepEligibilitySet",e)}function g0(e){var t=y.map(Ah.sortAndFilter(k,v.autoOrdering),function(e){return e.id});A.commit("debugger/autoOrdering",t||[]),A.commit("debugger/excludedGuides",v.excludedGuides||[]),A.commit("debugger/throttling",v.throttling||{})}function m0(e){A.dispatch("debugger/eventCaptured",e.data[0])}function v0(e){A.commit("debugger/identity",{visitorId:y.get(e,"data.0.visitor_id")||v.get_visitor_id(),accountId:y.get(e,"data.0.account_id")||v.get_account_id(),apiKey:v.apiKey})}function y0(){A.commit("debugger/location",{href:go(),browserUrl:window.location.href})}function b0(e){A.commit("debugger/guideLoopRunning",e)}S0="pendo-loader";var I0,w0,C0,S0,A0={name:"IFrameMonitor",initialize:function(e,t){I0=e,w0=t,function(){w0.ConfigReader.get("autoFrameInstall")&&w0.Events.ready.on(O0);w0.ConfigReader.get("frameIdentitySync")&&(w0.Events.metadata.on(M0),w0.Events.identify.on(L0),w0.Events.childFrameJoined.on(E0))}(),C0=w0.ConfigReader.get("frameIdentityTopDownOnly")},teardown:function(){w0.Events.ready.off(O0),w0.Events.metadata.off(M0),w0.Events.identify.off(L0),w0.Events.childFrameJoined.off(E0)}};function E0(){F0()}function T0(e){return e.ignoreIframeMonitor||e.pendo&&(e.pendo.initialize||e.pendo.iframeWaiting)||!!e.document.getElementById(S0)}function _0(e,t){var n;T0(e)||((n=w0.ConfigReader.getLocalConfig()).apiKey||(n.apiKey=I0.apiKey),e.pendo={_q:[["initialize",n]]},(n=e.document.createElement("script")).src=t,n["async"]=!0,n.id=S0,(t=e.document.getElementsByTagName("script")[0])&&t.parentNode?t.parentNode.insertBefore(n,t):(e.document.head||e.document.body).appendChild(n))}function x0(e,t){e.pendo.iframeWaiting=!1,_0(e,t)}function R0(e){try{if(T0(e))return}catch(i){return}var t,n=(n=w0.ConfigReader.get("selfHostedAgentUrl"))||(n=I0.dom("script"),t=/\/pendo(\.\w+)?\.js$/,(n=I0._.find(n,function(e){return t.test(e.src)}))&&n.src);n?"complete"===e.document.readyState?_0(e,n):(e.pendo={iframeWaiting:!0},e.document.addEventListener("DOMContentLoaded",I0._.partial(x0,e,n))):I0.log("Unable to find agent url to install agent in frames","debug")}function k0(){for(var e=I0.dom("iframe").length,t=0;t<e;t++)R0(window.frames[t]);Dt(k0,250)}function O0(){k0()}function N0(){return!C0||w0.store.getters["frames/isLeader"]()}function M0(e){N0()&&(e=null==(e=e.data)?void 0:e[0]).storeChanged&&w0.store.dispatch("frames/syncOptions",{options:e.options})}function L0(e){var t;F0(null==(t=e.data)?void 0:t[0].visitor_id,null==(t=e.data)?void 0:t[0].account_id)}function F0(e,t){void 0===e&&(e=E()),void 0===t&&(t=mi()),N0()&&w0.store.dispatch("frames/syncIdentity",{visitorId:e,accountId:t})}G0.prototype.markDirty=function(){this.queue.push.apply(this.queue,this.domActivation.guides)},G0.prototype.process=function(e){var t,n,i=this.queue.shift();if(i){e.saveContext(i);try{t=Xr(i.selector)}catch(r){t=[]}t.length>this.maxTargets&&(t.length=this.maxTargets),e=t,n=i.targets,e.length==n.length&&y.all(e,function(e,t){return e===n[t]})||(i.targets=t,this.domActivation.detach(i,this.domActivation.targets),y.each(t,function(e){this.domActivation.attach(e,i,this.domActivation.targets)},this))}},G0.prototype.handleProcessTimeExceeded=function(e){e=e.getContext();e&&I.warn("Element activated guide ("+e.id+") timeout exceeded")},G0.prototype.cancel=function(){this.queue.length=0},G0.prototype.isComplete=function(){return!this.queue.length};var P0=G0;function G0(e){this.maxTargets=50,this.domActivation=e,this.name="dom",this.queue=[]}var D0,B0,W0,$0,U0,j0,z0={name:"DOMActivation",key:W0="pendoTargetId",guides:$0=[],targets:U0={},reset:K0,init:J0,attach:function(n,i,e){var t=n[W0],r=t?e[t]:null;r||(t=t||"target"+y.uniqueId(),r={target:n,events:{}},e[t]=r,n[W0]=t);var o=e[i.id]||[];o.push(t),e[i.id]=o,y.each(i.events,function(e){var t=r.events[e];t||((t={guideIds:{}}).fn=y.partial(H0,y,t.guideIds),l(n,e="mouseover"===e?"mouseenter":e,t.fn),r.events[e]=t),t.guideIds[i.id]=1})},detach:Y0,handler:H0,activates:X0,prefetch:q0,initialize:function(e,t){(D0=t).Events.on("deliverablesLoaded",K0),t.Events.on("guideListChanged",Z0),t.Events.on("guidesLoaded",V0),Xh(B0=new P0(z0))},teardown:function(){Jh(B0),D0.Events.off("deliverablesLoaded",K0),D0.Events.off("guideListChanged",Z0),D0.Events.off("guidesLoaded",V0)}};function Z0(){K0(),J0(Iu())}function V0(){q0(Iu())}function Y0(i,t){y.each(t[i.id],function(e){var n=e?t[e]:null;n&&(y.each(n.events,function(e,t){e&&e.guideIds&&(delete e.guideIds[i.id],y.size(e.guideIds)<=0)&&(hu(n.target,t="mouseover"===t?"mouseenter":t,e.fn),delete n.events[t])}),y.size(n.events)<=0)&&(delete n.target[W0],n.target=null,delete t[e])}),delete t[i.id]}function H0(e,t){var n;!e.pendoActivatedGuide&&!R.data.get(e,"advanced")&&(n=m.get("adoptPrioritizeAdoptGuides"),t=y.compact(y.map(y.keys(t),Tu)),t=y.filter(t,function(e){return!(!e.steps||!e.steps.length||y.get(e,"attributes.dom.isOnlyShowOnce")&&e.steps[0].hasBeenSeen())}),t=y(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=y.find(t,function(e){var t=y.first(e.steps);return y.get(e,"attributes.resourceCenter",!1)&&e.isShown()?N.dismissResourceCenter():!!t.canShow()&&(!!e.isShown()||Rm(t,"dom"))}))&&(e.pendoActivatedGuide=t.id)}function K0(){y.each($0,function(e){Y0(e,U0),e.targets=[]}),$0.length=0}function X0(e){if(e.id&&e.steps&&e.steps.length&&e.hasLaunchMethod("dom")&&e.steps[0].canShowOnPage(Um())){var t=y.get(e,"attributes.activation.event",[]);if(t&&t.length){var n=$u(e);if(n)return{id:e.id,events:t,selector:n,targets:[]}}}}function J0(e){y.each(e,function(e){e=X0(e);e&&$0.push(e)})}function q0(e){m.get("disablePrefetch")||y.each(e,function(e){y.isFunction(e.hasLaunchMethod)&&e.hasLaunchMethod("dom")&&e.steps&&e.steps.length&&y.isFunction(e.steps[0].fetchContent)&&e.steps[0].fetchContent(!0)})}var Q0,eI,tI,nI,iI=function(){(j0=j0||{dom:R,placeBadge:cf,showPreview:Tm,stopGuides:Ph,removeAllBadges:lf,_:y,sizzle:Xr,tellMaster:ys,tell:ys,log:Dy,attachEvent:l,createLauncher:y.constant({}),removeLauncher:y.noop,addGuideToLauncher:y.noop,updateLauncherContent:y.noop,DEFAULT_TIMER_LENGTH:Mh,getOffsetPosition:wa,getScreenDimensions:ya,registerMessageHandler:ds,whenLoadedCall:gu,loadResource:ts,loadGuideCss:hv,GuideFactory:mc,GuideStep:vc,extractElementTreeContext:iu,previewGuideFromJSON:F.previewGuideFromJSON,hidePreviewedGuide:F.hidePreviewedGuide,shadowAPI:_i,getTarget:io,pullContentsFromTargetElement:wm,doesElementMatchContainsRules:Cm,doesElementContentMatchRule:Sm,getGuideAttachPoint:Gu}).areGuidesEnabled=!Av(),v.designer||(v.designer=j0)},rI={name:"DesignerConnect",initialize:function(e,t){Q0=e,eI=t,Cs()||ds("connect",oI);ds("pendo-designer-launch::launch",dI),ds("pendo-preview::launch",uI),e.app_name=document.title,(bs()||window.opener)&&window.addEventListener&&(Q0.log(e.app_name+": listening to messages"),window.addEventListener("message",rs,!1));window.opener&&Q0._.isFunction(window.opener.postMessage)&&window.opener.postMessage({type:"pendo::ready"},"*");Q0.onConnectMessage=oI},teardown:function(){window.removeEventListener&&window.removeEventListener("message",rs,!1),aI(),us("connect"),us("pendo-designer-launch::launch"),us("pendo-preview::launch"),nI&&(eI.Events.appUnloaded.off(nI),nI=undefined);tI=tI&&undefined},onConnectMessage:oI,disconnectDesigner:aI,launchDesignerListener:dI,launchPreviewListener:uI,sendToken:sI};function oI(e,t){var n,i;Q0.isSendingEvents()&&(n=t.origin,Q0.stopGuides(),Q0.buffers.lock(),i=t.source,Qa=i,Q0.designerv2.hostConfig||(eI.store.dispatch("frames/leave"),nI=Q0._.partial(aI,i,n),eI.Events.appUnloaded.on(nI)),iI(),ys(t.source,{status:"success",type:"connect"},n),fs("selection.js")&&(Q0.log("Designer Modules already loaded."),ys({type:"ready"},n)),eI.Events.designerLaunched.trigger())}function aI(e,t){Q0.buffers.unlock(),v.designer&&(v.designer=null,delete v.designer),e&&ys(e,{type:"unload"},t)}function sI(e,t){var n;tI&&(n={token:tI,type:"pendo-designer-launch::set-token"},t.source.postMessage(n,t.origin),tI=undefined)}function dI(e,t){var n,t=t.data.token;t&&(tI=t,ds("pendo-designer-launch::get-token",sI),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},Q0.designerv2.launchInAppDesigner(n))}function uI(e,t){var n=t.data.config.preferredAgentInstallType;n&&n!==Ge()?Q0.log("Skipping preview launch due to agent install type mismatch."):(n=Q0._.extend({},t.data.config,{origin:t.origin}),Bo()&&(n.apiKey=Q0.apiKey),eI.store.dispatch("preview/exitDesignerPreview"),eI.store.dispatch("preview/start",n),bf(window)&&(t.source.postMessage({type:"pendo-preview::ready",apiKey:Q0.apiKey,accountId:Q0.accountId},t.origin),Pv(),eI.store.dispatch("frames/startPreview")))}var cI,lI,pI,hI,fI,gI="__sg__",mI=(lI="promotedAgentMetadataConfigurations",pI=[],hI={},fI={},{name:"PromoteMetadata",initialize:function(e,t){if(pI=(cI=t).ConfigReader.get(lI),fI={},w.registry.addLocal(gI),ri())try{hI=JSON.parse(w.read(gI))||{}}catch(n){hI={}}pI&&pI.length&&(cI.Events.on("metadata",bI),cI.Events.on("eventCaptured",SI),cI.Events.on("identify",II))},teardown:function(){cI.Events.off("metadata",bI),cI.Events.off("eventCaptured",SI),cI.Events.off("identify",II)},getPromotedMetadata:function(){return pI},hasPromotedMetadataKind:vI,setSchemaGroup:bI,getSchemaGroup:yI,resetSchemaGroup:wI});function vI(t){return y.some(pI,function(e){return e.kind===t})}function yI(){return fI}function bI(e){var t;e?(e=e.data[0].options)&&(t=e):t=fp(),fI=function(r){ri()&&(hI=function(e){return y.mapObject(e,function(t,e){var n={};return Object.keys(t).forEach(function(e){n[e.replace("agent__","")]=t[e]}),n})}(hI=JSON.parse(w.read(gI))||{}));var o=fI;y.each(["visitor","account","parentAccount"],function(e){var t=vI(e),n=!y.isEmpty(r[e]),i=e.toLowerCase()+"metadata";t&&(!y.isEmpty(hI)&&y.isEmpty(js.get())&&(o[i]=CI(hI[i],e)),n)&&(t=CI(r[e],e),y.isEmpty(t)||(o[i]=Gt(Gt({},o[i]),t)))}),ri()&&w.write(gI,JSON.stringify(o),undefined,!1,!0);return o}(t)}function II(e){e=e.data[0];y.get(e,"wasCleared")&&(w.clear(gI),wI())}function wI(){fI={}}function CI(e,i){var r={};return e&&y.each(e,function(e,t){var n=t.toLowerCase();Boolean(y.find(pI,function(e){return e.fieldName===n&&e.kind===i}))&&(r["agent__"+n]=e)}),r}function SI(e){e=e.data[0];e&&(y.isEmpty(fI)&&bI(),y.isEmpty(fI)||("track"===e.type?e.props.__sg__=fI:(e.hasOwnProperty("eventProperties")||(e.eventProperties={}),e.eventProperties.__sg__=fI)))}function AI(e,t,n){this.element=e,this.method="element"==t?"click":"hover"==t?"mouseover":t,this.step=n,this.guide=n.getGuide()}AI.prototype.add=function(){0===y.indexOf(this.guide.steps,this.step)&&!AI.shouldAttachHandler(this.guide,this.method)||Nu(this.guide)&&!Mu(this.guide)||this.setupElementEvent(this.element,this.method)},AI.prototype.remove=function(){this.teardownElementEvent(this.element,this.method)},AI.prototype.setupElementEvent=function(e,t){this.advanceFn||(this.advanceFn=y.compose(y.bind(this.teardownElementEvent,this,e,t),y.bind(this.step.advance,this.step))),AI.attach(this.step,e,t,this.advanceFn)},AI.prototype.teardownElementEvent=function(e,t){I.info("detach onGuideAdvanced",{contexts:["guide"]}),hu(e,t,this.advanceFn,!0),this.step.removeTrigger(this)},AI.shouldAttachHandler=function(e,t){return!e.isActivatedByEvent(t)||z0.activates(e)||e.attributes.activation.selector!==e.steps[0].elementPathRule&&!!e.attributes.activation.selector};var EI=null,TI=function(){return Pu()?Ou:ku},_I=function(e){return"#_pendo_g_"+e.id},xI=function(e,t){EI=null;var n,i,r,o,e=wa(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(TI()),o=DI(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"}),R("._pendo-guide-container_",n).addClass(o.arrowPosition).css({top:o.content.top,left:o.content.left,width:o.content.width,height:o.content.height}),RI(n[0],o),n[0])},RI=function(e,t){var n=["top","right","bottom","left"],i="_pendo-guide-arrow-",r=i+"border-",o=t.arrowPosition,a=y.chain(n).filter(function(e){return e!==o}).map(function(e){return"border-"+e+"-width:"+v.TOOLTIP_ARROW_SIZE+"px;"}).value().join(""),s=R("div._pendo-guide-arrow_",e).remove().findOrCreate("<div class='_pendo-guide-arrow_'></div>"),d=R("div._pendo-guide-arrow-border_ ",e).remove().findOrCreate("<div class='_pendo-guide-arrow-border_'></div>");y.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;"),R(e).append(s).append(d)},kI=function(e,t){t===undefined&&(t=mu),e.element=Bu(e);var n=e.element;if(!n)return I.info("No element found for step: "+e.id),null;ja(n);var i=xI(n,e);return null===i?null:(i.id=v.getTooltipDivId(e),R(i).appendTo(Gu()),t.push(i),l(i,"mouseover",y.partial(R.addClass,i,"mouseover")),l(i,"mouseout",y.partial(R.removeClass,i,"mouseover")),Uu(n,i),FI(e),n)},OI=null,NI=null;var MI=null,LI={top:"north",left:"east",bottom:"south",right:"west"},FI=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=Xc(n=n.concat(y.compact(y.flatten(y.map(t.additionalElements,function(e){return y.toArray(R(e))}))))),o={top:r=t.padding||0,left:r,bottom:r,right:r},s=Kc(a=Hc(),i,o),h=i,f=!y.isEqual(h,OI),OI=h,f||(l=a,p=!y.isEqual(l,NI),NI=l,p)||(u=s,c=!y.isEqual(u,MI),MI=u,c))&&(d={"z-index":t.zindex||1e4,position:"fixed"},t.bgColor&&(d["background-color"]=t.bgColor),t.opacity&&(d.opacity=t.opacity),y.each(s,function(e,t){t=LI[t],e=y.extend({},e,d),t=R("div._pendo-guide-tt-region-block_._pendo-region-"+t+"_")[0]||PI(t),R(t).css(e)}))}catch(g){I.info("Failed to add BlockOut ui",{contexts:["error"]})}var u,c,l,p,h,f},PI=function(e){e=R(document.createElement("div")).addClass("_pendo-guide-tt-region-block_").addClass("_pendo-region-"+e+"_");R("body").append(e)},GI=function(e){var t=y.isEqual(e,EI);return EI=e,!t},DI=function(e,t,n,i){var r=v.TOOLTIP_ARROW_SIZE,o={arrow:{border:{}},content:{top:r,left:r}},a=ya();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=BI(o,e,a,i=i||"auto"),o=WI(o,e,a,i),o=$I(o,e,a)},BI=function(e,t,n,i){return e.arrow.hbias=hl(t,n,i),e},WI=function(e,t,n,i){var r;return i&&"DEFAULT"!=i&&"auto"!=i&&(e.arrowPosition=i),e.arrowPosition||(i=t.top-zo(),t=(r=t.left-Zo())+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},$I=function(e,t,n){var i,r,o,a=e.height,s=e.width;return tt()?nt(e,t):("top"==e.arrowPosition||"bottom"==e.arrowPosition?(i=0,"top"==e.arrowPosition?(e.top=t.top+t.height,e.arrow.top=We(9,6)?6:2,i=-1):"bottom"==e.arrowPosition&&(e.top=t.top-a,e.arrow.top=a-v.TOOLTIP_ARROW_SIZE-1,e.arrow.top+=We(9,6)?6:0,e.arrow.top+=8==Be?-1:0,i=1),r=10+v.TOOLTIP_ARROW_SIZE,o=s-3*v.TOOLTIP_ARROW_SIZE-10,e.arrow.hbias==cl?(e.left=t.left+t.width/2-(10+2*v.TOOLTIP_ARROW_SIZE),e.arrow.left=r):e.arrow.hbias==ll?(e.left=t.left-s+t.width/2+(10+2*v.TOOLTIP_ARROW_SIZE),e.arrow.left=o):(e.left=t.left+t.width/2-s/2,e.arrow.left=s/2-v.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==cl?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=We(10,6)?5:0,e.arrow.border.left=e.arrow.left-1):e.arrow.hbias==ll&&(e.left=Math.max(0,t.left-s),e.arrow.left=s-v.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=We(10,6)?5:0,e.arrow.left+=7==Be&&6<=Ze?1:0,e.arrow.border.left=e.arrow.left+1),e.top=t.top-a/2+t.height/2,e.arrow.top=a/2-v.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e)},UI=430,jI=200,zI=15;function ZI(e){var t;return"tooltip"===this.type&&((t=this).attributes.height=t.attributes.height||v.TOOLTIP_DEFAULT_HEIGHT,t.attributes.width=t.attributes.width||v.TOOLTIP_DEFAULT_WIDTH,t.attributes.layoutDir=t.attributes.layoutDir||"DEFAULT",this.getTriggers=function(e){var t=this,n=t.element||Bu(t);return!n&&e?[]:(e=(t.advanceMethod||"").split(","),this.triggers=y.map(e,function(e){return new AI(n,e,t)}),this.triggers)},this.removeTrigger=function(e){this.triggers=y.without(this.triggers,e),0===this.triggers.length&&(this.triggers=null)},this.canShow=function(){return!ym(t)&&!!e.canShowOnDevice()&&!t.isShown()&&t.canShowOnPage(Um())&&Im(t)},this.after("render",function(){kI(this,this.elements)&&(y.each(this.getTriggers(),function(e){e.add()}),fl.attachScrollHandlers(this,this.onscroll))}),this.reposition=function(){var e=this.attributes.width,t=this.attributes.height,n=this.attributes.layoutDir,i=this.guideElement,r=R("._pendo-guide-container_",i),o=wa(this.element),t=DI(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+"_"),R("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),RI(i,t),i.css({top:t.top,left:t.left,height:t.height,width:t.width,position:o.fixed?"fixed":""}),this.dim=t,FI(this)},this.onscroll=function(e){$a(e.element)?(e.reposition(),ma(e.elements[0],"display:block")):ma(e.elements[0],"display:none")},this.teardownElementEvent=function(){y.each(this.triggers,function(e){e.remove()})},this.after("hide",function(){R("._pendo-guide-tt-region-block_").remove(),MI=NI=OI=null})),this}var VI=function(e,t){var n=!!R("._pendo-backdrop_")[0];return y.get(t,"overlayDiv[0]")||(t.overlayDiv=R(document.createElement("div")).addClass("_pendo-backdrop_")),!1==n&&(t.elements.push(t.overlayDiv[0]),t.overlayDiv.appendTo(Gu())),tt()&&t.overlayDiv.css({height:"100%",width:"100%",position:"absolute"}),e&&R(t.overlayDiv).addClass("_pendo-onboarding_"),t.overlayDiv},YI=function(e){var t=e.guideElement,n=v.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}),R("._pendo-guide-container_",t).css({bottom:n,right:n}),tt()&&t.css({position:"absolute"})},HI=function(e,t){t===undefined&&(t=mu),e.element=Bu(e),YI(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=(VI(n,e),e.guideElement);t.push(n[0]),n.appendTo(Gu())},KI=function(e,t){t===undefined&&(t=mu),e.element=Bu(e),e.guideElement.addClass("_pendo-guide-mobile-lb_");var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=VI(n,e),e=e.guideElement,i=v.TOOLTIP_ARROW_SIZE,i=(e.css({width:"",height:""}),R("._pendo-guide-container_",e).css({bottom:i,right:i}));function r(e){e.preventDefault()}R("._pendo-close-guide_",e).remove().prependTo(i),e.appendTo(Gu()),t.push(e[0]),l(n[0],"touchmove",r),l(e[0],"touchmove",r)};function XI(){var e=this;return/lightbox/i.test(e.type)&&(e.attributes.height=e.attributes.height||v.LB_DEFAULT_HEIGHT,e.attributes.width=e.attributes.width||v.LB_DEFAULT_WIDTH,e.after("render",function(){(Pu()?KI:HI)(e,e.elements)}),e.reposition=function(){Pu()||e.guideElement.css({"margin-left":-Math.floor(e.attributes.width/2),"margin-top":-Math.floor(e.attributes.height/2)})}),e}var JI=500,qI="_pendo-guide-banner_";function QI(){var n=this;return"banner"===n.type&&(n.attributes.height=n.attributes.height||JI,n.attributes.position=n.attributes.position||"top",n.after("render",function(){var e=n.guideElement,t=v.TOOLTIP_ARROW_SIZE;e.css({width:""}).addClass(qI).addClass("_pendo-guide-banner-"+n.attributes.position+"_"),Fu()||e.addClass("_pendo-in_"),R("._pendo-guide-container_",e).css({bottom:t,right:t}),n.element=Bu(n),n.elements.push(e[0]),e.appendTo(Gu())})),n}function e1(t){var n=this,e="whatsnew",i="_pendo-guide-whatsnew-seen_",r="active",o=1e3;return n.type===e&&(y.extend(n,{isShown:y.constant(!1),launch:d,onShown:d,render:function(){var e=n.guideElement,t=n.attributes.height;e&&e.html()||(e=R(document.createElement("div")).attr("id",Am(n)).addClass("_pendo-guide-whatsnew_").html(n.getContent()),y.isNumber(t)&&!n.attributes.autoHeight&&e.height(t),n.seenState===r&&e.addClass(i),n.guideElement=e)},seen:s}),y.extend(t,{addToLauncher:function(){var e=n.guideElement;e&&!_a(e[0])&&(R("._pendo-launcher_ #launcher-"+n.guideId).html("").append(e),kc.runCustomScripts(n,t))},isReady:a}),n.after("show",s)),n;function a(){return!!n.guideElement}function s(){Fu()||a()&&n.seenState!==r&&function(e){{var t,n;if($a(e,/(auto|scroll|hidden)/))return(t=Oa(e))?(t=xa(t),e=xa(e),n=t.top+Math.floor(t.height/3),e.bottom<=t.bottom||e.top<=n):1}}(n.guideElement[0])&&(Om(n.guideId,n.id,E(),e,t.language,{last_updated_at:n.lastUpdatedAt}),n.seenState=r,y.delay(function(){n.guideElement.addClass(i+" out")},y.isNumber(n.attributes.seenDelay)?n.attributes.seenDelay:o))}function d(){}}var t1="_pendo-launcher-searching_",n1="._pendo-launcher-search-box_ input";var i1,r1=function(e){return e&&y.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e&&e.launchMethod&&0<=e.launchMethod.indexOf("launcher")};function o1(){var e;return function(){var e;if(v.guideWidget)return(e=v.guideWidget.data)&&e.enableSearch}()&&(e=R(n1)[0])&&0<(e=e.value).length?(e=gt.call(e),[].concat(y.compact(e.split(" ")))):[]}function a1(e){if(!m.get("disablePrefetch"))return C.all(y.map(e,function(e){return e.fetchContent()}))}function s1(e,t){return I.info("doing search on "+t,{contexts:["launcher","search","guides"]}),e=e||k,t&&0!==t.length?y.chain(e).filter(r1).map(function(e){return e.searchFor(t)}).compact().sortBy(function(e){return y.indexOf(["tag","name","content"],e.field)}).pluck("guide").value():e}var d1=function(){var e=Ru();if(zu()){if(v.guideWidget&&v.guideWidget.enabled){var t=v1(e),n=!0;if(v.guideWidget&&y.isFunction(v.guideWidget.update))v.guideWidget.update(t,n)}}else{_1();t=wu(e),n=y1(v1(t));n!==i1&&A.dispatch("frames/changeGuideList",t),i1=n}},u1="launcher-closed",c1=null,l1=null,p1=!(AI.attach=function(e,t,n,i){if(e){for(var r=AI.handlers=AI.handlers||{},o=r[e.id]=r[e.id]||[],a=0;a<o.length;++a){var s=o[a];t===s[0]&&n===s[1]&&(hu(t,n,s[2],!0),o.splice(y.indexOf(o,s),1),a--)}o.push([t,n,i]),hu(t,n,i,!0),l(t,n,i,!0)}}),h1="_pendo-launcher-active_",f1=null,g1=function(){return""};function m1(e,t){g1=t}function v1(e){var t,e=y.filter(e||k,r1);return e=e,0===(t=o1()).length?e:(t=y.map(t,y.partial(s1,e)),y.union.apply(y,t))}function y1(e){return Ct(y.map(e,function(e){var t=e.isWhatsNew()?[]:y.pluck(e.steps,"seenState");return{id:e.id,seenState:t}}))}function b1(e){var n=this,t=e.launchType||"badge",i=(y.extend(n,{show:function(){"badge"===t&&R(n.element).css("display: ;")},hide:function(){R(n.element).css("display: none;")},wrap:function(){var e=n.element;{var t;e&&/^img$/i.test(e.nodeName)&&(t=R(document.createElement("div")).addClass(e.className).append(e).appendTo(Gu()),e.className="",n.element=t[0])}},dispose:function(){R.removeNode(n.element)},setActive:function(e){e?R(n.element).addClass(h1):R(n.element).removeClass(h1)}}),e),e=i.position||"bottom-right",r=document.createElement("img");R(n.element=r).addClass("_pendo-launcher-badge_").addClass("_pendo-launcher-badge-"+e+"_"),i.launcherBadgeUrl&&(r.src=yc(i.launcherBadgeUrl)),r.onerror=function(e){I.info("[Agent] Error! Unable to load guide center image "+i.launcherBadgeUrl),I.critical("ERROR in when attempting to render guide center badge image",{imgSrc:i.launcherBadgeUrl})},tt()&&(l(r,"mouseover",function(e){R(r).addClass("_pendo-launcher-badge-active_")}),l(r,"mouseout",function(e){R(r).removeClass("_pendo-launcher-badge-active_")}),R(r).css({position:"absolute"})),Gu().appendChild(r)}function I1(e){function n(){return"element"===e.launchType&&e.launchElement?e.launchElement:"._pendo-launcher-badge_"}function t(e){var e=io(e),t=n();R(e).closest(t).length&&(N1()?w.write(u1,"yes",864e6):v.guideWidget.position(e),P1())}v.guideWidget.removeCountBadge=function(){R("._pendo-launcher-whatsnew-count_").remove()},e&&e.elementMatch&&(e.launchElement=e.elementMatch.selection),y.extend(this,{getLauncherTarget:function(){return R(n())[0]},dispose:function(){hu(document,"click",t),e&&e.whatsnew&&e.whatsnew.enabled&&R("._pendo-launcher-whatsnew-count_").remove()}}),l(document,"click",t)}function w1(){var n,s="bottom-right",d="bottom-left";return this.update=function(e,t){t=t?e:v1(e),e=y1(t)+Ct(o1());return e!==n&&(n=e,this.updateLauncherContent(t)),E1(),0<t.length},this.updateLauncherContent=k1,this.guideStatus=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":"not-started"},this.render=function(){var e=this.data||{},t=(c1=new b1(e),e.height||310),n=(e.enableSearch&&(t+=tt()?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,R(document.createElement("div")).addClass("_pendo-launcher_")),r=(l1=i[0],wa(c1.element)),r=DI(r,t,n),o=(i.css({width:n,height:t}),v.TOOLTIP_ARROW_SIZE),n=R(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=R1(),o=yc(C1(this.template(t))),t=R(document.createElement("div")).addClass("_pendo-guide-content_").html(o).appendTo(n);e.addUISection&&e.addUISection(i[0]),qg(i[0],function(){L1(),w.write(u1,"yes",288e5)}),t.on("click",function(e){var t=R(io(e)).closest("._pendo-launcher-item_");t&&t.length&&(t=Tu((t=/^launcher-(.+)$/.exec(gt.call(t.attr("id"))))&&t[1]))&&!t.isWhatsNew()&&(Rm(t.steps[0],"launcher"),L1(),fu(e))}),tt()&&(R("._pendo-launcher-header_",i).css({padding:"10px","margin-right":"10px","margin-left":"10px"}),R("._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");R(this).css(e)}),i.appendTo(Gu()),y.isFunction(this.script)&&this.script(this),e.autoHeight&&e.autoHeight.enabled&&!We(9,6)&&(o=e.autoHeight.offset||100,i.css({height:"calc(100% - "+o+"px)",maxHeight:e.height,minHeight:e.height/2}),R("._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=wa(e),n=DI(e,this.height,this.width),i=R(l1),"badge"===(r=t.launchType||"badge")?(o=t.position,y.indexOf(a=[s,d,"top-left","top-right"],t.position)<0&&(o=s),y.each(a,function(e){i.removeClass("_pendo-launcher-"+e+"_")}),i.addClass("_pendo-launcher-"+o+"_"),n.arrow=n.arrow||{},n.arrowPosition=y.contains([s,d],o)?"bottom":"top",n.arrow.hbias=y.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"}),R("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),$I(n,e,{width:Infinity,height:Infinity}),RI(i[0],n),i.find("._pendo-guide-container_").removeClass("top left bottom right").addClass(n.arrowPosition))},this.toggle=P1,this}function C1(e){return e=y.isString(e)?e.replace(/\s+(style)=/gi," pendo-style="):e}function S1(e,t){e.contentHostUrl&&(e.contentHostUrl=(n=e.contentHostUrl,i=location,(r=m.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)),f1=new I1(e);var n,i,r=w1.create(v.guideWidget);return y.isFunction(r.template)||(r.template=e.template?y.template(e.template):g1),r.render(),r.position(f1.getLauncherTarget()),t&&r.toggle(),r}w1.create=function(e){return y.reduce(w1.behaviors,function(e,t){return t.call(e)},e)},w1.behaviors=[qh,w1,hc.Launcher,function(){var t={text:"",highlight:function(e){return t.text?(e||"").replace(new RegExp(t.text,"gi"),"<strong>$&</strong>"):e},clear:function(){R(n1).each(function(){this.value=""})}};return this.data&&this.data.enableSearch&&this.data.enableSearch&&(this.data.search=t,v.disableGuideCenterContentSearch||this.before("update",a1),this.before("update",function(){t.text=o1().join(" ");var e=R("._pendo-launcher_");t.text?e.addClass(t1):e.removeClass(t1)})),this},function(){var n=this;{var i;n.data&&n.data.onboarding&&(i=n.onboarding=n.onboarding||{},n.before("update",function(e){var e=y.filter(e,Ab),t=y.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,R("._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=R(document.createElement("div")).addClass("_pendo-launcher-whatsnew-count_");n.data&&n.data.whatsnew&&n.data.whatsnew.enabled&&(n.before("updateLauncherContent",function(e){e=y.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=(y.each(t,function(e){e.show()}),y.find(t,function(e){if(!e.isReady())return!0;e.addToLauncher()}),y.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,R("span._pendo-launcher-whatsnew-count_").text(n.data.whatsnew.unseenCount))}),n.after("render",function(){x1()?i.appendTo(this.data.launchElement):(c1.wrap(),i.appendTo(c1.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 A1=function(){l1&&(R.removeNode(l1),l1=null),f1&&(f1.dispose(),f1=null),c1&&(c1.dispose(),c1=null)},E1=function(){(!x1()&&(M1()||0<o1().length)?T1:_1)()},T1=function(){c1&&c1.show()},_1=function(){x1()||L1(),c1&&c1.hide()},x1=function(){return!(!v.guideWidget||!v.guideWidget.data||"element"!==v.guideWidget.data.launchType)},R1=function(e){var t=fp(),t=y.extend({hidePoweredBy:!1,guides:[],guide:{},step:{},metadata:It(t)},v.guideWidget);return t.data=y.extend({},t.data),e&&(t.guides=e),t};function k1(e){var t=v.guideWidget.template||g1,e=R1(e),e=R(document.createElement("div")).html(C1(t(e))),n=e.find("._pendo-launcher-guide-listing_"),t=e.find("._pendo-launcher-footer_").html(),e=e.find("._pendo-launcher-search-results_").html();R("._pendo-launcher_ ._pendo-launcher-guide-listing_").each(function(e,t){R(e).html(n.eq(t).html())}),R("._pendo-launcher_ ._pendo-launcher-footer_").html(t),R("._pendo-launcher_ ._pendo-launcher-search-results_").html(e)}var O1=y.compose(E1,function(e,t){var n,i,r,o;r1(e)&&(n=R("._pendo-launcher_ ._pendo-launcher-guide-listing_")[0])&&(e=(o=R("#launcher-"+e.id)).length?o[0]:(e=e,R(i=document.createElement("div")).addClass("_pendo-launcher-item_"),R(i).attr("id","launcher-"+e.id),(r=document.createElement("a")).href="#",r.innerHTML=e.name,i.appendChild(r),i),o=0<o.length,y.isNumber(t)&&(r=R("._pendo-launcher-item_"))[t]?e.id!=r[t].id&&n.insertBefore(e,r[t]):n.appendChild(e))}),N1=function(){return R(l1).hasClass(h1)},M1=function(){return 0<R("._pendo-launcher-item_").length},L1=function(){var e;l1&&(e=R(l1))&&e.hasClass(h1)&&(e.removeClass(h1),c1)&&c1.setActive(!1)},F1=function(){var e;l1&&(e=R(l1))&&!e.hasClass(h1)&&(e.addClass(h1),c1)&&c1.setActive(!0)},P1=function(){l1&&!p1&&(N1()?L1:F1)()};var G1=function(){try{var e=v.guideWidget||{},t=e.data||{},n=t.device||{desktop:!0,mobile:!1,iframe:!1};A1(),!Pu()&&!n.desktop||Pu()&&!n.mobile||bs()&&!n.iframe||e.enabled&&(S1(t),_1())}catch(i){I.critical("ERROR while initializing launcher",{error:i})}},D1=function(e){e.defaultLauncher=m1,e.toggleLauncher=P1,e.showLauncher=F1,e.hideLauncher=L1,e.removeLauncher=A1,e.initLauncher=G1,e.createLauncher=S1,e._addGuideToLauncher=O1,e.launcherToolTipDiv=l1},B1=function(){G1()},W1=function(){var e;(e=v).designer&&(e.designer.createLauncher=S1,e.designer.removeLauncher=A1,e.designer.addGuideToLauncher=O1,e.designer.updateLauncherContent=k1)},$1=function(){var e;(e=v).debugging&&(e.debugging.getLauncherGuides=v1)},U1=function(e){return i=v.guideWidget,e=e,r=i&&i.data,e=y.filter(e,function(e){e=y.first(e.steps);return e&&"launcher"===e.type}),(e=y.first(y.sortBy(e,function(e){return-e.lastUpdatedAt})))&&r&&(e=y.first(e.steps),y.extend(r,y.pick(e,"contentUrl","contentUrlCss","contentUrlJs"),e.attributes),y.defaults(r,{whatsnew:{},knowledgebase:{}}),r.id=e.guideId+e.id),n=(t=i)&&t.data||{},!0!==m.get("preventCodeInjection")&&(n.contentUrlJs||n.contentUrl)?rc.verify(n).then(function(){return Sc.load(n)}).then(function(e){return n.template=e.content,y.extend(t,e)}):C.resolve();var t,n,i,r},j1=function(e,t){D1(e),t.Events.on("guidesLoaded",B1),t.Events.on("designerLaunched",W1),t.Events.on("debuggerLaunched",$1),t.GuideLoop.addUpdatePhase(d1),sv.push(U1),t.agentStorage.registry.addLocal(u1)},z1=function(e,t){var n;n=U1,0<=(n=y.indexOf(sv,n))&&sv.splice(n,1),t.GuideLoop.removeUpdatePhase(d1),t.Events.off("guidesLoaded",B1),t.Events.off("designerLaunched",W1),t.Events.off("debuggerLaunched",$1)};Qv.Extensions.API.addTopic("Launcher",{addBehavior:function(e){w1.behaviors.push(e)}});var Z1,V1,Y1,H1={name:"P1Guides",initialize:function(e,t){var n;V1=t,Z1=e.dom,Y1=[ZI,XI,QI,e1,J1,q1,X1,K1],-1<y.indexOf(vc.behaviors,ZI)||(n=y.indexOf(vc.behaviors,Rb),vc.behaviors.splice.apply(vc.behaviors,[n,0].concat(Y1)),t.Events.guideLoopStopped.on(_1),e.TOOLTIP_DEFAULT_WIDTH=UI,e.TOOLTIP_DEFAULT_HEIGHT=jI,e.TOOLTIP_ARROW_SIZE=zI,e._showElementGuide=kI,e._createTooltip=xI,e._get_tooltip_dimensions=DI,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e._showLightboxGuide=HI,j1(e,t))},teardown:function(){z1(0,V1),V1.Events.guideLoopStopped.off(_1),Y1.forEach(function(e){e=y.indexOf(vc.behaviors,e);0<=e&&vc.behaviors.splice(e,1)}),Y1=[]}};function K1(){var o=this;return"tooltip"!==o.type||o.domJson||(o.checkPlacement=function(){var e,t,n,i,r;r=wa((e=o).element||Bu(e)),FI(e),GI(r)&&(n=e.attributes.height,i=e.attributes.width,t=e.attributes.layoutDir,n=DI(r,n,i,t),(i=R(_I(e))).css({top:n.top,left:n.left,position:r.fixed?"fixed":""}),RI(i,n))}),o}function X1(){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=v.TOOLTIP_ARROW_SIZE,n=i.guideElement;n&&(e=Z1("._pendo-guide-container_",n),"tooltip"==i.type||tt()&&"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 J1(e){var t=this;return t.domJson||t.domJsonpUrl||t.after("render",function(){t.guideElement&&t.guideElement.length&&qg(t.guideElement[0],function(){e.isOnboarding()&&!confirm("Are you sure you want to stop this tutorial?")||pm(t)})}),t}function q1(){var e=this;return e.hideCredits||e.domJson||e.domJsonpUrl||Lu(e.guide)||e.after("render",function(){vm(e.guideElement[0])}),e}var Q1,ew,tw={name:"Branding",initialize:function(e,t){Q1=e,(ew=t).ConfigReader.get("isPendoFree")&&ew.Events.on("guideSeen",nw)},teardown:function(){ew.Events.off("guideSeen",nw)},addBranding:iw};function nw(e){iw(Q1,e)}function iw(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",ew.getAssetUrl("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))}dw="automation",uw=250,cw=500,pw=10;var rw,ow,aw,sw,dw,uw,cw,lw,pw,hw={name:"ActionAutomation",automationQueue:void(lw=0),initialize:function(e,t){aw=t,rw=(ow=e)._,this.automationQueue=[],t.EventRouter.registerAction(dw,e._.bind(fw,this))},teardown:function(){aw.EventRouter.deregisterAction(dw),this.automationQueue=[]},guideActivity:fw,getAutomationFromGuide:function(i,e){return rw.reduce(e,function(e,t){var n=rw.find(i,function(e){return e.id===t});return n?e.push(n):ow.log("could not find automation for "+t,"debug"),e},[])},getAutomationConfigs:function(e){if(!e||e.length<=0)return[];if(!sw)return[];var t=sw.guide,n=sw.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 ow.log("Automation is already in queue autoId: "+e.id+", guideId: "+t.id,"debug"),[];return n},getTarget:function(e){e=e.target.elementPathRules,e=ow.Sizzle(e,document);return e&&e[0]},getElement:function(n,i){void 0===i&&(i=pw);return new Ft(function(t){return Dt(function(){var e=this.getTarget(n);e&&!e.disabled||i<1?t(e):this.getElement(n,i-1).then(function(e){t(e)})}.bind(this),uw)}.bind(this))},getValue:function(e){return e.value},injectText:function(e,t){"INPUT"===e.tagName&&(n=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"));"TEXTAREA"===e.tagName&&(n=Object.getOwnPropertyDescriptor(window.HTMLTextAreaElement.prototype,"value"));n&&"function"==typeof n.set?n.set.call(e,t):e.value=t;var n=new InputEvent("input",{bubbles:!0,data:t[t.length-1]}),t=(n.simulated=!0,e.dispatchEvent(n),new InputEvent("change",{bubbles:!0}));t.simulated=!0,e.dispatchEvent(t)},isAutomationInQueue:function(t){return!!rw.find(this.automationQueue,function(e){return t.id===e.id})},popQueue:function(){var e=lw,n=this.automationQueue[0];"autoclick"===n.type&&(e=cw);return Dt(function(){return this.getElement(n,pw).then(function(e){if(e)if(e.disabled)this.automationQueue=[],ow.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":e.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0,cancelable:!0})),e.click()}this.automationQueue.shift(),this.automationQueue.length&&this.popQueue()}else this.automationQueue=[],ow.log("automation target element not found. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug")}.bind(this))}.bind(this),e)},setActive:function(e){sw=e}};function fw(e){var t;e.step&&(this.setActive({guide:e.step.guide,step:e.step}),e.params)&&((e=rw.find(e.params,function(e){return"automationIds"===e.name&&rw.isArray(e.value)&&e.value.length}))?(e=this.getAutomationConfigs(e.value),t=!this.automationQueue.length,this.automationQueue=this.automationQueue.concat(e),t&&this.popQueue()):ow.log("no automation ids were found","debug"))}function gw(e,i){return"undefined"!=typeof Proxy&&y.isFunction(i)?new Proxy(e,{get:function(e,t){if("textContent"===t)return i(e);if("parentNode"===t){var n=e[t];if(e.ownerDocument!==n)return gw(e[t],i)}return y.isFunction(e[t])?function(){return e[t].apply(e,arguments)}:e[t]}}):e}ww=wi(function(n){{var e;yw.eventProperties&&yw.eventProperties.length&&(e=function c(i){var r=bw.ConfigReader.get("eventPropertyMatchParents");var e=b();var t={};var n;for(var o=0;o<yw.eventProperties.length&&b()-e<50;o++){n=yw.eventProperties[o];var a=yw._.any(n.featureRules,function(e){try{var t=Ew(r,vw);return t(i,e)}catch(n){return!1}});if(a)for(var s=0;s<n.eventPropertyRules.length&&b()-e<50;s++){var d=n.eventPropertyRules[s];if(!d.name)return;t[d.name]=Rw(d,i)}}var u=b()-e;if(50<u){if(r&&vw===yw._.identity&&yw._.isFunction(yw.getText))return yw.log("switching event property collection to fast text implementation"),vw=function(e){return gw(e,function(e){return yw.getText(e,128)})},c(i);xw(50,n)}return t}(n.target),y.pairs(e).forEach(function(e){var t=e[0],e=e[1];n.addEventProperty(t,e)}))}}),Cw=wi(function(){var e={};if(mw)return{};var t=bw.ConfigReader.get("eventPropertyConfigurations");if(!t||yw._.isEmpty(t))return{};if(e=function(e){for(var t,n=b(),i={},r=0;r<e.length&&b()-n<50;r++){if(!(t=e[r]).name)return;var o=Rw(t);o&&(i["_pendo_"+t.name]=o)}50<b()-n&&xw(50,t);return i}(t),yw._.isEmpty(e))return{};return e});var mw,vw,yw,bw,Iw,ww,Cw,Sw,Aw={name:"EventProperties",initialize:function(e,t){bw=t,vw=(yw=e)._.identity,mw=!1,yw.getEventPropertyTarget=kw,yw.previewEventProperty=Rw,bw.Events.onClickCaptured.off(Tw),bw.Events.onClickCaptured.on(Tw),bw.Events.ready.on(_w)},teardown:function(){bw.Events.onClickCaptured.off(Tw),bw.Events.ready.off(_w),bw.store.dispatch("location/removeInternalTransforms",Iw),Iw=[],bw.store.dispatch("location/stopPolling")},collectClickEventProperties:ww,collectEventProperty:Rw,collectPageEventProperties:Cw,getEventPropertyTarget:kw,addPageEventProperties:_w};function Ew(e,n){return e?function(e,t){return 0<yw.dom(n(e)).closest(t).length}:function(e,t){return yw.Sizzle.matchesSelector(e,t)}}function Tw(e){ww(e.data[0])}function _w(){var e;e=bw.ConfigReader.get("eventPropertyConfigurations"),Iw=e&&!yw._.isEmpty(e)?[new ib("search","AddTo",function(){return Cw()})]:[],bw.store.dispatch("location/addInternalTransforms",Iw),0<Iw.length&&bw.store.dispatch("location/startPolling")}function xw(e,t){yw.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,I.critical(e),t.featureId?yw.eventProperties=[]:mw=!0}function Rw(e,t){if(e.path)return t=kw(e,t),yw._.get(t,e.path,undefined)}function kw(e,t){e=e.source||e.selector;if(e&&t){for(var n,i=e,r=t;!n&&r;){try{if((n=yw.Sizzle.matchesSelector(r,i)?r:yw.Sizzle(i,r)[0])&&("password"===n.type||"hidden"===n.type))return}catch(o){return}r=_i.getParent(r)}return n}return e?!(t=yw.Sizzle(e)[0])||"password"!==t.type&&"hidden"!==t.type?t:void 0:window}function Ow(){var e;ef().enabled&&(A.commit("debugger/debuggingEnabled",!0),Nw(),R("#pendo-client-debugger").length||(e=m.get("agentDebuggerPluginLoader"),Qv.restartDebugger?Qv.restartDebugger():"function"==typeof e?e():((e=document.createElement("script")).src=K(v).createScriptURL(Do("debugger-plugin.min.js")),R.getBody().appendChild(e)),S.debuggerLaunched.trigger()))}function Nw(){Sw=Sw||{store:A,ConfigReader:m,getState:function(){return JSON.stringify(A.state)},getEventCache:function(){return[].concat(Ss)},getAllGuides:function(){return[].concat(k)},getAutoGuides:function(){return Ah.sortAndFilter(k,v.autoOrdering)},getBadgeGuides:function(){return y.filter(k,Nu)},getLauncherGuides:function(){return[]},getEventHistory:function(){return[]},getAllFrames:function(){return A.getters["frames/allFrames"]()},getChannelType:function(){return A.getters["frames/channelType"]()},isStepShownInFrame:function(e,t){return A.getters["frames/isShownInFrame"]()(e,t)},setActiveGuides:Cu,getBody:R.getBody,isMobileUserAgent:et.isMobileUserAgent,areGuidesDelayed:Ev,doesElementMatchContainsRules:Cm,getMetadata:fp,isStagingServer:ne,AutoDisplay:Ah,isLeader:zu,Events:S},v.debugging=Sw}function Mw(e){var t;return tf()?e?t:"debugging already enabled":zu()?((t=ef()).enabled=!0,w.write(Qh,JSON.stringify(t),null,!0),Ow(),e?t:"debugging enabled"):void 0}function Lw(){if(!tf())return"debugging already disabled";A.commit("debugger/debuggingEnabled",!1);var e=ef();return e.enabled=!1,w.write(Qh,JSON.stringify(e),null,!0),v.debugging=null,delete v.debugging,R("#pendo-client-debugger").remove(),"debugging disabled"}y.extend(function(e){I.debug(e,{contexts:["debug"]})},Sw);var Fw,Pw,Gw=function(e,t,n){var i;return t.getters["frames/leaderExists"]()?n.resolve():(i=n.defer(),e.on("leaderChanged",function(){i.resolve()}),i.promise)},Dw={name:"DebuggerLauncher",initialize:function(n,e){var i=e.Events,r=e.q;Pw=e.store,Gw(i,Pw,r).then(function(){Pw.dispatch("debugger/init"),Pw.getters["frames/isLeader"]()&&Ow()}),ds("pendo-debugger::launch",function(e,t){e.config.apiKey===n.apiKey&&Gw(i,Pw,r).then(function(){t.source.postMessage({type:"pendo-debugger::ready",apiKey:n.apiKey},t.origin),!tf()&&Pw.getters["frames/isLeader"]()&&Mw(!1)})}),window.addEventListener&&window.addEventListener("securitypolicyviolation",Bw);(Fw=n).isDebuggingEnabled=function(e){return tf(e=void 0===e?!1:e)},n.enableDebugging=Mw,n.disableDebugging=Lw,n.addDebuggingFunctions=Nw},teardown:function(){us("pendo-debugger::launch"),window.removeEventListener("securitypolicyviolation",Bw),Fw.debugging&&Fw.debugging.teardown&&Fw.debugging.teardown();Lw()}};function Bw(e){var t=e.blockedURI,n=e.documentURI,i=e.originalPolicy,e=e.violatedDirective;t&&-1!==t.indexOf("pendo")&&Pw.dispatch("debugger/onCspError",{blockedURI:t,documentURI:n,originalPolicy:i,violatedDirective:e})}Jw=[],qw=100,Qw=4,eC=500,tC=["TEXTAREA","INPUT"],nC=!(Xw=0),iC={},rC="previous_page_loads",oC="errorClickLogging",sC=!(aC=1500);var Ww,$w,Uw,jw,zw,Zw,Vw,Yw,Hw,Kw,Xw,Jw,qw,Qw,eC,tC,nC,iC,rC,oC,aC,sC,dC={name:"FrustrationEvent",initialize:function(e,t){zw=(Kw=e)._,Xw=0,Jw=[],Zw=[],iC={},sC=(Ww=t).ConfigReader.get(oC),this.detachErrorEvent=Ww.attachEvent(window,"error",bC,!0),this.detachDocumentEvents=function(){for(var e=Ut(Ut([],["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],!0),["visibilitychange","selectionchange","scroll"],!1),t=[],n=0;n<e.length;n++)switch(e[n]){case"selectionchange":t.push(Ww.attachEvent(window,e[n],lC,!0));break;case"visibilitychange":t.push(Ww.attachEvent(window,e[n],function(){cC(250)},!0));break;default:t.push(Ww.attachEvent(window,e[n],cC,!0))}return t}(),Ww.Events.on("eventCaptured",wC),Ww.agentStorage.registry.addSession(rC),Kw.sniffer.MutationObserver&&(e=_t("MutationObserver"),(Vw=new e(pC)).observe(Kw.dom.getBody(),{childList:!0,attributes:!0,subtree:!0}))},teardown:function(){Ww.Events.off("eventCaptured",wC),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}Vw&&Vw.disconnect()},addErrorClickLog:mC,getErrorEventTarget:yC,checkErrorEvent:bC,observeDOMMutation:pC};function uC(t){void 0===t&&(t="undefined"==typeof performance||"function"!=typeof performance.now?Infinity:performance.now()),(Jw=zw.filter(Jw,function(e){return t-e.timestamp<=qw})).length&&Dt(uC,qw)}function cC(e){void 0===e&&(e=eC),nC=!1,zw.each(iC,function(e){clearTimeout(e)}),iC={},Dt(function(){nC=!0},e)}function lC(){var e=document.getSelection().toString();(Yw||e.length)&&(cC(),Yw=!!e.length)}function pC(e){e.length&&cC()}function hC(e){return e&&!(e instanceof HTMLScriptElement&&e instanceof HTMLLinkElement&&e instanceof HTMLBodyElement)}function fC(e){return e&&hC(e.element)}function gC(e,t){var n=e.frustrationTypes,n=void 0===n?[]:n;zw.contains(n,t)||(n.push(t),e.frustrationTypes=n)}function mC(e,t){var n=t.detail,n=void 0===n?{}:n,n=(fC(n)&&n.error?n.error:t).message;n&&n.length>aC&&(n=n.substring(0,aC)),e.errorClickLog=n}function vC(e,t){var n,i,r=t.target&&"A"===t.target.tagName&&t.target.hasAttribute("href"),o=t.target&&!zw.contains(tC,t.target.tagName);nC&&!Yw&&o&&!r&&(n=e,i=Dt(function(){delete iC[i],gC(n,"deadClick")},eC),iC[i]=i),9<Jw.length&&Jw.pop(),Jw.unshift({target:t.target,activeElement:document.activeElement,browser_time:e.browser_time,timestamp:t.timeStamp}),Dt(uC,qw),zw.each(Zw,function(e){bC(e)}),$w?(o=t,e.browser_time-$w<=1e3&&Math.abs(Uw-o.x)<=30&&Math.abs(jw-o.y)<=30?Xw++:(Xw=1,Uw=t.x,jw=t.y),$w=e.browser_time,4===Xw&&($w=null,gC(e,"rageClick"))):($w=e.browser_time,Uw=t.x,jw=t.y,Xw=1)}function yC(e){if(hC(e.target))return fC(e=void 0===(e=e.detail)?{}:e)?e.element:hC(document.activeElement)?document.activeElement:void 0}function bC(t){var n,i,e,r=yC(t);r&&((n=zw.find(Jw,function(e){return(e.target===r||e.activeElement===r)&&t.timeStamp-e.timestamp<qw}))?(e=zw.find(Kw.buffers.events,i=function(e){return e.browser_time===n.browser_time&&"click"===e.type})||zw.find(Kw.buffers.silos,function(e){return zw.find(e,i)}))&&(gC(e,"errorClick"),sC)&&mC(e,t):(zw.contains(Zw,t)||Zw.push(t),Zw.length>Qw&&Zw.pop()))}function IC(e){var t;null!=(t=Ww.sessionStorage.getItem(rC))&&0<t.length&&(t=JSON.parse(t)),Hw=zw.isArray(t)?t:[],function(e){var t,n;if(!(Hw.length<2))return t=Hw[0],n=Hw[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)&&gC(e,"uTurn"),2===Hw.length&&Hw.shift(),Hw.push({url:e.url,browser_time:e.browser_time}),t=Hw,Ww.sessionStorage.setItem(rC,JSON.stringify(t))}function wC(e){var t=e.data[0],e=e.data[1],e=("click"===t.type&&e&&vC(t,e),"load"===t.type&&IC(t),"submit"!==t.type&&"change"!==t.type||cC(),zw.has(e,"target")&&zw.contains(tC,e.target.tagName));"focus"===t.type&&e&&cC()}_C=[];var CC,SC,AC,EC,TC,_C,xC={name:"EmbeddedGuides",activeEmbeddedGuides:TC=[],initialize:function(e,t){CC=t,EC=(SC=e)._,function(e){e.getEmbeddedGuides=GC,e.getActiveEmbeddedGuides=DC}(e),AC=function(e){var r=e._,o=e.store;return{show:function(e){var t=r.first(this.steps),n=r.map(this.steps,function(e){return e.id}),n=r.pick(o.state.guideState.steps,n),i=null;return r.isEmpty(n)||(i=r.max(n,function(e){return e.time||0})),(this.nextStep(i)||t).show(e)},isShownInThisFrame:function(){return r.any(this.steps,function(e){return e.isRendered()||e.isLocked()})}}}({_:EC,store:CC.store,globalPendo:SC}),CC.Events.on("deliverablesLoaded",OC),CC.Events.on("guideLoopStopped",kC),CC.Events.on("guideListChanged",PC),CC.GuideLoop.addUpdatePhase(RC),CC.guides.addProcessor(NC),CC.GuideActivity.registerGuideResolver(FC),this.removeResizeEvent=e.attachEvent(window,"resize",LC)},teardown:function(){OC(),CC.Events.off("deliverablesLoaded",OC),CC.Events.off("guideLoopStopped",kC),CC.Events.off("guideListChanged",PC),CC.GuideLoop.removeUpdatePhase(RC),CC.guides.removeProcessor(NC),CC.GuideActivity.removeGuideResolver(FC),this.removeResizeEvent&&this.removeResizeEvent()}};function RC(){var o=SC.Sizzle;EC.forEach(TC,function(e){var t,n=null,i=EC.get(e,"attributes.embedConfig.selector"),i=EC.first(o(i)),r=e.isShownInThisFrame();i&&r&&(t="#pendo-guide-container-".concat(EC.get(MC(e),"id")),n=EC.first(o(t,i))),!r&&i&&((t=e).shouldShowSnoozedGuide()||t.shouldRepeatGuide()||EC.all(t.steps,function(e){return e.shouldRepeat()||!e.isSnoozed()&&"dismissed"!==e.seenState}))?e.show("embed"):!r||i&&n||e.hide()})}function kC(){EC.forEach(TC,function(e){e.isShownInThisFrame()&&e.hide()})}function OC(){_C=EC.toArray(TC),CC.guides.removeDisplayableGuides("embeddedGuides"),TC.length=0}function NC(t){var e;return!(e=t)||!e.launchMethod||"embed"!==e.launchMethod||(EC.some(TC,function(e){return e.id===t.id})||TC.push(t),CC.store.getters["preview/isInPreviewMode"]())}function MC(e){return e?EC.find(e.steps,function(e){return e.isShown()}):null}function LC(){EC.forEach(TC,function(e){e=MC(e);e&&!SC.ignoreResize&&e.redraw()})}function FC(e){if(TC.length){var t,n="pendo-base-";if(EC.isString(e.id)&&0===e.id.indexOf(n)){var i=e.id.substring(n.length);if((n=EC.find(TC,function(e){t=EC.find(e.steps,function(e){if(e.id===i)return e});return!!t}))&&t)return{guide:n,step:t};return}else return EC.isObject(e.parentElem)?FC(e.parentElem):null}return null}function PC(){EC.each(_C,function(t){var e=EC.findIndex(TC,function(e){return e.id===t.id});-1===e&&t.isShownInThisFrame()?t.hide():t.isFrameProxy||(TC[e]=t)}),_C.length=0,CC.guides.registerDisplayableGuides("embeddedGuides",TC),EC.map(TC,function(e){Object.assign(e,AC),EC.map(e.steps,function(e){var t=function(e){var n=e.pluginApi;e._;return this._onShown||Object.defineProperty(this,"_onShown",{value:this.onShown,writable:!1,configurable:!1}),this._onShown?{onShown:function(e){var t=!this.lastSeenAt||!!n.ConfigReader.get("enableAllEmbeddedGuideEvents");return this._onShown(e,t)}}:null}.call(e,{pluginApi:CC,_:EC});Object.assign(e,t)})})}function GC(){return xC.activeEmbeddedGuides}function DC(){return xC.activeEmbeddedGuides.filter(function(e){return e.isShown()})}var BC="sessionId";function WC(){this.name="SessionManager"}WC.prototype.initialize=function(e,t){this.api=t,this.pendo=e,this.subscriptions=[this.api.attachEvent(this.api.Events,"ready",y.bind(this.ready,this)),this.api.attachEvent(this.api.Events,"eventCaptured",y.bind(this.eventCaptured,this))],this.inactivityDuration=this.api.ConfigReader.get("inactivityDuration",18e5),this.api.agentStorage.registry.addLocal(BC),this.api.agentStorage.registry.addLocal("sessionLastUserInteractionEvent"),this.api.store.getters["frames/isReady"]()&&this.ready()},WC.prototype.teardown=function(){y.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0},WC.prototype.ready=function(){this.isReady||(this.sessionId(),this.isReady=!0)},WC.prototype.isExpired=function(e){var t=y.get(this._sessionInfo,"timestamp");return!!(t&&e-t>this.inactivityDuration)},WC.prototype.eventCaptured=function(e){var t;e&&e.data&&e.data.length&&(e=e.data[0],this.ready(),t=e.browser_time||(new Date).getTime(),this.isExpired(t)&&(this.clearSessionInfo(),this.api.Events.sessionChanged.trigger()),this.storeLastInteractionEventInformation(t),e.sessionId=this.sessionId())},WC.prototype.sessionId=function(e){var t;return void 0===e&&(e=this.pendo.randomString(16)),this._sessionInfo||((t=this.api.agentStorage.read(BC))||(t=JSON.stringify({sessionId:e,timestamp:(new Date).getTime()}),this.api.agentStorage.write(BC,t)),this._sessionInfo=JSON.parse(t)),this._sessionInfo.sessionId},WC.prototype.clearSessionInfo=function(){delete this._sessionInfo,this.api.agentStorage.clear(BC),this.sessionId()},WC.prototype.storeLastInteractionEventInformation=function(e){this._sessionInfo.timestamp=e,this.api.agentStorage.write(BC,JSON.stringify(this._sessionInfo))};var $C=new WC;function UC(){this.name="SegmentFlags"}UC.prototype.initialize=function(e,t){var n="requestSegmentFlags",e=(this.pendo=e,(this.api=t).ConfigReader);e.addOption(n,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],!1),this.segmentFlagsEnabled=e.get(n),this.segmentFlagsEnabled&&(this.mostRecentSegmentsRequest=null,this.pendo.segmentsPayload=this.pendo._.bind(this.segmentsPayload,this),this.handleMetadataChange=this.pendo._.debounce(this.pendo._.bind(this.requestSegmentFlags,this),50),this.handleReadyBound=this.pendo._.bind(this.handleReady,this),this.api.Events.ready.on(this.handleReadyBound),this.api.Events.metadata.on(this.handleMetadataChange),this.api.Events.identify.on(this.handleMetadataChange))},UC.prototype.teardown=function(){this.segmentFlagsEnabled&&(this.pendo.segmentsPayload=this.pendo._.noop,this.handleMetadataChange.cancel(),this.api.Events.ready.off(this.handleReadyBound),this.api.Events.metadata.off(this.handleMetadataChange),this.api.Events.identify.off(this.handleMetadataChange))},UC.prototype.handleReady=function(){this.ready=!0,this.requestSegmentFlags()},UC.prototype.requestSegmentFlags=function(){if(this.ready){var e,t=this.pendo._.uniqueId(),n=(this.mostRecentSegmentsRequest=t,{visitorId:this.pendo.get_visitor_id(),accountId:this.pendo.get_account_id(),metadata:this.pendo.getSerializedMetadata(),url:this.pendo.url.get()}),i=this.pendo.compress(n),t={id:t,jzb:i,v:this.pendo.VERSION,ct:(new Date).getTime()},n=(this.api.agent.treatAsAdoptPartner()&&n.accountId&&"ACCOUNT-UNIQUE-ID"!==n.accountId&&(t.acc=this.api.util.base64EncodeString(n.accountId)),"script"===this.pendo.LOADER?"segmentflag.js":"segmentflag.json"),n=this.api.transmit.buildBaseDataUrl(n,this.pendo.apiKey,t),r=this.api.agent.getJwtInfoCopy();try{n.length>this.api.constants.URL_MAX_LENGTH||!this.pendo._.isEmpty(r)?(delete t.jzb,n=this.api.transmit.buildBaseDataUrl("segmentflag.json",this.pendo.apiKey,t),e=this.pendo._.extend({events:i},r),this.postLoad(n,e)):"script"===this.pendo.LOADER?this.scriptLoad(n):this.getLoad(n)}catch(o){this.api.log.error("Failed to load segment flags",{error:o})}}},UC.prototype.segmentsPayload=function(e){!this.mostRecentSegmentsRequest||this.pendo._.isString(e.id)&&e.id!==this.mostRecentSegmentsRequest||(this.pendo.segmentFlags=e.segmentFlags,this.api.log.info("successfully loaded segment flags"),this.mostRecentSegmentsRequest=null)},UC.prototype.scriptLoad=function(e){this.pendo.loadResource(e,this.pendo._.noop)},UC.prototype.getLoad=function(n){return Wt(this,void 0,void 0,function(){var t;return $t(this,function(e){switch(e.label){case 0:return[4,this.pendo.ajax.get(n)];case 1:return t=e.sent(),this.segmentsPayload(t.data),[2]}})})},UC.prototype.postLoad=function(n,i){return Wt(this,void 0,void 0,function(){var t;return $t(this,function(e){switch(e.label){case 0:return[4,this.pendo.ajax.postJSON(n,i)];case 1:return t=e.sent(),this.segmentsPayload(t.data),[2]}})})};var jC=new UC,zC=["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"],ZC=new RegExp("(".concat(zC.join("|"),")"),"i"),VC=["facebook","twitter","linkedin","instagram","pinterest","tiktok","snapchat"],YC=new RegExp("(".concat(VC.join("|"),")"),"i"),HC=["youtube","vimeo","dailymotion","twitch","bilibili","youku","tencent","iqiyi","peertube","rutube","metacafe","veoh","break","vidyard","wistia","brightcove","jwplayer","kaltura","sproutvideo"],KC=new RegExp("(".concat(HC.join("|"),")"),"i"),XC=new RegExp("(".concat(["amazon","ebay","walmart","etsy","shopify","shop","target","bestbuy","costco"].join("|"),")"),"i"),JC=new RegExp("(".concat(["google performance max","microsoft audience network","facebook audience network"].join("|"),")"),"i");function qC(e,t){return"self"!==t&&"direct"!==t&&null!==t.match(e)}var QC=new RegExp("^(.*cp.*|ppc|retargeting)$"),eS=new RegExp("(.*email.*|.*e_mail.*|.*e mail.*|.*e-mail.*)","i"),tS=[["Email",function(e){var t=e.source,n=e.medium;return"direct"===e.referrer&&(null!==n.match(eS)||null!==t.match(eS)||"newsletter"===n)}],["Paid Search",function(e){var t=e.source,n=e.medium,i=e.gclid,e=e._;return i||"paid-search"===n||n.match(QC)&&e.contains(zC,t)}],["Organic Search",function(e){var t=e.source,n=e.medium,i=e.referrer,e=e._;return"organic"===n&&e.contains(zC,t)||!n&&qC(ZC,i)}],["Display",function(e){var t=e.medium;return e._.contains(["display","cpm","banner","interstitial","expandable","programmatic"],t)}],["Paid Social",function(e){var t=e.source,n=e.medium,i=e.fbclid,e=e._;return i||"paid-social"===n||n.match(QC)&&e.contains(VC,t)}],["Organic Social",function(e){var t=e.source,n=e.medium,i=e.referrer,e=e._;return!n&&qC(YC,i)||"social"===n||e.contains(VC,t)}],["Paid Shopping",function(e){e=e.medium;return"shopping"==e||"paid-shopping"==e}],["Organic Shopping",function(e){var t=e.medium,e=e.referrer;return"organic-shopping"===t||!t&&qC(XC,e)}],["Paid Video",function(e){var t=e.medium,n=e.source,e=e._;return"paid-video"==t||!t.match(QC)&&e.contains(HC,n)}],["Organic Video",function(e){var t=e.medium,e=e.referrer;return"video"===t||!t&&qC(KC,e)}],["Affiliates",function(e){e=e.medium;return"affiliate"===e||"partner"===e}],["Audio",function(e){e=e.medium;return"podcast"===e||"audio"===e}],["Cross-network",function(e){var t=e.source;return"cross-network"===e.medium||t.match(JC)}],["Other Advertising",function(e){e=e.medium;return"cpv"===e||"cpa"===e}],["SMS",function(e){var t=e.source,e=e.medium;return"sms"===t||"sms"===e}],["Mobile Push Notifications",function(e){var t=e.source,e=e.medium;return e.endsWith("push")||0<=e.indexOf("mobile")||0<=e.indexOf("notification")||"firebase"===t}],["Referral",function(e){var t=e.medium,e=e.referrer;return"referral"===t||!!e&&"self"!==e&&"direct"!==e}],["Paid Other",function(e){var t=e.medium;return e.source,e._,"paid-other"==t||t.match(QC)}],["Other",function(e){return!!e.medium}],["Direct",function(e){var t=e.source;return!e.medium&&!t}]],nS="utm",iS="enableFullUtmReferrer";function rS(){this.name="WebAnalytics"}rS.prototype.initialize=function(e,t){this.pendo=e;var n=(this.api=t).ConfigReader,n=(n.addOption(iS,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),e._.bind),n=(this.subscriptions=[t.attachEvent(t.Events,"eventCaptured",n(this.addUtmToEvent,this)),t.attachEvent(t.Events,"sessionChanged",n(this.sessionChanged,this))],this.loadParameters(t.agentStorage));n&&!e._.isEmpty(n)||(n=this.extractParameters(window.location.href,document.referrer)),this.api.agentStorage.registry.addLocal(nS),this.storeParameters(n,t.agentStorage)},rS.prototype.extractParameters=function(e,t){var n=new Ci(e).hostname,n=(i=(n={referrer:t,currentHost:n}).referrer,n=n.currentHost,i&&""!==i?(r="self",(i=new Ci(i).hostname)!==n?null==i?void 0:i.toLowerCase():r):"direct");if("self"!==n){var i=this.api.util.parseUrl(e);if(!i)return{};var r=i.query,e=r.utm_source,i=r.utm_medium,o=r.utm_campaign,a=r.utm_term,s=r.utm_content,d=r.gclid,u=r.fbclid;if(this.pendo._.compact([e,i,o,a,s,d]).length)return(e={source:e,medium:i,campaign:o,term:a,content:s}).channel=this.calculateUtmChannel({referrerValue:n,utm:e,gclid:d,fbclid:u}),t&&this.api.ConfigReader.get(iS)?e.referrer=t:"direct"!==n&&(e.referrer=n),e}return{}},rS.prototype.calculateUtmChannel=function(e){var t=e.referrerValue,n=e.utm,i=e.gclid,e=e.fbclid,r=(null==(r=n.medium)?void 0:r.toLowerCase())||"",n=(null==(n=n.source)?void 0:n.toLowerCase())||"",o={_:this.pendo._,referrer:t,source:n,medium:r,gclid:i,fbclid:e},t=this.pendo._.find(tS,function(e){return e[1](o)});return t?t[0]:"Direct"},rS.prototype.storeParameters=function(e,t){0<this.pendo._.size(e)&&(this.utm=e,t.write(nS,JSON.stringify(e)))},rS.prototype.loadParameters=function(e){e=e.read(nS);return e?JSON.parse(e):null},rS.prototype.teardown=function(){for(var e=0,t=this.subscriptions;e<t.length;e++)(0,t[e])();this.subscriptions.length=0,this.utm=null},rS.prototype.addUtmToEvent=function(e){this.utm&&(e.data[0].utm=this.utm)},rS.prototype.sessionChanged=function(){this.utm=null;var e=this.api.agentStorage,t=(e.clear(nS),this.extractParameters(window.location.href,document.referrer));this.storeParameters(t,e)};var oS=new rS,aS={children:[],props:{"class":"_pendo-step-container","data-layout":"tooltipBlank",id:"pendo-base"},type:"div"},sS={css:[],props:{scoped:"scoped",type:"text/css"},type:"style"},dS={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"},uS={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"},cS={children:[],props:{"class":"_pendo-text-paragraph",style:{}},type:"div"};function lS(e,t){return{content:t,props:{id:"text-".concat(e),"class":"_pendo-text-plain",style:{color:"gray",margin:0}},type:"p"}}function pS(e){var e=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement,t=document.createElement("div");return t.style.marginRight="5px",t.appendChild(e),t}var hS='\n<svg xmlns="http://www.w3.org/2000/svg" \n width="10" height="10" fill="none"\n stroke="gray" stroke-linecap="round" stroke-linejoin="round" \n stroke-width="2" viewBox="0 0 10 10">\n <line x1="2" y1="5" x2="8" y2="5"/>\n</svg>\n',fS='\n<svg xmlns="http://www.w3.org/2000/svg" \n width="10" height="10" viewBox="0 0 10 10" \n fill="none" stroke="green" stroke-width="2" \n stroke-linecap="round" stroke-linejoin="round" \n class="feather feather-check">\n <polyline points="2 5 4 7 8 2"></polyline>\n</svg>\n',gS='\n<svg xmlns="http://www.w3.org/2000/svg" \n width="10" height="10" viewBox="0 0 10 10" \n fill="none" stroke="red" stroke-width="2" \n stroke-linecap="round" stroke-linejoin="round" \n class="feather feather-x">\n <line x1="2" y1="2" x2="8" y2="8"/>\n <line x1="8" y1="2" x2="2" y2="8"/>\n</svg>\n',mS={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()@:%_+.~#?&/=]*)$/},vS={"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])$/},yS={email:function(e){return mS.emailRegex.test(e)},phone:function(e){return mS.phoneRegex.test(e)},date:function(e,t){return(vS[(t=void 0===t?{}:t).format]||vS["MM/DD/YYYY"]).test(e)},url:function(e){return mS.urlRegex.test(e)},number:function(e,t){var n,i,r,o;return""!==e&&(n=(t=void 0===t?{}:t).min,i=t.max,t=t.allowDecimal,r=bS(n),o=bS(i),r&&(n=Number(n)),o&&(i=Number(i)),e=Number(e),!isNaN(e))&&!(r&&e<n||o&&i<e||!t&&e%1!=0)},characterLength:function(e,t){var n=(t=void 0===t?{}:t).min,t=t.max,i=bS(n),r=bS(t);return i&&(n=Number(n)),r&&(t=Number(t)),!(i&&e.length<n||r&&e.length>t)}};function bS(e){return e!==undefined&&null!==e&&""!==e}ES=null;var IS,wS,CS,c,p,SS,AS,ES,TS={name:"FormValidation",validationGuides:AS=[],debouncedValidate:CS,initialize:function(e,t){var n;t.ConfigReader.get("formValidation")&&(IS=e,wS=t,CS=y.debounce(DS,100),wS.Events.on("deliverablesLoaded",xS),wS.Events.on("guideLoopStopped",RS),wS.Events.on("guideListChanged",kS),wS.GuideLoop.addUpdatePhase(NS),wS.guides.addProcessor(MS),n=!(null==IS||!IS.designer),SS=setInterval(function(){n&&(_S(),clearInterval(SS),SS=null)},1e3),e.attachEvent(document,"focusin",FS),e.attachEvent(document,"focusout",PS),e.attachEvent(document,"input",CS))},teardown:_S,appendValidationStyles:LS,getActiveStep:function(){return c},setActiveStep:function(e){c=e},setActiveField:function(e){p=e},getActiveField:function(){return p},getActiveFieldIsValid:function(){return ES},setActiveFieldIsValid:function(e){ES=e},getValidationGuides:function(){return AS},setValidationGuides:function(e){AS=e},initializeFormValidation:kS,clearAllValidationGuides:xS,extractValidationGuides:MS,applyFormBehaviors:OS,checkValidationFieldVisibility:NS,hideValidationTooltip:RS,focusField:FS,blurField:PS,findFieldByElement:GS,validateInput:DS,validateField:BS,getRuleText:WS,setValidationStyle:$S};function _S(){wS&&(SS&&(clearInterval(SS),SS=null),wS.Events.off("deliverablesLoaded",xS),wS.Events.off("guideLoopStopped",RS),wS.Events.off("guideListChanged",kS),wS.GuideLoop.removeUpdatePhase(NS),wS.guides.removeProcessor(MS),IS.detachEvent(document,"focusin",FS),IS.detachEvent(document,"focusout",PS),IS.detachEvent(document,"input",CS),CS.cancel(),AS=[],ES=p=c=null)}function xS(){wS.guides.removeDisplayableGuides("validationGuides"),AS=[]}function RS(){IS.detachEvent(document,"focusin",FS),p&&(ES=p=null),c&&(c.hide({validationHidden:!0}),c=null)}function kS(){LS(),wS.guides.registerDisplayableGuides("validationGuides",AS),OS()}function OS(){y.map(AS,function(e){y.map(e.steps,function(e){var t=function(){var t,n,i;return this.attributes?(n=(t=this).show,i=t.hide,{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)}}):(I.info("buildFormStepBehaviors called with invalid context"),{})}.call(e);Object.assign(e,t)})})}function NS(){var e;!p||(e=IS.Sizzle(c.elementPathRule)[0])&&IS.isElementVisible(e)||(ES=p=null,c.hide({validationHidden:!0}),c=null),((null==(e=qr.get(document).bubbleEvents)?void 0:e.focusin)||[]).some(function(e){return e.handler===FS})||IS.attachEvent(document,"focusin",FS)}function MS(t){return"form"!==t.launchMethod||y.some(AS,function(e){return e.id===t.id})||AS.push(t),!0}function LS(){var e=document.createElement("style");e.innerHTML='\n input[data-pendo-field-valid="false"] {\n border-color: red !important;\n outline-color: red !important;\n }\n ',document.head.appendChild(e)}function FS(e){var t,n,i,r,o,a,s,e=e.target;"INPUT"===e.tagName&&(t=GS(e))&&c&&(c.attributes.validationHidden=!1,c.domJson||(a=p.rules[0],s=lS("context-".concat(p.id),p.context),a=null!=a&&a.type?function(e,t){return t=lS(e,t),{props:{id:"rule-".concat(e),"class":"text-row",style:{display:"flex","align-items":"center"}},children:[t],type:"div"}}(a.id,a.ruleText):null,0!==(s=[s,a].filter(Boolean)).length&&(a=ge(aS),n=ge(sS),i=ge(dS),r=ge(uS),o=ge(cS),a.children.push(n,i),i.children.push(r),r.children.push(o),o.children=s,c.domJson=a)),c.show("api"),(i=document.getElementById("rule-".concat(null==(n=null==p?void 0:p.rules[0])?void 0:n.id)))&&null!=(r=null==p?void 0:p.rules[0])&&r.type&&(o=null===p.isValid?pS(hS):pS(ES?fS:gS),i.insertBefore(o,i.firstChild)),""!==t.value)&&BS(e)}function PS(e){e=e.target;p&&c&&(IS.Sizzle.matchesSelector(e,null==c?void 0:c.elementPathRule)&&$S(e,ES),c.hide({validationHidden:!0}),null===p.isValid&&!1===ES&&(WS().props.style.color="red"),p.isValid=ES,ES=c=p=null)}function GS(t){c&&c.hide({validationHidden:!0}),ES=p=c=null;for(var e=0,n=AS;e<n.length;e++){var i=n[e],i=y.find(i.steps,function(e){return IS.Sizzle.matchesSelector(t,e.elementPathRule)});if(i)return p=null==(i=(c=i).attributes)?void 0:i.field,ES=p.isValid,p}return null}function DS(e){var t,e=e.target;IS.Sizzle.matchesSelector(e,null==c?void 0:c.elementPathRule)?BS(e):(t=GS(e))&&(ES=t.isValid,BS(e))}function BS(e){var t,n,i=null==p?void 0:p.rules[0];i&&(n=yS[i.type])&&(i=n(e.value,i.options),ES=!!i,n=WS(),null===p.isValid?(n.props.style.color=i?"green":"gray",t=pS(i?fS:hS)):(n.props.style.color=i?"green":"red",t=pS(i?fS:gS),$S(e,i)),c.hide({stepHidden:!0}),c.show("api"),n=document.getElementById("rule-".concat(p.rules[0].id)))&&n.insertBefore(t,n.firstChild)}function WS(){var e=p.rules[0].id;return Dc("text-".concat(e),c.domJson)}function $S(e,t){!1===t?e.setAttribute("data-pendo-field-valid",!1):e.removeAttribute("data-pendo-field-valid")}jS.prototype.waitThenCheckForSubmit=function(){var e=this,t=this.q.defer();return Dt(function(){t.resolve(""===e.getPromptValue())},100),t.promise},jS.prototype.submit=function(t){t&&(this._.each(this.listeners,function(e){return e(t)}),this.latestPromptValue="")},jS.prototype.getPromptValue=function(){return this.inputEl.getText()},jS.prototype.onSubmit=function(e){this.listeners.push(e)},jS.prototype.teardown=function(){this.promptContainer.teardown(),this.inputEl.teardown(),this.submitEl.teardown()};var US=jS;function jS(e,t,n,i,r){var o=this;this.listeners=[],this.latestPromptValue="",this.dom=e.dom,this._=e._,this.q=t.q,this.inputEl=new this.dom.Element(n),this.submitEl=new this.dom.Element(i),this.inputEl.addEventListener("keyup",function(e){o.latestPromptValue=o.getPromptValue(),"Enter"===e.code&&o.waitThenCheckForSubmit().then(function(e){e&&o.submit(o.latestPromptValue)})}),this.submitEl.addEventListener("click",function(){o.waitThenCheckForSubmit().then(function(e){e&&o.submit(o.latestPromptValue)})}),this.promptContainer=new this.dom.Observer,this.promptContainer.addObservers(this.inputEl,this.submitEl)}function zS(){this.name="PromptAnalytics",this.configName="aiAgents",this.prompts=[]}zS.prototype.initialize=function(e,t){var n=this;this.pendo=e,this.api=t,this._=this.pendo._,this.api.ConfigReader.addOption(this.configName,["pendoconfig","snippet"]),this.loadConfig(this.configName).then(function(e){return n.onConfigLoaded(e)})["catch"](function(){})},zS.prototype.loadConfig=function(e){var t=this.api,n=t.q,t=t.ConfigReader,n=n.defer(),e=t.get(e);return n.resolve(e),n.promise},zS.prototype.onConfigLoaded=function(e){var t=this;(e=void 0===e?[]:e)&&this._.isArray(e)&&0!==e.length&&this._.each(e,function(e){t.observePrompt(e)})},zS.prototype.observePrompt=function(e){var t=this,n=e.id,i=(e.containerCssSelector,e.cssSelectors),e=e.privacyFilters,i=(this.setFilters(e),this.agentId=n,e=this.parseCssSelector("input",i),n=this.parseCssSelector("submit",i),new US(this.pendo,this.api,e,n));i.onSubmit(function(e){t.sendEvent(e)}),this.prompts.push(i)},zS.prototype.parseCssSelector=function(t,e){return this._.find(e,function(e){return e.type===t}).cssSelector},zS.prototype.setFilters=function(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},zS.prototype.sendEvent=function(e){var t=this.applyPrivacyFilter(e);this.api.analytics.collectEvent("prompt",{prompt:t,agentId:this.agentId,promptType:"request",privacyFilterApplied:e!==t})},zS.prototype.applyPrivacyFilter=function(e){return this.privacyFilters&&this._.isRegExp(this.privacyFilters)?e.replace(this.privacyFilters,"redacted"):e},zS.prototype.teardown=function(){this._.each(this.prompts,function(e){return e.teardown()})};var ZS=new zS;function VS(i){var e,t;(e=i).getVersion=ct,e.isReady=ly,e.pageLoad=Ld,e.getVisitorId=gi,e.getAccountId=mi,e.clearSession=bi,e.VERSION=dt,e.LOADER=ut,e.flushNow=u(function(e){return Fs(0,e)}),e.teardown=wi(Iy),e.initGuides=u(Sv),e.loadGuides=u(av),e.findGuideByName=u(_u),e.hideGuides=u(nm),e.onGuideDismissed=u(pm),e.goToStep=fm,e.onGuideAdvanced=u(gm),e.onGuidePrevious=u(mm),e.onGuideSnoozed=hm,e.startGuides=u(Dh),e.stopGuides=u(Bh),e.defaultCssUrl=u(Vg()),e.getActiveGuides=bu,e.getActiveGuide=Dv,e.guideSeenTimeoutLength=gb.getGuideSeenTimeoutLength(),e.guidesPayload=Jm,e.areGuidesDisabled=u(Av),e.setGuidesDisabled=u(Tv),e.buildNodeFromJSON=F.buildNodeFromJSON,e.flexElement=u(F.flexElement),e.GuideFactory=u(mc),e.dom=R,e.getText=Va,e.attachEvent=u(l),e.detactEvent=u(hu),e.frames={setFrameVisibility:Zu},e.log=Dy,e.enableLogging=My,e.disableLogging=Ly,e.setActiveContexts=zy,e.showLogHistory=Uy,e.getLoggedContexts=jy,e.isDebuggingEnabled=y.noop,e.enableDebugging=y.noop,e.disableDebugging=y.noop,e.addDebuggingFunctions=y.noop,e.stopSendingEvents=u(Os.lock),e.startSendingEvents=u(Os.unlock),e.isSendingEvents=u(da),e.fromByteArray=G.uint8ToBase64,e.events=u(Ku),e.track=u(Vy),e.validateInstall=Yy,e.validateNativeMethods=Hy,e.validateBuiltInGlobals=Ky,e.validateUrl=Xy,e.validateEnvironment=Qy,e.doesExist=fe,e.generate_unique_id=ti,e.TEMP_PREFIX=Xn,e.SIZE_UNIQUE_ID=Jn,e.defaultLauncher=y.noop,e.toggleLauncher=y.noop,e.showLauncher=y.noop,e.hideLauncher=y.noop,e.removeLauncher=y.noop,e.identify=lp,e.get_visitor_id=gi,e.set_visitor_id=function(e){lp(e)},e.get_account_id=mi,e.set_account_id=function(e){lp(E(),e)},e.getSerializedMetadata=gp,e.compress=yt,e.squeezeAndCompress=yt,e.randomElement=St,e.randomString=At,e.toUTF8Array=ft,e.getNumberFromText=Ot,e._addCredits=u(vm),e.getCurrentUrl=Um,e.getNormalizedUrl=Um,e.testUrlForStep=u(zm),e.showGuideByName=u(Zm),e.showGuideById=u(Vm),e.designerv2=Xf,e.P2AutoLaunch=u(gg),e.BuildingBlocks=u(eb),e.onConnectMessage=y.noop,e.buffers=Os,e.guideDev=u(Sy),e.badgesShown=u(vu),e.get_pendo_cookie=un,e.DEFAULT_EXPIRE_LEN=ln,e.set_pendo_cookie=hn,e.loadResource=ts,e.loadWatcher=ns,e.messageLogger=is,e.messageReceiver=rs,e.messageValidator=os,e.MESSAGE_TYPES=ss,e.messageDispatcher=cs,e.moduleRegistry=ls,e.addModule=ps,e.hasModule=u(hs),e.findModuleByName=u(fs),e.modulesWaiting=gs,e.loadModules=ms,e.moduleLoader=vs,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=et,e.url=Lo,e.location=pb,e.Sizzle=Xr,e._=y,e.ajax=oo,e.Zlib=bt,e.guideContent=u(Sc.guideContent),e.receiveDomStructureJson=u(Sc.receiveDomStructureJson),e.addExtension=Cp,(t=i).SHADOW_STYLE="",y.extend(t,{_showElementGuide:y.noop,flushEventCache:Ib(null,"flushEventCache",yb),HOST:ko,MAX_LENGTH:_s,MAX_NUM_EVENTS:Ts,_createToolTip:y.noop,_get_tooltip_dimensions:y.noop,_isOldIE:u(Ib(We,"_isOldIE",vb)),_logMessage:Ib(ta,"_logMessage",vb),_sendEvent:Ib(null,"_sendEvent",yb),_sendGuideEvent:Ib(null,"_sendGuideEvent",yb),_stopEvents:!1,_storeInCache:Ib(null,"_storeInCache",yb),_writeEventImgTag:Ib(null,"_writeEventImgTag",yb),_writeImgTag:u(Ib(ia,"_writeImgTag",vb)),getUA:Ib(je,"getUA",vb),ifDebugThen:Ib(null,"ifDebugThen",yb),send_event:u(Ib(Ks,"send_event","has changed to pendo.cache.createEvent")),wire_page:Ib(uu,"wire_page",vb),messageOriginTester:Ib(null,"messageOriginTester",yb),findGuideBy:u(Eu),findGuideById:u(Tu),findStepInGuide:u(xu),_updateGuideStepStatus:u(em),_addCloseButton:u(qg),initialize:gy,getEventCache:u(vv),processEventCache:u(mv),isGuideShown:u(Jg),_getNextStepInMultistep:u($m),attachEvent:l,detachEvent:hu,updateOptions:cp,createLauncher:y.constant({}),initLauncher:y.noop,_addGuideToLauncher:y.noop,launcherToolTipDiv:null,isAnonymousVisitor:function(e){return void 0===e&&(e=t.get_visitor_id()),ii(e)},DEFAULT_VISITOR_ID:ai,shouldIdentityChange:y.constant(!1),read:w.read,write:w.write,_delete_cookie:w.clear,_set_cookie:an,_get_cookie:on,get_cookie_key:dn,ENV:it,eventCache:u(Ss),_getOpacityStyles:Ib(null,"_getOpacityStyles",vb),setStyle:ma,_createGuideEvent:u(Gm),seenGuide:u(Om),dismissedGuide:u(Nm),advancedGuide:u(Mm),seenTime:0,placeBadge:u(cf),isBadge:u(Nu),showPreview:u(Ib(Tm,"showPreview",vb)),removeAllBadges:u(lf),tellMaster:ys,DEFAULT_TIMER_LENGTH:Mh,registerMessageHandler:ds,_get_offset:u(wa),_shouldAutoDisplayGuide:y.constant(!1),removeBadge:pf,_showLightboxGuide:y.noop,_showGuide:u(Rm),getElementForGuideStep:u(Bu),isElementVisible:$a,getTooltipDivId:u(Am),setupWatchOnTooltip:u(Em),letters:"",charset:"",detectMaster:bs,listenToMaster:Ib(null,"listenToMaster",yb),start:gu,SEND_INTERVAL:Es,stageGuideEvent:u(Wm),startStagedTimer:Bm,isURLValid:Rs,getURL:ks,_get_screen_dim:u(ya),_isInViewport:u(ba),_getCss3Prop:fa,waitThenStartGuides:u(Lh),guidesProcessingThreadHandle:Nh,getMode:y.constant("default")}),y.each(["identify","updateOptions","pageLoad","track"],function(t){var n=i[t];i[t]=function(){try{ly()?n.apply(this,arguments):re(i,t,arguments)}catch(e){I.critical(e)}}})}var YS,HS,KS,XS=ce(),JS=(JS=q(JS=XS)?{}:window,v=JS.pendo=JS.pendo||{});return YS=JS,ue(XS=XS),it=le("env")||it,rt=le("server")||rt,ot=le("assetHost")||ot,at=le("assetPath")||at,st=le("designerEnv")||st,st=lt()?it+"_ext":it,dt=qe+"_"+st,!q(XS)&&(st=XS,XS=YS,KS=tf(),ae(st,XS,KS)||se(st,XS,KS))||YS&&YS.VERSION||(m.get("disablePendo")?(HS=YS,y.each(["initialize","identify","updateOptions","pageLoad","track"],function(e){HS[e]=function(){console.log("Pendo is currently disabled.")}})):((st=A).registerModule("debugger",h0),st.registerModule("errorLog",i),st.registerModule("frames",s),st.registerModule("guideUpdate",e),st.registerModule("guideState",rr),st.registerModule("healthCheck",a0),st.registerModule("location",lr),st.registerModule("monitoring",s0),st.registerModule("metadata",d0),st.registerModule("preview",p0),Po(),mc.behaviors=[qh,Cb,hc.Guide,Sb,Eb,Tb,_b],vc.behaviors=[qh,Mb,xb,Ac,hc.Step,Rb,Lb],Ac.reset(),A.dispatch("frames/init"),Dy.init(),_i.wrapSizzle(Xr),Xr.intercept(ju),VS(YS),I.addEventListener("log",y.partial(A.dispatch,"errorLog/write")),ey(A0),ey(z0),ey(rI),ey(mI),ey(H1),ey(tw),ey(hw),ey(Aw),ey(gb),ey(Dw),ey(dC),ey(xC),ey($C),ey(jC),ey(oS),ey(TS),ey(ZS),XS=YS._q,KS=by,st=gu,m.get("disableAutoInitialize")||(XS=(XS=vy(XS))&&1<XS.length?XS[1]:{},y.get(XS,hy)||m.get(hy)?KS():fy.push(st(KS))))),JS}var TextCapture=function(){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:function(e){var t=r.util.trim.call(e);return d()||i._.has(o,t)||i._.has(o,e)},hasWhitelist:function(){return 0<i._.size(o)},serializer:a};function a(e,t,n){return t===n&&(TextCapture.isEnabled()||!TextCapture.isEnabled()&&TextCapture.hasWhitelist())&&(t=i.getText(n,128),TextCapture.isTextCapturable(t))&&(e.txt=TextCapture.hasWhitelist()?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}}(),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}var substitutionRegex="\\{(?:\\s?)([^.\\s]?visitor|account|parentAccount)\\.([^|\\s/]*)(?:\\s?\\|\\s?([^}]+|[\\/s]+))?(?:\\s?\\/\\s?){1}\\}",skipStepString="{skipStep:* *(auto|\\d+)\\/}",goToMiddleString="(?!0)(\\d+)",goToString="({goto-".concat(goToMiddleString,"\\/})");function lookupGuideButtons(e,t){return void 0===t&&(t=[]),"button"===e.type&&e.actions&&t.push(e),e.children&&e.children.forEach(function(e){lookupGuideButtons(e,t)}),t}function removeMarkdownSyntax(e,t,n,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},goToRegex=new RegExp(guideMarkdownUtil.goToString),PollBranching={name:"PollBranching",script:function(r,o,a){var s=!1,e=initialBranchingSetup(r,a);!e||1<a._.size(e)||this.on("beforeAdvance",function(e){var t,n=0===r.guideElement.find("[branching] .pendo-radio:checked").length,i=r.guideElement.find("[branching] .pendo-radio:checked + label")[0];i&&(t=a._.isNull(i.getAttribute("goToStep"))),s||n||t||(s=!0,branchingGoToStep(e,r,o,a))})},test:function(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:function(i){var e=i.dom.getBody();function r(e,t){return'<svg id="pendo-ps-branching-svg" viewBox="0 0 24 24" fill="none"\n style="margin-left: 5px;\n height:'.concat(t,"; width:").concat(t,'; display:inline; vertical-align:middle;" xmlns="http://www.w3.org/2000/svg">\n <g stroke-width="0"></g>\n <g stroke-linecap="round" stroke-linejoin="round"></g>\n <g> <circle cx="4" cy="7" r="2" stroke="').concat(e,'"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></circle>\n <circle cx="20" cy="7" r="2" stroke="').concat(e,'"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></circle>\n <circle cx="20" cy="17" r="2" stroke="').concat(e,'" stroke-width="2"\n stroke-linecap="round" stroke-linejoin="round"></circle>\n <path d="M18 7H6" stroke="').concat(e,'" stroke-width="2"\n stroke-linecap="round" stroke-linejoin="round"></path>\n <path d="M7 7V7C8.65685 7 10 8.34315 10 10V15C10 16.1046 10.8954 17 12 17H18"\n stroke="').concat(e,'" stroke-width="2" stroke-linecap="round"\n stroke-linejoin="round"></path> </g></svg>')}new MutationObserver(function(e){e.forEach(function(e){var t=i._.isFunction(null==(t=e.addedNodes[0])?void 0:t.querySelector);e.addedNodes.length&&t&&e.addedNodes[0].querySelector("._pendo-multi-choice-poll-select-border")&&i._.size(i.dom('._pendo-multi-choice-poll-question:contains("{branching/}")'))&&i.dom('._pendo-multi-choice-poll-question:contains("{branching/}")').each(function(e,t){i._.each(i.dom("#".concat(e.id," *")),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{branching/}","",i)}),i.dom("#".concat(e.id," p")).css({display:"inline-block !important"}).append(r("#999","20px")).attr({title:"Custom Branching Added"});var n=e.getAttribute("data-pendo-poll-id"),n=(i.dom("._pendo-multi-choice-poll-question[data-pendo-poll-id=".concat(n,"]"))[0]&&i.dom("._pendo-multi-choice-poll-question[data-pendo-poll-id=".concat(n,"]"))[0].textContent.trim(),i.dom("label[for*=".concat(n,"]")));i._.size(n)&&i._.forEach(n,function(e){var t;goToRegex.test(e.textContent)&&(t=goToRegex.exec(e.textContent)[2],guideMarkdownUtil.removeMarkdownSyntax(e,goToRegex,"",i),i.dom(e).append(r("#999","14px")).attr({title:"Branching to step ".concat(t)}))}),0<t&&(i.dom(e).append('<div style="text-align:lrft; font-size: 14px; color: red;\n font-style: italic; margin-top: 0px;" class="branching-wrapper"\n name="'.concat(e.dataset.pendoPollId,'">\n * Branching Error: Multiple branching polls not supported</div>')),i.dom("#".concat(e.id," #pendo-ps-branching-svg")).remove(),i.dom("#".concat(e.id," p")).css({display:"inline-block !important"}).append(r("red","20px")).attr({title:"Unsupported Branching configuration"}))})})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}};function initialBranchingSetup(n,i){var e=n.guideElement.find('._pendo-multi-choice-poll-question:contains("{branching/}")');return i._.forEach(e,function(e){var t=e.getAttribute("data-pendo-poll-id"),e=(i._.each(n.guideElement.find("#".concat(e.id," *")),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{branching/}","",i)}),n.guideElement.find("label[for*=".concat(t,"]"))),e=(i._.forEach(e,function(e){var t,n;i._.isNull(goToRegex.exec(e.textContent))||(t=goToRegex.exec(e.textContent)[1],n=goToRegex.exec(e.textContent)[2],e.setAttribute("goToStep",n),guideMarkdownUtil.removeMarkdownSyntax(e,t,"",i))}),n.guideElement.find("[data-pendo-poll-id=".concat(t,"]._pendo-multi-choice-poll-select-border")));e&&e.length&&e[0].setAttribute("branching","")}),e}function branchingGoToStep(e,t,n,i){var r=null==(r=t.guideElement.find("[branching] input.pendo-radio[data-pendo-poll-id]:checked")[0])?void 0:r.id,r=t.guideElement.find('label[for="'.concat(r,'"]'))[0],t=(null==r?void 0:r.getAttribute("goToStep"))-1;t<0||(r={destinationStepId:n.steps[t].id},i.goToStep(r),e.cancel=!0)}var containerSelector='[id^="pendo-guide-container"]',MetadataSubstitution={name:"MetadataSubstitution",script:function(e,t,n){var i=findSubstitutableElements(n);e.domJson&&findSubstitutableUrlsInJson(e.domJson,i,n),n._.size(i)&&(n._.each(i,function(e){processPlaceholder(e,n)}),updateGuideContainer("pendo-g-".concat(e.id),e.guideElement,n))},designerListener:function(i){var e=i.dom.getBody();new MutationObserver(function(e){e.forEach(function(e){var t,n;e.addedNodes.length&&document.querySelector(containerSelector)&&(e=findSubstitutableElements(i),t=null==(t=i.designerv2.currentlyPreviewedGuide)?void 0:t.steps[0])&&(n=t.buildingBlocks,i._.isUndefined(n)||findSubstitutableUrlsInJson(n,e,i),i._.size(e))&&(i._.each(e,function(e){i._.isUndefined(e)||processPlaceholder(e,i)}),updateGuideContainer("pendo-g-".concat(t.id),t.guideElement,i))})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}};function processPlaceholder(e,t){for(var n=e.data,i=e.target,r=new RegExp(guideMarkdownUtil.substitutionRegex);o=matchPlaceholder(e,r);){var o=r.exec(o);substituteMetadataByTarget(n,i,getSubstituteValue(o,t),o)}}function matchPlaceholder(e,t){return("textContent"===e.target?e.data[e.target]:decodeURI(e.data[e.target])).match(t)}function getSubstituteValue(e,t){if(!t._.isUndefined(e[1])&&!t._.isUndefined(e[2])){var n=e[1],i=e[2],e=e[3];if(!t._.isUndefined(n)&&!t._.isUndefined(i))return t._.get(t.getSerializedMetadata(),"".concat(n,".").concat(i))||e||""}}function substituteMetadataByTarget(e,t,n,i){e[t]="href"===t||"value"===t?decodeURI(e[t]).replace(i[0],window.encodeURI(n)):e[t].replace(i[0],n)}function updateGuideContainer(e,t,n){n.designer&&!n._.size(n.dom("#pendo-ps-substitution-icon"))&&n.dom(containerSelector).append(substitutionIcon("#999","30px")),n.flexElement(n.dom(containerSelector)),n.BuildingBlocks.BuildingBlockGuides.recalculateGuideHeight(e,t)}function findSubstitutableUrlsInJson(e,t,n){void 0===t&&(t=[]);var i=new RegExp(guideMarkdownUtil.substitutionRegex);return"url"!==e.name&&"href"!==e.name||!e.value||i.test(e.value)&&t.push({data:e,target:"value"}),e.properties&&"href_link_block"===e.id&&n._.each(e.properties,function(e){findSubstitutableUrlsInJson(e,t,n)}),e.views&&n._.each(e.views,function(e){findSubstitutableUrlsInJson(e,t,n)}),e.parameters&&n._.each(e.parameters,function(e){findSubstitutableUrlsInJson(e,t,n)}),e.actions&&n._.each(e.actions,function(e){findSubstitutableUrlsInJson(e,t,n)}),e.children&&n._.each(e.children,function(e){findSubstitutableUrlsInJson(e,t,n)}),t}function findSubstitutableElements(n){var e=n.dom("".concat(containerSelector," *:not(.pendo-inline-ui)"));return n._.chain(e).filter(function(e){var t=new RegExp(guideMarkdownUtil.substitutionRegex);return"a"===e.localName?t.test(decodeURI(e.href))||t.test(e.textContent):"div"!==e.localName?"button"===e.localName||"label"===e.localName?t.test(e.textContent):0<e.children.length?void 0:n.dom(e).hasClass("_pendo-simple-text")||n.dom(e).hasClass("_pendo-text-plain")||n.dom(e).hasClass("_pendo-text-list-item")||n.dom(e).hasClass("_pendo-text-link")?t.test(e.textContent):t.test(e.textContent)||t.test(decodeURI(e.href)):void 0}).map(function(e){return"a"===e.localName&&n.dom(e).hasClass("_pendo-text-link")?[{data:e,target:"href"},{data:e,target:"textContent"}]:"a"===e.localName?{data:e,target:"href"}:"button"===e.localName||n.dom(e).hasClass("_pendo-simple-text")||n.dom(e).hasClass("_pendo-text-plain")||n.dom(e).hasClass("_pendo-text-list-item")||n.dom(e).hasClass("_pendo-text-link")?{data:e,target:"textContent"}:void 0}).flatten().value()}function substitutionIcon(e,t){return'<div title="Metadata Substitution added">\n <svg id="pendo-ps-substitution-icon" viewBox="0 0 24 24"\n preserveAspectRatio="xMidYMid meet"\n height='.concat(t," width=").concat(t,' title="Metadata Substitution"\n style="bottom:5px; right:10px; position: absolute;"\n fill="none" xmlns="http://www.w3.org/2000/svg" stroke="').concat(e,'"\n transform="matrix(1, 0, 0, 1, 0, 0)rotate(0)">\n <g stroke-width="0"></g>\n <g stroke-linecap="round" stroke-linejoin="round"\n stroke="').concat(e,'" stroke-width="0.528"></g>\n <g><path fill-rule="evenodd" clip-rule="evenodd"\n d="M5 5.5C4.17157 5.5 3.5 6.17157 3.5 7V10C3.5 10.8284\n 4.17157 11.5 5 11.5H8C8.82843 11.5 9.5 10.8284 9.5\n 10V9H17V11C17 11.2761 17.2239 11.5 17.5 11.5C17.7761\n 11.5 18 11.2761 18 11V8.5C18 8.22386 17.7761 8 17.5\n 8H9.5V7C9.5 6.17157 8.82843 5.5 8 5.5H5ZM8.5 7C8.5\n 6.72386 8.27614 6.5 8 6.5H5C4.72386 6.5 4.5 6.72386\n 4.5 7V10C4.5 10.2761 4.72386 10.5 5 10.5H8C8.27614\n 10.5 8.5 10.2761 8.5 10V7Z" fill="').concat(e,'"></path>\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M7 13C7 12.7239 6.77614 12.5 6.5 12.5C6.22386 12.5\n 6 12.7239 6 13V15.5C6 15.7761 6.22386 16 6.5\n 16H14.5V17C14.5 17.8284 15.1716 18.5 16 18.5H19C19.8284\n 18.5 20.5 17.8284 20.5 17V14C20.5 13.1716 19.8284 12.5\n 19 12.5H16C15.1716 12.5 14.5 13.1716 14.5\n 14V15H7V13ZM15.5 17C15.5 17.2761 15.7239 17.5 16\n 17.5H19C19.2761 17.5 19.5 17.2761 19.5 17V14C19.5\n 13.7239 19.2761 13.5 19 13.5H16C15.7239 13.5 15.5\n 13.7239 15.5 14V17Z" fill="').concat(e,'"></path> </g></svg></div>')}var requiredElement='<span class="_pendo-required-indicator" style="color:red; font-style:italic;" title="Question is required"> *</span>',RequiredQuestions={name:"RequiredQuestions",script:function(i,e,r){var t,n=[],o=null==(t=guideMarkdownUtil.lookupGuideButtons(i.domJson))?void 0:t.filter(function(e){return e.actions.find(function(e){return"submitPoll"===e.action||"submitPollAndGoToStep"===e.action})}),a=function(){var e=i.guideElement.find("[class*=-poll-question]:contains({required/})");e&&r._.forEach(e,function(e){var t=e.getAttribute("data-pendo-poll-id");n.push(t),r._.each(i.guideElement.find("#".concat(e.id," *, #").concat(e.id)),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{required/}","",r)}),i.guideElement.find("#".concat(e.id," p")).append(requiredElement)});r._.size(n)&&(0===r.dom("#_pendo-guide-required-disabled").length&&r.dom("head").append("<style type=text/css\n id=_pendo-guide-required-disabled>\n ._pendo-button:disabled, ._pendo-buttons[disabled] {\n border: 1px solid #999999 !important;\n background-color: #cccccc !important;\n color: #666666 !important;\n pointer-events: none !important;\n }\n </style>"),d(o));return e}();function s(e){var t,n;0!==e.length&&(t=!0,(t=(n=(n=[]).concat(r._.map(e,function(e){e=e.getAttribute("data-pendo-poll-id"),e=i.guideElement.find("\n [data-pendo-poll-id=".concat(e,"] textarea,\n [data-pendo-poll-id=").concat(e,"] input:text,\n [data-pendo-poll-id=").concat(e,"] select,\n [data-pendo-poll-id=").concat(e,"] input:radio:checked"));if(e&&e.length&&e[0].value)return e[0].value}))).includes(undefined)||r._.isEmpty(n)?!1:t)?o.forEach(function(e){i.guideElement.find("#".concat(e.props.id))[0]&&(i.guideElement.find("#".concat(e.props.id))[0].disabled=!1,i.guideElement.find("#".concat(e.props.id))[0].parentElement.title="")}):d(o))}function d(e){e.forEach(function(e){i.guideElement.find("#".concat(e.props.id))[0]&&(i.guideElement.find("#".concat(e.props.id))[0].disabled=!0,i.guideElement.find("#".concat(e.props.id))[0].parentElement.title="Please complete all required questions.")})}a&&(r._.forEach(a,function(e){e.classList.contains("_pendo-open-text-poll-question")&&(e=e.dataset.pendoPollId,i.attachEvent(i.guideElement.find("[data-pendo-poll-id=".concat(e,"]._pendo-open-text-poll-input"))[0],"input",function(){s(a)}))}),i.attachEvent(i.guideElement.find("#pendo-guide-container")[0],"click",function(e){e.target.classList.contains("_pendo-button")||s(a)}))},test:function(e,t,n){e=null==(e=e.guideElement)?void 0:e.find("[class*=-poll-question]:contains({required/})");return!n._.isUndefined(e)&&n._.size(e)},designerListener:function(n){var e=n.dom.getBody();new MutationObserver(function(e){e.forEach(function(e){var t=n._.isFunction(null==(t=e.addedNodes[0])?void 0:t.querySelectorAll);e.addedNodes.length&&t&&(t=e.addedNodes[0].querySelectorAll("[class*=-poll-wrapper], [class*=-poll-select-border]"))&&t.forEach(function(e){var t,e=e.classList.contains("_pendo-open-text-poll-wrapper")||e.classList.contains("_pendo-number-scale-poll-wrapper")?e.getAttribute("name"):e.getAttribute("data-pendo-poll-id");(t=n.dom('[class*="-poll-question"][data-pendo-poll-id='.concat(e,"]"))[0]?n.dom('[class*="-poll-question"][data-pendo-poll-id='.concat(e,"]"))[0].textContent:t).includes("{required/}")&&(n._.each(n.dom("[data-pendo-poll-id=".concat(e,"]:not(.pendo-radio)")),function(e){n._.each(n.dom("#".concat(e.id,' *:not(".pendo-radio"), #').concat(e.id,':not(".pendo-radio")')),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{required/}","",n)})}),(0!==n.dom(".bb-text[data-pendo-poll-id=".concat(e,"] p")).length||0!==n.dom(".bb-text[data-pendo-poll-id=".concat(e,"] li")).length?(n.dom(".bb-text[data-pendo-poll-id=".concat(e,"] p")).append(requiredElement),n.dom(".bb-text[data-pendo-poll-id=".concat(e,"] li"))):n.dom(".bb-text[data-pendo-poll-id=".concat(e,"]"))).append(requiredElement))})})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}},skipStepRegex=new RegExp(guideMarkdownUtil.skipStepString),SkipToEligibleStep={script:function(i,r,o){var n=!1,a=!1,e=i.guideElement.find("#pendo-guide-container"),t=e.attr("aria-label"),s=skipStepRegex.exec(t)[1];function d(e,t){var n=u(r.getPositionOfStep(i),"next",e),e=u(r.getPositionOfStep(i)-2,"previous",e);return n&&"next"==t&&o.goToStep({destinationStepId:n}),e&&"previous"==t&&o.goToStep({destinationStepId:e}),"next"===t?n:e}function u(e,t,n){var i;if(!o._.isNaN(e))return(i=r.steps[e])&&!i.canShow()?"auto"!==n?r.steps[n-1]:"next"===t?u(e+1,"next",n):u(e-1,"previous",n):i}e&&e.attr({"aria-label":e.attr("aria-label").replace(skipStepRegex,"")}),this.on("beforeAdvance",function(e){var t;r.getPositionOfStep(i)===r.steps.length||o._.isUndefined(s)||(t=d(s,"next"),!n&&s&&(n=!0,o.goToStep({destinationStepId:t.id}),e.cancel=!0))}),this.on("beforePrevious",function(e){var t;o._.isUndefined(s)||(t=d(s,"previous"),!a&&s&&(a=!0,o.goToStep({destinationStepId:t.id}),e.cancel=!0))})},test:function(e,t,n){e=null==(e=e.guideElement)?void 0:e.find("#pendo-guide-container").attr("aria-label");return!n._.isUndefined(e)&&(null==e?void 0:e.includes("{skipStep"))},designerListener:function(n){var e=n.dom.getBody();new MutationObserver(function(e){e.forEach(function(e){var t=n._.isFunction(null==(t=e.addedNodes[0])?void 0:t.querySelectorAll);e.addedNodes.length&&t&&(e=null==(t=e.addedNodes[0].querySelectorAll("#pendo-guide-container")[0])?void 0:t.getAttribute("aria-label"))&&e.match(skipStepRegex)&&(t=e.match(skipStepRegex)[0],e.replace(t,""),n.dom("#_pendoSkipIcon").length||n.dom("#pendo-guide-container").append((t="#999",'<div title="Skip step added"><svg id="_pendoSkipIcon" version="1.0" xmlns="http://www.w3.org/2000/svg"\n width="'.concat(e="30px",'" height="').concat(e,'" viewBox="0 0 512.000000 512.000000"\n preserveAspectRatio="xMidYMid meet" style="bottom:5px; right:10px; position: absolute;">\n <g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)"\n fill="').concat(t,'" stroke="none">\n <path d="M2185 4469 c-363 -38 -739 -186 -1034 -407 -95 -71 -273 -243 -357\n -343 -205 -246 -364 -577 -429 -897 -25 -121 -45 -288 -45 -373 l0 -49 160 0\n 160 0 0 48 c0 26 5 88 10 137 68 593 417 1103 940 1374 1100 570 2418 -137\n 2560 -1374 5 -49 10 -111 10 -137 l0 -47 -155 -3 -155 -3 235 -235 235 -236\n 235 236 235 235 -155 3 -155 3 0 48 c0 27 -5 95 -10 152 -100 989 -878 1767\n -1869 1868 -117 12 -298 12 -416 0z"/>\n <path d="M320 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M960 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M1600 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M2240 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M2880 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M3840 1440 l0 -160 480 0 480 0 0 160 0 160 -480 0 -480 0 0 -160z"/>\n </g></svg></div>\n ').trim())))})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}},GuideMarkdown=function(){var r,o,a;return{name:"GuideMarkdown",initialize:function(e,t){a=e;var n=(o=t).ConfigReader,i="guideMarkdown";n.addOption(i,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),n.get(i)&&(r=[PollBranching,MetadataSubstitution,RequiredQuestions,SkipToEligibleStep],e.designer||r.forEach(function(e){t.GlobalRuntime.addGlobalScript(e)}),t.Events.on("designerLaunched",s))},teardown:function(){o.Events.off("designerLaunched",s),r.forEach(function(e){o.GlobalRuntime.removeGlobalScript(e)})}};function s(){r.forEach(function(e){e.designerListener&&e.designerListener(a,o)})}}(),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$1(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$1,throttle$2=getDefaultExportFromCjs(throttle$1),isArray$8=Array.isArray,isArray_1=isArray$8,isArray$7=isArray_1,isSymbol$2=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$1(e,t){var n;return!isArray$7(e)&&(!("number"!=(n=typeof e)&&"symbol"!=n&&"boolean"!=n&&null!=e&&!isSymbol$2(e))||reIsPlainProp.test(e)||!reIsDeepProp.test(e)||null!=t&&e in Object(t))}var _isKey=isKey$1,baseGetTag$4=_baseGetTag,isObject$4=isObject_1,asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(e){return!!isObject$4(e)&&((e=baseGetTag$4(e))==funcTag$2||e==genTag$1||e==asyncTag||e==proxyTag)}var isFunction_1=isFunction$2,isFunction$3=getDefaultExportFromCjs(isFunction_1),root$6=_root,coreJsData$1=_root["__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$9(e,t){e=getValue(e,t);return baseIsNative(e)?e:undefined}var _getNative=getNative$9,getNative$8=_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$7=_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$6=_getNative,defineProperty$2=function(){try{var e=getNative$6(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$5=_getNative,root$4=_root,DataView$2=_getNative(_root,"DataView"),_DataView=DataView$2,getNative$4=_getNative,root$3=_root,Promise$2=_getNative(_root,"Promise"),_Promise=Promise$2,getNative$3=_getNative,root$2=_root,Set$2=_getNative(_root,"Set"),_Set=Set$2,getNative$2=_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$2(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)}};var VocPortal=function(){var r,h;return{name:"VocPortal",initialize:function(e,t){r=e;e=(h=t).EventTracer.addTracerIds({}).frameId;this.removeResizeEvent=r.attachEvent(window,"resize",f),startListening("VocPortal",e,n,function(){return"*"})},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 f(){var e=document.getElementById("pendo-resource-center-container"),e=r.dom(e);h.sizeElements(e)}function t(e,t){var n=r.getSerializedMetadata(),i=!!r.designer||h.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=e.data.width,o=r.value,a=r.unit,s=r.isImportant,d=e.data.height,u=d.value,c=d.unit,l=d.isImportant;"number"==typeof o&&"number"==typeof u&&((t=["px","%","vh","vw"]).includes(a)&&t.includes(c))&&(n="".concat(o).concat(a).concat(s?" !important":""),i="".concat(u).concat(c).concat(l?" !important":""),document.getElementById("pendo-resource-center-container").appendChild(document.createElement("style")).innerHTML='#pendo-resource-center-container:has(iframe[src*="portal"][src*="mode=rc"]) {\n width: '.concat(n,";\n height: ").concat(i,";\n ._pendo-step-container-size {\n width: ").concat(n,";\n height: ").concat(i,";\n }\n }"),f())}catch(p){h.log.error("Error while adjusting RC module",p)}}}();function isFeedbackOn(e){return e.ConfigReader.get("pendoFeedback")}function isUnsupportedIE(e){return!e.sniffer.isMinimumIEVersion(10)}var Feedback=function(){var a,s,i="feedback_notification_count",d="",u="",c="",r="",o=!1,l="",p=!1,h="feedback_ping_sent",G=36e5,f={feedbackIframe:"feedback-widget_iframe",feedbackTrigger:"feedback-trigger",feedbackWidget:"feedback-widget",feedbackOverlay:"feedback-overlay",feedbackTriggerButton:"feedback-trigger-button",feedbackStyles:"pendo-feedback-styles",feedbackFrameStyles:"pendo-feedback-visible-buttons-styles"};return{name:"Feedback",initialize:function(e,t){s=t;var n={ping:I,init:F,initialized:j,loginAndRedirect:A,openFeedback:k,initializeFeedbackOnce:S,isFeedbackLoaded:$,convertPendoToFeedbackOptions:P,isUnsupportedIE:(a=e)._.partial(isUnsupportedIE,t),removeFeedbackWidget:z};return e.feedback=n,e.getFeedbackSettings=Z,t.Events.identify.on(m),t.Events.metadata.on(m),t.Events.ready.on(v),t.agentStorage.registry.addLocal(i),t.agentStorage.registry.addLocal(h),{validate:g}},teardown:function(){z(),s.Events.identify.off(m),s.Events.metadata.off(m),s.Events.ready.off(v),delete a.feedback,delete a.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=L();p?I(P(e)):!isFeedbackOn(s)||s.ConfigReader.get("disableFeedbackAutoInit")||s.ConfigReader.get("disableFeedback",!1)||a._.isEmpty(e)||F(e,s.ConfigReader.get("feedbackSettings"))["catch"](a._.noop)}function m(e){e=a._.get(e,"data.0.visitor_id")||a._.get(e,"data.0.options.visitor.id");a.isAnonymousVisitor(e)||t()}function v(){t()}function y(){return c+"/html/widget/notLoaded.html"}function n(e){return e=e||P(L()),s.agentStorage.read(h)===b(e)}function b(e){return JSON.stringify(e)}function I(e){if(!n(e)){s.agentStorage.write(h,b(e),G);e=w(e);if(e.data&&"{}"!==e.data&&"null"!==e.data)return a.ajax.postJSON(d+"/widget/pendo_ping",e).then(function(e){e=e.data.notifications;s.agentStorage.write(i,e),C()})["catch"](function(){s.agentStorage.clear(h)})}return s.q.resolve()}function w(e){return e=e||P(L()),{data:JSON.stringify(e)}}function C(){var e,t=a.dom("#feedback-trigger-notification");0!==t.length&&(e=s.agentStorage.read(i)||0,0<parseInt(e,10)?a._.each(t,function(e){a.dom(e).css({visibility:"visible"})}):a._.each(t,function(e){a.dom(e).css({visibility:"hidden"})}))}function S(){return p&&n()?s.q.resolve():F(L(),s.ConfigReader.get("feedbackSettings"))}function A(e){return S().then(function(){if(a._.isUndefined(e)&&(e={}),"A"===a._.get(e,"anchor.nodeName","").toUpperCase())return t=window.open(y(),Math.random().toString(36).substring(7)),T().then(function(e){t.location=e}),!1;var t;T().then(function(e){window.location.href=e})},function(){})}function E(e){var t=document.createElement("a");return t.href=e,t.host}function T(){var e=w();if(e.data&&"{}"!==e.data&&"null"!==e.data)return a.ajax.postJSON(d+"/widget/token",e).then(function(e){var t;return t=e.data.login_url,r=E(t),e.data.login_url})}function _(){return document.getElementById(f.feedbackWidget)}function x(){return document.getElementById(f.feedbackIframe)}function R(){var e=x();return e||(W(),e=x()),e}function k(e){var t,n;U()&&(e&&e.preventDefault&&e.preventDefault(),(t=R()).src&&t.src!==y()||T().then(function(e){t.src=e+"&inWidget=true"}),(e=a.dom("#".concat(f.feedbackWidget)))&&((n=a.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())),a.dom.addClass(_(),"visible"),N("user.widget.opened"))}function O(){var e,t;e=document.getElementById(f.feedbackWidget),t=document.getElementById(f.feedbackOverlay),e&&t&&(e=document.getElementById(f.feedbackOverlay)).parentNode.removeChild(e),a.dom.removeClass(_(),"visible"),N("user.widget.closed")}function N(e){var t=w();t.event=e,a.ajax.postJSON(d+"/analytics",t)}function D(){window.addEventListener("message",function(e){var t=e.origin||e.originalEvent.origin;if(t=t,r?E(t)===r:E(t)===E(c)){var t=e.data.message,n=e.data.data;switch(t){case"close-receptive-widget":O();break;case"open-receptive":A();break;case"update-receptive-notification-count":s.agentStorage.write(i,n.count),C();break;case"handle-logout":R().src=y(),O();break;case"loaded-receptive-widget":o=!0}}},!1)}function M(e,t){var n;a.dom("#".concat(e))[0]||((n=a.dom(document.createElement("style"))).attr("id",e),n.html(t),n.appendTo(document.head))}function B(e){var t,n,i=a._.extend(e,{triggerColor:"#"+e.triggerColor,triggerPosition:e.triggerPosition.toLowerCase()}),r=("undefined"!=typeof Turbolinks&&document.addEventListener("turbolinks:before-visit",function(e){var t=document.getElementById(f.feedbackIframe);t&&(t.src=y())}),function(e){e=e.triggerPosition.split("_");return{horizontalPosition:e[1],verticalPosition:e[0]}}(i));M(f.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,M("pendo-feedback-trigger-styles","\n #feedback-trigger button:hover {\n box-shadow: 0 -5px 20px rgba(0,0,0,.19) !important;\n outline: none !important;\n background: #3e566f !important;\n }\n #feedback-trigger button:focus {\n box-shadow: 0 -5px 20px rgba(0,0,0,.19) !important;\n outline: none !important;\n background: #3e566f !important;\n }\n "),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=a._.extend({position:"fixed",height:"43px",opacity:"1 !important","z-index":"9001"},t,e),e=a.dom(document.createElement("div"));return e.attr("id",f.feedbackTrigger),e.css(t),e.attr("data-turbolinks-permanent",""),e}(n),i=function(){var e=a.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){t="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":t,"font-size":"15px",color:"#fff","box-shadow":"0 -5px 9px rgba(0,0,0,.16)",cursor:"pointer","text-align":"left"},n=a.dom(document.createElement("button"));return n.attr("id",f.feedbackTriggerButton),n.css(t),n.text(e.triggerText),n}(t,n),e.append(i),e.append(t),e.appendTo(a.dom.getBody()),s.attachEvent(t[0],"click",k)),W(r.horizontalPosition)}function W(e){t="\n .buttonIs-".concat(t="left"===(t=e)?"left":"right",".visible {\n ").concat(t,": 0 !important;\n width: 470px !important;\n animation-direction: alternate-reverse !important;\n animation: pendoFeedbackSlideFrom-").concat(t," 0.5s 0s 1 alternate both !important;\n -webkit-animation: pendoFeedbackSlideFrom-").concat(t," 0.5s 0s 1 alternate both !important;\n z-index: 9002 !important;\n }\n "),M(f.feedbackFrameStyles,t),t=e,(e=a.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",f.feedbackWidget),e.attr("data-turbolinks-permanent","true"),e.addClass("buttonIs-".concat(t));var t=e;t.append(((e=a.dom(document.createElement("iframe"))).css({width:"100%",height:"99.6%",border:"0 none"}),e.attr("id",f.feedbackIframe),e.attr("title","Feedback"),e.attr("src",y()),e)),t.appendTo(a.dom.getBody()),D()}function $(){return o}function L(){var e=s.ConfigReader.getLocalConfig();return a._.isObject(e)||(e={}),a._.isObject(e.visitor)||(e.visitor={}),a._.isObject(e.account)||(e.account={}),e}function U(e){e=e||L();if(!isUnsupportedIE(a)&&u&&d&&c&&l)if(a._.get(e.visitor,"id")){if(!a.isAnonymousVisitor(e.visitor.id)){if(a._.get(e.account,"id"))return 1;a.log("The current visitor is not associated with an account.")}}else a.log("Not valid visitor id")}function F(e,t){if(u=t.vendorId,d=t.apiUrl,c=t.siteUrl,l=t.productId,p)return s.q.reject();if(!U(e))return s.q.reject();var n,i,e=P(e);try{n=a.url.get(),i="fdbkDst";var r=null!=(i=new RegExp("[?&]"+i+"=([^&#]*)").exec(n))&&decodeURI(i[1])||null;if(r&&r.startsWith("case"))return p=!0,void T().then(function(e){window.location.href=e+"&fdbkDst="+r})}catch(o){p=!1,a.log(o,"unhandled error while checking feedback destination")}try{return p=!0,"WIDGET"===t.type&&B(t),C(),I(e)}catch(o){return p=!1,a.log(o,"unhandled error while initializing feedback"),s.q.reject(o)}}function P(e){var t,n,i=s.agent.getJwtInfoCopy();return a._.isEmpty(i)?((t={}).user=a._.pick(e.visitor,"id","full_name","firstName","lastName","email","tags","custom_allowed_products"),a._.extend(t.user,{allowed_products:[{id:l}]}),t.account=a._.pick(e.account,"id","name","monthly_value","is_paying","tags"),a._.extend(t,{vendor:{id:u}}),a._.isUndefined(t.account.is_paying)&&(t.account.is_paying=!0),null!=t.user.email&&""!=t.user.email||(t.user.email=(e=t,a._.isUndefined(e.user)||a._.isUndefined(e.user.id)?"noemail+"+a.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,a._.isUndefined(e.user.firstName)&&a._.isUndefined(e.user.lastName)?a._.isUndefined(e.user)||a._.isUndefined(e.user.id)?"No Name Provided"+a.randomString(32):"No Name Provided"+e.user.id:(n=[],a._.isUndefined(e.user.firstName)||n.push(e.user.firstName),a._.isUndefined(e.user.lastName)||n.push(e.user.lastName),n.join(" ")))),t):(e=JSON.parse(JSON.stringify(i)),a._.extend(e,{vendor:{id:u}}),a._.extend(e,{allowed_products:[{id:l}]}),e)}function j(){return p}function z(){a._.each(a._.values(f),function(e){a.dom("#"+e).remove()}),l=r=c=u=d="",p=o=!1}function Z(){return JSON.parse(JSON.stringify(s.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 _a,URL$1=function(e){var t=window.URL;return"function"==typeof t&&/native/.test(t)?t:e(document)}(URLPolyfillFactory),__defProp=Object.defineProperty,__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),__defProp$1=Object.defineProperty,__defNormalProp$1=(e,t,n)=>t in e?__defProp$1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField$1=(e,t,n)=>__defNormalProp$1(e,"symbol"!=typeof t?t+"":t,n),NodeType$2=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(NodeType$2||{});const testableAccessors$1={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},testableMethods$1={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},untaintedBasePrototype$1={};function angularZoneUnpatchedAlternative$1(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]}function getUntaintedPrototype$1(e){if(untaintedBasePrototype$1[e])return untaintedBasePrototype$1[e];var t=angularZoneUnpatchedAlternative$1(e)||globalThis[e];const n=t.prototype;var i=e in testableAccessors$1?testableAccessors$1[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 testableMethods$1?testableMethods$1[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 untaintedBasePrototype$1[e]=t.prototype,t.prototype;try{var o,a=document.createElement("iframe"),s=(document.body.appendChild(a),a.contentWindow);return s?(o=s[e].prototype,document.body.removeChild(a),o?untaintedBasePrototype$1[e]=o:n):t.prototype}catch{return n}}const untaintedAccessorCache$1={};function getUntaintedAccessor$1(e,t,n){var i=e+"."+String(n);return untaintedAccessorCache$1[i]?untaintedAccessorCache$1[i].call(t):(e=getUntaintedPrototype$1(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(untaintedAccessorCache$1[i]=e).call(t):t[n])}const untaintedMethodCache$1={};function getUntaintedMethod$1(e,t,n){var i=e+"."+String(n);return untaintedMethodCache$1[i]?untaintedMethodCache$1[i].bind(t):"function"!=typeof(e=getUntaintedPrototype$1(e)[n])?t[n]:(untaintedMethodCache$1[i]=e).bind(t)}function childNodes$1(e){return getUntaintedAccessor$1("Node",e,"childNodes")}function parentNode$1(e){return getUntaintedAccessor$1("Node",e,"parentNode")}function parentElement$1(e){return getUntaintedAccessor$1("Node",e,"parentElement")}function textContent$1(e){return getUntaintedAccessor$1("Node",e,"textContent")}function contains$1(e,t){return getUntaintedMethod$1("Node",e,"contains")(t)}function getRootNode$1(e){return getUntaintedMethod$1("Node",e,"getRootNode")()}function host$1(e){return e&&"host"in e?getUntaintedAccessor$1("ShadowRoot",e,"host"):null}function styleSheets$1(e){return e.styleSheets}function shadowRoot$1(e){return e&&"shadowRoot"in e?getUntaintedAccessor$1("Element",e,"shadowRoot"):null}function querySelector$1(e,t){return getUntaintedAccessor$1("Element",e,"querySelector")(t)}function querySelectorAll$1(e,t){return getUntaintedAccessor$1("Element",e,"querySelectorAll")(t)}function mutationObserverCtor$1(){return getUntaintedPrototype$1("MutationObserver").constructor}const index$1={childNodes:childNodes$1,parentNode:parentNode$1,parentElement:parentElement$1,textContent:textContent$1,contains:contains$1,getRootNode:getRootNode$1,host:host$1,styleSheets:styleSheets$1,shadowRoot:shadowRoot$1,querySelector:querySelector$1,querySelectorAll:querySelectorAll$1,mutationObserver:mutationObserverCtor$1};function isElement(e){return e.nodeType===e.ELEMENT_NODE}function isShadowRoot(e){var t=e&&"host"in e&&"mode"in e&&index$1.host(e)||null;return Boolean(t&&"shadowRoot"in t&&index$1.shadowRoot(t)===e)}function isNativeShadowDom(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function getNative$1(e,t=window){var n=null==(i=null==(n=null==t?void 0:t.Zone)?void 0:n.__symbol__)?void 0:i.call(n,e);if(n){var i=t[n];if(i)return i}return t[e]}const nativeSetTimeout="undefined"!=typeof window?getNative$1("setTimeout").bind(window):global.setTimeout;function fixBrowserCompatibilityIssuesInCSS(e){return e=e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")?e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"):e}function escapeImportStatement(e){var t=e["cssText"];return t.split('"').length<3?t:(t=["@import",`url(${JSON.stringify(e.href)})`],""===e.layerName?t.push("layer"):e.layerName&&t.push(`layer(${e.layerName})`),e.supportsText&&t.push(`supports(${e.supportsText})`),e.media.length&&t.push(e.media.mediaText),t.join(" ")+";")}function stringifyStylesheet(e){try{var n=e.rules||e.cssRules;if(!n)return null;let t=e.href;return!t&&e.ownerNode&&e.ownerNode.ownerDocument&&(t=e.ownerNode.ownerDocument.location.href),fixBrowserCompatibilityIssuesInCSS(Array.from(n,e=>stringifyRule(e,t)).join(""))}catch(t){return null}}function stringifyRule(t,n){var i;if(isCSSImportRule(t)){let e;try{e=stringifyStylesheet(t.styleSheet)||escapeImportStatement(t)}catch(r){e=t.cssText}return null!=(i=null==t?void 0:t.styleSheet)&&i.href?absolutifyURLs(e,t.styleSheet.href):e}{let e=t.cssText;return isCSSStyleRule(t)&&(e=replaceChromeGridTemplateAreas(t),t.selectorText.includes(":"))&&(e=fixSafariColons(e)),n?absolutifyURLs(e,n):e}}function replaceChromeGridTemplateAreas(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}function fixSafariColons(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function isCSSImportRule(e){return"styleSheet"in e}function isCSSStyleRule(e){return"selectorText"in e}class Mirror{constructor(){__publicField$1(this,"idNodeMap",new Map),__publicField$1(this,"nodeMetaMap",new WeakMap)}getId(e){return e?(null==(e=this.getMeta(e))?void 0:e.id)??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){var t=this.getId(e);this.idNodeMap["delete"](t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){var n=this.getNode(e);n&&(n=this.nodeMetaMap.get(n))&&this.nodeMetaMap.set(t,n),this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function createMirror$2(){return new Mirror}function maskInputValue({element:e,maskInputOptions:t,tagName:n,type:i,value:r,maskInputFn:o,needsMask:a}){let s=r||"";r=i&&toLowerCase(i);return s=t[n.toLowerCase()]||r&&t[r]||a?o?o(s,e):"*".repeat(s.length):s}function toLowerCase(e){return e.toLowerCase()}const ORIGINAL_ATTRIBUTE_NAME="__rrweb_original__";function is2DCanvasBlank(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=ORIGINAL_ATTRIBUTE_NAME in r?r[ORIGINAL_ATTRIBUTE_NAME]: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!1}return!0}function getInputType(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?toLowerCase(t):null}function extractFileExtension(e,t){let n;try{n=new URL$1(e,t??window.location.href)}catch(i){return null}e=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==e?void 0:e[1])??null}function extractOrigin(e){let t="";return t=(t=-1<e.indexOf("//")?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}const URL_IN_CSS_REF=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,URL_PROTOCOL_MATCH=/^(?:[a-z+]+:)?\/\//i,URL_WWW_MATCH=/^www\..*/i,DATA_URI=/^(data:)([^,]*),(.*)/i;function absolutifyURLs(e,d){return(e||"").replace(URL_IN_CSS_REF,(e,t,n,i,r,o)=>{n=n||r||o,r=t||i||"";if(!n)return e;if(URL_PROTOCOL_MATCH.test(n)||URL_WWW_MATCH.test(n))return`url(${r}${n}${r})`;if(DATA_URI.test(n))return`url(${r}${n}${r})`;if("/"===n[0])return`url(${r}${extractOrigin(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})`})}let _id=1;const tagNameRegex=new RegExp("[^a-z0-9-_:]"),IGNORED_NODE=-2;function genId(){return _id++}function getValidTagName$1(e){return e instanceof HTMLFormElement?"form":(e=toLowerCase(e.tagName),tagNameRegex.test(e)?"div":e)}let canvasService,canvasCtx;const SRCSET_NOT_SPACES=/^[^ \t\n\r\u000c]+/,SRCSET_COMMAS_OR_SPACES=/^[, \t\n\r\u000c]+/;function getAbsoluteSrcsetString(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(SRCSET_COMMAS_OR_SPACES),!(o>=r.length);){let n=e(SRCSET_NOT_SPACES);if(","===n.slice(-1))n=absoluteToDoc(i,n.substring(0,n.length-1)),a.push(n);else{let e="",t=(n=absoluteToDoc(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 cachedDocument=new WeakMap;function absoluteToDoc(e,t){return t&&""!==t.trim()?getHref(e,t):t}function isSVGElement(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function getHref(e,t){let n=cachedDocument.get(e);if(n||(n=e.createElement("a"),cachedDocument.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function transformAttribute(e,t,n,i){return i&&("src"!==n&&("href"!==n||"use"===t&&"#"===i[0])&&("xlink:href"!==n||"#"===i[0])&&("background"!==n||"table"!==t&&"td"!==t&&"th"!==t)?"srcset"===n?getAbsoluteSrcsetString(e,i):"style"===n?absolutifyURLs(i,getHref(e)):"object"===t&&"data"===n?absoluteToDoc(e,i):i:absoluteToDoc(e,i))}function ignoreAttribute(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function _isBlockedElement(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}function classMatchesRegex(t,n,e){if(!t)return!1;if(!n)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!e&&classMatchesRegex(index$1.parentNode(t),n,e);for(let e=t.classList.length;e--;){var i=t.classList[e];if(n.test(i))return!0}return!!e&&classMatchesRegex(index$1.parentNode(t),n,e)}function needMaskingText(e,t,n,i){let r;if(isElement(e)){if(r=e,"*"===n)return!0;if(!index$1.childNodes(r).length)return!1}else{if(null===index$1.parentElement(e))return!1;r=index$1.parentElement(e)}try{if("string"==typeof t){if(i){if(r.closest("."+t))return!0}else if(r.classList.contains(t))return!0}else if(classMatchesRegex(r,t,i))return!0;if(n)if(i){if(r.closest(n))return!0}else if(r.matches(n))return!0}catch(o){}return!1}function onceIframeLoaded(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=nativeSetTimeout(()=>{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 nativeSetTimeout(i,0),n.addEventListener("load",i);n.addEventListener("load",i)}}}function onceStylesheetLoaded(e,t,n){let i=!1,r;try{r=e.sheet}catch(o){return}if(!r){const a=nativeSetTimeout(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{clearTimeout(a),i=!0,t()})}}function serializeNode(e,t){var{doc:n,mirror:t,blockClass:i,blockSelector:r,needsMask:o,inlineStylesheet:a,maskInputOptions:s={},maskTextFn:d,maskInputFn:u,dataURLOptions:c={},inlineImages:l,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:f=!1}=t,g=getRootId(n,t);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:NodeType$2.Document,childNodes:[],compatMode:e.compatMode}:{type:NodeType$2.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:NodeType$2.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:g};case e.ELEMENT_NODE:return serializeElementNode(e,{doc:n,blockClass:i,blockSelector:r,inlineStylesheet:a,maskInputOptions:s,maskInputFn:u,dataURLOptions:c,inlineImages:l,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:f,rootId:g,needsMask:o});case e.TEXT_NODE:return serializeTextNode(e,{doc:n,needsMask:o,maskTextFn:d,maskInputOptions:s,maskInputFn:u,rootId:g});case e.CDATA_SECTION_NODE:return{type:NodeType$2.CDATA,textContent:"",rootId:g};case e.COMMENT_NODE:return{type:NodeType$2.Comment,textContent:index$1.textContent(e)||"",rootId:g};default:return!1}}function getRootId(e,t){return!t.hasNode(e)||1===(e=t.getId(e))?void 0:e}function serializeTextNode(e,t){var n,{needsMask:i,maskTextFn:r,rootId:o,maskInputOptions:a,maskInputFn:s}=t,d=index$1.parentNode(e),u=d&&d.tagName;let c=index$1.textContent(e);var l="STYLE"===u||void 0,p="SCRIPT"===u||void 0,u="TEXTAREA"===u||void 0;if(l&&c){try{e.nextSibling||e.previousSibling||null!=(n=d.sheet)&&n.cssRules&&(c=stringifyStylesheet(d.sheet))}catch(h){console.warn("Cannot get CSS styles from text's parentNode. Error: "+h,e)}c=absolutifyURLs(c,getHref(t.doc))}return p&&(c="SCRIPT_PLACEHOLDER"),!l&&!p&&c&&i&&(c=r?r(c,index$1.parentElement(e)):c.replace(/[\S]/g,"*")),u&&c&&a.textarea&&(c=s?s(c,e.parentNode):c.replace(/[\S]/g,"*")),{type:NodeType$2.Text,textContent:c||"",isStyle:l,rootId:o}}function serializeElementNode(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=_isBlockedElement(t,i,r),g=getValidTagName$1(t);let m={};var v,y=t.attributes.length;for(let e=0;e<y;e++){var b=t.attributes[e];ignoreAttribute(g,b.name,b.value)||(m[b.name]=transformAttribute(n,g,toLowerCase(b.name),b.value))}if("link"===g&&o){var I=Array.from(n.styleSheets).find(e=>e.href===t.href);let e=null;(e=I?stringifyStylesheet(I):e)&&(delete m.rel,delete m.href,m._cssText=e)}if("style"===g&&t.sheet&&!(t.innerText||index$1.textContent(t)||"").trim().length&&(I=stringifyStylesheet(t.sheet))&&(m._cssText=I),"input"!==g&&"textarea"!==g&&"select"!==g||(I=t.value,v=t.checked,"radio"!==m.type&&"checkbox"!==m.type&&"submit"!==m.type&&"button"!==m.type&&I?m.value=maskInputValue({element:t,type:getInputType(t),tagName:g,value:I,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?is2DCanvasBlank(t)||(m.rr_dataURL=t.toDataURL(d.type,d.quality)):"__context"in t||(I=t.toDataURL(d.type,d.quality),(v=n.createElement("canvas")).width=t.width,v.height=t.height,I!==v.toDataURL(d.type,d.quality)&&(m.rr_dataURL=I))),"img"===g&&u){canvasService||(canvasService=n.createElement("canvas"),canvasCtx=canvasService.getContext("2d"));const S=t,A=S.currentSrc||S.getAttribute("src")||"<unknown-src>",E=S.crossOrigin,T=()=>{S.removeEventListener("load",T);try{canvasService.width=S.naturalWidth,canvasService.height=S.naturalHeight,canvasCtx.drawImage(S,0,0),m.rr_dataURL=canvasService.toDataURL(d.type,d.quality)}catch(e){if("anonymous"!==S.crossOrigin)return S.crossOrigin="anonymous",void(S.complete&&0!==S.naturalWidth?T():S.addEventListener("load",T));console.warn(`Cannot inline img src=${A}! Error: `+e)}"anonymous"===S.crossOrigin&&(E?m.crossOrigin=E:S.removeAttribute("crossorigin"))};S.complete&&0!==S.naturalWidth?T():S.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:I,height:v}=t.getBoundingClientRect(),m={"class":m["class"],rr_width:I+"px",rr_height:v+"px"}),"iframe"!==g||l(m.src)||(t.contentDocument||(m.rr_src=m.src),delete m.src);let w;try{customElements.get(g)&&(w=!0)}catch(C){}return{type:NodeType$2.Element,tagName:g,attributes:m,childNodes:[],isSVG:isSVGElement(t)||void 0,needBlock:e,rootId:h,isCustom:w}}function lowerIfExists(e){return null==e?"":e.toLowerCase()}function slimDOMExcluded(e,t){if(t.comment&&e.type===NodeType$2.Comment)return!0;if(e.type===NodeType$2.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===extractFileExtension(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(lowerIfExists(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===lowerIfExists(e.attributes.name)||"icon"===lowerIfExists(e.attributes.rel)||"apple-touch-icon"===lowerIfExists(e.attributes.rel)||"shortcut icon"===lowerIfExists(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&lowerIfExists(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(lowerIfExists(e.attributes.property).match(/^(og|twitter|fb):/)||lowerIfExists(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===lowerIfExists(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===lowerIfExists(e.attributes.name)||"googlebot"===lowerIfExists(e.attributes.name)||"bingbot"===lowerIfExists(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===lowerIfExists(e.attributes.name)||"generator"===lowerIfExists(e.attributes.name)||"framework"===lowerIfExists(e.attributes.name)||"publisher"===lowerIfExists(e.attributes.name)||"progid"===lowerIfExists(e.attributes.name)||lowerIfExists(e.attributes.property).match(/^article:/)||lowerIfExists(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===lowerIfExists(e.attributes.name)||"yandex-verification"===lowerIfExists(e.attributes.name)||"csrf-token"===lowerIfExists(e.attributes.name)||"p:domain_verify"===lowerIfExists(e.attributes.name)||"verify-v1"===lowerIfExists(e.attributes.name)||"verification"===lowerIfExists(e.attributes.name)||"shopify-checkout-api-token"===lowerIfExists(e.attributes.name)))return!0}}return!1}function serializeNodeWithId(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:I,stylesheetLoadTimeout:w=5e3,keepIframeSrcFn:C=()=>!1,newlyAddedElement:S=!1}=e;let A=e["needsMask"],{preserveWhiteSpace:E=!0}=e;A||(e=void 0===A,A=needMaskingText(t,a,s,e));e=serializeNode(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:A,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,dataURLOptions:f,inlineImages:g,recordCanvas:m,keepIframeSrcFn:C,newlyAddedElement:S});if(!e)return console.warn(t,"not serialized"),null;let T;T=i.hasNode(t)?i.getId(t):slimDOMExcluded(e,h)||!E&&e.type===NodeType$2.Text&&!e.isStyle&&!e.textContent.replace(/^\s+|\s+$/gm,"").length?IGNORED_NODE:genId();var _=Object.assign(e,{id:T});if(i.add(t,_),T===IGNORED_NODE)return null;v&&v(t);let x=!d;if(_.type===NodeType$2.Element&&(x=x&&!_.needBlock,delete _.needBlock,e=index$1.shadowRoot(t))&&isNativeShadowDom(e)&&(_.isShadowHost=!0),(_.type===NodeType$2.Document||_.type===NodeType$2.Element)&&x){h.headWhitespace&&_.type===NodeType$2.Element&&"head"===_.tagName&&(E=!1);var R={doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:A,maskTextClass:a,maskTextSelector:s,skipChild:d,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:E,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:I,stylesheetLoadTimeout:w,keepIframeSrcFn:C};if(_.type!==NodeType$2.Element||"textarea"!==_.tagName||void 0===_.attributes.value)for(const N of Array.from(index$1.childNodes(t))){var k=serializeNodeWithId(N,R);k&&_.childNodes.push(k)}let e=null;if(isElement(t)&&(e=index$1.shadowRoot(t)))for(const M of Array.from(index$1.childNodes(e))){var O=serializeNodeWithId(M,R);O&&(isNativeShadowDom(e)&&(O.isShadow=!0),_.childNodes.push(O))}}e=index$1.parentNode(t);return e&&isShadowRoot(e)&&isNativeShadowDom(e)&&(_.isShadow=!0),_.type===NodeType$2.Element&&"iframe"===_.tagName&&onceIframeLoaded(t,()=>{var e=t.contentDocument;e&&y&&(e=serializeNodeWithId(e,{doc:e,mirror:i,blockClass:r,blockSelector:o,needsMask:A,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:E,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:I,stylesheetLoadTimeout:w,keepIframeSrcFn:C}))&&y(t,e)},b),_.type===NodeType$2.Element&&"link"===_.tagName&&"string"==typeof _.attributes.rel&&("stylesheet"===_.attributes.rel||"preload"===_.attributes.rel&&"string"==typeof _.attributes.href&&"css"===extractFileExtension(_.attributes.href))&&onceStylesheetLoaded(t,()=>{var e;I&&(e=serializeNodeWithId(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:A,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:E,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:I,stylesheetLoadTimeout:w,keepIframeSrcFn:C}))&&I(t,e)},w),_}function snapshot(e,t){var{mirror:t=new Mirror,blockClass:n="rr-block",blockSelector:i=null,maskTextClass:r="rr-mask",maskTextSelector:o=null,inlineStylesheet:a=!0,inlineImages:s=!1,recordCanvas:d=!1,maskAllInputs:u=!1,maskTextFn:c,maskInputFn:l,slimDOM:p=!1,dataURLOptions:h,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:m,iframeLoadTimeout:v,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:I=()=>!1}=t||{};return serializeNodeWithId(e,{doc:e,mirror:t,blockClass:n,blockSelector:i,maskTextClass:r,maskTextSelector:o,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===u?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===u?{password:!0}:u,maskTextFn:c,maskInputFn:l,slimDOMOptions:!0===p||"all"===p?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===p,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===p?{}:p,dataURLOptions:h,inlineImages:s,recordCanvas:d,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:m,iframeLoadTimeout:v,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:I,newlyAddedElement:!1})}var __defProp2=Object.defineProperty,__defNormalProp2=(e,t,n)=>t in e?__defProp2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField2=(e,t,n)=>__defNormalProp2(e,"symbol"!=typeof t?t+"":t,n);function getNative(e,t=window){var n=null==(i=null==(n=null==t?void 0:t.Zone)?void 0:n.__symbol__)?void 0:i.call(n,e);if(n){var i=t[n];if(i)return i}return t[e]}"undefined"!=typeof window?getNative("setTimeout").bind(window):global.setTimeout;class BaseRRNode{constructor(){__publicField2(this,"parentElement",null),__publicField2(this,"parentNode",null),__publicField2(this,"ownerDocument"),__publicField2(this,"firstChild",null),__publicField2(this,"lastChild",null),__publicField2(this,"previousSibling",null),__publicField2(this,"nextSibling",null),__publicField2(this,"ELEMENT_NODE",1),__publicField2(this,"TEXT_NODE",3),__publicField2(this,"nodeType"),__publicField2(this,"nodeName"),__publicField2(this,"RRNodeType")}get childNodes(){var e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(e instanceof BaseRRNode&&e.ownerDocument===this.ownerDocument){if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}const testableAccessors={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},testableMethods={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},untaintedBasePrototype={};function angularZoneUnpatchedAlternative(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]}function getUntaintedPrototype(e){if(untaintedBasePrototype[e])return untaintedBasePrototype[e];var t=angularZoneUnpatchedAlternative(e)||globalThis[e];const n=t.prototype;var i=e in testableAccessors?testableAccessors[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 testableMethods?testableMethods[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 untaintedBasePrototype[e]=t.prototype,t.prototype;try{var o,a=document.createElement("iframe"),s=(document.body.appendChild(a),a.contentWindow);return s?(o=s[e].prototype,document.body.removeChild(a),o?untaintedBasePrototype[e]=o:n):t.prototype}catch{return n}}const untaintedAccessorCache={};function getUntaintedAccessor(e,t,n){var i=e+"."+String(n);return untaintedAccessorCache[i]?untaintedAccessorCache[i].call(t):(e=getUntaintedPrototype(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(untaintedAccessorCache[i]=e).call(t):t[n])}const untaintedMethodCache={};function getUntaintedMethod(e,t,n){var i=e+"."+String(n);return untaintedMethodCache[i]?untaintedMethodCache[i].bind(t):"function"!=typeof(e=getUntaintedPrototype(e)[n])?t[n]:(untaintedMethodCache[i]=e).bind(t)}function childNodes(e){return getUntaintedAccessor("Node",e,"childNodes")}function parentNode(e){return getUntaintedAccessor("Node",e,"parentNode")}function parentElement(e){return getUntaintedAccessor("Node",e,"parentElement")}function textContent(e){return getUntaintedAccessor("Node",e,"textContent")}function contains(e,t){return getUntaintedMethod("Node",e,"contains")(t)}function getRootNode(e){return getUntaintedMethod("Node",e,"getRootNode")()}function host(e){return e&&"host"in e?getUntaintedAccessor("ShadowRoot",e,"host"):null}function styleSheets(e){return e.styleSheets}function shadowRoot(e){return e&&"shadowRoot"in e?getUntaintedAccessor("Element",e,"shadowRoot"):null}function querySelector(e,t){return getUntaintedAccessor("Element",e,"querySelector")(t)}function querySelectorAll(e,t){return getUntaintedAccessor("Element",e,"querySelectorAll")(t)}function mutationObserverCtor(){return getUntaintedPrototype("MutationObserver").constructor}const index={childNodes:childNodes,parentNode:parentNode,parentElement:parentElement,textContent:textContent,contains:contains,getRootNode:getRootNode,host:host,styleSheets:styleSheets,shadowRoot:shadowRoot,querySelector:querySelector,querySelectorAll:querySelectorAll,mutationObserver:mutationObserverCtor};function getWindow(e){var t=e.defaultView;return t||e}function on(e,t,n=document){var i=getWindow(n),r=getNative$1("addEventListener",i);const o=getNative$1("removeEventListener",i),a={capture:!0,passive:!0};return r.call(n,e,t,a),()=>o.call(n,e,t,a)}const DEPARTED_MIRROR_ACCESS_WARNING="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let _mirror={map:{},getId(){return console.error(DEPARTED_MIRROR_ACCESS_WARNING),-1},getNode(){return console.error(DEPARTED_MIRROR_ACCESS_WARNING),null},removeNodeFromMap(){console.error(DEPARTED_MIRROR_ACCESS_WARNING)},has(){return console.error(DEPARTED_MIRROR_ACCESS_WARNING),!1},reset(){console.error(DEPARTED_MIRROR_ACCESS_WARNING)}};function throttle(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=nativeSetTimeout(()=>{d=!1===a.leading?0:Date.now(),s=null,r.apply(i,e)},n))}}function hookSetter(e,t,n,i,r=window){const o=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,i?n:{set(e){nativeSetTimeout(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>hookSetter(e,t,o||{},!0)}function patch(e,t,n){try{if(!(t in e))return()=>{};const r=e[t];var i=n(r);return"function"==typeof i&&(i.toString=function(){return r.toString()},i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(_mirror=new Proxy(_mirror,{get(e,t,n){return"map"===t&&console.error(DEPARTED_MIRROR_ACCESS_WARNING),Reflect.get(e,t,n)}}));let nowTimestamp=Date.now;function getWindowScroll(e){var t,n=e.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:n.documentElement.scrollLeft||(null==n?void 0:n.body)&&(null==(t=index.parentElement(n.body))?void 0:t.scrollLeft)||(null==(t=null==n?void 0:n.body)?void 0:t.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==n?void 0:n.documentElement.scrollTop)||(null==n?void 0:n.body)&&(null==(t=index.parentElement(n.body))?void 0:t.scrollTop)||(null==(e=null==n?void 0:n.body)?void 0:e.scrollTop)||0}}function getWindowHeight(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function getWindowWidth(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function closestElementOfNode(e){return e?e.nodeType===e.ELEMENT_NODE?e:index.parentElement(e):null}function isBlocked(e,t,n,i){if(e){e=closestElementOfNode(e);if(e){try{if("string"==typeof t){if(e.classList.contains(t))return!0;if(i&&null!==e.closest("."+t))return!0}else if(classMatchesRegex(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 isSerialized(e,t){return-1!==t.getId(e)}function isIgnored(e,t,n){return!("TITLE"!==e.tagName||!n.headTitleMutations)||t.getId(e)===IGNORED_NODE}function isAncestorRemoved(e,t){var n;return!isShadowRoot(e)&&(n=t.getId(e),!t.has(n)||(!(n=index.parentNode(e))||n.nodeType!==e.DOCUMENT_NODE)&&(!n||isAncestorRemoved(n,t)))}function legacy_isTouchEvent(e){return Boolean(e.changedTouches)}function polyfill$1(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function isSerializedIframe(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function isSerializedStylesheet(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function hasShadowRoot(e){return!!e&&(e instanceof BaseRRNode&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(index.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(nowTimestamp=()=>(new Date).getTime());class StyleSheetMirror{constructor(){__publicField(this,"id",1),__publicField(this,"styleIDMap",new WeakMap),__publicField(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){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 getShadowHost(e){var t;let n=null;return n="getRootNode"in e&&(null==(t=index.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&index.host(index.getRootNode(e))?index.host(index.getRootNode(e)):n}function getRootShadowHost(e){let t=e;for(var n;n=getShadowHost(t);)t=n;return t}function shadowHostInDom(e){var t=e.ownerDocument;return!!t&&(e=getRootShadowHost(e),index.contains(t,e))}function inDom(e){var t=e.ownerDocument;return!!t&&(index.contains(t,e)||shadowHostInDom(e))}var EventType=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(EventType||{}),IncrementalSource=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(IncrementalSource||{}),MouseInteractions=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(MouseInteractions||{}),PointerTypes=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(PointerTypes||{}),CanvasContext=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(CanvasContext||{}),MediaInteractions=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(MediaInteractions||{});function isNodeInLinkedList(e){return"__ln"in e}class DoubleLinkedList{constructor(){__publicField(this,"length",0),__publicField(this,"head",null),__publicField(this,"tail",null),__publicField(this,"reordered",!1)}get(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&&isNodeInLinkedList(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&&isNodeInLinkedList(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||!isNodeInLinkedList(e.value.previousSibling)||!e.previous||e.previous.value===e.value.previousSibling)}reorder(){if(this.reordered)return!1;let e=this.tail;for(var t=this.head;e;){var n=e.previous;if(this.removeNode(e.value),this.addNode(e.value),e===t)break;e=n}return this.reordered=!0}}const moveKey=(e,t)=>e+"@"+t;class MutationBuffer{constructor(){__publicField(this,"frozen",!1),__publicField(this,"locked",!1),__publicField(this,"texts",[]),__publicField(this,"attributes",[]),__publicField(this,"attributeMap",new WeakMap),__publicField(this,"removes",[]),__publicField(this,"mapRemoves",[]),__publicField(this,"movedMap",{}),__publicField(this,"addedSet",new Set),__publicField(this,"movedSet",new Set),__publicField(this,"droppedSet",new Set),__publicField(this,"removesSubTreeCache",new Set),__publicField(this,"mutationCb"),__publicField(this,"blockClass"),__publicField(this,"blockSelector"),__publicField(this,"maskTextClass"),__publicField(this,"maskTextSelector"),__publicField(this,"inlineStylesheet"),__publicField(this,"maskInputOptions"),__publicField(this,"maskTextFn"),__publicField(this,"maskInputFn"),__publicField(this,"keepIframeSrcFn"),__publicField(this,"recordCanvas"),__publicField(this,"inlineImages"),__publicField(this,"slimDOMOptions"),__publicField(this,"dataURLOptions"),__publicField(this,"doc"),__publicField(this,"mirror"),__publicField(this,"iframeManager"),__publicField(this,"stylesheetManager"),__publicField(this,"shadowDomManager"),__publicField(this,"canvasManager"),__publicField(this,"processedNodeManager"),__publicField(this,"unattachedDoc"),__publicField(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),__publicField(this,"emit",()=>{if(!this.frozen&&!this.locked){const d=[],u=new Set,c=new DoubleLinkedList,l=e=>{let t=e,n=IGNORED_NODE;for(;n===IGNORED_NODE;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n};for(var n,i,r=t=>{var e,n,i=index.parentNode(t);if(i&&inDom(t)&&"TEXTAREA"!==i.tagName)return i=isShadowRoot(i)?this.mirror.getId(getShadowHost(t)):this.mirror.getId(i),e=l(t),-1===i||-1===e?c.addNode(t):void((n=serializeNodeWithId(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=>{isSerializedIframe(e,this.mirror)&&this.iframeManager.addIframe(e),isSerializedStylesheet(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),hasShadowRoot(t)&&this.shadowDomManager.addShadowRoot(index.shadowRoot(t),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}}))&&(d.push({parentId:i,nextId:e,node:n}),u.add(n.id)))};this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const p of this.movedSet){var t=index.parentNode(p);isParentRemoved(this.removesSubTreeCache,p,this.mirror)&&!this.movedSet.has(t)&&!this.addedSet.has(t)||r(p)}for(const h of this.addedSet)!isAncestorInSet(this.droppedSet,h)&&!isParentRemoved(this.removesSubTreeCache,h,this.mirror)||isAncestorInSet(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(index.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(index.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=index.parentNode(a);if(a&&a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){a=index.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=index.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))}}),__publicField(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t)),t.attributes.value=Array.from(index.childNodes(e),e=>index.textContent(e)||"").join("")}),__publicField(this,"processMutation",i=>{if(!isIgnored(i.target,this.mirror,this.slimDOMOptions))switch(i.type){case"characterData":var r=index.textContent(i.target);isBlocked(i.target,this.blockClass,this.blockSelector,!1)||r===i.oldValue||this.texts.push({value:needMaskingText(i.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,closestElementOfNode(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=getInputType(a),o=needMaskingText(i.target,this.maskTextClass,this.maskTextSelector,!0),t=maskInputValue({element:a,maskInputOptions:this.maskInputOptions,tagName:a.tagName,type:r,value:t,maskInputFn:this.maskInputFn,needsMask:o})),isBlocked(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"),!ignoreAttribute(a.tagName,e))if(n.attributes[e]=transformAttribute(this.doc,toLowerCase(a.tagName),toLowerCase(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":isBlocked(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=isShadowRoot(i.target)?this.mirror.getId(index.host(i.target)):this.mirror.getId(i.target);isBlocked(i.target,this.blockClass,this.blockSelector,!1)||isIgnored(e,this.mirror,this.slimDOMOptions)||!isSerialized(e,this.mirror)||(this.addedSet.has(e)?(deepDelete(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(i.target)&&-1===t||isAncestorRemoved(i.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[moveKey(t,n)]?deepDelete(this.movedSet,e):(this.removes.push({parentId:n,id:t,isShadow:!(!isShadowRoot(i.target)||!isNativeShadowDom(i.target))||void 0}),processRemoves(e,this.removesSubTreeCache))),this.mapRemoves.push(e))})):this.genTextAreaValueMutation(i.target))}}),__publicField(this,"genAdds",(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(isIgnored(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[moveKey(this.mirror.getId(t),e)]=!0)}else this.addedSet.add(t),this.droppedSet["delete"](t);isBlocked(t,this.blockClass,this.blockSelector,!1)||(index.childNodes(t).forEach(e=>this.genAdds(e)),hasShadowRoot(t)&&index.childNodes(index.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 deepDelete(t,e){t["delete"](e),index.childNodes(e).forEach(e=>deepDelete(t,e))}function processRemoves(e,t){const n=[e];for(;n.length;){var i=n.pop();t.has(i)||(t.add(i),index.childNodes(i).forEach(e=>n.push(e)))}}function isParentRemoved(e,t,n){return 0!==e.size&&_isParentRemoved(e,t)}function _isParentRemoved(e,t,n){t=index.parentNode(t);return!!t&&e.has(t)}function isAncestorInSet(e,t){return 0!==e.size&&_isAncestorInSet(e,t)}function _isAncestorInSet(e,t){t=index.parentNode(t);return!!t&&(!!e.has(t)||_isAncestorInSet(e,t))}let errorHandler;function registerErrorHandler(e){errorHandler=e}function unregisterErrorHandler(){errorHandler=void 0}const callbackWrapper=n=>{return errorHandler?(...e)=>{try{return n(...e)}catch(t){if(!errorHandler||!0!==errorHandler(t))throw t}}:n},mutationBuffers=[];function getEventTarget(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function initMutationObserver(e,t){var n=new MutationBuffer,e=(mutationBuffers.push(n),n.init(e),new(mutationObserverCtor())(callbackWrapper(n.processMutations.bind(n))));return e.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function initMoveObserver({mousemoveCb: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=throttle(callbackWrapper(e=>{const t=Date.now()-a;n(o.map(e=>(e.timeOffset-=t,e)),e),o=[],a=null}),e);e=callbackWrapper(throttle(callbackWrapper(e=>{var t=getEventTarget(e),{clientX:n,clientY:i}=legacy_isTouchEvent(e)?e.changedTouches[0]:e;a=a||nowTimestamp(),o.push({x:n,y:i,id:r.getId(t),timeOffset:nowTimestamp()-a}),s("undefined"!=typeof DragEvent&&e instanceof DragEvent?IncrementalSource.Drag:e instanceof MouseEvent?IncrementalSource.MouseMove:IncrementalSource.TouchMove)}),i,{trailing:!1}));const d=[on("mousemove",e,t),on("touchmove",e,t),on("drag",e,t)];return callbackWrapper(()=>{d.forEach(e=>e())})}function initMouseInteractionObserver({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(MouseInteractions).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==t[e]).forEach(e=>{let t=toLowerCase(e);o=e;var o,n=n=>{var i=getEventTarget(n);if(!isBlocked(i,d,u,!0)){let e=null,t=o;if("pointerType"in n){switch(n.pointerType){case"mouse":e=PointerTypes.Mouse;break;case"touch":e=PointerTypes.Touch;break;case"pen":e=PointerTypes.Pen}e===PointerTypes.Touch?MouseInteractions[o]===MouseInteractions.MouseDown?t="TouchStart":MouseInteractions[o]===MouseInteractions.MouseUp&&(t="TouchEnd"):(e,PointerTypes.Pen)}else legacy_isTouchEvent(n)&&(e=PointerTypes.Touch);null!==e?(c=e,(t.startsWith("Touch")&&e===PointerTypes.Touch||t.startsWith("Mouse")&&e===PointerTypes.Mouse)&&(e=null)):MouseInteractions[o]===MouseInteractions.Click&&(e=c,c=null);var r,n=legacy_isTouchEvent(n)?n.changedTouches[0]:n;n&&(i=s.getId(i),{clientX:n,clientY:r}=n,callbackWrapper(a)({type:MouseInteractions[t],id:i,x:n,y:r,...null!==e&&{pointerType:e}}))}};if(window.PointerEvent)switch(MouseInteractions[e]){case MouseInteractions.MouseDown:case MouseInteractions.MouseUp:t=t.replace("mouse","pointer");break;case MouseInteractions.TouchStart:case MouseInteractions.TouchEnd:return}r.push(on(t,n,i))}),callbackWrapper(()=>{r.forEach(e=>e())})}function initScrollObserver({scrollCb:i,doc:r,mirror:o,blockClass:a,blockSelector:s,sampling:e}){return on("scroll",callbackWrapper(throttle(callbackWrapper(e=>{var t,n,e=getEventTarget(e);e&&!isBlocked(e,a,s,!0)&&(t=o.getId(e),e===r&&r.defaultView?(n=getWindowScroll(r.defaultView),i({id:t,x:n.left,y:n.top})):i({id:t,x:e.scrollLeft,y:e.scrollTop}))}),e.scroll||100)),r)}function initViewportResizeObserver({viewportResizeCb:n},{win:e}){let i=-1,r=-1;return on("resize",callbackWrapper(throttle(callbackWrapper(()=>{var e=getWindowHeight(),t=getWindowWidth();i===e&&r===t||(n({width:Number(t),height:Number(e)}),i=e,r=t)}),200)),e)}const INPUT_TAGS=["INPUT","TEXTAREA","SELECT"],lastInputValueMap=new WeakMap;function initInputObserver({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=getEventTarget(t);var t=t.isTrusted,r=i&&i.tagName;if((i=i&&"OPTION"===r?index.parentElement(i):i)&&r&&!(INPUT_TAGS.indexOf(r)<0)&&!isBlocked(i,e,n,!0)&&!(i.classList.contains(d)||u&&i.matches(u))){let e=i.value,n=!1;var o=getInputType(i)||"",a=needMaskingText(i,h,f,!0),r=("radio"===o||"checkbox"===o?n=i.checked:(c[r.toLowerCase()]||c[o]||a)&&(e=maskInputValue({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=lastInputValueMap.get(e);n&&n.text===t.text&&n.isChecked===t.isChecked||(lastInputValueMap.set(e,t),n=r.getId(e),callbackWrapper(i)({...t,id:n}))}var a;const m=("last"===t.input?["change"]:["input","change"]).map(e=>on(e,callbackWrapper(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=>hookSetter(e[0],e[1],{set(){callbackWrapper(o)({target:this,isTrusted:!1})}},!1,v))),callbackWrapper(()=>{m.forEach(e=>e())})):()=>{m.forEach(e=>e())}}function getNestedCSSRulePositions(e){var t,n;return e=e,t=[],hasNestedCSSRule("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||hasNestedCSSRule("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||hasNestedCSSRule("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||hasNestedCSSRule("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?(n=Array.from(e.parentRule.cssRules).indexOf(e),t.unshift(n)):e.parentStyleSheet&&(n=Array.from(e.parentStyleSheet.cssRules).indexOf(e),t.unshift(n)),t}function getIdAndStyleId(e,t,n){let i,r;return e?(e.ownerNode?i=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:i}):{}}function initStyleSheetObserver({styleSheetRuleCb: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:callbackWrapper((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=getIdAndStyleId(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:callbackWrapper((e,t,n)=>{var[i]=n,{id:r,styleId:o}=getIdAndStyleId(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:callbackWrapper((e,t,n)=>{var[i]=n,{id:r,styleId:o}=getIdAndStyleId(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:callbackWrapper((e,t,n)=>{var[i]=n,{id:r,styleId:o}=getIdAndStyleId(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=(canMonkeyPatchNestedCSSRule("CSSGroupingRule")?o.CSSGroupingRule=i.CSSGroupingRule:(canMonkeyPatchNestedCSSRule("CSSMediaRule")&&(o.CSSMediaRule=i.CSSMediaRule),canMonkeyPatchNestedCSSRule("CSSConditionRule")&&(o.CSSConditionRule=i.CSSConditionRule),canMonkeyPatchNestedCSSRule("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:callbackWrapper((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=getIdAndStyleId(t.parentStyleSheet,d,u.styleMirror);return(o&&-1!==o||a&&-1!==a)&&s({id:o,styleId:a,adds:[{rule:i,index:[...getNestedCSSRulePositions(t),r||0]}]}),e.apply(t,n)})}),t.prototype.deleteRule=new Proxy(a[e].deleteRule,{apply:callbackWrapper((e,t,n)=>{var[i]=n,{id:r,styleId:o}=getIdAndStyleId(t.parentStyleSheet,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,removes:[{index:[...getNestedCSSRulePositions(t),i]}]}),e.apply(t,n)})})}),callbackWrapper(()=>{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})})}function initAdoptedStyleSheetObserver({mirror:e,stylesheetManager:i},t){let r=null;r="#document"===t.nodeName?e.getId(t):e.getId(index.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}}),callbackWrapper(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function initStyleDeclarationObserver({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:callbackWrapper((e,t,n)=>{var i,r,[o,a,s]=n;return c.has(o)?p.apply(t,[o,a,s]):({id:i,styleId:r}=getIdAndStyleId(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:getNestedCSSRulePositions(t.parentRule)}),e.apply(t,n))})}),e.CSSStyleDeclaration.prototype.removeProperty);return e.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:callbackWrapper((e,t,n)=>{var i,r,[o]=n;return c.has(o)?a.apply(t,[o]):({id:i,styleId:r}=getIdAndStyleId(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:getNestedCSSRulePositions(t.parentRule)}),e.apply(t,n))})}),callbackWrapper(()=>{e.CSSStyleDeclaration.prototype.setProperty=p,e.CSSStyleDeclaration.prototype.removeProperty=a})}function initMediaInteractionObserver({mediaInteractionCb:s,blockClass:d,blockSelector:u,mirror:c,sampling:e,doc:t}){var n=callbackWrapper(a=>throttle(callbackWrapper(e=>{var t,n,i,r,o,e=getEventTarget(e);e&&!isBlocked(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=[on("play",n(MediaInteractions.Play),t),on("pause",n(MediaInteractions.Pause),t),on("seeked",n(MediaInteractions.Seeked),t),on("volumechange",n(MediaInteractions.VolumeChange),t),on("ratechange",n(MediaInteractions.RateChange),t)];return callbackWrapper(()=>{i.forEach(e=>e())})}function initFontObserver({fontCb:n,doc:e}){const t=e.defaultView;if(!t)return()=>{};const i=[],r=new WeakMap,o=t.FontFace;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=patch(e.fonts,"add",function(e){return function(t){return nativeSetTimeout(callbackWrapper(()=>{var e=r.get(t);e&&(n(e),r["delete"](t))}),0),e.apply(this,[t])}});return i.push(()=>{t.FontFace=o}),i.push(e),callbackWrapper(()=>{i.forEach(e=>e())})}function initSelectionObserver(e){const{doc:d,mirror:u,blockClass:c,blockSelector:l,selectionCb:p}=e;let h=!0;e=callbackWrapper(()=>{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);isBlocked(r,c,l,!0)||isBlocked(a,c,l,!0)||n.push({start:u.getId(r),startOffset:o,end:u.getId(a),endOffset:s})}p({ranges:n})}});return e(),on("selectionchange",e)}function initCustomElementObserver({doc:e,customElementCb:o}){e=e.defaultView;return e&&e.customElements?patch(e.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])}}):()=>{}}function mergeHooks(e,t){const{mutationCb:n,mousemoveCb:i,mouseInteractionCb:r,scrollCb:o,viewportResizeCb:a,inputCb:s,mediaInteractionCb:d,styleSheetRuleCb:u,styleDeclarationCb:c,canvasMutationCb:l,fontCb:p,selectionCb:h,customElementCb:f}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),n(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),i(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),r(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),o(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),a(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),s(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),d(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),u(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),c(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),l(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),p(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),h(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),f(...e)}}function initObservers(e,t={}){var n=e.doc.defaultView;if(!n)return()=>{};mergeHooks(e,t);let i;e.recordDOM&&(i=initMutationObserver(e,e.doc));const r=initMoveObserver(e),o=initMouseInteractionObserver(e),a=initScrollObserver(e),s=initViewportResizeObserver(e,{win:n}),d=initInputObserver(e),u=initMediaInteractionObserver(e);let c=()=>{},l=()=>{},p=()=>{},h=()=>{};e.recordDOM&&(c=initStyleSheetObserver(e,{win:n}),l=initAdoptedStyleSheetObserver(e,e.doc),p=initStyleDeclarationObserver(e,{win:n}),e.collectFonts)&&(h=initFontObserver(e));const f=initSelectionObserver(e),g=initCustomElementObserver(e),m=[];for(const v of e.plugins)m.push(v.observer(v.callback,n,v.options));return callbackWrapper(()=>{mutationBuffers.forEach(e=>e.reset()),null!=i&&i.disconnect(),r(),o(),a(),s(),d(),u(),c(),l(),p(),h(),f(),g(),m.forEach(e=>e())})}function hasNestedCSSRule(e){return"undefined"!=typeof window[e]}function canMonkeyPatchNestedCSSRule(e){return Boolean("undefined"!=typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class CrossOriginIframeMirror{constructor(e){__publicField(this,"iframeIdToRemoteIdMap",new WeakMap),__publicField(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,n,i){n=n||this.getIdToRemoteIdMap(e),i=i||this.getRemoteIdToIdMap(e);let r=n.get(t);return r||(r=this.generateIdFn(),n.set(t,r),i.set(r,t)),r}getIds(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 IframeManager{constructor(e){__publicField(this,"iframes",new WeakMap),__publicField(this,"crossOriginIframeMap",new WeakMap),__publicField(this,"crossOriginIframeMirror",new CrossOriginIframeMirror(genId)),__publicField(this,"crossOriginIframeStyleMirror"),__publicField(this,"crossOriginIframeRootIdMap",new WeakMap),__publicField(this,"mirror"),__publicField(this,"mutationCb"),__publicField(this,"wrappedEmit"),__publicField(this,"takeFullSnapshot"),__publicField(this,"loadListener"),__publicField(this,"stylesheetManager"),__publicField(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.takeFullSnapshot=e.takeFullSnapshot,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new CrossOriginIframeMirror(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}setTakeFullSnapshot(e){this.takeFullSnapshot=e}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e),!e.contentDocument&&e.contentWindow&&e.contentWindow.postMessage({type:"rrweb",origin:window.location.origin,snapshot:!0},"*")}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&null!=(t=e.contentWindow)&&t.addEventListener("message",this.handleMessage.bind(this)),null!=(t=this.loadListener)&&t.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&0<e.contentDocument.adoptedStyleSheets.length&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){var t,n=e;"rrweb"===n.data.type&&n.origin===n.data.origin&&(t=e.source)&&(t==window.parent&&window!=window.parent&&e.data.snapshot?this.takeFullSnapshot():(t=this.crossOriginIframeMap.get(e.source))&&(e=this.transformCrossOriginEvent(t,n.data.event))&&this.wrappedEmit(e,n.data.isCheckout))}transformCrossOriginEvent(n,e){var t;switch(e.type){case EventType.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:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Mutation,adds:[{parentId:this.mirror.getId(n),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case EventType.Meta:case EventType.Load:case EventType.DomContentLoaded:return!1;case EventType.Plugin:return e;case EventType.Custom:return this.replaceIds(e.data.payload,n,["id","parentId","previousId","nextId"]),e;case EventType.IncrementalSnapshot:switch(e.data.source){case IncrementalSource.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 IncrementalSource.Drag:case IncrementalSource.TouchMove:case IncrementalSource.MouseMove:return e.data.positions.forEach(e=>{this.replaceIds(e,n,["id"])}),e;case IncrementalSource.ViewportResize:return!1;case IncrementalSource.MediaInteraction:case IncrementalSource.MouseInteraction:case IncrementalSource.Scroll:case IncrementalSource.CanvasMutation:case IncrementalSource.Input:return this.replaceIds(e.data,n,["id"]),e;case IncrementalSource.StyleSheetRule:case IncrementalSource.StyleDeclaration:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleId"]),e;case IncrementalSource.Font:return e;case IncrementalSource.Selection:return e.data.ranges.forEach(e=>{this.replaceIds(e,n,["start","end"])}),e;case IncrementalSource.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===NodeType$2.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class ShadowDomManager{constructor(e){__publicField(this,"shadowDoms",new WeakSet),__publicField(this,"mutationCb"),__publicField(this,"scrollCb"),__publicField(this,"bypassOptions"),__publicField(this,"mirror"),__publicField(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(isNativeShadowDom(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);const n=initMutationObserver({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(initScrollObserver({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),nativeSetTimeout(()=>{e.adoptedStyleSheets&&0<e.adoptedStyleSheets.length&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(index.host(e))),this.restoreHandlers.push(initAdoptedStyleSheetObserver({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,i){const r=this;this.restoreHandlers.push(patch(e.prototype,"attachShadow",function(n){return function(e){var e=n.call(this,e),t=index.shadowRoot(this);return t&&inDom(this)&&r.addShadowRoot(t,i),e}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup="undefined"==typeof Uint8Array?[]:new Uint8Array(256),i$1=0;i$1<chars.length;i$1++)lookup[chars.charCodeAt(i$1)]=i$1;var n,encode=function(e){for(var t=new Uint8Array(e),n=t.length,i="",r=0;r<n;r+=3)i=(i=(i=(i+=chars[t[r]>>2])+chars[(3&t[r])<<4|t[r+1]>>4])+chars[(15&t[r+1])<<2|t[r+2]>>6])+chars[63&t[r+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i};const canvasVarMap=new Map;function variableListFor$1(e,t){let n=canvasVarMap.get(e);return n||(n=new Map,canvasVarMap.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const saveWebGLVar=(t,n,i)=>{if(t&&(isInstanceOfWebGLObject(t,n)||"object"==typeof t)){n=variableListFor$1(i,t.constructor.name);let e=n.indexOf(t);return-1===e&&(e=n.length,n.push(t)),e}};function serializeArg(e,t,n){var i;return e instanceof Array?e.map(e=>serializeArg(e,t,n)):null===e?e:e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray?{rr_type:e.constructor.name,args:[Object.values(e)]}:e instanceof ArrayBuffer?{rr_type:e.constructor.name,base64:encode(e)}:e instanceof DataView?{rr_type:e.constructor.name,args:[serializeArg(e.buffer,t,n),e.byteOffset,e.byteLength]}:e instanceof HTMLImageElement?(i=e["src"],{rr_type:e.constructor.name,src:i}):e instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:e.toDataURL()}:e instanceof ImageData?{rr_type:e.constructor.name,args:[serializeArg(e.data,t,n),e.width,e.height]}:isInstanceOfWebGLObject(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:saveWebGLVar(e,t,n)}:e}const serializeArgs=(e,t,n)=>e.map(e=>serializeArg(e,t,n)),isInstanceOfWebGLObject=(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 initCanvas2DMutationObserver(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=patch(i.CanvasRenderingContext2D.prototype,s,function(e){return function(...t){return isBlocked(this.canvas,r,o,!0)||nativeSetTimeout(()=>{var e=serializeArgs(t,i,this);n(this.canvas,{type:CanvasContext["2D"],property:s,args:e})},0),e.apply(this,t)}}),e.push(t))}catch{var a=hookSetter(i.CanvasRenderingContext2D.prototype,s,{set(e){n(this.canvas,{type:CanvasContext["2D"],property:s,args:[e],setter:!0})}});e.push(a)}return()=>{e.forEach(e=>e())}}function getNormalizedContextName(e){return"experimental-webgl"===e?"webgl":e}function initCanvasContextObserver(e,r,o,a){const t=[];try{var n=patch(e.HTMLCanvasElement.prototype,"getContext",function(i){return function(e,...t){var n;return isBlocked(this,r,o,!0)||(n=getNormalizedContextName(e),"__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 patchGLPrototype(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=patch(e,u,function(n){return function(...e){var t=n.apply(this,e);return saveWebGLVar(t,s,this),"tagName"in this.canvas&&!isBlocked(this.canvas,o,a,!0)&&(e=serializeArgs(e,s,this),e={type:i,property:u,args:e},r(this.canvas,e)),t}}),n.push(t))}catch{var d=hookSetter(e,u,{set(e){r(this.canvas,{type:i,property:u,args:[e],setter:!0})}});n.push(d)}return n}function initCanvasWebGLMutationObserver(e,t,n,i){const r=[];return r.push(...patchGLPrototype(t.WebGLRenderingContext.prototype,CanvasContext.WebGL,e,n,i,t)),"undefined"!=typeof t.WebGL2RenderingContext&&r.push(...patchGLPrototype(t.WebGL2RenderingContext.prototype,CanvasContext.WebGL2,e,n,i,t)),()=>{r.forEach(e=>e())}}const encodedJs="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",decodeBase64$1=e=>Uint8Array.from(atob(e),e=>e.charCodeAt(0)),blob="undefined"!=typeof window&&window.Blob&&new Blob([decodeBase64$1(encodedJs)],{type:"text/javascript;charset=utf-8"});function WorkerWrapper(e){let t;try{var n;if(t=blob&&(window.URL||window.webkitURL).createObjectURL(blob))return(n=new Worker(t,{name:null==e?void 0:e.name})).addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),n;throw""}catch(i){return new Worker("data:text/javascript;base64,"+encodedJs,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}class CanvasManager{constructor(e){__publicField(this,"pendingCanvasMutations",new Map),__publicField(this,"rafStamps",{latestId:0,invokeId:null}),__publicField(this,"mirror"),__publicField(this,"mutationCb"),__publicField(this,"resetObservers"),__publicField(this,"frozen",!1),__publicField(this,"locked",!1),__publicField(this,"processMutation",(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)});var{sampling:t="all",win:n,blockClass:i,blockSelector:r,recordCanvas:o,dataURLOptions:a}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&"all"===t&&this.initCanvasMutationObserver(n,i,r),o&&"number"==typeof t&&this.initCanvasFPSObserver(t,n,i,r,{dataURLOptions:a})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,n,i,r,o){const t=initCanvasContextObserver(n,i,r,!0),a=new Map,s=new WorkerWrapper,d=(s.onmessage=e=>{var t,n,i,r=e.data["id"];a.set(r,!1),"base64"in e.data&&({base64:e,type:t,width:n,height:i}=e.data,this.mutationCb({id:r,type:CanvasContext["2D"],commands:[{property:"clearRect",args:[0,0,n,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:e}],type:t}]},0,0]}]}))},1e3/e);let u=0,c;const l=()=>{const t=[];return n.document.querySelectorAll("canvas").forEach(e=>{isBlocked(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=initCanvasContextObserver(e,t,n,!1),r=initCanvas2DMutationObserver(this.processMutation.bind(this),e,t,n),o=initCanvasWebGLMutationObserver(this.processMutation.bind(this),e,t,n);this.resetObservers=()=>{i(),r(),o()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){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 StylesheetManager{constructor(e){__publicField(this,"trackedLinkElements",new WeakSet),__publicField(this,"mutationCb"),__publicField(this,"adoptedStyleSheetCb"),__publicField(this,"styleMirror",new StyleSheetMirror),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0!==e.length){var n={id:t,styleIds:[]},i=[];for(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:stringifyRule(o.rules[e],o.href),index:e});i.push({styleId:e,rules:Array.from(o.rules||CSSRule,(e,t)=>({rule:stringifyRule(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 ProcessedNodeManager{constructor(){__publicField(this,"nodeMap",new WeakMap),__publicField(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 wrappedEmit,takeFullSnapshot$1=()=>{},canvasManager,recording=!1;try{if(2!==Array.from([1],e=>2*e)[0]){const OPb=document.createElement("iframe");document.body.appendChild(OPb),Array.from=(null==(_a=OPb.contentWindow)?void 0:_a.Array.from)||Array.from,document.body.removeChild(OPb)}}catch(err){console.debug("Unable to override Array.from",err)}const mirror=createMirror$2();function record(e={}){const{emit:i,checkoutEveryNms:r,checkoutEveryNth:o,blockClass:n="rr-block",blockSelector:a=null,ignoreClass:P="rr-ignore",ignoreSelector:G=null,maskTextClass:s="rr-mask",maskTextSelector:d=null,inlineStylesheet:u=!0,maskAllInputs:D,maskInputOptions:t,slimDOMOptions:c,maskInputFn:l,maskTextFn:p,hooks:B,packFn:h,sampling:f={},dataURLOptions:g={},mousemoveWait:m,recordDOM:W=!0,recordCanvas:v=!1,recordCrossOriginIframes:$=!1,recordAfter:U="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:j=!1,collectFonts:z=!1,inlineImages:y=!1,plugins:b,keepIframeSrcFn:I=()=>!1,ignoreCSSAttributes:Z=new Set([]),errorHandler:V}=e,w=(registerErrorHandler(V),!$||window.parent===window);let C=!1;if(!w)try{window.parent.document&&(C=!1)}catch(J){C=!0}if(w&&!i)throw new Error("emit function is required");if(!w&&!C)return()=>{};void 0!==m&&void 0===f.mousemove&&(f.mousemove=m),mirror.reset();const S=!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},A=!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||{};polyfill$1();let Y,E=0;const H=e=>{for(const t of b||[])t.eventProcessor&&(e=t.eventProcessor(e));return e=h&&!C?h(e):e},T=(wrappedEmit=(e,t)=>{var n;e.timestamp=nowTimestamp(),null==(n=mutationBuffers[0])||!n.isFrozen()||e.type===EventType.FullSnapshot||e.type===EventType.IncrementalSnapshot&&e.data.source===IncrementalSource.Mutation||mutationBuffers.forEach(e=>e.unfreeze()),w?null!=i&&i(H(e),t):C&&(n={type:"rrweb",event:H(e),origin:window.location.origin,isCheckout:t},window.parent.postMessage(n,"*")),e.type===EventType.FullSnapshot?(Y=e,E=0):e.type!==EventType.IncrementalSnapshot||e.data.source===IncrementalSource.Mutation&&e.data.isAttachIframe||(E++,t=o&&E>=o,n=r&&e.timestamp-Y.timestamp>r,(t||n)&&takeFullSnapshot$1(!0))},e=>{wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Mutation,...e}})}),K=e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Scroll,...e}}),X=e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.CanvasMutation,...e}});const _=new StylesheetManager({mutationCb:T,adoptedStyleSheetCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.AdoptedStyleSheet,...e}})}),x=new IframeManager({mirror:mirror,mutationCb:T,stylesheetManager:_,recordCrossOriginIframes:$,wrappedEmit:wrappedEmit,takeFullSnapshot:takeFullSnapshot$1});for(const N of b||[])N.getMirror&&N.getMirror({nodeMirror:mirror,crossOriginIframeMirror:x.crossOriginIframeMirror,crossOriginIframeStyleMirror:x.crossOriginIframeStyleMirror});const R=new ProcessedNodeManager,k=(canvasManager=new CanvasManager({recordCanvas:v,mutationCb:X,win:window,blockClass:n,blockSelector:a,mirror:mirror,sampling:f.canvas,dataURLOptions:g}),new ShadowDomManager({mutationCb:T,scrollCb:K,bypassOptions:{blockClass:n,blockSelector:a,maskTextClass:s,maskTextSelector:d,inlineStylesheet:u,maskInputOptions:S,dataURLOptions:g,maskTextFn:p,maskInputFn:l,recordCanvas:v,inlineImages:y,sampling:f,slimDOMOptions:A,iframeManager:x,stylesheetManager:_,canvasManager:canvasManager,keepIframeSrcFn:I,processedNodeManager:R},mirror:mirror}));takeFullSnapshot$1=(e=!1)=>{if(W){wrappedEmit({type:EventType.Meta,data:{href:window.location.href,width:getWindowWidth(),height:getWindowHeight()}},e),_.reset(),k.init(),mutationBuffers.forEach(e=>e.lock());var t=snapshot(document,{mirror:mirror,blockClass:n,blockSelector:a,maskTextClass:s,maskTextSelector:d,inlineStylesheet:u,maskAllInputs:S,maskTextFn:p,maskInputFn:l,slimDOM:A,dataURLOptions:g,recordCanvas:v,inlineImages:y,onSerialize:e=>{isSerializedIframe(e,mirror)&&x.addIframe(e),isSerializedStylesheet(e,mirror)&&_.trackLinkElement(e),hasShadowRoot(e)&&k.addShadowRoot(index.shadowRoot(e),document)},onIframeLoad:(e,t)=>{x.attachIframe(e,t),k.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{_.attachLinkElement(e,t)},keepIframeSrcFn:I});if(!t)return console.warn("Failed to snapshot the document");wrappedEmit({type:EventType.FullSnapshot,data:{node:t,initialOffset:getWindowScroll(window)}},e),mutationBuffers.forEach(e=>e.unlock()),document.adoptedStyleSheets&&0<document.adoptedStyleSheets.length&&_.adoptStyleSheets(document.adoptedStyleSheets,mirror.getId(document))}},x.setTakeFullSnapshot(takeFullSnapshot$1);try{const M=[],L=e=>{return callbackWrapper(initObservers)({mutationCb:T,mousemoveCb:(e,t)=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.ViewportResize,...e}}),inputCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Input,...e}}),mediaInteractionCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.MediaInteraction,...e}}),styleSheetRuleCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.StyleSheetRule,...e}}),styleDeclarationCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.StyleDeclaration,...e}}),canvasMutationCb:X,fontCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Font,...e}}),selectionCb:e=>{wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Selection,...e}})},customElementCb:e=>{wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.CustomElement,...e}})},blockClass:n,ignoreClass:P,ignoreSelector:G,maskTextClass:s,maskTextSelector:d,maskInputOptions:S,inlineStylesheet:u,sampling:f,recordDOM:W,recordCanvas:v,inlineImages:y,userTriggeredOnInput:j,collectFonts:z,doc:e,maskInputFn:l,maskTextFn:p,keepIframeSrcFn:I,blockSelector:a,slimDOMOptions:A,dataURLOptions:g,mirror:mirror,iframeManager:x,stylesheetManager:_,shadowDomManager:k,processedNodeManager:R,canvasManager:canvasManager,ignoreCSSAttributes:Z,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=>wrappedEmit({type:EventType.Plugin,data:{plugin:t.name,payload:e}})})))||[]},B)},F=(x.addLoadListener(e=>{try{M.push(L(e.contentDocument))}catch(t){console.warn(t)}}),()=>{takeFullSnapshot$1(),M.push(L(document)),recording=!0});return"interactive"===document.readyState||"complete"===document.readyState?F():(M.push(on("DOMContentLoaded",()=>{wrappedEmit({type:EventType.DomContentLoaded,data:{}}),"DOMContentLoaded"===U&&F()})),M.push(on("load",()=>{wrappedEmit({type:EventType.Load,data:{}}),"load"===U&&F()},window))),()=>{M.forEach(e=>e()),R.destroy(),recording=!1,unregisterErrorHandler()}}catch(O){console.warn(O)}}record.addCustomEvent=(e,t)=>{if(!recording)throw new Error("please add custom event after start recording");wrappedEmit({type:EventType.Custom,data:{tag:e,payload:t}})},record.freezePage=()=>{mutationBuffers.forEach(e=>e.freeze())},record.takeFullSnapshot=e=>{if(!recording)throw new Error("please take full snapshot after start recording");takeFullSnapshot$1(e)},record.mirror=mirror,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(n=n||{});var __assign=function(){return(__assign=Object.assign||function __assign(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},SessionRecorderBuffer=function(){function e(e,t){void 0===t&&(t=Infinity),this.data=[],this.sequenceNumber=0,this.interval=e,this.maxCount=t,this.doubledMaxCount=2*t}return e.prototype.isEmpty=function(){return 0===this.data.length},e.prototype.count=function(){return this.data.length},e.prototype.clear=function(){this.data.length=0},e.prototype.clearSequence=function(){this.sequenceNumber=0},e.prototype.push=function(e){this.data.push(e),this.checkRateLimit()},e.prototype.pack=function(e,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,function(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},e.prototype.checkRateLimit=function(){var e=this.data.length;e>=this.doubledMaxCount&&e%this.maxCount==0&&this.data[e-1].timestamp-this.data[e-this.doubledMaxCount].timestamp<=this.interval&&this.onRateLimit&&this.onRateLimit()},e}(),MAX_BACKOFF=6,MAX_FAILURES=100,SendQueue=function(){function e(e,t){void 0===t&&(t=MAX_FAILURES),this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.sendFn=e,this.maxFailures=t}return e.prototype.isEmpty=function(){return this.queue.length<=0},e.prototype.stop=function(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.stopped=!0,clearTimeout(this.timer),delete this.timer},e.prototype.start=function(){this.stopped=!1},e.prototype.push=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.queue).push.apply(e,t),this.next()},e.prototype.next=function(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)},e.prototype.incrementFailure=function(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),t},e.prototype.pass=function(e,t){void 0===t&&(t=!0),this.unloads["delete"](e),this.pending["delete"](e),this.failures.clear();e=this.queue.indexOf(e);0<=e&&this.queue.splice(e,1),!this.stopped&&t&&this.next()},e.prototype.fail=function(e,t){void 0===t&&(t=!0),this.unloads["delete"](e),this.pending["delete"](e);var n=this.incrementFailure(e);!this.stopped&&t&&(n>=this.maxFailures&&(this.onTimeout&&this.onTimeout(),this.pass(e,!1)),this.retryLater(1e3*Math.pow(2,Math.min(n-1,MAX_BACKOFF))))},e.prototype.retryLater=function(e){var t=this;this.timer=setTimeout$1(function(){delete t.timer,t.next()},e)},e.prototype.failed=function(){return 0<this.failures.get(this.queue[0])&&null!=this.timer},e.prototype.send=function(e,t,n){var i=this;return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(function(){return i.pass(e,n)},function(){return i.fail(e,n)})},e.prototype.drain=function(e,t){var n;if(void 0===t&&(t=!0),(n=this.queue).push.apply(n,e),this.failed())return Promise$4.reject();for(var i=[],r=0,o=this.queue;r<o.length;r++){var a=o[r];this.pending.has(a)?this.retryPending&&t&&!this.unloads.has(a)&&(this.incrementFailure(a),i.push(this.send(a,t,!1))):i.push(this.send(a,t,!1))}return Promise$4.all(i)},e}(),RECORDING_CONFIG_WORKERURL$1="recording.workerUrl",MAX_SIZE=1e6,RESOURCE_CACHING$1="resourceCaching",Transport=function(){function e(e,t,n){this.WorkerClass=e,this.pendo=t,this.api=n,this.maxSize=MAX_SIZE,this.isResourceCachingEnabled=this.api.ConfigReader.get(RESOURCE_CACHING$1)}return e.prototype.start=function(e){if(!e.disableWorker&&!this.worker)try{var t;e.workerOverride?this.worker=e.workerOverride:(t=this.api.ConfigReader.get(RECORDING_CONFIG_WORKERURL$1),this.usesSelfHostedWorker=null!=t,this.worker=t?new Worker(t):new this.WorkerClass),this.worker.onmessage=this.pendo._.bind(this._onMessage,this),this.worker.onerror=this.pendo._.bind(this._onError,this)}catch(n){this.worker=null}},e.prototype.stop=function(){this.worker&&(this.worker.terminate(),delete this.worker)},e.prototype.send=function(e,t,n){var i,r=e.url,o=e.payload;if(0<(n=void 0===n?0:n)&&(r="".concat(r,"&rt=").concat(n)),this.worker&&!t&&o)return(i={}).promise=new Promise$4(function(e,t){i.resolve=e,i.reject=t}),this.workerResponse=i,this.worker.postMessage({url:r,payload:o,shouldCacheResources:this.isResourceCachingEnabled}),i.promise;if(!e.body){n=JSON.stringify(o);if(n.length>this.maxSize)throw(o=new Error("maximum recording payload size exceeded")).reason="HEAVY_EVENT",o;e.body=this.pendo.compress(n,"binary"),delete e.payload}return r="".concat(r,"&ct=").concat((new Date).getTime()),this.post(r,{keepalive:t,body:e.body})},e.prototype.post=function(e,t){return t.method="POST",t.keepalive&&this.api.transmit.fetchKeepalive.supported()?this.api.transmit.fetchKeepalive(e,t):t.keepalive&&this.api.transmit.sendBeacon.supported()?this.api.transmit.sendBeacon(e,new Blob([t.body]))?Promise$4.resolve():Promise$4.reject(new Error("sendBeacon failed to send recording data")):this.pendo.ajax.post(e,t.body)},e.prototype._onMessage=function(e){e.data&&e.data.type?this.onWorkerMessage(e.data):(e.data&&e.data.error&&((e.data.status&&e.data.status<500||null==e.data.sequence)&&this.api.log.critical("Failed to send recording data from web worker",{error:e.data.error}),this.workerResponse)&&(this.workerResponse.reject(),this.workerResponse=null),this.workerResponse&&(this.workerResponse.resolve(),this.workerResponse=null))},e.prototype._onError=function(){this.onError&&this.onError()},e}(),ELEMENT_NODE=1,INPUT_MASK="*".repeat(10);function isElementNode(e){return!!e&&e.nodeType===ELEMENT_NODE}function distanceToMatch(e,t,n,i){return void 0===n&&(n=Infinity),void 0===i&&(i=0),!isElementNode(e)||n<i?-1:e.matches(t)?i:distanceToMatch(e.parentNode,t,n,i+1)}function shouldMask(e,t){var n=t.maskAllText,i=t.maskTextSelector,t=t.unmaskTextSelector;try{var r=isElementNode(e)?e:e.parentElement;if(null===r)return!1;var o=-1,a=-1;if(n){if((a=distanceToMatch(r,t))<0)return!0;o=distanceToMatch(r,i,0<=a?a:Infinity)}else{if((o=distanceToMatch(r,i))<0)return!1;a=distanceToMatch(r,t,0<=o?o:Infinity)}return 0<=o?!(0<=a)||o<=a:!(0<=a||!n)}catch(s){}return!!n}function shouldMaskInput(e,t){if(t&&isElementNode(e)){var n=(e.tagName||"").toLowerCase(),e=(e.type||"").toLowerCase();if(t[n]||t[e])return!0}return!1}function maskInput(e,t,n){return shouldMaskInput(n,e.maskInputOptions)||shouldMask(n,e)?t?INPUT_MASK:"":t}function maskText(e,t,n){return shouldMask(n,e)?t?t.replace(/[\S]/g,"*"):"":t}function SessionRecorder(e,t){this.record=e,this.lastKeyFrameTime=0,this.eventsSinceLastKeyFrame=0,this.currentRecordingSize=0,this.WorkerClass=t}SessionRecorder.FULL_SNAPSHOT=2,SessionRecorder.META=4,SessionRecorder.INCREMENTAL_SNAPSHOT=3,SessionRecorder.INCREMENTAL_SOURCE_MUTATION=0,SessionRecorder.INCREMENTAL_SOURCE_INPUT=5,SessionRecorder.SEND_INTERVAL=5e3,SessionRecorder.MAX_SEND_COUNT=2e4;var RECORDING_CONFIG="recording",RECORDING_CONFIG_ENABLED="recording.enabled",RECORDING_CONFIG_AUTO_START="recording.autoStart",RECORDING_CONFIG_WORKERURL="recording.workerUrl",RECORDING_CONFIG_ON_RECORDING_START="recording.onRecordingStart",RECORDING_CONFIG_ON_RECORDING_STOP="recording.onRecordingStop",RECORDING_CONFIG_WORKER_OVERRIDE="recording.workerOverride",RESOURCE_CACHING="resourceCaching",ONE_DAY_IN_MILLISECONDS=864e5,THIRTY_MINUTES=18e5,ONE_HUNDRED_MB_IN_BYTES=104857600,SESSION_RECORDING_ID="pendo_srId",SESSION_RECORDING_LAST_USER_INTERACTION_EVENT="pendo_srLastUserInteractionEvent";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=0,n=Object.getOwnPropertyNames(e.constructor.prototype);t<n.length;t++){var i=n[t];"constructor"!==i&&(e[i]=wrapMethodWithCatch(e[i]))}return e}function decodeBase64(e,t){var n=atob(e);if(t){for(var i=new Uint8Array(n.length),r=0,o=n.length;r<o;++r)i[r]=n.charCodeAt(r);return new TextDecoder("utf-16le").decode(new Uint16Array(i.buffer))}return n}function createURL(e,t,n){t=t===undefined?null:t,e=decodeBase64(e,n!==undefined&&n),n=e.indexOf("\n",10)+1,n=e.substring(n)+(t?"//# sourceMappingURL="+t:""),e=new Blob([n],{type:"application/javascript"});return URL.createObjectURL(e)}function createBase64WorkerFactory(t,n,i){var r;return function WorkerFactory(e){return r=r||createURL(t,n,i),new Worker(r,e)}}SessionRecorder.prototype.addConfigOptions=function(){var e=this.api.ConfigReader;e.addOption(RECORDING_CONFIG,[e.sources.PENDO_CONFIG_SRC],{}),e.addOption(RECORDING_CONFIG_AUTO_START,[e.sources.SNIPPET_SRC],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)},SessionRecorder.prototype.name="Replay",SessionRecorder.prototype.initialize=function(e,t){this.pendo=e,this.api=t;var n=this.pendo._.bind,i=this.api.ConfigReader,r=(this.buffer=new SessionRecorderBuffer(SessionRecorder.SEND_INTERVAL,SessionRecorder.MAX_SEND_COUNT),this.buffer.onRateLimit=n(this.rateLimitExceeded,this),this.transport=new Transport(this.WorkerClass,e,t),this.transport.onError=n(this.sendFailure,this,"WORKER_ERROR"),this.transport.onWorkerMessage=n(this.onWorkerMessage,this),this.sendQueue=new SendQueue(n(this.transport.send,this.transport)),this.sendQueue.onTimeout=n(this.sendFailure,this,"SEND_TIMEOUT"),this.isNewSession=!1,this.addConfigOptions(),this.config=i.get(RECORDING_CONFIG),this.onRecordingStart=e._.isFunction(i.get(RECORDING_CONFIG_ON_RECORDING_START))?i.get(RECORDING_CONFIG_ON_RECORDING_START):function(){},this.onRecordingStop=e._.isFunction(i.get(RECORDING_CONFIG_ON_RECORDING_STOP))?i.get(RECORDING_CONFIG_ON_RECORDING_STOP):function(){},!1),o=i.get(RECORDING_CONFIG_ENABLED);e._.isBoolean(o)?(r=o)||this.api.log.info("Session Replay disabled via the snippet config"):r=this.config.enabled,r&&(i.get("excludeNonGuideAnalytics")?this.api.log.info("Session Replay is disabled because excludeNonGuideAnalytics is enabled"):(o=this.sessionIdKey="".concat(SESSION_RECORDING_ID,".").concat(e.apiKey),e.recording={start:n(this.start,this),stop:n(this.stop,this)},this.subscriptions=[t.attachEvent(t.Events,"appHidden",n(this.handleHidden,this)),t.attachEvent(t.Events,"appUnloaded",n(this.handleUnload,this)),t.attachEvent(t.Events,"identify",n(this.changeIdentity,this)),t.attachEvent(t.Events,"metadata",n(this.changeMetadata,this)),t.attachEvent(t.Events,"eventCaptured",n(this.addRecordingId,this)),t.attachEvent(t.Events,"transmit:locked",n(this.stop,this)),t.attachEvent(t.Events,"transmit:unlocked",n(this._start,this)),t.attachEvent(t.frames.getChannel(),"message",n(this._frameMessage,this)),t.attachEvent(t.Events,"tabIdChanged:self",n(this.handleTabIdChange,this))],t.store.getters["frames/isReady"]()?this.ready():this.subscriptions.push(t.attachEvent(t.Events,"ready",n(this.ready,this))),t.agentStorage.registry.addSession(o),t.agentStorage.registry.addSession(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)))},SessionRecorder.prototype.teardown=function(){delete this.pendo.recording,delete this.allowStart,this.pendo._.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0,this.stop(),this.transport.stop()},SessionRecorder.prototype.ready=function(){!1!==this.api.ConfigReader.get(RECORDING_CONFIG_AUTO_START)&&this.start()},SessionRecorder.prototype.changeIdentity=function(e){var t=this;this.allowStart&&(clearTimeout(this._changeIdentityTimer),this.isRecording()&&this.stop(),this.visitorId=e.data[0].visitor_id,this.accountId=e.data[0].account_id,this._changeIdentityTimer=setTimeout$1(function(){t._start()},500))},SessionRecorder.prototype.changeMetadata=function(e){var t=this,e=e.data[0],n=e.hashChanged,e=e.options;if(this.allowStart&&n)return clearTimeout(this._changeIdentityTimer),this.visitorId=e.visitor.id,this.accountId=e.account.id,this.fetchVisitorConfig().then(function(e){e&&e.enable||!t.isRecording()?e&&e.enable&&!t.isRecording()&&t._startRecordingForVisitor(e):t.stop()})["catch"](function(e){t.api.log.critical("Failed to re-fetch recording config",{error:e}),t.logStopReason("VISITOR_CONFIG_ERROR")})},SessionRecorder.prototype.snapshot=function(){this.isRecording()&&(this.send(),this.record.takeFullSnapshot())},SessionRecorder.prototype.isRecording=function(){return null!=this.interval},SessionRecorder.prototype.recordingConfig=function(e){var e=this.pendo._.extend({},this.config.options,e),t={maskAllText:null==e.privateByDefault||e.privateByDefault,maskTextSelector:[".pendo-sr-mask"].concat(e.maskedSelectors||[]).join(","),unmaskTextSelector:[".pendo-sr-unmask"].concat(e.unmaskedSelectors||[]).join(","),maskInputOptions:{}};return this.pendo._.isObject(e.maskInputOptions)&&(t.maskInputOptions=e.maskInputOptions),t.maskInputOptions=this.pendo._.extend(t.maskInputOptions,{email:!0,password:!0,tel:!0}),{maskInputFn:this.pendo._.partial(maskInput,t),maskTextFn:this.pendo._.partial(maskText,t),maskTextSelector:"*",maskTextClass:null,maskInputOptions:t.maskInputOptions,blockClass:null,blockSelector:[".pendo-ignore",".pendo-sr-ignore"].concat(e.blockedSelectors||[]).join(","),recordCrossOriginIframes:null==e.recordCrossOriginIframes||e.recordCrossOriginIframes}},SessionRecorder.prototype.start=function(){this._restartPtm=this.api.analytics.ptm().pause(),this.allowStart=!0,this.visitorId=this.pendo.get_visitor_id(),this.accountId=this.pendo.get_account_id(),this._start()},SessionRecorder.prototype._markEvents=function(e){if(this.recordingId)for(var t=0,n=e;t<n.length;t++){var i=n[t];i.visitor_id===this.visitorId&&"identify"!==i.type&&(i.recordingId=this.recordingId,i.recordingSessionId=this.sessionId(this.recordingId))}},SessionRecorder.prototype.restartPtm=function(){if(this.pendo._.isFunction(this._restartPtm)){this._markEvents(this.pendo.buffers.events);for(var e=0,t=this.pendo.buffers.silos;e<t.length;e++){var n=t[e];this._markEvents(n)}this._restartPtm(),this._restartPtm=null}},SessionRecorder.prototype._start=function(){var t=this;if(!this.isRecording()&&this.pendo.isSendingEvents()&&this.allowStart)return this.fetchVisitorConfig().then(function(e){t.allowStart&&(e&&e.enable?t._startRecordingForVisitor(e):(t.restartPtm(),t.logStopReason("VISITOR_DISABLED")))})["catch"](function(e){t.restartPtm(),t.api.log.critical("Failed to fetch recording config",{error:e}),t.logStopReason("VISITOR_CONFIG_ERROR")})},SessionRecorder.prototype._startRecordingForVisitor=function(e){var t=this;if(this.transport.start(this.config),this.pendo._.get(this.config,"disableFallback",!0)&&!this.transport.worker)this.restartPtm(),this.pendo.log("Worker failed to start and main thread fallback is disabled. Recording prevented from starting."),this.logStopReason("WORKER_ERROR");else try{var n=this.pendo._.bind,i=(this.visitorConfig=e,this.clearOldSessionId(),this.sendQueue.start(),this.interval=setInterval(function(){t.sendQueue.failed()||t.send()},SessionRecorder.SEND_INTERVAL),this.recordingConfig(e));this._stop=this.record(this.pendo._.extend({emit:n(this.emit,this)},i)),this._refreshIds(),this.onRecordingStart()}catch(r){this.restartPtm(),this.logStopReason("RECORDING_ERROR")}},SessionRecorder.prototype._sendIds=function(){window==window.top&&this.api.frames.getChannel().postMessage({type:"pendo:sr:id",recordingId:this.recordingId,_sessionId:this._sessionId,topId:this.api.store.state.frames.topId})},SessionRecorder.prototype._refreshIds=function(e){window!=window.top&&this.api.frames.getChannel().postMessage({type:"pendo:sr:refresh"})},SessionRecorder.prototype._frameMessage=function(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()},SessionRecorder.prototype.clearSessionId=function(){delete this._sessionId,this.api.sessionStorage.removeItem(SESSION_RECORDING_ID),this.api.sessionStorage.removeItem(this.sessionIdKey)},SessionRecorder.prototype.sessionId=function(e){var t,n;return void 0===e&&(e=this.pendo.randomString(16)),this._sessionId||((t=this.api.sessionStorage.getItem(this.sessionIdKey))||((n=this.api.sessionStorage.getItem(SESSION_RECORDING_ID))?(t=n,this.api.sessionStorage.removeItem(SESSION_RECORDING_ID)):t=e,this.api.sessionStorage.setItem(this.sessionIdKey,t)),this._sessionId=t),this._sessionId},SessionRecorder.prototype.clearOldSessionId=function(){var e=this.getLastUserInteractionEventInformation();if(e){var t=e.timestamp,e=e.visitorId===this.visitorId&&e.accountId===this.accountId,t=t>Date.now()-this.pendo._.get(this.visitorConfig,"inactivityDuration",THIRTY_MINUTES);if(e&&t)return}this.clearSessionInfo(),this.isNewSession=!0},SessionRecorder.prototype.clearSessionInfo=function(){this.currentRecordingSize=0,this.clearSessionId(),this.clearLastUserInteractionEventInformation()},SessionRecorder.prototype.isUserInteraction=function(e){return e.type===SessionRecorder.INCREMENTAL_SNAPSHOT&&e.data.source>SessionRecorder.INCREMENTAL_SOURCE_MUTATION&&e.data.source<=SessionRecorder.INCREMENTAL_SOURCE_INPUT},SessionRecorder.prototype.storeLastUserInteractionEventInformation=function(e,t,n,i){(this.isUserInteraction(e)||i)&&(this.lastUserInteractionEventInfo={timestamp:e.timestamp,visitorId:t,accountId:n},this.api.sessionStorage.setItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT,JSON.stringify(this.lastUserInteractionEventInfo)))},SessionRecorder.prototype.clearLastUserInteractionEventInformation=function(){delete this.lastUserInteractionEventInfo,this.api.sessionStorage.removeItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)},SessionRecorder.prototype.getLastUserInteractionEventInformation=function(){if(this.lastUserInteractionEventInfo)return this.lastUserInteractionEventInfo;try{return this.lastUserInteractionEventInfo=JSON.parse(this.api.sessionStorage.getItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)),this.lastUserInteractionEventInfo}catch(e){return null}},SessionRecorder.prototype.emit=function(e){e.timestamp&&e.timestamp.getTime&&(e.timestamp=e.timestamp.getTime()),e.timestamp||(e.timestamp=(new Date).getTime());var t=e.type===SessionRecorder.META,n=e.type===SessionRecorder.FULL_SNAPSHOT,i=this.pendo._.get(this.getLastUserInteractionEventInformation(),"timestamp"),r=!i&&t?!0:!1,r=(this.storeLastUserInteractionEventInformation(e,this.visitorId,this.accountId,r),this.pendo._.get(this.visitorConfig,"inactivityDuration",THIRTY_MINUTES));i&&e.timestamp-i>r&&!n&&!t?(this.send(),this.clearSessionInfo(),this.snapshot()):(t&&this.send(),this.buffer.push(e),n?(this.lastKeyFrameTime=e.timestamp,this.eventsSinceLastKeyFrame=0,this.recordingId=this.pendo.randomString(16),this.buffer.clearSequence(),this.sessionId(this.recordingId),this.restartPtm(),this._sendIds(),this.send({keyframe:!0})):!t&&(this.eventsSinceLastKeyFrame+=1,i=e.timestamp-this.lastKeyFrameTime,r=ONE_DAY_IN_MILLISECONDS<=i,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),r||n&&t||e)&&(this.currentRecordingSize=0,this.snapshot()))},SessionRecorder.prototype.updateCurrentRecordingSize=function(e){this.currentRecordingSize+=e},SessionRecorder.prototype.onWorkerMessage=function(e){switch(e.type){case"recordingPayloadSize":var t=e.recordingPayloadSize,n=e.exceedsPayloadSizeLimit;if(!t)return;if(n)return this.stop(),void this.logStopReason("BIG_PAYLOAD",t);this.updateCurrentRecordingSize(t);break;case"hostedResources":n=e.hostedResourcesEvent;n&&this.sendHostedResources(n)}},SessionRecorder.prototype.addRecordingId=function(e){this.recordingId&&e&&e.data&&e.data.length&&"recording"!==(e=e.data[0]).type&&"identify"!==e.type&&(e.visitor_id!==this.visitorId?(this.api.log.warn("Visitor id has diverged from agent"),this.stop()):this._markEvents([e]))},SessionRecorder.prototype.stop=function(){this._stop&&this._stop(),this.send(),this.sendQueue.stop(),this.recordingId=null,clearInterval(this.interval),this.interval=null,this._stop=null,this.visitorConfig=null,this.visitorId=null,this.accountId=null,this.clearSessionInfo(),this.onRecordingStop()},SessionRecorder.prototype.handleHidden=function(){this.send({hidden:!0})},SessionRecorder.prototype.handleUnload=function(){this.send({unload:!0})},SessionRecorder.prototype.buildRequestUrl=function(e,t){t=this.pendo._.extend({},this.api.agent.getJwtInfoCopy(),t),t=this.pendo._.map(t,function(e,t){return"".concat(t,"=").concat(e)}).join("&");return t.length?"".concat(e,"?").concat(t):e},SessionRecorder.prototype.sendFailure=function(e){this.stop(),this.logStopReason(e)},SessionRecorder.prototype.rateLimitExceeded=function(){this.send(),this.stop(),this.logStopReason("DATA_OVERLOAD")},SessionRecorder.prototype.send=function(e){var e=void 0===e?{}:e,t=e.unload,t=void 0!==t&&t,n=e.keyframe,n=void 0!==n&&n,e=e.hidden,e=void 0!==e&&e;if(this.isRecording()&&this.buffer&&this.recordingId&&!this.buffer.isEmpty())if(this.pendo.isSendingEvents()){var i=this.api.EventTracer.addTracerIds({}),n=this.pendo._.extend({type:"recording",visitorId:this.visitorId,accountId:this.accountId,keyFrame:!!n,lastKeyFrame:this.lastKeyFrameTime,recordingId:this.recordingId,recordingSessionId:this.sessionId(this.recordingId),url:this.pendo.url.get()},i),i=(this.transport.usesSelfHostedWorker&&(n.usesSelfHostedWorker=!0),this.api.Events.eventCaptured.trigger(n),{v:this.pendo.VERSION,recordingId:this.recordingId}),i=(n.keyFrame&&(i.kf=1),this.isNewSession&&(this.isNewSession=!(i.ns=1)),this.buildRequestUrl("".concat(this.pendo.HOST,"/data/rec/").concat(this.pendo.apiKey),i)),n=this.buffer.pack(n,this.pendo._);if(t||e)try{this.sendQueue.drain([{url:i,payload:n}],t)}catch(r){r.reason&&this.logStopReason(r.reason)}else this.sendQueue.push({url:i,payload:n});this.buffer.isEmpty()||this.send({unload:t})}else this.buffer.clear()},SessionRecorder.prototype.fetchVisitorConfig=function(){var e=this.pendo.compress({url:this.pendo.url.get(),metadata:this.pendo.getSerializedMetadata(),visitorId:this.visitorId,accountId:this.accountId}),e=this.buildRequestUrl("".concat(this.pendo.HOST,"/data/recordingconf/").concat(this.pendo.apiKey),{jzb:e,ct:(new Date).getTime(),v:this.pendo.VERSION});return fetch(e,{method:"GET"}).then(function(e){return e.json()})},SessionRecorder.prototype.logStopReason=function(e,t){var n=this,i=this.api.EventTracer.addTracerIds({}),e=this.pendo._.extend({type:"recording",visitorId:this.visitorId||this.pendo.get_visitor_id(),accountId:this.accountId||this.pendo.get_account_id(),browserTime:(new Date).getTime(),keyFrame:!1,lastKeyFrame:0,recordingId:"log",recordingSessionId:"log",url:this.pendo.url.get(),subType:"log",recordingPayload:[],sequence:0,recordingPayloadCount:0,props:__assign({reason:e},t&&{error:t})},i),t=this.pendo.compress(e),i=this.buildRequestUrl("".concat(this.pendo.HOST,"/data/rec/").concat(this.pendo.apiKey),{jzb:t,ct:(new Date).getTime(),v:this.pendo.VERSION,recordingId:e.recordingId}),t=this.pendo.compress(e,"binary");return this.transport.post(i,{body:t,keepalive:!0})["catch"](function(e){n.api.log.critical("Failed to send reason for stopping recording",{error:e})})},SessionRecorder.prototype.sendHostedResources=function(e){var t=this,n=this.api.EventTracer.addTracerIds({}),e=this.pendo._.extend(__assign(__assign({},e),{browserTime:(new Date).getTime()}),n),n=this.buildRequestUrl("".concat(this.pendo.HOST,"/data/rec/").concat(this.pendo.apiKey),{ct:(new Date).getTime(),v:this.pendo.VERSION,recordingId:e.recordingId}),e=this.pendo.compress(e,"binary");return this.transport.post(n,{body:e,keepalive:!0})["catch"](function(e){t.api.log.critical("Failed to send hosted resources for recording event",{error:e})})};var WorkerFactory=createBase64WorkerFactory("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwp2YXIgd29ya2VyX2NvZGUgPSAoZnVuY3Rpb24gKGV4cG9ydHMpIHsKICAgICd1c2Ugc3RyaWN0JzsKCiAgICB2YXIgYjY0ID0gKGZ1bmN0aW9uKCkgewoKICAgICAgICB2YXIgbG9va3VwID0gJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5LV8nLnNwbGl0KCcnKTsKCiAgICAgICAgcmV0dXJuIHsKICAgICAgICAgICAgJ3VpbnQ4VG9CYXNlNjQnOiB1aW50OFRvQmFzZTY0CiAgICAgICAgfTsKCiAgICAgICAgZnVuY3Rpb24gdWludDhUb0Jhc2U2NCh1aW50OCkgewogICAgICAgICAgICB2YXIgaSwKICAgICAgICAgICAgICAgIGV4dHJhQnl0ZXMgPSB1aW50OC5sZW5ndGggJSAzLCAvLyBpZiB3ZSBoYXZlIDEgYnl0ZSBsZWZ0LCBwYWQgMiBieXRlcwogICAgICAgICAgICAgICAgb3V0cHV0ID0gJycsCiAgICAgICAgICAgICAgICB0ZW1wLCBsZW5ndGg7CgogICAgICAgICAgICBmdW5jdGlvbiB0cmlwbGV0VG9CYXNlNjQobnVtKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gbG9va3VwW251bSA+PiAxOCAmIDB4M0ZdICsgbG9va3VwW251bSA+PiAxMiAmIDB4M0ZdICsgbG9va3VwW251bSA+PiA2ICYgMHgzRl0gKyBsb29rdXBbbnVtICYgMHgzRl07CiAgICAgICAgICAgIH0KCiAgICAJCS8vIGdvIHRocm91Z2ggdGhlIGFycmF5IGV2ZXJ5IHRocmVlIGJ5dGVzLCB3ZSdsbCBkZWFsIHdpdGggdHJhaWxpbmcgc3R1ZmYgbGF0ZXIKICAgICAgICAgICAgZm9yIChpID0gMCwgbGVuZ3RoID0gdWludDgubGVuZ3RoIC0gZXh0cmFCeXRlczsgaSA8IGxlbmd0aDsgaSArPSAzKSB7CiAgICAgICAgICAgICAgICB0ZW1wID0gKHVpbnQ4W2ldIDw8IDE2KSArICh1aW50OFtpICsgMV0gPDwgOCkgKyAodWludDhbaSArIDJdKTsKICAgICAgICAgICAgICAgIG91dHB1dCArPSB0cmlwbGV0VG9CYXNlNjQodGVtcCk7CiAgICAgICAgICAgIH0KCiAgICAJCS8vIHBhZCB0aGUgZW5kIHdpdGggemVyb3MsIGJ1dCBtYWtlIHN1cmUgdG8gbm90IGZvcmdldCB0aGUgZXh0cmEgYnl0ZXMKICAgICAgICAgICAgLy9lc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgZGVmYXVsdC1jYXNlCiAgICAgICAgICAgIHN3aXRjaCAoZXh0cmFCeXRlcykgewogICAgICAgICAgICBjYXNlIDE6CiAgICAgICAgICAgICAgICB0ZW1wID0gdWludDhbdWludDgubGVuZ3RoIC0gMV07CiAgICAgICAgICAgICAgICBvdXRwdXQgKz0gbG9va3VwW3RlbXAgPj4gMl07CiAgICAgICAgICAgICAgICBvdXRwdXQgKz0gbG9va3VwWyh0ZW1wIDw8IDQpICYgMHgzRl07CiAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgY2FzZSAyOgogICAgICAgICAgICAgICAgdGVtcCA9ICh1aW50OFt1aW50OC5sZW5ndGggLSAyXSA8PCA4KSArICh1aW50OFt1aW50OC5sZW5ndGggLSAxXSk7CiAgICAgICAgICAgICAgICBvdXRwdXQgKz0gbG9va3VwW3RlbXAgPj4gMTBdOwogICAgICAgICAgICAgICAgb3V0cHV0ICs9IGxvb2t1cFsodGVtcCA+PiA0KSAmIDB4M0ZdOwogICAgICAgICAgICAgICAgb3V0cHV0ICs9IGxvb2t1cFsodGVtcCA8PCAyKSAmIDB4M0ZdOwogICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIHJldHVybiBvdXRwdXQ7CiAgICAgICAgfQogICAgfSkoKTsKCiAgICBmdW5jdGlvbiBnZXREZWZhdWx0RXhwb3J0RnJvbUNqcyAoeCkgewogICAgCXJldHVybiB4ICYmIHguX19lc01vZHVsZSAmJiBPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoeCwgJ2RlZmF1bHQnKSA/IHhbJ2RlZmF1bHQnXSA6IHg7CiAgICB9CgogICAgdmFyIGRlZmxhdGVfbWluID0ge2V4cG9ydHM6IHt9fTsKCiAgICAvKgogICAgICogQGxpY2Vuc2UgemxpYi5qcyAyMDEyIC0gaW1heWEgWyBodHRwczovL2dpdGh1Yi5jb20vaW1heWEvemxpYi5qcyBdIFRoZSBNSVQgTGljZW5zZQogICAgICovCgogICAgKGZ1bmN0aW9uIChtb2R1bGUpIHsKICAgIAkoZnVuY3Rpb24oKSB7dmFyIG49dm9pZCAwLHc9ITAsYWE9dGhpcztmdW5jdGlvbiBiYShmLGQpe3ZhciBjPWYuc3BsaXQoIi4iKSxlPWFhOyEoY1swXWluIGUpJiZlLmV4ZWNTY3JpcHQmJmUuZXhlY1NjcmlwdCgidmFyICIrY1swXSk7Zm9yKHZhciBiO2MubGVuZ3RoJiYoYj1jLnNoaWZ0KCkpOykhYy5sZW5ndGgmJmQhPT1uP2VbYl09ZDplPWVbYl0/ZVtiXTplW2JdPXt9O312YXIgQz0idW5kZWZpbmVkIiE9PXR5cGVvZiBVaW50OEFycmF5JiYidW5kZWZpbmVkIiE9PXR5cGVvZiBVaW50MTZBcnJheSYmInVuZGVmaW5lZCIhPT10eXBlb2YgVWludDMyQXJyYXk7ZnVuY3Rpb24gSyhmLGQpe3RoaXMuaW5kZXg9Im51bWJlciI9PT10eXBlb2YgZD9kOjA7dGhpcy5lPTA7dGhpcy5idWZmZXI9ZiBpbnN0YW5jZW9mKEM/VWludDhBcnJheTpBcnJheSk/ZjpuZXcgKEM/VWludDhBcnJheTpBcnJheSkoMzI3NjgpO2lmKDIqdGhpcy5idWZmZXIubGVuZ3RoPD10aGlzLmluZGV4KXRocm93IEVycm9yKCJpbnZhbGlkIGluZGV4Iik7dGhpcy5idWZmZXIubGVuZ3RoPD10aGlzLmluZGV4JiZjYSh0aGlzKTt9ZnVuY3Rpb24gY2EoZil7dmFyIGQ9Zi5idWZmZXIsYyxlPWQubGVuZ3RoLGI9bmV3IChDP1VpbnQ4QXJyYXk6QXJyYXkpKGU8PDEpO2lmKEMpYi5zZXQoZCk7ZWxzZSBmb3IoYz0wO2M8ZTsrK2MpYltjXT1kW2NdO3JldHVybiBmLmJ1ZmZlcj1ifQogICAgCUsucHJvdG90eXBlLmI9ZnVuY3Rpb24oZixkLGMpe3ZhciBlPXRoaXMuYnVmZmVyLGI9dGhpcy5pbmRleCxhPXRoaXMuZSxnPWVbYl0sbTtjJiYxPGQmJihmPTg8ZD8oTFtmJjI1NV08PDI0fExbZj4+PjgmMjU1XTw8MTZ8TFtmPj4+MTYmMjU1XTw8OHxMW2Y+Pj4yNCYyNTVdKT4+MzItZDpMW2ZdPj44LWQpO2lmKDg+ZCthKWc9Zzw8ZHxmLGErPWQ7ZWxzZSBmb3IobT0wO208ZDsrK20pZz1nPDwxfGY+PmQtbS0xJjEsOD09PSsrYSYmKGE9MCxlW2IrK109TFtnXSxnPTAsYj09PWUubGVuZ3RoJiYoZT1jYSh0aGlzKSkpO2VbYl09Zzt0aGlzLmJ1ZmZlcj1lO3RoaXMuZT1hO3RoaXMuaW5kZXg9Yjt9O0sucHJvdG90eXBlLmZpbmlzaD1mdW5jdGlvbigpe3ZhciBmPXRoaXMuYnVmZmVyLGQ9dGhpcy5pbmRleCxjOzA8dGhpcy5lJiYoZltkXTw8PTgtdGhpcy5lLGZbZF09TFtmW2RdXSxkKyspO0M/Yz1mLnN1YmFycmF5KDAsZCk6KGYubGVuZ3RoPWQsYz1mKTtyZXR1cm4gY307CiAgICAJdmFyIGRhPW5ldyAoQz9VaW50OEFycmF5OkFycmF5KSgyNTYpLE07Zm9yKE09MDsyNTY+TTsrK00pe2Zvcih2YXIgTj1NLFM9TixlYT03LE49Tj4+PjE7TjtOPj4+PTEpUzw8PTEsU3w9TiYxLC0tZWE7ZGFbTV09KFM8PGVhJjI1NSk+Pj4wO312YXIgTD1kYTtmdW5jdGlvbiBpYShmKXt0aGlzLmJ1ZmZlcj1uZXcgKEM/VWludDE2QXJyYXk6QXJyYXkpKDIqZik7dGhpcy5sZW5ndGg9MDt9aWEucHJvdG90eXBlLmdldFBhcmVudD1mdW5jdGlvbihmKXtyZXR1cm4gMiooKGYtMikvNHwwKX07aWEucHJvdG90eXBlLnB1c2g9ZnVuY3Rpb24oZixkKXt2YXIgYyxlLGI9dGhpcy5idWZmZXIsYTtjPXRoaXMubGVuZ3RoO2JbdGhpcy5sZW5ndGgrK109ZDtmb3IoYlt0aGlzLmxlbmd0aCsrXT1mOzA8YzspaWYoZT10aGlzLmdldFBhcmVudChjKSxiW2NdPmJbZV0pYT1iW2NdLGJbY109YltlXSxiW2VdPWEsYT1iW2MrMV0sYltjKzFdPWJbZSsxXSxiW2UrMV09YSxjPWU7ZWxzZSBicmVhaztyZXR1cm4gdGhpcy5sZW5ndGh9OwogICAgCWlhLnByb3RvdHlwZS5wb3A9ZnVuY3Rpb24oKXt2YXIgZixkLGM9dGhpcy5idWZmZXIsZSxiLGE7ZD1jWzBdO2Y9Y1sxXTt0aGlzLmxlbmd0aC09MjtjWzBdPWNbdGhpcy5sZW5ndGhdO2NbMV09Y1t0aGlzLmxlbmd0aCsxXTtmb3IoYT0wOzspe2I9MiphKzI7aWYoYj49dGhpcy5sZW5ndGgpYnJlYWs7YisyPHRoaXMubGVuZ3RoJiZjW2IrMl0+Y1tiXSYmKGIrPTIpO2lmKGNbYl0+Y1thXSllPWNbYV0sY1thXT1jW2JdLGNbYl09ZSxlPWNbYSsxXSxjW2ErMV09Y1tiKzFdLGNbYisxXT1lO2Vsc2UgYnJlYWs7YT1iO31yZXR1cm4ge2luZGV4OmYsdmFsdWU6ZCxsZW5ndGg6dGhpcy5sZW5ndGh9fTtmdW5jdGlvbiBrYShmLGQpe3RoaXMuZD1sYTt0aGlzLmk9MDt0aGlzLmlucHV0PUMmJmYgaW5zdGFuY2VvZiBBcnJheT9uZXcgVWludDhBcnJheShmKTpmO3RoaXMuYz0wO2QmJihkLmxhenkmJih0aGlzLmk9ZC5sYXp5KSwibnVtYmVyIj09PXR5cGVvZiBkLmNvbXByZXNzaW9uVHlwZSYmKHRoaXMuZD1kLmNvbXByZXNzaW9uVHlwZSksZC5vdXRwdXRCdWZmZXImJih0aGlzLmE9QyYmZC5vdXRwdXRCdWZmZXIgaW5zdGFuY2VvZiBBcnJheT9uZXcgVWludDhBcnJheShkLm91dHB1dEJ1ZmZlcik6ZC5vdXRwdXRCdWZmZXIpLCJudW1iZXIiPT09dHlwZW9mIGQub3V0cHV0SW5kZXgmJih0aGlzLmM9ZC5vdXRwdXRJbmRleCkpO3RoaXMuYXx8KHRoaXMuYT1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoMzI3NjgpKTt9dmFyIGxhPTIsbmE9e05PTkU6MCxoOjEsZzpsYSxuOjN9LFQ9W10sVTsKICAgIAlmb3IoVT0wOzI4OD5VO1UrKylzd2l0Y2godyl7Y2FzZSAxNDM+PVU6VC5wdXNoKFtVKzQ4LDhdKTticmVhaztjYXNlIDI1NT49VTpULnB1c2goW1UtMTQ0KzQwMCw5XSk7YnJlYWs7Y2FzZSAyNzk+PVU6VC5wdXNoKFtVLTI1NiswLDddKTticmVhaztjYXNlIDI4Nz49VTpULnB1c2goW1UtMjgwKzE5Miw4XSk7YnJlYWs7ZGVmYXVsdDp0aHJvdyAiaW52YWxpZCBsaXRlcmFsOiAiK1U7fQogICAgCWthLnByb3RvdHlwZS5mPWZ1bmN0aW9uKCl7dmFyIGYsZCxjLGUsYj10aGlzLmlucHV0O3N3aXRjaCh0aGlzLmQpe2Nhc2UgMDpjPTA7Zm9yKGU9Yi5sZW5ndGg7YzxlOyl7ZD1DP2Iuc3ViYXJyYXkoYyxjKzY1NTM1KTpiLnNsaWNlKGMsYys2NTUzNSk7Yys9ZC5sZW5ndGg7dmFyIGE9ZCxnPWM9PT1lLG09bixrPW4scD1uLHQ9bix1PW4sbD10aGlzLmEsaD10aGlzLmM7aWYoQyl7Zm9yKGw9bmV3IFVpbnQ4QXJyYXkodGhpcy5hLmJ1ZmZlcik7bC5sZW5ndGg8PWgrYS5sZW5ndGgrNTspbD1uZXcgVWludDhBcnJheShsLmxlbmd0aDw8MSk7bC5zZXQodGhpcy5hKTt9bT1nPzE6MDtsW2grK109bXwwO2s9YS5sZW5ndGg7cD1+ays2NTUzNiY2NTUzNTtsW2grK109ayYyNTU7bFtoKytdPWs+Pj44JjI1NTtsW2grK109cCYyNTU7bFtoKytdPXA+Pj44JjI1NTtpZihDKWwuc2V0KGEsaCksaCs9YS5sZW5ndGgsbD1sLnN1YmFycmF5KDAsaCk7ZWxzZSB7dD0wO2Zvcih1PWEubGVuZ3RoO3Q8dTsrK3QpbFtoKytdPQogICAgCWFbdF07bC5sZW5ndGg9aDt9dGhpcy5jPWg7dGhpcy5hPWw7fWJyZWFrO2Nhc2UgMTp2YXIgcT1uZXcgSyhDP25ldyBVaW50OEFycmF5KHRoaXMuYS5idWZmZXIpOnRoaXMuYSx0aGlzLmMpO3EuYigxLDEsdyk7cS5iKDEsMix3KTt2YXIgcz1vYSh0aGlzLGIpLHgsZmEsejt4PTA7Zm9yKGZhPXMubGVuZ3RoO3g8ZmE7eCsrKWlmKHo9c1t4XSxLLnByb3RvdHlwZS5iLmFwcGx5KHEsVFt6XSksMjU2PHopcS5iKHNbKyt4XSxzWysreF0sdykscS5iKHNbKyt4XSw1KSxxLmIoc1srK3hdLHNbKyt4XSx3KTtlbHNlIGlmKDI1Nj09PXopYnJlYWs7dGhpcy5hPXEuZmluaXNoKCk7dGhpcy5jPXRoaXMuYS5sZW5ndGg7YnJlYWs7Y2FzZSBsYTp2YXIgQj1uZXcgSyhDP25ldyBVaW50OEFycmF5KHRoaXMuYS5idWZmZXIpOnRoaXMuYSx0aGlzLmMpLHRhLEosTyxQLFEsTGE9WzE2LDE3LDE4LDAsOCw3LDksNiwxMCw1LDExLDQsMTIsMywxMywyLDE0LDEsMTVdLFgsdWEsWSx2YSxnYSxqYT1BcnJheSgxOSksCiAgICAJd2EsUixoYSx5LHhhO3RhPWxhO0IuYigxLDEsdyk7Qi5iKHRhLDIsdyk7Sj1vYSh0aGlzLGIpO1g9cGEodGhpcy5tLDE1KTt1YT1xYShYKTtZPXBhKHRoaXMubCw3KTt2YT1xYShZKTtmb3IoTz0yODY7MjU3PE8mJjA9PT1YW08tMV07Ty0tKTtmb3IoUD0zMDsxPFAmJjA9PT1ZW1AtMV07UC0tKTt2YXIgeWE9Tyx6YT1QLEY9bmV3IChDP1VpbnQzMkFycmF5OkFycmF5KSh5YSt6YSkscixHLHYsWixFPW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoMzE2KSxELEEsSD1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoMTkpO2ZvcihyPUc9MDtyPHlhO3IrKylGW0crK109WFtyXTtmb3Iocj0wO3I8emE7cisrKUZbRysrXT1ZW3JdO2lmKCFDKXtyPTA7Zm9yKFo9SC5sZW5ndGg7cjxaOysrcilIW3JdPTA7fXI9RD0wO2ZvcihaPUYubGVuZ3RoO3I8WjtyKz1HKXtmb3IoRz0xO3IrRzxaJiZGW3IrR109PT1GW3JdOysrRyk7dj1HO2lmKDA9PT1GW3JdKWlmKDM+dilmb3IoOzA8di0tOylFW0QrK109MCwKICAgIAlIWzBdKys7ZWxzZSBmb3IoOzA8djspQT0xMzg+dj92OjEzOCxBPnYtMyYmQTx2JiYoQT12LTMpLDEwPj1BPyhFW0QrK109MTcsRVtEKytdPUEtMyxIWzE3XSsrKTooRVtEKytdPTE4LEVbRCsrXT1BLTExLEhbMThdKyspLHYtPUE7ZWxzZSBpZihFW0QrK109RltyXSxIW0Zbcl1dKyssdi0tLDM+dilmb3IoOzA8di0tOylFW0QrK109RltyXSxIW0Zbcl1dKys7ZWxzZSBmb3IoOzA8djspQT02PnY/djo2LEE+di0zJiZBPHYmJihBPXYtMyksRVtEKytdPTE2LEVbRCsrXT1BLTMsSFsxNl0rKyx2LT1BO31mPUM/RS5zdWJhcnJheSgwLEQpOkUuc2xpY2UoMCxEKTtnYT1wYShILDcpO2Zvcih5PTA7MTk+eTt5KyspamFbeV09Z2FbTGFbeV1dO2ZvcihRPTE5OzQ8USYmMD09PWphW1EtMV07US0tKTt3YT1xYShnYSk7Qi5iKE8tMjU3LDUsdyk7Qi5iKFAtMSw1LHcpO0IuYihRLTQsNCx3KTtmb3IoeT0wO3k8UTt5KyspQi5iKGphW3ldLDMsdyk7eT0wO2Zvcih4YT1mLmxlbmd0aDt5PHhhO3krKylpZihSPQogICAgCWZbeV0sQi5iKHdhW1JdLGdhW1JdLHcpLDE2PD1SKXt5Kys7c3dpdGNoKFIpe2Nhc2UgMTY6aGE9MjticmVhaztjYXNlIDE3OmhhPTM7YnJlYWs7Y2FzZSAxODpoYT03O2JyZWFrO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgY29kZTogIitSO31CLmIoZlt5XSxoYSx3KTt9dmFyIEFhPVt1YSxYXSxCYT1bdmEsWV0sSSxDYSwkLG1hLERhLEVhLEZhLEdhO0RhPUFhWzBdO0VhPUFhWzFdO0ZhPUJhWzBdO0dhPUJhWzFdO0k9MDtmb3IoQ2E9Si5sZW5ndGg7STxDYTsrK0kpaWYoJD1KW0ldLEIuYihEYVskXSxFYVskXSx3KSwyNTY8JClCLmIoSlsrK0ldLEpbKytJXSx3KSxtYT1KWysrSV0sQi5iKEZhW21hXSxHYVttYV0sdyksQi5iKEpbKytJXSxKWysrSV0sdyk7ZWxzZSBpZigyNTY9PT0kKWJyZWFrO3RoaXMuYT1CLmZpbmlzaCgpO3RoaXMuYz10aGlzLmEubGVuZ3RoO2JyZWFrO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgY29tcHJlc3Npb24gdHlwZSI7fXJldHVybiB0aGlzLmF9OwogICAgCWZ1bmN0aW9uIHJhKGYsZCl7dGhpcy5sZW5ndGg9Zjt0aGlzLms9ZDt9CiAgICAJdmFyIHNhPWZ1bmN0aW9uKCl7ZnVuY3Rpb24gZihiKXtzd2l0Y2godyl7Y2FzZSAzPT09YjpyZXR1cm4gWzI1NyxiLTMsMF07Y2FzZSA0PT09YjpyZXR1cm4gWzI1OCxiLTQsMF07Y2FzZSA1PT09YjpyZXR1cm4gWzI1OSxiLTUsMF07Y2FzZSA2PT09YjpyZXR1cm4gWzI2MCxiLTYsMF07Y2FzZSA3PT09YjpyZXR1cm4gWzI2MSxiLTcsMF07Y2FzZSA4PT09YjpyZXR1cm4gWzI2MixiLTgsMF07Y2FzZSA5PT09YjpyZXR1cm4gWzI2MyxiLTksMF07Y2FzZSAxMD09PWI6cmV0dXJuIFsyNjQsYi0xMCwwXTtjYXNlIDEyPj1iOnJldHVybiBbMjY1LGItMTEsMV07Y2FzZSAxND49YjpyZXR1cm4gWzI2NixiLTEzLDFdO2Nhc2UgMTY+PWI6cmV0dXJuIFsyNjcsYi0xNSwxXTtjYXNlIDE4Pj1iOnJldHVybiBbMjY4LGItMTcsMV07Y2FzZSAyMj49YjpyZXR1cm4gWzI2OSxiLTE5LDJdO2Nhc2UgMjY+PWI6cmV0dXJuIFsyNzAsYi0yMywyXTtjYXNlIDMwPj1iOnJldHVybiBbMjcxLGItMjcsMl07Y2FzZSAzND49YjpyZXR1cm4gWzI3MiwKICAgIAliLTMxLDJdO2Nhc2UgNDI+PWI6cmV0dXJuIFsyNzMsYi0zNSwzXTtjYXNlIDUwPj1iOnJldHVybiBbMjc0LGItNDMsM107Y2FzZSA1OD49YjpyZXR1cm4gWzI3NSxiLTUxLDNdO2Nhc2UgNjY+PWI6cmV0dXJuIFsyNzYsYi01OSwzXTtjYXNlIDgyPj1iOnJldHVybiBbMjc3LGItNjcsNF07Y2FzZSA5OD49YjpyZXR1cm4gWzI3OCxiLTgzLDRdO2Nhc2UgMTE0Pj1iOnJldHVybiBbMjc5LGItOTksNF07Y2FzZSAxMzA+PWI6cmV0dXJuIFsyODAsYi0xMTUsNF07Y2FzZSAxNjI+PWI6cmV0dXJuIFsyODEsYi0xMzEsNV07Y2FzZSAxOTQ+PWI6cmV0dXJuIFsyODIsYi0xNjMsNV07Y2FzZSAyMjY+PWI6cmV0dXJuIFsyODMsYi0xOTUsNV07Y2FzZSAyNTc+PWI6cmV0dXJuIFsyODQsYi0yMjcsNV07Y2FzZSAyNTg9PT1iOnJldHVybiBbMjg1LGItMjU4LDBdO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgbGVuZ3RoOiAiK2I7fX12YXIgZD1bXSxjLGU7Zm9yKGM9MzsyNTg+PWM7YysrKWU9ZihjKSxkW2NdPWVbMl08PDI0fAogICAgCWVbMV08PDE2fGVbMF07cmV0dXJuIGR9KCksSGE9Qz9uZXcgVWludDMyQXJyYXkoc2EpOnNhOwogICAgCWZ1bmN0aW9uIG9hKGYsZCl7ZnVuY3Rpb24gYyhiLGMpe3ZhciBhPWIuayxkPVtdLGU9MCxmO2Y9SGFbYi5sZW5ndGhdO2RbZSsrXT1mJjY1NTM1O2RbZSsrXT1mPj4xNiYyNTU7ZFtlKytdPWY+PjI0O3ZhciBnO3N3aXRjaCh3KXtjYXNlIDE9PT1hOmc9WzAsYS0xLDBdO2JyZWFrO2Nhc2UgMj09PWE6Zz1bMSxhLTIsMF07YnJlYWs7Y2FzZSAzPT09YTpnPVsyLGEtMywwXTticmVhaztjYXNlIDQ9PT1hOmc9WzMsYS00LDBdO2JyZWFrO2Nhc2UgNj49YTpnPVs0LGEtNSwxXTticmVhaztjYXNlIDg+PWE6Zz1bNSxhLTcsMV07YnJlYWs7Y2FzZSAxMj49YTpnPVs2LGEtOSwyXTticmVhaztjYXNlIDE2Pj1hOmc9WzcsYS0xMywyXTticmVhaztjYXNlIDI0Pj1hOmc9WzgsYS0xNywzXTticmVhaztjYXNlIDMyPj1hOmc9WzksYS0yNSwzXTticmVhaztjYXNlIDQ4Pj1hOmc9WzEwLGEtMzMsNF07YnJlYWs7Y2FzZSA2ND49YTpnPVsxMSxhLTQ5LDRdO2JyZWFrO2Nhc2UgOTY+PWE6Zz1bMTIsYS0KICAgIAk2NSw1XTticmVhaztjYXNlIDEyOD49YTpnPVsxMyxhLTk3LDVdO2JyZWFrO2Nhc2UgMTkyPj1hOmc9WzE0LGEtMTI5LDZdO2JyZWFrO2Nhc2UgMjU2Pj1hOmc9WzE1LGEtMTkzLDZdO2JyZWFrO2Nhc2UgMzg0Pj1hOmc9WzE2LGEtMjU3LDddO2JyZWFrO2Nhc2UgNTEyPj1hOmc9WzE3LGEtMzg1LDddO2JyZWFrO2Nhc2UgNzY4Pj1hOmc9WzE4LGEtNTEzLDhdO2JyZWFrO2Nhc2UgMTAyND49YTpnPVsxOSxhLTc2OSw4XTticmVhaztjYXNlIDE1MzY+PWE6Zz1bMjAsYS0xMDI1LDldO2JyZWFrO2Nhc2UgMjA0OD49YTpnPVsyMSxhLTE1MzcsOV07YnJlYWs7Y2FzZSAzMDcyPj1hOmc9WzIyLGEtMjA0OSwxMF07YnJlYWs7Y2FzZSA0MDk2Pj1hOmc9WzIzLGEtMzA3MywxMF07YnJlYWs7Y2FzZSA2MTQ0Pj1hOmc9WzI0LGEtNDA5NywxMV07YnJlYWs7Y2FzZSA4MTkyPj1hOmc9WzI1LGEtNjE0NSwxMV07YnJlYWs7Y2FzZSAxMjI4OD49YTpnPVsyNixhLTgxOTMsMTJdO2JyZWFrO2Nhc2UgMTYzODQ+PQogICAgCWE6Zz1bMjcsYS0xMjI4OSwxMl07YnJlYWs7Y2FzZSAyNDU3Nj49YTpnPVsyOCxhLTE2Mzg1LDEzXTticmVhaztjYXNlIDMyNzY4Pj1hOmc9WzI5LGEtMjQ1NzcsMTNdO2JyZWFrO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgZGlzdGFuY2UiO31mPWc7ZFtlKytdPWZbMF07ZFtlKytdPWZbMV07ZFtlKytdPWZbMl07dmFyIGssbTtrPTA7Zm9yKG09ZC5sZW5ndGg7azxtOysraylsW2grK109ZFtrXTtzW2RbMF1dKys7eFtkWzNdXSsrO3E9Yi5sZW5ndGgrYy0xO3U9bnVsbDt9dmFyIGUsYixhLGcsbSxrPXt9LHAsdCx1LGw9Qz9uZXcgVWludDE2QXJyYXkoMipkLmxlbmd0aCk6W10saD0wLHE9MCxzPW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoMjg2KSx4PW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoMzApLGZhPWYuaSx6O2lmKCFDKXtmb3IoYT0wOzI4NT49YTspc1thKytdPTA7Zm9yKGE9MDsyOT49YTspeFthKytdPTA7fXNbMjU2XT0xO2U9MDtmb3IoYj1kLmxlbmd0aDtlPGI7KytlKXthPQogICAgCW09MDtmb3IoZz0zO2E8ZyYmZSthIT09YjsrK2EpbT1tPDw4fGRbZSthXTtrW21dPT09biYmKGtbbV09W10pO3A9a1ttXTtpZighKDA8cS0tKSl7Zm9yKDswPHAubGVuZ3RoJiYzMjc2ODxlLXBbMF07KXAuc2hpZnQoKTtpZihlKzM+PWIpe3UmJmModSwtMSk7YT0wO2ZvcihnPWItZTthPGc7KythKXo9ZFtlK2FdLGxbaCsrXT16LCsrc1t6XTticmVha30wPHAubGVuZ3RoPyh0PUlhKGQsZSxwKSx1P3UubGVuZ3RoPHQubGVuZ3RoPyh6PWRbZS0xXSxsW2grK109eiwrK3Nbel0sYyh0LDApKTpjKHUsLTEpOnQubGVuZ3RoPGZhP3U9dDpjKHQsMCkpOnU/Yyh1LC0xKTooej1kW2VdLGxbaCsrXT16LCsrc1t6XSk7fXAucHVzaChlKTt9bFtoKytdPTI1NjtzWzI1Nl0rKztmLm09cztmLmw9eDtyZXR1cm4gQz9sLnN1YmFycmF5KDAsaCk6bH0KICAgIAlmdW5jdGlvbiBJYShmLGQsYyl7dmFyIGUsYixhPTAsZyxtLGsscCx0PWYubGVuZ3RoO209MDtwPWMubGVuZ3RoO2E6Zm9yKDttPHA7bSsrKXtlPWNbcC1tLTFdO2c9MztpZigzPGEpe2ZvcihrPWE7MzxrO2stLSlpZihmW2Uray0xXSE9PWZbZCtrLTFdKWNvbnRpbnVlIGE7Zz1hO31mb3IoOzI1OD5nJiZkK2c8dCYmZltlK2ddPT09ZltkK2ddOykrK2c7Zz5hJiYoYj1lLGE9Zyk7aWYoMjU4PT09ZylicmVha31yZXR1cm4gbmV3IHJhKGEsZC1iKX0KICAgIAlmdW5jdGlvbiBwYShmLGQpe3ZhciBjPWYubGVuZ3RoLGU9bmV3IGlhKDU3MiksYj1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoYyksYSxnLG0sayxwO2lmKCFDKWZvcihrPTA7azxjO2srKyliW2tdPTA7Zm9yKGs9MDtrPGM7KytrKTA8ZltrXSYmZS5wdXNoKGssZltrXSk7YT1BcnJheShlLmxlbmd0aC8yKTtnPW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoZS5sZW5ndGgvMik7aWYoMT09PWEubGVuZ3RoKXJldHVybiBiW2UucG9wKCkuaW5kZXhdPTEsYjtrPTA7Zm9yKHA9ZS5sZW5ndGgvMjtrPHA7KytrKWFba109ZS5wb3AoKSxnW2tdPWFba10udmFsdWU7bT1KYShnLGcubGVuZ3RoLGQpO2s9MDtmb3IocD1hLmxlbmd0aDtrPHA7KytrKWJbYVtrXS5pbmRleF09bVtrXTtyZXR1cm4gYn0KICAgIAlmdW5jdGlvbiBKYShmLGQsYyl7ZnVuY3Rpb24gZShhKXt2YXIgYj1rW2FdW3BbYV1dO2I9PT1kPyhlKGErMSksZShhKzEpKTotLWdbYl07KytwW2FdO312YXIgYj1uZXcgKEM/VWludDE2QXJyYXk6QXJyYXkpKGMpLGE9bmV3IChDP1VpbnQ4QXJyYXk6QXJyYXkpKGMpLGc9bmV3IChDP1VpbnQ4QXJyYXk6QXJyYXkpKGQpLG09QXJyYXkoYyksaz1BcnJheShjKSxwPUFycmF5KGMpLHQ9KDE8PGMpLWQsdT0xPDxjLTEsbCxoLHEscyx4O2JbYy0xXT1kO2ZvcihoPTA7aDxjOysraCl0PHU/YVtoXT0wOihhW2hdPTEsdC09dSksdDw8PTEsYltjLTItaF09KGJbYy0xLWhdLzJ8MCkrZDtiWzBdPWFbMF07bVswXT1BcnJheShiWzBdKTtrWzBdPUFycmF5KGJbMF0pO2ZvcihoPTE7aDxjOysraCliW2hdPjIqYltoLTFdK2FbaF0mJihiW2hdPTIqYltoLTFdK2FbaF0pLG1baF09QXJyYXkoYltoXSksa1toXT1BcnJheShiW2hdKTtmb3IobD0wO2w8ZDsrK2wpZ1tsXT1jO2ZvcihxPTA7cTxiW2MtMV07KytxKW1bYy0KICAgIAkxXVtxXT1mW3FdLGtbYy0xXVtxXT1xO2ZvcihsPTA7bDxjOysrbClwW2xdPTA7MT09PWFbYy0xXSYmKC0tZ1swXSwrK3BbYy0xXSk7Zm9yKGg9Yy0yOzA8PWg7LS1oKXtzPWw9MDt4PXBbaCsxXTtmb3IocT0wO3E8YltoXTtxKyspcz1tW2grMV1beF0rbVtoKzFdW3grMV0scz5mW2xdPyhtW2hdW3FdPXMsa1toXVtxXT1kLHgrPTIpOihtW2hdW3FdPWZbbF0sa1toXVtxXT1sLCsrbCk7cFtoXT0wOzE9PT1hW2hdJiZlKGgpO31yZXR1cm4gZ30KICAgIAlmdW5jdGlvbiBxYShmKXt2YXIgZD1uZXcgKEM/VWludDE2QXJyYXk6QXJyYXkpKGYubGVuZ3RoKSxjPVtdLGU9W10sYj0wLGEsZyxtLGs7YT0wO2ZvcihnPWYubGVuZ3RoO2E8ZzthKyspY1tmW2FdXT0oY1tmW2FdXXwwKSsxO2E9MTtmb3IoZz0xNjthPD1nO2ErKyllW2FdPWIsYis9Y1thXXwwLGI8PD0xO2E9MDtmb3IoZz1mLmxlbmd0aDthPGc7YSsrKXtiPWVbZlthXV07ZVtmW2FdXSs9MTttPWRbYV09MDtmb3Ioaz1mW2FdO208azttKyspZFthXT1kW2FdPDwxfGImMSxiPj4+PTE7fXJldHVybiBkfWZ1bmN0aW9uIEthKGYsZCl7dGhpcy5pbnB1dD1mO3RoaXMuYT1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoMzI3NjgpO3RoaXMuZD1WLmc7dmFyIGM9e30sZTtpZigoZHx8IShkPXt9KSkmJiJudW1iZXIiPT09dHlwZW9mIGQuY29tcHJlc3Npb25UeXBlKXRoaXMuZD1kLmNvbXByZXNzaW9uVHlwZTtmb3IoZSBpbiBkKWNbZV09ZFtlXTtjLm91dHB1dEJ1ZmZlcj10aGlzLmE7dGhpcy5qPW5ldyBrYSh0aGlzLmlucHV0LGMpO312YXIgVj1uYTsKICAgIAlLYS5wcm90b3R5cGUuZj1mdW5jdGlvbigpe3ZhciBmLGQsYyxlLGIsYSxnPTA7YT10aGlzLmE7c3dpdGNoKDgpe2Nhc2UgODpmPU1hdGguTE9HMkUqTWF0aC5sb2coMzI3NjgpLTg7YnJlYWs7ZGVmYXVsdDp0aHJvdyBFcnJvcigiaW52YWxpZCBjb21wcmVzc2lvbiBtZXRob2QiKTt9ZD1mPDw0fDg7YVtnKytdPWQ7c3dpdGNoKDgpe2Nhc2UgODpzd2l0Y2godGhpcy5kKXtjYXNlIFYuTk9ORTplPTA7YnJlYWs7Y2FzZSBWLmg6ZT0xO2JyZWFrO2Nhc2UgVi5nOmU9MjticmVhaztkZWZhdWx0OnRocm93IEVycm9yKCJ1bnN1cHBvcnRlZCBjb21wcmVzc2lvbiB0eXBlIik7fWJyZWFrO2RlZmF1bHQ6dGhyb3cgRXJyb3IoImludmFsaWQgY29tcHJlc3Npb24gbWV0aG9kIik7fWM9ZTw8NnwwO2FbZysrXT1jfDMxLSgyNTYqZCtjKSUzMTt2YXIgbT10aGlzLmlucHV0O2lmKCJzdHJpbmciPT09dHlwZW9mIG0pe3ZhciBrPW0uc3BsaXQoIiIpLHAsdDtwPTA7Zm9yKHQ9ay5sZW5ndGg7cDx0O3ArKylrW3BdPQogICAgCShrW3BdLmNoYXJDb2RlQXQoMCkmMjU1KT4+PjA7bT1rO31mb3IodmFyIHU9MSxsPTAsaD1tLmxlbmd0aCxxLHM9MDswPGg7KXtxPTEwMjQ8aD8xMDI0Omg7aC09cTtkbyB1Kz1tW3MrK10sbCs9dTt3aGlsZSgtLXEpO3UlPTY1NTIxO2wlPTY1NTIxO31iPShsPDwxNnx1KT4+PjA7dGhpcy5qLmM9ZzthPXRoaXMuai5mKCk7Zz1hLmxlbmd0aDtDJiYoYT1uZXcgVWludDhBcnJheShhLmJ1ZmZlciksYS5sZW5ndGg8PWcrNCYmKHRoaXMuYT1uZXcgVWludDhBcnJheShhLmxlbmd0aCs0KSx0aGlzLmEuc2V0KGEpLGE9dGhpcy5hKSxhPWEuc3ViYXJyYXkoMCxnKzQpKTthW2crK109Yj4+MjQmMjU1O2FbZysrXT1iPj4xNiYyNTU7YVtnKytdPWI+PjgmMjU1O2FbZysrXT1iJjI1NTtyZXR1cm4gYX07YmEoIlpsaWIuRGVmbGF0ZSIsS2EpO2JhKCJabGliLkRlZmxhdGUuY29tcHJlc3MiLGZ1bmN0aW9uKGYsZCl7cmV0dXJuIChuZXcgS2EoZixkKSkuZigpfSk7YmEoIlpsaWIuRGVmbGF0ZS5wcm90b3R5cGUuY29tcHJlc3MiLEthLnByb3RvdHlwZS5mKTt2YXIgTWE9e05PTkU6Vi5OT05FLEZJWEVEOlYuaCxEWU5BTUlDOlYuZ30sTmEsT2EsVyxQYTtpZihPYmplY3Qua2V5cylOYT1PYmplY3Qua2V5cyhNYSk7ZWxzZSBmb3IoT2EgaW4gTmE9W10sVz0wLE1hKU5hW1crK109T2E7Vz0wO2ZvcihQYT1OYS5sZW5ndGg7VzxQYTsrK1cpT2E9TmFbV10sYmEoIlpsaWIuRGVmbGF0ZS5Db21wcmVzc2lvblR5cGUuIitPYSxNYVtPYV0pO30pLmNhbGwobW9kdWxlLmV4cG9ydHMpOyAKICAgIH0gKGRlZmxhdGVfbWluKSk7CgogICAgdmFyIGRlZmxhdGVfbWluRXhwb3J0cyA9IGRlZmxhdGVfbWluLmV4cG9ydHM7CiAgICB2YXIgWkxpYkRlZmxhdGUgPSAvKkBfX1BVUkVfXyovZ2V0RGVmYXVsdEV4cG9ydEZyb21DanMoZGVmbGF0ZV9taW5FeHBvcnRzKTsKCiAgICBmdW5jdGlvbiB0b1VURjhBcnJheShzdHIpIHsKICAgICAgICB2YXIgdXRmOCA9IFtdOwogICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgc3RyLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgIHZhciBjaGFyY29kZSA9IHN0ci5jaGFyQ29kZUF0KGkpOwogICAgICAgICAgICBpZiAoY2hhcmNvZGUgPCAweDgwKQogICAgICAgICAgICAgICAgdXRmOC5wdXNoKGNoYXJjb2RlKTsKICAgICAgICAgICAgZWxzZSBpZiAoY2hhcmNvZGUgPCAweDgwMCkgewogICAgICAgICAgICAgICAgdXRmOC5wdXNoKDB4YzAgfCAoY2hhcmNvZGUgPj4gNiksIDB4ODAgfCAoY2hhcmNvZGUgJiAweDNmKSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZSBpZiAoY2hhcmNvZGUgPCAweGQ4MDAgfHwgY2hhcmNvZGUgPj0gMHhlMDAwKSB7CiAgICAgICAgICAgICAgICB1dGY4LnB1c2goMHhlMCB8IChjaGFyY29kZSA+PiAxMiksIDB4ODAgfCAoKGNoYXJjb2RlID4+IDYpICYgMHgzZiksIDB4ODAgfCAoY2hhcmNvZGUgJiAweDNmKSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZSB7CiAgICAgICAgICAgICAgICAvLyBzdXJyb2dhdGUgcGFpcgogICAgICAgICAgICAgICAgaSsrOwogICAgICAgICAgICAgICAgLy8gVVRGLTE2IGVuY29kZXMgMHgxMDAwMC0weDEwRkZGRiBieQogICAgICAgICAgICAgICAgLy8gc3VidHJhY3RpbmcgMHgxMDAwMCBhbmQgc3BsaXR0aW5nIHRoZQogICAgICAgICAgICAgICAgLy8gMjAgYml0cyBvZiAweDAtMHhGRkZGRiBpbnRvIHR3byBoYWx2ZXMKICAgICAgICAgICAgICAgIGNoYXJjb2RlID0gMHgxMDAwMCArICgoKGNoYXJjb2RlICYgMHgzZmYpIDw8IDEwKSB8CiAgICAgICAgICAgICAgICAgICAgKHN0ci5jaGFyQ29kZUF0KGkpICYgMHgzZmYpKTsKICAgICAgICAgICAgICAgIHV0ZjgucHVzaCgweGYwIHwgKGNoYXJjb2RlID4+IDE4KSwgMHg4MCB8ICgoY2hhcmNvZGUgPj4gMTIpICYgMHgzZiksIDB4ODAgfCAoKGNoYXJjb2RlID4+IDYpICYgMHgzZiksIDB4ODAgfCAoY2hhcmNvZGUgJiAweDNmKSk7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIHV0Zjg7CiAgICB9CgogICAgdmFyIFpsaWIgPSB7CiAgICAgICAgJ0RlZmxhdGUnOiBaTGliRGVmbGF0ZS5abGliLkRlZmxhdGUKICAgIH07CiAgICB2YXIgRW5jb2RpbmcgPSB7CiAgICAgICAgJ2Jhc2U2NFVybCc6ICdiYXNlNjR1cmwnLAogICAgICAgICdiaW5hcnknOiAnYmluYXJ5JwogICAgfTsKICAgIGZ1bmN0aW9uIGNvbXByZXNzKGpzb25fb2JqLCBlbmNvZGluZykgewogICAgICAgIGlmICghZW5jb2RpbmcpIHsKICAgICAgICAgICAgZW5jb2RpbmcgPSBFbmNvZGluZy5iYXNlNjRVcmw7CiAgICAgICAgfQogICAgICAgIC8qIC0tIFRoaXMgaXMgWkxJQiAqLwogICAgICAgIHZhciBjb21wcmVzc0RhdGEgPSB0b1VURjhBcnJheSh0eXBlb2YganNvbl9vYmogPT09ICdzdHJpbmcnID8ganNvbl9vYmogOiBKU09OLnN0cmluZ2lmeShqc29uX29iaikpOwogICAgICAgIHZhciBkZWZsYXRlID0gbmV3IFpsaWIuRGVmbGF0ZShjb21wcmVzc0RhdGEpOwogICAgICAgIHZhciBjb21wcmVzc2VkQnl0ZXMgPSBkZWZsYXRlLmNvbXByZXNzKCk7CiAgICAgICAgaWYgKGVuY29kaW5nID09PSBFbmNvZGluZy5iYXNlNjRVcmwpIHsKICAgICAgICAgICAgcmV0dXJuIGI2NC51aW50OFRvQmFzZTY0KGNvbXByZXNzZWRCeXRlcyk7CiAgICAgICAgfQogICAgICAgIGVsc2UgewogICAgICAgICAgICByZXR1cm4gY29tcHJlc3NlZEJ5dGVzOwogICAgICAgIH0KICAgIH0KCiAgICB2YXIgT05FX0hVTkRSRURfTUJfSU5fQllURVMgPSAxMDAgKiAxMDI0ICogMTAyNDsKICAgIGZ1bmN0aW9uIG1hdGNoSG9zdGVkUmVzb3VyY2VzKHJlY29yZGluZ0V2ZW50LCBzdHJpbmdpZmllZFJlY29yZGluZ1BheWxvYWQpIHsKICAgICAgICB2YXIgZm9udFVSTFJlZ2V4ID0gL2h0dHBzOlwvXC9bXlxzXSs/XC4od29mZnx3b2ZmMnx0dGZ8b3RmfGVvdClcYi9nOwogICAgICAgIHZhciBob3N0ZWRSZXNvdXJjZXMgPSBzdHJpbmdpZmllZFJlY29yZGluZ1BheWxvYWQubWF0Y2goZm9udFVSTFJlZ2V4KTsKICAgICAgICByZXR1cm4gewogICAgICAgICAgICAndHlwZSc6ICdyZWNvcmRpbmcnLAogICAgICAgICAgICAndmlzaXRvcklkJzogcmVjb3JkaW5nRXZlbnQudmlzaXRvcklkLAogICAgICAgICAgICAnYWNjb3VudElkJzogcmVjb3JkaW5nRXZlbnQuYWNjb3VudElkLAogICAgICAgICAgICAna2V5RnJhbWUnOiBmYWxzZSwKICAgICAgICAgICAgJ2xhc3RLZXlGcmFtZSc6IHJlY29yZGluZ0V2ZW50Lmxhc3RLZXlGcmFtZSwKICAgICAgICAgICAgJ3JlY29yZGluZ0lkJzogcmVjb3JkaW5nRXZlbnQucmVjb3JkaW5nSWQsCiAgICAgICAgICAgICdyZWNvcmRpbmdTZXNzaW9uSWQnOiByZWNvcmRpbmdFdmVudC5yZWNvcmRpbmdTZXNzaW9uSWQsCiAgICAgICAgICAgICd1cmwnOiByZWNvcmRpbmdFdmVudC51cmwsCiAgICAgICAgICAgICdzdWJUeXBlJzogJ2hvc3RlZFJlc291cmNlcycsCiAgICAgICAgICAgICdyZWNvcmRpbmdQYXlsb2FkJzogW10sCiAgICAgICAgICAgICdyZWNvcmRpbmdQYXlsb2FkTWV0YWRhdGEnOiBbXSwKICAgICAgICAgICAgJ3NlcXVlbmNlJzogMCwKICAgICAgICAgICAgJ3JlY29yZGluZ1BheWxvYWRDb3VudCc6IDAsCiAgICAgICAgICAgICdob3N0ZWRSZXNvdXJjZXMnOiBob3N0ZWRSZXNvdXJjZXMgfHwgW10KICAgICAgICB9OwogICAgfQogICAgLy8ga2VlcCBpbiBtaW5kIGNoYW5nZXMgaGVyZSBtYXkgbmVlZCBhZGRyZXNzaW5nIGluIHRoZSBleHRlbnNpb24gd29ya2VyIHByb3h5IGFzIHdlbGwKICAgIHNlbGYub25tZXNzYWdlID0gZnVuY3Rpb24gKGUpIHsKICAgICAgICB0cnkgewogICAgICAgICAgICBpZiAoZS5kYXRhLnVybCAmJiBlLmRhdGEucGF5bG9hZCkgewogICAgICAgICAgICAgICAgdmFyIF9hID0gZS5kYXRhLCB1cmwgPSBfYS51cmwsIHBheWxvYWQgPSBfYS5wYXlsb2FkLCBzaG91bGRDYWNoZVJlc291cmNlcyA9IF9hLnNob3VsZENhY2hlUmVzb3VyY2VzOwogICAgICAgICAgICAgICAgdmFyIHNlcXVlbmNlXzEgPSBwYXlsb2FkLnNlcXVlbmNlOwogICAgICAgICAgICAgICAgdmFyIHN0cmluZ2lmaWVkUmVjb3JkaW5nUGF5bG9hZCA9IEpTT04uc3RyaW5naWZ5KHBheWxvYWQucmVjb3JkaW5nUGF5bG9hZCk7CiAgICAgICAgICAgICAgICAvLyBjYWxjdWxhdGUgYW5kIHBvc3QgYmFjayB0aGUgcmVjb3JkaW5nIHBheWxvYWQgc2l6ZSBiZWZvcmUgdGhlIHBheWxvYWQgaXMgY29tcHJlc3NlZAogICAgICAgICAgICAgICAgdmFyIHJlY29yZGluZ1BheWxvYWRTaXplID0gbmV3IFRleHRFbmNvZGVyKCkuZW5jb2RlKHN0cmluZ2lmaWVkUmVjb3JkaW5nUGF5bG9hZCkubGVuZ3RoOwogICAgICAgICAgICAgICAgdmFyIGV4Y2VlZHNQYXlsb2FkU2l6ZUxpbWl0ID0gcmVjb3JkaW5nUGF5bG9hZFNpemUgPj0gT05FX0hVTkRSRURfTUJfSU5fQllURVM7CiAgICAgICAgICAgICAgICBwb3N0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICAgICAgJ3R5cGUnOiAncmVjb3JkaW5nUGF5bG9hZFNpemUnLAogICAgICAgICAgICAgICAgICAgICdyZWNvcmRpbmdQYXlsb2FkU2l6ZSc6IHJlY29yZGluZ1BheWxvYWRTaXplLAogICAgICAgICAgICAgICAgICAgICdleGNlZWRzUGF5bG9hZFNpemVMaW1pdCc6IGV4Y2VlZHNQYXlsb2FkU2l6ZUxpbWl0CiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgIC8vIGRvbid0IGF0dGVtcHQgdG8gc2VuZCB0aGUgcGF5bG9hZCBpZiBpdCBleGNlZWRzIHRoZSBhbGxvd2VkIGxpbWl0CiAgICAgICAgICAgICAgICBpZiAoZXhjZWVkc1BheWxvYWRTaXplTGltaXQpCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgaWYgKHNob3VsZENhY2hlUmVzb3VyY2VzKSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIGhvc3RlZFJlc291cmNlc0V2ZW50ID0gbWF0Y2hIb3N0ZWRSZXNvdXJjZXMocGF5bG9hZCwgc3RyaW5naWZpZWRSZWNvcmRpbmdQYXlsb2FkKTsKICAgICAgICAgICAgICAgICAgICBpZiAoaG9zdGVkUmVzb3VyY2VzRXZlbnQuaG9zdGVkUmVzb3VyY2VzLmxlbmd0aCkgewogICAgICAgICAgICAgICAgICAgICAgICBwb3N0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAndHlwZSc6ICdob3N0ZWRSZXNvdXJjZXMnLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgJ2hvc3RlZFJlc291cmNlc0V2ZW50JzogaG9zdGVkUmVzb3VyY2VzRXZlbnQKICAgICAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgcGF5bG9hZC5yZWNvcmRpbmdTaXplID0gcmVjb3JkaW5nUGF5bG9hZFNpemU7CiAgICAgICAgICAgICAgICB2YXIgYm9keSA9IGNvbXByZXNzKHBheWxvYWQsICdiaW5hcnknKTsKICAgICAgICAgICAgICAgIC8vIHdlIHdhbnQgdG8gY2FsY3VsYXRlIGN0IChjdXJyZW50IHRpbWUpIGFzIGNsb3NlIGFzIHdlIGNhbiB0byB0aGUgYWN0dWFsIFBPU1QgcmVxdWVzdAogICAgICAgICAgICAgICAgLy8gc28gdGhhdCBpdCdzIGFzIGFjY3VyYXRlIGFzIHBvc3NpYmxlCiAgICAgICAgICAgICAgICB1cmwgPSAiIi5jb25jYXQodXJsLCAiJmN0PSIpLmNvbmNhdChuZXcgRGF0ZSgpLmdldFRpbWUoKSk7CiAgICAgICAgICAgICAgICBmZXRjaCh1cmwsIHsKICAgICAgICAgICAgICAgICAgICAnbWV0aG9kJzogJ1BPU1QnLAogICAgICAgICAgICAgICAgICAgICdib2R5JzogYm9keQogICAgICAgICAgICAgICAgfSkudGhlbihmdW5jdGlvbiAocmVzcG9uc2UpIHsKICAgICAgICAgICAgICAgICAgICBpZiAocmVzcG9uc2Uuc3RhdHVzIDwgMjAwIHx8IHJlc3BvbnNlLnN0YXR1cyA+PSAzMDApIHsKICAgICAgICAgICAgICAgICAgICAgICAgcG9zdE1lc3NhZ2UoewogICAgICAgICAgICAgICAgICAgICAgICAgICAgJ2Vycm9yJzogbmV3IEVycm9yKCJyZWNlaXZlZCBzdGF0dXMgY29kZSAiLmNvbmNhdChyZXNwb25zZS5zdGF0dXMsICI6ICIpLmNvbmNhdChyZXNwb25zZS5zdGF0dXNUZXh0KSksCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAnc3RhdHVzJzogcmVzcG9uc2Uuc3RhdHVzLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgc2VxdWVuY2U6IHNlcXVlbmNlXzEKICAgICAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIGVsc2UgewogICAgICAgICAgICAgICAgICAgICAgICBwb3N0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZXF1ZW5jZTogc2VxdWVuY2VfMQogICAgICAgICAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9KVsnY2F0Y2gnXShmdW5jdGlvbiAoZSkgewogICAgICAgICAgICAgICAgICAgIHBvc3RNZXNzYWdlKHsKICAgICAgICAgICAgICAgICAgICAgICAgJ2Vycm9yJzogZSwKICAgICAgICAgICAgICAgICAgICAgICAgc2VxdWVuY2U6IHNlcXVlbmNlXzEKICAgICAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGNhdGNoIChlKSB7CiAgICAgICAgICAgIHBvc3RNZXNzYWdlKHsKICAgICAgICAgICAgICAgICdlcnJvcic6IGUKICAgICAgICAgICAgfSk7CiAgICAgICAgfQogICAgfTsKCiAgICBleHBvcnRzLm1hdGNoSG9zdGVkUmVzb3VyY2VzID0gbWF0Y2hIb3N0ZWRSZXNvdXJjZXM7CgogICAgcmV0dXJuIGV4cG9ydHM7Cgp9KSh7fSk7Ci8vIyBzb3VyY2VNYXBwaW5nVVJMPXdvcmtlci5qcy5tYXAKCg==",null,!(SessionRecorder.prototype.handleTabIdChange=function(){this.send(),this.clearSessionInfo(),this.snapshot()}));function createReplayPlugin(){return errorLogger(new SessionRecorder(record,WorkerFactory))}export{Feedback,GuideMarkdown,createReplayPlugin as Replay,TextCapture,VocPortal,loadAgent};
|