PageSourceSearch

https://cdn.cappasity.com/frontend/3.181.20/4124.16b6ca1a4bd45e1f6a89.js

js cappasity.com collected 2026-09-24 08:57:05 UTC 110,354 bytes, 1 lines download raw bytes

1!function(){try{var t="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="11e4c8f6-72dd-4c63-ae52-c5460c488e2f",t._sentryDebugIdIdentifier="sentry-dbid-11e4c8f6-72dd-4c63-ae52-c5460c488e2f")}catch(t){}}(),(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[4124],{9815(t){var e=0x1fffffffffffff;var r="[object Arguments]",n="[object Function]",i="[object GeneratorFunction]";var s=/^(?:0|[1-9]\d*)$/;function o(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function c(t,e){var r=-1,n=Array(t);for(;++r<t;)n[r]=e(r);return n}var l=Object.prototype;var a=l.hasOwnProperty;var u=l.toString;var h=l.propertyIsEnumerable;var f=Math.max;function d(t,e){var r=T(t)||k(t)?c(t.length,String):[];var n=r.length,i=!!n;for(var s in t)(e||a.call(t,s))&&!(i&&("length"==s||v(s,n)))&&r.push(s);return r}function p(t,e,r,n){return void 0===t||E(t,l[r])&&!a.call(n,r)?e:t}function x(t,e,r){var n=t[e];a.call(t,e)&&E(n,r)&&(void 0!==r||e in t)||(t[e]=r)}function b(t){if(!H(t))return S(t);var e=m(t),r=[];for(var n in t)"constructor"==n&&(e||!a.call(t,n))||r.push(n);return r}function y(t,e){return e=f(void 0===e?t.length-1:e,0),function(){var r=arguments,n=-1,i=f(r.length-e,0),s=Array(i);for(;++n<i;)s[n]=r[e+n];n=-1;var c=Array(e+1);for(;++n<e;)c[n]=r[n];return c[e]=s,o(t,this,c)}}function _(t,e,r,n){r||(r={});var i=-1,s=e.length;for(;++i<s;){var o=e[i];var c=n?n(r[o],t[o],o,r,t):void 0;x(r,o,void 0===c?t[o]:c)}return r}function w(t){return y(function(e,r){var n=-1,i=r.length,s=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(s=t.length>3&&"function"==typeof s?(i--,s):void 0,o&&g(r[0],r[1],o)&&(s=i<3?void 0:s,i=1),e=Object(e);++n<i;){var c=r[n];c&&t(e,c,n,s)}return e})}function v(t,r){return!!(r=null==r?e:r)&&("number"==typeof t||s.test(t))&&t>-1&&t%1==0&&t<r}function g(t,e,r){if(!H(r))return!1;var n=typeof e;return("number"==n?!!(B(r)&&v(e,r.length)):"string"==n&&e in r)&&E(r[e],t)}function m(t){var e=t&&t.constructor,r="function"==typeof e&&e.prototype||l;return t===r}function S(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}function E(t,e){return t===e||t!=t&&e!=e}function k(t){return C(t)&&a.call(t,"callee")&&(!h.call(t,"callee")||u.call(t)==r)}var T=Array.isArray;function B(t){return null!=t&&A(t.length)&&!O(t)}function C(t){return I(t)&&B(t)}function O(t){var e=H(t)?u.call(t):"";return e==n||e==i}function A(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=e}function H(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function I(t){return!!t&&"object"==typeof t}var D=w(function(t,e,r,n){_(e,R(e),t,n)});var P=y(function(t){return t.push(void 0,p),o(D,void 0,t)});function R(t){return B(t)?d(t,!0):b(t)}t.exports=P},22806(t,e,r){"use strict";var n=r(9815);var i="Provided shouldReconnect() returned false. Closing permanently.";var s="Provided shouldReconnect() resolved to false. Closing permanently.";var o=function(){function t(e,r,i){if(this.url=e,this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this.ondown=null,this.onreopen=null,this.CONNECTING=t.CONNECTING,this.OPEN=t.OPEN,this.CLOSING=t.CLOSING,this.CLOSED=t.CLOSED,this.hasBeenOpened=!1,this.isClosed=!1,this.messageBuffer=[],this.nextRetryTime=0,this.reconnectCount=0,this.lastKnownExtensions="",this.lastKnownProtocol="",this.listeners={},null==r||"string"==typeof r||Array.isArray(r)?this.protocols=r:i=r,this.options=n({},i,t.DEFAULT_OPTIONS),!this.options.wsConstructor)if("u">typeof WebSocket)this.options.wsConstructor=WebSocket;else throw Error("WebSocket not present in global scope and no wsConstructor option was provided.");this.openNewWebSocket()}return Object.defineProperty(t.prototype,"binaryType",{get:function(){return this.binaryTypeInternal||"blob"},set:function(t){this.binaryTypeInternal=t,this.ws&&(this.ws.binaryType=t)}
1,enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bufferedAmount",{get:function(){var t=this.ws?this.ws.bufferedAmount:0;var e=!1;return this.messageBuffer.forEach(function(r){var n=c(r);null!=n?t+=n:e=!0}),e&&this.debugLog("Some buffered data had unknown length. bufferedAmount() return value may be below the correct amount."),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"extensions",{get:function(){return this.ws?this.ws.extensions:this.lastKnownExtensions},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"protocol",{get:function(){return this.ws?this.ws.protocol:this.lastKnownProtocol},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readyState",{get:function(){return this.isClosed?t.CLOSED:t.OPEN},enumerable:!0,configurable:!0}),t.prototype.close=function(t,e){this.ws&&this.ws.close(t,e),this.shutdown(),this.debugLog("WebSocket permanently closed by client.")},t.prototype.send=function(t){this.ws&&this.ws.readyState===this.OPEN?this.ws.send(t):this.messageBuffer.push(t)},t.prototype.addEventListener=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},t.prototype.dispatchEvent=function(t){return this.dispatchEventOfType(t.type,t)},t.prototype.removeEventListener=function(t,e){this.listeners[t]&&(this.listeners[t]=this.listeners[t].filter(function(t){return t!==e}))},t.prototype.openNewWebSocket=function(){var t=this;if(!this.isClosed){var e=this.options,r=e.connectTimeout,n=e.wsConstructor;this.debugLog("Opening new WebSocket to "+this.url+".");var i=new n(this.url,this.protocols);i.onclose=function(e){return t.handleClose(e)},i.onerror=function(e){return t.handleError(e)},i.onmessage=function(e){return t.handleMessage(e)},i.onopen=function(e){return t.handleOpen(e)},this.connectTimeoutId=setTimeout(function(){t.clearConnectTimeout(),i.close()},r),this.ws=i}},t.prototype.handleOpen=function(t){var e=this;if(this.ws&&!this.isClosed){var r=this.options.allClearResetTime;this.debugLog("WebSocket opened."),null!=this.binaryTypeInternal?this.ws.binaryType=this.binaryTypeInternal:this.binaryTypeInternal=this.ws.binaryType,this.clearConnectTimeout(),this.hasBeenOpened?this.dispatchEventOfType("reopen",t):(this.dispatchEventOfType("open",t),this.hasBeenOpened=!0),this.messageBuffer.forEach(function(t){return e.send(t)}),this.messageBuffer=[],this.allClearTimeoutId=setTimeout(function(){e.clearAllClearTimeout(),e.nextRetryTime=0,e.reconnectCount=0;var t=r/1e3|0;e.debugLog("WebSocket remained open for "+t+" seconds. Resetting retry time and count.")},r)}},t.prototype.handleMessage=function(t){this.isClosed||this.dispatchEventOfType("message",t)},t.prototype.handleClose=function(t){var e=this;if(!this.isClosed){var r=this.options,n=r.maxReconnectAttempts,o=r.shouldReconnect;if(this.clearConnectTimeout(),this.clearAllClearTimeout(),this.ws&&(this.lastKnownExtensions=this.ws.extensions,this.lastKnownProtocol=this.ws.protocol,this.ws=void 0),this.dispatchEventOfType("down",t),this.reconnectCount>=n)return void this.stopReconnecting(t,this.getTooManyFailedReconnectsMessage());var c=o(t);"boolean"==typeof c?this.handleWillReconnect(c,t,i):c.then(function(r){e.isClosed||e.handleWillReconnect(r,t,s)})}},t.prototype.handleError=function(t){this.dispatchEventOfType("error",t),this.debugLog("WebSocket encountered an error.")},t.prototype.handleWillReconnect=function(t,e,r){t?this.reconnect():this.stopReconnecting(e,r)},t.prototype.reconnect=function(){var t=this;var e=this.options,r=e.minReconnectDelay,n=e.maxReconnectDelay,i=e.reconnectBackoffFactor;this.reconnectCount++;var s=this.nextRetryTime;this.nextRetryTime=Math.max(r,Math.min(this.nextRetryTime*i,n)),setTimeout(function(){return t.openNewWebSocket()},s);var o=s/1e3|0;this.debugLog("WebSocket was closed. Re-opening in "+o+" seconds.")},t.prototype.stopReconnecting=function(t,e){this.debugLog(e),this.shutdown(),this.dispatchEventOfType("close",t)},t.prototype.shutdown=function(){this.isClosed=!0,this.clearAllTimeouts(),this.messageBuffer=[]},t.prototype.clearAllTimeouts=function(){this.clearConnectTimeout(),this.clearAllClearTimeout()},t.prototype.clearConnectTimeout=function(){null!=this.connectTimeoutId&&(clearTimeout(this.connectTimeoutId),this.connectTimeoutId=void 0)},t.prototype.clearAllClearTimeout=function(){null!=this.allClearTimeoutId&&(clearTimeout(this.allClearTimeoutId),this.allClearTimeoutId=void 0)},t.prototype.dispatchEventOfType=function(t,e){var r=this;
1switch(t){case"close":this.onclose&&this.onclose(e);break;case"error":this.onerror&&this.onerror(e);break;case"message":this.onmessage&&this.onmessage(e);break;case"open":this.onopen&&this.onopen(e);break;case"down":this.ondown&&this.ondown(e);break;case"reopen":this.onreopen&&this.onreopen(e)}return t in this.listeners&&this.listeners[t].slice().forEach(function(t){return r.callListener(t,e)}),!e||!e.defaultPrevented},t.prototype.callListener=function(t,e){"function"==typeof t?t.call(this,e):t.handleEvent.call(this,e)},t.prototype.debugLog=function(t){this.options.debug&&console.log(t)},t.prototype.getTooManyFailedReconnectsMessage=function(){var t=this.options.maxReconnectAttempts;return"Failed to reconnect after "+t+" "+l("attempt",t)+". Closing permanently."},t.DEFAULT_OPTIONS={allClearResetTime:5e3,connectTimeout:5e3,debug:!1,minReconnectDelay:1e3,maxReconnectDelay:3e4,maxReconnectAttempts:1/0,reconnectBackoffFactor:1.5,shouldReconnect:function(){return!0},wsConstructor:void 0},t.CONNECTING=0,t.OPEN=1,t.CLOSING=2,t.CLOSED=3,t}();function c(t){return"string"==typeof t?2*t.length:t instanceof ArrayBuffer?t.byteLength:t instanceof Blob?t.size:void 0}function l(t,e){return 1===e?t:t+"s"}e.A=o},94124(t,e,r){"use strict";r.d(e,{default:()=>iA});var n=r(22806);class i{static create(...t){return new this(...t)}mixIn(t){return Object.assign(this,t)}clone(){let t=new this.constructor;return Object.assign(t,this),t}}class s extends i{constructor(t=[],e=4*t.length){super();let r=t;if(r instanceof ArrayBuffer&&(r=new Uint8Array(r)),(r instanceof Int8Array||r instanceof Uint8ClampedArray||r instanceof Int16Array||r instanceof Uint16Array||r instanceof Int32Array||r instanceof Uint32Array||r instanceof Float32Array||r instanceof Float64Array)&&(r=new Uint8Array(r.buffer,r.byteOffset,r.byteLength)),r instanceof Uint8Array){const t=r.byteLength;const e=[];for(let n=0;n<t;n+=1)e[n>>>2]|=r[n]<<24-n%4*8;this.words=e,this.sigBytes=t}else this.words=t,this.sigBytes=e}static random(t){let e=[];let r=t=>{let e=t;let r=0x3ade68b1;let n=0xffffffff;return()=>{r=36969*(65535&r)+(r>>16)&n,e=18e3*(65535&e)+(e>>16)&n;let t=(r<<16)+e&n;return t/=0x100000000,(t+=.5)*(Math.random()>.5?1:-1)}};for(let n=0,i;n<t;n+=4){let t=r(0x100000000*(i||Math.random()));i=0x3ade67b7*t(),e.push(0x100000000*t()|0)}return new s(e,t)}toString(t=o){return t.stringify(this)}concat(t){let e=this.words;let r=t.words;let n=this.sigBytes;let i=t.sigBytes;if(this.clamp(),n%4)for(let t=0;t<i;t+=1){let i=r[t>>>2]>>>24-t%4*8&255;e[n+t>>>2]|=i<<24-(n+t)%4*8}else for(let t=0;t<i;t+=4)e[n+t>>>2]=r[t>>>2];return this.sigBytes+=i,this}clamp(){let{words:t,sigBytes:e}=this;t[e>>>2]&=0xffffffff<<32-e%4*8,t.length=Math.ceil(e/4)}clone(){let t=super.clone.call(this);return t.words=this.words.slice(0),t}}let o={stringify(t){let{words:e,sigBytes:r}=t;let n=[];for(let t=0;t<r;t+=1){let r=e[t>>>2]>>>24-t%4*8&255;n.push((r>>>4).toString(16)),n.push((15&r).toString(16))}return n.join("")},parse(t){let e=t.length;let r=[];for(let n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new s(r,e/2)}};let c={stringify(t){let{words:e,sigBytes:r}=t;let n=[];for(let t=0;t<r;t+=1){let r=e[t>>>2]>>>24-t%4*8&255;n.push(String.fromCharCode(r))}return n.join("")},parse(t){let e=t.length;let r=[];for(let n=0;n<e;n+=1)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new s(r,e)}};let l={stringify(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(t){throw Error("Malformed UTF-8 data")}},parse(t){return c.parse(unescape(encodeURIComponent(t)))}};class a extends i{constructor(){super(),this._minBufferSize=0}reset(){this._data=new s,this._nDataBytes=0}_append(t){let e=t;"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(t){let e;let{_data:r,blockSize:n}=this;let i=r.words;let o=r.sigBytes;let c=4*n;let l=o/c;l=t?Math.ceil(l):Math.max((0|l)-this._minBufferSize,0);let a=l*n;let u=Math.min(4*a,o);if(a){for(let t=0;t<a;t+=n)this._doProcessBlock(i,t);e=i.splice(0,a),r.sigBytes-=u}return new s(e,u)}clone(){let t=super.clone.call(this);return t._data=this._data.clone(),t}}class u extends a{constructor(t){super(),this.blockSize=16,this.cfg=Object.assign(new i,t),this.reset()}static _createHelper(t){return(e,r)=>new t(r).finalize(e)}static _createHmacHelper(t){return(e,r)=>new h(t,r).finalize(e)}reset(){super.reset.call(this),this._doReset()}update(t){return this._append(t),this._process(),this}finalize(t){t&&this._append(t);let e=this._doFinalize();return e}}class h extends i{constructor(t,e){super();const r=new t;this._hasher=r;let n=e;"string"==typeof n&&(n=l.parse(n));const i=r.blockSize;const s=4*i;n.sigBytes>s&&(n=r.finalize(e)),n.clamp();const o=n.clone();this._oKey=o;const c=n.clone();this._iKey=c;const a=o.words;const u=c.words;for(let t=0;t<i;t+=1)a[t]^=0x5c5c5c5c,u[t]^=0x36363636;o.sigBytes=s,c.sigBytes=s,this.reset()}reset(){let t=this._hasher;t.reset(),t.update(this._iKey)}update(t){return this._hasher.update(t),this}finalize(t){let e=this._hasher;let r=e.finalize(t);e.reset();let n=e.finalize(this._oKey.clone().concat(r));return n}}let f=s;class d extends i{constructor(t,e){super(),this.high=t,this.low=e}}class p extends i{constructor(t=[],e=8*t.length){super(),this.words=t,this.sigBytes=e}toX32(){let t=this.words;let e=t.length;let r=[];for(let n=0;n<e;n+=1){let e=t[n];
1r.push(e.high),r.push(e.low)}return f.create(r,this.sigBytes)}clone(){let t=super.clone.call(this);t.words=this.words.slice(0);let{words:e}=t;let r=e.length;for(let t=0;t<r;t+=1)e[t]=e[t].clone();return t}}let x=(t,e,r)=>{let n=[];let i=0;for(let s=0;s<e;s+=1)if(s%4){let e=r[t.charCodeAt(s-1)]<<s%4*2;let o=r[t.charCodeAt(s)]>>>6-s%4*2;let c=e|o;n[i>>>2]|=c<<24-i%4*8,i+=1}return s.create(n,i)};let b={stringify(t){let{words:e,sigBytes:r}=t;let n=this._map;t.clamp();let i=[];for(let t=0;t<r;t+=3){let s=e[t>>>2]>>>24-t%4*8&255;let o=e[t+1>>>2]>>>24-(t+1)%4*8&255;let c=e[t+2>>>2]>>>24-(t+2)%4*8&255;let l=s<<16|o<<8|c;for(let e=0;e<4&&t+.75*e<r;e+=1)i.push(n.charAt(l>>>6*(3-e)&63))}let s=n.charAt(64);if(s)for(;i.length%4;)i.push(s);return i.join("")},parse(t){let e=t.length;let r=this._map;let n=this._reverseMap;if(!n){this._reverseMap=[],n=this._reverseMap;for(let t=0;t<r.length;t+=1)n[r.charCodeAt(t)]=t}let i=r.charAt(64);if(i){let r=t.indexOf(i);-1!==r&&(e=r)}return x(t,e,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};let y=[];for(let t=0;t<64;t+=1)y[t]=0x100000000*Math.abs(Math.sin(t+1))|0;let _=(t,e,r,n,i,s,o)=>{let c=t+(e&r|~e&n)+i+o;return(c<<s|c>>>32-s)+e};let w=(t,e,r,n,i,s,o)=>{let c=t+(e&n|r&~n)+i+o;return(c<<s|c>>>32-s)+e};let v=(t,e,r,n,i,s,o)=>{let c=t+(e^r^n)+i+o;return(c<<s|c>>>32-s)+e};let g=(t,e,r,n,i,s,o)=>{let c=t+(r^(e|~n))+i+o;return(c<<s|c>>>32-s)+e};class m extends u{_doReset(){this._hash=new s([0x67452301,0xefcdab89,0x98badcfe,0x10325476])}_doProcessBlock(t,e){let r=t;for(let n=0;n<16;n+=1){let i=e+n;let s=t[i];r[i]=(s<<8|s>>>24)&0xff00ff|(s<<24|s>>>8)&0xff00ff00}let n=this._hash.words;let i=r[e+0];let s=r[e+1];let o=r[e+2];let c=r[e+3];let l=r[e+4];let a=r[e+5];let u=r[e+6];let h=r[e+7];let f=r[e+8];let d=r[e+9];let p=r[e+10];let x=r[e+11];let b=r[e+12];let m=r[e+13];let S=r[e+14];let E=r[e+15];let k=n[0];let T=n[1];let B=n[2];let C=n[3];k=_(k,T,B,C,i,7,y[0]),C=_(C,k,T,B,s,12,y[1]),B=_(B,C,k,T,o,17,y[2]),T=_(T,B,C,k,c,22,y[3]),k=_(k,T,B,C,l,7,y[4]),C=_(C,k,T,B,a,12,y[5]),B=_(B,C,k,T,u,17,y[6]),T=_(T,B,C,k,h,22,y[7]),k=_(k,T,B,C,f,7,y[8]),C=_(C,k,T,B,d,12,y[9]),B=_(B,C,k,T,p,17,y[10]),T=_(T,B,C,k,x,22,y[11]),k=_(k,T,B,C,b,7,y[12]),C=_(C,k,T,B,m,12,y[13]),B=_(B,C,k,T,S,17,y[14]),T=_(T,B,C,k,E,22,y[15]),k=w(k,T,B,C,s,5,y[16]),C=w(C,k,T,B,u,9,y[17]),B=w(B,C,k,T,x,14,y[18]),T=w(T,B,C,k,i,20,y[19]),k=w(k,T,B,C,a,5,y[20]),C=w(C,k,T,B,p,9,y[21]),B=w(B,C,k,T,E,14,y[22]),T=w(T,B,C,k,l,20,y[23]),k=w(k,T,B,C,d,5,y[24]),C=w(C,k,T,B,S,9,y[25]),B=w(B,C,k,T,c,14,y[26]),T=w(T,B,C,k,f,20,y[27]),k=w(k,T,B,C,m,5,y[28]),C=w(C,k,T,B,o,9,y[29]),B=w(B,C,k,T,h,14,y[30]),T=w(T,B,C,k,b,20,y[31]),k=v(k,T,B,C,a,4,y[32]),C=v(C,k,T,B,f,11,y[33]),B=v(B,C,k,T,x,16,y[34]),T=v(T,B,C,k,S,23,y[35]),k=v(k,T,B,C,s,4,y[36]),C=v(C,k,T,B,l,11,y[37]),B=v(B,C,k,T,h,16,y[38]),T=v(T,B,C,k,p,23,y[39]),k=v(k,T,B,C,m,4,y[40]),C=v(C,k,T,B,i,11,y[41]),B=v(B,C,k,T,c,16,y[42]),T=v(T,B,C,k,u,23,y[43]),k=v(k,T,B,C,d,4,y[44]),C=v(C,k,T,B,b,11,y[45]),B=v(B,C,k,T,E,16,y[46]),T=v(T,B,C,k,o,23,y[47]),k=g(k,T,B,C,i,6,y[48]),C=g(C,k,T,B,h,10,y[49]),B=g(B,C,k,T,S,15,y[50]),T=g(T,B,C,k,a,21,y[51]),k=g(k,T,B,C,b,6,y[52]),C=g(C,k,T,B,c,10,y[53]),B=g(B,C,k,T,p,15,y[54]),T=g(T,B,C,k,s,21,y[55]),k=g(k,T,B,C,f,6,y[56]),C=g(C,k,T,B,E,10,y[57]),B=g(B,C,k,T,u,15,y[58]),T=g(T,B,C,k,m,21,y[59]),k=g(k,T,B,C,l,6,y[60]),C=g(C,k,T,B,x,10,y[61]),B=g(B,C,k,T,o,15,y[62]),T=g(T,B,C,k,d,21,y[63]),n[0]=n[0]+k|0,n[1]=n[1]+T|0,n[2]=n[2]+B|0,n[3]=n[3]+C|0}_doFinalize(){let t=this._data;let e=t.words;let r=8*this._nDataBytes;let n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32;let i=Math.floor(r/0x100000000);let s=r;e[(n+64>>>9<<4)+15]=(i<<8|i>>>24)&0xff00ff|(i<<24|i>>>8)&0xff00ff00,e[(n+64>>>9<<4)+14]=(s<<8|s>>>24)&0xff00ff|(s<<24|s>>>8)&0xff00ff00,t.sigBytes=(e.length+1)*4,this._process();let o=this._hash;let c=o.words;for(let t=0;t<4;t+=1){let e=c[t];c[t]=(e<<8|e>>>24)&0xff00ff|(e<<24|e>>>8)&0xff00ff00}return o}clone(){let t=super.clone.call(this);return t._hash=this._hash.clone(),t}}let S=u._createHelper(m);let E=u._createHmacHelper(m);class k extends i{constructor(t){super(),this.cfg=Object.assign(new i,{keySize:4,hasher:m,iterations:1},t)}compute(t,e){let r;let{cfg:n}=this;let i=n.hasher.create();let o=s.create();let c=o.words;let{keySize:l,iterations:a}=n;for(;c.length<l;){r&&i.update(r),r=i.update(t).finalize(e),i.reset();for(let t=1;t<a;t+=1)r=i.finalize(r),i.reset();o.concat(r)}return o.sigBytes=4*l,o}}let T=(t,e,r)=>k.create(r).compute(t,e);class B extends a{constructor(t,e,r){super(),this.cfg=Object.assign(new i,r),this._xformMode=t,this._key=e,this.reset()}static createEncryptor(t,e){return this.create(this._ENC_XFORM_MODE,t,e)}static createDecryptor(t,e){return this.create(this._DEC_XFORM_MODE,t,e)}static _createHelper(t){let e=t=>"string"==typeof t?j:z;
1return{encrypt(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt(r,n,i){return e(n).decrypt(t,r,n,i)}}}reset(){super.reset.call(this),this._doReset()}process(t){return this._append(t),this._process()}finalize(t){t&&this._append(t);let e=this._doFinalize();return e}}B._ENC_XFORM_MODE=1,B._DEC_XFORM_MODE=2,B.keySize=4,B.ivSize=4;class C extends B{constructor(...t){super(...t),this.blockSize=1}_doFinalize(){let t=this._process(!0);return t}}class O extends i{constructor(t,e){super(),this._cipher=t,this._iv=e}static createEncryptor(t,e){return this.Encryptor.create(t,e)}static createDecryptor(t,e){return this.Decryptor.create(t,e)}}function A(t,e,r){let n=t;let i;let s=this._iv;s?(i=s,this._iv=void 0):i=this._prevBlock;for(let t=0;t<r;t+=1)n[e+t]^=i[t]}class H extends O{}H.Encryptor=class extends H{processBlock(t,e){let r=this._cipher;let{blockSize:n}=r;A.call(this,t,e,n),r.encryptBlock(t,e),this._prevBlock=t.slice(e,e+n)}},H.Decryptor=class extends H{processBlock(t,e){let r=this._cipher;let{blockSize:n}=r;let i=t.slice(e,e+n);r.decryptBlock(t,e),A.call(this,t,e,n),this._prevBlock=i}};let I={pad(t,e){let r=4*e;let n=r-t.sigBytes%r;let i=n<<24|n<<16|n<<8|n;let o=[];for(let t=0;t<n;t+=4)o.push(i);let c=s.create(o,n);t.concat(c)},unpad(t){let e=t;let r=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=r}};class D extends B{constructor(t,e,r){super(t,e,Object.assign({mode:H,padding:I},r)),this.blockSize=4}reset(){let t;super.reset.call(this);let{cfg:e}=this;let{iv:r,mode:n}=e;this._xformMode===this.constructor._ENC_XFORM_MODE?t=n.createEncryptor:(t=n.createDecryptor,this._minBufferSize=1),this._mode=t.call(n,this,r&&r.words),this._mode.__creator=t}_doProcessBlock(t,e){this._mode.processBlock(t,e)}_doFinalize(){let t;let{padding:e}=this.cfg;return this._xformMode===this.constructor._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t}}class P extends i{constructor(t){super(),this.mixIn(t)}toString(t){return(t||this.formatter).stringify(this)}}let R={stringify(t){let{ciphertext:e,salt:r}=t;return(r?s.create([0x53616c74,0x65645f5f]).concat(r).concat(e):e).toString(b)},parse(t){let e;let r=b.parse(t);let n=r.words;return 0x53616c74===n[0]&&0x65645f5f===n[1]&&(e=s.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),P.create({ciphertext:r,salt:e})}};class z extends i{static encrypt(t,e,r,n){let s=Object.assign(new i,this.cfg,n);let o=t.createEncryptor(r,s);let c=o.finalize(e);let l=o.cfg;return P.create({ciphertext:c,key:r,iv:l.iv,algorithm:t,mode:l.mode,padding:l.padding,blockSize:o.blockSize,formatter:s.format})}static decrypt(t,e,r,n){let s=e;let o=Object.assign(new i,this.cfg,n);s=this._parse(s,o.format);let c=t.createDecryptor(r,o).finalize(s.ciphertext);return c}static _parse(t,e){return"string"==typeof t?e.parse(t,this):t}}z.cfg=Object.assign(new i,{format:R});let M={execute(t,e,r,n){let i=n;i||(i=s.random(8));let o=k.create({keySize:e+r}).compute(t,i);let c=s.create(o.words.slice(e),4*r);return o.sigBytes=4*e,P.create({key:o,iv:c,salt:i})}};class j extends z{static encrypt(t,e,r,n){let s=Object.assign(new i,this.cfg,n);let o=s.kdf.execute(r,t.keySize,t.ivSize);s.iv=o.iv;let c=z.encrypt.call(this,t,e,o.key,s);return c.mixIn(o),c}static decrypt(t,e,r,n){let s=e;let o=Object.assign(new i,this.cfg,n);s=this._parse(s,o.format);let c=o.kdf.execute(r,t.keySize,t.ivSize,s.salt);o.iv=c.iv;let l=z.decrypt.call(this,t,s,c.key,o);return l}}j.cfg=Object.assign(z.cfg,{kdf:M});let L=t=>t<<8&0xff00ff00|t>>>8&0xff00ff;let F={stringify(t){let{words:e,sigBytes:r}=t;let n=[];for(let t=0;t<r;t+=2){let r=e[t>>>2]>>>16-t%4*8&65535;n.push(String.fromCharCode(r))}return n.join("")},parse(t){let e=t.length;let r=[];for(let n=0;n<e;n+=1)r[n>>>1]|=t.charCodeAt(n)<<16-n%2*16;return s.create(r,2*e)}};let N=F;let U={stringify(t){let{words:e,sigBytes:r}=t;let n=[];for(let t=0;t<r;t+=2){let r=L(e[t>>>2]>>>16-t%4*8&65535);n.push(String.fromCharCode(r))}return n.join("")},parse(t){let e=t.length;let r=[];for(let n=0;n<e;n+=1)r[n>>>1]|=L(t.charCodeAt(n)<<16-n%2*16);return s.create(r,2*e)}};let K=[];class $ extends u{_doReset(){this._hash=new s([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0])}_doProcessBlock(t,e){let r=this._hash.words;let n=r[0];let i=r[1];let s=r[2];let o=r[3];let c=r[4];for(let r=0;r<80;r+=1){if(r<16)K[r]=0|t[e+r];else{let t=K[r-3]^K[r-8]^K[r-14]^K[r-16];K[r]=t<<1|t>>>31}let l=(n<<5|n>>>27)+c+K[r];r<20?l+=(i&s|~i&o)+0x5a827999:r<40?l+=(i^s^o)+0x6ed9eba1:r<60?l+=(i&s|i&o|s&o)-0x70e44324:l+=(i^s^o)-0x359d3e2a,c=o,o=s,s=i<<30|i>>>2,i=n,n=l}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+s|0,r[3]=r[3]+o|0,r[4]=r[4]+c|0}_doFinalize(){let t=this._data;let e=t.words;let r=8*this._nDataBytes;let n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[(n+64>>>9<<4)+14]=Math.floor(r/0x100000000),e[(n+64>>>9<<4)+15]=r,t.sigBytes=4*e.length,this._process(),this._hash}clone(){let t=super.clone.call(this);return t._hash=this._hash.clone(),t}}let W=u._createHelper($);let q=u._createHmacHelper($);let V=[];let X=[];let Y=t=>{let e=Math.sqrt(t);for(let r=2;r<=e;
1r+=1)if(!(t%r))return!1;return!0};let G=t=>(t-(0|t))*0x100000000|0;let Q=2;let J=0;for(;J<64;)Y(Q)&&(J<8&&(V[J]=G(Q**.5)),X[J]=G(Q**(1/3)),J+=1),Q+=1;let Z=[];class tt extends u{_doReset(){this._hash=new s(V.slice(0))}_doProcessBlock(t,e){let r=this._hash.words;let n=r[0];let i=r[1];let s=r[2];let o=r[3];let c=r[4];let l=r[5];let a=r[6];let u=r[7];for(let r=0;r<64;r+=1){if(r<16)Z[r]=0|t[e+r];else{let t=Z[r-15];let e=(t<<25|t>>>7)^(t<<14|t>>>18)^t>>>3;let n=Z[r-2];let i=(n<<15|n>>>17)^(n<<13|n>>>19)^n>>>10;Z[r]=e+Z[r-7]+i+Z[r-16]}let h=c&l^~c&a;let f=n&i^n&s^i&s;let d=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22);let p=(c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25);let x=u+p+h+X[r]+Z[r];let b=d+f;u=a,a=l,l=c,c=o+x|0,o=s,s=i,i=n,n=x+b|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+s|0,r[3]=r[3]+o|0,r[4]=r[4]+c|0,r[5]=r[5]+l|0,r[6]=r[6]+a|0,r[7]=r[7]+u|0}_doFinalize(){let t=this._data;let e=t.words;let r=8*this._nDataBytes;let n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[(n+64>>>9<<4)+14]=Math.floor(r/0x100000000),e[(n+64>>>9<<4)+15]=r,t.sigBytes=4*e.length,this._process(),this._hash}clone(){let t=super.clone.call(this);return t._hash=this._hash.clone(),t}}let te=u._createHelper(tt);let tr=u._createHmacHelper(tt);class tn extends tt{_doReset(){this._hash=new s([0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4])}_doFinalize(){let t=super._doFinalize.call(this);return t.sigBytes-=4,t}}let ti=tt._createHelper(tn);let ts=tt._createHmacHelper(tn);let to=[new d(0x428a2f98,0xd728ae22),new d(0x71374491,0x23ef65cd),new d(0xb5c0fbcf,0xec4d3b2f),new d(0xe9b5dba5,0x8189dbbc),new d(0x3956c25b,0xf348b538),new d(0x59f111f1,0xb605d019),new d(0x923f82a4,0xaf194f9b),new d(0xab1c5ed5,0xda6d8118),new d(0xd807aa98,0xa3030242),new d(0x12835b01,0x45706fbe),new d(0x243185be,0x4ee4b28c),new d(0x550c7dc3,0xd5ffb4e2),new d(0x72be5d74,0xf27b896f),new d(0x80deb1fe,0x3b1696b1),new d(0x9bdc06a7,0x25c71235),new d(0xc19bf174,0xcf692694),new d(0xe49b69c1,0x9ef14ad2),new d(0xefbe4786,0x384f25e3),new d(0xfc19dc6,0x8b8cd5b5),new d(0x240ca1cc,0x77ac9c65),new d(0x2de92c6f,0x592b0275),new d(0x4a7484aa,0x6ea6e483),new d(0x5cb0a9dc,0xbd41fbd4),new d(0x76f988da,0x831153b5),new d(0x983e5152,0xee66dfab),new d(0xa831c66d,0x2db43210),new d(0xb00327c8,0x98fb213f),new d(0xbf597fc7,0xbeef0ee4),new d(0xc6e00bf3,0x3da88fc2),new d(0xd5a79147,0x930aa725),new d(0x6ca6351,0xe003826f),new d(0x14292967,0xa0e6e70),new d(0x27b70a85,0x46d22ffc),new d(0x2e1b2138,0x5c26c926),new d(0x4d2c6dfc,0x5ac42aed),new d(0x53380d13,0x9d95b3df),new d(0x650a7354,0x8baf63de),new d(0x766a0abb,0x3c77b2a8),new d(0x81c2c92e,0x47edaee6),new d(0x92722c85,0x1482353b),new d(0xa2bfe8a1,0x4cf10364),new d(0xa81a664b,0xbc423001),new d(0xc24b8b70,0xd0f89791),new d(0xc76c51a3,0x654be30),new d(0xd192e819,0xd6ef5218),new d(0xd6990624,0x5565a910),new d(0xf40e3585,0x5771202a),new d(0x106aa070,0x32bbd1b8),new d(0x19a4c116,0xb8d2d0c8),new d(0x1e376c08,0x5141ab53),new d(0x2748774c,0xdf8eeb99),new d(0x34b0bcb5,0xe19b48a8),new d(0x391c0cb3,0xc5c95a63),new d(0x4ed8aa4a,0xe3418acb),new d(0x5b9cca4f,0x7763e373),new d(0x682e6ff3,0xd6b2b8a3),new d(0x748f82ee,0x5defb2fc),new d(0x78a5636f,0x43172f60),new d(0x84c87814,0xa1f0ab72),new d(0x8cc70208,0x1a6439ec),new d(0x90befffa,0x23631e28),new d(0xa4506ceb,0xde82bde9),new d(0xbef9a3f7,0xb2c67915),new d(0xc67178f2,0xe372532b),new d(0xca273ece,0xea26619c),new d(0xd186b8c7,0x21c0c207),new d(0xeada7dd6,0xcde0eb1e),new d(0xf57d4f7f,0xee6ed178),new d(0x6f067aa,0x72176fba),new d(0xa637dc5,0xa2c898a6),new d(0x113f9804,0xbef90dae),new d(0x1b710b35,0x131c471b),new d(0x28db77f5,0x23047d84),new d(0x32caab7b,0x40c72493),new d(0x3c9ebe0a,0x15c9bebc),new d(0x431d67c4,0x9c100d4c),new d(0x4cc5d4be,0xcb3e42b6),new d(0x597f299c,0xfc657e2a),new d(0x5fcb6fab,0x3ad6faec),new d(0x6c44198c,0x4a475817)];let tc=[];for(let t=0;t<80;t+=1)tc[t]=new d;class tl extends u{constructor(){super(),this.blockSize=32}_doReset(){this._hash=new p([new d(0x6a09e667,0xf3bcc908),new d(0xbb67ae85,0x84caa73b),new d(0x3c6ef372,0xfe94f82b),new d(0xa54ff53a,0x5f1d36f1),new d(0x510e527f,0xade682d1),new d(0x9b05688c,0x2b3e6c1f),new d(0x1f83d9ab,0xfb41bd6b),new d(0x5be0cd19,0x137e2179)])}_doProcessBlock(t,e){let r=this._hash.words;let n=r[0];let i=r[1];let s=r[2];let o=r[3];let c=r[4];let l=r[5];let a=r[6];let u=r[7];let h=n.high;let f=n.low;let d=i.high;let p=i.low;let x=s.high;let b=s.low;let y=o.high;let _=o.low;let w=c.high;let v=c.low;let g=l.high;let m=l.low;let S=a.high;let E=a.low;let k=u.high;let T=u.low;let B=h;let C=f;let O=d;let A=p;let H=x;let I=b;let D=y;let P=_;let R=w;let z=v;let M=g;let j=m;let L=S;let F=E;let N=k;let U=T;for(let r=0;r<80;r+=1){let n;let i;let s=tc[r];if(r<16)s.high=0|t[e+2*r],i=s.high,s.low=0|t[e+2*r+1],n=s.low;else{let t=tc[r-15];let e=t.high;let o=t.low;let c=(e>>>1|o<<31)^(e>>>8|o<<24)^e>>>7;let l=(o>>>1|e<<31)^(o>>>8|e<<24)^(o>>>7|e<<25);let a=tc[r-2];let u=a.high;let h=a.low;let f=(u>>>19|h<<13)^(u<<3|h>>>29)^u>>>6;let d=(h>>>19|u<<13)^(h<<3|u>>>29)^(h>>>6|u<<26);let p=tc[r-7];let x=p.high;let b=p.low;let y=tc[r-16];let _=y.high;let w=y.low;i=c+x+ +((n=l+b)>>>0<l>>>0),n+=d,i=i+f+ +(n>>>0<d>>>0),n+=w,s.high=i=i+_+ +(n>>>0<w>>>0),s.low=n}let o=R&M^~R&L;let c=z&j^~z&F;let l=B&O^B&H^O&H;let a=C&A^C&I^A&I;let u=(B>>>28|C<<4)^(B<<30|C>>>2)^(B<<25|C>>>7);let h=(C>>>28|B<<4)^(C<<30|B>>>2)^(C<<25|B>>>7);let f=(R>>>14|z<<18)^(R>>>18|z<<14)^(R<<23|z>>>9);let d=(z>>>14|R<<18)^(z>>>18|R<<14)^(z<<23|R>>>9);let p=to[r];let x=p.high;let b=p.low;let y=U+d;let _=N+f+ +(y>>>0<U>>>0);y+=c,_=_+o+ +(y>>>0<c>>>0),y+=b,_=_+x+ +(y>>>0<b>>>0),y+=n,_=_+i+ +(y>>>0<n>>>0);let w=h+a;let v=u+l+ +(w>>>0<h>>>0);N=L,U=F,L=M,F=j,M=R,j=z,R=D+_+ +((z=P+y|0)>>>0<P>>>0)|0,D=H,P=I,H=O,I=A,O=B,A=C,B=_+v+ +((C=y+w|0)>>>0<y>>>0)|0}n.low=f+C,f=n.low,n.high=h+B+ +(f>>>0<C>>>0),i.low=p+A,p=i.low,i.high=d+O+ +(p>>>0<A>>>0),s.low=b+I,b=s.low,s.high=x+H+ +(b>>
1>0<I>>>0),o.low=_+P,_=o.low,o.high=y+D+ +(_>>>0<P>>>0),c.low=v+z,v=c.low,c.high=w+R+ +(v>>>0<z>>>0),l.low=m+j,m=l.low,l.high=g+M+ +(m>>>0<j>>>0),a.low=E+F,E=a.low,a.high=S+L+ +(E>>>0<F>>>0),u.low=T+U,T=u.low,u.high=k+N+ +(T>>>0<U>>>0)}_doFinalize(){let t=this._data;let e=t.words;let r=8*this._nDataBytes;let n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[(n+128>>>10<<5)+30]=Math.floor(r/0x100000000),e[(n+128>>>10<<5)+31]=r,t.sigBytes=4*e.length,this._process();let i=this._hash.toX32();return i}clone(){let t=super.clone.call(this);return t._hash=this._hash.clone(),t}}let ta=u._createHelper(tl);let tu=u._createHmacHelper(tl);class th extends tl{_doReset(){this._hash=new p([new d(0xcbbb9d5d,0xc1059ed8),new d(0x629a292a,0x367cd507),new d(0x9159015a,0x3070dd17),new d(0x152fecd8,0xf70e5939),new d(0x67332667,0xffc00b31),new d(0x8eb44a87,0x68581511),new d(0xdb0c2e0d,0x64f98fa7),new d(0x47b5481d,0xbefa4fa4)])}_doFinalize(){let t=super._doFinalize.call(this);return t.sigBytes-=16,t}}let tf=tl._createHelper(th);let td=tl._createHmacHelper(th);let tp=[];let tx=[];let tb=[];let ty=1;let t_=0;for(let t=0;t<24;t+=1){tp[ty+5*t_]=(t+1)*(t+2)/2%64;let e=t_%5;let r=(2*ty+3*t_)%5;ty=e,t_=r}for(let t=0;t<5;t+=1)for(let e=0;e<5;e+=1)tx[t+5*e]=e+(2*t+3*e)%5*5;let tw=1;for(let t=0;t<24;t+=1){let e=0;let r=0;for(let t=0;t<7;t+=1){if(1&tw){let n=(1<<t)-1;n<32?r^=1<<n:e^=1<<n-32}128&tw?tw=tw<<1^113:tw<<=1}tb[t]=d.create(e,r)}let tv=[];for(let t=0;t<25;t+=1)tv[t]=d.create();class tg extends u{constructor(t){super(Object.assign({outputLength:512},t))}_doReset(){this._state=[];let t=this._state;for(let e=0;e<25;e+=1)t[e]=new d;this.blockSize=(1600-2*this.cfg.outputLength)/32}_doProcessBlock(t,e){let r=this._state;let n=this.blockSize/2;for(let i=0;i<n;i+=1){let n=t[e+2*i];let s=t[e+2*i+1];n=(n<<8|n>>>24)&0xff00ff|(n<<24|n>>>8)&0xff00ff00,s=(s<<8|s>>>24)&0xff00ff|(s<<24|s>>>8)&0xff00ff00;let o=r[i];o.high^=s,o.low^=n}for(let t=0;t<24;t+=1){for(let t=0;t<5;t+=1){let e=0;let n=0;for(let i=0;i<5;i+=1){let s=r[t+5*i];e^=s.high,n^=s.low}let i=tv[t];i.high=e,i.low=n}for(let t=0;t<5;t+=1){let e=tv[(t+4)%5];let n=tv[(t+1)%5];let i=n.high;let s=n.low;let o=e.high^(i<<1|s>>>31);let c=e.low^(s<<1|i>>>31);for(let e=0;e<5;e+=1){let n=r[t+5*e];n.high^=o,n.low^=c}}for(let t=1;t<25;t+=1){let e;let n;let i=r[t];let s=i.high;let o=i.low;let c=tp[t];c<32?(e=s<<c|o>>>32-c,n=o<<c|s>>>32-c):(e=o<<c-32|s>>>64-c,n=s<<c-32|o>>>64-c);let l=tv[tx[t]];l.high=e,l.low=n}let e=tv[0];let n=r[0];e.high=n.high,e.low=n.low;for(let t=0;t<5;t+=1)for(let e=0;e<5;e+=1){let n=t+5*e;let i=r[n];let s=tv[n];let o=tv[(t+1)%5+5*e];let c=tv[(t+2)%5+5*e];i.high=s.high^~o.high&c.high,i.low=s.low^~o.low&c.low}let i=r[0];let s=tb[t];i.high^=s.high,i.low^=s.low}}_doFinalize(){let t=this._data;let e=t.words;let r=8*t.sigBytes;let n=32*this.blockSize;e[r>>>5]|=1<<24-r%32,e[(Math.ceil((r+1)/n)*n>>>5)-1]|=128,t.sigBytes=4*e.length,this._process();let i=this._state;let o=this.cfg.outputLength/8;let c=o/8;let l=[];for(let t=0;t<c;t+=1){let e=i[t];let r=e.high;let n=e.low;r=(r<<8|r>>>24)&0xff00ff|(r<<24|r>>>8)&0xff00ff00,n=(n<<8|n>>>24)&0xff00ff|(n<<24|n>>>8)&0xff00ff00,l.push(n),l.push(r)}return new s(l,o)}clone(){let t=super.clone.call(this);t._state=this._state.slice(0);let e=t._state;for(let t=0;t<25;t+=1)e[t]=e[t].clone();return t}}let tm=u._createHelper(tg);let tS=u._createHmacHelper(tg);let tE=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]);let tk=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]);let tT=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]);let tB=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]);let tC=s.create([0,0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xa953fd4e]);let tO=s.create([0x50a28be6,0x5c4dd124,0x6d703ef3,0x7a6d76e9,0]);let tA=(t,e,r)=>t^e^r;let tH=(t,e,r)=>t&e|~t&r;let tI=(t,e,r)=>(t|~e)^r;let tD=(t,e,r)=>t&r|e&~r;let tP=(t,e,r)=>t^(e|~r);let tR=(t,e)=>t<<e|t>>>32-e;class tz extends u{_doReset(){this._hash=s.create([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0])}_doProcessBlock(t,e){let r=t;for(let t=0;t<16;t+=1){let n=e+t;let i=r[n];r[n]=(i<<8|i>>>
124)&0xff00ff|(i<<24|i>>>8)&0xff00ff00}let n=this._hash.words;let i=tC.words;let s=tO.words;let o=tE.words;let c=tk.words;let l=tT.words;let a=tB.words;let u=n[0];let h=n[1];let f=n[2];let d=n[3];let p=n[4];let x=n[0];let b=n[1];let y=n[2];let _=n[3];let w=n[4];let v;for(let t=0;t<80;t+=1)v=u+r[e+o[t]]|0,t<16?v+=tA(h,f,d)+i[0]:t<32?v+=tH(h,f,d)+i[1]:t<48?v+=tI(h,f,d)+i[2]:t<64?v+=tD(h,f,d)+i[3]:v+=tP(h,f,d)+i[4],v|=0,v=(v=tR(v,l[t]))+p|0,u=p,p=d,d=tR(f,10),f=h,h=v,v=x+r[e+c[t]]|0,t<16?v+=tP(b,y,_)+s[0]:t<32?v+=tD(b,y,_)+s[1]:t<48?v+=tI(b,y,_)+s[2]:t<64?v+=tH(b,y,_)+s[3]:v+=tA(b,y,_)+s[4],v|=0,v=(v=tR(v,a[t]))+w|0,x=w,w=_,_=tR(y,10),y=b,b=v;v=n[1]+f+_|0,n[1]=n[2]+d+w|0,n[2]=n[3]+p+x|0,n[3]=n[4]+u+b|0,n[4]=n[0]+h+y|0,n[0]=v}_doFinalize(){let t=this._data;let e=t.words;let r=8*this._nDataBytes;let n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[(n+64>>>9<<4)+14]=(r<<8|r>>>24)&0xff00ff|(r<<24|r>>>8)&0xff00ff00,t.sigBytes=(e.length+1)*4,this._process();let i=this._hash;let s=i.words;for(let t=0;t<5;t+=1){let e=s[t];s[t]=(e<<8|e>>>24)&0xff00ff|(e<<24|e>>>8)&0xff00ff00}return i}clone(){let t=super.clone.call(this);return t._hash=this._hash.clone(),t}}let tM=u._createHelper(tz);let tj=u._createHmacHelper(tz);class tL extends i{constructor(t){super(),this.cfg=Object.assign(new i,{keySize:4,hasher:$,iterations:1},t)}compute(t,e){let{cfg:r}=this;let n=h.create(r.hasher,t);let i=s.create();let o=s.create([1]);let c=i.words;let l=o.words;let{keySize:a,iterations:u}=r;for(;c.length<a;){let t=n.update(e).finalize(o);n.reset();let r=t.words;let s=r.length;let c=t;for(let t=1;t<u;t+=1){c=n.finalize(c),n.reset();let t=c.words;for(let e=0;e<s;e+=1)r[e]^=t[e]}i.concat(t),l[0]+=1}return i.sigBytes=4*a,i}}let tF=(t,e,r)=>tL.create(r).compute(t,e);let tN=[];let tU=[];let tK=[];let t$=[];let tW=[];let tq=[];let tV=[];let tX=[];let tY=[];let tG=[];let tQ=[];for(let t=0;t<256;t+=1)t<128?tQ[t]=t<<1:tQ[t]=t<<1^283;let tJ=0;let tZ=0;for(let t=0;t<256;t+=1){let t=tZ^tZ<<1^tZ<<2^tZ<<3^tZ<<4;t=t>>>8^255&t^99,tN[tJ]=t,tU[t]=tJ;let e=tQ[tJ];let r=tQ[e];let n=tQ[r];let i=257*tQ[t]^0x1010100*t;tK[tJ]=i<<24|i>>>8,t$[tJ]=i<<16|i>>>16,tW[tJ]=i<<8|i>>>24,tq[tJ]=i,i=0x1010101*n^65537*r^257*e^0x1010100*tJ,tV[t]=i<<24|i>>>8,tX[t]=i<<16|i>>>16,tY[t]=i<<8|i>>>24,tG[t]=i,tJ?(tJ=e^tQ[tQ[tQ[n^e]]],tZ^=tQ[tQ[tZ]]):tJ=tZ=1}let t0=[0,1,2,4,8,16,32,64,128,27,54];class t1 extends D{_doReset(){let t;if(this._nRounds&&this._keyPriorReset===this._key)return;this._keyPriorReset=this._key;let e=this._keyPriorReset;let r=e.words;let n=e.sigBytes/4;this._nRounds=n+6;let i=this._nRounds;let s=(i+1)*4;this._keySchedule=[];let o=this._keySchedule;for(let e=0;e<s;e+=1)e<n?o[e]=r[e]:(t=o[e-1],e%n?n>6&&e%n==4&&(t=tN[t>>>24]<<24|tN[t>>>16&255]<<16|tN[t>>>8&255]<<8|tN[255&t]):t=(tN[(t=t<<8|t>>>24)>>>24]<<24|tN[t>>>16&255]<<16|tN[t>>>8&255]<<8|tN[255&t])^t0[e/n|0]<<24,o[e]=o[e-n]^t);this._invKeySchedule=[];let c=this._invKeySchedule;for(let e=0;e<s;e+=1){let r=s-e;t=e%4?o[r]:o[r-4],e<4||r<=4?c[e]=t:c[e]=tV[tN[t>>>24]]^tX[tN[t>>>16&255]]^tY[tN[t>>>8&255]]^tG[tN[255&t]]}}encryptBlock(t,e){this._doCryptBlock(t,e,this._keySchedule,tK,t$,tW,tq,tN)}decryptBlock(t,e){let r=t;let n=r[e+1];r[e+1]=r[e+3],r[e+3]=n,this._doCryptBlock(r,e,this._invKeySchedule,tV,tX,tY,tG,tU),n=r[e+1],r[e+1]=r[e+3],r[e+3]=n}_doCryptBlock(t,e,r,n,i,s,o,c){let l=t;let a=this._nRounds;let u=l[e]^r[0];let h=l[e+1]^r[1];let f=l[e+2]^r[2];let d=l[e+3]^r[3];let p=4;for(let t=1;t<a;t+=1){let t=n[u>>>24]^i[h>>>16&255]^s[f>>>8&255]^o[255&d]^r[p];p+=1;let e=n[h>>>24]^i[f>>>16&255]^s[d>>>8&255]^o[255&u]^r[p];p+=1;let c=n[f>>>24]^i[d>>>16&255]^s[u>>>8&255]^o[255&h]^r[p];p+=1;let l=n[d>>>24]^i[u>>>16&255]^s[h>>>8&255]^o[255&f]^r[p];p+=1,u=t,h=e,f=c,d=l}let x=(c[u>>>24]<<24|c[h>>>16&255]<<16|c[f>>>8&255]<<8|c[255&d])^r[p];p+=1;let b=(c[h>>>24]<<24|c[f>>>16&255]<<16|c[d>>>8&255]<<8|c[255&u])^r[p];p+=1;let y=(c[f>>>24]<<24|c[d>>>16&255]<<16|c[u>>>8&255]<<8|c[255&h])^r[p];p+=1;let _=(c[d>>>24]<<24|c[u>>>16&255]<<16|c[h>>>8&255]<<8|c[255&f])^r[p];p+=1,l[e]=x,l[e+1]=b,l[e+2]=y,l[e+3]=_}}t1.keySize=8;let t2=D._createHelper(t1);let t4=[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];let t8=[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];let t6=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28];let t5=[{0:8421888,0x10000000:32768,0x20000000:8421378,0x30000000:2,0x40000000:512,0x50000000:8421890,0x60000000:8389122,0x70000000:8388608,0x80000000:514,0x90000000:8389120,0xa0000000:33280,0xb0000000:8421376,0xc0000000:32770,0xd0000000:8388610,0xe0000000:0,0xf0000000:33282,0x8000000:0,0x18000000:8421890,0x28000000:33282,0x38000000:32768,0x48000000:8421888,0x58000000:512,0x68000000:8421378,0x78000000:2,0x88000000:8389120,0x98000000:33280,0xa8000000:8421376,0xb8000000:8389122,0xc8000000:8388610,0xd8000000:32770,0xe8000000:514,0xf8000000:8388608,1:32768,0x10000001:2,0x20000001:8421888,0x30000001:8388608,0x40000001:8421378,0x50000001:33280,0x60000001:512,0x70000001:8389122,0x80000001:8421890,0x90000001:8421376,0xa0000001:8388610,0xb0000001:33282,0xc0000001:514,0xd0000001:8389120,0xe0000001:32770,0xf0000001:0,0x8000001:8421890,0x18000001:8421376,0x28000001:8388608,0x38000001:512,0x48000001:32768,0x58000001:8388610,0x68000001:2,0x78000001:33282,0x88000001:32770,0x98000001:8389122,0xa8000001:514,0xb8000001:8421888,0xc8000001:8389120,0xd8000001:0,0xe8000001:33280,0xf8000001:8421378},{0:0x40084010,0x1000000:16384,0x2000000:524288,0x3000000:0x40080010,0x4000000:0x40000010,0x5000000:0x40084000,0x6000000:0x40004000,0x7000000:16,0x8000000:540672,0x9000000:0x40004010,0xa000000:0x40000000,0xb000000:540688,0xc000000:524304,0xd000000:0,0xe000000:16400,0xf000000:0x40080000,8388608:0x40004000,0x1800000:540688,0x2800000:16,0x3800000:0x40004010,0x4800000:0x40084010,0x5800000:0x40000000,0x6800000:524288,0x7800000:0x40080010,0x8800000:524304,0x9800000:0,0xa800000:16384,0xb800000:0x40080000,0xc800000:0x40000010,0xd800000:540672,0xe800000:0x40084000,0xf800000:16400,0x10000000:0,0x11000000:0x40080010,0x12000000:0x40004010,0x13000000:0x40084000,0x14000000:0x40080000,0x15000000:16,0x16000000:540688,0x17000000:16384,0x18000000:16400,0x19000000:524288,0x1a000000:524304,0x1b000000:0x40000010,0x1c000000:540672,0x1d000000:0x40004000,0x1e000000:0x40000000,0x1f000000:0x40084010,0x10800000:540688,0x11800000:524288,0x12800000:0x40080000,0x13800000:16384,0x14800000:0x40004000,0x15800000:0x40084010,0x16800000:16,0x17800000:0x40000000,0x18800000:0x40084000,0x19800000:0x40000010,0x1a800000:0x40004010,0x1b800000:524304,0x1c800000:0,0x1d800000:16400,0x1e800000:0x40080010,0x1f800000:540672},{0:260,1048576:0,2097152:0x4000100,3145728:65796,4194304:65540,5242880:0x4000004,6291456:0x4010104,7340032:0x4010000,8388608:0x4000000,9437184:0x4010100,0xa00000:65792,0xb00000:0x4010004,0
1xc00000:0x4000104,0xd00000:65536,0xe00000:4,0xf00000:256,524288:0x4010100,1572864:0x4010004,2621440:0,3670016:0x4000100,4718592:0x4000004,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,0xa80000:0x4010000,0xb80000:65796,0xc80000:65792,0xd80000:0x4000104,0xe80000:0x4010104,0xf80000:0x4000000,0x1000000:0x4010100,0x1100000:65540,0x1200000:65536,0x1300000:0x4000100,0x1400000:256,0x1500000:0x4010104,0x1600000:0x4000004,0x1700000:0,0x1800000:0x4000104,0x1900000:0x4000000,0x1a00000:4,0x1b00000:65792,0x1c00000:0x4010000,0x1d00000:260,0x1e00000:65796,0x1f00000:0x4010004,0x1080000:0x4000000,0x1180000:260,0x1280000:0x4010100,0x1380000:0,0x1480000:65540,0x1580000:0x4000100,0x1680000:256,0x1780000:0x4010004,0x1880000:65536,0x1980000:0x4010104,0x1a80000:65796,0x1b80000:0x4000004,0x1c80000:0x4000104,0x1d80000:0x4010000,0x1e80000:4,0x1f80000:65792},{0:0x80401000,65536:0x80001040,131072:4198464,196608:0x80400000,262144:0,327680:4198400,393216:0x80000040,458752:4194368,524288:0x80000000,589824:4194304,655360:64,720896:0x80001000,786432:0x80400040,851968:4160,917504:4096,983040:0x80401040,32768:0x80001040,98304:64,163840:0x80400040,229376:0x80001000,294912:4198400,360448:0x80401040,425984:0,491520:0x80400000,557056:4096,622592:0x80401000,688128:4194304,753664:4160,819200:0x80000000,884736:4194368,950272:4198464,1015808:0x80000040,1048576:4194368,1114112:4198400,1179648:0x80000040,1245184:0,1310720:4160,1376256:0x80400040,1441792:0x80401000,1507328:0x80001040,1572864:0x80401040,1638400:0x80000000,1703936:0x80400000,1769472:4198464,1835008:0x80001000,1900544:4194304,1966080:64,2031616:4096,1081344:0x80400000,1146880:0x80401040,1212416:0,1277952:4198400,1343488:4194368,1409024:0x80000000,1474560:0x80001040,1540096:64,1605632:0x80000040,1671168:4096,1736704:0x80001000,1802240:0x80400040,1867776:4160,1933312:0x80401000,1998848:4194304,2064384:4198464},{0:128,4096:0x1040000,8192:262144,12288:0x20000000,16384:0x20040080,20480:0x1000080,24576:0x21000080,28672:262272,32768:0x1000000,36864:0x20040000,40960:0x20000080,45056:0x21040080,49152:0x21040000,53248:0,57344:0x1040080,61440:0x21000000,2048:0x1040080,6144:0x21000080,10240:128,14336:0x1040000,18432:262144,22528:0x20040080,26624:0x21040000,30720:0x20000000,34816:0x20040000,38912:0,43008:0x21040080,47104:0x1000080,51200:0x20000080,55296:0x21000000,59392:0x1000000,63488:262272,65536:262144,69632:128,73728:0x20000000,77824:0x21000080,81920:0x1000080,86016:0x21040000,90112:0x20040080,94208:0x1000000,98304:0x21040080,102400:0x21000000,106496:0x1040000,110592:0x20040000,114688:262272,118784:0x20000080,122880:0,126976:0x1040080,67584:0x21000080,71680:0x1000000,75776:0x1040000,79872:0x20040080,83968:0x20000000,88064:0x1040080,92160:128,96256:0x21040000,100352:262272,104448:0x21040080,108544:0,112640:0x21000000,116736:0x1000080,120832:262144,124928:0x20040000,129024:0x20000080},{0:0x10000008,256:8192,512:0x10200000,768:0x10202008,1024:0x10002000,1280:2097152,1536:2097160,1792:0x10000000,2048:0,2304:0x10002008,2560:2105344,2816:8,3072:0x10200008,3328:2105352,3584:8200,3840:0x10202000,128:0x10200000,384:0x10202008,640:8,896:2097152,1152:2105352,1408:0x10000008,1664:0x10002000,1920:8200,2176:2097160,2432:8192,2688:0x10002008,2944:0x10200008,3200:0,3456:0x10202000,3712:2105344,3968:0x10000000,4096:0x10002000,4352:0x10200008,4608:0x10202008,4864:8200,5120:2097152,5376:0x10000000,5632:0x10000008,5888:2105344,6144:2105352,6400:0,6656:8,6912:0x10200000,7168:8192,7424:0x10002008,7680:0x10202000,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:0x10000008,5248:0x10002000,5504:8200,5760:0x10202008,6016:0x10200000,6272:0x10202000,6528:0x10200008,6784:8192,7040:2105352,7296:2097160,7552:0,7808:0x10000000,8064:0x10002008},{0:1048576,16:0x2000401,32:1024,48:1049601,64:0x2100401,80:0,96:1,112:0x2100001,128:0x2000400,144:1048577,160:0x2000001,176:0x2100400,192:0x2100000,208:1025,224:1049600,240:0x2000000,8:0x2100001,24:0,40:0x2000401,56:0x2100400,72:1048576,88:0x2000001,104:0x2000000,120:1025,136:1049601,152:0x2000400,168:0x2100000,184:1048577,200:1024,216:0x2100401,232:1,248:1049600,256:0x2000000,272:1048576,288:0x2000401,304:0x2100001,320:1048577,336:0x2000400,352:0x2100400,368:1049601,384:1025,400:0x2100401,416:1049600,432:1,448:0,464:0x2100000,480:0x2000001,496:1024,264:1049600,280:0x2000401,296:0x2100001,312:1,328:0x2000000,344:1048576,360:1025,376:0x2100400,392:0x2000001,408:0x2100000,424:0,440:0x2100401,456:1049601,472:1024,488:0x2000400,504:1048577},{0:0x8000820,1:131072,2:0x8000000,3:32,4:131104,5:0x8020820,6:0x8020800,7:2048,8:0x8020000,9:0x8000800,10:133120,11:0x8020020,12:2080,13:0,14:0x8000020,15:133152,0x80000000:2048,0x80000001:0x8020820,0x80000002:0x8000820,0x80000003:0x8000000,0x80000004:0x8020000,0x80000005:133120,0x80000006:133152,0x80000007:32,0x80000008:0x8000020,0x80000009:2080,0x8000000a:131104,0x8000000b:0x8020800,0x8000000c:0,0x8000000d:0x8020020,0x8000000e:0x8000800,0x8000000f:131072,16:133152,17:0x8020800,18:32,19:2048,20:0x8000800,21:0x8000020,22:0x8020020,23:131072,24:0,25:131104,26:0x8020000,27:0x8000820,28:0x8020820,29:133120,30:2080,31:0x8000000,0x80000010:131072,0x80000011:2048,0x80000012:0x8020020,0x80000013:133152,0x80000014:32,0x80000015:0x8020000,0x80000016:0x8000000,0x80000017:0x8000820,0x80000018:0x8020820,0x80000019:0x8000020,0x8000001a:0x8000800,0x8000001b:0,0x8000001c:133120,0x8000001d:2080,0x8000001e:131104,0x8000001f:0x8020800}];let t3=[0xf8000001,0x1f800000,0x1f80000,2064384,129024,8064,504,0x8000001f];function t7(t,e){let r=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=r,this._lBlock^=r<<t}function t9(t,e){let r=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=r,this._rBlock^=r<<t}class et extends D{_doReset(){let t=this._key;let e=t.words;let r=[];for(let t=0;t<56;t+=1){let n=t4[t]-1;r[t]=e[n>>>5]>>>31-n%32&1}this._subKeys=[];let n=this._subKeys;for(let t=0;t<16;t+=1){n[t]=[];let e=n[t];let i=t6[t];for(let t=0;t<24;t+=1)e[t/6|0]|=r[(t8[t]-1+i)%28]<<31-t%6,e[4+(t/6|0)]|=r[28+(t8[t+24]-1+i)%28]<<31-t%6;e[0]=e[0]<<1|e[0]>>>31;for(let t=1;t<7;t+=1)e[t]>>>=(t-1)*4+3;e[7]=e[7]<<5|e[7]>>>27}this._invSubKeys=[];let i=this._invSubKeys;for(let t=0;t<16;t+=1)i[t]=n[15-t]}encryptBlock(t,e){this._doCryptBlock(t,e,this._subKeys)}decryptBlock(t,e){this._doCryptBlock(t,e,this._invSubKeys)}_doCryptBlock(t,e,r){let n=t;this._lBlock=t[e],this._rBlock=t[e+1],t7.call(this,4,0xf0f0f0f),t7.call(this,16,65535),t9.call(this,2,0x33333333),t9.call(this,8,0xff00ff),t7.call(this,1,0x55555555);for(let t=0;t<16;t+=1){let e=r[t];let n=this._lBlock;let i=this._rBlock;let s=0;for(let t=0;t<8;t+=1)s|=t5[t][((i^e[t])&t3[t])>>>0];this._lBlock=i,this._rBlock=n^s}let i=this._lBlock;this._lBlock=this._rBlock,this._rBlock=i,t7.call(this,1,0x55555555),t9.call(this,8,0xff00ff),t9.call(this,2,0x33333333),t7.call(this,16,65535),t7.call(this,4,0xf0f0f0f),n[e]=this._lBlock,n[e+1]=this._rBlock}}
1et.keySize=2,et.ivSize=2,et.blockSize=2;let ee=D._createHelper(et);class er extends D{_doReset(){let t=this._key;let e=t.words;if(2!==e.length&&4!==e.length&&e.length<6)throw Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");let r=e.slice(0,2);let n=e.length<4?e.slice(0,2):e.slice(2,4);let i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=et.createEncryptor(s.create(r)),this._des2=et.createEncryptor(s.create(n)),this._des3=et.createEncryptor(s.create(i))}encryptBlock(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)}decryptBlock(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)}}er.keySize=6,er.ivSize=2,er.blockSize=2;let en=D._createHelper(er);let ei=[];let es=[];let eo=[];function ec(){let t=this._X;let e=this._C;for(let t=0;t<8;t+=1)es[t]=e[t];e[0]=e[0]+0x4d34d34d+this._b|0,e[1]=e[1]+0xd34d34d3+ +(e[0]>>>0<es[0]>>>0)|0,e[2]=e[2]+0x34d34d34+ +(e[1]>>>0<es[1]>>>0)|0,e[3]=e[3]+0x4d34d34d+ +(e[2]>>>0<es[2]>>>0)|0,e[4]=e[4]+0xd34d34d3+ +(e[3]>>>0<es[3]>>>0)|0,e[5]=e[5]+0x34d34d34+ +(e[4]>>>0<es[4]>>>0)|0,e[6]=e[6]+0x4d34d34d+ +(e[5]>>>0<es[5]>>>0)|0,e[7]=e[7]+0xd34d34d3+ +(e[6]>>>0<es[6]>>>0)|0,this._b=+(e[7]>>>0<es[7]>>>0);for(let r=0;r<8;r+=1){let n=t[r]+e[r];let i=65535&n;let s=n>>>16;let o=((i*i>>>17)+i*s>>>15)+s*s;let c=((0xffff0000&n)*n|0)+((65535&n)*n|0);eo[r]=o^c}t[0]=eo[0]+(eo[7]<<16|eo[7]>>>16)+(eo[6]<<16|eo[6]>>>16)|0,t[1]=eo[1]+(eo[0]<<8|eo[0]>>>24)+eo[7]|0,t[2]=eo[2]+(eo[1]<<16|eo[1]>>>16)+(eo[0]<<16|eo[0]>>>16)|0,t[3]=eo[3]+(eo[2]<<8|eo[2]>>>24)+eo[1]|0,t[4]=eo[4]+(eo[3]<<16|eo[3]>>>16)+(eo[2]<<16|eo[2]>>>16)|0,t[5]=eo[5]+(eo[4]<<8|eo[4]>>>24)+eo[3]|0,t[6]=eo[6]+(eo[5]<<16|eo[5]>>>16)+(eo[4]<<16|eo[4]>>>16)|0,t[7]=eo[7]+(eo[6]<<8|eo[6]>>>24)+eo[5]|0}class el extends C{constructor(...t){super(...t),this.blockSize=4,this.ivSize=2}_doReset(){let t=this._key.words;let{iv:e}=this.cfg;for(let e=0;e<4;e+=1)t[e]=(t[e]<<8|t[e]>>>24)&0xff00ff|(t[e]<<24|t[e]>>>8)&0xff00ff00;this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16];let r=this._X;this._C=[t[2]<<16|t[2]>>>16,0xffff0000&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,0xffff0000&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,0xffff0000&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,0xffff0000&t[3]|65535&t[0]];let n=this._C;this._b=0;for(let t=0;t<4;t+=1)ec.call(this);for(let t=0;t<8;t+=1)n[t]^=r[t+4&7];if(e){let t=e.words;let r=t[0];let i=t[1];let s=(r<<8|r>>>24)&0xff00ff|(r<<24|r>>>8)&0xff00ff00;let o=(i<<8|i>>>24)&0xff00ff|(i<<24|i>>>8)&0xff00ff00;let c=s>>>16|0xffff0000&o;let l=o<<16|65535&s;n[0]^=s,n[1]^=c,n[2]^=o,n[3]^=l,n[4]^=s,n[5]^=c,n[6]^=o,n[7]^=l;for(let t=0;t<4;t+=1)ec.call(this)}}_doProcessBlock(t,e){let r=t;let n=this._X;ec.call(this),ei[0]=n[0]^n[5]>>>16^n[3]<<16,ei[1]=n[2]^n[7]>>>16^n[5]<<16,ei[2]=n[4]^n[1]>>>16^n[7]<<16,ei[3]=n[6]^n[3]>>>16^n[1]<<16;for(let t=0;t<4;t+=1)ei[t]=(ei[t]<<8|ei[t]>>>24)&0xff00ff|(ei[t]<<24|ei[t]>>>8)&0xff00ff00,r[e+t]^=ei[t]}}let ea=C._createHelper(el);let eu=[];let eh=[];let ef=[];function ed(){let t=this._X;let e=this._C;for(let t=0;t<8;t+=1)eh[t]=e[t];e[0]=e[0]+0x4d34d34d+this._b|0,e[1]=e[1]+0xd34d34d3+ +(e[0]>>>0<eh[0]>>>0)|0,e[2]=e[2]+0x34d34d34+ +(e[1]>>>0<eh[1]>>>0)|0,e[3]=e[3]+0x4d34d34d+ +(e[2]>>>0<eh[2]>>>0)|0,e[4]=e[4]+0xd34d34d3+ +(e[3]>>>0<eh[3]>>>0)|0,e[5]=e[5]+0x34d34d34+ +(e[4]>>>0<eh[4]>>>0)|0,e[6]=e[6]+0x4d34d34d+ +(e[5]>>>0<eh[5]>>>0)|0,e[7]=e[7]+0xd34d34d3+ +(e[6]>>>0<eh[6]>>>0)|0,this._b=+(e[7]>>>0<eh[7]>>>0);for(let r=0;r<8;r+=1){let n=t[r]+e[r];let i=65535&n;let s=n>>>16;let o=((i*i>>>17)+i*s>>>15)+s*s;let c=((0xffff0000&n)*n|0)+((65535&n)*n|0);ef[r]=o^c}t[0]=ef[0]+(ef[7]<<16|ef[7]>>>16)+(ef[6]<<16|ef[6]>>>16)|0,t[1]=ef[1]+(ef[0]<<8|ef[0]>>>24)+ef[7]|0,t[2]=ef[2]+(ef[1]<<16|ef[1]>>>16)+(ef[0]<<16|ef[0]>>>16)|0,t[3]=ef[3]+(ef[2]<<8|ef[2]>>>24)+ef[1]|0,t[4]=ef[4]+(ef[3]<<16|ef[3]>>>16)+(ef[2]<<16|ef[2]>>>16)|0,t[5]=ef[5]+(ef[4]<<8|ef[4]>>>24)+ef[3]|0,t[6]=ef[6]+(ef[5]<<16|ef[5]>>>16)+(ef[4]<<16|ef[4]>>>16)|0,t[7]=ef[7]+(ef[6]<<8|ef[6]>>>24)+ef[5]|0}class ep extends C{constructor(...t){super(...t),this.blockSize=4,this.ivSize=2}_doReset(){let t=this._key.words;let{iv:e}=this.cfg;this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16];let r=this._X;this._C=[t[2]<<16|t[2]>>>16,0xffff0000&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,0xffff0000&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,0xffff0000&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,0xffff0000&t[3]|65535&t[0]];let n=this._C;this._b=0;for(let t=0;t<4;t+=1)ed.call(this);for(let t=0;t<8;t+=1)n[t]^=r[t+4&7];if(e){let t=e.words;let r=t[0];let i=t[1];let s=(r<<8|r>>>
124)&0xff00ff|(r<<24|r>>>8)&0xff00ff00;let o=(i<<8|i>>>24)&0xff00ff|(i<<24|i>>>8)&0xff00ff00;let c=s>>>16|0xffff0000&o;let l=o<<16|65535&s;n[0]^=s,n[1]^=c,n[2]^=o,n[3]^=l,n[4]^=s,n[5]^=c,n[6]^=o,n[7]^=l;for(let t=0;t<4;t+=1)ed.call(this)}}_doProcessBlock(t,e){let r=t;let n=this._X;ed.call(this),eu[0]=n[0]^n[5]>>>16^n[3]<<16,eu[1]=n[2]^n[7]>>>16^n[5]<<16,eu[2]=n[4]^n[1]>>>16^n[7]<<16,eu[3]=n[6]^n[3]>>>16^n[1]<<16;for(let t=0;t<4;t+=1)eu[t]=(eu[t]<<8|eu[t]>>>24)&0xff00ff|(eu[t]<<24|eu[t]>>>8)&0xff00ff00,r[e+t]^=eu[t]}}let ex=C._createHelper(ep);function eb(){let t=this._S;let e=this._i;let r=this._j;let n=0;for(let i=0;i<4;i+=1){r=(r+t[e=(e+1)%256])%256;let s=t[e];t[e]=t[r],t[r]=s,n|=t[(t[e]+t[r])%256]<<24-8*i}return this._i=e,this._j=r,n}class ey extends C{_doReset(){let t=this._key;let e=t.words;let r=t.sigBytes;this._S=[];let n=this._S;for(let t=0;t<256;t+=1)n[t]=t;for(let t=0,i=0;t<256;t+=1){let s=t%r;let o=e[s>>>2]>>>24-s%4*8&255;i=(i+n[t]+o)%256;let c=n[t];n[t]=n[i],n[i]=c}this._j=0,this._i=this._j}_doProcessBlock(t,e){let r=t;r[e]^=eb.call(this)}}ey.keySize=8,ey.ivSize=0;let e_=C._createHelper(ey);class ew extends ey{constructor(...t){super(...t),Object.assign(this.cfg,{drop:192})}_doReset(){super._doReset.call(this);for(let t=this.cfg.drop;t>0;t-=1)eb.call(this)}}let ev=C._createHelper(ew);function eg(t,e,r,n){let i=t;let s;let o=this._iv;o?(s=o.slice(0),this._iv=void 0):s=this._prevBlock,n.encryptBlock(s,0);for(let t=0;t<r;t+=1)i[e+t]^=s[t]}class em extends O{}em.Encryptor=class extends em{processBlock(t,e){let r=this._cipher;let{blockSize:n}=r;eg.call(this,t,e,n,r),this._prevBlock=t.slice(e,e+n)}},em.Decryptor=class extends em{processBlock(t,e){let r=this._cipher;let{blockSize:n}=r;let i=t.slice(e,e+n);eg.call(this,t,e,n,r),this._prevBlock=i}};class eS extends O{}eS.Encryptor=class extends eS{processBlock(t,e){let r=t;let n=this._cipher;let{blockSize:i}=n;let s=this._iv;let o=this._counter;s&&(this._counter=s.slice(0),o=this._counter,this._iv=void 0);let c=o.slice(0);n.encryptBlock(c,0),o[i-1]=o[i-1]+1|0;for(let t=0;t<i;t+=1)r[e+t]^=c[t]}},eS.Decryptor=eS.Encryptor;let eE=t=>{let e=t;if((t>>24&255)==255){let r=t>>16&255;let n=t>>8&255;let i=255&t;255===r?(r=0,255===n?(n=0,255===i?i=0:i+=1):n+=1):r+=1,e=0+(r<<16)+(n<<8)+i}else e+=0x1000000;return e};let ek=t=>{let e=t;return e[0]=eE(e[0]),0===e[0]&&(e[1]=eE(e[1])),e};class eT extends O{}eT.Encryptor=class extends eT{processBlock(t,e){let r=t;let n=this._cipher;let{blockSize:i}=n;let s=this._iv;let o=this._counter;s&&(this._counter=s.slice(0),o=this._counter,this._iv=void 0),ek(o);let c=o.slice(0);n.encryptBlock(c,0);for(let t=0;t<i;t+=1)r[e+t]^=c[t]}},eT.Decryptor=eT.Encryptor;class eB extends O{}eB.Encryptor=class extends eB{processBlock(t,e){this._cipher.encryptBlock(t,e)}},eB.Decryptor=class extends eB{processBlock(t,e){this._cipher.decryptBlock(t,e)}};class eC extends O{}eC.Encryptor=class extends eC{processBlock(t,e){let r=t;let n=this._cipher;let{blockSize:i}=n;let s=this._iv;let o=this._keystream;s&&(this._keystream=s.slice(0),o=this._keystream,this._iv=void 0),n.encryptBlock(o,0);for(let t=0;t<i;t+=1)r[e+t]^=o[t]}},eC.Decryptor=eC.Encryptor;let eO={pad(t,e){let r=t;let n=r.sigBytes;let i=4*e;let s=i-n%i;let o=n+s-1;r.clamp(),r.words[o>>>2]|=s<<24-o%4*8,r.sigBytes+=s},unpad(t){let e=t;let r=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=r}};let eA={pad(t,e){let r=4*e;let n=r-t.sigBytes%r;t.concat(s.random(n-1)).concat(s.create([n<<24],1))},unpad(t){let e=t;let r=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=r}};let eH={pad(t,e){let r=t;let n=4*e;r.clamp(),r.sigBytes+=n-(t.sigBytes%n||n)},unpad(t){let e=t;let r=e.words;for(let t=e.sigBytes-1;t>=0;t-=1)if(r[t>>>2]>>>24-t%4*8&255){e.sigBytes=t+1;break}}};let eI={pad(t,e){t.concat(s.create([0x80000000],1)),eH.pad(t,e)},unpad(t){let e=t;eH.unpad(e),e.sigBytes-=1}};let eD={pad(){},unpad(){}};let eP={stringify(t){return t.ciphertext.toString(o)},parse(t){let e=o.parse(t);return P.create({ciphertext:e})}};let eR={lib:{Base:i,WordArray:s,BufferedBlockAlgorithm:a,Hasher:u,Cipher:B,StreamCipher:C,BlockCipherMode:O,BlockCipher:D,CipherParams:P,SerializableCipher:z,PasswordBasedCipher:j},x64:{Word:d,WordArray:p},enc:{Hex:o,Latin1:c,Utf8:l,Utf16:N,Utf16BE:F,Utf16LE:U,Base64:b}
1,algo:{HMAC:h,MD5:m,SHA1:$,SHA224:tn,SHA256:tt,SHA384:th,SHA512:tl,SHA3:tg,RIPEMD160:tz,PBKDF2:tL,EvpKDF:k,AES:t1,DES:et,TripleDES:er,Rabbit:el,RabbitLegacy:ep,RC4:ey,RC4Drop:ew},mode:{CBC:H,CFB:em,CTR:eS,CTRGladman:eT,ECB:eB,OFB:eC},pad:{Pkcs7:I,AnsiX923:eO,Iso10126:eA,Iso97971:eI,NoPadding:eD,ZeroPadding:eH},format:{OpenSSL:R,Hex:eP},kdf:{OpenSSL:M},MD5:S,HmacMD5:E,SHA1:W,HmacSHA1:q,SHA224:ti,HmacSHA224:ts,SHA256:te,HmacSHA256:tr,SHA384:tf,HmacSHA384:td,SHA512:ta,HmacSHA512:tu,SHA3:tm,HmacSHA3:tS,RIPEMD160:tM,HmacRIPEMD160:tj,PBKDF2:tF,EvpKDF:T,AES:t2,DES:ee,TripleDES:en,Rabbit:ea,RabbitLegacy:ex,RC4:e_,RC4Drop:ev};let ez=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((t,e)=>((e&=63)<36?t+=e.toString(36):e<62?t+=(e-26).toString(36).toUpperCase():e>62?t+="-":t+="_",t),"");var eM=function(t,e){return(eM=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function ej(t,e){function r(){this.constructor=t}eM(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function eL(t){return"function"==typeof t}var eF=!1;var eN={Promise:void 0,set useDeprecatedSynchronousErrorHandling(value){if(value){var eU=Error();eU.stack}eF=value},get useDeprecatedSynchronousErrorHandling(){return eF}};function eK(t){setTimeout(function(){throw t},0)}var e$={closed:!0,next:function(t){},error:function(t){if(eN.useDeprecatedSynchronousErrorHandling)throw t;eK(t)},complete:function(){}};var eW=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}();function eq(t){return null!==t&&"object"==typeof t}var eV=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}();var eX=eV;var eY=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var e;if(!this.closed){var r=this,n=r._parentOrParents,i=r._ctorUnsubscribe,s=r._unsubscribe,o=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var c=0;c<n.length;++c){var l=n[c];l.remove(this)}if(eL(s)){i&&(this._unsubscribe=void 0);try{s.call(this)}catch(t){e=t instanceof eX?eG(t.errors):[t]}}if(eW(o)){var c=-1;var a=o.length;for(;++c<a;){var u=o[c];if(eq(u))try{u.unsubscribe()}catch(t){e=e||[],t instanceof eX?e=e.concat(eG(t.errors)):e.push(t)}}}if(e)throw new eX(e)}},t.prototype.add=function(e){var r=e;if(!e)return t.EMPTY;switch(typeof e){case"function":r=new t(e);case"object":if(r===this||r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if(!(r instanceof t)){var n=r;(r=new t)._subscriptions=[n]}break;default:throw Error("unrecognized teardown "+e+" added to Subscription.")}var i=r._parentOrParents;if(null===i)r._parentOrParents=this;else if(i instanceof t){if(i===this)return r;r._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return r;i.push(this)}var s=this._subscriptions;return null===s?this._subscriptions=[r]:s.push(r),r},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function eG(t){return t.reduce(function(t,e){return t.concat(e instanceof eX?e.errors:e)},[])}var eQ=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}();var eJ=function(t){function e(r,n,i){var s=t.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=e$;break;case 1:if(!r){s.destination=e$;break}if("object"==typeof r){r instanceof e?(s.syncErrorThrowable=r.syncErrorThrowable,s.destination=r,r.add(s)):(s.syncErrorThrowable=!0,s.destination=new eZ(s,r));break}default:s.syncErrorThrowable=!0,s.destination=new eZ(s,r,n,i)}return s}return ej(e,t),e.prototype[eQ]=function(){return this},e.create=function(t,r,n){var i=new e(t,r,n);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(eY);var eZ=function(t){function e(e,r,n,i){var s=t.call(this)||this;var o;s._parentSubscriber=e;var c=s;return eL(r)?o=r:r&&(o=r.next,n=r.error,i=r.complete,r!==e$&&(eL((c=Object.create(r)).unsubscribe)&&s.add(c.unsubscribe.bind(c)),c.unsubscribe=s.unsubscribe.bind(s))),s._context=c,s._next=o,s._error=n,s._complete=i,s}return ej(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;eN.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;var r=eN.useDeprecatedSynchronousErrorHandling;if(this._error)r&&e.syncErrorThrowable?this.__tryOrSetError(e,this._error,t):this.__tryOrUnsub(this._error,t),this.unsubscribe();else if(e.syncErrorThrowable)r?(e.syncErrorValue=t,e.syncErrorThrown=!0):eK(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;eK(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};eN.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,r):this.__tryOrUnsub(r),this.unsubscribe()}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),eN.useDeprecatedSynchronousErrorHandling)throw t;eK(t)}},e.prototype.__tryOrSetError=function(t,e,r){if(!eN.useDeprecatedSynchronousErrorHandling)throw Error("bad call");try{e.call(this._context,r)}catch(e){if(eN.useDeprecatedSynchronousErrorHandling)return t.syncErrorValue=e,t.syncErrorThrown=!0,!0;return eK(e),!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(eJ);function e0(t){for(;t;){var e=t,r=e.closed,n=e.destination,i=e.isStopped;
1if(r||i)return!1;t=n&&n instanceof eJ?n:null}return!0}function e1(t,e,r){if(t){if(t instanceof eJ)return t;if(t[eQ])return t[eQ]()}return t||e||r?new eJ(t,e,r):new eJ(e$)}var e2=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function e4(t){return t}function e8(t){return 0===t.length?e4:1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}}var e6=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator;var i=e1(t,e,r);if(n?i.add(n.call(i,this.source)):i.add(this.source||eN.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),eN.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){eN.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),e0(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=e5(e))(function(e,n){var i;i=r.subscribe(function(e){try{t(e)}catch(t){n(t),i&&i.unsubscribe()}},n,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[e2]=function(){return this},t.prototype.pipe=function(){var t=[];for(var e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:e8(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=e5(t))(function(t,r){var n;e.subscribe(function(t){return n=t},function(t){return r(t)},function(){return t(n)})})},t.create=function(e){return new t(e)},t}();function e5(t){if(t||(t=eN.Promise||Promise),!t)throw Error("no Promise impl found");return t}var e3=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}();var e7=e3;var e9=function(t){function e(e,r){var n=t.call(this)||this;return n.subject=e,n.subscriber=r,n.closed=!1,n}return ej(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject;var e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}},e}(eY);var rt=function(t){function e(e){var r=t.call(this,e)||this;return r.destination=e,r}return ej(e,t),e}(eJ);var re=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return ej(e,t),e.prototype[eQ]=function(){return new rt(this)},e.prototype.lift=function(t){var e=new rr(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new e7;if(!this.isStopped){var e=this.observers;var r=e.length;var n=e.slice();for(var i=0;i<r;i++)n[i].next(t)}},e.prototype.error=function(t){if(this.closed)throw new e7;this.hasError=!0,this.thrownError=t,this.isStopped=!0;var e=this.observers;var r=e.length;var n=e.slice();for(var i=0;i<r;i++)n[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new e7;this.isStopped=!0;var t=this.observers;var e=t.length;var r=t.slice();for(var n=0;n<e;n++)r[n].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(!this.closed)return t.prototype._trySubscribe.call(this,e);throw new e7},e.prototype._subscribe=function(t){if(this.closed)throw new e7;return this.hasError?(t.error(this.thrownError),eY.EMPTY):this.isStopped?(t.complete(),eY.EMPTY):(this.observers.push(t),new e9(this,t))},e.prototype.asObservable=function(){var t=new e6;return t.source=this,t},e.create=function(t,e){return new rr(t,e)},e}(e6);var rr=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return ej(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){var e=this.source;return e?this.source.subscribe(t):eY.EMPTY},e}(re);function rn(t,e){return function(r){if("function"!=typeof t)throw TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new ri(t,e))}}var ri=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new rs(t,this.project,this.thisArg))},t}();var rs=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.project=r,i.count=0,i.thisArg=n||i,i}return ej(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){this.destination.error(t);return}this.destination.next(e)},e}(eJ);function ro(t,e,r,n){return(eL(r)&&(n=r,r=void 0),n)?ro(t,e,r).pipe(rn(function(t){return eW(t)?n.apply(void 0,t):n(t)})):new e6(function(n){rc(t,e,function(t){arguments.length>1?n.next(Array.prototype.slice.call(arguments)):n.next(t)},n,r)})}function rc(t,e,r,n,i){var s;if(ru(t)){var o=t;t.addEventListener(e,r,i),s=function(){return o.removeEventListener(e,r,i)}}else if(ra(t)){var c=t;t.on(e,r),s=function(){return c.off(e,r)}}else if(rl(t)){var l=t;t.addListener(e,r),s=function(){return l.removeListener(e,r)}}else if(t&&t.length)for(var a=0,u=t.length;a<u;
1a++)rc(t[a],e,r,n,i);else throw TypeError("Invalid event target");n.add(s)}function rl(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}function ra(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}function ru(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}var rh=function(t){function e(e,r){return t.call(this)||this}return ej(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(eY);var rf=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n.pending=!1,n}return ej(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var r=this.id;var n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){if(void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var r=!1;var n=void 0;try{this.work(t)}catch(t){r=!0,n=!!t&&t||Error(t)}if(r)return this.unsubscribe(),n},e.prototype._unsubscribe=function(){var t=this.id;var e=this.scheduler;var r=e.actions;var n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(rh);var rd=function(){function t(e,r){void 0===r&&(r=t.now),this.SchedulerAction=e,this.now=r}return t.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(r,e)},t.now=function(){return Date.now()},t}();var rp=function(t){function e(r,n){void 0===n&&(n=rd.now);var i=t.call(this,r,function(){return e.delegate&&e.delegate!==i?e.delegate.now():n()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return ej(e,t),e.prototype.schedule=function(r,n,i){return(void 0===n&&(n=0),e.delegate&&e.delegate!==this)?e.delegate.schedule(r,n,i):t.prototype.schedule.call(this,r,n,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)return void e.push(t);var r;this.active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=e.shift());if(this.active=!1,r){for(;t=e.shift();)t.unsubscribe();throw r}},e}(rd);var rx=new rp(rf);var rb=rx;function ry(t){return!eW(t)&&t-parseFloat(t)+1>=0}function r_(t){return t&&"function"==typeof t.schedule}function rw(t,e,r){void 0===t&&(t=0);var n=-1;return ry(e)?n=1>Number(e)&&1||Number(e):r_(e)&&(r=e),r_(r)||(r=rb),new e6(function(e){var i=ry(t)?t:t-r.now();return r.schedule(rv,i,{index:0,period:n,subscriber:e})})}function rv(t){var e=t.index,r=t.period,n=t.subscriber;if(n.next(e),!n.closed){if(-1===r)return n.complete();t.index=e+1,this.schedule(t,r)}}var rg=function(t){return function(e){for(var r=0,n=t.length;r<n&&!e.closed;r++)e.next(t[r]);e.complete()}};var rm=function(t){return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,eK),e}};function rS(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var rE=rS();var rk=function(t){return function(e){var r=t[rE]();for(;;){var n=void 0;try{n=r.next()}catch(t){return e.error(t),e}if(n.done){e.complete();break}if(e.next(n.value),e.closed)break}return"function"==typeof r.return&&e.add(function(){r.return&&r.return()}),e}};var rT=function(t){return function(e){var r=t[e2]();if("function"==typeof r.subscribe)return r.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")}};var rB=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function rC(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var rO=function(t){if(t&&"function"==typeof t[e2])return rT(t);if(rB(t))return rg(t);if(rC(t))return rm(t);if(t&&"function"==typeof t[rE])return rk(t);
1var e=eq(t)?"an invalid object":"'"+t+"'";var r="You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw TypeError(r)};function rA(t,e){return new e6(function(r){var n=new eY;return n.add(e.schedule(function(){var i=t[e2]();n.add(i.subscribe({next:function(t){n.add(e.schedule(function(){return r.next(t)}))},error:function(t){n.add(e.schedule(function(){return r.error(t)}))},complete:function(){n.add(e.schedule(function(){return r.complete()}))}}))})),n})}function rH(t,e){return new e6(function(r){var n=new eY;return n.add(e.schedule(function(){return t.then(function(t){n.add(e.schedule(function(){r.next(t),n.add(e.schedule(function(){return r.complete()}))}))},function(t){n.add(e.schedule(function(){return r.error(t)}))})})),n})}function rI(t,e){return new e6(function(r){var n=new eY;var i=0;return n.add(e.schedule(function(){i===t.length?r.complete():(r.next(t[i++]),r.closed||n.add(this.schedule()))})),n})}function rD(t,e){if(!t)throw Error("Iterable cannot be null");return new e6(function(r){var n=new eY;var i;return n.add(function(){i&&"function"==typeof i.return&&i.return()}),n.add(e.schedule(function(){i=t[rE](),n.add(e.schedule(function(){if(!r.closed){var t;var e;try{var n=i.next();t=n.value,e=n.done}catch(t){r.error(t);return}e?r.complete():(r.next(t),this.schedule())}}))})),n})}function rP(t){return t&&"function"==typeof t[e2]}function rR(t){return t&&"function"==typeof t[rE]}function rz(t,e){if(null!=t){if(rP(t))return rA(t,e);else if(rC(t))return rH(t,e);else if(rB(t))return rI(t,e);else if(rR(t)||"string"==typeof t)return rD(t,e)}throw TypeError((null!==t&&typeof t||t)+" is not observable")}function rM(t,e){return e?rz(t,e):t instanceof e6?t:new e6(rO(t))}var rj=function(t){function e(e){var r=t.call(this)||this;return r.parent=e,r}return ej(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(eJ);var rL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ej(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(eJ);function rF(t,e){if(!e.closed){if(t instanceof e6)return t.subscribe(e);var r;try{r=rO(t)(e)}catch(t){e.error(t)}return r}}function rN(t,e,r){return(void 0===r&&(r=1/0),"function"==typeof e)?function(n){return n.pipe(rN(function(r,n){return rM(t(r,n)).pipe(rn(function(t,i){return e(r,t,n,i)}))},r))}:("number"==typeof e&&(r=e),function(e){return e.lift(new rU(t,r))})}var rU=function(){function t(t,e){void 0===e&&(e=1/0),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new rK(t,this.project,this.concurrent))},t}();var rK=function(t){function e(e,r,n){void 0===n&&(n=1/0);var i=t.call(this,e)||this;return i.project=r,i.concurrent=n,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return ej(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e;var r=this.index++;try{e=this.project(t,r)}catch(t){this.destination.error(t);return}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new rj(this);var r=this.destination;r.add(e);var n=rF(t,e);n!==e&&r.add(n)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(rL);function r$(t){return void 0===t&&(t=1/0),rN(e4,t)}function rW(t,e){return e?rI(t,e):new e6(rg(t))}function rq(){var t=[];for(var e=0;e<arguments.length;e++)t[e]=arguments[e];var r=1/0;var n=null;var i=t[t.length-1];return(r_(i)?(n=t.pop(),t.length>
11&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof i&&(r=t.pop()),null===n&&1===t.length&&t[0]instanceof e6)?t[0]:r$(r)(rW(t,n))}let rV={ethereum:{1:"main",0xaa36a7:"sepolia",100:"xdai",137:"matic-main",80002:"matic-amoy"}};let rX=[2,3,4,42,56,250];let rY={points:150,duration:1};let rG=1e4;function rQ(t){let{name:e,value:r,type:n,optional:i,customValidation:s}=t;if(!i&&void 0===r)throw Error(`"${e}" is required`);if(void 0!==r&&("array"===n?Array.isArray(n):typeof r!==n))throw Error(`"${e}" must be of type: ${n}, received type: ${typeof r} from value: ${r}`);if(void 0!==r&&s&&!s(r))throw Error(`"${r}" is not a valid "${e}"`)}function rJ(t){rQ({name:"sdk options",value:t,type:"object"});let{dappId:e,system:r,name:n,appVersion:i,networkId:s,transactionHandlers:o,apiUrl:c,ws:l,onopen:a,ondown:u,onreopen:h,onerror:f,onclose:d,...p}=t;r0(p,["dappId","system","name","appVersion","networkId","transactionHandlers","apiUrl","ws","onopen","ondown","onreopen","onerror","onclose"],"Initialization Options"),rQ({name:"dappId",value:e,type:"string",optional:!0}),rQ({name:"system",value:r,type:"string",optional:!0,customValidation:rZ}),rQ({name:"name",value:n,type:"string",optional:!0}),rQ({name:"appVersion",value:i,type:"string",optional:!0}),rQ({name:"networkId",value:s,type:"number"}),rX.includes(s)&&console.error(`Blocknative SDK: Network with ID: ${s} has been deprecated and you will no longer receive transaction events on this network.`),rQ({name:"transactionHandler",value:o,type:"array",optional:!0}),o&&o.forEach(t=>rQ({name:"transactionHandler",value:t,type:"function"})),rQ({name:"apiUrl",value:c,type:"string",optional:!0}),rQ({name:"ws",value:l,type:"function",optional:!0}),rQ({name:"onopen",value:a,type:"function",optional:!0}),rQ({name:"ondown",value:u,type:"function",optional:!0}),rQ({name:"onreopen",value:h,type:"function",optional:!0}),rQ({name:"onerror",value:f,type:"function",optional:!0}),rQ({name:"onclose",value:d,type:"function",optional:!0})}function rZ(t){return!!rV[t]}function r0(t,e,r){let n=Object.keys(t);if(n.length>0)throw Error(`${n[0]} is not a valid parameter for ${r}, must be one of the following valid parameters: ${e.join(", ")}`)}function r1(){return{listeners:{},on:function(t,e){switch(t){case"txSent":case"txPool":case"txConfirmed":case"txSpeedUp":case"txCancel":case"txFailed":case"txDropped":case"txRequest":case"nsfFail":case"txRepeat":case"txAwaitingApproval":case"txConfirmReminder":case"txSendFail":case"txError":case"txUnderPriced":case"txPoolSimulation":case"all":break;default:throw Error(`${t} is not a valid event code, for a list of valid event codes see: https://docs.blocknative.com/notify-sdk#event-codes`)}if("function"!=typeof e)throw Error("Listener must be a function");this.listeners[t]=e},off:function(t){delete this.listeners[t]},emit:function(t){return this.listeners[t.eventCode]?this.listeners[t.eventCode](t):this.listeners.all?this.listeners.all(t):void 0}}}function r2(t,e){return rV[t][e]}function r4(t){switch(t){case"txRequest":case"nsfFail":case"txRepeat":case"txAwaitingApproval":case"txConfirmReminder":case"txSendFail":case"txError":case"txUnderPriced":case"txSent":return!0;default:return!1}}function r8(t){return t.reverse()[0]}function r6(t,e){switch(t){case"ethereum":return 42===e.length;case"bitcoin":return 64!==e.length;default:return!1}}function r5(t,e){switch(t){case"ethereum":return 66===e.length;case"bitcoin":return 64===e.length;default:return!1}}function r3(t){return new Promise(e=>{setTimeout(e,t)})}let r7=(t,e)=>void 0===e?"undefined":e;function r9(){let t="u">typeof window&&"localStorage"in window;if(t){let t="__testLocalStorage";try{return window.localStorage.setItem(t,"1"),window.localStorage.removeItem(t),!0}catch(t){}}return!1}function nt(t,e){if(this._destroyed)throw Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");let r=Date.now();let n=r1();let i="txSent";this.watchedTransactions.push({hash:t,emitter:n});let s="ethereum"===this._system?{hash:t}:{txid:t};let o={...s,id:e||t,startTime:r,status:"sent"};let c={...o,eventCode:i}
1;this._sendMessage({eventCode:i,categoryCode:"activeTransaction",transaction:o});let l={details:c,emitter:n};return setTimeout((function(){let t=n.emit(c);this._transactionHandlers.forEach(e=>e({transaction:c,emitterResult:t}))}).bind(this),5),l}function ne(t){if(this._destroyed)throw Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");t="ethereum"===this._system?t.toLowerCase():t;let e=r1();let r="watch";let n=this.watchedAccounts.find(e=>e.address===t);return n?n.emitters.push(e):this.watchedAccounts.push({address:t,emitters:[e]}),this._sendMessage({eventCode:r,categoryCode:"accountAddress",account:{address:t}}),{emitter:e,details:{address:t}}}function nr(t){if(this._destroyed)throw Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");this._sendMessage(t)}var nn=function(t,e){return(nn=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function ni(t,e){function r(){this.constructor=t}nn(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function ns(t){return"function"==typeof t}var no=!1;var nc={Promise:void 0,set useDeprecatedSynchronousErrorHandling(value){if(value){var nl=Error();nl.stack}no=value},get useDeprecatedSynchronousErrorHandling(){return no}};function na(t){setTimeout(function(){throw t},0)}var nu={closed:!0,next:function(t){},error:function(t){if(nc.useDeprecatedSynchronousErrorHandling)throw t;na(t)},complete:function(){}};var nh=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}();function nf(t){return null!==t&&"object"==typeof t}var nd=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}();var np=nd;var nx=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var e;if(!this.closed){var r=this,n=r._parentOrParents,i=r._ctorUnsubscribe,s=r._unsubscribe,o=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var c=0;c<n.length;++c){var l=n[c];l.remove(this)}if(ns(s)){i&&(this._unsubscribe=void 0);try{s.call(this)}catch(t){e=t instanceof np?nb(t.errors):[t]}}if(nh(o)){var c=-1;var a=o.length;for(;++c<a;){var u=o[c];if(nf(u))try{u.unsubscribe()}catch(t){e=e||[],t instanceof np?e=e.concat(nb(t.errors)):e.push(t)}}}if(e)throw new np(e)}},t.prototype.add=function(e){var r=e;if(!e)return t.EMPTY;switch(typeof e){case"function":r=new t(e);case"object":if(r===this||r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if(!(r instanceof t)){var n=r;(r=new t)._subscriptions=[n]}break;default:throw Error("unrecognized teardown "+e+" added to Subscription.")}var i=r._parentOrParents;if(null===i)r._parentOrParents=this;else if(i instanceof t){if(i===this)return r;r._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return r;i.push(this)}var s=this._subscriptions;return null===s?this._subscriptions=[r]:s.push(r),r},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();function nb(t){return t.reduce(function(t,e){return t.concat(e instanceof np?e.errors:e)},[])}var ny=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}();var n_=function(t){function e(r,n,i){var s=t.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=nu;break;case 1:if(!r){s.destination=nu;break}if("object"==typeof r){r instanceof e?(s.syncErrorThrowable=r.syncErrorThrowable,s.destination=r,r.add(s)):(s.syncErrorThrowable=!0,s.destination=new nw(s,r));break}default:s.syncErrorThrowable=!0,s.destination=new nw(s,r,n,i)}return s}return ni(e,t),e.prototype[ny]=function(){return this},e.create=function(t,r,n){var i=new e(t,r,n);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(nx);var nw=function(t){function e(e,r,n,i){var s=t.call(this)||this;var o;s._parentSubscriber=e;var c=s;return ns(r)?o=r:r&&(o=r.next,n=r.error,i=r.complete,r!==nu&&(ns((c=Object.create(r)).unsubscribe)&&s.add(c.unsubscribe.bind(c)),c.unsubscribe=s.unsubscribe.bind(s))),s._context=c,s._next=o,s._error=n,s._complete=i,s}return ni(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;nc.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;var r=nc.useDeprecatedSynchronousErrorHandling;if(this._error)r&&e.syncErrorThrowable?this.__tryOrSetError(e,this._error,t):this.__tryOrUnsub(this._error,t),this.unsubscribe();else if(e.syncErrorThrowable)r?(e.syncErrorValue=t,e.syncErrorThrown=!0):na(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;na(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};nc.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,r):this.__tryOrUnsub(r),this.unsubscribe()}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),nc.useDeprecatedSynchronousErrorHandling)throw t;na(t)}},e.prototype.__tryOrSetError=function(t,e,r){if(!nc.useDeprecatedSynchronousErrorHandling)throw Error("bad call");try{e.call(this._context,r)}catch(e){if(nc.useDeprecatedSynchronousErrorHandling)return t.syncErrorValue=e,t.syncErrorThrown=!0,!0;return na(e),!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(n_);function nv(t){for(;t;){var e=t,r=e.closed,n=e.destination,i=e.isStopped;
1if(r||i)return!1;t=n&&n instanceof n_?n:null}return!0}function ng(t,e,r){if(t){if(t instanceof n_)return t;if(t[ny])return t[ny]()}return t||e||r?new n_(t,e,r):new n_(nu)}var nm=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function nS(t){return t}function nE(t){return 0===t.length?nS:1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}}var nk=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator;var i=ng(t,e,r);if(n?i.add(n.call(i,this.source)):i.add(this.source||nc.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),nc.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){nc.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),nv(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=nT(e))(function(e,n){var i;i=r.subscribe(function(e){try{t(e)}catch(t){n(t),i&&i.unsubscribe()}},n,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[nm]=function(){return this},t.prototype.pipe=function(){var t=[];for(var e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:nE(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=nT(t))(function(t,r){var n;e.subscribe(function(t){return n=t},function(t){return r(t)},function(){return t(n)})})},t.create=function(e){return new t(e)},t}();function nT(t){if(t||(t=Promise),!t)throw Error("no Promise impl found");return t}var nB=function(t){return function(e){for(var r=0,n=t.length;r<n&&!e.closed;r++)e.next(t[r]);e.complete()}};var nC=function(t){return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,na),e}};function nO(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var nA=nO();var nH=function(t){return function(e){var r=t[nA]();for(;;){var n=void 0;try{n=r.next()}catch(t){return e.error(t),e}if(n.done){e.complete();break}if(e.next(n.value),e.closed)break}return"function"==typeof r.return&&e.add(function(){r.return&&r.return()}),e}};var nI=function(t){return function(e){var r=t[nm]();if("function"==typeof r.subscribe)return r.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")}};var nD=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function nP(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var nR=function(t){if(t&&"function"==typeof t[nm])return nI(t);if(nD(t))return nB(t);if(nP(t))return nC(t);if(t&&"function"==typeof t[nA])return nH(t);var e=nf(t)?"an invalid object":"'"+t+"'";var r="You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw TypeError(r)};var nz=function(t){function e(e){var r=t.call(this)||this;return r.parent=e,r}return ni(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(n_);var nM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ni(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(n_);function nj(t,e){if(!e.closed)return t instanceof nk?t.subscribe(e):nR(t)(e)}var nL=function(t){function e(e,r){return t.call(this)||this}return ni(e,t),e.prototype.schedule=function(t,e){return this},e}(nx);var nF=function(t){function e(e,r){var n=t.call(this,e,r)||this;
1return n.scheduler=e,n.work=r,n.pending=!1,n}return ni(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var r=this.id;var n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){if(void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var r=!1;var n=void 0;try{this.work(t)}catch(t){r=!0,n=!!t&&t||Error(t)}if(r)return this.unsubscribe(),n},e.prototype._unsubscribe=function(){var t=this.id;var e=this.scheduler;var r=e.actions;var n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(nL);var nN=function(){function t(e,r){void 0===r&&(r=t.now),this.SchedulerAction=e,this.now=r}return t.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(r,e)},t.now=function(){return Date.now()},t}();var nU=function(t){function e(r,n){void 0===n&&(n=nN.now);var i=t.call(this,r,function(){return e.delegate&&e.delegate!==i?e.delegate.now():n()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return ni(e,t),e.prototype.schedule=function(r,n,i){return(void 0===n&&(n=0),e.delegate&&e.delegate!==this)?e.delegate.schedule(r,n,i):t.prototype.schedule.call(this,r,n,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)return void e.push(t);var r;this.active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=e.shift());if(this.active=!1,r){for(;t=e.shift();)t.unsubscribe();throw r}},e}(nN);var nK=new nU(nF);var n$=nK;function nW(t){return t instanceof Date&&!isNaN(+t)}var nq=new nk(function(t){return t.complete()});function nV(t){return t?nX(t):nq}function nX(t){return new nk(function(e){return t.schedule(function(){return e.complete()})})}function nY(t,e){return new nk(e?function(r){return e.schedule(nG,0,{error:t,subscriber:r})}:function(e){return e.error(t)})}function nG(t){var e=t.error,r=t.subscriber;r.error(e)}var nQ=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}();var nJ=nQ;function nZ(t,e){return function(r){return r.lift(new n0(t,e))}}var n0=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new n1(t,this.predicate,this.thisArg))},t}();var n1=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.predicate=r,i.thisArg=n,i.count=0,i}return ni(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){this.destination.error(t);return}e&&this.destination.next(t)},e}(n_);function n2(t){return function(e){return 0===t?nV():e.lift(new n4(t))}}var n4=function(){function t(t){if(this.total=t,this.total<0)throw new nJ}return t.prototype.call=function(t,e){return e.subscribe(new n8(t,this.total))},t}();var n8=function(t){function e(e,r){var n=t.call(this,e)||this;return n.total=r,n.count=0,n}return ni(e,t),e.prototype._next=function(t){var e=this.total;var r=++this.count;r<=e&&(this.destination.next(t),r===e&&(this.destination.complete(),this.unsubscribe()))},e}(n_);function n6(t){return function(e){return e.lift(new n5(t))}}var n5=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new n3(t,this.callback))},t}();var n3=function(t){function e(e,r){var n=t.call(this,e)||this;return n.add(new nx(r)),n}return ni(e,t),e}(n_);function n7(t,e){return void 0===e&&(e=!1),function(r){return r.lift(new n9(t,e))}}var n9=function(){function t(t,e){this.predicate=t,this.inclusive=e}return t.prototype.call=function(t,e){return e.subscribe(new it(t,this.predicate,this.inclusive))},t}();var it=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.predicate=r,i.inclusive=n,i.index=0,i}return ni(e,t),e.prototype._next=function(t){var e=this.destination;var r;try{r=this.predicate(t,this.index++)}catch(t){e.error(t);return}this.nextOrComplete(t,r)},e.prototype.nextOrComplete=function(t,e){var r=this.destination;e?r.next(t):(this.inclusive&&r.next(t),r.complete())},e}(n_);var ie=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}();var ir=ie;function ii(t,e,r){return void 0===r&&(r=n$),function(n){var i=nW(t);var s=i?t-r.now():Math.abs(t);return n.lift(new is(s,i,e,r))}}var is=function(){function t(t,e,r,n){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=r,this.scheduler
1=n}return t.prototype.call=function(t,e){return e.subscribe(new io(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}();var io=function(t){function e(e,r,n,i,s){var o=t.call(this,e)||this;return o.absoluteTimeout=r,o.waitFor=n,o.withObservable=i,o.scheduler=s,o.scheduleTimeout(),o}return ni(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(nj(e,new nz(t)))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},e}(nM);function ic(t,e){return void 0===e&&(e=n$),ii(t,nY(new ir),e)}let il=new re;function ia(t,e,r){if(this._destroyed)throw Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");let n=ez();return this._sendMessage({categoryCode:"simulate",eventCode:"txSimulation",eventId:n,transaction:r}),new Promise((t,e)=>{il.pipe(nZ(({eventId:t})=>t===n),n2(1)).subscribe({next:({transaction:e})=>t(e),error:({error:t})=>e(t.message)})})}function iu(t){if(this._destroyed)throw Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");let e=ez();return this._sendMessage({categoryCode:"simulate",eventCode:"txSimulation",eventId:e,transaction:t}),new Promise((t,r)=>{il.pipe(nZ(({eventId:t})=>t===e),n2(1)).subscribe({next:({transaction:e})=>t(e),error:({error:t})=>r(t.message)})})}function ih(t){if(this._destroyed)throw Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");let e=r6(this._system,t);let r=r5(this._system,t);if(e){let e="ethereum"===this._system?t.toLowerCase():t;this.watchedAccounts=this.watchedAccounts.filter(t=>t.address!==e),this.configurations.delete(e),this._sendMessage({categoryCode:"accountAddress",eventCode:"unwatch",account:{address:e}})}else if(r){this.watchedTransactions=this.watchedTransactions.filter(e=>e.hash!==t);let e="ethereum"===this._system?{hash:t}:{txid:t};let r={...e,id:t,status:"unsubscribed"};this._sendMessage({categoryCode:"activeTransaction",eventCode:"unwatch",transaction:r})}else throw Error(`Error trying to unsubscribe ${t}: not a valid address or transaction id/hash`)}function id(t){if(this._destroyed)throw Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");let e="ethereum"===this._system?t.scope.toLowerCase():t.scope;let r=this.configurations.get(e);r&&r.subscription&&r.subscription.next();let n=new re;let i=t.watchAddress?{emitter:r1()}:{};return this.configurations.set(e,{...t,...i,subscription:n}),this._sendMessage({categoryCode:"configs",eventCode:"put",config:t}),new Promise((e,r)=>{n.pipe(n2(1),ic(5e3)).subscribe({next:()=>e({...i,details:{config:t}}),error:n=>{let i="Timeout has occurred"===n.message?`Configuration with scope: ${t.scope} has been sent to the Blocknative server, but has not received a reply within 5 seconds.`:n.message;this._onerror?(this._onerror({message:i}),e(`Error: ${i}`)):r(i)}})})}function ip(t){let{id:e,chainId:r,type:n}=t;if(!r2("ethereum",parseInt(r,16)))throw Error(`chainId: ${r} is an unsupported network`);this.connections[r]||(this.connections[r]=new this.Blocknative({system:"ethereum",networkId:parseInt(r,16),dappId:this.apiKey,ws:this.ws,apiUrl:this.apiUrl,transactionHandlers:[({transaction:t})=>{this.onTransaction$.next(t)}],onerror:t=>this.errors$.next(t)}));let i=this.connections[r];if("account"===n){let{filters:n=[],abi:s}=t;return i.configuration({scope:e,filters:n,...s?{abi:s}:{},watchAddress:!0}),this.transactions$.pipe(nZ(({watchedAddress:t})=>t===e),n6(()=>{this.unsubscribe({id:e,chainId:r})}))}{let{emitter:t}=i.transaction(e);return ro(t,"all").pipe(n7(({status:t})=>"confirmed"!==t&&"failed"!==t&&"dropped"!==t,!0),n6(()=>{this.unsubscribe({id:e,chainId:r})}))}}function ix(t){let{id:e,chainId:r,timeout:n=0}=t;let i=rw(n);let s=this.transactions$.pipe(nZ(({hash:t,watchedAddress:r})=>t===e||r===e));rq(s,i).pipe(n2(1)).subscribe(n=>{if("number"==typeof n){let t=Object.entries(this.connections).filter(([t,e])=>null!==e);t.forEach(([t,n])=>{(!r||t===r)&&(n.unsubscribe(e),n.watchedAccounts.length||n.watchedTransactions.length||n.c
1onfigurations.size||(n.destroy(),this.connections[t]=null))})}else this.unsubscribe(t)})}class ib{constructor(t,e){const{ws:r}=t;const{apiKey:n}=t;const{apiUrl:i}=t;this.apiKey=n,this.apiUrl=i,this.ws=r,this.connections={},this.onTransaction$=new re,this.transactions$=this.onTransaction$.asObservable(),this.errors$=new re,this.Blocknative=e,this.subscribe=ip.bind(this),this.unsubscribe=ix.bind(this)}}var iy="4.6.9";function i_(t){if(this._queuedMessages.length>rG)throw Error(`Queue limit of ${rG} messages has been reached.`);this._queuedMessages.push(ig.bind(this)(t)),this._processingQueue||this._processQueue()}async function iw(){for(this._processingQueue=!0,this._connected||await im.bind(this)();this._queuedMessages.length>0;){await r3(1),null!==this._waitToRetry&&(await this._waitToRetry,this._waitToRetry=null);let t=this._queuedMessages.shift();let e=this._limitRules.duration/this._limitRules.points*1e3;await r3(e),this._socket.send(t)}this._processingQueue=!1,this._limitRules=rY}function iv(t){let{status:e,reason:r,event:n,connectionId:i,serverVersion:s,retryMs:o,limitRules:c,blockedMsg:l,dispatchTimestamp:a}=JSON.parse(t.data);if(i&&(r9()&&window.localStorage.setItem(this._storageKey,i),this._connectionId=i),"error"===e){if(r.includes("ratelimit")&&!r.match(/IP (PendingSimulation|Notification) ratelimit reached/)){this._waitToRetry=r3(o),this._limitRules=c,l&&this._queuedMessages.unshift(l);return}if(r.includes("upgrade your plan")||r.includes("not a valid API key")||r.includes("network not supported")||r.includes("maximum allowed amount"))if(this._onerror)return void this._onerror({message:r});else throw Error(r);if(r.includes("invalid txid")){let t=`${n.transaction.txid} is an invalid txid`;if(this._onerror)return void this._onerror({message:t,transaction:n.transaction.txid});throw Error(t)}if(r.includes("invalid hash")){let t=`${n.transaction.hash} is an invalid transaction hash`;if(this._onerror)return void this._onerror({message:t,transaction:n.transaction.hash});throw Error(t)}if(r.includes("invalid address")){let t=`${n.account.address} is an invalid address`;if(this._onerror)return void this._onerror({message:t,account:n.account.address});throw Error(t)}if(r.includes("not a valid Bitcoin")||r.includes("not a valid Ethereum"))if(this._onerror)return void this._onerror({message:r,account:n.account.address});else throw Error(r);if(n&&"simulate"===n.categoryCode)return void il.error({eventId:n.eventId,error:{message:r}});if(n&&n.config){let t=this.configurations.get(n.config.scope);t&&t.subscription&&t.subscription.error({message:r});return}if(this._onerror)return void this._onerror({message:r});throw Error(r)}if(n&&n.config){let t="ethereum"===this._system?n.config.scope.toLowerCase():n.config.scope;let e=this.configurations.get(t);e&&e.subscription&&e.subscription.next()}if(n&&n.transaction){let{eventId:t,transaction:e,eventCode:r,contractCall:i,timeStamp:o,blockchain:{system:c,network:l}}=n;let u="ethereum"===this._system?{...e,serverVersion:s,eventCode:r,timeStamp:o,dispatchTimestamp:a,system:c,network:l,contractCall:i}:{...e,serverVersion:s,eventCode:r,timeStamp:o,dispatchTimestamp:a,system:c,network:l};if(r4(r)||"unsubscribed"===e.status)return;if(u.originalHash&&(u.replaceHash=u.hash,u.hash=u.originalHash,delete u.originalHash),"txSpeedUp"===r&&"speedup"!==u.status&&(u.status="speedup"),"txCancel"===r&&"cancel"!==u.status&&(u.status="cancel"),("txSpeedUp"===r||"txCancel"===r)&&(this.watchedTransactions=this.watchedTransactions.map(t=>(t.hash===u.replaceHash&&(t.hash=e.hash||e.txid),t))),n&&"simulate"===n.categoryCode){u.contractCall=n.transaction.contractCall,delete u.dispatchTimestamp,il.next({eventId:t,transaction:u});return}let h=e.watchedAddress&&"ethereum"===this._system?e.watchedAddress.toLowerCase():e.watchedAddress;if(h){let t=this.watchedAccounts.find(t=>t.address===h);let e=!!t&&r8(t.emitters.map(t=>t.emit(u)));let r=this.configurations.get(h);let n=r&&r.emitter&&r.emitter.emit(u)||e;this._transactionHandlers.forEach(t=>t({transaction:u,emitterResult:n}))}else{let t=this.watchedTransactions.find(t=>t.hash===u.hash||u.txid);let e=t&&t.emitter.emit(u);
1this._transactionHandlers.forEach(t=>t({transaction:u,emitterResult:e})),("speedup"===u.status||"cancel"===u.status)&&(this.watchedTransactions=this.watchedTransactions.map(t=>t.hash===u.hash||u.txid?{...t,hash:u.replaceHash}:t))}}}function ig(t){return JSON.stringify({timeStamp:new Date().toISOString(),dappId:this._dappId,version:iy,appName:this._appName,appVersion:this._appVersion,blockchain:{system:this._system,network:r2(this._system,this._networkId)||"local"},...t},"configs"===t.categoryCode?r7:void 0)}function im(){return new Promise(t=>{let e=setInterval(()=>{this._connected&&(setTimeout(t,100),clearInterval(e))})})}let iS="unknown";let iE="unknown";let ik="ethereum";class iT{constructor(t){rJ(t);const{system:e=ik,name:r=iS,appVersion:i=iE,networkId:s,transactionHandlers:o=[],ws:c,onopen:l,ondown:a,onreopen:u,onerror:h,onclose:f}=t;const{apiUrl:d}=t;const{dappId:p}=t;const x={connectTimeout:1e4};const b=new n.A(d||"wss://api.blocknative.com/v0",c?{wsConstructor:c,...x}:{...x});b.onopen=iB.bind(this,l),b.ondown=iC.bind(this,a),b.onreopen=iO.bind(this,u),b.onmessage=iv.bind(this),b.onerror=t=>h&&h({message:"There was a WebSocket error",error:t}),b.onclose=()=>{this._pingTimeout&&clearInterval(this._pingTimeout),f&&f()};const y=eR.SHA1(`${p} - ${r}`).toString();const _=r9()&&window.localStorage.getItem(y);this._storageKey=y,this._connectionId=_||void 0,this._dappId=p,this._system=e,this._networkId=s,this._appName=r,this._appVersion=i,this._transactionHandlers=o,this._socket=b,this._connected=!1,this._sendMessage=i_.bind(this),this._pingTimeout=void 0,this._destroyed=!1,this._onerror=h,this._queuedMessages=[],this._limitRules=rY,this._waitToRetry=null,this._processingQueue=!1,this._processQueue=iw.bind(this),this._socket.ws.on&&(this._heartbeat=()=>{this._pingTimeout&&clearTimeout(this._pingTimeout),this._pingTimeout=setTimeout(()=>{this._socket.ws.terminate()},31e3)},this._socket.ws.on("ping",()=>{this._heartbeat&&this._heartbeat()})),this.watchedTransactions=[],this.watchedAccounts=[],this.configurations=new Map,this.transaction=nt.bind(this),this.account=ne.bind(this),this.event=nr.bind(this),this.simulate=ia.bind(this),this.multiSim=iu.bind(this),this.unsubscribe=ih.bind(this),this.configuration=id.bind(this),this.destroy=()=>{this._socket.close(),this._destroyed=!0,this._socket.onclose()}}static multichain(t){return new ib(t,this)}}function iB(t){this._connected=!0;let e={categoryCode:"initialize",eventCode:"checkDappId",connectionId:this._connectionId};this._socket.send(ig.bind(this)(e)),this._heartbeat&&this._heartbeat(),t&&t()}function iC(t,e){this._connected=!1,t&&t(e),this._pingTimeout&&clearTimeout(this._pingTimeout)}async function iO(t){this._connected=!0;let e={categoryCode:"initialize",eventCode:"checkDappId",connectionId:this._connectionId};this._socket.send(ig.bind(this)(e));let r=Array.from(this.configurations.values());let n=this.configurations.get("global");if(n)try{let{emitter:t,subscription:e,...r}=n;await this.configuration(r)}catch(t){console.warn("Error re-sending global configuration upon reconnection:",t)}let i=r.filter(({scope:t})=>"global"!==t);i.forEach(t=>{let{emitter:e,subscription:r,...n}=t;this._sendMessage({categoryCode:"configs",eventCode:"put",config:n})}),this.watchedAccounts.forEach(t=>{this._sendMessage({eventCode:"accountAddress",categoryCode:"watch",account:{address:t.address}})}),t&&t(),this._socket.ws&&this._socket.ws.on&&(this._socket.ws.on("ping",()=>{this._heartbeat&&this._heartbeat()}),this._heartbeat())}let iA=iT}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.