@pendo/agent 2.302.0 → 2.302.1

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.
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license https://agent.pendo.io/licenses
3
3
  */
4
- function loadAgent(u){d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");var d,c={uint8ToBase64:function(e){var t,n,i,r=e.length%3,o="";for(t=0,i=e.length-r;t<i;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],o+=function(e){return d[e>>18&63]+d[e>>12&63]+d[e>>6&63]+d[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=d[n>>2])+d[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=d[n>>10])+d[n>>4&63])+d[n<<2&63]}return o}},Gt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var G,o,B,z,j,H,q,e={exports:{}};function W(e){e?(H[0]=H[16]=H[1]=H[2]=H[3]=H[4]=H[5]=H[6]=H[7]=H[8]=H[9]=H[10]=H[11]=H[12]=H[13]=H[14]=H[15]=0,this.blocks=H):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}n=e,G="object"==typeof window?window:{},t=!G.JS_SHA1_NO_COMMON_JS&&n.exports,o="0123456789abcdef".split(""),B=[-2147483648,8388608,32768,128],z=[24,16,8,0],j=["hex","array","digest","arrayBuffer"],H=[],q=function(t){return function(e){return new W(!0).update(e)[t]()}},W.prototype.update=function(e){if(!this.finalized){for(var t,n,i="string"!=typeof e,r=0,o=(e=i&&e.constructor===G.ArrayBuffer?new Uint8Array(e):e).length||0,a=this.blocks;r<o;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),i)for(n=this.start;r<o&&n<64;++r)a[n>>2]|=e[r]<<z[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<z[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<z[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<z[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<z[3&n++],a[n>>2]|=(128|t>>12&63)<<z[3&n++]),a[n>>2]|=(128|t>>6&63)<<z[3&n++]),a[n>>2]|=(128|63&t)<<z[3&n++]);this.lastByteIndex=n,this.bytes+=n-this.start,64<=n?(this.block=a[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return 4294967295<this.bytes&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},W.prototype.finalize=function(){var e,t;this.finalized||(this.finalized=!0,e=this.blocks,t=this.lastByteIndex,e[16]=this.block,e[t>>2]|=B[3&t],this.block=e[16],56<=t&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash())},W.prototype.hash=function(){for(var e,t=this.h0,n=this.h1,i=this.h2,r=this.h3,o=this.h4,a=this.blocks,s=16;s<80;++s)e=a[s-3]^a[s-8]^a[s-14]^a[s-16],a[s]=e<<1|e>>>31;for(s=0;s<20;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n&i|~n&r)+o+1518500249+a[s]<<0)<<5|o>>>27)+(t&(n=n<<30|n>>>2)|~t&i)+r+1518500249+a[s+1]<<0)<<5|r>>>27)+(o&(t=t<<30|t>>>2)|~o&n)+i+1518500249+a[s+2]<<0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|~r&t)+n+1518500249+a[s+3]<<0)<<5|n>>>27)+(i&(r=r<<30|r>>>2)|~i&o)+t+1518500249+a[s+4]<<0,i=i<<30|i>>>2;for(;s<40;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n^i^r)+o+1859775393+a[s]<<0)<<5|o>>>27)+(t^(n=n<<30|n>>>2)^i)+r+1859775393+a[s+1]<<0)<<5|r>>>27)+(o^(t=t<<30|t>>>2)^n)+i+1859775393+a[s+2]<<0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^t)+n+1859775393+a[s+3]<<0)<<5|n>>>27)+(i^(r=r<<30|r>>>2)^o)+t+1859775393+a[s+4]<<0,i=i<<30|i>>>2;for(;s<60;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n&i|n&r|i&r)+o-1894007588+a[s]<<0)<<5|o>>>27)+(t&(n=n<<30|n>>>2)|t&i|n&i)+r-1894007588+a[s+1]<<0)<<5|r>>>27)+(o&(t=t<<30|t>>>2)|o&n|t&n)+i-1894007588+a[s+2]<<0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|r&t|o&t)+n-1894007588+a[s+3]<<0)<<5|n>>>27)+(i&(r=r<<30|r>>>2)|i&o|r&o)+t-1894007588+a[s+4]<<0,i=i<<30|i>>>2;for(;s<80;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n^i^r)+o-899497514+a[s]<<0)<<5|o>>>27)+(t^(n=n<<30|n>>>2)^i)+r-899497514+a[s+1]<<0)<<5|r>>>27)+(o^(t=t<<30|t>>>2)^n)+i-899497514+a[s+2]<<0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^t)+n-899497514+a[s+3]<<0)<<5|n>>>27)+(i^(r=r<<30|r>>>2)^o)+t-899497514+a[s+4]<<0,i=i<<30|i>>>2;this.h0=this.h0+t<<0,this.h1=this.h1+n<<0,this.h2=this.h2+i<<0,this.h3=this.h3+r<<0,this.h4=this.h4+o<<0},W.prototype.toString=W.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4;return o[e>>28&15]+o[e>>24&15]+o[e>>20&15]+o[e>>16&15]+o[e>>12&15]+o[e>>8&15]+o[e>>4&15]+o[15&e]+o[t>>28&15]+o[t>>24&15]+o[t>>20&15]+o[t>>16&15]+o[t>>12&15]+o[t>>8&15]+o[t>>4&15]+o[15&t]+o[n>>28&15]+o[n>>24&15]+o[n>>20&15]+o[n>>16&15]+o[n>>12&15]+o[n>>8&15]+o[n>>4&15]+o[15&n]+o[i>>28&15]+o[i>>24&15]+o[i>>20&15]+o[i>>16&15]+o[i>>12&15]+o[i>>8&15]+o[i>>4&15]+o[15&i]+o[r>>28&15]+o[r>>24&15]+o[r>>20&15]+o[r>>16&15]+o[r>>12&15]+o[r>>8&15]+o[r>>4&15]+o[15&r]},W.prototype.array=W.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4;return[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,r>>24&255,r>>16&255,r>>8&255,255&r]},W.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(20),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),e},i=function(){var t=q("hex");t.create=function(){return new W},t.update=function(e){return t.create().update(e)};for(var e=0;e<j.length;++e){var n=j[e];t[n]=q(n)}return t}(),t?n.exports=i:G.sha1=i;var V=p(e.exports);let J;const $={createScriptURL:e=>e,createHTML:e=>e};function K(e){return J||(J=e.trustedTypesPolicy||(window.trustedTypes&&"function"==typeof window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("pendo",$):$),e.trustedTypesPolicy=J),J}var E,Z="stagingServerHashes",X={};function Y(e){return e.loadAsModule}function Q(e){return"staging"===e.environmentName}function ee(e){return"extension"===e.installType}function te(t=[],n){var i=/^https:\/\/[\w\-.]*cdn[\w\-.]*\.(pendo-dev\.com|pendo\.io)\/agent\/static\/([\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12}|PENDO_API_KEY)\/pendo\.js$/g;for(let e=0;e<t.length;e++){var r=t[e];if(i.test(r.src)||r.id==="pendo-"+n)return r}}function ne(e,t,n){e=function(e=[]){if(e=te(e))return e.src.replace(/\.js$/,"-staging.js")}(document.getElementsByTagName("script"))||e.stagingAgentUrl;return n&&(n="unminified.js",t&&(n="staging-"+n),e=e&&e.replace(/staging\.js$/,n)),e}function ie(n,i=[],r=[]){if(n){if(0<r.length){e=n;var o=c.uint8ToBase64(V.create().update(e).digest());for(let e=0,t=r.length;e<t;++e)if(r[e]===o)return!0}var e;if(0<i.length)for(let t=0,e=i.length;t<e;++t){let e=i[t];if((e="string"==typeof(e="object"==typeof e&&e.value?e.regexp?(e.value.startsWith("/")&&e.value.endsWith("/")&&(e.value=e.value.substring(1,e.value.length-1)),new RegExp(e.value)):e.value:e)?new RegExp("^"+e+"$"):e)instanceof RegExp&&e.test(n))return!0}}return!1}function re(e,t){return!!(e=e||X)&&(!!Q(e)||ie((t=t||window.location).host,e.stagingServers,e[Z]))}var oe=["initialize","identify","updateOptions","pageLoad","track","clearSession"];function ae(e,t,n){(e._q=e._q||[])["initialize"===t?"unshift":"push"]([].concat.apply([t],n))}function se(e){if(!e._q)for(var t=oe,n=0,i=t.length;n<i;++n)!function(e,t){t[e]=t[e]||function(){ae(t,e,arguments)}}(t[n],e)}function ue(e,t,n){if(!ee(i=e)&&!Q(i)&&re(i)){i=ne(e,!0,n);if(i)return se(t),ce(i,t),!0}var i;return!1}function de(e,t,n){if(r=n,!ee(i=e)&&!i.unminified&&r){i=ne(e,!1,n);if(i)return se(t),ce(i,t),!0}var i,r;return!1}function ce(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 le(e){X=e}function pe(){return void 0===u?{}:u}function he(e){return X[e]}fe(window.setTimeout,window);function fe(e,t){return"function"==typeof e.bind?e.bind(t):e}var ge,Ut=function(e){var t="setTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return fe(e[t],e)}(window),_=p(function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof Gt&&Gt.global===Gt&&Gt||Function("return this")()||{},i=Array.prototype,D=Object.prototype,F="undefined"!=typeof Symbol?Symbol.prototype:null,U=i.push,u=i.slice,l=D.toString,G=D.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),B=Array.isArray,z=Object.keys,j=Object.create,H=t&&ArrayBuffer.isView,q=isNaN,W=isFinite,V=!{toString:null}.propertyIsEnumerable("toString"),J=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],$=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 Z(e){return!0===e||!1===e||"[object Boolean]"===l.call(e)}function r(e){var t="[object "+e+"]";return function(e){return l.call(e)===t}}var X=r("String"),Y=r("Number"),Q=r("Date"),ee=r("RegExp"),te=r("Error"),ne=r("Symbol"),ie=r("ArrayBuffer"),a=r("Function"),e=e.document&&e.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof e?function(e){return"function"==typeof e||!1}:a,e=r("Object"),re=n&&e(new DataView(new ArrayBuffer(8))),a="undefined"!=typeof Map&&e(new Map),n=r("DataView");var h=re?function(e){return null!=e&&p(e.getInt8)&&ie(e.buffer)}:n,f=B||r("Array");function g(e,t){return null!=e&&G.call(e,t)}var oe=r("Arguments"),ae=(!function(){oe(arguments)||(oe=function(e){return g(e,"callee")})}(),oe);function se(e){return Y(e)&&q(e)}function ue(e){return function(){return e}}function de(t){return function(e){e=t(e);return"number"==typeof e&&0<=e&&e<=$}}function ce(t){return function(e){return null==e?void 0:e[t]}}var m=ce("byteLength"),le=de(m),pe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var he=t?function(e){return H?H(e)&&!h(e):le(e)&&pe.test(l.call(e))}:ue(!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=J.length,i=e.constructor,r=p(i)&&i.prototype||D,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=J[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function y(e){if(!o(e))return[];if(z)return z(e);var t,n=[];for(t in e)g(e,t)&&n.push(t);return 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 F.valueOf.call(e)===F.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 u,d=y(e);if(s=d.length,y(t).length!==s)return!1;for(;s--;)if(u=d[s],!g(t,u)||!ye(e[u],t[u],n,i))return!1}n.pop();i.pop();return!0}(e,t,n,i))}function d(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=d(e);if(v(t))return!1;for(var n=0;n<r;n++)if(!p(e[i[n]]))return!1;return i!==Se||!p(e[we])}}var we="forEach",e=["clear","delete"],n=["get","has","set"],B=e.concat(we,n),Se=e.concat(n),t=["add"].concat(e,we,"has"),n=a?be(B):r("Map"),e=a?be(Se):r("WeakMap"),B=a?be(t):r("Set"),a=r("WeakSet");function w(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function Ee(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Ie(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function _e(u,d){return function(e){var t=arguments.length;if(d&&(e=Object(e)),!(t<2||null==e))for(var n=1;n<t;n++)for(var i=arguments[n],r=u(i),o=r.length,a=0;a<o;a++){var s=r[a];d&&void 0!==e[s]||(e[s]=i[s])}return e}}var Ce=_e(d),s=_e(y),xe=_e(d,!0);function Te(e){var t;return o(e)?j?j(e):((t=function(){}).prototype=e,e=new t,t.prototype=null,e):{}}function ke(e){return f(e)?e:[e]}function S(e){return b.toPath(e)}function Ae(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function Re(e,t,n){e=Ae(e,S(t));return K(e)?n:e}function Oe(e){return e}function E(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=S(t),function(e){return Ae(e,t)}}function I(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)?I(e,t,n):(o(e)&&!f(e)?E:Ne)(e)}function Le(e,t){return Me(e,t,Infinity)}function _(e,t,n){return b.iteratee!==Le?b.iteratee(e,t):Me(e,t,n)}function Pe(){}function De(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}b.toPath=ke,b.iteratee=Le;var C=Date.now||function(){return(new Date).getTime()};function Fe(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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Ue=Fe(t),t=Fe(Ee(t)),Ge=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Be=/(.)^/,ze={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},je=/\\|'|\r|\n|\u2028|\u2029/g;function He(e){return"\\"+ze[e]}var qe=/^\s*(\w|\$)+\s*$/;var We=0;function Ve(e,t,n,i,r){return i instanceof t?(i=Te(e.prototype),o(t=e.apply(i,r))?t:i):e.apply(n,r)}var x=c(function(r,o){var a=x.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}),Je=(x.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")})),T=de(v);function k(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=Infinity;for(var r=i.length,o=0,a=v(e);o<a;o++){var s=e[o];if(T(s)&&(f(s)||ae(s)))if(1<t)k(s,t-1,n,i),r=i.length;else for(var u=0,d=s.length;u<d;)i[r++]=s[u++];else n||(i[r++]=s)}return i}var $e=c(function(e,t){var n=(t=k(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Je(e[i],e)}return e});var Ke=c(function(e,t,n){return Ut(function(){return e.apply(null,n)},t)}),Ze=x(Ke,b,1);function Xe(e){return function(){return!e.apply(this,arguments)}}function Ye(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=x(Ye,2);function et(e,t,n){t=_(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=_(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=_(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(u.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 ut(e,t,n){t=(T(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function A(e,t,n){if(t=I(t,n),T(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else for(var i=y(e),r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e);return e}function R(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=Array(r),a=0;a<r;a++){var s=i?i[a]:a;o[a]=t(e[s],s,e)}return o}function dt(p){return function(e,t,n,i){var r=3<=arguments.length,o=e,a=I(t,i,4),s=n,u=!T(o)&&y(o),d=(u||o).length,c=0<p?0:d-1;for(r||(s=o[u?u[c]:c],c+=p);0<=c&&c<d;c+=p){var l=u?u[c]:c;s=a(s,o[l],l,o)}return s}}var ct=dt(1),lt=dt(-1);function O(e,i,t){var r=[];return i=_(i,t),A(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(!t(e[a],a,e))return!1}return!0}function ht(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(t(e[a],a,e))return!0}return!1}function N(e,t,n,i){return T(e)||(e=w(e)),0<=at(e,t,n="number"==typeof n&&!i?n:0)}var ft=c(function(e,n,i){var r,o;return p(n)?o=n:(n=S(n),r=n.slice(0,-1),n=n[n.length-1]),R(e,function(e){var t=o;if(!t){if(null==(e=r&&r.length?Ae(e,r):e))return;t=e[n]}return null==t?t:t.apply(e,i)})});function gt(e,t){return R(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,u=(e=T(e)?e:w(e)).length;s<u;s++)null!=(n=e[s])&&o<n&&(o=n);else i=_(i,t),A(e,function(e,t,n){r=i(e,t,n),(a<r||r===-Infinity&&o===-Infinity)&&(o=e,a=r)});return o}var vt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function yt(e){return e?f(e)?u.call(e):X(e)?e.match(vt):T(e)?R(e,Oe):w(e):[]}function bt(e,t,n){if(null==t||n)return(e=T(e)?e:w(e))[De(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=De(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=_(i,e),A(n,function(e,t){t=i(e,t,n);o(r,e,t)}),r}}var wt=M(function(e,t,n){g(e,n)?e[n].push(t):e[n]=[t]}),St=M(function(e,t,n){e[n]=t}),Et=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),It=M(function(e,t,n){e[n?0:1].push(t)},!0);function _t(e,t,n){return t in n}var Ct=c(function(e,t){var n={},i=t[0];if(null!=e){p(i)?(1<t.length&&(i=I(i,t[1])),t=d(e)):(i=_t,t=k(t,!1,!1),e=Object(e));for(var r=0,o=t.length;r<o;r++){var a=t[r],s=e[a];i(s,a,e)&&(n[a]=s)}}return n}),xt=c(function(e,n){var t,i=n[0];return p(i)?(i=Xe(i),1<n.length&&(t=n[1])):(n=R(k(n,!1,!1),String),i=function(e,t){return!N(n,t)}),Ct(e,i,t)});function Tt(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function kt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Tt(e,e.length-t)}function L(e,t,n){return u.call(e,null==t||n?1:t)}var At=c(function(e,t){return t=k(t,!0,!0),O(e,function(e){return!N(t,e)})}),Rt=c(function(e,t){return At(e,t)});function Ot(e,t,n,i){Z(t)||(i=n,n=t,t=!1),null!=n&&(n=_(n,i));for(var r=[],o=[],a=0,s=v(e);a<s;a++){var u=e[a],d=n?n(u,a,e):u;t&&!n?(a&&o===d||r.push(u),o=d):n?N(o,d)||(o.push(d),r.push(u)):N(r,u)||r.push(u)}return r}var Nt=c(function(e){return Ot(k(e,!0,!0))});function Mt(e){for(var t=e&&mt(e,v).length||0,n=Array(t),i=0;i<t;i++)n[i]=gt(e,i);return n}var Lt=c(Mt);function Pt(e,t){return e._chain?b(t).chain():t}function Dt(n){return A(Ie(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return U.apply(e,arguments),Pt(this,t.apply(b,e))}}),b}A(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=i[t];b.prototype[t]=function(){var e=this._wrapped;return null!=e&&(n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0]),Pt(this,e)}}),A(["concat","join","slice"],function(e){var t=i[e];b.prototype[e]=function(){var e=this._wrapped;return Pt(this,e=null!=e?t.apply(e,arguments):e)}});var P=Dt({__proto__:null,VERSION:"1.13.6",restArguments:c,isObject:o,isNull:function(e){return null===e},isUndefined:K,isBoolean:Z,isElement:function(e){return!(!e||1!==e.nodeType)},isString:X,isNumber:Y,isDate:Q,isRegExp:ee,isError:te,isSymbol:ne,isArrayBuffer:ie,isDataView:h,isArray:f,isFunction:p,isArguments:ae,isFinite:function(e){return!ne(e)&&W(e)&&!isNaN(parseFloat(e))},isNaN:se,isTypedArray:he,isEmpty:function(e){var t;return null==e||("number"==typeof(t=v(e))&&(f(e)||X(e)||ae(e))?0===t:0===v(y(e)))},isMatch:ge,isEqual:function(e,t){return ye(e,t)},isMap:n,isWeakMap:e,isSet:B,isWeakSet:a,keys:y,allKeys:d,values:w,pairs:function(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i},invert:Ee,functions:Ie,methods:Ie,extend:Ce,extendOwn:s,assign:s,defaults:xe,create:function(e,t){return e=Te(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():Ce({},e):e},tap:function(e,t){return t(e),e},get:Re,has:function(e,t){for(var n=(t=S(t)).length,i=0;i<n;i++){var r=t[i];if(!g(e,r))return!1;e=e[r]}return!!n},mapObject:function(e,t,n){t=_(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:ue,noop:Pe,toPath:ke,property:Ne,propertyOf:function(t){return null==t?Pe:function(e){return Re(t,e)}},matcher:E,matches:E,times:function(e,t,n){var i=Array(Math.max(0,e));t=I(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:De,now:C,escape:Ue,unescape:t,templateSettings:Ge,template:function(o,e,t){e=xe({},e=!e&&t?t:e,b.templateSettings);var t=RegExp([(e.escape||Be).source,(e.interpolate||Be).source,(e.evaluate||Be).source].join("|")+"|$","g"),a=0,s="__p+='";if(o.replace(t,function(e,t,n,i,r){return s+=o.slice(a,r).replace(je,He),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(!qe.test(t))throw new Error("variable is not a bare identifier: "+t)}else s="with(obj||{}){\n"+s+"}\n",t="obj";s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{throw new Error("Function constructor not supported")}catch(n){throw n.source=s,n}return(e=function(e){return(void 0).call(this,e,b)}).source="function("+t+"){\n"+s+"}",e},result:function(e,t,n){var i=(t=S(t)).length;if(!i)return p(n)?n.call(e):n;for(var r=0;r<i;r++){var o=null==e?void 0:e[t[r]];void 0===o&&(o=n,r=i),e=p(o)?o.call(e):o}return e},uniqueId:function(e){var t=++We+"";return e?e+t:t},chain:function(e){return(e=b(e))._chain=!0,e},iteratee:Le,partial:x,bind:Je,bindAll:$e,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:Ze,throttle:function(n,i,r){var o,a,s,u,d=0,c=(r=r||{},function(){d=!1===r.leading?0:C(),o=null,u=n.apply(a,s),o||(a=s=null)}),e=function(){var e=C(),t=(d||!1!==r.leading||(d=e),i-(e-d));return a=this,s=arguments,t<=0||i<t?(o&&(clearTimeout(o),o=null),d=e,u=n.apply(a,s),o||(a=s=null)):o||!1===r.trailing||(o=Ut(c,t)),u};return e.cancel=function(){clearTimeout(o),d=0,o=a=s=null},e},debounce:function(t,n,i){var r,o,a,s,u,d=function(){var e=C()-o;e<n?r=Ut(d,n-e):(r=null,i||(s=t.apply(u,a)),r||(a=u=null))},e=c(function(e){return u=this,a=e,o=C(),r||(r=Ut(d,n),i&&(s=t.apply(u,a))),s});return e.cancel=function(){clearTimeout(r),r=a=u=null},e},wrap:function(e,t){return x(t,e)},negate:Xe,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:Ye,once:Qe,findKey:et,findIndex:nt,findLastIndex:it,sortedIndex:rt,indexOf:at,lastIndexOf:st,find:ut,detect:ut,findWhere:function(e,t){return ut(e,E(t))},each:A,forEach:A,map:R,collect:R,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:O,select:O,reject:function(e,t,n){return O(e,Xe(_(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,E(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,u=(e=T(e)?e:w(e)).length;s<u;s++)null!=(n=e[s])&&n<o&&(o=n);else i=_(i,t),A(e,function(e,t,n){((r=i(e,t,n))<a||r===Infinity&&o===Infinity)&&(o=e,a=r)});return o},shuffle:function(e){return bt(e,Infinity)},sample:bt,sortBy:function(e,i,t){var r=0;return i=_(i,t),gt(R(e,function(e,t,n){return{value:e,index:r++,criteria:i(e,t,n)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")},groupBy:wt,indexBy:St,countBy:Et,partition:It,toArray:yt,size:function(e){return null==e?0:(T(e)?e:y(e)).length},pick:Ct,omit:xt,first:kt,head:kt,take:kt,initial:Tt,last:function(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:L(e,Math.max(0,e.length-t))},rest:L,tail:L,drop:L,compact:function(e){return O(e,Boolean)},flatten:function(e,t){return k(e,t,!1)},without:Rt,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:At,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(u.call(e,i,i+=t));return n},mixin:Dt,"default":b}),Ft=P.toPath;return P.mixin({toPath:function(e){return P.isString(e)?e.split("."):Ft(e)}}),P._=P}());function me(e){return!(null==e)}function ve(e){return _.isFunction(e)||_.isRegExp(e)?e:_.isArray(e)?_.map(e,ve):_.isObject(e)?_.reduce(e,function(e,t,n){return e[n]=ve(t),e},{}):e}var b=function(){var i=_.all,r=_.each,o=_.filter,a=_.first,s=_.find,n=_.map,u=_.pluck,d="snippet",c="pendoconfig",l="global",p="default";const h={};function e(e,t=[c],n,i){e&&!h[e]&&(n={name:e,defaultValue:n,supportedSources:t},null!=i&&(n.useAnySource=i),h[e]=n)}e("additionalApiKeys",[c,d]),e("allowedOriginServers"),e("allowedOriginServerHashes"),e("allowMixedApiKeyFrames",[d,c],!0),e("annotateUrl",[d]),e("apiKey",[c,d]),e("assetHost",[d,c]),e("autoFrameInstall",[d,c],!1),e("blockAgentMetadata",[c],!1),e("contentHost",[d,c]),e("cookieDomain",[d,c]),e("dataHost",[d,c]),e("disableAutoInitialize"),e("disableCookies",[d,c]),e("disablePendo",[d,c],!1),e("disablePersistence",[d,c]),e("enableSignedMetadata",[c],!1),e("frameIdentitySync",[d,c],!1),e("frameIdentityTopDownOnly",[d,c],!0),e("forceAnonymous",[d,c],!1),e("identityStorageLifetime",[d,c]),e("identityStorageSuffix",[d,c]),e("ignoreHashRouting",[d,c]),e("initializeImmediately",[d,c],!1),e("installType"),e("localStorageOnly",[d,c]),e("location.pushState",[d,c],!0),e("maxCookieTTLDays",[d,c],Infinity),e("observeShadowRoots",[d,c],!1),e("pendoCore",[c],!0),e("pendoGlobalKey",[c]),e("preferBroadcastChannel",[d,c],!1),e("preferMutationObserver",[d,c],!1),e("preventCookieRefresh"),e("preventUnloadListener",[d,c],!1),e("promotedAgentMetadataConfigurations",[c]),e("queryStringWhitelist",[d]),e("requireSignedMetadata",[c],!1),e("sanitizeUrl",[d]),e("selfHosted"),e("selfHostedAgentUrl",[d,c]),e("sendEventsWithPostOnly",[d,c],!1),e("siblingSelectors"),e("dropAnonymous"),e("allowedText",[d,c],[]),e("analytics.excludeEvents",[d,c],[]),e("analytics.localStorageUnload",[d,c],!1),e("enableDebugEvents",[d,c]),e("eventPropertyConfigurations"),e("eventPropertyMatchParents",[d,c],!0),e("excludeAllText",[c,d],!1,!0),e("excludeNonGuideAnalytics",[d,c],!1),e("htmlAttributeBlacklist"),e("htmlAttributes"),e("interceptElementRemoval",[d,c],!1),e("interceptPreventDefault",[d,c],!0),e("interceptStopPropagation",[d,c],!0),e("syntheticClicks.elementRemoval",[d,c],!1),e("syntheticClicks.targetChanged",[d,c],!0),e("xhrWhitelist"),e("appAutoOrdering",[d,c]),e("cacheGuides",[d,c],!1),e("cacheGuidesTimeout",[c],6e5),e("delayGuides",[d]),e("disableDesigner",[c,d],!1),e("disableDesignerKeyboardShortcut",[c],!1),e("disableGlobalCSS",[d,c],!1),e("disableGuidePseudoStyles",[d,c],!1),e("disableGuides",[d]),e("disablePrefetch",[d,c]),e("enableDesignerKeyboardShortcut",[d]),e("enableGuideTimeout",[c,d],!1),e("guideCssAssetPath"),e("guideSeenTimeoutLength",[c,d],1e4),e("guideTimeout",[d]),e("guideValidation",[d,c],!1),e("guides.attachPoint",[d]),e("guides.delay",[d]),e("guides.disabled",[d]),e("guides.ejectOnTimeout",[d,c],!1),e("guides.globalScripts",[d,c],[]),e("guides.timeout",[d]),e("guides.tooltip.arrowSize",[d]),e("inlineStyleNonce",[d]),e("leaderKey",[d,c],[]),e("preventCodeInjection",[c,d,l],!1),e("previewModeAssetPath"),e("useAssetHostForDesigner",[d,c],!1),e("storage.allowKeys",[d],"*"),e("disableFeedback",[d]),e("disableFeedbackAutoInit"),e("feedbackSettings",[c],{}),e("pendoFeedback",[c],!1),e("crossAppGuideStorageSuffix",[d,c]),e("enableCrossOriginIsolation",[d,c],!1),e("adoptHost"),e("adoptAnalyticsForwarding"),e("agentDebuggerPluginLoader"),e("allowPartnerAnalyticsForwarding",[d],!1),e("adoptPrioritizeAdoptGuides",[c],!1),e("designerAgentPluginsLoader",[c,d]),e("trainingPartner"),e("errorClickLogging",[c],!1),e("enableAllEmbeddedGuideEvents",[c],!1),e("formValidation",[c],!1),e("performanceMetricsEnabled",[d,c],!0);var f={};function g(e){return h[e]||{name:e}}function m(e,t){if(t)return t=t(),me(e=_.get(t.lookup,(t=e,_.get(t,"key")||_.get(t,"name"))))?e:undefined}function v(e,t){var n=m(e,f[t]);return new w(e.name,n,t)}function y(e,t){return t=t||_.get(e,"supportedSources",[d,c,l]),o(n(t,_.partial(v,e)),function(e){return me(e.value)})}function b(e,t,n){var i=g(e),e=new w(e,t=t||_.get(i,"defaultValue",null),p),n=y(i,n);return i.useAnySource&&me(t)?s(n,function(e){return e.value!==t})||e:a(n)||e}function w(e,t,n){this.name=e,this.value=t,this.source=n}function S(){var n=[];return r(h,function(e){var t;n.push({name:e.name,active:b(e.name),conflicts:(e=g(e=e.name),(t=o(y(e),function(e){return e.source!==p})).length<2||i(u(t,"value"),function(e){return e===t[0].value})?[]:t)})}),n}return f[d]=function(){return{lookup:ge||window.pendo_options,name:d}},f[c]=function(){return{lookup:X,name:c}},f[l]=function(){return{lookup:E,name:l}},w.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"},{audit:S,get(e,t){return b(e,t).value},getLocalConfig(e,t){return arguments.length?b(e,t,[d]).value:ve(ge)},getHostedConfig(e,t){return b(e,t,[c]).value},addOption:e,setLocalConfig(e){ge=e},options:()=>u(h,"name"),sources:{SNIPPET_SRC:d,PENDO_CONFIG_SRC:c,GLOBAL_SRC:l,DEFAULT_SRC:p},validate(t){t.groupCollapsed("Validate Config options"),r(S(),function(e){t.log(String(e.active)),0<e.conflicts.length&&(t.warn("Multiple sources found with values for "+e.name),r(e.conflicts,function(e){t.warn(String(e))}))}),t.groupEnd()}}}();const ye="extension",be="native";function we(){return b.get("installType")||pe().installType||be}function Se(){return we()===ye}function Ee(e){return/native/.test(e)}const Ie=e=>{e=_.get(window,e);return e&&Ee(e)};function _e(e,t){return e=e||10,(t=!isNaN(xe)&&(!t||xe<t))&&Ce<e}const Ce=function(e){let t=Te((/msie (\d+)/.exec(ke(e))||[])[1]);isNaN(t)&&(t=Te((/trident\/.*; rv:(\d+)/.exec(ke(e))||[])[1]));return t}(Ae()),xe=function(e,t){let n=Te((/trident\/(\d+)/.exec(ke(e))||[])[1]);isNaN(n)&&7==t&&(n=3);return n}(Ae(),Ce);function Te(e){return parseInt(e,10)}function ke(e){return _.isString(e)?e.toLowerCase():e}function Ae(){return(window.navigator||{}).userAgent}const Re={},Oe=Te((/android (\d+)/.exec(ke(Ae()))||[])[1]),Ne=/Boxee/i.test(Ae()),Me=window.document||{},Le=Me.documentMode;let Pe;var De,Fe=/^(Moz|webkit|O|ms)(?=[A-Z])/,t=Me.body&&Me.body.style;let Ue=!1,Ge=!1;if(t){for(const MS in t)if(De=Fe.exec(MS)){Pe=(Pe=De[0]).substr(0,1).toUpperCase()+Pe.substr(1);break}Pe=Pe||"WebkitOpacity"in t&&"webkit",Ue=!!("transition"in t||Pe+"Transition"in t),Ge=!!("animation"in t||Pe+"Animation"in t),!Oe||Ue&&Ge||(Ue=_.isString(Me.body.style.webkitTransition),Ge=_.isString(Me.body.style.webkitAnimation))}var n=window.chrome&&window.chrome.runtime&&window.chrome.runtime.id;const Be=_.memoize(function Be(){var e=window.history&&window.history.pushState&&window.history.replaceState,t=window.history&&_.isFunction(Object.isFrozen)&&Object.isFrozen(window.history),n=window.history&&_.isFunction(Object.getOwnPropertyDescriptors)&&Object.getOwnPropertyDescriptors(window.history),n=n&&_.get(n,"pushState.writable",!0)&&_.get(n,"replaceState.writable",!0),i=!(Oe<4);return!(!e||t||!n||!i||Ne||Se())});const ze={supportsHistoryApi:Be,supportsHashChange:function(){var e="onhashchange"in window,t=!Le||7<Le;return!(!e||!t||Se())},hasEvent(e){var t;return("input"!=e||9!=Ce)&&(_.isUndefined(Re[e])&&(t=Me.createElement("div"),Re[e]="on"+e in t),Re[e])},vendorPrefix:Pe,transitions:Ue,animations:Ge,android:Oe,msie:Ce,msieDocumentMode:Le,safari:0<=(i=Ae()).indexOf("Safari")&&0<=!i.indexOf("Chrome"),sri:"integrity"in document.createElement("script"),addEventListener:_.isFunction(window.addEventListener),MutationObserver:Ee(window.MutationObserver),isMinimumIEVersion:function(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e},isMobileUserAgent:_.memoize(function(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Ae())}),isChromeExtension:n};var je=function(){return!isNaN(Ce)&&11!=Ce&&"CSS1Compat"!==document.compatMode},He=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,Ce<=9&&(e.arrow.top=6)):"bottom"==e.arrowPosition&&(e.top=t.top-(i+E.TOOLTIP_ARROW_SIZE),e.arrow.top=i-E.TOOLTIP_ARROW_SIZE,10==Ce?e.arrow.top--:Ce<=9&&(e.arrow.top+=4),n=1),"left"==e.arrow.hbias?(e.left=t.left+t.width/2-(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=10+E.TOOLTIP_ARROW_SIZE):"right"==e.arrow.hbias?(e.left=t.left-r+t.width/2+(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=r-3*E.TOOLTIP_ARROW_SIZE-10):(e.left=t.left+t.width/2-r/2,e.arrow.left=r/2-E.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-E.TOOLTIP_ARROW_SIZE),e.arrow.left=r-E.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-E.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e};let qe="",We="",Ve="",Je="",$e="",Ke="",Ze="",Xe="2.302.0_",Ye="2.302.0",Qe="xhr";const et=function(){return je()?Xe+"+quirksmode":Xe};var tt=/^\s+|\s+$/g;function nt(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 it=(it=String.prototype.trim)||function(){return this.replace(tt,"")},e={exports:{}};!function(){var Y=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===Y?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&&u(this)}function u(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?(d[255&e]<<24|d[e>>>8&255]<<16|d[e>>>16&255]<<8|d[e>>>24&255])>>32-t:d[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++]=d[s],s=0,o===r.length)&&(r=u(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]=d[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 d=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,D,n=this.input;switch(this.d){case 0:for(t=0,D=n.length;t<D;){var F,U,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===D,o=Y,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),F=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&F,a[s++]=F>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,U=i.length;o<U;++o)a[s++]=i[o];a.length=s}this.c=s,this.a=a}break;case 1:for(var u,d=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),c=(d.b(1,1,Q),d.b(1,2,Q),re(this,n)),l=0,G=c.length;l<G;l++)if(u=c[l],te.prototype.b.apply(d,ie[u]),256<u)d.b(c[++l],c[++l],Q),d.b(c[++l],5),d.b(c[++l],c[++l],Q);else if(256===u)break;this.a=d.finish(),this.c=this.a.length;break;case ne:var p,h,f,g,m,v,y,B,b,w,S,z,E=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=Array(19),I=ne;for(E.b(1,1,Q),E.b(I,2,Q),p=re(this,n),I=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var _,C,x,T,k,q=h,W=f,A=new(ee?Uint32Array:Array)(q+W),R=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=_=0;N<q;N++)A[_++]=m[N];for(N=0;N<W;N++)A[_++]=v[N];if(!ee)for(N=0,x=O.length;N<x;++N)O[N]=0;for(N=T=0,x=A.length;N<x;N+=_){for(_=1;N+_<x&&A[N+_]===A[N];++_);if(C=_,0===A[N])if(C<3)for(;0<C--;)O[R[T++]=0]++;else for(;0<C;)(k=C-3<(k=C<138?C:138)&&k<C?C-3:k)<=10?(R[T++]=17,R[T++]=k-3,O[17]++):(R[T++]=18,R[T++]=k-11,O[18]++),C-=k;else if(R[T++]=A[N],O[A[N]]++,--C<3)for(;0<C--;)R[T++]=A[N],O[A[N]]++;else for(;0<C;)C-3<(k=C<6?C:6)&&k<C&&(k=C-3),R[T++]=16,R[T++]=k-3,O[16]++,C-=k}for(e=ee?R.subarray(0,T):R.slice(0,T),y=oe(O,7),S=0;S<19;S++)H[S]=y[j[S]];for(g=19;4<g&&0===H[g-1];g--);for(B=ae(y),E.b(h-257,5,Q),E.b(f-1,5,Q),E.b(g-4,4,Q),S=0;S<g;S++)E.b(H[S],3,Q);for(S=0,z=e.length;S<z;S++)if(b=e[S],E.b(B[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}E.b(e[S],w,Q)}for(var M,V,I=[I,m],L=[L,v],J=I[0],$=I[1],K=L[0],Z=L[1],P=0,X=p.length;P<X;++P)if(M=p[P],E.b(J[M],$[M],Q),256<M)E.b(p[++P],p[++P],Q),V=p[++P],E.b(K[V],Z[V],Q),E.b(p[++P],p[++P],Q);else if(256===M)break;this.a=E.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,u=w[e.length];switch(a[s++]=65535&u,a[s++]=u>>16&255,a[s++]=u>>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(u=n,a[s++]=u[0],a[+s]=u[1],a[5]=u[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,u,d,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]===Y&&(p[s]=[]),u=p[s],!(0<g--)){for(;0<u.length&&32768<i-u[0];)u.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<u.length?(d=function(e,t,n){var i,r,o,a,s,u,d=0,c=e.length;a=0,u=n.length;e:for(;a<u;a++){if(i=n[u-a-1],(o=3)<d){for(s=d;3<s;s--)if(e[i+s-1]!==e[t+s-1])continue e;o=d}for(;o<258&&t+o<c&&e[i+o]===e[t+o];)++o;if(d<o&&(r=i,d=o),258===o)break}return new b(d,t-r)}(t,i,u),c?c.length<d.length?(l=t[i-1],h[f++]=l,++m[l],n(d,0)):n(c,-1):d.length<y?c=d:n(d,0)):c?n(c,-1):(l=t[i],h[f++]=l,++m[l])}u.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,u=new c(572),d=new(ee?Uint8Array:Array)(s);if(!ee)for(o=0;o<s;o++)d[o]=0;for(o=0;o<s;++o)0<e[o]&&u.push(o,e[o]);if(n=Array(u.length/2),i=new(ee?Uint32Array:Array)(u.length/2),1===n.length)d[u.pop().index]=1;else{for(o=0,a=u.length/2;o<a;++o)n[o]=u.pop(),i[o]=n[o].value;for(r=function(e,n,t){var i,r,o,a,s,u=new(ee?Uint16Array:Array)(t),d=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(u[t-1]=n,r=0;r<t;++r)f<g?d[r]=0:(d[r]=1,f-=g),f<<=1,u[t-2-r]=(u[t-1-r]/2|0)+n;for(u[0]=d[0],l[0]=Array(u[0]),p[0]=Array(u[0]),r=1;r<t;++r)u[r]>2*u[r-1]+d[r]&&(u[r]=2*u[r-1]+d[r]),l[r]=Array(u[r]),p[r]=Array(u[r]);for(i=0;i<n;++i)c[i]=t;for(o=0;o<u[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===d[t-1]&&(--c[0],++h[t-1]),r=t-2;0<=r;--r){for(a=i=0,s=h[r+1],o=0;o<u[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===d[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)d[n[o].index]=r[o]}return d}function ae(e){for(var t,n,i=new(ee?Uint16Array:Array)(e.length),r=[],o=[],a=0,s=0,u=e.length;s<u;s++)r[e[s]]=1+(0|r[e[s]]);for(s=1,u=16;s<=u;s++)a=(o[s]=a)+(0|r[s])<<1;for(s=0,u=e.length;s<u;s++)for(a=o[e[s]],o[e[s]]+=1,t=i[s]=0,n=e[s];t<n;t++)i[s]=i[s]<<1|1&a,a>>>=1;return i}function f(e,t){this.input=e,this.a=new(ee?Uint8Array:Array)(32768),this.d=S.g;var n,i={};for(n in(t?"number"==typeof t.compressionType:(t={},0))&&(this.d=t.compressionType),t)i[n]=t[n];i.outputBuffer=this.a,this.j=new s(this.input,i)}var g,m,v,y,S=l,E=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,u=a.length;s<u;s++)a[s]=(255&a[s].charCodeAt(0))>>>0;o=a}for(var d,c=1,l=0,p=o.length,h=0;0<p;){for(p-=d=1024<p?1024:p;l+=c+=o[h++],--d;);c%=65521,l%=65521}return r=(l<<16|c)>>>0,this.j.c=2,n=(i=this.j.f()).length,ee&&((i=new Uint8Array(i.buffer)).length<=n+4&&(this.a=new Uint8Array(i.length+4),this.a.set(i),i=this.a),i=i.subarray(0,n+4)),i[n++]=r>>24&255,i[n++]=r>>16&255,i[n++]=r>>8&255,i[+n]=255&r,i},e("Zlib.Deflate",f),e("Zlib.Deflate.compress",function(e,t){return new f(e,t).f()}),e("Zlib.Deflate.prototype.compress",f.prototype.f),{NONE:S.NONE,FIXED:S.h,DYNAMIC:S.g});if(Object.keys)g=Object.keys(E);else for(m in g=[],v=0,E)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),E[m])}.call(e.exports);var rt={Deflate:p(e.exports).Zlib.Deflate},ot="base64url";function at(e,t){t=t||ot;e=nt("string"==typeof e?e:JSON.stringify(e)),e=new rt.Deflate(e).compress();return t===ot?c.uint8ToBase64(e):e}t={exports:{}};!function(){var o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||void 0===t?r=r[n]||(r[n]={}):r[n]=t}var a={c:function(e,t,n){return a.update(e,0,t,n)},update:function(e,t,n,i){var r=a.a,o="number"==typeof n?n:n=0,i="number"==typeof i?i:e.length;for(t^=4294967295,o=7&i;o--;++n)t=t>>>8^r[255&(t^e[n])];for(o=i>>3;o--;n+=8)t=(t=(t=(t=(t=(t=(t=(t=t>>>8^r[255&(t^e[n])])>>>8^r[255&(t^e[n+1])])>>>8^r[255&(t^e[n+2])])>>>8^r[255&(t^e[n+3])])>>>8^r[255&(t^e[n+4])])>>>8^r[255&(t^e[n+5])])>>>8^r[255&(t^e[n+6])])>>>8^r[255&(t^e[n+7])];return(4294967295^t)>>>0},d:function(e,t){return(a.a[255&(e^t)]^e>>>8)>>>0},b:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]};a.a="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array?new Uint32Array(a.b):a.b,e("Zlib.CRC32",a),e("Zlib.CRC32.calc",a.c),e("Zlib.CRC32.update",a.update)}.call(t.exports);var st={CRC32:p(t.exports).Zlib.CRC32},ut=function(e,n){var i;return 200<=(n=n||0)?e:_.isArray(e)?_.map(e,function(e){return ut(e,n+1)}):!_.isObject(e)||_.isDate(e)||_.isRegExp(e)||_.isElement(e)?_.isString(e)?_.escape(e):e:(i={},_.each(e,function(e,t){i[t]=ut(e,n+1)}),i)},dt=function(e){e=nt(e);return c.uint8ToBase64(e)},ct=function(e){if(void 0!==e)return e=nt(e=_.isString(e)?e:JSON.stringify(e)),st.CRC32.calc(e,0,e.length)};function lt(e){return e[Math.floor(Math.random()*e.length)]}function pt(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="",i=(t+t.toUpperCase()+"1234567890").split(""),r=0;r<e;r++)n+=lt(i);return n}var ht=function(e,t,n){return!(!me(e)||!me(t))&&(n&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<e.indexOf(t))};function S(){return(new Date).getTime()}function ft(){return"undefined"!=typeof $A&&_.isFunction($A.get)&&_.isString($A.get("$Browser.formFactor"))}function gt(e,t=window){var[e,t,n=window]=[_,e,t],i="__symbol__";if("undefined"!=typeof Zone&&e.isFunction(Zone[i])){i=n[Zone[i](t)];if(e.isFunction(i))return i}return n[t]}i=window;var mt=_.isFunction(i.isFinite)?i.isFinite:i.Number&&_.isFunction(i.Number.isFinite)?i.Number.isFinite:function(e){return e!=Infinity&&e!=-Infinity&&!isNaN(e)};function vt(e){return"number"==typeof e&&mt(e)&&Math.floor(e)===e}function yt(e,t,n,i){(t=t||{}).maxRetries=vt(t.maxRetries)?t.maxRetries:10,t.delay=vt(t.delay)?t.delay:50,t.exponentialBackoff=t.exponentialBackoff||!1;var r=function(e){return e&&"[object Function]"==={}.toString.call(e)},o=r(n)?n:function(){},a=r(i)?i:function(){},n=e();n?o(n):0<t.maxRetries?Ut(function(){t.maxRetries=--t.maxRetries,t.delay=t.exponentialBackoff?2*t.delay:t.delay,yt(e,t,o,a)},t.delay):(a||function(){})()}var bt=function(e){e=e.match(/-?[\d,]+\.?([\d,]+)*/);return e?parseFloat(e[0].replace(/,/g,"")):null};function wt(e){return _.isObject(e)&&_.isFunction(e.then)}var St,Et=_.isFunction(window.decodeURIComponent)?window.decodeURIComponent:_.identity,It=_.isFunction(window.encodeURIComponent)?window.encodeURIComponent:_.identity;class _t{constructor(){this.listeners={}}addEventListener(e,t){let n=this.listeners[e];n||(n=[],this.listeners[e]=n),_.findIndex(n,e=>t===e)<0&&n.push(t)}removeEventListener(e,t){var n,i=this.listeners[e];i&&0<=(n=_.findIndex(i,e=>t===e))&&(i.splice(n,1),i.length||delete this.listeners[e])}dispatchEvent(t){var e=this.listeners[t.type];e&&_.each(e,e=>{e(t)})}}class Ct{constructor(e,t,n){this.type="log",this.logged=!1,this.level=e,this.message=t,this.attributes=n}toString(){let e=this.message;return this.error&&e!==this.error.message&&(e=e+":"+this.error.message),this.attributes&&(e+=": "+_.map(this.attributes,(e,t)=>t+"="+e)),e}hashCode(){return this.toString()}}(n=St=St||{}).Debug="debug",n.Info="info",n.Warn="warn",n.Error="error",n.Critical="critical";class xt extends _t{write(e,t,n){this.dispatchEvent(new Ct(t,e,n))}writeError(e,t,n){let i,r;_.isString(e)?(i=e,r={message:i}):(r=e,i=r.message),n&&n.error&&(r=n.error,delete n.error);e=new Ct(t,i,n);e.error=r,this.dispatchEvent(e)}debug(e,t){this.write(e,St.Debug,t)}info(e,t){this.write(e,St.Info,t)}warn(e,t){this.writeError(e,St.Warn,t)}error(e,t){this.writeError(e,St.Error,t)}critical(e,t){this.writeError(e,St.Critical,t)}}const C=new xt;function Tt(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const kt=function(){var e=b.get("storage.allowKeys")||"*";return _.isArray(e)?_.indexBy(e):e};function At(t,n,i){return function(){try{return n.apply(t,arguments)}catch(e){return i}}}function Rt(n){_.forEach(_.keys(n),function(e){try{/^_?pendo_/.test(e)&&n.removeItem(e)}catch(t){}})}function Ot(e){var t=_.noop,t={getItem:()=>null,setItem:t,removeItem:t,clearPendo:t};try{var n=e();return n?{getItem:At(n,n.getItem,null),setItem:At(n,n.setItem),removeItem:At(n,n.removeItem),clearPendo:_.partial(Rt,n)}:t}catch(i){return t}}var Nt=Ot(function(){return window.localStorage}),Mt=Ot(function(){return window.sessionStorage});function Lt(e){try{return JSON.parse(e)}catch(t){return null}}var Pt,Dt={},Ft=!0,Bt=function(){return b.get("localStorageOnly")},zt=function(){return!!b.get("disableCookies")};function jt(e){Ft=e}var Ht=function(e){var t=zt()||Bt()?Dt[e]:document.cookie;return(e=new RegExp("(^|; )"+e+"=([^;]*)").exec(t))?Et(e[2]):null},qt=function(e,t,n,i){var r,o;!Ft||b.get("preventCookieRefresh")&&Ht(e)===t||(o=Zt(n),(r=new Date).setTime(r.getTime()+o),o=e+"="+It(t)+(n?";expires="+r.toUTCString():"")+"; path=/"+("https:"===document.location.protocol||i?";secure":"")+"; SameSite=Strict",Pt&&(o+=";domain="+Pt),zt()||Bt()?Dt[e]=o:document.cookie=o)};function Wt(e){Pt?qt(e,""):document.cookie=e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"}var Vt=function(e,t){return`_pendo_${e}.`+(t||E.apiKey)},Jt=function(e,t){return Ht(Vt(e,t))};const $t=864e5,Kt=100*$t,Zt=(e=Kt)=>{var t=b.get("maxCookieTTLDays"),t=t<Infinity?t*$t:Infinity;return Math.min(e,t)};var Xt=function(e,t,n,i,r){n=n||Kt,qt(Vt(e,r),t,n,i)};class Yt{constructor(){this.keys={}}addLocal(e,t){this._add(e,"local",t)}addSession(e,t){this._add(e,"session",t)}hasLocal(e){return this._has(e,"local")}hasSession(e){return this._has(e,"session")}getKeyConfig(e,t,n){return me(n)?n:this.keys[e]?this.keys[e][t]:undefined}getKeySerializer(e){return this.keys[e]?this.keys[e].serializer:_.identity}getKeyDeserializer(e){return this.keys[e]?this.keys[e].deserializer:_.identity}_add(e,t,n={}){n=_.extend({type:t,duration:null,isPlain:!1,isSecure:!1,cookieSuffix:undefined,serializer:_.identity,deserializer:_.identity},n),this.keys[e]||(this.keys[e]=n)}_has(e,t){return!!this.keys[e]&&this.keys[e].type===t}}var Qt,en,tn,nn,m,h=function(){const u=new Yt;function e(i,r){return function(e){var t,n;if(t=e,"*"===(n=kt())||n[t])return u[r](e)||C.warn(`storage key ${e} is not registered`),i.apply(this,arguments);C.debug(`writing storage key ${e} is not allowed`)}}function d(){return!zt()&&!Pt&&c("localStorage")}var c=_.memoize(function(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(i){return i instanceof DOMException&&(22===i.code||1014===i.code||"QuotaExceededError"===i.name||"NS_ERROR_DOM_QUOTA_REACHED"===i.name)&&t&&0!==t.length}});function l(e){e.cache&&(e.cache={})}function o(e,t,n){t=u.getKeyConfig(e,"isPlain",t),n=u.getKeyConfig(e,"cookieSuffix",n);t=t?e:Vt(e,n);if(d())return localStorage.removeItem(t);Wt(t)}const t=_.extend({},Mt),n=(t.setItem=e(t.setItem,"hasSession"),_.extend({},Nt));return n.setItem=e(n.setItem,"hasLocal"),{read:function(e,t,n){t=u.getKeyConfig(e,"isPlain",t),n=u.getKeyConfig(e,"cookieSuffix",n);let i;var r;return d()?(r=t?e:Vt(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(r)))&&o(e,t,n)):i=t?Ht(e):Jt(e,n),u.getKeyDeserializer(e)(i)},write:e(function(e,t,n,i,r,o){if(n=u.getKeyConfig(e,"duration",n),i=u.getKeyConfig(e,"isPlain",i),r=u.getKeyConfig(e,"isSecure",r),o=u.getKeyConfig(e,"cookieSuffix",o),t=u.getKeySerializer(e)(t),l(c),d())try{var a=i?e:Vt(e,o);return localStorage.setItem(a,function(e,t){if(null===t)return e;t=(new Date).getTime()+Zt(t);return JSON.stringify({ttl:t,value:e})}(t,n)),void l(c)}catch(s){}if(!i)return Xt(e,t,n,r,o);qt(e,t,n,r)},"hasLocal"),clear:o,registry:u,getLocal:()=>n,getSession:()=>t}}(),rn=(window.Promise,e=function(){var t=Ut;function d(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 u(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,u(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,u(e)}function u(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(!d(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 u(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){u(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)u(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(!d(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a},"function"==typeof(t=window.Promise)&&/native/.test(t)?t:e()),i=(en=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},tn=function(n,i){var r=Qt.defer(),o=function(n,i){Ut(function(){var e;try{e=n(i)}catch(t){return void r.reject(t)}e===r.promise?r.reject(new TypeError("Cannot resolve promise with itself")):r.resolve(e)},1)};return{promise:r.promise,handle:function(e,t){e===nn?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},nn=1,(Qt={}).defer=function(){var n,i=0,r=[],t=function(e,t){i=e,n=t,_.each(r,function(e){e.handle(i,n)}),r=null},o=function(e){t(nn,e)},a=function(e){t(2,e)},s=function(e,t){e=tn(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},u=function(e){var t=en();try{e(t(d),t(a))}catch(n){t(a)(n)}},d=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?u(t):o(e)},e=en();return{resolve:e(d),reject:e(a),promise:{then:s,"catch":function(e){return s(null,e)}}}},Qt);function on(e){var n,i=m.defer(),r=_.isArray(e)?[]:{},o=_.size(e);return o?(n=!1,_.each(e,function(e,t){m.resolve(e).then(function(e){r[t]=e,0!=--o||n||i.resolve(r)},function(e){n||(n=!0,i.reject(e))})}),i.promise):m.resolve(e)}!Se()&&ze.isMinimumIEVersion(11)?m={all:function(e){return _.isArray(e)?rn.all.apply(rn,arguments):on(e)},reject:function(){return rn.reject.apply(rn,arguments)},resolve:function(){return rn.resolve.apply(rn,arguments)},defer:function(){var n={};return n.promise=new rn(function(e,t){n.resolve=e,n.reject=t}),n}}:((m=i).all=on,m.reject=function(e){var t=m.defer();return t.reject(e),t.promise},m.resolve=function(e){var t=m.defer();return t.resolve(e),t.promise});const an=h.getSession(),sn="pendo_tabId",un="pendo_parentTabId";dn=window,n=_.partial,cn=_.extend,ln=_.omit,pn={data:{},getItem(e){return pn.data[e]},setItem(e,t){pn.data[e]=t},removeItem(e){pn.data[e]=null,delete pn.data[e]}},hn=n(yn,sn,bn),fn=n(yn,"pendo_frameId",pn);var dn,cn,ln,pn,hn,fn,gn={addTracerIds(e){return ln(cn(e,{parentTabId:mn(un,bn),tabId:hn(),frameId:fn()}),function(e){return e===undefined})},setParentTabId:function(e){vn(un,e,bn)},newTabId:function(){var e=pt(16);return vn(sn,e,bn),e},getTabId:hn,getFrameId:fn,tabIdChanged:function(t){var e;if(ze.addEventListener)return dn.addEventListener("storage",e=function(e){e.key===sn&&(pn.removeItem(sn),t())}),function(){dn.removeEventListener("storage",e)}}};function mn(e,t){return(_.isFunction(t)?t():t).getItem(e)}function vn(e,t,n){(_.isFunction(n)?n():n).setItem(e,t)}function yn(e,t){var n=mn(e,t);return n||vn(e,n=pt(16),t),n}function bn(){return n=pn,i=an,{getItem(e){var t=n.getItem(e);return t===undefined&&(t=i.getItem(e),n.setItem(e,t)),t},setItem(e,t){n.setItem(e,t),i.setItem(e,t)},removeItem(e){n.removeItem(e),i.removeItem(e)}};var n,i}function wn(){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(_.isString(e)||_.isFunction(t))&&(n=(n=i[e])||(i[e]=[]),_.indexOf(n,t)<0)&&n.push(t),this},this.one=function(e,t){var n=this,i=function(){n.off(e,i),t.apply(this,arguments)};return this.on(e,i)},this.once=this.one,this.off=function(e,t){var n,e=i[e];return _.isFunction(t)?(n=_.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=_.toArray(arguments).slice(1);return _.map(t,function(e){return e.apply(E,n)})},this.triggerCancelable=function(e,t){e=i[e]?i[e].slice():[];return _.map(e,function(e){if(!t.cancel)return e.apply(E,[t])})},this.triggerAsync=function(){var e=_.map(this.trigger.apply(this,arguments),function(e){return!1===e?m.reject():e});return m.all(e)},this}wn.clear=function(t){t&&_.each(_.keys(t._handlers),function(e){t.off(e),delete t._handlers[e]})};Di={DEBUG:t="debug",FRAMES:e="frames",LIFECYCLE:i="lifecycle",RUNTIME:n="runtime"},Sn=[new r("ready",[t,i]),new r("deliverablesLoaded",[t,i]),new r("guidesFailed",[t,i]),new r("guidesLoaded",[t,i]),new r("guideListChanged",[t,i]),new r("guideSeen",[t,i]),new r("guideNotSeen",[t,i]),new r("guideAdvanced",[t,i]),new r("guideDismissed",[t,i]),new r("guideSnoozed",[t,i]),new r("beforeGuideShow",[i]),new r("beforeMount",[n]),new r("beforeAdvance",[n]),new r("beforePrevious",[n]),new r("beforeSnooze",[n]),new r("beforeDismiss",[n]),new r("beforeUnmount",[n]),new r("unmounted",[n]),new r("beforeUpdate",[n]),new r("updated",[n]),new r("guideSnoozeCancelled",[t,i]),new r("guideTimeout",[t,i]),new r("guideLoopStopped",[t,i]),new r("guideUpdateComplete",[i]),new r("designerLaunched",[t,i]),new r("debuggerLaunched",[t,i]),new r("stepEligibility",[t]),new r("identify",[t,i]),new r("metadata",[t,i]),new r("appUnloaded",[t,i]),new r("appHidden",[t,i]),new r("startPreview",[t]),new r("resourceFetchFail",[t]),new r("contentVerificationFail",[t]),new r("contentValidationFail",[t]),new r("renderFail",[t]),new r("appUsage",[i]),new r("eventCaptured",[t]),new r("error",[t,i]),new r("onClickCaptured",[t]),new r("urlChanged",[i]),new r("leaderChanged",[i,e]),new r("transmit:locked",[i]),new r("transmit:unlocked",[i]),new r("sessionChanged",[i]),new r("ptm:unpaused",[i]),new r("ptm:paused",[i]),new r("recording:unpaused",[i]),new r("recording:paused",[i]),new r("childFrameJoined",[e]),new r("tabIdChanged:self",[t,i])],En=wn.call({}),In={debug(){return gn.addTracerIds(Cn.apply(null,arguments))},lifecycle:Cn,runtime:Cn,frames:Cn},_n=En.trigger,En.trigger=xn,_.each(_.values(Di),function(e){En[e]={on:_.partial(En.on,e),one:_.partial(En.one,e),off:_.partial(En.off,e)}}),_.each(Sn,function(e){e=e.name,En[e]={on:_.partial(En.on,e),one:_.partial(En.one,e),off:_.partial(En.off,e),trigger:_.partial(xn,e)}});var Sn,En,In,_n,v=En;function r(e,t){this.name=e,this.groups=t||[]}function Cn(e,t){e={type:e,ts:S()};return me(t)&&_.isObject(t)&&(e.data=t),e}function xn(t){var e=_.findWhere(Sn,{name:t}),n=_.toArray(arguments).slice(1),i={};return _.each(e.groups,function(e){i.cancel||(i=In[e](t,n),_n.apply(En,[e].concat(i)))}),i.cancel||(i=Cn(t,n),_n.apply(En,[t].concat(i))),i}function Tn(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),_.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),_.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:_.partial(t,i),subscribeAction:_.partial(t,r),registerModule:function h(n,e){_.isString(n)&&(n=[n]);var t=d(s.state,e,n);_.extend(s.getters,p(e,t,s,n));_.extend(o,c(e,t,n));_.extend(a,l(e,t,s,n));_.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return _.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):_.noop;var n,i}function u(e,t){return(e=t?e.concat([t]):e).join("/")}function d(e,t,n){var i=e;return _.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),_.extend(i,ve(t.state||{}))}function c(e,n,i){var r={};return _.each(e.mutations,function(e,t){r[u(i,t)]=_.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:u(r,e);i.commit(n,t)},dispatch:function(e,t,n){n=n&&n.root?e:u(r,e);return i.dispatch(n,t)},getters:function(e,t){var i=u(t);i&&(i+="/");return _.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return _.each(e.actions,function(e,t){n[u(r,t)]=_.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return _.each(e.getters,function(e,t){a[t]=o[u(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}var f=Tn(),kn=(f.subscribe(function(e,t){}),"_PENDO_T_"),An=11;const Rn="visitorId",On="oldVisitorId",Nn="accountId";var Mn=function(e=""){return e+pt(An)};var Ln=function(e){return me(e)&&""!==e&&e!==Bn&&"boolean"!=typeof e&&"object"!=typeof e&&!((e=e)&&"string"==typeof e&&0===it.call(e).length)},Pn=function(e){return!(!e||"number"==typeof e)&&e.substring(0,kn.length)===kn},Dn=function(){return!b.get("disablePersistence")},Fn=function(e){e=e||[Rn,Nn,On];const t=b.get("identityStorageSuffix")||E.apiKey;_.each(e,function(e){Wt(Vt(e,t)),h.clear(e,!1,t)})},Un="VISITOR-UNIQUE-ID",Gn=function(e){return Un===e},Bn="::",zn=function(e){return new RegExp(Bn).test(e)};function jn(e){return e.old_visitor_id!==e.visitor_id}var Hn,qn=function(e,t){var n,i={old_visitor_id:y(),old_account_id:$n()};Ln(e)?(Ln(n=e)?Vn(""+n):C.info("Invalid visitor id "+n),n=t,_.isUndefined(n)?C.info("No account id provided"):Ln(n)?(E.accountId=""+n,Dn()&&Kn(Nn,E.accountId)):(delete E.accountId,delete(t=b.getLocalConfig()).account,b.setLocalConfig(t),f.commit("metadata/clearAccount"),Dn()&&h.clear(Nn),C.info("Invalid account id: "+n+". Account cleared")),i.visitor_id=y({generate:!0}),i.account_id=$n(),!jn(t=i)&&t.old_account_id===t.account_id||(jn(i)&&(n=i.old_visitor_id)&&(Hn=n,Kn(On,Hn)),v.identify.trigger(i))):C.info("Invalid visitor id "+e)};function Wn(){return Mn(kn)}function Vn(e){E.visitorId!==e&&(Dn()&&Kn(Rn,e),E.visitorId=e)}function y(e={}){var t=function(){if(Ln(E.visitorId))return E.visitorId;var e=b.get("forceAnonymous");if(Dn()){var t=Zn(Rn);if(Ln(t)&&(!e||Pn(t)))return t}return undefined}();return Vn(t=!t&&e.generate?Wn():t),t}function Jn(){return y()||Wn()}var $n=function(){var e=b.get("forceAnonymous");return Ln(E.accountId)||!Dn()||e||(e=Zn(Nn),E.accountId=e),E.accountId};function Kn(e,t){var n=b.get("identityStorageLifetime")||Kt,i=b.get("identityStorageSuffix")||E.apiKey;h.write(e,t,n,!1,!0,i)}function Zn(e){var t=b.get("identityStorageSuffix"),n=t||E.apiKey,n=h.read(e,!1,n)||h.read(e,!1,E.apiKey);return t&&h.clear(e,!1,E.apiKey),n}function Xn(){var e={old_visitor_id:y({generate:!1}),old_account_id:$n(),wasCleared:!0};Fn(),delete E.visitorId,delete E.accountId,y({generate:!0}),_.extend(e,{visitor_id:y(),account_id:$n()}),v.identify.trigger(e)}function Yn(e){e=e.data[0];return _.get(e,"wasCleared")}var Qn=function(t,n){return n=!!n,function(){try{return t.apply(this,arguments)}catch(e){n||C.critical(e)}}};n=function(n){return function ei(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 ei="function"==typeof(e=window.URL)&&/native/.test(e)?e:n(document);function ti(e){if((t=e)&&"function"==typeof t.composedPath)try{return e.composedPath()}catch(n){return e.path}var t;return null}function ni(e){return e.shadowRoot}function ii(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function ri(e,t){return ii(e,t)?e.host:e.parentNode}var oi={PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:ti,getShadowRoot:ni,isElementShadowRoot:ii,getParent:ri,isShadowSelector:ai,wrapSizzle(i,d){i.intercept(function(a,t,n,i,r){var e,o;if(ai(t))return _.isFunction(document.documentElement.attachShadow)?(o=a,e=(e=t).replace(oi.PSEUDO_REGEX,oi.PSEUDO_SAFE),e=_.map(o.tokenize(e),si),_.reduce(e,function(e,t){return e.concat(s(t,n,i,r))},[])):a(t.replace(oi.PSEUDO_REGEX,""),n,i,r);{const u=a(t,n,i,r);return 0<d.cache.size&&d.cache.forEach(e=>{n&&n!==document&&!function(e,t,n){let i=t;for(;i;){if(i===e)return 1;i=ri(i,n)}}(n,e)||u.push(...a(t,e,i,r))}),u}function s(e,t,n,i){var r,o;return ai(e)?(o=s((r={baseCss:(o=(o=e).split(oi.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:o.join(oi.PSEUDO_ELEMENT)}).baseCss,t),_.reduce(o,function(e,t){return oi.getShadowRoot(t)?e.concat(s(r.shadowCss,oi.getShadowRoot(t),n,i)):e},[])):a(e,t,n,i)}}),i.intercept(function(e,t,n){return!oi.isElementShadowRoot(t)&&(ai(n)?0<i(n,document,null,[t]).length:e(t,n))},"matchesSelector")}};function ai(e){return!!e&&-1<e.indexOf(oi.PSEUDO_ELEMENT)}function si(e){return _.reduce(e,function(e,t){return t.value===oi.PSEUDO_SAFE?e+oi.PSEUDO_ELEMENT:e+t.value},"")}var ui,g,w,di,ci,li,pi,hi,fi,gi,mi,vi,I,yi,bi,wi,Si,Ei,Ii,t={exports:{}},i=t,_i=window,Ci="sizzle"+ +new Date,xi=_i.document,Ti=0,ki=0,Ai=pr(),Ri=pr(),Oi=pr(),Ni=pr(),Mi=pr(),Li=function(e,t){return e===t&&(mi=!0),0},Pi={}.hasOwnProperty,Di=[],Fi=Di.pop,Ui=Di.push,Gi=Di.push,Bi=Di.slice,zi=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},ji="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",a="[\\x20\\t\\r\\n\\f]",e="(?:\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",n="\\["+a+"*("+e+")(?:"+a+"*([*^$|!~]?=)"+a+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+e+"))|)"+a+"*\\]",Hi=":("+e+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+n+")*)|.*)\\)|)",qi=new RegExp(a+"+","g"),Wi=new RegExp("^"+a+"+|((?:^|[^\\\\])(?:\\\\.)*)"+a+"+$","g"),Vi=new RegExp("^"+a+"*,"+a+"*"),Ji=new RegExp("^"+a+"*([>+~]|"+a+")"+a+"*"),$i=new RegExp(a+"|>"),Ki=new RegExp(Hi),Zi=new RegExp("^"+e+"$"),Xi={ID:new RegExp("^#("+e+")"),CLASS:new RegExp("^\\.("+e+")"),TAG:new RegExp("^("+e+"|[*])"),ATTR:new RegExp("^"+n),PSEUDO:new RegExp("^"+Hi),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+ji+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},Yi=/HTML$/i,Qi=/^(?:input|select|textarea|button)$/i,er=/^h\d$/i,tr=/^[^{]+\{\s*\[native \w/,nr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ir=/[+~]/,rr=new RegExp("\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\([^\\r\\n\\f])","g"),or=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))},ar=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,sr=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ur=function(){vi()},dr=Er(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Gi.apply(Di=Bi.call(xi.childNodes),xi.childNodes),Di[xi.childNodes.length].nodeType}catch(OS){Gi={apply:Di.length?function(e,t){Ui.apply(e,Bi.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function cr(e){return e[0].length?e.map(cr).join(","):Sr(e)}function lr(e,t,n){var i=n[e+" "];i=i||cr(function o(e,t){return e[0].length?e.map(function(e){return o(e,t)}):e.filter(t)}(li(e),function(e){return!("PSEUDO"===(e=e).type&&e.matches.length&&"contains"===e.matches[0].replace(Wi,"$1").toLowerCase())}));try{var r=[];return Gi.apply(r,t.querySelectorAll(i)),n(e,i),r}catch(OS){}}function x(e,t,n,i){var r,o,a,s,u,d,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&&(vi(t),t=t||I,bi)){if(11!==l&&(s=nr.exec(e)))if(r=s[1]){if(9===l){if(!(d=t.getElementById(r)))return n;if(d.id===r)return n.push(d),n}else if(c&&(d=c.getElementById(r))&&Ii(t,d)&&d.id===r)return n.push(d),n}else{if(s[2])return Gi.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&g.getElementsByClassName&&t.getElementsByClassName)return Gi.apply(n,t.getElementsByClassName(r)),n}if(g.qsa&&(!Ni[e+" "]||Mi[e+" "])&&(!wi||!wi.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(d=e,c=t,1===l&&($i.test(e)||Ji.test(e))){for((c=ir.test(e)&&br(t.parentNode)||t)===t&&g.scope||((a=t.getAttribute("id"))?a=a.replace(ar,sr):t.setAttribute("id",a=Ci)),o=(u=li(e)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+Sr(u[o]);d=u.join(",")}try{return Gi.apply(n,c.querySelectorAll(d)),n}catch(p){Ni(e,!0)}finally{a===Ci&&t.removeAttribute("id")}!i&&Ni[e+" "]&&(i=lr(e,c,Mi))}}return hi(e.replace(Wi,"$1"),t,n,i)}function pr(){var n=[];function i(e,t){return n.push(e+" ")>w.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function hr(e){return e[Ci]=!0,e}function fr(e){var t=I.createElement("fieldset");try{return!!e(t)}catch(OS){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function gr(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function mr(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 vr(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&&dr(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function yr(a){return hr(function(o){return o=+o,hr(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 br(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(ui in g=x.support={},ci=x.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!Yi.test(t||e&&e.nodeName||"HTML")},vi=x.setDocument=function(e){var e=e?e.ownerDocument||e:xi;return e!=I&&9===e.nodeType&&e.documentElement&&(yi=(I=e).documentElement,bi=!ci(I),xi!=I&&(e=I.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",ur,!1):e.attachEvent&&e.attachEvent("onunload",ur)),g.scope=fr(function(e){return yi.appendChild(e).appendChild(I.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),g.attributes=fr(function(e){return e.className="i",!e.getAttribute("className")}),g.getElementsByTagName=fr(function(e){return e.appendChild(I.createComment("")),!e.getElementsByTagName("*").length}),g.getElementsByClassName=!!I.getElementsByClassName,g.getById=fr(function(e){return yi.appendChild(e).id=Ci,!I.getElementsByName||!I.getElementsByName(Ci).length}),g.getById?(w.filter.ID=function(e){var t=e.replace(rr,or);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&bi)return(e=t.getElementById(e))?[e]:[]}):(w.filter.ID=function(e){var t=e.replace(rr,or);return function(e){e="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},w.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&bi){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[]}}),w.find.TAG=g.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):g.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},w.find.CLASS=g.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&bi?t.getElementsByClassName(e):g.qsa&&bi?t.querySelectorAll("."+e):void 0},Si=[],wi=[],(g.qsa=!!I.querySelectorAll)&&(fr(function(e){var t;yi.appendChild(e).innerHTML=K().createHTML("<a id='"+Ci+"'></a><select id='"+Ci+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&wi.push("[*^$]="+a+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||wi.push("\\["+a+"*(?:value|"+ji+")"),e.querySelectorAll("[id~="+Ci+"-]").length||wi.push("~="),(t=I.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||wi.push("\\["+a+"*name"+a+"*="+a+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||wi.push(":checked"),e.querySelectorAll("a#"+Ci+"+*").length||wi.push(".#.+[+~]"),e.querySelectorAll("\\\f"),wi.push("[\\r\\n\\f]")}),fr(function(e){e.innerHTML=K().createHTML("<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>");var t=I.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&wi.push("name"+a+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&wi.push(":enabled",":disabled"),yi.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&wi.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),wi.push(",.*:")})),(g.matchesSelector=tr.test(Ei=yi.matches||yi.webkitMatchesSelector||yi.mozMatchesSelector||yi.oMatchesSelector||yi.msMatchesSelector))&&fr(function(e){g.disconnectedMatch=Ei.call(e,"*"),Ei.call(e,"[s!='']:x"),Si.push("!=",Hi)}),wi=wi.length&&new RegExp(wi.join("|")),Si=Si.length&&new RegExp(Si.join("|")),e=!!yi.compareDocumentPosition,Ii=e||yi.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},Li=e?function(e,t){var n;return e===t?(mi=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!g.sortDetached&&t.compareDocumentPosition(e)===n?e==I||e.ownerDocument==xi&&Ii(xi,e)?-1:t==I||t.ownerDocument==xi&&Ii(xi,t)?1:gi?zi(gi,e)-zi(gi,t):0:4&n?-1:1)}:function(e,t){if(e===t)return mi=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==I?-1:t==I?1:r?-1:o?1:gi?zi(gi,e)-zi(gi,t):0;if(r===o)return mr(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?mr(a[i],s[i]):a[i]==xi?-1:s[i]==xi?1:0}),I},x.matches=function(e,t){return x(e,null,null,t)},x.matchesSelector=function(e,t){if(vi(e),g.matchesSelector&&bi&&!Ni[t+" "]&&(!Si||!Si.test(t))&&(!wi||!wi.test(t)))try{var n=Ei.call(e,t);if(n||g.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(OS){Ni(t,!0)}return 0<x(t,I,null,[e]).length},x.contains=function(e,t){return(e.ownerDocument||e)!=I&&vi(e),Ii(e,t)},x.attr=function(e,t){(e.ownerDocument||e)!=I&&vi(e);var n=w.attrHandle[t.toLowerCase()],n=n&&Pi.call(w.attrHandle,t.toLowerCase())?n(e,t,!bi):undefined;return n!==undefined?n:g.attributes||!bi?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},x.escape=function(e){return(e+"").replace(ar,sr)},x.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},x.uniqueSort=function(e){var t,n=[],i=0,r=0;if(mi=!g.detectDuplicates,gi=!g.sortStable&&e.slice(0),e.sort(Li),mi){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return gi=null,e},di=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+=di(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=di(t);return n},(w=x.selectors={cacheLength:50,createPseudo:hr,match:Xi,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(rr,or),e[3]=(e[3]||e[4]||e[5]||"").replace(rr,or),"~="===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 Xi.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Ki.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(rr,or).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=Ai[e+" "];return t||(t=new RegExp("(^|"+a+")"+e+"("+a+"|$)"))&&Ai(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(qi," ")+" ").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,u,d=v!=y?"nextSibling":"previousSibling",c=e.parentNode,l=b&&e.nodeName.toLowerCase(),p=!n&&!b,h=!1;if(c){if(v){for(;d;){for(a=e;a=a[d];)if(b?a.nodeName.toLowerCase()===l:1===a.nodeType)return!1;u=d="only"===f&&!u&&"nextSibling"}return!0}if(u=[y?c.firstChild:c.lastChild],y&&p){for(h=(s=(i=(r=(o=(a=c)[Ci]||(a[Ci]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===Ti&&i[1])&&i[2],a=s&&c.childNodes[s];a=++s&&a&&a[d]||(h=s=0,u.pop());)if(1===a.nodeType&&++h&&a===e){r[f]=[Ti,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[Ci]||(a[Ci]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===Ti&&i[1]:h))for(;(a=++s&&a&&a[d]||(h=s=0,u.pop()))&&((b?a.nodeName.toLowerCase()!==l:1!==a.nodeType)||!++h||(p&&((r=(o=a[Ci]||(a[Ci]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[Ti,h]),a!==e)););return(h-=m)===g||h%g==0&&0<=h/g}}},PSEUDO:function(e,o){var t,a=w.pseudos[e]||w.setFilters[e.toLowerCase()]||x.error("unsupported pseudo: "+e);return a[Ci]?a(o):1<a.length?(t=[e,e,"",o],w.setFilters.hasOwnProperty(e.toLowerCase())?hr(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=zi(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:hr(function(e){var i=[],r=[],s=pi(e.replace(Wi,"$1"));return s[Ci]?hr(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:hr(function(t){return function(e){return 0<x(t,e).length}}),contains:hr(function(t){return t=t.replace(rr,or),function(e){return-1<(e.textContent||di(e)).indexOf(t)}}),lang:hr(function(n){return Zi.test(n||"")||x.error("unsupported lang: "+n),n=n.replace(rr,or).toLowerCase(),function(e){var t;do{if(t=bi?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=_i.location&&_i.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===yi},focus:function(e){return e===I.activeElement&&(!I.hasFocus||I.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:vr(!1),disabled:vr(!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!w.pseudos.empty(e)},header:function(e){return er.test(e.nodeName)},input:function(e){return Qi.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:yr(function(){return[0]}),last:yr(function(e,t){return[t-1]}),eq:yr(function(e,t,n){return[n<0?n+t:n]}),even:yr(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:yr(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:yr(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:yr(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[ui]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(ui);for(ui in{submit:!0,reset:!0})w.pseudos[ui]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(ui);function wr(){}function Sr(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function Er(a,e,t){var s=e.dir,u=e.next,d=u||s,c=t&&"parentNode"===d,l=ki++;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=[Ti,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[Ci]||(e[Ci]={}))[e.uniqueID]||(r[e.uniqueID]={}),u&&u===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=r[d])&&i[0]===Ti&&i[1]===l)return o[2]=i[2];if((r[d]=o)[2]=a(e,t,n))return!0}return!1}}function Ir(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 _r(e,t,n,i,r){for(var o,a=[],s=0,u=e.length,d=null!=t;s<u;s++)!(o=e[s])||n&&!n(o,i,r)||(a.push(o),d&&t.push(s));return a}function Cr(h,f,g,m,v,e){return m&&!m[Ci]&&(m=Cr(m)),v&&!v[Ci]&&(v=Cr(v,e)),hr(function(e,t,n,i){var r,o,a,s=[],u=[],d=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:_r(c,s,h,n,i),p=g?v||(e?h:d||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=_r(p,u),m(r,[],n,i),o=r.length;o--;)(a=r[o])&&(p[u[o]]=!(l[u[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?zi(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=_r(p===t?p.splice(d,p.length):p),v?v(null,t,p,i):Gi.apply(t,p)})}wr.prototype=w.filters=w.pseudos,w.setFilters=new wr,li=x.tokenize=function(e,t){var n,i,r,o,a,s,u,d=Ri[e+" "];if(d)return t?0:d.slice(0);for(a=e,s=[],u=w.preFilter;a;){for(o in n&&!(i=Vi.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=Ji.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(Wi," ")}),a=a.slice(n.length)),w.filter)w.filter.hasOwnProperty(o)&&(i=Xi[o].exec(a))&&(!u[o]||(i=u[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):Ri(e,s).slice(0)},pi=x.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=Oi[e+" "];if(!a){for(n=(t=t||li(e)).length;n--;)((a=function l(e){for(var i,t,n,r=e.length,o=w.relative[e[0].type],a=o||w.relative[" "],s=o?1:0,u=Er(function(e){return e===i},a,!0),d=Er(function(e){return-1<zi(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==fi)||((i=t).nodeType?u:d)(e,t,n),i=null,e}];s<r;s++)if(t=w.relative[e[s].type])c=[Er(Ir(c),t)];else{if((t=w.filter[e[s].type].apply(null,e[s].matches))[Ci]){for(n=++s;n<r&&!w.relative[e[n].type];n++);return Cr(1<s&&Ir(c),1<s&&Sr(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Wi,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&Sr(e))}c.push(t)}return Ir(c)}(t[n]))[Ci]?r:o).push(a);(a=Oi(e,(m=o,y=0<(v=r).length,b=0<m.length,i=function(e,t,n,i,r){var o,a,s,u=0,d="0",c=e&&[],l=[],p=fi,h=e||b&&w.find.TAG("*",r),f=Ti+=null==p?1:Math.random()||.1,g=h.length;for(r&&(fi=t==I||t||r);d!==g&&null!=(o=h[d]);d++){if(b&&o){for(a=0,t||o.ownerDocument==I||(vi(o),n=!bi);s=m[a++];)if(s(o,t||I,n)){i.push(o);break}r&&(Ti=f)}y&&((o=!s&&o)&&u--,e)&&c.push(o)}if(u+=d,y&&d!==u){for(a=0;s=v[a++];)s(c,l,t,n);if(e){if(0<u)for(;d--;)c[d]||l[d]||(l[d]=Fi.call(i));l=_r(l)}Gi.apply(i,l),r&&!e&&0<l.length&&1<u+v.length&&x.uniqueSort(i)}return r&&(Ti=f,fi=p),c},y?hr(i):i))).selector=e}return a},hi=x.select=function(e,t,n,i){var r,o,a,s,u,d="function"==typeof e&&e,c=!i&&li(e=d.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&&bi&&w.relative[o[1].type]){if(!(t=(w.find.ID(a.matches[0].replace(rr,or),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=Xi.needsContext.test(e)?0:o.length;r--&&(a=o[r],!w.relative[s=a.type]);)if((u=w.find[s])&&(i=u(a.matches[0].replace(rr,or),ir.test(o[0].type)&&br(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&Sr(o))break;return Gi.apply(n,i),n}}return(d||pi(e,c))(i,t,!bi,n,!t||ir.test(e)&&br(t.parentNode)||t),n},g.sortStable=Ci.split("").sort(Li).join("")===Ci,g.detectDuplicates=!!mi,vi(),g.sortDetached=fr(function(e){return 1&e.compareDocumentPosition(I.createElement("fieldset"))}),fr(function(e){return e.innerHTML=K().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||gr("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),g.attributes&&fr(function(e){return e.innerHTML=K().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||gr("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),fr(function(e){return null==e.getAttribute("disabled")})||gr(ji,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var xr=_i.Sizzle;x.noConflict=function(){return _i.Sizzle===x&&(_i.Sizzle=xr),x},i.exports?i.exports=x:_i.Sizzle=x;Tr=p(t.exports),(kr=_.extend(function(){return kr.Sizzle.apply(this,arguments)},Tr)).reset=function(){kr.Sizzle=Tr,kr.matchesSelector=Tr.matchesSelector,kr.matches=Tr.matches},kr.intercept=function(e,t="Sizzle"){kr[t]=_.wrap(kr[t],e)},kr.reset();var Tr,kr,Ar=kr;function T(e,t){var n,i=this;if(e&&e instanceof T)return e;if(!(i instanceof T))return new T(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=_.toArray(r.childNodes)}else if(_.isString(e)){t instanceof T&&(t=0<t.length?t[0]:null);try{n=Ar(e,t)}catch(o){n=[]}}else n=[e];else n=[];return _.each(n,function(e,t){i[t]=e}),i.context=t,i.length=n.length,"undefined"!=typeof Symbol&&Symbol.iterator&&(i[Symbol.iterator]=function*(){for(const e of n)yield e}),i}function Rr(){this.ownerKey="_pendo_"+pt(8)}_.extend(Rr.prototype,{cache(e){var t;return _.isObject(e)?((t=e[this.ownerKey])||(e[this.ownerKey]=t={}),t):{}},set(e,t,n){e=this.cache(e);return e[t]=n,e},get(e,t){return t===undefined?this.cache(e):e[this.ownerKey]&&e[this.ownerKey][t]},remove(e,t){var n=this.cache(e);delete n[t],t!==undefined&&!_.isEmpty(n)||(e[this.ownerKey]=undefined)}});var Or=new Rr,Nr=1;function Mr(e){return _.isNumber(e.eventPhase)&&e.eventPhase===Nr}function Lr(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?gt("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),()=>{Pr(e,t,n,i)}):_.noop}function Pr(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?gt("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var Dr=function(e){var t=oi.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},Fr={add(t,e){var n=Or.get(t),i=(n.handle||(n.handle=function(e){Fr.dispatch(t,e)}),e.id=_.uniqueId(),e.capture?"captureEvents":"bubbleEvents"),i=n[i]=n[i]||{},i=i[e.type]=i[e.type]||[];return i.length||Lr(t,e.type,n.handle,e.capture),i.push(e),()=>{T.event.remove(t,e.type,e.handler,e.capture)}},dispatch(r,o){var e,t,a;r&&(e=(Or.get(r,"captureEvents")||{})[o.type]||[],t=(Or.get(r,"bubbleEvents")||{})[o.type]||[],(t=e.concat(t)).length)&&!(a=Or.get(o)).ignore&&(a.handled=a.handled||{},_.each(t.slice(),function(e){var t=!!e.capture===Mr(o),n=(n=o,_.isNumber(n.eventPhase)&&2===n.eventPhase),t=!t&&!n;if(!(Dr(o)!==r&&t||a.handled[e.id])){a.handled[e.id]=!0;try{(!me(e.selector)||0<T(Dr(o)).closest(e.selector).length)&&e.handler.call(r,o)}catch(i){C.error(i)}}}))},remove(e,t,n,i){var r=Or.get(e);if(r){if(_.isFunction(n)){var o=i?r.captureEvents:r.bubbleEvents;if(!o)return;var a=o[t];if(!a)return;var s=_.findIndex(a,function(e){return e.handler===n});0<=s&&a.splice(s,1),a.length||(delete o[t],Pr(e,t,r.handle,i))}else n===undefined&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],Pr(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],Pr(e,t,r.handle));_.isEmpty(r.captureEvents)&&_.isEmpty(r.bubbleEvents)&&(Or.remove(e,"captureEvents"),Or.remove(e,"bubbleEvents"),Or.remove(e,"handle"))}},trigger(e){var t=Or.get(e);if(!t.pendoStopped)if(e.bubbles){var n=Dr(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=oi.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),Mr(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)Fr.dispatch(o[i],e);(e=Fr.clone(e)).eventPhase=2}for(2!==e.eventPhase||t.pendoStopped||(Fr.dispatch(n,e),(e=Fr.clone(e)).eventPhase=3),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)Fr.dispatch(o[i],e)}}else Fr.dispatch(Dr(e),e)},clone(e){var t=_.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",Or.ownerKey]),e=oi.getComposedPath(e);return e&&(t.composedPath=_.constant(e)),t},$:{on(e,n,i,r){return _.isFunction(n)&&(r=i,i=n,n=null),e=e.split(" "),this.each(function(t){_.each(e,function(e){Fr.add(t,{type:e,selector:n,handler:i,capture:r})})})}}},Ur=_.extend(Br,{get:function(e,t){return Br({method:"GET",url:e,headers:t})},post:zr,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",zr(e,t=JSON.stringify(t),n)},urlFor:function(e,t,n){if(_.isArray(t))i=t;else{if(!_.isObject(t))return e||"";i=_.keys(t)}var i=_.map(i,function(e){return _.isArray(t)?It(e):It(e)+"="+It(t[e])}).join("&"),r=(e=e.split("#",2))[0],o=_.contains(r,"?");return[r,i?(o?"&":"?")+i:"",(n=void 0!==n?n:e[1])?"#"+n:""].join("")},supported(){return void 0!==Gr()}});function Gr(){return window.XMLHttpRequest||ActiveXObject}function Br(e){var t=m.defer(),n=new(Gr())("MSXML2.XMLHTTP.3.0");return n.open(e.method||"GET",e.url,!e.sync),_.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 zr(e,t,n){return Br({method:"POST",url:e,data:t,headers:n})}var jr,Hr=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},qr=function(){return b.get("annotateUrl")||Kr()||b.get("sanitizeUrl")||b.get(io)||b.get("xhrWhitelist")},Wr=function(){return Kr()?{href:$r(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},Vr=function(){return new ei(window.location.href)},Jr=function(){var e,t,n,i;return qr()?(e=Vr(),Kr()&&(e.href=$r(e.href)),Hr()?(t=k.electronResourcesPath(),n=k.electronUserDirectory(),i=k.electronAppName(),("https://"+e.href.replace(t,i)).replace(e.origin+n,i).replace(k.electronUserHomeDirectory(),"").replace("file:///","")):oo(e.href)):f.getters["location/href"]()},$r=function(e){return e.match(/(.+?)(?:#|$)/)[1]},Kr=function(){return!0===b.get("ignoreHashRouting")},Zr=500;function Xr(){return _.isUndefined(jr)&&function e(){no(),jr=Ut(e,Zr)}(),()=>{clearTimeout(jr),jr=undefined}}var Yr=function(e){var t;try{t=Jr()}catch(n){}return t},Qr=[],eo=!1,to=null;function no(){var t=Wr().href;to!=t&&(to=t,_.map(Qr,function(e){e(t)}))}var io="queryStringWhitelist";function ro(e){var t=b.get("sanitizeUrl");return _.isFunction(t)?t(e):e}function oo(e){e=e||Wr().href;var t=b.get("annotateUrl");if(t)if(_.isFunction(t))try{var n,i,r,o=t();return o&&(_.isObject(o)||_.isArray(o))?(n=o.exclude,i=o.include,r=o.fragment,delete o.fragment,(n&&_.isArray(n)||i&&(_.isArray(i)||_.isObject(i)))&&(n&&(e=so(e,null,n,!0)),o=i||{}),Ur.urlFor(e,o,r)):e}catch(a){C.error("customer-provided `annotateUrl` function threw an exception",{error:a})}else C.error("customer-provided `annotateUrl` must be of type: function");return e}function ao(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function so(e,t,n,i){e=e||Yr(),t=t||ao(e).substring(1),o=(r=e.indexOf(t))+t.length;var r=e.substring(0,r),o=e.substring(o);return(r=(t=_.isArray(n)?co(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var uo,co=function(e,t,n){return n&&_.contains(t,"*")?"":(e=lo(e),e=n?_.omit(e,t):_.pick(e,t),po(e))},lo=function(e){e=e.split("&");return _.reduce(e,function(e,t){return(t=t.split("="))[0]&&(e[t[0]]=t[1]&&Et(t[1])),e},{})},po=function(e){return _.reduce(e,function(e,t,n){return t&&(n+="="+t),e&&(e+="&"),e+n},"")},k={watch:function(e){const n=[];C.info("Initializing Pendo URL Watcher");var i,t=b.get("location.pushState")&&ze.supportsHistoryApi();return eo||(t&&(i=window.history,_.each(["pushState","replaceState"],function(e){var t=i[e];i[e]=_.wrap(i[e],function(e){var t=e.apply(i,_.toArray(arguments).slice(1));return Ut(no,0),t}),i[e]._pendoUnwrapped=t,n.push(()=>{i[e]=t})}),n.push(Lr(window,"popstate",no))),ze.supportsHashChange()&&n.push(Lr(window,"hashchange",no)),!1!==t&&ze.supportsHashChange()||n.push(Xr()),eo=!0),Qr.push(e),()=>{_.each(n,function(e){e()}),Qr.length=0,eo=!1}},get:Yr,externalizeURL:function(e,t,n){n=n||b.get(io);return ro(so(e,t,n=_.isFunction(n)?n():n,!1))},startPoller:Xr,getWindowLocation:Wr,clear:function(){Qr=[]},isElectron:Hr,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 ho(){var e=b.getLocalConfig("dataHost");return e||((e=b.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:Je)}function fo(){uo=ho()}function go(){return b.get("assetHost")||mo()}function mo(){var e=b.get("contentHost")||$e;return e=e&&-1===e.indexOf("://")?"https://"+e:e}function vo(e){var t=go(),n=0<=(n=t).indexOf("localhost")||0<=n.indexOf("local.pendo.io")?e.replace(".min.js",".js"):e;return t+"/"+(Ke?Ke+"/":"")+n}function yo(){var e=b.get("allowPartnerAnalyticsForwarding",!1)&&b.get("adoptAnalyticsForwarding",!1);return b.get("trainingPartner",!1)||e}var bo=3,wo=1,So=9,Eo=11,Io=4;function A(e){var t;if((t=e)&&t.nodeType===wo)try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(n){}}function _o(e,t){var n;return!(!e||!_.isFunction(e.getPropertyValue))&&(n=[e.getPropertyValue("transform")],void 0!==t&&_.isString(t)&&n.push(e.getPropertyValue("-"+t.toLowerCase()+"-transform")),_.any(n,function(e){return e&&"none"!==e}))}function Co(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function xo(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function To(e){return _.isNumber(e)?e:0}function ko(e,t){e=e.offsetParent;return t=t||window,e=e&&e.parentElement===t.document.documentElement&&!Ro(e)?null:e}function Ao(e){return _o(A(e),Pe)&&isNaN(Ce)}function Ro(e){if(e)return(e=A(e))&&(_.contains(["relative","absolute","fixed"],e.position)||_o(e,Pe))}function Oo(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=Ro(t)?t:ko(t,n),i=t?No(t):{top:0,left:0},e=No(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+=To(t.scrollTop),i.left+=To(t.scrollLeft)),i.top-=To(t.clientTop),i.left-=To(t.clientLeft)):(i.top+=Co(n),i.left+=xo(n)),i.bottom=i.top+i.height,i.right=i.left+i.width,i}function No(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 Mo=void 0===(e=b.get("pendoCore"))||e,Lo=function(e,t,n){e=uo+"/data/"+e+"/"+t,t=_.map(n,function(e,t){return t+"="+e});return 0<t.length&&(e+="?"+t.join("&")),e};function Po(){return _.compact([E.apiKey].concat(E.additionalApiKeys))}var Do=function(e){return e+="v"+Xe,Go(Lo("log.gif",E.apiKey,{msg:e,version:Xe}))};function Fo(e){try{var t=uo+"/data/errorlog?apiKey="+E.apiKey,n={error:e,version:"v"+Xe,visitorId:y()},i=Bo.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):Ur.postJSON(t,n);return i.then(function(){C.info("successfully wrote error")},function(e){C.info("error writing error:"+e)})}catch(r){return C.info("Failed to write error to server using POST endpoint: "+r),Do("Failed to write error to server using POST endpoint: "+r)}}function Uo(e){try{var t=uo+"/data/agentmetrics/"+E.apiKey;C.debug(`Sending ${JSON.stringify(e)} to ${t} using `+(Bo.supported()?"fetch":"xhr")),Bo.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(e),headers:{"Content-Type":"application/json"}}):Ur.postJSON(t,e)}catch(n){C.critical("Failed to write metrics payload to server: "+n)}}function Go(e){var t,n;return qo()?(t=m.defer(),Lr(n=new Image,"load",t.resolve),Lr(n,"error",t.reject),n.src=e,t.promise):m.resolve()}function Bo(e,t={}){t=_.extend({},{method:"GET",keepalive:!0},t);return fetch(e,t)}function zo(e,t){return navigator.sendBeacon(e,t)}Bo.supported=function(){try{return _.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(e){return!1}};var jo=!(zo.supported=function(){return _.isFunction(navigator.sendBeacon)}),Ho=function(){var e=qo();return jo=!0,e&&v["transmit:locked"].trigger(),"Pendo Agent locked. No more events will be written."},qo=function(){return!jo&&Mo},Wo=function(e,t){try{return new RegExp("(\\s|^)"+t+"(\\s|$)").test(Ko(e))}catch(n){return!1}},Vo=function(e,t){try{var n;Wo(e,t)||(n=it.call(Ko(e))+" "+t,$o(e,n))}catch(i){}},Jo=function(e,t){try{var n,i;Wo(e,t)&&(n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=Ko(e).replace(n," "),$o(e,i))}catch(r){}},$o=function(e,t){_.isString(e.className)?e.className=t:e.setAttribute("class",t)},Ko=function(e){try{var t=e.className;return(_.isString(t)||!me(t)?t:e.getAttribute("class"))||""}catch(n){return""}},Zo=function(e){e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});return e=e.substr(0,1).toLowerCase()+e.substr(1)},Xo={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},Yo=function(e,t){t=function(e){if(_.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);Qo(e,t)},Qo=function(a,e){_.each(e,function(e,t){if(""!==(t=it.call(t))){var n=Zo(t),i=(!_.isNumber(e)||isNaN(e)||Xo[n]?_.isString(e)||(e=""+e):e+="px",e.indexOf("!important"));if(-1!==i)try{var r=it.call(r.substring(0,i));a.style.setProperty(t,r,"important")}catch(o){a.style.cssText+=";"+t+":"+e}else try{a.style[n]=it.call(e)}catch(o){C.info("failed to set style: "+t+" with value "+e)}}})},ea=function(e=window){return je()?{width:e.document.documentElement.offsetWidth||0,height:e.document.documentElement.offsetHeight||0}:{width:e.innerWidth||e.document.documentElement.clientWidth,height:e.innerHeight||e.document.documentElement.clientHeight}},ta=function(e){var t=ea(),n=Co(),i=xo();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function na(t){return _.each(["left","top","width","height"],function(e){t[e]=Math.round(t[e])}),t}function ia(e,t=window){var n;return function(e){var t,n=e;for(;n;){if(!(t=A(n)))return;if("fixed"===t.position)return!isNaN(Ce)||!la(n);n=n.parentNode}return}(e)?((n=No(e)).fixed=!0,na(n)):na(Oo(e,aa(t.document),t))}var ra=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},oa=function(e,t){try{return t.children.length+t.offsetHeight+t.offsetWidth-(e.children.length+e.offsetHeight+e.offsetWidth)}catch(n){return C.info("error interrogating body elements: "+n),Do("error picking best body:"+n),0}},aa=function(e=document){try{var t=Array.prototype.slice.call(e.getElementsByTagName("body"));return t&&1<t.length?(t.sort(oa),t[0]||e.body):e.body&&e.body.tagName&&"body"!==e.body.tagName.toLowerCase()?e.documentElement:e.body}catch(n){return Do("Error getting body element: "+n),e.body}};function sa(e){if(e&&e.parentNode){var t=e.parentNode,n=e;if(!t)return[];var i=[];if(t.childNodes)for(let e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];1===r.nodeType&&r!==n&&i.push(r)}return i}return[]}function ua(e,t=document){if(Ar.contains(t,e))return!0;for(;e&&e.parentNode||oi.isElementShadowRoot(e);)e=oi.getParent(e);return e===t}var da=function(e){var t,n,i;if(null!=e)return t=(n=e.ownerDocument||document).defaultView||window,i=aa(n),e===n||e===t?((n={left:t.pageXOffset||i.scrollLeft,top:t.pageYOffset||i.scrollTop,width:t.innerWidth,height:t.innerHeight}).right=n.left+n.width,n.bottom=n.top+n.height,n):((i=ia(e,t)).right=i.left+i.width,i.bottom=i.top+i.height,i)},ca=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function la(e){for(var t=e&&e.parentNode;t;){if(_o(A(t),Pe))return 1;t=t.parentNode}}var pa=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if(ua(e))for(i=e;i;)if(oi.isElementShadowRoot(i))i=i.host;else{if(i===r)return null;if(!(o=A(i)))return null;var o,a=o.position;if(i!==e&&t.test(o.overflow+o.overflowY+o.overflowX))return i.parentNode!==r||(o=A(r))&&!_.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&la(i))i=ko(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function ha(e,t){e=A(e);return t=t||/(auto|scroll|hidden)/,!e||"inline"===e.display?fa.NONE:t.test(e.overflowY)&&t.test(e.overflowX)?fa.BOTH:t.test(e.overflowY)?fa.Y:t.test(e.overflowX)?fa.X:t.test(e.overflow)?fa.BOTH:fa.NONE}var fa={X:"x",Y:"y",BOTH:"both",NONE:"none"};function ga(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&ua(e)}function ma(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 va(e){if(e){if(_.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function ya(e,t,n){const i=[];var r=va(document.documentElement);let o=va(pa(t)),a=0;for(;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=va(pa(o)),a++;return()=>{_.each(_.compact(i),function(e){e()}),i.length=0}}const ba=['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 wa(e,t,n){var i=da(t),t=ha(t,n);if(t!==fa.BOTH||ca(e,i)){if(t===fa.Y){if(e.top>=i.bottom)return;if(e.bottom<=i.top)return}if(t===fa.X){if(e.left>=i.right)return;if(e.right<=i.left)return}return 1}}function Sa(e){if(e){if(ga(e))return 1;var t=da(e);if(0!==t.width&&0!==t.height){var n=A(e);if(!n||"hidden"!==n.visibility){for(var i=e;i&&n;){if("none"===n.display)return;if(parseFloat(n.opacity)<=0)return;n=A(i=i.parentNode)}return 1}}}}function Ea(e,t){if(!Sa(e))return!1;if(!ga(e)){for(var n=da(e),i=pa(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!wa(n,i,t))return!1;i=pa(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=xo(),e+=Co()),o<=0||e<=0)return!1}}return!0}function Ia(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,u=da(e),d=pa(e,s);if(!Sa(e))return!1;for(;d;){if(t=da(d),(o=ha(d,a))!==fa.NONE&&(i=n=0,o!==fa.Y&&o!==fa.BOTH||(u.bottom>t.bottom&&(n+=u.bottom-t.bottom,u.top-=n,u.bottom-=n),u.top<t.top&&(n-=r=t.top-u.top,u.top+=r,u.bottom+=r)),o!==fa.X&&o!==fa.BOTH||(u.right>t.right&&(i+=u.right-t.right,u.left-=i,u.right-=i),u.left<t.left&&(i-=r=t.left-u.left,u.left+=r,u.right+=r))),!wa(u,d,s))return!1;d=pa(d,s)}return!0}function _a(e){for(var t,n,i,r,o,a=/(auto|scroll)/,s=aa(),u=pa(e,a);u&&u!==s;)t=da(e),n=da(u),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),_.isFunction(u.scrollBy)?u.scrollBy(r,i):(u.scrollTop+=i,u.scrollLeft+=r),u=pa(u,a)}n={$:{findOrCreate(e){return 0<this.length?this:T(e)},find(e){var t=T();return t.context=this.context,this.each(function(){T(e,this).each(function(){t[t.length++]=this})}),t},each(e){for(var t=0,n=this.length;t<n;++t)e.call(this[t],this[t],t);return this},html(e){return e===undefined?this.length?this[0].innerHTML:this:this.each(function(){this.innerHTML=e})},text(e){var t="innerText"in document.body;return e===undefined?t?this.length?this[0].innerText:this:this.length?this[0].textContent:this:this.each(function(){Yo(this,{"white-space":"pre-wrap"}),t?this.innerText=e:this.textContent=e})},addClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){Vo(t,e)})})},removeClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){Jo(t,e)})})},hasClass(e){e=e.split(/\s+/);var n=!0;return 0!==this.length&&(this.each(function(t){_.each(e,function(e){n=n&&Wo(t,e)})}),n)},toggleClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){(Wo(t,e)?Jo:Vo)(t,e)})})},css(e){return this.each(function(){Yo(this,e)}),this},appendTo(e){return T(e).append(this),this},append(e){var t=this;return T(e).each(function(){t.length&&t[0].appendChild(this),ua(this)&&_.each(Ar("script",this),ma)}),t},prependTo(e){return T(e).prepend(this),this},prepend(e){var t,n;return this.length&&(t=this[0],n=t.childNodes[0],T(e).each(function(){n?T(this).insertBefore(n):T(this).appendTo(t)})),this},getParent(){var e=T(this)[0];if(e&&e.parentNode)return T(e.parentNode)},insertBefore(e){e=T(e)[0];e&&e.parentNode&&(e.parentNode.insertBefore(this[0],e),ua(this[0]))&&_.each(Ar("script",this[0]),ma)},remove(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),this},attr(e,t){return _.isObject(e)?(this.each(function(){_.each(e,function(e,t){this.setAttribute(t,e)},this)}),this):t!==undefined?(this.each(function(){this.setAttribute(e,t)}),this):0<this.length?this[0].getAttribute(e):void 0},closest(e,t){for(var n=this[0];n&&!Ar.matchesSelector(n,e);)if((n=ri(n))===document||t&&Ar.matchesSelector(n,t))return T();return T(n)},eq(e){return T(this[e])},height(e){if(this.length)return e===undefined?this[0].offsetHeight:(this[0].style.height=e+"px",this)},width(e){if(this.length)return e===undefined?this[0].offsetWidth:(this[0].style.width=e+"px",this)},focus(){return this.each(function(){_.isFunction(this.focus)&&this.focus()})}}};class Ca{constructor(e=aa(),t={attributes:!0,childList:!0,subtree:!0}){if(this.listeners=[],this._teardown=()=>{},ze.MutationObserver){const n=new(gt("MutationObserver"))((e,t)=>{this.signal()});n.observe(e,t),this._teardown=()=>n.disconnect}else{const i=setInterval(()=>{this.signal()},500);this._teardown=()=>{clearInterval(i)}}}signal(){_.each(this.listeners,e=>{e.get()})}addObservers(...e){this.listeners=[].concat(this.listeners,e)}teardown(){this._teardown()}}Di=function(){function e(e){this._object=e}return e.prototype.deref=function(){return this._object},e};var xa="function"==typeof(i=window.WeakRef)&&/native/.test(i)?i:Di();function Ta(e,t){var n,i;return e.tagName&&_.contains(["textarea","input"],e.tagName.toLowerCase())?(n=e.value,i=t,n.length<=i?n:Oa(n.substring(0,i))):ka(e,t)}function ka(e,t=128){var n,i="",r=e.nodeType;if(r===bo||r===Io)return e.nodeValue;if((n=e).tagName&&"textarea"!=n.tagName.toLowerCase()&&(r===wo||r===So||r===Eo)){if(!e.childNodes)return i;for(var o,a=0;a<e.childNodes.length;++a){if(t<=(i+(o=ka(e.childNodes[a],t-i.length))).length)return i+Oa(o.substring(0,t-i.length));i+=o}}return i}function Aa(e){return 55296<=e&&e<=56319}function Ra(e){return 56320<=e&&e<=57343}function Oa(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(Aa(t)||Ra(t)){if(1===e.length)return e.slice(0,-1);if(Aa(t))return e.slice(0,-1);if(Ra(t))if(!Aa(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}class Na{constructor(e){this.listeners={},this.events=[],this.cssSelector=e}get(){let t=this.elRef&&this.elRef.deref();var e=ua(t);if(!t||!e){if(t&&!e&&this.teardown(t),!(t=T(this.cssSelector)[0]))return undefined;_.each(this.events,e=>{t.addEventListener(e,e=>this.onEvent(e))}),this.elRef=new xa(t)}return t}getText(e=1024){return Ta(this.get(),e)}addEventListener(e,t){var n=this.get();this.events.indexOf(e)<0&&(this.events.push(e),n)&&n.addEventListener(e,e=>this.onEvent(e)),this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t)}onEvent(t){var e=t.type;_.each(this.listeners[e],e=>e(t))}teardown(t=this.get()){t&&_.each(this.events,e=>t.removeEventListener(e,this.onEvent))}}function Ma(t){if(!t)return!1;if(t===window.location.origin)return!0;if(t===ho())return!0;if(t===go())return!0;if(t===mo())return!0;var e=b.get("adoptHost");if(e&&t==="https://"+e)return!0;return!!ie(t,b.get("allowedOriginServers",[]),b.get("allowedOriginServerHashes",[]))||_.any([/^https:\/\/(adopt\.)?((us1)\.)?(app|via|adopt|cdn)(\.(au|eu|gov|hsbc|jpn))?\.pendo\.io$/,/^https:\/\/([0-9]{8}t[0-9]{4}-dot-)pendo-(au|eu|govramp|hsbc|io|jp-prod|us1)\.appspot\.com$/,/^https:\/\/hotfix-(ops|app)-([0-9]+-dot-)pendo-(au|eu|govramp|hsbc|io|jp-prod|us1)\.appspot\.com$/,/^https:\/\/pendo-(au|eu|govramp|hsbc|io|jp-prod|us1)-static\.storage\.googleapis\.com$/,/^https:\/\/([a-zA-Z0-9-]+\.)*pendo-dev\.com$/,/^https:\/\/([a-zA-Z0-9-]+-dot-)?pendo-(apollo|armada|atlas|batman|calypso|dap|dev|dr-us-east1|eu-dev|freeze|helix|link|magic|mcfly|ml|mobile-fbi|mobile-guides|mobile-hummus|mobile-plat|perfserf|voc|wildlings|ionchef|scrum-ops|security|test|uat|au|eu|govramp|hsbc|io|jp-prod|us1)\.appspot\.com$/,/^https:\/\/(via|adopt|local)\.pendo\.(local|io):\d{4}$/,/^https:\/\/pendo-(apollo|armada|atlas|batman|calypso|dap|dev|dr-us-east1|eu-dev|freeze|helix|link|magic|mcfly|ml|mobile-fbi|mobile-guides|mobile-hummus|mobile-plat|perfserf|voc|wildlings|ionchef|scrum-ops|security|test|uat)-static\.storage\.googleapis\.com$/],function(e){return e.test(t)})}function La(e){var t;if(_.isString(e))return t=(t=ao(e).substring(1))&&t.length?lo(t):{},e=_.last(_.first(e.split("?")).split("/")).split("."),{filename:_.first(e),extension:e.slice(1).join("."),query:t}}function Pa(e,t){var n;b.get("guideValidation")&&ze.sri&&(n=La(t),t=_.find(["sha512","sha384","sha256"],function(e){return!!n.query[e]}))&&(e.integrity=t+"-"+(t=n.query[t],_.isString?t.replace(/-/g,"+").replace(/_/g,"/"):t),e.setAttribute("crossorigin","anonymous"))}_.extend(T,{data:Or,event:Fr,removeNode:ra,getClass:Ko,hasClass:Wo,addClass:function(e,t){var n;"string"==typeof e?(n=T(e),_.map(n,function(e){Vo(e,t)})):Vo(e,t)},removeClass:function(e,t){var n;"string"==typeof e?(n=T(e),_.map(n,function(e){Jo(e,t)})):Jo(e,t)},getBody:aa,getComputedStyle:A,getClientRect:da,intersectRect:ca,getScrollParent:pa,isElementVisible:Ea,Observer:Ca,Element:Na,scrollIntoView:_a,getRootNode:va}),_.extend(T.prototype,Fr.$,n.$);var Da,Fa=function(e){var t=!((t=b.get("allowedOriginServers",[]))&&0<t.length||(t=b.get("allowedOriginServerHashes",[]))&&0<t.length),n=yo();return!(!t&&!n)||Ma(e)},Ua=function(e,t,n=!1){try{var i,r="text/css",o="text/javascript";if(_.isString(e)&&(e={url:e}),!Fa((d=e.url,new ei(d).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 u=document.createElement("link");u.type=r,u.rel="stylesheet",u.href=e.url,Pa(u,e.url),a=u}else{if(ft())return(i=document.createElement("script")).addEventListener("load",function(){t(),ra(i)}),i.type=o,i.src=K(E).createScriptURL(e.url),Pa(i,e.url),document.body.appendChild(i),i;(i=document.createElement("script")).type=o,i["async"]=!0,i.src=K(E).createScriptURL(e.url),Pa(i,e.url),a=i,t=_.wrap(t,function(e,t){if(T.removeNode(i),t)return n&&e(t),{};e.apply(this,_.toArray(arguments).slice(1))})}return s.appendChild(a),Ga(a,e.url,t),a}catch(c){return{}}var d},Ga=function(e,t,n){var i=!1;me(n)&&(e.onload=function(){!0!==i&&(i=!0,n(null,t))},e.onerror=function(){!0!==i&&(i=!0,n(new Error("Failed to load script"),t))},e.onreadystatechange=function(){i||e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(i=!0,n(null,t))},"link"===e.tagName.toLowerCase())&&(Ut(function(){var e;i||((e=new Image).onload=e.onerror=function(){!0!==i&&(i=!0,n(null,t))},e.src=t)},500),Ut(function(){i||C.critical("Failed to load "+t+" within 10 seconds")},1e4))},Ba=function(e){var t=JSON.parse(e.data),n=e.origin;C.debug(E.app_name+": Message: "+JSON.stringify(t)+" from "+n),ts(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},za=function(e){Ha(Ja)(ja(e))},ja=function(e){if(e.data)try{var t="string"==typeof e.data?JSON.parse(e.data):e.data,n=e.origin,i=e.source;if(!t.action&&!t.mutation){if(t.type&&"string"==typeof t.type)return{data:t,origin:n,source:i};C.debug("Invalid Message: Missing 'type' in data format")}}catch(r){}};function Ha(t){return function(e){if(e&&Ma(e.origin))return t.apply(this,arguments)}}var qa={disconnect(e){},module:function(e){es(e.moduleURL)},debug:function(e){rs(Ba)}},Wa=function(e,t){qa[e]=t},Va=function(e){delete qa[e]},Ja=function(e){var t;e&&(t=e.data)&&me(qa[t.type])&&qa[t.type](t,e)},$a={},Ka=function(e){if($a[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},Za=function(e){return me($a[e])},Xa=function(e){if($a)for(var t in $a)if(0<=t.indexOf(e))return t;return null},Ya=[],Qa=function(){var e;Ya.length<1||(e=Ya.shift(),Za(e))||Ua(e,function(){Ka(e),Qa()})};var es=function(e){!function(e){var t={"/js/lib/ckeditor/ckeditor.js":1};_.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 ei(e);return Ma(n.origin)&&t[n.pathname]}catch(i){C.debug("Invalid module URL: "+e)}}(e)||(Ya.push(e),1<Ya.length)||Qa()},ts=function(e,t,n){var i,r=_.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=Da||is(),n="*"),t.guid=r,e&&_.isFunction(e.postMessage)&&(i=JSON.stringify(t),e.postMessage(i,n))}catch(o){t=o&&o.message||"";C.info("Failed to postMessage: "+t)}return r},ns=function(){return window!=window.top},is=function(){return new RegExp("^"+Tt(uo).replace(/^https?:/,"https?:")).test(location.href)?window.parent:window.top},rs=function(e){var t;return me(window.addEventListener)&&_.isFunction(window.addEventListener)&&(t=Ha(e),window.addEventListener("message",t,!1)),function(){me(window.removeEventListener)&&_.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},os=_.memoize(function(){return b.get("restrictP1Access")}),as=[],ss=[],us=[],ds=12e4,cs=16,ls=1900,ps=65536,hs=function(e){return!(!e||""===e)},fs=function(){return k.get()},gs={flush:_.noop,flushBy:_.noop,flushEvents:bs,flushTrackEvents:bs,flushAgenticEvents:bs,flushSilos:bs,flushTrackEventSilos:bs,flushAgenticEventSilos:bs,flushBeacons:bs,flushNow:bs,flushLater:ws,flushEvery:Ss,flushStop:Es,beacons:[],silos:[],trackEventSilos:[],agenticEventSilos:[],lock:Ho,unlock:function(){if(!qo())return Is(),function(){var e=!qo();return jo=!1,e&&v["transmit:unlocked"].trigger(),"Pendo Agent unlocked. Events will be written."}()}},ms=[];function vs(e){ms.push(e)}function ys(e){e=ms.indexOf(e);0<=e&&ms.splice(e,1)}function bs(e,t){try{_.each(ms,function(e){e.flush&&e.flush(t)})}catch(n){C.critical("unhandled error while flushing event cache",{error:n})}}function ws(e){return t=_.partial(bs,!0),n=e,n=parseInt(n,10)||0,t[n]||(i=Ut(function(){t(),t[n]()},n),t[n]=function(){window.clearTimeout(i),delete t[n]});var t,n,i}function Ss(e){var t;if(e=parseInt(e,10)||0,_.isObject(Ss.intervals)||(Ss.intervals={}),!Ss.intervals[e])return t=window.setInterval(bs,e),Ss.intervals[e]=function(){clearInterval(t),delete Ss.intervals[e]}}function Es(){var e=_.values(Ss.intervals).concat([bs]);_.map(e,function(e){_.isFunction(e)&&e()})}function Is(){_.each(ms,function(e){e.clear&&e.clear()}),Es()}function _s(e){try{return window.TextDecoder?JSON.parse((new TextDecoder).decode((t=e.split(".")[1],t=atob(t),Uint8Array.from(t,e=>e.codePointAt(0))))):JSON.parse(atob(e.split(".")[1]))}catch(n){return null}var t}function Cs(e,t){return t=t?t+": ":"",e.jwt||e.signingKeyName?e.jwt&&!e.signingKeyName?(C.debug(t+"The jwt is supplied but missing signingKeyName."),!1):e.signingKeyName&&!e.jwt?(C.debug(t+"The signingKeyName is supplied but missing jwt."),!1):(e=e.jwt,!(!_.isString(e)||!/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/.test(e))||(C.debug(t+"The jwt is invalid."),!1)):(C.debug(t+"Missing jwt and signingKeyName."),!1)}xs=null;var xs,Ts={set:function(e){xs=JSON.parse(JSON.stringify(e||{}))},get:function(){return null!==xs?xs:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!b.get("enableSignedMetadata")&&(n=Cs(e,t),b.get("requireSignedMetadata")&&!n?(C.debug("Pendo will not "+t+"."),!1):n?_s(e.jwt):void C.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}};class ks{constructor(e,t=100){this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.sendFn=e,this.maxFailures=t}isEmpty(){return this.queue.length<=0}stop(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.stopped=!0,clearTimeout(this.timer),delete this.timer}start(){this.stopped=!1}push(...e){this.queue.push(...e),this.next()}next(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)}incrementFailure(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),t}pass(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e),this.failures.clear();e=this.queue.indexOf(e);0<=e&&this.queue.splice(e,1),!this.stopped&&t&&this.next()}fail(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e);var n=this.incrementFailure(e);!this.stopped&&t&&(n>=this.maxFailures&&(this.onTimeout&&this.onTimeout(),this.pass(e,!1)),this.retryLater(1e3*Math.pow(2,Math.min(n-1,6))))}retryLater(e){this.timer=Ut(()=>{delete this.timer,this.next()},e)}failed(){return 0<this.failures.get(this.queue[0])&&null!=this.timer}send(e,t,n){return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(()=>this.pass(e,n),()=>this.fail(e,n))}drain(e,t=!0){if(this.queue.push(...e),this.failed())return rn.reject();var n=[];for(const i of this.queue)this.pending.has(i)?this.retryPending&&t&&!this.unloads.has(i)&&(this.incrementFailure(i),n.push(this.send(i,t,!1))):n.push(this.send(i,t,!1));return rn.all(n)}}const As="unsentEvents";class Rs{constructor(){this.events={}}send(t,n){var i=this.events[t];if(i){let e=i.shift();for(;e;)n.push(e),e=i.shift();delete this.events[t]}}push(e,t){var n=this.events[e]||[];n.push(t),this.events[e]=n}read(e){e.registry.addLocal(As);try{this.events=JSON.parse(e.read(As)||"{}"),e.clear(As)}catch(t){this.events={}}}write(e){0<_.size(this.events)?e.write(As,JSON.stringify(this.events),5184e5):e.clear(As)}}var Os=new Rs;const Ns=e=>_.reduce(e,(e,t)=>e+_.get(t,"detail.increment",1),0),Ms="pendo-guide-loop-timeout",Ls={ptm:"pendo-ptm-gif-failure",guide:"pendo-guide-gif-failure",poll:"pendo-poll-gif-failure",agentic:"pendo-agentic-gif-failure"},Ps={name:"pendo-guide-loop",debuggingOnly:!0},Ds={name:"pendo-event-captured",debuggingOnly:!0},Fs="pendo-initialize",Us="pendo-teardown",Gs={};Gs[Ms]={name:Ms,type:"counter",instrument:Ns},_.each(Ls,e=>{Gs[e]={name:e,type:"counter",instrument:Ns}}),Gs[Ps.name]=Ps,Gs[Ds.name]=Ds,Gs[Fs]={name:Fs},Gs[Us]={name:Us};var Bs="debug-enabled";function zs(){try{var e=h.read(Bs)||JSON.parse(Ht(Bs));return"boolean"==typeof e?{enabled:e}:e||{}}catch(t){return{}}}function js(e=!0){let t;return t=f&&f.getters&&f.getters["debugger/debuggingEnabled"]?f.getters["debugger/debuggingEnabled"]():!0===zs().enabled,e?t:t?"Yes":"No"}class Hs{constructor(){this._isPerformanceApiAvailable=this._checkPerformanceApi(),this._measuringPerformance=!1,this._debugging=!1,this._setDebuggingBound=_.bind(this._setDebugging,this),this.marks=new Set,this.measures=new Set}initialize(){return b.get("performanceMetricsEnabled")?(this._measuringPerformance=!0,this._markPerformance(Fs),this._setDebugging(),v.debuggerLaunched.on(this._setDebuggingBound),this.interval=setInterval(()=>{this.send()},6e5),()=>{this.teardown()}):_.noop}teardown(){this._markPerformance(Us),this.send(),this._measuringPerformance=!1,this._setDebugging(),v.debuggerLaunched.off(this._setDebuggingBound),this._clearMarksAndMeasures(),clearInterval(this.interval)}startTimer({name:e,debuggingOnly:t},n=null){t&&!this._debugging||this._markPerformance(e+"-start",{detail:n})}stopTimer({name:e,debuggingOnly:t},n=null){t&&!this._debugging||(this._markPerformance(e+"-stop",{detail:n}),this._measurePerformance(e,{detail:n}))}count(e,t=1){this._markPerformance(e,{detail:1<t?{type:"counter",increment:t}:null})}send(){var e=_.reduce(Gs,(e,t)=>{var{name:t,type:n,instrument:i}=t;return i&&(i=i(performance.getEntriesByName(t)),e.push({name:t,type:n,value:i,timestamp:Date.now()})),e},[]);this._clearMarksAndMeasures(),_.size(e)&&Uo(e)}_checkPerformanceApi(){return Ie("performance.mark")&&Ie("performance.measure")&&Ie("performance.getEntries")&&Ie("performance.getEntriesByName")&&Ie("performance.clearMarks")&&Ie("performance.clearMeasures")}_shouldMeasurePerformance(){return this._isPerformanceApiAvailable&&this._measuringPerformance}_setDebugging(){this._debugging=js()}_markPerformance(e,t){this._shouldMeasurePerformance()&&(performance.mark(e,t),this.marks.add(e))}_measurePerformance(e,t){var n,i;this._shouldMeasurePerformance()&&(n=e+"-start",i=e+"-stop",performance.getEntriesByName(n).length)&&performance.getEntriesByName(i).length&&(performance.measure(e,n,i,t),this.measures.add(e))}_clearMarksAndMeasures(){this.marks.forEach(e=>{performance.clearMarks(e)}),this.marks.clear(),this.measures.forEach(e=>{performance.clearMeasures(e)}),this.measures.clear()}}const qs=new Hs;var Ws="_PENDO_UNNAMED_",Vs=5;function Js(e,t,n,i,r,o){var a,s;a=b.get("dropAnonymous"),s=Pn(y()),!Mo||a&&s||(a=t,s=n,t=i,n=r,r=o,s={type:o=e,browser_time:S(),visitor_id:y({generate:!0}),account_id:$n(),url:k.externalizeURL(s),props:a||{},eventProperties:n},s=gn.addTracerIds(s),"track"===o&&(s.track_event_name=t||Ws),v.eventCaptured.trigger(s,r),hs((a=s).url)&&("track"===e?su:"agentic"===i?uu:au).push(a))}function $s(){var r=_.toArray(arguments);return function(e,t){var n=r.concat([t]);!function i(t,e){t<n.length&&n[t](e,function(e){i(t+1,e)})}(0,e)}}let Ks=0;function Zs(e,t){e.sequence=Ks++,t(e)}function Xs(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 Ys(e,t){return yo()?Qs("account_id")(e,t):t(e)}function Qs(s){return function(e,t){if(!e.length)return t(e);for(var n=_.get(e[0],s),i=!0,r=1;r<e.length;r++)if(n!==_.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 eu(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function tu(e,t,n){t=n[t-1]||_.last(n);return Math.ceil(e/t)}function nu(e,t){for(var n,i=0,r=(_.isFunction(t.overhead)?t.overhead:_.constant(0))(),o=0;o<e.length;++o){if(tu(n=eu(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if(tu(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(tu(i+(n=eu(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return-1}function iu(){var e=Ts.get();return _.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}var ru,ou,au,su,uu,du;function cu(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=E.squeezeAndCompress(e.slice()),e.JZB.length<=ps)||1===e.length?t(e):(n=e.length/2,cu(e.slice(0,n),t),void cu(e.slice(n),t))}function lu(e,t){qo()&&t(e)}function pu(){return function(e,t){1===e.length&&e.JZB.length>ps?(C.debug("Couldn't write event"),Do("Single item is: "+e.JZB.length+". Dropping."),Fo(e.JZB)):t(e)}}function hu(e,t){return Lo(t.beacon+".gif",e,_.extend({v:Xe,ct:S(),jzb:t.JZB},t.params,t.auth))}function fu(e,t){return Lo(t.beacon+".gif",e,_.extend({v:Xe,ct:S(),s:t.JZB.length},t.params))}function gu(i){return function(e,t){e.params=_.extend({},e.params,i.params),e.beacon=i.beacon,e.eventLength=e.JZB.length;var n=Ts.get();_.isEmpty(n)||(e.auth=n,e.eventLength+=n.jwt.length,e.eventLength+=n.signingKeyName.length),t(e)}}function mu(e,t){var n=yo(),i=_.first(e),i=_.get(i,"account_id");n&&i&&(e.params=_.extend({},e.params,{acc:dt(i)})),t(e)}function vu(e,t){var n=_.first(e),n=_.get(n,"props.source");n&&(e.params=_.extend({},e.params,{source:n})),t(e)}function yu(e){return JSON.stringify(_.extend({events:e.JZB},e.auth))}function bu(e){return e.status<200||300<=e.status?m.reject(new Error(`received status code ${e.status}: `+e.statusText)):m.resolve()}function wu(e,t){return Bo(hu(e,t)).then(bu)}function Su(e,t){return fetch(fu(e,t),{method:"POST",keepalive:!0,body:yu(t),headers:{"Content-Type":"application/json"}}).then(bu)}function Eu(e,t){var n=yu(t);return zo(fu(e,t),n)?m.resolve():m.reject()}function Iu(n){return function(e,t){return t.JZB?t.eventLength<=ls&&!b.get("sendEventsWithPostOnly")?n.preferFetch&&!t.auth&&Bo.supported()?wu(e,t):t.auth?Ur({method:"GET",url:hu(e,t)}):Go(hu(e,t)):n.allowPost&&t.eventLength<=ps?Bo.supported()?Su(e,t):zo.supported()?Eu(e,t):Ur({method:"POST",url:fu(e,e=t),data:yu(e),headers:{"Content-Type":"application/json"}}):m.resolve():m.resolve()}}function _u(n){return function(e,t){if(t.JZB){if(t.eventLength<=ls&&!b.get("sendEventsWithPostOnly",!1)){if(!t.auth&&Bo.supported())return wu(e,t);if(ze.msie<=11)return Ur({method:"GET",url:hu(e,t),sync:!0})}if(t.eventLength<=ps&&n.allowPost){if(Bo.supported())return Su(e,t);if(zo.supported())return Eu(e,t);if(ze.msie<=11)return Ur({method:"POST",url:fu(e,e=t),data:yu(e),sync:!0,headers:{"Content-Type":"application/json"}})}}return m.resolve()}}function Cu(e,t){e.length=0;var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);t(i)}function xu(e){return $s(lu,Ys,cu,(t=e.shorten,t=_.defaults(t||{},{fields:[],siloMaxLength:ps}),function(n,e){var i;1===n.length&&n.JZB.length>t.siloMaxLength&&(i=n[0],C.debug("Max length exceeded for an event"),_.each(t.fields,function(e){var t=i[e];t&&2e3<t.length&&(C.debug("shortening "+t+" and retrying"),i[e]=t.substring(0,2e3),delete n.JZB)})),e(n)}),cu,pu(),gu(e),mu,vu,Cu);var t}class Tu{constructor(e){this.queues=e}isEmpty(){return _.all(this.queues,e=>e.isEmpty())}stop(){_.each(this.queues,e=>e.stop())}push(){const t=_.toArray(arguments);_.each(this.queues,e=>e.push.apply(e,t))}drain(){const t=_.toArray(arguments);return m.all(_.map(this.queues,e=>e.drain.apply(e,t)))}}function ku(o,a,s){a=a||Iu(o),s=s||_u(o);e=o;var e=_.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey),e=_.map(e,(i,r)=>{var e=new ks(function(e,t,n){return n&&(e.params=_.extend({},e.params,{rt:n})),o.localStorageUnload&&t?(0===r&&Os.push(o.beacon,e),m.resolve()):(t?s:a)(i,e)});return e.onTimeout=function(){qs.count(Ls[o.beacon])},e.retryPending=!0,e}),e=new Tu(e);return Os.send(o.beacon,e),e}function Au(e,t){var n=b.get("analytics.excludeEvents");0<=_.indexOf(n,e.type)||t(e)}class Ru{constructor(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.sendQueue=ku(e)}pause(e=1e4){var t=_.uniqueId();const n=this["locks"];n[t]=1;var i=()=>{n[t]&&(v.trigger("ptm:unpaused"),clearTimeout(r),delete n[t],this.flush())},r=Ut(i,e);return v.trigger("ptm:paused"),i}push(e){this.packageSilos(e,e=>{this.silos.push(e)})}clear(){this.cache.length=0,this.silos.length=0,this.sendQueue.stop()}flush({unload:e=!1,hidden:t=!1}={}){var{cache:n,silos:i}=this;if((0!==n.length||0!==i.length||!this.sendQueue.isEmpty())&&_.isEmpty(this.locks)){i.push(n.slice()),n.length=0;n=i.slice();i.length=0;const r=[];_.each(n,function(e){this.processSilos(e,function(e){r.push(e)})},this),e||t?this.sendQueue.drain(r,e):this.sendQueue.push(...r)}}}function Ou(e){var i,r,t=xu(e),n=$s((r=e.beacon,function(e,t){var n=b.get("excludeNonGuideAnalytics");"ptm"===r&&n||t(e)}),Au,Zs,Xs(e.cache),(i={overhead:iu,lower:b.get("sendEventsWithPostOnly")?ps:ls,upper:ps,compressionRatio:[.5*Vs,.75*Vs,Vs]},function(e,t){for(var n=nu(e,i);0<=n;)t(e.splice(0,Math.max(n,1))),n=nu(e,i)}));return new Ru(_.extend({processSilos:t,packageSilos:n},e))}var Nu=Qn(function(e){var t,n,i;if((e=e||k.get())&&e!==Nu.lastUrl)return Nu.lastUrl=e,t=-1,os()||ns()&&(i=is(),ts(i,{type:"load",url:location.toString()},"*")),C.debug("sending load event for url "+e),t={load_time:t="undefined"!=typeof performance&&_.isFunction(performance.getEntriesByType)&&!_.isEmpty(performance.getEntriesByType("navigation"))?(i=performance.getEntriesByType("navigation")[0]).loadEventStart-i.fetchStart:t},ns()&&(t.is_frame=!0),"*"!==(n=kt())&&(t.allowed_storage_keys=_.keys(n)),Js("load",t,e),ws(),v.urlChanged.trigger(),!0});function Mu(e){return"hidden"===e.visibilityState}Nu.reset=function(){Nu.lastUrl=null};const Lu="visibilitychange",Pu="pagehide",Du="unload";function Fu(){this.serializers=_.toArray(arguments)}function Uu(e,t){return e.tag=oi.isElementShadowRoot(t)?"#shadow-root":t.nodeName||"",e}function Gu(e){return me(e)?""+e:""}function Bu(e,t){return e.id=Gu(t.id),e}function zu(e,t){return e.cls=Gu(T.getClass(t)),e}_.extend(Fu.prototype,{add(e){this.serializers.push(e)},remove(e){e=_.indexOf(this.serializers,e);0<=e&&this.serializers.splice(e,1)},serialize(n,i){return n?(i=i||n,_.reduce(this.serializers,function(e,t){return t.call(this,e,n,i)},{},this)):{}}});var ju=256,Hu=64,qu={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 Wu=function(e,t,n){if(!e||!e.nodeName)return null;var i=e.nodeName.toLowerCase();if(("img"==i&&"src"==t||"a"==i&&"href"==t)&&qr())return i=e.getAttribute(t),ro((i=i)&&0===i.indexOf("data:")?(C.debug("Embedded data provided in URI."),i.substring(0,i.indexOf(","))):i+"");i=e,e=t;t=f.getters["nodeAttr/getAttribute"]()(i,e);return(!n||typeof t===n)&&t?_.isString(t)?it.call(t).substring(0,ju):t:null};function Vu(t){var e,n,i;return _.isRegExp(t)&&_.isFunction(t.test)?function(e){return t.test(e)}:_.isArray(t)?(e=_.map(_.filter(t,_.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 _.any(e,function(e){return e.test(t)})}):_.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)}):_.constant(!1)}function Ju(e,t,n,i){try{var r,o=_.indexBy(t),a=_.filter(_.filter(e,function(e){return n(e.nodeName)||o[e.nodeName]}),function(e){return!i(e.nodeName)});return a.length<=Hu?_.pluck(a,"nodeName"):(r=_.groupBy(e,function(e){return o[e.nodeName]?"defaults":_.isString(e.value)&&e.value.length>ju?"large":"small"}),_.pluck([].concat(_.sortBy(r.defaults,"nodeName")).concat(_.sortBy(r.small,"nodeName")).concat(_.sortBy(r.large,"nodeName")).slice(0,Hu),"nodeName"))}catch(s){return C.error("Error collecting DOM Node attributes: "+s),[]}}function $u(t,n){var e=Vu(b.get("htmlAttributes")),i=Vu(b.get("htmlAttributeBlacklist")),r=(i("title")||(t.title=Wu(n,"title","string")),(t.tag||"").toLowerCase()),r=("input"===r&&(r+='[type="'+n.type+'"]'),t.attrs={},Ju(n.attributes,qu[r]&&qu[r].attr,e,i));return _.each(r,function(e){t.attrs[e.toLowerCase()]=Wu(n,e)}),t}function Ku(e,t){var n;return t.parentNode&&t.parentNode.childNodes&&(n=_.chain(t.parentNode.childNodes),e.myIndex=n.indexOf(t).value(),n=n.filter(function(e){return e.nodeType==wo}),e.childIndex=n.indexOf(t).value()),e}function Zu(i,e){var r;return b.get("siblingSelectors")&&e.previousElementSibling&&(r="_pendo_sibling_",this.remove(Zu),e=this.serialize(e.previousElementSibling),this.add(Zu),i.attrs=i.attrs||{},_.each(e,function(e,t){var n={cls:"class",txt:"pendo_text"}[t]||t;_.isEmpty(e)||(_.isObject(e)?_.each(e,function(e,t){e&&!_.isEmpty(e)&&(i.attrs[r+n+"_"+t]=e)}):i.attrs[r+n]=e)})),i}var Xu=new Fu(Uu,Bu,zu,$u,Ku,Zu),Yu=function(e){return"BODY"===e.nodeName&&e===aa()||null===e.parentNode&&!oi.isElementShadowRoot(e)},Qu="pendo-ignore",ed="pendo-analytics-ignore",td=function(e){var t={},n=t,i=e,r=!1;if(!e)return t;do{var o=i,a=Xu.serialize(o,e)}while(r||!ht(a.cls,Qu)&&!ht(a.cls,ed)||(r=!0),n.parentElem=a,n=a,(i=oi.getParent(o))&&!Yu(o));return r&&(t.parentElem.ignore=!0),t.parentElem},nd=["","left","right","middle"],t=function(e){return e},e=function(e,t){return e[t]},id=[["button",function(e){return e.which||e.button},function(){return!0},function(e,t){return nd[t]}],["altKey",e,t,t],["ctrlKey",e,t,t],["metaKey",e,t,t],["shiftKey",e,t,t]],rd={click:function(e,t){for(var n=[],i=0;i<id.length;i++){var r=id[i],o=r[0],a=r[1],s=r[2],r=r[3],a=a(e,o);s(a)&&n.push(r(o,a))}return t.flags=n,t}},od=function(t){try{if(qs.startTimer(Ds),!T.data.get(t,"counted")){T.data.set(t,"counted",!0);var n=Dr(t),i=t.type,e={},r=rd[i];if(r&&(e=r(t,e)),T.data.get(t,"stopped")&&(e.stopped=!0),t.from&&_.isString(t.from)&&(e.from=t.from),n=(s=n).nodeType===bo?s.parentNode:s.nodeType===Io?null:s.correspondingUseElement||s){var o=td(n),a=(_.extend(o,e),Nu());if(a&&k.startPoller(),!o.ignore){let e;"click"===i&&(e=function(e){e=function(e){const n={};return{getEventProperties(){return n},addEventProperty(e,t){_.isString(e)&&!_.isUndefined(t)?n[e]=t:C.error("Failed to add click event property")},target:e}}(e),v.onClickCaptured.trigger(e),e=e.getEventProperties();if(!_.isEmpty(e))return e}(n)),Js(i,{target:o},undefined,undefined,e,t),v.trigger("appUsage",o,t)}}else C.info("Invalid HTML target",{contexts:["event","dom","processing"]})}}catch(u){C.critical("pendo.io while handling event",{error:u})}finally{qs.stopTimer(Ds)}var s};var ad=_.debounce(od,5e3,!0),sd=function(e){const t=[];_.contains(e=e||["click","focus","submit","change"],"change")&&(e=_.without(e,"change"),t.push(()=>{ad.cancel()}),t.push(Lr(document,"change",ad,!0)));var n,i=b.get("interceptElementRemoval")||b.get("syntheticClicks.elementRemoval"),r=b.get("syntheticClicks.targetChanged"),r=(t.push(function(t,e,n,i){var r,o,a=[],s=ze.hasEvent("pointerdown"),u=s?"pointerdown":"mousedown",s=s?"pointerup":"mouseup",d=[],c={cloneEvent:function(e){e=T.event.clone(e);return e.type="click",e.from=u,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&&Dr(r)!==Dr(e)&&ua(Dr(r))&&(o=!0,t(r))},click:function(e){r=null,o&&T.data.set(e,"ignore",!0),o=!1,n&&c.unwrap()},intercept:function(e){e=function(e){var t=[];for(;e&&!Yu(e);)t.push(e),e=e.parentNode;return t}(Dr(e));_.each(e,function(e){e=ud(e,c.remove);a.push(e)})},remove:function(){r&&(t(r),r=null),c.unwrap()},unwrap:function(){0<a.length&&(_.each(a,function(e){e()}),a=[])},teardown:function py(){c.unwrap(),_.each(d,function(e){e()})}};e&&(d.push(Lr(document,u,c.down,!0)),d.push(Lr(document,s,c.up,!0)),d.push(Lr(document,"click",c.click,!0)));return c}(T.event.trigger,ze.addEventListener,i,r).teardown),t.push((i=e,n=_.map(i,function(e){return l(document,e,od,!0)}),()=>{_.each(n,function(e){e()})})),t.push(function(e,t){if(t){const n=[];return n.push(Lr(document,Lu,()=>{Mu(document)&&e(!0,!1)})),n.push(Lr(window,Pu,_.partial(e,!1,!0))),()=>_.each(n,function(e){e()})}return Lr(window,Du,_.partial(e,!0,!0))}(function(e,t){t&&v.appUnloaded.trigger(),e&&v.appHidden.trigger()},b.get("preventUnloadListener"))),b.get("interceptStopPropagation",!0)),i=b.get("interceptPreventDefault",!0);return r&&t.push(dd(window.Event,e)),i&&t.push(cd(window.Event,["touchend"])),()=>{_.each(t,function(e){e()})}};function ud(n,i){var e=["remove","removeChild"];try{if(!n)return _.noop;_.each(e,function(e){var t=n[e];if(!t)return _.noop;n[e]=_.wrap(t,function(e){return i&&i(),e.apply(this,_.toArray(arguments).slice(1))}),n[e]._pendoUnwrap=function(){if(!n)return _.noop;n[e]=t,delete n[e]._pendoUnwrap}})}catch(t){C.critical("ERROR in interceptRemove",{error:t})}return function(){_.each(e,function(e){if(!n[e])return _.noop;e=n[e]._pendoUnwrap;_.isFunction(e)&&e()})}}function dd(n,e){var t=["stopPropagation","stopImmediatePropagation"];try{if(!n||!n.prototype)return _.noop;var i=_.indexBy(e);_.each(t,function(e){var t=n.prototype[e];t&&(n.prototype[e]=_.wrap(t,function(e){var t=e.apply(this,arguments);return i[this.type]&&(T.data.set(this,"stopped",!0),T.event.trigger(this)),t}),n.prototype[e]._pendoUnwrap=function(){n.prototype[e]=t,delete n.prototype[e]._pendoUnwrap})})}catch(r){C.critical("ERROR in interceptStopPropagation",{error:r})}return function(){_.each(t,function(e){e=n.prototype[e]._pendoUnwrap;_.isFunction(e)&&e()})}}function cd(t,e){try{if(!t||!t.prototype)return _.noop;var i=_.indexBy(e),n=t.prototype.preventDefault;if(!n)return _.noop;t.prototype.preventDefault=_.wrap(n,function(e){var t,n=e.apply(this,arguments);return i[this.type]&&((t=T.event.clone(this)).type="click",t.from=this.type,t.bubbles=!0,t.eventPhase=Nr,T.event.trigger(t)),n}),t.prototype.preventDefault._pendoUnwrap=function(){t.prototype.preventDefault=n,delete t.prototype.preventDefault._pendoUnwrap}}catch(r){C.critical("ERROR in interceptPreventDefault",{error:r})}return function(){var e=t.prototype.preventDefault._pendoUnwrap;_.isFunction(e)&&e()}}function l(e,t,n,i){return e&&t&&n?(i&&!ze.addEventListener&&(i=!1),T.event.add(e,{type:t,handler:n,capture:i})):_.noop}function R(e,t,n,i){e&&t&&n&&(i&&!ze.addEventListener&&(i=!1),T.event.remove(e,t,n,i))}var ld=function(e){T.data.set(e,"pendoStopped",!0),e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1},pd=function(e,t){return"complete"!==(t=t||window).document.readyState?Lr(t,"load",e):(e(),_.noop)};function hd(){return E.normalizedUrl||function(e){try{var t=new ei(e),n=_.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(i){return C.error("Invalid URL provided to normalize"),e}}(k.externalizeURL())}function fd(t,e,n={}){if(!me(t))return!0;var i=e||hd(),{logger:r,context:o,id:a}=n;if(Array.isArray(t)){if(0===t.length)return!0;for(let e=0;e<t.length;e++){var s=t[e];if(me(s))try{if(new RegExp(s).test(i))return!0}catch(u){r&&o&&a&&r.error(`Invalid page rule regex for ${o} (rule ${e}):`,a,u)}}}else if("string"==typeof t)try{return new RegExp(t).test(i)}catch(u){r&&o&&a&&r.error(`Invalid page rule regex for ${o}:`,a,u)}return!1}function gd(e,t){return fd(e,t,{logger:C,context:"guide",id:"unknown"})}var O=[],md=[],vd={};let yd={};function bd(){return O}function wd(){return Sd(O)}function Sd(e){return _.filter(e,function(e){return!e.isFrameProxy})}function Ed(e){_.isArray(e)?(O=e,v.guideListChanged.trigger({guideIds:_.pluck(e,"id")})):C.info("bad guide array input to `setActiveGuides`")}var Id=function(){let n=[];return{addGuide:e=>{var t;_.isEmpty(e)||(n=n.concat(e),_.each(n,e=>e.hide&&e.hide()),e=O,(t=_.difference(e,n)).length<e.length&&(Ed(t),f.dispatch("frames/changeGuideList",t)))}}}();function _d(t,n){return _.find(Td(),function(e){return _.get(e,t)===n})||null}function N(e){return _d("id",e)}function Cd(e){return _d("name",e)}function xd(e,t){return e&&e.id?(e=N(e.id)).findStepById(t):null}function Td(){var e=_.values(yd);return e.length?O.concat(_.flatten(e)):O}var kd="_pendo-guide-tt_",Ad="_pendo-guide-mobile-tt_",Rd=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},Od=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)},Nd=function(e){return!!_.get(e,"attributes.form")};function Md(){return"undefined"!=typeof selmo&&selmo.isPreviewing}function Ld(){return!!(Md()&&ea().width<=320)||ze.isMobileUserAgent()}function Pd(e=document){var t=Pd.attachPoint;if(null==t){var n=b.get("guides.attachPoint");if(_.isString(n)){try{t=Ar(n)[0]}catch(i){C.info('Error finding guide attach point "'+n+'"')}t=t||document.createElement("div")}else t=!!_.isFunction(n)&&n();Pd.attachPoint=t}return t||aa(e)}var Dd=function(e){var t=vd[e.guideId];if(t){t=t.element();if(ua(t)&&t.id==="_pendo-badge_"+e.id)return t}},Fd=function(e,t){var n;return e?(n=e.getGuide(),n="building-block"===_.get(n,"attributes.type")||!Od(n),!e.overrideElement&&n&&(e.overrideElement=Dd(e)),e.targetElement=Ud(e,t),e.overrideElement||e.targetElement):(C.info("Can't get element for null step"),null)},Ud=function(e,t){e=e.elementPathRule||null,e=e?Ar(e,t):[aa(t)];return 0===e.length?null:_.first(e)};function Gd(e){var t=_.get(e,"attributes.activation.selector");return t||e.steps[0].elementPathRule}function Bd(e,t,n){var i,r,o,e=ia(e),t=ia(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!==ta(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),_.contains([fa.X,fa.BOTH],i)&&(r.x=0);_.contains([fa.Y,fa.BOTH],i)&&(r.y=0);return r}(a,ea(),n,ha(aa(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}function zd(e,t,n,i,r){var o,a=_.toArray(arguments).slice(1),s=e.apply(this,a);return n||va(o=Pd())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function jd(){return f.getters["frames/isLeader"]()}function Hd(e){return f.dispatch("frames/updateFrameVisibility",{visibility:e})}const qd={validateGuide:1,validateLauncher:1,validateGlobalScript:1},Wd={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1},Vd={ready:1},Jd=["ready","onClickCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","validateGuide","validateLauncher","validateGlobalScript"];function $d(i){const e=_.reduce(Jd,function(e,r){if(Wd[r]){const t=function(e){return Zd[r].apply(Zd[r],e.data)};i[r].on(t),e.push(()=>i[r].off(t))}if(Vd[r]){const n=function(t){{var n=r;t=t.data[0];let e;try{e=new CustomEvent("pendo_"+n,{detail:t})}catch(i){if(!document.createEvent)return;(e=document.createEvent("Event")).initEvent("pendo_"+n,!0,!0),e.detail=t}document.dispatchEvent(e)}};i[r].on(n),e.push(()=>i[r].off(n))}return e},[]);return()=>_.each(e,e=>e())}Kd=wn.call({}),_.each(Jd,function(n){Kd[n]=function(e){var t;return _.isFunction(e)?Kd.on(n,e):(t=qd[n]?"triggerAsync":"trigger",Kd[t].apply(Kd,[n].concat(_.toArray(arguments))))}});var Kd,Zd=Kd;var Xd={post:function(e,t,n,i){return n.ajax.postJSON(e.replace(/\/guides\.js\//,"/guides.json/"),t).then(function(e){n.guidesPayload(e.data),i()})},load(e,t,n){return t.ajax.get(e).then(function(e){t.guidesPayload(e.data),n()})},endpoint(){return"guide.json"},usesXhr(){return!0}};function Yd(e){e=La(e);if(e){e=e.filename;if(e)return 54<e.length?e.substring(28,55):e}}ec=rc={failed:{},verified:{}},nc=Fo,ic=function(e){try{var t=[];return!Xd.usesXhr()&&e.domJsonpUrl?t.push(sc(e,"domJsonpUrl")):Xd.usesXhr()&&e.domUrl&&t.push(ac(e,"domUrl")),e.contentUrlJs?t.push(sc(e,"contentUrlJs")):e.contentUrl&&t.push(sc(e,"contentUrl")),m.all(t)}catch(n){throw v.contentVerificationFail.trigger(e,n),n}},tc=function(e){return ic(e).then(_.noop,function(e){return/verify/.test(e)&&nc(e),m.reject(e)})},Qd=function(t){return ec.failed[t.id]?m.reject():ec.verified[t.id]?m.resolve():tc(t).then(function(){ec.verified[t.id]=!0},function(e){return ec.failed[t.id]=!0,m.reject(e)})};var Qd,ec,tc,nc,ic,rc,oc={verify:function(e){return b.get("guideValidation")?Qd(e):m.resolve()},reset:function(){rc.failed={},rc.verified={}}};function ac(e,t){var n,i=e[t];return _.isString(i)?(n=(e=e)[{domUrl:"domHash",domJsonpUrl:"domJsonpHash",contentUrl:"contentHash",contentUrlJs:"contentJsHash"}[t=t]]||Yd(e[t]),Ur.get(i).then(function(e){var t;if("object"==typeof(e=e.data)&&(e=JSON.stringify(e)),(t=V.create()).update(e),c.uint8ToBase64(t.digest())!==n)return m.reject('Unable to verify content at "'+i+'"')})):m.reject('unable to parse "'+i+'"')}function sc(e,t){var n=e[t];return ze.sri&&/[?&]sha(256|384|512)=/.test(n)?m.resolve():ac(e,t)}uc="allow",dc="deny",cc="pending",pc=function(){return 0<_.size(Zd._handlers.validateGuide)},hc=function(e,n){var i=[];return _.each(e,function(e,t){n&&(t=n+"."+t),_.isObject(e)?_.each(hc(e,t),function(e){i.push(e)}):i.push([t,e])}),i};var uc,dc,cc,lc,pc,hc,fc={state:lc={},Step:function(e){var n=this;function i(e){return _.filter([["content",Yd(e.contentUrl)],["contentCss",Yd(e.contentUrlCss)],["contentJs",Yd(e.contentUrlJs)],["dom",Yd(e.domUrl)],["domJsonp",Yd(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=hc(t)).length&&(t=_.sortBy(t,function(e){return e[0]}),e.push(["variables",t])),e)},n},Guide:function(){return this.signature=function(){return _.map(this.steps,function(e){return e.signature()})},this},Launcher:function(){var n=this,i=!1,r=function(){return 0<_.size(Zd._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=lc[t])!==dc)&&(t!==uc?(i=!0,t=JSON.stringify(n.signature()),e="launcher-"+ct(t),Zd.validateLauncher(t).then(function(){lc[e]=uc},function(){lc[e]=dc}).then(function(){i=!1,n.render(),n.update(O)},function(){i=!1}),!1):void 0)}),n.signature=function(){var e=[],t=hc(this.data);return t.length&&(t=_.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(!pc())return m.resolve();try{return _.get(e,"attributes.resourceCenter.isTopLevel",!1)?(t=e,n=P.findResourceCenterModules(t,O),t=[t].concat(n),m.all(_.map(t,gc))):gc(e)}catch(i){throw v.contentValidationFail.trigger(e,i),i}var t,n},valid:function(e){return!pc()||!!(e=lc[e.guideId])&&e.status===uc},invalid:function(e){return!!pc()&&!!(e=lc[e.guideId])&&e.status===dc},reset(){lc={}}};function gc(i){var r=lc[i.id];return r||(r={},lc[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:cc},r.status=cc),r[t].promise);return n||(n=Zd.validateGuide(e,i).then(function(){r[t].status=uc,r.status=uc},function(e){return r[t].status=dc,r.status=dc,m.reject(e)}),r[t].promise=n),n})}function mc(e,t){var n=_.toArray(arguments).slice(2);return _.reduce(e,function(e,t){return t.apply(e,n)},t)}function vc(e){return _.isFunction(e.before)?e:mc(vc.behaviors,e)}function yc(e,t){return mc(yc.behaviors,e,t)}function bc(e){var t,n,i=b.getLocalConfig("contentHost");return i&&e?(t=new RegExp(`(https:)?\\/\\/${Ve}-\\d+\\.storage\\.googleapis\\.com`,"g"),n=new RegExp(`(https:)?\\/\\/${We}\\.storage\\.googleapis\\.com`,"g"),e.replace(t,i).replace(n,i).replace(new RegExp("(https:)?\\/\\/"+Tt($e),"g"),i)):e}function wc(e){return b.getLocalConfig("contentHost")?JSON.parse(bc(JSON.stringify(e))):e}vc.behaviors=[],yc.behaviors=[];var Sc=function(){var d={},c=_.compose(function(e){var t=function(){var e=Tt(b.getHostedConfig("contentHost"));if(e)return e+"*"}();return t&&!new RegExp(t).test(e)&&C.debug("Failed to verify URL: "+e+" vs "+t),e},bc);const u=[function(e,t,n){return e.replace(`<% if (typeof guide !== 'undefined') { %>
4
+ function loadAgent(u){d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");var d,c={uint8ToBase64:function(e){var t,n,i,r=e.length%3,o="";for(t=0,i=e.length-r;t<i;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],o+=function(e){return d[e>>18&63]+d[e>>12&63]+d[e>>6&63]+d[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=d[n>>2])+d[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=d[n>>10])+d[n>>4&63])+d[n<<2&63]}return o}},Gt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var G,o,B,z,j,H,q,e={exports:{}};function W(e){e?(H[0]=H[16]=H[1]=H[2]=H[3]=H[4]=H[5]=H[6]=H[7]=H[8]=H[9]=H[10]=H[11]=H[12]=H[13]=H[14]=H[15]=0,this.blocks=H):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}n=e,G="object"==typeof window?window:{},t=!G.JS_SHA1_NO_COMMON_JS&&n.exports,o="0123456789abcdef".split(""),B=[-2147483648,8388608,32768,128],z=[24,16,8,0],j=["hex","array","digest","arrayBuffer"],H=[],q=function(t){return function(e){return new W(!0).update(e)[t]()}},W.prototype.update=function(e){if(!this.finalized){for(var t,n,i="string"!=typeof e,r=0,o=(e=i&&e.constructor===G.ArrayBuffer?new Uint8Array(e):e).length||0,a=this.blocks;r<o;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),i)for(n=this.start;r<o&&n<64;++r)a[n>>2]|=e[r]<<z[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<z[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<z[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<z[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<z[3&n++],a[n>>2]|=(128|t>>12&63)<<z[3&n++]),a[n>>2]|=(128|t>>6&63)<<z[3&n++]),a[n>>2]|=(128|63&t)<<z[3&n++]);this.lastByteIndex=n,this.bytes+=n-this.start,64<=n?(this.block=a[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return 4294967295<this.bytes&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},W.prototype.finalize=function(){var e,t;this.finalized||(this.finalized=!0,e=this.blocks,t=this.lastByteIndex,e[16]=this.block,e[t>>2]|=B[3&t],this.block=e[16],56<=t&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash())},W.prototype.hash=function(){for(var e,t=this.h0,n=this.h1,i=this.h2,r=this.h3,o=this.h4,a=this.blocks,s=16;s<80;++s)e=a[s-3]^a[s-8]^a[s-14]^a[s-16],a[s]=e<<1|e>>>31;for(s=0;s<20;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n&i|~n&r)+o+1518500249+a[s]<<0)<<5|o>>>27)+(t&(n=n<<30|n>>>2)|~t&i)+r+1518500249+a[s+1]<<0)<<5|r>>>27)+(o&(t=t<<30|t>>>2)|~o&n)+i+1518500249+a[s+2]<<0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|~r&t)+n+1518500249+a[s+3]<<0)<<5|n>>>27)+(i&(r=r<<30|r>>>2)|~i&o)+t+1518500249+a[s+4]<<0,i=i<<30|i>>>2;for(;s<40;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n^i^r)+o+1859775393+a[s]<<0)<<5|o>>>27)+(t^(n=n<<30|n>>>2)^i)+r+1859775393+a[s+1]<<0)<<5|r>>>27)+(o^(t=t<<30|t>>>2)^n)+i+1859775393+a[s+2]<<0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^t)+n+1859775393+a[s+3]<<0)<<5|n>>>27)+(i^(r=r<<30|r>>>2)^o)+t+1859775393+a[s+4]<<0,i=i<<30|i>>>2;for(;s<60;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n&i|n&r|i&r)+o-1894007588+a[s]<<0)<<5|o>>>27)+(t&(n=n<<30|n>>>2)|t&i|n&i)+r-1894007588+a[s+1]<<0)<<5|r>>>27)+(o&(t=t<<30|t>>>2)|o&n|t&n)+i-1894007588+a[s+2]<<0)<<5|i>>>27)+(r&(o=o<<30|o>>>2)|r&t|o&t)+n-1894007588+a[s+3]<<0)<<5|n>>>27)+(i&(r=r<<30|r>>>2)|i&o|r&o)+t-1894007588+a[s+4]<<0,i=i<<30|i>>>2;for(;s<80;s+=5)t=(e=(n=(e=(i=(e=(r=(e=(o=(e=t<<5|t>>>27)+(n^i^r)+o-899497514+a[s]<<0)<<5|o>>>27)+(t^(n=n<<30|n>>>2)^i)+r-899497514+a[s+1]<<0)<<5|r>>>27)+(o^(t=t<<30|t>>>2)^n)+i-899497514+a[s+2]<<0)<<5|i>>>27)+(r^(o=o<<30|o>>>2)^t)+n-899497514+a[s+3]<<0)<<5|n>>>27)+(i^(r=r<<30|r>>>2)^o)+t-899497514+a[s+4]<<0,i=i<<30|i>>>2;this.h0=this.h0+t<<0,this.h1=this.h1+n<<0,this.h2=this.h2+i<<0,this.h3=this.h3+r<<0,this.h4=this.h4+o<<0},W.prototype.toString=W.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4;return o[e>>28&15]+o[e>>24&15]+o[e>>20&15]+o[e>>16&15]+o[e>>12&15]+o[e>>8&15]+o[e>>4&15]+o[15&e]+o[t>>28&15]+o[t>>24&15]+o[t>>20&15]+o[t>>16&15]+o[t>>12&15]+o[t>>8&15]+o[t>>4&15]+o[15&t]+o[n>>28&15]+o[n>>24&15]+o[n>>20&15]+o[n>>16&15]+o[n>>12&15]+o[n>>8&15]+o[n>>4&15]+o[15&n]+o[i>>28&15]+o[i>>24&15]+o[i>>20&15]+o[i>>16&15]+o[i>>12&15]+o[i>>8&15]+o[i>>4&15]+o[15&i]+o[r>>28&15]+o[r>>24&15]+o[r>>20&15]+o[r>>16&15]+o[r>>12&15]+o[r>>8&15]+o[r>>4&15]+o[15&r]},W.prototype.array=W.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4;return[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,r>>24&255,r>>16&255,r>>8&255,255&r]},W.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(20),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),e},i=function(){var t=q("hex");t.create=function(){return new W},t.update=function(e){return t.create().update(e)};for(var e=0;e<j.length;++e){var n=j[e];t[n]=q(n)}return t}(),t?n.exports=i:G.sha1=i;var V=p(e.exports);let J;const $={createScriptURL:e=>e,createHTML:e=>e};function K(e){return J||(J=e.trustedTypesPolicy||(window.trustedTypes&&"function"==typeof window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("pendo",$):$),e.trustedTypesPolicy=J),J}var E,Z="stagingServerHashes",X={};function Y(e){return e.loadAsModule}function Q(e){return"staging"===e.environmentName}function ee(e){return"extension"===e.installType}function te(t=[],n){var i=/^https:\/\/[\w\-.]*cdn[\w\-.]*\.(pendo-dev\.com|pendo\.io)\/agent\/static\/([\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12}|PENDO_API_KEY)\/pendo\.js$/g;for(let e=0;e<t.length;e++){var r=t[e];if(i.test(r.src)||r.id==="pendo-"+n)return r}}function ne(e,t,n){e=function(e=[]){if(e=te(e))return e.src.replace(/\.js$/,"-staging.js")}(document.getElementsByTagName("script"))||e.stagingAgentUrl;return n&&(n="unminified.js",t&&(n="staging-"+n),e=e&&e.replace(/staging\.js$/,n)),e}function ie(n,i=[],r=[]){if(n){if(0<r.length){e=n;var o=c.uint8ToBase64(V.create().update(e).digest());for(let e=0,t=r.length;e<t;++e)if(r[e]===o)return!0}var e;if(0<i.length)for(let t=0,e=i.length;t<e;++t){let e=i[t];if((e="string"==typeof(e="object"==typeof e&&e.value?e.regexp?(e.value.startsWith("/")&&e.value.endsWith("/")&&(e.value=e.value.substring(1,e.value.length-1)),new RegExp(e.value)):e.value:e)?new RegExp("^"+e+"$"):e)instanceof RegExp&&e.test(n))return!0}}return!1}function re(e,t){return!!(e=e||X)&&(!!Q(e)||ie((t=t||window.location).host,e.stagingServers,e[Z]))}var oe=["initialize","identify","updateOptions","pageLoad","track","clearSession"];function ae(e,t,n){(e._q=e._q||[])["initialize"===t?"unshift":"push"]([].concat.apply([t],n))}function se(e){if(!e._q)for(var t=oe,n=0,i=t.length;n<i;++n)!function(e,t){t[e]=t[e]||function(){ae(t,e,arguments)}}(t[n],e)}function ue(e,t,n){if(!ee(i=e)&&!Q(i)&&re(i)){i=ne(e,!0,n);if(i)return se(t),ce(i,t),!0}var i;return!1}function de(e,t,n){if(r=n,!ee(i=e)&&!i.unminified&&r){i=ne(e,!1,n);if(i)return se(t),ce(i,t),!0}var i,r;return!1}function ce(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 le(e){X=e}function pe(){return void 0===u?{}:u}function he(e){return X[e]}fe(window.setTimeout,window);function fe(e,t){return"function"==typeof e.bind?e.bind(t):e}var ge,Ut=function(e){var t="setTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return fe(e[t],e)}(window),_=p(function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof Gt&&Gt.global===Gt&&Gt||Function("return this")()||{},i=Array.prototype,D=Object.prototype,F="undefined"!=typeof Symbol?Symbol.prototype:null,U=i.push,u=i.slice,l=D.toString,G=D.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),B=Array.isArray,z=Object.keys,j=Object.create,H=t&&ArrayBuffer.isView,q=isNaN,W=isFinite,V=!{toString:null}.propertyIsEnumerable("toString"),J=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],$=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 Z(e){return!0===e||!1===e||"[object Boolean]"===l.call(e)}function r(e){var t="[object "+e+"]";return function(e){return l.call(e)===t}}var X=r("String"),Y=r("Number"),Q=r("Date"),ee=r("RegExp"),te=r("Error"),ne=r("Symbol"),ie=r("ArrayBuffer"),a=r("Function"),e=e.document&&e.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof e?function(e){return"function"==typeof e||!1}:a,e=r("Object"),re=n&&e(new DataView(new ArrayBuffer(8))),a="undefined"!=typeof Map&&e(new Map),n=r("DataView");var h=re?function(e){return null!=e&&p(e.getInt8)&&ie(e.buffer)}:n,f=B||r("Array");function g(e,t){return null!=e&&G.call(e,t)}var oe=r("Arguments"),ae=(!function(){oe(arguments)||(oe=function(e){return g(e,"callee")})}(),oe);function se(e){return Y(e)&&q(e)}function ue(e){return function(){return e}}function de(t){return function(e){e=t(e);return"number"==typeof e&&0<=e&&e<=$}}function ce(t){return function(e){return null==e?void 0:e[t]}}var m=ce("byteLength"),le=de(m),pe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var he=t?function(e){return H?H(e)&&!h(e):le(e)&&pe.test(l.call(e))}:ue(!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=J.length,i=e.constructor,r=p(i)&&i.prototype||D,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=J[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function y(e){if(!o(e))return[];if(z)return z(e);var t,n=[];for(t in e)g(e,t)&&n.push(t);return 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 F.valueOf.call(e)===F.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 u,d=y(e);if(s=d.length,y(t).length!==s)return!1;for(;s--;)if(u=d[s],!g(t,u)||!ye(e[u],t[u],n,i))return!1}n.pop();i.pop();return!0}(e,t,n,i))}function d(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=d(e);if(v(t))return!1;for(var n=0;n<r;n++)if(!p(e[i[n]]))return!1;return i!==Se||!p(e[we])}}var we="forEach",e=["clear","delete"],n=["get","has","set"],B=e.concat(we,n),Se=e.concat(n),t=["add"].concat(e,we,"has"),n=a?be(B):r("Map"),e=a?be(Se):r("WeakMap"),B=a?be(t):r("Set"),a=r("WeakSet");function w(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function Ee(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Ie(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function _e(u,d){return function(e){var t=arguments.length;if(d&&(e=Object(e)),!(t<2||null==e))for(var n=1;n<t;n++)for(var i=arguments[n],r=u(i),o=r.length,a=0;a<o;a++){var s=r[a];d&&void 0!==e[s]||(e[s]=i[s])}return e}}var Ce=_e(d),s=_e(y),xe=_e(d,!0);function Te(e){var t;return o(e)?j?j(e):((t=function(){}).prototype=e,e=new t,t.prototype=null,e):{}}function ke(e){return f(e)?e:[e]}function S(e){return b.toPath(e)}function Ae(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function Re(e,t,n){e=Ae(e,S(t));return K(e)?n:e}function Oe(e){return e}function E(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=S(t),function(e){return Ae(e,t)}}function I(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)?I(e,t,n):(o(e)&&!f(e)?E:Ne)(e)}function Le(e,t){return Me(e,t,Infinity)}function _(e,t,n){return b.iteratee!==Le?b.iteratee(e,t):Me(e,t,n)}function Pe(){}function De(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}b.toPath=ke,b.iteratee=Le;var C=Date.now||function(){return(new Date).getTime()};function Fe(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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Ue=Fe(t),t=Fe(Ee(t)),Ge=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Be=/(.)^/,ze={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},je=/\\|'|\r|\n|\u2028|\u2029/g;function He(e){return"\\"+ze[e]}var qe=/^\s*(\w|\$)+\s*$/;var We=0;function Ve(e,t,n,i,r){return i instanceof t?(i=Te(e.prototype),o(t=e.apply(i,r))?t:i):e.apply(n,r)}var x=c(function(r,o){var a=x.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}),Je=(x.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")})),T=de(v);function k(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=Infinity;for(var r=i.length,o=0,a=v(e);o<a;o++){var s=e[o];if(T(s)&&(f(s)||ae(s)))if(1<t)k(s,t-1,n,i),r=i.length;else for(var u=0,d=s.length;u<d;)i[r++]=s[u++];else n||(i[r++]=s)}return i}var $e=c(function(e,t){var n=(t=k(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Je(e[i],e)}return e});var Ke=c(function(e,t,n){return Ut(function(){return e.apply(null,n)},t)}),Ze=x(Ke,b,1);function Xe(e){return function(){return!e.apply(this,arguments)}}function Ye(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=x(Ye,2);function et(e,t,n){t=_(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=_(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=_(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(u.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 ut(e,t,n){t=(T(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function A(e,t,n){if(t=I(t,n),T(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else for(var i=y(e),r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e);return e}function R(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=Array(r),a=0;a<r;a++){var s=i?i[a]:a;o[a]=t(e[s],s,e)}return o}function dt(p){return function(e,t,n,i){var r=3<=arguments.length,o=e,a=I(t,i,4),s=n,u=!T(o)&&y(o),d=(u||o).length,c=0<p?0:d-1;for(r||(s=o[u?u[c]:c],c+=p);0<=c&&c<d;c+=p){var l=u?u[c]:c;s=a(s,o[l],l,o)}return s}}var ct=dt(1),lt=dt(-1);function O(e,i,t){var r=[];return i=_(i,t),A(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(!t(e[a],a,e))return!1}return!0}function ht(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(t(e[a],a,e))return!0}return!1}function N(e,t,n,i){return T(e)||(e=w(e)),0<=at(e,t,n="number"==typeof n&&!i?n:0)}var ft=c(function(e,n,i){var r,o;return p(n)?o=n:(n=S(n),r=n.slice(0,-1),n=n[n.length-1]),R(e,function(e){var t=o;if(!t){if(null==(e=r&&r.length?Ae(e,r):e))return;t=e[n]}return null==t?t:t.apply(e,i)})});function gt(e,t){return R(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,u=(e=T(e)?e:w(e)).length;s<u;s++)null!=(n=e[s])&&o<n&&(o=n);else i=_(i,t),A(e,function(e,t,n){r=i(e,t,n),(a<r||r===-Infinity&&o===-Infinity)&&(o=e,a=r)});return o}var vt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function yt(e){return e?f(e)?u.call(e):X(e)?e.match(vt):T(e)?R(e,Oe):w(e):[]}function bt(e,t,n){if(null==t||n)return(e=T(e)?e:w(e))[De(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=De(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=_(i,e),A(n,function(e,t){t=i(e,t,n);o(r,e,t)}),r}}var wt=M(function(e,t,n){g(e,n)?e[n].push(t):e[n]=[t]}),St=M(function(e,t,n){e[n]=t}),Et=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),It=M(function(e,t,n){e[n?0:1].push(t)},!0);function _t(e,t,n){return t in n}var Ct=c(function(e,t){var n={},i=t[0];if(null!=e){p(i)?(1<t.length&&(i=I(i,t[1])),t=d(e)):(i=_t,t=k(t,!1,!1),e=Object(e));for(var r=0,o=t.length;r<o;r++){var a=t[r],s=e[a];i(s,a,e)&&(n[a]=s)}}return n}),xt=c(function(e,n){var t,i=n[0];return p(i)?(i=Xe(i),1<n.length&&(t=n[1])):(n=R(k(n,!1,!1),String),i=function(e,t){return!N(n,t)}),Ct(e,i,t)});function Tt(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function kt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Tt(e,e.length-t)}function L(e,t,n){return u.call(e,null==t||n?1:t)}var At=c(function(e,t){return t=k(t,!0,!0),O(e,function(e){return!N(t,e)})}),Rt=c(function(e,t){return At(e,t)});function Ot(e,t,n,i){Z(t)||(i=n,n=t,t=!1),null!=n&&(n=_(n,i));for(var r=[],o=[],a=0,s=v(e);a<s;a++){var u=e[a],d=n?n(u,a,e):u;t&&!n?(a&&o===d||r.push(u),o=d):n?N(o,d)||(o.push(d),r.push(u)):N(r,u)||r.push(u)}return r}var Nt=c(function(e){return Ot(k(e,!0,!0))});function Mt(e){for(var t=e&&mt(e,v).length||0,n=Array(t),i=0;i<t;i++)n[i]=gt(e,i);return n}var Lt=c(Mt);function Pt(e,t){return e._chain?b(t).chain():t}function Dt(n){return A(Ie(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return U.apply(e,arguments),Pt(this,t.apply(b,e))}}),b}A(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=i[t];b.prototype[t]=function(){var e=this._wrapped;return null!=e&&(n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0]),Pt(this,e)}}),A(["concat","join","slice"],function(e){var t=i[e];b.prototype[e]=function(){var e=this._wrapped;return Pt(this,e=null!=e?t.apply(e,arguments):e)}});var P=Dt({__proto__:null,VERSION:"1.13.6",restArguments:c,isObject:o,isNull:function(e){return null===e},isUndefined:K,isBoolean:Z,isElement:function(e){return!(!e||1!==e.nodeType)},isString:X,isNumber:Y,isDate:Q,isRegExp:ee,isError:te,isSymbol:ne,isArrayBuffer:ie,isDataView:h,isArray:f,isFunction:p,isArguments:ae,isFinite:function(e){return!ne(e)&&W(e)&&!isNaN(parseFloat(e))},isNaN:se,isTypedArray:he,isEmpty:function(e){var t;return null==e||("number"==typeof(t=v(e))&&(f(e)||X(e)||ae(e))?0===t:0===v(y(e)))},isMatch:ge,isEqual:function(e,t){return ye(e,t)},isMap:n,isWeakMap:e,isSet:B,isWeakSet:a,keys:y,allKeys:d,values:w,pairs:function(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i},invert:Ee,functions:Ie,methods:Ie,extend:Ce,extendOwn:s,assign:s,defaults:xe,create:function(e,t){return e=Te(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():Ce({},e):e},tap:function(e,t){return t(e),e},get:Re,has:function(e,t){for(var n=(t=S(t)).length,i=0;i<n;i++){var r=t[i];if(!g(e,r))return!1;e=e[r]}return!!n},mapObject:function(e,t,n){t=_(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:ue,noop:Pe,toPath:ke,property:Ne,propertyOf:function(t){return null==t?Pe:function(e){return Re(t,e)}},matcher:E,matches:E,times:function(e,t,n){var i=Array(Math.max(0,e));t=I(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:De,now:C,escape:Ue,unescape:t,templateSettings:Ge,template:function(o,e,t){e=xe({},e=!e&&t?t:e,b.templateSettings);var t=RegExp([(e.escape||Be).source,(e.interpolate||Be).source,(e.evaluate||Be).source].join("|")+"|$","g"),a=0,s="__p+='";if(o.replace(t,function(e,t,n,i,r){return s+=o.slice(a,r).replace(je,He),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(!qe.test(t))throw new Error("variable is not a bare identifier: "+t)}else s="with(obj||{}){\n"+s+"}\n",t="obj";s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{throw new Error("Function constructor not supported")}catch(n){throw n.source=s,n}return(e=function(e){return(void 0).call(this,e,b)}).source="function("+t+"){\n"+s+"}",e},result:function(e,t,n){var i=(t=S(t)).length;if(!i)return p(n)?n.call(e):n;for(var r=0;r<i;r++){var o=null==e?void 0:e[t[r]];void 0===o&&(o=n,r=i),e=p(o)?o.call(e):o}return e},uniqueId:function(e){var t=++We+"";return e?e+t:t},chain:function(e){return(e=b(e))._chain=!0,e},iteratee:Le,partial:x,bind:Je,bindAll:$e,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:Ze,throttle:function(n,i,r){var o,a,s,u,d=0,c=(r=r||{},function(){d=!1===r.leading?0:C(),o=null,u=n.apply(a,s),o||(a=s=null)}),e=function(){var e=C(),t=(d||!1!==r.leading||(d=e),i-(e-d));return a=this,s=arguments,t<=0||i<t?(o&&(clearTimeout(o),o=null),d=e,u=n.apply(a,s),o||(a=s=null)):o||!1===r.trailing||(o=Ut(c,t)),u};return e.cancel=function(){clearTimeout(o),d=0,o=a=s=null},e},debounce:function(t,n,i){var r,o,a,s,u,d=function(){var e=C()-o;e<n?r=Ut(d,n-e):(r=null,i||(s=t.apply(u,a)),r||(a=u=null))},e=c(function(e){return u=this,a=e,o=C(),r||(r=Ut(d,n),i&&(s=t.apply(u,a))),s});return e.cancel=function(){clearTimeout(r),r=a=u=null},e},wrap:function(e,t){return x(t,e)},negate:Xe,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:Ye,once:Qe,findKey:et,findIndex:nt,findLastIndex:it,sortedIndex:rt,indexOf:at,lastIndexOf:st,find:ut,detect:ut,findWhere:function(e,t){return ut(e,E(t))},each:A,forEach:A,map:R,collect:R,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:O,select:O,reject:function(e,t,n){return O(e,Xe(_(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,E(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,u=(e=T(e)?e:w(e)).length;s<u;s++)null!=(n=e[s])&&n<o&&(o=n);else i=_(i,t),A(e,function(e,t,n){((r=i(e,t,n))<a||r===Infinity&&o===Infinity)&&(o=e,a=r)});return o},shuffle:function(e){return bt(e,Infinity)},sample:bt,sortBy:function(e,i,t){var r=0;return i=_(i,t),gt(R(e,function(e,t,n){return{value:e,index:r++,criteria:i(e,t,n)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")},groupBy:wt,indexBy:St,countBy:Et,partition:It,toArray:yt,size:function(e){return null==e?0:(T(e)?e:y(e)).length},pick:Ct,omit:xt,first:kt,head:kt,take:kt,initial:Tt,last:function(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:L(e,Math.max(0,e.length-t))},rest:L,tail:L,drop:L,compact:function(e){return O(e,Boolean)},flatten:function(e,t){return k(e,t,!1)},without:Rt,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:At,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(u.call(e,i,i+=t));return n},mixin:Dt,"default":b}),Ft=P.toPath;return P.mixin({toPath:function(e){return P.isString(e)?e.split("."):Ft(e)}}),P._=P}());function me(e){return!(null==e)}function ve(e){return _.isFunction(e)||_.isRegExp(e)?e:_.isArray(e)?_.map(e,ve):_.isObject(e)?_.reduce(e,function(e,t,n){return e[n]=ve(t),e},{}):e}var b=function(){var i=_.all,r=_.each,o=_.filter,a=_.first,s=_.find,n=_.map,u=_.pluck,d="snippet",c="pendoconfig",l="global",p="default";const h={};function e(e,t=[c],n,i){e&&!h[e]&&(n={name:e,defaultValue:n,supportedSources:t},null!=i&&(n.useAnySource=i),h[e]=n)}e("additionalApiKeys",[c,d]),e("allowedOriginServers"),e("allowedOriginServerHashes"),e("allowMixedApiKeyFrames",[d,c],!0),e("annotateUrl",[d]),e("apiKey",[c,d]),e("assetHost",[d,c]),e("autoFrameInstall",[d,c],!1),e("blockAgentMetadata",[c],!1),e("contentHost",[d,c]),e("cookieDomain",[d,c]),e("dataHost",[d,c]),e("disableAutoInitialize"),e("disableCookies",[d,c]),e("disablePendo",[d,c],!1),e("disablePersistence",[d,c]),e("enableSignedMetadata",[c],!1),e("frameIdentitySync",[d,c],!1),e("frameIdentityTopDownOnly",[d,c],!0),e("forceAnonymous",[d,c],!1),e("identityStorageLifetime",[d,c]),e("identityStorageSuffix",[d,c]),e("ignoreHashRouting",[d,c]),e("initializeImmediately",[d,c],!1),e("installType"),e("localStorageOnly",[d,c]),e("location.pushState",[d,c],!0),e("maxCookieTTLDays",[d,c],Infinity),e("observeShadowRoots",[d,c],!1),e("pendoCore",[c],!0),e("pendoGlobalKey",[c]),e("preferBroadcastChannel",[d,c],!1),e("preferMutationObserver",[d,c],!1),e("preventCookieRefresh"),e("preventUnloadListener",[d,c],!1),e("promotedAgentMetadataConfigurations",[c]),e("queryStringWhitelist",[d]),e("requireSignedMetadata",[c],!1),e("sanitizeUrl",[d]),e("selfHosted"),e("selfHostedAgentUrl",[d,c]),e("sendEventsWithPostOnly",[d,c],!1),e("siblingSelectors"),e("dropAnonymous"),e("allowedText",[d,c],[]),e("analytics.excludeEvents",[d,c],[]),e("analytics.localStorageUnload",[d,c],!1),e("enableDebugEvents",[d,c]),e("eventPropertyConfigurations"),e("eventPropertyMatchParents",[d,c],!0),e("excludeAllText",[c,d],!1,!0),e("excludeNonGuideAnalytics",[d,c],!1),e("htmlAttributeBlacklist"),e("htmlAttributes"),e("interceptElementRemoval",[d,c],!1),e("interceptPreventDefault",[d,c],!0),e("interceptStopPropagation",[d,c],!0),e("syntheticClicks.elementRemoval",[d,c],!1),e("syntheticClicks.targetChanged",[d,c],!0),e("xhrWhitelist"),e("appAutoOrdering",[d,c]),e("cacheGuides",[d,c],!1),e("cacheGuidesTimeout",[c],6e5),e("delayGuides",[d]),e("disableDesigner",[c,d],!1),e("disableDesignerKeyboardShortcut",[c],!1),e("disableGlobalCSS",[d,c],!1),e("disableGuidePseudoStyles",[d,c],!1),e("disableGuides",[d]),e("disablePrefetch",[d,c]),e("enableDesignerKeyboardShortcut",[d]),e("enableGuideTimeout",[c,d],!1),e("guideCssAssetPath"),e("guideSeenTimeoutLength",[c,d],1e4),e("guideTimeout",[d]),e("guideValidation",[d,c],!1),e("guides.attachPoint",[d]),e("guides.delay",[d]),e("guides.disabled",[d]),e("guides.ejectOnTimeout",[d,c],!1),e("guides.globalScripts",[d,c],[]),e("guides.timeout",[d]),e("guides.tooltip.arrowSize",[d]),e("inlineStyleNonce",[d]),e("leaderKey",[d,c],[]),e("preventCodeInjection",[c,d,l],!1),e("previewModeAssetPath"),e("useAssetHostForDesigner",[d,c],!1),e("storage.allowKeys",[d],"*"),e("disableFeedback",[d]),e("disableFeedbackAutoInit"),e("feedbackSettings",[c],{}),e("pendoFeedback",[c],!1),e("crossAppGuideStorageSuffix",[d,c]),e("enableCrossOriginIsolation",[d,c],!1),e("adoptHost"),e("adoptAnalyticsForwarding"),e("agentDebuggerPluginLoader"),e("allowPartnerAnalyticsForwarding",[d],!1),e("adoptPrioritizeAdoptGuides",[c],!1),e("designerAgentPluginsLoader",[c,d]),e("trainingPartner"),e("errorClickLogging",[c],!1),e("enableAllEmbeddedGuideEvents",[c],!1),e("formValidation",[c],!1),e("performanceMetricsEnabled",[d,c],!0);var f={};function g(e){return h[e]||{name:e}}function m(e,t){if(t)return t=t(),me(e=_.get(t.lookup,(t=e,_.get(t,"key")||_.get(t,"name"))))?e:undefined}function v(e,t){var n=m(e,f[t]);return new w(e.name,n,t)}function y(e,t){return t=t||_.get(e,"supportedSources",[d,c,l]),o(n(t,_.partial(v,e)),function(e){return me(e.value)})}function b(e,t,n){var i=g(e),e=new w(e,t=t||_.get(i,"defaultValue",null),p),n=y(i,n);return i.useAnySource&&me(t)?s(n,function(e){return e.value!==t})||e:a(n)||e}function w(e,t,n){this.name=e,this.value=t,this.source=n}function S(){var n=[];return r(h,function(e){var t;n.push({name:e.name,active:b(e.name),conflicts:(e=g(e=e.name),(t=o(y(e),function(e){return e.source!==p})).length<2||i(u(t,"value"),function(e){return e===t[0].value})?[]:t)})}),n}return f[d]=function(){return{lookup:ge||window.pendo_options,name:d}},f[c]=function(){return{lookup:X,name:c}},f[l]=function(){return{lookup:E,name:l}},w.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"},{audit:S,get(e,t){return b(e,t).value},getLocalConfig(e,t){return arguments.length?b(e,t,[d]).value:ve(ge)},getHostedConfig(e,t){return b(e,t,[c]).value},addOption:e,setLocalConfig(e){ge=e},options:()=>u(h,"name"),sources:{SNIPPET_SRC:d,PENDO_CONFIG_SRC:c,GLOBAL_SRC:l,DEFAULT_SRC:p},validate(t){t.groupCollapsed("Validate Config options"),r(S(),function(e){t.log(String(e.active)),0<e.conflicts.length&&(t.warn("Multiple sources found with values for "+e.name),r(e.conflicts,function(e){t.warn(String(e))}))}),t.groupEnd()}}}();const ye="extension",be="native";function we(){return b.get("installType")||pe().installType||be}function Se(){return we()===ye}function Ee(e){return/native/.test(e)}const Ie=e=>{e=_.get(window,e);return e&&Ee(e)};function _e(e,t){return e=e||10,(t=!isNaN(xe)&&(!t||xe<t))&&Ce<e}const Ce=function(e){let t=Te((/msie (\d+)/.exec(ke(e))||[])[1]);isNaN(t)&&(t=Te((/trident\/.*; rv:(\d+)/.exec(ke(e))||[])[1]));return t}(Ae()),xe=function(e,t){let n=Te((/trident\/(\d+)/.exec(ke(e))||[])[1]);isNaN(n)&&7==t&&(n=3);return n}(Ae(),Ce);function Te(e){return parseInt(e,10)}function ke(e){return _.isString(e)?e.toLowerCase():e}function Ae(){return(window.navigator||{}).userAgent}const Re={},Oe=Te((/android (\d+)/.exec(ke(Ae()))||[])[1]),Ne=/Boxee/i.test(Ae()),Me=window.document||{},Le=Me.documentMode;let Pe;var De,Fe=/^(Moz|webkit|O|ms)(?=[A-Z])/,t=Me.body&&Me.body.style;let Ue=!1,Ge=!1;if(t){for(const MS in t)if(De=Fe.exec(MS)){Pe=(Pe=De[0]).substr(0,1).toUpperCase()+Pe.substr(1);break}Pe=Pe||"WebkitOpacity"in t&&"webkit",Ue=!!("transition"in t||Pe+"Transition"in t),Ge=!!("animation"in t||Pe+"Animation"in t),!Oe||Ue&&Ge||(Ue=_.isString(Me.body.style.webkitTransition),Ge=_.isString(Me.body.style.webkitAnimation))}var n=window.chrome&&window.chrome.runtime&&window.chrome.runtime.id;const Be=_.memoize(function Be(){var e=window.history&&window.history.pushState&&window.history.replaceState,t=window.history&&_.isFunction(Object.isFrozen)&&Object.isFrozen(window.history),n=window.history&&_.isFunction(Object.getOwnPropertyDescriptors)&&Object.getOwnPropertyDescriptors(window.history),n=n&&_.get(n,"pushState.writable",!0)&&_.get(n,"replaceState.writable",!0),i=!(Oe<4);return!(!e||t||!n||!i||Ne||Se())});const ze={supportsHistoryApi:Be,supportsHashChange:function(){var e="onhashchange"in window,t=!Le||7<Le;return!(!e||!t||Se())},hasEvent(e){var t;return("input"!=e||9!=Ce)&&(_.isUndefined(Re[e])&&(t=Me.createElement("div"),Re[e]="on"+e in t),Re[e])},vendorPrefix:Pe,transitions:Ue,animations:Ge,android:Oe,msie:Ce,msieDocumentMode:Le,safari:0<=(i=Ae()).indexOf("Safari")&&0<=!i.indexOf("Chrome"),sri:"integrity"in document.createElement("script"),addEventListener:_.isFunction(window.addEventListener),MutationObserver:Ee(window.MutationObserver),isMinimumIEVersion:function(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e},isMobileUserAgent:_.memoize(function(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Ae())}),isChromeExtension:n};var je=function(){return!isNaN(Ce)&&11!=Ce&&"CSS1Compat"!==document.compatMode},He=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,Ce<=9&&(e.arrow.top=6)):"bottom"==e.arrowPosition&&(e.top=t.top-(i+E.TOOLTIP_ARROW_SIZE),e.arrow.top=i-E.TOOLTIP_ARROW_SIZE,10==Ce?e.arrow.top--:Ce<=9&&(e.arrow.top+=4),n=1),"left"==e.arrow.hbias?(e.left=t.left+t.width/2-(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=10+E.TOOLTIP_ARROW_SIZE):"right"==e.arrow.hbias?(e.left=t.left-r+t.width/2+(10+2*E.TOOLTIP_ARROW_SIZE),e.arrow.left=r-3*E.TOOLTIP_ARROW_SIZE-10):(e.left=t.left+t.width/2-r/2,e.arrow.left=r/2-E.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-E.TOOLTIP_ARROW_SIZE),e.arrow.left=r-E.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-E.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e};let qe="",We="",Ve="",Je="",$e="",Ke="",Ze="",Xe="2.302.1_",Ye="2.302.1",Qe="xhr";const et=function(){return je()?Xe+"+quirksmode":Xe};var tt=/^\s+|\s+$/g;function nt(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 it=(it=String.prototype.trim)||function(){return this.replace(tt,"")},e={exports:{}};!function(){var Y=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===Y?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&&u(this)}function u(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?(d[255&e]<<24|d[e>>>8&255]<<16|d[e>>>16&255]<<8|d[e>>>24&255])>>32-t:d[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++]=d[s],s=0,o===r.length)&&(r=u(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]=d[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 d=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,D,n=this.input;switch(this.d){case 0:for(t=0,D=n.length;t<D;){var F,U,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===D,o=Y,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),F=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&F,a[s++]=F>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,U=i.length;o<U;++o)a[s++]=i[o];a.length=s}this.c=s,this.a=a}break;case 1:for(var u,d=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),c=(d.b(1,1,Q),d.b(1,2,Q),re(this,n)),l=0,G=c.length;l<G;l++)if(u=c[l],te.prototype.b.apply(d,ie[u]),256<u)d.b(c[++l],c[++l],Q),d.b(c[++l],5),d.b(c[++l],c[++l],Q);else if(256===u)break;this.a=d.finish(),this.c=this.a.length;break;case ne:var p,h,f,g,m,v,y,B,b,w,S,z,E=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=Array(19),I=ne;for(E.b(1,1,Q),E.b(I,2,Q),p=re(this,n),I=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var _,C,x,T,k,q=h,W=f,A=new(ee?Uint32Array:Array)(q+W),R=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=_=0;N<q;N++)A[_++]=m[N];for(N=0;N<W;N++)A[_++]=v[N];if(!ee)for(N=0,x=O.length;N<x;++N)O[N]=0;for(N=T=0,x=A.length;N<x;N+=_){for(_=1;N+_<x&&A[N+_]===A[N];++_);if(C=_,0===A[N])if(C<3)for(;0<C--;)O[R[T++]=0]++;else for(;0<C;)(k=C-3<(k=C<138?C:138)&&k<C?C-3:k)<=10?(R[T++]=17,R[T++]=k-3,O[17]++):(R[T++]=18,R[T++]=k-11,O[18]++),C-=k;else if(R[T++]=A[N],O[A[N]]++,--C<3)for(;0<C--;)R[T++]=A[N],O[A[N]]++;else for(;0<C;)C-3<(k=C<6?C:6)&&k<C&&(k=C-3),R[T++]=16,R[T++]=k-3,O[16]++,C-=k}for(e=ee?R.subarray(0,T):R.slice(0,T),y=oe(O,7),S=0;S<19;S++)H[S]=y[j[S]];for(g=19;4<g&&0===H[g-1];g--);for(B=ae(y),E.b(h-257,5,Q),E.b(f-1,5,Q),E.b(g-4,4,Q),S=0;S<g;S++)E.b(H[S],3,Q);for(S=0,z=e.length;S<z;S++)if(b=e[S],E.b(B[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}E.b(e[S],w,Q)}for(var M,V,I=[I,m],L=[L,v],J=I[0],$=I[1],K=L[0],Z=L[1],P=0,X=p.length;P<X;++P)if(M=p[P],E.b(J[M],$[M],Q),256<M)E.b(p[++P],p[++P],Q),V=p[++P],E.b(K[V],Z[V],Q),E.b(p[++P],p[++P],Q);else if(256===M)break;this.a=E.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,u=w[e.length];switch(a[s++]=65535&u,a[s++]=u>>16&255,a[s++]=u>>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(u=n,a[s++]=u[0],a[+s]=u[1],a[5]=u[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,u,d,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]===Y&&(p[s]=[]),u=p[s],!(0<g--)){for(;0<u.length&&32768<i-u[0];)u.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<u.length?(d=function(e,t,n){var i,r,o,a,s,u,d=0,c=e.length;a=0,u=n.length;e:for(;a<u;a++){if(i=n[u-a-1],(o=3)<d){for(s=d;3<s;s--)if(e[i+s-1]!==e[t+s-1])continue e;o=d}for(;o<258&&t+o<c&&e[i+o]===e[t+o];)++o;if(d<o&&(r=i,d=o),258===o)break}return new b(d,t-r)}(t,i,u),c?c.length<d.length?(l=t[i-1],h[f++]=l,++m[l],n(d,0)):n(c,-1):d.length<y?c=d:n(d,0)):c?n(c,-1):(l=t[i],h[f++]=l,++m[l])}u.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,u=new c(572),d=new(ee?Uint8Array:Array)(s);if(!ee)for(o=0;o<s;o++)d[o]=0;for(o=0;o<s;++o)0<e[o]&&u.push(o,e[o]);if(n=Array(u.length/2),i=new(ee?Uint32Array:Array)(u.length/2),1===n.length)d[u.pop().index]=1;else{for(o=0,a=u.length/2;o<a;++o)n[o]=u.pop(),i[o]=n[o].value;for(r=function(e,n,t){var i,r,o,a,s,u=new(ee?Uint16Array:Array)(t),d=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(u[t-1]=n,r=0;r<t;++r)f<g?d[r]=0:(d[r]=1,f-=g),f<<=1,u[t-2-r]=(u[t-1-r]/2|0)+n;for(u[0]=d[0],l[0]=Array(u[0]),p[0]=Array(u[0]),r=1;r<t;++r)u[r]>2*u[r-1]+d[r]&&(u[r]=2*u[r-1]+d[r]),l[r]=Array(u[r]),p[r]=Array(u[r]);for(i=0;i<n;++i)c[i]=t;for(o=0;o<u[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===d[t-1]&&(--c[0],++h[t-1]),r=t-2;0<=r;--r){for(a=i=0,s=h[r+1],o=0;o<u[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===d[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)d[n[o].index]=r[o]}return d}function ae(e){for(var t,n,i=new(ee?Uint16Array:Array)(e.length),r=[],o=[],a=0,s=0,u=e.length;s<u;s++)r[e[s]]=1+(0|r[e[s]]);for(s=1,u=16;s<=u;s++)a=(o[s]=a)+(0|r[s])<<1;for(s=0,u=e.length;s<u;s++)for(a=o[e[s]],o[e[s]]+=1,t=i[s]=0,n=e[s];t<n;t++)i[s]=i[s]<<1|1&a,a>>>=1;return i}function f(e,t){this.input=e,this.a=new(ee?Uint8Array:Array)(32768),this.d=S.g;var n,i={};for(n in(t?"number"==typeof t.compressionType:(t={},0))&&(this.d=t.compressionType),t)i[n]=t[n];i.outputBuffer=this.a,this.j=new s(this.input,i)}var g,m,v,y,S=l,E=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,u=a.length;s<u;s++)a[s]=(255&a[s].charCodeAt(0))>>>0;o=a}for(var d,c=1,l=0,p=o.length,h=0;0<p;){for(p-=d=1024<p?1024:p;l+=c+=o[h++],--d;);c%=65521,l%=65521}return r=(l<<16|c)>>>0,this.j.c=2,n=(i=this.j.f()).length,ee&&((i=new Uint8Array(i.buffer)).length<=n+4&&(this.a=new Uint8Array(i.length+4),this.a.set(i),i=this.a),i=i.subarray(0,n+4)),i[n++]=r>>24&255,i[n++]=r>>16&255,i[n++]=r>>8&255,i[+n]=255&r,i},e("Zlib.Deflate",f),e("Zlib.Deflate.compress",function(e,t){return new f(e,t).f()}),e("Zlib.Deflate.prototype.compress",f.prototype.f),{NONE:S.NONE,FIXED:S.h,DYNAMIC:S.g});if(Object.keys)g=Object.keys(E);else for(m in g=[],v=0,E)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),E[m])}.call(e.exports);var rt={Deflate:p(e.exports).Zlib.Deflate},ot="base64url";function at(e,t){t=t||ot;e=nt("string"==typeof e?e:JSON.stringify(e)),e=new rt.Deflate(e).compress();return t===ot?c.uint8ToBase64(e):e}t={exports:{}};!function(){var o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||void 0===t?r=r[n]||(r[n]={}):r[n]=t}var a={c:function(e,t,n){return a.update(e,0,t,n)},update:function(e,t,n,i){var r=a.a,o="number"==typeof n?n:n=0,i="number"==typeof i?i:e.length;for(t^=4294967295,o=7&i;o--;++n)t=t>>>8^r[255&(t^e[n])];for(o=i>>3;o--;n+=8)t=(t=(t=(t=(t=(t=(t=(t=t>>>8^r[255&(t^e[n])])>>>8^r[255&(t^e[n+1])])>>>8^r[255&(t^e[n+2])])>>>8^r[255&(t^e[n+3])])>>>8^r[255&(t^e[n+4])])>>>8^r[255&(t^e[n+5])])>>>8^r[255&(t^e[n+6])])>>>8^r[255&(t^e[n+7])];return(4294967295^t)>>>0},d:function(e,t){return(a.a[255&(e^t)]^e>>>8)>>>0},b:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]};a.a="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array?new Uint32Array(a.b):a.b,e("Zlib.CRC32",a),e("Zlib.CRC32.calc",a.c),e("Zlib.CRC32.update",a.update)}.call(t.exports);var st={CRC32:p(t.exports).Zlib.CRC32},ut=function(e,n){var i;return 200<=(n=n||0)?e:_.isArray(e)?_.map(e,function(e){return ut(e,n+1)}):!_.isObject(e)||_.isDate(e)||_.isRegExp(e)||_.isElement(e)?_.isString(e)?_.escape(e):e:(i={},_.each(e,function(e,t){i[t]=ut(e,n+1)}),i)},dt=function(e){e=nt(e);return c.uint8ToBase64(e)},ct=function(e){if(void 0!==e)return e=nt(e=_.isString(e)?e:JSON.stringify(e)),st.CRC32.calc(e,0,e.length)};function lt(e){return e[Math.floor(Math.random()*e.length)]}function pt(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="",i=(t+t.toUpperCase()+"1234567890").split(""),r=0;r<e;r++)n+=lt(i);return n}var ht=function(e,t,n){return!(!me(e)||!me(t))&&(n&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<e.indexOf(t))};function S(){return(new Date).getTime()}function ft(){return"undefined"!=typeof $A&&_.isFunction($A.get)&&_.isString($A.get("$Browser.formFactor"))}function gt(e,t=window){var[e,t,n=window]=[_,e,t],i="__symbol__";if("undefined"!=typeof Zone&&e.isFunction(Zone[i])){i=n[Zone[i](t)];if(e.isFunction(i))return i}return n[t]}i=window;var mt=_.isFunction(i.isFinite)?i.isFinite:i.Number&&_.isFunction(i.Number.isFinite)?i.Number.isFinite:function(e){return e!=Infinity&&e!=-Infinity&&!isNaN(e)};function vt(e){return"number"==typeof e&&mt(e)&&Math.floor(e)===e}function yt(e,t,n,i){(t=t||{}).maxRetries=vt(t.maxRetries)?t.maxRetries:10,t.delay=vt(t.delay)?t.delay:50,t.exponentialBackoff=t.exponentialBackoff||!1;var r=function(e){return e&&"[object Function]"==={}.toString.call(e)},o=r(n)?n:function(){},a=r(i)?i:function(){},n=e();n?o(n):0<t.maxRetries?Ut(function(){t.maxRetries=--t.maxRetries,t.delay=t.exponentialBackoff?2*t.delay:t.delay,yt(e,t,o,a)},t.delay):(a||function(){})()}var bt=function(e){e=e.match(/-?[\d,]+\.?([\d,]+)*/);return e?parseFloat(e[0].replace(/,/g,"")):null};function wt(e){return _.isObject(e)&&_.isFunction(e.then)}var St,Et=_.isFunction(window.decodeURIComponent)?window.decodeURIComponent:_.identity,It=_.isFunction(window.encodeURIComponent)?window.encodeURIComponent:_.identity;class _t{constructor(){this.listeners={}}addEventListener(e,t){let n=this.listeners[e];n||(n=[],this.listeners[e]=n),_.findIndex(n,e=>t===e)<0&&n.push(t)}removeEventListener(e,t){var n,i=this.listeners[e];i&&0<=(n=_.findIndex(i,e=>t===e))&&(i.splice(n,1),i.length||delete this.listeners[e])}dispatchEvent(t){var e=this.listeners[t.type];e&&_.each(e,e=>{e(t)})}}class Ct{constructor(e,t,n){this.type="log",this.logged=!1,this.level=e,this.message=t,this.attributes=n}toString(){let e=this.message;return this.error&&e!==this.error.message&&(e=e+":"+this.error.message),this.attributes&&(e+=": "+_.map(this.attributes,(e,t)=>t+"="+e)),e}hashCode(){return this.toString()}}(n=St=St||{}).Debug="debug",n.Info="info",n.Warn="warn",n.Error="error",n.Critical="critical";class xt extends _t{write(e,t,n){this.dispatchEvent(new Ct(t,e,n))}writeError(e,t,n){let i,r;_.isString(e)?(i=e,r={message:i}):(r=e,i=r.message),n&&n.error&&(r=n.error,delete n.error);e=new Ct(t,i,n);e.error=r,this.dispatchEvent(e)}debug(e,t){this.write(e,St.Debug,t)}info(e,t){this.write(e,St.Info,t)}warn(e,t){this.writeError(e,St.Warn,t)}error(e,t){this.writeError(e,St.Error,t)}critical(e,t){this.writeError(e,St.Critical,t)}}const C=new xt;function Tt(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const kt=function(){var e=b.get("storage.allowKeys")||"*";return _.isArray(e)?_.indexBy(e):e};function At(t,n,i){return function(){try{return n.apply(t,arguments)}catch(e){return i}}}function Rt(n){_.forEach(_.keys(n),function(e){try{/^_?pendo_/.test(e)&&n.removeItem(e)}catch(t){}})}function Ot(e){var t=_.noop,t={getItem:()=>null,setItem:t,removeItem:t,clearPendo:t};try{var n=e();return n?{getItem:At(n,n.getItem,null),setItem:At(n,n.setItem),removeItem:At(n,n.removeItem),clearPendo:_.partial(Rt,n)}:t}catch(i){return t}}var Nt=Ot(function(){return window.localStorage}),Mt=Ot(function(){return window.sessionStorage});function Lt(e){try{return JSON.parse(e)}catch(t){return null}}var Pt,Dt={},Ft=!0,Bt=function(){return b.get("localStorageOnly")},zt=function(){return!!b.get("disableCookies")};function jt(e){Ft=e}var Ht=function(e){var t=zt()||Bt()?Dt[e]:document.cookie;return(e=new RegExp("(^|; )"+e+"=([^;]*)").exec(t))?Et(e[2]):null},qt=function(e,t,n,i){var r,o;!Ft||b.get("preventCookieRefresh")&&Ht(e)===t||(o=Zt(n),(r=new Date).setTime(r.getTime()+o),o=e+"="+It(t)+(n?";expires="+r.toUTCString():"")+"; path=/"+("https:"===document.location.protocol||i?";secure":"")+"; SameSite=Strict",Pt&&(o+=";domain="+Pt),zt()||Bt()?Dt[e]=o:document.cookie=o)};function Wt(e){Pt?qt(e,""):document.cookie=e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"}var Vt=function(e,t){return`_pendo_${e}.`+(t||E.apiKey)},Jt=function(e,t){return Ht(Vt(e,t))};const $t=864e5,Kt=100*$t,Zt=(e=Kt)=>{var t=b.get("maxCookieTTLDays"),t=t<Infinity?t*$t:Infinity;return Math.min(e,t)};var Xt=function(e,t,n,i,r){n=n||Kt,qt(Vt(e,r),t,n,i)};class Yt{constructor(){this.keys={}}addLocal(e,t){this._add(e,"local",t)}addSession(e,t){this._add(e,"session",t)}hasLocal(e){return this._has(e,"local")}hasSession(e){return this._has(e,"session")}getKeyConfig(e,t,n){return me(n)?n:this.keys[e]?this.keys[e][t]:undefined}getKeySerializer(e){return this.keys[e]?this.keys[e].serializer:_.identity}getKeyDeserializer(e){return this.keys[e]?this.keys[e].deserializer:_.identity}_add(e,t,n={}){n=_.extend({type:t,duration:null,isPlain:!1,isSecure:!1,cookieSuffix:undefined,serializer:_.identity,deserializer:_.identity},n),this.keys[e]||(this.keys[e]=n)}_has(e,t){return!!this.keys[e]&&this.keys[e].type===t}}var Qt,en,tn,nn,m,h=function(){const u=new Yt;function e(i,r){return function(e){var t,n;if(t=e,"*"===(n=kt())||n[t])return u[r](e)||C.warn(`storage key ${e} is not registered`),i.apply(this,arguments);C.debug(`writing storage key ${e} is not allowed`)}}function d(){return!zt()&&!Pt&&c("localStorage")}var c=_.memoize(function(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(i){return i instanceof DOMException&&(22===i.code||1014===i.code||"QuotaExceededError"===i.name||"NS_ERROR_DOM_QUOTA_REACHED"===i.name)&&t&&0!==t.length}});function l(e){e.cache&&(e.cache={})}function o(e,t,n){t=u.getKeyConfig(e,"isPlain",t),n=u.getKeyConfig(e,"cookieSuffix",n);t=t?e:Vt(e,n);if(d())return localStorage.removeItem(t);Wt(t)}const t=_.extend({},Mt),n=(t.setItem=e(t.setItem,"hasSession"),_.extend({},Nt));return n.setItem=e(n.setItem,"hasLocal"),{read:function(e,t,n){t=u.getKeyConfig(e,"isPlain",t),n=u.getKeyConfig(e,"cookieSuffix",n);let i;var r;return d()?(r=t?e:Vt(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(r)))&&o(e,t,n)):i=t?Ht(e):Jt(e,n),u.getKeyDeserializer(e)(i)},write:e(function(e,t,n,i,r,o){if(n=u.getKeyConfig(e,"duration",n),i=u.getKeyConfig(e,"isPlain",i),r=u.getKeyConfig(e,"isSecure",r),o=u.getKeyConfig(e,"cookieSuffix",o),t=u.getKeySerializer(e)(t),l(c),d())try{var a=i?e:Vt(e,o);return localStorage.setItem(a,function(e,t){if(null===t)return e;t=(new Date).getTime()+Zt(t);return JSON.stringify({ttl:t,value:e})}(t,n)),void l(c)}catch(s){}if(!i)return Xt(e,t,n,r,o);qt(e,t,n,r)},"hasLocal"),clear:o,registry:u,getLocal:()=>n,getSession:()=>t}}(),rn=(window.Promise,e=function(){var t=Ut;function d(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 u(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,u(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,u(e)}function u(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(!d(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 u(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){u(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)u(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(!d(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a},"function"==typeof(t=window.Promise)&&/native/.test(t)?t:e()),i=(en=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},tn=function(n,i){var r=Qt.defer(),o=function(n,i){Ut(function(){var e;try{e=n(i)}catch(t){return void r.reject(t)}e===r.promise?r.reject(new TypeError("Cannot resolve promise with itself")):r.resolve(e)},1)};return{promise:r.promise,handle:function(e,t){e===nn?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},nn=1,(Qt={}).defer=function(){var n,i=0,r=[],t=function(e,t){i=e,n=t,_.each(r,function(e){e.handle(i,n)}),r=null},o=function(e){t(nn,e)},a=function(e){t(2,e)},s=function(e,t){e=tn(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},u=function(e){var t=en();try{e(t(d),t(a))}catch(n){t(a)(n)}},d=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?u(t):o(e)},e=en();return{resolve:e(d),reject:e(a),promise:{then:s,"catch":function(e){return s(null,e)}}}},Qt);function on(e){var n,i=m.defer(),r=_.isArray(e)?[]:{},o=_.size(e);return o?(n=!1,_.each(e,function(e,t){m.resolve(e).then(function(e){r[t]=e,0!=--o||n||i.resolve(r)},function(e){n||(n=!0,i.reject(e))})}),i.promise):m.resolve(e)}!Se()&&ze.isMinimumIEVersion(11)?m={all:function(e){return _.isArray(e)?rn.all.apply(rn,arguments):on(e)},reject:function(){return rn.reject.apply(rn,arguments)},resolve:function(){return rn.resolve.apply(rn,arguments)},defer:function(){var n={};return n.promise=new rn(function(e,t){n.resolve=e,n.reject=t}),n}}:((m=i).all=on,m.reject=function(e){var t=m.defer();return t.reject(e),t.promise},m.resolve=function(e){var t=m.defer();return t.resolve(e),t.promise});const an=h.getSession(),sn="pendo_tabId",un="pendo_parentTabId";dn=window,n=_.partial,cn=_.extend,ln=_.omit,pn={data:{},getItem(e){return pn.data[e]},setItem(e,t){pn.data[e]=t},removeItem(e){pn.data[e]=null,delete pn.data[e]}},hn=n(yn,sn,bn),fn=n(yn,"pendo_frameId",pn);var dn,cn,ln,pn,hn,fn,gn={addTracerIds(e){return ln(cn(e,{parentTabId:mn(un,bn),tabId:hn(),frameId:fn()}),function(e){return e===undefined})},setParentTabId:function(e){vn(un,e,bn)},newTabId:function(){var e=pt(16);return vn(sn,e,bn),e},getTabId:hn,getFrameId:fn,tabIdChanged:function(t){var e;if(ze.addEventListener)return dn.addEventListener("storage",e=function(e){e.key===sn&&(pn.removeItem(sn),t())}),function(){dn.removeEventListener("storage",e)}}};function mn(e,t){return(_.isFunction(t)?t():t).getItem(e)}function vn(e,t,n){(_.isFunction(n)?n():n).setItem(e,t)}function yn(e,t){var n=mn(e,t);return n||vn(e,n=pt(16),t),n}function bn(){return n=pn,i=an,{getItem(e){var t=n.getItem(e);return t===undefined&&(t=i.getItem(e),n.setItem(e,t)),t},setItem(e,t){n.setItem(e,t),i.setItem(e,t)},removeItem(e){n.removeItem(e),i.removeItem(e)}};var n,i}function wn(){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(_.isString(e)||_.isFunction(t))&&(n=(n=i[e])||(i[e]=[]),_.indexOf(n,t)<0)&&n.push(t),this},this.one=function(e,t){var n=this,i=function(){n.off(e,i),t.apply(this,arguments)};return this.on(e,i)},this.once=this.one,this.off=function(e,t){var n,e=i[e];return _.isFunction(t)?(n=_.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=_.toArray(arguments).slice(1);return _.map(t,function(e){return e.apply(E,n)})},this.triggerCancelable=function(e,t){e=i[e]?i[e].slice():[];return _.map(e,function(e){if(!t.cancel)return e.apply(E,[t])})},this.triggerAsync=function(){var e=_.map(this.trigger.apply(this,arguments),function(e){return!1===e?m.reject():e});return m.all(e)},this}wn.clear=function(t){t&&_.each(_.keys(t._handlers),function(e){t.off(e),delete t._handlers[e]})};Di={DEBUG:t="debug",FRAMES:e="frames",LIFECYCLE:i="lifecycle",RUNTIME:n="runtime"},Sn=[new r("ready",[t,i]),new r("deliverablesLoaded",[t,i]),new r("guidesFailed",[t,i]),new r("guidesLoaded",[t,i]),new r("guideListChanged",[t,i]),new r("guideSeen",[t,i]),new r("guideNotSeen",[t,i]),new r("guideAdvanced",[t,i]),new r("guideDismissed",[t,i]),new r("guideSnoozed",[t,i]),new r("beforeGuideShow",[i]),new r("beforeMount",[n]),new r("beforeAdvance",[n]),new r("beforePrevious",[n]),new r("beforeSnooze",[n]),new r("beforeDismiss",[n]),new r("beforeUnmount",[n]),new r("unmounted",[n]),new r("beforeUpdate",[n]),new r("updated",[n]),new r("guideSnoozeCancelled",[t,i]),new r("guideTimeout",[t,i]),new r("guideLoopStopped",[t,i]),new r("guideUpdateComplete",[i]),new r("designerLaunched",[t,i]),new r("debuggerLaunched",[t,i]),new r("stepEligibility",[t]),new r("identify",[t,i]),new r("metadata",[t,i]),new r("appUnloaded",[t,i]),new r("appHidden",[t,i]),new r("startPreview",[t]),new r("resourceFetchFail",[t]),new r("contentVerificationFail",[t]),new r("contentValidationFail",[t]),new r("renderFail",[t]),new r("appUsage",[i]),new r("eventCaptured",[t]),new r("error",[t,i]),new r("onClickCaptured",[t]),new r("urlChanged",[i]),new r("leaderChanged",[i,e]),new r("transmit:locked",[i]),new r("transmit:unlocked",[i]),new r("sessionChanged",[i]),new r("ptm:unpaused",[i]),new r("ptm:paused",[i]),new r("recording:unpaused",[i]),new r("recording:paused",[i]),new r("childFrameJoined",[e]),new r("tabIdChanged:self",[t,i])],En=wn.call({}),In={debug(){return gn.addTracerIds(Cn.apply(null,arguments))},lifecycle:Cn,runtime:Cn,frames:Cn},_n=En.trigger,En.trigger=xn,_.each(_.values(Di),function(e){En[e]={on:_.partial(En.on,e),one:_.partial(En.one,e),off:_.partial(En.off,e)}}),_.each(Sn,function(e){e=e.name,En[e]={on:_.partial(En.on,e),one:_.partial(En.one,e),off:_.partial(En.off,e),trigger:_.partial(xn,e)}});var Sn,En,In,_n,v=En;function r(e,t){this.name=e,this.groups=t||[]}function Cn(e,t){e={type:e,ts:S()};return me(t)&&_.isObject(t)&&(e.data=t),e}function xn(t){var e=_.findWhere(Sn,{name:t}),n=_.toArray(arguments).slice(1),i={};return _.each(e.groups,function(e){i.cancel||(i=In[e](t,n),_n.apply(En,[e].concat(i)))}),i.cancel||(i=Cn(t,n),_n.apply(En,[t].concat(i))),i}function Tn(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),_.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),_.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:_.partial(t,i),subscribeAction:_.partial(t,r),registerModule:function h(n,e){_.isString(n)&&(n=[n]);var t=d(s.state,e,n);_.extend(s.getters,p(e,t,s,n));_.extend(o,c(e,t,n));_.extend(a,l(e,t,s,n));_.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return _.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):_.noop;var n,i}function u(e,t){return(e=t?e.concat([t]):e).join("/")}function d(e,t,n){var i=e;return _.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),_.extend(i,ve(t.state||{}))}function c(e,n,i){var r={};return _.each(e.mutations,function(e,t){r[u(i,t)]=_.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:u(r,e);i.commit(n,t)},dispatch:function(e,t,n){n=n&&n.root?e:u(r,e);return i.dispatch(n,t)},getters:function(e,t){var i=u(t);i&&(i+="/");return _.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return _.each(e.actions,function(e,t){n[u(r,t)]=_.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return _.each(e.getters,function(e,t){a[t]=o[u(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}var f=Tn(),kn=(f.subscribe(function(e,t){}),"_PENDO_T_"),An=11;const Rn="visitorId",On="oldVisitorId",Nn="accountId";var Mn=function(e=""){return e+pt(An)};var Ln=function(e){return me(e)&&""!==e&&e!==Bn&&"boolean"!=typeof e&&"object"!=typeof e&&!((e=e)&&"string"==typeof e&&0===it.call(e).length)},Pn=function(e){return!(!e||"number"==typeof e)&&e.substring(0,kn.length)===kn},Dn=function(){return!b.get("disablePersistence")},Fn=function(e){e=e||[Rn,Nn,On];const t=b.get("identityStorageSuffix")||E.apiKey;_.each(e,function(e){Wt(Vt(e,t)),h.clear(e,!1,t)})},Un="VISITOR-UNIQUE-ID",Gn=function(e){return Un===e},Bn="::",zn=function(e){return new RegExp(Bn).test(e)};function jn(e){return e.old_visitor_id!==e.visitor_id}var Hn,qn=function(e,t){var n,i={old_visitor_id:y(),old_account_id:$n()};Ln(e)?(Ln(n=e)?Vn(""+n):C.info("Invalid visitor id "+n),n=t,_.isUndefined(n)?C.info("No account id provided"):Ln(n)?(E.accountId=""+n,Dn()&&Kn(Nn,E.accountId)):(delete E.accountId,delete(t=b.getLocalConfig()).account,b.setLocalConfig(t),f.commit("metadata/clearAccount"),Dn()&&h.clear(Nn),C.info("Invalid account id: "+n+". Account cleared")),i.visitor_id=y({generate:!0}),i.account_id=$n(),!jn(t=i)&&t.old_account_id===t.account_id||(jn(i)&&(n=i.old_visitor_id)&&(Hn=n,Kn(On,Hn)),v.identify.trigger(i))):C.info("Invalid visitor id "+e)};function Wn(){return Mn(kn)}function Vn(e){E.visitorId!==e&&(Dn()&&Kn(Rn,e),E.visitorId=e)}function y(e={}){var t=function(){if(Ln(E.visitorId))return E.visitorId;var e=b.get("forceAnonymous");if(Dn()){var t=Zn(Rn);if(Ln(t)&&(!e||Pn(t)))return t}return undefined}();return Vn(t=!t&&e.generate?Wn():t),t}function Jn(){return y()||Wn()}var $n=function(){var e=b.get("forceAnonymous");return Ln(E.accountId)||!Dn()||e||(e=Zn(Nn),E.accountId=e),E.accountId};function Kn(e,t){var n=b.get("identityStorageLifetime")||Kt,i=b.get("identityStorageSuffix")||E.apiKey;h.write(e,t,n,!1,!0,i)}function Zn(e){var t=b.get("identityStorageSuffix"),n=t||E.apiKey,n=h.read(e,!1,n)||h.read(e,!1,E.apiKey);return t&&h.clear(e,!1,E.apiKey),n}function Xn(){var e={old_visitor_id:y({generate:!1}),old_account_id:$n(),wasCleared:!0};Fn(),delete E.visitorId,delete E.accountId,y({generate:!0}),_.extend(e,{visitor_id:y(),account_id:$n()}),v.identify.trigger(e)}function Yn(e){e=e.data[0];return _.get(e,"wasCleared")}var Qn=function(t,n){return n=!!n,function(){try{return t.apply(this,arguments)}catch(e){n||C.critical(e)}}};n=function(n){return function ei(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 ei="function"==typeof(e=window.URL)&&/native/.test(e)?e:n(document);function ti(e){if((t=e)&&"function"==typeof t.composedPath)try{return e.composedPath()}catch(n){return e.path}var t;return null}function ni(e){return e.shadowRoot}function ii(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function ri(e,t){return ii(e,t)?e.host:e.parentNode}var oi={PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:ti,getShadowRoot:ni,isElementShadowRoot:ii,getParent:ri,isShadowSelector:ai,wrapSizzle(i,d){i.intercept(function(a,t,n,i,r){var e,o;if(ai(t))return _.isFunction(document.documentElement.attachShadow)?(o=a,e=(e=t).replace(oi.PSEUDO_REGEX,oi.PSEUDO_SAFE),e=_.map(o.tokenize(e),si),_.reduce(e,function(e,t){return e.concat(s(t,n,i,r))},[])):a(t.replace(oi.PSEUDO_REGEX,""),n,i,r);{const u=a(t,n,i,r);return 0<d.cache.size&&d.cache.forEach(e=>{n&&n!==document&&!function(e,t,n){let i=t;for(;i;){if(i===e)return 1;i=ri(i,n)}}(n,e)||u.push(...a(t,e,i,r))}),u}function s(e,t,n,i){var r,o;return ai(e)?(o=s((r={baseCss:(o=(o=e).split(oi.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:o.join(oi.PSEUDO_ELEMENT)}).baseCss,t),_.reduce(o,function(e,t){return oi.getShadowRoot(t)?e.concat(s(r.shadowCss,oi.getShadowRoot(t),n,i)):e},[])):a(e,t,n,i)}}),i.intercept(function(e,t,n){return!oi.isElementShadowRoot(t)&&(ai(n)?0<i(n,document,null,[t]).length:e(t,n))},"matchesSelector")}};function ai(e){return!!e&&-1<e.indexOf(oi.PSEUDO_ELEMENT)}function si(e){return _.reduce(e,function(e,t){return t.value===oi.PSEUDO_SAFE?e+oi.PSEUDO_ELEMENT:e+t.value},"")}var ui,g,w,di,ci,li,pi,hi,fi,gi,mi,vi,I,yi,bi,wi,Si,Ei,Ii,t={exports:{}},i=t,_i=window,Ci="sizzle"+ +new Date,xi=_i.document,Ti=0,ki=0,Ai=pr(),Ri=pr(),Oi=pr(),Ni=pr(),Mi=pr(),Li=function(e,t){return e===t&&(mi=!0),0},Pi={}.hasOwnProperty,Di=[],Fi=Di.pop,Ui=Di.push,Gi=Di.push,Bi=Di.slice,zi=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},ji="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",a="[\\x20\\t\\r\\n\\f]",e="(?:\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",n="\\["+a+"*("+e+")(?:"+a+"*([*^$|!~]?=)"+a+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+e+"))|)"+a+"*\\]",Hi=":("+e+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+n+")*)|.*)\\)|)",qi=new RegExp(a+"+","g"),Wi=new RegExp("^"+a+"+|((?:^|[^\\\\])(?:\\\\.)*)"+a+"+$","g"),Vi=new RegExp("^"+a+"*,"+a+"*"),Ji=new RegExp("^"+a+"*([>+~]|"+a+")"+a+"*"),$i=new RegExp(a+"|>"),Ki=new RegExp(Hi),Zi=new RegExp("^"+e+"$"),Xi={ID:new RegExp("^#("+e+")"),CLASS:new RegExp("^\\.("+e+")"),TAG:new RegExp("^("+e+"|[*])"),ATTR:new RegExp("^"+n),PSEUDO:new RegExp("^"+Hi),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+ji+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},Yi=/HTML$/i,Qi=/^(?:input|select|textarea|button)$/i,er=/^h\d$/i,tr=/^[^{]+\{\s*\[native \w/,nr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ir=/[+~]/,rr=new RegExp("\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\([^\\r\\n\\f])","g"),or=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))},ar=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,sr=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ur=function(){vi()},dr=Er(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Gi.apply(Di=Bi.call(xi.childNodes),xi.childNodes),Di[xi.childNodes.length].nodeType}catch(OS){Gi={apply:Di.length?function(e,t){Ui.apply(e,Bi.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function cr(e){return e[0].length?e.map(cr).join(","):Sr(e)}function lr(e,t,n){var i=n[e+" "];i=i||cr(function o(e,t){return e[0].length?e.map(function(e){return o(e,t)}):e.filter(t)}(li(e),function(e){return!("PSEUDO"===(e=e).type&&e.matches.length&&"contains"===e.matches[0].replace(Wi,"$1").toLowerCase())}));try{var r=[];return Gi.apply(r,t.querySelectorAll(i)),n(e,i),r}catch(OS){}}function x(e,t,n,i){var r,o,a,s,u,d,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&&(vi(t),t=t||I,bi)){if(11!==l&&(s=nr.exec(e)))if(r=s[1]){if(9===l){if(!(d=t.getElementById(r)))return n;if(d.id===r)return n.push(d),n}else if(c&&(d=c.getElementById(r))&&Ii(t,d)&&d.id===r)return n.push(d),n}else{if(s[2])return Gi.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&g.getElementsByClassName&&t.getElementsByClassName)return Gi.apply(n,t.getElementsByClassName(r)),n}if(g.qsa&&(!Ni[e+" "]||Mi[e+" "])&&(!wi||!wi.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(d=e,c=t,1===l&&($i.test(e)||Ji.test(e))){for((c=ir.test(e)&&br(t.parentNode)||t)===t&&g.scope||((a=t.getAttribute("id"))?a=a.replace(ar,sr):t.setAttribute("id",a=Ci)),o=(u=li(e)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+Sr(u[o]);d=u.join(",")}try{return Gi.apply(n,c.querySelectorAll(d)),n}catch(p){Ni(e,!0)}finally{a===Ci&&t.removeAttribute("id")}!i&&Ni[e+" "]&&(i=lr(e,c,Mi))}}return hi(e.replace(Wi,"$1"),t,n,i)}function pr(){var n=[];function i(e,t){return n.push(e+" ")>w.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function hr(e){return e[Ci]=!0,e}function fr(e){var t=I.createElement("fieldset");try{return!!e(t)}catch(OS){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function gr(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function mr(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 vr(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&&dr(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function yr(a){return hr(function(o){return o=+o,hr(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 br(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(ui in g=x.support={},ci=x.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!Yi.test(t||e&&e.nodeName||"HTML")},vi=x.setDocument=function(e){var e=e?e.ownerDocument||e:xi;return e!=I&&9===e.nodeType&&e.documentElement&&(yi=(I=e).documentElement,bi=!ci(I),xi!=I&&(e=I.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",ur,!1):e.attachEvent&&e.attachEvent("onunload",ur)),g.scope=fr(function(e){return yi.appendChild(e).appendChild(I.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),g.attributes=fr(function(e){return e.className="i",!e.getAttribute("className")}),g.getElementsByTagName=fr(function(e){return e.appendChild(I.createComment("")),!e.getElementsByTagName("*").length}),g.getElementsByClassName=!!I.getElementsByClassName,g.getById=fr(function(e){return yi.appendChild(e).id=Ci,!I.getElementsByName||!I.getElementsByName(Ci).length}),g.getById?(w.filter.ID=function(e){var t=e.replace(rr,or);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&bi)return(e=t.getElementById(e))?[e]:[]}):(w.filter.ID=function(e){var t=e.replace(rr,or);return function(e){e="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},w.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&bi){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[]}}),w.find.TAG=g.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):g.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},w.find.CLASS=g.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&bi?t.getElementsByClassName(e):g.qsa&&bi?t.querySelectorAll("."+e):void 0},Si=[],wi=[],(g.qsa=!!I.querySelectorAll)&&(fr(function(e){var t;yi.appendChild(e).innerHTML=K().createHTML("<a id='"+Ci+"'></a><select id='"+Ci+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&wi.push("[*^$]="+a+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||wi.push("\\["+a+"*(?:value|"+ji+")"),e.querySelectorAll("[id~="+Ci+"-]").length||wi.push("~="),(t=I.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||wi.push("\\["+a+"*name"+a+"*="+a+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||wi.push(":checked"),e.querySelectorAll("a#"+Ci+"+*").length||wi.push(".#.+[+~]"),e.querySelectorAll("\\\f"),wi.push("[\\r\\n\\f]")}),fr(function(e){e.innerHTML=K().createHTML("<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>");var t=I.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&wi.push("name"+a+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&wi.push(":enabled",":disabled"),yi.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&wi.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),wi.push(",.*:")})),(g.matchesSelector=tr.test(Ei=yi.matches||yi.webkitMatchesSelector||yi.mozMatchesSelector||yi.oMatchesSelector||yi.msMatchesSelector))&&fr(function(e){g.disconnectedMatch=Ei.call(e,"*"),Ei.call(e,"[s!='']:x"),Si.push("!=",Hi)}),wi=wi.length&&new RegExp(wi.join("|")),Si=Si.length&&new RegExp(Si.join("|")),e=!!yi.compareDocumentPosition,Ii=e||yi.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},Li=e?function(e,t){var n;return e===t?(mi=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!g.sortDetached&&t.compareDocumentPosition(e)===n?e==I||e.ownerDocument==xi&&Ii(xi,e)?-1:t==I||t.ownerDocument==xi&&Ii(xi,t)?1:gi?zi(gi,e)-zi(gi,t):0:4&n?-1:1)}:function(e,t){if(e===t)return mi=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==I?-1:t==I?1:r?-1:o?1:gi?zi(gi,e)-zi(gi,t):0;if(r===o)return mr(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?mr(a[i],s[i]):a[i]==xi?-1:s[i]==xi?1:0}),I},x.matches=function(e,t){return x(e,null,null,t)},x.matchesSelector=function(e,t){if(vi(e),g.matchesSelector&&bi&&!Ni[t+" "]&&(!Si||!Si.test(t))&&(!wi||!wi.test(t)))try{var n=Ei.call(e,t);if(n||g.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(OS){Ni(t,!0)}return 0<x(t,I,null,[e]).length},x.contains=function(e,t){return(e.ownerDocument||e)!=I&&vi(e),Ii(e,t)},x.attr=function(e,t){(e.ownerDocument||e)!=I&&vi(e);var n=w.attrHandle[t.toLowerCase()],n=n&&Pi.call(w.attrHandle,t.toLowerCase())?n(e,t,!bi):undefined;return n!==undefined?n:g.attributes||!bi?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},x.escape=function(e){return(e+"").replace(ar,sr)},x.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},x.uniqueSort=function(e){var t,n=[],i=0,r=0;if(mi=!g.detectDuplicates,gi=!g.sortStable&&e.slice(0),e.sort(Li),mi){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return gi=null,e},di=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+=di(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=di(t);return n},(w=x.selectors={cacheLength:50,createPseudo:hr,match:Xi,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(rr,or),e[3]=(e[3]||e[4]||e[5]||"").replace(rr,or),"~="===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 Xi.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Ki.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(rr,or).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=Ai[e+" "];return t||(t=new RegExp("(^|"+a+")"+e+"("+a+"|$)"))&&Ai(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(qi," ")+" ").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,u,d=v!=y?"nextSibling":"previousSibling",c=e.parentNode,l=b&&e.nodeName.toLowerCase(),p=!n&&!b,h=!1;if(c){if(v){for(;d;){for(a=e;a=a[d];)if(b?a.nodeName.toLowerCase()===l:1===a.nodeType)return!1;u=d="only"===f&&!u&&"nextSibling"}return!0}if(u=[y?c.firstChild:c.lastChild],y&&p){for(h=(s=(i=(r=(o=(a=c)[Ci]||(a[Ci]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===Ti&&i[1])&&i[2],a=s&&c.childNodes[s];a=++s&&a&&a[d]||(h=s=0,u.pop());)if(1===a.nodeType&&++h&&a===e){r[f]=[Ti,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[Ci]||(a[Ci]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===Ti&&i[1]:h))for(;(a=++s&&a&&a[d]||(h=s=0,u.pop()))&&((b?a.nodeName.toLowerCase()!==l:1!==a.nodeType)||!++h||(p&&((r=(o=a[Ci]||(a[Ci]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[Ti,h]),a!==e)););return(h-=m)===g||h%g==0&&0<=h/g}}},PSEUDO:function(e,o){var t,a=w.pseudos[e]||w.setFilters[e.toLowerCase()]||x.error("unsupported pseudo: "+e);return a[Ci]?a(o):1<a.length?(t=[e,e,"",o],w.setFilters.hasOwnProperty(e.toLowerCase())?hr(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=zi(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:hr(function(e){var i=[],r=[],s=pi(e.replace(Wi,"$1"));return s[Ci]?hr(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:hr(function(t){return function(e){return 0<x(t,e).length}}),contains:hr(function(t){return t=t.replace(rr,or),function(e){return-1<(e.textContent||di(e)).indexOf(t)}}),lang:hr(function(n){return Zi.test(n||"")||x.error("unsupported lang: "+n),n=n.replace(rr,or).toLowerCase(),function(e){var t;do{if(t=bi?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=_i.location&&_i.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===yi},focus:function(e){return e===I.activeElement&&(!I.hasFocus||I.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:vr(!1),disabled:vr(!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!w.pseudos.empty(e)},header:function(e){return er.test(e.nodeName)},input:function(e){return Qi.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:yr(function(){return[0]}),last:yr(function(e,t){return[t-1]}),eq:yr(function(e,t,n){return[n<0?n+t:n]}),even:yr(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:yr(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:yr(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:yr(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[ui]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(ui);for(ui in{submit:!0,reset:!0})w.pseudos[ui]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(ui);function wr(){}function Sr(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function Er(a,e,t){var s=e.dir,u=e.next,d=u||s,c=t&&"parentNode"===d,l=ki++;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=[Ti,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[Ci]||(e[Ci]={}))[e.uniqueID]||(r[e.uniqueID]={}),u&&u===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=r[d])&&i[0]===Ti&&i[1]===l)return o[2]=i[2];if((r[d]=o)[2]=a(e,t,n))return!0}return!1}}function Ir(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 _r(e,t,n,i,r){for(var o,a=[],s=0,u=e.length,d=null!=t;s<u;s++)!(o=e[s])||n&&!n(o,i,r)||(a.push(o),d&&t.push(s));return a}function Cr(h,f,g,m,v,e){return m&&!m[Ci]&&(m=Cr(m)),v&&!v[Ci]&&(v=Cr(v,e)),hr(function(e,t,n,i){var r,o,a,s=[],u=[],d=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:_r(c,s,h,n,i),p=g?v||(e?h:d||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=_r(p,u),m(r,[],n,i),o=r.length;o--;)(a=r[o])&&(p[u[o]]=!(l[u[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?zi(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=_r(p===t?p.splice(d,p.length):p),v?v(null,t,p,i):Gi.apply(t,p)})}wr.prototype=w.filters=w.pseudos,w.setFilters=new wr,li=x.tokenize=function(e,t){var n,i,r,o,a,s,u,d=Ri[e+" "];if(d)return t?0:d.slice(0);for(a=e,s=[],u=w.preFilter;a;){for(o in n&&!(i=Vi.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=Ji.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(Wi," ")}),a=a.slice(n.length)),w.filter)w.filter.hasOwnProperty(o)&&(i=Xi[o].exec(a))&&(!u[o]||(i=u[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):Ri(e,s).slice(0)},pi=x.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=Oi[e+" "];if(!a){for(n=(t=t||li(e)).length;n--;)((a=function l(e){for(var i,t,n,r=e.length,o=w.relative[e[0].type],a=o||w.relative[" "],s=o?1:0,u=Er(function(e){return e===i},a,!0),d=Er(function(e){return-1<zi(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==fi)||((i=t).nodeType?u:d)(e,t,n),i=null,e}];s<r;s++)if(t=w.relative[e[s].type])c=[Er(Ir(c),t)];else{if((t=w.filter[e[s].type].apply(null,e[s].matches))[Ci]){for(n=++s;n<r&&!w.relative[e[n].type];n++);return Cr(1<s&&Ir(c),1<s&&Sr(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(Wi,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&Sr(e))}c.push(t)}return Ir(c)}(t[n]))[Ci]?r:o).push(a);(a=Oi(e,(m=o,y=0<(v=r).length,b=0<m.length,i=function(e,t,n,i,r){var o,a,s,u=0,d="0",c=e&&[],l=[],p=fi,h=e||b&&w.find.TAG("*",r),f=Ti+=null==p?1:Math.random()||.1,g=h.length;for(r&&(fi=t==I||t||r);d!==g&&null!=(o=h[d]);d++){if(b&&o){for(a=0,t||o.ownerDocument==I||(vi(o),n=!bi);s=m[a++];)if(s(o,t||I,n)){i.push(o);break}r&&(Ti=f)}y&&((o=!s&&o)&&u--,e)&&c.push(o)}if(u+=d,y&&d!==u){for(a=0;s=v[a++];)s(c,l,t,n);if(e){if(0<u)for(;d--;)c[d]||l[d]||(l[d]=Fi.call(i));l=_r(l)}Gi.apply(i,l),r&&!e&&0<l.length&&1<u+v.length&&x.uniqueSort(i)}return r&&(Ti=f,fi=p),c},y?hr(i):i))).selector=e}return a},hi=x.select=function(e,t,n,i){var r,o,a,s,u,d="function"==typeof e&&e,c=!i&&li(e=d.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&&bi&&w.relative[o[1].type]){if(!(t=(w.find.ID(a.matches[0].replace(rr,or),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=Xi.needsContext.test(e)?0:o.length;r--&&(a=o[r],!w.relative[s=a.type]);)if((u=w.find[s])&&(i=u(a.matches[0].replace(rr,or),ir.test(o[0].type)&&br(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&Sr(o))break;return Gi.apply(n,i),n}}return(d||pi(e,c))(i,t,!bi,n,!t||ir.test(e)&&br(t.parentNode)||t),n},g.sortStable=Ci.split("").sort(Li).join("")===Ci,g.detectDuplicates=!!mi,vi(),g.sortDetached=fr(function(e){return 1&e.compareDocumentPosition(I.createElement("fieldset"))}),fr(function(e){return e.innerHTML=K().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||gr("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),g.attributes&&fr(function(e){return e.innerHTML=K().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||gr("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),fr(function(e){return null==e.getAttribute("disabled")})||gr(ji,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var xr=_i.Sizzle;x.noConflict=function(){return _i.Sizzle===x&&(_i.Sizzle=xr),x},i.exports?i.exports=x:_i.Sizzle=x;Tr=p(t.exports),(kr=_.extend(function(){return kr.Sizzle.apply(this,arguments)},Tr)).reset=function(){kr.Sizzle=Tr,kr.matchesSelector=Tr.matchesSelector,kr.matches=Tr.matches},kr.intercept=function(e,t="Sizzle"){kr[t]=_.wrap(kr[t],e)},kr.reset();var Tr,kr,Ar=kr;function T(e,t){var n,i=this;if(e&&e instanceof T)return e;if(!(i instanceof T))return new T(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=_.toArray(r.childNodes)}else if(_.isString(e)){t instanceof T&&(t=0<t.length?t[0]:null);try{n=Ar(e,t)}catch(o){n=[]}}else n=[e];else n=[];return _.each(n,function(e,t){i[t]=e}),i.context=t,i.length=n.length,"undefined"!=typeof Symbol&&Symbol.iterator&&(i[Symbol.iterator]=function*(){for(const e of n)yield e}),i}function Rr(){this.ownerKey="_pendo_"+pt(8)}_.extend(Rr.prototype,{cache(e){var t;return _.isObject(e)?((t=e[this.ownerKey])||(e[this.ownerKey]=t={}),t):{}},set(e,t,n){e=this.cache(e);return e[t]=n,e},get(e,t){return t===undefined?this.cache(e):e[this.ownerKey]&&e[this.ownerKey][t]},remove(e,t){var n=this.cache(e);delete n[t],t!==undefined&&!_.isEmpty(n)||(e[this.ownerKey]=undefined)}});var Or=new Rr,Nr=1;function Mr(e){return _.isNumber(e.eventPhase)&&e.eventPhase===Nr}function Lr(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?gt("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),()=>{Pr(e,t,n,i)}):_.noop}function Pr(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?gt("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var Dr=function(e){var t=oi.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},Fr={add(t,e){var n=Or.get(t),i=(n.handle||(n.handle=function(e){Fr.dispatch(t,e)}),e.id=_.uniqueId(),e.capture?"captureEvents":"bubbleEvents"),i=n[i]=n[i]||{},i=i[e.type]=i[e.type]||[];return i.length||Lr(t,e.type,n.handle,e.capture),i.push(e),()=>{T.event.remove(t,e.type,e.handler,e.capture)}},dispatch(r,o){var e,t,a;r&&(e=(Or.get(r,"captureEvents")||{})[o.type]||[],t=(Or.get(r,"bubbleEvents")||{})[o.type]||[],(t=e.concat(t)).length)&&!(a=Or.get(o)).ignore&&(a.handled=a.handled||{},_.each(t.slice(),function(e){var t=!!e.capture===Mr(o),n=(n=o,_.isNumber(n.eventPhase)&&2===n.eventPhase),t=!t&&!n;if(!(Dr(o)!==r&&t||a.handled[e.id])){a.handled[e.id]=!0;try{(!me(e.selector)||0<T(Dr(o)).closest(e.selector).length)&&e.handler.call(r,o)}catch(i){C.error(i)}}}))},remove(e,t,n,i){var r=Or.get(e);if(r){if(_.isFunction(n)){var o=i?r.captureEvents:r.bubbleEvents;if(!o)return;var a=o[t];if(!a)return;var s=_.findIndex(a,function(e){return e.handler===n});0<=s&&a.splice(s,1),a.length||(delete o[t],Pr(e,t,r.handle,i))}else n===undefined&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],Pr(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],Pr(e,t,r.handle));_.isEmpty(r.captureEvents)&&_.isEmpty(r.bubbleEvents)&&(Or.remove(e,"captureEvents"),Or.remove(e,"bubbleEvents"),Or.remove(e,"handle"))}},trigger(e){var t=Or.get(e);if(!t.pendoStopped)if(e.bubbles){var n=Dr(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=oi.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),Mr(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)Fr.dispatch(o[i],e);(e=Fr.clone(e)).eventPhase=2}for(2!==e.eventPhase||t.pendoStopped||(Fr.dispatch(n,e),(e=Fr.clone(e)).eventPhase=3),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)Fr.dispatch(o[i],e)}}else Fr.dispatch(Dr(e),e)},clone(e){var t=_.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",Or.ownerKey]),e=oi.getComposedPath(e);return e&&(t.composedPath=_.constant(e)),t},$:{on(e,n,i,r){return _.isFunction(n)&&(r=i,i=n,n=null),e=e.split(" "),this.each(function(t){_.each(e,function(e){Fr.add(t,{type:e,selector:n,handler:i,capture:r})})})}}},Ur=_.extend(Br,{get:function(e,t){return Br({method:"GET",url:e,headers:t})},post:zr,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",zr(e,t=JSON.stringify(t),n)},urlFor:function(e,t,n){if(_.isArray(t))i=t;else{if(!_.isObject(t))return e||"";i=_.keys(t)}var i=_.map(i,function(e){return _.isArray(t)?It(e):It(e)+"="+It(t[e])}).join("&"),r=(e=e.split("#",2))[0],o=_.contains(r,"?");return[r,i?(o?"&":"?")+i:"",(n=void 0!==n?n:e[1])?"#"+n:""].join("")},supported(){return void 0!==Gr()}});function Gr(){return window.XMLHttpRequest||ActiveXObject}function Br(e){var t=m.defer(),n=new(Gr())("MSXML2.XMLHTTP.3.0");return n.open(e.method||"GET",e.url,!e.sync),_.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 zr(e,t,n){return Br({method:"POST",url:e,data:t,headers:n})}var jr,Hr=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},qr=function(){return b.get("annotateUrl")||Kr()||b.get("sanitizeUrl")||b.get(io)||b.get("xhrWhitelist")},Wr=function(){return Kr()?{href:$r(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},Vr=function(){return new ei(window.location.href)},Jr=function(){var e,t,n,i;return qr()?(e=Vr(),Kr()&&(e.href=$r(e.href)),Hr()?(t=k.electronResourcesPath(),n=k.electronUserDirectory(),i=k.electronAppName(),("https://"+e.href.replace(t,i)).replace(e.origin+n,i).replace(k.electronUserHomeDirectory(),"").replace("file:///","")):oo(e.href)):f.getters["location/href"]()},$r=function(e){return e.match(/(.+?)(?:#|$)/)[1]},Kr=function(){return!0===b.get("ignoreHashRouting")},Zr=500;function Xr(){return _.isUndefined(jr)&&function e(){no(),jr=Ut(e,Zr)}(),()=>{clearTimeout(jr),jr=undefined}}var Yr=function(e){var t;try{t=Jr()}catch(n){}return t},Qr=[],eo=!1,to=null;function no(){var t=Wr().href;to!=t&&(to=t,_.map(Qr,function(e){e(t)}))}var io="queryStringWhitelist";function ro(e){var t=b.get("sanitizeUrl");return _.isFunction(t)?t(e):e}function oo(e){e=e||Wr().href;var t=b.get("annotateUrl");if(t)if(_.isFunction(t))try{var n,i,r,o=t();return o&&(_.isObject(o)||_.isArray(o))?(n=o.exclude,i=o.include,r=o.fragment,delete o.fragment,(n&&_.isArray(n)||i&&(_.isArray(i)||_.isObject(i)))&&(n&&(e=so(e,null,n,!0)),o=i||{}),Ur.urlFor(e,o,r)):e}catch(a){C.error("customer-provided `annotateUrl` function threw an exception",{error:a})}else C.error("customer-provided `annotateUrl` must be of type: function");return e}function ao(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function so(e,t,n,i){e=e||Yr(),t=t||ao(e).substring(1),o=(r=e.indexOf(t))+t.length;var r=e.substring(0,r),o=e.substring(o);return(r=(t=_.isArray(n)?co(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var uo,co=function(e,t,n){return n&&_.contains(t,"*")?"":(e=lo(e),e=n?_.omit(e,t):_.pick(e,t),po(e))},lo=function(e){e=e.split("&");return _.reduce(e,function(e,t){return(t=t.split("="))[0]&&(e[t[0]]=t[1]&&Et(t[1])),e},{})},po=function(e){return _.reduce(e,function(e,t,n){return t&&(n+="="+t),e&&(e+="&"),e+n},"")},k={watch:function(e){const n=[];C.info("Initializing Pendo URL Watcher");var i,t=b.get("location.pushState")&&ze.supportsHistoryApi();return eo||(t&&(i=window.history,_.each(["pushState","replaceState"],function(e){var t=i[e];i[e]=_.wrap(i[e],function(e){var t=e.apply(i,_.toArray(arguments).slice(1));return Ut(no,0),t}),i[e]._pendoUnwrapped=t,n.push(()=>{i[e]=t})}),n.push(Lr(window,"popstate",no))),ze.supportsHashChange()&&n.push(Lr(window,"hashchange",no)),!1!==t&&ze.supportsHashChange()||n.push(Xr()),eo=!0),Qr.push(e),()=>{_.each(n,function(e){e()}),Qr.length=0,eo=!1}},get:Yr,externalizeURL:function(e,t,n){n=n||b.get(io);return ro(so(e,t,n=_.isFunction(n)?n():n,!1))},startPoller:Xr,getWindowLocation:Wr,clear:function(){Qr=[]},isElectron:Hr,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 ho(){var e=b.getLocalConfig("dataHost");return e||((e=b.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:Je)}function fo(){uo=ho()}function go(){return b.get("assetHost")||mo()}function mo(){var e=b.get("contentHost")||$e;return e=e&&-1===e.indexOf("://")?"https://"+e:e}function vo(e){var t=go(),n=0<=(n=t).indexOf("localhost")||0<=n.indexOf("local.pendo.io")?e.replace(".min.js",".js"):e;return t+"/"+(Ke?Ke+"/":"")+n}function yo(){var e=b.get("allowPartnerAnalyticsForwarding",!1)&&b.get("adoptAnalyticsForwarding",!1);return b.get("trainingPartner",!1)||e}var bo=3,wo=1,So=9,Eo=11,Io=4;function A(e){var t;if((t=e)&&t.nodeType===wo)try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(n){}}function _o(e,t){var n;return!(!e||!_.isFunction(e.getPropertyValue))&&(n=[e.getPropertyValue("transform")],void 0!==t&&_.isString(t)&&n.push(e.getPropertyValue("-"+t.toLowerCase()+"-transform")),_.any(n,function(e){return e&&"none"!==e}))}function Co(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function xo(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function To(e){return _.isNumber(e)?e:0}function ko(e,t){e=e.offsetParent;return t=t||window,e=e&&e.parentElement===t.document.documentElement&&!Ro(e)?null:e}function Ao(e){return _o(A(e),Pe)&&isNaN(Ce)}function Ro(e){if(e)return(e=A(e))&&(_.contains(["relative","absolute","fixed"],e.position)||_o(e,Pe))}function Oo(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=Ro(t)?t:ko(t,n),i=t?No(t):{top:0,left:0},e=No(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+=To(t.scrollTop),i.left+=To(t.scrollLeft)),i.top-=To(t.clientTop),i.left-=To(t.clientLeft)):(i.top+=Co(n),i.left+=xo(n)),i.bottom=i.top+i.height,i.right=i.left+i.width,i}function No(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 Mo=void 0===(e=b.get("pendoCore"))||e,Lo=function(e,t,n){e=uo+"/data/"+e+"/"+t,t=_.map(n,function(e,t){return t+"="+e});return 0<t.length&&(e+="?"+t.join("&")),e};function Po(){return _.compact([E.apiKey].concat(E.additionalApiKeys))}var Do=function(e){return e+="v"+Xe,Go(Lo("log.gif",E.apiKey,{msg:e,version:Xe}))};function Fo(e){try{var t=uo+"/data/errorlog?apiKey="+E.apiKey,n={error:e,version:"v"+Xe,visitorId:y()},i=Bo.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):Ur.postJSON(t,n);return i.then(function(){C.info("successfully wrote error")},function(e){C.info("error writing error:"+e)})}catch(r){return C.info("Failed to write error to server using POST endpoint: "+r),Do("Failed to write error to server using POST endpoint: "+r)}}function Uo(e){try{var t=uo+"/data/agentmetrics/"+E.apiKey;C.debug(`Sending ${JSON.stringify(e)} to ${t} using `+(Bo.supported()?"fetch":"xhr")),Bo.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(e),headers:{"Content-Type":"application/json"}}):Ur.postJSON(t,e)}catch(n){C.critical("Failed to write metrics payload to server: "+n)}}function Go(e){var t,n;return qo()?(t=m.defer(),Lr(n=new Image,"load",t.resolve),Lr(n,"error",t.reject),n.src=e,t.promise):m.resolve()}function Bo(e,t={}){t=_.extend({},{method:"GET",keepalive:!0},t);return fetch(e,t)}function zo(e,t){return navigator.sendBeacon(e,t)}Bo.supported=function(){try{return _.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(e){return!1}};var jo=!(zo.supported=function(){return _.isFunction(navigator.sendBeacon)}),Ho=function(){var e=qo();return jo=!0,e&&v["transmit:locked"].trigger(),"Pendo Agent locked. No more events will be written."},qo=function(){return!jo&&Mo},Wo=function(e,t){try{return new RegExp("(\\s|^)"+t+"(\\s|$)").test(Ko(e))}catch(n){return!1}},Vo=function(e,t){try{var n;Wo(e,t)||(n=it.call(Ko(e))+" "+t,$o(e,n))}catch(i){}},Jo=function(e,t){try{var n,i;Wo(e,t)&&(n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=Ko(e).replace(n," "),$o(e,i))}catch(r){}},$o=function(e,t){_.isString(e.className)?e.className=t:e.setAttribute("class",t)},Ko=function(e){try{var t=e.className;return(_.isString(t)||!me(t)?t:e.getAttribute("class"))||""}catch(n){return""}},Zo=function(e){e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});return e=e.substr(0,1).toLowerCase()+e.substr(1)},Xo={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},Yo=function(e,t){t=function(e){if(_.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);Qo(e,t)},Qo=function(a,e){_.each(e,function(e,t){if(""!==(t=it.call(t))){var n=Zo(t),i=(!_.isNumber(e)||isNaN(e)||Xo[n]?_.isString(e)||(e=""+e):e+="px",e.indexOf("!important"));if(-1!==i)try{var r=it.call(r.substring(0,i));a.style.setProperty(t,r,"important")}catch(o){a.style.cssText+=";"+t+":"+e}else try{a.style[n]=it.call(e)}catch(o){C.info("failed to set style: "+t+" with value "+e)}}})},ea=function(e=window){return je()?{width:e.document.documentElement.offsetWidth||0,height:e.document.documentElement.offsetHeight||0}:{width:e.innerWidth||e.document.documentElement.clientWidth,height:e.innerHeight||e.document.documentElement.clientHeight}},ta=function(e){var t=ea(),n=Co(),i=xo();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function na(t){return _.each(["left","top","width","height"],function(e){t[e]=Math.round(t[e])}),t}function ia(e,t=window){var n;return function(e){var t,n=e;for(;n;){if(!(t=A(n)))return;if("fixed"===t.position)return!isNaN(Ce)||!la(n);n=n.parentNode}return}(e)?((n=No(e)).fixed=!0,na(n)):na(Oo(e,aa(t.document),t))}var ra=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},oa=function(e,t){try{return t.children.length+t.offsetHeight+t.offsetWidth-(e.children.length+e.offsetHeight+e.offsetWidth)}catch(n){return C.info("error interrogating body elements: "+n),Do("error picking best body:"+n),0}},aa=function(e=document){try{var t=Array.prototype.slice.call(e.getElementsByTagName("body"));return t&&1<t.length?(t.sort(oa),t[0]||e.body):e.body&&e.body.tagName&&"body"!==e.body.tagName.toLowerCase()?e.documentElement:e.body}catch(n){return Do("Error getting body element: "+n),e.body}};function sa(e){if(e&&e.parentNode){var t=e.parentNode,n=e;if(!t)return[];var i=[];if(t.childNodes)for(let e=0;e<t.childNodes.length;e++){var r=t.childNodes[e];1===r.nodeType&&r!==n&&i.push(r)}return i}return[]}function ua(e,t=document){if(Ar.contains(t,e))return!0;for(;e&&e.parentNode||oi.isElementShadowRoot(e);)e=oi.getParent(e);return e===t}var da=function(e){var t,n,i;if(null!=e)return t=(n=e.ownerDocument||document).defaultView||window,i=aa(n),e===n||e===t?((n={left:t.pageXOffset||i.scrollLeft,top:t.pageYOffset||i.scrollTop,width:t.innerWidth,height:t.innerHeight}).right=n.left+n.width,n.bottom=n.top+n.height,n):((i=ia(e,t)).right=i.left+i.width,i.bottom=i.top+i.height,i)},ca=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function la(e){for(var t=e&&e.parentNode;t;){if(_o(A(t),Pe))return 1;t=t.parentNode}}var pa=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if(ua(e))for(i=e;i;)if(oi.isElementShadowRoot(i))i=i.host;else{if(i===r)return null;if(!(o=A(i)))return null;var o,a=o.position;if(i!==e&&t.test(o.overflow+o.overflowY+o.overflowX))return i.parentNode!==r||(o=A(r))&&!_.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&la(i))i=ko(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function ha(e,t){e=A(e);return t=t||/(auto|scroll|hidden)/,!e||"inline"===e.display?fa.NONE:t.test(e.overflowY)&&t.test(e.overflowX)?fa.BOTH:t.test(e.overflowY)?fa.Y:t.test(e.overflowX)?fa.X:t.test(e.overflow)?fa.BOTH:fa.NONE}var fa={X:"x",Y:"y",BOTH:"both",NONE:"none"};function ga(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&ua(e)}function ma(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 va(e){if(e){if(_.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function ya(e,t,n){const i=[];var r=va(document.documentElement);let o=va(pa(t)),a=0;for(;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=va(pa(o)),a++;return()=>{_.each(_.compact(i),function(e){e()}),i.length=0}}const ba=['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 wa(e,t,n){var i=da(t),t=ha(t,n);if(t!==fa.BOTH||ca(e,i)){if(t===fa.Y){if(e.top>=i.bottom)return;if(e.bottom<=i.top)return}if(t===fa.X){if(e.left>=i.right)return;if(e.right<=i.left)return}return 1}}function Sa(e){if(e){if(ga(e))return 1;var t=da(e);if(0!==t.width&&0!==t.height){var n=A(e);if(!n||"hidden"!==n.visibility){for(var i=e;i&&n;){if("none"===n.display)return;if(parseFloat(n.opacity)<=0)return;n=A(i=i.parentNode)}return 1}}}}function Ea(e,t){if(!Sa(e))return!1;if(!ga(e)){for(var n=da(e),i=pa(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!wa(n,i,t))return!1;i=pa(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=xo(),e+=Co()),o<=0||e<=0)return!1}}return!0}function Ia(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,u=da(e),d=pa(e,s);if(!Sa(e))return!1;for(;d;){if(t=da(d),(o=ha(d,a))!==fa.NONE&&(i=n=0,o!==fa.Y&&o!==fa.BOTH||(u.bottom>t.bottom&&(n+=u.bottom-t.bottom,u.top-=n,u.bottom-=n),u.top<t.top&&(n-=r=t.top-u.top,u.top+=r,u.bottom+=r)),o!==fa.X&&o!==fa.BOTH||(u.right>t.right&&(i+=u.right-t.right,u.left-=i,u.right-=i),u.left<t.left&&(i-=r=t.left-u.left,u.left+=r,u.right+=r))),!wa(u,d,s))return!1;d=pa(d,s)}return!0}function _a(e){for(var t,n,i,r,o,a=/(auto|scroll)/,s=aa(),u=pa(e,a);u&&u!==s;)t=da(e),n=da(u),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),_.isFunction(u.scrollBy)?u.scrollBy(r,i):(u.scrollTop+=i,u.scrollLeft+=r),u=pa(u,a)}n={$:{findOrCreate(e){return 0<this.length?this:T(e)},find(e){var t=T();return t.context=this.context,this.each(function(){T(e,this).each(function(){t[t.length++]=this})}),t},each(e){for(var t=0,n=this.length;t<n;++t)e.call(this[t],this[t],t);return this},html(e){return e===undefined?this.length?this[0].innerHTML:this:this.each(function(){this.innerHTML=e})},text(e){var t="innerText"in document.body;return e===undefined?t?this.length?this[0].innerText:this:this.length?this[0].textContent:this:this.each(function(){Yo(this,{"white-space":"pre-wrap"}),t?this.innerText=e:this.textContent=e})},addClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){Vo(t,e)})})},removeClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){Jo(t,e)})})},hasClass(e){e=e.split(/\s+/);var n=!0;return 0!==this.length&&(this.each(function(t){_.each(e,function(e){n=n&&Wo(t,e)})}),n)},toggleClass(e){return e=e.split(/\s+/),this.each(function(t){_.each(e,function(e){(Wo(t,e)?Jo:Vo)(t,e)})})},css(e){return this.each(function(){Yo(this,e)}),this},appendTo(e){return T(e).append(this),this},append(e){var t=this;return T(e).each(function(){t.length&&t[0].appendChild(this),ua(this)&&_.each(Ar("script",this),ma)}),t},prependTo(e){return T(e).prepend(this),this},prepend(e){var t,n;return this.length&&(t=this[0],n=t.childNodes[0],T(e).each(function(){n?T(this).insertBefore(n):T(this).appendTo(t)})),this},getParent(){var e=T(this)[0];if(e&&e.parentNode)return T(e.parentNode)},insertBefore(e){e=T(e)[0];e&&e.parentNode&&(e.parentNode.insertBefore(this[0],e),ua(this[0]))&&_.each(Ar("script",this[0]),ma)},remove(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),this},attr(e,t){return _.isObject(e)?(this.each(function(){_.each(e,function(e,t){this.setAttribute(t,e)},this)}),this):t!==undefined?(this.each(function(){this.setAttribute(e,t)}),this):0<this.length?this[0].getAttribute(e):void 0},closest(e,t){for(var n=this[0];n&&!Ar.matchesSelector(n,e);)if((n=ri(n))===document||t&&Ar.matchesSelector(n,t))return T();return T(n)},eq(e){return T(this[e])},height(e){if(this.length)return e===undefined?this[0].offsetHeight:(this[0].style.height=e+"px",this)},width(e){if(this.length)return e===undefined?this[0].offsetWidth:(this[0].style.width=e+"px",this)},focus(){return this.each(function(){_.isFunction(this.focus)&&this.focus()})}}};class Ca{constructor(e=aa(),t={attributes:!0,childList:!0,subtree:!0}){if(this.listeners=[],this._teardown=()=>{},ze.MutationObserver){const n=new(gt("MutationObserver"))((e,t)=>{this.signal()});n.observe(e,t),this._teardown=()=>n.disconnect}else{const i=setInterval(()=>{this.signal()},500);this._teardown=()=>{clearInterval(i)}}}signal(){_.each(this.listeners,e=>{e.get()})}addObservers(...e){this.listeners=[].concat(this.listeners,e)}teardown(){this._teardown()}}Di=function(){function e(e){this._object=e}return e.prototype.deref=function(){return this._object},e};var xa="function"==typeof(i=window.WeakRef)&&/native/.test(i)?i:Di();function Ta(e,t){var n,i;return e.tagName&&_.contains(["textarea","input"],e.tagName.toLowerCase())?(n=e.value,i=t,n.length<=i?n:Oa(n.substring(0,i))):ka(e,t)}function ka(e,t=128){var n,i="",r=e.nodeType;if(r===bo||r===Io)return e.nodeValue;if((n=e).tagName&&"textarea"!=n.tagName.toLowerCase()&&(r===wo||r===So||r===Eo)){if(!e.childNodes)return i;for(var o,a=0;a<e.childNodes.length;++a){if(t<=(i+(o=ka(e.childNodes[a],t-i.length))).length)return i+Oa(o.substring(0,t-i.length));i+=o}}return i}function Aa(e){return 55296<=e&&e<=56319}function Ra(e){return 56320<=e&&e<=57343}function Oa(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(Aa(t)||Ra(t)){if(1===e.length)return e.slice(0,-1);if(Aa(t))return e.slice(0,-1);if(Ra(t))if(!Aa(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}class Na{constructor(e){this.listeners={},this.events=[],this.cssSelector=e}get(){let t=this.elRef&&this.elRef.deref();var e=ua(t);if(!t||!e){if(t&&!e&&this.teardown(t),!(t=T(this.cssSelector)[0]))return undefined;_.each(this.events,e=>{t.addEventListener(e,e=>this.onEvent(e))}),this.elRef=new xa(t)}return t}getText(e=1024){return Ta(this.get(),e)}addEventListener(e,t){var n=this.get();this.events.indexOf(e)<0&&(this.events.push(e),n)&&n.addEventListener(e,e=>this.onEvent(e)),this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t)}onEvent(t){var e=t.type;_.each(this.listeners[e],e=>e(t))}teardown(t=this.get()){t&&_.each(this.events,e=>t.removeEventListener(e,this.onEvent))}}function Ma(t){if(!t)return!1;if(t===window.location.origin)return!0;if(t===ho())return!0;if(t===go())return!0;if(t===mo())return!0;var e=b.get("adoptHost");if(e&&t==="https://"+e)return!0;return!!ie(t,b.get("allowedOriginServers",[]),b.get("allowedOriginServerHashes",[]))||_.any([/^https:\/\/(adopt\.)?((us1)\.)?(app|via|adopt|cdn)(\.(au|eu|gov|hsbc|jpn))?\.pendo\.io$/,/^https:\/\/([0-9]{8}t[0-9]{4}-dot-)pendo-(au|eu|govramp|hsbc|io|jp-prod|us1)\.appspot\.com$/,/^https:\/\/hotfix-(ops|app)-([0-9]+-dot-)pendo-(au|eu|govramp|hsbc|io|jp-prod|us1)\.appspot\.com$/,/^https:\/\/pendo-(au|eu|govramp|hsbc|io|jp-prod|us1)-static\.storage\.googleapis\.com$/,/^https:\/\/([a-zA-Z0-9-]+\.)*pendo-dev\.com$/,/^https:\/\/([a-zA-Z0-9-]+-dot-)?pendo-(apollo|armada|atlas|batman|calypso|dap|dev|dr-us-east1|eu-dev|freeze|helix|link|magic|mcfly|ml|mobile-fbi|mobile-guides|mobile-hummus|mobile-plat|perfserf|voc|wildlings|ionchef|scrum-ops|security|test|uat|au|eu|govramp|hsbc|io|jp-prod|us1)\.appspot\.com$/,/^https:\/\/(via|adopt|local)\.pendo\.(local|io):\d{4}$/,/^https:\/\/pendo-(apollo|armada|atlas|batman|calypso|dap|dev|dr-us-east1|eu-dev|freeze|helix|link|magic|mcfly|ml|mobile-fbi|mobile-guides|mobile-hummus|mobile-plat|perfserf|voc|wildlings|ionchef|scrum-ops|security|test|uat)-static\.storage\.googleapis\.com$/],function(e){return e.test(t)})}function La(e){var t;if(_.isString(e))return t=(t=ao(e).substring(1))&&t.length?lo(t):{},e=_.last(_.first(e.split("?")).split("/")).split("."),{filename:_.first(e),extension:e.slice(1).join("."),query:t}}function Pa(e,t){var n;b.get("guideValidation")&&ze.sri&&(n=La(t),t=_.find(["sha512","sha384","sha256"],function(e){return!!n.query[e]}))&&(e.integrity=t+"-"+(t=n.query[t],_.isString?t.replace(/-/g,"+").replace(/_/g,"/"):t),e.setAttribute("crossorigin","anonymous"))}_.extend(T,{data:Or,event:Fr,removeNode:ra,getClass:Ko,hasClass:Wo,addClass:function(e,t){var n;"string"==typeof e?(n=T(e),_.map(n,function(e){Vo(e,t)})):Vo(e,t)},removeClass:function(e,t){var n;"string"==typeof e?(n=T(e),_.map(n,function(e){Jo(e,t)})):Jo(e,t)},getBody:aa,getComputedStyle:A,getClientRect:da,intersectRect:ca,getScrollParent:pa,isElementVisible:Ea,Observer:Ca,Element:Na,scrollIntoView:_a,getRootNode:va}),_.extend(T.prototype,Fr.$,n.$);var Da,Fa=function(e){var t=!((t=b.get("allowedOriginServers",[]))&&0<t.length||(t=b.get("allowedOriginServerHashes",[]))&&0<t.length),n=yo();return!(!t&&!n)||Ma(e)},Ua=function(e,t,n=!1){try{var i,r="text/css",o="text/javascript";if(_.isString(e)&&(e={url:e}),!Fa((d=e.url,new ei(d).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 u=document.createElement("link");u.type=r,u.rel="stylesheet",u.href=e.url,Pa(u,e.url),a=u}else{if(ft())return(i=document.createElement("script")).addEventListener("load",function(){t(),ra(i)}),i.type=o,i.src=K(E).createScriptURL(e.url),Pa(i,e.url),document.body.appendChild(i),i;(i=document.createElement("script")).type=o,i["async"]=!0,i.src=K(E).createScriptURL(e.url),Pa(i,e.url),a=i,t=_.wrap(t,function(e,t){if(T.removeNode(i),t)return n&&e(t),{};e.apply(this,_.toArray(arguments).slice(1))})}return s.appendChild(a),Ga(a,e.url,t),a}catch(c){return{}}var d},Ga=function(e,t,n){var i=!1;me(n)&&(e.onload=function(){!0!==i&&(i=!0,n(null,t))},e.onerror=function(){!0!==i&&(i=!0,n(new Error("Failed to load script"),t))},e.onreadystatechange=function(){i||e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(i=!0,n(null,t))},"link"===e.tagName.toLowerCase())&&(Ut(function(){var e;i||((e=new Image).onload=e.onerror=function(){!0!==i&&(i=!0,n(null,t))},e.src=t)},500),Ut(function(){i||C.critical("Failed to load "+t+" within 10 seconds")},1e4))},Ba=function(e){var t=JSON.parse(e.data),n=e.origin;C.debug(E.app_name+": Message: "+JSON.stringify(t)+" from "+n),ts(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},za=function(e){Ha(Ja)(ja(e))},ja=function(e){if(e.data)try{var t="string"==typeof e.data?JSON.parse(e.data):e.data,n=e.origin,i=e.source;if(!t.action&&!t.mutation){if(t.type&&"string"==typeof t.type)return{data:t,origin:n,source:i};C.debug("Invalid Message: Missing 'type' in data format")}}catch(r){}};function Ha(t){return function(e){if(e&&Ma(e.origin))return t.apply(this,arguments)}}var qa={disconnect(e){},module:function(e){es(e.moduleURL)},debug:function(e){rs(Ba)}},Wa=function(e,t){qa[e]=t},Va=function(e){delete qa[e]},Ja=function(e){var t;e&&(t=e.data)&&me(qa[t.type])&&qa[t.type](t,e)},$a={},Ka=function(e){if($a[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},Za=function(e){return me($a[e])},Xa=function(e){if($a)for(var t in $a)if(0<=t.indexOf(e))return t;return null},Ya=[],Qa=function(){var e;Ya.length<1||(e=Ya.shift(),Za(e))||Ua(e,function(){Ka(e),Qa()})};var es=function(e){!function(e){var t={"/js/lib/ckeditor/ckeditor.js":1};_.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 ei(e);return Ma(n.origin)&&t[n.pathname]}catch(i){C.debug("Invalid module URL: "+e)}}(e)||(Ya.push(e),1<Ya.length)||Qa()},ts=function(e,t,n){var i,r=_.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=Da||is(),n="*"),t.guid=r,e&&_.isFunction(e.postMessage)&&(i=JSON.stringify(t),e.postMessage(i,n))}catch(o){t=o&&o.message||"";C.info("Failed to postMessage: "+t)}return r},ns=function(){return window!=window.top},is=function(){return new RegExp("^"+Tt(uo).replace(/^https?:/,"https?:")).test(location.href)?window.parent:window.top},rs=function(e){var t;return me(window.addEventListener)&&_.isFunction(window.addEventListener)&&(t=Ha(e),window.addEventListener("message",t,!1)),function(){me(window.removeEventListener)&&_.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},os=_.memoize(function(){return b.get("restrictP1Access")}),as=[],ss=[],us=[],ds=12e4,cs=16,ls=1900,ps=65536,hs=function(e){return!(!e||""===e)},fs=function(){return k.get()},gs={flush:_.noop,flushBy:_.noop,flushEvents:bs,flushTrackEvents:bs,flushAgenticEvents:bs,flushSilos:bs,flushTrackEventSilos:bs,flushAgenticEventSilos:bs,flushBeacons:bs,flushNow:bs,flushLater:ws,flushEvery:Ss,flushStop:Es,beacons:[],silos:[],trackEventSilos:[],agenticEventSilos:[],lock:Ho,unlock:function(){if(!qo())return Is(),function(){var e=!qo();return jo=!1,e&&v["transmit:unlocked"].trigger(),"Pendo Agent unlocked. Events will be written."}()}},ms=[];function vs(e){ms.push(e)}function ys(e){e=ms.indexOf(e);0<=e&&ms.splice(e,1)}function bs(e,t){try{_.each(ms,function(e){e.flush&&e.flush(t)})}catch(n){C.critical("unhandled error while flushing event cache",{error:n})}}function ws(e){return t=_.partial(bs,!0),n=e,n=parseInt(n,10)||0,t[n]||(i=Ut(function(){t(),t[n]()},n),t[n]=function(){window.clearTimeout(i),delete t[n]});var t,n,i}function Ss(e){var t;if(e=parseInt(e,10)||0,_.isObject(Ss.intervals)||(Ss.intervals={}),!Ss.intervals[e])return t=window.setInterval(bs,e),Ss.intervals[e]=function(){clearInterval(t),delete Ss.intervals[e]}}function Es(){var e=_.values(Ss.intervals).concat([bs]);_.map(e,function(e){_.isFunction(e)&&e()})}function Is(){_.each(ms,function(e){e.clear&&e.clear()}),Es()}function _s(e){try{return window.TextDecoder?JSON.parse((new TextDecoder).decode((t=e.split(".")[1],t=atob(t),Uint8Array.from(t,e=>e.codePointAt(0))))):JSON.parse(atob(e.split(".")[1]))}catch(n){return null}var t}function Cs(e,t){return t=t?t+": ":"",e.jwt||e.signingKeyName?e.jwt&&!e.signingKeyName?(C.debug(t+"The jwt is supplied but missing signingKeyName."),!1):e.signingKeyName&&!e.jwt?(C.debug(t+"The signingKeyName is supplied but missing jwt."),!1):(e=e.jwt,!(!_.isString(e)||!/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/.test(e))||(C.debug(t+"The jwt is invalid."),!1)):(C.debug(t+"Missing jwt and signingKeyName."),!1)}xs=null;var xs,Ts={set:function(e){xs=JSON.parse(JSON.stringify(e||{}))},get:function(){return null!==xs?xs:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!b.get("enableSignedMetadata")&&(n=Cs(e,t),b.get("requireSignedMetadata")&&!n?(C.debug("Pendo will not "+t+"."),!1):n?_s(e.jwt):void C.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}};class ks{constructor(e,t=100){this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.sendFn=e,this.maxFailures=t}isEmpty(){return this.queue.length<=0}stop(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.stopped=!0,clearTimeout(this.timer),delete this.timer}start(){this.stopped=!1}push(...e){this.queue.push(...e),this.next()}next(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)}incrementFailure(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),t}pass(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e),this.failures.clear();e=this.queue.indexOf(e);0<=e&&this.queue.splice(e,1),!this.stopped&&t&&this.next()}fail(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e);var n=this.incrementFailure(e);!this.stopped&&t&&(n>=this.maxFailures&&(this.onTimeout&&this.onTimeout(),this.pass(e,!1)),this.retryLater(1e3*Math.pow(2,Math.min(n-1,6))))}retryLater(e){this.timer=Ut(()=>{delete this.timer,this.next()},e)}failed(){return 0<this.failures.get(this.queue[0])&&null!=this.timer}send(e,t,n){return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(()=>this.pass(e,n),()=>this.fail(e,n))}drain(e,t=!0){if(this.queue.push(...e),this.failed())return rn.reject();var n=[];for(const i of this.queue)this.pending.has(i)?this.retryPending&&t&&!this.unloads.has(i)&&(this.incrementFailure(i),n.push(this.send(i,t,!1))):n.push(this.send(i,t,!1));return rn.all(n)}}const As="unsentEvents";class Rs{constructor(){this.events={}}send(t,n){var i=this.events[t];if(i){let e=i.shift();for(;e;)n.push(e),e=i.shift();delete this.events[t]}}push(e,t){var n=this.events[e]||[];n.push(t),this.events[e]=n}read(e){e.registry.addLocal(As);try{this.events=JSON.parse(e.read(As)||"{}"),e.clear(As)}catch(t){this.events={}}}write(e){0<_.size(this.events)?e.write(As,JSON.stringify(this.events),5184e5):e.clear(As)}}var Os=new Rs;const Ns=e=>_.reduce(e,(e,t)=>e+_.get(t,"detail.increment",1),0),Ms="pendo-guide-loop-timeout",Ls={ptm:"pendo-ptm-gif-failure",guide:"pendo-guide-gif-failure",poll:"pendo-poll-gif-failure",agentic:"pendo-agentic-gif-failure"},Ps={name:"pendo-guide-loop",debuggingOnly:!0},Ds={name:"pendo-event-captured",debuggingOnly:!0},Fs="pendo-initialize",Us="pendo-teardown",Gs={};Gs[Ms]={name:Ms,type:"counter",instrument:Ns},_.each(Ls,e=>{Gs[e]={name:e,type:"counter",instrument:Ns}}),Gs[Ps.name]=Ps,Gs[Ds.name]=Ds,Gs[Fs]={name:Fs},Gs[Us]={name:Us};var Bs="debug-enabled";function zs(){try{var e=h.read(Bs)||JSON.parse(Ht(Bs));return"boolean"==typeof e?{enabled:e}:e||{}}catch(t){return{}}}function js(e=!0){let t;return t=f&&f.getters&&f.getters["debugger/debuggingEnabled"]?f.getters["debugger/debuggingEnabled"]():!0===zs().enabled,e?t:t?"Yes":"No"}class Hs{constructor(){this._isPerformanceApiAvailable=this._checkPerformanceApi(),this._sending=!1,this._measuringPerformance=!1,this._debugging=!1,this._setDebuggingBound=_.bind(this._setDebugging,this),this.marks=new Set,this.measures=new Set}initialize(){return b.get("performanceMetricsEnabled")?(this._measuringPerformance=!0,this._markPerformance(Fs),this._setDebugging(),v.debuggerLaunched.on(this._setDebuggingBound),this.interval=setInterval(()=>{this.send()},6e5),()=>{this.teardown()}):_.noop}teardown(){this._markPerformance(Us),this.send(),this._measuringPerformance=!1,this._setDebugging(),v.debuggerLaunched.off(this._setDebuggingBound),this._clearMarksAndMeasures(),clearInterval(this.interval)}startTimer({name:e,debuggingOnly:t},n=null){t&&!this._debugging||this._markPerformance(e+"-start",{detail:n})}stopTimer({name:e,debuggingOnly:t},n=null){t&&!this._debugging||(this._markPerformance(e+"-stop",{detail:n}),this._measurePerformance(e,{detail:n}))}count(e,t=1){this._markPerformance(e,{detail:1<t?{type:"counter",increment:t}:null})}send(){var e=_.reduce(Gs,(e,t)=>{var{name:t,type:n,instrument:i}=t;return i&&(i=i(performance.getEntriesByName(t)),e.push({name:t,type:n,value:i,timestamp:Date.now()})),e},[]);this._clearMarksAndMeasures(),_.size(e)&&this._sending&&Uo(e)}_checkPerformanceApi(){return Ie("performance.mark")&&Ie("performance.measure")&&Ie("performance.getEntries")&&Ie("performance.getEntriesByName")&&Ie("performance.clearMarks")&&Ie("performance.clearMeasures")}_shouldMeasurePerformance(){return this._isPerformanceApiAvailable&&this._measuringPerformance}_setDebugging(){this._debugging=js()}_setSending(e){this._sending=e}_markPerformance(e,t){this._shouldMeasurePerformance()&&(performance.mark(e,t),this.marks.add(e))}_measurePerformance(e,t){var n,i;this._shouldMeasurePerformance()&&(n=e+"-start",i=e+"-stop",performance.getEntriesByName(n).length)&&performance.getEntriesByName(i).length&&(performance.measure(e,n,i,t),this.measures.add(e))}_clearMarksAndMeasures(){this.marks.forEach(e=>{performance.clearMarks(e)}),this.marks.clear(),this.measures.forEach(e=>{performance.clearMeasures(e)}),this.measures.clear()}}const qs=new Hs;var Ws="_PENDO_UNNAMED_",Vs=5;function Js(e,t,n,i,r,o){var a,s;a=b.get("dropAnonymous"),s=Pn(y()),!Mo||a&&s||(a=t,s=n,t=i,n=r,r=o,s={type:o=e,browser_time:S(),visitor_id:y({generate:!0}),account_id:$n(),url:k.externalizeURL(s),props:a||{},eventProperties:n},s=gn.addTracerIds(s),"track"===o&&(s.track_event_name=t||Ws),v.eventCaptured.trigger(s,r),hs((a=s).url)&&("track"===e?su:"agentic"===i?uu:au).push(a))}function $s(){var r=_.toArray(arguments);return function(e,t){var n=r.concat([t]);!function i(t,e){t<n.length&&n[t](e,function(e){i(t+1,e)})}(0,e)}}let Ks=0;function Zs(e,t){e.sequence=Ks++,t(e)}function Xs(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 Ys(e,t){return yo()?Qs("account_id")(e,t):t(e)}function Qs(s){return function(e,t){if(!e.length)return t(e);for(var n=_.get(e[0],s),i=!0,r=1;r<e.length;r++)if(n!==_.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 eu(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function tu(e,t,n){t=n[t-1]||_.last(n);return Math.ceil(e/t)}function nu(e,t){for(var n,i=0,r=(_.isFunction(t.overhead)?t.overhead:_.constant(0))(),o=0;o<e.length;++o){if(tu(n=eu(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if(tu(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(tu(i+(n=eu(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return-1}function iu(){var e=Ts.get();return _.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}var ru,ou,au,su,uu,du;function cu(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=E.squeezeAndCompress(e.slice()),e.JZB.length<=ps)||1===e.length?t(e):(n=e.length/2,cu(e.slice(0,n),t),void cu(e.slice(n),t))}function lu(e,t){qo()&&t(e)}function pu(){return function(e,t){1===e.length&&e.JZB.length>ps?(C.debug("Couldn't write event"),Do("Single item is: "+e.JZB.length+". Dropping."),Fo(e.JZB)):t(e)}}function hu(e,t){return Lo(t.beacon+".gif",e,_.extend({v:Xe,ct:S(),jzb:t.JZB},t.params,t.auth))}function fu(e,t){return Lo(t.beacon+".gif",e,_.extend({v:Xe,ct:S(),s:t.JZB.length},t.params))}function gu(i){return function(e,t){e.params=_.extend({},e.params,i.params),e.beacon=i.beacon,e.eventLength=e.JZB.length;var n=Ts.get();_.isEmpty(n)||(e.auth=n,e.eventLength+=n.jwt.length,e.eventLength+=n.signingKeyName.length),t(e)}}function mu(e,t){var n=yo(),i=_.first(e),i=_.get(i,"account_id");n&&i&&(e.params=_.extend({},e.params,{acc:dt(i)})),t(e)}function vu(e,t){var n=_.first(e),n=_.get(n,"props.source");n&&(e.params=_.extend({},e.params,{source:n})),t(e)}function yu(e){return JSON.stringify(_.extend({events:e.JZB},e.auth))}function bu(e){return e.status<200||300<=e.status?m.reject(new Error(`received status code ${e.status}: `+e.statusText)):m.resolve()}function wu(e,t){return Bo(hu(e,t)).then(bu)}function Su(e,t){return fetch(fu(e,t),{method:"POST",keepalive:!0,body:yu(t),headers:{"Content-Type":"application/json"}}).then(bu)}function Eu(e,t){var n=yu(t);return zo(fu(e,t),n)?m.resolve():m.reject()}function Iu(n){return function(e,t){return t.JZB?t.eventLength<=ls&&!b.get("sendEventsWithPostOnly")?n.preferFetch&&!t.auth&&Bo.supported()?wu(e,t):t.auth?Ur({method:"GET",url:hu(e,t)}):Go(hu(e,t)):n.allowPost&&t.eventLength<=ps?Bo.supported()?Su(e,t):zo.supported()?Eu(e,t):Ur({method:"POST",url:fu(e,e=t),data:yu(e),headers:{"Content-Type":"application/json"}}):m.resolve():m.resolve()}}function _u(n){return function(e,t){if(t.JZB){if(t.eventLength<=ls&&!b.get("sendEventsWithPostOnly",!1)){if(!t.auth&&Bo.supported())return wu(e,t);if(ze.msie<=11)return Ur({method:"GET",url:hu(e,t),sync:!0})}if(t.eventLength<=ps&&n.allowPost){if(Bo.supported())return Su(e,t);if(zo.supported())return Eu(e,t);if(ze.msie<=11)return Ur({method:"POST",url:fu(e,e=t),data:yu(e),sync:!0,headers:{"Content-Type":"application/json"}})}}return m.resolve()}}function Cu(e,t){e.length=0;var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);t(i)}function xu(e){return $s(lu,Ys,cu,(t=e.shorten,t=_.defaults(t||{},{fields:[],siloMaxLength:ps}),function(n,e){var i;1===n.length&&n.JZB.length>t.siloMaxLength&&(i=n[0],C.debug("Max length exceeded for an event"),_.each(t.fields,function(e){var t=i[e];t&&2e3<t.length&&(C.debug("shortening "+t+" and retrying"),i[e]=t.substring(0,2e3),delete n.JZB)})),e(n)}),cu,pu(),gu(e),mu,vu,Cu);var t}class Tu{constructor(e){this.queues=e}isEmpty(){return _.all(this.queues,e=>e.isEmpty())}stop(){_.each(this.queues,e=>e.stop())}push(){const t=_.toArray(arguments);_.each(this.queues,e=>e.push.apply(e,t))}drain(){const t=_.toArray(arguments);return m.all(_.map(this.queues,e=>e.drain.apply(e,t)))}}function ku(o,a,s){a=a||Iu(o),s=s||_u(o);e=o;var e=_.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey),e=_.map(e,(i,r)=>{var e=new ks(function(e,t,n){return n&&(e.params=_.extend({},e.params,{rt:n})),o.localStorageUnload&&t?(0===r&&Os.push(o.beacon,e),m.resolve()):(t?s:a)(i,e)});return e.onTimeout=function(){qs.count(Ls[o.beacon])},e.retryPending=!0,e}),e=new Tu(e);return Os.send(o.beacon,e),e}function Au(e,t){var n=b.get("analytics.excludeEvents");0<=_.indexOf(n,e.type)||t(e)}class Ru{constructor(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.sendQueue=ku(e)}pause(e=1e4){var t=_.uniqueId();const n=this["locks"];n[t]=1;var i=()=>{n[t]&&(v.trigger("ptm:unpaused"),clearTimeout(r),delete n[t],this.flush())},r=Ut(i,e);return v.trigger("ptm:paused"),i}push(e){this.packageSilos(e,e=>{this.silos.push(e)})}clear(){this.cache.length=0,this.silos.length=0,this.sendQueue.stop()}flush({unload:e=!1,hidden:t=!1}={}){var{cache:n,silos:i}=this;if((0!==n.length||0!==i.length||!this.sendQueue.isEmpty())&&_.isEmpty(this.locks)){i.push(n.slice()),n.length=0;n=i.slice();i.length=0;const r=[];_.each(n,function(e){this.processSilos(e,function(e){r.push(e)})},this),e||t?this.sendQueue.drain(r,e):this.sendQueue.push(...r)}}}function Ou(e){var i,r,t=xu(e),n=$s((r=e.beacon,function(e,t){var n=b.get("excludeNonGuideAnalytics");"ptm"===r&&n||t(e)}),Au,Zs,Xs(e.cache),(i={overhead:iu,lower:b.get("sendEventsWithPostOnly")?ps:ls,upper:ps,compressionRatio:[.5*Vs,.75*Vs,Vs]},function(e,t){for(var n=nu(e,i);0<=n;)t(e.splice(0,Math.max(n,1))),n=nu(e,i)}));return new Ru(_.extend({processSilos:t,packageSilos:n},e))}var Nu=Qn(function(e){var t,n,i;if((e=e||k.get())&&e!==Nu.lastUrl)return Nu.lastUrl=e,t=-1,os()||ns()&&(i=is(),ts(i,{type:"load",url:location.toString()},"*")),C.debug("sending load event for url "+e),t={load_time:t="undefined"!=typeof performance&&_.isFunction(performance.getEntriesByType)&&!_.isEmpty(performance.getEntriesByType("navigation"))?(i=performance.getEntriesByType("navigation")[0]).loadEventStart-i.fetchStart:t},ns()&&(t.is_frame=!0),"*"!==(n=kt())&&(t.allowed_storage_keys=_.keys(n)),Js("load",t,e),ws(),v.urlChanged.trigger(),!0});function Mu(e){return"hidden"===e.visibilityState}Nu.reset=function(){Nu.lastUrl=null};const Lu="visibilitychange",Pu="pagehide",Du="unload";function Fu(){this.serializers=_.toArray(arguments)}function Uu(e,t){return e.tag=oi.isElementShadowRoot(t)?"#shadow-root":t.nodeName||"",e}function Gu(e){return me(e)?""+e:""}function Bu(e,t){return e.id=Gu(t.id),e}function zu(e,t){return e.cls=Gu(T.getClass(t)),e}_.extend(Fu.prototype,{add(e){this.serializers.push(e)},remove(e){e=_.indexOf(this.serializers,e);0<=e&&this.serializers.splice(e,1)},serialize(n,i){return n?(i=i||n,_.reduce(this.serializers,function(e,t){return t.call(this,e,n,i)},{},this)):{}}});var ju=256,Hu=64,qu={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 Wu=function(e,t,n){if(!e||!e.nodeName)return null;var i=e.nodeName.toLowerCase();if(("img"==i&&"src"==t||"a"==i&&"href"==t)&&qr())return i=e.getAttribute(t),ro((i=i)&&0===i.indexOf("data:")?(C.debug("Embedded data provided in URI."),i.substring(0,i.indexOf(","))):i+"");i=e,e=t;t=f.getters["nodeAttr/getAttribute"]()(i,e);return(!n||typeof t===n)&&t?_.isString(t)?it.call(t).substring(0,ju):t:null};function Vu(t){var e,n,i;return _.isRegExp(t)&&_.isFunction(t.test)?function(e){return t.test(e)}:_.isArray(t)?(e=_.map(_.filter(t,_.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 _.any(e,function(e){return e.test(t)})}):_.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)}):_.constant(!1)}function Ju(e,t,n,i){try{var r,o=_.indexBy(t),a=_.filter(_.filter(e,function(e){return n(e.nodeName)||o[e.nodeName]}),function(e){return!i(e.nodeName)});return a.length<=Hu?_.pluck(a,"nodeName"):(r=_.groupBy(e,function(e){return o[e.nodeName]?"defaults":_.isString(e.value)&&e.value.length>ju?"large":"small"}),_.pluck([].concat(_.sortBy(r.defaults,"nodeName")).concat(_.sortBy(r.small,"nodeName")).concat(_.sortBy(r.large,"nodeName")).slice(0,Hu),"nodeName"))}catch(s){return C.error("Error collecting DOM Node attributes: "+s),[]}}function $u(t,n){var e=Vu(b.get("htmlAttributes")),i=Vu(b.get("htmlAttributeBlacklist")),r=(i("title")||(t.title=Wu(n,"title","string")),(t.tag||"").toLowerCase()),r=("input"===r&&(r+='[type="'+n.type+'"]'),t.attrs={},Ju(n.attributes,qu[r]&&qu[r].attr,e,i));return _.each(r,function(e){t.attrs[e.toLowerCase()]=Wu(n,e)}),t}function Ku(e,t){var n;return t.parentNode&&t.parentNode.childNodes&&(n=_.chain(t.parentNode.childNodes),e.myIndex=n.indexOf(t).value(),n=n.filter(function(e){return e.nodeType==wo}),e.childIndex=n.indexOf(t).value()),e}function Zu(i,e){var r;return b.get("siblingSelectors")&&e.previousElementSibling&&(r="_pendo_sibling_",this.remove(Zu),e=this.serialize(e.previousElementSibling),this.add(Zu),i.attrs=i.attrs||{},_.each(e,function(e,t){var n={cls:"class",txt:"pendo_text"}[t]||t;_.isEmpty(e)||(_.isObject(e)?_.each(e,function(e,t){e&&!_.isEmpty(e)&&(i.attrs[r+n+"_"+t]=e)}):i.attrs[r+n]=e)})),i}var Xu=new Fu(Uu,Bu,zu,$u,Ku,Zu),Yu=function(e){return"BODY"===e.nodeName&&e===aa()||null===e.parentNode&&!oi.isElementShadowRoot(e)},Qu="pendo-ignore",ed="pendo-analytics-ignore",td=function(e){var t={},n=t,i=e,r=!1;if(!e)return t;do{var o=i,a=Xu.serialize(o,e)}while(r||!ht(a.cls,Qu)&&!ht(a.cls,ed)||(r=!0),n.parentElem=a,n=a,(i=oi.getParent(o))&&!Yu(o));return r&&(t.parentElem.ignore=!0),t.parentElem},nd=["","left","right","middle"],t=function(e){return e},e=function(e,t){return e[t]},id=[["button",function(e){return e.which||e.button},function(){return!0},function(e,t){return nd[t]}],["altKey",e,t,t],["ctrlKey",e,t,t],["metaKey",e,t,t],["shiftKey",e,t,t]],rd={click:function(e,t){for(var n=[],i=0;i<id.length;i++){var r=id[i],o=r[0],a=r[1],s=r[2],r=r[3],a=a(e,o);s(a)&&n.push(r(o,a))}return t.flags=n,t}},od=function(t){try{if(qs.startTimer(Ds),!T.data.get(t,"counted")){T.data.set(t,"counted",!0);var n=Dr(t),i=t.type,e={},r=rd[i];if(r&&(e=r(t,e)),T.data.get(t,"stopped")&&(e.stopped=!0),t.from&&_.isString(t.from)&&(e.from=t.from),n=(s=n).nodeType===bo?s.parentNode:s.nodeType===Io?null:s.correspondingUseElement||s){var o=td(n),a=(_.extend(o,e),Nu());if(a&&k.startPoller(),!o.ignore){let e;"click"===i&&(e=function(e){e=function(e){const n={};return{getEventProperties(){return n},addEventProperty(e,t){_.isString(e)&&!_.isUndefined(t)?n[e]=t:C.error("Failed to add click event property")},target:e}}(e),v.onClickCaptured.trigger(e),e=e.getEventProperties();if(!_.isEmpty(e))return e}(n)),Js(i,{target:o},undefined,undefined,e,t),v.trigger("appUsage",o,t)}}else C.info("Invalid HTML target",{contexts:["event","dom","processing"]})}}catch(u){C.critical("pendo.io while handling event",{error:u})}finally{qs.stopTimer(Ds)}var s};var ad=_.debounce(od,5e3,!0),sd=function(e){const t=[];_.contains(e=e||["click","focus","submit","change"],"change")&&(e=_.without(e,"change"),t.push(()=>{ad.cancel()}),t.push(Lr(document,"change",ad,!0)));var n,i=b.get("interceptElementRemoval")||b.get("syntheticClicks.elementRemoval"),r=b.get("syntheticClicks.targetChanged"),r=(t.push(function(t,e,n,i){var r,o,a=[],s=ze.hasEvent("pointerdown"),u=s?"pointerdown":"mousedown",s=s?"pointerup":"mouseup",d=[],c={cloneEvent:function(e){e=T.event.clone(e);return e.type="click",e.from=u,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&&Dr(r)!==Dr(e)&&ua(Dr(r))&&(o=!0,t(r))},click:function(e){r=null,o&&T.data.set(e,"ignore",!0),o=!1,n&&c.unwrap()},intercept:function(e){e=function(e){var t=[];for(;e&&!Yu(e);)t.push(e),e=e.parentNode;return t}(Dr(e));_.each(e,function(e){e=ud(e,c.remove);a.push(e)})},remove:function(){r&&(t(r),r=null),c.unwrap()},unwrap:function(){0<a.length&&(_.each(a,function(e){e()}),a=[])},teardown:function py(){c.unwrap(),_.each(d,function(e){e()})}};e&&(d.push(Lr(document,u,c.down,!0)),d.push(Lr(document,s,c.up,!0)),d.push(Lr(document,"click",c.click,!0)));return c}(T.event.trigger,ze.addEventListener,i,r).teardown),t.push((i=e,n=_.map(i,function(e){return l(document,e,od,!0)}),()=>{_.each(n,function(e){e()})})),t.push(function(e,t){if(t){const n=[];return n.push(Lr(document,Lu,()=>{Mu(document)&&e(!0,!1)})),n.push(Lr(window,Pu,_.partial(e,!1,!0))),()=>_.each(n,function(e){e()})}return Lr(window,Du,_.partial(e,!0,!0))}(function(e,t){t&&v.appUnloaded.trigger(),e&&v.appHidden.trigger()},b.get("preventUnloadListener"))),b.get("interceptStopPropagation",!0)),i=b.get("interceptPreventDefault",!0);return r&&t.push(dd(window.Event,e)),i&&t.push(cd(window.Event,["touchend"])),()=>{_.each(t,function(e){e()})}};function ud(n,i){var e=["remove","removeChild"];try{if(!n)return _.noop;_.each(e,function(e){var t=n[e];if(!t)return _.noop;n[e]=_.wrap(t,function(e){return i&&i(),e.apply(this,_.toArray(arguments).slice(1))}),n[e]._pendoUnwrap=function(){if(!n)return _.noop;n[e]=t,delete n[e]._pendoUnwrap}})}catch(t){C.critical("ERROR in interceptRemove",{error:t})}return function(){_.each(e,function(e){if(!n[e])return _.noop;e=n[e]._pendoUnwrap;_.isFunction(e)&&e()})}}function dd(n,e){var t=["stopPropagation","stopImmediatePropagation"];try{if(!n||!n.prototype)return _.noop;var i=_.indexBy(e);_.each(t,function(e){var t=n.prototype[e];t&&(n.prototype[e]=_.wrap(t,function(e){var t=e.apply(this,arguments);return i[this.type]&&(T.data.set(this,"stopped",!0),T.event.trigger(this)),t}),n.prototype[e]._pendoUnwrap=function(){n.prototype[e]=t,delete n.prototype[e]._pendoUnwrap})})}catch(r){C.critical("ERROR in interceptStopPropagation",{error:r})}return function(){_.each(t,function(e){e=n.prototype[e]._pendoUnwrap;_.isFunction(e)&&e()})}}function cd(t,e){try{if(!t||!t.prototype)return _.noop;var i=_.indexBy(e),n=t.prototype.preventDefault;if(!n)return _.noop;t.prototype.preventDefault=_.wrap(n,function(e){var t,n=e.apply(this,arguments);return i[this.type]&&((t=T.event.clone(this)).type="click",t.from=this.type,t.bubbles=!0,t.eventPhase=Nr,T.event.trigger(t)),n}),t.prototype.preventDefault._pendoUnwrap=function(){t.prototype.preventDefault=n,delete t.prototype.preventDefault._pendoUnwrap}}catch(r){C.critical("ERROR in interceptPreventDefault",{error:r})}return function(){var e=t.prototype.preventDefault._pendoUnwrap;_.isFunction(e)&&e()}}function l(e,t,n,i){return e&&t&&n?(i&&!ze.addEventListener&&(i=!1),T.event.add(e,{type:t,handler:n,capture:i})):_.noop}function R(e,t,n,i){e&&t&&n&&(i&&!ze.addEventListener&&(i=!1),T.event.remove(e,t,n,i))}var ld=function(e){T.data.set(e,"pendoStopped",!0),e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1},pd=function(e,t){return"complete"!==(t=t||window).document.readyState?Lr(t,"load",e):(e(),_.noop)};function hd(){return E.normalizedUrl||function(e){try{var t=new ei(e),n=_.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(i){return C.error("Invalid URL provided to normalize"),e}}(k.externalizeURL())}function fd(t,e,n={}){if(!me(t))return!0;var i=e||hd(),{logger:r,context:o,id:a}=n;if(Array.isArray(t)){if(0===t.length)return!0;for(let e=0;e<t.length;e++){var s=t[e];if(me(s))try{if(new RegExp(s).test(i))return!0}catch(u){r&&o&&a&&r.error(`Invalid page rule regex for ${o} (rule ${e}):`,a,u)}}}else if("string"==typeof t)try{return new RegExp(t).test(i)}catch(u){r&&o&&a&&r.error(`Invalid page rule regex for ${o}:`,a,u)}return!1}function gd(e,t){return fd(e,t,{logger:C,context:"guide",id:"unknown"})}var O=[],md=[],vd={};let yd={};function bd(){return O}function wd(){return Sd(O)}function Sd(e){return _.filter(e,function(e){return!e.isFrameProxy})}function Ed(e){_.isArray(e)?(O=e,v.guideListChanged.trigger({guideIds:_.pluck(e,"id")})):C.info("bad guide array input to `setActiveGuides`")}var Id=function(){let n=[];return{addGuide:e=>{var t;_.isEmpty(e)||(n=n.concat(e),_.each(n,e=>e.hide&&e.hide()),e=O,(t=_.difference(e,n)).length<e.length&&(Ed(t),f.dispatch("frames/changeGuideList",t)))}}}();function _d(t,n){return _.find(Td(),function(e){return _.get(e,t)===n})||null}function N(e){return _d("id",e)}function Cd(e){return _d("name",e)}function xd(e,t){return e&&e.id?(e=N(e.id)).findStepById(t):null}function Td(){var e=_.values(yd);return e.length?O.concat(_.flatten(e)):O}var kd="_pendo-guide-tt_",Ad="_pendo-guide-mobile-tt_",Rd=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},Od=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)},Nd=function(e){return!!_.get(e,"attributes.form")};function Md(){return"undefined"!=typeof selmo&&selmo.isPreviewing}function Ld(){return!!(Md()&&ea().width<=320)||ze.isMobileUserAgent()}function Pd(e=document){var t=Pd.attachPoint;if(null==t){var n=b.get("guides.attachPoint");if(_.isString(n)){try{t=Ar(n)[0]}catch(i){C.info('Error finding guide attach point "'+n+'"')}t=t||document.createElement("div")}else t=!!_.isFunction(n)&&n();Pd.attachPoint=t}return t||aa(e)}var Dd=function(e){var t=vd[e.guideId];if(t){t=t.element();if(ua(t)&&t.id==="_pendo-badge_"+e.id)return t}},Fd=function(e,t){var n;return e?(n=e.getGuide(),n="building-block"===_.get(n,"attributes.type")||!Od(n),!e.overrideElement&&n&&(e.overrideElement=Dd(e)),e.targetElement=Ud(e,t),e.overrideElement||e.targetElement):(C.info("Can't get element for null step"),null)},Ud=function(e,t){e=e.elementPathRule||null,e=e?Ar(e,t):[aa(t)];return 0===e.length?null:_.first(e)};function Gd(e){var t=_.get(e,"attributes.activation.selector");return t||e.steps[0].elementPathRule}function Bd(e,t,n){var i,r,o,e=ia(e),t=ia(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!==ta(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),_.contains([fa.X,fa.BOTH],i)&&(r.x=0);_.contains([fa.Y,fa.BOTH],i)&&(r.y=0);return r}(a,ea(),n,ha(aa(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}function zd(e,t,n,i,r){var o,a=_.toArray(arguments).slice(1),s=e.apply(this,a);return n||va(o=Pd())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function jd(){return f.getters["frames/isLeader"]()}function Hd(e){return f.dispatch("frames/updateFrameVisibility",{visibility:e})}const qd={validateGuide:1,validateLauncher:1,validateGlobalScript:1},Wd={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1},Vd={ready:1},Jd=["ready","onClickCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","validateGuide","validateLauncher","validateGlobalScript"];function $d(i){const e=_.reduce(Jd,function(e,r){if(Wd[r]){const t=function(e){return Zd[r].apply(Zd[r],e.data)};i[r].on(t),e.push(()=>i[r].off(t))}if(Vd[r]){const n=function(t){{var n=r;t=t.data[0];let e;try{e=new CustomEvent("pendo_"+n,{detail:t})}catch(i){if(!document.createEvent)return;(e=document.createEvent("Event")).initEvent("pendo_"+n,!0,!0),e.detail=t}document.dispatchEvent(e)}};i[r].on(n),e.push(()=>i[r].off(n))}return e},[]);return()=>_.each(e,e=>e())}Kd=wn.call({}),_.each(Jd,function(n){Kd[n]=function(e){var t;return _.isFunction(e)?Kd.on(n,e):(t=qd[n]?"triggerAsync":"trigger",Kd[t].apply(Kd,[n].concat(_.toArray(arguments))))}});var Kd,Zd=Kd;var Xd={post:function(e,t,n,i){return n.ajax.postJSON(e.replace(/\/guides\.js\//,"/guides.json/"),t).then(function(e){n.guidesPayload(e.data),i()})},load(e,t,n){return t.ajax.get(e).then(function(e){t.guidesPayload(e.data),n()})},endpoint(){return"guide.json"},usesXhr(){return!0}};function Yd(e){e=La(e);if(e){e=e.filename;if(e)return 54<e.length?e.substring(28,55):e}}ec=rc={failed:{},verified:{}},nc=Fo,ic=function(e){try{var t=[];return!Xd.usesXhr()&&e.domJsonpUrl?t.push(sc(e,"domJsonpUrl")):Xd.usesXhr()&&e.domUrl&&t.push(ac(e,"domUrl")),e.contentUrlJs?t.push(sc(e,"contentUrlJs")):e.contentUrl&&t.push(sc(e,"contentUrl")),m.all(t)}catch(n){throw v.contentVerificationFail.trigger(e,n),n}},tc=function(e){return ic(e).then(_.noop,function(e){return/verify/.test(e)&&nc(e),m.reject(e)})},Qd=function(t){return ec.failed[t.id]?m.reject():ec.verified[t.id]?m.resolve():tc(t).then(function(){ec.verified[t.id]=!0},function(e){return ec.failed[t.id]=!0,m.reject(e)})};var Qd,ec,tc,nc,ic,rc,oc={verify:function(e){return b.get("guideValidation")?Qd(e):m.resolve()},reset:function(){rc.failed={},rc.verified={}}};function ac(e,t){var n,i=e[t];return _.isString(i)?(n=(e=e)[{domUrl:"domHash",domJsonpUrl:"domJsonpHash",contentUrl:"contentHash",contentUrlJs:"contentJsHash"}[t=t]]||Yd(e[t]),Ur.get(i).then(function(e){var t;if("object"==typeof(e=e.data)&&(e=JSON.stringify(e)),(t=V.create()).update(e),c.uint8ToBase64(t.digest())!==n)return m.reject('Unable to verify content at "'+i+'"')})):m.reject('unable to parse "'+i+'"')}function sc(e,t){var n=e[t];return ze.sri&&/[?&]sha(256|384|512)=/.test(n)?m.resolve():ac(e,t)}uc="allow",dc="deny",cc="pending",pc=function(){return 0<_.size(Zd._handlers.validateGuide)},hc=function(e,n){var i=[];return _.each(e,function(e,t){n&&(t=n+"."+t),_.isObject(e)?_.each(hc(e,t),function(e){i.push(e)}):i.push([t,e])}),i};var uc,dc,cc,lc,pc,hc,fc={state:lc={},Step:function(e){var n=this;function i(e){return _.filter([["content",Yd(e.contentUrl)],["contentCss",Yd(e.contentUrlCss)],["contentJs",Yd(e.contentUrlJs)],["dom",Yd(e.domUrl)],["domJsonp",Yd(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=hc(t)).length&&(t=_.sortBy(t,function(e){return e[0]}),e.push(["variables",t])),e)},n},Guide:function(){return this.signature=function(){return _.map(this.steps,function(e){return e.signature()})},this},Launcher:function(){var n=this,i=!1,r=function(){return 0<_.size(Zd._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=lc[t])!==dc)&&(t!==uc?(i=!0,t=JSON.stringify(n.signature()),e="launcher-"+ct(t),Zd.validateLauncher(t).then(function(){lc[e]=uc},function(){lc[e]=dc}).then(function(){i=!1,n.render(),n.update(O)},function(){i=!1}),!1):void 0)}),n.signature=function(){var e=[],t=hc(this.data);return t.length&&(t=_.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(!pc())return m.resolve();try{return _.get(e,"attributes.resourceCenter.isTopLevel",!1)?(t=e,n=P.findResourceCenterModules(t,O),t=[t].concat(n),m.all(_.map(t,gc))):gc(e)}catch(i){throw v.contentValidationFail.trigger(e,i),i}var t,n},valid:function(e){return!pc()||!!(e=lc[e.guideId])&&e.status===uc},invalid:function(e){return!!pc()&&!!(e=lc[e.guideId])&&e.status===dc},reset(){lc={}}};function gc(i){var r=lc[i.id];return r||(r={},lc[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:cc},r.status=cc),r[t].promise);return n||(n=Zd.validateGuide(e,i).then(function(){r[t].status=uc,r.status=uc},function(e){return r[t].status=dc,r.status=dc,m.reject(e)}),r[t].promise=n),n})}function mc(e,t){var n=_.toArray(arguments).slice(2);return _.reduce(e,function(e,t){return t.apply(e,n)},t)}function vc(e){return _.isFunction(e.before)?e:mc(vc.behaviors,e)}function yc(e,t){return mc(yc.behaviors,e,t)}function bc(e){var t,n,i=b.getLocalConfig("contentHost");return i&&e?(t=new RegExp(`(https:)?\\/\\/${Ve}-\\d+\\.storage\\.googleapis\\.com`,"g"),n=new RegExp(`(https:)?\\/\\/${We}\\.storage\\.googleapis\\.com`,"g"),e.replace(t,i).replace(n,i).replace(new RegExp("(https:)?\\/\\/"+Tt($e),"g"),i)):e}function wc(e){return b.getLocalConfig("contentHost")?JSON.parse(bc(JSON.stringify(e))):e}vc.behaviors=[],yc.behaviors=[];var Sc=function(){var d={},c=_.compose(function(e){var t=function(){var e=Tt(b.getHostedConfig("contentHost"));if(e)return e+"*"}();return t&&!new RegExp(t).test(e)&&C.debug("Failed to verify URL: "+e+" vs "+t),e},bc);const u=[function(e,t,n){return e.replace(`<% if (typeof guide !== 'undefined') { %>
5
5
  var guide = pendo.findGuideById('<%= guide.id %>');
6
6
  var step = guide && guide.findStepById('<%= step.id %>');
7
7
  <% } %>`,`var guide = pendo.findGuideById('${t}');
@@ -138,4 +138,4 @@ var step = guide && guide.findStepById('${n}');`)}];return{load:function(t){try{
138
138
  }
139
139
  `,f.util.addInlineStyles(p.feedbackFrameStyles,t),t=e,(e=h.dom(document.createElement("div"))).css({height:"100%",position:"fixed",right:"0",top:"0",width:"0","background-color":"#f7f7f7",transition:"animation 0.4s ease-in-out","box-shadow":"0 5px 40px rgba(0,0,0,.46)",display:"block !important","-webkit-overflow-scrolling":"touch","overflow-y":"hidden"}),e.attr("id",p.feedbackWidget),e.attr("data-turbolinks-permanent","true"),e.addClass("buttonIs-"+t);var t=e;t.append(((e=h.dom(document.createElement("iframe"))).css({width:"100%",height:"99.6%",border:"0 none"}),e.attr("id",p.feedbackIframe),e.attr("title","Feedback"),e.attr("src",y()),e)),t.appendTo(h.dom.getBody()),F()}function B(){return o}function M(){let e=f.ConfigReader.getLocalConfig();return h._.isObject(e)||(e={}),h._.isObject(e.visitor)||(e.visitor={}),h._.isObject(e.account)||(e.account={}),e}function z(e){e=e||M();if(!isUnsupportedIE(h)&&s&&a&&u&&d)if(h._.get(e.visitor,"id")){if(!h.isAnonymousVisitor(e.visitor.id)){if(h._.get(e.account,"id"))return 1;h.log("The current visitor is not associated with an account.")}}else h.log("Not valid visitor id")}function L(e,t){if(s=t.vendorId,a=t.apiUrl,u=t.siteUrl,d=t.productId,c)return f.q.reject();if(!z(e))return f.q.reject();var n,i,e=P(e);try{n=h.url.get(),i="fdbkDst";const o=null!=(i=new RegExp("[?&]"+i+"=([^&#]*)").exec(n))&&decodeURI(i[1])||null;if(o&&o.startsWith("case"))return c=!0,void x().then(function(e){e=e+"&fdbkDst="+o;window.location.href=e})}catch(r){c=!1,h.log(r,"unhandled error while checking feedback destination")}try{return c=!0,"WIDGET"===t.type&&U(t),E(),w(e)}catch(r){return c=!1,h.log(r,"unhandled error while initializing feedback"),f.q.reject(r)}}function P(e){var t,n,i=f.agent.getJwtInfoCopy();return h._.isEmpty(i)?((t={}).user=h._.pick(e.visitor,"id","full_name","firstName","lastName","email","tags","custom_allowed_products"),h._.extend(t.user,{allowed_products:[{id:d}]}),t.account=h._.pick(e.account,"id","name","monthly_value","is_paying","tags"),h._.extend(t,{vendor:{id:s}}),h._.isUndefined(t.account.is_paying)&&(t.account.is_paying=!0),null!=t.user.email&&""!=t.user.email||(t.user.email=(e=t,h._.isUndefined(e.user)||h._.isUndefined(e.user.id)?"noemail+"+h.randomString(32)+"@pendo.io":"noemail+"+e.user.id+"@pendo.io")),null!=t.user.full_name&&""!=t.user.full_name||(t.user.full_name=(e=t,h._.isUndefined(e.user.firstName)&&h._.isUndefined(e.user.lastName)?h._.isUndefined(e.user)||h._.isUndefined(e.user.id)?"No Name Provided"+h.randomString(32):"No Name Provided"+e.user.id:(n=[],h._.isUndefined(e.user.firstName)||n.push(e.user.firstName),h._.isUndefined(e.user.lastName)||n.push(e.user.lastName),n.join(" ")))),t):(e=JSON.parse(JSON.stringify(i)),h._.extend(e,{vendor:{id:s}}),h._.extend(e,{allowed_products:[{id:d}]}),e)}function j(){return c}function D(){h._.each(h._.values(p),function(e){h.dom("#"+e).remove()}),d=r=u=s=a="",c=o=!1,f.agentStorage.clear(i),f.agentStorage.clear(l)}function H(){return JSON.parse(JSON.stringify(f.ConfigReader.get("feedbackSettings",{})))}}function URLPolyfillFactory(n){return function URL(e){var t=n.createElement("a");if(t.href=e,":"===t.protocol)throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");if(t.href!==e&&t.href!==encodeURI(e))throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");return t.toString||(t.toString=function(){return t.href}),null==t.origin&&(t.origin=t.protocol+"//"+t.hostname,"80"!==t.port)&&"443"!==t.port&&(t.origin+=":"+t.port),t}}var URL$1=function(e){var t=window.URL;return"function"==typeof t&&/native/.test(t)?t:e(document)}(URLPolyfillFactory);function record(){var e,a=Object.defineProperty,s=(e,t,n)=>{return n=n,(t="symbol"!=typeof t?t+"":t)in(e=e)?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},u=Object.defineProperty,t=(e,t,n)=>{return n=n,(t="symbol"!=typeof t?t+"":t)in(e=e)?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},P=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(P||{});const d={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},c={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},g={};function m(e){if(g[e])return g[e];var t=function(e){var t,n=null==(t=null==(n=null==globalThis?void 0:globalThis.Zone)?void 0:n.__symbol__)?void 0:t.call(n,e);if(n&&globalThis[n])return globalThis[n]}(e)||globalThis[e];const n=t.prototype;var i=e in d?d[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 c?c[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 g[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?g[e]=o:n):t.prototype}catch{return n}}const v={};function n(e,t,n){var i=e+"."+String(n);return v[i]?v[i].call(t):(e=m(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(v[i]=e).call(t):t[n])}const y={};function b(e,t,n){var i=e+"."+String(n);return y[i]?y[i].bind(t):"function"!=typeof(e=m(e)[n])?t[n]:(y[i]=e).bind(t)}const D={childNodes:function(e){return n("Node",e,"childNodes")},parentNode:function(e){return n("Node",e,"parentNode")},parentElement:function(e){return n("Node",e,"parentElement")},textContent:function(e){return n("Node",e,"textContent")},contains:function(e,t){return b("Node",e,"contains")(t)},getRootNode:function(e){return b("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?n("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?n("Element",e,"shadowRoot"):null},querySelector:function(e,t){return n("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return n("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return m("MutationObserver").constructor},patch:function(e,t,n){try{if(!(t in e))return()=>{};const r=e[t];var i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}};function $(e){return e.nodeType===e.ELEMENT_NODE}function F(e){var t=e&&"host"in e&&"mode"in e&&D.host(e)||null;return Boolean(t&&"shadowRoot"in t&&D.shadowRoot(t)===e)}function U(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function w(e,t=window){var n=null==(i=null==(n=null==t?void 0:t.Zone)?void 0:n.__symbol__)?void 0:i.call(n,e);if(n){var i=t[n];if(i)return i}return t[e]}const G="undefined"!=typeof window?w("setTimeout").bind(window):global.setTimeout;function A(e){try{var n=e.rules||e.cssRules;if(!n)return null;let t=e.href;!t&&e.ownerNode&&(t=e.ownerNode.baseURI);var i=Array.from(n,e=>S(e,t)).join("");return r=(r=i).includes(" background-clip: text;")&&!r.includes(" -webkit-background-clip: text;")?r.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"):r}catch(t){return null}var r}function S(t,n){var i,r;if("styleSheet"in t){let e;try{e=A(t.styleSheet)||((r=(i=t).cssText).split('"').length<3?r:(r=["@import",`url(${JSON.stringify(i.href)})`],""===i.layerName?r.push("layer"):i.layerName&&r.push(`layer(${i.layerName})`),i.supportsText&&r.push(`supports(${i.supportsText})`),i.media.length&&r.push(i.media.mediaText),r.join(" ")+";"))}catch(o){e=t.cssText}return null!=(i=null==t?void 0:t.styleSheet)&&i.href?f(e,t.styleSheet.href):e}{let e=t.cssText;return"selectorText"in t&&(e=function(t){var e=t.cssText.includes("grid-template:"),n=""!==t.style.getPropertyValue("grid-template-areas"),i=t.cssText.includes("grid-template-areas:");if(e&&n&&!i){var r=[];for(let e=0;e<t.style.length;e++){var o=t.style[e],a=t.style.getPropertyValue(o);r.push(o+": "+a)}return`${t.selectorText} { ${r.join("; ")}; }`}return t.cssText}(t),t.selectorText.includes(":"))&&(e=e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),n?f(e,n):e}}class ce{constructor(){t(this,"idNodeMap",new Map),t(this,"nodeMetaMap",new WeakMap)}getId(e){return e?(null==(e=this.getMeta(e))?void 0:e.id)??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){var t=this.getId(e);this.idNodeMap["delete"](t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){var n=this.getNode(e);n&&(n=this.nodeMetaMap.get(n))&&this.nodeMetaMap.set(t,n),this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function K({element:e,maskInputOptions:t,tagName:n,type:i,value:r,maskInputFn:o,needsMask:a}){let s=r||"";r=i&&T(i);return s=t[n.toLowerCase()]||r&&t[r]||a?o?o(s,e):"*".repeat(s.length):s}function T(e){return e.toLowerCase()}const R="__rrweb_original__";function Z(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?T(t):null}function X(e,t){let n;try{n=new URL$1(e,t??window.location.href)}catch(i){return null}e=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==e?void 0:e[1])??null}const E=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,I=/^(?:[a-z+]+:)?\/\//i,_=/^www\..*/i,C=/^(data:)([^,]*),(.*)/i;function f(e,u){return(e||"").replace(E,(e,t,n,i,r,o)=>{n=n||r||o,r=t||i||"";if(!n)return e;if(I.test(n)||_.test(n))return`url(${r}${n}${r})`;if(C.test(n))return`url(${r}${n}${r})`;if("/"===n[0])return`url(${r}${function(e){let t="";return t=(t=-1<e.indexOf("//")?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}(u)+n}${r})`;var a=u.split("/"),o=n.split("/");a.pop();for(const s of o)"."!==s&&(".."===s?a.pop():a.push(s));return`url(${r}${a.join("/")}${r})`})}function x(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function O(e,t){return function(a,e,s=!1){var u=Array.from(e.childNodes),d=[];let c=0;if(1<u.length&&a&&"string"==typeof a){let o=x(a,s);var l=o.length/a.length;for(let r=1;r<u.length;r++)if(u[r].textContent&&"string"==typeof u[r].textContent){var p,h=x(u[r].textContent,s);let i=3;for(;i<h.length&&(h[i].match(/[a-zA-Z0-9]/)||-1!==h.indexOf(h.substring(0,i),1));i++);for(;i<h.length;i++){let e=h.substring(0,i),t=o.split(e),n=-1;if(2===t.length)n=t[0].length;else if(2<t.length&&""===t[0]&&""!==u[r-1].textContent)n=o.indexOf(e,1);else if(1===t.length){if(e=e.substring(0,e.length-1),(t=o.split(e)).length<=1)return d.push(a),d;i=101}else i===h.length-1&&(n=o.indexOf(e));if(-1!==(n=2<=t.length&&100<i&&((p=u[r-1].textContent)&&"string"==typeof p&&(p=x(p).length,n=o.indexOf(e,p)),-1===n)?t[0].length:n)){let e=Math.floor(n/l);for(;0<e&&e<a.length;){if((c+=1)>50*u.length)return d.push(a),d;var f=x(a.substring(0,e),s);if(f.length===n){d.push(a.substring(0,e)),a=a.substring(e),o=o.substring(n);break}f.length<n?e+=Math.max(1,Math.floor((n-f.length)/l)):e-=Math.max(1,Math.floor((f.length-n)*l))}break}}}}return d.push(a),d}(e,t).join("/* rr_split */")}let Y=1;const N=new RegExp("[^a-z0-9-_:]"),B=-2;function M(){return Y++}let k,le;const pe=/^[^ \t\n\r\u000c]+/,he=/^[, \t\n\r\u000c]+/;function fe(i,r){if(""===r.trim())return r;let o=0;function e(e){var e=e.exec(r.substring(o));return e?(e=e[0],o+=e.length,e):""}for(var a=[];e(he),!(o>=r.length);){let n=e(pe);if(","===n.slice(-1))n=me(i,n.substring(0,n.length-1)),a.push(n);else{let e="",t=(n=me(i,n),!1);for(;;){var s=r.charAt(o);if(""===s){a.push((n+e).trim());break}if(t)")"===s&&(t=!1);else{if(","===s){o+=1,a.push((n+e).trim());break}"("===s&&(t=!0)}e+=s,o+=1}}}return a.join(", ")}const ge=new WeakMap;function me(e,t){return t&&""!==t.trim()?ve(e,t):t}function ve(e,t){let n=ge.get(e);if(n||(n=e.createElement("a"),ge.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function ye(e,t,n,i){return i&&("src"!==n&&("href"!==n||"use"===t&&"#"===i[0])&&("xlink:href"!==n||"#"===i[0])&&("background"!==n||"table"!==t&&"td"!==t&&"th"!==t)?"srcset"===n?fe(e,i):"style"===n?f(i,ve(e)):"object"===t&&"data"===n?me(e,i):i:me(e,i))}function be(e,t){return("video"===e||"audio"===e)&&"autoplay"===t}function we(t,n,e){if(!t)return!1;if(!n)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!e&&we(D.parentNode(t),n,e);for(let e=t.classList.length;e--;){var i=t.classList[e];if(n.test(i))return!0}return!!e&&we(D.parentNode(t),n,e)}function z(e,t,n,i){let r;if($(e)){if(r=e,"*"===n)return!0;if(!D.childNodes(r).length)return!1}else{if(null===D.parentElement(e))return!1;r=D.parentElement(e)}try{if("string"==typeof t){if(i){if(r.closest("."+t))return!0}else if(r.classList.contains(t))return!0}else if(we(r,t,i))return!0;if(n)if(i){if(r.closest(n))return!0}else if(r.matches(n))return!0}catch(o){}return!1}function Se(e,t){var n,{needsMask:i,maskTextFn:r,maskInputOptions:o,maskInputFn:a,rootId:s,cssCaptured:u}=t,d=e.parentNode&&e.parentNode.tagName;let c="";var l="STYLE"===d||void 0,p="SCRIPT"===d||void 0,d="TEXTAREA"===d||void 0;if(l&&c){try{e.nextSibling||e.previousSibling||null!=(n=e.parentNode.sheet)&&n.cssRules&&(c=A(e.parentNode.sheet))}catch(h){console.warn("Cannot get CSS styles from text's parentNode. Error: "+h,e)}c=f(c,ve(t.doc))}return p?c="SCRIPT_PLACEHOLDER":u||(c=D.textContent(e),l&&(c=c&&f(c,ve(t.doc)))),!l&&!p&&c&&i&&(c=r?r(c,D.parentElement(e)):c.replace(/[\S]/g,"*")),d&&c&&o.textarea&&(c=a?a(c,e.parentNode):c.replace(/[\S]/g,"*")),{type:P.Text,textContent:c||"",rootId:s}}function Ee(t,e){const{doc:n,blockClass:i,blockSelector:r,inlineStylesheet:o,maskInputOptions:a={},maskInputFn:s,dataURLOptions:u={},inlineImages:d,recordCanvas:c,keepIframeSrcFn:l,newlyAddedElement:p=!1,rootId:h,needsMask:f}=e;var e=function(t,n,e){try{if("string"==typeof n){if(t.classList.contains(n))return!0}else if(n)for(let e=t.classList.length;e--;){var i=t.classList[e];if(n.test(i))return!0}if(e)return t.matches(e)}catch(r){}return!1}(t,i,r),g=(w=t)instanceof HTMLFormElement?"form":(w=T(w.tagName),N.test(w)?"div":w);let m={};var v,y=t.attributes.length;for(let e=0;e<y;e++){var b=t.attributes[e];be(g,b.name,b.value)||(m[b.name]=ye(n,g,T(b.name),b.value))}if("link"===g&&o){var w=Array.from(n.styleSheets).find(e=>e.href===t.href);let e=null;(e=w?A(w):e)&&(delete m.rel,delete m.href,m._cssText=e)}if("style"===g&&t.sheet){let e=A(t.sheet);e&&(1<t.childNodes.length&&(e=O(e,t)),m._cssText=e)}if("input"!==g&&"textarea"!==g&&"select"!==g||(w=t.value,v=t.checked,"radio"!==m.type&&"checkbox"!==m.type&&"submit"!==m.type&&"button"!==m.type&&w?m.value=K({element:t,type:Z(t),tagName:g,value:w,maskInputOptions:a,maskInputFn:s,needsMask:f}):v&&(m.checked=v)),"option"===g&&(t.selected&&!a.select?m.selected=!0:delete m.selected),"dialog"===g&&t.open&&(m.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),"canvas"===g&&c&&("2d"===t.__context?function(n){var i=n.getContext("2d");if(i)for(let t=0;t<n.width;t+=50)for(let e=0;e<n.height;e+=50){var r=i.getImageData,r=R in r?r[R]:r;if(new Uint32Array(r.call(i,t,e,Math.min(50,n.width-t),Math.min(50,n.height-e)).data.buffer).some(e=>0!==e))return}return 1}(t)||(m.rr_dataURL=t.toDataURL(u.type,u.quality)):"__context"in t||(w=t.toDataURL(u.type,u.quality),(v=n.createElement("canvas")).width=t.width,v.height=t.height,w!==v.toDataURL(u.type,u.quality)&&(m.rr_dataURL=w))),"img"===g&&d){k||(k=n.createElement("canvas"),le=k.getContext("2d"));const I=t,_=I.currentSrc||I.getAttribute("src")||"<unknown-src>",C=I.crossOrigin,x=()=>{I.removeEventListener("load",x);try{k.width=I.naturalWidth,k.height=I.naturalHeight,le.drawImage(I,0,0),m.rr_dataURL=k.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==I.crossOrigin)return I.crossOrigin="anonymous",void(I.complete&&0!==I.naturalWidth?x():I.addEventListener("load",x));console.warn(`Cannot inline img src=${_}! Error: `+e)}"anonymous"===I.crossOrigin&&(C?m.crossOrigin=C:I.removeAttribute("crossorigin"))};I.complete&&0!==I.naturalWidth?x():I.addEventListener("load",x)}"audio"!==g&&"video"!==g||((v=m).rr_mediaState=t.paused?"paused":"played",v.rr_mediaCurrentTime=t.currentTime,v.rr_mediaPlaybackRate=t.playbackRate,v.rr_mediaMuted=t.muted,v.rr_mediaLoop=t.loop,v.rr_mediaVolume=t.volume),p||(t.scrollLeft&&(m.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(m.rr_scrollTop=t.scrollTop)),e&&({width:w,height:v}=t.getBoundingClientRect(),m={"class":m["class"],rr_width:w+"px",rr_height:v+"px"}),"iframe"!==g||l(m.src)||(t.contentDocument||(m.rr_src=m.src),delete m.src);let S;try{customElements.get(g)&&(S=!0)}catch(E){}return{type:P.Element,tagName:g,attributes:m,childNodes:[],isSVG:(w=t,Boolean("svg"===w.tagName||w.ownerSVGElement)||void 0),needBlock:e,rootId:h,isCustom:S}}function j(e){return null==e?"":e.toLowerCase()}function Q(t,e){const{doc:n,mirror:i,blockClass:r,blockSelector:o,maskTextClass:a,maskTextSelector:s,skipChild:u=!1,inlineStylesheet:d=!0,maskInputOptions:c={},maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f={},inlineImages:g=!1,recordCanvas:m=!1,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b=5e3,onStylesheetLoad:w,stylesheetLoadTimeout:S=5e3,keepIframeSrcFn:E=()=>!1,newlyAddedElement:I=!1,cssCaptured:_=!1}=e;let C=e["needsMask"],{preserveWhiteSpace:x=!0}=e;C||(e=void 0===C,C=z(t,a,s,e));e=function(e,t){var n,{doc:i,mirror:t,blockClass:r,blockSelector:o,needsMask:a,inlineStylesheet:s,maskInputOptions:u={},maskTextFn:d,maskInputFn:c,dataURLOptions:l={},inlineImages:p,recordCanvas:h,keepIframeSrcFn:f,newlyAddedElement:g=!1,cssCaptured:m=!1}=t,v=(n=i,!(t=t).hasNode(n)||1===(n=t.getId(n))?void 0:n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:P.Document,childNodes:[],compatMode:e.compatMode}:{type:P.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:P.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:v};case e.ELEMENT_NODE:return Ee(e,{doc:i,blockClass:r,blockSelector:o,inlineStylesheet:s,maskInputOptions:u,maskInputFn:c,dataURLOptions:l,inlineImages:p,recordCanvas:h,keepIframeSrcFn:f,newlyAddedElement:g,rootId:v,needsMask:a});case e.TEXT_NODE:return Se(e,{doc:i,needsMask:a,maskTextFn:d,maskInputOptions:u,maskInputFn:c,rootId:v,cssCaptured:m});case e.CDATA_SECTION_NODE:return{type:P.CDATA,textContent:"",rootId:v};case e.COMMENT_NODE:return{type:P.Comment,textContent:D.textContent(e)||"",rootId:v};default:return!1}}(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:C,inlineStylesheet:d,maskInputOptions:c,maskTextFn:l,maskInputFn:p,dataURLOptions:f,inlineImages:g,recordCanvas:m,keepIframeSrcFn:E,newlyAddedElement:I,cssCaptured:_});if(!e)return console.warn(t,"not serialized"),null;let T;T=i.hasNode(t)?i.getId(t):function(e,t){if(t.comment&&e.type===P.Comment)return 1;if(e.type===P.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===X(e.attributes.href)))return 1;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(j(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===j(e.attributes.name)||"icon"===j(e.attributes.rel)||"apple-touch-icon"===j(e.attributes.rel)||"shortcut icon"===j(e.attributes.rel))))return 1;if("meta"===e.tagName){if(t.headMetaDescKeywords&&j(e.attributes.name).match(/^description|keywords$/))return 1;if(t.headMetaSocial&&(j(e.attributes.property).match(/^(og|twitter|fb):/)||j(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===j(e.attributes.name)))return 1;if(t.headMetaRobots&&("robots"===j(e.attributes.name)||"googlebot"===j(e.attributes.name)||"bingbot"===j(e.attributes.name)))return 1;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return 1;if(t.headMetaAuthorship&&("author"===j(e.attributes.name)||"generator"===j(e.attributes.name)||"framework"===j(e.attributes.name)||"publisher"===j(e.attributes.name)||"progid"===j(e.attributes.name)||j(e.attributes.property).match(/^article:/)||j(e.attributes.property).match(/^product:/)))return 1;if(t.headMetaVerification&&("google-site-verification"===j(e.attributes.name)||"yandex-verification"===j(e.attributes.name)||"csrf-token"===j(e.attributes.name)||"p:domain_verify"===j(e.attributes.name)||"verify-v1"===j(e.attributes.name)||"verification"===j(e.attributes.name)||"shopify-checkout-api-token"===j(e.attributes.name)))return 1}}}(e,h)||!x&&e.type===P.Text&&!e.textContent.replace(/^\s+|\s+$/gm,"").length?B:Y++;var k=Object.assign(e,{id:T});if(i.add(t,k),T===B)return null;v&&v(t);let A=!u;if(k.type===P.Element&&(A=A&&!k.needBlock,delete k.needBlock,e=D.shadowRoot(t))&&U(e)&&(k.isShadowHost=!0),(k.type===P.Document||k.type===P.Element)&&A){h.headWhitespace&&k.type===P.Element&&"head"===k.tagName&&(x=!1);var R={doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:C,maskTextClass:a,maskTextSelector:s,skipChild:u,inlineStylesheet:d,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:x,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:S,keepIframeSrcFn:E,cssCaptured:!1};if(k.type!==P.Element||"textarea"!==k.tagName||void 0===k.attributes.value){k.type===P.Element&&void 0!==k.attributes._cssText&&"string"==typeof k.attributes._cssText&&(R.cssCaptured=!0);for(const M of Array.from(D.childNodes(t))){var O=Q(M,R);O&&k.childNodes.push(O)}}let e=null;if($(t)&&(e=D.shadowRoot(t)))for(const L of Array.from(D.childNodes(e))){var N=Q(L,R);N&&(U(e)&&(N.isShadow=!0),k.childNodes.push(N))}}e=D.parentNode(t);return e&&F(e)&&U(e)&&(k.isShadow=!0),k.type===P.Element&&"iframe"===k.tagName&&function(n,i,r){var o=n.contentWindow;if(o){let e=!1,t;try{t=o.document.readyState}catch(a){return}if("complete"!==t){const s=G(()=>{e||(i(),e=!0)},r);void n.addEventListener("load",()=>{clearTimeout(s),e=!0,i()})}else{r="about:blank";if((n.src===r||n.src!==r&&o.location.href!==r)&&"complete"===t)return G(i,0),n.addEventListener("load",i);n.addEventListener("load",i)}}}(t,()=>{var e=t.contentDocument;e&&y&&(e=Q(e,{doc:e,mirror:i,blockClass:r,blockSelector:o,needsMask:C,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:d,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:x,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:S,keepIframeSrcFn:E}))&&y(t,e)},b),k.type===P.Element&&"link"===k.tagName&&"string"==typeof k.attributes.rel&&("stylesheet"===k.attributes.rel||"preload"===k.attributes.rel&&"string"==typeof k.attributes.href&&"css"===X(k.attributes.href))&&function(e,t,n){let i=!1,r;try{r=e.sheet}catch(o){return}if(!r){const a=G(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{clearTimeout(a),i=!0,t()})}}(t,()=>{var e;w&&(e=Q(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:C,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:d,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:x,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:w,stylesheetLoadTimeout:S,keepIframeSrcFn:E}))&&w(t,e)},S),k}Object.defineProperty;"undefined"!=typeof window?function(e,t=window){var n=null==(i=null==(n=null==t?void 0:t.Zone)?void 0:n.__symbol__)?void 0:i.call(n,e);if(n){var i=t[n];if(i)return i}return t[e]}("setTimeout").bind(window):global.setTimeout;const Ie={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},_e={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ce={};function xe(e){if(Ce[e])return Ce[e];var t=function(e){var t,n=null==(t=null==(n=null==globalThis?void 0:globalThis.Zone)?void 0:n.__symbol__)?void 0:t.call(n,e);if(n&&globalThis[n])return globalThis[n]}(e)||globalThis[e];const n=t.prototype;var i=e in Ie?Ie[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 _e?_e[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 Ce[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?Ce[e]=o:n):t.prototype}catch{return n}}const Te={};function i(e,t,n){var i=e+"."+String(n);return Te[i]?Te[i].call(t):(e=xe(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(Te[i]=e).call(t):t[n])}const ke={};function Ae(e,t,n){var i=e+"."+String(n);return ke[i]?ke[i].bind(t):"function"!=typeof(e=xe(e)[n])?t[n]:(ke[i]=e).bind(t)}function Re(){return xe("MutationObserver").constructor}function L(e,t,n){try{if(!(t in e))return()=>{};const r=e[t];var i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}const ee={childNodes:function(e){return i("Node",e,"childNodes")},parentNode:function(e){return i("Node",e,"parentNode")},parentElement:function(e){return i("Node",e,"parentElement")},textContent:function(e){return i("Node",e,"textContent")},contains:function(e,t){return Ae("Node",e,"contains")(t)},getRootNode:function(e){return Ae("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?i("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?i("Element",e,"shadowRoot"):null},querySelector:function(e,t){return i("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return i("Element",e,"querySelectorAll")(t)},mutationObserver:Re,patch:L};function te(e,t,n=document){var i=(i=n).defaultView||i,r=w("addEventListener",i);const o=w("removeEventListener",i),a={capture:!0,passive:!0};return r.call(n,e,t,a),()=>o.call(n,e,t,a)}const r="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";var Oe={map:{},getId(){return console.error(r),-1},getNode(){return console.error(r),null},removeNodeFromMap(){console.error(r)},has(){return console.error(r),!1},reset(){console.error(r)}};function H(r,o,a={}){let s=null,u=0;return function(...e){var t=Date.now(),n=(u||!1!==a.leading||(u=t),o-(t-u));const i=this;n<=0||o<n?(s&&(clearTimeout(s),s=null),u=t,r.apply(i,e)):s||!1===a.trailing||(s=G(()=>{u=!1===a.leading?0:Date.now(),s=null,r.apply(i,e)},n))}}function Ne(e,t,n,i,r=window){const o=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,i?n:{set(e){G(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>Ne(e,t,o||{},!0)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&new Proxy(Oe,{get(e,t,n){return"map"===t&&console.error(r),Reflect.get(e,t,n)}});let Me=Date.now;function Le(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=ee.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=ee.parentElement(n.body))?void 0:t.scrollTop)||(null==(e=null==n?void 0:n.body)?void 0:e.scrollTop)||0}}function Pe(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function De(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Fe(e){return e?e.nodeType===e.ELEMENT_NODE?e:ee.parentElement(e):null}function q(e,t,n,i){if(e){e=Fe(e);if(e){try{if("string"==typeof t){if(e.classList.contains(t))return!0;if(i&&null!==e.closest("."+t))return!0}else if(we(e,t,i))return!0}catch(r){}if(n){if(e.matches(n))return!0;if(i&&null!==e.closest(n))return!0}}}return!1}function Ue(e,t){return-1!==t.getId(e)}function Ge(e,t,n){return"TITLE"===e.tagName&&n.headTitleMutations||t.getId(e)===B}function Be(e,t){var n;return!F(e)&&(n=t.getId(e),!t.has(n)||(!(n=ee.parentNode(e))||n.nodeType!==e.DOCUMENT_NODE)&&(!n||Be(n,t)))}function ze(e){return Boolean(e.changedTouches)}function je(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function He(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function qe(e){return e&&(!1&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(ee.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Me=()=>(new Date).getTime());class We{constructor(){s(this,"id",1),s(this,"styleIDMap",new WeakMap),s(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Ve(e){var t;let n=null;return n="getRootNode"in e&&(null==(t=ee.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&ee.host(ee.getRootNode(e))?ee.host(ee.getRootNode(e)):n}function Je(e){var t=e.ownerDocument;return!!t&&(e=function(e){let t=e;for(var n;n=Ve(t);)t=n;return t}(e),ee.contains(t,e))}function $e(e){var t=e.ownerDocument;return t&&(ee.contains(t,e)||Je(e))}var ne=(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))({}),ie=(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))(ie||{}),l=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(l||{}),p=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(p||{}),h=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))({}),W=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(W||{}),Ke=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))({});function Ze(e){return"__ln"in e}class Xe{constructor(){s(this,"length",0),s(this,"head",null),s(this,"tail",null),s(this,"reordered",!1)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let e=0;e<t;e++)n=(null==n?void 0:n.next)||null;return n}addNode(e){var t,n={value:e,previous:null,next:null};e.__ln=n,e.previousSibling&&Ze(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&&Ze(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||!Ze(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 Ye=(e,t)=>e+"@"+t;class Qe{constructor(){s(this,"frozen",!1),s(this,"locked",!1),s(this,"texts",[]),s(this,"attributes",[]),s(this,"attributeMap",new WeakMap),s(this,"removes",[]),s(this,"mapRemoves",[]),s(this,"movedMap",{}),s(this,"addedSet",new Set),s(this,"movedSet",new Set),s(this,"droppedSet",new Set),s(this,"removesSubTreeCache",new Set),s(this,"mutationCb"),s(this,"blockClass"),s(this,"blockSelector"),s(this,"maskTextClass"),s(this,"maskTextSelector"),s(this,"inlineStylesheet"),s(this,"maskInputOptions"),s(this,"maskTextFn"),s(this,"maskInputFn"),s(this,"keepIframeSrcFn"),s(this,"recordCanvas"),s(this,"inlineImages"),s(this,"slimDOMOptions"),s(this,"dataURLOptions"),s(this,"doc"),s(this,"mirror"),s(this,"iframeManager"),s(this,"stylesheetManager"),s(this,"shadowDomManager"),s(this,"canvasManager"),s(this,"processedNodeManager"),s(this,"unattachedDoc"),s(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),s(this,"emit",()=>{if(!this.frozen&&!this.locked){const u=[],d=new Set,c=new Xe,l=e=>{let t=e,n=B;for(;n===B;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n};for(var n,i,r=t=>{var n=ee.parentNode(t);if(n&&$e(t)){let e=!1;if(t.nodeType===Node.TEXT_NODE){var i=n.tagName;if("TEXTAREA"===i)return;"STYLE"===i&&this.addedSet.has(n)&&(e=!0)}i=F(n)?this.mirror.getId(Ve(t)):this.mirror.getId(n),n=l(t);if(-1===i||-1===n)return c.addNode(t);var r=Q(t,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{je(e,this.mirror)&&this.iframeManager.addIframe(e),He(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),qe(t)&&this.shadowDomManager.addShadowRoot(ee.shadowRoot(t),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},cssCaptured:e});r&&(u.push({parentId:i,nextId:n,node:r}),d.add(r.id))}};this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const p of this.movedSet){var t=ee.parentNode(p);nt(this.removesSubTreeCache,p,this.mirror)&&!this.movedSet.has(t)&&!this.addedSet.has(t)||r(p)}for(const h of this.addedSet)!it(this.droppedSet,h)&&!nt(this.removesSubTreeCache,h,this.mirror)||it(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(ee.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(ee.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=ee.parentNode(a);if(a&&a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){a=ee.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=ee.parentNode(t);return n&&"TEXTAREA"===n.tagName&&this.genTextAreaValueMutation(n),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!d.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{var t,n,i=e["attributes"];return"string"==typeof i.style&&(t=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles),t.length<i.style.length)&&(t+n).split("var(").length===i.style.split("var(").length&&(i.style=e.styleDiff),{id:this.mirror.getId(e.node),attributes:i}}).filter(e=>!d.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:u};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(s))}}),s(this,"bufferBelongsToIframe",e=>this.doc===e.contentDocument),s(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t));var n=Array.from(ee.childNodes(e),e=>ee.textContent(e)||"").join(""),i=z(e,this.maskTextClass,this.maskTextSelector,!0);t.attributes.value=K({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:Z(e),value:n,maskInputFn:this.maskInputFn,needsMask:i})}),s(this,"processMutation",i=>{if(!Ge(i.target,this.mirror,this.slimDOMOptions))switch(i.type){case"characterData":var r=ee.textContent(i.target);q(i.target,this.blockClass,this.blockSelector,!1)||r===i.oldValue||this.texts.push({value:z(i.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,Fe(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=Z(a),o=z(i.target,this.maskTextClass,this.maskTextSelector,!0),t=K({element:a,maskInputOptions:this.maskInputOptions,tagName:a.tagName,type:r,value:t,maskInputFn:this.maskInputFn,needsMask:o})),q(i.target,this.blockClass,this.blockSelector,!1)||t===i.oldValue)return;let n=this.attributeMap.get(i.target);if("IFRAME"===a.tagName&&"src"===e&&!this.keepIframeSrcFn(t)){if(a.contentDocument)return;e="rr_src"}if(n||(n={node:i.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(i.target,n)),"type"===e&&"INPUT"===a.tagName&&"password"===(i.oldValue||"").toLowerCase()&&a.setAttribute("data-rr-is-password","true"),!be(a.tagName,e))if(n.attributes[e]=ye(this.doc,T(a.tagName),T(e),t),"style"===e){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(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 u=a.style.getPropertyValue(l),d=a.style.getPropertyPriority(l);u!==s.style.getPropertyValue(l)||d!==s.style.getPropertyPriority(l)?n.styleDiff[l]=""===d?u:[u,d]:n._unchangedStyles[l]=[u,d]}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":q(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=F(i.target)?this.mirror.getId(ee.host(i.target)):this.mirror.getId(i.target);q(i.target,this.blockClass,this.blockSelector,!1)||Ge(e,this.mirror,this.slimDOMOptions)||!Ue(e,this.mirror)||(this.addedSet.has(e)?(et(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(i.target)&&-1===t||Be(i.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[Ye(t,n)]?et(this.movedSet,e):(this.removes.push({parentId:n,id:t,isShadow:!(!F(i.target)||!U(i.target))||void 0}),tt(e,this.removesSubTreeCache))),this.mapRemoves.push(e))})):this.genTextAreaValueMutation(i.target))}}),s(this,"genAdds",(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(Ge(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let e=null;(e=n&&this.mirror.hasNode(n)?this.mirror.getId(n):e)&&-1!==e&&(this.movedMap[Ye(this.mirror.getId(t),e)]=!0)}else this.addedSet.add(t),this.droppedSet["delete"](t);q(t,this.blockClass,this.blockSelector,!1)||(ee.childNodes(t).forEach(e=>this.genAdds(e)),qe(t)&&ee.childNodes(ee.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 et(t,e){t["delete"](e),ee.childNodes(e).forEach(e=>et(t,e))}function tt(e,t){const n=[e];for(;n.length;){var i=n.pop();t.has(i)||(t.add(i),ee.childNodes(i).forEach(e=>n.push(e)))}}function nt(e,t){if(0!==e.size)return e=e,t=t,(t=ee.parentNode(t))&&e.has(t)}function it(e,t){return 0!==e.size&&function i(e,t){const n=ee.parentNode(t);if(!n)return!1;if(e.has(n))return!0;return i(e,n)}(e,t)}let re;const oe=n=>{return re?(...e)=>{try{return n(...e)}catch(t){if(!re||!0!==re(t))throw t}}:n},ae=[];function V(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 rt(e,t){var n=new Qe,e=(ae.push(n),n.init(e),new(Re())(oe(n.processMutations.bind(n))));return e.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function ot({mouseInteractionCb:a,doc:i,mirror:s,blockClass:u,blockSelector:d,sampling:e}){if(!1===e.mouseInteraction)return()=>{};const t=!0===e.mouseInteraction||void 0===e.mouseInteraction?{}:e.mouseInteraction,r=[];let c=null;return Object.keys(l).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==t[e]).forEach(e=>{let t=T(e);o=e;var o,n=n=>{var i=V(n);if(!q(i,u,d,!0)){let e=null,t=o;if("pointerType"in n){switch(n.pointerType){case"mouse":e=p.Mouse;break;case"touch":e=p.Touch;break;case"pen":e=p.Pen}e===p.Touch?l[o]===l.MouseDown?t="TouchStart":l[o]===l.MouseUp&&(t="TouchEnd"):(e,p.Pen)}else ze(n)&&(e=p.Touch);null!==e?(c=e,(t.startsWith("Touch")&&e===p.Touch||t.startsWith("Mouse")&&e===p.Mouse)&&(e=null)):l[o]===l.Click&&(e=c,c=null);var r,n=ze(n)?n.changedTouches[0]:n;n&&(i=s.getId(i),{clientX:n,clientY:r}=n,oe(a)({type:l[t],id:i,x:n,y:r,...null!==e&&{pointerType:e}}))}};if(window.PointerEvent)switch(l[e]){case l.MouseDown:case l.MouseUp:t=t.replace("mouse","pointer");break;case l.TouchStart:case l.TouchEnd:return}r.push(te(t,n,i))}),oe(()=>{r.forEach(e=>e())})}function at({scrollCb:i,doc:r,mirror:o,blockClass:a,blockSelector:s,sampling:e}){return te("scroll",oe(H(oe(e=>{var t,n,e=V(e);e&&!q(e,a,s,!0)&&(t=o.getId(e),e===r&&r.defaultView?(n=Le(r.defaultView),i({id:t,x:n.left,y:n.top})):i({id:t,x:e.scrollLeft,y:e.scrollTop}))}),e.scroll||100)),r)}const st=["INPUT","TEXTAREA","SELECT"],ut=new WeakMap;function dt(e){var t,n;return e=e,t=[],pt("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||pt("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||pt("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||pt("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?(n=Array.from(e.parentRule.cssRules).indexOf(e),t.unshift(n)):e.parentStyleSheet&&(n=Array.from(e.parentStyleSheet.cssRules).indexOf(e),t.unshift(n)),t}function J(e,t,n){let i,r;return e?(e.ownerNode?i=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:i}):{}}function ct({mirror:e,stylesheetManager:i},t){let r=null;r="#document"===t.nodeName?e.getId(t):e.getId(ee.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}}),oe(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function lt(e,t={}){var o,n=e.doc.defaultView;if(!n)return()=>{};{var i=e,r=t;const{mutationCb:w,mousemoveCb:S,mouseInteractionCb:E,scrollCb:I,viewportResizeCb:_,inputCb:C,mediaInteractionCb:x,styleSheetRuleCb:T,styleDeclarationCb:k,canvasMutationCb:A,fontCb:R,selectionCb:O,customElementCb:N}=i;i.mutationCb=(...e)=>{r.mutation&&r.mutation(...e),w(...e)},i.mousemoveCb=(...e)=>{r.mousemove&&r.mousemove(...e),S(...e)},i.mouseInteractionCb=(...e)=>{r.mouseInteraction&&r.mouseInteraction(...e),E(...e)},i.scrollCb=(...e)=>{r.scroll&&r.scroll(...e),I(...e)},i.viewportResizeCb=(...e)=>{r.viewportResize&&r.viewportResize(...e),_(...e)},i.inputCb=(...e)=>{r.input&&r.input(...e),C(...e)},i.mediaInteractionCb=(...e)=>{r.mediaInteaction&&r.mediaInteaction(...e),x(...e)},i.styleSheetRuleCb=(...e)=>{r.styleSheetRule&&r.styleSheetRule(...e),T(...e)},i.styleDeclarationCb=(...e)=>{r.styleDeclaration&&r.styleDeclaration(...e),k(...e)},i.canvasMutationCb=(...e)=>{r.canvasMutation&&r.canvasMutation(...e),A(...e)},i.fontCb=(...e)=>{r.font&&r.font(...e),R(...e)},i.selectionCb=(...e)=>{r.selection&&r.selection(...e),O(...e)},i.customElementCb=(...e)=>{r.customElement&&r.customElement(...e),N(...e)}}let a;e.recordDOM&&(a=rt(e,e.doc));const s=function({mousemoveCb:n,sampling:e,doc:t,mirror:r}){if(!1===e.mousemove)return()=>{};var i="number"==typeof e.mousemove?e.mousemove:50,e="number"==typeof e.mousemoveCallback?e.mousemoveCallback:500;let o=[],a;const s=H(oe(e=>{const t=Date.now()-a;n(o.map(e=>(e.timeOffset-=t,e)),e),o=[],a=null}),e),u=[te("mousemove",e=oe(H(oe(e=>{var t=V(e),{clientX:n,clientY:i}=ze(e)?e.changedTouches[0]:e;a=a||Me(),o.push({x:n,y:i,id:r.getId(t),timeOffset:Me()-a}),s("undefined"!=typeof DragEvent&&e instanceof DragEvent?ie.Drag:e instanceof MouseEvent?ie.MouseMove:ie.TouchMove)}),i,{trailing:!1})),t),te("touchmove",e,t),te("drag",e,t)];return oe(()=>{u.forEach(e=>e())})}(e),u=ot(e),d=at(e),c=function({viewportResizeCb:n},{win:e}){let i=-1,r=-1;return te("resize",oe(H(oe(()=>{var e=Pe(),t=De();i===e&&r===t||(n({width:Number(t),height:Number(e)}),i=e,r=t)}),200)),e)}(e,{win:n}),l=function({inputCb:i,doc:s,mirror:r,blockClass:e,blockSelector:n,ignoreClass:u,ignoreSelector:d,maskInputOptions:c,maskInputFn:l,sampling:t,userTriggeredOnInput:p,maskTextClass:h,maskTextSelector:f}){function o(t){let i=V(t);var t=t.isTrusted,r=i&&i.tagName;if((i=i&&"OPTION"===r?ee.parentElement(i):i)&&r&&!(st.indexOf(r)<0)&&!q(i,e,n,!0)&&!(i.classList.contains(u)||d&&i.matches(d))){let e=i.value,n=!1;var o=Z(i)||"",a=z(i,h,f,!0),r=("radio"===o||"checkbox"===o?n=i.checked:(c[r.toLowerCase()]||c[o]||a)&&(e=K({element:i,maskInputOptions:c,tagName:r,type:o,value:e,maskInputFn:l,needsMask:a})),g(i,p?{text:e,isChecked:n,userTriggered:t}:{text:e,isChecked:n}),i.name);"radio"===o&&r&&n&&s.querySelectorAll(`input[type="radio"][name="${r}"]`).forEach(e=>{var t;e!==i&&(t=e.value,g(e,p?{text:t,isChecked:!n,userTriggered:!1}:{text:t,isChecked:!n}))})}}function g(e,t){var n=ut.get(e);n&&n.text===t.text&&n.isChecked===t.isChecked||(ut.set(e,t),n=r.getId(e),oe(i)({...t,id:n}))}var a;const m=("last"===t.input?["change"]:["input","change"]).map(e=>te(e,oe(o),s)),v=s.defaultView;return v?(t=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),a=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]],t&&t.set&&m.push(...a.map(e=>Ne(e[0],e[1],{set(){oe(o)({target:this,isTrusted:!1})}},!1,v))),oe(()=>{m.forEach(e=>e())})):()=>{m.forEach(e=>e())}}(e),p=function({mediaInteractionCb:s,blockClass:u,blockSelector:d,mirror:c,sampling:e,doc:t}){var n=oe(a=>H(oe(e=>{var t,n,i,r,o,e=V(e);e&&!q(e,u,d,!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=[te("play",n(W.Play),t),te("pause",n(W.Pause),t),te("seeked",n(W.Seeked),t),te("volumechange",n(W.VolumeChange),t),te("ratechange",n(W.RateChange),t)];return oe(()=>{i.forEach(e=>e())})}(e);let h=()=>{},f=()=>{},g=()=>{},m=()=>{};e.recordDOM&&(h=function({styleSheetRuleCb:s,mirror:u,stylesheetManager:d},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};const e=i.CSSStyleSheet.prototype.insertRule,t=(i.CSSStyleSheet.prototype.insertRule=new Proxy(e,{apply:oe((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=J(t,u,d.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:oe((e,t,n)=>{var[i]=n,{id:r,styleId:o}=J(t,u,d.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:oe((e,t,n)=>{var[i]=n,{id:r,styleId:o}=J(t,u,d.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:oe((e,t,n)=>{var[i]=n,{id:r,styleId:o}=J(t,u,d.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,replaceSync:i}),e.apply(t,n)})}));const o={},a=(ht("CSSGroupingRule")?o.CSSGroupingRule=i.CSSGroupingRule:(ht("CSSMediaRule")&&(o.CSSMediaRule=i.CSSMediaRule),ht("CSSConditionRule")&&(o.CSSConditionRule=i.CSSConditionRule),ht("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:oe((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=J(t.parentStyleSheet,u,d.styleMirror);return(o&&-1!==o||a&&-1!==a)&&s({id:o,styleId:a,adds:[{rule:i,index:[...dt(t),r||0]}]}),e.apply(t,n)})}),t.prototype.deleteRule=new Proxy(a[e].deleteRule,{apply:oe((e,t,n)=>{var[i]=n,{id:r,styleId:o}=J(t.parentStyleSheet,u,d.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,removes:[{index:[...dt(t),i]}]}),e.apply(t,n)})})}),oe(()=>{i.CSSStyleSheet.prototype.insertRule=e,i.CSSStyleSheet.prototype.deleteRule=t,n&&(i.CSSStyleSheet.prototype.replace=n),r&&(i.CSSStyleSheet.prototype.replaceSync=r),Object.entries(o).forEach(([e,t])=>{t.prototype.insertRule=a[e].insertRule,t.prototype.deleteRule=a[e].deleteRule})})}(e,{win:n}),f=ct(e,e.doc),g=function({styleDeclarationCb:u,mirror:d,ignoreCSSAttributes:c,stylesheetManager:l},{win:e}){const p=e.CSSStyleDeclaration.prototype.setProperty,a=(e.CSSStyleDeclaration.prototype.setProperty=new Proxy(p,{apply:oe((e,t,n)=>{var i,r,[o,a,s]=n;return c.has(o)?p.apply(t,[o,a,s]):({id:i,styleId:r}=J(null==(i=t.parentRule)?void 0:i.parentStyleSheet,d,l.styleMirror),(i&&-1!==i||r&&-1!==r)&&u({id:i,styleId:r,set:{property:o,value:a,priority:s},index:dt(t.parentRule)}),e.apply(t,n))})}),e.CSSStyleDeclaration.prototype.removeProperty);return e.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:oe((e,t,n)=>{var i,r,[o]=n;return c.has(o)?a.apply(t,[o]):({id:i,styleId:r}=J(null==(i=t.parentRule)?void 0:i.parentStyleSheet,d,l.styleMirror),(i&&-1!==i||r&&-1!==r)&&u({id:i,styleId:r,remove:{property:o},index:dt(t.parentRule)}),e.apply(t,n))})}),oe(()=>{e.CSSStyleDeclaration.prototype.setProperty=p,e.CSSStyleDeclaration.prototype.removeProperty=a})}(e,{win:n}),e.collectFonts)&&(m=function({fontCb:n,doc:e}){const t=e.defaultView;if(!t)return()=>{};const i=[],r=new WeakMap,o=t.FontFace;return t.FontFace=function(e,t,n){var i=new o(e,t,n);return r.set(i,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),i},e=L(e.fonts,"add",function(e){return function(t){return G(oe(()=>{var e=r.get(t);e&&(n(e),r["delete"](t))}),0),e.apply(this,[t])}}),i.push(()=>{t.FontFace=o}),i.push(e),oe(()=>{i.forEach(e=>e())})}(e));const v=function(e){const{doc:u,mirror:d,blockClass:c,blockSelector:l,selectionCb:p}=e;let h=!0;return(e=oe(()=>{var t=u.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);q(r,c,l,!0)||q(a,c,l,!0)||n.push({start:d.getId(r),startOffset:o,end:d.getId(a),endOffset:s})}p({ranges:n})}}))(),te("selectionchange",e)}(e),y=({doc:t,customElementCb:o}=[e][0],(t=t.defaultView)&&t.customElements?L(t.customElements,"define",function(r){return function(e,t,n){try{o({define:{name:e}})}catch(i){console.warn("Custom element callback failed for "+e)}return r.apply(this,[e,t,n])}}):()=>{}),b=[];for(const M of e.plugins)b.push(M.observer(M.callback,n,M.options));return oe(()=>{ae.forEach(e=>e.reset()),null!=a&&a.disconnect(),s(),u(),d(),c(),l(),p(),h(),f(),g(),m(),v(),y(),b.forEach(e=>e())})}function pt(e){return"undefined"!=typeof window[e]}function ht(e){return Boolean("undefined"!=typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class ft{constructor(e){s(this,"iframeIdToRemoteIdMap",new WeakMap),s(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,n,i){n=n||this.getIdToRemoteIdMap(e),i=i||this.getRemoteIdToIdMap(e);let r=n.get(t);return r||(r=this.generateIdFn(),n.set(t,r),i.set(r,t)),r}getIds(t,e){const n=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return e.map(e=>this.getId(t,e,n,i))}getRemoteId(e,t,n){n=n||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1}getRemoteIds(t,e){const n=this.getRemoteIdToIdMap(t);return e.map(e=>this.getRemoteId(t,e,n))}reset(e){e?(this.iframeIdToRemoteIdMap["delete"](e),this.iframeRemoteIdToIdMap["delete"](e)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class gt{constructor(e){s(this,"iframes",new WeakMap),s(this,"crossOriginIframeMap",new WeakMap),s(this,"crossOriginIframeMirror",new ft(M)),s(this,"crossOriginIframeStyleMirror"),s(this,"crossOriginIframeRootIdMap",new WeakMap),s(this,"mirror"),s(this,"mutationCb"),s(this,"wrappedEmit"),s(this,"takeFullSnapshot"),s(this,"loadListener"),s(this,"pageHideListener"),s(this,"stylesheetManager"),s(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.takeFullSnapshot=e.takeFullSnapshot,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ft(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}addPageHideListener(e){this.pageHideListener=e}attachIframe(t,e){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:e}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null!=(e=t.contentWindow)&&e.addEventListener("message",this.handleMessage.bind(this)),null!=(e=t.contentWindow))&&e.addEventListener("pagehide",()=>{var e;null!=(e=this.pageHideListener)&&e.call(this,t),this.mirror.removeNodeFromMap(t.contentDocument),this.crossOriginIframeMap["delete"](t.contentWindow)}),null!=(e=this.loadListener)&&e.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&0<t.contentDocument.adoptedStyleSheets.length&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.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 ne.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:ne.IncrementalSnapshot,data:{source:ie.Mutation,adds:[{parentId:this.mirror.getId(n),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case ne.Meta:case ne.Load:case ne.DomContentLoaded:return!1;case ne.Plugin:return e;case ne.Custom:return this.replaceIds(e.data.payload,n,["id","parentId","previousId","nextId"]),e;case ne.IncrementalSnapshot:switch(e.data.source){case ie.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 ie.Drag:case ie.TouchMove:case ie.MouseMove:return e.data.positions.forEach(e=>{this.replaceIds(e,n,["id"])}),e;case ie.ViewportResize:return!1;case ie.MediaInteraction:case ie.MouseInteraction:case ie.Scroll:case ie.CanvasMutation:case ie.Input:return this.replaceIds(e.data,n,["id"]),e;case ie.StyleSheetRule:case ie.StyleDeclaration:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleId"]),e;case ie.Font:return e;case ie.Selection:return e.data.ranges.forEach(e=>{this.replaceIds(e,n,["start","end"])}),e;case ie.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===Ke.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class mt{constructor(e){s(this,"shadowDoms",new WeakSet),s(this,"mutationCb"),s(this,"scrollCb"),s(this,"bypassOptions"),s(this,"mirror"),s(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(U(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);const n=rt({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(at({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),G(()=>{e.adoptedStyleSheets&&0<e.adoptedStyleSheets.length&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(ee.host(e))),this.restoreHandlers.push(ct({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,i){const r=this;this.restoreHandlers.push(L(e.prototype,"attachShadow",function(n){return function(e){var e=n.call(this,e),t=ee.shadowRoot(this);return t&&$e(this)&&r.addShadowRoot(t,i),e}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vt="undefined"==typeof Uint8Array?[]:new Uint8Array(256),yt=0;yt<o.length;yt++)vt[o.charCodeAt(yt)]=yt;var bt,wt=function(e){for(var t=new Uint8Array(e),n=t.length,i="",r=0;r<n;r+=3)i=(i=(i=(i+=o[t[r]>>2])+o[(3&t[r])<<4|t[r+1]>>4])+o[(15&t[r+1])<<2|t[r+2]>>6])+o[63&t[r+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i};const St=new Map;const Et=(t,n,i)=>{if(t&&(_t(t,n)||"object"==typeof t)){n=function(e,t){let n=St.get(e);return n||(n=new Map,St.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(i,t.constructor.name);let e=n.indexOf(t);return-1===e&&(e=n.length,n.push(t)),e}};const It=(e,t,n)=>e.map(e=>function r(e,t,n){var i;return e instanceof Array?e.map(e=>r(e,t,n)):null===e?e:e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray?{rr_type:e.constructor.name,args:[Object.values(e)]}:e instanceof ArrayBuffer?{rr_type:e.constructor.name,base64:wt(e)}:e instanceof DataView?{rr_type:e.constructor.name,args:[r(e.buffer,t,n),e.byteOffset,e.byteLength]}:e instanceof HTMLImageElement?(i=e.src,{rr_type:e.constructor.name,src:i}):e instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:e.toDataURL()}:e instanceof ImageData?{rr_type:e.constructor.name,args:[r(e.data,t,n),e.width,e.height]}:_t(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:Et(e,t,n)}:e}(e,t,n)),_t=(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 Ct(n,i,r,o){const e=[];var t;for(const s of Object.getOwnPropertyNames(i.CanvasRenderingContext2D.prototype))try{"function"==typeof i.CanvasRenderingContext2D.prototype[s]&&(t=L(i.CanvasRenderingContext2D.prototype,s,function(e){return function(...t){return q(this.canvas,r,o,!0)||G(()=>{var e=It(t,i,this);n(this.canvas,{type:h["2D"],property:s,args:e})},0),e.apply(this,t)}}),e.push(t))}catch{var a=Ne(i.CanvasRenderingContext2D.prototype,s,{set(e){n(this.canvas,{type:h["2D"],property:s,args:[e],setter:!0})}});e.push(a)}return()=>{e.forEach(e=>e())}}function xt(e,r,o,a){const t=[];try{var n=L(e.HTMLCanvasElement.prototype,"getContext",function(i){return function(e,...t){var n;return q(this,r,o,!0)||(n="experimental-webgl"===(n=e)?"webgl":n,"__context"in this||(this.__context=n),a&&["webgl","webgl2"].includes(n)&&(t[0]&&"object"==typeof t[0]?(n=t[0]).preserveDrawingBuffer||(n.preserveDrawingBuffer=!0):t.splice(0,1,{preserveDrawingBuffer:!0}))),i.apply(this,[e,...t])}});t.push(n)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{t.forEach(e=>e())}}function Tt(e,i,r,o,a,s){var t,n=[];for(const d of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(d))try{"function"==typeof e[d]&&(t=L(e,d,function(n){return function(...e){var t=n.apply(this,e);return Et(t,s,this),"tagName"in this.canvas&&!q(this.canvas,o,a,!0)&&(e=It(e,s,this),e={type:i,property:d,args:e},r(this.canvas,e)),t}}),n.push(t))}catch{var u=Ne(e,d,{set(e){r(this.canvas,{type:i,property:d,args:[e],setter:!0})}});n.push(u)}return n}function kt(e,t,n,i){const r=[];return r.push(...Tt(t.WebGLRenderingContext.prototype,h.WebGL,e,n,i,t)),"undefined"!=typeof t.WebGL2RenderingContext&&r.push(...Tt(t.WebGL2RenderingContext.prototype,h.WebGL2,e,n,i,t)),()=>{r.forEach(e=>e())}}function At(e){return function(){return{onerror:null,onmessage:null}}}class Rt{constructor(e){s(this,"pendingCanvasMutations",new Map),s(this,"rafStamps",{latestId:0,invokeId:null}),s(this,"mirror"),s(this,"mutationCb"),s(this,"resetObservers"),s(this,"frozen",!1),s(this,"locked",!1),s(this,"processMutation",(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)});var{sampling:t="all",win:n,blockClass:i,blockSelector:r,recordCanvas:o,dataURLOptions:a}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&"all"===t&&this.initCanvasMutationObserver(n,i,r),o&&"number"==typeof t&&this.initCanvasFPSObserver(t,n,i,r,{dataURLOptions:a})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,n,i,r,o){const t=xt(n,i,r,!0),a=new Map,s=new At,u=(s.onmessage=e=>{var t,n,i,r=e.data["id"];a.set(r,!1),"base64"in e.data&&({base64:e,type:t,width:n,height:i}=e.data,this.mutationCb({id:r,type:h["2D"],commands:[{property:"clearRect",args:[0,0,n,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:e}],type:t}]},0,0]}]}))},1e3/e);let d=0,c;const l=()=>{const t=[];return n.document.querySelectorAll("canvas").forEach(e=>{q(e,i,r,!0)||t.push(e)}),t},p=e=>{c=(d&&e-d<u||(d=e,l().forEach(async e=>{var t,n,i=this.mirror.getId(e);a.get(i)||0!==e.width&&0!==e.height&&(a.set(i,!0),["webgl","webgl2"].includes(e.__context)&&!1===(null==(n=null==(t=e.getContext(e.__context))?void 0:t.getContextAttributes())?void 0:n.preserveDrawingBuffer)&&t.clear(t.COLOR_BUFFER_BIT),n=await createImageBitmap(e),s.postMessage({id:i,bitmap:n,width:e.width,height:e.height,dataURLOptions:o.dataURLOptions},[n]))})),requestAnimationFrame(p))};c=requestAnimationFrame(p),this.resetObservers=()=>{t(),cancelAnimationFrame(c)}}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=xt(e,t,n,!1),r=Ct(this.processMutation.bind(this),e,t,n),o=kt(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 Ot{constructor(e){s(this,"trackedLinkElements",new WeakSet),s(this,"mutationCb"),s(this,"adoptedStyleSheetCb"),s(this,"styleMirror",new We),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:S(o.rules[e],o.href),index:e});i.push({styleId:e,rules:Array.from(o.rules||CSSRule,(e,t)=>({rule:S(e,o.href),index:t}))})}n.styleIds.push(e)}0<i.length&&(n.styles=i),this.adoptedStyleSheetCb(n)}}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Nt{constructor(){s(this,"nodeMap",new WeakMap),s(this,"active",!1)}inOtherBuffer(e,t){e=this.nodeMap.get(e);return e&&Array.from(e).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let se,ue=()=>{},Mt,Lt=!1;try{2!==Array.from([1],e=>2*e)[0]&&(bt=document.createElement("iframe"),document.body.appendChild(bt),Array.from=(null==(e=bt.contentWindow)?void 0:e.Array.from)||Array.from,document.body.removeChild(bt))}catch(Dt){console.debug("Unable to override Array.from",Dt)}const de=new ce;function Pt(e={}){const{emit:i,checkoutEveryNms:r,checkoutEveryNth:o,blockClass:n="rr-block",blockSelector:a=null,ignoreClass:D="rr-ignore",ignoreSelector:F=null,maskTextClass:s="rr-mask",maskTextSelector:u=null,inlineStylesheet:d=!0,maskAllInputs:U,maskInputOptions:t,slimDOMOptions:c,maskInputFn:l,maskTextFn:p,hooks:G,packFn:h,sampling:f={},dataURLOptions:g={},mousemoveWait:B,recordDOM:z=!0,recordCanvas:m=!1,recordCrossOriginIframes:j=!1,recordAfter:H="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:q=!1,collectFonts:W=!1,inlineImages:v=!1,plugins:y,keepIframeSrcFn:b=()=>!1,ignoreCSSAttributes:V=new Set([]),errorHandler:J}=e;e=J,re=e;const w=!j||window.parent===window;let S=!1;if(!w)try{window.parent.document&&(S=!1)}catch(Y){S=!0}if(w&&!i)throw new Error("emit function is required");if(!w&&!S)return()=>{};void 0!==B&&void 0===f.mousemove&&(f.mousemove=B),de.reset();const E=!0===U?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==t?t:{password:!0},I=!0===c||"all"===c?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===c,headMetaDescKeywords:"all"===c,headTitleMutations:"all"===c}:c||{};"NodeList"in(e=window)&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach);let $,_=0;const K=e=>{for(const t of y||[])t.eventProcessor&&(e=t.eventProcessor(e));return e=h&&!S?h(e):e},C=(se=(e,t)=>{var n;e.timestamp=Me(),null==(n=ae[0])||!n.isFrozen()||e.type===ne.FullSnapshot||e.type===ne.IncrementalSnapshot&&e.data.source===ie.Mutation||ae.forEach(e=>e.unfreeze()),w?null!=i&&i(K(e),t):S&&(n={type:"rrweb",event:K(e),origin:window.location.origin,isCheckout:t},window.parent.postMessage(n,"*")),e.type===ne.FullSnapshot?($=e,_=0):e.type!==ne.IncrementalSnapshot||e.data.source===ie.Mutation&&e.data.isAttachIframe||(_++,t=o&&_>=o,n=r&&e.timestamp-$.timestamp>r,(t||n)&&ue(!0))},e=>{se({type:ne.IncrementalSnapshot,data:{source:ie.Mutation,...e}})}),Z=e=>se({type:ne.IncrementalSnapshot,data:{source:ie.Scroll,...e}}),X=e=>se({type:ne.IncrementalSnapshot,data:{source:ie.CanvasMutation,...e}});const x=new Ot({mutationCb:C,adoptedStyleSheetCb:e=>se({type:ne.IncrementalSnapshot,data:{source:ie.AdoptedStyleSheet,...e}})}),T=new gt({mirror:de,mutationCb:C,stylesheetManager:x,recordCrossOriginIframes:j,wrappedEmit:se,takeFullSnapshot:ue});for(const O of y||[])O.getMirror&&O.getMirror({nodeMirror:de,crossOriginIframeMirror:T.crossOriginIframeMirror,crossOriginIframeStyleMirror:T.crossOriginIframeStyleMirror});const k=new Nt,A=(Mt=new Rt({recordCanvas:m,mutationCb:X,win:window,blockClass:n,blockSelector:a,mirror:de,sampling:f.canvas,dataURLOptions:g}),new mt({mutationCb:C,scrollCb:Z,bypassOptions:{blockClass:n,blockSelector:a,maskTextClass:s,maskTextSelector:u,inlineStylesheet:d,maskInputOptions:E,dataURLOptions:g,maskTextFn:p,maskInputFn:l,recordCanvas:m,inlineImages:v,sampling:f,slimDOMOptions:I,iframeManager:T,stylesheetManager:x,canvasManager:Mt,keepIframeSrcFn:b,processedNodeManager:k},mirror:de}));ue=(e=!1)=>{if(z){se({type:ne.Meta,data:{href:window.location.href,width:De(),height:Pe()}},e),x.reset(),A.init(),ae.forEach(e=>e.lock());var t=function(e,t){var{mirror:t=new ce,blockClass:n="rr-block",blockSelector:i=null,maskTextClass:r="rr-mask",maskTextSelector:o=null,inlineStylesheet:a=!0,inlineImages:s=!1,recordCanvas:u=!1,maskAllInputs:d=!1,maskTextFn:c,maskInputFn:l,slimDOM:p=!1,dataURLOptions:h,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:m,iframeLoadTimeout:v,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:w=()=>!1}=t||{};return Q(e,{doc:e,mirror:t,blockClass:n,blockSelector:i,maskTextClass:r,maskTextSelector:o,skipChild:!1,inlineStylesheet:a,maskInputOptions:!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}:!1===d?{password:!0}:d,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:u,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:m,iframeLoadTimeout:v,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:w,newlyAddedElement:!1})}(document,{mirror:de,blockClass:n,blockSelector:a,maskTextClass:s,maskTextSelector:u,inlineStylesheet:d,maskAllInputs:E,maskTextFn:p,maskInputFn:l,slimDOM:I,dataURLOptions:g,recordCanvas:m,inlineImages:v,onSerialize:e=>{je(e,de)&&T.addIframe(e),He(e,de)&&x.trackLinkElement(e),qe(e)&&A.addShadowRoot(ee.shadowRoot(e),document)},onIframeLoad:(e,t)=>{T.attachIframe(e,t),A.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{x.attachLinkElement(e,t)},keepIframeSrcFn:b});if(!t)return console.warn("Failed to snapshot the document");se({type:ne.FullSnapshot,data:{node:t,initialOffset:Le(window)}},e),ae.forEach(e=>e.unlock()),document.adoptedStyleSheets&&0<document.adoptedStyleSheets.length&&x.adoptStyleSheets(document.adoptedStyleSheets,de.getId(document))}},T.setTakeFullSnapshot(ue);try{const N=[],M=new Map,L=e=>{return oe(lt)({mutationCb:C,mousemoveCb:(e,t)=>se({type:ne.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>se({type:ne.IncrementalSnapshot,data:{source:ie.MouseInteraction,...e}}),scrollCb:Z,viewportResizeCb:e=>se({type:ne.IncrementalSnapshot,data:{source:ie.ViewportResize,...e}}),inputCb:e=>se({type:ne.IncrementalSnapshot,data:{source:ie.Input,...e}}),mediaInteractionCb:e=>se({type:ne.IncrementalSnapshot,data:{source:ie.MediaInteraction,...e}}),styleSheetRuleCb:e=>se({type:ne.IncrementalSnapshot,data:{source:ie.StyleSheetRule,...e}}),styleDeclarationCb:e=>se({type:ne.IncrementalSnapshot,data:{source:ie.StyleDeclaration,...e}}),canvasMutationCb:X,fontCb:e=>se({type:ne.IncrementalSnapshot,data:{source:ie.Font,...e}}),selectionCb:e=>{se({type:ne.IncrementalSnapshot,data:{source:ie.Selection,...e}})},customElementCb:e=>{se({type:ne.IncrementalSnapshot,data:{source:ie.CustomElement,...e}})},blockClass:n,ignoreClass:D,ignoreSelector:F,maskTextClass:s,maskTextSelector:u,maskInputOptions:E,inlineStylesheet:d,sampling:f,recordDOM:z,recordCanvas:m,inlineImages:v,userTriggeredOnInput:q,collectFonts:W,doc:e,maskInputFn:l,maskTextFn:p,keepIframeSrcFn:b,blockSelector:a,slimDOMOptions:I,dataURLOptions:g,mirror:de,iframeManager:T,stylesheetManager:x,shadowDomManager:A,processedNodeManager:k,canvasManager:Mt,ignoreCSSAttributes:V,plugins:(null==(e=null==y?void 0:y.filter(e=>e.observer))?void 0:e.map(t=>({observer:t.observer,options:t.options,callback:e=>se({type:ne.Plugin,data:{plugin:t.name,payload:e}})})))||[]},G)},P=(T.addLoadListener(e=>{try{M.set(e,L(e.contentDocument))}catch(t){console.warn(t)}}),T.addPageHideListener(e=>{var t=M.get(e),n=(t&&(t(),M["delete"](e)),e);for(let e=ae.length-1;0<=e;e--){var i=ae[e];i.bufferBelongsToIframe(n)&&(i.reset(),ae.splice(e,1))}}),()=>{ue(),N.push(L(document)),Lt=!0});return"interactive"===document.readyState||"complete"===document.readyState?P():(N.push(te("DOMContentLoaded",()=>{se({type:ne.DomContentLoaded,data:{}}),"DOMContentLoaded"===H&&P()})),N.push(te("load",()=>{se({type:ne.Load,data:{}}),"load"===H&&P()},window))),()=>{N.forEach(e=>e()),M.forEach(e=>e()),k.destroy(),Lt=!1,re=void 0}}catch(R){console.warn(R)}}return Pt.addCustomEvent=(e,t)=>{if(!Lt)throw new Error("please add custom event after start recording");se({type:ne.Custom,data:{tag:e,payload:t}})},Pt.freezePage=()=>{ae.forEach(e=>e.freeze())},Pt.takeFullSnapshot=e=>{if(!Lt)throw new Error("please take full snapshot after start recording");ue(e)},Pt.mirror=de,0,Pt}class SessionRecorderBuffer{constructor(e,t=Infinity){this.data=[],this.sequenceNumber=0,this.interval=e,this.maxCount=t,this.doubledMaxCount=2*t}isEmpty(){return 0===this.data.length}count(){return this.data.length}clear(){this.data.length=0}clearSequence(){this.sequenceNumber=0}push(e){this.data.push(e),this.checkRateLimit()}pack(e,n){var t=this.data.splice(0,this.maxCount);return e.recordingPayload=t,e.sequence=this.sequenceNumber,e.recordingPayloadCount=t.length,t.length&&(e.browserTime=t[0].timestamp),e.recordingPayloadMetadata=n.map(t,e=>{var t=n.pick(e,"type","timestamp");return e.data&&(t.data=n.pick(e.data,"source","type","x","y","id","height","width","href")),t}),this.sequenceNumber+=t.length,e}checkRateLimit(){var e=this.data.length;e>=this.doubledMaxCount&&e%this.maxCount==0&&this.data[e-1].timestamp-this.data[e-this.doubledMaxCount].timestamp<=this.interval&&this.onRateLimit&&this.onRateLimit()}}const MAX_BACKOFF=6,MAX_FAILURES=100;class SendQueue{constructor(e,t=MAX_FAILURES){this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.sendFn=e,this.maxFailures=t}isEmpty(){return this.queue.length<=0}stop(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.stopped=!0,clearTimeout(this.timer),delete this.timer}start(){this.stopped=!1}push(...e){this.queue.push(...e),this.next()}next(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)}incrementFailure(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),t}pass(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e),this.failures.clear();e=this.queue.indexOf(e);0<=e&&this.queue.splice(e,1),!this.stopped&&t&&this.next()}fail(e,t=!0){this.unloads["delete"](e),this.pending["delete"](e);var n=this.incrementFailure(e);!this.stopped&&t&&(n>=this.maxFailures&&(this.onTimeout&&this.onTimeout(),this.pass(e,!1)),this.retryLater(1e3*Math.pow(2,Math.min(n-1,MAX_BACKOFF))))}retryLater(e){this.timer=setTimeout$1(()=>{delete this.timer,this.next()},e)}failed(){return 0<this.failures.get(this.queue[0])&&null!=this.timer}send(e,t,n){return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(()=>this.pass(e,n),()=>this.fail(e,n))}drain(e,t=!0){if(this.queue.push(...e),this.failed())return Promise$2.reject();var n=[];for(const i of this.queue)this.pending.has(i)?this.retryPending&&t&&!this.unloads.has(i)&&(this.incrementFailure(i),n.push(this.send(i,t,!1))):n.push(this.send(i,t,!1));return Promise$2.all(n)}}function __awaiter(e,t,s,u){return new(s=s||Promise$2)(function(n,i){function r(e){try{a(u.next(e))}catch(t){i(t)}}function o(e){try{a(u["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((u=u.apply(e,t||[])).next())})}const RECORDING_CONFIG_WORKERURL$1="recording.workerUrl",MAX_SIZE=1e6,RESOURCE_CACHING$1="resourceCaching";class Transport{constructor(e,t,n){this.WorkerClass=e,this.pendo=t,this.api=n,this.maxSize=MAX_SIZE,this.lockID="worker-lock-"+this.pendo.randomString(16),this.isResourceCachingEnabled=this.api.ConfigReader.get(RESOURCE_CACHING$1)}start(e){if(!e.disableWorker&&!this.worker)try{var t;e.workerOverride?this.worker=e.workerOverride:(t=this.api.ConfigReader.get(RECORDING_CONFIG_WORKERURL$1),this.usesSelfHostedWorker=null!=t,this.worker=t?new Worker(t):new this.WorkerClass),this.worker.postMessage({type:"init",lockID:this.lockID}),this.worker.onmessage=this.pendo._.bind(this._onMessage,this),this.worker.onerror=this.pendo._.bind(this._onError,this)}catch(n){this.worker=null}}stop(){this.worker&&(this.worker.terminate(),delete this.worker)}send(e,t,n=0){let i=e["url"];var r=e["payload"];if(0<n&&(i=i+"&rt="+n),this.worker&&!t&&r){const o={};return o.promise=new Promise$2((e,t)=>{o.resolve=e,o.reject=t}),this.workerResponse=o,this.worker.postMessage({url:i,payload:r,shouldCacheResources:this.isResourceCachingEnabled}),o.promise}if(!e.body){n=JSON.stringify(r);if(n.length>this.maxSize)throw(r=new Error("maximum recording payload size exceeded")).reason="HEAVY_EVENT",r;e.body=this.pendo.compress(n,"binary"),delete e.payload}return i=i+"&ct="+(new Date).getTime(),this.post(i,{keepalive:t,body:e.body})}post(e,t){return t.method="POST",t.keepalive&&this.api.transmit.fetchKeepalive.supported()?this.api.transmit.fetchKeepalive(e,t):t.keepalive&&this.api.transmit.sendBeacon.supported()?this.api.transmit.sendBeacon(e,new Blob([t.body]))?Promise$2.resolve():Promise$2.reject(new Error("sendBeacon failed to send recording data")):this.pendo.ajax.post(e,t.body)}_onMessage(e){return __awaiter(this,void 0,void 0,function*(){e.data&&e.data.ready&&(yield navigator.locks.request(this.lockID,()=>{}),this.onWorkerMessage({type:"workerDied"})),e.data&&e.data.type?this.onWorkerMessage(e.data):(e.data&&e.data.error&&((e.data.status&&e.data.status<500||null==e.data.sequence)&&this.api.log.critical("Failed to send recording data from web worker",{error:e.data.error}),this.workerResponse)&&(this.workerResponse.reject(),this.workerResponse=null),this.workerResponse&&(this.workerResponse.resolve(),this.workerResponse=null))})}_onError(){this.onError&&this.onError()}}function isElementShadowRoot(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function getParent(e,t){return isElementShadowRoot(e,t)?e.host:e.parentNode}const ELEMENT_NODE=1,INPUT_MASK="*".repeat(10);function isElementNode(e){return!!e&&e.nodeType===ELEMENT_NODE}function distanceToMatch(e,t,n=Infinity,i=0){if(n<i)return-1;if(!e)return-1;if(isElementNode(e)){if(e.matches(t))return i;if(e.parentNode)return distanceToMatch(e.parentNode,t,n,i+1)}return distanceToMatch(getParent(e),t,n,i+1)}function shouldMask(n,i){var{maskAllText:i,maskTextSelector:r,unmaskTextSelector:o}=i;try{var a=isElementNode(n)?n:n.parentElement;if(null===a)return!1;let e=-1,t=-1;if(i){if((t=distanceToMatch(a,o))<0)return!0;e=distanceToMatch(a,r,0<=t?t:Infinity)}else{if((e=distanceToMatch(a,r))<0)return!1;t=distanceToMatch(a,o,0<=e?e:Infinity)}return 0<=e?!(0<=t)||e<=t:!(0<=t||!i)}catch(e){}return!!i}function shouldMaskInput(e,t){if(t&&isElementNode(e)){var n=(e.tagName||"").toLowerCase(),e=(e.type||"").toLowerCase();if(t[n]||t[e])return!0}return!1}function maskInput(e,t,n){return shouldMaskInput(n,e.maskInputOptions)||shouldMask(n,e)?t?INPUT_MASK:"":t}function maskText(e,t,n){return shouldMask(n,e)?t?t.replace(/[\S]/g,"*"):"":t}var underscore={exports:{}},underscoreExports=(!function(){var e;e=function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof commonjsGlobal&&commonjsGlobal.global===commonjsGlobal&&commonjsGlobal||Function("return this")()||{},i=Array.prototype,D=Object.prototype,F="undefined"!=typeof Symbol?Symbol.prototype:null,U=i.push,u=i.slice,l=D.toString,G=D.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),B=Array.isArray,z=Object.keys,j=Object.create,H=t&&ArrayBuffer.isView,q=isNaN,W=isFinite,V=!{toString:null}.propertyIsEnumerable("toString"),J=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],$=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 Z(e){return!0===e||!1===e||"[object Boolean]"===l.call(e)}function r(e){var t="[object "+e+"]";return function(e){return l.call(e)===t}}var X=r("String"),Y=r("Number"),Q=r("Date"),ee=r("RegExp"),te=r("Error"),ne=r("Symbol"),ie=r("ArrayBuffer"),a=r("Function"),e=e.document&&e.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof e?function(e){return"function"==typeof e||!1}:a,e=r("Object"),re=n&&e(new DataView(new ArrayBuffer(8))),a="undefined"!=typeof Map&&e(new Map),n=r("DataView");var h=re?function(e){return null!=e&&p(e.getInt8)&&ie(e.buffer)}:n,f=B||r("Array");function g(e,t){return null!=e&&G.call(e,t)}var oe=r("Arguments"),ae=(!function(){oe(arguments)||(oe=function(e){return g(e,"callee")})}(),oe);function se(e){return Y(e)&&q(e)}function ue(e){return function(){return e}}function de(t){return function(e){e=t(e);return"number"==typeof e&&0<=e&&e<=$}}function ce(t){return function(e){return null==e?void 0:e[t]}}var m=ce("byteLength"),le=de(m),pe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var he=t?function(e){return H?H(e)&&!h(e):le(e)&&pe.test(l.call(e))}:ue(!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=J.length,i=e.constructor,r=p(i)&&i.prototype||D,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=J[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function y(e){if(!o(e))return[];if(z)return z(e);var t,n=[];for(t in e)g(e,t)&&n.push(t);return 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 F.valueOf.call(e)===F.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 u,d=y(e);if(s=d.length,y(t).length!==s)return!1;for(;s--;)if(u=d[s],!g(t,u)||!ye(e[u],t[u],n,i))return!1}n.pop();i.pop();return!0}(e,t,n,i))}function d(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=d(e);if(v(t))return!1;for(var n=0;n<r;n++)if(!p(e[i[n]]))return!1;return i!==Se||!p(e[we])}}var we="forEach",e=["clear","delete"],n=["get","has","set"],B=e.concat(we,n),Se=e.concat(n),t=["add"].concat(e,we,"has"),n=a?be(B):r("Map"),e=a?be(Se):r("WeakMap"),B=a?be(t):r("Set"),a=r("WeakSet");function w(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function Ee(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Ie(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function _e(u,d){return function(e){var t=arguments.length;if(d&&(e=Object(e)),!(t<2||null==e))for(var n=1;n<t;n++)for(var i=arguments[n],r=u(i),o=r.length,a=0;a<o;a++){var s=r[a];d&&void 0!==e[s]||(e[s]=i[s])}return e}}var Ce=_e(d),s=_e(y),xe=_e(d,!0);function Te(e){var t;return o(e)?j?j(e):((t=function(){}).prototype=e,e=new t,t.prototype=null,e):{}}function ke(e){return f(e)?e:[e]}function S(e){return b.toPath(e)}function Ae(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function Re(e,t,n){e=Ae(e,S(t));return K(e)?n:e}function Oe(e){return e}function E(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=S(t),function(e){return Ae(e,t)}}function I(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)?I(e,t,n):(o(e)&&!f(e)?E:Ne)(e)}function Le(e,t){return Me(e,t,Infinity)}function _(e,t,n){return b.iteratee!==Le?b.iteratee(e,t):Me(e,t,n)}function Pe(){}function De(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}b.toPath=ke,b.iteratee=Le;var C=Date.now||function(){return(new Date).getTime()};function Fe(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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Ue=Fe(t),t=Fe(Ee(t)),Ge=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Be=/(.)^/,ze={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},je=/\\|'|\r|\n|\u2028|\u2029/g;function He(e){return"\\"+ze[e]}var qe=/^\s*(\w|\$)+\s*$/;var We=0;function Ve(e,t,n,i,r){return i instanceof t?(i=Te(e.prototype),o(t=e.apply(i,r))?t:i):e.apply(n,r)}var x=c(function(r,o){var a=x.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}),Je=(x.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")})),T=de(v);function k(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=Infinity;for(var r=i.length,o=0,a=v(e);o<a;o++){var s=e[o];if(T(s)&&(f(s)||ae(s)))if(1<t)k(s,t-1,n,i),r=i.length;else for(var u=0,d=s.length;u<d;)i[r++]=s[u++];else n||(i[r++]=s)}return i}var $e=c(function(e,t){var n=(t=k(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Je(e[i],e)}return e});var Ke=c(function(e,t,n){return setTimeout$1(function(){return e.apply(null,n)},t)}),Ze=x(Ke,b,1);function Xe(e){return function(){return!e.apply(this,arguments)}}function Ye(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=x(Ye,2);function et(e,t,n){t=_(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=_(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=_(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(u.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 ut(e,t,n){t=(T(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function A(e,t,n){if(t=I(t,n),T(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else for(var i=y(e),r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e);return e}function R(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=Array(r),a=0;a<r;a++){var s=i?i[a]:a;o[a]=t(e[s],s,e)}return o}function dt(p){return function(e,t,n,i){var r=3<=arguments.length,o=e,a=I(t,i,4),s=n,u=!T(o)&&y(o),d=(u||o).length,c=0<p?0:d-1;for(r||(s=o[u?u[c]:c],c+=p);0<=c&&c<d;c+=p){var l=u?u[c]:c;s=a(s,o[l],l,o)}return s}}var ct=dt(1),lt=dt(-1);function O(e,i,t){var r=[];return i=_(i,t),A(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(!t(e[a],a,e))return!1}return!0}function ht(e,t,n){t=_(t,n);for(var i=!T(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(t(e[a],a,e))return!0}return!1}function N(e,t,n,i){return T(e)||(e=w(e)),0<=at(e,t,n="number"==typeof n&&!i?n:0)}var ft=c(function(e,n,i){var r,o;return p(n)?o=n:(n=S(n),r=n.slice(0,-1),n=n[n.length-1]),R(e,function(e){var t=o;if(!t){if(null==(e=r&&r.length?Ae(e,r):e))return;t=e[n]}return null==t?t:t.apply(e,i)})});function gt(e,t){return R(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,u=(e=T(e)?e:w(e)).length;s<u;s++)null!=(n=e[s])&&o<n&&(o=n);else i=_(i,t),A(e,function(e,t,n){r=i(e,t,n),(a<r||r===-Infinity&&o===-Infinity)&&(o=e,a=r)});return o}var vt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function yt(e){return e?f(e)?u.call(e):X(e)?e.match(vt):T(e)?R(e,Oe):w(e):[]}function bt(e,t,n){if(null==t||n)return(e=T(e)?e:w(e))[De(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=De(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=_(i,e),A(n,function(e,t){t=i(e,t,n);o(r,e,t)}),r}}var wt=M(function(e,t,n){g(e,n)?e[n].push(t):e[n]=[t]}),St=M(function(e,t,n){e[n]=t}),Et=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),It=M(function(e,t,n){e[n?0:1].push(t)},!0);function _t(e,t,n){return t in n}var Ct=c(function(e,t){var n={},i=t[0];if(null!=e){p(i)?(1<t.length&&(i=I(i,t[1])),t=d(e)):(i=_t,t=k(t,!1,!1),e=Object(e));for(var r=0,o=t.length;r<o;r++){var a=t[r],s=e[a];i(s,a,e)&&(n[a]=s)}}return n}),xt=c(function(e,n){var t,i=n[0];return p(i)?(i=Xe(i),1<n.length&&(t=n[1])):(n=R(k(n,!1,!1),String),i=function(e,t){return!N(n,t)}),Ct(e,i,t)});function Tt(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function kt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:Tt(e,e.length-t)}function L(e,t,n){return u.call(e,null==t||n?1:t)}var At=c(function(e,t){return t=k(t,!0,!0),O(e,function(e){return!N(t,e)})}),Rt=c(function(e,t){return At(e,t)});function Ot(e,t,n,i){Z(t)||(i=n,n=t,t=!1),null!=n&&(n=_(n,i));for(var r=[],o=[],a=0,s=v(e);a<s;a++){var u=e[a],d=n?n(u,a,e):u;t&&!n?(a&&o===d||r.push(u),o=d):n?N(o,d)||(o.push(d),r.push(u)):N(r,u)||r.push(u)}return r}var Nt=c(function(e){return Ot(k(e,!0,!0))});function Mt(e){for(var t=e&&mt(e,v).length||0,n=Array(t),i=0;i<t;i++)n[i]=gt(e,i);return n}var Lt=c(Mt);function Pt(e,t){return e._chain?b(t).chain():t}function Dt(n){return A(Ie(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return U.apply(e,arguments),Pt(this,t.apply(b,e))}}),b}A(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=i[t];b.prototype[t]=function(){var e=this._wrapped;return null!=e&&(n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0]),Pt(this,e)}}),A(["concat","join","slice"],function(e){var t=i[e];b.prototype[e]=function(){var e=this._wrapped;return Pt(this,e=null!=e?t.apply(e,arguments):e)}});var P=Dt({__proto__:null,VERSION:"1.13.6",restArguments:c,isObject:o,isNull:function(e){return null===e},isUndefined:K,isBoolean:Z,isElement:function(e){return!(!e||1!==e.nodeType)},isString:X,isNumber:Y,isDate:Q,isRegExp:ee,isError:te,isSymbol:ne,isArrayBuffer:ie,isDataView:h,isArray:f,isFunction:p,isArguments:ae,isFinite:function(e){return!ne(e)&&W(e)&&!isNaN(parseFloat(e))},isNaN:se,isTypedArray:he,isEmpty:function(e){var t;return null==e||("number"==typeof(t=v(e))&&(f(e)||X(e)||ae(e))?0===t:0===v(y(e)))},isMatch:ge,isEqual:function(e,t){return ye(e,t)},isMap:n,isWeakMap:e,isSet:B,isWeakSet:a,keys:y,allKeys:d,values:w,pairs:function(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i},invert:Ee,functions:Ie,methods:Ie,extend:Ce,extendOwn:s,assign:s,defaults:xe,create:function(e,t){return e=Te(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():Ce({},e):e},tap:function(e,t){return t(e),e},get:Re,has:function(e,t){for(var n=(t=S(t)).length,i=0;i<n;i++){var r=t[i];if(!g(e,r))return!1;e=e[r]}return!!n},mapObject:function(e,t,n){t=_(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:ue,noop:Pe,toPath:ke,property:Ne,propertyOf:function(t){return null==t?Pe:function(e){return Re(t,e)}},matcher:E,matches:E,times:function(e,t,n){var i=Array(Math.max(0,e));t=I(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:De,now:C,escape:Ue,unescape:t,templateSettings:Ge,template:function(o,e,t){e=xe({},e=!e&&t?t:e,b.templateSettings);var n,t=RegExp([(e.escape||Be).source,(e.interpolate||Be).source,(e.evaluate||Be).source].join("|")+"|$","g"),a=0,s="__p+='";if(o.replace(t,function(e,t,n,i,r){return s+=o.slice(a,r).replace(je,He),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(!qe.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{n=new Function(t,"_",s)}catch(i){throw i.source=s,i}return(e=function(e){return n.call(this,e,b)}).source="function("+t+"){\n"+s+"}",e},result:function(e,t,n){var i=(t=S(t)).length;if(!i)return p(n)?n.call(e):n;for(var r=0;r<i;r++){var o=null==e?void 0:e[t[r]];void 0===o&&(o=n,r=i),e=p(o)?o.call(e):o}return e},uniqueId:function(e){var t=++We+"";return e?e+t:t},chain:function(e){return(e=b(e))._chain=!0,e},iteratee:Le,partial:x,bind:Je,bindAll:$e,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:Ze,throttle:function(n,i,r){var o,a,s,u,d=0,c=(r=r||{},function(){d=!1===r.leading?0:C(),o=null,u=n.apply(a,s),o||(a=s=null)}),e=function(){var e=C(),t=(d||!1!==r.leading||(d=e),i-(e-d));return a=this,s=arguments,t<=0||i<t?(o&&(clearTimeout(o),o=null),d=e,u=n.apply(a,s),o||(a=s=null)):o||!1===r.trailing||(o=setTimeout$1(c,t)),u};return e.cancel=function(){clearTimeout(o),d=0,o=a=s=null},e},debounce:function(t,n,i){var r,o,a,s,u,d=function(){var e=C()-o;e<n?r=setTimeout$1(d,n-e):(r=null,i||(s=t.apply(u,a)),r||(a=u=null))},e=c(function(e){return u=this,a=e,o=C(),r||(r=setTimeout$1(d,n),i&&(s=t.apply(u,a))),s});return e.cancel=function(){clearTimeout(r),r=a=u=null},e},wrap:function(e,t){return x(t,e)},negate:Xe,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:Ye,once:Qe,findKey:et,findIndex:nt,findLastIndex:it,sortedIndex:rt,indexOf:at,lastIndexOf:st,find:ut,detect:ut,findWhere:function(e,t){return ut(e,E(t))},each:A,forEach:A,map:R,collect:R,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:O,select:O,reject:function(e,t,n){return O(e,Xe(_(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,E(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,u=(e=T(e)?e:w(e)).length;s<u;s++)null!=(n=e[s])&&n<o&&(o=n);else i=_(i,t),A(e,function(e,t,n){((r=i(e,t,n))<a||r===Infinity&&o===Infinity)&&(o=e,a=r)});return o},shuffle:function(e){return bt(e,Infinity)},sample:bt,sortBy:function(e,i,t){var r=0;return i=_(i,t),gt(R(e,function(e,t,n){return{value:e,index:r++,criteria:i(e,t,n)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")},groupBy:wt,indexBy:St,countBy:Et,partition:It,toArray:yt,size:function(e){return null==e?0:(T(e)?e:y(e)).length},pick:Ct,omit:xt,first:kt,head:kt,take:kt,initial:Tt,last:function(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:L(e,Math.max(0,e.length-t))},rest:L,tail:L,drop:L,compact:function(e){return O(e,Boolean)},flatten:function(e,t){return k(e,t,!1)},without:Rt,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:At,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(u.call(e,i,i+=t));return n},mixin:Dt,"default":b}),Ft=P.toPath;return P.mixin({toPath:function(e){return P.isString(e)?e.split("."):Ft(e)}}),P._=P},underscore.exports=e()}(),underscore.exports),_=getDefaultExportFromCjs(underscoreExports);function doesExist(e){return!(null==e)}var deflate_min={exports:{}},deflate_minExports=(!function(){var Y=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===Y?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&&u(this)}function u(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?(d[255&e]<<24|d[e>>>8&255]<<16|d[e>>>16&255]<<8|d[e>>>24&255])>>32-t:d[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++]=d[s],s=0,o===r.length)&&(r=u(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]=d[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 d=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,D,n=this.input;switch(this.d){case 0:for(t=0,D=n.length;t<D;){var F,U,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===D,o=Y,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),F=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&F,a[s++]=F>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,U=i.length;o<U;++o)a[s++]=i[o];a.length=s}this.c=s,this.a=a}break;case 1:for(var u,d=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),c=(d.b(1,1,Q),d.b(1,2,Q),re(this,n)),l=0,G=c.length;l<G;l++)if(u=c[l],te.prototype.b.apply(d,ie[u]),256<u)d.b(c[++l],c[++l],Q),d.b(c[++l],5),d.b(c[++l],c[++l],Q);else if(256===u)break;this.a=d.finish(),this.c=this.a.length;break;case ne:var p,h,f,g,m,v,y,B,b,w,S,z,E=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=Array(19),I=ne;for(E.b(1,1,Q),E.b(I,2,Q),p=re(this,n),I=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var _,C,x,T,k,q=h,W=f,A=new(ee?Uint32Array:Array)(q+W),R=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=_=0;N<q;N++)A[_++]=m[N];for(N=0;N<W;N++)A[_++]=v[N];if(!ee)for(N=0,x=O.length;N<x;++N)O[N]=0;for(N=T=0,x=A.length;N<x;N+=_){for(_=1;N+_<x&&A[N+_]===A[N];++_);if(C=_,0===A[N])if(C<3)for(;0<C--;)O[R[T++]=0]++;else for(;0<C;)(k=C-3<(k=C<138?C:138)&&k<C?C-3:k)<=10?(R[T++]=17,R[T++]=k-3,O[17]++):(R[T++]=18,R[T++]=k-11,O[18]++),C-=k;else if(R[T++]=A[N],O[A[N]]++,--C<3)for(;0<C--;)R[T++]=A[N],O[A[N]]++;else for(;0<C;)C-3<(k=C<6?C:6)&&k<C&&(k=C-3),R[T++]=16,R[T++]=k-3,O[16]++,C-=k}for(e=ee?R.subarray(0,T):R.slice(0,T),y=oe(O,7),S=0;S<19;S++)H[S]=y[j[S]];for(g=19;4<g&&0===H[g-1];g--);for(B=ae(y),E.b(h-257,5,Q),E.b(f-1,5,Q),E.b(g-4,4,Q),S=0;S<g;S++)E.b(H[S],3,Q);for(S=0,z=e.length;S<z;S++)if(b=e[S],E.b(B[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}E.b(e[S],w,Q)}for(var M,V,I=[I,m],L=[L,v],J=I[0],$=I[1],K=L[0],Z=L[1],P=0,X=p.length;P<X;++P)if(M=p[P],E.b(J[M],$[M],Q),256<M)E.b(p[++P],p[++P],Q),V=p[++P],E.b(K[V],Z[V],Q),E.b(p[++P],p[++P],Q);else if(256===M)break;this.a=E.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,u=w[e.length];switch(a[s++]=65535&u,a[s++]=u>>16&255,a[s++]=u>>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(u=n,a[s++]=u[0],a[+s]=u[1],a[5]=u[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,u,d,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]===Y&&(p[s]=[]),u=p[s],!(0<g--)){for(;0<u.length&&32768<i-u[0];)u.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<u.length?(d=function(e,t,n){var i,r,o,a,s,u,d=0,c=e.length;a=0,u=n.length;e:for(;a<u;a++){if(i=n[u-a-1],(o=3)<d){for(s=d;3<s;s--)if(e[i+s-1]!==e[t+s-1])continue e;o=d}for(;o<258&&t+o<c&&e[i+o]===e[t+o];)++o;if(d<o&&(r=i,d=o),258===o)break}return new b(d,t-r)}(t,i,u),c?c.length<d.length?(l=t[i-1],h[f++]=l,++m[l],n(d,0)):n(c,-1):d.length<y?c=d:n(d,0)):c?n(c,-1):(l=t[i],h[f++]=l,++m[l])}u.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,u=new c(572),d=new(ee?Uint8Array:Array)(s);if(!ee)for(o=0;o<s;o++)d[o]=0;for(o=0;o<s;++o)0<e[o]&&u.push(o,e[o]);if(n=Array(u.length/2),i=new(ee?Uint32Array:Array)(u.length/2),1===n.length)d[u.pop().index]=1;else{for(o=0,a=u.length/2;o<a;++o)n[o]=u.pop(),i[o]=n[o].value;for(r=function(e,n,t){var i,r,o,a,s,u=new(ee?Uint16Array:Array)(t),d=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(u[t-1]=n,r=0;r<t;++r)f<g?d[r]=0:(d[r]=1,f-=g),f<<=1,u[t-2-r]=(u[t-1-r]/2|0)+n;for(u[0]=d[0],l[0]=Array(u[0]),p[0]=Array(u[0]),r=1;r<t;++r)u[r]>2*u[r-1]+d[r]&&(u[r]=2*u[r-1]+d[r]),l[r]=Array(u[r]),p[r]=Array(u[r]);for(i=0;i<n;++i)c[i]=t;for(o=0;o<u[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===d[t-1]&&(--c[0],++h[t-1]),r=t-2;0<=r;--r){for(a=i=0,s=h[r+1],o=0;o<u[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===d[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)d[n[o].index]=r[o]}return d}function ae(e){for(var t,n,i=new(ee?Uint16Array:Array)(e.length),r=[],o=[],a=0,s=0,u=e.length;s<u;s++)r[e[s]]=1+(0|r[e[s]]);for(s=1,u=16;s<=u;s++)a=(o[s]=a)+(0|r[s])<<1;for(s=0,u=e.length;s<u;s++)for(a=o[e[s]],o[e[s]]+=1,t=i[s]=0,n=e[s];t<n;t++)i[s]=i[s]<<1|1&a,a>>>=1;return i}function f(e,t){this.input=e,this.a=new(ee?Uint8Array:Array)(32768),this.d=S.g;var n,i={};for(n in(t?"number"==typeof t.compressionType:(t={},0))&&(this.d=t.compressionType),t)i[n]=t[n];i.outputBuffer=this.a,this.j=new s(this.input,i)}var g,m,v,y,S=l,E=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,u=a.length;s<u;s++)a[s]=(255&a[s].charCodeAt(0))>>>0;o=a}for(var d,c=1,l=0,p=o.length,h=0;0<p;){for(p-=d=1024<p?1024:p;l+=c+=o[h++],--d;);c%=65521,l%=65521}return r=(l<<16|c)>>>0,this.j.c=2,n=(i=this.j.f()).length,ee&&((i=new Uint8Array(i.buffer)).length<=n+4&&(this.a=new Uint8Array(i.length+4),this.a.set(i),i=this.a),i=i.subarray(0,n+4)),i[n++]=r>>24&255,i[n++]=r>>16&255,i[n++]=r>>8&255,i[+n]=255&r,i},e("Zlib.Deflate",f),e("Zlib.Deflate.compress",function(e,t){return new f(e,t).f()}),e("Zlib.Deflate.prototype.compress",f.prototype.f),{NONE:S.NONE,FIXED:S.h,DYNAMIC:S.g});if(Object.keys)g=Object.keys(E);else for(m in g=[],v=0,E)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),E[m])}.call(deflate_min.exports),deflate_min.exports),ZLibDeflate=getDefaultExportFromCjs(deflate_minExports),crc32_min=(ZLibDeflate.Zlib.Deflate,{exports:{}}),crc32_minExports=(!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(crc32_min.exports),crc32_min.exports),ZlibCRC32=getDefaultExportFromCjs(crc32_minExports);function randomElement(e){return e[Math.floor(Math.random()*e.length)]}function randomString(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="",i=(t+t.toUpperCase()+"1234567890").split(""),r=0;r<e;r++)n+=randomElement(i);return n}function getZoneSafeMethod(e,t=window){return getZoneSafeMethod$1(_,e,t)}function getIsFiniteImpl(e){return _.isFunction(e.isFinite)?e.isFinite:e.Number&&_.isFunction(e.Number.isFinite)?e.Number.isFinite:function(e){return e!=Infinity&&e!=-Infinity&&!isNaN(e)}}ZlibCRC32.Zlib.CRC32,getIsFiniteImpl(window);let policy;const policyOptions={createScriptURL:e=>e,createHTML:e=>e};function getPolicy(e){return policy||(policy=e.trustedTypesPolicy||(window.trustedTypes&&"function"==typeof window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("pendo",policyOptions):policyOptions),e.trustedTypesPolicy=policy),policy}var LogLevel,sizzle={exports:{}},sizzleExports=(!function(D){var e,h,w,o,F,f,U,G,S,u,d,E,I,n,_,g,i,r,m,a=window,C="sizzle"+ +new Date,c=a.document,x=0,B=0,z=b(),j=b(),H=b(),v=b(),q=b(),W=function(e,t){return e===t&&(d=!0),0},V={}.hasOwnProperty,t=[],J=t.pop,$=t.push,T=t.push,K=t.slice,k=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},Z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",s="[\\x20\\t\\r\\n\\f]",l="(?:\\\\[\\da-fA-F]{1,6}"+s+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",X="\\["+s+"*("+l+")(?:"+s+"*([*^$|!~]?=)"+s+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+l+"))|)"+s+"*\\]",Y=":("+l+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+X+")*)|.*)\\)|)",Q=new RegExp(s+"+","g"),A=new RegExp("^"+s+"+|((?:^|[^\\\\])(?:\\\\.)*)"+s+"+$","g"),ee=new RegExp("^"+s+"*,"+s+"*"),te=new RegExp("^"+s+"*([>+~]|"+s+")"+s+"*"),ne=new RegExp(s+"|>"),ie=new RegExp(Y),re=new RegExp("^"+l+"$"),oe={ID:new RegExp("^#("+l+")"),CLASS:new RegExp("^\\.("+l+")"),TAG:new RegExp("^("+l+"|[*])"),ATTR:new RegExp("^"+X),PSEUDO:new RegExp("^"+Y),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+s+"*(even|odd|(([+-]|)(\\d*)n|)"+s+"*(?:([+-]|)"+s+"*(\\d+)|))"+s+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+s+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+s+"*((?:-\\d)?\\d*)"+s+"*\\)|)(?=[^-]|$)","i")},ae=/HTML$/i,se=/^(?:input|select|textarea|button)$/i,ue=/^h\d$/i,de=/^[^{]+\{\s*\[native \w/,ce=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,le=/[+~]/,p=new RegExp("\\\\[\\da-fA-F]{1,6}"+s+"?|\\\\([^\\r\\n\\f])","g"),y=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))},pe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,he=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},fe=function(){E()},ge=Ie(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{T.apply(t=K.call(c.childNodes),c.childNodes),t[c.childNodes.length].nodeType}catch(P){T={apply:t.length?function(e,t){$.apply(e,K.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function me(e){return e[0].length?e.map(me).join(","):L(e)}function ve(e,t,n){var i=n[e+" "];i=i||me(function o(e,t){return e[0].length?e.map(function(e){return o(e,t)}):e.filter(t)}(f(e),function(e){return!("PSEUDO"===(e=e).type&&e.matches.length&&"contains"===e.matches[0].replace(A,"$1").toLowerCase())}));try{var r=[];return T.apply(r,t.querySelectorAll(i)),n(e,i),r}catch(P){}}function R(e,t,n,i){var r,o,a,s,u,d,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&&(E(t),t=t||I,_)){if(11!==l&&(s=ce.exec(e)))if(r=s[1]){if(9===l){if(!(d=t.getElementById(r)))return n;if(d.id===r)return n.push(d),n}else if(c&&(d=c.getElementById(r))&&m(t,d)&&d.id===r)return n.push(d),n}else{if(s[2])return T.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&h.getElementsByClassName&&t.getElementsByClassName)return T.apply(n,t.getElementsByClassName(r)),n}if(h.qsa&&(!v[e+" "]||q[e+" "])&&(!g||!g.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(d=e,c=t,1===l&&(ne.test(e)||te.test(e))){for((c=le.test(e)&&Se(t.parentNode)||t)===t&&h.scope||((a=t.getAttribute("id"))?a=a.replace(pe,he):t.setAttribute("id",a=C)),o=(u=f(e)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+L(u[o]);d=u.join(",")}try{return T.apply(n,c.querySelectorAll(d)),n}catch(p){v(e,!0)}finally{a===C&&t.removeAttribute("id")}!i&&v[e+" "]&&(i=ve(e,c,q))}}return G(e.replace(A,"$1"),t,n,i)}function b(){var n=[];function i(e,t){return n.push(e+" ")>w.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function O(e){return e[C]=!0,e}function N(e){var t=I.createElement("fieldset");try{return!!e(t)}catch(P){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function ye(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function be(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 we(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&&ge(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function M(a){return O(function(o){return o=+o,O(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 Se(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in h=R.support={},F=R.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!ae.test(t||e&&e.nodeName||"HTML")},E=R.setDocument=function(e){var e=e?e.ownerDocument||e:c;return e!=I&&9===e.nodeType&&e.documentElement&&(n=(I=e).documentElement,_=!F(I),c!=I&&(e=I.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",fe,!1):e.attachEvent&&e.attachEvent("onunload",fe)),h.scope=N(function(e){return n.appendChild(e).appendChild(I.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),h.attributes=N(function(e){return e.className="i",!e.getAttribute("className")}),h.getElementsByTagName=N(function(e){return e.appendChild(I.createComment("")),!e.getElementsByTagName("*").length}),h.getElementsByClassName=!!I.getElementsByClassName,h.getById=N(function(e){return n.appendChild(e).id=C,!I.getElementsByName||!I.getElementsByName(C).length}),h.getById?(w.filter.ID=function(e){var t=e.replace(p,y);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&_)return(e=t.getElementById(e))?[e]:[]}):(w.filter.ID=function(e){var t=e.replace(p,y);return function(e){e="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},w.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&_){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[]}}),w.find.TAG=h.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):h.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},w.find.CLASS=h.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&_?t.getElementsByClassName(e):h.qsa&&_?t.querySelectorAll("."+e):void 0},i=[],g=[],(h.qsa=!!I.querySelectorAll)&&(N(function(e){var t;n.appendChild(e).innerHTML=getPolicy().createHTML("<a id='"+C+"'></a><select id='"+C+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+s+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+s+"*(?:value|"+Z+")"),e.querySelectorAll("[id~="+C+"-]").length||g.push("~="),(t=I.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\["+s+"*name"+s+"*="+s+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+C+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")}),N(function(e){e.innerHTML=getPolicy().createHTML("<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>");var t=I.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+s+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),n.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(h.matchesSelector=de.test(r=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.oMatchesSelector||n.msMatchesSelector))&&N(function(e){h.disconnectedMatch=r.call(e,"*"),r.call(e,"[s!='']:x"),i.push("!=",Y)}),g=g.length&&new RegExp(g.join("|")),i=i.length&&new RegExp(i.join("|")),e=!!n.compareDocumentPosition,m=e||n.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},W=e?function(e,t){var n;return e===t?(d=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!h.sortDetached&&t.compareDocumentPosition(e)===n?e==I||e.ownerDocument==c&&m(c,e)?-1:t==I||t.ownerDocument==c&&m(c,t)?1:u?k(u,e)-k(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==I?-1:t==I?1:r?-1:o?1:u?k(u,e)-k(u,t):0;if(r===o)return be(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?be(a[i],s[i]):a[i]==c?-1:s[i]==c?1:0}),I},R.matches=function(e,t){return R(e,null,null,t)},R.matchesSelector=function(e,t){if(E(e),h.matchesSelector&&_&&!v[t+" "]&&(!i||!i.test(t))&&(!g||!g.test(t)))try{var n=r.call(e,t);if(n||h.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(P){v(t,!0)}return 0<R(t,I,null,[e]).length},R.contains=function(e,t){return(e.ownerDocument||e)!=I&&E(e),m(e,t)},R.attr=function(e,t){(e.ownerDocument||e)!=I&&E(e);var n=w.attrHandle[t.toLowerCase()],n=n&&V.call(w.attrHandle,t.toLowerCase())?n(e,t,!_):undefined;return n!==undefined?n:h.attributes||!_?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},R.escape=function(e){return(e+"").replace(pe,he)},R.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},R.uniqueSort=function(e){var t,n=[],i=0,r=0;if(d=!h.detectDuplicates,u=!h.sortStable&&e.slice(0),e.sort(W),d){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return u=null,e},o=R.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+=o(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=o(t);return n},(w=R.selectors={cacheLength:50,createPseudo:O,match:oe,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(p,y),e[3]=(e[3]||e[4]||e[5]||"").replace(p,y),"~="===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]||R.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]&&R.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return oe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ie.test(n)&&(t=(t=f(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(p,y).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=z[e+" "];return t||(t=new RegExp("(^|"+s+")"+e+"("+s+"|$)"))&&z(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=R.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(Q," ")+" ").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,u,d=v!=y?"nextSibling":"previousSibling",c=e.parentNode,l=b&&e.nodeName.toLowerCase(),p=!n&&!b,h=!1;if(c){if(v){for(;d;){for(a=e;a=a[d];)if(b?a.nodeName.toLowerCase()===l:1===a.nodeType)return!1;u=d="only"===f&&!u&&"nextSibling"}return!0}if(u=[y?c.firstChild:c.lastChild],y&&p){for(h=(s=(i=(r=(o=(a=c)[C]||(a[C]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===x&&i[1])&&i[2],a=s&&c.childNodes[s];a=++s&&a&&a[d]||(h=s=0,u.pop());)if(1===a.nodeType&&++h&&a===e){r[f]=[x,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[C]||(a[C]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===x&&i[1]:h))for(;(a=++s&&a&&a[d]||(h=s=0,u.pop()))&&((b?a.nodeName.toLowerCase()!==l:1!==a.nodeType)||!++h||(p&&((r=(o=a[C]||(a[C]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[x,h]),a!==e)););return(h-=m)===g||h%g==0&&0<=h/g}}},PSEUDO:function(e,o){var t,a=w.pseudos[e]||w.setFilters[e.toLowerCase()]||R.error("unsupported pseudo: "+e);return a[C]?a(o):1<a.length?(t=[e,e,"",o],w.setFilters.hasOwnProperty(e.toLowerCase())?O(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=k(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:O(function(e){var i=[],r=[],s=U(e.replace(A,"$1"));return s[C]?O(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:O(function(t){return function(e){return 0<R(t,e).length}}),contains:O(function(t){return t=t.replace(p,y),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:O(function(n){return re.test(n||"")||R.error("unsupported lang: "+n),n=n.replace(p,y).toLowerCase(),function(e){var t;do{if(t=_?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=a.location&&a.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===n},focus:function(e){return e===I.activeElement&&(!I.hasFocus||I.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:we(!1),disabled:we(!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!w.pseudos.empty(e)},header:function(e){return ue.test(e.nodeName)},input:function(e){return se.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:M(function(){return[0]}),last:M(function(e,t){return[t-1]}),eq:M(function(e,t,n){return[n<0?n+t:n]}),even:M(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:M(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:M(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:M(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})w.pseudos[e]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(e);function Ee(){}function L(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function Ie(a,e,t){var s=e.dir,u=e.next,d=u||s,c=t&&"parentNode"===d,l=B++;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=[x,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[C]||(e[C]={}))[e.uniqueID]||(r[e.uniqueID]={}),u&&u===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=r[d])&&i[0]===x&&i[1]===l)return o[2]=i[2];if((r[d]=o)[2]=a(e,t,n))return!0}return!1}}function _e(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 Ce(e,t,n,i,r){for(var o,a=[],s=0,u=e.length,d=null!=t;s<u;s++)!(o=e[s])||n&&!n(o,i,r)||(a.push(o),d&&t.push(s));return a}function xe(h,f,g,m,v,e){return m&&!m[C]&&(m=xe(m)),v&&!v[C]&&(v=xe(v,e)),O(function(e,t,n,i){var r,o,a,s=[],u=[],d=t.length,c=e||function(e,t,n){for(var i=0,r=t.length;i<r;i++)R(e,t[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),l=!h||!e&&f?c:Ce(c,s,h,n,i),p=g?v||(e?h:d||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=Ce(p,u),m(r,[],n,i),o=r.length;o--;)(a=r[o])&&(p[u[o]]=!(l[u[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?k(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=Ce(p===t?p.splice(d,p.length):p),v?v(null,t,p,i):T.apply(t,p)})}Ee.prototype=w.filters=w.pseudos,w.setFilters=new Ee,f=R.tokenize=function(e,t){var n,i,r,o,a,s,u,d=j[e+" "];if(d)return t?0:d.slice(0);for(a=e,s=[],u=w.preFilter;a;){for(o in n&&!(i=ee.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=te.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(A," ")}),a=a.slice(n.length)),w.filter)w.filter.hasOwnProperty(o)&&(i=oe[o].exec(a))&&(!u[o]||(i=u[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?R.error(e):j(e,s).slice(0)},U=R.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=H[e+" "];if(!a){for(n=(t=t||f(e)).length;n--;)((a=function l(e){for(var i,t,n,r=e.length,o=w.relative[e[0].type],a=o||w.relative[" "],s=o?1:0,u=Ie(function(e){return e===i},a,!0),d=Ie(function(e){return-1<k(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==S)||((i=t).nodeType?u:d)(e,t,n),i=null,e}];s<r;s++)if(t=w.relative[e[s].type])c=[Ie(_e(c),t)];else{if((t=w.filter[e[s].type].apply(null,e[s].matches))[C]){for(n=++s;n<r&&!w.relative[e[n].type];n++);return xe(1<s&&_e(c),1<s&&L(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(A,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&L(e))}c.push(t)}return _e(c)}(t[n]))[C]?r:o).push(a);(a=H(e,(m=o,y=0<(v=r).length,b=0<m.length,i=function(e,t,n,i,r){var o,a,s,u=0,d="0",c=e&&[],l=[],p=S,h=e||b&&w.find.TAG("*",r),f=x+=null==p?1:Math.random()||.1,g=h.length;for(r&&(S=t==I||t||r);d!==g&&null!=(o=h[d]);d++){if(b&&o){for(a=0,t||o.ownerDocument==I||(E(o),n=!_);s=m[a++];)if(s(o,t||I,n)){i.push(o);break}r&&(x=f)}y&&((o=!s&&o)&&u--,e)&&c.push(o)}if(u+=d,y&&d!==u){for(a=0;s=v[a++];)s(c,l,t,n);if(e){if(0<u)for(;d--;)c[d]||l[d]||(l[d]=J.call(i));l=Ce(l)}T.apply(i,l),r&&!e&&0<l.length&&1<u+v.length&&R.uniqueSort(i)}return r&&(x=f,S=p),c},y?O(i):i))).selector=e}return a},G=R.select=function(e,t,n,i){var r,o,a,s,u,d="function"==typeof e&&e,c=!i&&f(e=d.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&&_&&w.relative[o[1].type]){if(!(t=(w.find.ID(a.matches[0].replace(p,y),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=oe.needsContext.test(e)?0:o.length;r--&&(a=o[r],!w.relative[s=a.type]);)if((u=w.find[s])&&(i=u(a.matches[0].replace(p,y),le.test(o[0].type)&&Se(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&L(o))break;return T.apply(n,i),n}}return(d||U(e,c))(i,t,!_,n,!t||le.test(e)&&Se(t.parentNode)||t),n},h.sortStable=C.split("").sort(W).join("")===C,h.detectDuplicates=!!d,E(),h.sortDetached=N(function(e){return 1&e.compareDocumentPosition(I.createElement("fieldset"))}),N(function(e){return e.innerHTML=getPolicy().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||ye("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),h.attributes&&N(function(e){return e.innerHTML=getPolicy().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ye("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),N(function(e){return null==e.getAttribute("disabled")})||ye(Z,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var Te=a.Sizzle;R.noConflict=function(){return a.Sizzle===R&&(a.Sizzle=Te),R},D.exports?D.exports=R:a.Sizzle=R}(sizzle),sizzle.exports),Sizzle=getDefaultExportFromCjs(sizzleExports);function wrapSizzle(e){var n=_.extend(function(){return n.Sizzle.apply(this,arguments)},e);return n.reset=function(){n.Sizzle=e,n.matchesSelector=e.matchesSelector,n.matches=e.matches},n.intercept=function(e,t="Sizzle"){n[t]=_.wrap(n[t],e)},n.reset(),n}function DomData(){this.ownerKey="_pendo_"+randomString(8)}function attachEventInternal(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?getZoneSafeMethod("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),()=>{detachEventInternal(e,t,n,i)}):_.noop}function detachEventInternal(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?getZoneSafeMethod("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}wrapSizzle(Sizzle),_.extend(DomData.prototype,{cache(e){var t;return _.isObject(e)?((t=e[this.ownerKey])||(e[this.ownerKey]=t={}),t):{}},set(e,t,n){e=this.cache(e);return e[t]=n,e},get(e,t){return t===undefined?this.cache(e):e[this.ownerKey]&&e[this.ownerKey][t]},remove(e,t){var n=this.cache(e);delete n[t],t!==undefined&&!_.isEmpty(n)||(e[this.ownerKey]=undefined)}}),new DomData,function(e){e.Debug="debug",e.Info="info",e.Warn="warn",e.Error="error",e.Critical="critical"}(LogLevel=LogLevel||{});const RECORDING_CONFIG="recording",RECORDING_CONFIG_ENABLED="recording.enabled",RECORDING_CONFIG_AUTO_START="recording.autoStart",RECORDING_CONFIG_WORKERURL="recording.workerUrl",RECORDING_CONFIG_ON_RECORDING_START="recording.onRecordingStart",RECORDING_CONFIG_ON_RECORDING_STOP="recording.onRecordingStop",RECORDING_CONFIG_WORKER_OVERRIDE="recording.workerOverride",RESOURCE_CACHING="resourceCaching",ONE_DAY_IN_MILLISECONDS=864e5,THIRTY_MINUTES=18e5,ONE_HUNDRED_MB_IN_BYTES=104857600,SESSION_RECORDING_ID="pendo_srId",SESSION_RECORDING_LAST_USER_INTERACTION_EVENT="pendo_srLastUserInteractionEvent",SEND_INTERVAL$1=5e3,MAX_SEND_COUNT=2e4,EVENT_TYPES={INCREMENTAL_SOURCE_MUTATION:0,FULL_SNAPSHOT:2,INCREMENTAL_SNAPSHOT:3,META:4,INCREMENTAL_SOURCE_INPUT:5};class SessionRecorder{constructor(e,t){this.name="Replay",this.record=e,this.WorkerClass=t,this.lastKeyFrameTime=0,this.eventsSinceLastKeyFrame=0,this.currentRecordingSize=0}addConfigOptions(){var e=this.api.ConfigReader;e.addOption(RECORDING_CONFIG,[e.sources.PENDO_CONFIG_SRC],{}),e.addOption(RECORDING_CONFIG_AUTO_START,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_ENABLED,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_ON_RECORDING_START,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RECORDING_CONFIG_ON_RECORDING_STOP,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RECORDING_CONFIG_WORKERURL,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_WORKER_OVERRIDE,[e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RESOURCE_CACHING,[e.sources.PENDO_CONFIG_SRC],undefined)}initialize(e,t){this.pendo=e,this.api=t;e=this.pendo._.bind,t=this.api.ConfigReader;this.buffer=new SessionRecorderBuffer(SEND_INTERVAL$1,MAX_SEND_COUNT),this.buffer.onRateLimit=e(this.rateLimitExceeded,this),this.transport=new Transport(this.WorkerClass,this.pendo,this.api),this.transport.onError=e(this.sendFailure,this,"WORKER_ERROR"),this.transport.onWorkerMessage=e(this.onWorkerMessage,this),this.sendQueue=new SendQueue(e(this.transport.send,this.transport)),this.sendQueue.onTimeout=e(this.sendFailure,this,"SEND_TIMEOUT"),this.isNewSession=!1,this.isCheckingVisitorEligibility=!1,this.pageLifecycleListeners=[],this.addConfigOptions(),this.config=t.get(RECORDING_CONFIG),this.onRecordingStart=this.pendo._.isFunction(t.get(RECORDING_CONFIG_ON_RECORDING_START))?t.get(RECORDING_CONFIG_ON_RECORDING_START):function(){},this.onRecordingStop=this.pendo._.isFunction(t.get(RECORDING_CONFIG_ON_RECORDING_STOP))?t.get(RECORDING_CONFIG_ON_RECORDING_STOP):function(){};let n=!1;var i=t.get(RECORDING_CONFIG_ENABLED);this.pendo._.isBoolean(i)?(n=i)||this.api.log.info("Session Replay disabled via the snippet config"):n=this.config.enabled,n&&(t.get("excludeNonGuideAnalytics")?this.api.log.info("Session Replay is disabled because excludeNonGuideAnalytics is enabled"):(i=this.sessionIdKey=SESSION_RECORDING_ID+"."+this.pendo.apiKey,this.pendo.recording={start:e(this.start,this),stop:e(this.stop,this)},this.subscriptions=[this.api.attachEvent(this.api.Events,"appHidden",e(this.handleHidden,this)),this.api.attachEvent(this.api.Events,"appUnloaded",e(this.handleUnload,this)),this.api.attachEvent(this.api.Events,"identify",e(this.changeIdentity,this)),this.api.attachEvent(this.api.Events,"metadata",e(this.changeMetadata,this)),this.api.attachEvent(this.api.Events,"eventCaptured",e(this.addRecordingId,this)),this.api.attachEvent(this.api.Events,"transmit:locked",e(this.stop,this)),this.api.attachEvent(this.api.Events,"transmit:unlocked",e(this._start,this)),this.api.attachEvent(this.api.frames.getChannel(),"message",e(this._frameMessage,this)),this.api.attachEvent(this.api.Events,"tabIdChanged:self",e(this.handleTabIdChange,this))],this.api.store.getters["frames/isReady"]()?this.ready():this.subscriptions.push(this.api.attachEvent(this.api.Events,"ready",e(this.ready,this))),this.api.agentStorage.registry.addSession(i),this.api.agentStorage.registry.addSession(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)))}teardown(){delete this.pendo.recording,delete this.allowStart,this.pendo._.each(this.subscriptions,function(e){e()}),this.removePageLifecycleListeners(),this.subscriptions.length=0,this.stop(),this.transport.stop()}ready(){!1!==this.api.ConfigReader.get(RECORDING_CONFIG_AUTO_START)&&this.start()}addPageLifecycleListeners(){this.pendo._.each(["pageshow","focus","blur","visibilitychange","resume"],e=>{this.pageLifecycleListeners.push(attachEventInternal(window,e,this.pendo._.bind(this.checkPageLifecycleState,this),!0))})}removePageLifecycleListeners(){this.pendo._.each(this.pageLifecycleListeners,function(e){e()}),this.pageLifecycleListeners=[]}checkPageLifecycleState(){var e=this.getPageLifecycleState();"active"!==e&&"passive"!==e||!this.isRecording()&&this.allowStart&&(this.removePageLifecycleListeners(),this.ready())}getPageLifecycleState(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}changeIdentity(e){this.allowStart&&(clearTimeout(this._changeIdentityTimer),this.isRecording()&&(this.logStopReason("IDENTITY_CHANGED",{previousVisitorId:this.visitorId,newVisitorId:e.data[0].visitor_id,previousAccountId:this.accountId,newAccountId:e.data[0].account_id}),this.stop()),this.visitorId=e.data[0].visitor_id,this.accountId=e.data[0].account_id,this._changeIdentityTimer=setTimeout$1(()=>{this._start()},500))}changeMetadata(e){var{hashChanged:e,options:t}=e.data[0];if(this.allowStart&&e)return clearTimeout(this._changeIdentityTimer),this.visitorId=t.visitor.id,this.accountId=t.account.id,this.checkVisitorEligibility()}checkVisitorEligibility(t){if(this.isRecording()||!this.pendo._.isNull(this.visitorId)||!this.pendo._.isNull(this.accountId))return this.isCheckingVisitorEligibility=!0,this.fetchVisitorConfig().then(e=>{e&&e.enable||!this.isRecording()||this.stop(),e&&e.enable&&this.isRecording()&&(t&&t.call(this),this.api.Events.trigger("recording:unpaused")),e&&e.enable&&!this.isRecording()&&this._startRecordingForVisitor(e),this.isCheckingVisitorEligibility=!1})["catch"](e=>{this.isCheckingVisitorEligibility=!1,this.api.log.critical("Failed to re-fetch recording config",{error:e}),this.logStopReason("VISITOR_CONFIG_ERROR")})}snapshot(){this.isRecording()&&(this.send(),this.record.takeFullSnapshot())}isRecording(){return null!=this.interval}recordingConfig(e){var e=this.pendo._.extend({},this.config.options,e),t={maskAllText:null==e.privateByDefault||e.privateByDefault,maskTextSelector:[".pendo-sr-mask"].concat(e.maskedSelectors||[]).join(","),unmaskTextSelector:[".pendo-sr-unmask"].concat(e.unmaskedSelectors||[]).join(","),maskInputOptions:{}},t=(this.pendo._.isObject(e.maskInputOptions)&&(t.maskInputOptions=e.maskInputOptions),t.maskInputOptions=this.pendo._.extend(t.maskInputOptions,{email:!0,password:!0,tel:!0}),{maskInputFn:this.pendo._.partial(maskInput,t),maskTextFn:this.pendo._.partial(maskText,t),maskTextSelector:"*",maskTextClass:null,maskInputOptions:t.maskInputOptions,blockClass:null,blockSelector:[".pendo-ignore",".pendo-sr-ignore"].concat(e.blockedSelectors||[]).join(","),recordCrossOriginIframes:null==e.recordCrossOriginIframes||e.recordCrossOriginIframes});return t}start(){this._restartPtm=this.api.analytics.ptm().pause(),this.allowStart=!0,this.visitorId=this.pendo.get_visitor_id(),this.accountId=this.pendo.get_account_id(),this._start()}_markEvents(e){if(this.recordingId&&this.isRecording())for(var t of e)t.visitor_id!==this.visitorId&&t.visitorId!==this.visitorId||"identify"===t.type||(t.recordingId=this.recordingId,t.recordingSessionId=this.sessionId(this.recordingId))}restartPtm(){if(this.pendo._.isFunction(this._restartPtm)){this._markEvents(this.pendo.buffers.events);for(var e of this.pendo.buffers.silos)this._markEvents(e);this._restartPtm(),this._restartPtm=null}}_start(){if(!this.isRecording()&&this.pendo.isSendingEvents()&&this.allowStart)return this.fetchVisitorConfig().then(e=>{this.allowStart&&(e&&e.enable?this._startRecordingForVisitor(e):(this.restartPtm(),this.logStopReason("VISITOR_DISABLED")))})["catch"](e=>{this.restartPtm(),this.api.log.critical("Failed to fetch recording config",{error:e}),this.logStopReason("VISITOR_CONFIG_ERROR")})}_startRecordingForVisitor(e){if(this.api.Events.trigger("recording:unpaused"),this.transport.start(this.config),this.pendo._.get(this.config,"disableFallback",!0)&&!this.transport.worker)this.restartPtm(),this.pendo.log("Worker failed to start and main thread fallback is disabled. Recording prevented from starting."),this.logStopReason("WORKER_ERROR");else try{var t=this.pendo._.bind,n=(this.visitorConfig=e,this.clearOldSessionId(),this.sendQueue.start(),this.interval=setInterval(()=>{this.sendQueue.failed()||this.send()},SEND_INTERVAL$1),this.recordingConfig(e));this._stop=this.record(this.pendo._.extend({emit:t(this.emit,this),errorHandler:t(this.errorHandler,this)},n)),this._refreshIds(),this.onRecordingStart()}catch(i){this.restartPtm(),this.logStopReason("RECORDING_ERROR")}}_sendIds(){window==window.top&&this.api.frames.getChannel().postMessage({type:"pendo:sr:id",recordingId:this.recordingId,_sessionId:this._sessionId,topId:this.api.store.state.frames.topId})}_refreshIds(){window!=window.top&&this.api.frames.getChannel().postMessage({type:"pendo:sr:refresh"})}_frameMessage(e){e=e.data;"pendo:sr:id"===e.type?this.api.EventTracer.getTabId()==e.tabId&&this.api.store.state.frames.topId!=e.topId||(this.recordingId=e.recordingId,this._sessionId=e._sessionId,this.restartPtm()):"pendo:sr:refresh"===e.type&&window==window.top&&this._sendIds()}clearSessionId(){delete this._sessionId,this.api.sessionStorage.removeItem(SESSION_RECORDING_ID),this.api.sessionStorage.removeItem(this.sessionIdKey)}sessionId(t=this.pendo.randomString(16)){if(!this._sessionId){let e=this.api.sessionStorage.getItem(this.sessionIdKey);var n;e||((n=this.api.sessionStorage.getItem(SESSION_RECORDING_ID))?(e=n,this.api.sessionStorage.removeItem(SESSION_RECORDING_ID)):e=t,this.api.sessionStorage.setItem(this.sessionIdKey,e)),this._sessionId=e}return this._sessionId}clearOldSessionId(){var e=this.getLastUserInteractionEventInformation();if(e){var t=e.timestamp,e=e.visitorId===this.visitorId&&e.accountId===this.accountId,t=t>Date.now()-this.pendo._.get(this.visitorConfig,"inactivityDuration",THIRTY_MINUTES);if(e&&t)return}this.clearSessionInfo(),this.isNewSession=!0}clearSessionInfo(){this.currentRecordingSize=0,this.clearSessionId(),this.clearLastUserInteractionEventInformation()}isUserInteraction(e){return e.type===EVENT_TYPES.INCREMENTAL_SNAPSHOT&&e.data.source>EVENT_TYPES.INCREMENTAL_SOURCE_MUTATION&&e.data.source<=EVENT_TYPES.INCREMENTAL_SOURCE_INPUT}storeLastUserInteractionEventInformation(e,t,n,i){(this.isUserInteraction(e)||i)&&(this.lastUserInteractionEventInfo={timestamp:e.timestamp,visitorId:t,accountId:n},this.api.sessionStorage.setItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT,JSON.stringify(this.lastUserInteractionEventInfo)))}clearLastUserInteractionEventInformation(){delete this.lastUserInteractionEventInfo,this.api.sessionStorage.removeItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)}getLastUserInteractionEventInformation(){if(this.lastUserInteractionEventInfo)return this.lastUserInteractionEventInfo;try{return this.lastUserInteractionEventInfo=JSON.parse(this.api.sessionStorage.getItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)),this.lastUserInteractionEventInfo}catch(e){return null}}errorHandler(e){this.logStopReason("RRWEB_ERROR",e)}emit(e){var t=e.type===EVENT_TYPES.META,n=e.type===EVENT_TYPES.FULL_SNAPSHOT,i=this.pendo._.get(this.getLastUserInteractionEventInformation(),"timestamp"),r=this.pendo._.get(this.visitorConfig,"inactivityDuration",THIRTY_MINUTES);let o=!1;e.timestamp&&e.timestamp.getTime&&(e.timestamp=e.timestamp.getTime()),e.timestamp||(e.timestamp=(new Date).getTime());var r=i&&e.timestamp-i<=r;!i&&t&&(o=!0,this.storeLastUserInteractionEventInformation(e,this.visitorId,this.accountId,o)),t||this.isCheckingVisitorEligibility||!r||this.storeLastUserInteractionEventInformation(e,this.visitorId,this.accountId,o),r||n||t?(t&&(this.pendo._.has(e,"data.href")&&(e.data.href=this.pendo.location.getHref()),this.send()),this.buffer.push(e),n?(this.lastKeyFrameTime=e.timestamp,this.eventsSinceLastKeyFrame=0,this.recordingId=this.pendo.randomString(16),this.buffer.clearSequence(),this.sessionId(this.recordingId),this.restartPtm(),this._sendIds(),this.send({keyframe:!0})):!t&&(this.eventsSinceLastKeyFrame+=1,r=(i=e.timestamp-this.lastKeyFrameTime)>=ONE_DAY_IN_MILLISECONDS,n=i>=this.pendo._.get(this.visitorConfig,"keyframeTimeFrequency",30645047),t=this.eventsSinceLastKeyFrame>=this.pendo._.get(this.visitorConfig,"keyframeEventFrequency",4548),e=this.currentRecordingSize>=this.pendo._.get(this.visitorConfig,"recordingSizeLimit",ONE_HUNDRED_MB_IN_BYTES),r||n&&t||e)&&(i=function(){this.currentRecordingSize=0,this.snapshot()},r&&!this.isCheckingVisitorEligibility?this.checkVisitorEligibility(i):i.call(this))):("hidden"===this.getPageLifecycleState()&&(this.stop(),this.addPageLifecycleListeners(),this.logStopReason("INACTIVE_HIDDEN_TAB")),this.isCheckingVisitorEligibility||this.checkVisitorEligibility(function(){this.send(),this.clearSessionInfo(),this.snapshot()}))}updateCurrentRecordingSize(e){this.currentRecordingSize+=e}onWorkerMessage(e){switch(e.type){case"workerDied":this.logStopReason("WORKER_DIED");break;case"recordingPayloadSize":var{recordingPayloadSize:t,exceedsPayloadSizeLimit:n}=e;if(!t)return;if(n)return this.stop(),void this.logStopReason("BIG_PAYLOAD",t);this.updateCurrentRecordingSize(t);break;case"hostedResources":n=e["hostedResourcesEvent"];if(!n)return;this.sendHostedResources(n);break;case"emptyPayload":this.logStopReason("EMPTY_PAYLOAD");break;case"missingData":this.logStopReason("MISSING_"+e.missingData)}}addRecordingId(e){this.isRecording()&&this.recordingId&&e&&e.data&&e.data.length&&"recording"!==(e=e.data[0]).type&&"identify"!==e.type&&(e.visitor_id!==this.visitorId&&e.visitorId!==this.visitorId?(this.api.log.warn("Visitor id has diverged from agent"),this.logStopReason("VISITOR_ID_DIVERGED",{agentVisitorId:e.visitor_id||e.visitorId,recordingVisitorId:this.visitorId}),this.stop()):this._markEvents([e]))}stop(){this._stop&&this._stop(),this.send(),this.sendQueue.stop(),this.recordingId=null,clearInterval(this.interval),this.interval=null,this._stop=null,this.visitorConfig=null,this.api.Events.trigger("recording:paused"),this.visitorId=null,this.accountId=null,this.clearSessionInfo(),this.onRecordingStop()}handleHidden(){this.send({hidden:!0})}handleUnload(){this.send({unload:!0})}buildRequestUrl(e,t){t=this.pendo._.extend({},this.api.agent.getJwtInfoCopy(),t),t=this.pendo._.map(t,function(e,t){return t+"="+e}).join("&");return t.length?e+"?"+t:e}sendFailure(e){this.stop(),this.logStopReason(e)}rateLimitExceeded(){this.send(),this.stop(),this.logStopReason("DATA_OVERLOAD")}send({unload:e=!1,keyframe:t=!1,hidden:n=!1}={}){if(this.isRecording()&&this.buffer&&this.recordingId&&!this.buffer.isEmpty())if(this.pendo.isSendingEvents()){var i=this.api.EventTracer.addTracerIds({}),t=this.pendo._.extend({type:"recording",visitorId:this.visitorId,accountId:this.accountId,keyFrame:!!t,lastKeyFrame:this.lastKeyFrameTime,recordingId:this.recordingId,recordingSessionId:this.sessionId(this.recordingId),url:this.pendo.url.get(),hasUserInteraction:this.pendo._.any(this.buffer.data,this.isUserInteraction)},i),i=(this.transport.usesSelfHostedWorker&&(t.usesSelfHostedWorker=!0),this.api.Events.eventCaptured.trigger(t),{v:this.pendo.VERSION,recordingId:this.recordingId}),i=(t.keyFrame&&(i.kf=1),this.isNewSession&&(this.isNewSession=!(i.ns=1)),this.buildRequestUrl(this.pendo.HOST+"/data/rec/"+this.pendo.apiKey,i)),t=this.buffer.pack(t,this.pendo._);if(e||n)try{this.sendQueue.drain([{url:i,payload:t}],e)}catch(r){r.reason?this.logStopReason(r.reason):this.logStopReason("SEND_QUEUE_ERROR",r)}else this.sendQueue.push({url:i,payload:t});this.buffer.isEmpty()||this.send({unload:e})}else this.buffer.clear()}fetchVisitorConfig(){var e=this.pendo.compress({url:this.pendo.url.get(),metadata:this.pendo.getSerializedMetadata(),visitorId:this.visitorId,accountId:this.accountId}),e=this.buildRequestUrl(this.pendo.HOST+"/data/recordingconf/"+this.pendo.apiKey,{jzb:e,ct:(new Date).getTime(),v:this.pendo.VERSION});return fetch(e,{method:"GET"}).then(e=>e.json())}logStopReason(e,t){var n=this.api.EventTracer.addTracerIds({}),e=this.pendo._.extend({type:"recording",visitorId:this.visitorId||this.pendo.get_visitor_id(),accountId:this.accountId||this.pendo.get_account_id(),browserTime:(new Date).getTime(),keyFrame:!1,lastKeyFrame:0,recordingId:"log",recordingSessionId:"log",url:this.pendo.url.get(),subType:"log",recordingPayload:[],sequence:0,recordingPayloadCount:0,props:Object.assign({reason:e},t&&{error:t})},n),t=this.pendo.compress(e),n=this.buildRequestUrl(this.pendo.HOST+"/data/rec/"+this.pendo.apiKey,{jzb:t,ct:(new Date).getTime(),v:this.pendo.VERSION,recordingId:e.recordingId}),t=this.pendo.compress(e,"binary");return this.transport.post(n,{body:t,keepalive:!0})["catch"](e=>{this.api.log.critical("Failed to send reason for stopping recording",{error:e})})}sendHostedResources(e){var t=this.api.EventTracer.addTracerIds({}),e=this.pendo._.extend(Object.assign(Object.assign({},e),{browserTime:(new Date).getTime()}),t),t=this.buildRequestUrl(this.pendo.HOST+"/data/rec/"+this.pendo.apiKey,{ct:(new Date).getTime(),v:this.pendo.VERSION,recordingId:e.recordingId}),e=this.pendo.compress(e,"binary");return this.transport.post(t,{body:e,keepalive:!0})["catch"](e=>{this.api.log.critical("Failed to send hosted resources for recording event",{error:e})})}handleTabIdChange(){this.send(),this.clearSessionInfo(),this.snapshot()}}function wrapMethodWithCatch(t){return function(){try{return t.apply(this,arguments)}catch(e){this.api&&this.api.log&&this.api.log.critical("session recording error",{error:e})}}}function errorLogger(e){if("undefined"!=typeof Object&&"function"==typeof Object.getOwnPropertyNames&&e.constructor&&e.constructor.prototype)for(var t of Object.getOwnPropertyNames(e.constructor.prototype))"constructor"!==t&&(e[t]=wrapMethodWithCatch(e[t]));return e}function funcToSource(e,t){var t=t===undefined?null:t,n=[],e=(e=e.toString()).replace(/(['"])__worker_loader_strict__(['"])/g,"$1use strict$2");return n.push("("+e+")()"),t&&n.push("//# sourceMappingURL="+t+"\n"),n}function createURL(e,t){e=funcToSource(e,t),t=new Blob(e,{type:"application/javascript"});return URL.createObjectURL(t)}function createInlineWorkerFactory(t,n){var i;return function WorkerFactory(e){return i=i||createURL(t,n),new Worker(i,e)}}var WorkerFactory=createInlineWorkerFactory(function(){function i(e,t){return"function"==typeof e.bind?e.bind(t):e}function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function c(e,t){t=t||u;e=function(e){for(var t=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||57344<=i?t.push(224|i>>12,128|i>>6&63,128|63&i):(n++,i=65536+((1023&i)<<10|1023&e.charCodeAt(n)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return t}("string"==typeof e?e:JSON.stringify(e)),e=new s.Deflate(e).compress();return t===u?r.uint8ToBase64(e):e}function l(e,t){t=t.match(/https:\/\/[^\s]+?\.(woff2?|ttf|otf|eot)(\?[^\s]*)?\b/g);return{type:"recording",visitorId:e.visitorId,accountId:e.accountId,keyFrame:!1,lastKeyFrame:e.lastKeyFrame,recordingId:e.recordingId,recordingSessionId:e.recordingSessionId,url:e.url,subType:"hostedResources",recordingPayload:[],recordingPayloadMetadata:[],sequence:0,recordingPayloadCount:0,hostedResources:t||[]}}var t,a,n,p,r,o,s,u;i(window.setTimeout,window),n=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 i(e[t],e)}(window),window.Promise,t=function(){var t=n;function d(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 u(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,u(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,u(e)}function u(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(!d(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 u(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){u(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)u(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(!d(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},p="function"==typeof(o=window.Promise)&&/native/.test(o)?o:t(),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),r={uint8ToBase64:function(e){var t,n,i,r=e.length%3,o="";for(t=0,i=e.length-r;t<i;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],o+=function(e){return a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=a[n>>2])+a[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=a[n>>10])+a[n>>4&63])+a[n<<2&63]}return o}},function(){var Y=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===Y?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&&u(this)}function u(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?(d[255&e]<<24|d[e>>>8&255]<<16|d[e>>>16&255]<<8|d[e>>>24&255])>>32-t:d[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++]=d[s],s=0,o===r.length)&&(r=u(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]=d[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 d=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,D,n=this.input;switch(this.d){case 0:for(t=0,D=n.length;t<D;){var F,U,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===D,o=Y,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),F=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&F,a[s++]=F>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,U=i.length;o<U;++o)a[s++]=i[o];a.length=s}this.c=s,this.a=a}break;case 1:for(var u,d=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),c=(d.b(1,1,Q),d.b(1,2,Q),re(this,n)),l=0,G=c.length;l<G;l++)if(u=c[l],te.prototype.b.apply(d,ie[u]),256<u)d.b(c[++l],c[++l],Q),d.b(c[++l],5),d.b(c[++l],c[++l],Q);else if(256===u)break;this.a=d.finish(),this.c=this.a.length;break;case ne:var p,h,f,g,m,v,y,B,b,w,S,z,E=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),j=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=Array(19),I=ne;for(E.b(1,1,Q),E.b(I,2,Q),p=re(this,n),I=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var _,C,x,T,k,q=h,W=f,A=new(ee?Uint32Array:Array)(q+W),R=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=_=0;N<q;N++)A[_++]=m[N];for(N=0;N<W;N++)A[_++]=v[N];if(!ee)for(N=0,x=O.length;N<x;++N)O[N]=0;for(N=T=0,x=A.length;N<x;N+=_){for(_=1;N+_<x&&A[N+_]===A[N];++_);if(C=_,0===A[N])if(C<3)for(;0<C--;)O[R[T++]=0]++;else for(;0<C;)(k=C-3<(k=C<138?C:138)&&k<C?C-3:k)<=10?(R[T++]=17,R[T++]=k-3,O[17]++):(R[T++]=18,R[T++]=k-11,O[18]++),C-=k;else if(R[T++]=A[N],O[A[N]]++,--C<3)for(;0<C--;)R[T++]=A[N],O[A[N]]++;else for(;0<C;)C-3<(k=C<6?C:6)&&k<C&&(k=C-3),R[T++]=16,R[T++]=k-3,O[16]++,C-=k}for(e=ee?R.subarray(0,T):R.slice(0,T),y=oe(O,7),S=0;S<19;S++)H[S]=y[j[S]];for(g=19;4<g&&0===H[g-1];g--);for(B=ae(y),E.b(h-257,5,Q),E.b(f-1,5,Q),E.b(g-4,4,Q),S=0;S<g;S++)E.b(H[S],3,Q);for(S=0,z=e.length;S<z;S++)if(b=e[S],E.b(B[b],y[b],Q),16<=b){switch(S++,b){case 16:w=2;break;case 17:w=3;break;case 18:w=7;break;default:throw"invalid code: "+b}E.b(e[S],w,Q)}for(var M,V,I=[I,m],L=[L,v],J=I[0],$=I[1],K=L[0],Z=L[1],P=0,X=p.length;P<X;++P)if(M=p[P],E.b(J[M],$[M],Q),256<M)E.b(p[++P],p[++P],Q),V=p[++P],E.b(K[V],Z[V],Q),E.b(p[++P],p[++P],Q);else if(256===M)break;this.a=E.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),w=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,u=w[e.length];switch(a[s++]=65535&u,a[s++]=u>>16&255,a[s++]=u>>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(u=n,a[s++]=u[0],a[+s]=u[1],a[5]=u[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,u,d,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]===Y&&(p[s]=[]),u=p[s],!(0<g--)){for(;0<u.length&&32768<i-u[0];)u.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<u.length?(d=function(e,t,n){var i,r,o,a,s,u,d=0,c=e.length;a=0,u=n.length;e:for(;a<u;a++){if(i=n[u-a-1],(o=3)<d){for(s=d;3<s;s--)if(e[i+s-1]!==e[t+s-1])continue e;o=d}for(;o<258&&t+o<c&&e[i+o]===e[t+o];)++o;if(d<o&&(r=i,d=o),258===o)break}return new b(d,t-r)}(t,i,u),c?c.length<d.length?(l=t[i-1],h[f++]=l,++m[l],n(d,0)):n(c,-1):d.length<y?c=d:n(d,0)):c?n(c,-1):(l=t[i],h[f++]=l,++m[l])}u.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,u=new c(572),d=new(ee?Uint8Array:Array)(s);if(!ee)for(o=0;o<s;o++)d[o]=0;for(o=0;o<s;++o)0<e[o]&&u.push(o,e[o]);if(n=Array(u.length/2),i=new(ee?Uint32Array:Array)(u.length/2),1===n.length)d[u.pop().index]=1;else{for(o=0,a=u.length/2;o<a;++o)n[o]=u.pop(),i[o]=n[o].value;for(r=function(e,n,t){var i,r,o,a,s,u=new(ee?Uint16Array:Array)(t),d=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(u[t-1]=n,r=0;r<t;++r)f<g?d[r]=0:(d[r]=1,f-=g),f<<=1,u[t-2-r]=(u[t-1-r]/2|0)+n;for(u[0]=d[0],l[0]=Array(u[0]),p[0]=Array(u[0]),r=1;r<t;++r)u[r]>2*u[r-1]+d[r]&&(u[r]=2*u[r-1]+d[r]),l[r]=Array(u[r]),p[r]=Array(u[r]);for(i=0;i<n;++i)c[i]=t;for(o=0;o<u[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===d[t-1]&&(--c[0],++h[t-1]),r=t-2;0<=r;--r){for(a=i=0,s=h[r+1],o=0;o<u[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===d[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)d[n[o].index]=r[o]}return d}function ae(e){for(var t,n,i=new(ee?Uint16Array:Array)(e.length),r=[],o=[],a=0,s=0,u=e.length;s<u;s++)r[e[s]]=1+(0|r[e[s]]);for(s=1,u=16;s<=u;s++)a=(o[s]=a)+(0|r[s])<<1;for(s=0,u=e.length;s<u;s++)for(a=o[e[s]],o[e[s]]+=1,t=i[s]=0,n=e[s];t<n;t++)i[s]=i[s]<<1|1&a,a>>>=1;return i}function f(e,t){this.input=e,this.a=new(ee?Uint8Array:Array)(32768),this.d=S.g;var n,i={};for(n in(t?"number"==typeof t.compressionType:(t={},0))&&(this.d=t.compressionType),t)i[n]=t[n];i.outputBuffer=this.a,this.j=new s(this.input,i)}var g,m,v,y,S=l,E=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case S.NONE:t=0;break;case S.h:t=1;break;case S.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,u=a.length;s<u;s++)a[s]=(255&a[s].charCodeAt(0))>>>0;o=a}for(var d,c=1,l=0,p=o.length,h=0;0<p;){for(p-=d=1024<p?1024:p;l+=c+=o[h++],--d;);c%=65521,l%=65521}return r=(l<<16|c)>>>0,this.j.c=2,n=(i=this.j.f()).length,ee&&((i=new Uint8Array(i.buffer)).length<=n+4&&(this.a=new Uint8Array(i.length+4),this.a.set(i),i=this.a),i=i.subarray(0,n+4)),i[n++]=r>>24&255,i[n++]=r>>16&255,i[n++]=r>>8&255,i[+n]=255&r,i},e("Zlib.Deflate",f),e("Zlib.Deflate.compress",function(e,t){return new f(e,t).f()}),e("Zlib.Deflate.prototype.compress",f.prototype.f),{NONE:S.NONE,FIXED:S.h,DYNAMIC:S.g});if(Object.keys)g=Object.keys(E);else for(m in g=[],v=0,E)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),E[m])}.call((o={exports:{}}).exports),s={Deflate:e(o.exports).Zlib.Deflate},u="base64url",self.onmessage=function(e){try{if("init"===e.data.type&&e.data.lockID)navigator.locks.request(e.data.lockID,()=>(postMessage({ready:!0}),new p(()=>{})));else if(e.data.url&&e.data.payload){var{url:t,payload:n,shouldCacheResources:i}=e.data;0===Object.keys(n).length&&postMessage({type:"emptyPayload"});const d=n["sequence"];var r,o,a=JSON.stringify(n.recordingPayload),s=(new TextEncoder).encode(a).length,u=104857600<=s;postMessage({type:"recordingPayloadSize",recordingPayloadSize:s,exceedsPayloadSizeLimit:u}),u||(i&&(r=l(n,a)).hostedResources.length&&postMessage({type:"hostedResources",hostedResourcesEvent:r}),n.recordingSize=s,o=c(n,"binary"),t=t+"&ct="+(new Date).getTime(),fetch(t,{method:"POST",body:o}).then(function(e){e.status<200||300<=e.status?postMessage({error:new Error(`received status code ${e.status}: `+e.statusText),status:e.status,sequence:d}):postMessage({sequence:d})})["catch"](function(e){postMessage({error:e,sequence:d})}))}else postMessage({type:"missingData",missingData:e.data.url?"PAYLOAD":"URL"})}catch(e){postMessage({error:e})}}},null);function createReplayPlugin(){return errorLogger(new SessionRecorder(record(),WorkerFactory))}const NUM_OF_KEYS_LIMIT=50,DEPTH_OF_LIMIT=4;function serializeHTML(e){var t;return e&&e.nodeType===e.ELEMENT_NODE&&(t=e.cloneNode(!1),e=e.textContent,e&&(t.textContent=e),t.outerHTML)||""}function isObject(e){return null!==e&&"object"==typeof e&&((e=Object.getPrototypeOf(e))===Object.prototype||null===e)}function isObjTooDeep(t,n){var e;return 0===n||0!==(e=Object.keys(t)).length&&e.some(e=>{e=t[e];return isObject(e)&&isObjTooDeep(e,n-1)})}function shouldIgnore(e){return e instanceof RegExp||!!isObject(e)&&(Object.keys(e).length>NUM_OF_KEYS_LIMIT||isObjTooDeep(e,DEPTH_OF_LIMIT))}function stringify(e){return e===undefined?"undefined":"object"!=typeof e?"bigint"==typeof e?e.toString()+"n":"function"==typeof e?e.toString():String(e):JSON.stringify(e,function(e,t){if(null!==t){if(t===undefined)return"undefined";if(shouldIgnore(t))return t.toString?t.toString():"[object Object]";if(t instanceof ArrayBuffer)return`ArrayBuffer { byteLength: ${t.byteLength} }`;if(t instanceof Error)return t.name+": "+t.message;if(t instanceof Node)return t instanceof HTMLElement?serializeHTML(t):t.nodeName;if(t instanceof Event){var n={};for(const r in t){var i=t[r];n[r]=Array.isArray(i)&&i[0]instanceof HTMLElement?serializeHTML(i[0]):i}return n}}return t})}class StackFrame{constructor(e){this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}toString(){var{fileName:e,functionName:t,lineNumber:n="",columnNumber:i=""}=this;return t?t+` (${e}:${n}:${i})`:e+`:${n}:`+i}}const FIREFOX_SAFARI_STACK_REGEXP=/(^|@)\S+:\d+/,CHROME_EDGE_STACK_REGEXP=/^\s*at .*(\S+:\d+|\(native\))/m,SAFARI_NATIVE_CODE_REGEXP=/^(eval@)?(\[native code])?$/,LOCATION_REGEXP=/(.+?)(?::(\d+))?(?::(\d+))?$/,DEFAULT_NUM_FRAMES_TO_SKIP=5,ErrorStackParser={parse(e,t){return null!=e&&e.stack?CHROME_EDGE_STACK_REGEXP.test(e.stack)?this.parseChromiumStack(e,t):FIREFOX_SAFARI_STACK_REGEXP.test(e.stack)?this.parseFirefoxSafariStack(e,t):[]:[]},extractLocation(e){if(-1===e.indexOf(":"))return[e];var t=LOCATION_REGEXP.exec(e.replace(/[()]/g,""));if(t)return[t[1],t[2]||undefined,t[3]||undefined];throw new Error("Cannot parse given url: "+e)},parseHelper({regex:t,includeMatchedLine:n},e,i,r){var o=e.stack.split("\n"),a=[];let s=0;for(let e=0;e<o.length;e++){var u=o[e],d=t.test(u),d=n&&!d||!n&&d;if(!d&&!(++s<=DEFAULT_NUM_FRAMES_TO_SKIP)){if(i&&s>DEFAULT_NUM_FRAMES_TO_SKIP+i)break;r(u,a)}}return a},parseChromiumStack(e,t){return this.parseHelper({regex:CHROME_EDGE_STACK_REGEXP,includeMatchedLine:!0},e,t,(e,t)=>{let n;let i;-1<(n=-1<e.indexOf("(eval ")?e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,"").replace(/^\s+/,"").replace(/\(eval code/g,"("):e.replace(/^\s+/,"")).indexOf("(")&&-1<n.indexOf("):")&&(i=n.match(/ (\((.+):(\d+):(\d+)\)$)/));var e=(n=i?n.replace(i[0],""):n).split(/\s+/).slice(1),r=this.extractLocation(i?i[1]:e.pop()||""),e=e.join(" ")||undefined,o="eval"===r[0]||"<anonymous>"===r[0]?undefined:r[0];t.push(new StackFrame({functionName:e,fileName:o,lineNumber:r[1],columnNumber:r[2]}))})},parseFirefoxSafariStack(e,t){return this.parseHelper({regex:SAFARI_NATIVE_CODE_REGEXP,includeMatchedLine:!1},e,t,(e,t)=>{let n=e;var i;-1===(n=-1<n.indexOf(" > eval")?n.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1"):n).indexOf("@")&&-1===n.indexOf(":")?t.push(new StackFrame({functionName:n})):(e=/((.*".+"[^@]*)?[^@]*)(?:@)/,i=(i=n.match(e))&&i[1]?i[1]:undefined,e=this.extractLocation(n.replace(e,"")),t.push(new StackFrame({functionName:i,fileName:e[0],lineNumber:e[1],columnNumber:e[2]})))})}},MAX_LENGTH=1e3,PII_PATTERN={ip:/\b(?:\d{1,3}\.){3}\d{1,3}\b/g,ssn:/\b\d{3}-\d{2}-\d{4}\b/g,creditCard:/\b(?:\d[ -]*?){13,16}\b/g,httpsUrls:/https:\/\/[^\s]+/g,email:/\b\S+@[\w-]+\.[\w-]+\b/g},PII_REPLACEMENT="*".repeat(10),JSON_PII_KEYS=["password","email","key","token","auth","authentication","phone","address","ssn"],UNABLE_TO_DISPLAY_BODY="[Unable to display body: detected PII could not be redacted]",joinedKeys=JSON_PII_KEYS.join("|"),keyPattern=`"([^"]*(?:${joinedKeys})[^"]*)"`,acceptedValues='("([^"\\\\]*(?:\\\\.[^"\\\\]*)*")|(\\d+)|(true|false))';function truncate(e,t=!1){return e.length<=MAX_LENGTH?e:t?e.slice(0,MAX_LENGTH).concat("..."):e.slice(0,MAX_LENGTH)}function generateLogKey(e,t,n){return e+`|${t}|`+n}function mightContainPII(e){return/[\d]{2,}|https:\/\/|@/.test(e)}function scrubPII({string:e,_:t}){return e&&"string"==typeof e&&mightContainPII(e)?t.reduce(t.values(PII_PATTERN),(e,t)=>e.replace(t,PII_REPLACEMENT),e):e}function scrubJsonPII(e){var t;return new RegExp(keyPattern+"\\s*:\\s*[\\{\\[]","i").test(e)?UNABLE_TO_DISPLAY_BODY:(t=new RegExp(keyPattern+"\\s*:\\s*"+acceptedValues,"gi"),e.replace(t,(e,t)=>`"${t}":"${PII_REPLACEMENT}"`))}function mightContainJson(e,t){return!!(e&&"string"==typeof e&&(e=e.charAt(0),t&&-1!==t.indexOf("application/json")||"{"===e||"["===e))}function maskSensitiveFields({string:e,contentType:t,_:n}){return e=e&&"string"==typeof e&&mightContainPII(e=mightContainJson(e,t)?scrubJsonPII(e):e)?scrubPII({string:e,_:n}):e}function includes(e,t){return-1!==e.indexOf(t)}function getResourceType(e,t){if(!t||"string"!=typeof t)return"resource";t=t.toLowerCase();if("inline"===e){if(includes(t,"script-src-attr"))return"inline event handler";if(includes(t,"style-src-attr"))return"inline style attribute";if(includes(t,"script"))return"inline script";if(includes(t,"style"))return"inline style"}return"eval"===e?"eval script execution":includes(t,"worker")?"worker":includes(t,"script")?includes(t,"elem")?"script element":"script":includes(t,"style")?includes(t,"elem")?"style element":"stylesheet":includes(t,"img")?"image":includes(t,"font")?"font":includes(t,"connect")?"network request":includes(t,"media")?"media resource":includes(t,"frame-ancestors")?"display of your page in a frame":includes(t,"frame")?"frame":includes(t,"manifest")?"manifest":includes(t,"base-uri")?"base URI":includes(t,"form-action")?"form submission":"resource"}function getDirective(e,t){if(e&&t){var n=t.toLowerCase();for(const o of e.split(";")){var i=o.trim(),r=i.toLowerCase();if(r===n||r.startsWith(n+" "))return i}}return""}function getArticle(e){return e&&"string"==typeof e&&includes("aeiou",e.trim().charAt(0).toLowerCase())?"An":"A"}function formatBlockedUri(e){return e&&"inline"!==e&&"eval"!==e?e:""}function createCspViolationMessage(e,t,n,i){if(!t||"string"!=typeof t)return"Content Security Policy: Unknown violation occurred.";try{var r,o,a=n?" (Report-Only)":"";return"frame-ancestors"===(null==t?void 0:t.toLowerCase())?`Content Security Policy${a}: The display of ${e} in a frame was blocked because an ancestor violates your site's frame-ancestors policy.
140
140
  Current CSP: "${i}".`:`Content Security Policy${a}: ${getArticle(r=getResourceType(e,t))+" "+r+((o=formatBlockedUri(e))?" from "+o:"")} was blocked by your site's \`${getDirective(i,t)||t}\` policy.
141
- Current CSP: "${i}".`}catch(s){return"Content Security Policy: Error formatting violation message: "+s.message}}const DEV_LOG_TYPE="devlog";function createDevLogEnvelope(e,t){return{browser_time:e.util.getNow(),url:t.url.get(),visitorId:t.get_visitor_id(),accountId:t.get_account_id(),type:DEV_LOG_TYPE}}const TOKEN_MAX_SIZE=100,TOKEN_REFILL_RATE=10,TOKEN_REFRESH_INTERVAL=1e3,MAX_UNCOMPRESSED_SIZE=125e3;class DevlogBuffer{constructor(e,t){this.pendo=e,this.pluginAPI=t,this.events=[],this.lastEvent=null,this.uncompressedSize=0,this.payloads=[],this.tokens=TOKEN_MAX_SIZE,this.lastRefillTime=this.pluginAPI.util.getNow(),this.nextRefillTime=this.lastRefillTime+TOKEN_REFRESH_INTERVAL}isEmpty(){return 0===this.events.length&&0===this.payloads.length}refillTokens(){var e,t=this.pluginAPI.util.getNow();t>=this.nextRefillTime&&(e=t-this.lastRefillTime,e=Math.floor(e/TOKEN_REFRESH_INTERVAL)*TOKEN_REFILL_RATE,this.tokens=Math.min(this.tokens+e,TOKEN_MAX_SIZE),this.lastRefillTime=t,this.nextRefillTime=t+TOKEN_REFRESH_INTERVAL)}clear(){this.events=[],this.lastEvent=null,this.uncompressedSize=0}hasTokenAvailable(){return this.refillTokens(),0<this.tokens}estimateEventSize(e){return JSON.stringify(e).length}push(e){var t;return!!this.hasTokenAvailable()&&(t=this.estimateEventSize(e),this.uncompressedSize+t>MAX_UNCOMPRESSED_SIZE&&this.compressCurrentChunk(),this.uncompressedSize+=t,this.lastEvent=e,this.events.push(e),this.tokens=Math.max(this.tokens-1,0),!0)}compressCurrentChunk(){var e;0!==this.events.length&&(e=this.pendo.compress(this.events),this.payloads.push(e),this.clear())}generateUrl(){var e={v:this.pendo.VERSION,ct:this.pluginAPI.util.getNow()};return this.pluginAPI.transmit.buildBaseDataUrl(DEV_LOG_TYPE,this.pendo.apiKey,e)}pack(){if(!this.isEmpty()){const t=this.generateUrl();this.compressCurrentChunk();var e=this.pendo._.map(this.payloads,e=>({jzb:e,url:t}));return this.payloads=[],e}}}_.isFunction(window.decodeURIComponent)?window.decodeURIComponent:_.identity;var pendo,originalOptions,sha1={exports:{}},_pendoConfig=(!function(e){function i(e){e?(a[0]=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,this.blocks=a):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}var s,t,o,n,u,r,a,d,c;s="object"==typeof window?window:{},t=!s.JS_SHA1_NO_COMMON_JS&&e.exports,o="0123456789abcdef".split(""),n=[-2147483648,8388608,32768,128],u=[24,16,8,0],r=["hex","array","digest","arrayBuffer"],a=[],d=function(t){return function(e){return new i(!0).update(e)[t]()}},i.prototype.update=function(e){if(!this.finalized){for(var t,n,i="string"!=typeof e,r=0,o=(e=i&&e.constructor===s.ArrayBuffer?new Uint8Array(e):e).length||0,a=this.blocks;r<o;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),i)for(n=this.start;r<o&&n<64;++r)a[n>>2]|=e[r]<<u[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<u[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<u[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<u[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<u[3&n++],a[n>>2]|=(128|t>>12&63)<<u[3&n++]),a[n>>2]|=(128|t>>6&63)<<u[3&n++]),a[n>>2]|=(128|63&t)<<u[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}},i.prototype.finalize=function(){var e,t;this.finalized||(this.finalized=!0,e=this.blocks,t=this.lastByteIndex,e[16]=this.block,e[t>>2]|=n[3&t],this.block=e[16],56<=t&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash())},i.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},i.prototype.toString=i.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]},i.prototype.array=i.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]},i.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},c=function(){var t=d("hex");t.create=function(){return new i},t.update=function(e){return t.create().update(e)};for(var e=0;e<r.length;++e){var n=r[e];t[n]=d(n)}return t}(),t?e.exports=c:s.sha1=c}(sha1),{});function getPendoConfig(){return _pendoConfig}function getPendoConfigFromEnclosingScope(){return"undefined"==typeof PendoConfig?{}:PendoConfig}function deepCopy(e){return _.isFunction(e)||_.isRegExp(e)?e:_.isArray(e)?_.map(e,deepCopy):_.isObject(e)?_.reduce(e,function(e,t,n){return e[n]=deepCopy(t),e},{}):e}var ConfigReader=function(){var i=_.all,r=_.each,o=_.filter,a=_.first,s=_.find,n=_.map,u=_.pluck,d="snippet",c="pendoconfig",l="global",p="default";const h={};function e(e,t=[c],n,i){e&&!h[e]&&(n={name:e,defaultValue:n,supportedSources:t},null!=i&&(n.useAnySource=i),h[e]=n)}e("additionalApiKeys",[c,d]),e("allowedOriginServers"),e("allowedOriginServerHashes"),e("allowMixedApiKeyFrames",[d,c],!0),e("annotateUrl",[d]),e("apiKey",[c,d]),e("assetHost",[d,c]),e("autoFrameInstall",[d,c],!1),e("blockAgentMetadata",[c],!1),e("contentHost",[d,c]),e("cookieDomain",[d,c]),e("dataHost",[d,c]),e("disableAutoInitialize"),e("disableCookies",[d,c]),e("disablePendo",[d,c],!1),e("disablePersistence",[d,c]),e("enableSignedMetadata",[c],!1),e("frameIdentitySync",[d,c],!1),e("frameIdentityTopDownOnly",[d,c],!0),e("forceAnonymous",[d,c],!1),e("identityStorageLifetime",[d,c]),e("identityStorageSuffix",[d,c]),e("ignoreHashRouting",[d,c]),e("initializeImmediately",[d,c],!1),e("installType"),e("localStorageOnly",[d,c]),e("location.pushState",[d,c],!0),e("maxCookieTTLDays",[d,c],Infinity),e("observeShadowRoots",[d,c],!1),e("pendoCore",[c],!0),e("pendoGlobalKey",[c]),e("preferBroadcastChannel",[d,c],!1),e("preferMutationObserver",[d,c],!1),e("preventCookieRefresh"),e("preventUnloadListener",[d,c],!1),e("promotedAgentMetadataConfigurations",[c]),e("queryStringWhitelist",[d]),e("requireSignedMetadata",[c],!1),e("sanitizeUrl",[d]),e("selfHosted"),e("selfHostedAgentUrl",[d,c]),e("sendEventsWithPostOnly",[d,c],!1),e("siblingSelectors"),e("dropAnonymous"),e("allowedText",[d,c],[]),e("analytics.excludeEvents",[d,c],[]),e("analytics.localStorageUnload",[d,c],!1),e("enableDebugEvents",[d,c]),e("eventPropertyConfigurations"),e("eventPropertyMatchParents",[d,c],!0),e("excludeAllText",[c,d],!1,!0),e("excludeNonGuideAnalytics",[d,c],!1),e("htmlAttributeBlacklist"),e("htmlAttributes"),e("interceptElementRemoval",[d,c],!1),e("interceptPreventDefault",[d,c],!0),e("interceptStopPropagation",[d,c],!0),e("syntheticClicks.elementRemoval",[d,c],!1),e("syntheticClicks.targetChanged",[d,c],!0),e("xhrWhitelist"),e("appAutoOrdering",[d,c]),e("cacheGuides",[d,c],!1),e("cacheGuidesTimeout",[c],6e5),e("delayGuides",[d]),e("disableDesigner",[c,d],!1),e("disableDesignerKeyboardShortcut",[c],!1),e("disableGlobalCSS",[d,c],!1),e("disableGuidePseudoStyles",[d,c],!1),e("disableGuides",[d]),e("disablePrefetch",[d,c]),e("enableDesignerKeyboardShortcut",[d]),e("enableGuideTimeout",[c,d],!1),e("guideCssAssetPath"),e("guideSeenTimeoutLength",[c,d],1e4),e("guideTimeout",[d]),e("guideValidation",[d,c],!1),e("guides.attachPoint",[d]),e("guides.delay",[d]),e("guides.disabled",[d]),e("guides.ejectOnTimeout",[d,c],!1),e("guides.globalScripts",[d,c],[]),e("guides.timeout",[d]),e("guides.tooltip.arrowSize",[d]),e("inlineStyleNonce",[d]),e("leaderKey",[d,c],[]),e("preventCodeInjection",[c,d,l],!1),e("previewModeAssetPath"),e("useAssetHostForDesigner",[d,c],!1),e("storage.allowKeys",[d],"*"),e("disableFeedback",[d]),e("disableFeedbackAutoInit"),e("feedbackSettings",[c],{}),e("pendoFeedback",[c],!1),e("crossAppGuideStorageSuffix",[d,c]),e("enableCrossOriginIsolation",[d,c],!1),e("adoptHost"),e("adoptAnalyticsForwarding"),e("agentDebuggerPluginLoader"),e("allowPartnerAnalyticsForwarding",[d],!1),e("adoptPrioritizeAdoptGuides",[c],!1),e("designerAgentPluginsLoader",[c,d]),e("trainingPartner"),e("errorClickLogging",[c],!1),e("enableAllEmbeddedGuideEvents",[c],!1),e("formValidation",[c],!1),e("performanceMetricsEnabled",[d,c],!0);var f={};function g(e){return h[e]||{name:e}}function m(e,t){if(t)return t=t(),doesExist(e=_.get(t.lookup,(t=e,_.get(t,"key")||_.get(t,"name"))))?e:undefined}function v(e,t){var n=m(e,f[t]);return new w(e.name,n,t)}function y(e,t){return t=t||_.get(e,"supportedSources",[d,c,l]),o(n(t,_.partial(v,e)),function(e){return doesExist(e.value)})}function b(e,t,n){var i=g(e),e=new w(e,t=t||_.get(i,"defaultValue",null),p),n=y(i,n);return i.useAnySource&&doesExist(t)?s(n,function(e){return e.value!==t})||e:a(n)||e}function w(e,t,n){this.name=e,this.value=t,this.source=n}function S(){var n=[];return r(h,function(e){var t;n.push({name:e.name,active:b(e.name),conflicts:(e=g(e=e.name),(t=o(y(e),function(e){return e.source!==p})).length<2||i(u(t,"value"),function(e){return e===t[0].value})?[]:t)})}),n}return f[d]=function(){return{lookup:originalOptions||window.pendo_options,name:d}},f[c]=function(){return{lookup:getPendoConfig(),name:c}},f[l]=function(){return{lookup:pendo,name:l}},w.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"},{audit:S,get(e,t){return b(e,t).value},getLocalConfig(e,t){return arguments.length?b(e,t,[d]).value:deepCopy(originalOptions)},getHostedConfig(e,t){return b(e,t,[c]).value},addOption:e,setLocalConfig(e){originalOptions=e},options:()=>u(h,"name"),sources:{SNIPPET_SRC:d,PENDO_CONFIG_SRC:c,GLOBAL_SRC:l,DEFAULT_SRC:p},validate(t){t.groupCollapsed("Validate Config options"),r(S(),function(e){t.log(String(e.active)),0<e.conflicts.length&&(t.warn("Multiple sources found with values for "+e.name),r(e.conflicts,function(e){t.warn(String(e))}))}),t.groupEnd()}}}();function flux(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),_.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),_.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:_.partial(t,i),subscribeAction:_.partial(t,r),registerModule:function h(n,e){_.isString(n)&&(n=[n]);var t=d(s.state,e,n);_.extend(s.getters,p(e,t,s,n));_.extend(o,c(e,t,n));_.extend(a,l(e,t,s,n));_.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return _.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):_.noop;var n,i}function u(e,t){return(e=t?e.concat([t]):e).join("/")}function d(e,t,n){var i=e;return _.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),_.extend(i,deepCopy(t.state||{}))}function c(e,n,i){var r={};return _.each(e.mutations,function(e,t){r[u(i,t)]=_.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:u(r,e);i.commit(n,t)},dispatch:function(e,t,n){n=n&&n.root?e:u(r,e);return i.dispatch(n,t)},getters:function(e,t){var i=u(t);i&&(i+="/");return _.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return _.each(e.actions,function(e,t){n[u(r,t)]=_.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return _.each(e.getters,function(e,t){a[t]=o[u(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}function createStore(){return flux()}var store=createStore();store.subscribe(function(e,t){});const EXTENSION_INSTALL_TYPE="extension",NATIVE_INSTALL_TYPE="native";function getInstallType(){return ConfigReader.get("installType")||getPendoConfigFromEnclosingScope().installType||NATIVE_INSTALL_TYPE}function isExtensionAgent(){return getInstallType()===EXTENSION_INSTALL_TYPE}function isNativeCode(e){return/native/.test(e)}const msie=determineMSIE(getUA());function pint(e){return parseInt(e,10)}function lowercase(e){return _.isString(e)?e.toLowerCase():e}function isMinimumIEVersion(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e}function getUA(){return(window.navigator||{}).userAgent}function determineMSIE(e){let t=pint((/msie (\d+)/.exec(lowercase(e))||[])[1]);return t=isNaN(t)?pint((/trident\/.*; rv:(\d+)/.exec(lowercase(e))||[])[1]):t}function determineTrident(e,t){let n=pint((/trident\/(\d+)/.exec(lowercase(e))||[])[1]);return n=isNaN(n)&&7==t?3:n}determineTrident(getUA(),msie);const eventSupport={},android=pint((/android (\d+)/.exec(lowercase(getUA()))||[])[1]),boxee=/Boxee/i.test(getUA()),pdocument=window.document||{},documentMode=pdocument.documentMode;let vendorPrefix;const vendorRegex=/^(Moz|webkit|O|ms)(?=[A-Z])/,bodyStyle=pdocument.body&&pdocument.body.style;let transitions=!1,animations=!1,match;if(bodyStyle){for(const dI1 in bodyStyle)if(match=vendorRegex.exec(dI1)){vendorPrefix=(vendorPrefix=match[0]).substr(0,1).toUpperCase()+vendorPrefix.substr(1);break}vendorPrefix=vendorPrefix||"WebkitOpacity"in bodyStyle&&"webkit",transitions=!!("transition"in bodyStyle||vendorPrefix+"Transition"in bodyStyle),animations=!!("animation"in bodyStyle||vendorPrefix+"Animation"in bodyStyle),!android||transitions&&animations||(transitions=_.isString(pdocument.body.style.webkitTransition),animations=_.isString(pdocument.body.style.webkitAnimation))}const isChromeExtension=window.chrome&&window.chrome.runtime&&window.chrome.runtime.id,shouldWrapNativeHistory=_.memoize(function shouldWrapNativeHistory(){var e=window.history&&window.history.pushState&&window.history.replaceState,t=window.history&&_.isFunction(Object.isFrozen)&&Object.isFrozen(window.history),n=window.history&&_.isFunction(Object.getOwnPropertyDescriptors)&&Object.getOwnPropertyDescriptors(window.history),n=n&&_.get(n,"pushState.writable",!0)&&_.get(n,"replaceState.writable",!0),i=!(android<4);return!(!e||t||!n||!i||boxee||isExtensionAgent())});function shouldWrapHashChange(){var e="onhashchange"in window,t=!documentMode||7<documentMode;return!(!e||!t||isExtensionAgent())}function isMobileUserAgent(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(getUA())}function isSafari(e=getUA()){return 0<=e.indexOf("Safari")&&0<=!e.indexOf("Chrome")}const sniffer={supportsHistoryApi:shouldWrapNativeHistory,supportsHashChange:shouldWrapHashChange,hasEvent(e){var t;return("input"!=e||9!=msie)&&(_.isUndefined(eventSupport[e])&&(t=pdocument.createElement("div"),eventSupport[e]="on"+e in t),eventSupport[e])},vendorPrefix:vendorPrefix,transitions:transitions,animations:animations,android:android,msie:msie,msieDocumentMode:documentMode,safari:isSafari(),sri:"integrity"in document.createElement("script"),addEventListener:_.isFunction(window.addEventListener),MutationObserver:isNativeCode(window.MutationObserver),isMinimumIEVersion:isMinimumIEVersion,isMobileUserAgent:_.memoize(isMobileUserAgent),isChromeExtension:isChromeExtension};var q,encodeURIComponent=_.isFunction(window.encodeURIComponent)?window.encodeURIComponent:_.identity,ayepromise=function(){var e={},d=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},c=function(n,i){var r=e.defer(),o=function(n,i){setTimeout$1(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===l?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},l=1;return e.defer=function(){var n,i=0,r=[],o=function(e,t){i=e,n=t,_.each(r,function(e){e.handle(i,n)}),r=null},a=function(e){o(2,e)},t=function(e,t){e=c(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},s=function(e){var t=d();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?s(t):o(l,e)},e=d();return{resolve:e(u),reject:e(a),promise:{then:t,"catch":function(e){return t(null,e)}}}},e}();function qAllObject(e){var n,i=q.defer(),r=_.isArray(e)?[]:{},o=_.size(e);return o?(n=!1,_.each(e,function(e,t){q.resolve(e).then(function(e){r[t]=e,0!=--o||n||i.resolve(r)},function(e){n||(n=!0,i.reject(e))})}),i.promise):q.resolve(e)}!isExtensionAgent()&&sniffer.isMinimumIEVersion(11)?q={all:function(e){return _.isArray(e)?Promise$2.all.apply(Promise$2,arguments):qAllObject(e)},reject:function(){return Promise$2.reject.apply(Promise$2,arguments)},resolve:function(){return Promise$2.resolve.apply(Promise$2,arguments)},defer:function(){var n={};return n.promise=new Promise$2(function(e,t){n.resolve=e,n.reject=t}),n}}:((q=ayepromise).all=qAllObject,q.reject=function(e){var t=q.defer();return t.reject(e),t.promise},q.resolve=function(e){var t=q.defer();return t.resolve(e),t.promise}),function(){function i(){return window.XMLHttpRequest||ActiveXObject}function r(e){var t=q.defer(),n=new(i())("MSXML2.XMLHTTP.3.0");return n.open(e.method||"GET",e.url,!e.sync),_.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 o(e,t,n){return r({method:"POST",url:e,data:t,headers:n})}_.extend(r,{get:function(e,t){return r({method:"GET",url:e,headers:t})},post:o,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",o(e,t=JSON.stringify(t),n)},urlFor:function(e,t,n){if(_.isArray(t))i=t;else{if(!_.isObject(t))return e||"";i=_.keys(t)}var i=_.map(i,function(e){return _.isArray(t)?encodeURIComponent(e):encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&"),r=(e=e.split("#",2))[0],o=_.contains(r,"?");return[r,i?(o?"&":"?")+i:"",(n=void 0!==n?n:e[1])?"#"+n:""].join("")},supported(){return void 0!==i()}})}();var SEND_INTERVAL=12e4,ENCODED_EVENT_MAX_LENGTH=1900;class DevlogTransport{constructor(e,t){this.pendo=e,this.pluginAPI=t}buildGetUrl(e,t){var n={},i=this.pluginAPI.agent.treatAsAdoptPartner(),r=this.pendo.get_account_id(),i=(i&&r&&"ACCOUNT-UNIQUE-ID"!==r&&(n.acc=this.pluginAPI.util.base64EncodeString(r)),this.pluginAPI.agent.getJwtInfoCopy()),r=(this.pendo._.isEmpty(i)||this.pendo._.extend(n,i),n.jzb=t,this.pendo._.map(n,(e,t)=>t+"="+e).join("&"));return""+e+(-1!==e.indexOf("?")?"&":"?")+r}get(e,t){return t.method="GET",this.pluginAPI.transmit.fetchKeepalive.supported()?this.pluginAPI.transmit.fetchKeepalive(e,t):this.pendo.ajax.get(e)}sendRequestWithGet({url:e,jzb:t}){e=this.buildGetUrl(e,t);return this.get(e,{headers:{"Content-Type":"application/octet-stream"}})}post(e,t){return t.method="POST",t.keepalive&&this.pluginAPI.transmit.fetchKeepalive.supported()?this.pluginAPI.transmit.fetchKeepalive(e,t):t.keepalive&&this.pluginAPI.transmit.sendBeacon.supported()?this.pluginAPI.transmit.sendBeacon(e,new Blob([t.body]))?Promise$2.resolve():Promise$2.reject(new Error("sendBeacon failed to send devlog data")):this.pendo.ajax.post(e,t.body)}sendRequestWithPost({url:e,jzb:t},n){var i=this.pluginAPI.agent.getJwtInfoCopy(),t={events:t,browser_time:this.pluginAPI.util.getNow()},r=this.pluginAPI.agent.treatAsAdoptPartner(),o=this.pendo.get_account_id(),r=(r&&o&&"ACCOUNT-UNIQUE-ID"!==o&&(t.acc=this.pluginAPI.util.base64EncodeString(o)),JSON.stringify(this.pendo._.extend(t,i)));return this.post(e,{body:r,headers:{"Content-Type":"application/json"},keepalive:n})}sendRequest({url:e,jzb:t},n){return t.length<=ENCODED_EVENT_MAX_LENGTH&&!this.pluginAPI.ConfigReader.get("sendEventsWithPostOnly")?this.sendRequestWithGet({url:e,jzb:t}):this.sendRequestWithPost({url:e,jzb:t},n)}}function ConsoleCapture(){let a,s,u,d,i,n,r,c,l=!1;const o="captureConsoleLogs",e=["log","warn","error","info"],p="console";let h="";return{name:"ConsoleCapture",initialize:function(e,t){s=e._;t=(a=t).ConfigReader,t.addOption(o,[t.sources.PENDO_CONFIG_SRC],!1),t=t.get(o);t&&(u=e,d=new DevlogBuffer(e,a),r=new DevlogTransport(e,a),i=new SendQueue(r.sendRequest.bind(r)),n=setInterval(()=>{i.failed()||C()},SEND_INTERVAL),i.start(),a.Events.ready.on(w),a.Events["recording:unpaused"].on(y),a.Events["recording:paused"].on(b),a.Events.appUnloaded.on(g),a.Events.appHidden.on(f),a.Events["ptm:paused"].on(m),a.Events["ptm:unpaused"].on(v))},teardown:function(){C({unload:!0}),n&&clearInterval(n);i&&i.stop();d&&d.clear();a.Events.appHidden.off(f),a.Events.appUnloaded.off(g),a.Events["ptm:paused"].off(m),a.Events["ptm:unpaused"].off(v),a.Events["recording:unpaused"].off(y),a.Events["recording:paused"].off(b),a.detachEventInternal(window,"securitypolicyviolation",E),s.each(e,function(e){if(!console[e])return s.noop;e=console[e]._pendoUnwrap;s.isFunction(e)&&e()})},addIntercepts:S,createConsoleEvent:I,captureStackTrace:_,send:C,setCaptureState:t,recordingStarted:y,recordingStopped:b,onAppHidden:f,onAppUnloaded:g,onPtmPaused:m,onPtmUnpaused:v,securityPolicyViolationFn:E,get isCapturingConsoleLogs(){return l},get buffer(){return d},get sendQueue(){return i},get isPtmPaused(){return c}};function f(){C({hidden:!0})}function g(){C({unload:!0})}function m(){c=!0}function v(){if(c=!1,!d.isEmpty()){for(const e of d.events)a.Events.eventCaptured.trigger(e);C()}}function t({shouldCapture:e=!1,reason:t=""}={}){e!==l&&(l=e,a.log.info("[ConsoleCapture] Console log capture "+(e?"started":"stopped")+(t?": "+t:"")))}function y(){t({shouldCapture:!0,reason:"recording started"})}function b(){t({shouldCapture:!1,reason:"recording stopped"})}function w(){S(),a.attachEventInternal(window,"securitypolicyviolation",E)}function S(){s.each(e,function(n){const e=console[n];e&&(console[n]=s.wrap(e,function(e){var t=s.toArray(arguments).slice(1);e.apply(console,t),I(t,n)}),console[n]._pendoUnwrap=function(){console[n]=e})})}function E(e){var t,n,i,r;e&&"object"==typeof e&&({blockedURI:e,violatedDirective:t,effectiveDirective:n,disposition:i,originalPolicy:r}=e,I([createCspViolationMessage(e,t||n,e="report"===i,r)],e?"warn":"error",{skipStackTrace:!0,skipScrubPII:!0}))}function I(t,n,{skipStackTrace:i=!1,skipScrubPII:r=!1}={}){if(l&&t&&0!==t.length&&s.contains(e,n)){t=s.compact(s.map(t,e=>{let t;try{t=stringify(e)}catch(n){a.log.error("Error stringifying arg: ",n)}return t})).join(" ");if(t){let e="";i||(e=_("error"===n?4:1));var o,i=generateLogKey(n,t=truncate(t),e=truncate(e));if(i!==h||!d.lastEvent)return o=createDevLogEnvelope(a,u),o=Object.assign(Object.assign({},o),{subType:p,devLogLevel:"log"===n?"info":n,devLogMessage:r?t:scrubPII({string:t,_:s}),devLogTrace:e,devLogCount:1}),d.hasTokenAvailable()&&(c||a.Events.eventCaptured.trigger(o),d.push(o),n=i,h=n),o;d.lastEvent.devLogCount++}}}function _(e){try{var t=ErrorStackParser.parse(new Error,e);return s.map(t,e=>e.toString()).join("\n")}catch(n){return""}}function C({unload:e=!1,hidden:t=!1}={}){var n;d&&!d.isEmpty()&&(u.isSendingEvents()?(n=d.pack())&&0!==n.length&&(e||t?i.drain(n,e):i.push(...n)):d.clear())}}function NetworkCapture(){let o,a,n={},i,r,s,u,d,c,l,p,h=!1;const f="captureNetworkRequests",D="network",t="networkLogs",g="networkLogs.allowedRequestHeaders",m="networkLogs.allowedResponseHeaders",F="networkLogs.captureRequestBody",U="networkLogs.captureResponseBody",v={"content-type":!0,"content-length":!0,accept:!0,"accept-language":!0},y={"cache-control":!0,"content-length":!0,"content-type":!0,"content-language":!0};return{name:"NetworkCapture",initialize:function(e,t){o=t,a=e;t=o.ConfigReader,t.addOption(f,[t.sources.PENDO_CONFIG_SRC],!1),t=t.get(f);t&&(i=new DevlogBuffer(e,o),u=new DevlogTransport(e,o),r=new SendQueue(u.sendRequest.bind(u)),b(),w(g,v),w(m,y),S(),s=setInterval(()=>{r.failed()||P()},SEND_INTERVAL),r.start(),o.Events.ready.on(k),o.Events["recording:unpaused"].on(x),o.Events["recording:paused"].on(T),o.Events["ptm:paused"].on(E),o.Events["ptm:unpaused"].on(I),o.Events.appHidden.on(_),o.Events.appUnloaded.on(C),p=o.transmit.buildBaseDataUrl(DEV_LOG_TYPE,a.apiKey))},teardown:function(){s&&clearInterval(s);r&&r.stop();i&&i.clear();o.NetworkRequest.off({request:A,response:R,error:O}),n={},o.Events["ptm:paused"].off(E),o.Events["ptm:unpaused"].off(I),o.Events.appHidden.off(_),o.Events.appUnloaded.off(C),o.Events["recording:unpaused"].off(x),o.Events["recording:paused"].off(T)},handleRequest:A,handleResponse:R,handleError:O,startCapture:k,createNetworkEvent:B,send:P,onPtmPaused:E,onPtmUnpaused:I,onAppHidden:_,onAppUnloaded:C,setCaptureState:e,recordingStarted:x,recordingStopped:T,addConfigOptions:b,processHeaderConfig:w,extractHeaders:N,setupBodyCallbacks:S,processBody:M,processRequestBody:L,processResponseBody:G,get isCapturingNetworkLogs(){return h},get requestMap(){return n},get buffer(){return i},get sendQueue(){return r},get isPtmPaused(){return d},get allowedRequestHeaders(){return v},get allowedResponseHeaders(){return y},get requestBodyCb(){return c},get responseBodyCb(){return l}};function b(){var e=o["ConfigReader"];e.addOption(t,[e.sources.SNIPPET_SRC],{}),e.addOption(g,[e.sources.SNIPPET_SRC],[]),e.addOption(m,[e.sources.SNIPPET_SRC],[]),e.addOption(F,[e.sources.SNIPPET_SRC],undefined),e.addOption(U,[e.sources.SNIPPET_SRC],undefined)}function w(e,t){e=o.ConfigReader.get(e);e&&0!==e.length&&a._.each(e,e=>{e&&"string"==typeof e&&(t[e.toLowerCase()]=!0)})}function S(){var e=o.ConfigReader.get(t);e&&(a._.isFunction(e.captureRequestBody)&&(c=e.captureRequestBody),a._.isFunction(e.captureResponseBody))&&(l=e.captureResponseBody)}function E(){d=!0}function I(){if(d=!1,!i.isEmpty()){for(const e of i.events)o.Events.eventCaptured.trigger(e);P()}}function _(){P({hidden:!0})}function C(){P({unload:!0})}function e({shouldCapture:e=!1,reason:t=""}={}){e!==h&&(h=e,o.log.info("[NetworkCapture] Network request capture "+(e?"started":"stopped")+(t?": "+t:"")))}function x(){return e({shouldCapture:!0,reason:"recording started"})}function T(){return e({shouldCapture:!1,reason:"recording stopped"})}function k(){o.NetworkRequest.on({request:A,response:R,error:O})}function A(e){h&&(n[e.requestId]=e)}function R(e){var t;h&&e&&(t=n[e.requestId])&&(-1!==t.url.indexOf(p)&&200===e.status||i.hasTokenAvailable()&&(t=B({request:t,response:e}),d||o.Events.eventCaptured.trigger(t),i.push(t)),delete n[e.requestId])}function O({error:e,context:t}){h&&(e.requestId&&n[e.requestId]&&delete n[e.requestId],-1!==t.indexOf("fetch")&&o.log.debug("[NetworkCapture] Fetch tracking failed:",e),-1!==t.indexOf("xhr"))&&o.log.debug("[NetworkCapture] XHR tracking failed:",e)}function N(i,r){var{keys:e,reduce:t}=a._;return i&&r?t(e(i),(e,t)=>{var n=t.toLowerCase();return r[n]&&e.push(t+": "+i[t]),e},[]):[]}function M(e,t){return e&&"string"==typeof e?truncate(maskSensitiveFields({string:e,contentType:t,_:a._}),!0):""}function L({request:e}){if(!e||!e.body||!c)return"";try{return M(c(e.body,{request:e}),a._.get(e,"headers.content-type",""))}catch(t){return o.log.error("[NetworkCapture] Error processing request body",t),"[Failed to process request body]"}}function G({response:e}){if(!e||!e.body||!l)return"";try{return M(l(e.body,{response:e}),a._.get(e,"headers.content-type",""))}catch(t){return o.log.error("[NetworkCapture] Error processing response body",t),"[Failed to process response body]"}}function B({request:e,response:t}){var n=createDevLogEnvelope(o,a),i=N(e.headers,v),r=N(t.headers,y),n=Object.assign(Object.assign({},n),{subType:D,devLogMethod:e.method,devLogStatusCode:t.status,devLogRequestUrl:e.url,devLogRequestHeaders:i,devLogResponseHeaders:r,devLogCount:1});return c&&(n.devLogRequestBody=L({request:e})),l&&(n.devLogResponseBody=G({response:t})),n}function P({unload:e=!1,hidden:t=!1}={}){var n;i&&!i.isEmpty()&&(a.isSendingEvents()?(n=i.pack(),e||t?r.drain(n,e):r.push(...n)):i.clear())}}export{ConsoleCapture,Feedback,GuideMarkdown,NetworkCapture,createReplayPlugin as Replay,TextCapture,VocPortal,loadAgent};
141
+ Current CSP: "${i}".`}catch(s){return"Content Security Policy: Error formatting violation message: "+s.message}}const DEV_LOG_TYPE="devlog";function createDevLogEnvelope(e,t){return{browser_time:e.util.getNow(),url:t.url.get(),visitorId:t.get_visitor_id(),accountId:t.get_account_id(),type:DEV_LOG_TYPE}}const TOKEN_MAX_SIZE=100,TOKEN_REFILL_RATE=10,TOKEN_REFRESH_INTERVAL=1e3,MAX_UNCOMPRESSED_SIZE=125e3;class DevlogBuffer{constructor(e,t){this.pendo=e,this.pluginAPI=t,this.events=[],this.lastEvent=null,this.uncompressedSize=0,this.payloads=[],this.tokens=TOKEN_MAX_SIZE,this.lastRefillTime=this.pluginAPI.util.getNow(),this.nextRefillTime=this.lastRefillTime+TOKEN_REFRESH_INTERVAL}isEmpty(){return 0===this.events.length&&0===this.payloads.length}refillTokens(){var e,t=this.pluginAPI.util.getNow();t>=this.nextRefillTime&&(e=t-this.lastRefillTime,e=Math.floor(e/TOKEN_REFRESH_INTERVAL)*TOKEN_REFILL_RATE,this.tokens=Math.min(this.tokens+e,TOKEN_MAX_SIZE),this.lastRefillTime=t,this.nextRefillTime=t+TOKEN_REFRESH_INTERVAL)}clear(){this.events=[],this.lastEvent=null,this.uncompressedSize=0}hasTokenAvailable(){return this.refillTokens(),0<this.tokens}estimateEventSize(e){return JSON.stringify(e).length}push(e){var t;return!!this.hasTokenAvailable()&&(t=this.estimateEventSize(e),this.uncompressedSize+t>MAX_UNCOMPRESSED_SIZE&&this.compressCurrentChunk(),this.uncompressedSize+=t,this.lastEvent=e,this.events.push(e),this.tokens=Math.max(this.tokens-1,0),!0)}compressCurrentChunk(){var e;0!==this.events.length&&(e=this.pendo.compress(this.events),this.payloads.push(e),this.clear())}generateUrl(){var e={v:this.pendo.VERSION,ct:this.pluginAPI.util.getNow()};return this.pluginAPI.transmit.buildBaseDataUrl(DEV_LOG_TYPE,this.pendo.apiKey,e)}pack(){if(!this.isEmpty()){const t=this.generateUrl();this.compressCurrentChunk();var e=this.pendo._.map(this.payloads,e=>({jzb:e,url:t}));return this.payloads=[],e}}}_.isFunction(window.decodeURIComponent)?window.decodeURIComponent:_.identity;var pendo,originalOptions,sha1={exports:{}},_pendoConfig=(!function(e){function i(e){e?(a[0]=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,this.blocks=a):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}var s,t,o,n,u,r,a,d,c;s="object"==typeof window?window:{},t=!s.JS_SHA1_NO_COMMON_JS&&e.exports,o="0123456789abcdef".split(""),n=[-2147483648,8388608,32768,128],u=[24,16,8,0],r=["hex","array","digest","arrayBuffer"],a=[],d=function(t){return function(e){return new i(!0).update(e)[t]()}},i.prototype.update=function(e){if(!this.finalized){for(var t,n,i="string"!=typeof e,r=0,o=(e=i&&e.constructor===s.ArrayBuffer?new Uint8Array(e):e).length||0,a=this.blocks;r<o;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),i)for(n=this.start;r<o&&n<64;++r)a[n>>2]|=e[r]<<u[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<u[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<u[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<u[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<u[3&n++],a[n>>2]|=(128|t>>12&63)<<u[3&n++]),a[n>>2]|=(128|t>>6&63)<<u[3&n++]),a[n>>2]|=(128|63&t)<<u[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}},i.prototype.finalize=function(){var e,t;this.finalized||(this.finalized=!0,e=this.blocks,t=this.lastByteIndex,e[16]=this.block,e[t>>2]|=n[3&t],this.block=e[16],56<=t&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash())},i.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},i.prototype.toString=i.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]},i.prototype.array=i.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]},i.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},c=function(){var t=d("hex");t.create=function(){return new i},t.update=function(e){return t.create().update(e)};for(var e=0;e<r.length;++e){var n=r[e];t[n]=d(n)}return t}(),t?e.exports=c:s.sha1=c}(sha1),{});function getPendoConfig(){return _pendoConfig}function getPendoConfigFromEnclosingScope(){return"undefined"==typeof PendoConfig?{}:PendoConfig}function deepCopy(e){return _.isFunction(e)||_.isRegExp(e)?e:_.isArray(e)?_.map(e,deepCopy):_.isObject(e)?_.reduce(e,function(e,t,n){return e[n]=deepCopy(t),e},{}):e}var ConfigReader=function(){var i=_.all,r=_.each,o=_.filter,a=_.first,s=_.find,n=_.map,u=_.pluck,d="snippet",c="pendoconfig",l="global",p="default";const h={};function e(e,t=[c],n,i){e&&!h[e]&&(n={name:e,defaultValue:n,supportedSources:t},null!=i&&(n.useAnySource=i),h[e]=n)}e("additionalApiKeys",[c,d]),e("allowedOriginServers"),e("allowedOriginServerHashes"),e("allowMixedApiKeyFrames",[d,c],!0),e("annotateUrl",[d]),e("apiKey",[c,d]),e("assetHost",[d,c]),e("autoFrameInstall",[d,c],!1),e("blockAgentMetadata",[c],!1),e("contentHost",[d,c]),e("cookieDomain",[d,c]),e("dataHost",[d,c]),e("disableAutoInitialize"),e("disableCookies",[d,c]),e("disablePendo",[d,c],!1),e("disablePersistence",[d,c]),e("enableSignedMetadata",[c],!1),e("frameIdentitySync",[d,c],!1),e("frameIdentityTopDownOnly",[d,c],!0),e("forceAnonymous",[d,c],!1),e("identityStorageLifetime",[d,c]),e("identityStorageSuffix",[d,c]),e("ignoreHashRouting",[d,c]),e("initializeImmediately",[d,c],!1),e("installType"),e("localStorageOnly",[d,c]),e("location.pushState",[d,c],!0),e("maxCookieTTLDays",[d,c],Infinity),e("observeShadowRoots",[d,c],!1),e("pendoCore",[c],!0),e("pendoGlobalKey",[c]),e("preferBroadcastChannel",[d,c],!1),e("preferMutationObserver",[d,c],!1),e("preventCookieRefresh"),e("preventUnloadListener",[d,c],!1),e("promotedAgentMetadataConfigurations",[c]),e("queryStringWhitelist",[d]),e("requireSignedMetadata",[c],!1),e("sanitizeUrl",[d]),e("selfHosted"),e("selfHostedAgentUrl",[d,c]),e("sendEventsWithPostOnly",[d,c],!1),e("siblingSelectors"),e("dropAnonymous"),e("allowedText",[d,c],[]),e("analytics.excludeEvents",[d,c],[]),e("analytics.localStorageUnload",[d,c],!1),e("enableDebugEvents",[d,c]),e("eventPropertyConfigurations"),e("eventPropertyMatchParents",[d,c],!0),e("excludeAllText",[c,d],!1,!0),e("excludeNonGuideAnalytics",[d,c],!1),e("htmlAttributeBlacklist"),e("htmlAttributes"),e("interceptElementRemoval",[d,c],!1),e("interceptPreventDefault",[d,c],!0),e("interceptStopPropagation",[d,c],!0),e("syntheticClicks.elementRemoval",[d,c],!1),e("syntheticClicks.targetChanged",[d,c],!0),e("xhrWhitelist"),e("appAutoOrdering",[d,c]),e("cacheGuides",[d,c],!1),e("cacheGuidesTimeout",[c],6e5),e("delayGuides",[d]),e("disableDesigner",[c,d],!1),e("disableDesignerKeyboardShortcut",[c],!1),e("disableGlobalCSS",[d,c],!1),e("disableGuidePseudoStyles",[d,c],!1),e("disableGuides",[d]),e("disablePrefetch",[d,c]),e("enableDesignerKeyboardShortcut",[d]),e("enableGuideTimeout",[c,d],!1),e("guideCssAssetPath"),e("guideSeenTimeoutLength",[c,d],1e4),e("guideTimeout",[d]),e("guideValidation",[d,c],!1),e("guides.attachPoint",[d]),e("guides.delay",[d]),e("guides.disabled",[d]),e("guides.ejectOnTimeout",[d,c],!1),e("guides.globalScripts",[d,c],[]),e("guides.timeout",[d]),e("guides.tooltip.arrowSize",[d]),e("inlineStyleNonce",[d]),e("leaderKey",[d,c],[]),e("preventCodeInjection",[c,d,l],!1),e("previewModeAssetPath"),e("useAssetHostForDesigner",[d,c],!1),e("storage.allowKeys",[d],"*"),e("disableFeedback",[d]),e("disableFeedbackAutoInit"),e("feedbackSettings",[c],{}),e("pendoFeedback",[c],!1),e("crossAppGuideStorageSuffix",[d,c]),e("enableCrossOriginIsolation",[d,c],!1),e("adoptHost"),e("adoptAnalyticsForwarding"),e("agentDebuggerPluginLoader"),e("allowPartnerAnalyticsForwarding",[d],!1),e("adoptPrioritizeAdoptGuides",[c],!1),e("designerAgentPluginsLoader",[c,d]),e("trainingPartner"),e("errorClickLogging",[c],!1),e("enableAllEmbeddedGuideEvents",[c],!1),e("formValidation",[c],!1),e("performanceMetricsEnabled",[d,c],!0);var f={};function g(e){return h[e]||{name:e}}function m(e,t){if(t)return t=t(),doesExist(e=_.get(t.lookup,(t=e,_.get(t,"key")||_.get(t,"name"))))?e:undefined}function v(e,t){var n=m(e,f[t]);return new w(e.name,n,t)}function y(e,t){return t=t||_.get(e,"supportedSources",[d,c,l]),o(n(t,_.partial(v,e)),function(e){return doesExist(e.value)})}function b(e,t,n){var i=g(e),e=new w(e,t=t||_.get(i,"defaultValue",null),p),n=y(i,n);return i.useAnySource&&doesExist(t)?s(n,function(e){return e.value!==t})||e:a(n)||e}function w(e,t,n){this.name=e,this.value=t,this.source=n}function S(){var n=[];return r(h,function(e){var t;n.push({name:e.name,active:b(e.name),conflicts:(e=g(e=e.name),(t=o(y(e),function(e){return e.source!==p})).length<2||i(u(t,"value"),function(e){return e===t[0].value})?[]:t)})}),n}return f[d]=function(){return{lookup:originalOptions||window.pendo_options,name:d}},f[c]=function(){return{lookup:getPendoConfig(),name:c}},f[l]=function(){return{lookup:pendo,name:l}},w.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"},{audit:S,get(e,t){return b(e,t).value},getLocalConfig(e,t){return arguments.length?b(e,t,[d]).value:deepCopy(originalOptions)},getHostedConfig(e,t){return b(e,t,[c]).value},addOption:e,setLocalConfig(e){originalOptions=e},options:()=>u(h,"name"),sources:{SNIPPET_SRC:d,PENDO_CONFIG_SRC:c,GLOBAL_SRC:l,DEFAULT_SRC:p},validate(t){t.groupCollapsed("Validate Config options"),r(S(),function(e){t.log(String(e.active)),0<e.conflicts.length&&(t.warn("Multiple sources found with values for "+e.name),r(e.conflicts,function(e){t.warn(String(e))}))}),t.groupEnd()}}}();function flux(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),_.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),_.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:_.partial(t,i),subscribeAction:_.partial(t,r),registerModule:function h(n,e){_.isString(n)&&(n=[n]);var t=d(s.state,e,n);_.extend(s.getters,p(e,t,s,n));_.extend(o,c(e,t,n));_.extend(a,l(e,t,s,n));_.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return _.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):_.noop;var n,i}function u(e,t){return(e=t?e.concat([t]):e).join("/")}function d(e,t,n){var i=e;return _.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),_.extend(i,deepCopy(t.state||{}))}function c(e,n,i){var r={};return _.each(e.mutations,function(e,t){r[u(i,t)]=_.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:u(r,e);i.commit(n,t)},dispatch:function(e,t,n){n=n&&n.root?e:u(r,e);return i.dispatch(n,t)},getters:function(e,t){var i=u(t);i&&(i+="/");return _.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return _.each(e.actions,function(e,t){n[u(r,t)]=_.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return _.each(e.getters,function(e,t){a[t]=o[u(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}function createStore(){return flux()}var store=createStore();store.subscribe(function(e,t){});const EXTENSION_INSTALL_TYPE="extension",NATIVE_INSTALL_TYPE="native";function getInstallType(){return ConfigReader.get("installType")||getPendoConfigFromEnclosingScope().installType||NATIVE_INSTALL_TYPE}function isExtensionAgent(){return getInstallType()===EXTENSION_INSTALL_TYPE}function isNativeCode(e){return/native/.test(e)}const msie=determineMSIE(getUA());function pint(e){return parseInt(e,10)}function lowercase(e){return _.isString(e)?e.toLowerCase():e}function isMinimumIEVersion(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e}function getUA(){return(window.navigator||{}).userAgent}function determineMSIE(e){let t=pint((/msie (\d+)/.exec(lowercase(e))||[])[1]);return t=isNaN(t)?pint((/trident\/.*; rv:(\d+)/.exec(lowercase(e))||[])[1]):t}function determineTrident(e,t){let n=pint((/trident\/(\d+)/.exec(lowercase(e))||[])[1]);return n=isNaN(n)&&7==t?3:n}determineTrident(getUA(),msie);const eventSupport={},android=pint((/android (\d+)/.exec(lowercase(getUA()))||[])[1]),boxee=/Boxee/i.test(getUA()),pdocument=window.document||{},documentMode=pdocument.documentMode;let vendorPrefix;const vendorRegex=/^(Moz|webkit|O|ms)(?=[A-Z])/,bodyStyle=pdocument.body&&pdocument.body.style;let transitions=!1,animations=!1,match;if(bodyStyle){for(const eI1 in bodyStyle)if(match=vendorRegex.exec(eI1)){vendorPrefix=(vendorPrefix=match[0]).substr(0,1).toUpperCase()+vendorPrefix.substr(1);break}vendorPrefix=vendorPrefix||"WebkitOpacity"in bodyStyle&&"webkit",transitions=!!("transition"in bodyStyle||vendorPrefix+"Transition"in bodyStyle),animations=!!("animation"in bodyStyle||vendorPrefix+"Animation"in bodyStyle),!android||transitions&&animations||(transitions=_.isString(pdocument.body.style.webkitTransition),animations=_.isString(pdocument.body.style.webkitAnimation))}const isChromeExtension=window.chrome&&window.chrome.runtime&&window.chrome.runtime.id,shouldWrapNativeHistory=_.memoize(function shouldWrapNativeHistory(){var e=window.history&&window.history.pushState&&window.history.replaceState,t=window.history&&_.isFunction(Object.isFrozen)&&Object.isFrozen(window.history),n=window.history&&_.isFunction(Object.getOwnPropertyDescriptors)&&Object.getOwnPropertyDescriptors(window.history),n=n&&_.get(n,"pushState.writable",!0)&&_.get(n,"replaceState.writable",!0),i=!(android<4);return!(!e||t||!n||!i||boxee||isExtensionAgent())});function shouldWrapHashChange(){var e="onhashchange"in window,t=!documentMode||7<documentMode;return!(!e||!t||isExtensionAgent())}function isMobileUserAgent(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(getUA())}function isSafari(e=getUA()){return 0<=e.indexOf("Safari")&&0<=!e.indexOf("Chrome")}const sniffer={supportsHistoryApi:shouldWrapNativeHistory,supportsHashChange:shouldWrapHashChange,hasEvent(e){var t;return("input"!=e||9!=msie)&&(_.isUndefined(eventSupport[e])&&(t=pdocument.createElement("div"),eventSupport[e]="on"+e in t),eventSupport[e])},vendorPrefix:vendorPrefix,transitions:transitions,animations:animations,android:android,msie:msie,msieDocumentMode:documentMode,safari:isSafari(),sri:"integrity"in document.createElement("script"),addEventListener:_.isFunction(window.addEventListener),MutationObserver:isNativeCode(window.MutationObserver),isMinimumIEVersion:isMinimumIEVersion,isMobileUserAgent:_.memoize(isMobileUserAgent),isChromeExtension:isChromeExtension};var q,encodeURIComponent=_.isFunction(window.encodeURIComponent)?window.encodeURIComponent:_.identity,ayepromise=function(){var e={},d=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},c=function(n,i){var r=e.defer(),o=function(n,i){setTimeout$1(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===l?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},l=1;return e.defer=function(){var n,i=0,r=[],o=function(e,t){i=e,n=t,_.each(r,function(e){e.handle(i,n)}),r=null},a=function(e){o(2,e)},t=function(e,t){e=c(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},s=function(e){var t=d();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?s(t):o(l,e)},e=d();return{resolve:e(u),reject:e(a),promise:{then:t,"catch":function(e){return t(null,e)}}}},e}();function qAllObject(e){var n,i=q.defer(),r=_.isArray(e)?[]:{},o=_.size(e);return o?(n=!1,_.each(e,function(e,t){q.resolve(e).then(function(e){r[t]=e,0!=--o||n||i.resolve(r)},function(e){n||(n=!0,i.reject(e))})}),i.promise):q.resolve(e)}!isExtensionAgent()&&sniffer.isMinimumIEVersion(11)?q={all:function(e){return _.isArray(e)?Promise$2.all.apply(Promise$2,arguments):qAllObject(e)},reject:function(){return Promise$2.reject.apply(Promise$2,arguments)},resolve:function(){return Promise$2.resolve.apply(Promise$2,arguments)},defer:function(){var n={};return n.promise=new Promise$2(function(e,t){n.resolve=e,n.reject=t}),n}}:((q=ayepromise).all=qAllObject,q.reject=function(e){var t=q.defer();return t.reject(e),t.promise},q.resolve=function(e){var t=q.defer();return t.resolve(e),t.promise}),function(){function i(){return window.XMLHttpRequest||ActiveXObject}function r(e){var t=q.defer(),n=new(i())("MSXML2.XMLHTTP.3.0");return n.open(e.method||"GET",e.url,!e.sync),_.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 o(e,t,n){return r({method:"POST",url:e,data:t,headers:n})}_.extend(r,{get:function(e,t){return r({method:"GET",url:e,headers:t})},post:o,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",o(e,t=JSON.stringify(t),n)},urlFor:function(e,t,n){if(_.isArray(t))i=t;else{if(!_.isObject(t))return e||"";i=_.keys(t)}var i=_.map(i,function(e){return _.isArray(t)?encodeURIComponent(e):encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&"),r=(e=e.split("#",2))[0],o=_.contains(r,"?");return[r,i?(o?"&":"?")+i:"",(n=void 0!==n?n:e[1])?"#"+n:""].join("")},supported(){return void 0!==i()}})}();var SEND_INTERVAL=12e4,ENCODED_EVENT_MAX_LENGTH=1900;class DevlogTransport{constructor(e,t){this.pendo=e,this.pluginAPI=t}buildGetUrl(e,t){var n={},i=this.pluginAPI.agent.treatAsAdoptPartner(),r=this.pendo.get_account_id(),i=(i&&r&&"ACCOUNT-UNIQUE-ID"!==r&&(n.acc=this.pluginAPI.util.base64EncodeString(r)),this.pluginAPI.agent.getJwtInfoCopy()),r=(this.pendo._.isEmpty(i)||this.pendo._.extend(n,i),n.jzb=t,this.pendo._.map(n,(e,t)=>t+"="+e).join("&"));return""+e+(-1!==e.indexOf("?")?"&":"?")+r}get(e,t){return t.method="GET",this.pluginAPI.transmit.fetchKeepalive.supported()?this.pluginAPI.transmit.fetchKeepalive(e,t):this.pendo.ajax.get(e)}sendRequestWithGet({url:e,jzb:t}){e=this.buildGetUrl(e,t);return this.get(e,{headers:{"Content-Type":"application/octet-stream"}})}post(e,t){return t.method="POST",t.keepalive&&this.pluginAPI.transmit.fetchKeepalive.supported()?this.pluginAPI.transmit.fetchKeepalive(e,t):t.keepalive&&this.pluginAPI.transmit.sendBeacon.supported()?this.pluginAPI.transmit.sendBeacon(e,new Blob([t.body]))?Promise$2.resolve():Promise$2.reject(new Error("sendBeacon failed to send devlog data")):this.pendo.ajax.post(e,t.body)}sendRequestWithPost({url:e,jzb:t},n){var i=this.pluginAPI.agent.getJwtInfoCopy(),t={events:t,browser_time:this.pluginAPI.util.getNow()},r=this.pluginAPI.agent.treatAsAdoptPartner(),o=this.pendo.get_account_id(),r=(r&&o&&"ACCOUNT-UNIQUE-ID"!==o&&(t.acc=this.pluginAPI.util.base64EncodeString(o)),JSON.stringify(this.pendo._.extend(t,i)));return this.post(e,{body:r,headers:{"Content-Type":"application/json"},keepalive:n})}sendRequest({url:e,jzb:t},n){return t.length<=ENCODED_EVENT_MAX_LENGTH&&!this.pluginAPI.ConfigReader.get("sendEventsWithPostOnly")?this.sendRequestWithGet({url:e,jzb:t}):this.sendRequestWithPost({url:e,jzb:t},n)}}function ConsoleCapture(){let a,s,u,d,i,n,r,c,l=!1;const o="captureConsoleLogs",e=["log","warn","error","info"],p="console";let h="";return{name:"ConsoleCapture",initialize:function(e,t){s=e._;t=(a=t).ConfigReader,t.addOption(o,[t.sources.PENDO_CONFIG_SRC],!1),t=t.get(o);t&&(u=e,d=new DevlogBuffer(e,a),r=new DevlogTransport(e,a),i=new SendQueue(r.sendRequest.bind(r)),n=setInterval(()=>{i.failed()||C()},SEND_INTERVAL),i.start(),a.Events.ready.on(w),a.Events["recording:unpaused"].on(y),a.Events["recording:paused"].on(b),a.Events.appUnloaded.on(g),a.Events.appHidden.on(f),a.Events["ptm:paused"].on(m),a.Events["ptm:unpaused"].on(v))},teardown:function(){C({unload:!0}),n&&clearInterval(n);i&&i.stop();d&&d.clear();a.Events.appHidden.off(f),a.Events.appUnloaded.off(g),a.Events["ptm:paused"].off(m),a.Events["ptm:unpaused"].off(v),a.Events["recording:unpaused"].off(y),a.Events["recording:paused"].off(b),a.detachEventInternal(window,"securitypolicyviolation",E),s.each(e,function(e){if(!console[e])return s.noop;e=console[e]._pendoUnwrap;s.isFunction(e)&&e()})},addIntercepts:S,createConsoleEvent:I,captureStackTrace:_,send:C,setCaptureState:t,recordingStarted:y,recordingStopped:b,onAppHidden:f,onAppUnloaded:g,onPtmPaused:m,onPtmUnpaused:v,securityPolicyViolationFn:E,get isCapturingConsoleLogs(){return l},get buffer(){return d},get sendQueue(){return i},get isPtmPaused(){return c}};function f(){C({hidden:!0})}function g(){C({unload:!0})}function m(){c=!0}function v(){if(c=!1,!d.isEmpty()){for(const e of d.events)a.Events.eventCaptured.trigger(e);C()}}function t({shouldCapture:e=!1,reason:t=""}={}){e!==l&&(l=e,a.log.info("[ConsoleCapture] Console log capture "+(e?"started":"stopped")+(t?": "+t:"")))}function y(){t({shouldCapture:!0,reason:"recording started"})}function b(){t({shouldCapture:!1,reason:"recording stopped"})}function w(){S(),a.attachEventInternal(window,"securitypolicyviolation",E)}function S(){s.each(e,function(n){const e=console[n];e&&(console[n]=s.wrap(e,function(e){var t=s.toArray(arguments).slice(1);e.apply(console,t),I(t,n)}),console[n]._pendoUnwrap=function(){console[n]=e})})}function E(e){var t,n,i,r;e&&"object"==typeof e&&({blockedURI:e,violatedDirective:t,effectiveDirective:n,disposition:i,originalPolicy:r}=e,I([createCspViolationMessage(e,t||n,e="report"===i,r)],e?"warn":"error",{skipStackTrace:!0,skipScrubPII:!0}))}function I(t,n,{skipStackTrace:i=!1,skipScrubPII:r=!1}={}){if(l&&t&&0!==t.length&&s.contains(e,n)){t=s.compact(s.map(t,e=>{let t;try{t=stringify(e)}catch(n){a.log.error("Error stringifying arg: ",n)}return t})).join(" ");if(t){let e="";i||(e=_("error"===n?4:1));var o,i=generateLogKey(n,t=truncate(t),e=truncate(e));if(i!==h||!d.lastEvent)return o=createDevLogEnvelope(a,u),o=Object.assign(Object.assign({},o),{subType:p,devLogLevel:"log"===n?"info":n,devLogMessage:r?t:scrubPII({string:t,_:s}),devLogTrace:e,devLogCount:1}),d.hasTokenAvailable()&&(c||a.Events.eventCaptured.trigger(o),d.push(o),n=i,h=n),o;d.lastEvent.devLogCount++}}}function _(e){try{var t=ErrorStackParser.parse(new Error,e);return s.map(t,e=>e.toString()).join("\n")}catch(n){return""}}function C({unload:e=!1,hidden:t=!1}={}){var n;d&&!d.isEmpty()&&(u.isSendingEvents()?(n=d.pack())&&0!==n.length&&(e||t?i.drain(n,e):i.push(...n)):d.clear())}}function NetworkCapture(){let o,a,n={},i,r,s,u,d,c,l,p,h=!1;const f="captureNetworkRequests",D="network",t="networkLogs",g="networkLogs.allowedRequestHeaders",m="networkLogs.allowedResponseHeaders",F="networkLogs.captureRequestBody",U="networkLogs.captureResponseBody",v={"content-type":!0,"content-length":!0,accept:!0,"accept-language":!0},y={"cache-control":!0,"content-length":!0,"content-type":!0,"content-language":!0};return{name:"NetworkCapture",initialize:function(e,t){o=t,a=e;t=o.ConfigReader,t.addOption(f,[t.sources.PENDO_CONFIG_SRC],!1),t=t.get(f);t&&(i=new DevlogBuffer(e,o),u=new DevlogTransport(e,o),r=new SendQueue(u.sendRequest.bind(u)),b(),w(g,v),w(m,y),S(),s=setInterval(()=>{r.failed()||P()},SEND_INTERVAL),r.start(),o.Events.ready.on(k),o.Events["recording:unpaused"].on(x),o.Events["recording:paused"].on(T),o.Events["ptm:paused"].on(E),o.Events["ptm:unpaused"].on(I),o.Events.appHidden.on(_),o.Events.appUnloaded.on(C),p=o.transmit.buildBaseDataUrl(DEV_LOG_TYPE,a.apiKey))},teardown:function(){s&&clearInterval(s);r&&r.stop();i&&i.clear();o.NetworkRequest.off({request:A,response:R,error:O}),n={},o.Events["ptm:paused"].off(E),o.Events["ptm:unpaused"].off(I),o.Events.appHidden.off(_),o.Events.appUnloaded.off(C),o.Events["recording:unpaused"].off(x),o.Events["recording:paused"].off(T)},handleRequest:A,handleResponse:R,handleError:O,startCapture:k,createNetworkEvent:B,send:P,onPtmPaused:E,onPtmUnpaused:I,onAppHidden:_,onAppUnloaded:C,setCaptureState:e,recordingStarted:x,recordingStopped:T,addConfigOptions:b,processHeaderConfig:w,extractHeaders:N,setupBodyCallbacks:S,processBody:M,processRequestBody:L,processResponseBody:G,get isCapturingNetworkLogs(){return h},get requestMap(){return n},get buffer(){return i},get sendQueue(){return r},get isPtmPaused(){return d},get allowedRequestHeaders(){return v},get allowedResponseHeaders(){return y},get requestBodyCb(){return c},get responseBodyCb(){return l}};function b(){var e=o["ConfigReader"];e.addOption(t,[e.sources.SNIPPET_SRC],{}),e.addOption(g,[e.sources.SNIPPET_SRC],[]),e.addOption(m,[e.sources.SNIPPET_SRC],[]),e.addOption(F,[e.sources.SNIPPET_SRC],undefined),e.addOption(U,[e.sources.SNIPPET_SRC],undefined)}function w(e,t){e=o.ConfigReader.get(e);e&&0!==e.length&&a._.each(e,e=>{e&&"string"==typeof e&&(t[e.toLowerCase()]=!0)})}function S(){var e=o.ConfigReader.get(t);e&&(a._.isFunction(e.captureRequestBody)&&(c=e.captureRequestBody),a._.isFunction(e.captureResponseBody))&&(l=e.captureResponseBody)}function E(){d=!0}function I(){if(d=!1,!i.isEmpty()){for(const e of i.events)o.Events.eventCaptured.trigger(e);P()}}function _(){P({hidden:!0})}function C(){P({unload:!0})}function e({shouldCapture:e=!1,reason:t=""}={}){e!==h&&(h=e,o.log.info("[NetworkCapture] Network request capture "+(e?"started":"stopped")+(t?": "+t:"")))}function x(){return e({shouldCapture:!0,reason:"recording started"})}function T(){return e({shouldCapture:!1,reason:"recording stopped"})}function k(){o.NetworkRequest.on({request:A,response:R,error:O})}function A(e){h&&(n[e.requestId]=e)}function R(e){var t;h&&e&&(t=n[e.requestId])&&(-1!==t.url.indexOf(p)&&200===e.status||i.hasTokenAvailable()&&(t=B({request:t,response:e}),d||o.Events.eventCaptured.trigger(t),i.push(t)),delete n[e.requestId])}function O({error:e,context:t}){h&&(e.requestId&&n[e.requestId]&&delete n[e.requestId],-1!==t.indexOf("fetch")&&o.log.debug("[NetworkCapture] Fetch tracking failed:",e),-1!==t.indexOf("xhr"))&&o.log.debug("[NetworkCapture] XHR tracking failed:",e)}function N(i,r){var{keys:e,reduce:t}=a._;return i&&r?t(e(i),(e,t)=>{var n=t.toLowerCase();return r[n]&&e.push(t+": "+i[t]),e},[]):[]}function M(e,t){return e&&"string"==typeof e?truncate(maskSensitiveFields({string:e,contentType:t,_:a._}),!0):""}function L({request:e}){if(!e||!e.body||!c)return"";try{return M(c(e.body,{request:e}),a._.get(e,"headers.content-type",""))}catch(t){return o.log.error("[NetworkCapture] Error processing request body",t),"[Failed to process request body]"}}function G({response:e}){if(!e||!e.body||!l)return"";try{return M(l(e.body,{response:e}),a._.get(e,"headers.content-type",""))}catch(t){return o.log.error("[NetworkCapture] Error processing response body",t),"[Failed to process response body]"}}function B({request:e,response:t}){var n=createDevLogEnvelope(o,a),i=N(e.headers,v),r=N(t.headers,y),n=Object.assign(Object.assign({},n),{subType:D,devLogMethod:e.method,devLogStatusCode:t.status,devLogRequestUrl:e.url,devLogRequestHeaders:i,devLogResponseHeaders:r,devLogCount:1});return c&&(n.devLogRequestBody=L({request:e})),l&&(n.devLogResponseBody=G({response:t})),n}function P({unload:e=!1,hidden:t=!1}={}){var n;i&&!i.isEmpty()&&(a.isSendingEvents()?(n=i.pack(),e||t?r.drain(n,e):r.push(...n)):i.clear())}}export{ConsoleCapture,Feedback,GuideMarkdown,NetworkCapture,createReplayPlugin as Replay,TextCapture,VocPortal,loadAgent};