/*! For license information please see output.js.LICENSE.txt */
!function(){var e={408:function(e,t){"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.iterator;var n={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},r=Object.assign,s={};function i(e,t,r){this.props=e,this.context=t,this.refs=s,this.updater=r||n}function o(){}function a(e,t,r){this.props=e,this.context=t,this.refs=s,this.updater=r||n}i.prototype.isReactComponent={},i.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},i.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},o.prototype=i.prototype;var c=a.prototype=new o;c.constructor=a,r(c,i.prototype),c.isPureReactComponent=!0;Array.isArray,Object.prototype.hasOwnProperty;t.version="18.2.0"},294:function(e,t,n){"use strict";e.exports=n(408)},311:function(e){var t;t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var s=t[r]={exports:{},id:r,loaded:!1};return e[r].call(s.exports,s,s.exports,n),s.loaded=!0,s.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=h(n(1)),i=h(n(2)),o=h(n(8)),a=h(n(9)),c=h(n(10)),u=h(n(11)),l=h(n(16)),d=h(n(17)),p=h(n(18));function h(e){return e&&e.__esModule?e:{default:e}}var f=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this._name="secure-ls",this.utils=s.default,this.constants=i.default,this.Base64=a.default,this.LZString=c.default,this.AES=u.default,this.DES=l.default,this.RABBIT=d.default,this.RC4=p.default,this.enc=o.default,this.config={isCompression:!0,encodingType:i.default.EncrytionTypes.BASE64,encryptionSecret:t.encryptionSecret,encryptionNamespace:t.encryptionNamespace},this.config.isCompression=void 0===t.isCompression||t.isCompression,this.config.encodingType=void 0!==t.encodingType||""===t.encodingType?t.encodingType.toLowerCase():i.default.EncrytionTypes.BASE64,this.ls=localStorage,this.init()}return r(e,[{key:"init",value:function(){var e=this.getMetaData();this.WarningEnum=this.constants.WarningEnum,this.WarningTypes=this.constants.WarningTypes,this.EncrytionTypes=this.constants.EncrytionTypes,this._isBase64=this._isBase64EncryptionType(),this._isAES=this._isAESEncryptionType(),this._isDES=this._isDESEncryptionType(),this._isRabbit=this._isRabbitEncryptionType(),this._isRC4=this._isRC4EncryptionType(),this._isCompression=this._isDataCompressionEnabled(),this.utils.allKeys=e.keys||this.resetAllKeys()}},{key:"_isBase64EncryptionType",value:function(){return a.default&&(void 0===this.config.encodingType||this.config.encodingType===this.constants.EncrytionTypes.BASE64)}},{key:"_isAESEncryptionType",value:function(){return u.default&&this.config.encodingType===this.constants.EncrytionTypes.AES}},{key:"_isDESEncryptionType",value:function(){return l.default&&this.config.encodingType===this.constants.EncrytionTypes.DES}},{key:"_isRabbitEncryptionType",value:function(){return d.default&&this.config.encodingType===this.constants.EncrytionTypes.RABBIT}},{key:"_isRC4EncryptionType",value:function(){return p.default&&this.config.encodingType===this.constants.EncrytionTypes.RC4}},{key:"_isDataCompressionEnabled",value:function(){return this.config.isCompression}},{key:"getEncryptionSecret",value:function(e){var t=this.getMetaData(),n=this.utils.getObjectFromKey(t.keys,e);n&&(this._isAES||this._isDES||this._isRabbit||this._isRC4)&&(void 0===this.config.encryptionSecret?(this.utils.encryptionSecret=n.s,this.utils.encryptionSecret||(this.utils.encryptionSecret=this.utils.generateSecretKey(),this.setMetaData())):this.utils.encryptionSecret=this.config.encryptionSecret||n.s||"")}},{key:"get",value:function(e,t){var n,r="",s="",i=void 0,h=void 0;if(!this.utils.is(e))return this.utils.warn(this.WarningEnum.KEY_NOT_PROVIDED),s;if(!(n=this.getDataFromLocalStorage(e)))return s;i=n,(this._isCompression||t)&&(i=c.default.decompressFromUTF16(n)),r=i,this._isBase64||t?r=a.default.decode(i):(this.getEncryptionSecret(e),this._isAES?h=u.default.decrypt(i.toString(),this.utils.encryptionSecret):this._isDES?h=l.default.decrypt(i.toString(),this.utils.encryptionSecret):this._isRabbit?h=d.default.decrypt(i.toString(),this.utils.encryptionSecret):this._isRC4&&(h=p.default.decrypt(i.toString(),this.utils.encryptionSecret)),h&&(r=h.toString(o.default._Utf8)));try{s=JSON.parse(r)}catch(e){throw new Error("Could not parse JSON")}return s}},{key:"getDataFromLocalStorage",value:function(e){return this.ls.getItem(e,!0)}},{key:"getAllKeys",value:function(){var e=this.getMetaData();return this.utils.extractKeyNames(e)||[]}},{key:"set",value:function(e,t){var n;this.utils.is(e)?(this.getEncryptionSecret(e),String(e)!==String(this.utils.metaKey)&&(this.utils.isKeyPresent(e)||(this.utils.addToKeysList(e),this.setMetaData())),n=this.processData(t),this.setDataToLocalStorage(e,n)):this.utils.warn(this.WarningEnum.KEY_NOT_PROVIDED)}},{key:"setDataToLocalStorage",value:function(e,t){this.ls.setItem(e,t)}},{key:"remove",value:function(e){this.utils.is(e)?e===this.utils.metaKey&&this.getAllKeys().length?this.utils.warn(this.WarningEnum.META_KEY_REMOVE):(this.utils.isKeyPresent(e)&&(this.utils.removeFromKeysList(e),this.setMetaData()),this.ls.removeItem(e)):this.utils.warn(this.WarningEnum.KEY_NOT_PROVIDED)}},{key:"removeAll",value:function(){var e,t=void 0;for(e=this.getAllKeys(),t=0;t<e.length;t++)this.ls.removeItem(e[t]);this.ls.removeItem(this.utils.metaKey),this.resetAllKeys()}},{key:"clear",value:function(){this.ls.clear(),this.resetAllKeys()}},{key:"resetAllKeys",value:function(){return this.utils.allKeys=[],[]}},{key:"processData",value:function(e,t){if(null==e||""===e)return"";var n=void 0,r=void 0,s=void 0;try{n=JSON.stringify(e)}catch(e){throw new Error("Could not stringify data.")}return r=n,this._isBase64||t?r=a.default.encode(n):(this._isAES?r=u.default.encrypt(n,this.utils.encryptionSecret):this._isDES?r=l.default.encrypt(n,this.utils.encryptionSecret):this._isRabbit?r=d.default.encrypt(n,this.utils.encryptionSecret):this._isRC4&&(r=p.default.encrypt(n,this.utils.encryptionSecret)),r=r&&r.toString()),s=r,(this._isCompression||t)&&(s=c.default.compressToUTF16(r)),s}},{key:"setMetaData",value:function(){var e=this.processData({keys:this.utils.allKeys},!0);this.setDataToLocalStorage(this.getMetaKey(),e)}},{key:"getMetaData",value:function(){return this.get(this.getMetaKey(),!0)||{}}},{key:"getMetaKey",value:function(){return this.utils.metaKey+(this.config.encryptionNamespace?"__"+this.config.encryptionNamespace:"")}}]),e}();t.default=f,e.exports=t.default},function(e,t,n){"use strict";var r=o(n(2)),s=o(n(3)),i=o(n(4));function o(e){return e&&e.__esModule?e:{default:e}}var a={metaKey:"_secure__ls__metadata",encryptionSecret:"",secretPhrase:"s3cr3t$#@135^&*246",allKeys:[],is:function(e){return!!e},warn:function(e){e=e||r.default.WarningEnum.DEFAULT_TEXT,console.warn(r.default.WarningTypes[e])},generateSecretKey:function(){var e=s.default.random(16),t=(0,i.default)(this.secretPhrase,e,{keySize:4});return t&&t.toString()},getObjectFromKey:function(e,t){if(!e||!e.length)return{};var n=void 0,r={};for(n=0;n<e.length;n++)if(e[n].k===t){r=e[n];break}return r},extractKeyNames:function(e){return e&&e.keys&&e.keys.length?e.keys.map((function(e){return e.k})):[]},getAllKeys:function(){return this.allKeys},isKeyPresent:function(e){for(var t=!1,n=0;n<this.allKeys.length;n++)if(String(this.allKeys[n].k)===String(e)){t=!0;break}return t},addToKeysList:function(e){this.allKeys.push({k:e,s:this.encryptionSecret})},removeFromKeysList:function(e){var t=void 0,n=-1;for(t=0;t<this.allKeys.length;t++)if(this.allKeys[t].k===e){n=t;break}return-1!==n&&this.allKeys.splice(n,1),n}};e.exports=a},function(e,t){"use strict";var n={KEY_NOT_PROVIDED:"keyNotProvided",META_KEY_REMOVE:"metaKeyRemove",DEFAULT_TEXT:"defaultText"},r={};r[n.KEY_NOT_PROVIDED]="Secure LS: Key not provided. Aborting operation!",r[n.META_KEY_REMOVE]="Secure LS: Meta key can not be removed\nunless all keys created by Secure LS are removed!",r[n.DEFAULT_TEXT]="Unexpected output";var s={WarningEnum:n,WarningTypes:r,EncrytionTypes:{BASE64:"base64",AES:"aes",DES:"des",RABBIT:"rabbit",RC4:"rc4"}};e.exports=s},function(e,t){"use strict";var n={random:function(e){for(var t,n=[],r=function(e){var t=987654321,n=4294967295;return function(){var r=((t=36969*(65535&t)+(t>>16)&n)<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n;return r/=4294967296,(r+=.5)*(Math.random()>.5?1:-1)}},s=0;s<e;s+=4){var i=r(4294967296*(t||Math.random()));t=987654071*i(),n.push(4294967296*i()|0)}return new this.Set(n,e)},Set:function(e,t){e=this.words=e||[],this.sigBytes=void 0!==t?t:8*e.length}};e.exports=n},function(e,t,n){var r,s,i,o,a,c,u,l,d;e.exports=(d=n(5),n(6),n(7),i=(s=(r=d).lib).Base,o=s.WordArray,c=(a=r.algo).SHA1,u=a.HMAC,l=a.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:c,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=u.create(n.hasher,e),s=o.create(),i=o.create([1]),a=s.words,c=i.words,l=n.keySize,d=n.iterations;a.length<l;){var p=r.update(t).finalize(i);r.reset();for(var h=p.words,f=h.length,m=p,g=1;g<d;g++){m=r.finalize(m),r.reset();for(var y=m.words,_=0;_<f;_++)h[_]^=y[_]}s.concat(p),c[0]++}return s.sigBytes=4*l,s}}),r.PBKDF2=function(e,t,n){return l.create(n).compute(e,t)},d.PBKDF2)},function(e,t,n){var r;e.exports=(r=r||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},s=r.lib={},i=s.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},o=s.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,s=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<s;i++){var o=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=o<<24-(r+i)%4*8}else for(i=0;i<s;i+=4)t[r+i>>>2]=n[i>>>2];return this.sigBytes+=s,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],s=function(t){var n=987654321,r=4294967295;return function(){var s=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return s/=4294967296,(s+=.5)*(e.random()>.5?1:-1)}},i=0;i<t;i+=4){var a=s(4294967296*(n||e.random()));n=987654071*a(),r.push(4294967296*a()|0)}return new o.init(r,t)}}),a=r.enc={},c=a.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],s=0;s<n;s++){var i=t[s>>>2]>>>24-s%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new o.init(n,t/2)}},u=a.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],s=0;s<n;s++){var i=t[s>>>2]>>>24-s%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new o.init(n,t)}},l=a.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},d=s.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,s=n.sigBytes,i=this.blockSize,a=s/(4*i),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*i,u=e.min(4*c,s);if(c){for(var l=0;l<c;l+=i)this._doProcessBlock(r,l);var d=r.splice(0,c);n.sigBytes-=u}return new o.init(d,u)},clone:function(){var e=i.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),p=(s.Hasher=d.extend({cfg:i.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new p.HMAC.init(e,n).finalize(t)}}}),r.algo={});return r}(Math),r)},function(e,t,n){var r,s,i,o,a,c,u,l;e.exports=(s=(r=l=n(5)).lib,i=s.WordArray,o=s.Hasher,a=r.algo,c=[],u=a.SHA1=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],s=n[1],i=n[2],o=n[3],a=n[4],u=0;u<80;u++){if(u<16)c[u]=0|e[t+u];else{var l=c[u-3]^c[u-8]^c[u-14]^c[u-16];c[u]=l<<1|l>>>31}var d=(r<<5|r>>>27)+a+c[u];d+=u<20?1518500249+(s&i|~s&o):u<40?1859775393+(s^i^o):u<60?(s&i|s&o|i&o)-1894007588:(s^i^o)-899497514,a=o,o=i,i=s<<30|s>>>2,s=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+s|0,n[2]=n[2]+i|0,n[3]=n[3]+o|0,n[4]=n[4]+a|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}}),r.SHA1=o._createHelper(u),r.HmacSHA1=o._createHmacHelper(u),l.SHA1)},function(e,t,n){var r,s,i;e.exports=(s=(r=n(5)).lib.Base,i=r.enc.Utf8,void(r.algo.HMAC=s.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var s=this._oKey=t.clone(),o=this._iKey=t.clone(),a=s.words,c=o.words,u=0;u<n;u++)a[u]^=1549556828,c[u]^=909522486;s.sigBytes=o.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))},function(e,t){"use strict";var n={};n.Latin1={stringify:function(e){var t=e.words,n=e.sigBytes,r=[],s=void 0,i=void 0;for(s=0;s<n;s++)i=t[s>>>2]>>>24-s%4*8&255,r.push(String.fromCharCode(i));return r.join("")}},n._Utf8={stringify:function(e){try{return decodeURIComponent(escape(n.Latin1.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}}},e.exports=n},function(e,t){"use strict";var n={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t="",r=void 0,s=void 0,i=void 0,o=void 0,a=void 0,c=void 0,u=void 0,l=0;for(e=n._utf8Encode(e);l<e.length;)o=(r=e.charCodeAt(l++))>>2,a=(3&r)<<4|(s=e.charCodeAt(l++))>>4,c=(15&s)<<2|(i=e.charCodeAt(l++))>>6,u=63&i,isNaN(s)?c=u=64:isNaN(i)&&(u=64),t=t+this._keyStr.charAt(o)+this._keyStr.charAt(a)+this._keyStr.charAt(c)+this._keyStr.charAt(u);return t},decode:function(e){var t="",r=void 0,s=void 0,i=void 0,o=void 0,a=void 0,c=void 0,u=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");u<e.length;)r=this._keyStr.indexOf(e.charAt(u++))<<2|(o=this._keyStr.indexOf(e.charAt(u++)))>>4,s=(15&o)<<4|(a=this._keyStr.indexOf(e.charAt(u++)))>>2,i=(3&a)<<6|(c=this._keyStr.indexOf(e.charAt(u++))),t+=String.fromCharCode(r),64!==a&&(t+=String.fromCharCode(s)),64!==c&&(t+=String.fromCharCode(i));return n._utf8Decode(t)},_utf8Encode:function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r>127&&r<2048?(t+=String.fromCharCode(r>>6|192),t+=String.fromCharCode(63&r|128)):(t+=String.fromCharCode(r>>12|224),t+=String.fromCharCode(r>>6&63|128),t+=String.fromCharCode(63&r|128))}return t},_utf8Decode:function(e){var t="",n=0,r=void 0,s=void 0,i=void 0;for(r=s=0;n<e.length;)(r=e.charCodeAt(n))<128?(t+=String.fromCharCode(r),n++):r>191&&r<224?(s=e.charCodeAt(n+1),t+=String.fromCharCode((31&r)<<6|63&s),n+=2):(s=e.charCodeAt(n+1),i=e.charCodeAt(n+2),t+=String.fromCharCode((15&r)<<12|(63&s)<<6|63&i),n+=3);return t}};e.exports=n},function(e,t,n){var r,s=function(){var e=String.fromCharCode,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",r={};function s(e,t){if(!r[e]){r[e]={};for(var n=0;n<e.length;n++)r[e][e.charAt(n)]=n}return r[e][t]}var i={compressToBase64:function(e){if(null==e)return"";var n=i._compress(e,6,(function(e){return t.charAt(e)}));switch(n.length%4){default:case 0:return n;case 1:return n+"===";case 2:return n+"==";case 3:return n+"="}},decompressFromBase64:function(e){return null==e?"":""==e?null:i._decompress(e.length,32,(function(n){return s(t,e.charAt(n))}))},compressToUTF16:function(t){return null==t?"":i._compress(t,15,(function(t){return e(t+32)}))+" "},decompressFromUTF16:function(e){return null==e?"":""==e?null:i._decompress(e.length,16384,(function(t){return e.charCodeAt(t)-32}))},compressToUint8Array:function(e){for(var t=i.compress(e),n=new Uint8Array(2*t.length),r=0,s=t.length;r<s;r++){var o=t.charCodeAt(r);n[2*r]=o>>>8,n[2*r+1]=o%256}return n},decompressFromUint8Array:function(t){if(null==t)return i.decompress(t);for(var n=new Array(t.length/2),r=0,s=n.length;r<s;r++)n[r]=256*t[2*r]+t[2*r+1];var o=[];return n.forEach((function(t){o.push(e(t))})),i.decompress(o.join(""))},compressToEncodedURIComponent:function(e){return null==e?"":i._compress(e,6,(function(e){return n.charAt(e)}))},decompressFromEncodedURIComponent:function(e){return null==e?"":""==e?null:(e=e.replace(/ /g,"+"),i._decompress(e.length,32,(function(t){return s(n,e.charAt(t))})))},compress:function(t){return i._compress(t,16,(function(t){return e(t)}))},_compress:function(e,t,n){if(null==e)return"";var r,s,i,o={},a={},c="",u="",l="",d=2,p=3,h=2,f=[],m=0,g=0;for(i=0;i<e.length;i+=1)if(c=e.charAt(i),Object.prototype.hasOwnProperty.call(o,c)||(o[c]=p++,a[c]=!0),u=l+c,Object.prototype.hasOwnProperty.call(o,u))l=u;else{if(Object.prototype.hasOwnProperty.call(a,l)){if(l.charCodeAt(0)<256){for(r=0;r<h;r++)m<<=1,g==t-1?(g=0,f.push(n(m)),m=0):g++;for(s=l.charCodeAt(0),r=0;r<8;r++)m=m<<1|1&s,g==t-1?(g=0,f.push(n(m)),m=0):g++,s>>=1}else{for(s=1,r=0;r<h;r++)m=m<<1|s,g==t-1?(g=0,f.push(n(m)),m=0):g++,s=0;for(s=l.charCodeAt(0),r=0;r<16;r++)m=m<<1|1&s,g==t-1?(g=0,f.push(n(m)),m=0):g++,s>>=1}0==--d&&(d=Math.pow(2,h),h++),delete a[l]}else for(s=o[l],r=0;r<h;r++)m=m<<1|1&s,g==t-1?(g=0,f.push(n(m)),m=0):g++,s>>=1;0==--d&&(d=Math.pow(2,h),h++),o[u]=p++,l=String(c)}if(""!==l){if(Object.prototype.hasOwnProperty.call(a,l)){if(l.charCodeAt(0)<256){for(r=0;r<h;r++)m<<=1,g==t-1?(g=0,f.push(n(m)),m=0):g++;for(s=l.charCodeAt(0),r=0;r<8;r++)m=m<<1|1&s,g==t-1?(g=0,f.push(n(m)),m=0):g++,s>>=1}else{for(s=1,r=0;r<h;r++)m=m<<1|s,g==t-1?(g=0,f.push(n(m)),m=0):g++,s=0;for(s=l.charCodeAt(0),r=0;r<16;r++)m=m<<1|1&s,g==t-1?(g=0,f.push(n(m)),m=0):g++,s>>=1}0==--d&&(d=Math.pow(2,h),h++),delete a[l]}else for(s=o[l],r=0;r<h;r++)m=m<<1|1&s,g==t-1?(g=0,f.push(n(m)),m=0):g++,s>>=1;0==--d&&(d=Math.pow(2,h),h++)}for(s=2,r=0;r<h;r++)m=m<<1|1&s,g==t-1?(g=0,f.push(n(m)),m=0):g++,s>>=1;for(;;){if(m<<=1,g==t-1){f.push(n(m));break}g++}return f.join("")},decompress:function(e){return null==e?"":""==e?null:i._decompress(e.length,32768,(function(t){return e.charCodeAt(t)}))},_decompress:function(t,n,r){var s,i,o,a,c,u,l,d=[],p=4,h=4,f=3,m="",g=[],y={val:r(0),position:n,index:1};for(s=0;s<3;s+=1)d[s]=s;for(o=0,c=Math.pow(2,2),u=1;u!=c;)a=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),o|=(a>0?1:0)*u,u<<=1;switch(o){case 0:for(o=0,c=Math.pow(2,8),u=1;u!=c;)a=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),o|=(a>0?1:0)*u,u<<=1;l=e(o);break;case 1:for(o=0,c=Math.pow(2,16),u=1;u!=c;)a=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),o|=(a>0?1:0)*u,u<<=1;l=e(o);break;case 2:return""}for(d[3]=l,i=l,g.push(l);;){if(y.index>t)return"";for(o=0,c=Math.pow(2,f),u=1;u!=c;)a=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),o|=(a>0?1:0)*u,u<<=1;switch(l=o){case 0:for(o=0,c=Math.pow(2,8),u=1;u!=c;)a=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),o|=(a>0?1:0)*u,u<<=1;d[h++]=e(o),l=h-1,p--;break;case 1:for(o=0,c=Math.pow(2,16),u=1;u!=c;)a=y.val&y.position,y.position>>=1,0==y.position&&(y.position=n,y.val=r(y.index++)),o|=(a>0?1:0)*u,u<<=1;d[h++]=e(o),l=h-1,p--;break;case 2:return g.join("")}if(0==p&&(p=Math.pow(2,f),f++),d[l])m=d[l];else{if(l!==h)return null;m=i+i.charAt(0)}g.push(m),d[h++]=i+m.charAt(0),i=m,0==--p&&(p=Math.pow(2,f),f++)}}};return i}();void 0===(r=function(){return s}.call(t,n,t,e))||(e.exports=r)},function(e,t,n){var r;e.exports=(r=n(5),n(12),n(13),n(14),n(15),function(){var e=r,t=e.lib.BlockCipher,n=e.algo,s=[],i=[],o=[],a=[],c=[],u=[],l=[],d=[],p=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var f=r^r<<1^r<<2^r<<3^r<<4;f=f>>>8^255&f^99,s[n]=f,i[f]=n;var m=e[n],g=e[m],y=e[g],_=257*e[f]^16843008*f;o[n]=_<<24|_>>>8,a[n]=_<<16|_>>>16,c[n]=_<<8|_>>>24,u[n]=_,_=16843009*y^65537*g^257*m^16843008*n,l[f]=_<<24|_>>>8,d[f]=_<<16|_>>>16,p[f]=_<<8|_>>>24,h[f]=_,n?(n=m^e[e[e[y^m]]],r^=e[e[r]]):n=r=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),i=this._keySchedule=[],o=0;o<r;o++)if(o<n)i[o]=t[o];else{var a=i[o-1];o%n?n>6&&o%n==4&&(a=s[a>>>24]<<24|s[a>>>16&255]<<16|s[a>>>8&255]<<8|s[255&a]):(a=s[(a=a<<8|a>>>24)>>>24]<<24|s[a>>>16&255]<<16|s[a>>>8&255]<<8|s[255&a],a^=f[o/n|0]<<24),i[o]=i[o-n]^a}for(var c=this._invKeySchedule=[],u=0;u<r;u++)o=r-u,a=u%4?i[o]:i[o-4],c[u]=u<4||o<=4?a:l[s[a>>>24]]^d[s[a>>>16&255]]^p[s[a>>>8&255]]^h[s[255&a]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,o,a,c,u,s)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,l,d,p,h,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,s,i,o,a){for(var c=this._nRounds,u=e[t]^n[0],l=e[t+1]^n[1],d=e[t+2]^n[2],p=e[t+3]^n[3],h=4,f=1;f<c;f++){var m=r[u>>>24]^s[l>>>16&255]^i[d>>>8&255]^o[255&p]^n[h++],g=r[l>>>24]^s[d>>>16&255]^i[p>>>8&255]^o[255&u]^n[h++],y=r[d>>>24]^s[p>>>16&255]^i[u>>>8&255]^o[255&l]^n[h++],_=r[p>>>24]^s[u>>>16&255]^i[l>>>8&255]^o[255&d]^n[h++];u=m,l=g,d=y,p=_}m=(a[u>>>24]<<24|a[l>>>16&255]<<16|a[d>>>8&255]<<8|a[255&p])^n[h++],g=(a[l>>>24]<<24|a[d>>>16&255]<<16|a[p>>>8&255]<<8|a[255&u])^n[h++],y=(a[d>>>24]<<24|a[p>>>16&255]<<16|a[u>>>8&255]<<8|a[255&l])^n[h++],_=(a[p>>>24]<<24|a[u>>>16&255]<<16|a[l>>>8&255]<<8|a[255&d])^n[h++],e[t]=m,e[t+1]=g,e[t+2]=y,e[t+3]=_},keySize:8});e.AES=t._createHelper(m)}(),r.AES)},function(e,t,n){var r,s,i;e.exports=(r=n(5),i=(s=r).lib.WordArray,s.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var s=[],i=0;i<n;i+=3)for(var o=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<n;a++)s.push(r.charAt(o>>>6*(3-a)&63));var c=r.charAt(64);if(c)for(;s.length%4;)s.push(c);return s.join("")},parse:function(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var s=0;s<n.length;s++)r[n.charCodeAt(s)]=s}var o=n.charAt(64);if(o){var a=e.indexOf(o);-1!==a&&(t=a)}return function(e,t,n){for(var r=[],s=0,o=0;o<t;o++)if(o%4){var a=n[e.charCodeAt(o-1)]<<o%4*2,c=n[e.charCodeAt(o)]>>>6-o%4*2;r[s>>>2]|=(a|c)<<24-s%4*8,s++}return i.create(r,s)}(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},r.enc.Base64)},function(e,t,n){var r;e.exports=(r=n(5),function(e){var t=r,n=t.lib,s=n.WordArray,i=n.Hasher,o=t.algo,a=[];!function(){for(var t=0;t<64;t++)a[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=o.MD5=i.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,s=e[r];e[r]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}var i=this._hash.words,o=e[t+0],c=e[t+1],h=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],y=e[t+6],_=e[t+7],v=e[t+8],b=e[t+9],S=e[t+10],w=e[t+11],k=e[t+12],E=e[t+13],T=e[t+14],x=e[t+15],C=i[0],I=i[1],R=i[2],A=i[3];C=u(C,I,R,A,o,7,a[0]),A=u(A,C,I,R,c,12,a[1]),R=u(R,A,C,I,h,17,a[2]),I=u(I,R,A,C,f,22,a[3]),C=u(C,I,R,A,m,7,a[4]),A=u(A,C,I,R,g,12,a[5]),R=u(R,A,C,I,y,17,a[6]),I=u(I,R,A,C,_,22,a[7]),C=u(C,I,R,A,v,7,a[8]),A=u(A,C,I,R,b,12,a[9]),R=u(R,A,C,I,S,17,a[10]),I=u(I,R,A,C,w,22,a[11]),C=u(C,I,R,A,k,7,a[12]),A=u(A,C,I,R,E,12,a[13]),R=u(R,A,C,I,T,17,a[14]),C=l(C,I=u(I,R,A,C,x,22,a[15]),R,A,c,5,a[16]),A=l(A,C,I,R,y,9,a[17]),R=l(R,A,C,I,w,14,a[18]),I=l(I,R,A,C,o,20,a[19]),C=l(C,I,R,A,g,5,a[20]),A=l(A,C,I,R,S,9,a[21]),R=l(R,A,C,I,x,14,a[22]),I=l(I,R,A,C,m,20,a[23]),C=l(C,I,R,A,b,5,a[24]),A=l(A,C,I,R,T,9,a[25]),R=l(R,A,C,I,f,14,a[26]),I=l(I,R,A,C,v,20,a[27]),C=l(C,I,R,A,E,5,a[28]),A=l(A,C,I,R,h,9,a[29]),R=l(R,A,C,I,_,14,a[30]),C=d(C,I=l(I,R,A,C,k,20,a[31]),R,A,g,4,a[32]),A=d(A,C,I,R,v,11,a[33]),R=d(R,A,C,I,w,16,a[34]),I=d(I,R,A,C,T,23,a[35]),C=d(C,I,R,A,c,4,a[36]),A=d(A,C,I,R,m,11,a[37]),R=d(R,A,C,I,_,16,a[38]),I=d(I,R,A,C,S,23,a[39]),C=d(C,I,R,A,E,4,a[40]),A=d(A,C,I,R,o,11,a[41]),R=d(R,A,C,I,f,16,a[42]),I=d(I,R,A,C,y,23,a[43]),C=d(C,I,R,A,b,4,a[44]),A=d(A,C,I,R,k,11,a[45]),R=d(R,A,C,I,x,16,a[46]),C=p(C,I=d(I,R,A,C,h,23,a[47]),R,A,o,6,a[48]),A=p(A,C,I,R,_,10,a[49]),R=p(R,A,C,I,T,15,a[50]),I=p(I,R,A,C,g,21,a[51]),C=p(C,I,R,A,k,6,a[52]),A=p(A,C,I,R,f,10,a[53]),R=p(R,A,C,I,S,15,a[54]),I=p(I,R,A,C,c,21,a[55]),C=p(C,I,R,A,v,6,a[56]),A=p(A,C,I,R,x,10,a[57]),R=p(R,A,C,I,y,15,a[58]),I=p(I,R,A,C,E,21,a[59]),C=p(C,I,R,A,m,6,a[60]),A=p(A,C,I,R,w,10,a[61]),R=p(R,A,C,I,h,15,a[62]),I=p(I,R,A,C,b,21,a[63]),i[0]=i[0]+C|0,i[1]=i[1]+I|0,i[2]=i[2]+R|0,i[3]=i[3]+A|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,s=8*t.sigBytes;n[s>>>5]|=128<<24-s%32;var i=e.floor(r/4294967296),o=r;n[15+(s+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(s+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,c=a.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return a},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,r,s,i,o){var a=e+(t&n|~t&r)+s+o;return(a<<i|a>>>32-i)+t}function l(e,t,n,r,s,i,o){var a=e+(t&r|n&~r)+s+o;return(a<<i|a>>>32-i)+t}function d(e,t,n,r,s,i,o){var a=e+(t^n^r)+s+o;return(a<<i|a>>>32-i)+t}function p(e,t,n,r,s,i,o){var a=e+(n^(t|~r))+s+o;return(a<<i|a>>>32-i)+t}t.MD5=i._createHelper(c),t.HmacMD5=i._createHmacHelper(c)}(Math),r.MD5)},function(e,t,n){var r,s,i,o,a,c,u,l;e.exports=(l=n(5),n(6),n(7),i=(s=(r=l).lib).Base,o=s.WordArray,c=(a=r.algo).MD5,u=a.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:c,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=n.hasher.create(),s=o.create(),i=s.words,a=n.keySize,c=n.iterations;i.length<a;){u&&r.update(u);var u=r.update(e).finalize(t);r.reset();for(var l=1;l<c;l++)u=r.finalize(u),r.reset();s.concat(u)}return s.sigBytes=4*a,s}}),r.EvpKDF=function(e,t,n){return u.create(n).compute(e,t)},l.EvpKDF)},function(e,t,n){var r,s,i,o,a,c,u,l,d,p,h,f,m,g,y,_,v,b,S;e.exports=void((r=n(5)).lib.Cipher||(s=r,i=s.lib,o=i.Base,a=i.WordArray,c=i.BufferedBlockAlgorithm,u=s.enc,u.Utf8,l=u.Base64,d=s.algo.EvpKDF,p=i.Cipher=c.extend({cfg:o.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?S:v}return function(t){return{encrypt:function(n,r,s){return e(r).encrypt(t,n,r,s)},decrypt:function(n,r,s){return e(r).decrypt(t,n,r,s)}}}}()}),i.StreamCipher=p.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),h=s.mode={},f=i.BlockCipherMode=o.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),m=h.CBC=function(){var e=f.extend();function t(e,t,n){var r=this._iv;if(r){var s=r;this._iv=void 0}else s=this._prevBlock;for(var i=0;i<n;i++)e[t+i]^=s[i]}return e.Encryptor=e.extend({processBlock:function(e,n){var r=this._cipher,s=r.blockSize;t.call(this,e,n,s),r.encryptBlock(e,n),this._prevBlock=e.slice(n,n+s)}}),e.Decryptor=e.extend({processBlock:function(e,n){var r=this._cipher,s=r.blockSize,i=e.slice(n,n+s);r.decryptBlock(e,n),t.call(this,e,n,s),this._prevBlock=i}}),e}(),g=(s.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,s=r<<24|r<<16|r<<8|r,i=[],o=0;o<r;o+=4)i.push(s);var c=a.create(i,r);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.BlockCipher=p.extend({cfg:p.cfg.extend({mode:m,padding:g}),reset:function(){p.reset.call(this);var e=this.cfg,t=e.iv,n=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var r=n.createEncryptor;else r=n.createDecryptor,this._minBufferSize=1;this._mode=r.call(n,this,t&&t.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4}),y=i.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),_=(s.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;if(n)var r=a.create([1398893684,1701076831]).concat(n).concat(t);else r=t;return r.toString(l)},parse:function(e){var t=l.parse(e),n=t.words;if(1398893684==n[0]&&1701076831==n[1]){var r=a.create(n.slice(2,4));n.splice(0,4),t.sigBytes-=16}return y.create({ciphertext:t,salt:r})}},v=i.SerializableCipher=o.extend({cfg:o.extend({format:_}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var s=e.createEncryptor(n,r),i=s.finalize(t),o=s.cfg;return y.create({ciphertext:i,key:n,iv:o.iv,algorithm:e,mode:o.mode,padding:o.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),b=(s.kdf={}).OpenSSL={execute:function(e,t,n,r){r||(r=a.random(8));var s=d.create({keySize:t+n}).compute(e,r),i=a.create(s.words.slice(t),4*n);return s.sigBytes=4*t,y.create({key:s,iv:i,salt:r})}},S=i.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:b}),encrypt:function(e,t,n,r){var s=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize);r.iv=s.iv;var i=v.encrypt.call(this,e,t,s.key,r);return i.mixIn(s),i},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var s=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=s.iv,v.decrypt.call(this,e,t,s.key,r)}})))},function(e,t,n){var r;e.exports=(r=n(5),n(12),n(13),n(14),n(15),function(){var e=r,t=e.lib,n=t.WordArray,s=t.BlockCipher,i=e.algo,o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=i.DES=s.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=o[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var s=this._subKeys=[],i=0;i<16;i++){var u=s[i]=[],l=c[i];for(n=0;n<24;n++)u[n/6|0]|=t[(a[n]-1+l)%28]<<31-n%6,u[4+(n/6|0)]|=t[28+(a[n+24]-1+l)%28]<<31-n%6;for(u[0]=u[0]<<1|u[0]>>>31,n=1;n<7;n++)u[n]=u[n]>>>4*(n-1)+3;u[7]=u[7]<<5|u[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=s[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],p.call(this,4,252645135),p.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),p.call(this,1,1431655765);for(var r=0;r<16;r++){for(var s=n[r],i=this._lBlock,o=this._rBlock,a=0,c=0;c<8;c++)a|=u[c][((o^s[c])&l[c])>>>0];this._lBlock=o,this._rBlock=i^a}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,p.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function p(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function h(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}e.DES=s._createHelper(d);var f=i.TripleDES=s.extend({_doReset:function(){var e=this._key.words;this._des1=d.createEncryptor(n.create(e.slice(0,2))),this._des2=d.createEncryptor(n.create(e.slice(2,4))),this._des3=d.createEncryptor(n.create(e.slice(4,6)))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=s._createHelper(f)}(),r.TripleDES)},function(e,t,n){var r;e.exports=(r=n(5),n(12),n(13),n(14),n(15),function(){var e=r,t=e.lib.StreamCipher,n=e.algo,s=[],i=[],o=[],a=n.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],s=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)s[n]^=r[n+4&7];if(t){var i=t.words,o=i[0],a=i[1],u=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),d=u>>>16|4294901760&l,p=l<<16|65535&u;for(s[0]^=u,s[1]^=d,s[2]^=l,s[3]^=p,s[4]^=u,s[5]^=d,s[6]^=l,s[7]^=p,n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),s[0]=n[0]^n[5]>>>16^n[3]<<16,s[1]=n[2]^n[7]>>>16^n[5]<<16,s[2]=n[4]^n[1]>>>16^n[7]<<16,s[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)s[r]=16711935&(s[r]<<8|s[r]>>>24)|4278255360&(s[r]<<24|s[r]>>>8),e[t+r]^=s[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],s=65535&r,a=r>>>16,c=((s*s>>>17)+s*a>>>15)+a*a,u=((4294901760&r)*r|0)+((65535&r)*r|0);o[n]=c^u}e[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,e[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,e[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,e[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,e[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,e[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,e[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,e[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.Rabbit=t._createHelper(a)}(),r.Rabbit)},function(e,t,n){var r;e.exports=(r=n(5),n(12),n(13),n(14),n(15),function(){var e=r,t=e.lib.StreamCipher,n=e.algo,s=n.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],s=0;s<256;s++)r[s]=s;s=0;for(var i=0;s<256;s++){var o=s%n,a=t[o>>>2]>>>24-o%4*8&255;i=(i+r[s]+a)%256;var c=r[s];r[s]=r[i],r[i]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,n=this._j,r=0,s=0;s<4;s++){n=(n+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[n],e[n]=i,r|=e[(e[t]+e[n])%256]<<24-8*s}return this._i=t,this._j=n,r}e.RC4=t._createHelper(s);var o=n.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});e.RC4Drop=t._createHelper(o)}(),r.RC4)}])},e.exports=t()}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}function r(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,s,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){s={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(s)throw s.error}}return o}function i(e,t,n){if(n||2===arguments.length)for(var r,s=0,i=t.length;s<i;s++)!r&&s in t||(r||(r=Array.prototype.slice.call(t,0,s)),r[s]=t[s]);return e.concat(r||Array.prototype.slice.call(t))}function o(e){return"function"==typeof e}function a(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var c=a((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t}}));function u(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var l=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,n,a,u;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var d=r(l),p=d.next();!p.done;p=d.next())p.value.remove(this)}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}else l.remove(this);var f=this.initialTeardown;if(o(f))try{f()}catch(e){u=e instanceof c?e.errors:[e]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var g=r(m),y=g.next();!y.done;y=g.next()){var _=y.value;try{h(_)}catch(e){u=null!=u?u:[],e instanceof c?u=i(i([],s(u)),s(e.errors)):u.push(e)}}}catch(e){n={error:e}}finally{try{y&&!y.done&&(a=g.return)&&a.call(g)}finally{if(n)throw n.error}}}if(u)throw new c(u)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)h(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&u(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&u(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),d=l.EMPTY;function p(e){return e instanceof l||e&&"closed"in e&&o(e.remove)&&o(e.add)&&o(e.unsubscribe)}function h(e){o(e)?e():e.unsubscribe()}var f=null,m=null,g=void 0,y=!1,_=!1,v={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=v.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,i([e,t],s(n))):setTimeout.apply(void 0,i([e,t],s(n)))},clearTimeout:function(e){var t=v.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function b(){}var S=w("C",void 0,void 0);function w(e,t,n){return{kind:e,value:t,error:n}}var k=null;function E(e){if(y){var t=!k;if(t&&(k={errorThrown:!1,error:null}),e(),t){var n=k,r=n.errorThrown,s=n.error;if(k=null,r)throw s}}else e()}var T=function(e){function n(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,p(t)&&t.add(n)):n.destination=M,n}return t(n,e),n.create=function(e,t,n){return new R(e,t,n)},n.prototype.next=function(e){this.isStopped?O(function(e){return w("N",e,void 0)}(e),this):this._next(e)},n.prototype.error=function(e){this.isStopped?O(w("E",void 0,e),this):(this.isStopped=!0,this._error(e))},n.prototype.complete=function(){this.isStopped?O(S,this):(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(e){this.destination.next(e)},n.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(l),x=Function.prototype.bind;function C(e,t){return x.call(e,t)}var I=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){A(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){A(e)}else A(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){A(e)}},e}(),R=function(e){function n(t,n,r){var s,i,a=e.call(this)||this;return o(t)||!t?s={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:a&&_?((i=Object.create(t)).unsubscribe=function(){return a.unsubscribe()},s={next:t.next&&C(t.next,i),error:t.error&&C(t.error,i),complete:t.complete&&C(t.complete,i)}):s=t,a.destination=new I(s),a}return t(n,e),n}(T);function A(e){var t;y?(t=e,y&&k&&(k.errorThrown=!0,k.error=t)):function(e){v.setTimeout((function(){if(!f)throw e;f(e)}))}(e)}function O(e,t){var n=m;n&&v.setTimeout((function(){return n(e,t)}))}var M={closed:!0,next:b,error:function(e){throw e},complete:b},D="function"==typeof Symbol&&Symbol.observable||"@@observable";function N(e){return e}var L=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,s=this,i=(r=e)&&r instanceof T||function(e){return e&&o(e.next)&&o(e.error)&&o(e.complete)}(r)&&p(r)?e:new R(e,t,n);return E((function(){var e=s,t=e.operator,n=e.source;i.add(t?t.call(i,n):n?s._subscribe(i):s._trySubscribe(i))})),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=P(t))((function(t,r){var s=new R({next:function(t){try{e(t)}catch(e){r(e),s.unsubscribe()}},error:r,complete:t});n.subscribe(s)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[D]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===(n=e).length?N:1===n.length?n[0]:function(e){return n.reduce((function(e,t){return t(e)}),e)})(this);var n},e.prototype.toPromise=function(e){var t=this;return new(e=P(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function P(e){var t;return null!==(t=null!=e?e:g)&&void 0!==t?t:Promise}var B=a((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),F=function(e){function n(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return t(n,e),n.prototype.lift=function(e){var t=new j(this,this);return t.operator=e,t},n.prototype._throwIfClosed=function(){if(this.closed)throw new B},n.prototype.next=function(e){var t=this;E((function(){var n,s;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=r(t.currentObservers),o=i.next();!o.done;o=i.next())o.value.next(e)}catch(e){n={error:e}}finally{try{o&&!o.done&&(s=i.return)&&s.call(i)}finally{if(n)throw n.error}}}}))},n.prototype.error=function(e){var t=this;E((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},n.prototype.complete=function(){var e=this;E((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},n.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(n.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),n.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},n.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},n.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,s=n.isStopped,i=n.observers;return r||s?d:(this.currentObservers=null,i.push(e),new l((function(){t.currentObservers=null,u(i,e)})))},n.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,s=t.isStopped;n?e.error(r):s&&e.complete()},n.prototype.asObservable=function(){var e=new L;return e.source=this,e},n.create=function(e,t){return new j(e,t)},n}(L),j=function(e){function n(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return t(n,e),n.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},n.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},n.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},n.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:d},n}(F),U={now:function(){return(U.delegate||Date).now()},delegate:void 0},z=function(e){function n(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=U);var s=e.call(this)||this;return s._bufferSize=t,s._windowTime=n,s._timestampProvider=r,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=n===1/0,s._bufferSize=Math.max(1,t),s._windowTime=Math.max(1,n),s}return t(n,e),n.prototype.next=function(t){var n=this,r=n.isStopped,s=n._buffer,i=n._infiniteTimeWindow,o=n._timestampProvider,a=n._windowTime;r||(s.push(t),!i&&s.push(o.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},n.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),s=0;s<r.length&&!e.closed;s+=n?1:2)e.next(r[s]);return this._checkFinalizedStatuses(e),t},n.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,s=e._infiniteTimeWindow,i=(s?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!s){for(var o=n.now(),a=0,c=1;c<r.length&&r[c]<=o;c+=2)a=c;a&&r.splice(0,a+1)}},n}(F),$=n(311),H=n.n($);let W=null;class q{constructor(){Object.defineProperty(this,"storageMap",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.storageMap=new Map}set(e,t){this.storageMap.set(e,t)}get(e){return this.storageMap.get(e)||null}getAllKeys(){return Array.from(this.storageMap.keys())}removeAll(){this.storageMap.clear()}remove(e){this.storageMap.delete(e)}getOrSet(e,t){let n=this.storageMap.get(e);return n||(this.storageMap.set(e,t),n=t),n}}try{window.localStorage,W=new(H())({encodingType:"des",isCompression:!1,encryptionSecret:"des"})}catch(e){W=new q}const K=new class{constructor(){Object.defineProperty(this,"set",{enumerable:!0,configurable:!0,writable:!0,value:function(e,t){W.set(e,t)}}),Object.defineProperty(this,"get",{enumerable:!0,configurable:!0,writable:!0,value:function(e){return W.get(e)||null}}),Object.defineProperty(this,"getAllKeys",{enumerable:!0,configurable:!0,writable:!0,value:function(){W.getAllKeys()}}),Object.defineProperty(this,"removeAll",{enumerable:!0,configurable:!0,writable:!0,value:function(){W.removeAll()}}),Object.defineProperty(this,"remove",{enumerable:!0,configurable:!0,writable:!0,value:function(e){W.remove(e)}}),Object.defineProperty(this,"getOrSet",{enumerable:!0,configurable:!0,writable:!0,value:function(e,t){let n=W.get(e);return n||(W.set(e,t),n=t),n}})}};class V{static getConfig(e){return!!this.config.hasOwnProperty(e)&&this.config[e]}static getCSRFToken(){return this.getCookie("csrftoken")}static getCookie(e){const t=("; "+document.cookie).split("; "+e+"=");return 2===t.length?t.pop().split(";").shift():null}static setUserData(e,t){const n=JSON.stringify(t);K.set(e,n)}static deleteUserData(e){K.remove(e)}static getUserData(e){const t=K.get(e);return t&&"string"==typeof t?JSON.parse(t):t}}function J(e,t){return function(){return e.apply(t,arguments)}}Object.defineProperty(V,"config",{enumerable:!0,configurable:!0,writable:!0,value:{}});const{toString:Y}=Object.prototype,{getPrototypeOf:G}=Object,X=(Q=Object.create(null),e=>{const t=Y.call(e);return Q[t]||(Q[t]=t.slice(8,-1).toLowerCase())});var Q;const Z=e=>(e=e.toLowerCase(),t=>X(t)===e),ee=e=>t=>typeof t===e,{isArray:te}=Array,ne=ee("undefined"),re=Z("ArrayBuffer"),se=ee("string"),ie=ee("function"),oe=ee("number"),ae=e=>null!==e&&"object"==typeof e,ce=e=>{if("object"!==X(e))return!1;const t=G(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},ue=Z("Date"),le=Z("File"),de=Z("Blob"),pe=Z("FileList"),he=Z("URLSearchParams");function fe(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,s;if("object"!=typeof e&&(e=[e]),te(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let o;for(r=0;r<i;r++)o=s[r],t.call(null,e[o],o,e)}}function me(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,s=n.length;for(;s-- >0;)if(r=n[s],t===r.toLowerCase())return r;return null}const ge="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ye=e=>!ne(e)&&e!==ge,_e=(ve="undefined"!=typeof Uint8Array&&G(Uint8Array),e=>ve&&e instanceof ve);var ve;const be=Z("HTMLFormElement"),Se=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),we=Z("RegExp"),ke=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};fe(n,((n,s)=>{let i;!1!==(i=t(n,s,e))&&(r[s]=i||n)})),Object.defineProperties(e,r)},Ee="abcdefghijklmnopqrstuvwxyz",Te="0123456789",xe={DIGIT:Te,ALPHA:Ee,ALPHA_DIGIT:Ee+Ee.toUpperCase()+Te},Ce=Z("AsyncFunction");var Ie={isArray:te,isArrayBuffer:re,isBuffer:function(e){return null!==e&&!ne(e)&&null!==e.constructor&&!ne(e.constructor)&&ie(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||ie(e.append)&&("formdata"===(t=X(e))||"object"===t&&ie(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&re(e.buffer),t},isString:se,isNumber:oe,isBoolean:e=>!0===e||!1===e,isObject:ae,isPlainObject:ce,isUndefined:ne,isDate:ue,isFile:le,isBlob:de,isRegExp:we,isFunction:ie,isStream:e=>ae(e)&&ie(e.pipe),isURLSearchParams:he,isTypedArray:_e,isFileList:pe,forEach:fe,merge:function e(){const{caseless:t}=ye(this)&&this||{},n={},r=(r,s)=>{const i=t&&me(n,s)||s;ce(n[i])&&ce(r)?n[i]=e(n[i],r):ce(r)?n[i]=e({},r):te(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&fe(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(fe(t,((t,r)=>{n&&ie(t)?e[r]=J(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let s,i,o;const a={};if(t=t||{},null==e)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],r&&!r(o,e,t)||a[o]||(t[o]=e[o],a[o]=!0);e=!1!==n&&G(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:X,kindOfTest:Z,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(te(e))return e;let t=e.length;if(!oe(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:be,hasOwnProperty:Se,hasOwnProp:Se,reduceDescriptors:ke,freezeMethods:e=>{ke(e,((t,n)=>{if(ie(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];ie(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return te(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:me,global:ge,isContextDefined:ye,ALPHABET:xe,generateString:(e=16,t=xe.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&ie(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(ae(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const s=te(e)?[]:{};return fe(e,((e,t)=>{const i=n(e,r+1);!ne(i)&&(s[t]=i)})),t[r]=void 0,s}}return e};return n(e,0)},isAsyncFn:Ce,isThenable:e=>e&&(ae(e)||ie(e))&&ie(e.then)&&ie(e.catch)};function Re(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}Ie.inherits(Re,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ie.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ae=Re.prototype,Oe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Oe[e]={value:e}})),Object.defineProperties(Re,Oe),Object.defineProperty(Ae,"isAxiosError",{value:!0}),Re.from=(e,t,n,r,s,i)=>{const o=Object.create(Ae);return Ie.toFlatObject(e,o,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Re.call(o,e.message,t,n,r,s),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};var Me=Re;function De(e){return Ie.isPlainObject(e)||Ie.isArray(e)}function Ne(e){return Ie.endsWith(e,"[]")?e.slice(0,-2):e}function Le(e,t,n){return e?e.concat(t).map((function(e,t){return e=Ne(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Pe=Ie.toFlatObject(Ie,{},null,(function(e){return/^is[A-Z]/.test(e)}));var Be=function(e,t,n){if(!Ie.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Ie.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Ie.isUndefined(t[e])}))).metaTokens,s=n.visitor||u,i=n.dots,o=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Ie.isSpecCompliantForm(t);if(!Ie.isFunction(s))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Ie.isDate(e))return e.toISOString();if(!a&&Ie.isBlob(e))throw new Me("Blob is not supported. Use a Buffer instead.");return Ie.isArrayBuffer(e)||Ie.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,s){let a=e;if(e&&!s&&"object"==typeof e)if(Ie.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Ie.isArray(e)&&function(e){return Ie.isArray(e)&&!e.some(De)}(e)||(Ie.isFileList(e)||Ie.endsWith(n,"[]"))&&(a=Ie.toArray(e)))return n=Ne(n),a.forEach((function(e,r){!Ie.isUndefined(e)&&null!==e&&t.append(!0===o?Le([n],r,i):null===o?n:n+"[]",c(e))})),!1;return!!De(e)||(t.append(Le(s,n,i),c(e)),!1)}const l=[],d=Object.assign(Pe,{defaultVisitor:u,convertValue:c,isVisitable:De});if(!Ie.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Ie.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),Ie.forEach(n,(function(n,i){!0===(!(Ie.isUndefined(n)||null===n)&&s.call(t,n,Ie.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),l.pop()}}(e),t};function Fe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function je(e,t){this._pairs=[],e&&Be(e,this,t)}const Ue=je.prototype;Ue.append=function(e,t){this._pairs.push([e,t])},Ue.toString=function(e){const t=e?function(t){return e.call(this,t,Fe)}:Fe;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ze=je;function $e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function He(e,t,n){if(!t)return e;const r=n&&n.encode||$e,s=n&&n.serialize;let i;if(i=s?s(t,n):Ie.isURLSearchParams(t)?t.toString():new ze(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}var We=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Ie.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},qe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ke={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ze,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]},Ve=function(e){function t(e,n,r,s){let i=e[s++];const o=Number.isFinite(+i),a=s>=e.length;return i=!i&&Ie.isArray(r)?r.length:i,a?(Ie.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!o):(r[i]&&Ie.isObject(r[i])||(r[i]=[]),t(e,n,r[i],s)&&Ie.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],t[i]=e[i];return t}(r[i])),!o)}if(Ie.isFormData(e)&&Ie.isFunction(e.entries)){const n={};return Ie.forEachEntry(e,((e,r)=>{t(function(e){return Ie.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const Je={transitional:qe,adapter:Ke.isNode?"http":"xhr",transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,s=Ie.isObject(e);if(s&&Ie.isHTMLForm(e)&&(e=new FormData(e)),Ie.isFormData(e))return r&&r?JSON.stringify(Ve(e)):e;if(Ie.isArrayBuffer(e)||Ie.isBuffer(e)||Ie.isStream(e)||Ie.isFile(e)||Ie.isBlob(e))return e;if(Ie.isArrayBufferView(e))return e.buffer;if(Ie.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Be(e,new Ke.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Ke.isNode&&Ie.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Ie.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Be(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||r?(t.setContentType("application/json",!1),function(e,t,n){if(Ie.isString(e))try{return(0,JSON.parse)(e),Ie.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Je.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&Ie.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Me.from(e,Me.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ke.classes.FormData,Blob:Ke.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ie.forEach(["delete","get","head","post","put","patch"],(e=>{Je.headers[e]={}}));var Ye=Je;const Ge=Ie.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Xe=Symbol("internals");function Qe(e){return e&&String(e).trim().toLowerCase()}function Ze(e){return!1===e||null==e?e:Ie.isArray(e)?e.map(Ze):String(e)}function et(e,t,n,r,s){return Ie.isFunction(r)?r.call(this,t,n):(s&&(t=n),Ie.isString(t)?Ie.isString(r)?-1!==t.indexOf(r):Ie.isRegExp(r)?r.test(t):void 0:void 0)}class tt{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function s(e,t,n){const s=Qe(t);if(!s)throw new Error("header name must be a non-empty string");const i=Ie.findKey(r,s);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Ze(e))}const i=(e,t)=>Ie.forEach(e,((e,n)=>s(e,n,t)));return Ie.isPlainObject(e)||e instanceof this.constructor?i(e,t):Ie.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((e=>{const t={};let n,r,s;return e&&e.split("\n").forEach((function(e){s=e.indexOf(":"),n=e.substring(0,s).trim().toLowerCase(),r=e.substring(s+1).trim(),!n||t[n]&&Ge[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&s(t,e,n),this}get(e,t){if(e=Qe(e)){const n=Ie.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Ie.isFunction(t))return t.call(this,e,n);if(Ie.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Qe(e)){const n=Ie.findKey(this,e);return!(!n||void 0===this[n]||t&&!et(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function s(e){if(e=Qe(e)){const s=Ie.findKey(n,e);!s||t&&!et(0,n[s],s,t)||(delete n[s],r=!0)}}return Ie.isArray(e)?e.forEach(s):s(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const s=t[n];e&&!et(0,this[s],s,e,!0)||(delete this[s],r=!0)}return r}normalize(e){const t=this,n={};return Ie.forEach(this,((r,s)=>{const i=Ie.findKey(n,s);if(i)return t[i]=Ze(r),void delete t[s];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(s):String(s).trim();o!==s&&delete t[s],t[o]=Ze(r),n[o]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ie.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Ie.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Xe]=this[Xe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Qe(e);t[r]||(function(e,t){const n=Ie.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,s){return this[r].call(this,t,e,n,s)},configurable:!0})}))}(n,e),t[r]=!0)}return Ie.isArray(e)?e.forEach(r):r(e),this}}tt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ie.reduceDescriptors(tt.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Ie.freezeMethods(tt);var nt=tt;function rt(e,t){const n=this||Ye,r=t||n,s=nt.from(r.headers);let i=r.data;return Ie.forEach(e,(function(e){i=e.call(n,i,s.normalize(),t?t.status:void 0)})),s.normalize(),i}function st(e){return!(!e||!e.__CANCEL__)}function it(e,t,n){Me.call(this,null==e?"canceled":e,Me.ERR_CANCELED,t,n),this.name="CanceledError"}Ie.inherits(it,Me,{__CANCEL__:!0});var ot=it,at=Ke.isStandardBrowserEnv?{write:function(e,t,n,r,s,i){const o=[];o.push(e+"="+encodeURIComponent(t)),Ie.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),Ie.isString(r)&&o.push("path="+r),Ie.isString(s)&&o.push("domain="+s),!0===i&&o.push("secure"),document.cookie=o.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function ct(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var ut=Ke.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=Ie.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function lt(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s,i=0,o=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=r[o];s||(s=c),n[i]=a,r[i]=c;let l=o,d=0;for(;l!==i;)d+=n[l++],l%=e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-s<t)return;const p=u&&c-u;return p?Math.round(1e3*d/p):void 0}}(50,250);return s=>{const i=s.loaded,o=s.lengthComputable?s.total:void 0,a=i-n,c=r(a);n=i;const u={loaded:i,total:o,progress:o?i/o:void 0,bytes:a,rate:c||void 0,estimated:c&&o&&i<=o?(o-i)/c:void 0,event:s};u[t?"download":"upload"]=!0,e(u)}}var dt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const s=nt.from(e.headers).normalize(),i=e.responseType;let o;function a(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}Ie.isFormData(r)&&(Ke.isStandardBrowserEnv||Ke.isStandardBrowserWebWorkerEnv?s.setContentType(!1):s.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(t+":"+n))}const u=ct(e.baseURL,e.url);function l(){if(!c)return;const r=nt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Me("Request failed with status code "+n.status,[Me.ERR_BAD_REQUEST,Me.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),a()}),(function(e){n(e),a()}),{data:i&&"text"!==i&&"json"!==i?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:e,request:c}),c=null}if(c.open(e.method.toUpperCase(),He(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=l:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(l)},c.onabort=function(){c&&(n(new Me("Request aborted",Me.ECONNABORTED,e,c)),c=null)},c.onerror=function(){n(new Me("Network Error",Me.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||qe;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Me(t,r.clarifyTimeoutError?Me.ETIMEDOUT:Me.ECONNABORTED,e,c)),c=null},Ke.isStandardBrowserEnv){const t=(e.withCredentials||ut(u))&&e.xsrfCookieName&&at.read(e.xsrfCookieName);t&&s.set(e.xsrfHeaderName,t)}void 0===r&&s.setContentType(null),"setRequestHeader"in c&&Ie.forEach(s.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),Ie.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&"json"!==i&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",lt(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",lt(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=t=>{c&&(n(!t||t.type?new ot(null,e,c):t),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const d=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u);d&&-1===Ke.protocols.indexOf(d)?n(new Me("Unsupported protocol "+d+":",Me.ERR_BAD_REQUEST,e)):c.send(r||null)}))};const pt={http:null,xhr:dt};Ie.forEach(pt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var ht=e=>{e=Ie.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let s=0;s<t&&(n=e[s],!(r=Ie.isString(n)?pt[n.toLowerCase()]:n));s++);if(!r){if(!1===r)throw new Me(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(Ie.hasOwnProp(pt,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`)}if(!Ie.isFunction(r))throw new TypeError("adapter is not a function");return r};function ft(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ot(null,e)}function mt(e){return ft(e),e.headers=nt.from(e.headers),e.data=rt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ht(e.adapter||Ye.adapter)(e).then((function(t){return ft(e),t.data=rt.call(e,e.transformResponse,t),t.headers=nt.from(t.headers),t}),(function(t){return st(t)||(ft(e),t&&t.response&&(t.response.data=rt.call(e,e.transformResponse,t.response),t.response.headers=nt.from(t.response.headers))),Promise.reject(t)}))}const gt=e=>e instanceof nt?e.toJSON():e;function yt(e,t){t=t||{};const n={};function r(e,t,n){return Ie.isPlainObject(e)&&Ie.isPlainObject(t)?Ie.merge.call({caseless:n},e,t):Ie.isPlainObject(t)?Ie.merge({},t):Ie.isArray(t)?t.slice():t}function s(e,t,n){return Ie.isUndefined(t)?Ie.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Ie.isUndefined(t))return r(void 0,t)}function o(e,t){return Ie.isUndefined(t)?Ie.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,s,i){return i in t?r(n,s):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(e,t)=>s(gt(e),gt(t),!0)};return Ie.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=c[r]||s,o=i(e[r],t[r],r);Ie.isUndefined(o)&&i!==a||(n[r]=o)})),n}const _t={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{_t[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const vt={};_t.transitional=function(e,t,n){function r(e,t){return"[Axios v1.5.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,s,i)=>{if(!1===e)throw new Me(r(s," has been removed"+(t?" in "+t:"")),Me.ERR_DEPRECATED);return t&&!vt[s]&&(vt[s]=!0,console.warn(r(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,s,i)}};var bt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Me("options must be an object",Me.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const t=e[i],n=void 0===t||o(t,i,e);if(!0!==n)throw new Me("option "+i+" must be "+n,Me.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Me("Unknown option "+i,Me.ERR_BAD_OPTION)}},validators:_t};const St=bt.validators;class wt{constructor(e){this.defaults=e,this.interceptors={request:new We,response:new We}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=yt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:s}=t;void 0!==n&&bt.assertOptions(n,{silentJSONParsing:St.transitional(St.boolean),forcedJSONParsing:St.transitional(St.boolean),clarifyTimeoutError:St.transitional(St.boolean)},!1),null!=r&&(Ie.isFunction(r)?t.paramsSerializer={serialize:r}:bt.assertOptions(r,{encode:St.function,serialize:St.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=s&&Ie.merge(s.common,s[t.method]);s&&Ie.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete s[e]})),t.headers=nt.concat(i,s);const o=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,o.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,d=0;if(!a){const e=[mt.bind(this),void 0];for(e.unshift.apply(e,o),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);d<l;)u=u.then(e[d++],e[d++]);return u}l=o.length;let p=t;for(d=0;d<l;){const e=o[d++],t=o[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=mt.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,l=c.length;d<l;)u=u.then(c[d++],c[d++]);return u}getUri(e){return He(ct((e=yt(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Ie.forEach(["delete","get","head","options"],(function(e){wt.prototype[e]=function(t,n){return this.request(yt(n||{},{method:e,url:t,data:(n||{}).data}))}})),Ie.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,s){return this.request(yt(s||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}wt.prototype[e]=t(),wt.prototype[e+"Form"]=t(!0)}));var kt=wt;class Et{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,s){n.reason||(n.reason=new ot(e,r,s),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Et((function(t){e=t})),cancel:e}}}var Tt=Et;const xt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(xt).forEach((([e,t])=>{xt[t]=e}));var Ct=xt;const It=function e(t){const n=new kt(t),r=J(kt.prototype.request,n);return Ie.extend(r,kt.prototype,n,{allOwnKeys:!0}),Ie.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(yt(t,n))},r}(Ye);It.Axios=kt,It.CanceledError=ot,It.CancelToken=Tt,It.isCancel=st,It.VERSION="1.5.0",It.toFormData=Be,It.AxiosError=Me,It.Cancel=It.CanceledError,It.all=function(e){return Promise.all(e)},It.spread=function(e){return function(t){return e.apply(null,t)}},It.isAxiosError=function(e){return Ie.isObject(e)&&!0===e.isAxiosError},It.mergeConfig=yt,It.AxiosHeaders=nt,It.formToJSON=e=>Ve(Ie.isHTMLForm(e)?new FormData(e):e),It.getAdapter=ht,It.HttpStatusCode=Ct,It.default=It;var Rt=It;Rt.defaults.headers.common.accept="application/json",Rt.defaults.baseURL="MISSING_ENV_VAR".REACT_APP_BASE_URL,Rt.interceptors.request.use((function(e){return(e=>(delete e.headers["Content-Type"],e))(e)}),(function(e){return Promise.reject(e)})),Rt.interceptors.response.use((e=>e),(function(e){return Promise.reject(e)}));var At={get:Rt.get,post:Rt.post,put:Rt.put,delete:Rt.delete};let Ot="https://api-core.geta.ai/";Ot+="api/v1/";class Mt{static getWidgetConfig(e,t){const n=`https://api-core.geta.ai/api/v1/${Dt.WIDGET_CONFIG}/?${e}`;return At.get(n,{headers:t})}}class Dt{}var Nt;Object.defineProperty(Dt,"WIDGET_CONFIG",{enumerable:!0,configurable:!0,writable:!0,value:"widget-config"}),function(e){e.CHATBOT_OPEN="chatbot_open",e.CHATBOT_SESSION_ID="chatbot_session_id",e.CHATBOT_RESIZE="chatbot_resize"}(Nt||(Nt={}));const Lt=new Set([Nt.CHATBOT_OPEN,Nt.CHATBOT_SESSION_ID,Nt.CHATBOT_RESIZE]);var Pt;!function(e){e.CHATBOT_START="chatbot_start",e.CHATBOT_SAVE_VISITOR_ID="chatbot_save_visitor_id",e.CHATBOT_RESIZE="chatbot_resize"}(Pt||(Pt={}));const Bt=new Set([Pt.CHATBOT_START,Pt.CHATBOT_SAVE_VISITOR_ID,Pt.CHATBOT_RESIZE]);class Ft{constructor(e,t){Object.defineProperty(this,"event_type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.event_type=e,this.data=t}}class jt{constructor(){Object.defineProperty(this,"iframe_element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ievent_fn_map",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"messageListener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.iframe_element=null,this.ievent_fn_map=new Map,this.messageListener=e=>{this.handleMessage(e)},this.initMessageListeners()}initMessageListeners(){window.addEventListener("message",this.messageListener,!1)}handleMessage(e){if(e.data&&e.data.hasOwnProperty("event_type")){const t=e.data.event_type;if(Lt.has(t)){const n=this.ievent_fn_map.get(t);n&&n(e)}}}setIFrameElement(e){this.iframe_element=e}registerEventListener(e,t){if(!Lt.has(e))throw new Error("IEvent Type not available!");this.ievent_fn_map.set(e,t)}unregisterEventListener(e){this.ievent_fn_map.delete(e)}postMessage(e){if(!this.iframe_element)throw new Error("Iframe not available!");if(!Bt.has(e.event_type))throw new Error("OEvent Type not available!");this.iframe_element.contentWindow&&this.iframe_element.contentWindow.postMessage(e,"*")}cleanup(){window.removeEventListener("message",this.messageListener),this.ievent_fn_map.clear(),this.iframe_element=null}}var Ut;!function(e){e[e.mobileL=460]="mobileL",e[e.tablet=768]="tablet",e[e.laptop=1024]="laptop"}(Ut||(Ut={}));class zt{constructor(e,t){Object.defineProperty(this,"iframe_element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"widget_config",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentDevice",{enumerable:!0,configurable:!0,writable:!0,value:"desktop"}),Object.defineProperty(this,"currentPosition",{enumerable:!0,configurable:!0,writable:!0,value:"Right"}),this.iframe_element=t,this.widget_config=e,this.currentDevice=window.innerWidth<Ut.mobileL?"mobile":"desktop",this.currentPosition="mobile"===this.currentDevice?e?.chatbot_configuration?.mobile_display_position:e?.chatbot_configuration?.desktop_display_position}getWidgetIntialStyling(){this.getDisplayStatus(),this.getIframeBottomMargin(),this.getIframeSidePosition()}getDisplayStatus(){const e=window.innerWidth<Ut.tablet&&window.innerWidth>=Ut.mobileL?"tablet":window.innerWidth<Ut.mobileL?"mobile":"desktop";let t=this.widget_config.chatbot_configuration.enabled_devices;!1===t?.[e]&&(this.iframe_element.style.display="none");let n=this.widget_config.chatbot_configuration?.urls?.blacklisted_urls??[],r=window.location.href;n?.length>0&&n?.forEach((e=>{r?.includes(e)&&(console.warn("URL is blacklisted"),this.iframe_element.style.display="none")}))}updateIframeDimensions(e,t=!1,n=this.currentDevice){this.iframe_element.style.width=e?.width,this.iframe_element.style.height=e?.height}centerIframePosition(){this.iframe_element.style.left=0,this.iframe_element.style.right=0,this.iframe_element.style.margin="0 auto"}getIframeBottomMargin(e=this.currentDevice){this.iframe_element.style.bottom="mobile"===e?`${this.widget_config?.chatbot_configuration?.mobile_bottom_margin}px`??0:`${this.widget_config?.chatbot_configuration?.desktop_bottom_margin}px`??0}getIframeSidePosition(e=this.currentPosition){"Left"===e&&this.getIframeLeftMargin(),"Right"===e&&this.getIframeRightMargin()}getIframeLeftMargin(e=this.currentDevice){"mobile"===e?(this.iframe_element.style.right="auto",this.iframe_element.style.left=`${this.widget_config?.chatbot_configuration?.mobile_side_margin}px`??0):(this.iframe_element.style.right="auto",this.iframe_element.style.left=`${this.widget_config?.chatbot_configuration?.desktop_side_margin}px`??0)}getIframeRightMargin(e=this.currentDevice){"mobile"===e?(this.iframe_element.style.left="auto",this.iframe_element.style.right=`${this.widget_config?.chatbot_configuration?.mobile_side_margin}px`??0):(this.iframe_element.style.left="auto",this.iframe_element.style.right=`${this.widget_config?.chatbot_configuration?.desktop_side_margin}px`??0)}}class $t{constructor(e){Object.defineProperty(this,"scriptData",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"iframe_element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"iframe_comm_service",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"iframe_ready_notifier",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"widget_config",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"location",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"widgetUtils",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"deviceSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.scriptData=e,this.iframe_comm_service=new jt,this.iframe_ready_notifier=new z,this.location=this.scriptData.location;const t=this.iframe_ready_notifier.asObservable();this.widget_config=null,this.deviceSize={width:window.innerWidth+"px",height:window.innerHeight+"px"},"loading"!==document.readyState?this.getWidgetConfig():document.addEventListener("DOMContentLoaded",(()=>{this.getWidgetConfig()})),t.subscribe((e=>{setTimeout((()=>{const e=V.getUserData("session_id");this.iframe_comm_service.postMessage(new Ft(Pt.CHATBOT_START,{botId:this.scriptData.botId,matomoId:this.scriptData.matomoId,getaHost:this.scriptData.getaHost,location:this.scriptData.location,session_id:e,widget_config:this.widget_config,chatOpenedStatus:!1,deviceSize:this.deviceSize,currentDevice:window.innerWidth<Ut.mobileL?"mobile":"desktop"}))}),100)})),this.iframe_comm_service.registerEventListener(Nt.CHATBOT_OPEN,(e=>{const t=e.data?.data?.open??!1,n=e.data?.data?.deviceSize??null;this.widgetUtils&&this.widgetUtils.updateIframeDimensions(n,t)}))}getWidgetConfig(){const e={"geta-host":this.scriptData.getaHost};let t=[];this.location&&(t=new URL(this.location).searchParams);const n={bot_id:this.scriptData.botId};t.forEach(((e,t)=>{n[t]=e}));let r="";for(const e in n)n.hasOwnProperty(e)&&(""!==r&&(r+="&"),r+=e+"="+encodeURIComponent(n[e]));Mt.getWidgetConfig(r,e).then((e=>{this.widget_config=e?.data,this.initIFrame(e?.data)})).catch((e=>{console.error("geta widget config error",e)})).finally((()=>{}))}initIFrame(e){const t=document.createElement("iframe");this.iframe_element=t,this.iframe_comm_service.setIFrameElement(this.iframe_element),this.widgetUtils=new zt(e,t),t.src="https://wbot.geta.ai/",t.title="geta_widget",t.name="geta_widget",t.id="geta_widget",t.allowFullscreen=!0,t.style.position="fixed",t.style.zIndex="9999999999999",t.style.display="inline",t.style.overflow="hidden",t.style.border="none",t.style.height="1px",t.style.width="1px",t.style.minHeight="1px",t.style.minWidth="1px",t.style.borderRadius="2px",t.style.transition="all 0.12s ease-in-out",this.widgetUtils.getWidgetIntialStyling(),document.body.appendChild(t),this.iframe_element.onload=()=>{this.iframe_ready_notifier.next(!0)}}}const Ht="8.15.0",Wt=globalThis;function qt(e,t,n){const r=n||Wt,s=r.__SENTRY__=r.__SENTRY__||{},i=s[Ht]=s[Ht]||{};return i[e]||(i[e]=t())}const Kt="production";function Vt(){return Jt(Wt),Wt}function Jt(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Ht,t[Ht]=t[Ht]||{}}const Yt=Object.prototype.toString;function Gt(e){switch(Yt.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return an(e,Error)}}function Xt(e,t){return Yt.call(e)===`[object ${t}]`}function Qt(e){return Xt(e,"ErrorEvent")}function Zt(e){return Xt(e,"DOMError")}function en(e){return Xt(e,"String")}function tn(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function nn(e){return null===e||tn(e)||"object"!=typeof e&&"function"!=typeof e}function rn(e){return Xt(e,"Object")}function sn(e){return"undefined"!=typeof Event&&an(e,Event)}function on(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function an(e,t){try{return e instanceof t}catch(e){return!1}}function cn(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const un=Wt,ln=80;function dn(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let i=0,o=0;const a=" > ",c=a.length;let u;const l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||ln;for(;n&&i++<r&&(u=pn(n,l),!("html"===u||i>1&&o+s.length*c+u.length>=d));)s.push(u),o+=u.length,n=n.parentNode;return s.reverse().join(a)}catch(e){return"<unknown>"}}function pn(e,t){const n=e,r=[];if(!n||!n.tagName)return"";if(un.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(s&&s.length)s.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const e=n.className;if(e&&en(e)){const t=e.split(/\s+/);for(const e of t)r.push(`.${e}`)}}const i=["aria-label","type","name","title","alt"];for(const e of i){const t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join("")}function hn(){try{return un.document.location.href}catch(e){return""}}function fn(e){if(!un.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}const mn="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,gn=["debug","info","warn","error","log","assert","trace"],yn={};function _n(e){if(!("console"in Wt))return e();const t=Wt.console,n={},r=Object.keys(yn);r.forEach((e=>{const r=yn[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const vn=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return mn?gn.forEach((n=>{t[n]=(...t)=>{e&&_n((()=>{Wt.console[n](`Sentry Logger [${n}]:`,...t)}))}})):gn.forEach((e=>{t[e]=()=>{}})),t}();function bn(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function Sn(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const r=e[t];try{cn(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function wn(e,t=[],n=!1){return t.some((t=>function(e,t,n=!1){return!!en(e)&&(Xt(t,"RegExp")?t.test(e):!!en(t)&&(n?e===t:e.includes(t)))}(e,t,n)))}function kn(e,t,n){if(!(t in e))return;const r=e[t],s=n(r);"function"==typeof s&&Tn(s,r),e[t]=s}function En(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){mn&&vn.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Tn(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,En(e,"__sentry_original__",t)}catch(e){}}function xn(e){return e.__sentry_original__}function Cn(e){if(Gt(e))return{message:e.message,name:e.name,stack:e.stack,...Rn(e)};if(sn(e)){const t={type:e.type,target:In(e.target),currentTarget:In(e.currentTarget),...Rn(e)};return"undefined"!=typeof CustomEvent&&an(e,CustomEvent)&&(t.detail=e.detail),t}return e}function In(e){try{return"undefined"!=typeof Element&&an(e,Element)?dn(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function Rn(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function An(e){return On(e,new Map)}function On(e,t){if(function(e){if(!rn(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.keys(e))void 0!==e[n]&&(r[n]=On(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(On(e,t))})),r}return e}function Mn(){const e=Wt,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function Dn(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Nn(e){const{message:t,event_id:n}=e;if(t)return t;const r=Dn(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Ln(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function Pn(e,t){const n=Dn(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function Bn(e){if(e&&e.__sentry_captured__)return!0;try{En(e,"__sentry_captured__",!0)}catch(e){}return!1}function Fn(e){return Array.isArray(e)?e:[e]}function jn(){return{traceId:Mn(),spanId:Mn().substring(16)}}const Un=1e3;function zn(){return Date.now()/Un}const $n=function(){const{performance:e}=Wt;if(!e||!e.now)return zn;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/Un}();let Hn;const Wn=(()=>{const{performance:e}=Wt;if(!e||!e.now)return void(Hn="none");const t=36e5,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=s<t,o=e.timing&&e.timing.navigationStart,a="number"==typeof o?Math.abs(o+n-r):t;return i||a<t?s<=a?(Hn="timeOrigin",e.timeOrigin):(Hn="navigationStart",o):(Hn="dateNow",r)})();function qn(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||$n(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Mn()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}const Kn="_sentrySpan";function Vn(e,t){t?En(e,Kn,t):delete e[Kn]}function Jn(e){return e[Kn]}class Yn{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=jn()}clone(){const e=new Yn;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,Vn(e,Jn(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&qn(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,r]=t instanceof Gn?[t.getScopeData(),t.getRequestSession()]:rn(t)?[e,e.requestSession]:[],{tags:s,extra:i,user:o,contexts:a,level:c,fingerprint:u=[],propagationContext:l}=n||{};return this._tags={...this._tags,...s},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Vn(this,void 0),this._attachments=[],this._propagationContext=jn(),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:zn(),...e},s=this._breadcrumbs;return s.push(r),this._breadcrumbs=s.length>n?s.slice(-n):s,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Jn(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:Mn();if(!this._client)return vn.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:Mn();if(!this._client)return vn.warn("No client configured on scope - will not capture message!"),r;const s=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:s,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Mn();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(vn.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const Gn=Yn;class Xn{constructor(e,t){let n,r;n=e||new Gn,r=t||new Gn,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return on(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1||!this._stack.pop())}}function Qn(){const e=Jt(Vt());return e.stack=e.stack||new Xn(qt("defaultCurrentScope",(()=>new Gn)),qt("defaultIsolationScope",(()=>new Gn)))}function Zn(e){return Qn().withScope(e)}function er(e,t){const n=Qn();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function tr(e){return Qn().withScope((()=>e(Qn().getIsolationScope())))}function nr(e){const t=Jt(e);return t.acs?t.acs:{withIsolationScope:tr,withScope:Zn,withSetScope:er,withSetIsolationScope:(e,t)=>tr(t),getCurrentScope:()=>Qn().getScope(),getIsolationScope:()=>Qn().getIsolationScope()}}function rr(){return nr(Vt()).getCurrentScope()}function sr(){return nr(Vt()).getIsolationScope()}function ir(...e){const t=nr(Vt());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function or(){return rr().getClient()}const ar=50,cr="?",ur=/\(error: (.*)\)/,lr=/captureMessage|captureException/;function dr(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0,r=0)=>{const s=[],i=e.split("\n");for(let e=n;e<i.length;e++){const n=i[e];if(n.length>1024)continue;const o=ur.test(n)?n.replace(ur,"$1"):n;if(!o.match(/\S*Error: /)){for(const e of t){const t=e(o);if(t){s.push(t);break}}if(s.length>=ar+r)break}}return function(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(pr(t).function||"")&&t.pop(),t.reverse(),lr.test(pr(t).function||"")&&(t.pop(),lr.test(pr(t).function||"")&&t.pop()),t.slice(0,ar).map((e=>({...e,filename:e.filename||pr(t).filename,function:e.function||cr})))}(s.slice(r))}}function pr(e){return e[e.length-1]||{}}const hr="<anonymous>";function fr(e){try{return e&&"function"==typeof e&&e.name||hr}catch(e){return hr}}function mr(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch(e){return}}}function gr(e,t=100,n=1/0){try{return _r("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function yr(e,t=3,n=102400){const r=gr(e,t);return s=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(s))>n?yr(e,t-1,n):r;var s}function _r(e,t,n=1/0,r=1/0,s=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[i,o]=s;if(null==t||["number","boolean","string"].includes(typeof t)&&!Number.isNaN(t))return t;const a=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(cn(t))return"[VueViewModel]";if(rn(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${fr(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const r=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}var n}(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===c)return a.replace("object ","");if(i(t))return"[Circular ~]";const u=t;if(u&&"function"==typeof u.toJSON)try{return _r("",u.toJSON(),c-1,r,s)}catch(e){}const l=Array.isArray(t)?[]:{};let d=0;const p=Cn(t);for(const e in p){if(!Object.prototype.hasOwnProperty.call(p,e))continue;if(d>=r){l[e]="[MaxProperties ~]";break}const t=p[e];l[e]=_r(e,t,c-1,r,s),d++}return o(t),l}var vr;function br(e){return new wr((t=>{t(e)}))}function Sr(e){return new wr(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(vr||(vr={}));class wr{constructor(e){wr.prototype.__init.call(this),wr.prototype.__init2.call(this),wr.prototype.__init3.call(this),wr.prototype.__init4.call(this),this._state=vr.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new wr(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new wr(((t,n)=>{let r,s;return this.then((t=>{s=!1,r=t,e&&e()}),(t=>{s=!0,r=t,e&&e()})).then((()=>{s?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(vr.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(vr.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===vr.PENDING&&(on(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===vr.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===vr.RESOLVED&&e[1](this._value),this._state===vr.REJECTED&&e[2](this._value),e[0]=!0)}))}}}const kr="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function Er(e,t,n,r=0){return new wr(((s,i)=>{const o=e[r];if(null===t||"function"!=typeof o)s(t);else{const a=o({...t},n);kr&&o.id&&null===a&&vn.log(`Event processor "${o.id}" dropped event`),on(a)?a.then((t=>Er(e,t,n,r+1).then(s))).then(null,i):Er(e,a,n,r+1).then(s).then(null,i)}}))}const Tr="baggage",xr="sentry-",Cr=/^sentry-/,Ir=8192;function Rr(e){const t=function(e){if(e&&(en(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((e,t)=>{const n=Or(t);return Object.entries(n).forEach((([t,n])=>{e[t]=n})),e}),{}):Or(e)}(e);if(!t)return;const n=Object.entries(t).reduce(((e,[t,n])=>(t.match(Cr)&&(e[t.slice(xr.length)]=n),e)),{});return Object.keys(n).length>0?n:void 0}function Ar(e){if(e)return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce(((e,[t,n],r)=>{const s=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,i=0===r?s:`${e},${s}`;return i.length>Ir?(mn&&vn.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):i}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`${xr}${t}`]=n),e)),{}))}function Or(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(t&&n&&(e[t]=n),e)),{})}const Mr="sentry.source",Dr="sentry.sample_rate",Nr="sentry.op",Lr="sentry.origin",Pr="sentry.idle_span_finish_reason",Br="sentry.measurement_unit",Fr="sentry.measurement_value",jr="sentry.exclusive_time",Ur=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function zr(e=Mn(),t=Mn().substring(16),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}const $r="_sentryMetrics";function Hr(e){const t=e[$r];if(!t)return;const n={};for(const[,[e,r]]of t)(n[e]||(n[e]=[])).push(An(r));return n}const Wr=0,qr=1,Kr=2;function Vr(e,t){e.setAttribute("http.response.status_code",t);const n=function(e){if(e<400&&e>=100)return{code:qr};if(e>=400&&e<500)switch(e){case 401:return{code:Kr,message:"unauthenticated"};case 403:return{code:Kr,message:"permission_denied"};case 404:return{code:Kr,message:"not_found"};case 409:return{code:Kr,message:"already_exists"};case 413:return{code:Kr,message:"failed_precondition"};case 429:return{code:Kr,message:"resource_exhausted"};case 499:return{code:Kr,message:"cancelled"};default:return{code:Kr,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:Kr,message:"unimplemented"};case 503:return{code:Kr,message:"unavailable"};case 504:return{code:Kr,message:"deadline_exceeded"};default:return{code:Kr,message:"internal_error"}}return{code:Kr,message:"unknown_error"}}(t);"unknown_error"!==n.message&&e.setStatus(n)}const Jr=1;function Yr(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:i,status:o,origin:a}=es(e);return An({parent_span_id:i,span_id:t,trace_id:n,data:r,op:s,status:o,origin:a})}function Gr(e){const{spanId:t,traceId:n}=e.spanContext(),{parent_span_id:r}=es(e);return An({parent_span_id:r,span_id:t,trace_id:n})}function Xr(e){const{traceId:t,spanId:n}=e.spanContext();return zr(t,n,ts(e))}function Qr(e){return"number"==typeof e?Zr(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Zr(e.getTime()):$n()}function Zr(e){return e>9999999999?e/1e3:e}function es(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();try{const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:r,startTime:s,name:i,endTime:o,parentSpanId:a,status:c}=e;return An({span_id:t,trace_id:n,data:r,description:i,parent_span_id:a,start_timestamp:Qr(s),timestamp:Qr(o)||void 0,status:ns(c),op:r[Nr],origin:r[Lr],_metrics_summary:Hr(e)})}return{span_id:t,trace_id:n}}catch(e){return{}}}function ts(e){const{traceFlags:t}=e.spanContext();return t===Jr}function ns(e){if(e&&e.code!==Wr)return e.code===qr?"ok":e.message||"unknown_error"}const rs="_sentryChildSpans",ss="_sentryRootSpan";function is(e,t){const n=e[ss]||e;En(t,ss,n),e[rs]?e[rs].add(t):En(e,rs,new Set([t]))}function os(e){const t=new Set;return function e(n){if(!t.has(n)&&ts(n)){t.add(n);const r=n[rs]?Array.from(n[rs]):[];for(const t of r)e(t)}}(e),Array.from(t)}function as(e){return e[ss]||e}function cs(){const e=nr(Vt());return e.getActiveSpan?e.getActiveSpan():Jn(rr())}const us="_frozenDsc";function ls(e,t){En(e,us,t)}function ds(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s=An({environment:n.environment||Kt,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",s),s}function ps(e){const t=or();if(!t)return{};const n=ds(es(e).trace_id||"",t),r=as(e),s=r[us];if(s)return s;const i=r.spanContext().traceState,o=i&&i.get("sentry.dsc"),a=o&&Rr(o);if(a)return a;const c=es(r),u=c.data||{},l=u[Dr];null!=l&&(n.sample_rate=`${l}`);const d=u[Mr],p=c.description;return"url"!==d&&p&&(n.transaction=p),n.sampled=String(ts(r)),t.emit("createDsc",n,r),n}function hs(e,t){const{extra:n,tags:r,user:s,contexts:i,level:o,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:d,propagationContext:p,transactionName:h,span:f}=t;fs(e,"extra",n),fs(e,"tags",r),fs(e,"user",s),fs(e,"contexts",i),fs(e,"sdkProcessingMetadata",a),o&&(e.level=o),h&&(e.transactionName=h),f&&(e.span=f),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function fs(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function ms(e,t,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Mn(),timestamp:t.timestamp||zn()},u=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:s,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:Kt),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==s&&(e.dist=s),e.message&&(e.message=bn(e.message,i));const o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=bn(o.value,i));const a=e.request;a&&a.url&&(a.url=bn(a.url,i))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,u),void 0===t.type&&function(e,t){const n=Wt._sentryDebugIds;if(!n)return;let r;const s=gs.get(t);s?r=s:(r=new Map,gs.set(t,r));const i=Object.entries(n).reduce(((e,[n,s])=>{let i;const o=r.get(n);o?i=o:(i=t(n),r.set(n,i));for(let t=i.length-1;t>=0;t--){const n=i[t];if(n.filename){e[n.filename]=s;break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=i[e.filename])}))}))}catch(e){}}(c,e.stackParser);const l=function(e,t){if(!t)return e;const n=e?e.clone():new Gn;return n.update(t),n}(r,n.captureContext);n.mechanism&&Pn(c,n.mechanism);const d=s?s.getEventProcessors():[],p=qt("globalScope",(()=>new Gn)).getScopeData();i&&hs(p,i.getScopeData()),l&&hs(p,l.getScopeData());const h=[...n.attachments||[],...p.attachments];return h.length&&(n.attachments=h),function(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=t;!function(e,t){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:a}=t,c=An(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const u=An(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const l=An(s);l&&Object.keys(l).length&&(e.user={...l,...e.user});const d=An(i);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),o&&(e.level=o),a&&"transaction"!==e.type&&(e.transaction=a)}(e,t),r&&function(e,t){e.contexts={trace:Gr(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:ps(t),...e.sdkProcessingMetadata};const n=es(as(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,r),function(e,t){e.fingerprint=e.fingerprint?Fn(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,s),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,i)}(c,p),Er([...d,...p.eventProcessors],c,n).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach((([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})}))}(e),"number"==typeof o&&o>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:gr(e.data,t,n)}})))},...e.user&&{user:gr(e.user,t,n)},...e.contexts&&{contexts:gr(e.contexts,t,n)},...e.extra&&{extra:gr(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=gr(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>({...e,...e.data&&{data:gr(e.data,t,n)}})))),r}(e,o,a):e)))}const gs=new WeakMap;const ys=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function _s(e,t){return rr().captureException(e,function(e){if(e)return function(e){return e instanceof Gn||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>ys.includes(e)))}(e)?{captureContext:e}:e}(t))}function vs(e,t){return rr().captureEvent(e,t)}function bs(e,t){sr().setContext(e,t)}function Ss(e){const t=or(),n=sr(),r=rr(),{release:s,environment:i=Kt}=t&&t.getOptions()||{},{userAgent:o}=Wt.navigator||{},a=function(e){const t=$n(),n={sid:Mn(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return An({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&qn(n,e),n}({release:s,environment:i,user:r.getUser()||n.getUser(),...o&&{userAgent:o},...e}),c=n.getSession();return c&&"ok"===c.status&&qn(c,{status:"exited"}),ws(),n.setSession(a),r.setSession(a),a}function ws(){const e=sr(),t=rr(),n=t.getSession()||e.getSession();n&&function(e,t){let n={};"ok"===e.status&&(n={status:"exited"}),qn(e,n)}(n),ks(),e.setSession(),t.setSession()}function ks(){const e=sr(),t=rr(),n=or(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function Es(e=!1){e?ws():ks()}const Ts=[];function xs(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;t.forEach((e=>{e.isDefaultInstance=!0})),r=Array.isArray(n)?[...t,...n]:"function"==typeof n?Fn(n(t)):t;const s=function(e){const t={};return e.forEach((e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.values(t)}(r),i=s.findIndex((e=>"Debug"===e.name));if(i>-1){const[e]=s.splice(i,1);s.push(e)}return s}function Cs(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function Is(e,t,n){if(n[t.name])kr&&vn.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===Ts.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),Ts.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}kr&&vn.log(`Integration installed: ${t.name}`)}}const Rs=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"],As=(e={})=>({name:"InboundFilters",processEvent(t,n,r){const s=r.getOptions(),i=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Rs],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,s);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(kr&&vn.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Nn(e)}`),!0):function(e,t){return!(e.type||!t||!t.length)&&function(e){const t=[];let n;e.message&&t.push(e.message);try{n=e.exception.values[e.exception.values.length-1]}catch(e){}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),t}(e).some((e=>wn(e,t)))}(e,t.ignoreErrors)?(kr&&vn.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Nn(e)}`),!0):function(e){return!e.type&&(!(!e.exception||!e.exception.values||0===e.exception.values.length)&&(!e.message&&!e.exception.values.some((e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))))}(e)?(kr&&vn.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${Nn(e)}`),!0):function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&wn(n,t)}(e,t.ignoreTransactions)?(kr&&vn.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Nn(e)}`),!0):function(e,t){if(!t||!t.length)return!1;const n=Os(e);return!!n&&wn(n,t)}(e,t.denyUrls)?(kr&&vn.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Nn(e)}.\nUrl: ${Os(e)}`),!0):!function(e,t){if(!t||!t.length)return!0;const n=Os(e);return!n||wn(n,t)}(e,t.allowUrls)&&(kr&&vn.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Nn(e)}.\nUrl: ${Os(e)}`),!0)}(t,i)?null:t}});function Os(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return kr&&vn.error(`Cannot extract url for event ${Nn(e)}`),null}}let Ms;const Ds=new WeakMap,Ns=()=>({name:"FunctionToString",setupOnce(){Ms=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=xn(this),n=Ds.has(or())&&void 0!==t?t:this;return Ms.apply(n,e)}}catch(e){}},setup(e){Ds.set(e,!0)}}),Ls=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!Bs(e,t)&&!!Ps(e,t))))}(e,t)||!!function(e,t){const n=Fs(t),r=Fs(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!Bs(e,t)&&!!Ps(e,t)))}(e,t))}(t,e))return kr&&vn.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function Ps(e,t){let n=mr(e),r=mr(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],s=n[e];if(t.filename!==s.filename||t.lineno!==s.lineno||t.colno!==s.colno||t.function!==s.function)return!1}return!0}function Bs(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function Fs(e){return e.exception&&e.exception.values&&e.exception.values[0]}const js=Wt;function Us(){if(!("fetch"in js))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function zs(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}const $s={},Hs={};function Ws(e,t){$s[e]=$s[e]||[],$s[e].push(t)}function qs(e,t){Hs[e]||(t(),Hs[e]=!0)}function Ks(e,t){const n=e&&$s[e];if(n)for(const r of n)try{r(t)}catch(t){mn&&vn.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${fr(r)}\nError:`,t)}}const Vs=Wt,Js=Wt;let Ys;function Gs(e){const t="history";Ws(t,e),qs(t,Xs)}function Xs(){if(!function(){const e=Vs.chrome,t=e&&e.app&&e.app.runtime,n="history"in Vs&&!!Vs.history.pushState&&!!Vs.history.replaceState;return!t&&n}())return;const e=Js.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=Ys,t=String(n);Ys=t,Ks("history",{from:e,to:t})}return e.apply(this,t)}}Js.onpopstate=function(...t){const n=Js.location.href,r=Ys;if(Ys=n,Ks("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(e){}},kn(Js.history,"pushState",t),kn(Js.history,"replaceState",t)}const Qs=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Zs(e,t=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${o}`}function ei(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function ti(e,t=[]){return[e,t]}function ni(e,t){const[n,r]=e;return[n,[...r,t]]}function ri(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function si(e){return Wt.__SENTRY__&&Wt.__SENTRY__.encodePolyfill?Wt.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}function ii(e){const[t,n]=e;let r=JSON.stringify(t);function s(e){"string"==typeof r?r="string"==typeof e?r+e:[si(r),e]:r.push("string"==typeof e?si(e):e)}for(const e of n){const[t,n]=e;if(s(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)s(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(gr(n))}s(e)}}return"string"==typeof r?r:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(r)}function oi(e){return[{type:"span"},e]}function ai(e){const t="string"==typeof e.data?si(e.data):e.data;return[An({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const ci={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function ui(e){return ci[e]}function li(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function di(e,t,n,r){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Zs(r)},...s&&{trace:An({...s})}}}class pi extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}const hi="7";function fi(e,t,n){return t||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return n={sentry_key:e.publicKey,sentry_version:hi,...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&");var n}(e,n)}`}function mi(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;kr&&vn.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`)}const gi="Not capturing exception because it's already been captured.";class yi{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=function(e){const t="string"==typeof e?function(e){const t=Qs.exec(e);if(!t)return void _n((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[n,r,s="",i="",o="",a=""]=t.slice(1);let c="",u=a;const l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){const e=u.match(/^\d+/);e&&(u=e[0])}return ei({host:i,pass:s,path:c,projectId:u,port:o,protocol:n,publicKey:r})}(e):ei(e);if(t&&function(e){if(!mn)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(vn.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(vn.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(vn.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(vn.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}(e.dsn):kr&&vn.warn("No DSN provided, client will not send events."),this._dsn){const t=fi(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){const r=Mn();if(Bn(e))return kr&&vn.log(gi),r;const s={event_id:r,...t};return this._process(this.eventFromException(e,s).then((e=>this._captureEvent(e,s,n)))),s.event_id}captureMessage(e,t,n,r){const s={event_id:Mn(),...n},i=tn(e)?e:String(e),o=nn(e)?this.eventFromMessage(i,t,s):this.eventFromException(e,s);return this._process(o.then((e=>this._captureEvent(e,s,r)))),s.event_id}captureEvent(e,t,n){const r=Mn();if(t&&t.originalException&&Bn(t.originalException))return kr&&vn.log(gi),r;const s={event_id:r,...t},i=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,s,i||n)),s.event_id}captureSession(e){"string"!=typeof e.release?kr&&vn.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),qn(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):br(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.emit("close"),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];Is(this,e,this._integrations),t||Cs(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){const s=li(n),i=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const o=di(e,s,r,t);return delete e.sdkProcessingMetadata,ti(o,[[{type:i},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=ni(n,ai(e));const r=this.sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,n,r){const s=li(n);return ti({sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:Zs(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n=`${e}:${t}`;kr&&vn.log(`Adding outcome: "${n}"`),this._outcomes[n]=(this._outcomes[n]||0)+1}}on(e,t){return this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t),()=>{const n=this._hooks[e];if(n){const e=n.indexOf(t);n.splice(e,1)}}}emit(e,...t){const n=this._hooks[e];n&&n.forEach((e=>e(...t)))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,(e=>(kr&&vn.error("Error while sending event:",e),e))):(kr&&vn.error("Transport disabled"),br({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&Is(e,t,n)})),n}(this,e),Cs(this,e)}_updateSessionFromEvent(e,t){let n=!1,r=!1;const s=t.exception&&t.exception.values;if(s){r=!0;for(const e of s){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&n)&&(qn(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new wr((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=sr()){const s=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),ms(s,e,t,n,this,r).then((e=>{if(null===e)return e;const t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if((!e.contexts||!e.contexts.trace)&&t){const{traceId:n,spanId:r,parentSpanId:s,dsc:i}=t;e.contexts={trace:An({trace_id:n,span_id:r,parent_span_id:s}),...e.contexts};const o=i||ds(n,this);e.sdkProcessingMetadata={dynamicSamplingContext:o,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(kr){const t=e;"log"===t.logLevel?vn.log(t.message):vn.warn(t)}}))}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:s}=r,i=vi(e),o=_i(e),a=e.type||"error",c=`before send for type \`${a}\``,u=void 0===s?void 0:mi(s);if(o&&"number"==typeof u&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error",e),Sr(new pi(`Discarding event because it's not included in the random sample (sampling rate = ${s})`,"log"));const l="replay_event"===a?"replay":a,d=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,d).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",l,e),new pi("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const s=function(e,t,n,r){const{beforeSend:s,beforeSendTransaction:i,beforeSendSpan:o}=t;if(_i(n)&&s)return s(n,r);if(vi(n)){if(n.spans&&o){const t=[];for(const r of n.spans){const n=o(r);n?t.push(n):e.recordDroppedEvent("before_send","span")}n.spans=t}if(i)return i(n,r)}return n}(this,r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(on(e))return e.then((e=>{if(!rn(e)&&null!==e)throw new pi(n);return e}),(e=>{throw new pi(`${t} rejected with ${e}`)}));if(!rn(e)&&null!==e)throw new pi(n);return e}(s,c)})).then((r=>{if(null===r){if(this.recordDroppedEvent("before_send",l,e),vi(e)){const t=1+(e.spans||[]).length;this._outcomes.span=(this._outcomes.span||0)+t}throw new pi(`${c} returned \`null\`, will not send event.`,"log")}const s=n&&n.getSession();!i&&s&&this._updateSessionFromEvent(s,r);const o=r.transaction_info;if(i&&o&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...o,source:e}}return this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof pi)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new pi(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map((([e,t])=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t}}))}}function _i(e){return void 0===e.type}function vi(e){return"transaction"===e.type}function bi(e,t,n=[t],r="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${r}:@sentry/${e}`,version:Ht}))),version:Ht}),e._metadata=s}const Si="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function wi(e,t){const n=Ei(e,t),r={type:t&&t.name,value:xi(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function ki(e,t){return{exception:{values:[wi(e,t)]}}}function Ei(e,t){const n=t.stacktrace||t.stack||"",r=function(e){return e&&Ti.test(e.message)?1:0}(t),s=function(e){return"number"==typeof e.framesToPop?e.framesToPop:0}(t);try{return e(n,r,s)}catch(e){}return[]}const Ti=/Minified React error #\d+;/i;function xi(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Ci(e,t,n,r,s){let i;if(Qt(t)&&t.error)return ki(e,t.error);if(Zt(t)||Xt(t,"DOMException")){const s=t;if("stack"in t)i=ki(e,t);else{const t=s.name||(Zt(s)?"DOMError":"DOMException"),o=s.message?`${t}: ${s.message}`:t;i=Ii(e,o,n,r),Ln(i,o)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}return Gt(t)?ki(e,t):rn(t)||sn(t)?(i=function(e,t,n,r){const s=or(),i=s&&s.getOptions().normalizeDepth,o=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}(t),a={__serialized__:yr(t,i)};if(o)return{exception:{values:[wi(e,o)]},extra:a};const c={exception:{values:[{type:sn(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Ri(t,{isUnhandledRejection:r})}]},extra:a};if(n){const t=Ei(e,n);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}(e,t,n,s),Pn(i,{synthetic:!0}),i):(i=Ii(e,t,n,r),Ln(i,`${t}`,void 0),Pn(i,{synthetic:!0}),i)}function Ii(e,t,n,r){const s={};if(r&&n){const r=Ei(e,n);r.length&&(s.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(tn(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return s.logentry={message:e,params:n},s}return s.message=t,s}function Ri(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(Cn(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return bn(r,t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:bn(r,t)}return""}(e),r=t?"promise rejection":"exception";return Qt(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:sn(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}const Ai=Wt;let Oi=0;function Mi(){return Oi>0}function Di(e,t={},n){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if(xn(e))return e}catch(t){return e}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);const s=r.map((e=>Di(e,t)));return e.apply(this,s)}catch(e){throw Oi++,setTimeout((()=>{Oi--})),ir((n=>{n.addEventProcessor((e=>(t.mechanism&&(Ln(e,void 0,void 0),Pn(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),_s(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(e){}Tn(r,e),En(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch(e){}return r}class Ni extends yi{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e};bi(t,"browser",["browser"],Ai.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&Ai.document&&Ai.document.addEventListener("visibilitychange",(()=>{"hidden"===Ai.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){const s=Ci(e,t,n&&n.syntheticException||void 0,r);return Pn(s),s.level="error",n&&n.event_id&&(s.event_id=n.event_id),br(s)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,s){const i=Ii(e,t,r&&r.syntheticException||void 0,s);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),br(i)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(Si&&vn.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:r}){const s={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Zs(r)}},i=function(e){return[{type:"user_report"},e]}(e);return ti(s,[i])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(Si&&vn.log("No outcomes to send"));if(!this._dsn)return void(Si&&vn.log("No dsn provided, will not send outcomes"));Si&&vn.log("Sending outcomes:",e);const t=(n=e,ti((r=this._options.tunnel&&Zs(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:zn(),discarded_events:n}]]));var n,r;this.sendEnvelope(t)}}const Li=1e3;let Pi,Bi,Fi;function ji(e){Ws("dom",e),qs("dom",Ui)}function Ui(){if(!Js.document)return;const e=Ks.bind(null,"dom"),t=zi(e,!0);Js.document.addEventListener("click",t,!1),Js.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=Js[t]&&Js[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(kn(n,"addEventListener",(function(t){return function(n,r,s){if("click"===n||"keypress"==n)try{const r=this,i=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},o=i[n]=i[n]||{refCount:0};if(!o.handler){const r=zi(e);o.handler=r,t.call(this,n,r,s)}o.refCount++}catch(e){}return t.call(this,n,r,s)}})),kn(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,s=n.__sentry_instrumentation_handlers__||{},i=s[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete s[t]),0===Object.keys(s).length&&delete n.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}function zi(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;En(n,"_sentryCaptured",!0),r&&!r._sentryId&&En(r,"_sentryId",Mn());const s="keypress"===n.type?"input":n.type;(function(e){if(e.type!==Bi)return!1;try{if(!e.target||e.target._sentryId!==Fi)return!1}catch(e){}return!0})(n)||(e({event:n,name:s,global:t}),Bi=n.type,Fi=r?r._sentryId:void 0),clearTimeout(Pi),Pi=Js.setTimeout((()=>{Fi=void 0,Bi=void 0}),Li)}}const $i="__sentry_xhr_v3__";function Hi(e){Ws("xhr",e),qs("xhr",Wi)}function Wi(){if(!Js.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;kn(e,"open",(function(e){return function(...t){const n=1e3*$n(),r=en(t[0])?t[0].toUpperCase():void 0,s=function(e){if(en(e))return e;try{return e.toString()}catch(e){}}(t[1]);if(!r||!s)return e.apply(this,t);this[$i]={method:r,url:s,request_headers:{}},"POST"===r&&s.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const i=()=>{const e=this[$i];if(e&&4===this.readyState){try{e.status_code=this.status}catch(e){}Ks("xhr",{endTimestamp:1e3*$n(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?kn(this,"onreadystatechange",(function(e){return function(...t){return i(),e.apply(this,t)}})):this.addEventListener("readystatechange",i),kn(this,"setRequestHeader",(function(e){return function(...t){const[n,r]=t,s=this[$i];return s&&en(n)&&en(r)&&(s.request_headers[n.toLowerCase()]=r),e.apply(this,t)}})),e.apply(this,t)}})),kn(e,"send",(function(e){return function(...t){const n=this[$i];return n?(void 0!==t[0]&&(n.body=t[0]),Ks("xhr",{startTimestamp:1e3*$n(),xhr:this}),e.apply(this,t)):e.apply(this,t)}}))}const qi=100;function Ki(e,t){const n=or(),r=sr();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:i=qi}=n.getOptions();if(i<=0)return;const o={timestamp:zn(),...e},a=s?_n((()=>s(o,t))):o;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,i))}function Vi(){"console"in Wt&&gn.forEach((function(e){e in Wt.console&&kn(Wt.console,e,(function(t){return yn[e]=t,function(...t){Ks("console",{args:t,level:e});const n=yn[e];n&&n.apply(Wt.console,t)}}))}))}function Ji(e){const t="fetch";Ws(t,e),qs(t,Yi)}function Yi(){(function(){if("string"==typeof EdgeRuntime)return!0;if(!Us())return!1;if(zs(js.fetch))return!0;let e=!1;const t=js.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=zs(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){mn&&vn.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e})()&&kn(Wt,"fetch",(function(e){return function(...t){const{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Xi(t),method:Gi(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Xi(t),method:Gi(t,"method")?String(t.method).toUpperCase():"GET"}}(t),s={args:t,fetchData:{method:n,url:r},startTimestamp:1e3*$n()};Ks("fetch",{...s});const i=(new Error).stack;return e.apply(Wt,t).then((e=>(Ks("fetch",{...s,endTimestamp:1e3*$n(),response:e}),e)),(e=>{throw Ks("fetch",{...s,endTimestamp:1e3*$n(),error:e}),Gt(e)&&void 0===e.stack&&(e.stack=i,En(e,"framesToPop",1)),e}))}}))}function Gi(e,t){return!!e&&"object"==typeof e&&!!e[t]}function Xi(e){return"string"==typeof e?e:e?Gi(e,"url")?e.url:e.toString?e.toString():"":""}const Qi=["fatal","error","warning","log","info","debug"];function Zi(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const eo=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){t.console&&function(e){const t="console";Ws(t,e),qs(t,Vi)}(function(e){return function(t){if(or()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:(r=t.level,"warn"===r?"warning":Qi.includes(r)?r:"log"),message:Sn(t.args," ")};var r;if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${Sn(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}Ki(n,{input:t.args,level:t.level})}}(e)),t.dom&&ji(function(e,t){return function(n){if(or()!==e)return;let r,s,i="object"==typeof t?t.serializeAttribute:void 0,o="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;o&&o>1024&&(Si&&vn.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`),o=1024),"string"==typeof i&&(i=[i]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=dn(t,{keyAttrs:i,maxStringLength:o}),s=fn(t)}catch(e){r="<unknown>"}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};s&&(a.data={"ui.component_name":s}),Ki(a,{event:n.event,name:n.name,global:n.global})}}(e,t.dom)),t.xhr&&Hi(function(e){return function(t){if(or()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,s=t.xhr[$i];if(!n||!r||!s)return;const{method:i,url:o,status_code:a,body:c}=s;Ki({category:"xhr",data:{method:i,url:o,status_code:a},type:"http"},{xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r})}}(e)),t.fetch&&Ji(function(e){return function(t){if(or()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error)Ki({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r});else{const e=t.response;Ki({category:"fetch",data:{...t.fetchData,status_code:e&&e.status},type:"http"},{input:t.args,response:e,startTimestamp:n,endTimestamp:r})}}}(e)),t.history&&Gs(function(e){return function(t){if(or()!==e)return;let n=t.from,r=t.to;const s=Zi(Ai.location.href);let i=n?Zi(n):void 0;const o=Zi(r);i&&i.path||(i=s),s.protocol===o.protocol&&s.host===o.host&&(r=o.relative),s.protocol===i.protocol&&s.host===i.host&&(n=i.relative),Ki({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){or()===e&&Ki({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Nn(t)},{event:t})}}(e))}}},to=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],no=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&kn(Ai,"setTimeout",ro),t.setInterval&&kn(Ai,"setInterval",ro),t.requestAnimationFrame&&kn(Ai,"requestAnimationFrame",so),t.XMLHttpRequest&&"XMLHttpRequest"in Ai&&kn(XMLHttpRequest.prototype,"send",io);const e=t.eventTarget;e&&(Array.isArray(e)?e:to).forEach(oo)}}};function ro(e){return function(...t){const n=t[0];return t[0]=Di(n,{mechanism:{data:{function:fr(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function so(e){return function(t){return e.apply(this,[Di(t,{mechanism:{data:{function:"requestAnimationFrame",handler:fr(e)},handled:!1,type:"instrument"}})])}}function io(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&kn(n,e,(function(t){const n={mechanism:{data:{function:e,handler:fr(t)},handled:!1,type:"instrument"}},r=xn(t);return r&&(n.mechanism.data.handler=fr(r)),Di(t,n)}))})),e.apply(this,t)}}function oo(e){const t=Ai,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(kn(n,"addEventListener",(function(t){return function(n,r,s){try{"function"==typeof r.handleEvent&&(r.handleEvent=Di(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:fr(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,Di(r,{mechanism:{data:{function:"addEventListener",handler:fr(r),target:e},handled:!1,type:"instrument"}}),s])}})),kn(n,"removeEventListener",(function(e){return function(t,n,r){const s=n;try{const n=s&&s.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(e){}return e.call(this,t,s,r)}})))}let ao=null;function co(e){const t="error";Ws(t,e),qs(t,uo)}function uo(){ao=Wt.onerror,Wt.onerror=function(e,t,n,r,s){return Ks("error",{column:r,error:s,line:n,msg:e,url:t}),!(!ao||ao.__SENTRY_LOADER__)&&ao.apply(this,arguments)},Wt.onerror.__SENTRY_INSTRUMENTED__=!0}let lo=null;function po(e){const t="unhandledrejection";Ws(t,e),qs(t,ho)}function ho(){lo=Wt.onunhandledrejection,Wt.onunhandledrejection=function(e){return Ks("unhandledrejection",e),!(lo&&!lo.__SENTRY_LOADER__)||lo.apply(this,arguments)},Wt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const fo=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){co((t=>{const{stackParser:n,attachStacktrace:r}=go();if(or()!==e||Mi())return;const{msg:s,url:i,line:o,column:a,error:c}=t,u=function(e,t,n,r){const s=e.exception=e.exception||{},i=s.values=s.values||[],o=i[0]=i[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[],u=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,d=en(t)&&t.length>0?t:hn();return 0===c.length&&c.push({colno:u,filename:d,function:cr,in_app:!0,lineno:l}),e}(Ci(n,c||s,void 0,r,!1),i,o,a);u.level="error",vs(u,{originalException:c,mechanism:{handled:!1,type:"onerror"}})}))}(e),mo("onerror")),t.onunhandledrejection&&(function(e){po((t=>{const{stackParser:n,attachStacktrace:r}=go();if(or()!==e||Mi())return;const s=function(e){if(nn(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(t),i=nn(s)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(s)}`}]}}:Ci(n,s,void 0,r,!0);i.level="error",vs(i,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),mo("onunhandledrejection"))}}};function mo(e){Si&&vn.log(`Global Handler attached: ${e}`)}function go(){const e=or();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function yo(e,t,n=250,r,s,i,o){if(!(i.exception&&i.exception.values&&o&&an(o.originalException,Error)))return;const a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;var c,u;a&&(i.exception.values=(c=_o(e,t,s,o.originalException,r,i.exception.values,a,0),u=n,c.map((e=>(e.value&&(e.value=bn(e.value,u)),e)))))}function _o(e,t,n,r,s,i,o,a){if(i.length>=n+1)return i;let c=[...i];if(an(r[s],Error)){vo(o,a);const i=e(t,r[s]),u=c.length;bo(i,s,u,a),c=_o(e,t,n,r[s],s,[i,...c],i,u)}return Array.isArray(r.errors)&&r.errors.forEach(((r,i)=>{if(an(r,Error)){vo(o,a);const u=e(t,r),l=c.length;bo(u,`errors[${i}]`,l,a),c=_o(e,t,n,r,s,[u,...c],u,l)}})),c}function vo(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function bo(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const So=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,s){const i=s.getOptions();yo(wi,i.stackParser,i.maxValueLength,n,t,e,r)}}};function wo(e,t,n,r){const s={filename:e,function:"<anonymous>"===t?cr:t,in_app:!0};return void 0!==n&&(s.lineno=n),void 0!==r&&(s.colno=r),s}const ko=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Eo=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,To=/\((\S*)(?::(\d+))(?::(\d+))\)/,xo=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Co=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Io=dr([30,e=>{const t=ko.exec(e);if(t){const[,e,n,r]=t;return wo(e,cr,+n,+r)}const n=Eo.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){const e=To.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}const[e,t]=Ro(n[1]||cr,n[2]);return wo(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,e=>{const t=xo.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Co.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||cr;return[n,e]=Ro(n,e),wo(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),Ro=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:cr,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Ao="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Oo={};function Mo(e){const t=Oo[e];if(t)return t;let n=Js[e];if(zs(n))return Oo[e]=n.bind(Js);const r=Js.document;if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const s=t.contentWindow;s&&s[e]&&(n=s[e]),r.head.removeChild(t)}catch(t){Ao&&vn.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?Oo[e]=n.bind(Js):n}function Do(e){Oo[e]=void 0}function No(...e){return Mo("setTimeout")(...e)}const Lo=6e4;function Po(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}function Bo(e,{statusCode:t,headers:n},r=Date.now()){const s={...e},i=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(i)for(const e of i.trim().split(",")){const[t,n,,,i]=e.split(":",5),o=parseInt(t,10),a=1e3*(isNaN(o)?60:o);if(n)for(const e of n.split(";"))"metric_bucket"===e&&i&&!i.split(";").includes("custom")||(s[e]=r+a);else s.all=r+a}else o?s.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?Lo:r-t}(o,r):429===t&&(s.all=r+6e4);return s}const Fo=64;function jo(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}function Uo(e,t=Mo("fetch")){let n=0,r=0;return function(e,t,n=function(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return Sr(new pi("Not adding Promise because buffer limit was reached."));const s=r();return-1===t.indexOf(s)&&t.push(s),s.then((()=>n(s))).then(null,(()=>n(s).then(null,(()=>{})))),s},drain:function(e){return new wr(((n,r)=>{let s=t.length;if(!s)return n(!0);const i=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{br(e).then((()=>{--s||(clearTimeout(i),n(!0))}),r)}))}))}}}(e.bufferSize||Fo)){let r={};return{send:function(s){const i=[];if(ri(s,((t,n)=>{const s=ui(n);if(Po(r,s)){const r=jo(t,n);e.recordDroppedEvent("ratelimit_backoff",s,r)}else i.push(t)})),0===i.length)return br({});const o=ti(s[0],i),a=t=>{ri(o,((n,r)=>{const s=jo(n,r);e.recordDroppedEvent(t,ui(r),s)}))};return n.add((()=>t({body:ii(o)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&kr&&vn.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=Bo(r,e),e)),(e=>{throw a("network_error"),e})))).then((e=>e),(e=>{if(e instanceof pi)return kr&&vn.error("Skipped sending event because buffer is full."),a("queue_overflow"),br({});throw e}))},flush:e=>n.drain(e)}}(e,(function(s){const i=s.body.length;n+=i,r++;const o={body:s.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return Do("fetch"),Sr("No fetch implementation available");try{return t(e.url,o).then((e=>(n-=i,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return Do("fetch"),n-=i,r--,Sr(e)}}))}function zo(e={}){const t=function(e={}){return{defaultIntegrations:[As(),Ns(),no(),eo(),fo(),So(),Ls(),{name:"HttpContext",preprocessEvent(e){if(!Ai.navigator&&!Ai.location&&!Ai.document)return;const t=e.request&&e.request.url||Ai.location&&Ai.location.href,{referrer:n}=Ai.document||{},{userAgent:r}=Ai.navigator||{},s={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...e.request,...t&&{url:t},headers:s};e.request=i}}],release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Ai.SENTRY_RELEASE&&Ai.SENTRY_RELEASE.id?Ai.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0,...e}}(e);if(function(){const e=Ai[Ai.chrome?"chrome":"browser"],t=e&&e.runtime&&e.runtime.id,n=Ai.location&&Ai.location.href||"",r=!!t&&Ai===Ai.top&&["chrome-extension:","moz-extension:","ms-browser-extension:"].some((e=>n.startsWith(`${e}//`)));return!!t&&!r}())return void _n((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}));Si&&(Us()||vn.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...t,stackParser:(r=t.stackParser||Io,Array.isArray(r)?dr(...r):r),integrations:xs(t),transport:t.transport||Uo};var r;const s=function(e,t){!0===t.debug&&(kr?vn.enable():_n((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))),rr().update(t.initialScope);const n=new e(t);return function(e){rr().setClient(e)}(n),n.init(),n}(Ni,n);return t.autoSessionTracking&&(void 0!==Ai.document?(Ss({ignoreDuration:!0}),Es(),Gs((({from:e,to:t})=>{void 0!==e&&e!==t&&(Ss({ignoreDuration:!0}),Es())}))):Si&&vn.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")),s}var $o=n(294);function Ho(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=e||function(){const e=or();return e&&e.getOptions()}();return!!t&&(t.enableTracing||"tracesSampleRate"in t||"tracesSampler"in t)}class Wo{constructor(e={}){this._traceId=e.traceId||Mn(),this._spanId=e.spanId||Mn().substring(16)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}}function qo(e){if(!e||0===e.length)return;const t={};return e.forEach((e=>{const n=e.attributes||{},r=n[Br],s=n[Fr];"string"==typeof r&&"number"==typeof s&&(t[e.name]={value:s,unit:r})})),t}const Ko="_sentryScope",Vo="_sentryIsolationScope";function Jo(e){return{scope:e[Ko],isolationScope:e[Vo]}}class Yo{constructor(e={}){this._traceId=e.traceId||Mn(),this._spanId=e.spanId||Mn().substring(16),this._startTime=e.startTimestamp||$n(),this._attributes={},this.setAttributes({[Lr]:"manual",[Nr]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?Jr:0}}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach((t=>this.setAttribute(t,e[t])))}updateStartTime(e){this._startTime=Qr(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this}end(e){this._endTime||(this._endTime=Qr(e),function(e){if(!kr)return;const{description:t="< unknown name >",op:n="< unknown op >"}=es(e),{spanId:r}=e.spanContext(),s=`[Tracing] Finishing "${n}" ${as(e)===e?"root ":""}span "${t}" with ID ${r}`;vn.log(s)}(this),this._onSpanEnded())}getSpanJSON(){return An({data:this._attributes,description:this._name,op:this._attributes[Nr],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:ns(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Lr],_metrics_summary:Hr(this),profile_id:this._attributes["sentry.profile_id"],exclusive_time:this._attributes[jr],measurements:qo(this._events),is_segment:this._isStandaloneSpan&&as(this)===this||void 0,segment_id:this._isStandaloneSpan?as(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){kr&&vn.log("[Tracing] Adding an event to span:",e);const r=Go(t)?t:n||$n(),s=Go(t)?{}:t||{},i={name:e,time:Qr(r),attributes:s};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=or();if(e&&e.emit("spanEnd",this),!this._isStandaloneSpan&&this!==as(this))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){const t=or();if(!t)return;const n=e[1];if(!n||0===n.length)return void t.recordDroppedEvent("before_send","span");const r=t.getTransport();r&&r.send(e).then(null,(e=>{kr&&vn.error("Error while sending span:",e)}))}(function(e,t){const n=ps(e[0]),r=t&&t.getDsn(),s=t&&t.getOptions().tunnel,i={sent_at:(new Date).toISOString(),...function(e){return!!e.trace_id&&!!e.public_key}(n)&&{trace:n},...!!s&&r&&{dsn:Zs(r)}},o=t&&t.getOptions().beforeSendSpan,a=o?e=>o(es(e)):e=>es(e),c=[];for(const t of e){const e=a(t);e&&c.push(oi(e))}return ti(i,c)}([this],e)):(kr&&vn.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));const t=this._convertSpanToTransaction();t&&(Jo(this).scope||rr()).captureEvent(t)}_convertSpanToTransaction(){if(!Xo(es(this)))return;this._name||(kr&&vn.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:t}=Jo(this),n=(e||rr()).getClient()||or();if(!0!==this._sampled)return kr&&vn.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(n&&n.recordDroppedEvent("sample_rate","transaction"));const r=os(this).filter((e=>e!==this&&!function(e){return e instanceof Yo&&e.isStandaloneSpan()}(e))).map((e=>es(e))).filter(Xo),s=this._attributes[Mr],i={contexts:{trace:Yr(this)},spans:r.length>1e3?r.sort(((e,t)=>e.start_timestamp-t.start_timestamp)).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...An({dynamicSamplingContext:ps(this)})},_metrics_summary:Hr(this),...s&&{transaction_info:{source:s}}},o=qo(this._events);return o&&Object.keys(o).length&&(kr&&vn.log("[Measurements] Adding measurements to transaction event",JSON.stringify(o,void 0,2)),i.measurements=o),i}}function Go(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function Xo(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}const Qo="__SENTRY_SUPPRESS_TRACING__";function Zo(e){const t=ta();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=function(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const n={...t};return n.startTimestamp=Qr(e.startTime),delete n.startTime,n}return t}(e),{forceTransaction:r,parentSpan:s}=e;return(e.scope?t=>ir(e.scope,t):s?e=>ea(s,e):e=>e())((()=>{const t=rr(),s=function(e){const t=Jn(e);if(!t)return;const n=or();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?as(t):t}(t);return e.onlyIfParent&&!s?new Wo:function({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!Ho())return new Wo;const s=sr();let i;if(e&&!n)i=function(e,t,n){const{spanId:r,traceId:s}=e.spanContext(),i=!t.getScopeData().sdkProcessingMetadata[Qo]&&ts(e),o=i?new Yo({...n,parentSpanId:r,traceId:s,sampled:i}):new Wo({traceId:s});is(e,o);const a=or();return a&&(a.emit("spanStart",o),n.endTimestamp&&a.emit("spanEnd",o)),o}(e,r,t),is(e,i);else if(e){const n=ps(e),{traceId:s,spanId:o}=e.spanContext(),a=ts(e);i=na({traceId:s,parentSpanId:o,...t},r,a),ls(i,n)}else{const{traceId:e,dsc:n,parentSpanId:o,sampled:a}={...s.getPropagationContext(),...r.getPropagationContext()};i=na({traceId:e,parentSpanId:o,...t},r,a),n&&ls(i,n)}return function(e){if(!kr)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=es(e),{spanId:s}=e.spanContext(),i=ts(e),o=as(e),a=o===e,c=`[Tracing] Starting ${i?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${s}`];if(r&&u.push(`parent ID: ${r}`),!a){const{op:e,description:t}=es(o);u.push(`root ID: ${o.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}vn.log(`${c}\n  ${u.join("\n  ")}`)}(i),function(e,t,n){e&&(En(e,Vo,n),En(e,Ko,t))}(i,r,s),i}({parentSpan:s,spanArguments:n,forceTransaction:r,scope:t})}))}function ea(e,t){const n=ta();return n.withActiveSpan?n.withActiveSpan(e,t):ir((n=>(Vn(n,e||void 0),t(n))))}function ta(){return nr(Vt())}function na(e,t,n){const r=or(),s=r&&r.getOptions()||{},{name:i="",attributes:o}=e,[a,c]=t.getScopeData().sdkProcessingMetadata[Qo]?[!1]:function(e,t){if(!Ho(e))return[!1];let n;n="function"==typeof e.tracesSampler?e.tracesSampler(t):void 0!==t.parentSampled?t.parentSampled:void 0!==e.tracesSampleRate?e.tracesSampleRate:1;const r=mi(n);return void 0===r?(kr&&vn.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):r?Math.random()<r?[!0,r]:(kr&&vn.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[!1,r]):(kr&&vn.log("[Tracing] Discarding transaction because "+("function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),[!1,r])}(s,{name:i,parentSampled:n,attributes:o,transactionContext:{name:i,parentSampled:n}}),u=new Yo({...e,attributes:{[Mr]:"custom",...e.attributes},sampled:a});return void 0!==c&&u.setAttribute(Dr,c),r&&r.emit("spanStart",u),u}const ra=(e,t,n,r)=>{let s,i;return o=>{t.value>=0&&(o||r)&&(i=t.value-(s||0),(i||void 0===s)&&(s=t.value,t.delta=i,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}},sa=()=>Js.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],ia=()=>{const e=sa();return e&&e.activationStart||0},oa=(e,t)=>{const n=sa();let r="navigate";return n&&(Js.document&&Js.document.prerendering||ia()>0?r="prerender":Js.document&&Js.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},aa=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},ca=e=>{const t=t=>{("pagehide"===t.type||Js.document&&"hidden"===Js.document.visibilityState)&&e(t)};Js.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},ua=e=>{let t=!1;return n=>{t||(e(n),t=!0)}};let la=-1;const da=e=>{"hidden"===Js.document.visibilityState&&la>-1&&(la="visibilitychange"===e.type?e.timeStamp:0,removeEventListener("visibilitychange",da,!0),removeEventListener("prerenderingchange",da,!0))},pa=()=>(Js.document&&la<0&&(la="hidden"!==Js.document.visibilityState||Js.document.prerendering?1/0:0,addEventListener("visibilitychange",da,!0),addEventListener("prerenderingchange",da,!0)),{get firstHiddenTime(){return la}}),ha=e=>{Js.document&&Js.document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},fa=[1800,3e3],ma=[.1,.25],ga=(e,t={})=>{((e,t={})=>{ha((()=>{const n=pa(),r=oa("FCP");let s;const i=aa("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(i.disconnect(),e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-ia(),0),r.entries.push(e),s(!0)))}))}));i&&(s=ra(e,r,fa,t.reportAllChanges))}))})(ua((()=>{const n=oa("CLS",0);let r,s=0,i=[];const o=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=i[0],n=i[i.length-1];s&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(s+=e.value,i.push(e)):(s=e.value,i=[e])}})),s>n.value&&(n.value=s,n.entries=i,r())},a=aa("layout-shift",o);a&&(r=ra(e,n,ma,t.reportAllChanges),ca((()=>{o(a.takeRecords()),r(!0)})),setTimeout(r,0))})))},ya=[100,300],_a=(e,t={})=>{ha((()=>{const n=pa(),r=oa("FID");let s;const i=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),s(!0))},o=e=>{e.forEach(i)},a=aa("first-input",o);s=ra(e,r,ya,t.reportAllChanges),a&&ca(ua((()=>{o(a.takeRecords()),a.disconnect()})))}))};let va=0,ba=1/0,Sa=0;const wa=e=>{e.forEach((e=>{e.interactionId&&(ba=Math.min(ba,e.interactionId),Sa=Math.max(Sa,e.interactionId),va=Sa?(Sa-ba)/7+1:0)}))};let ka;const Ea=()=>{"interactionCount"in performance||ka||(ka=aa("event",wa,{type:"event",buffered:!0,durationThreshold:0}))},Ta=[200,500],xa=()=>(ka?va:performance.interactionCount||0)-0,Ca=[],Ia={},Ra=e=>{const t=Ca[Ca.length-1],n=Ia[e.interactionId];if(n||Ca.length<10||t&&e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};Ia[t.id]=t,Ca.push(t)}Ca.sort(((e,t)=>t.latency-e.latency)),Ca.splice(10).forEach((e=>{delete Ia[e.id]}))}},Aa=(e,t={})=>{ha((()=>{Ea();const n=oa("INP");let r;const s=e=>{e.forEach((e=>{e.interactionId&&Ra(e),"first-input"===e.entryType&&!Ca.some((t=>t.entries.some((t=>e.duration===t.duration&&e.startTime===t.startTime))))&&Ra(e)}));const t=(()=>{const e=Math.min(Ca.length-1,Math.floor(xa()/50));return Ca[e]})();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())},i=aa("event",s,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});r=ra(e,n,Ta,t.reportAllChanges),i&&("PerformanceEventTiming"in Js&&"interactionId"in PerformanceEventTiming.prototype&&i.observe({type:"first-input",buffered:!0}),ca((()=>{s(i.takeRecords()),n.value<0&&xa()>0&&(n.value=0,n.entries=[]),r(!0)})))}))},Oa=[2500,4e3],Ma={},Da=(e,t={})=>{ha((()=>{const n=pa(),r=oa("LCP");let s;const i=e=>{const t=e[e.length-1];t&&t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-ia(),0),r.entries=[t],s())},o=aa("largest-contentful-paint",i);if(o){s=ra(e,r,Oa,t.reportAllChanges);const n=ua((()=>{Ma[r.id]||(i(o.takeRecords()),o.disconnect(),Ma[r.id]=!0,s(!0))}));["keydown","click"].forEach((e=>{Js.document&&addEventListener(e,(()=>setTimeout(n,0)),!0)})),ca(n)}}))},Na=[800,1800],La=e=>{Js.document&&Js.document.prerendering?ha((()=>La(e))):Js.document&&"complete"!==Js.document.readyState?addEventListener("load",(()=>La(e)),!0):setTimeout(e,0)},Pa=(e,t={})=>{const n=oa("TTFB"),r=ra(e,n,Na,t.reportAllChanges);La((()=>{const e=sa();if(e){const t=e.responseStart;if(t<=0||t>performance.now())return;n.value=Math.max(t-ia(),0),n.entries=[e],r(!0)}}))},Ba={},Fa={};let ja,Ua,za,$a,Ha;function Wa(e,t=!1){return tc("cls",e,Ga,ja,t)}function qa(e,t=!1){return tc("lcp",e,Qa,za,t)}function Ka(e){return tc("fid",e,Xa,Ua)}function Va(e){return tc("inp",e,ec,Ha)}function Ja(e,t){return nc(e,t),Fa[e]||(function(e){const t={};"event"===e&&(t.durationThreshold=0),aa(e,(t=>{Ya(e,{entries:t})}),t)}(e),Fa[e]=!0),rc(e,t)}function Ya(e,t){const n=Ba[e];if(n&&n.length)for(const r of n)try{r(t)}catch(t){Ao&&vn.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${fr(r)}\nError:`,t)}}function Ga(){return ga((e=>{Ya("cls",{metric:e}),ja=e}),{reportAllChanges:!0})}function Xa(){return _a((e=>{Ya("fid",{metric:e}),Ua=e}))}function Qa(){return Da((e=>{Ya("lcp",{metric:e}),za=e}),{reportAllChanges:!0})}function Za(){return Pa((e=>{Ya("ttfb",{metric:e}),$a=e}))}function ec(){return Aa((e=>{Ya("inp",{metric:e}),Ha=e}))}function tc(e,t,n,r,s=!1){let i;return nc(e,t),Fa[e]||(i=n(),Fa[e]=!0),r&&t({metric:r}),rc(e,t,s?i:void 0)}function nc(e,t){Ba[e]=Ba[e]||[],Ba[e].push(t)}function rc(e,t,n){return()=>{n&&n();const r=Ba[e];if(!r)return;const s=r.indexOf(t);-1!==s&&r.splice(s,1)}}function sc(e){return"number"==typeof e&&isFinite(e)}function ic(e,t,n,{...r}){const s=es(e).start_timestamp;return s&&s>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),ea(e,(()=>{const e=Zo({startTime:t,...r});return e&&e.end(n),e}))}function oc(){return Js&&Js.addEventListener&&Js.performance}function ac(e){return e/1e3}const cc=2147483647;let uc,lc,dc=0,pc={};function hc(e,t,n,r,s,i){const o=i?t[i]:t[`${n}End`],a=t[`${n}Start`];a&&o&&ic(e,r+ac(a),r+ac(o),{op:"browser",name:s||n,attributes:{[Lr]:"auto.ui.browser.metrics"}})}function fc(e,t,n,r){const s=t[n];null!=s&&s<cc&&(e[r]=s)}const mc=[],gc=new Map;const yc={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"},_c={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function vc(e,t={}){const n=new Map;let r,s=!1,i="externalFinish",o=!t.disableAutoFinish;const{idleTimeout:a=_c.idleTimeout,finalTimeout:c=_c.finalTimeout,childSpanTimeout:u=_c.childSpanTimeout,beforeSpanEnd:l}=t,d=or();if(!d||!Ho())return new Wo;const p=rr(),h=cs(),f=function(e){const t=Zo(e);return Vn(rr(),t),kr&&vn.log("[Tracing] Started span is an idle span"),t}(e);function m(){r&&(clearTimeout(r),r=void 0)}function g(e){m(),r=setTimeout((()=>{!s&&0===n.size&&o&&(i="idleTimeout",f.end(e))}),a)}function y(e){r=setTimeout((()=>{!s&&o&&(i="heartbeatFailed",f.end(e))}),u)}function _(e){s=!0,n.clear(),Vn(p,h);const t=es(f),{start_timestamp:r}=t;if(!r)return;(t.data||{})[Pr]||f.setAttribute(Pr,i),vn.log(`[Tracing] Idle span "${t.op}" finished`);const o=os(f).filter((e=>e!==f));let u=0;o.forEach((t=>{t.isRecording()&&(t.setStatus({code:Kr,message:"cancelled"}),t.end(e),kr&&vn.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const n=es(t),{timestamp:r=0,start_timestamp:s=0}=n,i=s<=e,o=r-s<=(c+a)/1e3;if(kr){const e=JSON.stringify(t,void 0,2);i?o||vn.log("[Tracing] Discarding span since it finished after idle span final timeout",e):vn.log("[Tracing] Discarding span since it happened after idle span was finished",e)}o&&i||(function(e,t){e[rs]&&e[rs].delete(t)}(f,t),u++)})),u>0&&f.setAttribute("sentry.idle_span_discarded_spans",u)}return f.end=new Proxy(f.end,{apply(e,t,n){l&&l(f);const[r,...s]=n,i=Qr(r||$n()),o=os(f).filter((e=>e!==f));if(!o.length)return _(i),Reflect.apply(e,t,[i,...s]);const a=o.map((e=>es(e).timestamp)).filter((e=>!!e)),u=a.length?Math.max(...a):void 0,d=es(f).start_timestamp,p=Math.min(d?d+c/1e3:1/0,Math.max(d||-1/0,Math.min(i,u||1/0)));return _(p),Reflect.apply(e,t,[p,...s])}}),d.on("spanStart",(e=>{var t;s||e===f||es(e).timestamp||os(f).includes(e)&&(t=e.spanContext().spanId,m(),n.set(t,!0),y($n()+u/1e3))})),d.on("spanEnd",(e=>{var t;s||(t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&g($n()+a/1e3))})),d.on("idleSpanEnableAutoFinish",(e=>{e===f&&(o=!0,g(),n.size&&y())})),t.disableAutoFinish||g(),setTimeout((()=>{s||(f.setStatus({code:Kr,message:"deadline_exceeded"}),i="finalTimeout",f.end())}),c),f}let bc=!1;function Sc(){const e=cs(),t=e&&as(e);if(t){const e="internal_error";kr&&vn.log(`[Tracing] Root span: ${e} -> Global error occured`),t.setStatus({code:Kr,message:e})}}Sc.tag="sentry_tracingErrorCallback";const wc={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0};function kc(e){const{traceFetch:t,traceXHR:n,shouldCreateSpanForRequest:r,enableHTTPTimings:s,tracePropagationTargets:i}={traceFetch:wc.traceFetch,traceXHR:wc.traceXHR,...e},o="function"==typeof r?r:e=>!0,a=e=>function(e,t){const n=Ai.location&&Ai.location.href;if(n){let r,s;try{r=new URL(e,n),s=new URL(n).origin}catch(e){return!1}const i=r.origin===s;return t?wn(r.toString(),t)||i&&wn(r.pathname,t):i}{const n=!!e.match(/^\/(?!\/)/);return t?wn(e,t):n}}(e,i),c={};t&&Ji((e=>{const t=function(e,t,n,r,s="auto.http.browser"){if(!e.fetchData)return;const i=Ho()&&t(e.fetchData.url);if(e.endTimestamp&&i){const t=e.fetchData.__span;if(!t)return;const n=r[t];return void(n&&(function(e,t){if(t.response){Vr(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:Kr,message:"internal_error"});e.end()}(n,e),delete r[t]))}const o=rr(),a=or(),{method:c,url:u}=e.fetchData,l=function(e){try{return new URL(e).href}catch(e){return}}(u),d=l?Zi(l).host:void 0,p=!!cs(),h=i&&p?Zo({name:`${c} ${u}`,attributes:{url:u,type:"fetch","http.method":c,"http.url":l,"server.address":d,[Lr]:s,[Nr]:"http.client"}}):new Wo;if(e.fetchData.__span=h.spanContext().spanId,r[h.spanContext().spanId]=h,n(e.fetchData.url)&&a){const t=e.args[0];e.args[1]=e.args[1]||{};const n=e.args[1];n.headers=function(e,t,n,r,s){const i=sr(),{traceId:o,spanId:a,sampled:c,dsc:u}={...i.getPropagationContext(),...n.getPropagationContext()},l=s?Xr(s):zr(o,a,c),d=Ar(u||(s?ps(s):ds(o,t))),p=r.headers||("undefined"!=typeof Request&&an(e,Request)?e.headers:void 0);if(p){if("undefined"!=typeof Headers&&an(p,Headers)){const e=new Headers(p);return e.append("sentry-trace",l),d&&e.append(Tr,d),e}if(Array.isArray(p)){const e=[...p,["sentry-trace",l]];return d&&e.push([Tr,d]),e}{const e="baggage"in p?p.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),d&&t.push(d),{...p,"sentry-trace":l,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":l,baggage:d}}(t,a,o,n,Ho()&&p?h:void 0)}return h}(e,o,a,c);if(t){const n=xc(e.fetchData.url),r=n?Zi(n).host:void 0;t.setAttributes({"http.url":n,"server.address":r})}s&&t&&Ec(t)})),n&&Hi((e=>{const t=function(e,t,n,r){const s=e.xhr,i=s&&s[$i];if(!s||s.__sentry_own_request__||!i)return;const o=Ho()&&t(i.url);if(e.endTimestamp&&o){const e=s.__sentry_xhr_span_id__;if(!e)return;const t=r[e];return void(t&&void 0!==i.status_code&&(Vr(t,i.status_code),t.end(),delete r[e]))}const a=xc(i.url),c=a?Zi(a).host:void 0,u=!!cs(),l=o&&u?Zo({name:`${i.method} ${i.url}`,attributes:{type:"xhr","http.method":i.method,"http.url":a,url:i.url,"server.address":c,[Lr]:"auto.http.browser",[Nr]:"http.client"}}):new Wo;s.__sentry_xhr_span_id__=l.spanContext().spanId,r[s.__sentry_xhr_span_id__]=l;const d=or();return s.setRequestHeader&&n(i.url)&&d&&function(e,t,n){const r=rr(),s=sr(),{traceId:i,spanId:o,sampled:a,dsc:c}={...s.getPropagationContext(),...r.getPropagationContext()};!function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(Tr,n)}catch(e){}}(e,n&&Ho()?Xr(n):zr(i,o,a),Ar(c||(n?ps(n):ds(i,t))))}(s,d,Ho()&&u?l:void 0),l}(e,o,a,c);s&&t&&Ec(t)}))}function Ec(e){const{url:t}=es(e).data||{};if(!t||"string"!=typeof t)return;const n=Ja("resource",(({entries:r})=>{r.forEach((r=>{(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"==typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)})(r)&&r.name.endsWith(t)&&(function(e){const{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(const s of e){if("/"===s){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=s}return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),Wn?[...r,["http.request.redirect_start",Tc(e.redirectStart)],["http.request.fetch_start",Tc(e.fetchStart)],["http.request.domain_lookup_start",Tc(e.domainLookupStart)],["http.request.domain_lookup_end",Tc(e.domainLookupEnd)],["http.request.connect_start",Tc(e.connectStart)],["http.request.secure_connection_start",Tc(e.secureConnectionStart)],["http.request.connection_end",Tc(e.connectEnd)],["http.request.request_start",Tc(e.requestStart)],["http.request.response_start",Tc(e.responseStart)],["http.request.response_end",Tc(e.responseEnd)]]:r}(r).forEach((t=>e.setAttribute(...t))),setTimeout(n))}))}))}function Tc(e=0){return((Wn||performance.timeOrigin)+e)/1e3}function xc(e){try{return new URL(e,Ai.location.origin).href}catch(e){return}}const Cc={..._c,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!0,_experiments:{},...wc},Ic=(e={})=>{bc||(bc=!0,co(Sc),po(Sc));const{enableInp:t,enableLongTask:n,_experiments:{enableInteractions:r},beforeStartSpan:s,idleTimeout:i,finalTimeout:o,childSpanTimeout:a,markBackgroundSpan:c,traceFetch:u,traceXHR:l,shouldCreateSpanForRequest:d,enableHTTPTimings:p,instrumentPageLoad:h,instrumentNavigation:f}={...Cc,...e},m=function(){const e=oc();if(e&&Wn){e.mark&&Js.performance.mark("sentry-tracing-init");const t=Ka((({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=ac(Wn),r=ac(t.startTime);Ao&&vn.log("[Measurements] Adding FID"),pc.fid={value:e.value,unit:"millisecond"},pc["mark.fid"]={value:n+r,unit:"second"}})),n=Wa((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Ao&&vn.log("[Measurements] Adding CLS"),pc.cls={value:e.value,unit:""},lc=t)}),!0),r=qa((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Ao&&vn.log("[Measurements] Adding LCP"),pc.lcp={value:e.value,unit:"millisecond"},uc=t)}),!0),s=tc("ttfb",(({metric:e})=>{e.entries[e.entries.length-1]&&(Ao&&vn.log("[Measurements] Adding TTFB"),pc.ttfb={value:e.value,unit:"millisecond"})}),Za,$a);return()=>{t(),n(),r(),s()}}return()=>{}}();t&&function(){if(oc()&&Wn){const e=Va((({metric:e})=>{const t=or();if(!t||null==e.value)return;const n=e.entries.find((t=>t.duration===e.value&&yc[t.name]));if(!n)return;const{interactionId:r}=n,s=yc[n.name],i=t.getOptions(),o=ac(Wn+n.startTime),a=ac(e.value),c=rr(),u=cs(),l=u?as(u):void 0,d=(null!=r?gc.get(r):void 0)||(l?es(l).description:c.getScopeData().transactionName),p=c.getUser(),h=t.getIntegrationByName("Replay"),f=h&&h.getReplayId(),m=void 0!==p?p.email||p.id||p.ip_address:void 0;let g;try{g=c.getScopeData().contexts.profile.profile_id}catch(e){}const y=Zo({name:dn(n.target),op:`ui.interaction.${s}`,attributes:An({release:i.release,environment:i.environment,transaction:d,[jr]:e.value,[Lr]:"auto.http.browser.inp",user:m||void 0,profile_id:g||void 0,replay_id:f||void 0}),startTime:o,experimental:{standalone:!0}});y.addEvent("inp",{[Br]:"millisecond",[Fr]:e.value}),y.end(o+a)}));return()=>{e()}}}(),n&&Ja("longtask",(({entries:e})=>{for(const t of e){if(!cs())return;const e=ac(Wn+t.startTime),n=ac(t.duration),r=Zo({name:"Main UI thread blocked",op:"ui.long-task",startTime:e,attributes:{[Lr]:"auto.ui.browser.metrics"}});r&&r.end(e+n)}})),r&&Ja("event",(({entries:e})=>{for(const t of e){if(!cs())return;if("click"===t.name){const e=ac(Wn+t.startTime),n=ac(t.duration),r={name:dn(t.target),op:`ui.interaction.${t.name}`,startTime:e,attributes:{[Lr]:"auto.ui.browser.metrics"}},s=fn(t.target);s&&(r.attributes["ui.component_name"]=s);const i=Zo(r);i&&i.end(e+n)}}}));const g={name:void 0,source:void 0};function y(e,t){const n="pageload"===t.op,r=s?s(t):t,c=r.attributes||{};t.name!==r.name&&(c[Mr]="custom",r.attributes=c),g.name=r.name,g.source=c[Mr];const u=vc(r,{idleTimeout:i,finalTimeout:o,childSpanTimeout:a,disableAutoFinish:n,beforeSpanEnd:e=>{m(),function(e){const t=oc();if(!t||!Js.performance.getEntries||!Wn)return;Ao&&vn.log("[Tracing] Adding & adjusting spans using Performance API");const n=ac(Wn),r=t.getEntries(),{op:s,start_timestamp:i}=es(e);if(r.slice(dc).forEach((t=>{const r=ac(t.startTime),o=ac(t.duration);if(!("navigation"===s&&i&&n+r<i))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((r=>{hc(e,t,r,n)})),hc(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),hc(e,t,"fetch",n,"cache","domainLookupStart"),hc(e,t,"domainLookup",n,"DNS"),function(e,t,n){const r=n+ac(t.requestStart),s=n+ac(t.responseEnd),i=n+ac(t.responseStart);t.responseEnd&&(ic(e,r,s,{op:"browser",name:"request",attributes:{[Lr]:"auto.ui.browser.metrics"}}),ic(e,i,s,{op:"browser",name:"response",attributes:{[Lr]:"auto.ui.browser.metrics"}}))}(e,t,n)}(e,t,n);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,s){const i=sa(),o=ac(i?i.requestStart:0),a=s+Math.max(n,o),c=s+n,u=c+r,l={[Lr]:"auto.resource.browser.metrics"};a!==c&&(l["sentry.browser.measure_happened_before_request"]=!0,l["sentry.browser.measure_start_time"]=a),ic(e,a,u,{name:t.name,op:t.entryType,attributes:l})}(e,t,r,o,n);const s=pa(),i=t.startTime<s.firstHiddenTime;"first-paint"===t.name&&i&&(Ao&&vn.log("[Measurements] Adding FP"),pc.fp={value:t.startTime,unit:"millisecond"}),"first-contentful-paint"===t.name&&i&&(Ao&&vn.log("[Measurements] Adding FCP"),pc.fcp={value:t.startTime,unit:"millisecond"});break}case"resource":!function(e,t,n,r,s,i){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;const o=Zi(n),a={[Lr]:"auto.resource.browser.metrics"};fc(a,t,"transferSize","http.response_transfer_size"),fc(a,t,"encodedBodySize","http.response_content_length"),fc(a,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(a["resource.render_blocking_status"]=t.renderBlockingStatus),o.protocol&&(a["url.scheme"]=o.protocol.split(":").pop()),o.host&&(a["server.address"]=o.host),a["url.same_origin"]=n.includes(Js.location.origin);const c=i+r;ic(e,c,c+s,{name:n.replace(Js.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:a})}(e,t,t.name,r,o,n)}})),dc=Math.max(r.length-1,0),function(e){const t=Js.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),sc(n.rtt)&&(pc["connection.rtt"]={value:n.rtt,unit:"millisecond"})),sc(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),sc(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===s){!function(e){const t=sa();if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(Ao&&vn.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(pc),["fcp","fp","lcp"].forEach((e=>{const t=pc[e];if(!t||!i||n>=i)return;const r=t.value,s=n+ac(r),o=Math.abs(1e3*(s-i)),a=o-r;Ao&&vn.log(`[Measurements] Normalized ${e} from ${r} to ${o} (${a})`),t.value=o}));const t=pc["mark.fid"];t&&pc.fid&&(ic(e,t.value,t.value+ac(pc.fid.value),{name:"first input delay",op:"ui.action",attributes:{[Lr]:"auto.ui.browser.metrics"}}),delete pc["mark.fid"]),"fcp"in pc||delete pc.cls,Object.entries(pc).forEach((([e,t])=>{!function(e,t,n){const r=cs(),s=r&&as(r);s&&s.addEvent(e,{[Fr]:t,[Br]:n})}(e,t.value,t.unit)})),function(e){uc&&(Ao&&vn.log("[Measurements] Adding LCP Data"),uc.element&&e.setAttribute("lcp.element",dn(uc.element)),uc.id&&e.setAttribute("lcp.id",uc.id),uc.url&&e.setAttribute("lcp.url",uc.url.trim().slice(0,200)),e.setAttribute("lcp.size",uc.size)),lc&&lc.sources&&(Ao&&vn.log("[Measurements] Adding CLS Data"),lc.sources.forEach(((t,n)=>e.setAttribute(`cls.source.${n+1}`,dn(t.node)))))}(e)}uc=void 0,lc=void 0,pc={}}(e)}});function l(){["interactive","complete"].includes(Ai.document.readyState)&&e.emit("idleSpanEnableAutoFinish",u)}return n&&Ai.document&&(Ai.document.addEventListener("readystatechange",(()=>{l()})),l()),u}return{name:"BrowserTracing",afterAllSetup(e){let n,s=Ai.location&&Ai.location.href;e.on("startNavigationSpan",(t=>{or()===e&&(n&&(Si&&vn.log(`[Tracing] Finishing current root span with op: ${es(n).op}`),n.end()),n=y(e,{op:"navigation",...t}))})),e.on("startPageLoadSpan",((t,r={})=>{if(or()!==e)return;n&&(Si&&vn.log(`[Tracing] Finishing current root span with op: ${es(n).op}`),n.end());const s=function(e,t){const n=function(e){if(!e)return;const t=e.match(Ur);if(!t)return;let n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}(e),r=Rr(t),{traceId:s,parentSpanId:i,parentSampled:o}=n||{};return n?{traceId:s||Mn(),parentSpanId:i||Mn().substring(16),spanId:Mn().substring(16),sampled:o,dsc:r||{}}:{traceId:s||Mn(),spanId:Mn().substring(16)}}(r.sentryTrace||Rc("sentry-trace"),r.baggage||Rc("baggage"));rr().setPropagationContext(s),n=y(e,{op:"pageload",...t})})),e.on("spanEnd",(e=>{const t=es(e).op;if(e!==as(e)||"navigation"!==t&&"pageload"!==t)return;const n=rr(),r=n.getPropagationContext();n.setPropagationContext({...r,sampled:void 0!==r.sampled?r.sampled:ts(e),dsc:r.dsc||ps(e)})})),Ai.location&&(h&&function(e,t,n){e.emit("startPageLoadSpan",t,void 0),rr().setTransactionName(t.name);const r=cs();r&&es(r).op}(e,{name:Ai.location.pathname,startTime:Wn?Wn/1e3:void 0,attributes:{[Mr]:"url",[Lr]:"auto.pageload.browser"}}),f&&Gs((({to:t,from:n})=>{void 0===n&&s&&-1!==s.indexOf(t)?s=void 0:n!==t&&(s=void 0,function(e,t){sr().setPropagationContext(jn()),rr().setPropagationContext(jn()),e.emit("startNavigationSpan",t),rr().setTransactionName(t.name);const n=cs();n&&es(n).op}(e,{name:Ai.location.pathname,attributes:{[Mr]:"url",[Lr]:"auto.navigation.browser"}}))}))),c&&(Ai&&Ai.document?Ai.document.addEventListener("visibilitychange",(()=>{const e=cs();if(!e)return;const t=as(e);if(Ai.document.hidden&&t){const e="cancelled",{op:n,status:r}=es(t);Si&&vn.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:Kr,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}})):Si&&vn.warn("[Tracing] Could not set up background tab detection due to lack of global document")),r&&function(e,t,n,r){let s;Ai.document&&addEventListener("click",(()=>{const i="ui.action.click",o=cs(),a=o&&as(o);if(a){const e=es(a).op;if(["navigation","pageload"].includes(e))return void(Si&&vn.warn(`[Tracing] Did not create ${i} span because a pageload or navigation span is in progress.`))}s&&(s.setAttribute(Pr,"interactionInterrupted"),s.end(),s=void 0),r.name?s=vc({name:r.name,op:i,attributes:{[Mr]:r.source||"url"}},{idleTimeout:e,finalTimeout:t,childSpanTimeout:n}):Si&&vn.warn(`[Tracing] Did not create ${i} transaction because _latestRouteName is missing.`)}),{once:!1,capture:!0})}(i,o,a,g),t&&function(e){const t=({entries:t})=>{t.forEach((t=>{if(!function(e){return"duration"in e}(t)||!e.name)return;const n=t.interactionId;if(null!=n&&!gc.has(n)){if(mc.length>10){const e=mc.shift();gc.delete(e)}mc.push(n),gc.set(n,e.name)}}))};Ja("event",t),Ja("first-input",t)}(g),kc({traceFetch:u,traceXHR:l,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:d,enableHTTPTimings:p})}}};function Rc(e){const t=(n=`meta[name=${e}]`,un.document&&un.document.querySelector?un.document.querySelector(n):null);var n;return t?t.getAttribute("content"):void 0}function Ac(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],i=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=i(n)):"call"!==s&&"optionalCall"!==s||(n=i(((...e)=>n.call(t,...e))),t=void 0)}return n}function Oc(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function Mc(){return"undefined"!=typeof window&&(!(("undefined"==typeof __SENTRY_BROWSER_BUNDLE__||!__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0))||void 0!==Wt.process&&"renderer"===Wt.process.type)}const Dc=Wt,Nc="sentryReplaySession",Lc="replay_event",Pc="Unable to send Replay",Bc=15e4,Fc=5e3,jc=2e7;function Uc(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],i=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=i(n)):"call"!==s&&"optionalCall"!==s||(n=i(((...e)=>n.call(t,...e))),t=void 0)}return n}var zc;function $c(e){const t=Uc([e,"optionalAccess",e=>e.host]);return Boolean(Uc([t,"optionalAccess",e=>e.shadowRoot])===e)}function Hc(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Wc(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,qc).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function qc(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=Wc(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":"))return e.cssText.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2");return t||e.cssText}!function(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"}(zc||(zc={}));class Kc{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;return()=>-1,null!=(t=Uc([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id]))?t:-1;var t}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){const 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){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Vc({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function Jc({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function Yc(e){return e.toLowerCase()}function Gc(e){return e.toUpperCase()}const Xc="__rrweb_original__";function Qc(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Yc(t):null}function Zc(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}let eu=1;const tu=new RegExp("[^a-z0-9-_:]"),nu=-2;function ru(){return eu++}let su,iu;const ou=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,au=/^(?:[a-z+]+:)?\/\//i,cu=/^www\..*/i,uu=/^(data:)([^,]*),(.*)/i;function lu(e,t){return(e||"").replace(ou,((e,n,r,s,i,o)=>{const a=r||i||o,c=n||s||"";if(!a)return e;if(au.test(a)||cu.test(a))return`url(${c}${a}${c})`;if(uu.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${c})`;const u=t.split("/"),l=a.split("/");u.pop();for(const e of l)"."!==e&&(".."===e?u.pop():u.push(e));return`url(${c}${u.join("/")}${c})`}))}const du=/^[^ \t\n\r\u000c]+/,pu=/^[, \t\n\r\u000c]+/;function hu(e,t){if(!t||""===t.trim())return t;const n=e.createElement("a");return n.href=t,n.href}function fu(){const e=document.createElement("a");return e.href="",e.href}function mu(e,t,n,r,s,i){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?hu(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const s=e.exec(t.substring(n));return s?(r=s[0],n+=r.length,r):""}const s=[];for(;r(pu),!(n>=t.length);){let i=r(du);if(","===i.slice(-1))i=hu(e,i.substring(0,i.length-1)),s.push(i);else{let r="";i=hu(e,i);let o=!1;for(;;){const e=t.charAt(n);if(""===e){s.push((i+r).trim());break}if(o)")"===e&&(o=!1);else{if(","===e){n+=1,s.push((i+r).trim());break}"("===e&&(o=!0)}r+=e,n+=1}}}return s.join(", ")}(e,r):"style"===n?lu(r,fu()):"object"===t&&"data"===n?hu(e,r):"function"==typeof i?i(n,r,s):r:hu(e,r):r}function gu(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function yu(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:yu(e.parentNode,t,n,r+1):-1}function _u(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch(e){return!1}}}function vu(e,t,n,r,s,i){try{const o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("INPUT"===o.tagName){const e=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,c=-1;if(i){if(c=yu(o,_u(r,s)),c<0)return!0;a=yu(o,_u(t,n),c>=0?c:1/0)}else{if(a=yu(o,_u(t,n)),a<0)return!1;c=yu(o,_u(r,s),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0||!i)}catch(e){}return!!i}function bu(e){return null==e?"":e.toLowerCase()}function Su(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p=!1,inlineStylesheet:h=!0,maskInputOptions:f={},maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:_,dataURLOptions:v={},inlineImages:b=!1,recordCanvas:S=!1,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:E=5e3,onStylesheetLoad:T,stylesheetLoadTimeout:x=5e3,keepIframeSrcFn:C=(()=>!1),newlyAddedElement:I=!1}=t;let{preserveWhiteSpace:R=!0}=t;const A=function(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:f={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={},inlineImages:_,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S=!1}=t,w=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:zc.Document,childNodes:[],compatMode:e.compatMode}:{type:zc.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:zc.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:i,inlineStylesheet:o,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:l={},inlineImages:d,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:f=!1,rootId:m,maskAllText:g,maskTextClass:y,unmaskTextClass:_,maskTextSelector:v,unmaskTextSelector:b}=t,S=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,r,s,i),w=function(e){if(e instanceof HTMLFormElement)return"form";const t=Yc(e.tagName);return tu.test(t)?"div":t}(e);let k={};const E=e.attributes.length;for(let t=0;t<E;t++){const r=e.attributes[t];r.name&&!gu(w,r.name,r.value)&&(k[r.name]=mu(n,w,Yc(r.name),r.value,e,c))}if("link"===w&&o){const t=Array.from(n.styleSheets).find((t=>t.href===e.href));let r=null;t&&(r=Wc(t)),r&&(delete k.rel,delete k.href,k._cssText=lu(r,t.href))}if("style"===w&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=Wc(e.sheet);t&&(k._cssText=lu(t,fu()))}if("input"===w||"textarea"===w||"select"===w||"option"===w){const t=e,n=Qc(t),r=Zc(t,Gc(w),n),s=t.checked;if("submit"!==n&&"button"!==n&&r){const e=vu(t,y,v,_,b,Vc({type:n,tagName:Gc(w),maskInputOptions:a}));k.value=Jc({isMasked:e,element:t,value:r,maskInputFn:u})}s&&(k.checked=s)}if("option"===w&&(e.selected&&!a.select?k.selected=!0:delete k.selected),"canvas"===w&&p)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const s=t.getImageData,i=Xc in s?s[Xc]:s;if(new Uint32Array(i.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(k.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){const t=e.toDataURL(l.type,l.quality),n=document.createElement("canvas");n.width=e.width,n.height=e.height,t!==n.toDataURL(l.type,l.quality)&&(k.rr_dataURL=t)}if("img"===w&&d){su||(su=n.createElement("canvas"),iu=su.getContext("2d"));const t=e,r=t.crossOrigin;t.crossOrigin="anonymous";const s=()=>{t.removeEventListener("load",s);try{su.width=t.naturalWidth,su.height=t.naturalHeight,iu.drawImage(t,0,0),k.rr_dataURL=su.toDataURL(l.type,l.quality)}catch(e){console.warn(`Cannot inline img src=${t.currentSrc}! Error: ${e}`)}r?k.crossOrigin=r:t.removeAttribute("crossorigin")};t.complete&&0!==t.naturalWidth?s():t.addEventListener("load",s)}if("audio"!==w&&"video"!==w||(k.rr_mediaState=e.paused?"paused":"played",k.rr_mediaCurrentTime=e.currentTime),f||(e.scrollLeft&&(k.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(k.rr_scrollTop=e.scrollTop)),S){const{width:t,height:n}=e.getBoundingClientRect();k={class:k.class,rr_width:`${t}px`,rr_height:`${n}px`}}let T;"iframe"!==w||h(k.src)||(e.contentDocument||(k.rr_src=k.src),delete k.src);try{customElements.get(w)&&(T=!0)}catch(e){}return{type:zc.Element,tagName:w,attributes:k,childNodes:[],isSVG:(x=e,Boolean("svg"===x.tagName||x.ownerSVGElement)||void 0),needBlock:S,rootId:m,isCustom:T};var x}(e,{doc:n,blockClass:s,blockSelector:i,unblockSelector:o,inlineStylesheet:h,maskAttributeFn:c,maskInputOptions:f,maskInputFn:g,dataURLOptions:y,inlineImages:_,recordCanvas:v,keepIframeSrcFn:b,newlyAddedElement:S,rootId:w,maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:i,unmaskTextSelector:o,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:l}=t,d=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const h="STYLE"===d||void 0,f="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(h&&p){try{e.nextSibling||e.previousSibling||Uc([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(p=Wc(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=lu(p,fu())}f&&(p="SCRIPT_PLACEHOLDER");const g=vu(e,r,i,s,o,n);return h||f||m||!p||!g||(p=a?a(p,e.parentElement):p.replace(/[\S]/g,"*")),m&&p&&(c.textarea||g)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=Jc({isMasked:vu(e,r,i,s,o,Vc({type:null,tagName:d,maskInputOptions:c})),element:e,value:p,maskInputFn:u})),{type:zc.Text,textContent:p||"",isStyle:h,rootId:l}}(e,{maskAllText:a,maskTextClass:u,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:m,maskInputOptions:f,maskInputFn:g,rootId:w});case e.CDATA_SECTION_NODE:return{type:zc.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:zc.Comment,textContent:e.textContent||"",rootId:w};default:return!1}}(e,{doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:a,unblockSelector:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,dataURLOptions:v,inlineImages:b,recordCanvas:S,keepIframeSrcFn:C,newlyAddedElement:I});if(!A)return console.warn(e,"not serialized"),null;let O;O=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===zc.Comment)return!0;if(e.type===zc.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)&&"script"===e.attributes.as||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(bu(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===bu(e.attributes.name)||"icon"===bu(e.attributes.rel)||"apple-touch-icon"===bu(e.attributes.rel)||"shortcut icon"===bu(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&bu(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(bu(e.attributes.property).match(/^(og|twitter|fb):/)||bu(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===bu(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===bu(e.attributes.name)||"googlebot"===bu(e.attributes.name)||"bingbot"===bu(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===bu(e.attributes.name)||"generator"===bu(e.attributes.name)||"framework"===bu(e.attributes.name)||"publisher"===bu(e.attributes.name)||"progid"===bu(e.attributes.name)||bu(e.attributes.property).match(/^article:/)||bu(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===bu(e.attributes.name)||"yandex-verification"===bu(e.attributes.name)||"csrf-token"===bu(e.attributes.name)||"p:domain_verify"===bu(e.attributes.name)||"verify-v1"===bu(e.attributes.name)||"verification"===bu(e.attributes.name)||"shopify-checkout-api-token"===bu(e.attributes.name)))return!0}}return!1}(A,_)&&(R||A.type!==zc.Text||A.isStyle||A.textContent.replace(/^\s+|\s+$/gm,"").length)?ru():nu;const M=Object.assign(A,{id:O});if(r.add(e,M),O===nu)return null;w&&w(e);let D=!p;if(M.type===zc.Element){D=D&&!M.needBlock,delete M.needBlock;const t=e.shadowRoot;t&&Hc(t)&&(M.isShadowHost=!0)}if((M.type===zc.Document||M.type===zc.Element)&&D){_.headWhitespace&&M.type===zc.Element&&"head"===M.tagName&&(R=!1);const t={doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:a,unblockSelector:o,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:p,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:R,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:E,onStylesheetLoad:T,stylesheetLoadTimeout:x,keepIframeSrcFn:C};for(const n of Array.from(e.childNodes)){const e=Su(n,t);e&&M.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=Su(n,t);r&&(Hc(e.shadowRoot)&&(r.isShadow=!0),M.childNodes.push(r))}}return e.parentNode&&$c(e.parentNode)&&Hc(e.parentNode)&&(M.isShadow=!0),M.type===zc.Element&&"iframe"===M.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let s,i=!1;try{s=r.document.readyState}catch(e){return}if("complete"!==s){const r=setTimeout((()=>{i||(t(),i=!0)}),n);return void e.addEventListener("load",(()=>{clearTimeout(r),i=!0,t()}))}const o="about:blank";if(r.location.href!==o||e.src===o||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=e.contentDocument;if(t&&k){const n=Su(t,{doc:t,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:R,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:E,onStylesheetLoad:T,stylesheetLoadTimeout:x,keepIframeSrcFn:C});n&&k(e,n)}}),E),M.type===zc.Element&&"link"===M.tagName&&"stylesheet"===M.attributes.rel&&function(e,t,n){let r,s=!1;try{r=e.sheet}catch(e){return}if(r)return;const i=setTimeout((()=>{s||(t(),s=!0)}),n);e.addEventListener("load",(()=>{clearTimeout(i),s=!0,t()}))}(e,(()=>{if(T){const t=Su(e,{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:_,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:R,onSerialize:w,onIframeLoad:k,iframeLoadTimeout:E,onStylesheetLoad:T,stylesheetLoadTimeout:x,keepIframeSrcFn:C});t&&T(e,t)}}),x),M}function wu(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],i=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=i(n)):"call"!==s&&"optionalCall"!==s||(n=i(((...e)=>n.call(t,...e))),t=void 0)}return n}function ku(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Eu="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let Tu={map:{},getId(){return console.error(Eu),-1},getNode(){return console.error(Eu),null},removeNodeFromMap(){console.error(Eu)},has(){return console.error(Eu),!1},reset(){console.error(Eu)}};function xu(e,t,n={}){let r=null,s=0;return function(...i){const o=Date.now();s||!1!==n.leading||(s=o);const a=t-(o-s),c=this;a<=0||a>t?(r&&(function(...e){qu("clearTimeout")(...e)}(r),r=null),s=o,e.apply(c,i)):r||!1===n.trailing||(r=Ku((()=>{s=!1===n.leading?0:Date.now(),r=null,e.apply(c,i)}),a))}}function Cu(e,t,n,r,s=window){const i=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(e){Ku((()=>{n.set.call(this,e)}),0),i&&i.set&&i.set.call(this,e)}}),()=>Cu(e,t,i||{},!0)}function Iu(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch(e){return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Tu=new Proxy(Tu,{get(e,t,n){return"map"===t&&console.error(Eu),Reflect.get(e,t,n)}}));let Ru=Date.now;function Au(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:wu([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||wu([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||wu([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:wu([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||wu([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||wu([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function Ou(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Mu(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Du(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function Nu(e,t,n,r,s){if(!e)return!1;const i=Du(e);if(!i)return!1;const o=_u(t,n);if(!s){const e=r&&i.matches(r);return o(i)&&!e}const a=yu(i,o);let c=-1;return!(a<0)&&(r&&(c=yu(i,_u(null,r))),a>-1&&c<0||a<c)}function Lu(e,t){return t.getId(e)===nu}function Pu(e,t){if($c(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||Pu(e.parentNode,t))}function Bu(e){return Boolean(e.changedTouches)}function Fu(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function ju(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Uu(e){return Boolean(wu([e,"optionalAccess",e=>e.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(Ru=()=>(new Date).getTime());class zu{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return()=>-1,null!=(t=this.styleIDMap.get(e))?t:-1;var t}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 $u(e){let t=null;return wu([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Hu(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=$u(n);)n=t;return n}(e);return t.contains(n)}(e))}const Wu={};function qu(e){const t=Wu[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const s=t.contentWindow;s&&s[e]&&(r=s[e]),n.head.removeChild(t)}catch(e){}return Wu[e]=r.bind(window)}function Ku(...e){return qu("setTimeout")(...e)}var Vu=(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))(Vu||{}),Ju=(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))(Ju||{}),Yu=(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))(Yu||{}),Gu=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Gu||{});function Xu(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],i=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=i(n)):"call"!==s&&"optionalCall"!==s||(n=i(((...e)=>n.call(t,...e))),t=void 0)}return n}function Qu(e){return"__ln"in e}class Zu{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=Xu([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Qu(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&Qu(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const 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--)}}const el=(e,t)=>`${e}@${t}`;class tl{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],t=new Set,n=new Zu,r=e=>{let t=e,n=nu;for(;n===nu;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},s=s=>{if(!s.parentNode||!Hu(s))return;const i=$c(s.parentNode)?this.mirror.getId($u(s)):this.mirror.getId(s.parentNode),o=r(s);if(-1===i||-1===o)return n.addNode(s);const a=Su(s,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{Fu(e,this.mirror)&&this.iframeManager.addIframe(e),ju(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Uu(s)&&this.shadowDomManager.addShadowRoot(s.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:i,nextId:o,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)rl(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||s(e);for(const e of this.addedSet)il(this.droppedSet,e)||rl(this.removes,e,this.mirror)?il(this.movedSet,e)?s(e):this.droppedSet.add(e):s(e);let i=null;for(;n.length;){let e=null;if(i){const t=this.mirror.getId(i.value.parentNode),n=r(i.value);-1!==t&&-1!==n&&(e=i)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}i=e.previous,n.removeNode(e.value),s(e.value)}const o={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.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.movedMap={},this.mutationCb(o))},this.processMutation=e=>{if(!Lu(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;Nu(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:vu(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Du(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=Qc(t),s=t.tagName;r=Zc(t,s,n);const i=Vc({maskInputOptions:this.maskInputOptions,tagName:s,type:n});r=Jc({isMasked:vu(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,i),element:t,value:r,maskInputFn:this.maskInputFn})}if(Nu(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let s=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(t.contentDocument)return;n="rr_src"}if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(e.target,s)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!gu(t.tagName,n)&&(s.attributes[n]=mu(this.doc,Yc(t.tagName),Yc(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),i=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||i!==n.style.getPropertyPriority(e)?s.styleDiff[e]=""===i?r:[r,i]:s._unchangedStyles[e]=[r,i]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(s.styleDiff[e]=!1)}break}case"childList":if(Nu(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=$c(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Nu(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Lu(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(nl(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||Pu(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[el(n,r)]?nl(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!$c(e.target)||!Hc(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(Lu(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[el(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Nu(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),Uu(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function nl(e,t){e.delete(t),t.childNodes.forEach((t=>nl(e,t)))}function rl(e,t,n){return 0!==e.length&&sl(e,t,n)}function sl(e,t,n){const{parentNode:r}=t;if(!r)return!1;const s=n.getId(r);return!!e.some((e=>e.id===s))||sl(e,r,n)}function il(e,t){return 0!==e.size&&ol(e,t)}function ol(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||ol(e,n))}let al;function cl(e){al=e}function ul(){al=void 0}const ll=e=>al?(...t)=>{try{return e(...t)}catch(e){if(al&&!0===al(e))return()=>{};throw e}}:e;function dl(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],i=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=i(n)):"call"!==s&&"optionalCall"!==s||(n=i(((...e)=>n.call(t,...e))),t=void 0)}return n}const pl=[];function hl(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function fl(e,t){const n=new tl;pl.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const s=dl([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);s&&window[s]&&(r=window[s]);const i=new r(ll((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function ml({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){return ku("scroll",ll(xu(ll((o=>{const a=hl(o);if(!a||Nu(a,r,s,i,!0))return;const c=n.getId(a);if(a===t&&t.defaultView){const n=Au(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:a.scrollLeft,y:a.scrollTop})})),o.scroll||100)),t)}const gl=["INPUT","TEXTAREA","SELECT"],yl=new WeakMap;function _l({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,ignoreClass:o,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:l,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:m}){function g(e){let n=hl(e);const l=e.isTrusted,g=n&&Gc(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||gl.indexOf(g)<0||Nu(n,r,s,i,!0))return;const _=n;if(_.classList.contains(o)||a&&_.matches(a))return;const v=Qc(n);let b=Zc(_,g,v),S=!1;const w=Vc({maskInputOptions:c,tagName:g,type:v}),k=vu(n,p,f,h,m,w);"radio"!==v&&"checkbox"!==v||(S=n.checked),b=Jc({isMasked:k,element:n,value:b,maskInputFn:u}),y(n,d?{text:b,isChecked:S,userTriggered:l}:{text:b,isChecked:S});const E=n.name;"radio"===v&&E&&S&&t.querySelectorAll(`input[type="radio"][name="${E}"]`).forEach((e=>{if(e!==n){const t=Jc({isMasked:k,element:e,value:Zc(e,g,v),maskInputFn:u});y(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}}))}function y(t,r){const s=yl.get(t);if(!s||s.text!==r.text||s.isChecked!==r.isChecked){yl.set(t,r);const s=n.getId(t);ll(e)({...r,id:s})}}const _=("last"===l.input?["change"]:["input","change"]).map((e=>ku(e,ll(g),t))),v=t.defaultView;if(!v)return()=>{_.forEach((e=>e()))};const b=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),S=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&_.push(...S.map((e=>Cu(e[0],e[1],{set(){ll(g)({target:this,isTrusted:!1})}},!1,v)))),ll((()=>{_.forEach((e=>e()))}))}function vl(e){return function(e,t){if(kl("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||kl("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||kl("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||kl("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function bl(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function Sl({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const s="#document"===n.nodeName?dl([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):dl([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),i=dl([s,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(dl([s,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&s&&i?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return dl([i,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){const n=dl([i,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),ll((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))):()=>{}}function wl(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};const r=fl(e,e.doc),s=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const s="number"==typeof t.mousemove?t.mousemove:50,i="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let o,a=[];const c=xu(ll((t=>{const n=Date.now()-o;e(a.map((e=>(e.timeOffset-=n,e))),t),a=[],o=null})),i),u=ll(xu(ll((e=>{const t=hl(e),{clientX:n,clientY:s}=Bu(e)?e.changedTouches[0]:e;o||(o=Ru()),a.push({x:n,y:s,id:r.getId(t),timeOffset:Ru()-o}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?Ju.Drag:e instanceof MouseEvent?Ju.MouseMove:Ju.TouchMove)})),s,{trailing:!1})),l=[ku("mousemove",u,n),ku("touchmove",u,n),ku("drag",u,n)];return ll((()=>{l.forEach((e=>e()))}))}(e),i=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){if(!1===o.mouseInteraction)return()=>{};const a=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,c=[];let u=null;return Object.keys(Yu).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e])).forEach((o=>{let a=Yc(o);const l=(t=>o=>{const a=hl(o);if(Nu(a,r,s,i,!0))return;let c=null,l=t;if("pointerType"in o){switch(o.pointerType){case"mouse":c=Gu.Mouse;break;case"touch":c=Gu.Touch;break;case"pen":c=Gu.Pen}c===Gu.Touch?Yu[t]===Yu.MouseDown?l="TouchStart":Yu[t]===Yu.MouseUp&&(l="TouchEnd"):Gu.Pen}else Bu(o)&&(c=Gu.Touch);null!==c?(u=c,(l.startsWith("Touch")&&c===Gu.Touch||l.startsWith("Mouse")&&c===Gu.Mouse)&&(c=null)):Yu[t]===Yu.Click&&(c=u,u=null);const d=Bu(o)?o.changedTouches[0]:o;if(!d)return;const p=n.getId(a),{clientX:h,clientY:f}=d;ll(e)({type:Yu[l],id:p,x:h,y:f,...null!==c&&{pointerType:c}})})(o);if(window.PointerEvent)switch(Yu[o]){case Yu.MouseDown:case Yu.MouseUp:a=a.replace("mouse","pointer");break;case Yu.TouchStart:case Yu.TouchEnd:return}c.push(ku(a,l,t))})),ll((()=>{c.forEach((e=>e()))}))}(e),o=ml(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return ku("resize",ll(xu(ll((()=>{const t=Ou(),s=Mu();n===t&&r===s||(e({width:Number(s),height:Number(t)}),n=t,r=s)})),200)),t)}(e,{win:n}),c=_l(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:i,doc:o}){const a=ll((o=>xu(ll((i=>{const a=hl(i);if(!a||Nu(a,t,n,r,!0))return;const{currentTime:c,volume:u,muted:l,playbackRate:d}=a;e({type:o,id:s.getId(a),currentTime:c,volume:u,muted:l,playbackRate:d})})),i.media||500))),c=[ku("play",a(0),o),ku("pause",a(1),o),ku("seeked",a(2),o),ku("volumechange",a(3),o),ku("ratechange",a(4),o)];return ll((()=>{c.forEach((e=>e()))}))}(e),l=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:ll(((r,s,i)=>{const[o,a]=i,{id:c,styleId:u}=bl(s,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:o,index:a}]}),r.apply(s,i)}))});const i=r.CSSStyleSheet.prototype.deleteRule;let o,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:ll(((r,s,i)=>{const[o]=i,{id:a,styleId:c}=bl(s,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:o}]}),r.apply(s,i)}))}),r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:ll(((r,s,i)=>{const[o]=i,{id:a,styleId:c}=bl(s,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:o}),r.apply(s,i)}))})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:ll(((r,s,i)=>{const[o]=i,{id:a,styleId:c}=bl(s,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:o}),r.apply(s,i)}))}));const c={};El("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(El("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),El("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),El("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(c).forEach((([r,s])=>{u[r]={insertRule:s.prototype.insertRule,deleteRule:s.prototype.deleteRule},s.prototype.insertRule=new Proxy(u[r].insertRule,{apply:ll(((r,s,i)=>{const[o,a]=i,{id:c,styleId:u}=bl(s.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,adds:[{rule:o,index:[...vl(s),a||0]}]}),r.apply(s,i)}))}),s.prototype.deleteRule=new Proxy(u[r].deleteRule,{apply:ll(((r,s,i)=>{const[o]=i,{id:a,styleId:c}=bl(s.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...vl(s),o]}]}),r.apply(s,i)}))})})),ll((()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=i,o&&(r.CSSStyleSheet.prototype.replace=o),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule}))}))}(e,{win:n}),d=Sl(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const i=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:ll(((s,o,a)=>{const[c,u,l]=a;if(n.has(c))return i.apply(o,[c,u,l]);const{id:d,styleId:p}=bl(dl([o,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:c,value:u,priority:l},index:vl(o.parentRule)}),s.apply(o,a)}))});const o=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:ll(((s,i,a)=>{const[c]=a;if(n.has(c))return o.apply(i,[c]);const{id:u,styleId:l}=bl(dl([i,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(u&&-1!==u||l&&-1!==l)&&e({id:u,styleId:l,remove:{property:c},index:vl(i.parentRule)}),s.apply(i,a)}))}),ll((()=>{s.CSSStyleDeclaration.prototype.setProperty=i,s.CSSStyleDeclaration.prototype.removeProperty=o}))}(e,{win:n}),h=e.collectFonts?function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,i=n.FontFace;n.FontFace=function(e,t,n){const r=new i(e,t,n);return s.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const o=Iu(t.fonts,"add",(function(t){return function(n){return Ku(ll((()=>{const t=s.get(n);t&&(e(t),s.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=i})),r.push(o),ll((()=>{r.forEach((e=>e()))}))}(e):()=>{},f=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,selectionCb:o}=e;let a=!0;const c=ll((()=>{const e=t.getSelection();if(!e||a&&dl([e,"optionalAccess",e=>e.isCollapsed]))return;a=e.isCollapsed||!1;const c=[],u=e.rangeCount||0;for(let t=0;t<u;t++){const o=e.getRangeAt(t),{startContainer:a,startOffset:u,endContainer:l,endOffset:d}=o;Nu(a,r,s,i,!0)||Nu(l,r,s,i,!0)||c.push({start:n.getId(a),startOffset:u,end:n.getId(l),endOffset:d})}o({ranges:c})}));return c(),ku("selectionchange",c)}(e),m=function({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?Iu(n.customElements,"define",(function(e){return function(n,r,s){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,s])}})):()=>{}}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,n,t.options));return ll((()=>{pl.forEach((e=>e.reset())),r.disconnect(),s(),i(),o(),a(),c(),u(),l(),d(),p(),h(),f(),m(),g.forEach((e=>e()))}))}function kl(e){return void 0!==window[e]}function El(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Tl{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const s=n||this.getIdToRemoteIdMap(e),i=r||this.getRemoteIdToIdMap(e);let o=s.get(t);return o||(o=this.generateIdFn(),s.set(t,o),i.set(o,t)),o}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,r)))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;return r.get(t)||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}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}}function xl(e){let t,n=e[0],r=1;for(;r<e.length;){const s=e[r],i=e[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==n)return;"access"===s||"optionalAccess"===s?(t=n,n=i(n)):"call"!==s&&"optionalCall"!==s||(n=i(((...e)=>n.call(t,...e))),t=void 0)}return n}class Cl{constructor(){this.crossOriginIframeMirror=new Tl(ru),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Il{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Tl(ru),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Tl(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),xl([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case Vu.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:Vu.IncrementalSnapshot,data:{source:Ju.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Vu.Meta:case Vu.Load:case Vu.DomContentLoaded:return!1;case Vu.Plugin:return t;case Vu.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Vu.IncrementalSnapshot:switch(t.data.source){case Ju.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Ju.Drag:case Ju.TouchMove:case Ju.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case Ju.ViewportResize:return!1;case Ju.MediaInteraction:case Ju.MouseInteraction:case Ju.Scroll:case Ju.CanvasMutation:case Ju.Input:return this.replaceIds(t.data,e,["id"]),t;case Ju.StyleSheetRule:case Ju.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Ju.Font:return t;case Ju.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case Ju.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),xl([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t((t=>{this.replaceStyleIds(t,e,["styleId"])}))]),t}}return!1}replace(e,t,n,r){for(const s of r)(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(n,t[s]):t[s]=e.getId(n,t[s]));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===zc.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class Rl{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Al{constructor(e){this.shadowDoms=new WeakSet,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(!Hc(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e);const n=fl({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(ml({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),Ku((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Sl({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(Iu(e.prototype,"attachShadow",(function(e){return function(r){const s=e.call(this,r);return this.shadowRoot&&Hu(this)&&n.addShadowRoot(this.shadowRoot,t),s}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class Ol{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class Ml{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new zu,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)return;const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:qc(e),index:t})))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Dl{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){!function(...e){qu("requestAnimationFrame")(...e)}((()=>{this.clear(),this.loop&&this.periodicallyClear()}))}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let Nl,Ll;const Pl=new Kc;function Bl(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr-block",blockSelector:i=null,unblockSelector:o=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:d=null,maskTextSelector:p=null,unmaskTextSelector:h=null,inlineStylesheet:f=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskAttributeFn:_,maskInputFn:v,maskTextFn:b,maxCanvasSize:S=null,packFn:w,sampling:k={},dataURLOptions:E={},mousemoveWait:T,recordCanvas:x=!1,recordCrossOriginIframes:C=!1,recordAfter:I=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:R=!1,collectFonts:A=!1,inlineImages:O=!1,plugins:M,keepIframeSrcFn:D=(()=>!1),ignoreCSSAttributes:N=new Set([]),errorHandler:L,onMutation:P,getCanvasManager:B}=e;cl(L);const F=!C||window.parent===window;let j=!1;if(!F)try{window.parent.document&&(j=!1)}catch(e){j=!0}if(F&&!t)throw new Error("emit function is required");void 0!==T&&void 0===k.mousemove&&(k.mousemove=T),Pl.reset();const U=!0===m?{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,radio:!0,checkbox:!0}:void 0!==g?g:{},z=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};let $;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let H=0;const W=e=>{for(const t of M||[])t.eventProcessor&&(e=t.eventProcessor(e));return w&&!j&&(e=w(e)),e};Nl=(e,s)=>{const i=e;if(i.timestamp=Ru(),!Ac([pl,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])||i.type===Vu.FullSnapshot||i.type===Vu.IncrementalSnapshot&&i.data.source===Ju.Mutation||pl.forEach((e=>e.unfreeze())),F)Ac([t,"optionalCall",e=>e(W(i),s)]);else if(j){const e={type:"rrweb",event:W(i),origin:window.location.origin,isCheckout:s};window.parent.postMessage(e,"*")}if(i.type===Vu.FullSnapshot)$=i,H=0;else if(i.type===Vu.IncrementalSnapshot){if(i.data.source===Ju.Mutation&&i.data.isAttachIframe)return;H++;const e=r&&H>=r,t=n&&$&&i.timestamp-$.timestamp>n;(e||t)&&Z(!0)}};const q=e=>{Nl({type:Vu.IncrementalSnapshot,data:{source:Ju.Mutation,...e}})},K=e=>Nl({type:Vu.IncrementalSnapshot,data:{source:Ju.Scroll,...e}}),V=e=>Nl({type:Vu.IncrementalSnapshot,data:{source:Ju.CanvasMutation,...e}}),J=new Ml({mutationCb:q,adoptedStyleSheetCb:e=>Nl({type:Vu.IncrementalSnapshot,data:{source:Ju.AdoptedStyleSheet,...e}})}),Y="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new Cl:new Il({mirror:Pl,mutationCb:q,stylesheetManager:J,recordCrossOriginIframes:C,wrappedEmit:Nl});for(const e of M||[])e.getMirror&&e.getMirror({nodeMirror:Pl,crossOriginIframeMirror:Y.crossOriginIframeMirror,crossOriginIframeStyleMirror:Y.crossOriginIframeStyleMirror});const G=new Dl,X=function(e,t){try{return e?e(t):new Ol}catch(e){return console.warn("Unable to initialize CanvasManager"),new Ol}}(B,{mirror:Pl,win:window,mutationCb:e=>Nl({type:Vu.IncrementalSnapshot,data:{source:Ju.CanvasMutation,...e}}),recordCanvas:x,blockClass:s,blockSelector:i,unblockSelector:o,maxCanvasSize:S,sampling:k.canvas,dataURLOptions:E,errorHandler:L}),Q="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Rl:new Al({mutationCb:q,scrollCb:K,bypassOptions:{onMutation:P,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:f,maskInputOptions:U,dataURLOptions:E,maskAttributeFn:_,maskTextFn:b,maskInputFn:v,recordCanvas:x,inlineImages:O,sampling:k,slimDOMOptions:z,iframeManager:Y,stylesheetManager:J,canvasManager:X,keepIframeSrcFn:D,processedNodeManager:G},mirror:Pl}),Z=(e=!1)=>{Nl({type:Vu.Meta,data:{href:window.location.href,width:Mu(),height:Ou()}},e),J.reset(),Q.init(),pl.forEach((e=>e.lock()));const t=function(e,t){const{mirror:n=new Kc,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:i=null,maskAllText:o=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:h=!1,maskAllInputs:f=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:_=!1,dataURLOptions:v,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:k,onStylesheetLoad:E,stylesheetLoadTimeout:T,keepIframeSrcFn:x=(()=>!1)}=t||{};return Su(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,maskAllText:o,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===f?{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}:!1===f?{}:f,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===_,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===_?{}:_,dataURLOptions:v,inlineImages:p,recordCanvas:h,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:w,iframeLoadTimeout:k,onStylesheetLoad:E,stylesheetLoadTimeout:T,keepIframeSrcFn:x,newlyAddedElement:!1})}(document,{mirror:Pl,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,inlineStylesheet:f,maskAllInputs:U,maskAttributeFn:_,maskInputFn:v,maskTextFn:b,slimDOM:z,dataURLOptions:E,recordCanvas:x,inlineImages:O,onSerialize:e=>{Fu(e,Pl)&&Y.addIframe(e),ju(e,Pl)&&J.trackLinkElement(e),Uu(e)&&Q.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Y.attachIframe(e,t),Q.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{J.attachLinkElement(e,t)},keepIframeSrcFn:D});if(!t)return console.warn("Failed to snapshot the document");Nl({type:Vu.FullSnapshot,data:{node:t,initialOffset:Au(window)}}),pl.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&J.adoptStyleSheets(document.adoptedStyleSheets,Pl.getId(document))};Ll=Z;try{const e=[],t=e=>ll(wl)({onMutation:P,mutationCb:q,mousemoveCb:(e,t)=>Nl({type:Vu.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>Nl({type:Vu.IncrementalSnapshot,data:{source:Ju.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>Nl({type:Vu.IncrementalSnapshot,data:{source:Ju.ViewportResize,...e}}),inputCb:e=>Nl({type:Vu.IncrementalSnapshot,data:{source:Ju.Input,...e}}),mediaInteractionCb:e=>Nl({type:Vu.IncrementalSnapshot,data:{source:Ju.MediaInteraction,...e}}),styleSheetRuleCb:e=>Nl({type:Vu.IncrementalSnapshot,data:{source:Ju.StyleSheetRule,...e}}),styleDeclarationCb:e=>Nl({type:Vu.IncrementalSnapshot,data:{source:Ju.StyleDeclaration,...e}}),canvasMutationCb:V,fontCb:e=>Nl({type:Vu.IncrementalSnapshot,data:{source:Ju.Font,...e}}),selectionCb:e=>{Nl({type:Vu.IncrementalSnapshot,data:{source:Ju.Selection,...e}})},customElementCb:e=>{Nl({type:Vu.IncrementalSnapshot,data:{source:Ju.CustomElement,...e}})},blockClass:s,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:h,maskInputOptions:U,inlineStylesheet:f,sampling:k,recordCanvas:x,inlineImages:O,userTriggeredOnInput:R,collectFonts:A,doc:e,maskAttributeFn:_,maskInputFn:v,maskTextFn:b,keepIframeSrcFn:D,blockSelector:i,unblockSelector:o,slimDOMOptions:z,dataURLOptions:E,mirror:Pl,iframeManager:Y,stylesheetManager:J,shadowDomManager:Q,processedNodeManager:G,canvasManager:X,ignoreCSSAttributes:N,plugins:Ac([M,"optionalAccess",e=>e.filter,"call",e=>e((e=>e.observer)),"optionalAccess",e=>e.map,"call",e=>e((e=>({observer:e.observer,options:e.options,callback:t=>Nl({type:Vu.Plugin,data:{plugin:e.name,payload:t}})})))])||[]},{});Y.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{Z(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(ku("DOMContentLoaded",(()=>{Nl({type:Vu.DomContentLoaded,data:{}}),"DOMContentLoaded"===I&&n()}))),e.push(ku("load",(()=>{Nl({type:Vu.Load,data:{}}),"load"===I&&n()}),window))),()=>{e.forEach((e=>e())),G.destroy(),Ll=void 0,ul()}}catch(e){console.warn(e)}}Bl.mirror=Pl,Bl.takeFullSnapshot=function(e){if(!Ll)throw new Error("please take full snapshot after start recording");Ll(e)};const Fl=3;function jl(e){return e>9999999999?e:1e3*e}function Ul(e){return e>9999999999?e/1e3:e}function zl(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:Vu.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:gr(t,10,1e3)}}),"console"===t.category))))}const $l="button,a";function Hl(e){return e.closest($l)||e}function Wl(e){const t=ql(e);return t&&t instanceof Element?Hl(t):t}function ql(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let Kl;class Vl{constructor(e,t,n=zl){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=(t=()=>{this._lastMutation=Yl()},Kl||(Kl=[],kn(Dc,"open",(function(e){return function(...t){if(Kl)try{Kl.forEach((e=>e()))}catch(e){}return e.apply(Dc,t)}}))),Kl.push(t),()=>{const e=Kl?Kl.indexOf(t):-1;e>-1&&Kl.splice(e,1)});var t;this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){return!Jl.includes(e.tagName)||("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||"")||(!("A"!==e.tagName||!(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))||!(!t||!e.matches(t))))}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:Ul(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=Ul(e)}registerScroll(e=Date.now()){this._lastScroll=Ul(e)}registerClick(e){const t=Hl(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=Yl();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,s=!n&&!r,{clickCount:i,clickBreadcrumb:o}=e;if(s){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",s={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.slowClickDetected",data:{...o.data,url:Dc.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(t,s)}else if(i>1){const e={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:{...o.data,url:Dc.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=No((()=>this._checkClicks()),1e3)}}const Jl=["A","BUTTON","INPUT"];function Yl(){return Date.now()/1e3}function Gl(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Xl;!function(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"}(Xl||(Xl={}));const Ql=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Zl(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(Ql.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}function ed(e,t){const n=Bl.mirror.getId(e),r=n&&Bl.mirror.getNode(n),s=r&&Bl.mirror.getMeta(r),i=s&&function(e){return e.type===Xl.Element}(s)?s:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map((e=>e.type===Xl.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:Zl(i.attributes)}}:{}}}const td={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:i,decodedBodySize:o,encodedBodySize:a,responseStatus:c,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:sd(i),end:sd(s),name:r,data:{size:u,statusCode:c,decodedBodySize:o,encodedBodySize:a}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:s}=e,i=sd(s);return{type:n,name:r,start:i,end:i+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:i,encodedBodySize:o,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:p,startTime:h,transferSize:f,type:m}=e;return 0===s?null:{type:`${t}.${m}`,start:sd(h),end:sd(i),name:n,data:{size:f,decodedBodySize:r,encodedBodySize:o,duration:s,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d,domComplete:i,redirectCount:p}}}};function nd(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function rd(e){const t=td[e.entryType];return t?t(e):null}function sd(e){return((Wn||Dc.performance.timeOrigin)+e)/1e3}function id(e){const t=e.entries[e.entries.length-1];return ud(e,"largest-contentful-paint",t?t.element:void 0)}function od(e){const t=e.entries[0];return ud(e,"cumulative-layout-shift",t&&t.sources&&t.sources[0]?t.sources[0].node:void 0)}function ad(e){const t=e.entries[e.entries.length-1];return ud(e,"first-input-delay",t?t.target:void 0)}function cd(e){const t=e.entries[e.entries.length-1];return ud(e,"interaction-to-next-paint",t?t.target:void 0)}function ud(e,t,n){const r=e.value,s=e.rating,i=sd(r);return{type:"web-vital",name:t,start:i,end:i,data:{value:r,size:r,rating:s,nodeId:n?Bl.mirror.getId(n):void 0}}}const ld="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function dd(e,t){ld&&(vn.info(e),t&&hd(e))}function pd(e,t){ld&&(vn.info(e),t&&No((()=>{hd(e)}),0))}function hd(e){Ki({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}class fd extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class md{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>jc)throw new fd;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?jl(e):null}}class gd{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){dd("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,s)=>{const i=({data:t})=>{const o=t;if(o.method===e&&o.id===n){if(this._worker.removeEventListener("message",i),!o.success)return ld&&vn.error("[Replay]",o.response),void s(new Error("Error in compression worker"));r(o.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class yd{constructor(e){this._worker=new gd(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=jl(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>jc?Promise.reject(new fd):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{ld&&vn.warn('[Replay] Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class _d{constructor(e){this._fallback=new md,this._compression=new yd(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void dd("[Replay] Failed to load the compression worker, falling back to simple buffer")}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t}=this._fallback,n=[];for(const t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._used=this._compression;try{await Promise.all(n)}catch(e){ld&&vn.warn("[Replay] Failed to add events when switching buffers.",e)}}}function vd(){try{return"sessionStorage"in Dc&&!!Dc.sessionStorage}catch(e){return!1}}function bd(e){return void 0!==e&&Math.random()<e}function Sd(e){const t=Date.now();return{id:e.id||Mn(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function wd(e){if(vd())try{Dc.sessionStorage.setItem(Nc,JSON.stringify(e))}catch(e){}}function kd({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const s=function(e,t){return bd(e)?"session":!!t&&"buffer"}(e,t),i=Sd({sampled:s,previousSessionId:r});return n&&wd(i),i}function Ed(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function Td(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Ed(e.started,t,r)||Ed(e.lastActivity,n,r)}function xd(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!Td(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function Cd({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:r},s){const i=s.stickySession&&function(e){if(!vd())return null;try{const t=Dc.sessionStorage.getItem(Nc);if(!t)return null;const n=JSON.parse(t);return pd("[Replay] Loading existing session",e),Sd(n)}catch(e){return null}}(e);return i?xd(i,{sessionIdleExpire:t,maxReplayDuration:n})?(pd("[Replay] Session in sessionStorage is expired, creating new one..."),kd(s,{previousSessionId:i.id})):i:(pd("[Replay] Creating new session",e),kd(s,{previousSessionId:r}))}function Id(e,t,n){return!!Ad(e,t)&&(Rd(e,t,n),!0)}async function Rd(e,t,n){if(!e.eventBuffer)return null;try{n&&"buffer"===e.recordingMode&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);const r=function(e,t){try{if("function"==typeof t&&function(e){return e.type===Vu.Custom}(e))return t(e)}catch(e){return ld&&vn.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",e),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!r)return;return await e.eventBuffer.addEvent(r)}catch(t){const n=t&&t instanceof fd?"addEventSizeExceeded":"addEvent";ld&&vn.error(t),await e.stop({reason:n});const r=or();r&&r.recordDroppedEvent("internal_sdk_error","replay")}}function Ad(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=jl(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now()||n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration&&(pd(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),1))}function Od(e){return!e.type}function Md(e){return"transaction"===e.type}function Dd(e){return"feedback"===e.type}function Nd(e){return!!e.category}function Ld(e,t){return t.map((({type:t,start:n,end:r,name:s,data:i})=>{const o=e.throttledAddEvent({type:Vu.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:s,startTimestamp:n,endTimestamp:r,data:i}}});return"string"==typeof o?Promise.resolve(null):o}))}function Pd(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!ld||!e.getOptions()._experiments.traceInternals)&&function(e,t){const n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,n)||function(e,t){return!!t&&Oc(e)===Oc(t)}(e,r)}(t,or())}(e,t.name)||e.addUpdate((()=>(Ld(e,[t]),!0))))}function Bd(e){if(!e)return;const t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=qd(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch(e){}}function Fd(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function jd(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[qd(e)];if(!e)return[void 0]}catch(t){return ld&&vn.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return ld&&vn.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function Ud(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function zd(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:i,statusCode:o,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:An({method:i,statusCode:o,request:a,response:c})}}function $d(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Hd(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:s,warnings:i}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>Bc,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,Bc);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch(e){}return{body:e}}(n);return r.body=s,i&&i.length>0&&(r._meta={warnings:i}),r}function Wd(e,t){return Object.entries(e).reduce(((n,[r,s])=>{const i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=s),n}),{})}function qd(e){return new URLSearchParams(e).toString()}function Kd(e,t){const n=function(e,t=Dc.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(Dc.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(e);return wn(n,t)}function Vd(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}function Jd(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function Yd(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Jd(n,t):Array.isArray(n)?{}:Wd(n,t):{}}function Gd(e){const t=or();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o};t&&t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,n){if(t.data)try{(function(e){return"xhr"===e.category})(t)&&function(e){return e&&e.xhr}(n)&&(function(e,t){const{xhr:n,input:r}=t;if(!n)return;const s=Bd(r),i=n.getResponseHeader("content-length")?Fd(n.getResponseHeader("content-length")):function(e,t){try{return Bd("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch(e){return}}(n.response,n.responseType);void 0!==s&&(e.data.request_body_size=s),void 0!==i&&(e.data.response_body_size=i)}(t,n),async function(e,t,n){try{const r=function(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r,input:o,xhr:a}=t,{url:c,method:u,status_code:l=0,request_body_size:d,response_body_size:p}=e.data;if(!c)return null;if(!a||!Kd(c,n.networkDetailAllowUrls)||Kd(c,n.networkDetailDenyUrls))return{startTimestamp:s,endTimestamp:i,url:c,method:u,statusCode:l,request:$d(d),response:$d(p)};const h=a[$i],f=h?Wd(h.request_headers,n.networkRequestHeaders):{},m=Wd(function(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e}),{}):{}}(a),n.networkResponseHeaders),[g,y]=n.networkCaptureBodies?jd(o):[void 0],[_,v]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return ld&&vn.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return ld&&vn.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return ld&&vn.warn("[Replay] Failed to get xhr response body",...t),[void 0]}(a):[void 0],b=Hd(f,d,g),S=Hd(m,p,_);return{startTimestamp:s,endTimestamp:i,url:c,method:u,statusCode:l,request:y?Ud(b,y):b,response:v?Ud(S,v):S}}(e,t,n),s=zd("resource.xhr",r);Pd(n.replay,s)}catch(e){ld&&vn.error("[Replay] Failed to capture xhr breadcrumb",e)}}(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e&&e.response}(n)&&(function(e,t){const{input:n,response:r}=t,s=Bd(n?Vd(n):void 0),i=r?Fd(r.headers.get("content-length")):void 0;void 0!==s&&(e.data.request_body_size=s),void 0!==i&&(e.data.response_body_size=i)}(t,n),async function(e,t,n){try{const r=await async function(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r}=t,{url:o,method:a,status_code:c=0,request_body_size:u,response_body_size:l}=e.data,d=Kd(o,n.networkDetailAllowUrls)&&!Kd(o,n.networkDetailDenyUrls),p=d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?(o=t,1===(i=n).length&&"string"!=typeof i[0]?Yd(i[0],o):2===i.length?Yd(i[1],o):{}):{};var i,o;if(!e)return Hd(s,r,void 0);const a=Vd(n),[c,u]=jd(a),l=Hd(s,r,c);return u?Ud(l,u):l}(n,t.input,u):$d(u),h=await async function(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,s){if(!e&&void 0!==s)return $d(s);const i=r?Jd(r.headers,n):{};if(!r||!t&&void 0!==s)return Hd(i,s,void 0);const[o,a]=await async function(e){const t=function(e){try{return e.clone()}catch(e){ld&&vn.warn("[Replay] Failed to clone response body",e)}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,n)=>{const r=No((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}(t);return[e]}catch(e){return ld&&vn.warn("[Replay] Failed to get text body from response",e),[void 0,"BODY_PARSE_ERROR"]}}(r),c=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:s}){try{const i=e&&e.length&&void 0===n?Bd(e):n;return r?Hd(s,i,t?e:void 0):$d(i)}catch(e){return ld&&vn.warn("[Replay] Failed to serialize response body",e),Hd(s,n,void 0)}}(o,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:i});return a?Ud(c,a):c}(d,n,t.response,l);return{startTimestamp:s,endTimestamp:i,url:o,method:a,statusCode:c,request:p,response:h}}(e,t,n),s=zd("resource.fetch",r);Pd(n.replay,s)}catch(e){ld&&vn.error("[Replay] Failed to capture fetch breadcrumb",e)}}(t,n,e))}catch(e){ld&&vn.warn("Error when enriching network breadcrumb")}}(a,e,t)))}catch(e){}}function Xd(e){const t=or();ji((e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,r=null;try{r=t?Wl(e.event):ql(e.event),n=dn(r,{maxStringLength:200})||"<unknown>"}catch(e){n="<unknown>"}return{target:r,message:n}}(e);return Gl({category:`ui.${e.name}`,...ed(t,n)})}(t);if(!n)return;const r="click"===t.name,s=r?t.event:void 0;var i,o,a;!(r&&e.clickDetector&&s&&s.target)||s.altKey||s.metaKey||s.ctrlKey||s.shiftKey||(i=e.clickDetector,o=n,a=Wl(t.event),i.handleClick(o,a)),zl(e,n)})(e)),Gs(function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(Ld(e,[n]),!1))))}}(e)),function(e){const t=or();t&&t.on("beforeAddBreadcrumb",(t=>function(e,t){if(!e.isEnabled()||!Nd(t))return;const n=function(e){return!Nd(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:"console"===e.category?function(e){const t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return Gl(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>Fc?(n=!0,`${e.slice(0,Fc)}…`):e;if("object"==typeof e)try{const t=gr(e,7);return JSON.stringify(t).length>Fc?(n=!0,`${JSON.stringify(t,null,2).slice(0,Fc)}…`):t}catch(e){}return e}));return Gl({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e):Gl(e)}(t);n&&zl(e,n)}(e,t)))}(e),Gd(e);const n=function(e){return Object.assign(((t,n)=>{if(!e.isEnabled())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!Od(t)&&!Md(t)&&!Dd(t))return t;if(!e.checkAndHandleExpiredSession())return t;if(Dd(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:Vu.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length||!t.originalException||!t.originalException.__rrweb__)}(t,n)&&!e.getOptions()._experiments.captureExceptions)return ld&&vn.log("[Replay] Ignoring error from rrweb internals",t),null;const r=function(e,t){return"buffer"===e.recordingMode&&t.message!==Pc&&!(!t.exception||t.type)&&bd(e.getOptions().errorSampleRate)}(e,t);return(r||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t}),{id:"Replay"})}(e);var r;r=n,sr().addEventProcessor(r),t&&(t.on("beforeSendEvent",function(e){return t=>{e.isEnabled()&&Od(t)&&function(e,t){const n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;"string"==typeof n&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&zl(e,Gl({category:"replay.hydrate-error",data:{url:hn()}}))}(e,t)}}(e)),t.on("afterSendEvent",function(e){return(t,n)=>{if(!e.isEnabled()||!Od(t)&&!Md(t))return;const r=n&&n.statusCode;!r||r<200||r>=300||(Md(t)?function(e,t){const n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,t):function(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&No((()=>{e.sendBufferedReplayOrFlush()}))}(e,t))}}(e)),t.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)})),t.on("spanStart",(t=>{e.lastActiveSpan=t})),t.on("spanEnd",(t=>{e.lastActiveSpan=t})),t.on("beforeSendFeedback",((t,n)=>{const r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)})))}function Qd(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Zd(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(ld&&vn.warn("[Replay] Received replay event after session expired."));const s=r||!t;t=!0,e.clickDetector&&function(e,t){try{if(!function(e){return e.type===Fl}(t))return;const{source:n}=t.data;if(n===Ju.Mutation&&e.registerMutation(t.timestamp),n===Ju.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===Ju.MouseInteraction}(t)){const{type:n,id:r}=t.data,s=Bl.mirror.getNode(r);s instanceof HTMLElement&&n===Yu.Click&&e.registerClick(s)}}catch(e){}}(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&s&&e.setInitialState(),!Id(e,n,s))return!0;if(!s)return!1;if(function(e,t){t&&e.session&&0===e.session.segmentId&&Id(e,function(e){const t=e.getOptions();return{type:Vu.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,s),e.session&&e.session.previousSessionId)return!0;if("buffer"===e.recordingMode&&e.session&&e.eventBuffer){const t=e.eventBuffer.getEarliestTimestamp();t&&(dd(`[Replay] Updating session start time to earliest event in buffer to ${new Date(t)}`,e.getOptions()._experiments.traceInternals),e.session.started=t,e.getOptions().stickySession&&wd(e.session))}return"session"===e.recordingMode&&e.flush(),!0}))}}class ep extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class tp extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function np(e,t={count:0,interval:5e3}){const{recordingData:n,options:r}=e;if(n.length)try{return await async function({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:i}){const o=function({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:l}=r,d=or(),p=rr(),h=d&&d.getTransport(),f=d&&d.getDsn();if(!(d&&h&&f&&i.sampled))return br({});const m={type:Lc,replay_start_timestamp:l/1e3,timestamp:s/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:n,replay_type:i.sampled},g=await async function({client:e,scope:t,replayId:n,event:r}){const s={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,s);const i=await ms(e.getOptions(),r,s,t,e,sr());if(!i)return null;i.platform=i.platform||"javascript";const o=e.getSdkMetadata(),{name:a,version:c}=o&&o.sdk||{};return i.sdk={...i.sdk,name:a||"sentry.javascript.unknown",version:c||"0.0.0"},i}({scope:p,client:d,replayId:t,event:m});if(!g)return d.recordDroppedEvent("event_processor","replay",m),dd("An event processor returned `null`, will not send event."),br({});delete g.sdkProcessingMetadata;const y=function(e,t,n,r){return ti(di(e,li(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(g,o,f,d.getOptions().tunnel);let _;try{_=await h.send(y)}catch(e){const t=new Error(Pc);try{t.cause=e}catch(e){}throw t}if("number"==typeof _.statusCode&&(_.statusCode<200||_.statusCode>=300))throw new ep(_.statusCode);const v=Bo({},_);if(Po(v,"replay"))throw new tp(v);return _}(e),!0}catch(n){if(n instanceof ep||n instanceof tp)throw n;if(bs("Replays",{_retryCount:t.count}),ld&&r._experiments&&r._experiments.captureExceptions&&_s(n),t.count>=3){const e=new Error(`${Pc} - max retries exceeded`);try{e.cause=n}catch(e){}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{No((async()=>{try{await np(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const rp="__THROTTLED";class sp{constructor({options:e,recordingOptions:t}){sp.prototype.__init.call(this),sp.prototype.__init2.call(this),sp.prototype.__init3.call(this),sp.prototype.__init4.call(this),sp.prototype.__init5.call(this),sp.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,s,i;const o=n&&n.maxWait?Math.max(n.maxWait,t):0;function a(){return c(),r=e(),r}function c(){void 0!==s&&clearTimeout(s),void 0!==i&&clearTimeout(i),s=i=void 0}function u(){return s&&clearTimeout(s),s=No(a,t),o&&void 0===i&&(i=No(a,o)),r}return u.cancel=c,u.flush=function(){return void 0!==s||void 0!==i?a():r},u}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,n){const r=new Map;let s=!1;return(...i)=>{const o=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{n<t&&r.delete(n)}))})(o),[...r.values()].reduce(((e,t)=>e+t),0)>=t){const e=s;return s=!0,e?"__SKIPPED":rp}s=!1;const a=r.get(o)||0;return r.set(o,a+1),e(...i)}}(((e,t)=>function(e,t,n){return Ad(e,t)?Rd(e,t,n):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),s=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;s&&(this.clickDetector=new Vl(this,s))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;this._requiresManualStart=r,r||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",pd(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording()):this._handleException(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");pd("[Replay] Starting replay in session mode",this._options._experiments.traceInternals),this._updateUserActivity();const e=Cd({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");pd("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=Cd({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=Bl({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:Zd(this),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this._handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this._handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{dd("[Replay] Stopping Replay"+(t?` triggered by ${t}`:""),this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,n=this,function(){if(vd())try{Dc.sessionStorage.removeItem(Nc)}catch(e){}}(),n.session=void 0}catch(e){this._handleException(e)}}var n}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),dd("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),dd("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();dd("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&Ed(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${Dc.location.pathname}${Dc.location.hash}${Dc.location.search}`,t=`${Dc.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===rp){const e=Gl({category:"replay.throttled"});this.addUpdate((()=>!Id(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastActiveSpan||cs(),t=e&&as(e),n=(t&&es(t).data||{})[Mr];if(t&&n&&["route","custom"].includes(n))return es(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){const e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(J)return J.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}());if(!t)return;dd("[Replay] Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new _d(n)}catch(e){dd("[Replay] Failed to create compression worker")}}(t);if(e)return e}return dd("[Replay] Using simple buffer"),new md}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){ld&&vn.error("[Replay]",e),ld&&this._options._experiments&&this._options._experiments.captureExceptions&&_s(e)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=Cd({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!xd(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{Dc.document.addEventListener("visibilitychange",this._handleVisibilityChange),Dc.addEventListener("blur",this._handleWindowBlur),Dc.addEventListener("focus",this._handleWindowFocus),Dc.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(Xd(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach((e=>{r.push(Ja(e,n))})),r.push(qa(nd(id,e)),Wa(nd(od,e)),Ka(nd(ad,e)),Va(nd(cd,e))),()=>{r.forEach((e=>e()))}}(this)}_removeListeners(){try{Dc.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Dc.removeEventListener("blur",this._handleWindowBlur),Dc.removeEventListener("focus",this._handleWindowFocus),Dc.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===Dc.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=Gl({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=Gl({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:i,target:o}=e;if(!o||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(o)||!i)return null;const a=t||r||s,c=1===i.length;if(!a&&c)return null;const u=dn(o,{maxStringLength:200})||"<unknown>";return Gl({category:"ui.keyDown",message:u,data:{...ed(o,u).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:i}})}(t);n&&zl(e,n)}(this,e)}}_doChangeToBackgroundTasks(e){this.session&&(Td(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){this.session&&(this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):dd("[Replay] Document has become active, but session has expired"))}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:Vu.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){const e=(t=this.performanceEntries,t.map(rd).filter(Boolean)).concat(this.replayPerformanceEntries);var t;return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(Ld(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer&&this.eventBuffer.hasEvents&&(await async function(e){try{return Promise.all(Ld(e,[Qd(Dc.performance.memory)]))}catch(e){return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const s=await this.eventBuffer.finish();await np({replayId:e,recordingData:s,segmentId:r,eventContext:n,session:this.session,options:this.getOptions(),timestamp:t})}catch(e){this._handleException(e),this.stop({reason:"sendReplay"});const t=or();t&&t.recordDroppedEvent("send_error","replay")}}else ld&&vn.error("[Replay] No session or eventBuffer found to flush.")}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(ld&&vn.error("[Replay] Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,s=n>this._options.maxReplayDuration+5e3;if(r||s)return dd(`[Replay] Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),void(r&&this._debouncedFlush());const i=this.eventBuffer;if(i&&0===this.session.segmentId&&!i.hasCheckout&&dd("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock)return this._flushLock=this._runFlush(),await this._flushLock,void(this._flushLock=void 0);try{await this._flushLock}catch(e){ld&&vn.error(e)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&wd(this.session)}__init6(){this._onMutationHandler=e=>{const t=e.length,n=this._options.mutationLimit,r=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||r){const e=Gl({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function ip(e,t){return[...e,...t].join(",")}const op='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',ap=["content-length","content-type","accept"];let cp=!1;class up{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:s=!0,useCompression:i=!0,workerUrl:o,_experiments:a={},maskAllText:c=!0,maskAllInputs:u=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:f=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:_=[],networkResponseHeaders:v=[],mask:b=[],maskAttributes:S=["title","placeholder"],unmask:w=[],block:k=[],unblock:E=[],ignore:T=[],maskFn:x,beforeAddRecordingEvent:C,beforeErrorSampling:I}={}){this.name=up.id;const R=function({mask:e,unmask:t,block:n,unblock:r,ignore:s}){return{maskTextSelector:ip(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:ip(t,[]),blockSelector:ip(n,[".sentry-block","[data-sentry-block]",'base[href="/"]']),unblockSelector:ip(r,[]),ignoreSelector:ip(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:b,unmask:w,block:k,unblock:E,ignore:T});if(this._recordingOptions={maskAllInputs:u,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:x,maskInputFn:x,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:s,value:i}){return r?s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?i:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i:i}({maskAttributes:S,maskAllText:c,privacyOptions:R,key:e,value:t,el:n}),...R,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,36e5),stickySession:s,useCompression:i,workerUrl:o,blockAllMedia:l,maskAllInputs:u,maskAllText:c,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:h,slowClickIgnoreSelectors:f,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:lp(_),networkResponseHeaders:lp(v),beforeAddRecordingEvent:C,beforeErrorSampling:I,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${op}`:op),this._isInitialized&&Mc())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return cp}set _isInitialized(e){cp=e}afterAllSetup(e){Mc()&&!this._replay&&(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=function(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...An(e)},s=mi(n.replaysSessionSampleRate),i=mi(n.replaysOnErrorSampleRate);return null==s&&null==i&&_n((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")})),null!=s&&(r.sessionSampleRate=s),null!=i&&(r.errorSampleRate=i),r}(this._initialOptions,e);this._replay=new sp({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch(e){}}}function lp(e){return[...ap,...e.map((e=>e.toLowerCase()))]}up.__initStatic();class dp{constructor(e){Object.defineProperty(this,"chatbot_frame",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"configData",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),"https://bot-wframe.geta.ai/"===window.location.origin&&function(e){const t={...e};bi(t,"react"),bs("react",{version:$o.version}),zo(t)}({dsn:"https://3a8c96d3756610ab73409b15fcc4d735@o4507446172188672.ingest.us.sentry.io/4507462883475456",integrations:[Ic(),new up(undefined)],environment:"production",tracesSampleRate:1,tracePropagationTargets:["https://bot-wframe.geta.ai/"],replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1}),this.configData=e,this.chatbot_frame=new $t(e)}}!function(e){e.on=(t,n,r,s)=>{let i={getaHost:t,matomoId:n,botId:r,location:e.location.href};return new dp(i)}}(window)}()}();
//# sourceMappingURL=output.js.map