1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8354],{39016:function(t,e,r){"use strict";var n=r(34155);Object.defineProperty(e,"__esModule",{value:!0}),e.CoinbaseWalletSDK=void 0;let i=r(52719),o=r(49682),s=r(83143),a=r(31405),u=r(16570),c=r(27472),l=r(94643),h=n.env.LINK_API_URL||"https://www.walletlink.org",f=n.env.SDK_VERSION||r(40626).i8||"unknown";class d{constructor(t){var e,r,n;let i;this._appName="",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;let s=t.linkAPIUrl||h;if(i=t.uiConstructor?t.uiConstructor:t=>new a.WalletSDKUI(t),void 0===t.overrideIsMetaMask?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=t.overrideIsMetaMask,this._overrideIsCoinbaseWallet=null===(e=t.overrideIsCoinbaseWallet)||void 0===e||e,this._overrideIsCoinbaseBrowser=null!==(r=t.overrideIsCoinbaseBrowser)&&void 0!==r&&r,t.diagnosticLogger&&t.eventListener)throw Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");t.eventListener?this._diagnosticLogger={log:t.eventListener.onEvent}:this._diagnosticLogger=t.diagnosticLogger,this._reloadOnDisconnect=null===(n=t.reloadOnDisconnect)||void 0===n||n;let l=new URL(s),p=`${l.protocol}//${l.host}`;if(this._storage=new o.ScopedLocalStorage(`-walletlink:${p}`),this._storage.setItem("version",d.VERSION),this.walletExtension||this.coinbaseBrowser||(this._relayEventManager=new c.WalletSDKRelayEventManager,this._relay=new u.WalletSDKRelay({linkAPIUrl:s,version:f,darkMode:!!t.darkMode,uiConstructor:i,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger}),this.setAppInfo(t.appName,t.appLogoUrl),t.headlessMode))return;this._relay.attachUI()}makeWeb3Provider(t="",e=1){let r=this.walletExtension;if(r)return this.isCipherProvider(r)||r.setProviderInfo(t,e),!1===this._reloadOnDisconnect&&"function"==typeof r.disableReloadOnDisconnect&&r.disableReloadOnDisconnect(),r;let n=this.coinbaseBrowser;if(n)return n;let i=this._relay;if(!i||!this._relayEventManager||!this._storage)throw Error("Relay not initialized, should never happen");return t||i.setConnectDisabled(!0),new s.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(i),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:t,chainId:e,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(t,e){var r;this._appName=t||"DApp",this._appLogoUrl=e||(0,l.getFavicon)();let n=this.walletExtension;n?this.isCipherProvider(n)||n.setAppInfo(this._appName,this._appLogoUrl):null===(r=this._relay)||void 0===r||r.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var t;let e=this.walletExtension;e?e.close():null===(t=this._relay)||void 0===t||t.resetAndReload()}getQrUrl(){var t,e;return null!==(e=null===(t=this._relay)||void 0===t?void 0:t.getQRCodeUrl())&&void 0!==e?e:null}getCoinbaseWalletLogo(t,e=240){return(0,i.walletLogo)(t,e)}get walletExtension(){var t;return null!==(t=window.coinbaseWalletExtension)&&void 0!==t?t:window.walletLinkExtension}get coinbaseBrowser(){var t,e;try{let r=null!==(t=window.ethereum)&&void 0!==t?t:null===(e=window.top)||void 0===e?void 0:e.ethereum;if(!r)return;if("isCoinbaseBrowser"in r&&r.isCoinbaseBrowser)return r;return}catch(n){return}}isCipherProvider(t){return"boolean"==typeof t.isCipher&&t.isCipher}}e.CoinbaseWalletSDK=d,d.VERSION=f},52719:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.walletLogo=void 0;let r=(t,e)=>{switch(t){case"standard":default:return`data:image/svg+xml,%3Csvg width='${e}' height='${e}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case"circle":return`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${e}' height='${e}
1' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case"text":return`data:image/svg+xml,%3Csvg width='${e}' height='${(.1*e).toFixed(2)}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V
152.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return`data:image/svg+xml,%3Csvg width='${e}' height='${(.25*e).toFixed(2)}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case"textLight":return`data:image/svg+xml,%3Csvg width='${e}' height='${(.1*e).toFixed(2)}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return`data:image/svg+xml,%3Csvg width='${e}' height='${(.25*e).toFixed(2)}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.8
11,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`}};e.walletLogo=r},57816:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=".-cbwsdk-css-reset .-cbwsdk-connect-content{height:430px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-connect-content.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 30px}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading{font-style:normal;font-weight:500;font-size:28px;line-height:36px;margin:0}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-layout{display:flex;flex-direction:row}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-left{margin-right:30px;display:flex;flex-direction:column;justify-content:space-between}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-right{flex:25%;margin-right:34px}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-wrapper{width:220px;height:220px;border-radius:12px;display:flex;justify-content:center;align-items:center;background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light>p{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark{background-color:rgba(10,11,13,.9)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app{border-radius:8px;font-size:14px;line-height:20px;padding:12px;width:339px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.light{background:#eef0f3;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.dark{background:#1e2025;color:#8a919e}.-cbwsdk-css-reset .-cbwsdk-cancel-button{-webkit-appearance:none;border:none;background:none;cursor:pointer;padding:0;margin:0}.-cbwsdk-css-reset .-cbwsdk-cancel-button-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-wallet-steps{padding:0 0 0 16px;margin:0;width:100%;list-style:decimal}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item{list-style-type:decimal;display:list-item;font-style:normal;font-weight:400;font-size:16px;line-height:24px;margin-top:20px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item-wrapper{display:flex;align-items:center}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-pad-left{margin-left:6px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon{display:flex;border-radius:50%;height:24px;width:24px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.light{background:#0052ff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.dark{background:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item{align-items:center;display:flex;flex-direction:row;padding:16px 24px;gap:12px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-item.light.selected{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark.selected{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item.selected{border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}"},95558:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1Object.defineProperty(e,"__esModule",{value:!0}),e.CoinbaseAppSteps=e.CoinbaseWalletSteps=e.ConnectItem=e.ConnectContent=void 0;let i=n(r(86010)),o=r(6400),s=r(30396),a=r(94643),u=r(43604),c=r(37598),l=n(r(417)),h=n(r(12348)),f=r(18646),d=n(r(35666)),p=n(r(30019)),g=r(67494),m=r(70381),y=r(88727),b=n(r(57816)),v={"coinbase-wallet-app":{title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",icon:h.default,steps:S},"coinbase-app":{title:"Coinbase app",description:"Connect with your Coinbase account",icon:l.default,steps:E}},_=t=>"coinbase-app"===t?d.default:p.default,w=t=>"light"===t?"#FFFFFF":"#0A0B0D";function M({title:t,description:e,icon:r,selected:n,theme:s,onClick:a}){return(0,o.h)("div",{onClick:a,class:(0,i.default)("-cbwsdk-connect-item",s,{selected:n})},(0,o.h)("div",null,(0,o.h)("img",{src:r,alt:t})),(0,o.h)("div",{class:"-cbwsdk-connect-item-copy-wrapper"},(0,o.h)("h3",{class:"-cbwsdk-connect-item-title"},t),(0,o.h)("p",{class:"-cbwsdk-connect-item-description"},e)))}function S({theme:t}){return(0,o.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,o.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",t)},(0,o.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,o.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",t)},(0,o.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,o.h)("span",null,"Tap ",(0,o.h)("strong",null,"Scan")," "),(0,o.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",t)},(0,o.h)(f.QRCodeIcon,{fill:w(t)})))))}function E({theme:t}){return(0,o.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,o.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",t)},(0,o.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase app")),(0,o.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",t)},(0,o.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,o.h)("span",null,"Tap ",(0,o.h)("strong",null,"More")),(0,o.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",t)},(0,o.h)(g.StatusDotIcon,{fill:w(t)})),(0,o.h)("span",{class:"-cbwsdk-wallet-steps-pad-left"},"then ",(0,o.h)("strong",null,"Scan")),(0,o.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",t)},(0,o.h)(f.QRCodeIcon,{fill:w(t)})))))}e.ConnectContent=function(t){let{theme:e}=t,[r,n]=(0,s.useState)("coinbase-wallet-app"),l=(0,s.useCallback)(t=>{n(t)},[]),h=(0,a.createQrUrl)(t.sessionId,t.sessionSecret,t.linkAPIUrl,t.isParentConnection,t.version,t.chainId),f=v[r];if(!r)return null;let d=f.steps;return(0,o.h)("div",{"data-testid":"connect-content",class:(0,i.default)("-cbwsdk-connect-content",e)},(0,o.h)("style",null,b.default),(0,o.h)("div",{class:"-cbwsdk-connect-content-header"},(0,o.h)("h2",{class:(0,i.default)("-cbwsdk-connect-content-heading",e)},"Scan to connect with one of our mobile apps"),t.onCancel&&(0,o.h)("button",{type:"button",class:"-cbwsdk-cancel-button",onClick:t.onCancel},(0,o.h)(c.CloseIcon,{fill:"light"===e?"#0A0B0D":"#FFFFFF"}))),(0,o.h)("div",{class:"-cbwsdk-connect-content-layout"},(0,o.h)("div",{class:"-cbwsdk-connect-content-column-left"},(0,o.h)("div",null,Object.entries(v).map(([t,n])=>(0,o.h)(M,{key:t,title:n.title,description:n.description,icon:n.icon,selected:r===t,onClick:()=>l(t),theme:e}))),"coinbase-app"===r&&(0,o.h)("div",{class:(0,i.default)("-cbwsdk-connect-content-update-app",e)},"Donât see a ",(0,o.h)("strong",null,"Scan")," option? Update your Coinbase app to the latest version and try again.")),(0,o.h)("div",{class:"-cbwsdk-connect-content-column-right"},(0,o.h)("div",{class:"-cbwsdk-connect-content-qr-wrapper"},(0,o.h)(m.QRCode,{content:h,width:200,height:200,fgColor:"#000",bgColor:"transparent",image:{svg:_(r),width:25,height:25}}),(0,o.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:u.LIB_VERSION}),(0,o.h)("input",{type:"hidden",value:h})),(0,o.h)(d,{theme:e}),!t.isConnected&&(0,o.h)("div",{"data-testid":"connecting-spinner",class:(0,i.default)("-cbwsdk-connect-content-qr-connecting",e)},(0,o.h)(y.Spinner,{size:36,color:"dark"===e?"#FFF":"#000"}),(0,o.h)("p",null,"Connecting...")))))},e.ConnectItem=M,e.CoinbaseWalletSteps=S,e.CoinbaseAppSteps=E},96956:function(t,e){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.default=".-cbwsdk-css-reset .-cbwsdk-connect-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box{display:flex;position:relative;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container-hidden{display:none}"},98845:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectDialog=void 0;let i=n(r(86010)),o=r(6400),s=r(30396),a=r(95558),u=r(26868),c=n(r(96956)),l=t=>{let{isOpen:e,darkMode:r}=t,[n,l]=(0,s.useState)(!e),[h,f]=(0,s.useState)(!e);(0,s.useEffect)(()=>{let t=[window.setTimeout(()=>{f(!e)},10)];return e?l(!1):t.push(window.setTimeout(()=>{l(!0)},360)),()=>{t.forEach(window.clearTimeout)}},[t.isOpen]);let d=r?"dark":"light";return(0,o.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-container",n&&"-cbwsdk-connect-dialog-container-hidden")},(0,o.h)("style",null,c.default),(0,o.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-backdrop",d,h&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,o.h)("div",{class:"-cbwsdk-connect-dialog"},(0,o.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-box",h&&"-cbwsdk-connect-dialog-box-hidden")},t.connectDisabled?null:(0,o.h)(a.ConnectContent,{theme:d,version:t.version,sessionId:t.sessionId,sessionSecret:t.sessionSecret,linkAPIUrl:t.linkAPIUrl,isConnected:t.isConnected,isParentConnection:t.isParentConnection,chainId:t.chainId,onCancel:t.onCancel}),(0,o.h)(u.TryExtensionContent,{theme:d}))))};e.ConnectDialog=l},27759:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkFlow=void 0;let n=r(6400),i=r(67734),o=r(98845);e.LinkFlow=class{constructor(t){this.extensionUI$=new i.BehaviorSubject({}),this.subscriptions=new i.Subscription,this.isConnected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=t.darkMode,this.version=t.version,this.sessionId=t.sessionId,this.sessionSecret=t.sessionSecret,this.linkAPIUrl=t.linkAPIUrl,this.isParentConnection=t.isParentConnection,this.connected$=t.connected$,this.chainId$=t.chainId$}attach(t){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",t.appendChild(this.root),this.render(),this.subscriptions.add(this.connected$.subscribe(t=>{this.isConnected!==t&&(this.isConnected=t,this.render())})),this.subscriptions.add(this.chainId$.subscribe(t=>{this.chainId!==t&&(this.chainId=t,this.render())}))}detach(){var t;this.root&&(this.subscriptions.unsubscribe(),(0,n.render)(null,this.root),null===(t=this.root.parentElement)||void 0===t||t.removeChild(this.root))}setConnectDisabled(t){this.connectDisabled=t}open(t){this.isOpen=!0,this.onCancel=t.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){if(!this.root)return;let t=this.extensionUI$.subscribe(()=>{this.root&&(0,n.render)((0,n.h)(o.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.isConnected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)});this.subscriptions.add(t)}}},70381:function(t,e,r){"use strict";var n=r(48764).Buffer,i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1Object.defineProperty(e,"__esModule",{value:!0}),e.QRCode=void 0;let o=r(6400),s=r(30396),a=i(r(7713)),u=t=>{let[e,r]=(0,s.useState)("");return(0,s.useEffect)(()=>{var e,i;let o=new a.default({content:t.content,background:t.bgColor||"#ffffff",color:t.fgColor||"#000000",container:"svg",ecl:"M",width:null!==(e=t.width)&&void 0!==e?e:256,height:null!==(i=t.height)&&void 0!==i?i:256,padding:0,image:t.image}),s=n.from(o.svg(),"utf8").toString("base64");r(`data:image/svg+xml;base64,${s}`)}),e?(0,o.h)("img",{src:e,alt:"QR Code"}):null};e.QRCode=u},24325:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}"},19199:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SnackbarInstance=e.SnackbarContainer=e.Snackbar=void 0;let i=n(r(86010)),o=r(6400),s=r(30396),a=n(r(24325));e.Snackbar=class{constructor(t){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=t.darkMode}attach(t){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",t.appendChild(this.root),this.render()}presentItem(t){let e=this.nextItemKey++;return this.items.set(e,t),this.render(),()=>{this.items.delete(e),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,o.render)((0,o.h)("div",null,(0,o.h)(e.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([t,r])=>(0,o.h)(e.SnackbarInstance,Object.assign({},r,{key:t}
1))))),this.root)}};let u=t=>(0,o.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-container")},(0,o.h)("style",null,a.default),(0,o.h)("div",{class:"-cbwsdk-snackbar"},t.children));e.SnackbarContainer=u;let c=({autoExpand:t,message:e,menuItems:r,appSrc:n})=>{let[a,u]=(0,s.useState)(!0),[c,l]=(0,s.useState)(null!=t&&t);(0,s.useEffect)(()=>{let t=[window.setTimeout(()=>{u(!1)},1),window.setTimeout(()=>{l(!0)},1e4)];return()=>{t.forEach(window.clearTimeout)}});let h=()=>{l(!c)};return(0,o.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-instance",a&&"-cbwsdk-snackbar-instance-hidden",c&&"-cbwsdk-snackbar-instance-expanded")},(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:h},(0,o.h)("img",{src:"coinbase-app"===n?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjY3NCAxOC44NThjLTIuMDQ1IDAtMy42NDgtMS43MjItMy42NDgtMy44NDVzMS42NTktMy44NDUgMy42NDgtMy44NDVjMS44MjQgMCAzLjMxNyAxLjM3NyAzLjU5MyAzLjIxNGgzLjcwM2MtLjMzMS0zLjk2LTMuNDgyLTcuMDU5LTcuMjk2LTcuMDU5LTQuMDM0IDAtNy4zNSAzLjQ0My03LjM1IDcuNjkgMCA0LjI0NiAzLjI2IDcuNjkgNy4zNSA3LjY5IDMuODcgMCA2Ljk2NS0zLjEgNy4yOTYtNy4wNTloLTMuNzAzYy0uMjc2IDEuODM2LTEuNzY5IDMuMjE0LTMuNTkzIDMuMjE0WiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0wIDEwLjY3OGMwLTMuNzExIDAtNS41OTYuNzQyLTcuMDIzQTYuNTMyIDYuNTMyIDAgMCAxIDMuNjU1Ljc0MkM1LjA4MiAwIDYuOTY3IDAgMTAuNjc4IDBoNy45MzhjMy43MTEgMCA1LjU5NiAwIDcuMDIzLjc0MmE2LjUzMSA2LjUzMSAwIDAgMSAyLjkxMyAyLjkxM2MuNzQyIDEuNDI3Ljc0MiAzLjMxMi43NDIgNy4wMjN2Ny45MzhjMCAzLjcxMSAwIDUuNTk2LS43NDIgNy4wMjNhNi41MzEgNi41MzEgMCAwIDEtMi45MTMgMi45MTNjLTEuNDI3Ljc0Mi0zLjMxMi43NDItNy4wMjMuNzQyaC03LjkzOGMtMy43MTEgMC01LjU5NiAwLTcuMDIzLS43NDJhNi41MzEgNi41MzEgMCAwIDEtMi45MTMtMi45MTNDMCAyNC4yMTIgMCAyMi4zODQgMCAxOC42MTZ2LTcuOTM4WiIgZmlsbD0iIzAwNTJGRiIvPjxwYXRoIGQ9Ik0xNC42ODQgMTkuNzczYy0yLjcyNyAwLTQuODY0LTIuMjk1LTQuODY0LTUuMTI2IDAtMi44MzEgMi4yMS01LjEyNyA0Ljg2NC01LjEyNyAyLjQzMiAwIDQuNDIyIDEuODM3IDQuNzkgNC4yODVoNC45MzhjLS40NDItNS4yOC00LjY0My05LjQxMS05LjcyOC05LjQxMS01LjM4IDAtOS44MDIgNC41OS05LjgwMiAxMC4yNTMgMCA1LjY2MiA0LjM0OCAxMC4yNTMgOS44MDIgMTAuMjUzIDUuMTU5IDAgOS4yODYtNC4xMzIgOS43MjgtOS40MTFoLTQuOTM4Yy0uMzY4IDIuNDQ4LTIuMzU4IDQuMjg0LTQuNzkgNC4yODRaIiBmaWxsPSIjZmZmIi8+PC9zdmc+":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+",class:"-cbwsdk-snackbar-instance-header-cblogo"}),(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},e),(0,o.h)("div",{class:"-gear-container"},!c&&(0,o.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,o.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwu
1NTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=",class:"-gear-icon",title:"Expand"}))),r&&r.length>0&&(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},r.map((t,e)=>(0,o.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-instance-menu-item",t.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:t.onClick,key:e},(0,o.h)("svg",{width:t.svgWidth,height:t.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{"fill-rule":t.defaultFillRule,"clip-rule":t.defaultClipRule,d:t.path,fill:"#AAAAAA"})),(0,o.h)("span",{class:(0,i.default)("-cbwsdk-snackbar-instance-menu-item-info",t.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},t.info)))))};e.SnackbarInstance=c},22061:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=".-cbwsdk-css-reset .-cbwsdk-spinner{display:inline-block}.-cbwsdk-css-reset .-cbwsdk-spinner svg{display:inline-block;animation:2s linear infinite -cbwsdk-spinner-svg}.-cbwsdk-css-reset .-cbwsdk-spinner svg circle{animation:1.9s ease-in-out infinite both -cbwsdk-spinner-circle;display:block;fill:rgba(0,0,0,0);stroke-dasharray:283;stroke-dashoffset:280;stroke-linecap:round;stroke-width:10px;transform-origin:50% 50%}@keyframes -cbwsdk-spinner-svg{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}@keyframes -cbwsdk-spinner-circle{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}"},88727:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Spinner=void 0;let i=r(6400),o=n(r(22061)),s=t=>{var e;let r=null!==(e=t.size)&&void 0!==e?e:64,n=t.color||"#000";return(0,i.h)("div",{class:"-cbwsdk-spinner"},(0,i.h)("style",null,o.default),(0,i.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:r,height:r}},(0,i.h)("circle",{style:{cx:50,cy:50,r:45,stroke:n}})))};e.Spinner=s},5157:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=".-cbwsdk-css-reset .-cbwsdk-try-extension{display:flex;margin-top:12px;height:202px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-try-extension.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-column-half{flex:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading{font-style:normal;font-weight:500;font-size:25px;line-height:32px;margin:0;max-width:204px}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta{appearance:none;border:none;background:none;color:#0052ff;cursor:pointer;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.light{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.dark{color:#588af5}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-wrapper{display:flex;align-items:center;margin-top:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-icon{display:block;margin-left:4px;height:14px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;padding:0;list-style:none;height:100%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item{display:flex;align-items:center;flex-flow:nowrap;margin-top:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item:first-of-type{margin-top:0}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon-wrapper{display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon{display:flex;height:32px;width:32px;border-radius:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.light{background:#eef0f3}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.dark{background:#1e2025}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy{display:block;font-weight:400;font-size:14px;line-height:20px;padding-left:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.light{color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.dark{color:#8a919e}"},26868:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1Object.defineProperty(e,"__esModule",{value:!0}),e.TryExtensionContent=void 0;let i=n(r(86010)),o=r(6400),s=r(30396),a=r(79414),u=r(52467),c=r(25178),l=n(r(5157));e.TryExtensionContent=function({theme:t}){let[e,r]=(0,s.useState)(!1),n=(0,s.useCallback)(()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")},[]),h=(0,s.useCallback)(()=>{e?window.location.reload():(n(),r(!0))},[n,e]);return(0,o.h)("div",{class:(0,i.default)("-cbwsdk-try-extension",t)},(0,o.h)("style",null,l.default),(0,o.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,o.h)("h3",{class:(0,i.default)("-cbwsdk-try-extension-heading",t)},"Or try the Coinbase Wallet browser extension"),(0,o.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,o.h)("button",{class:(0,i.default)("-cbwsdk-try-extension-cta",t),onClick:h},e?"Refresh":"Install"),(0,o.h)("div",null,!e&&(0,o.h)(a.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:"light"===t?"#0052FF":"#588AF5"})))),(0,o.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,o.h)("ul",{class:"-cbwsdk-try-extension-list"},(0,o.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,o.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,o.h)("span",{class:(0,i.default)("-cbwsdk-try-extension-list-item-icon",t)},(0,o.h)(u.LaptopIcon,{fill:"light"===t?"#0A0B0D":"#FFFFFF"}))),(0,o.h)("div",{class:(0,i.default)("-cbwsdk-try-extension-list-item-copy",t)},"Connect with dapps with just one click on your desktop browser")),(0,o.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,o.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,o.h)("span",{class:(0,i.default)("-cbwsdk-try-extension-list-item-icon",t)},(0,o.h)(c.SafeIcon,{fill:"light"===t?"#0A0B0D":"#FFFFFF"}))),(0,o.h)("div",{class:(0,i.default)("-cbwsdk-try-extension-list-item-copy",t)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}},79414:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrowLeftIcon=void 0;let n=r(6400);e.ArrowLeftIcon=function(t){return(0,n.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("path",{d:"M8.60675 0.155884L7.37816 1.28209L12.7723 7.16662H0V8.83328H12.6548L6.82149 14.6666L8 15.8451L15.8201 8.02501L8.60675 0.155884Z"}))}},37598:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CloseIcon=void 0;let n=r(6400);e.CloseIcon=function(t){return(0,n.h)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("path",{d:"M13.7677 13L12.3535 14.4142L18.3535 20.4142L12.3535 26.4142L13.7677 27.8284L19.7677 21.8284L25.7677 27.8284L27.1819 26.4142L21.1819 20.4142L27.1819 14.4142L25.7677 13L19.7677 19L13.7677 13Z"}))}},52467:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LaptopIcon=void 0;let n=r(6400);e.LaptopIcon=function(t){return(0,n.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("path",{d:"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z"}),(0,n.h)("path",{d:"M13.4001 10.2002H0.600098C0.600098 11.0838 1.31644 11.8002 2.2001 11.8002H11.8001C12.6838 11.8002 13.4001 11.0838 13.4001 10.2002Z"}))}},18646:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QRCodeIcon=void 0;let n=r(6400);e.QRCodeIcon=function(t){return(0,n.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("path",{d:"M8.2271 1.77124L7.0271 1.77124V2.97124H8.2271V1.77124Z"}),(0,n.h)("path",{d:"M5.44922 0.199219L5.44922 4.54922L9.79922 4.54922V0.199219L5.44922 0.199219ZM8.89922 3.64922L6.34922 3.64922L6.34922 1.09922L8.89922 1.09922V3.64922Z"}),(0,n.h)("path",{d:"M2.97124 1.77124L1.77124 1.77124L1.77124 2.97124H2.97124V1.77124Z"}),(0,n.h)("path",{d:"M0.199219 4.54922L4.54922 4.54922L4.54922 0.199219L0.199219 0.199219L0.199219 4.54922ZM1.09922 1.09922L3.64922 1.09922L3.64922 3.64922L1.09922 3.64922L1.09922 1.09922Z"}),(0,n.h)("path",{d:"M2.97124 7.0271H1.77124L1.77124 8.2271H2.97124V7.0271Z"}),(0,n.h)("path",{d:"M0.199219 9.79922H4.54922L4.54922 5.44922L0.199219 5.44922L0.199219 9.79922ZM1.09922 6.34922L3.64922 6.34922L3.64922 8.89922H1.09922L1.09922 6.34922Z"}),(0,n.h)("path",{d:"M8.89922 7.39912H7.99922V5.40112H5.44922L5.44922 9.79912H6.34922L6.34922 6.30112H7.09922V8.29912H9.79922V5.40112H8.89922V7.39912Z"}),(0,n.h)("path",{d:"M7.99912 8.89917H7.09912V9.79917H7.99912V8.89917Z"}),(0,n.h)("path",{d:"M9.79917 8.89917H8.89917V9.79917H9.79917V8.89917Z"}))}},35666:function(t,e){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0});let r=` 2 <svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg"> 3 <path d="M50 100C77.6142 100 100 77.6142 100 50C100 22.3858 77.6142 0 50 0C22.3858 0 0 22.3858 0 50C0 77.6142 22.3858 100 50 100Z" fill="white"/> 4 <path d="M50.512 94C74.2907 94 93.5673 74.5244 93.5673 50.5C93.5673 26.4756 74.2907 7 50.512 7C26.7332 7 7.45667 26.4756 7.45667 50.5C7.45667 74.5244 26.7332 94 50.512 94Z" fill="#0052FF"/> 5 <path d="M50.6248 65.4335C42.3697 65.4335 35.8996 58.7469 35.8996 50.5C35.8996 42.2531 42.5928 35.5664 50.6248 35.5664C57.9873 35.5664 64.0111 40.9157 65.1267 48.0481H80.0749C78.7363 32.6688 66.0191 20.6328 50.6248 20.6328C34.3379 20.6328 20.9514 34.0062 20.9514 50.5C20.9514 66.9936 34.1148 80.3671 50.6248 80.3671C66.2422 80.3671 78.7363 68.331 80.0749 52.9516H65.1267C64.0111 60.0841 57.9873 65.4335 50.6248 65.4335Z" fill="white"/> 6 </svg> 7`;e.default=r},30019:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=` 8 <svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg"> 9 <circle cx="50" cy="50" r="50" fill="white"/> 10 <circle cx="49.9996" cy="49.9996" r="43.6363" fill="#1B53E4"/> 11 <circle cx="49.9996" cy="49.9996" r="43.6363" stroke="white"/> 12 <path fill-rule="evenodd" clip-rule="evenodd" d="M19.3379 49.9484C19.3379 66.8508 33.04 80.553 49.9425 80.553C66.8449 80.553 80.5471 66.8508 80.5471 49.9484C80.5471 33.0459 66.8449 19.3438 49.9425 19.3438C33.04 19.3438 19.3379 33.0459 19.3379 49.9484ZM44.0817 40.0799C41.8725 40.0799 40.0817 41.8708 40.0817 44.0799V55.8029C40.0817 58.012 41.8725 59.8029 44.0817 59.8029H55.8046C58.0138 59.8029 59.8046 58.012 59.8046 55.8029V44.0799C59.8046 41.8708 58.0138 40.0799 55.8046 40.0799H44.0817Z" fill="white"/> 13 </svg> 14`},25178:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SafeIcon=void 0;let n=r(6400);e.SafeIcon=function(t){return(0,n.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.600098 0.600098V11.8001H13.4001V0.600098H0.600098ZM7.0001 9.2001C5.3441 9.2001 4.0001 7.8561 4.0001 6.2001C4.0001 4.5441 5.3441 3.2001 7.0001 3.2001C8.6561 3.2001 10.0001 4.5441 10.0001 6.2001C10.0001 7.8561 8.6561 9.2001 7.0001 9.2001ZM0.600098 12.6001H3.8001V13.4001H0.600098V12.6001ZM10.2001 12.6001H13.4001V13.4001H10.2001V12.6001ZM8.8001 6.2001C8.8001 7.19421 7.99421 8.0001 7.0001 8.0001C6.00598 8.0001 5.2001 7.19421 5.2001 6.2001C5.2001 5.20598 6.00598 4.4001 7.0001 4.4001C7.99421 4.4001 8.8001 5.20598 8.8001 6.2001Z"}))}},67494:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StatusDotIcon=void 0;let n=r(6400);e.StatusDotIcon=function(t){return(0,n.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.29995 4.99995C2.29995 5.57985 1.82985 6.04995 1.24995 6.04995C0.670052 6.04995 0.199951 5.57985 0.199951 4.99995C0.199951 4.42005 0.670052 3.94995 1.24995 3.94995C1.82985 3.94995 2.29995 4.42005 2.29995 4.99995ZM4.99995 6.04995C5.57985 6.04995 6.04995 5.57985 6.04995 4.99995C6.04995 4.42005 5.57985 3.94995 4.99995 3.94995C4.42005 3.94995 3.94995 4.42005 3.94995 4.99995C3.94995 5.57985 4.42005 6.04995 4.99995 6.04995ZM8.74995 6.04995C9.32985 6.04995 9.79995 5.57985 9.79995 4.99995C9.79995 4.42005 9.32985 3.94995 8.74995 3.94995C8.17005 3.94995 7.69995 4.42005 7.69995 4.99995C7.69995 5.57985 8.17005 6.04995 8.74995 6.04995Z"}))}},417:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMTQuMDM3IDE4LjkyNmMtMi43NSAwLTQuOTA3LTIuMjA1LTQuOTA3LTQuOTI2IDAtMi43MiAyLjIzLTQuOTI2IDQuOTA3LTQuOTI2YTQuODY2IDQuODY2IDAgMCAxIDQuODMzIDQuMTE4aDQuOTgyYy0uNDQ2LTUuMDczLTQuNjg0LTkuMDQ0LTkuODE1LTkuMDQ0QzguNjEgNC4xNDgg
14NC4xNDkgOC41NiA0LjE0OSAxNHM0LjM4NyA5Ljg1MiA5Ljg5IDkuODUyYzUuMjA0IDAgOS4zNjgtMy45NyA5LjgxNC05LjA0M0gxOC44N2E0Ljg2NiA0Ljg2NiAwIDAgMS00LjgzMyA0LjExN1oiIGZpbGw9IiNmZmYiLz48L3N2Zz4="},12348:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMjMuODUyIDE0QTkuODM0IDkuODM0IDAgMCAxIDE0IDIzLjg1MiA5LjgzNCA5LjgzNCAwIDAgMSA0LjE0OCAxNCA5LjgzNCA5LjgzNCAwIDAgMSAxNCA0LjE0OCA5LjgzNCA5LjgzNCAwIDAgMSAyMy44NTIgMTRaIiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTExLjE4NSAxMi41MDRjMC0uNDU2IDAtLjcxLjA5OC0uODYyLjA5OC0uMTUyLjE5Ni0uMzA0LjM0My0uMzU1LjE5Ni0uMTAyLjM5Mi0uMTAyLjg4MS0uMTAyaDIuOTg2Yy40OSAwIC42ODYgMCAuODgyLjEwMi4xNDYuMTAxLjI5My4yMDMuMzQyLjM1NS4wOTguMjAzLjA5OC40MDYuMDk4Ljg2MnYyLjk5MmMwIC40NTcgMCAuNzEtLjA5OC44NjMtLjA5OC4xNTItLjE5NS4zMDQtLjM0Mi4zNTUtLjE5Ni4xMDEtLjM5Mi4xMDEtLjg4Mi4xMDFoLTIuOTg2Yy0uNDkgMC0uNjg1IDAtLjg4LS4xMDEtLjE0OC0uMTAyLS4yOTUtLjIwMy0uMzQ0LS4zNTUtLjA5OC0uMjAzLS4wOTgtLjQwNi0uMDk4LS44NjN2LTIuOTkyWiIgZmlsbD0iIzAwNTJGRiIvPjwvc3ZnPg=="},85755:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClientMessagePublishEvent=e.ClientMessageSetSessionConfig=e.ClientMessageGetSessionConfig=e.ClientMessageIsLinked=e.ClientMessageHostSession=void 0,e.ClientMessageHostSession=function(t){return Object.assign({type:"HostSession"},t)},e.ClientMessageIsLinked=function(t){return Object.assign({type:"IsLinked"},t)},e.ClientMessageGetSessionConfig=function(t){return Object.assign({type:"GetSessionConfig"},t)},e.ClientMessageSetSessionConfig=function(t){return Object.assign({type:"SetSessionConfig"},t)},e.ClientMessagePublishEvent=function(t){return Object.assign({type:"PublishEvent"},t)}},32191:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EVENTS=void 0,e.EVENTS={STARTED_CONNECTING:"walletlink_sdk.started.connecting",CONNECTED_STATE_CHANGE:"walletlink_sdk.connected",DISCONNECTED:"walletlink_sdk.disconnected",METADATA_DESTROYED:"walletlink_sdk_metadata_destroyed",LINKED:"walletlink_sdk.linked",FAILURE:"walletlink_sdk.generic_failure",SESSION_CONFIG_RECEIVED:"walletlink_sdk.session_config_event_received",ETH_ACCOUNTS_STATE:"walletlink_sdk.eth_accounts_state",SESSION_STATE_CHANGE:"walletlink_sdk.session_state_change",UNLINKED_ERROR_STATE:"walletlink_sdk.unlinked_error_state",SKIPPED_CLEARING_SESSION:"walletlink_sdk.skipped_clearing_session",GENERAL_ERROR:"walletlink_sdk.general_error",WEB3_REQUEST:"walletlink_sdk.web3.request",WEB3_REQUEST_PUBLISHED:"walletlink_sdk.web3.request_published",WEB3_RESPONSE:"walletlink_sdk.web3.response",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"}},80179:function(t,e,r){"use strict";var n,i;Object.defineProperty(e,"__esModule",{value:!0}),e.RxWebSocket=e.ConnectionState=void 0;let o=r(67734),s=r(16473);(i=n=e.ConnectionState||(e.ConnectionState={}))[i.DISCONNECTED=0]="DISCONNECTED",i[i.CONNECTING=1]="CONNECTING",i[i.CONNECTED=2]="CONNECTED",e.RxWebSocket=class{constructor(t,e=WebSocket){this.WebSocketClass=e,this.webSocket=null,this.connectionStateSubject=new o.BehaviorSubject(n.DISCONNECTED),this.incomingDataSubject=ne
14w o.Subject,this.url=t.replace(/^http/,"ws")}connect(){return this.webSocket?(0,o.throwError)(Error("webSocket object is not null")):new o.Observable(t=>{let e;try{this.webSocket=e=new this.WebSocketClass(this.url)}catch(r){t.error(r);return}this.connectionStateSubject.next(n.CONNECTING),e.onclose=e=>{this.clearWebSocket(),t.error(Error(`websocket error ${e.code}: ${e.reason}`)),this.connectionStateSubject.next(n.DISCONNECTED)},e.onopen=e=>{t.next(),t.complete(),this.connectionStateSubject.next(n.CONNECTED)},e.onmessage=t=>{this.incomingDataSubject.next(t.data)}}).pipe((0,s.take)(1))}disconnect(){let{webSocket:t}=this;if(t){this.clearWebSocket(),this.connectionStateSubject.next(n.DISCONNECTED);try{t.close()}catch(e){}}}get connectionState$(){return this.connectionStateSubject.asObservable()}get incomingData$(){return this.incomingDataSubject.asObservable()}get incomingJSONData$(){return this.incomingData$.pipe((0,s.flatMap)(t=>{let e;try{e=JSON.parse(t)}catch(r){return(0,o.empty)()}return(0,o.of)(e)}))}sendData(t){let{webSocket:e}=this;if(!e)throw Error("websocket is not connected");e.send(t)}clearWebSocket(){let{webSocket:t}=this;t&&(this.webSocket=null,t.onclose=null,t.onerror=null,t.onmessage=null,t.onopen=null)}}},76156:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isServerMessageFail=void 0,e.isServerMessageFail=function(t){return t&&"Fail"===t.type&&"number"==typeof t.id&&"string"==typeof t.sessionId&&"string"==typeof t.error}},18876:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKConnection=void 0;let n=r(67734),i=r(16473),o=r(73526),s=r(91295),a=r(85755),u=r(32191),c=r(80179),l=r(76156);e.WalletSDKConnection=class{constructor(t,e,r,a,l=WebSocket){this.sessionId=t,this.sessionKey=e,this.diagnostic=a,this.subscriptions=new n.Subscription,this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,s.IntNumber)(1),this.connectedSubject=ne
14w n.BehaviorSubject(!1),this.linkedSubject=new n.BehaviorSubject(!1),this.sessionConfigSubject=new n.ReplaySubject(1);let h=new c.RxWebSocket(r+"/rpc",l);this.ws=h,this.subscriptions.add(h.connectionState$.pipe((0,i.tap)(e=>{var r;return null===(r=this.diagnostic)||void 0===r?void 0:r.log(u.EVENTS.CONNECTED_STATE_CHANGE,{state:e,sessionIdHash:o.Session.hash(t)})}),(0,i.skip)(1),(0,i.filter)(t=>t===c.ConnectionState.DISCONNECTED&&!this.destroyed),(0,i.delay)(5e3),(0,i.filter)(t=>!this.destroyed),(0,i.flatMap)(t=>h.connect()),(0,i.retry)()).subscribe()),this.subscriptions.add(h.connectionState$.pipe((0,i.skip)(2),(0,i.switchMap)(t=>(0,n.iif)(()=>t===c.ConnectionState.CONNECTED,this.authenticate().pipe((0,i.tap)(t=>this.sendIsLinked()),(0,i.tap)(t=>this.sendGetSessionConfig()),(0,i.map)(t=>!0)),(0,n.of)(!1))),(0,i.distinctUntilChanged)(),(0,i.catchError)(t=>(0,n.of)(!1))).subscribe(t=>this.connectedSubject.next(t))),this.subscriptions.add(h.connectionState$.pipe((0,i.skip)(1),(0,i.switchMap)(t=>(0,n.iif)(()=>t===c.ConnectionState.CONNECTED,(0,n.timer)(0,1e4)))).subscribe(t=>0===t?this.updateLastHeartbeat():this.heartbeat())),this.subscriptions.add(h.incomingData$.pipe((0,i.filter)(t=>"h"===t)).subscribe(t=>this.updateLastHeartbeat())),this.subscriptions.add(h.incomingJSONData$.pipe((0,i.filter)(t=>["IsLinkedOK","Linked"].includes(t.type))).subscribe(e=>{var r;null===(r=this.diagnostic)||void 0===r||r.log(u.EVENTS.LINKED,{sessionIdHash:o.Session.hash(t),linked:e.linked,type:e.type,onlineGuests:e.onlineGuests}),this.linkedSubject.next(e.linked||e.onlineGuests>0)})),this.subscriptions.add(h.incomingJSONData$.pipe((0,i.filter)(t=>["GetSessionConfigOK","SessionConfigUpdated"].includes(t.type))).subscribe(e=>{var r;null===(r=this.diagnostic)||void 0===r||r.log(u.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:o.Session.hash(t),metadata_keys:e&&e.metadata?Object.keys(e.metadata):void 0}),this.sessionConfigSubject.next({webhookId:e.webhookId,webhookUrl:e.webhookUrl,metadata:e.metadata})}))}connect(){var t;if(this.destroyed)throw Error("instance is destroyed");null===(t=this.diagnostic)||void 0===t||t.log(u.EVENTS.STARTED_CONNECTING,{sessionIdHash:o.Session.hash(this.sessionId)}),this.ws.connect().subscribe()}destroy(){var t;this.subscriptions.unsubscribe(),this.ws.disconnect(),null===(t=this.diagnostic)||void 0===t||t.log(u.EVENTS.DISCONNECTED,{sessionIdHash:o.Session.hash(this.sessionId)}),this.destroyed=!0}get isDestroyed(){return this.destroyed}get connected$(){return this.connectedSubject.asObservable()}get onceConnected$(){return this.connected$.pipe((0,i.filter)(t=>t),(0,i.take)(1),(0,i.map)(()=>void 0))}get linked$(){return this.linkedSubject.asObservable()}get onceLinked$(){return this.linked$.pipe((0,i.filter)(t=>t),(0,i.take)(1),(0,i.map)(()=>void 0))}get sessionConfig$(){return this.sessionConfigSubject.asObservable()}get incomingEvent$(){return this.ws.incomingJSONData$.pipe((0,i.filter)(t=>"Event"===t.type&&"string"==typeof t.sessionId&&"string"==typeof t.eventId&&"string"==typeof t.event&&"string"==typeof t.data),(0,i.map)(t=>t))}setSessionMetadata(t,e){let r=(0,a.ClientMessageSetSessionConfig)({id:(0,s.IntNumber)(this.nextReqId++),sessionId:this.sessionId,metadata:{[t]:e}});return this.onceConnected$.pipe((0,i.flatMap)(t=>this.makeRequest(r)),(0,i.map)(t=>{if((0,l.isServerMessageFail)(t))throw Error(t.error||"failed to set session metadata")}))}publishEvent(t,e,r=!1){let n=(0,a.ClientMessagePublishEvent)({id:(0,s.IntNumber)(this.nextReqId++),sessionId:this.sessionId,event:t,data:e,callWebhook:r});return this.onceLinked$.pipe((0,i.flatMap)(t=>this.makeRequest(n)),(0,i.map)(t=>{if((0,l.isServerMessageFail)(t))throw Error(t.error||"failed to publish event");return t.eventId}))}sendData(t){this.ws.sendData(JSON.stringify(t))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>2e4){this.ws.disconnect();return}try{this.ws.sendData("h")}catch(t){}}makeRequest(t,e=6e4){let r=t.id;try{this.sendData(t)}catch(o){return(0,n.throwError)(o)}return this.ws.incomingJSONData$.pipe((0,i.timeoutWith)(e,(0,n.throwError)(Error(`request ${r} timed out`))),(0,i.filter)(t=>t.id===r),(0,i.take)(1))}authenticate(){let t=(0,a.ClientMessageHostSession)({id:(0,s.IntNumber)(this.nextReqId++),sessionId:this.sessionId,sessionKey:this.sessionKey});
14return this.makeRequest(t).pipe((0,i.map)(t=>{if((0,l.isServerMessageFail)(t))throw Error(t.error||"failed to authentcate")}))}sendIsLinked(){let t=(0,a.ClientMessageIsLinked)({id:(0,s.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(t)}sendGetSessionConfig(){let t=(0,a.ClientMessageGetSessionConfig)({id:(0,s.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(t)}}},45811:function(t,e,r){"use strict";let n=r(39016),i=r(83143);r(39016),r(83143),e.ZP=n.CoinbaseWalletSDK,"undefined"!=typeof window&&(window.CoinbaseWalletSDK=n.CoinbaseWalletSDK,window.CoinbaseWalletProvider=i.CoinbaseWalletProvider,window.WalletLink=n.CoinbaseWalletSDK,window.WalletLinkProvider=i.CoinbaseWalletProvider)},49682:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScopedLocalStorage=void 0,e.ScopedLocalStorage=class{constructor(t){this.scope=t}setItem(t,e){localStorage.setItem(this.scopedKey(t),e)}getItem(t){return localStorage.getItem(this.scopedKey(t))}removeItem(t){localStorage.removeItem(this.scopedKey(t))}clear(){let t=this.scopedKey(""),e=[];for(let r=0;r<localStorage.length;r++){let n=localStorage.key(r);"string"==typeof n&&n.startsWith(t)&&e.push(n)}e.forEach(t=>localStorage.removeItem(t))}scopedKey(t){return`${this.scope}:${t}`}}},1119:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default='@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}'},27162:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
14Object.defineProperty(e,"__esModule",{value:!0}),e.injectCssReset=void 0;let i=n(r(1119));e.injectCssReset=function(){let t=document.createElement("style");t.type="text/css",t.appendChild(document.createTextNode(i.default)),document.documentElement.appendChild(t)}},83143:function(t,e,r){"use strict";var n=r(48764).Buffer,i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.CoinbaseWalletProvider=void 0;let o=i(r(48053)),s=i(r(13550)),a=r(43681),u=r(32191),c=r(73526),l=r(15633),h=r(94643),f=i(r(14497)),d=r(33648),p=r(28565),g=r(5313),m="DefaultChainId",y="DefaultJsonRpcUrl";class b extends o.default{constructor(t){var e,r;super(),this._filterPolyfill=new d.FilterPolyfill(this),this._subscriptionManager=new g.SubscriptionManager(this),this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1,this._send=this.send.bind(this),this._sendAsync=this.sendAsync.bind(this),this.setProviderInfo=this.setProviderInfo.bind(this),this.updateProviderInfo=this.updateProviderInfo.bind(this),this.getChainId=this.getChainId.bind(this),this.setAppInfo=this.setAppInfo.bind(this),this.enable=this.enable.bind(this),this.close=this.close.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this.request=this.request.bind(this),this._setAddresses=this._setAddresses.bind(this),this.scanQRCode=this.scanQRCode.bind(this),this.genericRequest=this.genericRequest.bind(this),this._chainIdFromOpts=t.chainId,this._jsonRpcUrlFromOpts=t.jsonRpcUrl,this._overrideIsMetaMask=t.overrideIsMetaMask,this._relayProvider=t.relayProvider,this._storage=t.storage,this._relayEventManager=t.relayEventManager,this.diagnostic=t.diagnosticLogger,this.reloadOnDisconnect=!0,this.isCoinbaseWallet=null===(e=t.overrideIsCoinbaseWallet)||void 0===e||e,this.isCoinbaseBrowser=null!==(r=t.overrideIsCoinbaseBrowser)&&void 0!==r&&r,this.qrUrl=t.qrUrl,this.supportsAddressSwitching=t.supportsAddressSwitching,this.isLedger=t.isLedger;let n=this.getChainId(),i=(0,h.prepend0x)(n.toString(16));this.emit("connect",{chainIdStr:i});let o=this._storage.getItem(l.LOCAL_STORAGE_ADDRESSES_KEY);if(o){let s=o.split(" ");""!==s[0]&&(this._addresses=s.map(t=>(0,h.ensureAddressString)(t)),this.emit("accountsChanged",s))}this._subscriptionManager.events.on("notification",t=>{this.emit("message",{type:t.method,data:t.params})}),this._addresses.length>0&&this.initializeRelay(),window.addEventListener("message",t=>{var e;if(t.origin===location.origin&&t.source===window&&"walletLinkMessage"===t.data.type){if("defaultChainChanged"===t.data.data.action||"dappChainSwitched"===t.data.data.action){let r=t.data.data.chainId,n=null!==(e=t.data.data.jsonRpcUrl)&&void 0!==e?e:this.jsonRpcUrl;this.updateProviderInfo(n,Number(r))}"addressChanged"===t.data.data.action&&this._setAddresses([t.data.data.address])}})}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,h.prepend0x)(this.getChainId().toString(16))}get isWalletLink(){return!0}get isMetaMask(){return this._overrideIsMetaMask}get host(){return this.jsonRpcUrl}get connected(){return!0}isConnected(){return!0}get jsonRpcUrl(){var t;return null!==(t=this._storage.getItem(y))&&void 0!==t?t:this._jsonRpcUrlFromOpts}set jsonRpcUrl(t){this._storage.setItem(y,t)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(t,e){this.isLedger||this.isCoinbaseBrowser||(this._chainIdFromOpts=e,this._jsonRpcUrlFromOpts=t),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(t,e){this.jsonRpcUrl=t;let r=this.getChainId();this._storage.setItem(m,e.toString(10));let n=(0,h.ensureIntNumber)(e)!==r;(n||!this.hasMadeFirstChainChangedEmission)&&(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(t,e,r,n,i,o){let s=await this.initializeRelay(),a=await s.watchAsset(t,e,r,n,i,null==o?void 0:o.toString()).promise;return!!a.result}async addEthereumChain(t,e,r,n,i,o){var s,a;if((0,h.ensureIntNumber)(t)===this.getChainId())return!1;let u=await this.initializeRelay(),c=u.inlineAddEthereumChain(t.toString());this._isAuthorized()||c||await u.requestEthereumAccounts().promise;let l=await u.addEthereumChain(t.toString(),e,i,r,n,o).promise;return(null===(s=l.result)||void 0===s?void 0:s.isApproved)===!0&&this.updateProviderInfo(e[0],t),(null===(a=l.result)||void 0===a?void 0:a.isApproved)===!0}async switchEthereumChain(t){let e=await this.initializeRelay(),r=await e.switchEthereumChain(t.toString(10),this.selectedAddress||void 0).promise;if(r.errorCode)throw a.ethErrors.provider.custom({code:r.errorCode});let n=r.result;n.isApproved&&n.rpcUrl.length>0&&this.updateProviderInfo(n.rpcUrl,t)}setAppInfo(t,e){this.initializeRelay().then(r=>r.setAppInfo(t,e))}async enable(){var t;return(null===(t=this.diagnostic)||void 0===t||t.log(u.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?c.Session.hash(this._relay.session.id):void 0}),this._addresses.length>0)?[...this._addresses]:await this._send(p.JSONRPCMethod.eth_requestAccounts)}async close(){let t=await this.initializeRelay();t.resetAndReload()}send(t,e){if("string"==typeof t){let r=Array.isArray(e)?e:void 0!==e?[e]:[];return this._sendRequestAsync({jsonrpc:"2.0",id:0,method:t,params:r}).then(t=>t.result)}return"function"==typeof e?this._sendAsync(t,e):Array.isArray(t)?t.map(t=>this._sendRequest(t)):this._sendRequest(t)}async sendAsync(t,e){if("function"!=typeof e)throw Error("callback is required");if(Array.isArray(t)){this._sendMultipleRequestsAsync(t).then(t=>e(null,t)).catch(t=>e(t,null));return}return this._sendRequestAsync(t).then(t=>e(null,t)).catch(t=>e(t,null))}async request(t){if(!t||"object"!=typeof t||Array.isArray(t))throw a.ethErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:t});let{method:e,params:r}=t;if("string"!=typeof e||0===e.length)throw a.ethErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:t});if(void 0!==r&&!Array.isArray(r)&&("object"!=typeof r||null===r))throw a.ethErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:t});let n=this._relayEventManager.makeRequestId(),i=await this._sendRequestAsync({method:e,params:void 0===r?[]:r,jsonrpc:"2.0",id:n});return i.result}
14async scanQRCode(t){let e=await this.initializeRelay(),r=await e.scanQRCode((0,h.ensureRegExpString)(t)).promise;if("string"!=typeof r.result)throw Error("result was not a string");return r.result}async genericRequest(t,e){let r=await this.initializeRelay(),n=await r.genericRequest(t,e).promise;if("string"!=typeof n.result)throw Error("result was not a string");return n.result}async selectProvider(t){let e=await this.initializeRelay(),r=await e.selectProvider(t).promise;if("string"!=typeof r.result)throw Error("result was not a string");return r.result}supportsSubscriptions(){return!1}subscribe(){throw Error("Subscriptions are not supported")}unsubscribe(){throw Error("Subscriptions are not supported")}disconnect(){return!0}_sendRequest(t){let e={jsonrpc:"2.0",id:t.id},{method:r}=t;if(e.result=this._handleSynchronousMethods(t),void 0===e.result)throw Error(`Coinbase Wallet does not support calling ${r} synchronously without a callback. Please provide a callback parameter to call ${r} asynchronously.`);return e}_setAddresses(t,e){if(!Array.isArray(t))throw Error("addresses is not an array");let r=t.map(t=>(0,h.ensureAddressString)(t));JSON.stringify(r)!==JSON.stringify(this._addresses)&&(!(this._addresses.length>0)||!1!==this.supportsAddressSwitching||e)&&(this._addresses=r,this.emit("accountsChanged",this._addresses),this._storage.setItem(l.LOCAL_STORAGE_ADDRESSES_KEY,r.join(" ")))}_sendRequestAsync(t){return new Promise((e,r)=>{try{let n=this._handleSynchronousMethods(t);if(void 0!==n)return e({jsonrpc:"2.0",id:t.id,result:n});let i=this._handleAsynchronousFilterMethods(t);if(void 0!==i){i.then(r=>e(Object.assign(Object.assign({},r),{id:t.id}))).catch(t=>r(t));return}let o=this._handleSubscriptionMethods(t);if(void 0!==o){o.then(r=>e({jsonrpc:"2.0",id:t.id,result:r.result})).catch(t=>r(t));return}}catch(s){return r(s)}this._handleAsynchronousMethods(t).then(r=>r&&e(Object.assign(Object.assign({},r),{id:t.id}))).catch(t=>r(t))})}_sendMultipleRequestsAsync(t){return Promise.all(t.map(t=>this._sendRequestAsync(t)))}_handleSynchronousMethods(t){let{method:e}=t,r=t.params||[];switch(e){case p.JSONRPCMethod.eth_accounts:return this._eth_accounts();case p.JSONRPCMethod.eth_coinbase:return this._eth_coinbase();case p.JSONRPCMethod.eth_uninstallFilter:return this._eth_uninstallFilter(r);case p.JSONRPCMethod.net_version:return this._net_version();case p.JSONRPCMethod.eth_chainId:return this._eth_chainId();default:return}}async _handleAsynchronousMethods(t){let{method:e}=t,r=t.params||[];switch(e){case p.JSONRPCMethod.eth_requestAccounts:return this._eth_requestAccounts();case p.JSONRPCMethod.eth_sign:return this._eth_sign(r);case p.JSONRPCMethod.eth_ecRecover:return this._eth_ecRecover(r);case p.JSONRPCMethod.personal_sign:return this._personal_sign(r);case p.JSONRPCMethod.personal_ecRecover:return this._personal_ecRecover(r);case p.JSONRPCMethod.eth_signTransaction:return this._eth_signTransaction(r);case p.JSONRPCMethod.eth_sendRawTransaction:return this._eth_sendRawTransaction(r);case p.JSONRPCMethod.eth_sendTransaction:return this._eth_sendTransaction(r);case p.JSONRPCMethod.eth_signTypedData_v1:return this._eth_signTypedData_v1(r);case p.JSONRPCMethod.eth_signTypedData_v2:return this._throwUnsupportedMethodError();case p.JSONRPCMethod.eth_signTypedData_v3:return this._eth_signTypedData_v3(r);case p.JSONRPCMethod.eth_signTypedData_v4:case p.JSONRPCMethod.eth_signTypedData:return this._eth_signTypedData_v4(r);case p.JSONRPCMethod.cbWallet_arbitrary:return this._cbwallet_arbitrary(r);case p.JSONRPCMethod.wallet_addEthereumChain:return this._wallet_addEthereumChain(r);case p.JSONRPCMethod.wallet_switchEthereumChain:return this._wallet_switchEthereumChain(r);case p.JSONRPCMethod.wallet_watchAsset:return this._wallet_watchAsset(r)}let n=await this.initializeRelay();return n.makeEthereumJSONRPCRequest(t,this.jsonRpcUrl)}_handleAsynchronousFilterMethods(t){let{method:e}=t,r=t.params||[];switch(e){case p.JSONRPCMethod.eth_newFilter:return this._eth_newFilter(r);case p.JSONRPCMethod.eth_newBlockFilter:return this._eth_newBlockFilter();case p.JSONRPCMethod.eth_newPendingTransactionFilter:return this._eth_newPendingTransactionFilter();case p.JSONRPCMethod.eth_getFilterChanges:return this._eth_getFilterChanges(r);case p.JSONRPCMethod.eth_getFilterLogs:return this._eth_getFilterLogs(r)}}_handleSubscriptionMethods(t){switch(t.method){case p.JSONRPCMethod.eth_subscribe:case p.JSONRPCMethod.eth_unsubscribe:return this._subscriptionManager.handleRequest(t)}}_isKnownAddress(t){try{let e=(0,h.ensureAddressString)(t),r=this._addresses.map(t=>(0,h.ensureAddressString)(t));return r.includes(e)}catch(n){}return!1}_ensureKnownAddress(t){var e;if(!this._isKnownAddress(t))throw null===(e=this.diagnostic)||void 0===e||e.log(u.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),Error("Unknown Ethereum address")}_prepareTransactionParams(t){let e=t.from?(0,h.ensureAddressString)(t.from):this.selectedAddress;if(!e)throw Error("Ethereum address is unavailable");this._ensureKnownAddress(e);let r=t.to?(0,h.ensureAddressString)(t.to):null,i=null!=t.value?(0,h.ensureBN)(t.value):new s.default(0),o=t.data?(0,h.ensureBuffer)(t.data):n.alloc(0),a=null!=t.nonce?(0,h.ensureIntNumber)(t.nonce):null,u=null!=t.gasPrice?(0,h.ensureBN)(t.gasPrice):null,c=null!=t.maxFeePerGas?(0,h.ensureBN)(t.maxFeePerGas):null,l=null!=t.maxPriorityFeePerGas?(0,h.ensureBN)(t.maxPriorityFeePerGas):null,f=null!=t.gas?(0,h.ensureBN)(t.gas):null,d=this.getChainId();return{fromAddress:e,toAddress:r,weiValue:i,data:o,nonce:a,gasPriceInWei:u,maxFeePerGas:c,maxPriorityFeePerGas:l,gasLim
14it:f,chainId:d}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw a.ethErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw a.ethErrors.provider.unsupportedMethod({})}async _signEthereumMessage(t,e,r,n){this._ensureKnownAddress(e);try{let i=await this.initializeRelay(),o=await i.signEthereumMessage(t,e,r,n).promise;return{jsonrpc:"2.0",id:0,result:o.result}}catch(s){if("string"==typeof s.message&&s.message.match(/(denied|rejected)/i))throw a.ethErrors.provider.userRejectedRequest("User denied message signature");throw s}}async _ethereumAddressFromSignedMessage(t,e,r){let n=await this.initializeRelay(),i=await n.ethereumAddressFromSignedMessage(t,e,r).promise;return{jsonrpc:"2.0",id:0,result:i.result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,h.hexStringFromIntNumber)(this.getChainId())}getChainId(){let t=this._storage.getItem(m);if(!t)return(0,h.ensureIntNumber)(this._chainIdFromOpts);let e=parseInt(t,10);return(0,h.ensureIntNumber)(e)}async _eth_requestAccounts(){var t;let e;if(null===(t=this.diagnostic)||void 0===t||t.log(u.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?c.Session.hash(this._relay.session.id):void 0}),this._addresses.length>0)return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});try{let r=await this.initializeRelay();e=await r.requestEthereumAccounts().promise}catch(n){if("string"==typeof n.message&&n.message.match(/(denied|rejected)/i))throw a.ethErrors.provider.userRejectedRequest("User denied account authorization");throw n}if(!e.result)throw Error("accounts received is empty");return this._setAddresses(e.result),this.isLedger||this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(t){this._requireAuthorization();let e=(0,h.ensureAddressString)(t[0]),r=(0,h.ensureBuffer)(t[1]);return this._signEthereumMessage(r,e,!1)}_eth_ecRecover(t){let e=(0,h.ensureBuffer)(t[0]),r=(0,h.ensureBuffer)(t[1]);return this._ethereumAddressFromSignedMessage(e,r,!1)}_personal_sign(t){this._requireAuthorization();let e=(0,h.ensureBuffer)(t[0]),r=(0,h.ensureAddressString)(t[1]);return this._signEthereumMessage(e,r,!0)}_personal_ecRecover(t){let e=(0,h.ensureBuffer)(t[0]),r=(0,h.ensureBuffer)(t[1]);return this._ethereumAddressFromSignedMessage(e,r,!0)}async _eth_signTransaction(t){this._requireAuthorization();let e=this._prepareTransactionParams(t[0]||{});try{let r=await this.initializeRelay(),n=await r.signEthereumTransaction(e).promise;return{jsonrpc:"2.0",id:0,result:n.result}}catch(i){if("string"==typeof i.message&&i.message.match(/(denied|rejected)/i))throw a.ethErrors.provider.userRejectedRequest("User denied transaction signature");throw i}}async _eth_sendRawTransaction(t){let e=(0,h.ensureBuffer)(t[0]),r=await this.initializeRelay(),n=await r.submitEthereumTransaction(e,this.getChainId()).promise;return{jsonrpc:"2.0",id:0,result:n.result}}async _eth_sendTransaction(t){this._requireAuthorization();let e=this._prepareTransactionParams(t[0]||{});try{let r=await this.initializeRelay(),n=await r.signAndSubmitEthereumTransaction(e).promise;return{jsonrpc:"2.0",id:0,result:n.result}}catch(i){if("string"==typeof i.message&&i.message.match(/(denied|rejected)/i))throw a.ethErrors.provider.userRejectedRequest("User denied transaction signature");throw i}}async _eth_signTypedData_v1(t){this._requireAuthorization();let e=(0,h.ensureParsedJSONObject)(t[0]),r=(0,h.ensureAddressString)(t[1]);this._ensureKnownAddress(r);let n=f.default.hashForSignTypedDataLegacy({data:e}),i=JSON.stringify(e,null,2);return this._signEthereumMessage(n,r,!1,i)}async _eth_signTypedData_v3(t){this._requireAuthorization();let e=(0,h.ensureAddressString)(t[0]),r=(0,h.ensureParsedJSONObject)(t[1]);this._ensureKnownAddress(e);let n=f.default.hashForSignTypedData_v3({data:r}),i=JSON.stringify(r,null,2);return this._signEthereumMessage(n,e,!1,i)}async _eth_signTypedData_v4(t){this._requireAuthorization();let e=(0,h.ensureAddressString)(t[0]),r=(0,h.ensureParsedJSONObject)(t[1]);this._ensureKnownAddress(e);let n=f.default.hashForSignTypedData_v4({data:r}),i=JSON.stringify(r,null,2);return this._signEthereumMessage(n,e,!1,i)}async _cbwallet_arbitrary(t){let e=t[0],r=t[1];if("string"!=typeof r)throw Error("parameter must be a string");if("object"!=typeof e||null===e)throw Error("parameter must be an object");let n=await this.genericRequest(e,r);return{jsonrpc:"2.0",id:0,result:n}}async _wallet_addEthereumChain(t){var e,r,n,i;let o=t[0];if((null===(e=o.rpcUrls)||void 0===e?void 0:e.length)===0)return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!o.chainName||""===o.chainName.trim())throw a.ethErrors.provider.custom({code:0,message:"chainName is a required field"});if(!o.nativeCurrency)throw a.ethErrors.provider.custom({code:0,message:"nativeCurrency is a required field"});let s=parseInt(o.chainId,16),u=await this.addEthereumChain(s,null!==(r=o.rpcUrls)&&void 0!==r?r:[],null!==(n=o.blockExplorerUrls)&&void 0!==n?n:[],o.chainName,null!==(i=o.iconUrls)&&void 0!==i?i:[],o.nativeCurrency);return u?{jsonrpc:"2.0",id:0,result:null}:{jsonrpc:"2.0",id:0,error:{code:2,message:"unable to add ethereum chain"}}}async _wallet_switchEthereumChain(t){let e=t[0];return await this.switchEthereumChain(parseInt(e.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(t){let e=Array.isArray(t)?t[0]:t;if(!e.type)throw a.ethErrors.rpc.invalidParams({message:"Type is required"});if((null==e?void 0:e.type)!=="ERC20")throw a.ethErrors.rpc.invalidParams({message:`Asset of type '${e.type}' is not supported`});if(!(null==e?void 0:e.options))throw a.ethErrors.rpc.invalidParams({message:"Options are required"});if(!(null==e?void 0:e.options.address))throw a.ethErrors.rpc.invalidParams({message:"Address is required"});let r=this.getChainId(),{address:n,symbol:i,image:o,decimals:s}=e.options,u=await this.watchAsset(e.type,n,i,s,o,r);return{jsonrpc:"2.0",id:0,result:u}}_eth_uninstallFilter(t){let e=(0,h.ensureHexString)(t[0]);return this._filterPolyfill.uninstallFilter(e)}async _eth_newFilter(t){let e=t[0],r=await this._filterPolyfill.newFilter(e);return{jsonrpc:"2.0",id:0,result:r}}async _eth_newBlockFilter(){let t=await this._filterPolyfill.newBlockFilter();return{jsonrpc:"2.0",id:0,result:t}}async _eth_newPendingTransactionFilter(){let t=await this._filterPolyfill.newPendingTransactionFilter();return{jsonrpc:"2.0",id:0,result:t}}_eth_getFilterChanges(t){let e=(0,h.ensureHexString)(t[0]);return this._filterPolyfill.getFilterChanges(e)}_eth_getFilterLogs(t){let e=(0,h.ensureHexString)(t[0]);return this._filterPolyfill.getFilterLogs(e)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then(t=>(t.setAccountsCallback((t,e)=>this._setAddresses(t,e)),t.setChainCallback((t,e)=>{this.updateProviderInfo(e,parseInt(t,10))}),t.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=t,t))}}e.CoinbaseWalletProvider=b},33648:function(t,e,r){"use strict";
14Object.defineProperty(e,"__esModule",{value:!0}),e.filterFromParam=e.FilterPolyfill=void 0;let n=r(91295),i=r(94643),o={jsonrpc:"2.0",id:0};function s(t){return{fromBlock:u(t.fromBlock),toBlock:u(t.toBlock),addresses:void 0===t.address?null:Array.isArray(t.address)?t.address:[t.address],topics:t.topics||[]}}function a(t){let e={fromBlock:c(t.fromBlock),toBlock:c(t.toBlock),topics:t.topics};return null!==t.addresses&&(e.address=t.addresses),e}function u(t){if(void 0===t||"latest"===t||"pending"===t)return"latest";if("earliest"===t)return(0,n.IntNumber)(0);if((0,i.isHexString)(t))return(0,i.intNumberFromHexString)(t);throw Error(`Invalid block option: ${String(t)}`)}function c(t){return"latest"===t?t:(0,i.hexStringFromIntNumber)(t)}function l(){return Object.assign(Object.assign({},o),{error:{code:-32e3,message:"filter not found"}})}function h(){return Object.assign(Object.assign({},o),{result:[]})}e.FilterPolyfill=class{constructor(t){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,n.IntNumber)(1),this.provider=t}async newFilter(t){let e=s(t),r=this.makeFilterId(),n=await this.setInitialCursorPosition(r,e.fromBlock);return console.log(`Installing new log filter(${r}):`,e,"initial cursor position:",n),this.logFilters.set(r,e),this.setFilterTimeout(r),(0,i.hexStringFromIntNumber)(r)}async newBlockFilter(){let t=this.makeFilterId(),e=await this.setInitialCursorPosition(t,"latest");return console.log(`Installing new block filter (${t}) with initial cursor position:`,e),this.blockFilters.add(t),this.setFilterTimeout(t),(0,i.hexStringFromIntNumber)(t)}async newPendingTransactionFilter(){let t=this.makeFilterId(),e=await this.setInitialCursorPosition(t,"latest");return console.log(`Installing new block filter (${t}) with initial cursor position:`,e),this.pendingTransactionFilters.add(t),this.setFilterTimeout(t),(0,i.hexStringFromIntNumber)(t)}uninstallFilter(t){let e=(0,i.intNumberFromHexString)(t);return console.log(`Uninstalling filter (${e})`),this.deleteFilter(e),!0}getFilterChanges(t){let e=(0,i.intNumberFromHexString)(t);return(this.timeouts.has(e)&&this.setFilterTimeout(e),this.logFilters.has(e))?this.getLogFilterChanges(e):this.blockFilters.has(e)?this.getBlockFilterChanges(e):this.pendingTransactionFilters.has(e)?this.getPendingTransactionFilterChanges(e):Promise.resolve(l())}async getFilterLogs(t){let e=(0,i.intNumberFromHexString)(t),r=this.logFilters.get(e);return r?this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getLogs",params:[a(r)]})):l()}makeFilterId(){return(0,n.IntNumber)(++this.nextFilterId)}sendAsyncPromise(t){return new Promise((e,r)=>{this.provider.sendAsync(t,(t,n)=>t?r(t):Array.isArray(n)||null==n?r(Error(`unexpected response received: ${JSON.stringify(n)}`)):void e(n))})}deleteFilter(t){console.log(`Deleting filter (${t})`),this.logFilters.delete(t),this.blockFilters.delete(t),this.pendingTransactionFilters.delete(t),this.cursors.delete(t),this.timeouts.delete(t)}async getLogFilterChanges(t){let e=this.logFilters.get(t),r=this.cursors.get(t);if(!r||!e)return l();let s=await this.getCurrentBlockHeight(),u="latest"===e.toBlock?s:e.toBlock;if(r>s||r>e.toBlock)return h();console.log(`Fetching logs from ${r} to ${u} for filter ${t}`);let c=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getLogs",params:[a(Object.assign(Object.assign({},e),{fromBlock:r,toBlock:u}))]}));if(Array.isArray(c.result)){let f=c.result.map(t=>(0,i.intNumberFromHexString)(t.blockNumber||"0x0")),d=Math.max(...f);if(d&&d>r){let p=(0,n.IntNumber)(d+1);console.log(`Moving cursor position for filter (${t}) from ${r} to ${p}`),this.cursors.set(t,p)}}return c}async getBlockFilterChanges(t){let e=this.cursors.get(t);if(!e)return l();let r=await this.getCurrentBlockHeight();if(e>r)return h();console.log(`Fetching blocks from ${e} to ${r} for filter (${t})`);let s=(await Promise.all((0,i.range)(e,r+1).map(t=>this.getBlockHashByNumber((0,n.IntNumber)(t))))).filter(t=>!!t),a=(0,n.IntNumber)(e+s.length);return console.log(`Moving cursor position for filter (${t}) from ${e} to ${a}
14`),this.cursors.set(t,a),Object.assign(Object.assign({},o),{result:s})}async getPendingTransactionFilterChanges(t){return Promise.resolve(h())}async setInitialCursorPosition(t,e){let r=await this.getCurrentBlockHeight(),n="number"==typeof e&&e>r?e:r;return this.cursors.set(t,n),n}setFilterTimeout(t){let e=this.timeouts.get(t);e&&window.clearTimeout(e);let r=window.setTimeout(()=>{console.log(`Filter (${t}) timed out`),this.deleteFilter(t)},3e5);this.timeouts.set(t,r)}async getCurrentBlockHeight(){let{result:t}=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_blockNumber",params:[]}));return(0,i.intNumberFromHexString)((0,i.ensureHexString)(t))}async getBlockHashByNumber(t){let e=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getBlockByNumber",params:[(0,i.hexStringFromIntNumber)(t),!1]}));return e.result&&"string"==typeof e.result.hash?(0,i.ensureHexString)(e.result.hash):null}},e.filterFromParam=s},28565:function(t,e){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.JSONRPCMethod=void 0,(r=e.JSONRPCMethod||(e.JSONRPCMethod={})).eth_accounts="eth_accounts",r.eth_coinbase="eth_coinbase",r.net_version="net_version",r.eth_chainId="eth_chainId",r.eth_uninstallFilter="eth_uninstallFilter",r.eth_requestAccounts="eth_requestAccounts",r.eth_sign="eth_sign",r.eth_ecRecover="eth_ecRecover",r.personal_sign="personal_sign",r.personal_ecRecover="personal_ecRecover",r.eth_signTransaction="eth_signTransaction",r.eth_sendRawTransaction="eth_sendRawTransaction",r.eth_sendTransaction="eth_sendTransaction",r.eth_signTypedData_v1="eth_signTypedData_v1",r.eth_signTypedData_v2="eth_signTypedData_v2",r.eth_signTypedData_v3="eth_signTypedData_v3",r.eth_signTypedData_v4="eth_signTypedData_v4",r.eth_signTypedData="eth_signTypedData",r.cbWallet_arbitrary="walletlink_arbitrary",r.wallet_addEthereumChain="wallet_addEthereumChain",r.wallet_switchEthereumChain="wallet_switchEthereumChain",r.wallet_watchAsset="wallet_watchAsset",r.eth_subscribe="eth_subscribe",r.eth_unsubscribe="eth_unsubscribe",r.eth_newFilter="eth_newFilter",r.eth_newBlockFilter="eth_newBlockFilter",r.eth_newPendingTransactionFilter="eth_newPendingTransactionFilter",r.eth_getFilterChanges="eth_getFilterChanges",r.eth_getFilterLogs="eth_getFilterLogs"},5313:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SubscriptionManager=void 0;let n=r(75012),i=r(68961),o=()=>{};e.SubscriptionManager=class{constructor(t){let e=new n({provider:t,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:r,middleware:o}=i({blockTracker:e,provider:t});this.events=r,this.subscriptionMiddleware=o}async handleRequest(t){let e={};return await this.subscriptionMiddleware(t,e,o,o),e}destroy(){this.subscriptionMiddleware.destroy()}}},31405:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKUI=void 0;let n=r(27759),i=r(19199),o=r(27162);e.WalletSDKUI=class{constructor(t){this.standalone=null,this.attached=!1,this.appSrc=null,this.snackbar=new i.Snackbar({darkMode:t.darkMode}),this.linkFlow=new n.LinkFlow({darkMode:t.darkMode,version:t.version,sessionId:t.session.id,sessionSecret:t.session.secret,linkAPIUrl:t.linkAPIUrl,connected$:t.connected$,chainId$:t.chainId$,isParentConnection:!1})}attach(){if(this.attached)throw Error("Coinbase Wallet SDK UI is already attached");let t=document.documentElement,e=document.createElement("div");e.className="-cbwsdk-css-reset",t.appendChild(e),this.linkFlow.attach(e),this.snackbar.attach(e),this.attached=!0,(0,o.injectCssReset)()}setConnectDisabled(t){this.linkFlow.setConnectDisabled(t)}addEthereumChain(t){}watchAsset(t){}switchEthereumChain(t){}requestEthereumAccounts(t){this.linkFlow.open({onCancel:t.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(t){}signEthereumTransaction(t){}submitEthereumTransaction(t){}ethereumAddressFromSignedMessage(t){}showConnecting(t){let e;return e=t.isUnlinkedErrorState?{autoExpand:!0,message:"Connection lost",appSrc:this.appSrc,menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.9687
145C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:t.onResetConnection}]}:{message:"Confirm on phone",appSrc:this.appSrc,menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:t.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:t.onResetConnection}]},this.snackbar.presentItem(e)}setAppSrc(t){this.appSrc=t}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(t){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(t){this.standalone=t}isStandalone(){var t;return null!==(t=this.standalone)&&void 0!==t&&t}}},64493:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WalletUIError=void 0;class r extends Error{constructor(t,e){super(t),this.message=t,this.errorCode=e}}e.WalletUIError=r,r.UserRejectedRequest=new r("User rejected request"),r.SwitchEthereumChainUnsupportedChainId=new r("Unsupported chainId",4902)},85813:function(t,e){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.RelayMessageType=void 0,(r=e.RelayMessageType||(e.RelayMessageType={})).SESSION_ID_REQUEST="SESSION_ID_REQUEST",r.SESSION_ID_RESPONSE="SESSION_ID_RESPONSE",r.LINKED="LINKED",r.UNLINKED="UNLINKED",r.WEB3_REQUEST="WEB3_REQUEST",r.WEB3_REQUEST_CANCELED="WEB3_REQUEST_CANCELED",r.WEB3_RESPONSE="WEB3_RESPONSE"},73526:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Session=void 0;let n=r(67734),i=r(16473),o=r(89072),s=r(94643),a="session:id",u="session:secret",c="session:linked";class l{constructor(t,e,r,n){this._storage=t,this._id=e||(0,s.randomBytesHex)(16),this._secret=r||(0,s.randomBytesHex)(32),this._key=new o.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!n}static load(t){let e=t.getItem(a),r=t.getItem(c),n=t.getItem(u);return e&&n?new l(t,e,n,"1"===r):null}static get persistedSessionIdChange$(){return(0,n.fromEvent)(window,"storage").pipe((0,i.filter)(t=>t.key===a),(0,i.map)(t=>({oldValue:t.oldValue||null,newValue:t.newValue||null})))}static hash(t){return new o.sha256().update(t).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(t){this._linked=t,this.persistLinked()}save(){return this._storage.setItem(a,this._id),this._storage.setItem(u,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(c,this._linked?"1":"0")}}e.Session=l},16570:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;
14a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKRelay=void 0;let u=a(r(47056)),c=r(43681),l=r(67734),h=r(16473),f=r(32191),d=r(18876),p=r(64493),g=r(91295),m=r(94643),y=s(r(20235)),b=r(73526),v=r(15633),_=r(93083),w=r(85186),M=r(3770),S=r(67386),E=r(50287);class x extends v.WalletSDKRelayAbstract{constructor(t){var e;super(),this.accountsCallback=null,this.chainCallback=null,this.dappDefaultChainSubject=new l.BehaviorSubject(1),this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.subscriptions=new l.Subscription,this.linkAPIUrl=t.linkAPIUrl,this.storage=t.storage,this.options=t;let{session:r,ui:n,connection:i}=this.subscribe();if(this._session=r,this.connection=i,this.relayEventManager=t.relayEventManager,t.diagnosticLogger&&t.eventListener)throw Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");t.eventListener?this.diagnostic={log:t.eventListener.onEvent}:this.diagnostic=t.diagnosticLogger,this._reloadOnDisconnect=null===(e=t.reloadOnDisconnect)||void 0===e||e,this.ui=n}subscribe(){this.subscriptions.add(this.dappDefaultChainSubject.subscribe(t=>{this.dappDefaultChain!==t&&(this.dappDefaultChain=t)}));let t=b.Session.load(this.storage)||new b.Session(this.storage).save(),e=new d.WalletSDKConnection(t.id,t.key,this.linkAPIUrl,this.diagnostic);this.subscriptions.add(e.sessionConfig$.subscribe({next:t=>{this.onSessionConfigChanged(t)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(f.EVENTS.GENERAL_ERROR,{message:"error while invoking session config callback"})}})),this.subscriptions.add(e.incomingEvent$.pipe((0,h.filter)(t=>"Web3Response"===t.event)).subscribe({next:this.handleIncomingEvent})),this.subscriptions.add(e.linked$.pipe((0,h.skip)(1),(0,h.tap)(t=>{var e;this.isLinked=t;let r=this.storage.getItem(v.LOCAL_STORAGE_ADDRESSES_KEY);if(t&&(this.session.linked=t),this.isUnlinkedErrorState=!1,r){let n=r.split(" "),i="true"===this.storage.getItem("IsStandaloneSigning");if(""!==n[0]&&!t&&this.session.linked&&!i){this.isUnlinkedErrorState=!0;let o=this.getSessionIdHash();null===(e=this.diagnostic)||void 0===e||e.log(f.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:o})}}})).subscribe()),this.subscriptions.add(e.sessionConfig$.pipe((0,h.filter)(t=>!!t.metadata&&"1"===t.metadata.__destroyed)).subscribe(()=>{var t;let r=e.isDestroyed;return null===(t=this.diagnostic)||void 0===t||t.log(f.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:r,sessionIdHash:this.getSessionIdHash()}),this.resetAndReload()})),this.subscriptions.add(e.sessionConfig$.pipe((0,h.filter)(t=>t.metadata&&void 0!==t.metadata.WalletUsername)).pipe((0,h.mergeMap)(e=>y.decrypt(e.metadata.WalletUsername,t.secret))).subscribe({next:t=>{this.storage.setItem(v.WALLET_USER_NAME_KEY,t)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(f.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"username"})}})),this.subscriptions.add(e.sessionConfig$.pipe((0,h.filter)(t=>t.metadata&&void 0!==t.metadata.AppVersion)).pipe((0,h.mergeMap)(e=>y.decrypt(e.metadata.AppVersion,t.secret))).subscribe({next:t=>{this.storage.setItem(v.APP_VERSION_KEY,t)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(f.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appversion"})}})),this.subscriptions.add(e.sessionConfig$.pipe((0,h.filter)(t=>t.metadata&&void 0!==t.metadata.ChainId&&void 0!==t.metadata.JsonRpcUrl)).pipe((0,h.mergeMap)(e=>(0,l.zip)(y.decrypt(e.metadata.ChainId,t.secret),y.decrypt(e.metadata.JsonRpcUrl,t.secret)))).pipe((0,h.distinctUntilChanged)()).subscribe({next:([t,e])=>{this.chainCallback&&this.chainCallback(t,e)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(f.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}})),this.subscriptions.add(e.sessionConfig$.pipe((0,h.filter)(t=>t.metadata&&void 0!==t.metadata.EthereumAddress)).pipe((0,h.mergeMap)(e=>y.decrypt(e.metadata.EthereumAddress,t.secret))).subscribe({next:t=>{this.accountsCallback&&this.accountsCallback([t]),x.accountRequestCallbackIds.size>
140&&(Array.from(x.accountRequestCallbackIds.values()).forEach(e=>{let r=(0,E.Web3ResponseMessage)({id:e,response:(0,S.RequestEthereumAccountsResponse)([t])});this.invokeCallback(Object.assign(Object.assign({},r),{id:e}))}),x.accountRequestCallbackIds.clear())},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(f.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}})),this.subscriptions.add(e.sessionConfig$.pipe((0,h.filter)(t=>t.metadata&&void 0!==t.metadata.AppSrc)).pipe((0,h.mergeMap)(e=>y.decrypt(e.metadata.AppSrc,t.secret))).subscribe({next:t=>{this.ui.setAppSrc(t)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(f.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appSrc"})}}));let r=this.options.uiConstructor({linkAPIUrl:this.options.linkAPIUrl,version:this.options.version,darkMode:this.options.darkMode,session:t,connected$:e.connected$,chainId$:this.dappDefaultChainSubject});return e.connect(),{session:t,ui:r,connection:e}}attachUI(){this.ui.attach()}resetAndReload(){this.connection.setSessionMetadata("__destroyed","1").pipe((0,h.timeout)(1e3),(0,h.catchError)(t=>(0,l.of)(null))).subscribe(t=>{var e,r,n;let i=this.ui.isStandalone();try{this.subscriptions.unsubscribe()}catch(o){null===(e=this.diagnostic)||void 0===e||e.log(f.EVENTS.GENERAL_ERROR,{message:"Had error unsubscribing"})}null===(r=this.diagnostic)||void 0===r||r.log(f.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();let s=b.Session.load(this.storage);if((null==s?void 0:s.id)===this._session.id?this.storage.clear():s&&(null===(n=this.diagnostic)||void 0===n||n.log(f.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:b.Session.hash(s.id)})),this._reloadOnDisconnect){this.ui.reloadUI();return}this.accountsCallback&&this.accountsCallback([],!0);let{session:a,ui:u,connection:c}=this.subscribe();this._session=a,this.connection=c,this.ui=u,i&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.attachUI()},t=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(f.EVENTS.FAILURE,{method:"relay::resetAndReload",message:`failed to reset and reload with ${t}`,sessionIdHash:this.getSessionIdHash()})})}setAppInfo(t,e){this.appName=t,this.appLogoUrl=e}getStorageItem(t){return this.storage.getItem(t)}get session(){return this._session}setStorageItem(t,e){this.storage.setItem(t,e)}signEthereumMessage(t,e,r,n){return this.sendRequest({method:_.Web3Method.signEthereumMessage,params:{message:(0,m.hexStringFromBuffer)(t,!0),address:e,addPrefix:r,typedDataJson:n||null}})}ethereumAddressFromSignedMessage(t,e,r){return this.sendRequest({method:_.Web3Method.ethereumAddressFromSignedMessage,params:{message:(0,m.hexStringFromBuffer)(t,!0),signature:(0,m.hexStringFromBuffer)(e,!0),addPrefix:r}})}signEthereumTransaction(t){return this.sendRequest({method:_.Web3Method.signEthereumTransaction,params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:(0,m.bigIntStringFromBN)(t.weiValue),data:(0,m.hexStringFromBuffer)(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?(0,m.bigIntStringFromBN)(t.gasPriceInWei):null,maxFeePerGas:t.gasPriceInWei?(0,m.bigIntStringFromBN)(t.gasPriceInWei):null,maxPriorityFeePerGas:t.gasPriceInWei?(0,m.bigIntStringFromBN)(t.gasPriceInWei):null,gasLimit:t.gasLimit?(0,m.bigIntStringFromBN)(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(t){return this.sendRequest({method:_.Web3Method.signEthereumTransaction,params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:(0,m.bigIntStringFromBN)(t.weiValue),data:(0,m.hexStringFromBuffer)(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?(0,m.bigIntStringFromBN)(t.gasPriceInWei):null,maxFeePerGas:t.maxFeePerGas?(0,m.bigIntStringFromBN)(t.maxFeePerGas):null,maxPriorityFeePerGas:t.maxPriorityFeePerGas?(0,m.bigIntStringFromBN)(t.maxPriorityFeePerGas):null,gasLimit:t.gasLimit?(0,m.bigIntStringFromBN)(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!0}})}submitEthereumTransaction(t,e){return this.sendRequest({method:_.Web3Method.submitEthereumTransaction,params:{signedTransaction:(0,m.hexStringFromBuffer)(t,!0),chainId:e}})}scanQRCode(t){return this.sendRequest({method:_.Web3Method.scanQRCode,params:{regExp:t}})}getQRCodeUrl(){return(0,m.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(t,e){return this.sendRequest({method:_.Web3Method.generic,params:{action:e,data:t}})}sendGenericMessage(t){return this.sendRequest(t)}sendRequest(t){let e=null,r=(0,m.randomBytesHex)(8),n=n=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,t.method,n),null==e||e()},i=new Promise((i,o)=>{this.ui.isStandalone()||(e=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:n,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(r,t=>{if(null==e||e(),t.errorMessage)return o(Error(t.errorMessage));i(t)}),this.ui.isStandalone()?this.sendRequestStandalone(r,t):this.publishWeb3RequestEvent(r,t)});return{promise:i,cancel:n}}setConnectDisabled(t){this.ui.setConnectDisabled(t)}setAccountsCallback(t){this.accountsCallback=t}setChainCallback(t){this.chainCallback=t}setDappDefaultChainCallback(t){this.dappDefaultChainSubject.next(t)}publishWeb3RequestEvent(t,e){var r;let n=(0,M.Web3RequestMessage)({id:t,request:e}),i=b.Session.load(this.storage);null===(r=this.diagnostic)||void 0===r||r.log(f.EVENTS.WEB3_REQUEST,{eventId:n.id,method:`relay::${n.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?b.Session.hash(i.id):"",isSessionMismatched:((null==i?void 0:i.id)!==this._session.id).toString()}),this.subscriptions.add(this.publishEvent("Web3Request",n,!0).subscribe({next:t=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(f.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:n.id,method:`relay::${n.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?b.Session.hash(i.id):"",isSessionMismatched:((null==i?void 0:i.id)!==this._session.id).toString()})},error:t=>{this.handleWeb3ResponseMessage((0,E.Web3ResponseMessage)({id:n.id,response:{method:n.request.method,errorMessage:t.message}}))}}))}publishWeb3RequestCanceledEvent(t){let e=(0,w.Web3RequestCanceledMessage)(t);this.subscriptions.add(this.publishEvent("Web3RequestCanceled",e,!1).subscribe())}publishEvent(t,e,r){let n=this.session.secret;return new l.Observable(t=>
14{y.encrypt(JSON.stringify(Object.assign(Object.assign({},e),{origin:location.origin})),n).then(e=>{t.next(e),t.complete()})}).pipe((0,h.mergeMap)(e=>this.connection.publishEvent(t,e,r)))}handleIncomingEvent(t){try{this.subscriptions.add(y.decrypt(t.data,this.session.secret).pipe((0,h.map)(t=>JSON.parse(t))).subscribe({next:t=>{let e=(0,E.isWeb3ResponseMessage)(t)?t:null;e&&this.handleWeb3ResponseMessage(e)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(f.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}))}catch(e){return}}handleWeb3ResponseMessage(t){var e;let{response:r}=t;if(null===(e=this.diagnostic)||void 0===e||e.log(f.EVENTS.WEB3_RESPONSE,{eventId:t.id,method:`relay::${r.method}`,sessionIdHash:this.getSessionIdHash()}),(0,S.isRequestEthereumAccountsResponse)(r)){x.accountRequestCallbackIds.forEach(e=>this.invokeCallback(Object.assign(Object.assign({},t),{id:e}))),x.accountRequestCallbackIds.clear();return}this.invokeCallback(t)}handleErrorResponse(t,e,r,n){this.handleWeb3ResponseMessage((0,E.Web3ResponseMessage)({id:t,response:(0,S.ErrorResponse)(e,(null!=r?r:p.WalletUIError.UserRejectedRequest).message,n)}))}invokeCallback(t){let e=this.relayEventManager.callbacks.get(t.id);e&&(e(t.response),this.relayEventManager.callbacks.delete(t.id))}requestEthereumAccounts(){let t={method:_.Web3Method.requestEthereumAccounts,params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},e=(0,m.randomBytesHex)(8),r=r=>{this.publishWeb3RequestCanceledEvent(e),this.handleErrorResponse(e,t.method,r)},n=new Promise((n,i)=>{var o;this.relayEventManager.callbacks.set(e,t=>{if(this.ui.hideRequestEthereumAccounts(),t.errorMessage)return i(Error(t.errorMessage));n(t)});let s=(null===(o=null==window?void 0:window.navigator)||void 0===o?void 0:o.userAgent)||null;if(s&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(s)){let a;try{a=(0,m.isInIFrame)()&&window.top?window.top.location:window.location}catch(u){a=window.location}a.href=`https://www.coinbase.com/connect-dapp?uri=${encodeURIComponent(a.href)}`;return}if(this.ui.inlineAccountsResponse()){let l=t=>{this.handleWeb3ResponseMessage((0,E.Web3ResponseMessage)({id:e,response:(0,S.RequestEthereumAccountsResponse)(t)}))};this.ui.requestEthereumAccounts({onCancel:r,onAccounts:l})}else{let h=c.ethErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>r(h)})}x.accountRequestCallbackIds.add(e),this.ui.inlineAccountsResponse()||this.ui.isStandalone()||this.publishWeb3RequestEvent(e,t)});return{promise:n,cancel:r}}selectProvider(t){let e={method:_.Web3Method.selectProvider,params:{providerOptions:t}},r=(0,m.randomBytesHex)(8),n=t=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,e.method,t)},i=new Promise((e,n)=>{this.relayEventManager.callbacks.set(r,t=>{if(t.errorMessage)return n(Error(t.errorMessage));e(t)});let i=t=>{this.handleWeb3ResponseMessage((0,E.Web3ResponseMessage)({id:r,response:(0,S.SelectProviderResponse)(g.ProviderType.Unselected)}))},o=t=>{this.handleWeb3ResponseMessage((0,E.Web3ResponseMessage)({id:r,response:(0,S.SelectProviderResponse)(t)}))};this.ui.selectProvider&&this.ui.selectProvider({onApprove:o,onCancel:i,providerOptions:t})});return{cancel:n,promise:i}}watchAsset(t,e,r,n,i,o){let s={method:_.Web3Method.watchAsset,params:{type:t,options:{address:e,symbol:r,decimals:n,image:i},chainId:o}},a=null,u=(0,m.randomBytesHex)(8),c=t=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,s.method,t),null==a||a()};this.ui.inlineWatchAsset()||(a=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:c,onResetConnection:this.resetAndReload}));let l=new Promise((c,l)=>{this.relayEventManager.callbacks.set(u,t=>{if(null==a||a(),t.errorMessage)return l(Error(t.errorMessage));c(t)});let h=t=>{this.handleWeb3ResponseMessage((0,E.Web3ResponseMessage)({id:u,response:(0,S.WatchAssetReponse)(!1)}))},f=()=>{this.handleWeb3ResponseMessage((0,E.Web3ResponseMessage)({id:u,response:(0,S.WatchAssetReponse)(!0)}))};this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:f,onCancel:h,type:t,address:e,symbol
14:r,decimals:n,image:i,chainId:o}),this.ui.inlineWatchAsset()||this.ui.isStandalone()||this.publishWeb3RequestEvent(u,s)});return{cancel:c,promise:l}}addEthereumChain(t,e,r,n,i,o){let s={method:_.Web3Method.addEthereumChain,params:{chainId:t,rpcUrls:e,blockExplorerUrls:n,chainName:i,iconUrls:r,nativeCurrency:o}},a=null,u=(0,m.randomBytesHex)(8),c=t=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,s.method,t),null==a||a()};this.ui.inlineAddEthereumChain(t)||(a=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:c,onResetConnection:this.resetAndReload}));let l=new Promise((e,r)=>{this.relayEventManager.callbacks.set(u,t=>{if(null==a||a(),t.errorMessage)return r(Error(t.errorMessage));e(t)});let n=t=>{this.handleWeb3ResponseMessage((0,E.Web3ResponseMessage)({id:u,response:(0,S.AddEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},i=t=>{this.handleWeb3ResponseMessage((0,E.Web3ResponseMessage)({id:u,response:(0,S.AddEthereumChainResponse)({isApproved:!0,rpcUrl:t})}))};this.ui.inlineAddEthereumChain(t)&&this.ui.addEthereumChain({onCancel:n,onApprove:i,chainId:s.params.chainId,rpcUrls:s.params.rpcUrls,blockExplorerUrls:s.params.blockExplorerUrls,chainName:s.params.chainName,iconUrls:s.params.iconUrls,nativeCurrency:s.params.nativeCurrency}),this.ui.inlineAddEthereumChain(t)||this.ui.isStandalone()||this.publishWeb3RequestEvent(u,s)});return{promise:l,cancel:c}}switchEthereumChain(t,e){let r={method:_.Web3Method.switchEthereumChain,params:Object.assign({chainId:t},{address:e})},n=(0,m.randomBytesHex)(8),i=t=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,r.method,t)},o=new Promise((t,e)=>{this.relayEventManager.callbacks.set(n,r=>r.errorMessage&&r.errorCode?e(c.ethErrors.provider.custom({code:r.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."})):r.errorMessage?e(Error(r.errorMessage)):void t(r));let i=t=>{"number"==typeof t?this.handleWeb3ResponseMessage((0,E.Web3ResponseMessage)({id:n,response:(0,S.ErrorResponse)(_.Web3Method.switchEthereumChain,p.WalletUIError.SwitchEthereumChainUnsupportedChainId.message,t)})):t instanceof p.WalletUIError?this.handleErrorResponse(n,_.Web3Method.switchEthereumChain,t,t.errorCode):this.handleWeb3ResponseMessage((0,E.Web3ResponseMessage)({id:n,response:(0,S.SwitchEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},o=t=>{this.handleWeb3ResponseMessage((0,E.Web3ResponseMessage)({id:n,response:(0,S.SwitchEthereumChainResponse)({isApproved:!0,rpcUrl:t})}))};this.ui.switchEthereumChain({onCancel:i,onApprove:o,chainId:r.params.chainId,address:r.params.address}),this.ui.inlineSwitchEthereumChain()||this.ui.isStandalone()||this.publishWeb3RequestEvent(n,r)});return{promise:o,cancel:i}}inlineAddEthereumChain(t){return this.ui.inlineAddEthereumChain(t)}getSessionIdHash(){return b.Session.hash(this._session.id)}sendRequestStandalone(t,e){let r=r=>{this.handleErrorResponse(t,e.method,r)},n=e=>{this.handleWeb3ResponseMessage((0,E.Web3ResponseMessage)({id:t,response:e}))};switch(e.method){case _.Web3Method.signEthereumMessage:this.ui.signEthereumMessage({request:e,onSuccess:n,onCancel:r});break;case _.Web3Method.signEthereumTransaction:this.ui.signEthereumTransaction({request:e,onSuccess:n,onCancel:r});break;case _.Web3Method.submitEthereumTransaction:this.ui.submitEthereumTransaction({request:e,onSuccess:n,onCancel:r});break;case _.Web3Method.ethereumAddressFromSignedMessage:this.ui.ethereumAddressFromSignedMessage({request:e,onSuccess:n});break;default:r()}}onSessionConfigChanged(t){}}x.accountRequestCallbackIds=new Set,o([u.default],x.prototype,"resetAndReload",null),o([u.default],x.prototype,"handleIncomingEvent",null),e.WalletSDKRelay=x},15633:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKRelayAbstract=e.APP_VERSION_KEY=e.LOCAL_STORAGE_ADDRESSES_KEY=e.WALLET_USER_NAME_KEY=void 0;let n=r(43681);e.WALLET_USER_NAME_KEY="walletUsername",e.LOCAL_STORAGE_ADDRESSES_KEY="Addresses",e.APP_VERSION_KEY="AppVersion",e.WalletSDKRelayAbstract=class{async makeEthereumJSONRPCRequest(t,e){if(!e)throw Error("Error: No jsonRpcUrl provided");return window.fetch(e,{method:"POST",body:JSON.stringify(t),mode:"cors",headers:{"Content-Type":"application/json"}}).then(t=>t.json()).then(t=>{if(!t)throw n.ethErrors.rpc.parse({});let{error:e}=t;if(e)throw(0,n.serializeError)(e);return t})}}},27472:function(t,e,r){"use strict";
14Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKRelayEventManager=void 0;let n=r(94643);e.WalletSDKRelayEventManager=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let t=this._nextRequestId,e=(0,n.prepend0x)(t.toString(16)),r=this.callbacks.get(e);return r&&this.callbacks.delete(e),t}}},93083:function(t,e){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.Web3Method=void 0,(r=e.Web3Method||(e.Web3Method={})).requestEthereumAccounts="requestEthereumAccounts",r.signEthereumMessage="signEthereumMessage",r.signEthereumTransaction="signEthereumTransaction",r.submitEthereumTransaction="submitEthereumTransaction",r.ethereumAddressFromSignedMessage="ethereumAddressFromSignedMessage",r.scanQRCode="scanQRCode",r.generic="generic",r.childRequestEthereumAccounts="childRequestEthereumAccounts",r.addEthereumChain="addEthereumChain",r.switchEthereumChain="switchEthereumChain",r.makeEthereumJSONRPCRequest="makeEthereumJSONRPCRequest",r.watchAsset="watchAsset",r.selectProvider="selectProvider"},85186:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Web3RequestCanceledMessage=void 0;let n=r(85813);e.Web3RequestCanceledMessage=function(t){return{type:n.RelayMessageType.WEB3_REQUEST_CANCELED,id:t}}},3770:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Web3RequestMessage=void 0;let n=r(85813);e.Web3RequestMessage=function(t){return Object.assign({type:n.RelayMessageType.WEB3_REQUEST},t)}},67386:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EthereumAddressFromSignedMessageResponse=e.SubmitEthereumTransactionResponse=e.SignEthereumTransactionResponse=e.SignEthereumMessageResponse=e.isRequestEthereumAccountsResponse=e.SelectProviderResponse=e.WatchAssetReponse=e.RequestEthereumAccountsResponse=e.SwitchEthereumChainResponse=e.AddEthereumChainResponse=e.ErrorResponse=void 0;let n=r(93083);e.ErrorResponse=function(t,e,r){return{method:t,errorMessage:e,errorCode:r}},e.AddEthereumChainResponse=function(t){return{method:n.Web3Method.addEthereumChain,result:t}},e.SwitchEthereumChainResponse=function(t){return{method:n.Web3Method.switchEthereumChain,result:t}},e.RequestEthereumAccountsResponse=function(t){return{method:n.Web3Method.requestEthereumAccounts,result:t}},e.WatchAssetReponse=function(t){return{method:n.Web3Method.watchAsset,result:t}},e.SelectProviderResponse=function(t){return{method:n.Web3Method.selectProvider,result:t}},e.isRequestEthereumAccountsResponse=function(t){return t&&t.method===n.Web3Method.requestEthereumAccounts},e.SignEthereumMessageResponse=function(t){return{method:n.Web3Method.signEthereumMessage,result:t}},e.SignEthereumTransactionResponse=function(t){return{method:n.Web3Method.signEthereumTransaction,result:t}},e.SubmitEthereumTransactionResponse=function(t){return{method:n.Web3Method.submitEthereumTransaction,result:t}},e.EthereumAddressFromSignedMessageResponse=function(t){return{method:n.Web3Method.ethereumAddressFromSignedMessage,result:t}}},50287:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isWeb3ResponseMessage=e.Web3ResponseMessage=void 0;let n=r(85813);e.Web3ResponseMessage=function(t){return Object.assign({type:n.RelayMessageType.WEB3_RESPONSE},t)},e.isWeb3ResponseMessage=function(t){return t&&t.type===n.RelayMessageType.WEB3_RESPONSE}},20235:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decrypt=e.encrypt=void 0;let n=r(67734),i=r(94643);async function o(t,e){if(64!==e.length)throw Error("secret must be 256 bits");let r=crypto.getRandomValues(new Uint8Array(12)),n=await crypto.subtle.importKey("raw",(0,i.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),o=new TextEncoder,s=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:r},n,o.encode(t)),a=s.slice(s.byteLength-16),u=s.slice(0,s.byteLength-16),c=new Uint8Array(a),l=new Uint8Array(u),h=new Uint8Array([...r,...c,...l]);return(0,i.uint8ArrayToHex)(h)}e.encrypt=o,e.decrypt=function(t,e){if(64!==e.length)throw Error("secret must be 256 bits");return new n.Observable(r=>{!async function(){let n=await crypto.subtle.importKey("raw",(0,i.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),o=(0,i.hexStringToUint8Array)(t),s=o.slice(0,12),a=o.slice(12,28),u=o.slice(28),c=new Uint8Array([...u,...a
14]),l={name:"AES-GCM",iv:new Uint8Array(s)};try{let h=await window.crypto.subtle.decrypt(l,n,c),f=new TextDecoder;r.next(f.decode(h)),r.complete()}catch(d){r.error(d)}}()})}},91295:function(t,e){"use strict";var r;function n(){return t=>t}Object.defineProperty(e,"__esModule",{value:!0}),e.ProviderType=e.RegExpString=e.IntNumber=e.BigIntString=e.AddressString=e.HexString=e.OpaqueType=void 0,e.OpaqueType=n,e.HexString=n(),e.AddressString=n(),e.BigIntString=n(),e.IntNumber=function(t){return Math.floor(t)},e.RegExpString=n(),(r=e.ProviderType||(e.ProviderType={})).CoinbaseWallet="CoinbaseWallet",r.MetaMask="MetaMask",r.Unselected=""},94643:function(t,e,r){"use strict";var n=r(48764).Buffer,i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.isInIFrame=e.createQrUrl=e.getFavicon=e.range=e.isBigNumber=e.ensureParsedJSONObject=e.ensureBN=e.ensureRegExpString=e.ensureIntNumber=e.ensureBuffer=e.ensureAddressString=e.ensureEvenLengthHexString=e.ensureHexString=e.isHexString=e.prepend0x=e.strip0x=e.has0xPrefix=e.hexStringFromIntNumber=e.intNumberFromHexString=e.bigIntStringFromBN=e.hexStringFromBuffer=e.hexStringToUint8Array=e.uint8ArrayToHex=e.randomBytesHex=void 0;let o=i(r(13550)),s=r(80129),a=r(91295),u=/^[0-9]*$/,c=/^[a-f0-9]*$/;function l(t){return[...t].map(t=>t.toString(16).padStart(2,"0")).join("")}function h(t){return t.startsWith("0x")||t.startsWith("0X")}function f(t){return h(t)?t.slice(2):t}function d(t){return h(t)?"0x"+t.slice(2):"0x"+t}function p(t){if("string"!=typeof t)return!1;let e=f(t).toLowerCase();return c.test(e)}function g(t,e=!1){if("string"==typeof t){let r=f(t).toLowerCase();if(c.test(r))return(0,a.HexString)(e?"0x"+r:r)}throw Error(`"${String(t)}" is not a hexadecimal string`)}function m(t,e=!1){let r=g(t,!1);return r.length%2==1&&(r=(0,a.HexString)("0"+r)),e?(0,a.HexString)("0x"+r):r}function y(t){if("number"==typeof t&&Number.isInteger(t))return(0,a.IntNumber)(t);if("string"==typeof t){if(u.test(t))return(0,a.IntNumber)(Number(t));if(p(t))return(0,a.IntNumber)(new o.default(m(t,!1),16).toNumber())}throw Error(`Not an integer: ${String(t)}`)}function b(t){if(null==t||"function"!=typeof t.constructor)return!1;let{constructor:e}=t;return"function"==typeof e.config&&"number"==typeof e.EUCLID}e.randomBytesHex=function(t){return l(crypto.getRandomValues(new Uint8Array(t)))},e.uint8ArrayToHex=l,e.hexStringToUint8Array=function(t){return new Uint8Array(t.match(/.{1,2}/g).map(t=>parseInt(t,16)))},e.hexStringFromBuffer=function(t,e=!1){let r=t.toString("hex");return(0,a.HexString)(e?"0x"+r:r)},e.bigIntStringFromBN=function(t){return(0,a.BigIntString)(t.toString(10))},e.intNumberFromHexString=function(t){return(0,a.IntNumber)(new o.default(m(t,!1),16).toNumber())},e.hexStringFromIntNumber=function(t){return(0,a.HexString)("0x"+new o.default(t).toString(16))},e.has0xPrefix=h,e.strip0x=f,e.prepend0x=d,e.isHexString=p,e.ensureHexString=g,e.ensureEvenLengthHexString=m,e.ensureAddressString=function(t){if("string"==typeof t){let e=f(t).toLowerCase();if(p(e)&&40===e.length)return(0,a.AddressString)(d(e))}throw Error(`Invalid Ethereum address: ${String(t)}`)},e.ensureBuffer=function(t){if(n.isBuffer(t))return t;if("string"==typeof t){if(!p(t))return n.from(t,"utf8");{let e=m(t,!1);return n.from(e,"hex")}}throw Error(`Not binary data: ${String(t)}`)},e.ensureIntNumber=y,e.ensureRegExpString=function(t){if(t instanceof RegExp)return(0,a.RegExpString)(t.toString());throw Error(`Not a RegExp: ${String(t)}`)},e.ensureBN=function(t){if(null!==t&&(o.default.isBN(t)||b(t)))return new o.default(t.toString(10),10);if("number"==typeof t)return new o.default(y(t));if("string"==typeof t){if(u.test(t))return new o.default(t,10);if(p(t))return new o.default(m(t,!1),16)}throw Error(`Not an integer: ${String(t)}`)},e.ensureParsedJSONObject=function(t){if("string"==typeof t)return JSON.parse(t);if("object"==typeof t)return t;throw Error(`Not a JSON string or an object: ${String(t)}`)},e.isBigNumber=b,e.range=function(t,e){return Array.from({length:e-t},(e,r)=>t+r)},e.getFavicon=function(){let t=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:e,host:r}=document.location,n=t?t.getAttribute("href"):null;return!n||n.startsWith("javascript:")?null:n.startsWith("http://")||n.startsWith("https://")||n.startsWith("data:")?n:n.startsWith("//")?e+n:`${e}//${r}${n}`},e.createQrUrl=function(t,e,r,n,i,o){let a=(0,s.stringify)({[n?"parent-id":"id"]:t,secret:e,server:r,v:i,chainId:o}),u=`${r}/#/link?${a}`;return u},e.isInIFrame=function(){try{return null!==window.frameElement}catch(t){return!1}}},36089:function(t,e,r){var n=r(48764).Buffer;let i=r(32518),o=r(13550);function s(t){if(t.startsWith("int["))return"int256"+t.slice(3);if("int"===t)return"int256";if(t.startsWith("uint["))return"uint256"+t.slice(4);if("uint"===t)return"uint256";if(t.startsWith("fixed["))return"fixed128x128"+t.slice(5);if("fixed"===t)return"fixed128x128";if(t.startsWith("ufixed["))return"ufixed128x128"+t.slice(6);else if("ufixed"===t)return"ufixed128x128";return t}function a(t){return parseInt(/^\D+(\d+)$/.exec(t)[1],10)}function u(t){var e=/^\D+(\d+)x(\d+)$/.exec(t);return[parseInt(e[1],10),parseInt(e[2],10)]}function c(t){var e=t.match(/(.*)\[(.*?)\]$/);return e?""===e[2]?"dynamic":parseInt(e[2],10):null}function l(t){var e=typeof t;if("string"===e)return i.isHexString(t)?new o(i.stripHexPrefix(t),16):new o(t,10);if("number"===e)return new o(t);if(t.toArray)return t;throw Error("Argument is not a number")}function h(t,e){if("address"===t)return h("uint160",l(e));if("bool"===t)return h("uint8",e?1:0);if("string"===t)return h("bytes",new n(e,"utf8"));if((p=t).lastIndexOf("]")===p.length-1){if(void 0===e.length)throw Error("Not an array?");if("dynamic"!==(r=c(t))&&0!==r&&e.length>r)throw Error("Elements exceed array size: "+r);for(d in f=[],t=t.slice(0,t.lastIndexOf("[")),"string"==typeof e&&(e=JSON.parse(e)),e)f.push(h(t,e[d]));if("dynamic"===r){var r,s,f,d,p,g=h("uint256",e.length);f.unshift(g)}return n.concat(f)}if("bytes"===t)return e=new n(e),f=n.concat([h("uint256",e.length),e]),e.length%32!=0&&(f=n.concat([f,i.zeros(32-e.length%32)])),f;if(t.startsWith("bytes")){if((r=a(t))<1||r>32)throw Error("Invalid bytes<N> width: "+r);
14return i.setLengthRight(e,32)}else if(t.startsWith("uint")){if((r=a(t))%8||r<8||r>256)throw Error("Invalid uint<N> width: "+r);if((s=l(e)).bitLength()>r)throw Error("Supplied uint exceeds width: "+r+" vs "+s.bitLength());if(s<0)throw Error("Supplied uint is negative");return s.toArrayLike(n,"be",32)}else if(t.startsWith("int")){if((r=a(t))%8||r<8||r>256)throw Error("Invalid int<N> width: "+r);if((s=l(e)).bitLength()>r)throw Error("Supplied int exceeds width: "+r+" vs "+s.bitLength());return s.toTwos(256).toArrayLike(n,"be",32)}else if(t.startsWith("ufixed")){if(r=u(t),(s=l(e))<0)throw Error("Supplied ufixed is negative");return h("uint256",s.mul(new o(2).pow(new o(r[1]))))}else if(t.startsWith("fixed"))return r=u(t),h("int256",l(e).mul(new o(2).pow(new o(r[1]))));throw Error("Unsupported or invalid type: "+t)}function f(t,e){if(t.length!==e.length)throw Error("Number of types are not matching the values");for(var r,o,u=[],c=0;c<t.length;c++){var h=s(t[c]),f=e[c];if("bytes"===h)u.push(f);else if("string"===h)u.push(new n(f,"utf8"));else if("bool"===h)u.push(new n(f?"01":"00","hex"));else if("address"===h)u.push(i.setLength(f,20));else if(h.startsWith("bytes")){if((r=a(h))<1||r>32)throw Error("Invalid bytes<N> width: "+r);u.push(i.setLengthRight(f,r))}else if(h.startsWith("uint")){if((r=a(h))%8||r<8||r>256)throw Error("Invalid uint<N> width: "+r);if((o=l(f)).bitLength()>r)throw Error("Supplied uint exceeds width: "+r+" vs "+o.bitLength());u.push(o.toArrayLike(n,"be",r/8))}else if(h.startsWith("int")){if((r=a(h))%8||r<8||r>256)throw Error("Invalid int<N> width: "+r);if((o=l(f)).bitLength()>r)throw Error("Supplied int exceeds width: "+r+" vs "+o.bitLength());u.push(o.toTwos(r).toArrayLike(n,"be",r/8))}else throw Error("Unsupported or invalid type: "+h)}return n.concat(u)}t.exports={rawEncode:function(t,e){var r=[],i=[],o=32*t.length;for(var a in t){var u=s(t[a]),l=h(u,e[a]);"string"===u||"bytes"===u||"dynamic"===c(u)?(r.push(h("uint256",o)),i.push(l),o+=l.length):r.push(l)}return n.concat(r.concat(i))},solidityPack:f,soliditySHA3:function(t,e){return i.keccak(f(t,e))}}},14497:function(t,e,r){var n=r(48764).Buffer;let i=r(32518),o=r(36089),s={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},a={encodeData(t,e,r,s=!0){let a=["bytes32"],u=[this.hashType(t,r)];if(s){let c=(t,e,a)=>{if(void 0!==r[e])return["bytes32",null==a?"0x0000000000000000000000000000000000000000000000000000000000000000":i.keccak(this.encodeData(e,a,r,s))];if(void 0===a)throw Error(`missing value for field ${t} of type ${e}`);if("bytes"===e)return["bytes32",i.keccak(a)];if("string"===e)return"string"==typeof a&&(a=n.from(a,"utf8")),["bytes32",i.keccak(a)];if(e.lastIndexOf("]")===e.length-1){let u=e.slice(0,e.lastIndexOf("[")),l=a.map(e=>c(t,u,e));return["bytes32",i.keccak(o.rawEncode(l.map(([t])=>t),l.map(([,t])=>t)))]}return[e,a]};for(let l of r[t]){let[h,f]=c(l.name,l.type,e[l.name]);a.push(h),u.push(f)}}else for(let d of r[t]){let p=e[d.name];if(void 0!==p){if("bytes"===d.type)a.push("bytes32"),p=i.keccak(p),u.push(p);else if("string"===d.type)a.push("bytes32"),"string"==typeof p&&(p=n.from(p,"utf8")),p=i.keccak(p),u.push(p);else if(void 0!==r[d.type])a.push("bytes32"),p=i.keccak(this.encodeData(d.type,p,r,s)),u.push(p);else if(d.type.lastIndexOf("]")===d.type.length-1)throw Error("Arrays currently unimplemented in encodeData");else a.push(d.type),u.push(p)}}return o.rawEncode(a,u)},encodeType(t,e){let r="",n=this.findTypeDependencies(t,e).filter(e=>e!==t);for(let i of n=[t].concat(n.sort())){let o=e[i];if(!o)throw Error("No type definition specified: "+i);r+=i+"("+e[i].map(({name:t,type:e})=>e+" "+t).join(",")+")"}return r},findTypeDependencies(t,e,r=[]){if(t=t.match(/^\w*/)[0],r.includes(t)||void 0===e[t])return r;for(let n of(r.push(t),e[t]))for(let i of this.findTypeDependencies(n.type,e,r))r.includes(i)||r.push(i);return r},hashStruct(t,e,r,n=!0){return i.keccak(this.encodeData(t,e,r,n))},hashType(t,e){return i.keccak(this.encodeType(t,e))},sanitizeData(t){let e={};for(let r in s.properties)t[r]&&(e[r]=t[r]);return e.types&&(e.types=Object.assign({EIP712Domain:[]},e.types)),e},hash(t,e=!0){let r=this.sanitizeData(t),o=[n.from("1901","hex")];return o.push(this.hashStruct("EIP712Domain",r.domain,r.types,e)),"EIP712Domain"!==r.primaryType&&o.push(this.hashStruct(r.primaryType,r.message,r.types,e)),i.keccak(n.concat(o))}};t.exports={TYPED_MESSAGE_SCHEMA:s,TypedDataUtils:a,hashForSignTypedDataLegacy:function(t){return function(t){let e=Error("Expect argument to be non-empty array");if("object"!=typeof t||!t.length)throw e;let r=t.map(function(t){return"bytes"===t.type?i.toBuffer(t.value):t.value}),n=t.map(function(t){return t.type}),s=t.map(function(t){if(!t.name)throw e;return t.type+" "+t.name});return o.soliditySHA3(["bytes32","bytes32"],[o.soliditySHA3(Array(t.length).fill("string"),s),o.soliditySHA3(n,r)])}(t.data)},hashForSignTypedData_v3:function(t){return a.hash(t.data,!1)},hashForSignTypedData_v4:function(t){return a.hash(t.data)}}},32518:function(t,e,r){var n=r(48764).Buffer;let i=r(95811),o=r(13550);function s(t){return n.allocUnsafe(t).fill(0)}function a(t,e,r){let n=s(e);return(t=u(t),r)?t.length<e?(t.copy(n),n):t.slice(0,e):t.length<e?(t.copy(n,e-t.length),n):t.slice(-e)}function u(t){if(!n.isBuffer(t)){if(Array.isArray(t))t=n.from(t);else if("string"==typeof t){var e;t=c(t)?n.from((e=l(t)).length%2?"0"+e:e,"hex"):n.from(t)}else if("number"==typeof t)t=intToBuffer(t);else if(null==t)t=n.allocUnsafe(0);else if(o.isBN(t))t=t.toArrayLike(n);else if(t.toArray)t=n.from(t.toArray());else throw Error("invalid type")}return t}function c(t){return"string"==typeof t&&t.match(/^0x[0-9A-Fa-f]*$/)}function l(t){return"string"==typeof t&&t.startsWith("0x")?t.slice(2):t}t.exports={zeros:s,setLength:a,setLengthRight:function(t,e){return a(t,e,!0)},isHexString:c,stripHexPrefix:l,toBuffer:u,bufferToHex:function(t){return"0x"+(t=u(t)).toString("hex")},keccak:function(t,e){return t=u(t),e||(e=256),i("keccak"+e).update(t).digest()}}},7713:function(t){function e(t){this.mode=n.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,r=this.data.length;e<r;e++){var i=[],o=this.data.charCodeAt(e);o>65536?(i[0]=240|(1835008&o)>>>18,i[1]=128|(258048&o)>>>12,i[2]=128|(4032&o)>>>6,i[3]=128|63&o):o>2048?(i[0]=224|(61440&o)>>>12,i[1]=128|(4032&o)>>>6,i[2]=128|63&o):o>128?(i[0]=192|(1984&o)>>>6,i[1]=128|63&o):i[0]=o,this.parsedData.push(i)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function r(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}e.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,r=this.parsedData.length;e<r;e++)t.put(this.parsedData[e],8)}},r.prototype={addData:function(t){var r=new e(t);this.dataList.push(r),this.dataCache=null},isDark:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw Error(t+","+e);return this.modules[t][e]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(t,e){this.moduleCount=4*this.typeNumber+17,this.modules=Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[n][i]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,e),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=r.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1)&&!(this.moduleCount<=t+r))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4?this.modules[t+r][e+n]=!0:this.modules[t+r][e+n]=!1)},getBestMaskPattern:function(){for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=s.getLostPoint(this);(0==r||t>n)&&(t=n,e=r)}return e},createMovieClip:function(t,e,r){var n=t.createEmptyMovieClip(e,r);this.make();for(var i=0;i<this.modules.length;i++)for(var o=1*i,s=0;s<this.modules[i].length;s++){var a=1*s;this.modules[i][s]&&(n.beginFill(0,100),n.moveTo(a,o),n.lineTo(a+1,o),n.lineTo(a+1,o+1),n.lineTo(a,o+1),n.endFill())}return n},setupTimingPattern:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=e%2==0)},setupPositionAdjustPattern:function(){for(var t=s.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var r=0;r<t.length;r++){var n=t[e],i=t[r];
14if(null==this.modules[n][i])for(var o=-2;o<=2;o++)for(var a=-2;a<=2;a++)-2==o||2==o||-2==a||2==a||0==o&&0==a?this.modules[n+o][i+a]=!0:this.modules[n+o][i+a]=!1}},setupTypeNumber:function(t){for(var e=s.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var n=!t&&(e>>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(var r=0;r<18;r++){var n=!t&&(e>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},setupTypeInfo:function(t,e){for(var r=this.errorCorrectLevel<<3|e,n=s.getBCHTypeInfo(r),i=0;i<15;i++){var o=!t&&(n>>i&1)==1;i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(var i=0;i<15;i++){var o=!t&&(n>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var r=-1,n=this.moduleCount-1,i=7,o=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var u=0;u<2;u++)if(null==this.modules[n][a-u]){var c=!1;o<t.length&&(c=(t[o]>>>i&1)==1),s.getMask(e,n,a-u)&&(c=!c),this.modules[n][a-u]=c,-1==--i&&(o++,i=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}}},r.PAD0=236,r.PAD1=17,r.createData=function(t,e,n){for(var i=l.getRSBlocks(t,e),o=new h,a=0;a<n.length;a++){var u=n[a];o.put(u.mode,4),o.put(u.getLength(),s.getLengthInBits(u.mode,t)),u.write(o)}for(var c=0,a=0;a<i.length;a++)c+=i[a].dataCount;if(o.getLengthInBits()>8*c)throw Error("code length overflow. ("+o.getLengthInBits()+">"+8*c+")");for(o.getLengthInBits()+4<=8*c&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*c)&&(o.put(r.PAD0,8),!(o.getLengthInBits()>=8*c));)o.put(r.PAD1,8);return r.createBytes(o,i)},r.createBytes=function(t,e){for(var r=0,n=0,i=0,o=Array(e.length),a=Array(e.length),u=0;u<e.length;u++){var l=e[u].dataCount,h=e[u].totalCount-l;n=Math.max(n,l),i=Math.max(i,h),o[u]=Array(l);for(var f=0;f<o[u].length;f++)o[u][f]=255&t.buffer[f+r];r+=l;var d=s.getErrorCorrectPolynomial(h),p=new c(o[u],d.getLength()-1).mod(d);a[u]=Array(d.getLength()-1);for(var f=0;f<a[u].length;f++){var g=f+p.getLength()-a[u].length;a[u][f]=g>=0?p.get(g):0}}for(var m=0,f=0;f<e.length;f++)m+=e[f].totalCount;for(var y=Array(m),b=0,f=0;f<n;f++)for(var u=0;u<e.length;u++)f<o[u].length&&(y[b++]=o[u][f]);for(var f=0;f<i;f++)for(var u=0;u<e.length;u++)f<a[u].length&&(y[b++]=a[u][f]);return y};for(var n={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},i={L:1,M:0,Q:3,H:2},o={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},s={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){for(var e=t<<10;s.getBCHDigit(e)-s.getBCHDigit(s.G15)>=0;)e^=s.G15<<s.getBCHDigit(e)-s.getBCHDigit(s.G15);return(t<<10|e)^s.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;s.getBCHDigit(e)-s.getBCHDigit(s.G18)>=0;)e^=s.G18<<s.getBCHDigit(e)-s.getBCHDigit(s.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e},getPatternPosition:function(t){return s.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,r){switch(t){case o.PATTERN000:return(e+r)%2==0;case o.PATTERN001:return e%2==0;case o.PATTERN010:return r%3==0;case o.PATTERN011:return(e+r)%3==0;case o.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case o.PATTERN101:return e*r%2+e*r%3==0;case o.PATTERN110:return(e*r%2+e*r%3)%2==0;case o.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new c([1],0),r=0;r<t;r++)e=e.multiply(new c([1,a.gexp(r)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case n.MODE_NUMBER:return 10;case n.MODE_ALPHA_NUM:return 9;
14case n.MODE_8BIT_BYTE:case n.MODE_KANJI:return 8;default:throw Error("mode:"+t)}else if(e<27)switch(t){case n.MODE_NUMBER:return 12;case n.MODE_ALPHA_NUM:return 11;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 10;default:throw Error("mode:"+t)}else if(e<41)switch(t){case n.MODE_NUMBER:return 14;case n.MODE_ALPHA_NUM:return 13;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 12;default:throw Error("mode:"+t)}else throw Error("type:"+e)},getLostPoint:function(t){for(var e=t.getModuleCount(),r=0,n=0;n<e;n++)for(var i=0;i<e;i++){for(var o=0,s=t.isDark(n,i),a=-1;a<=1;a++)if(!(n+a<0)&&!(e<=n+a))for(var u=-1;u<=1;u++)!(i+u<0)&&!(e<=i+u)&&(0!=a||0!=u)&&s==t.isDark(n+a,i+u)&&o++;o>5&&(r+=3+o-5)}for(var n=0;n<e-1;n++)for(var i=0;i<e-1;i++){var c=0;t.isDark(n,i)&&c++,t.isDark(n+1,i)&&c++,t.isDark(n,i+1)&&c++,t.isDark(n+1,i+1)&&c++,(0==c||4==c)&&(r+=3)}for(var n=0;n<e;n++)for(var i=0;i<e-6;i++)t.isDark(n,i)&&!t.isDark(n,i+1)&&t.isDark(n,i+2)&&t.isDark(n,i+3)&&t.isDark(n,i+4)&&!t.isDark(n,i+5)&&t.isDark(n,i+6)&&(r+=40);for(var i=0;i<e;i++)for(var n=0;n<e-6;n++)t.isDark(n,i)&&!t.isDark(n+1,i)&&t.isDark(n+2,i)&&t.isDark(n+3,i)&&t.isDark(n+4,i)&&!t.isDark(n+5,i)&&t.isDark(n+6,i)&&(r+=40);for(var l=0,i=0;i<e;i++)for(var n=0;n<e;n++)t.isDark(n,i)&&l++;return r+10*(Math.abs(100*l/e/e-50)/5)}},a={glog:function(t){if(t<1)throw Error("glog("+t+")");return a.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return a.EXP_TABLE[t]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},u=0;u<8;u++)a.EXP_TABLE[u]=1<<u;for(var u=8;u<256;u++)a.EXP_TABLE[u]=a.EXP_TABLE[u-4]^a.EXP_TABLE[u-5]^a.EXP_TABLE[u-6]^a.EXP_TABLE[u-8];for(var u=0;u<255;u++)a.LOG_TABLE[a.EXP_TABLE[u]]=u;function c(t,e){if(void 0==t.length)throw Error(t.length+"/"+e);for(var r=0;r<t.length&&0==t[r];)r++;this.num=Array(t.length-r+e);for(var n=0;n<t.length-r;n++)this.num[n]=t[n+r]}function l(t,e){this.totalCount=t,this.dataCount=e}function h(){this.buffer=[],this.length=0}c.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=Array(this.getLength()+t.getLength()-1),r=0;r<this.getLength();r++)for(var n=0;n<t.getLength();n++)e[r+n]^=a.gexp(a.glog(this.get(r))+a.glog(t.get(n)));return new c(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=a.glog(this.get(0))-a.glog(t.get(0)),r=Array(this.getLength()),n=0;n<this.getLength();n++)r[n]=this.get(n);for(var n=0;n<t.getLength();n++)r[n]^=a.gexp(a.glog(t.get(n))+e);return new c(r,0).mod(t)}},l.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],l.getRSBlocks=function(t,e){var r=l.getRsBlockTable(t,e);if(void 0==r)throw Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var n=r.length/3,i=[],o=0;o<n;o++)for(var s=r[3*o+0],a=r[3*o+1],u=r[3*o+2],c=0;c<s;c++)i.push(new l(a,u));return i},l.getRsBlockTable=function(t,e){switch(e){case i.L:return l.RS_BLOCK_TABLE[(t-1)*4+0];case i.M:return l.RS_BLOCK_TABLE[(t-1)*4+1];case i.Q:return l.RS_BLOCK_TABLE[(t-1)*4+2];case i.H:return l.RS_BLOCK_TABLE[(t-1)*4+3];default:return}},h.prototype={get:function(t){var e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)==1},put:function(t,e){for(var r=0;r<e;r++)this.putBit((t>>>e-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var f=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,8
146,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function d(t){if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M",image:{svg:"",width:0,height:0}},"string"==typeof t&&(t={content:t}),t)for(var e in t)this.options[e]=t[e];if("string"!=typeof this.options.content)throw Error("Expected 'content' as string!");if(0===this.options.content.length)throw Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0)||!(this.options.height>0))throw Error("Expected 'width' or 'height' value to be higher than zero!");var n=this.options.content,o=function(t,e){for(var r,n=(r=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a")).length+(r.length!=t?3:0),i=1,o=0,s=0,a=f.length;s<=a;s++){var u=f[s];if(!u)throw Error("Content too long: expected "+o+" but got "+n);switch(e){case"L":o=u[0];break;case"M":o=u[1];break;case"Q":o=u[2];break;case"H":o=u[3];break;default:throw Error("Unknwon error correction level: "+e)}if(n<=o)break;i++}if(i>f.length)throw Error("Content too long");return i}(n,this.options.ecl),s=function(t){switch(t){case"L":return i.L;case"M":return i.M;case"Q":return i.Q;case"H":return i.H;default:throw Error("Unknwon error correction level: "+t)}}(this.options.ecl);this.qrcode=new r(o,s),this.qrcode.addData(n),this.qrcode.make()}d.prototype.svg=function(t){var e=this.options||{},r=this.qrcode.modules;void 0===t&&(t={container:e.container||"svg"});for(var n=void 0===e.pretty||!!e.pretty,i=n?" ":"",o=n?"\r\n":"",s=e.width,a=e.height,u=r.length,c=s/(u+2*e.padding),l=a/(u+2*e.padding),h=void 0!==e.join&&!!e.join,f=void 0!==e.swap&&!!e.swap,d=void 0===e.xmlDeclaration||!!e.xmlDeclaration,p=void 0!==e.predefined&&!!e.predefined,g=p?i+'<defs><path id="qrmodule" d="M0 0 h'+l+" v"+c+' H0 z" style="fill:'+e.color+';shape-rendering:crispEdges;" /></defs>'+o:"",m=i+'<rect x="0" y="0" width="'+s+'" height="'+a+'" style="fill:'+e.background+';shape-rendering:crispEdges;"/>'+o,y="",b="",v=0;v<u;v++)for(var _=0;_<u;_++)if(r[_][v]){var w=_*c+e.padding*c,M=v*l+e.padding*l;if(f){var S=w;w=M,M=S}if(h){var E=c+w,x=l+M;w=Number.isInteger(w)?Number(w):w.toFixed(2),M=Number.isInteger(M)?Number(M):M.toFixed(2),E=Number.isInteger(E)?Number(E):E.toFixed(2),b+="M"+w+","+M+" V"+(x=Number.isInteger(x)?Number(x):x.toFixed(2))+" H"+E+" V"+M+" H"+w+" Z "}else p?y+=i+'<use x="'+w.toString()+'" y="'+M.toString()+'" href="#qrmodule" />'+o:y+=i+'<rect x="'+w.toString()+'" y="'+M.toString()+'" width="'+c+'" height="'+l+'" style="fill:'+e.color+';shape-rendering:crispEdges;"/>'+o}h&&(y=i+'<path x="0" y="0" style="fill:'+e.color+';shape-rendering:crispEdges;" d="'+b+'" />');let k="";if(void 0!==this.options.image&&this.options.image.svg){let A=s*this.options.image.width/100,C=a*this.options.image.height/100;k+=`<svg x="${s/2-A/2}" y="${a/2-C/2}" width="${A}" height="${C}" viewBox="0 0 100 100" preserveAspectRatio="xMinYMin meet">`,k+=this.options.image.svg+o,k+="</svg>"}var R="";switch(t.container){case"svg":d&&(R+='<?xml version="1.0" standalone="yes"?>'+o),R+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="'+s+'" height="'+a+'">'+o,R+=g+m+y,R+=k,R+="</svg>";break;case"svg-viewbox":d&&(R+='<?xml version="1.0" standalone="yes"?>'+o),R+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 '+s+" "+a+'">'+o,R+=g+m+y,R+=k,R+="</svg>";break;case"g":R+='<g width="'+s+'" height="'+a+'">'+o,R+=g+m+y,R+=k,R+="</g>";break;default:R+=(g+m+y+k).replace(/^\s+/,"")}return R},t.exports=d}
14,43604:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LIB_VERSION=void 0,e.LIB_VERSION="3.6.3"},48053:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let n=r(17187);function i(t,e,r){try{Reflect.apply(t,e,r)}catch(n){setTimeout(()=>{throw n})}}class o extends n.EventEmitter{emit(t,...e){let r="error"===t,n=this._events;if(void 0!==n)r=r&&void 0===n.error;else if(!r)return!1;if(r){let o;if(e.length>0&&([o]=e),o instanceof Error)throw o;let s=Error(`Unhandled error.${o?` (${o.message})`:""}`);throw s.context=o,s}let a=n[t];if(void 0===a)return!1;if("function"==typeof a)i(a,this,e);else{let u=a.length,c=function(t){let e=t.length,r=Array(e);for(let n=0;n<e;n+=1)r[n]=t[n];return r}(a);for(let l=0;l<u;l+=1)i(c[l],this,e)}return!0}}e.default=o},32101:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EthereumProviderError=e.EthereumRpcError=void 0;let n=r(4445);class i extends Error{constructor(t,e,r){if(!Number.isInteger(t))throw Error('"code" must be an integer.');if(!e||"string"!=typeof e)throw Error('"message" must be a nonempty string.');super(e),this.code=t,void 0!==r&&(this.data=r)}serialize(){let t={code:this.code,message:this.message};return void 0!==this.data&&(t.data=this.data),this.stack&&(t.stack=this.stack),t}toString(){return n.default(this.serialize(),o,2)}}function o(t,e){if("[Circular]"!==e)return e}e.EthereumRpcError=i,e.EthereumProviderError=class extends i{constructor(t,e,r){if(!(Number.isInteger(t)&&t>=1e3&&t<=4999))throw Error('"code" must be an integer such that: 1000 <= code <= 4999');super(t,e,r)}}},23146:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.errorValues=e.errorCodes=void 0,e.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},e.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}},3836:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ethErrors=void 0;let n=r(32101),i=r(96495),o=r(23146);function s(t,e){let[r,o]=u(e);return new n.EthereumRpcError(t,r||i.getMessageFromCode(t),o)}function a(t,e){let[r,o]=u(e);return new n.EthereumProviderError(t,r||i.getMessageFromCode(t),o)}function u(t){if(t){if("string"==typeof t)return[t];if("object"==typeof t&&!Array.isArray(t)){let{message:e,data:r}=t;if(e&&"string"!=typeof e)throw Error("Must specify string message.");return[e||void 0,r]}}return[]}e.ethErrors={rpc:{parse:t=>s(o.errorCodes.rpc.parse,t),invalidRequest:t=>s(o.errorCodes.rpc.invalidRequest,t),invalidParams:t=>s(o.errorCodes.rpc.invalidParams,t),methodNotFound:t=>s(o.errorCodes.rpc.methodNotFound,t),internal:t=>s(o.errorCodes.rpc.internal,t),server(t){if(!t||"object"!=typeof t||Array.isArray(t))throw Error("Ethereum RPC Server errors must provide single object argument.");let{code:e}=t;if(!Number.isInteger(e)||e>-32005||e<-32099)throw Error('"code" must be an integer such that: -32099 <= code
14<= -32005');return s(e,t)},invalidInput:t=>s(o.errorCodes.rpc.invalidInput,t),resourceNotFound:t=>s(o.errorCodes.rpc.resourceNotFound,t),resourceUnavailable:t=>s(o.errorCodes.rpc.resourceUnavailable,t),transactionRejected:t=>s(o.errorCodes.rpc.transactionRejected,t),methodNotSupported:t=>s(o.errorCodes.rpc.methodNotSupported,t),limitExceeded:t=>s(o.errorCodes.rpc.limitExceeded,t)},provider:{userRejectedRequest:t=>a(o.errorCodes.provider.userRejectedRequest,t),unauthorized:t=>a(o.errorCodes.provider.unauthorized,t),unsupportedMethod:t=>a(o.errorCodes.provider.unsupportedMethod,t),disconnected:t=>a(o.errorCodes.provider.disconnected,t),chainDisconnected:t=>a(o.errorCodes.provider.chainDisconnected,t),custom(t){if(!t||"object"!=typeof t||Array.isArray(t))throw Error("Ethereum Provider custom errors must provide single object argument.");let{code:e,message:r,data:i}=t;if(!r||"string"!=typeof r)throw Error('"message" must be a nonempty string');return new n.EthereumProviderError(e,r,i)}}}},43681:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;let n=r(32101);Object.defineProperty(e,"EthereumRpcError",{enumerable:!0,get:function(){return n.EthereumRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return n.EthereumProviderError}});let i=r(96495);Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return i.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return i.getMessageFromCode}});let o=r(3836);Object.defineProperty(e,"ethErrors",{enumerable:!0,get:function(){return o.ethErrors}});let s=r(23146);Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return s.errorCodes}})},96495:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;let n=r(23146),i=r(32101),o=n.errorCodes.rpc.internal,s={code:o,message:a(o)};function a(t,r="Unspecified error message. This is a bug, please report it."){if(Number.isInteger(t)){let i=t.toString();if(l(n.errorValues,i))return n.errorValues[i].message;if(t>=-32099&&t<=-32e3)return e.JSON_RPC_SERVER_ERROR_MESSAGE}return r}function u(t){if(!Number.isInteger(t))return!1;let e=t.toString();return!!(n.errorValues[e]||t>=-32099&&t<=-32e3)}function c(t){return t&&"object"==typeof t&&!Array.isArray(t)?Object.assign({},t):t}function l(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",e.getMessageFromCode=a,e.isValidCode=u,e.serializeError=function(t,{fallbackError:e=s,shouldIncludeStack:r=!1}={}){if(!e||!Number.isInteger(e.code)||"string"!=typeof e.message)throw Error("Must provide fallback error with integer number code and string message.");if(t instanceof i.EthereumRpcError)return t.serialize();let n={};if(t&&"object"==typeof t&&!Array.isArray(t)&&l(t,"code")&&u(t.code))n.code=t.code,t.message&&"string"==typeof t.message?(n.message=t.message,l(t,"data")&&(n.data=t.data)):(n.message=a(n.code),n.data={originalError:c(t)});else{n.code=e.code;let o=null==t?void 0:t.message;n.message=o&&"string"==typeof o?o:e.message,n.data={originalError:c(t)}}let h=null==t?void 0:t.stack;return r&&t&&h&&"string"==typeof h&&(n.stack=h),n}},95851:function(t,e,r){"use strict";r.d(e,{i:function(){return n}});let n="abi/5.7.0"},84243:function(t,e,r){"use strict";r.d(e,{R:function(){return O},$:function(){return P}});var n=r(16441),i=r(6881),o=r(1581),s=r(95851),a=r(61184),u=r(19485);
14class c extends a.XI{constructor(t){super("address","address",t,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(t,e){try{e=(0,u.getAddress)(e)}catch(r){this._throwError(r.message,e)}return t.writeValue(e)}decode(t){return(0,u.getAddress)((0,n.hexZeroPad)(t.readValue().toHexString(),20))}}class l extends a.XI{constructor(t){super(t.name,t.type,void 0,t.dynamic),this.coder=t}defaultValue(){return this.coder.defaultValue()}encode(t,e){return this.coder.encode(t,e)}decode(t){return this.coder.decode(t)}}let h=new o.Logger(s.i);function f(t,e,r){let n=null;if(Array.isArray(r))n=r;else if(r&&"object"==typeof r){let i={};n=e.map(t=>{let e=t.localName;return e||h.throwError("cannot encode object for signature with missing names",o.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),i[e]&&h.throwError("cannot encode object for signature with duplicate names",o.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),i[e]=!0,r[e]})}else h.throwArgumentError("invalid tuple value","tuple",r);e.length!==n.length&&h.throwArgumentError("types/value length mismatch","tuple",r);let s=new a.QV(t.wordSize),u=new a.QV(t.wordSize),c=[];return e.forEach((t,e)=>{let r=n[e];if(t.dynamic){let i=u.length;t.encode(u,r);let o=s.writeUpdatableValue();c.push(t=>{o(t+i)})}else t.encode(s,r)}),c.forEach(t=>{t(s.length)}),t.appendWriter(s)+t.appendWriter(u)}function d(t,e){let r=[],n=t.subReader(0);e.forEach(e=>{let i=null;if(e.dynamic){let s=t.readValue(),a=n.subReader(s.toNumber());try{i=e.decode(a)}catch(u){if(u.code===o.Logger.errors.BUFFER_OVERRUN)throw u;(i=u).baseType=e.name,i.name=e.localName,i.type=e.type}}else try{i=e.decode(t)}catch(c){if(c.code===o.Logger.errors.BUFFER_OVERRUN)throw c;(i=c).baseType=e.name,i.name=e.localName,i.type=e.type}void 0!=i&&r.push(i)});let i=e.reduce((t,e)=>{let r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t},{});e.forEach((t,e)=>{let n=t.localName;if(!n||1!==i[n]||("length"===n&&(n="_length"),null!=r[n]))return;let o=r[e];o instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get(){throw o}}):r[n]=o});for(let s=0;s<r.length;s++){let a=r[s];a instanceof Error&&Object.defineProperty(r,s,{enumerable:!0,get(){throw a}})}return Object.freeze(r)}class p extends a.XI{constructor(t,e,r){let n=t.type+"["+(e>=0?e:"")+"]",i=-1===e||t.dynamic;super("array",n,r,i),this.coder=t,this.length=e}defaultValue(){let t=this.coder.defaultValue(),e=[];for(let r=0;r<this.length;r++)e.push(t);return e}encode(t,e){Array.isArray(e)||this._throwError("expected array value",e);let r=this.length;-1===r&&(r=e.length,t.writeValue(e.length)),h.checkArgumentCount(e.length,r,"coder array"+(this.localName?" "+this.localName:""));let n=[];for(let i=0;i<e.length;i++)n.push(this.coder);return f(t,n,e)}decode(t){let e=this.length;-1===e&&32*(e=t.readValue().toNumber())>t._data.length&&h.throwError("insufficient data length",o.Logger.errors.BUFFER_OVERRUN,{length:t._data.length,count:e});let r=[];for(let n=0;n<e;n++)r.push(new l(this.coder));return t.coerce(this.name,d(t,r))}}class g extends a.XI{constructor(t){super("bool","bool",t,!1)}defaultValue(){return!1}encode(t,e){return t.writeValue(e?1:0)}decode(t){return t.coerce(this.type,!t.readValue().isZero())}}class m extends a.XI{constructor(t,e){super(t,t,e,!0)}defaultValue(){return"0x"}encode(t,e){return e=(0,n.arrayify)(e),t.writeValue(e.length)+t.writeBytes(e)}decode(t){return t.readBytes(t.readValue().toNumber(),!0)}}class y extends m{constructor(t){super("bytes",t)}decode(t){return t.coerce(this.name,(0,n.hexlify)(super.decode(t)))}}class b extends a.XI{constructor(t,e){let r="bytes"+String(t);super(r,r,e,!1),this.size=t}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(t,e){let r=(0,n.arrayify)(e);return r.length!==this.size&&this._throwError("incorrect data length",e),t.writeBytes(r)}decode(t){return t.coerce(this.name,(0,n.hexlify)(t.readBytes(this.size)))}}class v extends a.XI{constructor(t){super("null","",t,!1)}defaultValue(){return null}encode(t,e){return null!=e&&this._throwError("not null",e),t.writeBytes([])}decode(t){return t.readBytes(0),t.coerce(this.name,null)}}var _=r(2593),w=r(21046);
14class M extends a.XI{constructor(t,e,r){let n=(e?"int":"uint")+8*t;super(n,n,r,!1),this.size=t,this.signed=e}defaultValue(){return 0}encode(t,e){let r=_.O$.from(e),n=w.Bz.mask(8*t.wordSize);if(this.signed){let i=n.mask(8*this.size-1);(r.gt(i)||r.lt(i.add(w.fh).mul(w.tL)))&&this._throwError("value out-of-bounds",e)}else(r.lt(w._Y)||r.gt(n.mask(8*this.size)))&&this._throwError("value out-of-bounds",e);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*t.wordSize)),t.writeValue(r)}decode(t){let e=t.readValue().mask(8*this.size);return this.signed&&(e=e.fromTwos(8*this.size)),t.coerce(this.name,e)}}var S=r(29251);class E extends m{constructor(t){super("string",t)}defaultValue(){return""}encode(t,e){return super.encode(t,(0,S.Y0)(e))}decode(t){return(0,S.ZN)(super.decode(t))}}class x extends a.XI{constructor(t,e){let r=!1,n=[];t.forEach(t=>{t.dynamic&&(r=!0),n.push(t.type)});let i="tuple("+n.join(",")+")";super("tuple",i,e,r),this.coders=t}defaultValue(){let t=[];this.coders.forEach(e=>{t.push(e.defaultValue())});let e=this.coders.reduce((t,e)=>{let r=e.localName;return r&&(t[r]||(t[r]=0),t[r]++),t},{});return this.coders.forEach((r,n)=>{let i=r.localName;i&&1===e[i]&&("length"===i&&(i="_length"),null==t[i]&&(t[i]=t[n]))}),Object.freeze(t)}encode(t,e){return f(t,this.coders,e)}decode(t){return t.coerce(this.name,d(t,this.coders))}}var k=r(11388);let A=new o.Logger(s.i),C=RegExp(/^bytes([0-9]*)$/),R=RegExp(/^(u?int)([0-9]*)$/);class O{constructor(t){(0,i.defineReadOnly)(this,"coerceFunc",t||null)}_getCoder(t){switch(t.baseType){case"address":return new c(t.name);case"bool":return new g(t.name);case"string":return new E(t.name);case"bytes":return new y(t.name);case"array":return new p(this._getCoder(t.arrayChildren),t.arrayLength,t.name);case"tuple":return new x((t.components||[]).map(t=>this._getCoder(t)),t.name);case"":return new v(t.name)}let e=t.type.match(R);if(e){let r=parseInt(e[2]||"256");return(0===r||r>256||r%8!=0)&&A.throwArgumentError("invalid "+e[1]+" bit length","param",t),new M(r/8,"int"===e[1],t.name)}if(e=t.type.match(C)){let n=parseInt(e[1]);return(0===n||n>32)&&A.throwArgumentError("invalid bytes length","param",t),new b(n,t.name)}return A.throwArgumentError("invalid type","type",t.type)}_getWordSize(){return 32}_getReader(t,e){return new a.Ej(t,this._getWordSize(),this.coerceFunc,e)}_getWriter(){return new a.QV(this._getWordSize())}getDefaultValue(t){let e=t.map(t=>this._getCoder(k._R.from(t))),r=new x(e,"_");return r.defaultValue()}encode(t,e){t.length!==e.length&&A.throwError("types/values length mismatch",o.Logger.errors.INVALID_ARGUMENT,{count:{types:t.length,values:e.length},value:{types:t,values:e}});let r=t.map(t=>this._getCoder(k._R.from(t))),n=new x(r,"_"),i=this._getWriter();return n.encode(i,e),i.data}decode(t,e,r){let i=t.map(t=>this._getCoder(k._R.from(t))),o=new x(i,"_");return o.decode(this._getReader((0,n.arrayify)(e),r))}}let P=new O},61184:function(t,e,r){"use strict";r.d(e,{BR:function(){return c},Ej:function(){return f},QV:function(){return h},XI:function(){return l}});var n=r(16441),i=r(2593),o=r(6881),s=r(1581),a=r(95851);let u=new s.Logger(a.i);function c(t){let e=[],r=function(t,n){if(Array.isArray(n))for(let i in n){let o=t.slice();o.push(i);try{r(o,n[i])}catch(s){e.push({path:o,error:s})}}};return r([],t),e}class l{constructor(t,e,r,n){this.name=t,this.type=e,this.localName=r,this.dynamic=n}_throwError(t,e){u.throwArgumentError(t,this.localName,e)}}class h{constructor(t){(0,o.defineReadOnly)(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}get data(){return(0,n.hexConcat)(this._data)}get length(){return this._dataLength}_writeData(t){return this._data.push(t),this._dataLength+=t.length,t.length}appendWriter(t){return this._writeData((0,n.concat)(t._data))}writeBytes(t){let e=(0,n.arrayify)(t),r=e.length%this.wordSize;return r&&(e=(0,n.concat)([e,this._padding.slice(r)])),this._writeData(e)}_getValue(t){let e=(0,n.arrayify)(i.O$.from(t));return e.length>this.wordSize&&u.throwError("value out-of-bounds",s.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:e.length}
14),e.length%this.wordSize&&(e=(0,n.concat)([this._padding.slice(e.length%this.wordSize),e])),e}writeValue(t){return this._writeData(this._getValue(t))}writeUpdatableValue(){let t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,e=>{this._data[t]=this._getValue(e)}}}class f{constructor(t,e,r,i){(0,o.defineReadOnly)(this,"_data",(0,n.arrayify)(t)),(0,o.defineReadOnly)(this,"wordSize",e||32),(0,o.defineReadOnly)(this,"_coerceFunc",r),(0,o.defineReadOnly)(this,"allowLoose",i),this._offset=0}get data(){return(0,n.hexlify)(this._data)}get consumed(){return this._offset}static coerce(t,e){let r=t.match("^u?int([0-9]+)$");return r&&48>=parseInt(r[1])&&(e=e.toNumber()),e}coerce(t,e){return this._coerceFunc?this._coerceFunc(t,e):f.coerce(t,e)}_peekBytes(t,e,r){let n=Math.ceil(e/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+e<=this._data.length?n=e:u.throwError("data out-of-bounds",s.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}subReader(t){return new f(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(t,e){let r=this._peekBytes(0,t,!!e);return this._offset+=r.length,r.slice(0,t)}readValue(){return i.O$.from(this.readBytes(this.wordSize))}}},11388:function(t,e,r){"use strict";r.d(e,{HY:function(){return y},IC:function(){return x},QV:function(){return b},Xg:function(){return M},YW:function(){return S},_R:function(){return g},pc:function(){return d}});var n=r(2593),i=r(6881),o=r(1581),s=r(95851);let a=new o.Logger(s.i),u={},c={calldata:!0,memory:!0,storage:!0},l={calldata:!0,memory:!0};function h(t,e){if("bytes"===t||"string"===t){if(c[e])return!0}else if("address"===t){if("payable"===e)return!0}else if((t.indexOf("[")>=0||"tuple"===t)&&l[e])return!0;return(c[e]||"payable"===e)&&a.throwArgumentError("invalid modifier","name",e),!1}function f(t,e){for(let r in e)(0,i.defineReadOnly)(t,r,e[r])}let d=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),p=RegExp(/^(.*)\[([0-9]*)\]$/);class g{constructor(t,e){t!==u&&a.throwError("use fromString",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),f(this,e);let r=this.type.match(p);r?f(this,{arrayLength:parseInt(r[2]||"-1"),arrayChildren:g.fromObject({type:r[1],components:this.components}),baseType:"array"}):f(this,{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(t){if(t||(t=d.sighash),d[t]||a.throwArgumentError("invalid format type","format",t),t===d.json){let e={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(e.indexed=this.indexed),this.components&&(e.components=this.components.map(e=>JSON.parse(e.format(t)))),JSON.stringify(e)}let r="";return"array"===this.baseType?(r+=this.arrayChildren.format(t),r+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(t!==d.sighash&&(r+=this.type),r+="("+this.components.map(e=>e.format(t)).join(t===d.full?", ":",")+")"):r+=this.type,t!==d.sighash&&(!0===this.indexed&&(r+=" indexed"),t===d.full&&this.name&&(r+=" "+this.name)),r}static from(t,e){return"string"==typeof t?g.fromString(t,e):g.fromObject(t)}static fromObject(t){return g.isParamType(t)?t:new g(u,{name:t.name||null,type:k(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(g.fromObject):null})}static fromString(t,e){var r;return r=function(t,e){let r=t;function n(e){a.throwArgumentError(`unexpected character at position ${e}`,"param",t)}function i(t){let r={type:"",name:"",parent:t,state:{allowType:!0}};return e&&(r.indexed=!1),r}t=t.replace(/\s/g," ");let o={type:"",name:"",state:{allowType:!0}},s=o;for(let u=0;u<t.length;u++){let c=t[u];switch(c){case"(":s.state.allowType&&""===s.type?s.type="tuple":s.state.allowParams||n(u),s.state.allowType=!1,s.type=k(s.type),s.components=[i(s)],s=s.components[0];break;case")":delete s.state,"indexed"===s.name&&(e||n(u),s.indexed=!0,s.name=""),h(s.type,s.name)&&(s.name=""),s.type=k(s.type);let l=s;(s=s.parent)||n(u),delete l.parent,s.state.allowParams=!1,s.state.allowName=!0,s.state.allowArray=!0;break;case",":delete s.state,"indexed"===s.name&&(e||n(u),s.indexed=!0,s.name=""),h(s.type,s.name)&&(s.name=""),s.type=k(s.type);let f=i(s.parent);s.parent.components.push(f),delete s.parent,s=f;break;case" ":s.state.allowType&&""!==s.type&&(s.type=k(s.type),delete s.state.allowType,s.state.allowName=!0,s.state.allowParams=!0),s.state.allowName&&""!==s.name&&("indexed"===s.name?(e||n(u),s.indexed&&n(u),s.indexed=!0,s.name=""):h(s.t
14ype,s.name)?s.name="":s.state.allowName=!1);break;case"[":s.state.allowArray||n(u),s.type+=c,s.state.allowArray=!1,s.state.allowName=!1,s.state.readArray=!0;break;case"]":s.state.readArray||n(u),s.type+=c,s.state.readArray=!1,s.state.allowArray=!0,s.state.allowName=!0;break;default:s.state.allowType?(s.type+=c,s.state.allowParams=!0,s.state.allowArray=!0):s.state.allowName?(s.name+=c,delete s.state.allowArray):s.state.readArray?s.type+=c:n(u)}}return s.parent&&a.throwArgumentError("unexpected eof","param",t),delete o.state,"indexed"===s.name?(e||n(r.length-7),s.indexed&&n(r.length-7),s.indexed=!0,s.name=""):h(s.type,s.name)&&(s.name=""),o.type=k(o.type),o}(t,!!e),g.fromObject({name:r.name,type:r.type,indexed:r.indexed,components:r.components})}static isParamType(t){return!!(null!=t&&t._isParamType)}}function m(t,e){return(function(t){t=t.trim();let e=[],r="",n=0;for(let i=0;i<t.length;i++){let o=t[i];","===o&&0===n?(e.push(r),r=""):(r+=o,"("===o?n++:")"===o&&-1==--n&&a.throwArgumentError("unbalanced parenthesis","value",t))}return r&&e.push(r),e})(t).map(t=>g.fromString(t,e))}class y{constructor(t,e){t!==u&&a.throwError("use a static from method",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),f(this,e),this._isFragment=!0,Object.freeze(this)}static from(t){return y.isFragment(t)?t:"string"==typeof t?y.fromString(t):y.fromObject(t)}static fromObject(t){if(y.isFragment(t))return t;switch(t.type){case"function":return S.fromObject(t);case"event":return b.fromObject(t);case"constructor":return M.fromObject(t);case"error":return x.fromObject(t);case"fallback":case"receive":return null}return a.throwArgumentError("invalid fragment object","value",t)}static fromString(t){return"event"===(t=(t=(t=t.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?b.fromString(t.substring(5).trim()):"function"===t.split(" ")[0]?S.fromString(t.substring(8).trim()):"constructor"===t.split("(")[0].trim()?M.fromString(t.trim()):"error"===t.split(" ")[0]?x.fromString(t.substring(5).trim()):a.throwArgumentError("unsupported fragment","value",t)}static isFragment(t){return!!(t&&t._isFragment)}}class b extends y{format(t){if(t||(t=d.sighash),d[t]||a.throwArgumentError("invalid format type","format",t),t===d.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(e=>JSON.parse(e.format(t)))});let e="";return t!==d.sighash&&(e+="event "),e+=this.name+"("+this.inputs.map(e=>e.format(t)).join(t===d.full?", ":",")+") ",t!==d.sighash&&this.anonymous&&(e+="anonymous "),e.trim()}static from(t){return"string"==typeof t?b.fromString(t):b.fromObject(t)}static fromObject(t){if(b.isEventFragment(t))return t;"event"!==t.type&&a.throwArgumentError("invalid event object","value",t);let e={name:C(t.name),anonymous:t.anonymous,inputs:t.inputs?t.inputs.map(g.fromObject):[],type:"event"};return new b(u,e)}static fromString(t){let e=t.match(R);e||a.throwArgumentError("invalid event string","value",t);let r=!1;return e[3].split(" ").forEach(t=>{switch(t.trim()){case"anonymous":r=!0;break;case"":break;default:a.warn("unknown modifier: "+t)}}),b.fromObject({name:e[1].trim(),anonymous:r,inputs:m(e[2],!0),type:"event"})}static isEventFragment(t){return t&&t._isFragment&&"event"===t.type}}function v(t,e){e.gas=null;let r=t.split("@");return 1!==r.length?(r.length>2&&a.throwArgumentError("invalid human-readable ABI signature","value",t),r[1].match(/^[0-9]+$/)||a.throwArgumentError("invalid human-readable ABI signature gas","value",t),e.gas=n.O$.from(r[1]),r[0]):t}function _(t,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",t.split(" ").forEach(t=>{switch(t.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+t)}})}function w(t){let e={constant:!1,payable:!0,stateMutability:"payable"};return null!=t.stateMutability?(e.stateMutability=t.stateMutability,e.constant="view"===e.stateMutability||"pure"===e.stateMutability,null!=t.constant&&!!t.constant!==e.constant&&a.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",t),e.payable="payable"===e.stateMutability,null!=t.payable&&!!t.payable!==e.payable&&a.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",t)):null!=t.payable?(e.payable=!!t.payable,null!=t.constant||e.payable||"constructor"===t.type||a.throwArgumentError("unable to determine stateMutability","value",t),e.constant=!!t.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&a.throwArgumentError("cannot have constant payable function","value",t)):null!=t.constant?(e.constant=!!t.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):"constructor"!==t.type&&a.throwArgumentError("unable to determine stateMutability","value",t),e}class M extends y{format(t){if(t||(t=d.sighash),d[t]||a.throwArgumentError("invalid format type","format",t),t===d.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(e=>JSON.parse(e.format(t)))});t===d.sighash&&a.throwError("cannot format a constructor for sighash",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let e="constructor("+this.inputs.map(e=>e.format(t)).join(t===d.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(e+=this.stateMutability+" "),e.trim()}static from(t){return"string"==typeof t?M.fromString(t):M.fromObject(t)}static fromObject(t){if(M.isConstructorFragment(t))return t;"constructor"!==t.type&&a.throwArgumentError("invalid constructor object","value",t);let e=w(t);e.constant&&a.throwArgumentError("constructor cannot be constant","value",t);let r={name:null,type:t.type,inputs:t.inputs?t.inputs.map(g.fromObject):[],payable:e.payable,stateMutability:e.stateMutability,gas:t.gas?n.O$.from(t.gas):null};return new M(u,r)}static fromString(t){let e={type:"constructor"},r=(t=v(t,e)).match(R);return r&&"constructor"===r[1].trim()||a.throwArgumentError("invalid constructor string","value",t),e.inputs=m(r[2].trim(),!1),_(r[3].trim(),e),M.fromObject(e)}static isConstructorFragment(t){return t&&t._isFragment&&"constructor"===t.type}}class S extends M{format(t){if(t||(t=d.sighash),d[t]||a.throwArgumentError("invalid format type","format",t),t===d.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(e=>JSON.parse(e.format(t))),outputs:this.outputs.map(e=>JSON.parse(e.format(t)))});let e="";return t!==d.sighash&&(e+="function "),e+=this.name+"("+this.inputs.map(e=>e.format(t)).join(t===d.full?", ":",")+") ",t!==d.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(e+=this.stateMutability+" "):this.constant&&(e+="view "),this.outputs&&this.outputs.length&&(e+="returns ("+this.outputs.map(e=>e.format(t)).join(", ")+") "),null!=this.gas&&(e+="@"+this.gas.toString()+" ")),e.trim()}static from(t){return"string"==typeof t?S.fromString(t):S.fromObject(t)}static fromObject(t){if(S.isFunctionFragment(t))return t;"function"!==t.type&&a.throwArgumentError("invalid function object","value",t);let e=w(t),r={type:t.type,name:C(t.name),constant:e.constant,inputs:t.inputs?t.inputs.map(g.fromObject):[],outputs:t.outputs?t.outputs.map(g.fromObject):[],payable:e.payable,stateMutability:e.stateMutability,gas:t.gas?n.O$.from(t.gas):null};return new S(u,r)}static fromString(t){let e={type:"function"},r=(t=v(t,e)).split(" returns ");r.length>2&&a.throwArgumentError("invalid function string","value",t);let n=r[0].match(R);if(n||a.throwArgumentError("invalid function signature","value",t),e.name=n[1].trim(),e.name&&C(e.name),e.inputs=m(n[2],!1),_(n[3].trim(),e),r.length>1){let i=r[1].match(R);(""!=i[1].trim()||""!=i[3].trim())&&a.throwArgumentError("unexpected tokens","value",t),e.outputs=m(i[2],!1)}else e.outputs=[];return S.fromObject(e)}static isFunctionFragment(t){return t&&t._isFragment&&"function"===t.type}}function E(t){let e=t.format();return("Error(string)"===e||"Panic(uint256)"===e)&&a.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",t),t}class x extends y{format(t){if(t||(t=d.sighash),d[t]||a.throwArgumentError("invalid format type","format",t),t===d.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(e=>JSON.parse(e.format(t)))});let e="";return t!==d.sighash&&(e+="error "),(e+=this.name+"("+this.inputs.map(e=>e.format(t)).join(t===d.full?", ":",")+") ").trim()}static from(t){return"string"==typeof t?x.fromString(t):x.fromObject(t)}static fromObject(t){if(x.isErrorFragment(t))return t;"error"!==t.type&&a.throwArgumentError("invalid error object","value",t);let e={type:t.type,name:C(t.name),inputs:t.inputs?t.inputs.map(g.fromObject):[]};return E(new x(u,e))}static fromString(t){let e={type:"error"},r=t.match(R);return r||a.throwArgumentError("invalid error signature","value",t),e.name=r[1].trim(),e.name&&C(e.name),e.inputs=m(r[2],!1),E(x.fromObject(e))}static isErrorFragment(t){return t&&t._isFragment&&"error"===t.type}}function k(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}let A=RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function C(t){return t&&t.match(A)||a.throwArgumentError(`invalid identifier "${t}"`,"value",t),t}let R=RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$")},83893:function(t,e,r){"use strict";r.r(e),r.d(e,{AbiCoder:function(){return i.R},ConstructorFragment:function(){return n.Xg},ErrorFragment:function(){return n.IC},EventFragment:function(){return n.QV},FormatTypes:function(){return n.pc},Fragment:function(){return n.HY},FunctionFragment:function(){return n.YW},Indexed:function(){return o.Hk},Interface:function(){return o.vU},LogDescription:function(){return o.CC},ParamType:function(){return n._R},TransactionDescription:function(){return o.vk},checkResultErrors:function(){return s.BR},defaultAbiCoder:function(){return i.$}});var n=r(11388),i=r(84243),o=r(8198),s=r(61184)},8198:function(t,e,r){"use strict";r.d(e,{CC:function(){return p},Hk:function(){return y},vU:function(){return _},vk:function(){return g}});
14var n=r(19485),i=r(2593),o=r(16441),s=r(32046),a=r(38197),u=r(6881),c=r(84243),l=r(11388),h=r(1581),f=r(95851);let d=new h.Logger(f.i);class p extends u.Description{}class g extends u.Description{}class m extends u.Description{}class y extends u.Description{static isIndexed(t){return!!(t&&t._isIndexed)}}let b={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function v(t,e){let r=Error(`deferred error during ABI decoding triggered accessing ${t}`);return r.error=e,r}class _{constructor(t){let e=[];e="string"==typeof t?JSON.parse(t):t,(0,u.defineReadOnly)(this,"fragments",e.map(t=>l.HY.from(t)).filter(t=>null!=t)),(0,u.defineReadOnly)(this,"_abiCoder",(0,u.getStatic)(new.target,"getAbiCoder")()),(0,u.defineReadOnly)(this,"functions",{}),(0,u.defineReadOnly)(this,"errors",{}),(0,u.defineReadOnly)(this,"events",{}),(0,u.defineReadOnly)(this,"structs",{}),this.fragments.forEach(t=>{let e=null;switch(t.type){case"constructor":if(this.deploy){d.warn("duplicate definition - constructor");return}(0,u.defineReadOnly)(this,"deploy",t);return;case"function":e=this.functions;break;case"event":e=this.events;break;case"error":e=this.errors;break;default:return}let r=t.format();if(e[r]){d.warn("duplicate definition - "+r);return}e[r]=t}),this.deploy||(0,u.defineReadOnly)(this,"deploy",l.Xg.from({payable:!1,type:"constructor"})),(0,u.defineReadOnly)(this,"_isInterface",!0)}format(t){t||(t=l.pc.full),t===l.pc.sighash&&d.throwArgumentError("interface does not support formatting sighash","format",t);let e=this.fragments.map(e=>e.format(t));return t===l.pc.json?JSON.stringify(e.map(t=>JSON.parse(t))):e}static getAbiCoder(){return c.$}static getAddress(t){return(0,n.getAddress)(t)}static getSighash(t){return(0,o.hexDataSlice)((0,s.id)(t.format()),0,4)}static getEventTopic(t){return(0,s.id)(t.format())}getFunction(t){if((0,o.isHexString)(t)){for(let e in this.functions)if(t===this.getSighash(e))return this.functions[e];d.throwArgumentError("no matching function","sighash",t)}if(-1===t.indexOf("(")){let r=t.trim(),n=Object.keys(this.functions).filter(t=>t.split("(")[0]===r);return 0===n.length?d.throwArgumentError("no matching function","name",r):n.length>1&&d.throwArgumentError("multiple matching functions","name",r),this.functions[n[0]]}let i=this.functions[l.YW.fromString(t).format()];return i||d.throwArgumentError("no matching function","signature",t),i}getEvent(t){if((0,o.isHexString)(t)){let e=t.toLowerCase();for(let r in this.events)if(e===this.getEventTopic(r))return this.events[r];d.throwArgumentError("no matching event","topichash",e)}if(-1===t.indexOf("(")){let n=t.trim(),i=Object.keys(this.events).filter(t=>t.split("(")[0]===n);return 0===i.length?d.throwArgumentError("no matching event","name",n):i.length>1&&d.throwArgumentError("multiple matching events","name",n),this.events[i[0]]}let s=this.events[l.QV.fromString(t).format()];return s||d.throwArgumentError("no matching event","signature",t),s}getError(t){if((0,o.isHexString)(t)){let e=(0,u.getStatic)(this.constructor,"getSighash");for(let r in this.errors){let n=this.errors[r];if(t===e(n))return this.errors[r]}d.throwArgumentError("no matching error","sighash",t)}if(-1===t.indexOf("(")){let i=t.trim(),s=Object.keys(this.errors).filter(t=>t.split("(")[0]===i);return 0===s.length?d.throwArgumentError("no matching error","name",i):s.length>1&&d.throwArgumentError("multiple matching errors","name",i),this.errors[s[0]]}let a=this.errors[l.YW.fromString(t).format()];return a||d.throwArgumentError("no matching error","signature",t),a}getSighash(t){if("string"==typeof t)try{t=this.getFunction(t)}catch(r){try{t=this.getError(t)}catch(e){throw r}}return(0,u.getStatic)(this.constructor,"getSighash")(t)}getEventTopic(t){return"string"==typeof t&&(t=this.getEvent(t)),(0,u.getStatic)(this.constructor,"getEventTopic")(t)}_decodeParams(t,e){return this._abiCoder.decode(t,e)}_encodeParams(t,e){return this._abiCoder.encode(t,e)}encodeDeploy(t){return this._encodeParams(this.deploy.inputs,t||[])}decodeErrorResult(t,e){"string"==typeof t&&(t=this.getError(t));let r=(0,o.arrayify)(e);return(0,o.hexlify)(r.slice(0,4))!==this.getSighash(t)&&d.throwArgumentError(`data signature does not match error ${t.name}.`,"data",(0,o.hexlify)(r)),this._decodeParams(t.inputs,r.slice(4))}encodeErrorResult(t,e){return"string"==typeof t&&(t=this.getError(t)),(0,o.hexlify)((0,o.concat)([this.get
14Sighash(t),this._encodeParams(t.inputs,e||[])]))}decodeFunctionData(t,e){"string"==typeof t&&(t=this.getFunction(t));let r=(0,o.arrayify)(e);return(0,o.hexlify)(r.slice(0,4))!==this.getSighash(t)&&d.throwArgumentError(`data signature does not match function ${t.name}.`,"data",(0,o.hexlify)(r)),this._decodeParams(t.inputs,r.slice(4))}encodeFunctionData(t,e){return"string"==typeof t&&(t=this.getFunction(t)),(0,o.hexlify)((0,o.concat)([this.getSighash(t),this._encodeParams(t.inputs,e||[])]))}decodeFunctionResult(t,e){"string"==typeof t&&(t=this.getFunction(t));let r=(0,o.arrayify)(e),n=null,i="",s=null,a=null,u=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(t.outputs,r)}catch(c){}break;case 4:{let l=(0,o.hexlify)(r.slice(0,4)),f=b[l];if(f)s=this._abiCoder.decode(f.inputs,r.slice(4)),a=f.name,u=f.signature,f.reason&&(n=s[0]),"Error"===a?i=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(s[0])}`:"Panic"===a&&(i=`; VM Exception while processing transaction: reverted with panic code ${s[0]}`);else try{let p=this.getError(l);s=this._abiCoder.decode(p.inputs,r.slice(4)),a=p.name,u=p.format()}catch(g){}}}return d.throwError("call revert exception"+i,h.Logger.errors.CALL_EXCEPTION,{method:t.format(),data:(0,o.hexlify)(e),errorArgs:s,errorName:a,errorSignature:u,reason:n})}encodeFunctionResult(t,e){return"string"==typeof t&&(t=this.getFunction(t)),(0,o.hexlify)(this._abiCoder.encode(t.outputs,e||[]))}encodeFilterTopics(t,e){"string"==typeof t&&(t=this.getEvent(t)),e.length>t.inputs.length&&d.throwError("too many arguments for "+t.format(),h.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:e});let r=[];t.anonymous||r.push(this.getEventTopic(t));let n=(t,e)=>"string"===t.type?(0,s.id)(e):"bytes"===t.type?(0,a.keccak256)((0,o.hexlify)(e)):("bool"===t.type&&"boolean"==typeof e&&(e=e?"0x01":"0x00"),t.type.match(/^u?int/)&&(e=i.O$.from(e).toHexString()),"address"===t.type&&this._abiCoder.encode(["address"],[e]),(0,o.hexZeroPad)((0,o.hexlify)(e),32));for(e.forEach((e,i)=>{let o=t.inputs[i];if(!o.indexed){null!=e&&d.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,e);return}null==e?r.push(null):"array"===o.baseType||"tuple"===o.baseType?d.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,e):Array.isArray(e)?r.push(e.map(t=>n(o,t))):r.push(n(o,e))});r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(t,e){"string"==typeof t&&(t=this.getEvent(t));let r=[],n=[],i=[];return t.anonymous||r.push(this.getEventTopic(t)),e.length!==t.inputs.length&&d.throwArgumentError("event arguments/values mismatch","values",e),t.inputs.forEach((t,o)=>{let u=e[o];if(t.indexed){if("string"===t.type)r.push((0,s.id)(u));else if("bytes"===t.type)r.push((0,a.keccak256)(u));else if("tuple"===t.baseType||"array"===t.baseType)throw Error("not implemented");else r.push(this._abiCoder.encode([t.type],[u]))}else n.push(t),i.push(u)}),{data:this._abiCoder.encode(n,i),topics:r}}decodeEventLog(t,e,r){if("string"==typeof t&&(t=this.getEvent(t)),null!=r&&!t.anonymous){let n=this.getEventTopic(t);(0,o.isHexString)(r[0],32)&&r[0].toLowerCase()===n||d.throwError("fragment/topic mismatch",h.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:n,value:r[0]}),r=r.slice(1)}let i=[],s=[],a=[];t.inputs.forEach((t,e)=>
14{t.indexed?"string"===t.type||"bytes"===t.type||"tuple"===t.baseType||"array"===t.baseType?(i.push(l._R.fromObject({type:"bytes32",name:t.name})),a.push(!0)):(i.push(t),a.push(!1)):(s.push(t),a.push(!1))});let u=null!=r?this._abiCoder.decode(i,(0,o.concat)(r)):null,c=this._abiCoder.decode(s,e,!0),f=[],p=0,g=0;t.inputs.forEach((t,e)=>{if(t.indexed){if(null==u)f[e]=new y({_isIndexed:!0,hash:null});else if(a[e])f[e]=new y({_isIndexed:!0,hash:u[g++]});else try{f[e]=u[g++]}catch(r){f[e]=r}}else try{f[e]=c[p++]}catch(n){f[e]=n}if(t.name&&null==f[t.name]){let i=f[e];i instanceof Error?Object.defineProperty(f,t.name,{enumerable:!0,get(){throw v(`property ${JSON.stringify(t.name)}`,i)}}):f[t.name]=i}});for(let m=0;m<f.length;m++){let b=f[m];b instanceof Error&&Object.defineProperty(f,m,{enumerable:!0,get(){throw v(`index ${m}`,b)}})}return Object.freeze(f)}parseTransaction(t){let e=this.getFunction(t.data.substring(0,10).toLowerCase());return e?new g({args:this._abiCoder.decode(e.inputs,"0x"+t.data.substring(10)),functionFragment:e,name:e.name,signature:e.format(),sighash:this.getSighash(e),value:i.O$.from(t.value||"0")}):null}parseLog(t){let e=this.getEvent(t.topics[0]);return!e||e.anonymous?null:new p({eventFragment:e,name:e.name,signature:e.format(),topic:this.getEventTopic(e),args:this.decodeEventLog(e,t.data,t.topics)})}parseError(t){let e=(0,o.hexlify)(t),r=this.getError(e.substring(0,10).toLowerCase());return r?new m({args:this._abiCoder.decode(r.inputs,"0x"+e.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}static isInterface(t){return!!(t&&t._isInterface)}}},4089:function(t,e,r){"use strict";r.r(e),r.d(e,{decode:function(){return n.J},encode:function(){return n.c}});var n=r(59567)},64146:function(t,e,r){"use strict";r.d(e,{CH:function(){return x}});var n=r(61184),i=r(8198),o=r(81556),s=r(48088),a=r(19485),u=r(2593),c=r(16441),l=r(6881),h=r(83875),f=r(1581),d=function(t,e,r,n){return new(r||(r=Promise))(function(i,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(s,a)}u((n=n.apply(t,e||[])).next())})};let p=new f.Logger("contracts/5.7.0");function g(t,e){return d(this,void 0,void 0,function*(){let r=yield e;"string"!=typeof r&&p.throwArgumentError("invalid address or ENS name","name",r);try{return(0,a.getAddress)(r)}catch(n){}t||p.throwError("a provider or signer is needed to resolve ENS names",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});let i=yield t.resolveName(r);return null==i&&p.throwArgumentError("resolver or addr is not configured for ENS name","name",r),i})}function m(t,e,r){return d(this,void 0,void 0,function*(){let n={};r.length===e.inputs.length+1&&"object"==typeof r[r.length-1]&&(n=(0,l.shallowCopy)(r.pop())),p.checkArgumentCount(r.length,e.inputs.length,"passed to contract"),t.signer?n.from?n.from=(0,l.resolveProperties)({override:g(t.signer,n.from),signer:t.signer.getAddress()}).then(t=>d(this,void 0,void 0,function*(){return(0,a.getAddress)(t.signer)!==t.override&&p.throwError("Contract with a Signer cannot override from",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),t.override})):n.from=t.signer.getAddress():n.from&&(n.from=g(t.provider,n.from));let i=yield(0,l.resolveProperties)({args:function t(e,r,n){return d(this,void 0,void 0,function*(){return Array.isArray(n)?yield Promise.all(n.map((n,i)=>t(e,Array.isArray(r)?r[i]:r[n.name],n))):"address"===n.type?yield g(e,r):"tuple"===n.type?yield t(e,r,n.components):"array"===n.baseType?Array.isArray(r)?yield Promise.all(r.map(r=>t(e,r,n.arrayChildren))):Promise.reject(p.makeError("invalid value for array",f.Logger.errors.INVALID_ARGUMENT,{argument:"value",value:r})):r})}(t.signer||t.provider,r,e.inputs),address:t.resolvedAddress,overrides:(0,l.resolveProperties)(n)||{}}),o=t.interface.encodeFunctionData(e,i.args),s={data:o,to:i.address},m=i.overrides;if(null!=m.nonce&&(s.nonce=u.O$.from(m.nonce).toNumber()),null!=m.gasLimit&&(s.gasLimit=u.O$.from(m.gasLim
14it)),null!=m.gasPrice&&(s.gasPrice=u.O$.from(m.gasPrice)),null!=m.maxFeePerGas&&(s.maxFeePerGas=u.O$.from(m.maxFeePerGas)),null!=m.maxPriorityFeePerGas&&(s.maxPriorityFeePerGas=u.O$.from(m.maxPriorityFeePerGas)),null!=m.from&&(s.from=m.from),null!=m.type&&(s.type=m.type),null!=m.accessList&&(s.accessList=(0,h.accessListify)(m.accessList)),null==s.gasLimit&&null!=e.gas){let y=21e3,b=(0,c.arrayify)(o);for(let v=0;v<b.length;v++)y+=4,b[v]&&(y+=64);s.gasLimit=u.O$.from(e.gas).add(y)}if(m.value){let _=u.O$.from(m.value);_.isZero()||e.payable||p.throwError("non-payable method cannot override value",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:n.value}),s.value=_}m.customData&&(s.customData=(0,l.shallowCopy)(m.customData)),m.ccipReadEnabled&&(s.ccipReadEnabled=!!m.ccipReadEnabled),delete n.nonce,delete n.gasLimit,delete n.gasPrice,delete n.from,delete n.value,delete n.type,delete n.accessList,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.customData,delete n.ccipReadEnabled;let w=Object.keys(n).filter(t=>null!=n[t]);return w.length&&p.throwError(`cannot override ${w.map(t=>JSON.stringify(t)).join(",")}`,f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:w}),s})}function y(t,e,r){let n=t.signer||t.provider;return function(...i){return d(this,void 0,void 0,function*(){let o;if(i.length===e.inputs.length+1&&"object"==typeof i[i.length-1]){let s=(0,l.shallowCopy)(i.pop());null!=s.blockTag&&(o=yield s.blockTag),delete s.blockTag,i.push(s)}null!=t.deployTransaction&&(yield t._deployed(o));let a=yield m(t,e,i),u=yield n.call(a,o);try{let c=t.interface.decodeFunctionResult(e,u);return r&&1===e.outputs.length&&(c=c[0]),c}catch(h){throw h.code===f.Logger.errors.CALL_EXCEPTION&&(h.address=t.address,h.args=i,h.transaction=a),h}})}}function b(t,e,r){return e.constant?y(t,e,r):function(...r){return d(this,void 0,void 0,function*(){t.signer||p.throwError("sending a transaction requires a signer",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=t.deployTransaction&&(yield t._deployed());let n=yield m(t,e,r),i=yield t.signer.sendTransaction(n);return function(t,e){let r=e.wait.bind(e);e.wait=e=>r(e).then(e=>(e.events=e.logs.map(r=>{let n=(0,l.deepCopy)(r),i=null;try{i=t.interface.parseLog(r)}catch(o){}return i&&(n.args=i.args,n.decode=(e,r)=>t.interface.decodeEventLog(i.eventFragment,e,r),n.event=i.name,n.eventSignature=i.signature),n.removeListener=()=>t.provider,n.getBlock=()=>t.provider.getBlock(e.blockHash),n.getTransaction=()=>t.provider.getTransaction(e.transactionHash),n.getTransactionReceipt=()=>Promise.resolve(e),n}),e))}(t,i),i})}}function v(t){return t.address&&(null==t.topics||0===t.topics.length)?"*":(t.address||"*")+"@"+(t.topics?t.topics.map(t=>Array.isArray(t)?t.join("|"):t).join(":"):"")}class _{constructor(t,e){(0,l.defineReadOnly)(this,"tag",t),(0,l.defineReadOnly)(this,"filter",e),this._listeners=[]}addListener(t,e){this._listeners.push({listener:t,once:e})}removeListener(t){let e=!1;this._listeners=this._listeners.filter(r=>!!e||r.listener!==t||(e=!0,!1))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(t=>t.listener)}listenerCount(){return this._listeners.length}run(t){let e=this.listenerCount();return this._listeners=this._listeners.filter(e=>{let r=t.slice();return setTimeout(()=>{e.listener.apply(this,r)},0),!e.once}),e}prepareEvent(t){}getEmit(t){return[t]}}class w extends _{constructor(){super("error",null)}}class M extends _{constructor(t,e,r,n){let i={address:t},o=e.getEventTopic(r);n?(o!==n[0]&&p.throwArgumentError("topic mismatch","topics",n),i.topics=n.slice()):i.topics=[o],super(v(i),i),(0,l.defineReadOnly)(this,"address",t),(0,l.defineReadOnly)(this,"interface",e),(0,l.defineReadOnly)(this,"fragment",r)}prepareEvent(t){super.prepareEvent(t),t.event=this.fragment.name,t.eventSignature=this.fragment.format(),t.decode=(t,e)=>this.interface.decodeEventLog(this.fragment,t,e);try{t.args=this.interface.decodeEventLog(this.fragment,t.data,t.topics)}catch(e){t.args=null,t.decodeError=e}}getEmit(t){let e=(0,n.BR)(t.args);if(e.length)throw e[0].error;let r=(t.args||[]).slice();return r.push(t),r}}class S extends _{constructor(t,e){super("*",{address:t}),(0,l.defineReadOnly)(this,"address",t),(0,l.defineReadOnly)(this,"interface",e)}prepareEvent(t){super.prepareEvent(t);try{let e=this.interface.parseLog(t);t.event=e.name,t.eventSignature=e.signature,t.decode=(t,r)=>this.interface.decodeEventLog(e.eventFragment,t,r),t.args=e.args}catch(r){}}}class E{constructor(t,e,r){(0,l.defineReadOnly)(this,"interface",(0,l.getStatic)(new.target,"getInterface")(e)),null==r?((0,l.defineReadOnly)(this,"provider",null),(0,l.defineReadOnly)(this,"signer",null)):s.E.isSigner(r)?((0,l.defineReadOnly)(this,"provider",r.provider||null),(0,l.defineReadOnly)(this,"signer",r)):o.zt.isProvider(r)?((0,l.defineReadOnly)(this,"provider",r),(0,l.defineReadOnly)(this,"signer",null)):p.throwArgumentError("invalid signer or provider","signerOrProvider",r),(0,l.defineReadOnly)(this,"callStatic",{}),(0,l.defineReadOnly)(this,"estimateGas",{}),(0,l.defineReadOnly)(this,"functions",{}),(0,l.defineReadOnly)(this,"populateTransaction",{}),(0,l.defineReadOnly)(this,"filters",{});{let n={};
14Object.keys(this.interface.events).forEach(t=>{let e=this.interface.events[t];(0,l.defineReadOnly)(this.filters,t,(...t)=>({address:this.address,topics:this.interface.encodeFilterTopics(e,t)})),n[e.name]||(n[e.name]=[]),n[e.name].push(t)}),Object.keys(n).forEach(t=>{let e=n[t];1===e.length?(0,l.defineReadOnly)(this.filters,t,this.filters[e[0]]):p.warn(`Duplicate definition of ${t} (${e.join(", ")})`)})}if((0,l.defineReadOnly)(this,"_runningEvents",{}),(0,l.defineReadOnly)(this,"_wrappedEmits",{}),null==t&&p.throwArgumentError("invalid contract address or ENS name","addressOrName",t),(0,l.defineReadOnly)(this,"address",t),this.provider)(0,l.defineReadOnly)(this,"resolvedAddress",g(this.provider,t));else try{(0,l.defineReadOnly)(this,"resolvedAddress",Promise.resolve((0,a.getAddress)(t)))}catch(i){p.throwError("provider is required to use ENS name as contract address",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch(t=>{});let u={},c={};Object.keys(this.interface.functions).forEach(t=>{let e=this.interface.functions[t];if(c[t]){p.warn(`Duplicate ABI entry for ${JSON.stringify(t)}`);return}c[t]=!0;{let r=e.name;u[`%${r}`]||(u[`%${r}`]=[]),u[`%${r}`].push(t)}if(null==this[t]&&(0,l.defineReadOnly)(this,t,b(this,e,!0)),null==this.functions[t]&&(0,l.defineReadOnly)(this.functions,t,b(this,e,!1)),null==this.callStatic[t]&&(0,l.defineReadOnly)(this.callStatic,t,y(this,e,!0)),null==this.populateTransaction[t]){var n;(0,l.defineReadOnly)(this.populateTransaction,t,(n=this,function(...t){return m(n,e,t)}))}null==this.estimateGas[t]&&(0,l.defineReadOnly)(this.estimateGas,t,function(t,e){let r=t.signer||t.provider;return function(...n){return d(this,void 0,void 0,function*(){r||p.throwError("estimate require a provider or signer",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});let i=yield m(t,e,n);return yield r.estimateGas(i)})}}(this,e))}),Object.keys(u).forEach(t=>{let e=u[t];if(e.length>1)return;t=t.substring(1);let r=e[0];try{null==this[t]&&(0,l.defineReadOnly)(this,t,this[r])}catch(n){}null==this.functions[t]&&(0,l.defineReadOnly)(this.functions,t,this.functions[r]),null==this.callStatic[t]&&(0,l.defineReadOnly)(this.callStatic,t,this.callStatic[r]),null==this.populateTransaction[t]&&(0,l.defineReadOnly)(this.populateTransaction,t,this.populateTransaction[r]),null==this.estimateGas[t]&&(0,l.defineReadOnly)(this.estimateGas,t,this.estimateGas[r])})}static getContractAddress(t){return(0,a.getContractAddress)(t)}static getInterface(t){return i.vU.isInterface(t)?t:new i.vU(t)}deployed(){return this._deployed()}_deployed(t){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(()=>this):this._deployedPromise=this.provider.getCode(this.address,t).then(t=>("0x"===t&&p.throwError("contract not deployed",f.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(t){this.signer||p.throwError("sending a transactions require a signer",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});let e=(0,l.shallowCopy)(t||{});return["from","to"].forEach(function(t){null!=e[t]&&p.throwError("cannot override "+t,f.Logger.errors.UNSUPPORTED_OPERATION,{operation:t})}),e.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(e))}connect(t){"string"==typeof t&&(t=new s.b(t,this.provider));let e=new this.constructor(this.address,this.interface,t);return this.deployTransaction&&(0,l.defineReadOnly)(e,"deployTransaction",this.deployTransaction),e}attach(t){return new this.constructor(t,this.interface,this.signer||this.provider)}static isIndexed(t){return i.Hk.isIndexed(t)}_normalizeRunningEvent(t){return this._runningEvents[t.tag]?this._runningEvents[t.tag]:t}_getRunningEvent(t){if("string"==typeof t){if("error"===t)return this._normalizeRunningEvent(new w);if("event"===t)return this._normalizeRunningEvent(new _("event",null));if("*"===t)return this._normalizeRunningEvent(new S(this.address,this.interface));let e=this.interface.getEvent(t);return this._normalizeRunningEvent(new M(this.address,this.interface,e))}if(t.topics&&t.topics.length>0){try{let r=t.topics[0];if("string"!=typeof r)throw Error("invalid topic");let n=this.interface.getEvent(r);return this._normalizeRunningEvent(new M(this.address,this.interface,n,t.topics))}catch(i){}let o={address:this.address,topics:t.topics};return this._normalizeRunningEvent(new _(v(o),o))}return this._normalizeRunningEvent(new S(this.address,this.interface))}_checkRunningEvents(t){if(0===t.listenerCount()){delete this._runningEvents[t.tag];let e=this._wrappedEmits[t.tag];e&&t.filter&&(this.provider.off(t.filter,e),delete this._wrappedEmits[t.tag])}}_wrapEvent(t,e,r){let n=(0,l.deepCopy)(e);return n.removeListener=()=>{r&&(t.removeListener(r),this._checkRunningEvents(t))},n.getBlock=()=>this.provider.getBlock(e.blockHash),n.getTransaction=()=>this.provider.getTransaction(e.transactionHash),n.getTransactionReceipt=()=>this.provider.getTransactionReceipt(e.transactionHash),t.prepareEvent(n),n}_addEventListener(t,e,r){if(this.provider||p.throwError("events require a provider or a signer with a provider",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),t.addListener(e,r),this._runningEvents[t.tag]=t,!this._wrappedEmits[t.tag]){let n=r=>{let n=this._wrapEvent(t,r,e);if(null==n.decodeError)try{let i=t.getEmit(n);
14this.emit(t.filter,...i)}catch(o){n.decodeError=o.error}null!=t.filter&&this.emit("event",n),null!=n.decodeError&&this.emit("error",n.decodeError,n)};this._wrappedEmits[t.tag]=n,null!=t.filter&&this.provider.on(t.filter,n)}}queryFilter(t,e,r){let n=this._getRunningEvent(t),i=(0,l.shallowCopy)(n.filter);return"string"==typeof e&&(0,c.isHexString)(e,32)?(null!=r&&p.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),i.blockHash=e):(i.fromBlock=null!=e?e:0,i.toBlock=null!=r?r:"latest"),this.provider.getLogs(i).then(t=>t.map(t=>this._wrapEvent(n,t,null)))}on(t,e){return this._addEventListener(this._getRunningEvent(t),e,!1),this}once(t,e){return this._addEventListener(this._getRunningEvent(t),e,!0),this}emit(t,...e){if(!this.provider)return!1;let r=this._getRunningEvent(t),n=r.run(e)>0;return this._checkRunningEvents(r),n}listenerCount(t){return this.provider?null==t?Object.keys(this._runningEvents).reduce((t,e)=>t+this._runningEvents[e].listenerCount(),0):this._getRunningEvent(t).listenerCount():0}listeners(t){if(!this.provider)return[];if(null==t){let e=[];for(let r in this._runningEvents)this._runningEvents[r].listeners().forEach(t=>{e.push(t)});return e}return this._getRunningEvent(t).listeners()}removeAllListeners(t){if(!this.provider)return this;if(null==t){for(let e in this._runningEvents){let r=this._runningEvents[e];r.removeAllListeners(),this._checkRunningEvents(r)}return this}let n=this._getRunningEvent(t);return n.removeAllListeners(),this._checkRunningEvents(n),this}off(t,e){if(!this.provider)return this;let r=this._getRunningEvent(t);return r.removeListener(e),this._checkRunningEvents(r),this}removeListener(t,e){return this.off(t,e)}}class x extends E{}},75931:function(t,e,r){"use strict";r.r(e),r.d(e,{_TypedDataEncoder:function(){return s.E},dnsEncode:function(){return i.Kn},ensNormalize:function(){return i.w3},hashMessage:function(){return o.r},id:function(){return n.id},isValidName:function(){return i.r1},messagePrefix:function(){return o.B},namehash:function(){return i.VM}});
14var n=r(32046),i=r(27586),o=r(93684),s=r(67827)},93684:function(t,e,r){"use strict";r.d(e,{B:function(){return s},r:function(){return a}});var n=r(16441),i=r(38197),o=r(29251);let s="\x19Ethereum Signed Message:\n";function a(t){return"string"==typeof t&&(t=(0,o.Y0)(t)),(0,i.keccak256)((0,n.concat)([(0,o.Y0)(s),(0,o.Y0)(String(t.length)),t]))}},86507:function(t,e,r){"use strict";r.r(e),r.d(e,{HDNode:function(){return O},defaultPath:function(){return R},entropyToMnemonic:function(){return T},getAccountPath:function(){return L},isValidMnemonic:function(){return N},mnemonicToEntropy:function(){return I},mnemonicToSeed:function(){return P}});var n=r(57727),i=r(16441),o=r(2593),s=r(29251),a=r(85306),u=r(6881),c=r(67669),l=r(2006),h=r(21261),f=r(83875),d=r(32046),p=r(1581);let g=new p.Logger("wordlists/5.7.0");class m{constructor(t){g.checkAbstract(new.target,m),(0,u.defineReadOnly)(this,"locale",t)}split(t){return t.toLowerCase().split(/ +/g)}join(t){return t.join(" ")}static check(t){let e=[];for(let r=0;r<2048;r++){let n=t.getWord(r);if(r!==t.getWordIndex(n))return"0x";e.push(n)}return(0,d.id)(e.join("\n")+"\n")}static register(t,e){e||(e=t.locale)}}let y=null;function b(t){if(null==y&&(y="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductC
14onfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMu
14seumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThe
14nTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==m.check(t)))throw y=null,Error("BIP39 Wordlist for en (English) FAILED")}let v=new class extends m{constructor(){super("en")}getWord(t){return b(this),y[t]}getWordIndex(t){return b(this),y.indexOf(t)}};m.register(v);let _={en:v},w=new p.Logger("hdnode/5.7.0"),M=o.O$.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),S=(0,s.Y0)("Bitcoin seed");function E(t){return(1<<t)-1<<8-t}function x(t){return(0,i.hexZeroPad)((0,i.hexlify)(t),32)}function k(t){return n.Base58.encode((0,i.concat)([t,(0,i.hexDataSlice)((0,l.JQ)((0,l.JQ)(t)),0,4)]))}function A(t){if(null==t)return _.en;if("string"==typeof t){let e=_[t];return null==e&&w.throwArgumentError("unknown locale","wordlist",t),e}return t}let C={},R="m/44'/60'/0'/0/0";class O{constructor(t,e,r,n,o,s,a,h){if(t!==C)throw Error("HDNode constructor cannot be called directly");if(e){let d=new c.SigningKey(e);(0,u.defineReadOnly)(this,"privateKey",d.privateKey),(0,u.defineReadOnly)(this,"publicKey",d.compressedPublicKey)}else(0,u.defineReadOnly)(this,"privateKey",null),(0,u.defineReadOnly)(this,"publicKey",(0,i.hexlify)(r));(0,u.defineReadOnly)(this,"parentFingerprint",n),(0,u.defineReadOnly)(this,"fingerprint",(0,i.hexDataSlice)((0,l.bP)((0,l.JQ)(this.publicKey)),0,4)),(0,u.defineReadOnly)(this,"address",(0,f.computeAddress)(this.publicKey)),(0,u.defineReadOnly)(this,"chainCode",o),(0,u.defineReadOnly)(this,"index",s),(0,u.defineReadOnly)(this,"depth",a),null==h?((0,u.defineReadOnly)(this,"mnemonic",null),(0,u.defineReadOnly)(this,"path",null)):"string"==typeof h?((0,u.defineReadOnly)(this,"mnemonic",null),(0,u.defineReadOnly)(this,"path",h)):((0,u.defineReadOnly)(this,"mnemonic",h),(0,u.defineReadOnly)(this,"path",h.path))}get extendedKey(){if(this.depth>=256)throw Error("Depth too large!");return k((0,i.concat)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",(0,i.hexlify)(this.depth),this.parentFingerprint,(0,i.hexZeroPad)((0,i.hexlify)(this.index),4),this.chainCode,null!=this.privateKey?(0,i.concat)(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new O(C,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(t){if(t>4294967295)throw Error("invalid index - "+String(t));let e=this.path;e&&(e+="/"+(2147483647&t));let r=new Uint8Array(37);if(2147483648&t){if(!this.privateKey)throw Error("cannot derive child of neutered node");r.set((0,i.arrayify)(this.privateKey),1),e&&(e+="'")}else r.set((0,i.arrayify)(this.publicKey));for(let n=24;n>=0;n-=8)r[33+(n>>3)]=t>>24-n&255;let s=(0,i.arrayify)((0,l.Gy)(h.p.sha512,this.chainCode,r)),a=s.slice(0,32),u=s.slice(32),f=null,d=null;if(this.privateKey)f=x(o.O$.from(a).add(this.privateKey).mod(M));else{let p=new c.SigningKey((0,i.hexlify)(a));d=p._addPoint(this.publicKey)}let g=e,m=this.mnemonic;return m&&(g=Object.freeze({phrase:m.phrase,path:e,locale:m.locale||"en"})),new O(C,f,d,this.fingerprint,x(u),t,this.depth+1,g)}derivePath(t){let e=t.split("/");if(0===e.length||"m"===e[0]&&0!==this.depth)throw Error("invalid path - "+t);"m"===e[0]&&e.shift();let r=this;for(let n=0;n<e.length;n++){let i=e[n];if(i.match(/^[0-9]+'$/)){let o=parseInt(i.substring(0,i.length-1));if(o>=2147483648)throw Error("invalid path index - "+i);r=r._derive(2147483648+o)}else if(i.match(/^[0-9]+$/)){let s=parseInt(i);if(s>=2147483648)throw Error("invalid path index - "+i);r=r._derive(s)}else throw Error("invalid path component - "+i)}return r}static _fromSeed(t,e){let r=(0,i.arrayify)(t);if(r.length<16||r.length>64)throw Error("invalid seed");let n=(0,i.arrayify)((0,l.Gy)(h.p.sha512,S,r));return new O(C,x(n.slice(0,32)),null,"0x00000000",x(n.slice(32)),0,0,e)}static fromMnemonic(t,e,r){return t=T(I(t,r=A(r)),r),O._fromSeed(P(t,e),{phrase:t,path:"m",locale:r.locale})}static fromSeed(t){return O._fromSeed(t,null)}static fromExtendedKey(t){let e=n.Base58.decode(t);(82!==e.length||k(e.slice(0,78))!==t)&&w.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");let r=e[4],o=(0,i.hexlify)(e.slice(5,9)),s=parseInt((0,i.hexlify)(e.slice(9,13)).substring(2),16),a=(0,i.hexlify)(e.slice(13,45)),u=e.slice(45,78);switch((0,i.hexlify)(e.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new O(C,null,(0,i.hexlify)(u),o,a,s,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==u[0])break;return new O(C,(0,i.hexlify)(u.slice(1)),null,o,a,s,r,null)}return w.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function P(t,e){e||(e="");let r=(0,s.Y0)("mnemonic"+e,s.Uj.NFKD);
14return(0,a.n)((0,s.Y0)(t,s.Uj.NFKD),r,2048,64,"sha512")}function I(t,e){e=A(e),w.checkNormalize();let r=e.split(t);if(r.length%3!=0)throw Error("invalid mnemonic");let n=(0,i.arrayify)(new Uint8Array(Math.ceil(11*r.length/8))),o=0;for(let s=0;s<r.length;s++){let a=e.getWordIndex(r[s].normalize("NFKD"));if(-1===a)throw Error("invalid mnemonic");for(let u=0;u<11;u++)a&1<<10-u&&(n[o>>3]|=1<<7-o%8),o++}let c=32*r.length/3,h=r.length/3,f=E(h),d=(0,i.arrayify)((0,l.JQ)(n.slice(0,c/8)))[0]&f;if(d!==(n[n.length-1]&f))throw Error("invalid checksum");return(0,i.hexlify)(n.slice(0,c/8))}function T(t,e){if(e=A(e),(t=(0,i.arrayify)(t)).length%4!=0||t.length<16||t.length>32)throw Error("invalid entropy");let r=[0],n=11;for(let o=0;o<t.length;o++)n>8?(r[r.length-1]<<=8,r[r.length-1]|=t[o],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=t[o]>>8-n,r.push(t[o]&(1<<8-n)-1),n+=3);let s=t.length/4,a=(0,i.arrayify)((0,l.JQ)(t))[0]&E(s);return r[r.length-1]<<=s,r[r.length-1]|=a>>8-s,e.join(r.map(t=>e.getWord(t)))}function N(t,e){try{return I(t,e),!0}catch(r){}return!1}function L(t){return("number"!=typeof t||t<0||t>=2147483648||t%1)&&w.throwArgumentError("invalid account index","index",t),`m/44'/60'/${t}'/0/0`}},29816:function(t,e,r){"use strict";r.d(e,{i:function(){return n}});let n="json-wallets/5.7.0"},45659:function(t,e,r){"use strict";r.r(e),r.d(e,{decryptCrowdsale:function(){return m},decryptJsonWallet:function(){return w},decryptJsonWalletSync:function(){return M},decryptKeystore:function(){return _.pe},decryptKeystoreSync:function(){return _.hb},encryptKeystore:function(){return _.HI},getJsonWalletAddress:function(){return v},isCrowdsaleWallet:function(){return y},isKeystoreWallet:function(){return b}});var n=r(78826),i=r.n(n),o=r(19485),s=r(16441),a=r(38197),u=r(85306),c=r(29251),l=r(6881),h=r(1581),f=r(29816),d=r(97013);let p=new h.Logger(f.i);class g extends l.Description{isCrowdsaleAccount(t){return!!(t&&t._isCrowdsaleAccount)}}function m(t,e){let r=JSON.parse(t);e=(0,d.Ij)(e);let n=(0,o.getAddress)((0,d.gx)(r,"ethaddr")),l=(0,d.p3)((0,d.gx)(r,"encseed"));l&&l.length%16==0||p.throwArgumentError("invalid encseed","json",t);let h=(0,s.arrayify)((0,u.n)(e,e,2e3,32,"sha256")).slice(0,16),f=l.slice(0,16),m=l.slice(16),y=new(i()).ModeOfOperation.cbc(h,f),b=i().padding.pkcs7.strip((0,s.arrayify)(y.decrypt(m))),v="";for(let _=0;_<b.length;_++)v+=String.fromCharCode(b[_]);let w=(0,c.Y0)(v),M=(0,a.keccak256)(w);return new g({_isCrowdsaleAccount:!0,address:n,privateKey:M})}function y(t){let e=null;try{e=JSON.parse(t)}catch(r){return!1}return e.encseed&&e.ethaddr}function b(t){let e=null;try{e=JSON.parse(t)}catch(r){return!1}return!!e.version&&parseInt(e.version)===e.version&&3===parseInt(e.version)}function v(t){if(y(t))try{return(0,o.getAddress)(JSON.parse(t).ethaddr)}catch(e){return null}if(b(t))try{return(0,o.getAddress)(JSON.parse(t).address)}catch(r){}return null}var _=r(81964);function w(t,e,r){if(y(t)){r&&r(0);let n=m(t,e);return r&&r(1),Promise.resolve(n)}return b(t)?(0,_.pe)(t,e,r):Promise.reject(Error("invalid JSON wallet"))}function M(t,e){if(y(t))return m(t,e);if(b(t))return(0,_.hb)(t,e);throw Error("invalid JSON wallet")}},81964:function(t,e,r){"use strict";r.d(e,{HI:function(){return A},hb:function(){return x},pe:function(){return k}});var n=r(78826),i=r.n(n),o=r(17635),s=r.n(o),a=r(19485),u=r(16441),c=r(86507),l=r(38197),h=r(85306),f=r(5634),d=r(6881),p=r(83875),g=r(97013),m=r(1581),y=r(29816);let b=new m.Logger(y.i);function v(t){return null!=t&&t.mnemonic&&t.mnemonic.phrase}class _ extends d.Description{isKeystoreAccount(t){return!!(t&&t._isKeystoreAccount)}}function w(t,e){let r=(0,g.p3)((0,g.gx)(t,"crypto/ciphertext")),n=(0,u.hexlify)((0,l.keccak256)((0,u.concat)([e.slice(16,32),r]))).substring(2);if(n!==(0,g.gx)(t,"crypto/mac").toLowerCase())throw Error("invalid password");let o=function(t,e,r){let n=(0,g.gx)(t,"crypto/cipher");if("aes-128-ctr"===n){let o=(0,g.p3)((0,g.gx)(t,"crypto/cipherparams/iv")),s=new(i()).Counter(o),a=new(i()).ModeOfOperation.ctr(e,s);return(0,u.arrayify)(a.decrypt(r))}return null}(t,e.slice(0,16),r);o||b.throwError("unsupported cipher",m.Logger.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});let s=e.slice(32,64),h=(0,p.computeAddress)(o);if(t.address){let f=t.address.toLowerCase();if("0x"!==f.substring(0,2)&&(f="0x"+f),(0,a.getAddress)(f)!==h)throw Error("address mismatch")}let d={_isKeystoreAccount:!0,address:h,privateKey:(0,u.hexlify)(o)};if("0.1"===(0,g.gx)(t,"x-ethers/version")){let y=(0,g.p3)((0,g.gx)(t,"x-ethers/mnemonicCiphertext")),v=(0,g.p3)((0,g.gx)(t,"x-ethers/mnemonicCounter")),w=new(i()).Counter(v),M=new(i()).ModeOfOperation.ctr(s,w),S=(0,g.gx)(t,"x-ethers/path")||c.defaultPath,E=(0,g.gx)(t,"x-ethers/locale")||"en",x=(0,u.arrayify)(M.decrypt(y));try{let k=(0,c.entropyToMnemonic)(x,E),A=c.HDNode.fromMnemonic(k,null,E).derivePath(S);if(A.privateKey!=d.privateKey)throw Error("mnemonic mismatch");d.mnemonic=A.mnemonic}catch(C){if(C.code!==m.Logger.errors.INVALID_ARGUMENT||"wordlist"!==C.argument)throw C}}return new _(d)}function M(t,e,r,n,i){return(0,u.arrayify)((0,h.n)(t,e,r,n,i))}function S(t,e,r,n,i){return Promise.resolve(M(t,e,r,n,i))}function E(t,e,r,n,i){let o=(0,g.Ij)(e),s=(0,g.gx)(t,"crypto/kdf");if(s&&"string"==typeof s){let a=function(t,e){return b.throwArgumentError("invalid key-derivation function parameters",t,e)};if("scrypt"===s.toLowerCase()){let u=(0,g.p3)((0,g.gx)(t,"crypto/kdfparams/salt")),c=parseInt((0,g.gx)(t,"crypto/kdfparams/n")),l=parseInt((0,g.gx)(t,"crypto/kdfparams/r")),h=parseInt((0,g.gx)(t,"crypto/kdfparams/p"));c&&l&&h||a("kdf",s),(c&c-1)!=0&&a("N",c);let f=parseInt((0,g.gx)(t,"crypto/kdfparams/dklen"));return 32!==f&&a("dklen",f),n(o,u,c,l,h,64,i)}if("pbkdf2"===s.toLowerCase()){let d=(0,g.p3)((0,g.gx)(t,"crypto/kdfparams/salt")),p=null,m=(0,g.gx)(t,"crypto/kdfparams/prf");
14"hmac-sha256"===m?p="sha256":"hmac-sha512"===m?p="sha512":a("prf",m);let y=parseInt((0,g.gx)(t,"crypto/kdfparams/c")),v=parseInt((0,g.gx)(t,"crypto/kdfparams/dklen"));return 32!==v&&a("dklen",v),r(o,d,y,v,p)}}return b.throwArgumentError("unsupported key-derivation function","kdf",s)}function x(t,e){let r=JSON.parse(t),n=E(r,e,M,s().syncScrypt);return w(r,n)}function k(t,e,r){var n,i,o,a;return n=this,i=void 0,o=void 0,a=function*(){let n=JSON.parse(t),i=yield E(n,e,S,s().scrypt,r);return w(n,i)},new(o||(o=Promise))(function(t,e){function r(t){try{u(a.next(t))}catch(r){e(r)}}function s(t){try{u(a.throw(t))}catch(r){e(r)}}function u(e){var n;e.done?t(e.value):((n=e.value)instanceof o?n:new o(function(t){t(n)})).then(r,s)}u((a=a.apply(n,i||[])).next())})}function A(t,e,r,n){try{if((0,a.getAddress)(t.address)!==(0,p.computeAddress)(t.privateKey))throw Error("address/privateKey mismatch");if(v(t)){let o=t.mnemonic,h=c.HDNode.fromMnemonic(o.phrase,null,o.locale).derivePath(o.path||c.defaultPath);if(h.privateKey!=t.privateKey)throw Error("mnemonic mismatch")}}catch(d){return Promise.reject(d)}"function"!=typeof r||n||(n=r,r={}),r||(r={});let m=(0,u.arrayify)(t.privateKey),y=(0,g.Ij)(e),b=null,_=null,w=null;if(v(t)){let M=t.mnemonic;b=(0,u.arrayify)((0,c.mnemonicToEntropy)(M.phrase,M.locale||"en")),_=M.path||c.defaultPath,w=M.locale||"en"}let S=r.client;S||(S="ethers.js");let E=null;E=r.salt?(0,u.arrayify)(r.salt):(0,f.O)(32);let x=null;if(r.iv){if(16!==(x=(0,u.arrayify)(r.iv)).length)throw Error("invalid iv")}else x=(0,f.O)(16);let k=null;if(r.uuid){if(16!==(k=(0,u.arrayify)(r.uuid)).length)throw Error("invalid uuid")}else k=(0,f.O)(16);let A=131072,C=8,R=1;return r.scrypt&&(r.scrypt.N&&(A=r.scrypt.N),r.scrypt.r&&(C=r.scrypt.r),r.scrypt.p&&(R=r.scrypt.p)),s().scrypt(y,E,A,C,R,64,n).then(e=>{e=(0,u.arrayify)(e);let r=e.slice(0,16),n=e.slice(16,32),o=e.slice(32,64),s=new(i()).Counter(x),a=new(i()).ModeOfOperation.ctr(r,s),c=(0,u.arrayify)(a.encrypt(m)),h=(0,l.keccak256)((0,u.concat)([n,c])),d={address:t.address.substring(2).toLowerCase(),id:(0,g.EH)(k),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,u.hexlify)(x).substring(2)},ciphertext:(0,u.hexlify)(c).substring(2),kdf:"scrypt",kdfparams:{salt:(0,u.hexlify)(E).substring(2),n:A,dklen:32,p:R,r:C},mac:h.substring(2)}};if(b){let p=(0,f.O)(16),y=new(i()).Counter(p),v=new(i()).ModeOfOperation.ctr(o,y),M=(0,u.arrayify)(v.encrypt(b)),O
14=new Date,P=O.getUTCFullYear()+"-"+(0,g.VP)(O.getUTCMonth()+1,2)+"-"+(0,g.VP)(O.getUTCDate(),2)+"T"+(0,g.VP)(O.getUTCHours(),2)+"-"+(0,g.VP)(O.getUTCMinutes(),2)+"-"+(0,g.VP)(O.getUTCSeconds(),2)+".0Z";d["x-ethers"]={client:S,gethFilename:"UTC--"+P+"--"+d.address,mnemonicCounter:(0,u.hexlify)(p).substring(2),mnemonicCiphertext:(0,u.hexlify)(M).substring(2),path:_,locale:w,version:"0.1"}}return JSON.stringify(d)})}},97013:function(t,e,r){"use strict";r.d(e,{EH:function(){return c},Ij:function(){return a},VP:function(){return s},gx:function(){return u},p3:function(){return o}});var n=r(16441),i=r(29251);function o(t){return"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),(0,n.arrayify)(t)}function s(t,e){for(t=String(t);t.length<e;)t="0"+t;return t}function a(t){return"string"==typeof t?(0,i.Y0)(t,i.Uj.NFKC):(0,n.arrayify)(t)}function u(t,e){let r=t,n=e.toLowerCase().split("/");for(let i=0;i<n.length;i++){let o=null;for(let s in r)if(s.toLowerCase()===n[i]){o=r[s];break}if(null===o)return null;r=o}return r}function c(t){let e=(0,n.arrayify)(t);e[6]=15&e[6]|64,e[8]=63&e[8]|128;let r=(0,n.hexlify)(e);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}},85306:function(t,e,r){"use strict";r.d(e,{n:function(){return o}});var n=r(16441),i=r(2006);function o(t,e,r,o,s){let a,u,c;t=(0,n.arrayify)(t),e=(0,n.arrayify)(e);let l=1,h=new Uint8Array(o),f=new Uint8Array(e.length+4);f.set(e);for(let d=1;d<=l;d++){f[e.length]=d>>24&255,f[e.length+1]=d>>16&255,f[e.length+2]=d>>8&255,f[e.length+3]=255&d;let p=(0,n.arrayify)((0,i.Gy)(s,t,f));a||(a=p.length,c=new Uint8Array(a),l=Math.ceil(o/a),u=o-(l-1)*a),c.set(p);for(let g=1;g<r;g++){p=(0,n.arrayify)((0,i.Gy)(s,t,p));for(let m=0;m<a;m++)c[m]^=p[m]}let y=(d-1)*a,b=d===l?u:a;h.set((0,n.arrayify)(c).slice(0,b),y)}return(0,n.hexlify)(h)}},36049:function(t,e,r){"use strict";r.r(e),r.d(e,{randomBytes:function(){return n.O},shuffled:function(){return i}});var n=r(5634);function i(t){t=t.slice();for(let e=t.length-1;e>0;e--){let r=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[r],t[r]=n}return t}},5634:function(t,e,r){"use strict";r.d(e,{O:function(){return u}});var n=r(16441),i=r(1581);let o=new i.Logger("random/5.7.0"),s=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r.g)return r.g;throw Error("unable to locate global object")}(),a=s.crypto||s.msCrypto;function u(t){(t<=0||t>1024||t%1||t!=t)&&o.throwArgumentError("invalid length","length",t);let e=new Uint8Array(t);return a.getRandomValues(e),(0,n.arrayify)(e)}a&&a.getRandomValues||(o.warn("WARNING: Missing strong random number source"),a={getRandomValues:function(t){return o.throwError("no secure random source avaialble",i.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}})},91278:function(t,e,r){"use strict";r.r(e),r.d(e,{SupportedAlgorithm:function(){return i.p},computeHmac:function(){return n.Gy},ripemd160:function(){return n.bP},sha256:function(){return n.JQ},sha512:function(){return n.o}});var n=r(2006),i=r(21261)},31886:function(t,e,r){"use strict";r.r(e),r.d(e,{keccak256:function(){return p},pack:function(){return d},sha256:function(){return g}});var n=r(2593),i=r(16441),o=r(38197),s=r(2006),a=r(29251),u=r(1581);let c=RegExp("^bytes([0-9]+)$"),l=RegExp("^(u?int)([0-9]*)$"),h=RegExp("^(.*)\\[([0-9]*)\\]$"),f=new u.Logger("solidity/5.7.0");function d(t,e){t.length!=e.length&&f.throwArgumentError("wrong number of values; expected ${ types.length }","values",e);let r=[];return t.forEach(function(t,o){r.push(function t(e,r,o){switch(e){case"address":if(o)return(0,i.zeroPad)(r,32);return(0,i.arrayify)(r);case"string":return(0,a.Y0)(r);case"bytes":return(0,i.arrayify)(r);case"bool":if(r=r?"0x01":"0x00",o)return(0,i.zeroPad)(r,32);return(0,i.arrayify)(r)}let s=e.match(l);if(s){let u=parseInt(s[2]||"256");return(s[2]&&String(u)!==s[2]||u%8!=0||0===u||u>256)&&f.throwArgumentError("invalid number type","type",e),o&&(u=256),r=n.O$.from(r).toTwos(u),(0,i.zeroPad)(r,u/8)}if(s=e.match(c)){let d=parseInt(s[1]);return((String(d)!==s[1]||0===d||d>32)&&f.throwArgumentError("invalid bytes type","type",e),(0,i.arrayify)(r).byteLength!==d&&f.throwArgumentError(`invalid value for ${e}`,"value",r),o)?(0,i.arrayify)((r+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):r}if((s=e.match(h))&&Array.isArray(r)){let p=s[1],g=parseInt(s[2]||String(r.length));g!=r.length&&f.throwArgumentError(`invalid array length for ${e}`,"value",r);let m=[];return r.forEach(function(e){m.push(t(p,e,!0))}),(0,i.concat)(m)}return f.throwArgumentError("invalid type","type",e)}(t,e[o]))}),(0,i.hexlify)((0,i.concat)(r))}function p(t,e){return(0,o.keccak256)(d(t,e))}function g(t,e){return(0,s.JQ)(d(t,e))}},22384:function(t,e,r){"use strict";r.r(e),r.d(e,{UnicodeNormalizationForm:function(){return o.Uj},Utf8ErrorFuncs:function(){return o.te},Utf8ErrorReason:function(){return o.Uw},_toEscapedUtf8String:function(){return o.U$},formatBytes32String:function(){return s},nameprep:function(){return b},parseBytes32String:function(){return a},toUtf8Bytes:function(){return o.Y0},toUtf8CodePoints:function(){return o.XL},toUtf8String:function(){return o.ZN}});var n=r(57218),i=r(16441),o=r(29251);function s(t){let e=(0,o.Y0)(t);if(e.length>31)throw Error("bytes32 string must be less than 32 bytes");return(0,i.hexlify)((0,i.concat)([e,n.R]).slice(0,32))}function a(t){let e=(0,i.arrayify)(t);if(32!==e.length)throw Error("invalid bytes32 - not 32 bytes long");if(0!==e[31])throw Error("invalid bytes32 string - no null terminator");let r=31;for(;0===e[r-1];)r--;return(0,o.ZN)(e.slice(0,r))}function u(t,e){e||(e=function(t){return[parseInt(t,16)]});let r=0,n={};return t.split(",").forEach(t=>{let i=t.split(":");n[r+=parseInt(i[0],16)]=e(i[1])}),n}function c(t){let e=0;return t.split(",").map(t=>{let r=t.split("-");return 1===r.length?r[1]="0":""===r[1]&&(r[1]="1"),{l:e+parseInt(r[0],16),h:e=parseInt(r[1],16)}})}function l(t,e){let r=0;for(let n=0;n<e.length;n++){let i=e[n];if(t>=(r+=i.l)&&t<=r+i.h&&(t-r)%(i.d||1)==0){if(i.e&&-1!==i.e.indexOf(t-r))continue;return i}}return null}let h=c("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,
14115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),f="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(t=>parseInt(t,16)),d=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],p=u("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),g=u("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),m=u("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",function(t){if(t.length%4!=0)throw Error("bad data");let e=[];for(let r=0;r<t.length;r+=4)e.push(parseInt(t.substring(r,r+4),16));return e}),y=c("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function b(t){if(t.match(/^[a-z0-9-]*$/i)&&t.length<=59)return t.toLowerCase();let e=(0,o.XL)(t);e=e.map(t=>f.indexOf(t)>=0||t>=65024&&t<=65039?[]:function(t){let e=l(t,d);if(e)return[t+e.s];let r=p[t];if(r)return r;let n=g[t];return n?[t+n[0]]:m[t]||null}(t)||[t]).reduce((t,e)=>
14(e.forEach(e=>{t.push(e)}),t),[]),(e=(0,o.XL)((0,o.uu)(e),o.Uj.NFKC)).forEach(t=>{if(l(t,y))throw Error("STRINGPREP_CONTAINS_PROHIBITED")}),e.forEach(t=>{if(l(t,h))throw Error("STRINGPREP_CONTAINS_UNASSIGNED")});let r=(0,o.uu)(e);if("-"===r.substring(0,1)||"--"===r.substring(2,4)||"-"===r.substring(r.length-1))throw Error("invalid hyphen");return r}},79911:function(t,e,r){"use strict";r.r(e),r.d(e,{Wallet:function(){return _},verifyMessage:function(){return w},verifyTypedData:function(){return M}});var n=r(19485),i=r(81556),o=r(48088),s=r(16441),a=r(93684),u=r(67827),c=r(86507),l=r(38197),h=r(6881),f=r(5634),d=r(67669),p=r(81964),g=r(45659),m=r(83875),y=r(1581),b=function(t,e,r,n){return new(r||(r=Promise))(function(i,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(s,a)}u((n=n.apply(t,e||[])).next())})};let v=new y.Logger("wallet/5.7.0");class _ extends o.E{constructor(t,e){var r;if(super(),null!=(r=t)&&(0,s.isHexString)(r.privateKey,32)&&null!=r.address){let o=new d.SigningKey(t.privateKey);if((0,h.defineReadOnly)(this,"_signingKey",()=>o),(0,h.defineReadOnly)(this,"address",(0,m.computeAddress)(this.publicKey)),this.address!==(0,n.getAddress)(t.address)&&v.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(t){let e=t.mnemonic;return e&&e.phrase}(t)){let a=t.mnemonic;(0,h.defineReadOnly)(this,"_mnemonic",()=>({phrase:a.phrase,path:a.path||c.defaultPath,locale:a.locale||"en"}));let u=this.mnemonic,l=c.HDNode.fromMnemonic(u.phrase,null,u.locale).derivePath(u.path);(0,m.computeAddress)(l.privateKey)!==this.address&&v.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else(0,h.defineReadOnly)(this,"_mnemonic",()=>null)}else{if(d.SigningKey.isSigningKey(t))"secp256k1"!==t.curve&&v.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),(0,h.defineReadOnly)(this,"_signingKey",()=>t);else{"string"==typeof t&&t.match(/^[0-9a-f]*$/i)&&64===t.length&&(t="0x"+t);let f=new d.SigningKey(t);(0,h.defineReadOnly)(this,"_signingKey",()=>f)}(0,h.defineReadOnly)(this,"_mnemonic",()=>null),(0,h.defineReadOnly)(this,"address",(0,m.computeAddress)(this.publicKey))}e&&!i.zt.isProvider(e)&&v.throwArgumentError("invalid provider","provider",e),(0,h.defineReadOnly)(this,"provider",e||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(t){return new _(this,t)}signTransaction(t){return(0,h.resolveProperties)(t).then(e=>{null!=e.from&&((0,n.getAddress)(e.from)!==this.address&&v.throwArgumentError("transaction from address mismatch","transaction.from",t.from),delete e.from);let r=this._signingKey().signDigest((0,l.keccak256)((0,m.serialize)(e)));return(0,m.serialize)(e,r)})}signMessage(t){return b(this,void 0,void 0,function*(){return(0,s.joinSignature)(this._signingKey().signDigest((0,a.r)(t)))})}_signTypedData(t,e,r){return b(this,void 0,void 0,function*(){let n=yield u.E.resolveNames(t,e,r,t=>(null==this.provider&&v.throwError("cannot resolve ENS names without a provider",y.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:t}),this.provider.resolveName(t)));return(0,s.joinSignature)(this._signingKey().signDigest(u.E.hash(n.domain,e,n.value)))})}encrypt(t,e,r){if("function"!=typeof e||r||(r=e,e={}),r&&"function"!=typeof r)throw Error("invalid callback");return e||(e={}),(0,p.HI)(this,t,e,r)}static createRandom(t){let e=(0,f.O)(16);t||(t={}),t.extraEntropy&&(e=(0,s.arrayify)((0,s.hexDataSlice)((0,l.keccak256)((0,s.concat)([e,t.extraEntropy])),0,16)));let r=(0,c.entropyToMnemonic)(e,t.locale);return _.fromMnemonic(r,t.path,t.locale)}static fromEncryptedJson(t,e,r){return(0,g.decryptJsonWallet)(t,e,r).then(t=>new _(t))}static fromEncryptedJsonSync(t,e){return new _((0,g.decryptJsonWalletSync)(t,e))}static fromMnemonic(t,e,r){return e||(e=c.defaultPath),new _(c.HDNode.fromMnemonic(t,null,r).derivePath(e))}}function w(t,e){return(0,m.recoverAddress)((0,a.r)(t),e)}function M(t,e,r,n){return(0,m.recoverAddress)(u.E.hash(t,e,r),n)}},51968:function(t,e,r){"use strict";r.r(e),r.d(e,{detectEnv:function(){return m},detectOS:function(){return y},formatIOSMobile:function(){return H},formatMobileRegistry:function(){return J},formatMobileRegistryEntry:function(){return $},getClientMeta:function(){return L},getCrypto:function(){return I},getCryptoOrThrow:function(){return P},getDappRegistryUrl:function(){return Z},getDocument:function(){return k},getDocumentOrThrow:function(){return x},getFromWindow:function(){return S},getFromWindowOrThrow:function(){return E},getLocal:function(){return F},getLocalStorage:function(){return N},getLocalStorageOrThrow:function(){return T},getLocation:function(){return O},getLocationOrThrow:function(){return R},getMobileLinkRegistry:function(){return V},getMobileRegistryEntry:function(){return W},getNavigator:function(){return C},getNavigatorOrThrow:function(){return A},getWalletRegistryUrl:function(){return G},isAndroid:function(){return b},isBrowser:function(){return M},isIOS:function(){return v},isMobile:function(){return _},isNode:function(){return w}
14,mobileLinkChoiceKey:function(){return z},removeLocal:function(){return U},safeJsonParse:function(){return j},safeJsonStringify:function(){return B},saveMobileLinkInfo:function(){return q},setLocal:function(){return D}});var n=r(65755),i=r(40957),o=r(34155),s=function(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var n=Array(t),i=0,e=0;e<r;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)n[i]=o[s];return n},a=function(t,e,r){this.name=t,this.version=e,this.os=r,this.type="browser"},u=function(t){this.version=t,this.type="node",this.name="node",this.os=o.platform},c=function(t,e,r,n){this.name=t,this.version=e,this.os=r,this.bot=n,this.type="bot-device"},l=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},h=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},f=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,d=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],p=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function g(t){var e=""!==t&&d.reduce(function(e,r){var n=r[0],i=r[1];if(e)return e;var o=i.exec(t);return!!o&&[n,o]},!1);if(!e)return null;var r=e[0],n=e[1];if("searchbot"===r)return new l;var i=n[1]&&n[1].split(/[._]/).slice(0,3);i?i.length<3&&(i=s(i,function(t){for(var e=[],r=0;r<t;r++)e.push("0");return e}(3-i.length))):i=[];var o=i.join("."),u=function(t){for(var e=0,r=p.length;e<r;e++){var n=p[e],i=n[0];if(n[1].exec(t))return i}return null}(t),h=f.exec(t);return h&&h[1]?new c(r,o,u,h[1]):new a(r,o,u)}function m(t){return t?g(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new h:"undefined"!=typeof navigator?g(navigator.userAgent):void 0!==o&&o.version?new u(o.version.slice(1)):null}function y(){let t=m();return t&&t.os?t.os:void 0}function b(){let t=y();return!!t&&t.toLowerCase().includes("android")}function v(){let t=y();return!!t&&(t.toLowerCase().includes("ios")||t.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1)}function _(){let t=y();return!!t&&(b()||v())}function w(){let t=m(),e=!!t&&!!t.name&&"node"===t.name.toLowerCase();return e}function M(){let t=!w()&&!!C();return t}let S=i.sD,E=i.$2,x=i.uT,k=i.Me,A=i.Gw,C=i.jW,R=i.UO,O=i.k$,P=i.VQ,I=i.MX,T=i.xP,N=i.$o;function L(){return n.D()}let j=function(t){if("string"!=typeof t)throw Error(`Cannot safe json parse value of type ${typeof t}`);try{return JSON.parse(t)}catch(e){return t}},B=function(t){return"string"==typeof t?t:JSON.stringify(t)};function D(t,e){let r=B(e),n=N();n&&n.setItem(t,r)}function F(t){let e=null,r=N();return r&&(e=r.getItem(t)),e?j(e):e}function U(t){let e=N();e&&e.removeItem(t)}let z="WALLETCONNECT_DEEPLINK_CHOICE";function H(t,e){let r=encodeURIComponent(t);return e.universalLink?`${e.universalLink}/wc?uri=${r}`:e.deepLink?`${e.deepLink}${e.deepLink.endsWith(":")?"//":"/"}wc?uri=${r}`:""}function q(t){let e=t.href.split("?")[0];D(z,Object.assign(Object.assign({},t),{href:e}))}function W(t,e){return t.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))[0]}function V(t,e){let r=t;return e&&(r=e.map(e=>
14W(t,e)).filter(Boolean)),r}let K="https://registry.walletconnect.com";function G(){return K+"/api/v2/wallets"}function Z(){return K+"/api/v2/dapps"}function $(t,e="mobile"){var r;return{name:t.name||"",shortName:t.metadata.shortName||"",color:t.metadata.colors.primary||"",logo:null!==(r=t.image_url.sm)&&void 0!==r?r:"",universalLink:t[e].universal||"",deepLink:t[e].native||""}}function J(t,e="mobile"){return Object.values(t).filter(t=>!!t[e].universal||!!t[e].native).map(t=>$(t,e))}},40957:function(t,e){"use strict";function r(t){let e;return"undefined"!=typeof window&&void 0!==window[t]&&(e=window[t]),e}function n(t){let e=r(t);if(!e)throw Error(`${t} is not defined in Window`);return e}e.$o=e.xP=e.MX=e.VQ=e.k$=e.UO=e.jW=e.Gw=e.Me=e.uT=e.$2=e.sD=void 0,e.sD=r,e.$2=n,e.uT=function(){return n("document")},e.Me=function(){return r("document")},e.Gw=function(){return n("navigator")},e.jW=function(){return r("navigator")},e.UO=function(){return n("location")},e.k$=function(){return r("location")},e.VQ=function(){return n("crypto")},e.MX=function(){return r("crypto")},e.xP=function(){return n("localStorage")},e.$o=function(){return r("localStorage")}},4337:function(t,e,r){var n=r(34155);function i(t){return t&&"object"==typeof t&&"default"in t?t.default:t}var o=r(51968),s=i(r(33133)),a=i(r(20640)),u=r(89714);"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var c="walletconnect-wrapper",l="walletconnect-style-sheet",h="walletconnect-qrcode-modal",f="walletconnect-qrcode-text";function d(t){return u.createElement("div",{className:"walletconnect-modal__header"},u.createElement("img",{src:"data:image/svg+xml,%3Csvg height='185' viewB
14ox='0 0 300 185' width='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m61.4385429 36.2562612c48.9112241-47.8881663 128.2119871-47.8881663 177.1232091 0l5.886545 5.7634174c2.445561 2.3944081 2.445561 6.2765112 0 8.6709204l-20.136695 19.715503c-1.222781 1.1972051-3.2053 1.1972051-4.428081 0l-8.100584-7.9311479c-34.121692-33.4079817-89.443886-33.4079817-123.5655788 0l-8.6750562 8.4936051c-1.2227816 1.1972041-3.205301 1.1972041-4.4280806 0l-20.1366949-19.7155031c-2.4455612-2.3944092-2.4455612-6.2765122 0-8.6709204zm218.7677961 40.7737449 17.921697 17.546897c2.445549 2.3943969 2.445563 6.2764769.000031 8.6708899l-80.810171 79.121134c-2.445544 2.394426-6.410582 2.394453-8.85616.000062-.00001-.00001-.000022-.000022-.000032-.000032l-57.354143-56.154572c-.61139-.598602-1.60265-.598602-2.21404 0-.000004.000004-.000007.000008-.000011.000011l-57.3529212 56.154531c-2.4455368 2.394432-6.4105755 2.394472-8.8561612.000087-.0000143-.000014-.0000296-.000028-.0000449-.000044l-80.81241943-79.122185c-2.44556021-2.394408-2.44556021-6.2765115 0-8.6709197l17.92172963-17.5468673c2.4455602-2.3944082 6.4105989-2.3944082 8.8561602 0l57.3549775 56.155357c.6113908.598602 1.602649.598602 2.2140398 0 .0000092-.000009.0000174-.000017.0000265-.000024l57.3521031-56.155333c2.445505-2.3944633 6.410544-2.3945531 8.856161-.0002.000034.0000336.000068.0000673.000101.000101l57.354902 56.155432c.61139.598601 1.60265.598601 2.21404 0l57.353975-56.1543249c2.445561-2.3944092 6.410599-2.3944092 8.85616 0z' fill='%233b99fc'/%3E%3C/svg%3E",className:"walletconnect-modal__headerLogo"}),u.createElement("p",null,"WalletConnect"),u.createElement("div",{className:"walletconnect-modal__close__wrapper",onClick:t.onClose},u.createElement("div",{id:"walletconnect-qrcode-close",className:"walletconnect-modal__close__icon"},u.createElement("div",{className:"walletconnect-modal__close__line1"}),u.createElement("div",{className:"walletconnect-modal__close__line2"}))))}function p(t){return u.createElement("a",{className:"walletconnect-connect__button",href:t.href,id:"walletconnect-connect-button-"+t.name,onClick:t.onClick,rel:"noopener noreferrer",style:{backgroundColor:t.color},target:"_blank"},t.name)}function g(t){var e=t.color,r=t.href,n=t.name,i=t.logo,o=t.onClick;return u.createElement("a",{className:"walletconnect-modal__base__row",href:r,onClick:o,rel:"noopener noreferrer",target:"_blank"},u.createElement("h3",{className:"walletconnect-modal__base__row__h3"},n),u.createElement("div",{className:"walletconnect-modal__base__row__right"},u.createElement("div",{className:"walletconnect-modal__base__row__right__app-icon",style:{background:"url('"+i+"') "+e,backgroundSize:"100%"}}),u.createElement("img",{src:"data:image/svg+xml,%3Csvg fill='none' height='18' viewBox='0 0 8 18' width='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath clip-rule='evenodd' d='m.586301.213898c-.435947.33907-.5144813.967342-.175411 1.403292l4.87831 6.27212c.28087.36111.28087.86677 0 1.22788l-4.878311 6.27211c-.33907.436-.260536 1.0642.175412 1.4033.435949.3391 1.064219.2605 1.403289-.1754l4.87832-6.2721c.84259-1.08336.84259-2.60034 0-3.68367l-4.87832-6.27212c-.33907-.4359474-.96734-.514482-1.403289-.175412z' fill='%233c4252' fill-rule='evenodd'/%3E%3C/svg%3E",className:"walletconnect-modal__base__row__right__caret"})))}function m(t){var e=t.color,r=t.href,n=t.name,i=t.logo,o=t.onClick,s=window.innerWidth<768?(n.length>8?2.5:2.7)+"vw":"inherit";return u.createElement("a",{className:"walletconnect-connect__button__icon_anchor",href:r,onClick:o,rel:"noopener noreferrer",target:"_blank"},u.createElement("div",{className:"walletconnect-connect__button__icon",style:{background:"url('"+i+"') "+e,backgroundSize:"100%"}}),u.createElement("div",{style:{fontSize:s},className:"walletconnect-connect__button__text"},n))}function y(t){var e=o.isAndroid(),r=u.useState(""),n=r[0],i=r[1],s=u.useState(""),a=s[0],c=s[1],l=u.useState(1),h=l[0],d=l[1],y=a?t.links.filter(function(t){return t.name.toLowerCase().includes(a.toLowerCase())}):t.links,b=t.errorMessage,v=a||y.length>5,_=Math.ceil(y.length/12),w=[(h-1)*12+1,12*h],M=y.length?y.filter(function(t,e){return e+1>=w[0]&&e+1<=w[1]}):[],S=void 0;return u.createElement("div",null,u.createElement("p",{id:f,className:"walletconnect-qrcode__text"},e?t.text.connect_mobile_wallet:t.text.choose_preferred_wallet),!e&&u.createElement("input",{className:"walletconnect-search__input",placeholder:"Search",value:n,onChange:function(t){i(t.target.value),clearTimeout(S),t.target.value?S=setTimeout(function(){c(t.target.value),d(1)},1e3):(i(""),c(""),d(1))}}),u.createElement("div",{className:"walletconnect-connect__buttons__wrapper"+(e?"__android":v&&y.length?"__wrap":"")},e?u.createElement(p,{name:t.text.connect,color:"rgb(64, 153, 255)",href:t.uri,onClick:u.useCallback(function(){o.saveMobileLinkInfo({name:"Unknown",href:t.uri})},[])}):M.length?M.map(function(e){var r=e.color,n=e.name,i=e.shortName,s=e.logo,a=o.formatIOSMobile(t.uri,e),c=u.useCallback(function(){o.saveMobileLinkInfo({name:n,href:a})},[M]);return v?u.createElement(m,{color:r,href:a,name:i||n,logo:s,onClick:c}):u.createElement(g,{color:r,href:a,name:n,logo:s,onClick:c})}):u.createElement(u.Fragment,null,u.createElement("p",null,b.length?t.errorMessage:t.links.length&&!y.length?t.text.no_wallets_found:t.text.loading))),!!(!e&&_>1)&&u.createElement("div",{className:"walletconnect-modal__footer"},Array(_).fill(0).map(function(t,e){var r=e+1;return u.createElement("a",{style:{margin:"auto 10px",fontWeight:h===r?"bold":"normal"},onClick:function(){return d(r)}},r)})))}function b(t){var e=!!t.message.trim();return u.createElement("div",{className:"walletconnect-qrcode__notification"+(e?" notification__show":"")},t.message)}var v=function(t){try{var e="";return Promise.resolve(s.toString(t,{margin:0,type:"svg"})).then(function(t){return"string"==typeof t&&(e=t.replace("<svg",'<svg class="walletconnect-qrcode__image"')),e})}catch(r){return Promise.reject(r)}};function _(t){var e=u.useState(""),r=e[0],n=e[1],i=u.useState(""),o=i[0],s=i[1];u.useEffect(function(){try{return Promise.resolve(v(t.uri)).then(function(t){s(t)})}catch(e){Promise.reject(e)}},[]);var c=function(){a(t.uri)?(n(t.text.copied_to_clipboard),setInterval(function(){return n("")},1200)):(n("Error"),setInterval(function(){return n("")},1200))};return u.createElement("div",null,u.createElement("p",{id:f,className:"walletconnect-qrcode__text"},t.text.scan_qrcode_with_wallet),u.createElement("div",{dangerouslySetInnerHTML:{__html:o}}),u.createElement("div",{className:"walletconnect-modal__footer"},u.createElement("a",{onClick:c},t.text.copy_to_clipboard)),u.createElement(b,{message:r}))}function w(t){var e=o.isAndroid(),r=o.isMobile(),n=r?t.qrcodeModalOptions&&t.qrcodeModalOptions.mobileLinks?t.qrcodeModalOptions.mobileLinks:void 0:t.qrcodeModalOptions&&t.qrcodeModalOptions.desktopLinks?t.qrcodeModalOptions.desktopLinks:void 0,i=u.useState(!1),s=i[0],a=i[1],c=u.useState(!1),l=c[0],f=c[1],p=u.useState(!r),g=p[0],m=p[1],b={mobile:r,text:t.text,uri:t.uri,qrcodeModalOptions:t.qrcodeModalOptions},v=u.useState(""),w=v[0],M=v[1],S=u.useState(!1),E=S[0],x=S[1],k=u.useState([]),A=k[0],C=k[1],R=u.useState(""),O=
14R[0],P=R[1],I=function(){l||s||n&&!n.length||A.length>0||u.useEffect(function(){!function(){try{if(e)return Promise.resolve();a(!0);var i=function(t,e){try{var r=t()}catch(n){return e(n)}return r&&r.then?r.then(void 0,e):r}(function(){var e=t.qrcodeModalOptions&&t.qrcodeModalOptions.registryUrl?t.qrcodeModalOptions.registryUrl:o.getWalletRegistryUrl();return Promise.resolve(fetch(e)).then(function(e){return Promise.resolve(e.json()).then(function(e){var i=e.listings,s=o.getMobileLinkRegistry(o.formatMobileRegistry(i,r?"mobile":"desktop"),n);a(!1),f(!0),P(s.length?"":t.text.no_supported_wallets),C(s);var u=1===s.length;u&&(M(o.formatIOSMobile(t.uri,s[0])),m(!0)),x(u)})})},function(e){a(!1),f(!0),P(t.text.something_went_wrong),console.error(e)});Promise.resolve(i&&i.then?i.then(function(){}):void 0)}catch(s){return Promise.reject(s)}}()})};return I(),u.createElement("div",{id:h,className:"walletconnect-qrcode__base animated fadeIn"},u.createElement("div",{className:"walletconnect-modal__base"},u.createElement(d,{onClose:t.onClose}),E&&g?u.createElement("div",{className:"walletconnect-modal__single_wallet"},u.createElement("a",{onClick:function(){return o.saveMobileLinkInfo({name:A[0].name,href:w})},href:w,rel:"noopener noreferrer",target:"_blank"},t.text.connect_with+" "+(E?A[0].name:"")+" âº")):e||s||!s&&A.length?u.createElement("div",{className:"walletconnect-modal__mobile__toggle"+((r?g:!g)?" right__selected":"")},u.createElement("div",{className:"walletconnect-modal__mobile__toggle_selector"}),r?u.createElement(u.Fragment,null,u.createElement("a",{onClick:function(){return m(!1),I()}},t.text.mobile),u.createElement("a",{onClick:function(){return m(!0)}},t.text.qrcode)):u.createElement(u.Fragment,null,u.createElement("a",{onClick:function(){return m(!0)}},t.text.qrcode),u.createElement("a",{onClick:function(){return m(!1),I()}},t.text.desktop))):null,u.createElement("div",null,!g&&(e||s||A.length)?u.createElement(y,Object.assign({},b,{links:A,errorMessage:O})):u.createElement(_,Object.assign({},b)))))}var M={de:{choose_preferred_wallet:"W\xe4hle bevorzugte Wallet",connect_mobile_wallet:"Verbinde mit Mobile Wallet",scan_qrcode_with_wallet:"Scanne den QR-code mit einer WalletConnect kompatiblen Wallet",connect:"Verbinden",qrcode:"QR-Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"In die Zwischenablage kopieren",copied_to_clipboard:"In die Zwischenablage kopiert!",connect_with:"Verbinden mit Hilfe von",loading:"Laden...",something_went_wrong:"Etwas ist schief gelaufen",no_supported_wallets:"Es gibt noch keine unterst\xfctzten Wallet",no_wallets_found:"keine Wallet gefunden"},en:{choose_preferred_wallet:"Choose your preferred wallet",connect_mobile_wallet:"Connect to Mobile Wallet",scan_qrcode_with_wallet:"Scan QR code with a WalletConnect-compatible wallet",connect:"Connect",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copy to clipboard",copied_to_clipboard:"Copied to clipboard!",connect_with:"Connect with",loading:"Loading...",something_went_wrong:"Something went wrong",no_supported_wallets:"There are no supported wallets yet",no_wallets_found:"No wallets found"},es:{choose_preferred_wallet:"Elige tu billetera preferida",connect_mobile_wallet:"Conectar a billetera m\xf3vil",scan_qrcode_with_wallet:"Escanea el c\xf3digo QR con una billetera compatible con WalletConnect",connect:"Conectar",qrcode:"C\xf3digo QR",mobile:"M\xf3vil",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Conectar mediante",loading:"Cargando...",something_went_wrong:"Algo sali\xf3 mal",no_supported_wallets:"Todav\xeda no hay billeteras compatibles",no_wallets_found:"No se encontraron billeteras"},fr:{choose_preferred_wallet:"Choisissez votre portefeuille pr\xe9f\xe9r\xe9",connect_mobile_wallet:"Se connecter au portefeuille mobile",scan_qrcode_with_wallet:"Scannez le QR code avec un portefeuille compatible WalletConnect",connect:"Se connecter",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copier",copied_to_clipboard:"Copi\xe9!",connect_with:"Connectez-vous \xe0 l'aide de",loading:"Chargement...",something_went_wrong:"Quelque chose a mal tourn\xe9",no_supported_wallets:"Il n'y a pas encore de portefeuilles pris en charge",no_wallets_found:"Aucun portefeuille trouv\xe9"},ko:{choose_preferred_wallet:"ìíë ì§ê°ì ì ííì¸ì",connect_mobile_wallet:"모ë°ì¼ ì§ê°ê³¼ ì°ê²°",scan_qrcode_with_wallet:"WalletConnect ì§ì ì§ê°ìì QRì½ë를 ì¤ìºíì¸ì",connect:"ì°ê²°",qrcode:"QR ì½ë",mobile:"모ë°ì¼",desktop:"ë°ì¤í¬í",copy_to_clipboard:"í´ë¦½ë³´ëì ë³µì¬",copied_to_clipboard:"í´ë¦½ë³´ëì ë³µì¬ëììµëë¤!",connect_with:"ì ì°ê²°íë¤",loading:"ë¡ë ì¤...",something_went_wrong:"문ì ê° ë°ìíìµëë¤.",no_supported_wallets:"ìì§ ì§ìëë ì§ê°ì´ ììµëë¤",no_wallets_found:"ì§ê°ì ì°¾ì ì ììµëë¤"},pt:{choose_preferred_wallet:"Escolha sua carteira preferida",connect_mobile_wallet:"Conectar-se \xe0 carteira m\xf3vel",scan_qrcode_with_wallet:"Ler o c\xf3digo QR com uma carteira compat\xedvel com WalletConnect",connect:"Conectar",qrcode:"C\xf3digo QR",mobile:"M\xf3vel",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Ligar por meio de",loading:"Carregamento...",something_went_wrong:"Algo correu mal",no_supported_wallets:"Ainda n\xe3o h\xe1 carteiras suportadas",no_wallets_found:"Nenhuma carteira encontrada"},zh:{choose_preferred_wallet:"éæ©ä½ çé±å
",connect_mobile_wallet:"è¿æ¥è³ç§»å¨ç«¯é±å
",scan_qrcode_with_wallet:"使ç¨å
¼å®¹ WalletConnect çé±å
æ«æäºç»´ç ",connect:"è¿æ¥",qrcode:"äºç»´ç ",mobile:"ç§»å¨",desktop:"æ¡é¢",copy_to_clipboard:"å¤å¶å°åªè´´æ¿",copied_to_clipboard:"å¤å¶å°åªè´´æ¿æåï¼",connect_with:"éè¿ä»¥ä¸æ¹å¼è¿æ¥",loading:"æ£å¨å è½½...",something_went_wrong:"åºäºé®é¢",no_supported_wallets:"ç®åè¿æ²¡ææ¯æçé±å
",no_wallets_found:"æ²¡ææ¾å°é±å
"},fa:{choose_preferred_wallet:"Ú©ÛÙ Ù¾ÙÙ Ù
ÙØ±Ø¯ ÙØ¸Ø± Ø®ÙØ¯ را Ø§ÙØªØ®Ø§Ø¨ Ú©ÙÛØ¯",connect_mobile_wallet:"ب٠کÛÙ Ù¾ÙÙ Ù
ÙØ¨Ø§ÛÙ ÙØµÙ Ø´ÙÛØ¯",scan_qrcode_with_wallet:"کد QR را با ÛÚ© Ú©ÛÙ Ù¾Ù٠سازگار با WalletConnect اسک٠کÙÛØ¯",connect:"اتصاÙ",qrcode:"کد QR",mobile:"Ø³ÛØ§Ø±",desktop:"دسکتاپ",copy_to_clipboard:"Ú©Ù¾Û Ø¨Ù Ú©ÙÛÙ¾ Ø¨ÙØ±Ø¯",copied_to_clipboard:"در Ú©ÙÛÙ¾ Ø¨ÙØ±Ø¯ Ú©Ù¾Û Ø´Ø¯!",connect_with:"ارتباط با",loading:"...بارگذارÛ",something_went_wrong:"Ù
Ø´Ú©ÙÛ Ù¾ÛØ´ Ø¢Ù
د",no_supported_wallets:"ÙÙÙØ² ÙÛÚ Ú©ÛÙ Ù¾ÙÙ Ù¾Ø´ØªÛØ¨Ø§ÙÛ Ø´Ø¯Ù Ø§Û ÙØ¬Ùد ÙØ¯Ø§Ø±Ø¯",no_wallets_found:"ÙÛÚ Ú©ÛÙ Ù¾ÙÙÛ Ù¾ÛØ¯Ø§ ÙØ´Ø¯"}};function S(){var t=o.getDocumentOrThrow(),e=t.getElementById(h);e&&(e.className=e.className.replace("fadeIn","fadeOut"),setTimeout(function(){var e=t.getElementById(c);e&&t.body.removeChild(e)},300))}var E=function(){return void 0!==n&&void 0!==n.versions&&void 0!==n.versions.node};t.exports={open:function(t,e,r){if(console.log(t),E())!function(t){s.toString(t,{type:"terminal"}).then(console.log)}(t);else{var n,i,a,h,f;(i=(n=o.getDocumentOrThrow()).getElementById(l))&&n.head.removeChild(i),(a=n.createElement("style")).setAttribute("id",l),a
vendor: 10,555 bytes, line 14
14.innerText=':root {\n --animation-duration: 300ms;\n}\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n@keyframes fadeOut {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n}\n\n.animated {\n animation-duration: var(--animation-duration);\n animation-fill-mode: both;\n}\n\n.fadeIn {\n animation-name: fadeIn;\n}\n\n.fadeOut {\n animation-name: fadeOut;\n}\n\n#walletconnect-wrapper {\n -webkit-user-select: none;\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n left: 0;\n pointer-events: none;\n position: fixed;\n top: 0;\n user-select: none;\n width: 100%;\n z-index: 99999999999999;\n}\n\n.walletconnect-modal__headerLogo {\n height: 21px;\n}\n\n.walletconnect-modal__header p {\n color: #ffffff;\n font-size: 20px;\n font-weight: 600;\n margin: 0;\n align-items: flex-start;\n display: flex;\n flex: 1;\n margin-left: 5px;\n}\n\n.walletconnect-modal__close__wrapper {\n position: absolute;\n top: 0px;\n right: 0px;\n z-index: 10000;\n background: white;\n border-radius: 26px;\n padding: 6px;\n box-sizing: border-box;\n width: 26px;\n height: 26px;\n cursor: pointer;\n}\n\n.walletconnect-modal__close__icon {\n position: relative;\n top: 7px;\n right: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n transform: rotate(45deg);\n}\n\n.walletconnect-modal__close__line1 {\n position: absolute;\n width: 100%;\n border: 1px solid rgb(48, 52, 59);\n}\n\n.walletconnect-modal__close__line2 {\n position: absolute;\n width: 100%;\n border: 1px solid rgb(48, 52, 59);\n transform: rotate(90deg);\n}\n\n.walletconnect-qrcode__base {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n background: rgba(37, 41, 46, 0.95);\n height: 100%;\n left: 0;\n pointer-events: auto;\n position: fixed;\n top: 0;\n transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n width: 100%;\n will-change: opacity;\n padding: 40px;\n box-sizing: border-box;\n}\n\n.walletconnect-qrcode__text {\n color: rgba(60, 66, 82, 0.6);\n font-size: 16px;\n font-weight: 600;\n letter-spacing: 0;\n line-height: 1.1875em;\n margin: 10px 0 20px 0;\n text-align: center;\n width: 100%;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-qrcode__text {\n font-size: 4vw;\n }\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-qrcode__text {\n font-size: 14px;\n }\n}\n\n.walletconnect-qrcode__image {\n width: calc(100% - 30px);\n box-sizing: border-box;\n cursor: none;\n margin: 0 auto;\n}\n\n.walletconnect-qrcode__notification {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n font-size: 16px;\n padding: 16px 20px;\n border-radius: 16px;\n text-align: center;\n transition: all 0.1s ease-in-out;\n background: white;\n color: black;\n margin-bottom: -60px;\n opacity: 0;\n}\n\n.walletconnect-qrcode__notification.notification__show {\n opacity: 1;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-modal__header {\n height: 130px;\n }\n .walletconnect-modal__base {\n overflow: auto;\n }\n}\n\n@media only screen and (min-device-width: 415px) and (max-width: 768px) {\n #content {\n max-width: 768px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (min-width: 375px) and (max-width: 415px) {\n #content {\n max-width: 414px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (min-width: 320px) and (max-width: 375px) {\n #content {\n max-width: 375px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (max-width: 320px) {\n #content {\n max-width: 320px;\n box-sizing: border-box;\n }\n}\n\n.walletconnect-modal__base {\n -webkit-font-smoothing: antialiased;\n background: #ffffff;\n border-radius: 24px;\n box-shadow: 0 10px 50px 5px rgba(0, 0, 0, 0.4);\n font-family: ui-rounded, "SF Pro Rounded", "SF Pro Text", medium-content-sans-serif-font,\n -apple-system, BlinkMacSystemFont, ui-sans-serif, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,\n "Open Sans", "Helvetica Neue", sans-serif;\n margin-top: 41px;\n padding: 24px 24px 22px;\n pointer-events: auto;\n position: relative;\n text-align: center;\n transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n will-change: transform;\n overflow: visible;\n transform: translateY(-50%);\n top: 50%;\n max-width: 500px;\n margin: auto;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-modal__base {\n padding: 24px 12px;\n }\n}\n\n.walletconnect-modal__base .hidden {\n transform: translateY(150%);\n transition: 0.125s cubic-bezier(0.4, 0, 1, 1);\n}\n\n.walletconnect-modal__header {\n align-items: center;\n display: flex;\n height: 26px;\n left: 0;\n justify-content: space-between;\n position: absolute;\n top: -42px;\n width: 100%;\n}\n\n.walletconnect-modal__base .wc-logo {\n align-items: center;\n display: flex;\n height: 26px;\n margin-top: 15px;\n padding-bottom: 15px;\n pointer-events: auto;\n}\n\n.walletconnect-modal__base .wc-logo div {\n background-color: #3399ff;\n height: 21px;\n margin-right: 5px;\n mask-image: url("images/wc-logo.svg") center no-repeat;\n width: 32px;\n}\n\n.walletconnect-modal__base .wc-logo p {\n color: #ffffff;\n font-size: 20px;\n font-weight: 600;\n margin: 0;\n}\n\n.walletconnect-modal__base h2 {\n color: rgba(60, 66, 82, 0.6);\n font-size: 16px;\n font-weight: 600;\n letter-spacing: 0;\n line-height: 1.1875em;\n margin: 0 0 19px 0;\n text-align: center;\n width: 100%;\n}\n\n.walletconnect-modal__base__row {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n align-items: center;\n border-radius: 20px;\n cursor: pointer;\n display: flex;\n height: 56px;\n justify-content: space-between;\n padding: 0 15px;\n position: relative;\n margin: 0px 0px 8px;\n text-align: left;\n transition: 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n will-change: transform;\n text-decoration: none;\n}\n\n.walletconnect-modal__base__row:hover {\n background: rgba(60, 66, 82, 0.06);\n}\n\n.walletconnect-modal__base__row:active {\n background: rgba(60, 66, 82, 0.06);\n transform: scale(0.975);\n transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n}\n\n.walletconnect-modal__base__row__h3 {\n color: #25292e;\n font-size: 20px;\n font-weight: 700;\n margin: 0;\n padding-bottom: 3px;\n}\n\n.walletconnect-modal__base__row__right {\n align-items: center;\n display: flex;\n justify-content: center;\n}\n\n.walletconnect-modal__base__row__right__app-icon {\n border-radius: 8px;\n height: 34px;\n margin: 0 11px 2px 0;\n width: 34px;\n background-size: 100%;\n box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25);\n}\n\n.walletconnect-modal__base__row__right__caret {\n height: 18px;\n opacity: 0.3;\n transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n width: 8px;\n will-change: opacity;\n}\n\n.walletconnect-modal__base__row:hover .caret,\n.walletconnect-modal__base__row:active .caret {\n opacity: 0.6;\n}\n\n.walletconnect-modal__mobile__toggle {\n width: 80%;\n display: flex;\n margin: 0 auto;\n position: relative;\n overflow: hidden;\n border-radius: 8px;\n margin-bottom: 18px;\n background: #d4d5d9;\n}\n\n.walletconnect-modal__single_wallet {\n display: flex;\n justify-content: center;\n margin-top: 7px;\n margin-bottom: 18px;\n}\n\n.walletconnect-modal__single_wallet a {\n cursor: pointer;\n color: rgb(64, 153, 255);\n font-size: 21px;\n font-weight: 800;\n text-decoration: none !important;\n margin: 0 auto;\n}\n\n.walletconnect-modal__mobile__toggle_selector {\n width: calc(50% - 8px);\n background: white;\n position: absolute;\n border-radius: 5px;\n height: calc(100% - 8px);\n top: 4px;\n transition: all 0.2s ease-in-out;\n transform: translate3d(4px, 0, 0);\n}\n\n.walletconnect-modal__mobile__toggle.right__selected .walletconnect-modal__mobile__toggle_selector {\n transform: translate3d(calc(100% + 12px), 0, 0);\n}\n\n.walletconnect-modal__mobile__toggle a {\n font-size: 12px;\n width: 50%;\n text-align: center;\n padding: 8px;\n margin: 0;\n font-weight: 600;\n z-index: 1;\n}\n\n.walletconnect-modal__footer {\n display: flex;\n justify-content: center;\n margin-top: 20px;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-modal__footer {\n margin-top: 5vw;\n }\n}\n\n.walletconnect-modal__footer a {\n cursor: pointer;\n color: #898d97;\n font-size: 15px;\n margin: 0 auto;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-modal__footer a {\n font-size: 14px;\n }\n}\n\n.walletconnect-connect__buttons__wrapper {\n max-height: 44vh;\n}\n\n.walletconnect-connect__buttons__wrapper__android {\n margin: 50% 0;\n}\n\n.walletconnect-connect__buttons__wrapper__wrap {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n margin: 10px 0;\n}\n\n@media only screen and (min-width: 768px) {\n .walletconnect-connect__buttons__wrapper__wrap {\n margin-top: 40px;\n }\n}\n\n.walletconnect-connect__button {\n background-color: rgb(64, 153, 255);\n padding: 12px;\n border-radius: 8px;\n text-decoration: none;\n color: rgb(255, 255, 255);\n font-weight: 500;\n}\n\n.walletconnect-connect__button__icon_anchor {\n cursor: pointer;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n margin: 8px;\n width: 42px;\n justify-self: center;\n flex-direction: column;\n text-decoration: none !important;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-connect__button__icon_anchor {\n margin: 4px;\n }\n}\n\n.walletconnect-connect__button__icon {\n border-radius: 10px;\n height: 42px;\n margin: 0;\n width: 42px;\n background-size: cover !important;\n box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25);\n}\n\n.walletconnect-connect__button__text {\n color: #424952;\n font-size: 2.7vw;\n text-decoration: none !important;\n padding: 0;\n margin-top: 1.8vw;\n font-weight: 600;\n}\n\n@media only screen and (min-width: 768px) {\n .walletconnect-connect__button__text {\n font-size: 16px;\n margin-top: 12px;\n }\n}\n\n.walletconnect-search__input {\n border: none;\n background: #d4d5d9;\n border-style: none;\n padding: 8px 16px;\n outline: none;\n font-style: normal;\n font-stretch: normal;\n font-size: 16px;\n font-style: normal;\n font-stretch: normal;\n line-height: normal;\n letter-spacing: normal;\n text-align: left;\n border-radius: 8px;\n width: calc(100% - 16px);\n margin: 0;\n margin-bottom: 8px;\n}\n',
14n.head.appendChild(a),(f=(h=o.getDocumentOrThrow()).createElement("div")).setAttribute("id",c),h.body.appendChild(f),u.render(u.createElement(w,{text:M[o.getNavigatorOrThrow().language.split("-")[0]||"en"]||M.en,uri:t,onClose:function(){S(),e&&e()},qrcodeModalOptions:r}),f)}},close:function(){E()||S()}}},91809:function(t,e,r){"use strict";/*! 15 * The buffer module from node.js, for the browser. 16 * 17 * @author Feross Aboukhadijeh <https://feross.org> 18 * @license MIT 19 */ var n=r(79742),i=r(80645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(t){if(t>
192147483647)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,a.prototype),e}function a(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return l(t)}return u(t,e,r)}function u(t,e,r){if("string"==typeof t)return function(t,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!a.isEncoding(e))throw TypeError("Unknown encoding: "+e);var r=0|p(t,e),n=s(r),i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(R(t,Uint8Array)){var e=new Uint8Array(t);return f(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(R(t,ArrayBuffer)||t&&R(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(R(t,SharedArrayBuffer)||t&&R(t.buffer,SharedArrayBuffer)))return f(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return a.from(n,e,r);var i=function(t){if(a.isBuffer(t)){var e,r=0|d(t.length),n=s(r);return 0===n.length||t.copy(n,0,0,r),n}return void 0!==t.length?"number"!=typeof t.length||(e=t.length)!=e?s(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return c(t),s(t<0?0:0|d(t))}function h(t){for(var e=t.length<0?0:0|d(t.length),r=s(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function f(t,e,r){var n;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),a.prototype),n}function d(t){if(t>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|t}function p(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||R(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return k(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return A(t).length;default:if(i)return n?-1:k(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){var i,o,s=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=O[t[o]];return i}(this,e,r);case"utf8":case"utf-8":return v(this,e,r);case"ascii":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}(this,e,r);case"latin1":case"binary":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}(this,e,r);case"base64":return i=e,o=r,0===i&&o===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(i,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,e,r);default:if(s)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),s=!0}}function m(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function y(t,e,r,n,i){var o;if(0===t.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return -1;r=t.length-1}
vendor: 14,466 bytes, line 19
19else if(r<0){if(!i)return -1;r=0}if("string"==typeof e&&(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,i);if("number"==typeof e)return(e&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,i);throw TypeError("val must be string, number or Buffer")}function b(t,e,r,n,i){var o,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;s=2,a/=2,u/=2,r/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var l=-1;for(o=r;o<a;o++)if(c(t,o)===c(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*s}else -1!==l&&(o-=o-l),l=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){for(var h=!0,f=0;f<u;f++)if(c(t,o+f)!==c(e,f)){h=!1;break}if(h)return o}return -1}function v(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,s,a,u,c=t[i],l=null,h=c>239?4:c>223?3:c>191?2:1;if(i+h<=r)switch(h){case 1:c<128&&(l=c);break;case 2:(192&(o=t[i+1]))==128&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],s=t[i+2],(192&o)==128&&(192&s)==128&&(u=(15&c)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],(192&o)==128&&(192&s)==128&&(192&a)==128&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}function _(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function w(t,e,r,n,i,o){if(!a.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw RangeError('"value" argument is out of bounds');if(r+n>t.length)throw RangeError("Index out of range")}function M(t,e,r,n,i,o){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function S(t,e,r,n,o){return e=+e,r>>>=0,o||M(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function E(t,e,r,n,o){return e=+e,r>>>=0,o||M(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}e.lW=a,e.h2=50,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(r){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(t,e,r){return u(t,e,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(t,e,r){return(c(t),t<=0)?s(t):void 0!==e?"string"==typeof r?s(t).fill(e,r):s(t).fill(e):s(t)},a.allocUnsafe=function(t){return l(t)},a.allocUnsafeSlow=function(t){return l(t)},a.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==a.prototype},a.compare=function(t,e){if(R(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),R(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},a.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;var r,n=a.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(R(o,Uint8Array))i+o.length>n.length?a.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else if(a.isBuffer(o))o.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n},a.byteLength=p,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},a.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?v(this,0,t):g.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t="",r=e.h2;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(t,e,r,n,i){if(R(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,s=r-e,u=Math.min(o,s),c=this.slice(n,i),l=t.slice(e,r),h=0;h<u;++h)if(c[h]!==l[h]){o=c[h],s=l[h];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},a.prototype.indexOf=function(t,e,r){return y(this,t,e,r,!0)},a.prototype.lastIndexOf=function(t,e,r){return y(this,t,e,r,!1)},a.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,s,a,u,c,l,h,f=this.length-e;if((void 0===r||r>f)&&(r=f),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var d=!1;;)switch(n){case"hex":return function(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(e.substr(2*s,2),16);if(a!=a)break;t[r+s]=a}return s}(this,t,e,r);case"utf8":case"utf-8":return i=e,o=r,C(k(t,this.length-i),this,i,o);case"ascii":case"latin1":case"binary":return s=e,a=r,C(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(t),this,s,a);case"base64":return u=e,c=r,C(A(t),this,u,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l=e,h=r,C(function(t,e){for(var r,n,i=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(t,this.length-l),this,l,h);default:if(d)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),d=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUintLE=a.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||_(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},a.prototype.readUintBE=a.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||_(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},a.prototype.readUint8=a.prototype.readUInt8=function(t,e){return t>>>=0,e||_(t,1,this.length),this[t]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||_(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||_(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||_(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||_(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||_(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||_(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},a.prototype.readInt8=function(t,e){return(t>>>=0,e||_(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||_(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(t,e){t>>>=0,e||_(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||_(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return t>>>=0,e||_(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t>>>=0,e||_(t,4,this.length),i.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||_(t,4,this.length),i.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||_(t,8,this.length),i.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||_(t,8,this.length),i.read(this,t,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,t,e,r,i,0)}var o=1,s=0;for(this[e]=255&t;++s<r&&(o*=256);)this[e+s]=t/o&255;return e+r},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,t,e,r,i,0)}var o=r-1,s=1;for(this[e+o]=255&t;--o>=0&&(s*=256);)this[e+o]=t/s&255;return e+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,t,e,r,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o<r&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,t,e,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},a.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeFloatLE=function(t,e,r){return S(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return S(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return E(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return E(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},a.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var i,o=t.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var s=a.isBuffer(t)?t:a.from(t,n),u=s.length;
19if(0===u)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=s[i%u]}return this};var x=/[^+/0-9A-Za-z-_]/g;function k(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319||s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function A(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(x,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function C(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function R(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var O=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},89714:function(t,e,r){"use strict";r.r(e),r.d(e,{Children:function(){return tg},Component:function(){return v},Fragment:function(){return b},PureComponent:function(){return tl},Suspense:function(){return ty},SuspenseList:function(){return t_},cloneElement:function(){return tj},createContext:function(){return L},createElement:function(){return g},createFactory:function(){return tN},createPortal:function(){return tE},createRef:function(){return y},default:function(){return tU},findDOMNode:function(){return tD},forwardRef:function(){return td},hydrate:function(){return tC},isValidElement:function(){return tL},lazy:function(){return tv},memo:function(){return th},render:function(){return tA},unmountComponentAtNode:function(){return tB},unstable_batchedUpdates:function(){return tF},useCallback:function(){return X},useContext:function(){return tt},useDebugValue:function(){return te},useEffect:function(){return Z},useErrorBoundary:function(){return tr},useImperativeHandle:function(){return Y},useLayoutEffect:function(){return $},useMemo:function(){return Q},useReducer:function(){return G},useRef:function(){return J},useState:function(){return K},version:function(){return tT}});var n,i,o,s,a,u,c,l={},h=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord/i;function d(t,e){for(var r in e)t[r]=e[r];return t}function p(t){var e=t.parentNode;e&&e.removeChild(t)}function g(t,e,r){var n,i=arguments,o={};for(n in e)"key"!==n&&"ref"!==n&&(o[n]=e[n]);if(arguments.length>3)for(r=[r],n=3;n<arguments.length;n++)r.push(i[n]);if(null!=r&&(o.children=r),"function"==typeof t&&null!=t.defaultProps)for(n in t.defaultProps)void 0===o[n]&&(o[n]=t.defaultProps[n]);return m(t,o,e&&e.key,e&&e.ref,null)}function m(t,e,r,i,o){var s={type:t,props:e,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o};return null==o&&(s.__v=s),n.vnode&&n.vnode(s),s}function y(){return{}}function b(t){return t.children}function v(t,e){this.props=t,this.context=e}function _(t,e){if(null==e)return t.__?_(t.__,t.__.__k.indexOf(t)+1):null;for(var r;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e)return r.__e;return"function"==typeof t.type?_(t):null}function w(t){(!t.__d&&(t.__d=!0)&&i.push(t)&&!o++||a!==n.debounceRendering)&&((a=n.debounceRendering)||s)(M)}function M(){for(var t;o=i.length;)t=i.sort(function(t,e){return t.__v.__b-e.__v.__b}),i=[],t.some(function(t){var e,r,n,i,o,s;t.__d&&(o=(i=t.__v).__e,(s=t.__P)&&(e=[],(r=d({},i)).__v=r,n=C(s,i,r,t.__n,void 0!==s.ownerSVGElement,null,e,null==o?_(i):o),R(e,i),n!=o&&function t(e){var r,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,r=0;r<e.__k.length;r++)if(null!=(n=e.__k[r])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return t(e)}}(i)))})}function S(t,e,r,n,i,o,s,a,u){var c,f,d,g,m,y,b,v=r&&r.__k||h,w=v.length;if(a==l&&(a=null!=o?o[0]:w?_(r,0):null),c=0,e.__k=E(e.__k,function(r){if(null!=r){if(r.__=e,r.__b=e.__b+1,null===(d=v[c])||d&&r.key==d.key&&r.type===d.type)v[c]=void 0;else for(f=0;f<w;f++){if((d=v[f])&&r.key==d.key&&r.type===d.type){v[f]=void 0;break}d=null}if(g=C(t,r,d=d||l,n,i,o,s,a,u),(f=r.ref)&&d.ref!=f&&(b||(b=[]),d.ref&&b.push(d.ref,null,r),b.push(f,r.__c||g,r)),null!=g){var h;if(null==y&&(y=g),void 0!==r.__d)h=r.__d,r.__d=void 0;else if(o==d||g!=a||null==g.parentNode){t:if(null==a||a.parentNode!==t)t.appendChild(g),h=null;else{for(m=a,f=0;(m=m.nextSibling)&&f<w;f+=2)if(m==g)break t;t.insertBefore(g,a),h=a}"option"==e.type&&(t.value="")}a=void 0!==h?h:g.nextSibling,"function"==typeof e.type&&(e.__d=a)}else a&&d.__e==a&&a.parentNode!=t&&(a=_(d))}return c++,r}),e.__e=y,null!=o&&"function"!=typeof e.type)for(c=o.length;c--;)null!=o[c]&&p(o[c]);for(c=w;c--;)null!=v[c]&&P(v[c],v[c]);if(b)for(c=0;c<b.length;c++)O(b[c],b[++c],b[++c])}function E(t,e,r){if(null==r&&(r=[]),null==t||"boolean"==typeof t)e&&r.push(e(null));else if(Array.isArray(t))for(var n=0;n<t.length;n++)E(t[n],e,r);else r.push(e?e("string"==typeof t||"number"==typeof t?m(null,t,null,null,t):null!=t.__e||null!=t.__c?m(t.type,t.props,t.key,null,t.__v):t):t);return r}function x(t,e,r){"-"===e[0]?t.setProperty(e,r):t[e]="number"==typeof r&&!1===f.test(e)?r+"px":null==r?"":r}function k(t,e,r,n,i){var o,s,a,u,c;if(i?"className"===e&&(e="class"):"class"===e&&(e="className"),"style"===e){if(o=t.style,"string"==typeof r)o.cssText=r;else{if("string"==typeof n&&(o.cssText="",n=null),n)for(u in n)r&&u in r||x(o,u,"");if(r)for(c in r)n&&r[c]===n[c]||x(o,c,r[c])}}else"o"===e[0]&&"n"===e[1]?(s=e!==(e=e.replace(/Capture$/,"")),e=((a=e.toLowerCase())in t?a:e).slice(2),r?(n||t.addEventListener(e,A,s),(t.l||(t.l={}))[e]=r):t.removeEventListener(e,A,s)):"list"!==e&&"tagName"!==e&&"form"!==e&&"type"!==e&&"size"!==e&&!i&&e in t?t[e]=null==r?"":r:"function"!=typeof r&&"dangerouslySetInnerHTML"!==e&&(e!==(e=e.replace(/^xlink:?/,""))?null==r||!1===r?t.removeAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase()):t.setAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase(),r):null!=r&&(!1!==r||/^ar/.test(e))?t.setAttribute(e,r):t.removeAttribute(e))}function A(t){this.l[t.type](n.event?n.event(t):t)}function C(t,e,r,i,o,s,a,u,c){var f,p,g,m,y,_,w,M,E,x,A=e.type;if(void 0!==e.constructor)return null;(f=n.__b)&&f(e);try{t:if("function"==typeof A){if(M=e.props,E=(f=A.contextType)&&i[f.__c],x=f?E?E.props.value:f.__:i,r.__c?w=(p=e.__c=r.__c).__=p.__E:("prototype"in A&&A.prototype.render?e.__c=p=new A(M,x):(e.__c=p=new v(M,x),p.constructor=A,p.render=I),E&&E.sub(p),p.props=M,p.state||(p.state={}),p.context=x,p.__n=i,g=p.__d=!0,p.__h=[]),null==p.__s&&(p.__s=p.state),null!=A.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=d({}
vendor: 4,750 bytes, line 19
19,p.__s)),d(p.__s,A.getDerivedStateFromProps(M,p.__s))),m=p.props,y=p.state,g)null==A.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==A.getDerivedStateFromProps&&M!==m&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(M,x),!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(M,p.__s,x)||e.__v===r.__v&&!p.__){for(p.props=M,p.state=p.__s,e.__v!==r.__v&&(p.__d=!1),p.__v=e,e.__e=r.__e,e.__k=r.__k,p.__h.length&&a.push(p),f=0;f<e.__k.length;f++)e.__k[f]&&(e.__k[f].__=e);break t}null!=p.componentWillUpdate&&p.componentWillUpdate(M,p.__s,x),null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(m,y,_)})}p.context=x,p.props=M,p.state=p.__s,(f=n.__r)&&f(e),p.__d=!1,p.__v=e,p.__P=t,f=p.render(p.props,p.state,p.context),e.__k=null!=f&&f.type==b&&null==f.key?f.props.children:Array.isArray(f)?f:[f],null!=p.getChildContext&&(i=d(d({},i),p.getChildContext())),g||null==p.getSnapshotBeforeUpdate||(_=p.getSnapshotBeforeUpdate(m,y)),S(t,e,r,i,o,s,a,u,c),p.base=e.__e,p.__h.length&&a.push(p),w&&(p.__E=p.__=null),p.__e=!1}else null==s&&e.__v===r.__v?(e.__k=r.__k,e.__e=r.__e):e.__e=function(t,e,r,n,i,o,s,a){var u,c,f,d,p,g=r.props,m=e.props;if(i="svg"===e.type||i,null!=o){for(u=0;u<o.length;u++)if(null!=(c=o[u])&&((null===e.type?3===c.nodeType:c.localName===e.type)||t==c)){t=c,o[u]=null;break}}if(null==t){if(null===e.type)return document.createTextNode(m);t=i?document.createElementNS("http://www.w3.org/2000/svg",e.type):document.createElement(e.type,m.is&&{is:m.is}),o=null,a=!1}if(null===e.type)g!==m&&t.data!=m&&(t.data=m);else{if(null!=o&&(o=h.slice.call(t.childNodes)),f=(g=r.props||l).dangerouslySetInnerHTML,d=m.dangerouslySetInnerHTML,!a){if(g===l)for(g={},p=0;p<t.attributes.length;p++)g[t.attributes[p].name]=t.attributes[p].value;(d||f)&&(d&&f&&d.__html==f.__html||(t.innerHTML=d&&d.__html||""))}(function(t,e,r,n,i){var o;for(o in r)"children"===o||"key"===o||o in e||k(t,o,null,r[o],n);for(o in e)i&&"function"!=typeof e[o]||"children"===o||"key"===o||"value"===o||"checked"===o||r[o]===e[o]||k(t,o,e[o],r[o],n)})(t,m,g,i,a),d?e.__k=[]:(e.__k=e.props.children,S(t,e,r,n,"foreignObject"!==e.type&&i,o,s,l,a)),a||("value"in m&&void 0!==(u=m.value)&&u!==t.value&&k(t,"value",u,g.value,!1),"checked"in m&&void 0!==(u=m.checked)&&u!==t.checked&&k(t,"checked",u,g.checked,!1))}return t}(r.__e,e,r,i,o,s,a,c);(f=n.diffed)&&f(e)}catch(C){e.__v=null,n.__e(C,e,r)}return e.__e}function R(t,e){n.__c&&n.__c(e,t),t.some(function(e){try{t=e.__h,e.__h=[],t.some(function(t){t.call(e)})}catch(r){n.__e(r,e.__v)}})}function O(t,e,r){try{"function"==typeof t?t(e):t.current=e}catch(i){n.__e(i,r)}}function P(t,e,r){var i,o,s;if(n.unmount&&n.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||O(i,null,e)),r||"function"==typeof t.type||(r=null!=(o=t.__e)),t.__e=t.__d=void 0,null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(a){n.__e(a,e)}i.base=i.__P=null}if(i=t.__k)for(s=0;s<i.length;s++)i[s]&&P(i[s],e,r);null!=o&&p(o)}function I(t,e,r){return this.constructor(t,r)}function T(t,e,r){var i,o,s;n.__&&n.__(t,e),o=(i=r===u)?null:r&&r.__k||e.__k,t=g(b,null,[t]),s=[],C(e,(i?e:r||e).__k=t,o||l,l,void 0!==e.ownerSVGElement,r&&!i?[r]:o?null:h.slice.call(e.childNodes),s,r||l,i),R(s,t)}function N(t,e){var r,n;for(n in e=d(d({},t.props),e),arguments.length>2&&(e.children=h.slice.call(arguments,2)),r={},e)"key"!==n&&"ref"!==n&&(r[n]=e[n]);return m(t.type,r,e.key||t.key,e.ref||t.ref,null)}function L(t){var e={},r={__c:"__cC"+c++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,i=this;return this.getChildContext||(n=[],this.getChildContext=function(){return e[r.__c]=i,e},this.shouldComponentUpdate=function(t){i.props.value!==t.value&&n.some(function(e){e.context=t.value,w(e)})},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return r.Consumer.contextType=r,r.Provider.__=r,r}n={__e:function(t,e){for(var r,n;e=e.__;)if((r=e.__c)&&!r.__)try{if(r.constructor&&null!=r.constructor.getDerivedStateFromError&&(n=!0,r.setState(r.constructor.getDerivedStateFromError(t))),null!=r.componentDidCatch&&(n=!0,r.componentDidCatch(t)),n)return w(r.__E=r)}catch(i){t=i}throw t}},v.prototype.setState=function(t,e){var r;r=this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof t&&(t=t(r,this.props)),t&&d(r,t),null!=t&&this.__v&&(e&&this.__h.push(e),w(this))},v.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),w(this))},v.prototype.render=b,i=[],o=0,s="function"==typeof Promise?Promise.prototype.then.bind(Prom
19ise.resolve()):setTimeout,u=l,c=0;var j,B,D,F=0,U=[],z=n.__r,H=n.diffed,q=n.__c,W=n.unmount;function V(t,e){n.__h&&n.__h(B,t,F||e),F=0;var r=B.__H||(B.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function K(t){return F=1,G(ta,t)}function G(t,e,r){var n=V(j++,2);return n.__c||(n.__c=B,n.__=[r?r(e):ta(void 0,e),function(e){var r=t(n.__[0],e);n.__[0]!==r&&(n.__[0]=r,n.__c.setState({}))}]),n.__}function Z(t,e){var r=V(j++,3);!n.__s&&ts(r.__H,e)&&(r.__=t,r.__H=e,B.__H.__h.push(r))}function $(t,e){var r=V(j++,4);!n.__s&&ts(r.__H,e)&&(r.__=t,r.__H=e,B.__h.push(r))}function J(t){return F=5,Q(function(){return{current:t}},[])}function Y(t,e,r){F=6,$(function(){"function"==typeof t?t(e()):t&&(t.current=e())},null==r?r:r.concat(t))}function Q(t,e){var r=V(j++,7);return ts(r.__H,e)?(r.__H=e,r.__h=t,r.__=t()):r.__}function X(t,e){return F=8,Q(function(){return t},e)}function tt(t){var e=B.context[t.__c],r=V(j++,9);return r.__c=t,e?(null==r.__&&(r.__=!0,e.sub(B)),e.props.value):t.__}function te(t,e){n.useDebugValue&&n.useDebugValue(e?e(t):t)}function tr(t){var e=V(j++,10),r=K();return e.__=t,B.componentDidCatch||(B.componentDidCatch=function(t){e.__&&e.__(t),r[1](t)}),[r[0],function(){r[1](void 0)}]}function tn(){U.some(function(t){if(t.__P)try{t.__H.__h.forEach(ti),t.__H.__h.forEach(to),t.__H.__h=[]}catch(e){return t.__H.__h=[],n.__e(e,t.__v),!0}}),U=[]}function ti(t){t.t&&t.t()}function to(t){var e=t.__();"function"==typeof e&&(t.t=e)}function ts(t,e){return!t||e.some(function(e,r){return e!==t[r]})}function ta(t,e){return"function"==typeof e?e(t):e}function tu(t,e){for(var r in e)t[r]=e[r];return t}function tc(t,e){for(var r in t)if("__source"!==r&&!(r in e))return!0;for(var n in e)if("__source"!==n&&t[n]!==e[n])return!0;return!1}n.__r=function(t){z&&z(t),j=0,(B=t.__c).__H&&(B.__H.__h.forEach(ti),B.__H.__h.forEach(to),B.__H.__h=[])},n.diffed=function(t){H&&H(t);var e=t.__c;if(e){var r=e.__H;r&&r.__h.length&&(1!==U.push(e)&&D===n.requestAnimationFrame||((D=n.requestAnimationFrame)||function(t){var e,r=function(){clearTimeout(n),cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,100);"undefined"!=typeof window&&(e=requestAnimationFrame(r))})(tn))}},n.__c=function(t,e){e.some(function(t){try{t.__h.forEach(ti),t.__h=t.__h.filter(function(t){return!t.__||to(t)})}catch(r){e.some(function(t){t.__h&&(t.__h=[])}),e=[],n.__e(r,t.__v)}}),q&&q(t,e)},n.unmount=function(t){W&&W(t);var e=t.__c;if(e){var r=e.__H;if(r)try{r.__.forEach(function(t){return t.t&&t.t()})}catch(i){n.__e(i,e.__v)}}};var tl=function(t){var e;function r(e){var r;return(r=t.call(this,e)||this).isPureReactComponent=!0,r}return(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t,r.prototype.shouldComponentUpdate=function(t,e){return tc(this.props,t)||tc(this.state,e)},r}(v);function th(t,e){function r(t){var r=this.props.ref,n=r==t.ref;return!n&&r&&(r.call?r(null):r.current=null),e?!e(this.props,t)||!n:tc(this.props,t)}function n(e){return this.shouldComponentUpdate=r,g(t,tu({},e))}return n.prototype.isReactComponent=!0,n.displayName="Memo("+(t.displayName||t.name)+")",n.t=!0,n}var tf=n.__b;function td(t){function e(e){var r=tu({},e);return delete r.ref,t(r,e.ref)}return e.prototype.isReactComponent=e.t=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}n.__b=function(t){t.type&&t.type.t&&t.ref&&(t.props.ref=t.ref,t.ref=null),tf&&tf(t)};var tp=function(t,e){return t?E(t).reduce(function(t,r,n){return t.concat(e(r,n))},[]):null},tg={map:tp,forEach:tp,count:function(t){return t?E(t).length:0},only:function(t){if(1!==(t=E(t)).length)throw Error("Children.only() expects only one child.");return t[0]},toArray:E},tm=n.__e;function ty(){this.__u=0,this.o=null,this.__b=null}function tb(t){var e=t.__.__c;return e&&e.u&&e.u(t)}function tv(t){var e,r,n;function i(i){if(e||(e=t()).then(function(t){r=t.default||t},function(t){n=t}),n)throw n;if(!r)throw e;return g(r,i)}return i.displayName="Lazy",i.t=!0,i}function t_(){this.i=null,this.l=null}n.__e=function(t,e,r){if(t.then){for(var n,i=e;i=i.__;)if((n=i.__c)&&n.__c)return n.__c(t,e.__c)}tm(t,e,r)},(ty.prototype=new v).__c=function(t,e){var r=this;null==r.o&&(r.o=[]),r.o.push(e);var n=tb(r.__v),i=!1,o=function(){i||(i=!0,n?n(s):s())};e.__c=e.componentWillUnmount,e.componentWillUnmount=function(){o(),e.__c&&e.__c()};var s=function(){var t;if(!--r.__u)for(r.__v.__k[0]=r.state.u,r.setState({u:r.__b=null});t=r.o.pop();)t.forceUpdate()};r.__u++||r.setState({u:r.__b=r.__v.__k[0]}),t.then(o,o)},ty.prototype.render=function(t,e){return this.__b&&(this.__v.__k[0]=function t(e){return e&&((e=tu({},e)).__c=null,e.__k=e.__k&&e.__k.map(t)),e}(this.__b),this.__b=null),[g(v,null,e.u?null:t.children),e.u&&t.fallback]};var tw=function(t,e,r){if(++r[1]===r[0]&&t.l.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.l.size))for(r=t.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;t.i=r=r[2]}};(t_.prototype=new v).u=function(t){var e=this,r=tb(e.__v),n=e.l.get(t);return n[0]++,function(i){var o=function(){e.props.revealOrder?(n.push(i),tw(e,t,n)):i()};r?r(o):o()}},t_.prototype.render=function(t){this.i=null,this.l=new Map;var e=E(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var r=e.length;r--;)this.l.set(e[r],this.i=[1,0,this.i]);return t.children},t_.prototype.componentDidUpdate=t_.prototype.componentDidMount=function(){var t=this;t.l.forEach(function(e,r){tw(t,r,e)})};var tM=function(){function t(){}var e=t.prototype;return e.getChildContext=function(){return this.props.context},e.render=function(t){return t.children},t}();function tS(t){var e=this,r=t.container,n=g(tM,{context:e.context},t.vnode);return e.s&&e.s!==r&&(e.v.parentNode&&e.s.removeChild(e.v),P(e.h),e.p=!1),t.vnode?e.p?(r.__k=e.__k,T(n,r),e.__k=r.__k):(e.v=document.createTextNode(""),T("",r,u),r.appendChild(e.v),e.p=!0,e.s=r,T(n,r,e.v),e.__k=e.v.__k):e.p&&(e.v.parentNode&&e.s.removeChild(e.v),P(e.h)),e.h=n,e.componentWillUnmount=function(){e.v.parentNode&&e.s.removeChild(e.v),P(e.h)},null}function tE(t,e){return g(tS,{vnode:t,container:e})}var tx=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/;v.prototype.isReactComponent={};var tk="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;function tA(t,e,r){if(null==e.__k)for(;e.firstChild;)e.removeChild(e.firstChild);return T(t,e),"function"==typeof r&&r(),t?t.__c:null}function tC(t,e,r){return T(t,e,u),"function"==typeof r&&r(),t?t.__c:null}var tR=n.event;function tO(t,e){t["UNSAFE_"+e]&&!t[e]&&Object.defineProperty(t,e,{configurable:!1,get:function(){return this["UNSAFE_"+e]},set:function(t){this["UNSAFE_"+e]=t}})}n.event=function(t){tR&&(t=tR(t)),t.persist=function(){};var e=!1,r=!1,n=t.stopPropagation;t.stopPropagation=function(){n.call(t),e=!0};var i=t.preventDefault;return t.preventDefault=function(){i.call(t),r=!0},t.isPropagationStopped=function(){return e},t.isDefaultPrevented=function(){return r},t.nativeEvent=t};var tP={configurable:!0,get:function(){return this.class}},tI=n.vnode;n.vnode=function(t){t.$$typeof=tk;var e,r,n,i=t.type,o=t.props;if(i){if(o.class!=o.className&&(tP.enumerable="className"in o,null!=o.className&&(o.class=o.className),Object.defineProperty(o,"className",tP)),"function"!=typeof i){for(n in o.defaultValue&&void 0!==o.value&&(o.value||0===o.value||(o.value=o.defaultValue),delete o.defaultValue),Array.isArray(o.value)&&o.multiple&&"select"===i&&(E(o.children).forEac
19h(function(t){-1!=o.value.indexOf(t.props.value)&&(t.props.selected=!0)}),delete o.value),o)if(e=tx.test(n))break;if(e)for(n in r=t.props={},o)r[tx.test(n)?n.replace(/[A-Z0-9]/,"-$&").toLowerCase():n]=o[n]}!function(){var e=t.type,r=t.props;if(r&&"string"==typeof e){var n={};for(var i in r)/^on(Ani|Tra|Tou)/.test(i)&&(r[i.toLowerCase()]=r[i],delete r[i]),n[i.toLowerCase()]=i;if(n.ondoubleclick&&(r.ondblclick=r[n.ondoubleclick],delete r[n.ondoubleclick]),n.onbeforeinput&&(r.onbeforeinput=r[n.onbeforeinput],delete r[n.onbeforeinput]),n.onchange&&("textarea"===e||"input"===e.toLowerCase()&&!/^fil|che|ra/i.test(r.type))){var o=n.oninput||"oninput";r[o]||(r[o]=r[n.onchange],delete r[n.onchange])}}}(),"function"==typeof i&&!i.m&&i.prototype&&(tO(i.prototype,"componentWillMount"),tO(i.prototype,"componentWillReceiveProps"),tO(i.prototype,"componentWillUpdate"),i.m=!0)}tI&&tI(t)};var tT="16.8.0";function tN(t){return g.bind(null,t)}function tL(t){return!!t&&t.$$typeof===tk}function tj(t){return tL(t)?N.apply(null,arguments):t}function tB(t){return!!t.__k&&(T(null,t),!0)}function tD(t){return t&&(t.base||1===t.nodeType&&t)||null}var tF=function(t,e){return t(e)},tU={useState:K,useReducer:G,useEffect:Z,useLayoutEffect:$,useRef:J,useImperativeHandle:Y,useMemo:Q,useCallback:X,useContext:tt,useDebugValue:te,version:"16.8.0",Children:tg,render:tA,hydrate:tA,unmountComponentAtNode:tB,createPortal:tE,createElement:g,createContext:L,createFactory:tN,cloneElement:tj,createRef:y,Fragment:b,isValidElement:tL,findDOMNode:tD,Component:v,PureComponent:tl,memo:th,forwardRef:td,unstable_batchedUpdates:tF,Suspense:ty,SuspenseList:t_,lazy:tv}},33133:function(t,e,r){var n=r(7708),i=r(34730),o=r(16949),s=r(77665);function a(t,e,r,o,s){var a=[].slice.call(arguments,1),u=a.length,c="function"==typeof a[u-1];if(!c&&!n())throw Error("Callback required as last argument");if(c){if(u<2)throw Error("Too few arguments provided");2===u?(s=r,r=e,e=o=void 0):3===u&&(e.getContext&&void 0===s?(s=o,o=void 0):(s=o,o=r,r=e,e=void 0))}else{if(u<1)throw Error("Too few arguments provided");return 1===u?(r=e,e=o=void 0):2!==u||e.getContext||(o=r,r=e,e=void 0),new Promise(function(n,s){try{var a=i.create(r,o);n(t(a,e,o))}catch(u){s(u)}})}try{var l=i.create(r,o);s(null,t(l,e,o))}catch(h){s(h)}}e.create=i.create,e.toCanvas=a.bind(null,o.render),e.toDataURL=a.bind(null,o.renderToDataURL),e.toString=a.bind(null,function(t,e,r){return s.render(t,r)})},7708:function(t){t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},13493:function(t,e,r){var n=r(5351).getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];for(var e=Math.floor(t/7)+2,r=n(t),i=145===r?26:2*Math.ceil((r-13)/(2*e-2)),o=[r-7],s=1;s<e-1;s++)o[s]=o[s-1]-i;return o.push(6),o.reverse()},e.getPositions=function(t){for(var r=[],n=e.getRowColCoords(t),i=n.length,o=0;o<i;o++)for(var s=0;s<i;s++)(0!==o||0!==s)&&(0!==o||s!==i-1)&&(o!==i-1||0!==s)&&r.push([n[o],n[s]]);return r}},17916:function(t,e,r){var n=r(89656),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(t){this.mode=n.ALPHANUMERIC,this.data=t}o.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){var e;for(e=0;e+2<=this.data.length;e+=2){var r=45*i.indexOf(this.data[e]);r+=i.indexOf(this.data[e+1]),t.put(r,11)}this.data.length%2&&t.put(i.indexOf(this.data[e]),6)},t.exports=o},32626:function(t){function e(){this.buffer=[],this.length=0}e.prototype={get:function(t){var e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)==1},put:function(t,e){for(var r=0;r<e;r++)this.putBit((t>>>e-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=e},74739:function(t,e,r){var n=r(19810);function i(t){if(!t||t<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=n.alloc(t*t),this.reservedBit=n.alloc(t*t)}i.prototype.set=function(t,e,r,n){var i=t*this.size+e;this.data[i]=r,n&&(this.reservedBit[i]=!0)},i.prototype.get=function(t,e){return this.data[t*this.size+e]},i.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r},i.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=i},77741:function(t,e,r){var n=r(19810),i=r(89656);function o(t){this.mode=i.BYTE,this.data=n.from(t)}o.getBitsLength=function(t){return 8*t},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){for(var e=0,r=this.data.length;e<r;e++)t.put(this.data[e],8)},t.exports=o},48853:function(t,e,r){var n=r(61250),i=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,
19192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(t,e){switch(e){case n.L:return i[(t-1)*4+0];case n.M:return i[(t-1)*4+1];case n.Q:return i[(t-1)*4+2];case n.H:return i[(t-1)*4+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){case n.L:return o[(t-1)*4+0];case n.M:return o[(t-1)*4+1];case n.Q:return o[(t-1)*4+2];case n.H:return o[(t-1)*4+3];default:return}}},61250:function(t,e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},e.from=function(t,r){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw Error("Param is not a string");var r=t.toLowerCase();switch(r){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw Error("Unknown EC Level: "+t)}}(t)}catch(n){return r}}},55949:function(t,e,r){var n=r(5351).getSymbolSize;e.getPositions=function(t){var e=n(t);return[[0,0],[e-7,0],[0,e-7]]}},69977:function(t,e,r){var n=r(5351),i=n.getBCHDigit(1335);e.getEncodedBits=function(t,e){for(var r=t.bit<<3|e,o=r<<10;n.getBCHDigit(o)-i>=0;)o^=1335<<n.getBCHDigit(o)-i;return(r<<10|o)^21522}},68423:function(t,e,r){var n=r(19810),i=n.alloc(512),o=n.alloc(256);!function(){for(var t=1,e=0;e<255;e++)i[e]=t,o[t]=e,256&(t<<=1)&&(t^=285);for(e=255;e<512;e++)i[e]=i[e-255]}(),e.log=function(t){if(t<1)throw Error("log("+t+")");return o[t]},e.exp=function(t){return i[t]},e.mul=function(t,e){return 0===t||0===e?0:i[o[t]+o[e]]}},5558:function(t,e,r){var n=r(89656),i=r(5351);function o(t){this.mode=n.KANJI,this.data=t}o.getBitsLength=function(t){return 13*t},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){var e;for(e=0;e<this.data.length;e++){var r=i.toSJIS(this.data[e]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");r=(r>>>8&255)*192+(255&r),t.put(r,13)}},t.exports=o},46280:function(t,e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var r={N1:3,N2:3,N3:40,N4:10};e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){for(var e=t.size,n=0,i=0,o=0,s=null,a=null,u=0;u<e;u++){i=o=0,s=a=null;for(var c=0;c<e;c++){var l=t.get(u,c);l===s?i++:(i>=5&&(n+=r.N1+(i-5)),s=l,i=1),(l=t.get(c,u))===a?o++:(o>=5&&(n+=r.N1+(o-5)),a=l,o=1)}i>=5&&(n+=r.N1+(i-5)),o>=5&&(n+=r.N1+(o-5))}return n},e.getPenaltyN2=function(t){for(var e=t.size,n=0,i=0;i<e-1;i++)for(var o=0;o<e-1;o++){var s=t.get(i,o)+t.get(i,o+1)+t.get(i+1,o)+t.get(i+1,o+1);(4===s||0===s)&&n++}return n*r.N2},e.getPenaltyN3=function(t){for(var e=t.size,n=0,i=0,o=0,s=0;s<e;s++){i=o=0;for(var a=0;a<e;a++)i=i<<1&2047|t.get(s,a),a>=10&&(1488===i||93===i)&&n++,o=o<<1&2047|t.get(a,s),a>=10&&(1488===o||93===o)&&n++}return n*r.N3},e.getPenaltyN4=function(t){for(var e=0,n=t.data.length,i=0;i<n;i++)e+=t.data[i];return Math.abs(Math.ceil(100*e/n/5)-10)*r.N4},e.applyMask=function(t,r){for(var n=r.size,i=0;i<n;i++)for(var o=0;o<n;o++)r.isReserved(o,i)||r.xor(o,i,function(t,r,n){switch(t){case e.Patterns.PATTERN000:return(r+n)%2==0;case e.Patterns.PATTERN001:return r%2==0;case e.Patterns.PATTERN010:return n%3==0;case e.Patterns.PATTERN011:return(r+n)%3==0;case e.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2==0;case e.Patterns.PATTERN101:return r*n%2+r*n%3==0;case e.Patterns.PATTERN110:return(r*n%2+r*n%3)%2==0;case e.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2==0;default:throw Error("bad maskPattern:"+t)}}(t,o,i))},e.getBestMask=function(t,r){for(var n=Object.keys(e.Patterns).length,i=0,o=1/0,s=0;s<n;s++){r(s),e.applyMask(s,t);var a=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(s,t),a<o&&(o=a,i=s)}return i}},89656:function(t,e,r){var n=r(42752),i=r(54503);e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw Error("Invalid mode: "+t);if(!n.isValid(e))throw Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return i.testNumeric(t)?e.NUMERIC:i.testAlphanumeric(t)?e.ALPHANUMERIC:i.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,r){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw Error("Param is not a string");var r=t.toLowerCase();switch(r){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw Error("Unknown mode: "+t)}}(t)}catch(n){return r}}},59262:function(t,e,r){var n=r(89656);function i(t){this.mode=n.NUMERIC,this.data=t.toString()}i.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){for(e=0;e+3<=this.data.length;e+=3)r=parseInt(this.data.substr(e,3),10),t.put(r,10);var e,r,n=this.data.length-e;n>0&&(r=parseInt(this.data.substr(e),10),t.put(r,3*n+1))},t.exports=i},47282:function(t,e,r){var n=r(19810),i=r(68423);e.mul=function(t,e){for(var r=n.alloc(t.length+e.length-1),o=0;o<t.length;o++)for(var s=0;s<e.length;s++)r[o+s]^=i.mul(t[o],e[s]);return r},e.mod=function(t,e){for(var r=n.from(t);r.length-e.length>=0;){for(var o=r[0],s=0;s<e.length;s++)r[s]^=i.mul(e[s],o);for(var a=0;a<r.length&&0===r[a];)a++;r=r.slice(a)}return r},e.generateECPolynomial=function(t){for(var r=n.from([1]),o=0;o<t;o++)r=e.mul(r,[1,i.exp(o)]);return r}},34730:function(t,e,r){var n=r(19810),i=r(5351),o=r(61250),s=r(32626),a=r(74739),u=r(13493),c=r(55949),l=r(46280),h=r(48853),f=r(23371),d=r(73166),p=r(69977),g=r(89656),m=r(16027),y=r(5826);function b(t,e,r){var n,i,o=t.size,s=p.getEncodedBits(e,r);for(n=0;n<15;n++)i=(s>>n&1)==1,n<6?t.set(n,8,i,!0):n<8?t.set(n+1,8,i,!0):t.set(o-15+n,8,i,!0),n<8?t.set(8,o-n-1,i,!0):n<9?t.set(8,15-n-1+1,i,!0):t.set(8,15-n-1,i,!0);t.set(o-8,8,1,!0)}e.create=function(t,e){if(void 0===t||""===t)throw Error("No input text");var r,p,v=o.M;return void 0!==e&&(v=o.from(e.errorCorrectionLevel,o.M),r=d.from(e.version),p=l.from(e.maskPattern),e.toSJISFunc&&i.setToSJISFunction(e.toSJISFunc)),function(t,e,r,o){if(y(t))p=m.fromArray(t);else if("string"==typeof t){var p,v=e;if(!v){var _=m.rawSplit(t);v=d.getBestVersionForData(_,r)}p=m.fromString(t,v||40)}else throw Error("Invalid data");var w=d.getBestVersionForData(p,r);if(!w)throw Error("The amount of data is too big to be stored in a QR Code");if(e){if(e<w)throw Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+w+".\n")}else e=w;var M=function(t,e,r){var o=new s;r.forEach(function(e){o.put(e.mode.bit,4),o.put(e.getLength(),g.getCharCountIndicator(e.mode,t)),e.write(o)});var a=(i.getSymbolTotalCodewords(t)-h.getTotalCodewordsCount(t,e))*8;for(o.getLengthInBits()+4<=a&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);for(var u=(a-o.getLengthInBits())/8,c=0;c<u;c++)o.put(c%2?17:236,8);return function(t,e,r){for(var o,s,a=i.getSymbolTotalCodewords(e),u=h.getTotalCodewordsCount(e,r),c=h.getBlocksCount(e,r),l=c-a%c,d=Math.floor(a/c),p=Math.floor((a-u)/c),g=p+1,m=d-p,y=new f(m),b=0,v=Array(c),_=Array(c),w=0,M=n.from(t.buffer),S=0;S<c;S++){var E=S<l?p:g;v[S]=M.slice(b,b+E),_[S]=y.encode(v[S]),b+=E,w=Math.max(w,E)}var x=n.alloc(a),k=0;for(o=0;o<w;o++)for(s=0;s<c;s++)o<v[s].length&&(x[k++]=v[s][o]);for(o=0;o<m;o++)for(s=0;s<c;s++)x[k++]=_[s][o];return x}(o,t,e)}(e,r,p),S=i.getSymbolSize(e),E=new a(S);return function(t,e){for(var r=t.size,n=c.getPositions(e),i=0;i<n.length;i++)for(var o=n[i][0],s=n[i][1],a=-1;a<=7;a++)if(!(o+a<=-1)&&!(r<=o+a))for(var u=-1;u<=7;u++)s+u<=-1||r<=s+u||(a>=0&&a<=6&&(0===u||6===u)||u>=0&&u<=6&&(0===a||6===a)||a>=2&&a<=4&&u>=2&&u<=4?t.set(o+a,s+u,!0,!0):t.set(o+a,s+u,!1,!0))}(E,e),function(t){for(var e=t.size,r=8;r<e-8;r++){var n=r%2==0;t.set(r,6,n,!0),t.set(6,r,n,!0)}}(E),function(t,e){for(var r=u.getPositions(e),n=0;n<r.length;n++)for(var i=r[n][0],o=r[n][1],s=-2;s<=2;s++)for(var a=-2;a<=2;a++)-2===s||2===s||-2===a||2===a||0===s&&0===a?t.set(i+s,o+a,!0,!0):t.set(i+s,o+a,!1,!0)}(E,e),b(E,r,0),e>=7&&function(t,e){for(var r,n,i,o=t.size,s=d.getEncodedBits(e),a=0;a<18;a++)r=Math.floor(a/3),n=a%3+o-8-3,i=(s>>a&1)==1,t.set(r,n,i,!0),t.set(n,r,i,!0)}(E,e),function(t,e){for(var r=t.size,n=-1,i=r-1,o=7,s=0,a=r-1;a>0;a-=2)for(6===a&&a--;;){for(var u=0;u<2;u++)if(!t.isReserved(i,a-u)){var c=!1;s<e.length&&(c=(e[s]>>>o&1)==1),t.set(i,a-u,c),-1==--o&&(s++,o=7)}if((i+=n)<0||r<=i){i-=n,n=-n;break}}}
19(E,M),isNaN(o)&&(o=l.getBestMask(E,b.bind(null,E,r))),l.applyMask(o,E),b(E,r,o),{modules:E,version:e,errorCorrectionLevel:r,maskPattern:o,segments:p}}(t,r,v,p)}},23371:function(t,e,r){var n=r(19810),i=r(47282),o=r(91809).lW;function s(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}s.prototype.initialize=function(t){this.degree=t,this.genPoly=i.generateECPolynomial(this.degree)},s.prototype.encode=function(t){if(!this.genPoly)throw Error("Encoder not initialized");var e=n.alloc(this.degree),r=o.concat([t,e],t.length+this.degree),s=i.mod(r,this.genPoly),a=this.degree-s.length;if(a>0){var u=n.alloc(this.degree);return s.copy(u,a),u}return s},t.exports=s},54503:function(t,e){var r="[0-9]+",n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",i="(?:(?![A-Z0-9 $%*+\\-./:]|"+(n=n.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";e.KANJI=RegExp(n,"g"),e.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=RegExp(i,"g"),e.NUMERIC=RegExp(r,"g"),e.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");var o=RegExp("^"+n+"$"),s=RegExp("^"+r+"$"),a=RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return o.test(t)},e.testNumeric=function(t){return s.test(t)},e.testAlphanumeric=function(t){return a.test(t)}},16027:function(t,e,r){var n=r(89656),i=r(59262),o=r(17916),s=r(77741),a=r(5558),u=r(54503),c=r(5351),l=r(65987);function h(t){return unescape(encodeURIComponent(t)).length}function f(t,e,r){for(var n,i=[];null!==(n=t.exec(r));)i.push({data:n[0],index:n.index,mode:e,length:n[0].length});return i}function d(t){var e,r,i=f(u.NUMERIC,n.NUMERIC,t),o=f(u.ALPHANUMERIC,n.ALPHANUMERIC,t);return c.isKanjiModeEnabled()?(e=f(u.BYTE,n.BYTE,t),r=f(u.KANJI,n.KANJI,t)):(e=f(u.BYTE_KANJI,n.BYTE,t),r=[]),i.concat(o,e,r).sort(function(t,e){return t.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function p(t,e){switch(e){case n.NUMERIC:return i.getBitsLength(t);case n.ALPHANUMERIC:return o.getBitsLength(t);case n.KANJI:return a.getBitsLength(t);case n.BYTE:return s.getBitsLength(t)}}function g(t,e){var r,u=n.getBestModeForData(t);if((r=n.from(e,u))!==n.BYTE&&r.bit<u.bit)throw Error('"'+t+'" cannot be encoded with mode '+n.toString(r)+".\n Suggested mode is: "+n.toString(u));switch(r!==n.KANJI||c.isKanjiModeEnabled()||(r=n.BYTE),r){case n.NUMERIC:return new i(t);case n.ALPHANUMERIC:return new o(t);case n.KANJI:return new a(t);case n.BYTE:return new s(t)}}e.fromArray=function(t){return t.reduce(function(t,e){return"string"==typeof e?t.push(g(e,null)):e.data&&t.push(g(e.data,e.mode)),t},[])},e.fromString=function(t,r){for(var i=function(t,e){for(var r={},i={start:{}},o=["start"],s=0;s<t.length;s++){for(var a=t[s],u=[],c=0;c<a.length;c++){var l=a[c],h=""+s+c;u.push(h),r[h]={node:l,lastCount:0},i[h]={};for(var f=0;f<o.length;f++){var d=o[f];r[d]&&r[d].node.mode===l.mode?(i[d][h]=p(r[d].lastCount+l.length,l.mode)-p(r[d].lastCount,l.mode),r[d].lastCount+=l.length):(r[d]&&(r[d].lastCount=l.length),i[d][h]=p(l.length,l.mode)+4+n.getCharCountIndicator(l.mode,e))}}o=u}for(f=0;f<o.length;f++)i[o[f]].end=0;return{map:i,table:r}}(function(t){for(var e=[],r=0;r<t.length;r++){var i=t[r];switch(i.mode){case n.NUMERIC:e.push([i,{data:i.data,mode:n.ALPHANUMERIC,length:i.length},{data:i.data,mode:n.BYTE,length:i.length}]);break;case n.ALPHANUMERIC:e.push([i,{data:i.data,mode:n.BYTE,length:i.length}]);break;case n.KANJI:e.push([i,{data:i.data,mode:n.BYTE,length:h(i.data)}]);break;case n.BYTE:e.push([{data:i.data,mode:n.BYTE,length:h(i.data)}])}}return e}(d(t,c.isKanjiModeEnabled())),r),o=l.find_path(i.map,"start","end"),s=[],a=1;a<o.length-1;a++)s.push(i.table[o[a]].node);return e.fromArray(s.reduce(function(t,e){var r=t.length-1>=0?t[t.length-1]:null;return r&&r.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[]))},e.rawSplit=function(t){return e.fromArray(d(t,c.isKanjiModeEnabled()))}},5351:function(t,e){var r,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(t){if(!t)throw Error('"version" cannot be null or undefined');if(t<1||t>40)throw Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return n[t]},e.getBCHDigit=function(t){for(var e=0;0!==t;)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!=typeof t)throw Error('"toSJISFunc" is not a valid function.');r=t},e.isKanjiModeEnabled=function(){return void 0!==r},e.toSJIS=function(t){return r(t)}},42752:function(t,e){e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},73166:function(t,e,r){var n=r(5351),i=r(48853),o=r(61250),s=r(89656),a=r(42752),u=r(5826),c=n.getBCHDigit
19(7973);function l(t,e){return s.getCharCountIndicator(t,e)+4}e.from=function(t,e){return a.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,r){if(!a.isValid(t))throw Error("Invalid QR Code version");void 0===r&&(r=s.BYTE);var o=(n.getSymbolTotalCodewords(t)-i.getTotalCodewordsCount(t,e))*8;if(r===s.MIXED)return o;var u=o-l(r,t);switch(r){case s.NUMERIC:return Math.floor(u/10*3);case s.ALPHANUMERIC:return Math.floor(u/11*2);case s.KANJI:return Math.floor(u/13);case s.BYTE:default:return Math.floor(u/8)}},e.getBestVersionForData=function(t,r){var n,i=o.from(r,o.M);if(u(t)){if(t.length>1)return function(t,r){for(var n=1;n<=40;n++)if(function(t,e){var r=0;return t.forEach(function(t){r+=l(t.mode,e)+t.getBitsLength()}),r}(t,n)<=e.getCapacity(n,r,s.MIXED))return n}(t,i);if(0===t.length)return 1;n=t[0]}else n=t;return function(t,r,n){for(var i=1;i<=40;i++)if(r<=e.getCapacity(i,n,t))return i}(n.mode,n.getLength(),i)},e.getEncodedBits=function(t){if(!a.isValid(t)||t<7)throw Error("Invalid QR Code version");for(var e=t<<12;n.getBCHDigit(e)-c>=0;)e^=7973<<n.getBCHDigit(e)-c;return t<<12|e}},16949:function(t,e,r){var n=r(77067);e.render=function(t,e,r){var i,o=r,s=e;void 0!==o||e&&e.getContext||(o=e,e=void 0),e||(s=function(){try{return document.createElement("canvas")}catch(t){throw Error("You need to specify a canvas element")}}()),o=n.getOptions(o);var a=n.getImageWidth(t.modules.size,o),u=s.getContext("2d"),c=u.createImageData(a,a);return n.qrToImageData(c.data,t,o),i=s,u.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=a,i.width=a,i.style.height=a+"px",i.style.width=a+"px",u.putImageData(c,0,0),s},e.renderToDataURL=function(t,r,n){var i=n;void 0!==i||r&&r.getContext||(i=r,r=void 0),i||(i={});var o=e.render(t,r,i),s=i.type||"image/png",a=i.rendererOpts||{};return o.toDataURL(s,a.quality)}},77665:function(t,e,r){var n=r(77067);function i(t,e){var r=t.a/255,n=e+'="'+t.hex+'"';return r<1?n+" "+e+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function o(t,e,r){var n=t+e;return void 0!==r&&(n+=" "+r),n}e.render=function(t,e,r){var s=n.getOptions(e),a=t.modules.size,u=t.modules.data,c=a+2*s.margin,l=s.color.light.a?"<path "+i(s.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",h="<path "+i(s.color.dark,"stroke")+' d="'+function(t,e,r){for(var n="",i=0,s=!1,a=0,u=0;u<t.length;u++){var c=Math.floor(u%e),l=Math.floor(u/e);c||s||(s=!0),t[u]?(a++,u>0&&c>0&&t[u-1]||(n+=s?o("M",c+r,.5+l+r):o("m",i,0),i=0,s=!1),c+1<e&&t[u+1]||(n+=o("h",a),a=0)):i++}return n}(u,a,s.margin)+'"/>',f='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':"")+('viewBox="0 0 '+c)+" "+c+'" shape-rendering="crispEdges">'+l+h+"</svg>\n";return"function"==typeof r&&r(null,f),f}},77067:function(t,e){function r(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw Error("Color should be defined as hex string");var e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw Error("Invalid hex color: "+t);(3===e.length||4===e.length)&&(e=Array.prototype.concat.apply([],e.map(function(t){return[t,t]}))),6===e.length&&e.push("F","F");var r=parseInt(e.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});var e=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,i=t.scale||4;
19return{width:n,scale:n?4:i,margin:e,color:{dark:r(t.color.dark||"#000000ff"),light:r(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,r){var n=e.getScale(t,r);return Math.floor((t+2*r.margin)*n)},e.qrToImageData=function(t,r,n){for(var i=r.modules.size,o=r.modules.data,s=e.getScale(i,n),a=Math.floor((i+2*n.margin)*s),u=n.margin*s,c=[n.color.light,n.color.dark],l=0;l<a;l++)for(var h=0;h<a;h++){var f=(l*a+h)*4,d=n.color.light;l>=u&&h>=u&&l<a-u&&h<a-u&&(d=c[o[Math.floor((l-u)/s)*i+Math.floor((h-u)/s)]?1:0]),t[f++]=d.r,t[f++]=d.g,t[f++]=d.b,t[f]=d.a}}},19810:function(t,e,r){"use strict";var n=r(5826);o.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(e){return!1}}();var i=o.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function o(t,e,r){return o.TYPED_ARRAY_SUPPORT||this instanceof o?"number"==typeof t?u(this,t):function(t,e,r,n){if("number"==typeof e)throw TypeError('"value" argument must not be a number');if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer)return function(t,e,r,n){var i;if(r<0||e.byteLength<r)throw RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw RangeError("'length' is out of bounds");return i=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n),o.TYPED_ARRAY_SUPPORT?i.__proto__=o.prototype:i=c(t,i),i}(t,e,r,n);if("string"==typeof e){var i,u,l;return(l=(u=a(t,i=0|h(e))).write(e))!==i&&(u=u.slice(0,l)),u}return function(t,e){if(o.isBuffer(e)){var r,n=0|s(e.length),i=a(t,n);return 0===i.length||e.copy(i,0,0,n),i}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?a(t,0):c(t,e);if("Buffer"===e.type&&Array.isArray(e.data))return c(t,e.data)}throw TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}(this,t,e,r):new o(t,e,r)}function s(t){if(t>=i)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|t}function a(t,e){var r;return o.TYPED_ARRAY_SUPPORT?(r=new Uint8Array(e)).__proto__=o.prototype:(null===(r=t)&&(r=new o(e)),r.length=e),r}function u(t,e){var r=a(t,e<0?0:0|s(e));if(!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)r[n]=0;return r}function c(t,e){for(var r=e.length<0?0:0|s(e.length),n=a(t,r),i=0;i<r;i+=1)n[i]=255&e[i];return n}function l(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319||s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function h(t){return o.isBuffer(t)?t.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer)?t.byteLength:("string"!=typeof t&&(t=""+t),0===t.length)?0:l(t).length}o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),o.prototype.write=function(t,e,r){void 0===e?(r=this.length,e=0):void 0===r&&"string"==typeof e?(r=this.length,e=0):isFinite(e)&&(e|=0,isFinite(r)?r|=0:r=void 0);var n,i,o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");return n=e,i=r,function(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}(l(t,this.length-n),this,n,i)},o.prototype.slice=function(t,e){var r,n=this.length;if(t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),o.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=o.prototype;else{var i=e-t;r=new o(i,void 0);for(var s=0;s<i;++s)r[s]=this[s+t]}return r},o.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("sourceStart out of bounds");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,s=n-r;if(this===t&&r<e&&e<n)for(i=s-1;i>=0;--i)t[i+e]=this[i+r];else if(s<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<s;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+s),e);return s},o.prototype.fill=function(t,e,r){if("string"==typeof t){if("string"==typeof e?(e=0,r=this.length):"string"==typeof r&&(r=this.length),1===t.length){var n,i=t.charCodeAt(0);i<256&&(t=i)}}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(n=e;n<r;++n)this[n]=t;else{var s=o.isBuffer(t)?t:new o(t),a=s.length;for(n=0;n<r-e;++n)this[n+e]=s[n%a]}return this},o.concat=function(t,e){if(!n(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a(null,0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;var r,i=u(null,e),s=0;for(r=0;r<t.length;++r){var c=t[r];if(!o.isBuffer(c))throw TypeError('"list" argument must be an Array of Buffers');c.copy(i,s),s+=c.length}return i},o.byteLength=h,o.prototype._isBuffer=!0,o.isBuffer=function(t){return!!(null!=t&&t._isBuffer)},t.exports.alloc=function(t){var e=new o(t);return e.fill(0),e},t.exports.from=function(t){return new o(t)}},68007:function(t){"use strict";
19t.exports=function(){throw Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},11460:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&(("le"===e||"be"===e)&&(r=e,e=10),this._init(t||0,e||10,r||"be"))}"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{c=r(36563).Buffer}catch(s){}function a(t,e,r){for(var n=0,i=Math.min(t.length,r),o=e;o<i;o++){var s=t.charCodeAt(o)-48;n<<=4,s>=49&&s<=54?n|=s-49+10:s>=17&&s<=22?n|=s-17+10:n|=15&s}return n}function u(t,e,r,n){for(var i=0,o=Math.min(t.length,r),s=e;s<o;s++){var a=t.charCodeAt(s)-48;i*=n,a>=49?i+=a-49+10:a>=17?i+=a-17+10:i+=a}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return 0>t.cmp(e)?t:e},o.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=Array(this.length);for(var i,o,s=0;s<this.length;s++)this.words[s]=0;var a=0;if("be"===r)for(s=t.length-1,i=0;s>=0;s-=3)o=t[s]|t[s-1]<<8|t[s-2]<<16,this.words[i]|=o<<a&67108863,this.words[i+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===r)for(s=0,i=0;s<t.length;s+=3)o=t[s]|t[s+1]<<8|t[s+2]<<16,this.words[i]|=o<<a&67108863,this.words[i+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var r,n,i=0;i<this.length;i++)this.words[i]=0;var o=0;for(i=t.length-6,r=0;i>=e;i-=6)n=a(t,i,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);i+6!==e&&(n=a(t,e,i+6),this.words[r]|=n<<o&67108863,this.words[r+1]|=n>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,c=0,l=r;l<a;l+=n)c=u(t,l,l+n,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==s){var h=1;for(c=u(t,l,t.length,e),l=0;l<s;l++)h*=e;this.imuln(h),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c,l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
19777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var c=1;c<n;c++){for(var l=u>>>26,h=67108863&u,f=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=f;d++){var p=c-d|0;l+=(s=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&s}r.words[c]=0|h,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var r,i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=((a<<i|o)&16777215).toString(16);r=0!=(o=a>>>24-i&16777215)||s!==this.length-1?l[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,s--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=h[t],d=f[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var g=p.modn(d).toString(t);r=(p=p.idivn(d)).isZero()?g+r:l[c-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n(void 0!==c),this.toArrayLike(c,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i,o,s=this.byteLength(),a=r||Math.max(1,s);n(s<=a,"byte array longer than desired length"),n(a>0,"Requested array length <= 0"),this.strip();var u=new t(a),c=this.clone();if("le"===e){for(o=0;!c.isZero();o++)i=c.andln(255),c.iushrn(8),u[o]=i;for(;o<a;o++)u[o]=0}else{for(o=0;o<a-s;o++)u[o]=0;for(o=0;!c.isZero();o++)i=c.andln(255),c.iushrn(8),u[a-o-1]=i}return u},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return(8191&e)==0&&(r+=13,e>>>=13),(127&e)==0&&(r+=7,e>>>=7),(15&e)==0&&(r+=4,e>>>=4),(3&e)==0&&(r+=2,e>>>=2),(1&e)==0&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return(this.length-1)*26+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n((this.negative|t.negative)==0),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n((this.negative|t.negative)==0),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){this.length>t.length?(e=this,r=t):(e=t,r=this);for(var e,r,n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n((this.negative|t.negative)==0),this.iuxor(t)}
vendor: 10,010 bytes, line 19
19,o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),e?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var e,r,n,i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e,r,n=this.iadd(t);return t.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,r=t):(e=t,r=this);for(var o=0,s=0;s<r.length;s++)o=(n=(0|e.words[s])-(0|r.words[s])+o)>>26,this.words[s]=67108863&n;for(;0!==o&&s<e.length;s++)o=(n=(0|e.words[s])+o)>>26,this.words[s]=67108863&n;if(0===o&&s<e.length&&e!==this)for(;s<e.length;s++)this.words[s]=e.words[s];return this.length=Math.max(this.length,s),e!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,c=0,l=0|s[0],h=8191&l,f=l>>>13,d=0|s[1],p=8191&d,g=d>>>13,m=0|s[2],y=8191&m,b=m>>>13,v=0|s[3],_=8191&v,w=v>>>13,M=0|s[4],S=8191&M,E=M>>>13,x=0|s[5],k=8191&x,A=x>>>13,C=0|s[6],R=8191&C,O=C>>>13,P=0|s[7],I=8191&P,T=P>>>13,N=0|s[8],L=8191&N,j=N>>>13,B=0|s[9],D=8191&B,F=B>>>13,U=0|a[0],z=8191&U,H=U>>>13,q=0|a[1],W=8191&q,V=q>>>13,K=0|a[2],G=8191&K,Z=K>>>13,$=0|a[3],J=8191&$,Y=$>>>13,Q=0|a[4],X=8191&Q,tt=Q>>>13,te=0|a[5],tr=8191&te,tn=te>>>13,ti=0|a[6],to=8191&ti,ts=ti>>>13,ta=0|a[7],tu=8191&ta,tc=ta>>>13,tl=0|a[8],th=8191&tl,tf=tl>>>13,td=0|a[9],tp=8191&td,tg=td>>>13;r.negative=t.negative^e.negative,r.length=19;var tm=(c+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(f,z)|0))<<13)|0;c=((o=Math.imul(f,H))+(i>>>13)|0)+(tm>>>26)|0,tm&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(g,z)|0,o=Math.imul(g,H);var ty=(c+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(f,W)|0))<<13)|0;c=((o=o+Math.imul(f,V)|0)+(i>>>13)|0)+(ty>>>26)|0,ty&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(b,z)|0,o=Math.imul(b,H),n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,V)|0;var tb=(c+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(f,G)|0))<<13)|0;c=((o=o+Math.imul(f,Z)|0)+(i>>>13)|0)+(tb>>>26)|0,tb&=67108863,n=Math.imul(_,z),i=(i=Math.imul(_,H))+Math.imul(w,z)|0,o=Math.imul(w,H),n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,V)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,V)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(g,G)|0,o=o+Math.imul(g,Z)|0;var tv=(c+(n=n+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(f,J)|0))<<13)|0;c=((o=o+Math.imul(f,Y)|0)+(i>>>13)|0)+(tv>>>26)|0,tv&=67108863,n=Math.imul(S,z),i=(i=Math.imul(S,H))+Math.imul(E,z)|0,o=Math.imul(E,H),n=n+Math.imul(_,W)|0,i=(i=i+Math.imul(_,V)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,V)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(g,J)|0,o=o+Math.imul(g,Y)|0;var t_=(c+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(f,X)|0))<<13)|0;c=((o=o+Math.imul(f,tt)|0)+(i>>>13)|0)+(t_>>>26)|0,t_&=67108863,n=Math.imul(k,z),i=(i=Math.imul(k,H))+Math.imul(A,z)|0,o=Math.imul(A,H),n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,V)|0)+Math.imul(E,W)|0,o=o+Math.imul(E,V)|0,n=n+Math.imul(_,G)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(w,G)|0,o=o+Math.imul(w,Z)|0,n=n+Math.imul(y,J)|0,i=(i=i+Math.imul(y,Y)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,Y)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,tt)|0;var tw=(c+(n=n+Math.imul(h,tr)|0)|0)+((8191&(i=(i=i+Math.imul(h,tn)|0)+Math.imul(f,tr)|0))<<13)|0;c=((o=o+Math.imul(f,tn)|0)+(i>>>13)|0)+(tw>>>26)|0,tw&=67108863,n=Math.imul(R,z),i=(i=Math.imul(R,H))+Math.imul(O,z)|0,o=Math.imul(O,H),n=n+Math.imul(k,W)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(A,W)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(E,G)|0,o=o+Math.imul(E,Z)|0,n=n+Math.imul(_,J)|0,i=(i=i+Math.imul(_,Y)|0)+Math.imul(w,J)|0,o=o+Math.imul(w,Y)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,tt)|0,n=n+Math.imul(p,tr)|0,i=(i=i+Math.imul(p,tn)|0)+Math.imul(g,tr)|0,o=o+Math.imul(g,tn)|0;var tM=(c+(n=n+Math.imul(h,to)|0)|0)+((8191&(i=(i=i+Math.imul(h,ts)|0)+Math.imul(f,to)|0))<<13)|0;c=((o=o+Math.imul(f,ts)|0)+(i>>>13)|0)+(tM>>>26)|0,tM&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,H))+Math.imul(T,z)|0,o=Math.imul(T,H),n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(O,W)|0,o=o+Math.imul(O,V)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(E,J)|0,o=o+Math.imul(E,Y)|0,n=n+Math.imul(_,X)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,tt)|0,n=n+Math.imul(y,tr)|0,i=(i=i+Math.imul(y,tn)|0)+Math.imul(b,tr)|0,o=o+Math.imul(b,tn)|0,n=n+Math.imul(p,to)|0,i=(i=i+Math.imul(p,ts)|0)+Math.imul(g,to)|0,o=o+Math.imul(g,ts)|0;var tS=(c+(n=n+Math.imul(h,tu)|0)|0)+((8191&(i=(i=i+Math.imul(h,tc)|0)+Math.imul(f,tu)|0))<<13)|0;c=((o=o+Math.imul(f,tc)|0)+(i>>>13)|0)+(tS>>>26)|0,tS&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(j,z)|0,o=Math.imul(j,H),n=n+Math.imul(I,W)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,V)|0,n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,Z)|0,n=n+Math.imul(k,J)|0,i=(i=i+Math.imul(k,Y)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,Y)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(E,X)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(_,tr)|0,i=(i=i+Math.imul(_,tn)|0)+Math.imul(w,tr)|0,o=o+Math.imul(w,tn)|0,n=n+Math.imul(y,to)|0,i=(i=i+Math.imul(y,ts)|0)+Math.imul(b,to)|0,o=o+Math.imul(b,ts)|0,n=n+Math.imul(p,tu)|0,i=(i=i+Math.imul(p,tc)|0)+Math.imul(g,tu)|0,o=o+Math.imul(g,tc)|0;var tE=(c+(n=n+Math.imul(h,th)|0)|0)+((8191&(i=(i=i+Math.imul(h,tf)|0)+Math.imul(f,th)|0))<<13)|0;c=((o=o+Math.imul(f,tf)|0)+(i>>>13)|0)+(tE>>>26)|0,tE&=67108863,n=Math.imul(D,z),i=(i=Math.imul(D,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(L,W)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,V)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(T,G)|0,o=o+Math.imul(T,Z)|0,n=n+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,Y)|0,n=n+Math.imul(k,X)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(S,tr)|0,i=(i=i+Math.imul(S,tn)|0)+Math.imul(E,tr)|0,o=o+Math.imul(E,tn)|0,n=n+Math.imul(_,to)|0,i=(i=i+Math.imul(_,ts)|0)+Math.imul(w,to)|0,o=o+Math.imul(w,ts)|0,n=n+Math.imul(y,tu)|0,i=(i=i+Math.imul(y,tc)|0)+Math.imul(b,tu)|0,o=o+Math.imul(b,tc)|0,n=n+Math.imul(p,th)|0,i=(i=i+Math.imul(p,tf)|0)+Math.imul(g,th)|0,o=o+Math.imul(g,tf)|0;var tx=(c+(n=n+Math.imul(h,tp)|0)|0)+((8191&(i=(i=i+Math.imul(h,tg)|0)+Math.imul(f,tp)|0))<<13)|0;c=((o=o+Math.imul(f,tg)|0)+(i>>>13)|0)+(tx>>>26)|0,tx&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,V))+Math.imul(F,W)|0,o=Math.imul(F,V),n=n+Math.imul(L,G)|0,i=(i=i+Math.imul(L,Z)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,Z)|0,n=n+Math.imul(I,J)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,Y)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(k,tr)|0,i=(i=i+Math.imul(k,tn)|0)+Math.imul(A,tr)|0,o=o+Math.imul(A,tn)|0,n=n+Math.imul(S,to)|0,i=(i=i+Math.imul(S,ts)|0)+Math.imul(E,to)|0,o=o+Math.imul(E,ts)|0,n=n+Math.imul(_,tu)|0,i=(i=i+Math.imul(_,tc)|0)+Math.imul(w,tu)|0,o=o+Math.imul(w,tc)|0,n=n+Math.imul(y,th)|0,i=(i=i+Math.imul(y,tf)|0)+Math.imul(b,th)|0,o=o+Math.imul(b,tf)|0;var tk=(c+(n=n+Math.imul(p,tp)|0)|0)+((8191&(i=(i=i+Math.imul(p,tg)|0)+Math.imul(g,tp)|0))<<13)|0;c=((o=o+Math.imul(g,tg)|0)+(i>>>13)|0)+(tk>>>26)|0,tk&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,Z))+Math.imul(F,G)|0,o=Math.imul(F,Z),n=n+Math.imul(L,J)|0,i=(i=i+Math.imul(L,Y)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(R,tr)|0,i=(i=i+Math.imul(R,tn)|0)+Math.imul(O,tr)|0,o=o+Math.imul(O,tn)|0,n=n+Math.imul(k,to)|0,i=(i=i+Math.imul(k,ts)|0)+Math.imul(A,to)|0,o=o+Math.imul(A,ts)|0,n=n+Math.imul(S,tu)|0,i=(i=i+Math.imul(S,tc)|0)+Math.imul(E,tu)|0,o=o+Math.imul(E,tc)|0,n=n+Math.imul(_,th)|0,i=(i=i+Math.imul(_,tf)|0)+Math.imul(w,th)|0,o=o+Math.imul(w,tf)|0;var tA=(c+(n=n+Math.imul(y,tp)|0)|0)+((8191&(i=(i=i+Math.imul(y,tg)|0)+Math.imul(b,tp)|0))<<13)|0;c=((o=o+Math.imul(b,tg)|0)+(i>>>13)|0)+(tA>>>26)|0,tA&=67108863,n=Math.imul(D,J),i=(i=Math.imul(D,Y))+Math.imul(F,J)|0,o=Math.imul(F,Y),n=n+Math.imul(L,X)|0,i=(i=i+Math.imul(L,tt)|0)+Math.imul(j,
vendor: 6,026 bytes, line 19
19X)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(I,tr)|0,i=(i=i+Math.imul(I,tn)|0)+Math.imul(T,tr)|0,o=o+Math.imul(T,tn)|0,n=n+Math.imul(R,to)|0,i=(i=i+Math.imul(R,ts)|0)+Math.imul(O,to)|0,o=o+Math.imul(O,ts)|0,n=n+Math.imul(k,tu)|0,i=(i=i+Math.imul(k,tc)|0)+Math.imul(A,tu)|0,o=o+Math.imul(A,tc)|0,n=n+Math.imul(S,th)|0,i=(i=i+Math.imul(S,tf)|0)+Math.imul(E,th)|0,o=o+Math.imul(E,tf)|0;var tC=(c+(n=n+Math.imul(_,tp)|0)|0)+((8191&(i=(i=i+Math.imul(_,tg)|0)+Math.imul(w,tp)|0))<<13)|0;c=((o=o+Math.imul(w,tg)|0)+(i>>>13)|0)+(tC>>>26)|0,tC&=67108863,n=Math.imul(D,X),i=(i=Math.imul(D,tt))+Math.imul(F,X)|0,o=Math.imul(F,tt),n=n+Math.imul(L,tr)|0,i=(i=i+Math.imul(L,tn)|0)+Math.imul(j,tr)|0,o=o+Math.imul(j,tn)|0,n=n+Math.imul(I,to)|0,i=(i=i+Math.imul(I,ts)|0)+Math.imul(T,to)|0,o=o+Math.imul(T,ts)|0,n=n+Math.imul(R,tu)|0,i=(i=i+Math.imul(R,tc)|0)+Math.imul(O,tu)|0,o=o+Math.imul(O,tc)|0,n=n+Math.imul(k,th)|0,i=(i=i+Math.imul(k,tf)|0)+Math.imul(A,th)|0,o=o+Math.imul(A,tf)|0;var tR=(c+(n=n+Math.imul(S,tp)|0)|0)+((8191&(i=(i=i+Math.imul(S,tg)|0)+Math.imul(E,tp)|0))<<13)|0;c=((o=o+Math.imul(E,tg)|0)+(i>>>13)|0)+(tR>>>26)|0,tR&=67108863,n=Math.imul(D,tr),i=(i=Math.imul(D,tn))+Math.imul(F,tr)|0,o=Math.imul(F,tn),n=n+Math.imul(L,to)|0,i=(i=i+Math.imul(L,ts)|0)+Math.imul(j,to)|0,o=o+Math.imul(j,ts)|0,n=n+Math.imul(I,tu)|0,i=(i=i+Math.imul(I,tc)|0)+Math.imul(T,tu)|0,o=o+Math.imul(T,tc)|0,n=n+Math.imul(R,th)|0,i=(i=i+Math.imul(R,tf)|0)+Math.imul(O,th)|0,o=o+Math.imul(O,tf)|0;var tO=(c+(n=n+Math.imul(k,tp)|0)|0)+((8191&(i=(i=i+Math.imul(k,tg)|0)+Math.imul(A,tp)|0))<<13)|0;c=((o=o+Math.imul(A,tg)|0)+(i>>>13)|0)+(tO>>>26)|0,tO&=67108863,n=Math.imul(D,to),i=(i=Math.imul(D,ts))+Math.imul(F,to)|0,o=Math.imul(F,ts),n=n+Math.imul(L,tu)|0,i=(i=i+Math.imul(L,tc)|0)+Math.imul(j,tu)|0,o=o+Math.imul(j,tc)|0,n=n+Math.imul(I,th)|0,i=(i=i+Math.imul(I,tf)|0)+Math.imul(T,th)|0,o=o+Math.imul(T,tf)|0;var tP=(c+(n=n+Math.imul(R,tp)|0)|0)+((8191&(i=(i=i+Math.imul(R,tg)|0)+Math.imul(O,tp)|0))<<13)|0;c=((o=o+Math.imul(O,tg)|0)+(i>>>13)|0)+(tP>>>26)|0,tP&=67108863,n=Math.imul(D,tu),i=(i=Math.imul(D,tc))+Math.imul(F,tu)|0,o=Math.imul(F,tc),n=n+Math.imul(L,th)|0,i=(i=i+Math.imul(L,tf)|0)+Math.imul(j,th)|0,o=o+Math.imul(j,tf)|0;var tI=(c+(n=n+Math.imul(I,tp)|0)|0)+((8191&(i=(i=i+Math.imul(I,tg)|0)+Math.imul(T,tp)|0))<<13)|0;c=((o=o+Math.imul(T,tg)|0)+(i>>>13)|0)+(tI>>>26)|0,tI&=67108863,n=Math.imul(D,th),i=(i=Math.imul(D,tf))+Math.imul(F,th)|0,o=Math.imul(F,tf);var tT=(c+(n=n+Math.imul(L,tp)|0)|0)+((8191&(i=(i=i+Math.imul(L,tg)|0)+Math.imul(j,tp)|0))<<13)|0;c=((o=o+Math.imul(j,tg)|0)+(i>>>13)|0)+(tT>>>26)|0,tT&=67108863;var tN=(c+(n=Math.imul(D,tp))|0)+((8191&(i=(i=Math.imul(D,tg))+Math.imul(F,tp)|0))<<13)|0;return c=((o=Math.imul(F,tg))+(i>>>13)|0)+(tN>>>26)|0,tN&=67108863,u[0]=tm,u[1]=ty,u[2]=tb,u[3]=tv,u[4]=t_,u[5]=tw,u[6]=tM,u[7]=tS,u[8]=tE,u[9]=tx,u[10]=tk,u[11]=tA,u[12]=tC,u[13]=tR,u[14]=tO,u[15]=tP,u[16]=tI,u[17]=tT,u[18]=tN,0!==c&&(u[19]=c,r.length++),r};function g(t,e,r){return new m().mulp(t,e,r)}function m(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?p(this,t,e):r<63?d(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var l=o-c,h=(0|t.words[l])*(0|e.words[c]),f=67108863&h;s=s+(h/67108864|0)|0,a=67108863&(f=f+a|0),i+=(s=s+(f>>>26)|0)>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,t,e):g(this,t,e)},m.prototype.makeRBT=function(t){for(var e=Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},m.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},m.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s<o;s++)n[s]=e[t[s]],i[s]=r[t[s]]},m.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),c=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var h=u,f=c,d=0;d<s;d++){var p=r[l+d],g=n[l+d],m=r[l+d+s],y=n[l+d+s],b=h*m-f*y;y=h*y+f*m,m=b,r[l+d]=p+m,n[l+d]=g+y,r[l+d+s]=p-m,n[l+d+s]=g-y,d!==a&&(b=u*h-c*f,f=u*f+c*h,h=b)}},m.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},m.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},m.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},m.prototype.convert13b=function(t,e,r,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)r[s]=0;n(0===o),n((-8192&o)==0)},m.prototype.stub=function(t){for(var e=Array(t),r=0;r<t;r++)e[r]=0;return e},m.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),s=Array(n),a=Array(n),u=Array(n),c=Array(n),l=Array(n),h=Array(n),f=r.words;f.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,c,n),this.transform(s,o,a,u,n,i),this.transform(c,o,l,h,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-u[d]*h[d];u[d]=a[d]*h[d]+u[d]*l[d],a[d]=p}return this.conjugate(a,u,n),this.transform(a,u,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=Array(this.length+t.length),g(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>
vendor: 17,812 bytes, line 19
1926,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<r;this.words[e]=u|s,s=a>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var i,o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var c=0;c<s;c++)u.words[c]=this.words[c];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,c=0;c<this.length;c++)this.words[c]=this.words[c+s];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var h=0|this.words[c];this.words[c]=l<<26-o|h>>>o,l=h&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return!(this.length<=r)&&!!(this.words[r]&1<<e)},o.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==e&&r++,this.length=Math.min(r,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this.strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return(n("number"==typeof t),n(t<67108864),t<0)?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,s=t.length+r;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+a;var u=(0|t.words[i])*e;o-=67108863&u,a=(o>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)a=(o=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r,n=this.length-t.length,i=this.clone(),s=t,a=0|s.words[s.length-1];0!=(n=26-this._countBits(a))&&(s=s.ushln(n),i.iushln(n),a=0|s.words[s.length-1]);var u=i.length-s.length;if("mod"!==e){(r=new o(null)).length=u+1,r.words=Array(r.length);for(var c=0;c<r.length;c++)r.words[c]=0}var l=i.clone()._ishlnsubmul(s,1,u);0===l.negative&&(i=l,r&&(r.words[u]=1));for(var h=u-1;h>=0;h--){var f=(0|i.words[s.length+h])*67108864+(0|i.words[s.length+h-1]);for(f=Math.min(f/a|0,67108863),i._ishlnsubmul(s,f,h);0!==i.negative;)f--,i.negative=0,i._ishlnsubmul(s,1,h),i.isZero()||(i.negative^=1);r&&(r.words[h]=f)}return r&&r.strip(),i.strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(t,e,r){var i,s,a;return(n(!t.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):(this.negative&t.negative)!=0?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||0>this.cmp(t)?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=67108864%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),s=new o(0),a=new o(0),u=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var f=0,d=1;(e.words[0]&d)==0&&f<26;++f,d<<=1);if(f>0)for(e.iushrn(f);f-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(h)),i.iushrn(1),s.iushrn(1);for(var p=0,g=1;(r.words[0]&g)==0&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(h)),a.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),s.isub(u)):(r.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e,r=this,i=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var s=new o(1),a=new o(0),u=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,l=1;(r.words[0]&l)==0&&c<26;++c,l<<=1);if(c>0)for(r.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);for(var h=0,f=1;(i.words[0]&f)==0&&h<26;++h,f<<=1);if(h>0)for(i.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),s.isub(a)):(i.isub(r),a.isub(s))}return 0>(e=0===r.cmpn(1)?s:a).cmpn(0)&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return -1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return -1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return -1===this.cmpn(t)},o.prototype.lt=function(t){return -1===this.cmp(t)},o.prototype.lten=function(t){return 0>=this.cmpn(t)},o.prototype.lte=function(t){return 0>=this.cmp(t)},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new S(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function E(t){S.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new o(null);return t.words=Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,r=t;do this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):r.strip(),r},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},i(v,b),v.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9){t.words[0]=0,t.length=1;return}var i=t.words[9];for(n=10,e.words[e.length++]=4194303&i;n<t.length;n++){var o=0|t.words[n];t.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[n-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(_,b),i(w,b),i(M,b),M.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=(0|t.words[r])*19+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){var e;if(y[t])return y[t];if("k256"===t)e=new v;else if("p224"===t)e=new _;else if("p192"===t)e=new w;else if("p25519"===t)e=new M;else throw Error("Unknown prime "+t);return y[t]=e,e},S.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){n((t.negative|e.negative)==0,"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var h=this.pow(l,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;0!==d.cmp(a);){for(var g=d,m=0;0!==g.cmp(a);m++)g=g.redSqr();n(m<p);var y=this.pow(h,new o(1).iushln(p-m-1));f=f.redMul(y),h=y.redSqr(),d=d.redMul(h),p=m}return f},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],s=0,a=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],l=u-1;l>=0;l--){var h=c>>l&1;if(i!==r[0]&&(i=this.sqr(i)),0===h&&0===s){a=0;continue}s<<=1,s|=h,(4==++a||0===n&&0===l)&&(i=this.mul(i,r[s]),a=0,s=0)}u=26}return i},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new E(t)},i(E,S),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):0>
19i.cmpn(0)&&(s=i.iadd(this.m)),s._forceRed(this)},E.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},93006:function(t,e,r){"use strict";r.d(e,{Z:function(){return t_}});var n={};r.r(n),r.d(n,{decrypt:function(){return ti},encrypt:function(){return tn},generateKey:function(){return te},verifyHmac:function(){return tr}});var i=r(51968);let o=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],s=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign","wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],a={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"};var u=r(11460),c=r.n(u);r(4501);var l=r(31739),h=r.n(l),f=r(48764).Buffer;let d="utf8";function p(t){return new Uint8Array(t)}function g(t,e=!1){let r=t.toString("hex");return e?w(r):r}function m(t,e=!1){return g(h()(t),e)}function y(t){return p(f.from(_(t),"hex"))}function b(t){return f.from(t,d)}function v(...t){let e=[];return t.forEach(t=>e=e.concat(Array.from(t))),new Uint8Array([...e])}function _(t){return t.replace(/^0x/,"")}function w(t){return t.startsWith("0x")?t:`0x${t}`}function M(t){return(t=function(t,e=8,r="0"){return function(t,e,r="0"){return function(t,e,r,n="0"){let i=e-t.length,o=t;if(i>0){let s=n.repeat(i);o=r?s+t:t+s}return o}(t,e,!0,r)}(t,function(t,e=8){let r=t%e;return r?(t-r)/e*e+e:t}(t.length,e),r)}(t=_(t),2))&&(t=w(t)),t}function S(t){var e;return e=new Uint8Array(t),h()(e)}function E(t,e){let r=_(M(new(c())(t).toString(16)));return e?r:w(r)}var x=r(91094),k=r(1468);let A=function(){let t=1e3*Date.now(),e=Math.floor(1e3*Math.random());return t+e};function C(){let t=((t,e)=>{for(e=t="";t++<36;e+=51*t&52?(15^t?8^Math.random()*(20^t?16:4):4).toString(16):"-");return e})();return t}function R(t,e){return"string"==typeof t&&!!t.match(/^0x[0-9A-Fa-f]*$/)&&(!e||t.length===2+2*e)}function O(t){return void 0!==t.result}function P(t){return void 0!==t.error}function I(t){return void 0!==t.event}let T=t=>!!t&&"0x"===t.toLowerCase().substring(0,2)&&!!/^(0x)?[0-9a-f]{40}$/i.test(t)&&(!!(/^(0x)?[0-9a-f]{40}$/.test(t)||/^(0x)?[0-9A-F]{40}$/.test(t))||t===function(t){t=_(t.toLowerCase());let e=_((0,x.keccak_256)(b(t))),r="";for(let n=0;n<t.length;n++)parseInt(e[n],16)>7?r+=t[n].toUpperCase():r+=t[n];return w(r)}(t));function N(t){return t&&t.length&&!R(t[0])&&(t[0]=function(t,e=!1){return g(b(t),e)}(t[0],!0)),t}function L(t){if(void 0!==t.type&&"0"!==t.type)return t;if(void 0===t.from||!T(t.from))throw Error("Transaction object must include a valid 'from' value.");function e(t){let e=t;return"number"!=typeof t&&("string"!=typeof t||""===t||"string"==typeof t&&""===t.trim())||(R(t)?"string"==typeof t&&(e=M(t)):e=E(t)),"string"==typeof e&&(e=function(t){let e=t.startsWith("0x");return t=(t=_(t)).startsWith("0")?t.substring(1):t,e?w(t):t}(w(e))),e}let r={from:M(t.from),to:void 0===t.to?void 0:M(t.to),gasPrice:void 0===t.gasPrice?"":e(t.gasPrice),gas:void 0===t.gas?void 0===t.gasLimit?"":e(t.gasLimit):e(t.gas),value:void 0===t.value?"":e(t.value),nonce:void 0===t.nonce?"":e(t.nonce),data:void 0===t.data?"":M(t.data)||"0x"},n=["gasPrice","gas","value","nonce"];return Object.keys(r).forEach(t=>{(void 0===r[t]||"string"==typeof r[t]&&!r[t].trim().length)&&n.includes(t)&&delete r[t]}),r}var j=r(17563),B=class{constructor(){this._eventEmitters=[],"undefined"!=typeof window&&void 0!==window.addEventListener&&(window.addEventListener("online",()=>this.trigger("online")),window.addEventListener("offline",()=>this.trigger("offline")))}on(t,e){this._eventEmitters.push({event:t,callback:e})}trigger(t){let e=[];t&&(e=this._eventEmitters.filter(e=>e.event===t)),e.forEach(t=>{t.callback()})}};let D=void 0!==r.g.WebSocket?r.g.WebSocket:r(68007);var F=class{constructor(t){if(this.opts=t,this._queue=[],this._events=[],this._subscriptions=[],this._protocol=t.protocol,this._version=t.version,this._url="",this._netMonitor=null,this._socket=null,this._nextSocket=null,this._subscriptions=t.subscriptions||[],this._netMonitor=t.netMonitor||new B,!t.url||"string"!=typeof t.url)throw Error("Missing or invalid WebSocket url");this._url=t.url,this._netMonitor.on("online",()=>this._socketCreate())}set readyState(t){}get readyState(){return this._socket?this._socket.readyState:-1}set connecting(t){}get connecting(){return 0===this.readyState}set connected(t){}get connected(){return 1===this.readyState}set closing(t){}get closing(){return 2===this.readyState}set closed(t){}get closed(){return 3===this.readyState}open(){this._socketCreate()}close(){this._socketClose()}send(t,e,r){if(!e||"string"!=typeof e)throw Error("Missing or invalid topic field");this._socketSend({topic:e,type:"pub",payload:t,silent:!!r})}subscribe(t){this._socketSend({topic:t,type:"sub",payload:"",silent:!0})}on(t,e){this._events.push({event:t,callback:e})}_socketCreate(){if(this._nextSocket)return;let t=function(t,e,r){var n,o,s,a,u;let c;let l=t.startsWith("https")?t.replace("https","wss"):t.startsWith("http")?t.replace("http","ws"):t,h=l.split("?"),f=(0,i.isBrowser)()?{protocol:e,version:r,env:"browser",host:(null===(n=(0,i.getLocation)())||void 0===n?void 0:n.host)||""}:{protocol:e,version:r,env:(null===(o=(0,i.detectEnv)())||void 0===o?void 0:o.name)||""},d=(u=Object.assign(Object.assign({},(a=function(t){let e=-1!==t.indexOf("?")?t.indexOf("?"):void 0,r=void 0!==e?t.substr(e):"";return r}(h[1]||""),j.parse(a))),f),j.stringify(u));return h[0]+"?"+d}(this._url,this._protocol,this._version);if(this._nextSocket=new D(t),!this._nextSocket)throw Error("Failed to create socket");this._nextSocket.onmessage=t=>this._socketReceive(t),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=t=>this._socketError(t),this._nextSocket.onclose=()=>{setTimeout(()=>{this._nextSocket=null,this._socketCreate()},1e3)}}_socketOpen(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}_socketClose(){this._socket&&(this._socket.onclose=()=>{},this._socket.close())}_socketSend(t){let e=JSON.stringify(t);this._socket&&1===this._socket.readyState?this._socket.send(e):(this._setToQueue(t),this._socketCreate())}async _socketReceive(t){let e;try{e=JSON.parse(t.data)}catch(r){return}if(this._socketSend({topic:e.topic,type:"ack",payload:"",silent:!0}),this._socket&&1===this._socket.readyState){let n=this._events.filter(t=>"message"===t.event);
19n&&n.length&&n.forEach(t=>t.callback(e))}}_socketError(t){let e=this._events.filter(t=>"error"===t.event);e&&e.length&&e.forEach(e=>e.callback(t))}_queueSubscriptions(){let t=this._subscriptions;t.forEach(t=>this._queue.push({topic:t,type:"sub",payload:"",silent:!0})),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(t){this._queue.push(t)}_pushQueue(){let t=this._queue;t.forEach(t=>this._socketSend(t)),this._queue=[]}};let U="Session currently connected",z="Session currently disconnected",H="JSON RPC response format is invalid",q="User close QRCode Modal";var W=class{constructor(){this._eventEmitters=[]}subscribe(t){this._eventEmitters.push(t)}unsubscribe(t){this._eventEmitters=this._eventEmitters.filter(e=>e.event!==t)}trigger(t){let e,r=[];(e=void 0!==t.method?t.method:O(t)||P(t)?`response:${t.id}`:I(t)?t.event:"")&&(r=this._eventEmitters.filter(t=>t.event===e)),r&&r.length||o.includes(e)||e.startsWith("wc_")||I(e)||(r=this._eventEmitters.filter(t=>"call_request"===t.event)),r.forEach(e=>{if(P(t)){let r=Error(t.error.message);e.callback(r,null)}else e.callback(null,t)})}},V=class{constructor(t="walletconnect"){this.storageId=t}getSession(){let t=null,e=(0,i.getLocal)(this.storageId);return e&&void 0!==e.bridge&&(t=e),t}setSession(t){return(0,i.setLocal)(this.storageId,t),t}removeSession(){(0,i.removeLocal)(this.storageId)}};let K="abcdefghijklmnopqrstuvwxyz0123456789".split("").map(t=>`https://${t}.bridge.walletconnect.org`);var G=class{constructor(t){if(this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new W,this._clientMeta=(0,i.getClientMeta)()||t.connectorOpts.clientMeta||null,this._cryptoLib=t.cryptoLib,this._sessionStorage=t.sessionStorage||new V(t.connectorOpts.storageId),this._qrcodeModal=t.connectorOpts.qrcodeModal,this._qrcodeModalOptions=t.connectorOpts.qrcodeModalOptions,this._signingMethods=[...s,...t.connectorOpts.signingMethods||[]],!t.connectorOpts.bridge&&!t.connectorOpts.uri&&!t.connectorOpts.session)throw Error("Missing one of the required parameters: bridge / uri / session");if(t.connectorOpts.bridge){var e,r;this.bridge="walletconnect.org"!==(0,(0,((r=e=t.connectorOpts.bridge).indexOf("//")>-1?r.split("/")[2]:r.split("/")[0]).split(":")[0]).split("?")[0]).split(".").slice(-2).join(".")?e:K[Math.floor(Math.random()*K.length)]}t.connectorOpts.uri&&(this.uri=t.connectorOpts.uri);let n=t.connectorOpts.session||this._getStorageSession();n&&(this.session=n),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=t.transport||new F({protocol:this.protocol,version:this.version,url:this.bridge,subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),t.connectorOpts.uri&&this._subscribeToSessionRequest(),t.pushServerOpts&&this._registerPushServer(t.pushServerOpts)}set bridge(t){t&&(this._bridge=t)}get bridge(){return this._bridge}set key(t){if(!t)return;let e=y(t).buffer;this._key=e}get key(){if(this._key){var t;let e=(t=this._key,m(new Uint8Array(t),!1));return e}return""}set clientId(t){t&&(this._clientId=t)}get clientId(){let t=this._clientId;return t||(t=this._clientId=C()),this._clientId}set peerId(t){t&&(this._peerId=t)}get peerId(){return this._peerId}set clientMeta(t){}get clientMeta(){let t=this._clientMeta;return t||(t=this._clientMeta=(0,i.getClientMeta)()),t}set peerMeta(t){this._peerMeta=t}get peerMeta(){let t=this._peerMeta;return t}set handshakeTopic(t){t&&(this._handshakeTopic=t)}get handshakeTopic(){return this._handshakeTopic}set handshakeId(t){t&&(this._handshakeId=t)}get handshakeId(){return this._handshakeId}get uri(){let t=this._formatUri();return t}set uri(t){if(!t)return;let{handshakeTopic:e,bridge:r,key:n}=this._parseUri(t);this.handshakeTopic=e,this.bridge=r,this.key=n}set chainId(t){this._chainId=t}get chainId(){let t=this._chainId;return t}set networkId(t){this._networkId=t}get networkId(){let t=this._networkId;return t}set accounts(t){this._accounts=t}get accounts(){let t=this._accounts;return t}set rpcUrl(t){this._rpcUrl=t}get rpcUrl(){let t=this._rpcUrl;return t}set connected(t){}get connected(){return this._connected}set pending(t){}get pending(){return!!this._handshakeTopic}get session(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}}set session(t){t&&(this._connected=t.connected,this.accounts=t.accounts,this.chainId=t.chainId,this.bridge=t.bridge,this.key=t.key,this.clientId=t.clientId,this.clientMeta=t.clientMeta,this.peerId=t.peerId,this.peerMeta=t.peerMeta,this.handshakeId=t.handshakeId,this.handshakeTopic=t.handshakeTopic)}on(t,e){this._eventManager.subscribe({event:t,callback:e})}off(t){this._eventManager.unsubscribe(t)}async createInstantRequest(t){this._key=await this._generateKey();let e=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(t)}]});this.handshakeId=e.id,this.handshakeTopic=C(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",()=>{throw Error(q)});let r=()=>{this.killSession()};try{let n=await this._sendCallRequest(e);return n&&r(),n}catch(i){throw r(),i}}async connect(t){if(!this._qrcodeModal)throw Error("QRCode Modal not provided");return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(t),new Promise(async(t,e)=>{this.on("modal_closed",()=>e(Error(q))),this.on("connect",(r,n)=>{if(r)return e(r);t(n.params[0])})}))}async createSession(t){if(this._connected)throw Error(U);if(this.pending)return;this._key=await this._generateKey();let e=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:t&&t.chainId?t.chainId:null}]});this.handshakeId=e.id,this.handshakeTopic=C(),this._sendSessionRequest(e,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]})}approveSession(t){if(this._connected)throw Error(U);this.chainId=t.chainId,this.accounts=t.accounts,this.networkId=t.networkId||0,this.rpcUrl=t.rpcUrl||"";let e={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},r={id:this.handshakeId,jsonrpc:"2.0",result:e};this._sendResponse(r),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}rejectSession(t){if(this._connected)throw Error(U);let e=t&&t.message?t.message:"Session Rejected",r=this._formatResponse({id:this.handshakeId,error:{message:e}});this._sendResponse(r),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:e}]}),this._removeStorageSession()}updateSession(t){if(!this._connected)throw Error(z);this.chainId=t.chainId,this.accounts=t.accounts,this.networkId=t.networkId||0,this.rpcUrl=t.rpcUrl||"";let e={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},r=this._formatRequest({method:"wc_sessionUpdate",params:[e]});this._sendSessionRequest(r,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(t){let e=t?t.message:"Session Disconnected",r=this._formatRequest({method:"wc_sessionUpdate",params:[{approved:!1,chainId:null,networkId:null,accounts:null}]});await this._sendRequest(r),this._handleSessionDisconnect(e)}async sendTransaction(t){if(!this._connected)throw Error(z);let e=L(t),r=this._formatRequest({method:"eth_sendTransaction",params:[e]}),n=await this._sendCallRequest(r);return n}async signTransaction(t){if(!this._connected)throw Error(z);let e=L(t),r=this._formatRequest({method:"eth_signTransaction",params:[e]}),n=await this._sendCallRequest(r);return n}async signMessage(t){if(!this._connected)throw Error(z);let e=this._formatRequest({method:"eth_sign",params:t}),r=await this._sendCallRequest(e);return r}async signPersonalMessage(t){if(!this._connected)throw Error(z);t=N(t);let e=this._formatRequest({method:"personal_sign",params:t}),r=await this._sendCallRequest(e);return r}async signTypedData(t){if(!this._connected)throw Error(z);let e=this._formatRequest({method:"eth_signTypedData",params:t}),r=await this._sendCallRequest(e);return r}async updateChain(t){if(!this._connected)throw Error("Session currently disconnected");let e=this._formatRequest({method:"wallet_updateChain",params:[t]}),r=await this._sendCallRequest(e);return r}unsafeSend(t,e){return this._sendRequest(t,e),this._eventManager.trigger({event:"call_request_sent",params:[{request:t,o
19ptions:e}]}),new Promise((e,r)=>{this._subscribeToResponse(t.id,(t,n)=>{if(t){r(t);return}if(!n)throw Error("Missing JSON RPC response");e(n)})})}async sendCustomRequest(t,e){if(!this._connected)throw Error(z);switch(t.method){case"eth_accounts":return this.accounts;case"eth_chainId":return E(this.chainId);case"eth_sendTransaction":case"eth_signTransaction":t.params&&(t.params[0]=L(t.params[0]));break;case"personal_sign":t.params&&(t.params=N(t.params))}let r=this._formatRequest(t),n=await this._sendCallRequest(r,e);return n}approveRequest(t){if(O(t)){let e=this._formatResponse(t);this._sendResponse(e)}else throw Error('JSON-RPC success response must include "result" field')}rejectRequest(t){if(P(t)){let e=this._formatResponse(t);this._sendResponse(e)}else throw Error('JSON-RPC error response must include "error" field')}transportClose(){this._transport.close()}async _sendRequest(t,e){let r=this._formatRequest(t),n=await this._encrypt(r),i=void 0!==(null==e?void 0:e.topic)?e.topic:this.peerId,o=JSON.stringify(n),a=void 0!==(null==e?void 0:e.forcePushNotification)?!e.forcePushNotification:!!r.method.startsWith("wc_")||!s.includes(r.method);this._transport.send(o,i,a)}async _sendResponse(t){let e=await this._encrypt(t),r=this.peerId,n=JSON.stringify(e);this._transport.send(n,r,!0)}async _sendSessionRequest(t,e,r){this._sendRequest(t,r),this._subscribeToSessionResponse(t.id,e)}_sendCallRequest(t,e){return this._sendRequest(t,e),this._eventManager.trigger({event:"call_request_sent",params:[{request:t,options:e}]}),this._subscribeToCallResponse(t.id)}_formatRequest(t){if(void 0===t.method)throw Error('JSON RPC request must have valid "method" value');let e={id:void 0===t.id?A():t.id,jsonrpc:"2.0",method:t.method,params:void 0===t.params?[]:t.params};return e}_formatResponse(t){if(void 0===t.id)throw Error('JSON RPC request must have valid "id" value');let e={id:t.id,jsonrpc:"2.0"};if(P(t)){let r=function(t){let e=t.message||"Failed or Rejected Request",r=-32e3;if(t&&!t.code)switch(e){case"Parse error":r=-32700;break;case"Invalid request":r=-32600;break;case"Method not found":r=-32601;break;case"Invalid params":r=-32602;break;case"Internal error":r=-32603;break;default:r=-32e3}let n={code:r,message:e};return t.data&&(n.data=t.data),n}(t.error),n=Object.assign(Object.assign(Object.assign({},e),t),{error:r});return n}if(O(t)){let i=Object.assign(Object.assign({},e),t);return i}throw Error(H)}_handleSessionDisconnect(t){this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),(0,i.removeLocal)(i.mobileLinkChoiceKey)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._eventManager.trigger({event:"disconnect",params:[{message:t||"Session Disconnected"}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(t,e){e&&e.approved?(this._connected?(e.chainId&&(this.chainId=e.chainId),e.accounts&&(this.accounts=e.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,e.chainId&&(this.chainId=e.chainId),e.accounts&&(this.accounts=e.accounts),e.peerId&&!this.peerId&&(this.peerId=e.peerId),e.peerMeta&&!this.peerMeta&&(this.peerMeta=e.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(t)}async _handleIncomingMessages(t){let e;let r=[this.clientId,this.handshakeTopic];if(!r.includes(t.topic))return;try{e=JSON.parse(t.payload)}catch(n){return}let i=await this._decrypt(e);i&&this._eventManager.trigger(i)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(t,e){this.on(`response:${t}`,e)}_subscribeToSessionResponse(t,e){this._subscribeToResponse(t,(t,r)=>{if(t){this._handleSessionResponse(t.message);return}O(r)?this._handleSessionResponse(e,r.result):r.error&&r.error.message?this._handleSessionResponse(r.error.message):this._handleSessionResponse(e)})}_subscribeToCallResponse(t){return new Promise((e,r)=>{this._subscribeToResponse(t,(t,n)=>{if(t){r(t);return}O(n)?e(n.result):n.error&&n.error.message?r(n.error):r(Error(H))})})}_subscribeToInternalEvents(){this.on("display_uri",()=>{this._qrcodeModal&&this._qrcodeModal.open(this.uri,()=>{this._eventManager.trigger({event:"modal_closed",params:[]})},this._qrcodeModalOptions)}),this.on("connect",()=>{this._qrcodeModal&&this._qrcodeModal.close()}),this.on("call_request_sent",(t,e)=>{let{request:r}=e.params[0];if((0,i.isMobile)()&&this._signingMethods.includes(r.method)){let n=(0,i.getLocal)(i.mobileLinkCh
19oiceKey);n&&(window.location.href=n.href)}}),this.on("wc_sessionRequest",(t,e)=>{t&&this._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:t.toString()}]}),this.handshakeId=e.id,this.peerId=e.params[0].peerId,this.peerMeta=e.params[0].peerMeta;let r=Object.assign(Object.assign({},e),{method:"session_request"});this._eventManager.trigger(r)}),this.on("wc_sessionUpdate",(t,e)=>{t&&this._handleSessionResponse(t.message),this._handleSessionResponse("Session disconnected",e.params[0])})}_initTransport(){this._transport.on("message",t=>this._handleIncomingMessages(t)),this._transport.on("open",()=>this._eventManager.trigger({event:"transport_open",params:[]})),this._transport.on("close",()=>this._eventManager.trigger({event:"transport_close",params:[]})),this._transport.on("error",()=>this._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]})),this._transport.open()}_formatUri(){let t=this.protocol,e=this.handshakeTopic,r=this.version,n=encodeURIComponent(this.bridge),i=this.key,o=`${t}:${e}@${r}?bridge=${n}&key=${i}`;return o}_parseUri(t){let e=function(t){let e=t.indexOf(":"),r=-1!==t.indexOf("?")?t.indexOf("?"):void 0,n=t.substring(0,e),i=t.substring(e+1,r),o=function(t){let e=t.split("@"),r={handshakeTopic:e[0],version:parseInt(e[1],10)};return r}(i),s=void 0!==r?t.substr(r):"",a=function(t){let e=j.parse(t),r={key:e.key||"",bridge:e.bridge||""};return r}(s),u=Object.assign(Object.assign({protocol:n},o),a);return u}(t);if(e.protocol===this.protocol){if(!e.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");let r=e.handshakeTopic;if(!e.bridge)throw Error("Invalid or missing bridge url parameter value");let n=decodeURIComponent(e.bridge);if(!e.key)throw Error("Invalid or missing key parameter value");let i=e.key;return{handshakeTopic:r,bridge:n,key:i}}throw Error("URI format is invalid")}async _generateKey(){if(this._cryptoLib){let t=await this._cryptoLib.generateKey();return t}return null}async _encrypt(t){let e=this._key;if(this._cryptoLib&&e){let r=await this._cryptoLib.encrypt(t,e);return r}return null}async _decrypt(t){let e=this._key;if(this._cryptoLib&&e){let r=await this._cryptoLib.decrypt(t,e);return r}return null}_getStorageSession(){let t=null;return this._sessionStorage&&(t=this._sessionStorage.getSession()),t}_setStorageSession(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}_removeStorageSession(){this._sessionStorage&&this._sessionStorage.removeSession()}_manageStorageSession(){this._connected?this._setStorageSession():this._removeStorageSession()}_registerPushServer(t){if(!t.url||"string"!=typeof t.url)throw Error("Invalid or missing pushServerOpts.url parameter value");if(!t.type||"string"!=typeof t.type)throw Error("Invalid or missing pushServerOpts.type parameter value");if(!t.token||"string"!=typeof t.token)throw Error("Invalid or missing pushServerOpts.token parameter value");let e={bridge:this.bridge,topic:this.clientId,type:t.type,token:t.token,peerName:"",language:t.language||""};this.on("connect",async(r,n)=>{if(r)throw r;if(t.peerMeta){let i=n.params[0].peerMeta.name;e.peerName=i}try{let o=await fetch(`${t.url}/new`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)}),s=await o.json();if(!s.success)throw Error("Failed to register in Push Server")}catch(a){throw Error("Failed to register in Push Server")}})}};let Z="AES-CBC",$="HMAC";async function J(t,e=Z){return k.getSubtleCrypto().importKey("raw",t,e===Z?{length:256,name:Z}:{hash:{name:"SHA-256"},name:$},!0,e===Z?["encrypt","decrypt"]:["sign","verify"])}async function Y(t,e,r){let n=k.getSubtleCrypto(),i=await J(e,Z),o=await n.encrypt({iv:t,name:Z},i,r);return new Uint8Array(o)}async function Q(t,e,r){let n=k.getSubtleCrypto(),i=await J(e,Z),o=await n.decrypt({iv:t,name:Z},i,r);return new Uint8Array(o)}async function X(t,e){let r=k.getSubtleCrypto(),n=await J(t,$),i=await r.sign({length:256,name:$},n,e);return new Uint8Array(i)}async function tt(t,e){let r=await X(t,e);return r}async function te(t){let e=function(t){let e=k.getBrowerCrypto();return e.getRandomValues(new Uint8Array(t))}((t||256)/8),r=p(h()(e)).buffer;return r}async function tr(t,e){let r=y(t.data),n=y(t.iv),i=y(t.hmac),o=m(i,!1),s=v(r,n),a=await tt(e,s),u=m(a,!1);return _(o)===_(u)}async function tn(t,e,r){let n=p(S(e)),i=r||await te(128),o=p(S(i)),s=m(o,!1),a=JSON.stringify(t),u=p(b(a)),c=await Y(o,n,u),l=m(c,!1),h=v(c,o),f=await tt(n,h),d=m(f,!1);return{data:l,hmac:d,iv:s}}async function ti(t,e){var r;let n;let i=p(S(e));if(!i)throw Error("Missing key: required for decryption");let o=await tr(t,i);if(!o)return null;let s=y(t.data),a=y(t.iv),u=await Q(a,i,s),c=(r=u,h()(r).toString(d));try{n=JSON.parse(c)}catch(l){return null}return n}var to=class extends G{constructor(t,e){super({cryptoLib:n,connectorOpts:t,pushServerOpts:e})}},ts=r(4337),ta=r.n(ts),tu=r(26729),tc=r.n(tu),tl=r(59536);let th=(0,i.getFromWindow)("XMLHttpRequest")||tl.XMLHttpRequest;class tf extends tc(){constructor(t){super(),this.url=t}formatError(t,e,r=-1){return{error:{message:e,code:r},id:t.id,jsonrpc:t.jsonrpc}}send(t,e){return new Promise(r=>{if("eth_subscribe"===t.method){let n=this.formatError(t,"Subscriptions are not supported by this HTTP endpoint");
19return this.emit("error",n),r(n)}let i=new th,o=!1,s=(n,s)=>{if(!o){if(i.abort(),o=!0,e)e(n,s);else{let{id:a,jsonrpc:u}=t,c=n?{id:a,jsonrpc:u,error:{message:n.message,code:n.code}}:{id:a,jsonrpc:u,result:s};this.emit("payload",c),r(c)}}};i.open("POST",this.url,!0),i.setRequestHeader("Content-Type","application/json"),i.timeout=6e4,i.onerror=s,i.ontimeout=s,i.onreadystatechange=()=>{if(4===i.readyState)try{let t=JSON.parse(i.responseText);s(t.error,t.result)}catch(e){s(e)}},i.send(JSON.stringify(t))})}}let td=r(12906),tp=r(41955),tg=r(2110),tm=r(28260),ty=r(78747),tb=r(3621),tv=r(78191);var t_=class extends td{constructor(t){if(super({pollingInterval:t.pollingInterval||8e3}),this.bridge="https://bridge.walletconnect.org",this.qrcode=!0,this.qrcodeModal=ta(),this.qrcodeModalOptions=void 0,this.rpc=null,this.infuraId="",this.http=null,this.isConnecting=!1,this.connected=!1,this.connectCallbacks=[],this.accounts=[],this.chainId=1,this.rpcUrl="",this.enable=async()=>{let t=await this.getWalletConnector();if(t)return this.start(),this.subscribeWalletConnector(),t.accounts;throw Error("Failed to connect to WalleConnect")},this.request=async t=>this.send(t),this.send=async(t,e)=>{var r;if("string"==typeof t){let n=t,i=e;return"personal_sign"===n&&(i=N(i)),this.sendAsyncPromise(n,i)}if("personal_sign"===(t=Object.assign({id:A(),jsonrpc:"2.0"},t)).method&&(t.params=N(t.params)),e){this.sendAsync(t,e);return}if("eth_signTypedData_v4"!==t.method||(null===(r=this.walletMeta)||void 0===r?void 0:r.name)!=="MetaMask")return this.sendAsyncPromise(t.method,t.params);{let{result:o}=await this.handleOtherRequests(t);return o}},this.onConnect=t=>{this.connectCallbacks.push(t)},this.triggerConnect=t=>{this.connectCallbacks&&this.connectCallbacks.length&&this.connectCallbacks.forEach(e=>e(t))},this.bridge=t.connector?t.connector.bridge:t.bridge||"https://bridge.walletconnect.org",this.qrcode=void 0===t.qrcode||!1!==t.qrcode,this.qrcodeModal=t.qrcodeModal||this.qrcodeModal,this.qrcodeModalOptions=t.qrcodeModalOptions,this.wc=t.connector||new to({bridge:this.bridge,qrcodeModal:this.qrcode?this.qrcodeModal:void 0,qrcodeModalOptions:this.qrcodeModalOptions,storageId:null==t?void 0:t.storageId,signingMethods:null==t?void 0:t.signingMethods,clientMeta:null==t?void 0:t.clientMeta}),this.rpc=t.rpc||null,!this.rpc&&(!t.infuraId||"string"!=typeof t.infuraId||!t.infuraId.trim()))throw Error("Missing one of the required parameters: rpc or infuraId");this.infuraId=t.infuraId||"",this.chainId=(null==t?void 0:t.chainId)||this.chainId,this.initialize()}get isWalletConnect(){return!0}get connector(){return this.wc}get walletMeta(){return this.wc.peerMeta}async disconnect(){this.close()}async close(){let t=await this.getWalletConnector({disableSessionCreation:!0});await t.killSession(),await this.onDisconnect()}async handleRequest(t){try{let e;let r=null,n=await this.getWalletConnector();switch(t.method){case"wc_killSession":await this.close(),r=null;break;case"eth_accounts":r=n.accounts;break;case"eth_coinbase":r=n.accounts[0];break;case"eth_chainId":case"net_version":r=n.chainId;break;case"eth_uninstallFilter":this.sendAsync(t,t=>t),r=!0;break;default:e=await this.handleOtherRequests(t)}if(e)return e;return this.formatResponse(t,r)}catch(i){throw this.emit("error",i),i}}async handleOtherRequests(t){if(!s.includes(t.method)&&t.method.startsWith("eth_"))return this.handleReadRequests(t);let e=await this.getWalletConnector(),r=await e.sendCustomRequest(t);return this.formatResponse(t,r)}async handleReadRequests(t){if(!this.http){let e=Error("HTTP Connection not available");throw this.emit("error",e),e}return this.http.send(t)}formatResponse(t,e){return{id:t.id,jsonrpc:t.jsonrpc,result:e}}getWalletConnector(t={}){let{disableSessionCreation:e=!1}=t;return new Promise((t,r)=>{let n=this.wc;this.isConnecting?this.onConnect(e=>t(e)):n.connected||e?(this.connected||(this.connected=!0,this.updateState(n.session)),t(n)):(this.isConnecting=!0,n.on("modal_closed",()=>{r(Error("User closed modal"))}),n.createSession({chainId:this.chainId}).then(()=>{n.on("connect",(e,i)=>{if(e)return this.isConnecting=!1,r(e);this.isConnecting=!1,this.connected=!0,i&&this.updateState(i.params[0]),this.emit
19("connect"),this.triggerConnect(n),t(n)})}).catch(t=>{this.isConnecting=!1,r(t)}))})}async subscribeWalletConnector(){let t=await this.getWalletConnector();t.on("disconnect",t=>{if(t){this.emit("error",t);return}this.onDisconnect()}),t.on("session_update",(t,e)=>{if(t){this.emit("error",t);return}this.updateState(e.params[0])})}async onDisconnect(){await this.stop(),this.emit("close",1e3,"Connection closed"),this.emit("disconnect",1e3,"Connection disconnected"),this.connected=!1}async updateState(t){let{accounts:e,chainId:r,networkId:n,rpcUrl:i}=t;(!this.accounts||e&&this.accounts!==e)&&(this.accounts=e,this.emit("accountsChanged",e)),(!this.chainId||r&&this.chainId!==r)&&(this.chainId=r,this.emit("chainChanged",r)),(!this.networkId||n&&this.networkId!==n)&&(this.networkId=n,this.emit("networkChanged",n)),this.updateRpcUrl(this.chainId,i||"")}updateRpcUrl(t,e=""){let r={infuraId:this.infuraId,custom:this.rpc||void 0};(e=e||function(t,e){let r;let n=function(t,e){let r;let n=a[t];return n&&(r=`https://${n}.infura.io/v3/${e}`),r}(t,e.infuraId);return e.custom&&e.custom[t]?r=e.custom[t]:n&&(r=n),r}(t,r))?(this.rpcUrl=e,this.updateHttpConnection()):this.emit("error",Error(`No RPC Url available for chainId: ${t}`))}updateHttpConnection(){this.rpcUrl&&(this.http=new tf(this.rpcUrl),this.http.on("payload",t=>this.emit("payload",t)),this.http.on("error",t=>this.emit("error",t)))}sendAsyncPromise(t,e){return new Promise((r,n)=>{this.sendAsync({id:A(),jsonrpc:"2.0",method:t,params:e||[]},(t,e)=>{if(t){n(t);return}r(e.result)})})}initialize(){this.updateRpcUrl(this.chainId),this.addProvider(new tg({eth_hashrate:"0x00",eth_mining:!1,eth_syncing:!0,net_listening:!0,web3_clientVersion:"WalletConnect/v1.x.x/javascript"})),this.addProvider(new tp),this.addProvider(new tv),this.addProvider(new tm),this.addProvider(new tb),this.addProvider(new ty(this.configWallet())),this.addProvider({handleRequest:async(t,e,r)=>{try{let{error:n,result:i}=await this.handleRequest(t);r(n,i)}catch(o){r(o)}},setEngine:t=>t})}configWallet(){return{getAccounts:async t=>{try{let e=await this.getWalletConnector(),r=e.accounts;r&&r.length?t(null,r):t(Error("Failed to get accounts"))}catch(n){t(n)}},processMessage:async(t,e)=>{try{let r=await this.getWalletConnector(),n=await r.signMessage([t.from,t.data]);e(null,n)}catch(i){e(i)}},processPersonalMessage:async(t,e)=>{try{let r=await this.getWalletConnector(),n=await r.signPersonalMessage([t.data,t.from]);e(null,n)}catch(i){e(i)}},processSignTransaction:async(t,e)=>{try{let r=await this.getWalletConnector(),n=await r.signTransaction(t);e(null,n)}catch(i){e(i)}},processTransaction:async(t,e)=>{try{let r=await this.getWalletConnector(),n=await r.sendTransaction(t);e(null,n)}catch(i){e(i)}},processTypedMessage:async(t,e)=>{try{let r=await this.getWalletConnector(),n=await r.signTypedData([t.from,t.data]);e(null,n)}catch(i){e(i)}}}}}},65755:function(t,e,r){"use strict";e.D=void 0;let n=r(62873);e.D=function(){let t,e,r;try{t=n.getDocumentOrThrow(),e=n.getLocationOrThrow()}catch(i){return null}function o(...e){let r=t.getElementsByTagName("meta");for(let n=0;n<r.length;n++){let i=r[n],o=["itemprop","property","name"].map(t=>i.getAttribute(t)).filter(t=>!!t&&e.includes(t));if(o.length&&o){let s=i.getAttribute("content");if(s)return s}}return""}let s=((r=o("name","og:site_name","og:title","twitter:title"))||(r=t.title),r),a=function(){let t=o("description","og:description","twitter:description","keywords");return t}(),u=e.origin,c=function(){let r=t.getElementsByTagName("link"),n=[];for(let i=0;i<r.length;i++){let o=r[i],s=o.getAttribute("rel");if(s&&s.toLowerCase().indexOf("icon")>-1){let a=o.getAttribute("href");if(a){if(-1===a.toLowerCase().indexOf("https:")&&-1===a.toLowerCase().indexOf("http:")&&0!==a.indexOf("//")){let u=e.protocol+"//"+e.host;if(0===a.indexOf("/"))u+=a;else{let c=e.pathname.split("/");c.pop();let l=c.join("/");u+=l+"/"+a}n.push(u)}else if(0===a.indexOf("//")){let h=e.protocol+a;n.push(h)}else n.push(a)}}}return n}();return{description:a,url:u,icons:c,name:s}}},78826:function(t){"use strict";!function(e){function r(t){return parseInt(t)===t}function n(t){if(!r(t.length))return!1;for(var e=0;e<t.length;e++)if(!r(t[e])||t[e]<0||t[e]>255)return!1;return!0}function i(t,e){if(t.buffer&&ArrayBuffer.isView(t)&&"Uint8Array"===t.name)return e&&(t=t.slice?t.slice():Array.prototype.slice.call(t)),t;if(Array.isArray(t)){if(!n(t))throw Error("Array contains invali
19d value: "+t);return new Uint8Array(t)}if(r(t.length)&&n(t))return new Uint8Array(t);throw Error("unsupported array-like object")}function o(t){return new Uint8Array(t)}function s(t,e,r,n,i){(null!=n||null!=i)&&(t=t.slice?t.slice(n,i):Array.prototype.slice.call(t,n,i)),e.set(t,r)}var a,u=(a="0123456789abcdef",{toBytes:function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(parseInt(t.substr(r,2),16));return e},fromBytes:function(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];e.push(a[(240&n)>>4]+a[15&n])}return e.join("")}}),c={16:10,24:12,32:14},l=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],h=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],f=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],d=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,16733
1913503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],p=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],g=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389
19623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],m=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],y=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,
19632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],b=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],v=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,12974
1903050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],_=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,60
197398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],w=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],M=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,12
1901765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],S=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],E=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861
19748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function x(t){for(var e=[],r=0;r<t.length;r+=4)e.push(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]);return e}var k=function(t){if(!(this instanceof k))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:i(t,!0)}),this._prepare()};k.prototype._prepare=function(){var t=c[this.key.length];if(null==t)throw Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var e=0;e<=t;e++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var r=(t+1)*4,n=this.key.length/4,i=x(this.key),e=0;e<n;e++)o=e>>2,this._Ke[o][e%4]=i[e],this._Kd[t-o][e%4]=i[e];for(var o,s,a=0,u=n;u<r;){if(s=i[n-1],i[0]^=h[s>>16&255]<<24^h[s>>8&255]<<16^h[255&s]<<8^h[s>>24&255]^l[a]<<24,a+=1,8!=n)for(var e=1;e<n;e++)i[e]^=i[e-1];else{for(var e=1;e<n/2;e++)i[e]^=i[e-1];s=i[n/2-1],i[n/2]^=h[255&s]^h[s>>8&255]<<8^h[s>>16&255]<<16^h[s>>24&255]<<24;for(var e=n/2+1;e<n;e++)i[e]^=i[e-1]}for(var f,d,e=0;e<n&&u<r;)f=u>>2,d=u%4,this._Ke[f][d]=i[e],this._Kd[t-f][d]=i[e++],u++}for(var f=1;f<t;f++)for(var d=0;d<4;d++)s=this._Kd[f][d],this._Kd[f][d]=w[s>>24&255]^M[s>>16&255]^S[s>>8&255]^E[255&s]},k.prototype.encrypt=function(t){if(16!=t.length)throw Error("invalid plaintext size (must be 16 bytes)");for(var e=this._Ke.length-1,r=[0,0,0,0],n=x(t),i=0;i<4;i++)n[i]^=this._Ke[0][i];for(var s=1;s<e;s++){for(var i=0;i<4;i++)r[i]=d[n[i]>>24&255]^p[n[(i+1)%4]>>16&255]^g[n[(i+2)%4]>>8&255]^m[255&n[(i+3)%4]]^this._Ke[s][i];n=r.slice()}for(var a,u=o(16),i=0;i<4;i++)a=this._Ke[e][i],u[4*i]=(h[n[i]>>24&255]^a>>24)&255,u[4*i+1]=(h[n[(i+1)%4]>>16&255]^a>>16)&255,u[4*i+2]=(h[n[(i+2)%4]>>8&255]^a>>8)&255,u[4*i+3]=(h[255&n[(i+3)%4]]^a)&255;return u},k.prototype.decrypt=function(t){if(16!=t.length)throw Error("invalid ciphertext size (must be 16 bytes)");
19for(var e=this._Kd.length-1,r=[0,0,0,0],n=x(t),i=0;i<4;i++)n[i]^=this._Kd[0][i];for(var s=1;s<e;s++){for(var i=0;i<4;i++)r[i]=y[n[i]>>24&255]^b[n[(i+3)%4]>>16&255]^v[n[(i+2)%4]>>8&255]^_[255&n[(i+1)%4]]^this._Kd[s][i];n=r.slice()}for(var a,u=o(16),i=0;i<4;i++)a=this._Kd[e][i],u[4*i]=(f[n[i]>>24&255]^a>>24)&255,u[4*i+1]=(f[n[(i+3)%4]>>16&255]^a>>16)&255,u[4*i+2]=(f[n[(i+2)%4]>>8&255]^a>>8)&255,u[4*i+3]=(f[255&n[(i+1)%4]]^a)&255;return u};var A=function(t){if(!(this instanceof A))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new k(t)};A.prototype.encrypt=function(t){if((t=i(t)).length%16!=0)throw Error("invalid plaintext size (must be multiple of 16 bytes)");for(var e=o(t.length),r=o(16),n=0;n<t.length;n+=16)s(t,r,0,n,n+16),s(r=this._aes.encrypt(r),e,n);return e},A.prototype.decrypt=function(t){if((t=i(t)).length%16!=0)throw Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var e=o(t.length),r=o(16),n=0;n<t.length;n+=16)s(t,r,0,n,n+16),s(r=this._aes.decrypt(r),e,n);return e};var C=function(t,e){if(!(this instanceof C))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",e){if(16!=e.length)throw Error("invalid initialation vector size (must be 16 bytes)")}else e=o(16);this._lastCipherblock=i(e,!0),this._aes=new k(t)};C.prototype.encrypt=function(t){if((t=i(t)).length%16!=0)throw Error("invalid plaintext size (must be multiple of 16 bytes)");for(var e=o(t.length),r=o(16),n=0;n<t.length;n+=16){s(t,r,0,n,n+16);for(var a=0;a<16;a++)r[a]^=this._lastCipherblock[a];this._lastCipherblock=this._aes.encrypt(r),s(this._lastCipherblock,e,n)}return e},C.prototype.decrypt=function(t){if((t=i(t)).length%16!=0)throw Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var e=o(t.length),r=o(16),n=0;n<t.length;n+=16){s(t,r,0,n,n+16),r=this._aes.decrypt(r);for(var a=0;a<16;a++)e[n+a]=r[a]^this._lastCipherblock[a];s(t,this._lastCipherblock,0,n,n+16)}return e};var R=function(t,e,r){if(!(this instanceof R))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",e){if(16!=e.length)throw Error("invalid initialation vector size (must be 16 size)")}else e=o(16);r||(r=1),this.segmentSize=r,this._shiftRegister=i(e,!0),this._aes=new k(t)};R.prototype.encrypt=function(t){if(t.length%this.segmentSize!=0)throw Error("invalid plaintext size (must be segmentSize bytes)");for(var e,r=i(t,!0),n=0;n<r.length;n+=this.segmentSize){e=this._aes.encrypt(this._shiftRegister);for(var o=0;o<this.segmentSize;o++)r[n+o]^=e[o];s(this._shiftRegister,this._shiftRegister,0,this.segmentSize),s(r,this._shiftRegister,16-this.segmentSize,n,n+this.segmentSize)}return r},R.prototype.decrypt=function(t){if(t.length%this.segmentSize!=0)throw Error("invalid ciphertext size (must be segmentSize bytes)");for(var e,r=i(t,!0),n=0;n<r.length;n+=this.segmentSize){e=this._aes.encrypt(this._shiftRegister);for(var o=0;o<this.segmentSize;o++)r[n+o]^=e[o];s(this._shiftRegister,this._shiftRegister,0,this.segmentSize),s(t,this._shiftRegister,16-this.segmentSize,n,n+this.segmentSize)}return r};var O=function(t,e){if(!(this instanceof O))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",e){if(16!=e.length)throw Error("invalid initialation vector size (must be 16 bytes)")}else e=o(16);this._lastPrecipher=i(e,!0),this._lastPrecipherIndex=16,this._aes=new k(t)};O.prototype.encrypt=function(t){for(var e=i(t,!0),r=0;r<e.length;r++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),e[r]^=this._lastPrecipher[this._lastPrecipherIndex++];return e},O.prototype.decrypt=O.prototype.encrypt;var P=function(t){if(!(this instanceof P))throw Error("Counter must be instanitated with `new`");0===t||t||(t=1),"number"==typeof t?(this._counter=o(16),this.setValue(t)):this.setBytes(t)};P.prototype.setValue=function(t){if("number"!=typeof t||parseInt(t)!=t)throw Error("invalid counter value (must be an integer)");for(var e=15;e>=0;--e)this._counter[e]=t%256,t>>=8},P.prototype.setBytes=function(t){if(16!=(t=i(t,!0)).length)throw Error("invalid counter bytes size (must be 16 bytes)");this._counter=t},P.prototype.increment=function(){for(var t=15;t>=0;t--)if(255===this._counter[t])this._counter[t]=0;else{this._counter[t]++;break}};var I=function(t,e){if(!(this instanceof I))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",e instanceof P||(e=new P(e)),this._counter=e,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new k(t)};I.prototype.encrypt=function(t){for(var e=i(t,!0),r=0;r<e.length;r++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt
19(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),e[r]^=this._remainingCounter[this._remainingCounterIndex++];return e},I.prototype.decrypt=I.prototype.encrypt,t.exports={AES:k,Counter:P,ModeOfOperation:{ecb:A,cbc:C,cfb:R,ofb:O,ctr:I},utils:{hex:u,utf8:{toBytes:function(t){var e=[],r=0;for(t=encodeURI(t);r<t.length;){var n=t.charCodeAt(r++);37===n?(e.push(parseInt(t.substr(r,2),16)),r+=2):e.push(n)}return i(e)},fromBytes:function(t){for(var e=[],r=0;r<t.length;){var n=t[r];n<128?(e.push(String.fromCharCode(n)),r++):n>191&&n<224?(e.push(String.fromCharCode((31&n)<<6|63&t[r+1])),r+=2):(e.push(String.fromCharCode((15&n)<<12|(63&t[r+1])<<6|63&t[r+2])),r+=3)}return e.join("")}}},padding:{pkcs7:{pad:function(t){var e=16-(t=i(t,!0)).length%16,r=o(t.length+e);s(t,r);for(var n=t.length;n<r.length;n++)r[n]=e;return r},strip:function(t){if((t=i(t,!0)).length<16)throw Error("PKCS#7 invalid length");var e=t[t.length-1];if(e>16)throw Error("PKCS#7 padding byte out of range");for(var r=t.length-e,n=0;n<e;n++)if(t[r+n]!==e)throw Error("PKCS#7 invalid padding byte");var a=o(r);return s(t,a,0,0,r),a}}},_arrayTest:{coerceArray:i,createArray:o,copyArray:s}}}(0)},44409:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,i.default)(function(e,r){var i;try{i=t.apply(this,e)}catch(o){return r(o)}(0,n.default)(i)&&"function"==typeof i.then?i.then(function(t){a(r,null,t)},function(t){a(r,t.message?t:Error(t))}):r(null,i)})};var n=s(r(13218)),i=s(r(43519)),o=s(r(3111));function s(t){return t&&t.__esModule?t:{default:t}}function a(t,e,r){try{t(e,r)}catch(n){(0,o.default)(u,n)}}function u(t){throw t}t.exports=e.default},14338:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r,s){(0,n.default)(e)(t,(0,i.default)((0,o.default)(r)),s)};var n=s(r(56954)),i=s(r(36529)),o=s(r(28993));function s(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default},71846:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r){((0,n.default)(t)?f:d)(t,(0,l.default)(e),r)};var n=h(r(98612)),i=h(r(1605)),o=h(r(97388)),s=h(r(53875)),a=h(r(50308)),u=h(r(46979)),c=h(r(13362)),l=h(r(28993));function h(t){return t&&t.__esModule?t:{default:t}}function f(t,e,r){r=(0,u.default)(r||a.default);var n=0,o=0,s=t.length;function l(t,e){t?r(t):(++o===s||e===i.default)&&r(null)}for(0===s&&r(null);n<s;n++)e(t[n],n,(0,c.default)(l))}var d=(0,s.default)(o.default,1/0);t.exports=e.default},97388:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r,o){(0,n.default)(e)(t,(0,i.default)(r),o)};var n=o(r(56954)),i=o(r(28993));function o(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default},94282:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(r(14338)),i=o(r(53875));function o(t){return t&&t.__esModule?t:{default:t}}e.default=(0,i.default)(n.default,1),t.exports=e.default},1605:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={},t.exports=e.default},53875:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return function(r,n,i){return t(r,e,n,i)}},t.exports=e.default},68468:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(e,r,o){return t(n.default,e,(0,i.default)(r),o)}};var n=o(r(71846)),i=o(r(28993));function o(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default},56954:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(e,r,u){if(u=(0,i.default)(u||n.default),t<=0||!e)return u(null);var c=(0,o.default)(e),l=!1,h=0,f=!1;function d(t,e){if(h-=1,t)l=!0,u(t);else{if(e===a.default||l&&h<=0)return l=!0,u(null);f||p()}}function p(){for(f=!0;h<t&&!l;){var e=c();if(null===e){l=!0,h<=0&&u(null);return}h+=1,r(e.value,e.key,(0,s.default)(d))}f=!1}p()}};var n=u(r(50308)),i=u(r(46979)),o=u(r(9733)),s=u(r(13362)),a=u(r(1605));function u(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default},37818:function(t,e){"use strict";
19Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return r&&t[r]&&t[r]()};var r="function"==typeof Symbol&&Symbol.iterator;t.exports=e.default},43519:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(){var e=(0,i.default)(arguments),r=e.pop();t.call(this,e,r)}};var n,i=(n=r(63033))&&n.__esModule?n:{default:n};t.exports=e.default},9733:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if((0,n.default)(t))return e=-1,r=t.length,function(){return++e<r?{value:t[e],key:e}:null};var e,r,s,a,u,c,l=(0,i.default)(t);return l?(s=-1,function(){var t=l.next();return t.done?null:(s++,{value:t.value,key:s})}):(a=(0,o.default)(t),u=-1,c=a.length,function e(){var r=a[++u];return"__proto__"===r?e():u<c?{value:t[r],key:r}:null})};var n=s(r(98612)),i=s(r(37818)),o=s(r(3674));function s(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default},47662:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r,o){o=o||n.default,e=e||[];var s=[],a=0,u=(0,i.default)(r);t(e,function(t,e,r){var n=a++;u(t,function(t,e){s[n]=e,r(t)})},function(t){o(t,s)})};var n=o(r(50308)),i=o(r(28993));function o(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default},46979:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(){if(null!==t){var e=t;t=null,e.apply(this,arguments)}}},t.exports=e.default},13362:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(){if(null===t)throw Error("Callback was already called.");var e=t;t=null,e.apply(this,arguments)}},t.exports=e.default},73409:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r){r=r||n.default;var a=(0,i.default)(e)?[]:{};t(e,function(t,e,r){(0,s.default)(t)(function(t,n){arguments.length>2&&(n=(0,o.default)(arguments,1)),a[e]=n,r(t)})},function(t){r(t,a)})};var n=a(r(50308)),i=a(r(98612)),o=a(r(63033)),s=a(r(28993));function a(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default},3111:function(t,e,r){"use strict";var n,i,o=r(34155);Object.defineProperty(e,"__esModule",{value:!0}),e.hasNextTick=e.hasSetImmediate=void 0,e.fallback=c,e.wrap=l;var s=(n=r(63033))&&n.__esModule?n:{default:n},a=e.hasSetImmediate="function"==typeof setImmediate&&setImmediate,u=e.hasNextTick="object"==typeof o&&"function"==typeof o.nextTick;function c(t){setTimeout(t,0)}function l(t){return function(e){var r=(0,s.default)(arguments,1);t(function(){e.apply(null,r)})}}i=a?setImmediate:u?o.nextTick:c,e.default=l(i)},63033:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){e|=0;for(var r=Math.max(t.length-e,0),n=Array(r),i=0;i<r;i++)n[i]=t[e+i];return n},t.exports=e.default},36529:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(e,r,n){return t(e,n)}},t.exports=e.default},28993:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAsync=void 0;var n,i=(n=r(44409))&&n.__esModule?n:{default:n},o="function"==typeof Symbol;function s(t){return o&&"AsyncFunction"===t[Symbol.toStringTag]}e.default=function(t){return s(t)?(0,i.default)(t):t},e.isAsync=s},94005:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=o(r(68468)),i=o(r(47662));function o(t){return t&&t.__esModule?t:{default:t}}e.default=(0,n.default)(i.default),t.exports=e.default},80047:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(0,i.default)(n.default,t,e)};var n=o(r(71846)),i=o(r(73409));function o(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default},7879:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(e=(0,o.default)(e||i.default),!(0,n.default)(t))return e(Error("First argument to waterfall must be an array of functions"));if(!t.length)return e();var r=0;function c(e){var n=(0,u.default)(t[r++]);e.push((0,a.default)(l)),n.apply(null,e)}function l(n){if(n||r===t.length)return e.apply(null,arguments);
19c((0,s.default)(arguments,1))}c([])};var n=c(r(1469)),i=c(r(50308)),o=c(r(46979)),s=c(r(63033)),a=c(r(13362)),u=c(r(28993));function c(t){return t&&t.__esModule?t:{default:t}}t.exports=e.default},47056:function(t,e){"use strict";var r,n;function i(t,e,n){if(!n||typeof n.value!==r.typeOfFunction)throw TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:r.boolTrue,get:function(){var t=n.value.bind(this);return Object.defineProperty(this,e,{value:t,configurable:r.boolTrue,writable:r.boolTrue}),t}}}Object.defineProperty(e,"__esModule",{value:!0}),(n=r||(r={})).typeOfFunction="function",n.boolTrue=!0,e.bind=i,e.default=i},29931:function(t,e,r){var n;function i(t){this.rand=t}if(t.exports=function(t){return n||(n=new i(null)),n.generate(t)},t.exports.Rand=i,i.prototype.generate=function(t){return this._rand(t)},i.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),r=0;r<e.length;r++)e[r]=this.rand.getByte();return e},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"==typeof window&&(i.prototype._rand=function(){throw Error("Not implemented yet")});else try{var o=r(89214);if("function"!=typeof o.randomBytes)throw Error("Not supported");i.prototype._rand=function(t){return o.randomBytes(t)}}catch(s){}},56351:function(t,e,r){var n=r(48764).Buffer;t.exports=function(t){for(var e=new n(t.length),r=0,i=t.length-1;r<=i;++r,--i)e[r]=t[i],e[i]=t[r];return e}},71027:function(t,e,r){var n=r(89509).Buffer,i=r(79681).Transform,o=r(6941).StringDecoder;function s(t){i.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(35717)(s,i),s.prototype.update=function(t,e,r){"string"==typeof t&&(t=n.from(t,e));var i=this._update(t);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw Error("trying to set aad in unsupported state")},s.prototype._transform=function(t,e,r){var n;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(i){n=i}finally{r(n)}},s.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(r){e=r}t(e)},s.prototype._finalOrDigest=function(t){var e=this.__final()||n.alloc(0);return t&&(e=this._toString(e,t,!0)),e},s.prototype._toString=function(t,e,r){if(this._decoder||(this._decoder=new o(e),this._encoding=e),this._encoding!==e)throw Error("can't switch encodings");var n=this._decoder.write(t);return r&&(n+=this._decoder.end()),n},t.exports=s},37866:function(t,e){!function(){"use strict";function t(e,r,n,i){return this instanceof t?(this.domain=e||void 0,this.path=r||"/",this.secure=!!n,this.script=!!i,this):new t(e,r,n,i)}function r(t,e,n){return t instanceof r?t:this instanceof r?(this.name=null,this.value=null,this.expiration_date=1/0,this.path=String(n||"/"),this.explicit_path=!1,this.domain=e||null,this.explicit_domain=!1,this.secure=!1,this.noscript=!1,t&&this.parse(t,e,n),this):new r(t,e,n)}t.All=Object.freeze(Object.create(null)),e.CookieAccessInfo=t,e.Cookie=r,r.prototype.toString=function(){var t=[this.name+"="+this.value];return this.expiration_date!==1/0&&t.push("expires="+new Date(this.expiration_date).toGMTString()),this.domain&&t.push("domain="+this.domain),this.path&&t.push("path="+this.path),this.secure&&t.push("secure"),this.noscript&&t.push("httponly"),t.join("; ")},r.prototype.toValueString=function(){return this.name+"="+this.value};var n=/[:](?=\s*[a-zA-Z0-9_\-]+\s*[=])/g;function i(){var t,e;return this instanceof i?(t=Object.create(null),this.setCookie=function(n,i,o){var s,a;if(s=(n=new r(n,i,o)).expiration_date<=Date.now(),void 0!==t[n.name]){for(a=0,e=t[n.name];a<e.length;a+=1)if(e[a].collidesWith(n)){if(s)return e.splice(a,1),0===e.length&&delete t[n.name],!1;return e[a]=n,n}return!s&&(e.push(n),n)}return!s&&(t[n.name]=[n],t[n.name])},this.getCookie=function(r,n){var i,o;if(e=t[r])for(o=0;o<e.length;o+=1){if((i=e[o]).expiration_date<=Date.now()){0===e.length&&delete t[i.name];continue}if(i.matches(n))return i}},this.getCookies=function(e){var r,n,i=[];for(r in t)(n=this.getCookie(r,e))&&i.push(n);return i.toString=function(){return i.join(":")},i.toValueString=function(){return i.map(function(t){return t.toValueString()}).join("; ")},i},this):new i}r.prototype.parse=function(t,e,n){if(this instanceof r){var i,o=t.split(";").filter(function(t){return!!t}),s=o[0].match(/([^=]+)=([\s\S]*)/);if(!s){console.warn("Invalid cookie header encountered. Header: '"+t+"'");return}var a=s[1],u=s[2];if("string"!=typeof a||0===a.length||"string"!=typeof u){console.warn("Unable to extract values from cookie header. Cookie: '"+t+"'");return}for(i=1,this.name=a,this.value=u;i<o.length;i+=1)switch(a=(s=o[i].match(/([^=]+)(?:=([\s\S]*))?/))[1].trim().toLowerCase(),u=s[2],a){case"httponly":this.noscript=!0;break;case"expires":this.expiration_date=u?Number(Date.parse(u)):1/0;break;case"path":this.path=u?u.trim():"",this.explicit_path=!0;break;case"domain":this.domain=u?u.trim():"",this.explicit_domain=!!this.domain;break;case"secure":this.secure=!0}return this.explicit_path||(this.path=n||"/"),this.explicit_domain||(this.domain=e),this}return new r().parse(t,e,n)},r.prototype.matches=function(e){return e===t.All||(!this.noscript||!e.script)&&(!this.secure||!!e.secure)&&!!this.collidesWith(e)},r.prototype.collidesWith=function(t){if(this.path&&!t.path||this.domain&&!t.domain||this.path&&0!==t.path.indexOf(this.path)||this.explicit_path&&0!==t.path.indexOf(this.path))return!1;var e=t.domain&&t.domain.replace(/^[\.]/,""),r=this.domain&&this.domain.replace(/^[\.]/,"");if(r===e)return!0;
19if(r){if(!this.explicit_domain)return!1;var n=e.indexOf(r);if(-1===n||n!==e.length-r.length)return!1}return!0},e.CookieJar=i,i.prototype.setCookies=function(t,e,i){t=Array.isArray(t)?t:t.split(n);var o,s,a=[];for(o=0,t=t.map(function(t){return new r(t,e,i)});o<t.length;o+=1)s=t[o],this.setCookie(s,e,i)&&a.push(s);return a}}()},20640:function(t,e,r){"use strict";var n=r(11742),i={"text/plain":"Text","text/html":"Url",default:"Text"};t.exports=function(t,e){var r,o,s,a,u,c,l,h,f=!1;e||(e={}),s=e.debug||!1;try{if(u=n(),c=document.createRange(),l=document.getSelection(),(h=document.createElement("span")).textContent=t,h.ariaHidden="true",h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(r){if(r.stopPropagation(),e.format){if(r.preventDefault(),void 0===r.clipboardData){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var n=i[e.format]||i.default;window.clipboardData.setData(n,t)}else r.clipboardData.clearData(),r.clipboardData.setData(e.format,t)}e.onCopy&&(r.preventDefault(),e.onCopy(r.clipboardData))}),document.body.appendChild(h),c.selectNodeContents(h),l.addRange(c),!document.execCommand("copy"))throw Error("copy command was unsuccessful");f=!0}catch(p){s&&console.error("unable to copy using execCommand: ",p),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),f=!0}catch(d){s&&console.error("unable to copy using clipboardData: ",d),s&&console.error("falling back to prompt"),r="message"in e?e.message:"Copy to clipboard: #{key}, Enter",o=(/mac os x/i.test(navigator.userAgent)?"â":"Ctrl")+"+C",a=r.replace(/#{\s*key\s*}/g,o),window.prompt(a,t)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(c):l.removeAllRanges()),h&&document.body.removeChild(h),u()}return f}},23482:function(t,e,r){"use strict";var n=r(35717),i=r(62318),o=r(79785),s=r(89072),a=r(71027);function u(t){a.call(this,"digest"),this._hash=t}n(u,a),u.prototype._update=function(t){this._hash.update(t)},u.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new i:"rmd160"===t||"ripemd160"===t?new o:new u(s(t))}},40452:function(t,e,r){var n;n=function(t){var e,r,n,i,o,s,a,u,c,l,h,f,d,p,g;return r=(e=t).lib.BlockCipher,n=e.algo,i=[],o=[],s=[],a=[],u=[],c=[],l=[],h=[],f=[],d=[],function(){for(var t=[],e=0;e<256;e++)e<128?t[e]=e<<1:t[e]=e<<1^283;for(var r=0,n=0,e=0;e<256;e++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var g=t[r],m=t[g],y=t[m],b=257*t[p]^16843008*p;s[r]=b<<24|b>>>8,a[r]=b<<16|b>>>16,u[r]=b<<8|b>>>24,c[r]=b;var b=16843009*y^65537*m^257*g^16843008*r;l[p]=b<<24|b>>>8,h[p]=b<<16|b>>>16,f[p]=b<<8|b>>>24,d[p]=b,r?(r=g^t[t[t[y^g]]],n^=t[t[n]]):r=n=1}}(),p=[0,1,2,4,8,16,32,64,128,27,54],g=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4,n=((this._nRounds=r+6)+1)*4,o=this._keySchedule=[],s=0;s<n;s++)if(s<r)o[s]=e[s];else{var a=o[s-1];s%r?r>6&&s%r==4&&(a=i[a>>>24]<<24|i[a>>>16&255]<<16|i[a>>>8&255]<<8|i[255&a]):(a=i[(a=a<<8|a>>>24)>>>24]<<24|i[a>>>16&255]<<16|i[a>>>8&255]<<8|i[255&a],a^=p[s/r|0]<<24),o[s]=o[s-r]^a}for(var u=this._invKeySchedule=[],c=0;c<n;c++){var s=n-c;if(c%4)var a=o[s];else var a=o[s-4];c<4||s<=4?u[c]=a:u[c]=l[i[a>>>24]]^h[i[a>>>16&255]]^f[i[a>>>8&255]]^d[i[255&a]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,a,u,c,i)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,l,h,f,d,o);var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,n,i,o,s,a){for(var u=this._nRounds,c=t[e]^r[0],l=t[e+1]^r[1],h=t[e+2]^r[2],f=t[e+3]^r[3],d=4,p=1;p<u;p++){var g=n[c>>>24]^i[l>>>16&255]^o[h>>>8&255]^s[255&f]^r[d++],m=n[l>>>24]^i[h>>>16&255]^o[f>>>8&255]^s[255&c]^r[d++],y=n[h>>>24]^i[f>>>16&255]^o[c>>>8&255]^s[255&l]^r[d++],b=n[f>>>24]^i[c>>>16&255]^o[l>>>8&255]^s[255&h]^r[d++];c=g,l=m,h=y,f=b}var g=(a[c>>>24]<<24|a[l>>>16&255]<<16|a[h>>>8&255]<<8|a[255&f])^r[d++],m=(a[l>>>24]<<24|a[h>>>16&255]<<16|a[f>>>8&255]<<8|a[255&c])^r[d++],y=(a[h>>>24]<<24|a[f>>>16&255]<<16|a[c>>>8&255]<<8|a[255&l])^r[d++],b=(a[f>>>24]<<24|a[c>>>16&255]<<16|a[l>>>8&255]<<8|a[255&h])^r[d++];t[e]=g,t[e+1]=m,t[e+2]=y,t[e+3]=b},keySize:8}),e.AES=r._createHelper(g),t.AES},t.exports=n(r(78249),r(98269),r(68214),r(90888),r(75109))},75109:function(t,e,r){var n;n=function(t){var e,r,n,i,o,s,a,u,c,l,h,f,d,p,g,m,y,b;t.lib.Cipher||(n=(r=(e=t).lib).Base,i=r.WordArray,o=r.BufferedBlockAlgorithm,(s=e.enc).Utf8,a=s.Base64,u=e.algo.EvpKDF,c=r.Cipher=o.extend({cfg:n.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,r){this.cfg=this.cfg.extend(r),this._xformMode=t,this._key=e,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?b:m}return function(e){return{encrypt:function(r,n,i){return t(n).encrypt
19(e,r,n,i)},decrypt:function(r,n,i){return t(n).decrypt(e,r,n,i)}}}}()}),r.StreamCipher=c.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),l=e.mode={},h=r.BlockCipherMode=n.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),f=l.CBC=function(){var t=h.extend();function e(t,e,r){var n=this._iv;if(n){var i=n;this._iv=void 0}else var i=this._prevBlock;for(var o=0;o<r;o++)t[e+o]^=i[o]}return t.Encryptor=t.extend({processBlock:function(t,r){var n=this._cipher,i=n.blockSize;e.call(this,t,r,i),n.encryptBlock(t,r),this._prevBlock=t.slice(r,r+i)}}),t.Decryptor=t.extend({processBlock:function(t,r){var n=this._cipher,i=n.blockSize,o=t.slice(r,r+i);n.decryptBlock(t,r),e.call(this,t,r,i),this._prevBlock=o}}),t}(),d=(e.pad={}).Pkcs7={pad:function(t,e){for(var r=4*e,n=r-t.sigBytes%r,o=n<<24|n<<16|n<<8|n,s=[],a=0;a<n;a+=4)s.push(o);var u=i.create(s,n);t.concat(u)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},r.BlockCipher=c.extend({cfg:c.cfg.extend({mode:f,padding:d}),reset:function(){c.reset.call(this);var t=this.cfg,e=t.iv,r=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=r.createEncryptor;else{var n=r.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==n?this._mode.init(this,e&&e.words):(this._mode=n.call(r,this,e&&e.words),this._mode.__creator=n)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var e=this._process(!0)}else{var e=this._process(!0);t.unpad(e)}return e},blockSize:4}),p=r.CipherParams=n.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),g=(e.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,r=t.salt;if(r)var n=i.create([1398893684,1701076831]).concat(r).concat(e);else var n=e;return n.toString(a)},parse:function(t){var e=a.parse(t),r=e.words;if(1398893684==r[0]&&1701076831==r[1]){var n=i.create(r.slice(2,4));r.splice(0,4),e.sigBytes-=16}return p.create({ciphertext:e,salt:n})}},m=r.SerializableCipher=n.extend({cfg:n.extend({format:g}),encrypt:function(t,e,r,n){n=this.cfg.extend(n);var i=t.createEncryptor(r,n),o=i.finalize(e),s=i.cfg;return p.create({ciphertext:o,key:r,iv:s.iv,algorithm:t,mode:s.mode,padding:s.padding,blockSize:t.blockSize,formatter:n.format})},decrypt:function(t,e,r,n){return n=this.cfg.extend(n),e=this._parse(e,n.format),t.createDecryptor(r,n).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),y=(e.kdf={}).OpenSSL={execute:function(t,e,r,n){n||(n=i.random(8));var o=u.create({keySize:e+r}).compute(t,n),s=i.create(o.words.slice(e),4*r);return o.sigBytes=4*e,p.create({key:o,iv:s,salt:n})}},b=r.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:y}),encrypt:function(t,e,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,t.keySize,t.ivSize);n.iv=i.iv;var o=m.encrypt.call(this,t,e,i.key,n);return o.mixIn(i),o},decrypt:function(t,e,r,n){n=this.cfg.extend(n),e=this._parse(e,n.format);var i=n.kdf.execute(r,t.keySize,t.ivSize,e.salt);return n.iv=i.iv,m.decrypt.call(this,t,e,i.key,n)}}))},t.exports=n(r(78249),r(90888))},78249:function(t,e){var r;r=function(){var t,e,r,n,i,o,s,a,u,c,l,h,f=f||(t=Math,e=Object.create||function(){function t(){}return function(e){var r;return t.prototype=e,r=new t,t.prototype=null,r}}(),i=(n=(r={}).lib={}).Base={extend:function(t){var r=e(this);return t&&r.mixIn(t),r.hasOwnProperty("init")&&this.init!==r.init||(r.init=function(){r.$super.init.apply(this,arguments)}),r.init.prototype=r,r.$super=this,r},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},o=n.WordArray=i.extend({init:function(t,e){t=this.words=t||[],void 0!=e?this.sigBytes=e:this.sigBytes=4*t.length},toString:function(t){return(t||a).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,i=t.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var s=r[o>>>2]>>>24-o%4*8&255;e[n+o>>>2]|=s<<24-(n+o)%4*8}else for(var o=0;o<i;o+=4)e[n+o>>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=i.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var r,n=[],i=function(e){var e=e,r=987654321;return function(){var n=((r=36969*(65535&r)+(r>>16)&4294967295)<<16)+(e=18e3*(65535&e)+(e>>16)&4294967295)&4294967295;return n/=4294967296,(n+=.5)*(t.random()>.5?1:-1)}},s=0;s<e;s+=4){var a=i(4294967296*(r||t.random()));r=987654071*a(),n.push(4294967296*a()|0)}return new o.init(n,e)}}),a=(s=r.enc={}).Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new o.init(r,e/2)}},u=s.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new o.init(r,e)}},c=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(u.stringify(t)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(t){return u.parse(unescape(encodeURIComponent(t)))}},l=n.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=c.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r=this._data,n=r.words,i=r.sigBytes,s=this.blockSize,a=i/(4*s),u=(a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*s,c=t.min(4*u,i);if(u){for(var l=0;l<u;l+=s)this._doProcessBlock(n,l);var h=n.splice(0,u);r.sigBytes-=c}
19return new o.init(h,c)},clone:function(){var t=i.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),n.Hasher=l.extend({cfg:i.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){l.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new h.HMAC.init(t,r).finalize(e)}}}),h=r.algo={},r);return f},t.exports=r()},98269:function(t,e,r){var n;n=function(t){var e;return e=t.lib.WordArray,t.enc.Base64={stringify:function(t){var e=t.words,r=t.sigBytes,n=this._map;t.clamp();for(var i=[],o=0;o<r;o+=3)for(var s=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<r;a++)i.push(n.charAt(s>>>6*(3-a)&63));var u=n.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(t){var r=t.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<n.length;o++)i[n.charCodeAt(o)]=o}var s=n.charAt(64);if(s){var a=t.indexOf(s);-1!==a&&(r=a)}return function(t,r,n){for(var i=[],o=0,s=0;s<r;s++)if(s%4){var a=n[t.charCodeAt(s-1)]<<s%4*2,u=n[t.charCodeAt(s)]>>>6-s%4*2;i[o>>>2]|=(a|u)<<24-o%4*8,o++}return e.create(i,o)}(t,r,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},t.enc.Base64},t.exports=n(r(78249))},50298:function(t,e,r){var n;n=function(t){return function(){var e=t.lib.WordArray,r=t.enc;function n(t){return t<<8&4278255360|t>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i+=2){var o=e[i>>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var r=t.length,n=[],i=0;i<r;i++)n[i>>>1]|=t.charCodeAt(i)<<16-i%2*16;return e.create(n,2*r)}},r.Utf16LE={stringify:function(t){for(var e=t.words,r=t.sigBytes,i=[],o=0;o<r;o+=2){var s=n(e[o>>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(s))}return i.join("")},parse:function(t){for(var r=t.length,i=[],o=0;o<r;o++)i[o>>>1]|=n(t.charCodeAt(o)<<16-o%2*16);return e.create(i,2*r)}}}(),t.enc.Utf16},t.exports=n(r(78249))},90888:function(t,e,r){var n;n=function(t){var e,r,n,i,o,s,a;return n=(r=(e=t).lib).Base,i=r.WordArray,s=(o=e.algo).MD5,a=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:s,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r=this.cfg,n=r.hasher.create(),o=i.create(),s=o.words,a=r.keySize,u=r.iterations;s.length<a;){c&&n.update(c);var c=n.update(t).finalize(e);n.reset();for(var l=1;l<u;l++)c=n.finalize(c),n.reset();o.concat(c)}return o.sigBytes=4*a,o}}),e.EvpKDF=function(t,e,r){return a.create(r).compute(t,e)},t.EvpKDF},t.exports=n(r(78249),r(62783),r(39422))},42209:function(t,e,r){var n;n=function(t){var e,r;return e=t.lib.CipherParams,r=t.enc.Hex,t.format.Hex={stringify:function(t){return t.ciphertext.toString(r)},parse:function(t){var n=r.parse(t);return e.create({ciphertext:n})}},t.format.Hex},t.exports=n(r(78249),r(75109))},39422:function(t,e,r){var n;n=function(t){var e,r;e=t.lib.Base,r=t.enc.Utf8,t.algo.HMAC=e.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=r.parse(e));var n=t.blockSize,i=4*n;e.sigBytes>i&&(e=t.finalize(e)),e.clamp();for(var o=this._oKey=e.clone(),s=this._iKey=e.clone(),a=o.words,u=s.words,c=0;c<n;c++)a[c]^=1549556828,u[c]^=909522486;o.sigBytes=s.sigBytes=i,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,r=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(r))}})},t.exports=n(r(78249))},81354:function(t,e,r){var n;n=function(t){return t},t.exports=n(r(78249),r(64938),r(4433),r(50298),r(98269),r(68214),r(62783),r(52153),r(87792),r(70034),r(17460),r(13327),r(30706),r(39422),r(2112),r(90888),r(75109),r(8568),r(74242),r(59968),r(27660),r(31148),r(43615),r(92807),r(71077),r(56475),r(16991
19),r(42209),r(40452),r(94253),r(51857),r(84454),r(93974))},4433:function(t,e,r){var n;n=function(t){return function(){if("function"==typeof ArrayBuffer){var e=t.lib.WordArray,r=e.init;(e.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var e=t.byteLength,n=[],i=0;i<e;i++)n[i>>>2]|=t[i]<<24-i%4*8;r.call(this,n,e)}else r.apply(this,arguments)}).prototype=e}}(),t.lib.WordArray},t.exports=n(r(78249))},68214:function(t,e,r){var n;n=function(t){return function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,s=r.algo,a=[];!function(){for(var t=0;t<64;t++)a[t]=4294967296*e.abs(e.sin(t+1))|0}();var u=s.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var n=e+r,i=t[n];t[n]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360}var o=this._hash.words,s=t[e+0],u=t[e+1],d=t[e+2],p=t[e+3],g=t[e+4],m=t[e+5],y=t[e+6],b=t[e+7],v=t[e+8],_=t[e+9],w=t[e+10],M=t[e+11],S=t[e+12],E=t[e+13],x=t[e+14],k=t[e+15],A=o[0],C=o[1],R=o[2],O=o[3];A=c(A,C,R,O,s,7,a[0]),O=c(O,A,C,R,u,12,a[1]),R=c(R,O,A,C,d,17,a[2]),C=c(C,R,O,A,p,22,a[3]),A=c(A,C,R,O,g,7,a[4]),O=c(O,A,C,R,m,12,a[5]),R=c(R,O,A,C,y,17,a[6]),C=c(C,R,O,A,b,22,a[7]),A=c(A,C,R,O,v,7,a[8]),O=c(O,A,C,R,_,12,a[9]),R=c(R,O,A,C,w,17,a[10]),C=c(C,R,O,A,M,22,a[11]),A=c(A,C,R,O,S,7,a[12]),O=c(O,A,C,R,E,12,a[13]),R=c(R,O,A,C,x,17,a[14]),C=c(C,R,O,A,k,22,a[15]),A=l(A,C,R,O,u,5,a[16]),O=l(O,A,C,R,y,9,a[17]),R=l(R,O,A,C,M,14,a[18]),C=l(C,R,O,A,s,20,a[19]),A=l(A,C,R,O,m,5,a[20]),O=l(O,A,C,R,w,9,a[21]),R=l(R,O,A,C,k,14,a[22]),C=l(C,R,O,A,g,20,a[23]),A=l(A,C,R,O,_,5,a[24]),O=l(O,A,C,R,x,9,a[25]),R=l(R,O,A,C,p,14,a[26]),C=l(C,R,O,A,v,20,a[27]),A=l(A,C,R,O,E,5,a[28]),O=l(O,A,C,R,d,9,a[29]),R=l(R,O,A,C,b,14,a[30]),C=l(C,R,O,A,S,20,a[31]),A=h(A,C,R,O,m,4,a[32]),O=h(O,A,C,R,v,11,a[33]),R=h(R,O,A,C,M,16,a[34]),C=h(C,R,O,A,x,23,a[35]),A=h(A,C,R,O,u,4,a[36]),O=h(O,A,C,R,g,11,a[37]),R=h(R,O,A,C,b,16,a[38]),C=h(C,R,O,A,w,23,a[39]),A=h(A,C,R,O,E,4,a[40]),O=h(O,A,C,R,s,11,a[41]),R=h(R,O,A,C,p,16,a[42]),C=h(C,R,O,A,y,23,a[43]),A=h(A,C,R,O,_,4,a[44]),O=h(O,A,C,R,S,11,a[45]),R=h(R,O,A,C,k,16,a[46]),C=h(C,R,O,A,d,23,a[47]),A=f(A,C,R,O,s,6,a[48]),O=f(O,A,C,R,b,10,a[49]),R=f(R,O,A,C,x,15,a[50]),C=f(C,R,O,A,m,21,a[51]),A=f(A,C,R,O,S,6,a[52]),O=f(O,A,C,R,p,10,a[53]),R=f(R,O,A,C,w,15,a[54]),C=f(C,R,O,A,u,21,a[55]),A=f(A,C,R,O,v,6,a[56]),O=f(O,A,C,R,k,10,a[57]),R=f(R,O,A,C,y,15,a[58]),C=f(C,R,O,A,E,21,a[59]),A=f(A,C,R,O,g,6,a[60]),O=f(O,A,C,R,M,10,a[61]),R=f(R,O,A,C,d,15,a[62]),C=f(C,R,O,A,_,21,a[63]),o[0]=o[0]+A|0,o[1]=o[1]+C|0,o[2]=o[2]+R|0,o[3]=o[3]+O|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296);r[(i+64>>>9<<4)+15]=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,r[(i+64>>>9<<4)+14]=(n<<8|n>>>24)&16711935|(n<<24|n>>>8)&4278255360,t.sigBytes=(r.length+1)*4,this._process();for(var s=this._hash,a=s.words,u=0;u<4;u++){var c=a[u];a[u]=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360}return s},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,e,r,n,i,o,s){var a=t+(e&r|~e&n)+i+s;return(a<<o|a>>>32-o)+e}function l(t,e,r,n,i,o,s){var a=t+(e&n|r&~n)+i+s;return(a<<o|a>>>32-o)+e}function h(t,e,r,n,i,o,s){var a=t+(e^r^n)+i+s;return(a<<o|a>>>32-o)+e}function f(t,e,r,n,i,o,s){var a=t+(r^(e|~n))+i+s;return(a<<o|a>>>32-o)+e}r.MD5=o._createHelper(u),r.HmacMD5=o._createHmacHelper(u)}(Math),t.MD5},t.exports=n(r(78249))},8568:function(t,e,r){var n;n=function(t){return t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function r(t,e,r,n){var i=this._iv;if(i){var o=i.slice(0);this._iv=void 0}else var o=this._prevBlock;n.encryptBlock(o,0);for(var s=0;s<r;s++)t[e+s]^=o[s]}return e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize;r.call(this,t,e,i,n),this._prevBlock=t.slice(e,e+i)}}),e.Decryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,o=t.slice(e,e+i);r.call(this,t,e,i,n),this._prevBlock=o}}),e}(),t.mode.CFB},t.exports=n(r(78249),r(75109))},59968:function(t,e,r){var n;n=function(t){return t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function r(t){if((t>>24&255)==255){var e=t>>16&255,r=t>>8&255,n=255&t;255===e?(e=0,255===r?(r=0,255===n?n=0:++n):++r):++e,t=0,t+=e<<16,t+=r<<8,t+=n}else t+=16777216;return t}var n=e.Encryptor=e.extend({processBlock:function(t,e){var n,i=this._cipher,o=i.blockSize,s=this._iv,a=this._counter;s&&(a=this._counter=s.slice(0),this._iv=void 0),0===((n=a)[0]=r(n[0]))&&(n[1]=r(n[1]));var u=a.slice(0);i.encryptBlock(u,0);for(var c=0;c<o;c++)t[e+c]^=u[c]}});return e.Decryptor=n,e}(),t.mode.CTRGladman},t.exports=n(r(78249),r(75109))},74242:function(t,e,r){var n;n=function(t){var e,r;return t.mode.CTR=(r=(e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var s=o.slice(0);r.encryptBlock(s,0),o[n-1]=o[n-1]+1|0;for(var a=0;a<n;a++)t[e+a]^=s[a]}}),e.Decryptor=r,e),t.mode.CTR},t.exports=n(r(78249),r(75109))},31148:function(t,e,r){var n;n=function(t){var e;return t.mode.ECB=((e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),e.Decryptor=e.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),e),t.mode.ECB},t.exports=n(r(78249),r(75109))},27660:function(t,e,r){var n;n=function(t){var e,r;return t.mode.OFB=(r=(e=t.lib.BlockCipherMode.extend()).Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),r.encryptBlock(o,0);for(var s=0;s<n;s++)t[e+s]^=o[s]}}),e.Decryptor=r,e),t.mode.OFB},t.exports=n(r(78249),r(75109))},43615:function(t,e,r){var n;n=function(t){return t.pad.AnsiX923={pad:function(t,e){var r=t.sigBytes,n=4*e,i=n-r%n,o=r+i-1;t.clamp(),t.words[o>>>2]|=i<<24-o%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923},t.exports=n(r(78249),r(75109))},92807:function(t,e,r){var n;n=function(t){return t.pad.Iso10126={pad:function(e,r){var n=4*r,i=n-e.sigBytes%n;e.concat(t.lib.WordArray.random(i-1)).concat(t.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126},t.exports=n(r(78249),r(75109))},71077:function(t,e,r){var n;n=function(t){return t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,r)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971},t.exports=n(r(78249),r(75109))},16991:function(t,e,r){var n;n=function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding},t.exports=n(r(78249),r(75109))},56475:function(t,e,r){var n;n=function(t){return t.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp(),t.sigBytes+=r-(t.sigBytes%r||r)},unpad:function(t){for(var e=t.words,r=t.sigBytes-1;!(e[r>>>2]>>>24-r%4*8&255);)r--;t.sigBytes=r+1}},t.pad.ZeroPadding},t.exports=n(r(78249),r(75109))},2112:function(t,e,r){var n;n=function(t){var e,r,n,i,o,s,a,u;return n=(r=(e=t).lib).Base,i=r.WordArray,s=(o=e.algo).SHA1,a=o.HMAC,u=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:s,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r=this.cfg,n=a.create(r.hasher,t),o=i.create(),s=i.create([1]),u=o.words,c=s.words,l=r.keySize,h=r.iterations;u.length<l;){var f=n.update(e).finalize(s);n.reset();for(var d=f.words,p=d.length,g=f,m=1;m<h;m++){g=n.finalize(g),n.reset();for(var y=g.words,b=0;b<p;b++)d[b]^=y[b]}o.concat(f),c[0]++}return o.sigBytes=4*l,o}}),e.PBKDF2=function(t,e,r){return u.create(r).compute(t,e)},t.PBKDF2},t.exports=n(r(78249),r(62783),r(39422))},93974:function(t,e,r){var n;n=function(t){return function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=[],o=[],s=[],a=n.RabbitLegacy=r.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,r=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],n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)u.call(this);for(var i=0;i<8;i++)n[i]^=r[i+4&7];if(e){var o=e.words,s=o[0],a=o[1],c=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,l=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,h=c>>>16|4294901760&l,f=l<<16|65535&c;n[0]^=c,n[1]^=h,n[2]^=l,n[3]^=f,n[4]^=c,n[5]^=h,n[6]^=l,n[7]^=f;for(var i=0;i<4;i++)u.call(this)}},_doProcessBlock:function(t,e){var r=this._X;u.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=(i[n]<<8|i[n]>>>24)&16711935|(i[n]<<24|i[n]>>>8)&4278255360,t[e+n]^=i[n]},blockSize:4,ivSize:2});function u(){for(var t=this._X,e=this._C,r=0;r<8;r++)o[r]=e[r];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0;for(var r=0;r<8;r++){var n=t[r]+e[r],i=65535&n,a=n>>>16,u=((i*i>>>17)+i*a>>>15)+a*a,c=((4294901760&n)*n|0)+((65535&n)*n|0);s[r]=u^c}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.RabbitLegacy=r._createHelper(a)}(),t.RabbitLegacy},t.exports=n(r(78249),r(98269),r(68214),r(90888),r(75109))},84454:function(t,e,r){var n;n=function(t){return function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=[],o=[],s=[],a=n.Rabbit=r.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,r=0;r<4;r++)t[r]=(t[r]<<8|t[r]>>>24)&16711935|(t[r]<<24|t[r]>>>8)&4278255360;var n=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],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var r=0;r<4;r++)u.call(this);for(var r=0;r<8;r++)i[r]^=n[r+4&7];if(e){var o=e.words,s=o[0],a=o[1],c=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360,l=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,h=c>>>16|4294901760&l,f=l<<16|65535&c;
vendor: 10,782 bytes, line 19
19i[0]^=c,i[1]^=h,i[2]^=l,i[3]^=f,i[4]^=c,i[5]^=h,i[6]^=l,i[7]^=f;for(var r=0;r<4;r++)u.call(this)}},_doProcessBlock:function(t,e){var r=this._X;u.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=(i[n]<<8|i[n]>>>24)&16711935|(i[n]<<24|i[n]>>>8)&4278255360,t[e+n]^=i[n]},blockSize:4,ivSize:2});function u(){for(var t=this._X,e=this._C,r=0;r<8;r++)o[r]=e[r];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0;for(var r=0;r<8;r++){var n=t[r]+e[r],i=65535&n,a=n>>>16,u=((i*i>>>17)+i*a>>>15)+a*a,c=((4294901760&n)*n|0)+((65535&n)*n|0);s[r]=u^c}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=r._createHelper(a)}(),t.Rabbit},t.exports=n(r(78249),r(98269),r(68214),r(90888),r(75109))},51857:function(t,e,r){var n;n=function(t){return function(){var e=t,r=e.lib.StreamCipher,n=e.algo,i=n.RC4=r.extend({_doReset:function(){for(var t=this._key,e=t.words,r=t.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;for(var i=0,o=0;i<256;i++){var s=i%r,a=e[s>>>2]>>>24-s%4*8&255;o=(o+n[i]+a)%256;var u=n[i];n[i]=n[o],n[o]=u}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var t=this._S,e=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+t[e=(e+1)%256])%256;var o=t[e];t[e]=t[r],t[r]=o,n|=t[(t[e]+t[r])%256]<<24-8*i}return this._i=e,this._j=r,n}e.RC4=r._createHelper(i);var s=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)o.call(this)}});e.RC4Drop=r._createHelper(s)}(),t.RC4},t.exports=n(r(78249),r(98269),r(68214),r(90888),r(75109))},30706:function(t,e,r){var n;n=function(t){return function(e){var r=t,n=r.lib,i=n.WordArray,o=n.Hasher,s=r.algo,a=i.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]),u=i.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]),c=i.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]),l=i.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]),h=i.create([0,1518500249,1859775393,2400959708,2840853838]),f=i.create([1352829926,1548603684,1836072691,2053994217,0]),d=s.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r,n,i,o,s,d,g,m,y,b,v,_,w,M,S,E,x,k,A,C,R,O,P,I,T,N,L,j,B,D,F,U,z,H,q,W,V,K,G,Z,$,J=0;J<16;J++){var Y=e+J,Q=t[Y];t[Y]=(Q<<8|Q>>>24)&16711935|(Q<<24|Q>>>8)&4278255360}var X=this._hash.words,tt=h.words,te=f.words,tr=a.words,tn=u.words,ti=c.words,to=l.words;W=F=X[0],V=U=X[1],K=z=X[2],G=H=X[3],Z=q=X[4];for(var J=0;J<80;J+=1)$=F+t[e+tr[J]]|0,J<16?$+=(U^z^H)+tt[0]:J<32?$+=((o=U)&z|~o&H)+tt[1]:J<48?$+=((U|~z)^H)+tt[2]:J<64?$+=(b=U,v=z,(b&(_=H)|v&~_)+tt[3]):$+=(U^(z|~H))+tt[4],$|=0,$=($=p($,ti[J]))+q|0,F=q,q=H,H=p(z,10),z=U,U=$,$=W+t[e+tn[J]]|0,J<16?$+=(V^(K|~G))+te[0]:J<32?$+=(A=V,C=K,(A&(R=G)|C&~R)+te[1]):J<48?$+=((V|~K)^G)+te[2]:J<64?$+=((T=V)&K|~T&G)+te[3]:$+=(V^K^G)+te[4],$|=0,$=($=p($,to[J]))+Z|0,W=Z,Z=G,G=p(K,10),K=V,V=$;$=X[1]+z+G|0,X[1]=X[2]+H+Z|0,X[2]=X[3]+q+W|0,X[3]=X[4]+F+V|0,X[4]=X[0]+U+K|0,X[0]=$},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[(n+64>>>9<<4)+14]=(r<<8|r>>>24)&16711935|(r<<24|r>>>8)&4278255360,t.sigBytes=(e.length+1)*4,this._process();for(var i=this._hash,o=i.words,s=0;s<5;s++){var a=o[s];o[s]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360}return i},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,e){return t<<e|t>>>32-e}r.RIPEMD160=o._createHelper(d),r.HmacRIPEMD160=o._createHmacHelper(d)}(Math),t.RIPEMD160},t.exports=n(r(78249))},62783:function(t,e,r){var n;n=function(t){var e,r,n,i,o,s,a;return n=(r=(e=t).lib).WordArray,i=r.Hasher,o=e.algo,s=[],a=o.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],u=r[4],c=0;c<80;c++){if(c<16)s[c]=0|t[e+c];else{var l=s[c-3]^s[c-8]^s[c-14]^s[c-16];s[c]=l<<1|l>>>31}var h=(n<<5|n>>>27)+u+s[c];c<20?h+=(i&o|~i&a)+1518500249:c<40?h+=(i^o^a)+1859775393:c<60?h+=(i&o|i&a|o&a)-1894007588:h+=(i^o^a)-899497514,u=a,a=o,o=i<<30|i>>>2,i=n,n=h}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+u|0},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[(n+64>>>9<<4)+14]=Math.floor(r/4294967296),e[(n+64>>>9<<4)+15]=r,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}}),e.SHA1=i._createHelper(a),e.HmacSHA1=i._createHmacHelper(a),t.SHA1},t.exports=n(r(78249))},87792:function(t,e,r){var n;n=function(t){var e,r,n,i,o;return r=(e=t).lib.WordArray,i=(n=e.algo).SHA256,o=n.SHA224=i.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=i._doFinalize.call(this);return t.sigBytes-=4,t}}),e.SHA224=i._createHelper(o),e.HmacSHA224=i._createHmacHelper(o),t.SHA224},t.exports=n(r(78249),r(52153))},52153:function(t,e,r){var n;n=function(t){var e,r,n,i,o,s,a,u,c,l;return e=Math,i=(n=(r=t).lib).WordArray,o=n.Hasher,s=r.algo,a=[],u=[],function(){function t(t){return(t-(0|t))*4294967296|0}for(var r=2,n=0;n<64;)(function(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0})(r)&&(n<8&&(a[n]=t(e.pow(r,.5))),u[n]=t(e.pow(r,1/3)),n++),r++}(),c=[],l=s.SHA256=o.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],a=r[4],l=r[5],h=r[6],f=r[7],d=0;d<64;d++){if(d<16)c[d]=0|t[e+d];else{var p=c[d-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=c[d-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;c[d]=g+c[d-7]+y+c[d-16]}var b=a&l^~a&h,v=n&i^n&o^i&o,_=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=f+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+b+u[d]+c[d],M=_+v;f=h,h=l,l=a,a=s+w|0,s=o,o=i,i=n,n=w+M|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+l|0,r[6]=r[6]+h|0,r[7]=r[7]+f|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[(i+64>>>9<<4)+14]=e.floor(n/4294967296),r[(i+64>>>9<<4)+15]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}}),r.SHA256=o._createHelper(l),r.HmacSHA256=o._createHmacHelper(l),t.SHA256},t.exports=n(r(78249))},13327:function(t,e,r){var n;n=function(t){var e,r,n,i,o,s,a,u,c,l,h,f;return e=Math,i=(n=(r=t).lib).WordArray,o=n.Hasher,s=r.x64.Word,a=r.algo,u=[],c=[],l=[],function(){for(var t=1,e=0,r=0;r<24;r++){u[t+5*e]=(r+1)*(r+2)/2%64;var n=e%5,i=(2*t+3*e)%5;t=n,e=i}for(var t=0;t<5;t++)for(var e=0;e<5;e++)c[t+5*e]=e+(2*t+3*e)%5*5;for(var o=1,a=0;a<24;a++){for(var h=0,f=0,d=0;d<7;d++){if(1&o){var p=(1<<d)-1;p<32?f^=1<<p:h^=1<<p-32}128&o?o=o<<1^113:o<<=1}l[a]=s.create(h,f)}}(),h=[],function(){for(var t=0;t<25;t++)h[t]=s.create()}(),f=a.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var r=this._state,n=this.blockSize/2,i=0;i<n;i++){var o=t[e+2*i],s=t[e+2*i+1];o=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,s=(s<<8|s>>>24)&16711935|(s<<24|s>>>8)&4278255360;var a=r[i];a.high^=s,a.low^=o}for(var f=0;f<24;f++){for(var d=0;d<5;d++){for(var p=0,g=0,m=0;m<5;m++){var a=r[d+5*m];p^=a.high,g^=a.low}var y=h[d];y.high=p,y.low=g}for(var d=0;d<5;d++)for(var b=h[(d+4)%5],v=h[(d+1)%5],_=v.high,w=v.low,p=b.high^(_<<1|w>>>31),g=b.low^(w<<1|_>>>31),m=0;m<5;m++){var a=r[d+5*m];a.high^=p,a.low^=g}for(var M=1;M<25;M++){var a=r[M],S=a.high,E=a.low,x=u[M];if(x<32)var p=S<<x|E>>>32-x,g=E<<x|S>>>32-x;else var p=E<<x-32|S>>>64-x,g=S<<x-32|E>>>64-x;var k=h[c[M]];k.high=p,k.low=g}var A=h[0],C=r[0];A.high=C.high,A.low=C.low;for(var d=0;d<5;d++)for(var m=0;m<5;m++){var M=d+5*m,a=r[M],R=h[M],O=h[(d+1)%5+5*m],P=h[(d+2)%5+5*m];a.high=R.high^~O.high&P.high,a.low=R.low^~O.low&P.low}var a=r[0],I=l[f];a.high^=I.high,a.low^=I.low}},_doFinalize:function(){var t=this._data,r=t.words;this._nDataBytes;var n=8*t.sigBytes,o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var s=this._state,a=this.cfg.outputLength/8,u=a/8,c=[],l=0;l<u;l++){var h=s[l],f=h.high,d=h.low;f=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,d=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360,c.push(d),c.push(f)}return new i.init(c,a)},clone:function(){for(var t=o.clone.call(this),e=t._state=this._state.slice(0),r=0;r<25;r++)e[r]=e[r].clone();return t}}),r.SHA3=o._createHelper(f),r.HmacSHA3=o._createHmacHelper(f),t.SHA3},t.exports=n(r(78249),r(64938))},17460:function(t,e,r){var n;n=function(t){var e,r,n,i,o,s,a;return n=(r=(e=t).x64).Word,i=r.WordArray,s=(o=e.algo).SHA512,a=o.SHA384=s.extend({_doReset:function(){this._hash=new i.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var t=s._doFinalize.call(this);return t.sigBytes-=16,t}}),e.SHA384=s._createHelper(a),e.HmacSHA384=s._createHmacHelper(a),t.SHA384}
19,t.exports=n(r(78249),r(64938),r(70034))},70034:function(t,e,r){var n;n=function(t){return function(){var e=t,r=e.lib.Hasher,n=e.x64,i=n.Word,o=n.WordArray,s=e.algo;function a(){return i.create.apply(i,arguments)}var u=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(198
196661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],c=[];!function(){for(var t=0;t<80;t++)c[t]=a()}();var l=s.SHA512=r.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],a=r[4],l=r[5],h=r[6],f=r[7],d=n.high,p=n.low,g=i.high,m=i.low,y=o.high,b=o.low,v=s.high,_=s.low,w=a.high,M=a.low,S=l.high,E=l.low,x=h.high,k=h.low,A=f.high,C=f.low,R=d,O=p,P=g,I=m,T=y,N=b,L=v,j=_,B=w,D=M,F=S,U=E,z=x,H=k,q=A,W=C,V=0;V<80;V++){var K=c[V];if(V<16)var G=K.high=0|t[e+2*V],Z=K.low=0|t[e+2*V+1];else{var $=c[V-15],J=$.high,Y=$.low,Q=(J>>>1|Y<<31)^(J>>>8|Y<<24)^J>>>7,X=(Y>>>1|J<<31)^(Y>>>8|J<<24)^(Y>>>7|J<<25),tt=c[V-2],te=tt.high,tr=tt.low,tn=(te>>>19|tr<<13)^(te<<3|tr>>>29)^te>>>6,ti=(tr>>>19|te<<13)^(tr<<3|te>>>29)^(tr>>>6|te<<26),to=c[V-7],ts=to.high,ta=to.low,tu=c[V-16],tc=tu.high,tl=tu.low,Z=X+ta,G=Q+ts+(Z>>>0<X>>>0?1:0),Z=Z+ti,G=G+tn+(Z>>>0<ti>>>0?1:0),Z=Z+tl,G=G+tc+(Z>>>0<tl>>>0?1:0);K.high=G,K.low=Z}var th=B&F^~B&z,tf=D&U^~D&H,td=R&P^R&T^P&T,tp=O&I^O&N^I&N,tg=(R>>>28|O<<4)^(R<<30|O>>>2)^(R<<25|O>>>7),tm=(O>>>28|R<<4)^(O<<30|R>>>2)^(O<<25|R>>>7),ty=(B>>>14|D<<18)^(B>>>18|D<<14)^(B<<23|D>>>9),tb=(D>>>14|B<<18)^(D>>>18|B<<14)^(D<<23|B>>>9),tv=u[V],t_=tv.high,tw=tv.low,tM=W+tb,tS=q+ty+(tM>>>0<W>>>0?1:0),tM=tM+tf,tS=tS+th+(tM>>>0<tf>>>0?1:0),tM=tM+tw,tS=tS+t_+(tM>>>0<tw>>>0?1:0),tM=tM+Z,tS=tS+G+(tM>>>0<Z>>>0?1:0),tE=tm+tp,tx=tg+td+(tE>>>0<tm>>>0?1:0);q=z,W=H,z=F,H=U,F=B,U=D,B=L+tS+((D=j+tM|0)>>>0<j>>>0?1:0)|0,L=T,j=N,T=P,N=I,P=R,I=O,R=tS+tx+((O=tM+tE|0)>>>0<tM>>>0?1:0)|0}p=n.low=p+O,n.high=d+R+(p>>>0<O>>>0?1:0),m=i.low=m+I,i.high=g+P+(m>>>0<I>>>0?1:0),b=o.low=b+N,o.high=y+T+(b>>>0<N>>>0?1:0),_=s.low=_+j,s.high=v+L+(_>>>0<j>>>0?1:0),M=a.low=M+D,a.high=w+B+(M>>>0<D>>>0?1:0),E=l.low=E+U,l.high=S+F+(E>>>0<U>>>0?1:0),k=h.low=k+H,h.high=x+z+(k>>>0<H>>>0?1:0),C=f.low=C+W,f.high=A+q+(C>>>0<W>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[(n+128>>>10<<5)+30]=Math.floor(r/4294967296),e[(n+128>>>10<<5)+31]=r,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});e.SHA512=r._createHelper(l),e.HmacSHA512=r._createHmacHelper(l)}(),t.SHA512},t.exports=n(r(78249),r(64938))},94253:function(t,e,r){var n;n=function(t){return function(){var e=t,r=e.lib,n=r.WordArray,i=r.BlockCipher,o=e.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c
vendor: 7,629 bytes, line 19
19=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],
vendor: 415 bytes, line 19
19l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=o.DES=i.extend({_doReset:function(){for(var t=this._key.words,e=[],r=0;r<56;r++){var n=s[r]-1;e[r]=t[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){for(var c=i[o]=[],l=u[o],r=0;r<24;r++)c[r/6|0]|=e[(a[r]-1+l)%28]<<31-r%6,c[4+(r/6|0)]|=e[28+(a[r+24]-1+l)%28]<<31-r%6;c[0]=c[0]<<1|c[0]>>>31;for(var r=1;r<7;r++)c[r]=c[r]>>>(r-1)*4+3;
19c[7]=c[7]<<5|c[7]>>>27}for(var h=this._invSubKeys=[],r=0;r<16;r++)h[r]=i[15-r]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,r){this._lBlock=t[e],this._rBlock=t[e+1],f.call(this,4,252645135),f.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),f.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,s=this._rBlock,a=0,u=0;u<8;u++)a|=c[u][((s^i[u])&l[u])>>>0];this._lBlock=s,this._rBlock=o^a}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,f.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(t,e){var r=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=r,this._lBlock^=r<<t}function d(t,e){var r=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=r,this._rBlock^=r<<t}e.DES=i._createHelper(h);var p=o.TripleDES=i.extend({_doReset:function(){var t=this._key.words;this._des1=h.createEncryptor(n.create(t.slice(0,2))),this._des2=h.createEncryptor(n.create(t.slice(2,4))),this._des3=h.createEncryptor(n.create(t.slice(4,6)))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=i._createHelper(p)}(),t.TripleDES},t.exports=n(r(78249),r(98269),r(68214),r(90888),r(75109))},64938:function(t,e,r){var n;n=function(t){var e,r,n,i,o;return n=(r=(e=t).lib).Base,i=r.WordArray,(o=e.x64={}).Word=n.extend({init:function(t,e){this.high=t,this.low=e}}),o.WordArray=n.extend({init:function(t,e){t=this.words=t||[],void 0!=e?this.sigBytes=e:this.sigBytes=8*t.length},toX32:function(){for(var t=this.words,e=t.length,r=[],n=0;n<e;n++){var o=t[n];r.push(o.high),r.push(o.low)}return i.create(r,this.sigBytes)},clone:function(){for(var t=n.clone.call(this),e=t.words=this.words.slice(0),r=e.length,i=0;i<r;i++)e[i]=e[i].clone();return t}}),t},t.exports=n(r(78249))},86266:function(t,e,r){"use strict";var n=e;n.version=r(18597).i8,n.utils=r(80953),n.rand=r(29931),n.curve=r(88254),n.curves=r(45427),n.ec=r(57954),n.eddsa=r(65980)},4918:function(t,e,r){"use strict";var n=r(73785),i=r(80953),o=i.getNAF,s=i.getJSF,a=i.assert;function u(t,e){this.type=t,this.p=new n(e.p,16),this.red=e.prime?n.red(e.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=e.n&&new n(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=u,u.prototype.point=function(){throw Error("Not implemented")},u.prototype.validate=function(){throw Error("Not implemented")},u.prototype._fixedNafMul=function(t,e){a(t.precomputed);var r,n,i=t._getDoubles(),s=o(e,1,this._bitLength),u=(1<<i.step+1)-(i.step%2==0?2:1);u/=3;var c=[];for(r=0;r<s.length;r+=i.step){n=0;for(var l=r+i.step-1;l>=r;l--)n=(n<<1)+s[l];c.push(n)}for(var h=this.jpoint(null,null,null),f=this.jpoint(null,null,null),d=u;d>0;d--){for(r=0;r<c.length;r++)(n=c[r])===d?f=f.mixedAdd(i.points[r]):n===-d&&(f=f.mixedAdd(i.points[r].neg()));h=h.add(f)}return h.toP()},u.prototype._wnafMul=function(t,e){var r=4,n=t._getNAFPoints(r);r=n.wnd;for(var i=n.points,s=o(e,r,this._bitLength),u=this.jpoint(null,null,null),c=s.length-1;c>=0;c--){for(var l=0;c>=0&&0===s[c];c--)l++;if(c>=0&&l++,u=u.dblp(l),c<0)break;var h=s[c];a(0!==h),u="affine"===t.type?h>0?u.mixedAdd(i[h-1>>1]):u.mixedAdd(i[-h-1>>1].neg()):h>0?u.add(i[h-1>>1]):u.add(i[-h-1>>1].neg())}return"affine"===t.type?u.toP():u},u.prototype._wnafMulAdd=function(t,e,r,n,i){var a,u,c,l=this._wnafT1,h=this._wnafT2,f=this._wnafT3,d=0;for(a=0;a<n;a++){var p=(c=e[a])._getNAFPoints(t);l[a]=p.wnd,h[a]=p.points}for(a=n-1;a>=1;a-=2){var g=a-1,m=a;if(1!==l[g]||1!==l[m]){f[g]=o(r[g],l[g],this._bitLength),f[m]=o(r[m],l[m],this._bitLength),d=Math.max(f[g].length,d),d=Math.max(f[m].length,d);continue}
19var y=[e[g],null,null,e[m]];0===e[g].y.cmp(e[m].y)?(y[1]=e[g].add(e[m]),y[2]=e[g].toJ().mixedAdd(e[m].neg())):0===e[g].y.cmp(e[m].y.redNeg())?(y[1]=e[g].toJ().mixedAdd(e[m]),y[2]=e[g].add(e[m].neg())):(y[1]=e[g].toJ().mixedAdd(e[m]),y[2]=e[g].toJ().mixedAdd(e[m].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],v=s(r[g],r[m]);for(u=0,d=Math.max(v[0].length,d),f[g]=Array(d),f[m]=Array(d);u<d;u++){var _=0|v[0][u],w=0|v[1][u];f[g][u]=b[(_+1)*3+(w+1)],f[m][u]=0,h[g]=y}}var M=this.jpoint(null,null,null),S=this._wnafT4;for(a=d;a>=0;a--){for(var E=0;a>=0;){var x=!0;for(u=0;u<n;u++)S[u]=0|f[u][a],0!==S[u]&&(x=!1);if(!x)break;E++,a--}if(a>=0&&E++,M=M.dblp(E),a<0)break;for(u=0;u<n;u++){var k=S[u];0!==k&&(k>0?c=h[u][k-1>>1]:k<0&&(c=h[u][-k-1>>1].neg()),M="affine"===c.type?M.mixedAdd(c):M.add(c))}}for(a=0;a<n;a++)h[a]=null;return i?M:M.toP()},u.BasePoint=c,c.prototype.eq=function(){throw Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(t,e){t=i.toArray(t,e);var r=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*r)return 6===t[0]?a(t[t.length-1]%2==0):7===t[0]&&a(t[t.length-1]%2==1),this.point(t.slice(1,1+r),t.slice(1+r,1+2*r));if((2===t[0]||3===t[0])&&t.length-1===r)return this.pointFromX(t.slice(1,1+r),3===t[0]);throw Error("Unknown point format")},c.prototype.encodeCompressed=function(t){return this.encode(t,!0)},c.prototype._encode=function(t){var e=this.curve.p.byteLength(),r=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",e))},c.prototype.encode=function(t,e){return i.encode(this._encode(e),t)},c.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},c.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},c.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<e;i+=t){for(var o=0;o<t;o++)n=n.dbl();r.push(n)}return{step:t,points:r}},c.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],r=(1<<t)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)e[i]=e[i-1].add(n);return{wnd:t,points:e}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(t){for(var e=this,r=0;r<t;r++)e=e.dbl();return e}},31138:function(t,e,r){"use strict";var n=r(80953),i=r(73785),o=r(35717),s=r(4918),a=n.assert;function u(t){this.twisted=(0|t.a)!=1,this.mOneA=this.twisted&&(0|t.a)==-1,this.extended=this.mOneA,s.call(this,"edwards",t),this.a=new i(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|t.c)==1}function c(t,e,r,n,o){s.BasePoint.call(this,t,"projective"),null===e&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(e,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,!this.curve.extended||this.t||(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(u,s),t.exports=u,u.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},u.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},u.prototype.jpoint=function(t,e,r,n){return this.point(t,e,r,n)},u.prototype.pointFromX=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),s=n.redMul(o.redInvm()),a=s.redSqrt();if(0!==a.redSqr().redSub(s).cmp(this.zero))throw Error("invalid point");var u=a.fromRed().isOdd();return(e&&!u||!e&&u)&&(a=a.redNeg()),this.point(t,a)},u.prototype.pointFromY=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),s=n.redMul(o.redInvm());if(0===s.cmp(this.zero)){if(!e)return this.point(this.zero,t);throw Error("invalid point")}var a=s.redSqrt();if(0!==a.redSqr().redSub(s).cmp(this.zero))throw Error("invalid point");return a.fromRed().isOdd()!==e&&(a=a.redNeg()),this.point(a,t)},u.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();
vendor: 5,230 bytes, line 19
19var e=t.x.redSqr(),r=t.y.redSqr(),n=e.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(r)));return 0===n.cmp(i)},o(c,s.BasePoint),u.prototype.pointFromJSON=function(t){return c.fromJSON(this,t)},u.prototype.point=function(t,e,r,n){return new c(this,t,e,r,n)},c.fromJSON=function(t,e){return new c(t,e[0],e[1],e[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=n.redAdd(e),s=o.redSub(r),a=n.redSub(e),u=i.redMul(s),c=o.redMul(a),l=i.redMul(a),h=s.redMul(o);return this.curve.point(u,c,h,l)},c.prototype._projDbl=function(){var t,e,r,n,i,o,s=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),u=this.y.redSqr();if(this.curve.twisted){var c=(n=this.curve._mulA(a)).redAdd(u);this.zOne?(t=s.redSub(a).redSub(u).redMul(c.redSub(this.curve.two)),e=c.redMul(n.redSub(u)),r=c.redSqr().redSub(c).redSub(c)):(i=this.z.redSqr(),o=c.redSub(i).redISub(i),t=s.redSub(a).redISub(u).redMul(o),e=c.redMul(n.redSub(u)),r=c.redMul(o))}else n=a.redAdd(u),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),t=this.curve._mulC(s.redISub(n)).redMul(o),e=this.curve._mulC(n).redMul(a.redISub(u)),r=n.redMul(o);return this.curve.point(t,e,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),r=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),n=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),o=r.redSub(e),s=i.redSub(n),a=i.redAdd(n),u=r.redAdd(e),c=o.redMul(s),l=a.redMul(u),h=o.redMul(u),f=s.redMul(a);return this.curve.point(c,l,f,h)},c.prototype._projAdd=function(t){var e,r,n=this.z.redMul(t.z),i=n.redSqr(),o=this.x.redMul(t.x),s=this.y.redMul(t.y),a=this.curve.d.redMul(o).redMul(s),u=i.redSub(a),c=i.redAdd(a),l=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(s),h=n.redMul(u).redMul(l);return this.curve.twisted?(e=n.redMul(c).redMul(s.redSub(this.curve._mulA(o))),r=u.redMul(c)):(e=n.redMul(c).redMul(s.redSub(o)),r=this.curve._mulC(u).redMul(c)),this.curve.point(h,e,r)},c.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},c.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},c.prototype.mulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!1)},c.prototype.jmulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},c.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var r=t.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(n),0===this.x.cmp(e))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},88254:function(t,e,r){"use strict";var n=e;n.base=r(4918),n.short=r(6673),n.mont=r(22881),n.edwards=r(31138)},22881:function(t,e,r){"use strict";var n=r(73785),i=r(35717),o=r(4918),s=r(80953);function a(t){o.call(this,"mont",t),this.a=new n(t.a,16).toRed(this.red),this.b=new n(t.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(t,e,r){o.BasePoint.call(this,t,"projective"),null===e&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(e,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(a,o),t.exports=a,a.prototype.validate=function(t){var e=t.normalize().x,r=e.redSqr(),n=r.redMul(e).redAdd(r.redMul(this.a)).redAdd(e);return 0===n.redSqrt().redSqr().cmp(n)},i(u,o.BasePoint),a.prototype.decodePoint=function(t,e){return this.point(s.toArray(t,e),1)},a.prototype.point=function(t,e){return new u(this,t,e)},a.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(t,e){return new u(t,e[0],e[1]||t.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>
19":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),r=t.redSub(e),n=t.redMul(e),i=r.redMul(e.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},u.prototype.add=function(){throw Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(t,e){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=t.x.redAdd(t.z),o=t.x.redSub(t.z).redMul(r),s=i.redMul(n),a=e.z.redMul(o.redAdd(s).redSqr()),u=e.x.redMul(o.redISub(s).redSqr());return this.curve.point(a,u)},u.prototype.mul=function(t){for(var e=t.clone(),r=this,n=this.curve.point(null,null),i=[];0!==e.cmpn(0);e.iushrn(1))i.push(e.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},u.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},u.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},6673:function(t,e,r){"use strict";var n=r(80953),i=r(73785),o=r(35717),s=r(4918),a=n.assert;function u(t){s.call(this,"short",t),this.a=new i(t.a,16).toRed(this.red),this.b=new i(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function c(t,e,r,n){s.BasePoint.call(this,t,"affine"),null===e&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(e,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function l(t,e,r,n){s.BasePoint.call(this,t,"jacobian"),null===e&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(e,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(u,s),t.exports=u,u.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(t.beta)e=new i(t.beta,16).toRed(this.red);else{var e,r,n,o=this._getEndoRoots(this.p);e=(e=0>o[0].cmp(o[1])?o[0]:o[1]).toRed(this.red)}if(t.lambda)r=new i(t.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(e))?r=s[0]:(r=s[1],a(0===this.g.mul(r).x.cmp(this.g.x.redMul(e))))}return n=t.basis?t.basis.map(function(t){return{a:new i(t.a,16),b:new i(t.b,16)}}):this._getEndoBasis(r),{beta:e,lambda:r,basis:n}}},u.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:i.mont(t),r=new i(2).toRed(e).redInvm(),n=r.redNeg(),o=new i(3).toRed(e).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},u.prototype._getEndoBasis=function(t){for(var e,r,n,o,s,a,u,c,l,h=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=t,d=this.n.clone(),p=new i(1),g=new i(0),m=new i(0),y=new i(1),b=0;0!==f.cmpn(0);){var v=d.div(f);c=d.sub(v.mul(f)),l=m.sub(v.mul(p));var _=y.sub(v.mul(g));if(!n&&0>c.cmp(h))e=u.neg(),r=p,n=c.neg(),o=l;else if(n&&2==++b)break;u=c,d=f,f=c,m=p,p=l,y=g,g=_}s=c.neg(),a=l;var w=n.sqr().add(o.sqr());return s.sqr().add(a.sqr()).cmp(w)>=0&&(s=e,a=r),n.negative&&(n=n.neg(),o=o.neg()),s.negative&&(s=s.neg(),a=a.neg()),[{a:n,b:o},{a:s,b:a}]},u.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),o=r.b.neg().mul(t).divRound(this.n),s=i.mul(r.a),a=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b);return{k1:t.sub(s).sub(a),k2:u.add(c).neg()}},u.prototype.pointFromX=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var o=n.fromRed().isOdd();return(e&&!o||!e&&o)&&(n=n.redNeg()),this.point(t,n)},u.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<t.length;o++){var s=this._endoSplit(e[o]),a=t[o],u=a._getBeta();s.k1.negative&&(s.k1.ineg(),a=a.neg(!0)),s.k2.negative&&(s.k2.ineg(),u=u.neg(!0)),n[2*o]=a,n[2*o+1]=u,i[2*o]=s.k1,i[2*o+1]=s.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),l=0;l<2*o;l++)n[l]=null,i[l]=null;return c},o(c,s.BasePoint),u.prototype.point=function(t,e,r){return new c(this,t,e,r)},u.prototype.pointFromJSON=function(t,e){return c.fromJSON(this,t,e)},c.prototype._getBeta=function(){if(this.curve.endo){var t=this.prec
vendor: 2,811 bytes, line 19
19omputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var r=this.curve,n=function(t){return r.point(t.x.redMul(r.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(n)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(n)}}}return e}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(t,e,r){"string"==typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],r);if(!e[2])return n;function i(e){return t.point(e[0],e[1],r)}var o=e[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t)||0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(t){return(t=new i(t,16),this.isInfinity())?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},c.prototype.mulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},c.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());
vendor: 4,387 bytes, line 19
19if(t&&this.precomputed){var r=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return e},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(l,s.BasePoint),u.prototype.jpoint=function(t,e,r){return new l(this,t,e,r)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),o=this.y.redMul(e.redMul(t.z)),s=t.y.redMul(r.redMul(this.z)),a=n.redSub(i),u=o.redSub(s);if(0===a.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),l=c.redMul(a),h=n.redMul(c),f=u.redSqr().redIAdd(l).redISub(h).redISub(h),d=u.redMul(h.redISub(f)).redISub(o.redMul(l)),p=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(f,d,p)},l.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),s=r.redSub(n),a=i.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),c=u.redMul(s),l=r.redMul(u),h=a.redSqr().redIAdd(c).redISub(l).redISub(l),f=a.redMul(l.redISub(h)).redISub(i.redMul(c)),d=this.z.redMul(s);return this.curve.jpoint(h,f,d)},l.prototype.dblp=function(t){if(0===t||this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var e,r=this;for(e=0;e<t;e++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,s=this.y,a=this.z,u=a.redSqr().redSqr(),c=s.redAdd(s);for(e=0;e<t;e++){var l=o.redSqr(),h=c.redSqr(),f=h.redSqr(),d=l.redAdd(l).redIAdd(l).redIAdd(n.redMul(u)),p=o.redMul(h),g=d.redSqr().redISub(p.redAdd(p)),m=p.redISub(g),y=d.redMul(m);y=y.redIAdd(y).redISub(f);var b=c.redMul(a);e+1<t&&(u=u.redMul(f)),o=g,a=b,c=y}return this.curve.jpoint(o,c.redMul(i),a)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},l.prototype._zeroDbl=function(){if(this.zOne){var t,e,r,n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n),u=a.redSqr().redISub(s).redISub(s),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=u,e=a.redMul(s.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),h=this.y.redSqr(),f=h.redSqr(),d=this.x.redAdd(h).redSqr().redISub(l).redISub(f);d=d.redIAdd(d);var p=l.redAdd(l).redIAdd(l),g=p.redSqr(),m=f.redIAdd(f);m=(m=m.redIAdd(m)).redIAdd(m),t=g.redISub(d).redISub(d),e=p.redMul(d.redISub(t)).redISub(m),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(t,e,r)},l.prototype._threeDbl=function(){if(this.zOne){var t,e,r,n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=a.redSqr().redISub(s).redISub(s);t=u;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=a.redMul(s.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),h=this.y.redSqr(),f=this.x.redMul(h),d=this.x.redSub(l).redMul(this.x.redAdd(l));d=d.redAdd(d).redIAdd(d);var p=f.redIAdd(f),g=(p=p.redIAdd(p)).redAdd(p);t=d.redSqr().redISub(g),r=this.y.redAdd(this.z).redSqr().redISub(h).redISub(l);var m=h.redSqr();m=(m=(m=m.redIAdd(m)).redIAdd(m)).redIAdd(m),e=d.redMul(p.redISub(t)).redISub(m)}return this.curve.jpoint(t,e,r)},l.prototype._dbl=function(){var t=this.curve.a,e=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=e.redSqr(),s=r.redSqr(),a=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(i)),u=e.redAdd(e),c=(u=u.redIAdd(u)).redMul(s),l=a.redSqr().redISub(c.redAdd(c)),h=c.redISub(l),f=s.redSqr();f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var d=a.redMul(h).redISub(f),p=r.redAdd(r).redMul(n);return this.curve.jpoint(l,d,p)},l.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);
vendor: 6,376 bytes, line 19
19var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr(),n=e.redSqr(),i=t.redAdd(t).redIAdd(t),o=i.redSqr(),s=this.x.redAdd(e).redSqr().redISub(t).redISub(n),a=(s=(s=(s=s.redIAdd(s)).redAdd(s).redIAdd(s)).redISub(o)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var c=i.redIAdd(s).redSqr().redISub(o).redISub(a).redISub(u),l=e.redMul(c);l=(l=l.redIAdd(l)).redIAdd(l);var h=this.x.redMul(a).redISub(l);h=(h=h.redIAdd(h)).redIAdd(h);var f=this.y.redMul(c.redMul(u.redISub(c)).redISub(s.redMul(a)));f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var d=this.z.redAdd(s).redSqr().redISub(r).redISub(a);return this.curve.jpoint(h,f,d)},l.prototype.mul=function(t,e){return t=new i(t,e),this.curve._wnafMul(this,t)},l.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),r=t.z.redSqr();if(0!==this.x.redMul(r).redISub(t.x.redMul(e)).cmpn(0))return!1;var n=e.redMul(this.z),i=r.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(n)).cmpn(0)},l.prototype.eqXToP=function(t){var e=this.z.redSqr(),r=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(r))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(e);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},l.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},45427:function(t,e,r){"use strict";var n,i=e,o=r(33715),s=r(88254),a=r(80953).assert;function u(t){"short"===t.type?this.curve=new s.short(t):"edwards"===t.type?this.curve=new s.edwards(t):this.curve=new s.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(t,e){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){var r=new u(e);return Object.defineProperty(i,t,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(91037)}catch(l){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
19,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},57954:function(t,e,r){"use strict";var n=r(73785),i=r(2156),o=r(80953),s=r(45427),a=r(29931),u=o.assert,c=r(31251),l=r(90611);function h(t){if(!(this instanceof h))return new h(t);"string"==typeof t&&(u(Object.prototype.hasOwnProperty.call(s,t),"Unknown curve "+t),t=s[t]),t instanceof s.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}t.exports=h,h.prototype.keyPair=function(t){return new c(this,t)},h.prototype.keyFromPrivate=function(t,e){return c.fromPrivate(this,t,e)},h.prototype.keyFromPublic=function(t,e){return c.fromPublic(this,t,e)},h.prototype.genKeyPair=function(t){t||(t={});for(var e=new i({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||a(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var s=new n(e.generate(r));if(!(s.cmp(o)>0))return s.iaddn(1),this.keyFromPrivate(s)}},h.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return(r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0)?t.sub(this.n):t},h.prototype.sign=function(t,e,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new n(t,16));for(var s=this.n.byteLength(),a=e.getPrivate().toArray("be",s),u=t.toArray("be",s),c=new i({hash:this.hash,entropy:a,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),h=this.n.sub(new n(1)),f=0;;f++){var d=o.k?o.k(f):new n(c.generate(this.n.byteLength()));if(!(0>=(d=this._truncateToN(d,!0)).cmpn(1)||d.cmp(h)>=0)){var p=this.g.mul(d);if(!p.isInfinity()){var g=p.getX(),m=g.umod(this.n);if(0!==m.cmpn(0)){var y=d.invm(this.n).mul(m.mul(e.getPrivate()).iadd(t));if(0!==(y=y.umod(this.n)).cmpn(0)){var b=(p.getY().isOdd()?1:0)|(0!==g.cmp(m)?2:0);return o.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),b^=1),new l({r:m,s:y,recoveryParam:b})}}}}}},h.prototype.verify=function(t,e,r,i){t=this._truncateToN(new n(t,16)),r=this.keyFromPublic(r,i);var o,s=(e=new l(e,"hex")).r,a=e.s;if(0>s.cmpn(1)||s.cmp(this.n)>=0||0>a.cmpn(1)||a.cmp(this.n)>=0)return!1;var u=a.invm(this.n),c=u.mul(t).umod(this.n),h=u.mul(s).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(c,r.getPublic(),h)).isInfinity()&&o.eqXToP(s):!(o=this.g.mulAdd(c,r.getPublic(),h)).isInfinity()&&0===o.getX().umod(this.n).cmp(s)},h.prototype.recoverPubKey=function(t,e,r,i){u((3&r)===r,"The recovery param is more than two bits"),e=new l(e,i);var o=this.n,s=new n(t),a=e.r,c=e.s,h=1&r,f=r>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw Error("Unable to find sencond key candinate");a=f?this.curve.pointFromX(a.add(this.curve.n),h):this.curve.pointFromX(a,h);var d=e.r.invm(o),p=o.sub(s).mul(d).umod(o),g=c.mul(d).umod(o);return this.g.mulAdd(p,a,g)},h.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new l(e,n)).recoveryParam)return e.recoveryParam;for(var i,o=0;o<4;o++){try{i=this.recoverPubKey(t,e,o)}catch(s){continue}if(i.eq(r))return o}throw Error("Unable to find valid recovery factor")}},31251:function(t,e,r){"use strict";var n=r(73785),i=r(80953).assert;function o(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}t.exports=o,o.fromPublic=function(t,e,r){return e instanceof o?e:new o(t,{pub:e,pubEnc:r})},o.fromPrivate=function(t,e,r){return e instanceof o?e:new o(t,{priv:e,privEnc:r})},o.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(t,e){return("string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e)?this.pub.encode(e,t):this.pub},o.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(t,e){this.priv=new n(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(t,e){if(t.x||t.y){"mont"===this.ec.curve.type?i(t.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&i(t.x&&t.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(t.x,t.y);return}this.pub=this.ec.curve.decodePoint(t,e)},o.prototype.derive=function(t){return t.validate()||i(t.validate(),"public point not validated"),t.mul(this.priv).getX()},o.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},o.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},90611:function(t,e,r){"use strict";var n=r(73785),i=r(80953),o=i.assert;function s(t,e){if(t instanceof s)return t;this._importDER(t,e)||(o(t.r&&t.s,"Signature without r or s"),this.r=new n(t.r,16),this.s=new n(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function a(){this.place=0}function u(t,e){var r=t[e.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,s=e.place;o<n;o++,s++)i<<=8,i|=t[s],i>>>=0;return!(i<=127)&&(e.place=s,i)}function c(t){for(var e=0,r=t.length-1;!t[e]&&!(128&t[e+1])&&e<r;)e++;return 0===e?t:t.slice(e)}function l(t,e){if(e<128){t.push(e);return}var r=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}t.exports=s,s.prototype._importDER=function(t,e){t=i.toArray(t,e);var r=new a;
19if(48!==t[r.place++])return!1;var o=u(t,r);if(!1===o||o+r.place!==t.length||2!==t[r.place++])return!1;var s=u(t,r);if(!1===s)return!1;var c=t.slice(r.place,s+r.place);if(r.place+=s,2!==t[r.place++])return!1;var l=u(t,r);if(!1===l||t.length!==l+r.place)return!1;var h=t.slice(r.place,l+r.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===h[0]){if(!(128&h[1]))return!1;h=h.slice(1)}return this.r=new n(c),this.s=new n(h),this.recoveryParam=null,!0},s.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=c(e),r=c(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];l(n,e.length),(n=n.concat(e)).push(2),l(n,r.length);var o=n.concat(r),s=[48];return l(s,o.length),s=s.concat(o),i.encode(s,t)}},65980:function(t,e,r){"use strict";var n=r(33715),i=r(45427),o=r(80953),s=o.assert,a=o.parseBytes,u=r(79087),c=r(23622);function l(t){if(s("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof l))return new l(t);t=i[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=n.sha512}t.exports=l,l.prototype.sign=function(t,e){t=a(t);var r=this.keyFromSecret(e),n=this.hashInt(r.messagePrefix(),t),i=this.g.mul(n),o=this.encodePoint(i),s=this.hashInt(o,r.pubBytes(),t).mul(r.priv()),u=n.add(s).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},l.prototype.verify=function(t,e,r){t=a(t),e=this.makeSignature(e);var n=this.keyFromPublic(r),i=this.hashInt(e.Rencoded(),n.pubBytes(),t),o=this.g.mul(e.S());return e.R().add(n.pub().mul(i)).eq(o)},l.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return o.intFromLE(t.digest()).umod(this.curve.n)},l.prototype.keyFromPublic=function(t){return u.fromPublic(this,t)},l.prototype.keyFromSecret=function(t){return u.fromSecret(this,t)},l.prototype.makeSignature=function(t){return t instanceof c?t:new c(this,t)},l.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},l.prototype.decodePoint=function(t){var e=(t=o.parseBytes(t)).length-1,r=t.slice(0,e).concat(-129&t[e]),n=(128&t[e])!=0,i=o.intFromLE(r);return this.curve.pointFromY(i,n)},l.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},l.prototype.decodeInt=function(t){return o.intFromLE(t)},l.prototype.isPoint=function(t){return t instanceof this.pointClass}},79087:function(t,e,r){"use strict";var n=r(80953),i=n.assert,o=n.parseBytes,s=n.cachedProperty;function a(t,e){this.eddsa=t,this._secret=o(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=o(e.pub)}a.fromPublic=function(t,e){return e instanceof a?e:new a(t,{pub:e})},a.fromSecret=function(t,e){return e instanceof a?e:new a(t,{secret:e})},a.prototype.secret=function(){return this._secret},s(a,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),s(a,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),s(a,"privBytes",function(){var t=this.eddsa,e=this.hash(),r=t.encodingLength-1,n=e.slice(0,t.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),s(a,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),s(a,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),s(a,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a.prototype.sign=function(t){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},a.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},a.prototype.getSecret=function(t){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),t)},a.prototype.getPublic=function(t){return n.encode(this.pubBytes(),t)},t.exports=a},23622:function(t,e,r){"use strict";var n=r(73785),i=r(80953),o=i.assert,s=i.cachedProperty,a=i.parseBytes;function u(t,e){this.eddsa=t,"object"!=typeof e&&(e=a(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),o(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof n&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}s(u,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),s(u,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}
19),s(u,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),s(u,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},t.exports=u},91037:function(t){t
vendor: 18,403 bytes, line 19
19.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0
vendor: 7,734 bytes, line 19
19a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},
1980953:function(t,e,r){"use strict";var n=e,i=r(73785),o=r(79746),s=r(34504);n.assert=o,n.toArray=s.toArray,n.zero2=s.zero2,n.toHex=s.toHex,n.encode=s.encode,n.getNAF=function(t,e,r){var n=Array(Math.max(t.bitLength(),r)+1);n.fill(0);for(var i=1<<e+1,o=t.clone(),s=0;s<n.length;s++){var a,u=o.andln(i-1);o.isOdd()?(a=u>(i>>1)-1?(i>>1)-u:u,o.isubn(a)):a=0,n[s]=a,o.iushrn(1)}return n},n.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n=0,i=0;t.cmpn(-n)>0||e.cmpn(-i)>0;){var o,s,a,u=t.andln(3)+n&3,c=e.andln(3)+i&3;3===u&&(u=-1),3===c&&(c=-1),s=(1&u)==0?0:(3==(o=t.andln(7)+n&7)||5===o)&&2===c?-u:u,r[0].push(s),a=(1&c)==0?0:(3==(o=e.andln(7)+i&7)||5===o)&&2===u?-c:c,r[1].push(a),2*n===s+1&&(n=1-n),2*i===a+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return r},n.cachedProperty=function(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(t){return"string"==typeof t?n.toArray(t,"hex"):t},n.intFromLE=function(t){return new i(t,"hex","le")}},73785:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&(("le"===e||"be"===e)&&(r=e,e=10),this._init(t||0,e||10,r||"be"))}
vendor: 4,188 bytes, line 19
19"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{l="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(85568).Buffer}catch(s){}function a(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=a(t,r);return r-1>=e&&(n|=a(t,r-1)<<4),n}function c(t,e,r,n){for(var i=0,o=Math.min(t.length,r),s=e;s<o;s++){var a=t.charCodeAt(s)-48;i*=n,a>=49?i+=a-49+10:a>=17?i+=a-17+10:i+=a}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return 0>t.cmp(e)?t:e},o.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=Array(this.length);for(var i,o,s=0;s<this.length;s++)this.words[s]=0;var a=0;if("be"===r)for(s=t.length-1,i=0;s>=0;s-=3)o=t[s]|t[s-1]<<8|t[s-2]<<16,this.words[i]|=o<<a&67108863,this.words[i+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===r)for(s=0,i=0;s<t.length;s+=3)o=t[s]|t[s+1]<<8|t[s+2]<<16,this.words[i]|=o<<a&67108863,this.words[i+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this.strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var o=0,s=0;if("be"===r)for(i=t.length-1;i>=e;i-=2)n=u(t,e,i)<<o,this.words[s]|=67108863&n,o>=18?(o-=18,s+=1,this.words[s]|=n>>>26):o+=8;else{var a=t.length-e;for(i=a%2==0?e+1:e;i<t.length;i+=2)n=u(t,e,i)<<o,this.words[s]|=67108863&n,o>=18?(o-=18,s+=1,this.words[s]|=n>>>26):o+=8}this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,u=0,l=r;l<a;l+=n)u=c(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==s){var h=1;for(u=c(t,l,t.length,e),l=0;l<s;l++)h*=e;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l,h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,143489
1907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var c=1;c<n;c++){for(var l=u>>>26,h=67108863&u,f=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=f;d++){var p=c-d|0;l+=(s=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&s}r.words[c]=0|h,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var r,i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=((a<<i|o)&16777215).toString(16);r=0!=(o=a>>>24-i&16777215)||s!==this.length-1?h[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,s--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=f[t],l=d[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var g=p.modn(l).toString(t);r=(p=p.idivn(l)).isZero()?g+r:h[c-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n(void 0!==l),this.toArrayLike(l,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i,o,s=this.byteLength(),a=r||Math.max(1,s);n(s<=a,"byte array longer than desired length"),n(a>0,"Requested array length <= 0"),this.strip();var u=new t(a),c=this.clone();if("le"===e){for(o=0;!c.isZero();o++)i=c.andln(255),c.iushrn(8),u[o]=i;for(;o<a;o++)u[o]=0}else{for(o=0;o<a-s;o++)u[o]=0;for(o=0;!c.isZero();o++)i=c.andln(255),c.iushrn(8),u[a-o-1]=i}return u},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return(8191&e)==0&&(r+=13,e>>>=13),(127&e)==0&&(r+=7,e>>>=7),(15&e)==0&&(r+=4,e>>>=4),(3&e)==0&&(r+=2,e>>>=2),(1&e)==0&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return(this.length-1)*26+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n((this.negative|t.negative)==0),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n((this.negative|t.negative)==0),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){this.length>t.length?(e=this,r=t):(e=t,r=this);for(var e,r,n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n((this.negative|t.negative)==0),this.iuxor(t)}
vendor: 10,010 bytes, line 19
19,o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),e?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var e,r,n,i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e,r,n=this.iadd(t);return t.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,r=t):(e=t,r=this);for(var o=0,s=0;s<r.length;s++)o=(n=(0|e.words[s])-(0|r.words[s])+o)>>26,this.words[s]=67108863&n;for(;0!==o&&s<e.length;s++)o=(n=(0|e.words[s])+o)>>26,this.words[s]=67108863&n;if(0===o&&s<e.length&&e!==this)for(;s<e.length;s++)this.words[s]=e.words[s];return this.length=Math.max(this.length,s),e!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,c=0,l=0|s[0],h=8191&l,f=l>>>13,d=0|s[1],p=8191&d,g=d>>>13,m=0|s[2],y=8191&m,b=m>>>13,v=0|s[3],_=8191&v,w=v>>>13,M=0|s[4],S=8191&M,E=M>>>13,x=0|s[5],k=8191&x,A=x>>>13,C=0|s[6],R=8191&C,O=C>>>13,P=0|s[7],I=8191&P,T=P>>>13,N=0|s[8],L=8191&N,j=N>>>13,B=0|s[9],D=8191&B,F=B>>>13,U=0|a[0],z=8191&U,H=U>>>13,q=0|a[1],W=8191&q,V=q>>>13,K=0|a[2],G=8191&K,Z=K>>>13,$=0|a[3],J=8191&$,Y=$>>>13,Q=0|a[4],X=8191&Q,tt=Q>>>13,te=0|a[5],tr=8191&te,tn=te>>>13,ti=0|a[6],to=8191&ti,ts=ti>>>13,ta=0|a[7],tu=8191&ta,tc=ta>>>13,tl=0|a[8],th=8191&tl,tf=tl>>>13,td=0|a[9],tp=8191&td,tg=td>>>13;r.negative=t.negative^e.negative,r.length=19;var tm=(c+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(f,z)|0))<<13)|0;c=((o=Math.imul(f,H))+(i>>>13)|0)+(tm>>>26)|0,tm&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(g,z)|0,o=Math.imul(g,H);var ty=(c+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(f,W)|0))<<13)|0;c=((o=o+Math.imul(f,V)|0)+(i>>>13)|0)+(ty>>>26)|0,ty&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(b,z)|0,o=Math.imul(b,H),n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,V)|0;var tb=(c+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(f,G)|0))<<13)|0;c=((o=o+Math.imul(f,Z)|0)+(i>>>13)|0)+(tb>>>26)|0,tb&=67108863,n=Math.imul(_,z),i=(i=Math.imul(_,H))+Math.imul(w,z)|0,o=Math.imul(w,H),n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,V)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,V)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(g,G)|0,o=o+Math.imul(g,Z)|0;var tv=(c+(n=n+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(f,J)|0))<<13)|0;c=((o=o+Math.imul(f,Y)|0)+(i>>>13)|0)+(tv>>>26)|0,tv&=67108863,n=Math.imul(S,z),i=(i=Math.imul(S,H))+Math.imul(E,z)|0,o=Math.imul(E,H),n=n+Math.imul(_,W)|0,i=(i=i+Math.imul(_,V)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,V)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(g,J)|0,o=o+Math.imul(g,Y)|0;var t_=(c+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(f,X)|0))<<13)|0;c=((o=o+Math.imul(f,tt)|0)+(i>>>13)|0)+(t_>>>26)|0,t_&=67108863,n=Math.imul(k,z),i=(i=Math.imul(k,H))+Math.imul(A,z)|0,o=Math.imul(A,H),n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,V)|0)+Math.imul(E,W)|0,o=o+Math.imul(E,V)|0,n=n+Math.imul(_,G)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(w,G)|0,o=o+Math.imul(w,Z)|0,n=n+Math.imul(y,J)|0,i=(i=i+Math.imul(y,Y)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,Y)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,tt)|0;var tw=(c+(n=n+Math.imul(h,tr)|0)|0)+((8191&(i=(i=i+Math.imul(h,tn)|0)+Math.imul(f,tr)|0))<<13)|0;c=((o=o+Math.imul(f,tn)|0)+(i>>>13)|0)+(tw>>>26)|0,tw&=67108863,n=Math.imul(R,z),i=(i=Math.imul(R,H))+Math.imul(O,z)|0,o=Math.imul(O,H),n=n+Math.imul(k,W)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(A,W)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(E,G)|0,o=o+Math.imul(E,Z)|0,n=n+Math.imul(_,J)|0,i=(i=i+Math.imul(_,Y)|0)+Math.imul(w,J)|0,o=o+Math.imul(w,Y)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,tt)|0,n=n+Math.imul(p,tr)|0,i=(i=i+Math.imul(p,tn)|0)+Math.imul(g,tr)|0,o=o+Math.imul(g,tn)|0;var tM=(c+(n=n+Math.imul(h,to)|0)|0)+((8191&(i=(i=i+Math.imul(h,ts)|0)+Math.imul(f,to)|0))<<13)|0;c=((o=o+Math.imul(f,ts)|0)+(i>>>13)|0)+(tM>>>26)|0,tM&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,H))+Math.imul(T,z)|0,o=Math.imul(T,H),n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(O,W)|0,o=o+Math.imul(O,V)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(E,J)|0,o=o+Math.imul(E,Y)|0,n=n+Math.imul(_,X)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,tt)|0,n=n+Math.imul(y,tr)|0,i=(i=i+Math.imul(y,tn)|0)+Math.imul(b,tr)|0,o=o+Math.imul(b,tn)|0,n=n+Math.imul(p,to)|0,i=(i=i+Math.imul(p,ts)|0)+Math.imul(g,to)|0,o=o+Math.imul(g,ts)|0;var tS=(c+(n=n+Math.imul(h,tu)|0)|0)+((8191&(i=(i=i+Math.imul(h,tc)|0)+Math.imul(f,tu)|0))<<13)|0;c=((o=o+Math.imul(f,tc)|0)+(i>>>13)|0)+(tS>>>26)|0,tS&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(j,z)|0,o=Math.imul(j,H),n=n+Math.imul(I,W)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,V)|0,n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,Z)|0,n=n+Math.imul(k,J)|0,i=(i=i+Math.imul(k,Y)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,Y)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(E,X)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(_,tr)|0,i=(i=i+Math.imul(_,tn)|0)+Math.imul(w,tr)|0,o=o+Math.imul(w,tn)|0,n=n+Math.imul(y,to)|0,i=(i=i+Math.imul(y,ts)|0)+Math.imul(b,to)|0,o=o+Math.imul(b,ts)|0,n=n+Math.imul(p,tu)|0,i=(i=i+Math.imul(p,tc)|0)+Math.imul(g,tu)|0,o=o+Math.imul(g,tc)|0;var tE=(c+(n=n+Math.imul(h,th)|0)|0)+((8191&(i=(i=i+Math.imul(h,tf)|0)+Math.imul(f,th)|0))<<13)|0;c=((o=o+Math.imul(f,tf)|0)+(i>>>13)|0)+(tE>>>26)|0,tE&=67108863,n=Math.imul(D,z),i=(i=Math.imul(D,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(L,W)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,V)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(T,G)|0,o=o+Math.imul(T,Z)|0,n=n+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,Y)|0,n=n+Math.imul(k,X)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(S,tr)|0,i=(i=i+Math.imul(S,tn)|0)+Math.imul(E,tr)|0,o=o+Math.imul(E,tn)|0,n=n+Math.imul(_,to)|0,i=(i=i+Math.imul(_,ts)|0)+Math.imul(w,to)|0,o=o+Math.imul(w,ts)|0,n=n+Math.imul(y,tu)|0,i=(i=i+Math.imul(y,tc)|0)+Math.imul(b,tu)|0,o=o+Math.imul(b,tc)|0,n=n+Math.imul(p,th)|0,i=(i=i+Math.imul(p,tf)|0)+Math.imul(g,th)|0,o=o+Math.imul(g,tf)|0;var tx=(c+(n=n+Math.imul(h,tp)|0)|0)+((8191&(i=(i=i+Math.imul(h,tg)|0)+Math.imul(f,tp)|0))<<13)|0;c=((o=o+Math.imul(f,tg)|0)+(i>>>13)|0)+(tx>>>26)|0,tx&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,V))+Math.imul(F,W)|0,o=Math.imul(F,V),n=n+Math.imul(L,G)|0,i=(i=i+Math.imul(L,Z)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,Z)|0,n=n+Math.imul(I,J)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,Y)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(k,tr)|0,i=(i=i+Math.imul(k,tn)|0)+Math.imul(A,tr)|0,o=o+Math.imul(A,tn)|0,n=n+Math.imul(S,to)|0,i=(i=i+Math.imul(S,ts)|0)+Math.imul(E,to)|0,o=o+Math.imul(E,ts)|0,n=n+Math.imul(_,tu)|0,i=(i=i+Math.imul(_,tc)|0)+Math.imul(w,tu)|0,o=o+Math.imul(w,tc)|0,n=n+Math.imul(y,th)|0,i=(i=i+Math.imul(y,tf)|0)+Math.imul(b,th)|0,o=o+Math.imul(b,tf)|0;var tk=(c+(n=n+Math.imul(p,tp)|0)|0)+((8191&(i=(i=i+Math.imul(p,tg)|0)+Math.imul(g,tp)|0))<<13)|0;c=((o=o+Math.imul(g,tg)|0)+(i>>>13)|0)+(tk>>>26)|0,tk&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,Z))+Math.imul(F,G)|0,o=Math.imul(F,Z),n=n+Math.imul(L,J)|0,i=(i=i+Math.imul(L,Y)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(R,tr)|0,i=(i=i+Math.imul(R,tn)|0)+Math.imul(O,tr)|0,o=o+Math.imul(O,tn)|0,n=n+Math.imul(k,to)|0,i=(i=i+Math.imul(k,ts)|0)+Math.imul(A,to)|0,o=o+Math.imul(A,ts)|0,n=n+Math.imul(S,tu)|0,i=(i=i+Math.imul(S,tc)|0)+Math.imul(E,tu)|0,o=o+Math.imul(E,tc)|0,n=n+Math.imul(_,th)|0,i=(i=i+Math.imul(_,tf)|0)+Math.imul(w,th)|0,o=o+Math.imul(w,tf)|0;var tA=(c+(n=n+Math.imul(y,tp)|0)|0)+((8191&(i=(i=i+Math.imul(y,tg)|0)+Math.imul(b,tp)|0))<<13)|0;c=((o=o+Math.imul(b,tg)|0)+(i>>>13)|0)+(tA>>>26)|0,tA&=67108863,n=Math.imul(D,J),i=(i=Math.imul(D,Y))+Math.imul(F,J)|0,o=Math.imul(F,Y),n=n+Math.imul(L,X)|0,i=(i=i+Math.imul(L,tt)|0)+Math.imul(j,
vendor: 6,026 bytes, line 19
19X)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(I,tr)|0,i=(i=i+Math.imul(I,tn)|0)+Math.imul(T,tr)|0,o=o+Math.imul(T,tn)|0,n=n+Math.imul(R,to)|0,i=(i=i+Math.imul(R,ts)|0)+Math.imul(O,to)|0,o=o+Math.imul(O,ts)|0,n=n+Math.imul(k,tu)|0,i=(i=i+Math.imul(k,tc)|0)+Math.imul(A,tu)|0,o=o+Math.imul(A,tc)|0,n=n+Math.imul(S,th)|0,i=(i=i+Math.imul(S,tf)|0)+Math.imul(E,th)|0,o=o+Math.imul(E,tf)|0;var tC=(c+(n=n+Math.imul(_,tp)|0)|0)+((8191&(i=(i=i+Math.imul(_,tg)|0)+Math.imul(w,tp)|0))<<13)|0;c=((o=o+Math.imul(w,tg)|0)+(i>>>13)|0)+(tC>>>26)|0,tC&=67108863,n=Math.imul(D,X),i=(i=Math.imul(D,tt))+Math.imul(F,X)|0,o=Math.imul(F,tt),n=n+Math.imul(L,tr)|0,i=(i=i+Math.imul(L,tn)|0)+Math.imul(j,tr)|0,o=o+Math.imul(j,tn)|0,n=n+Math.imul(I,to)|0,i=(i=i+Math.imul(I,ts)|0)+Math.imul(T,to)|0,o=o+Math.imul(T,ts)|0,n=n+Math.imul(R,tu)|0,i=(i=i+Math.imul(R,tc)|0)+Math.imul(O,tu)|0,o=o+Math.imul(O,tc)|0,n=n+Math.imul(k,th)|0,i=(i=i+Math.imul(k,tf)|0)+Math.imul(A,th)|0,o=o+Math.imul(A,tf)|0;var tR=(c+(n=n+Math.imul(S,tp)|0)|0)+((8191&(i=(i=i+Math.imul(S,tg)|0)+Math.imul(E,tp)|0))<<13)|0;c=((o=o+Math.imul(E,tg)|0)+(i>>>13)|0)+(tR>>>26)|0,tR&=67108863,n=Math.imul(D,tr),i=(i=Math.imul(D,tn))+Math.imul(F,tr)|0,o=Math.imul(F,tn),n=n+Math.imul(L,to)|0,i=(i=i+Math.imul(L,ts)|0)+Math.imul(j,to)|0,o=o+Math.imul(j,ts)|0,n=n+Math.imul(I,tu)|0,i=(i=i+Math.imul(I,tc)|0)+Math.imul(T,tu)|0,o=o+Math.imul(T,tc)|0,n=n+Math.imul(R,th)|0,i=(i=i+Math.imul(R,tf)|0)+Math.imul(O,th)|0,o=o+Math.imul(O,tf)|0;var tO=(c+(n=n+Math.imul(k,tp)|0)|0)+((8191&(i=(i=i+Math.imul(k,tg)|0)+Math.imul(A,tp)|0))<<13)|0;c=((o=o+Math.imul(A,tg)|0)+(i>>>13)|0)+(tO>>>26)|0,tO&=67108863,n=Math.imul(D,to),i=(i=Math.imul(D,ts))+Math.imul(F,to)|0,o=Math.imul(F,ts),n=n+Math.imul(L,tu)|0,i=(i=i+Math.imul(L,tc)|0)+Math.imul(j,tu)|0,o=o+Math.imul(j,tc)|0,n=n+Math.imul(I,th)|0,i=(i=i+Math.imul(I,tf)|0)+Math.imul(T,th)|0,o=o+Math.imul(T,tf)|0;var tP=(c+(n=n+Math.imul(R,tp)|0)|0)+((8191&(i=(i=i+Math.imul(R,tg)|0)+Math.imul(O,tp)|0))<<13)|0;c=((o=o+Math.imul(O,tg)|0)+(i>>>13)|0)+(tP>>>26)|0,tP&=67108863,n=Math.imul(D,tu),i=(i=Math.imul(D,tc))+Math.imul(F,tu)|0,o=Math.imul(F,tc),n=n+Math.imul(L,th)|0,i=(i=i+Math.imul(L,tf)|0)+Math.imul(j,th)|0,o=o+Math.imul(j,tf)|0;var tI=(c+(n=n+Math.imul(I,tp)|0)|0)+((8191&(i=(i=i+Math.imul(I,tg)|0)+Math.imul(T,tp)|0))<<13)|0;c=((o=o+Math.imul(T,tg)|0)+(i>>>13)|0)+(tI>>>26)|0,tI&=67108863,n=Math.imul(D,th),i=(i=Math.imul(D,tf))+Math.imul(F,th)|0,o=Math.imul(F,tf);var tT=(c+(n=n+Math.imul(L,tp)|0)|0)+((8191&(i=(i=i+Math.imul(L,tg)|0)+Math.imul(j,tp)|0))<<13)|0;c=((o=o+Math.imul(j,tg)|0)+(i>>>13)|0)+(tT>>>26)|0,tT&=67108863;var tN=(c+(n=Math.imul(D,tp))|0)+((8191&(i=(i=Math.imul(D,tg))+Math.imul(F,tp)|0))<<13)|0;return c=((o=Math.imul(F,tg))+(i>>>13)|0)+(tN>>>26)|0,tN&=67108863,u[0]=tm,u[1]=ty,u[2]=tb,u[3]=tv,u[4]=t_,u[5]=tw,u[6]=tM,u[7]=tS,u[8]=tE,u[9]=tx,u[10]=tk,u[11]=tA,u[12]=tC,u[13]=tR,u[14]=tO,u[15]=tP,u[16]=tI,u[17]=tT,u[18]=tN,0!==c&&(u[19]=c,r.length++),r};function m(t,e,r){return new y().mulp(t,e,r)}function y(t,e){this.x=t,this.y=e}Math.imul||(g=p),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):r<63?p(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var l=o-c,h=(0|t.words[l])*(0|e.words[c]),f=67108863&h;s=s+(h/67108864|0)|0,a=67108863&(f=f+a|0),i+=(s=s+(f>>>26)|0)>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,t,e):m(this,t,e)},y.prototype.makeRBT=function(t){for(var e=Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s<o;s++)n[s]=e[t[s]],i[s]=r[t[s]]},y.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),c=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var h=u,f=c,d=0;d<s;d++){var p=r[l+d],g=n[l+d],m=r[l+d+s],y=n[l+d+s],b=h*m-f*y;y=h*y+f*m,m=b,r[l+d]=p+m,n[l+d]=g+y,r[l+d+s]=p-m,n[l+d+s]=g-y,d!==a&&(b=u*h-c*f,f=u*f+c*h,h=b)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},y.prototype.convert13b=function(t,e,r,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)r[s]=0;n(0===o),n((-8192&o)==0)},y.prototype.stub=function(t){for(var e=Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),s=Array(n),a=Array(n),u=Array(n),c=Array(n),l=Array(n),h=Array(n),f=r.words;f.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,c,n),this.transform(s,o,a,u,n,i),this.transform(c,o,l,h,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-u[d]*h[d];u[d]=a[d]*h[d]+u[d]*l[d],a[d]=p}return this.conjugate(a,u,n),this.transform(a,u,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>
vendor: 17,840 bytes, line 19
1926,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<r;this.words[e]=u|s,s=a>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var i,o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var c=0;c<s;c++)u.words[c]=this.words[c];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,c=0;c<this.length;c++)this.words[c]=this.words[c+s];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var h=0|this.words[c];this.words[c]=l<<26-o|h>>>o,l=h&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return!(this.length<=r)&&!!(this.words[r]&1<<e)},o.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==e&&r++,this.length=Math.min(r,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this.strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return(n("number"==typeof t),n(t<67108864),t<0)?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,s=t.length+r;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+a;var u=(0|t.words[i])*e;o-=67108863&u,a=(o>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)a=(o=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r,n=this.length-t.length,i=this.clone(),s=t,a=0|s.words[s.length-1];0!=(n=26-this._countBits(a))&&(s=s.ushln(n),i.iushln(n),a=0|s.words[s.length-1]);var u=i.length-s.length;if("mod"!==e){(r=new o(null)).length=u+1,r.words=Array(r.length);for(var c=0;c<r.length;c++)r.words[c]=0}var l=i.clone()._ishlnsubmul(s,1,u);0===l.negative&&(i=l,r&&(r.words[u]=1));for(var h=u-1;h>=0;h--){var f=(0|i.words[s.length+h])*67108864+(0|i.words[s.length+h-1]);for(f=Math.min(f/a|0,67108863),i._ishlnsubmul(s,f,h);0!==i.negative;)f--,i.negative=0,i._ishlnsubmul(s,1,h),i.isZero()||(i.negative^=1);r&&(r.words[h]=f)}return r&&r.strip(),i.strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(t,e,r){var i,s,a;return(n(!t.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):(this.negative&t.negative)!=0?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||0>this.cmp(t)?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=67108864%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),s=new o(0),a=new o(0),u=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var f=0,d=1;(e.words[0]&d)==0&&f<26;++f,d<<=1);if(f>0)for(e.iushrn(f);f-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(h)),i.iushrn(1),s.iushrn(1);for(var p=0,g=1;(r.words[0]&g)==0&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(h)),a.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),s.isub(u)):(r.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e,r=this,i=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var s=new o(1),a=new o(0),u=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,l=1;(r.words[0]&l)==0&&c<26;++c,l<<=1);if(c>0)for(r.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);for(var h=0,f=1;(i.words[0]&f)==0&&h<26;++h,f<<=1);if(h>0)for(i.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),s.isub(a)):(i.isub(r),a.isub(s))}return 0>(e=0===r.cmpn(1)?s:a).cmpn(0)&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return -1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return -1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return -1===this.cmpn(t)},o.prototype.lt=function(t){return -1===this.cmp(t)},o.prototype.lten=function(t){return 0>=this.cmpn(t)},o.prototype.lte=function(t){return 0>=this.cmp(t)},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new E(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new o(null);return t.words=Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,r=t;do this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},i(_,v),_.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9){t.words[0]=0,t.length=1;return}var i=t.words[9];for(n=10,e.words[e.length++]=4194303&i;n<t.length;n++){var o=0|t.words[n];t.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[n-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},_.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(w,v),i(M,v),i(S,v),S.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=(0|t.words[r])*19+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){var e;if(b[t])return b[t];if("k256"===t)e=new _;else if("p224"===t)e=new w;else if("p192"===t)e=new M;else if("p25519"===t)e=new S;else throw Error("Unknown prime "+t);return b[t]=e,e},E.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){n((t.negative|e.negative)==0,"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var h=this.pow(l,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;0!==d.cmp(a);){for(var g=d,m=0;0!==g.cmp(a);m++)g=g.redSqr();n(m<p);var y=this.pow(h,new o(1).iushln(p-m-1));f=f.redMul(y),h=y.redSqr(),d=d.redMul(h),p=m}return f},E.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},E.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],s=0,a=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],l=u-1;l>=0;l--){var h=c>>l&1;if(i!==r[0]&&(i=this.sqr(i)),0===h&&0===s){a=0;continue}s<<=1,s|=h,(4==++a||0===n&&0===l)&&(i=this.mul(i,r[s]),a=0,s=0)}u=26}return i},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new x(t)},i(x,E),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):0>
19i.cmpn(0)&&(s=i.iadd(this.m)),s._forceRed(this)},x.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},55850:function(t,e,r){r(75682),r(12352);let n=r(37253),i=(t,e)=>t+e,o=["sync","latest"];function s(t){return Number.parseInt(t,16)}t.exports=class extends n{constructor(t={}){super(),this._blockResetDuration=t.blockResetDuration||2e4,this._blockResetTimeout,this._currentBlock=null,this._isRunning=!1,this._onNewListener=this._onNewListener.bind(this),this._onRemoveListener=this._onRemoveListener.bind(this),this._resetCurrentBlock=this._resetCurrentBlock.bind(this),this._setupInternalEvents()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){if(this._currentBlock)return this._currentBlock;let t=await new Promise(t=>this.once("latest",t));return t}removeAllListeners(t){t?super.removeAllListeners(t):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener()}_start(){}_end(){}_setupInternalEvents(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}_onNewListener(t,e){o.includes(t)&&this._maybeStart()}_onRemoveListener(t,e){this._getBlockTrackerEventCount()>0||this._maybeEnd()}_maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),this._start())}_maybeEnd(){this._isRunning&&(this._isRunning=!1,this._setupBlockResetTimeout(),this._end())}_getBlockTrackerEventCount(){return o.map(t=>this.listenerCount(t)).reduce(i)}_newPotentialLatest(t){let e=this._currentBlock;e&&s(t)<=s(e)||this._setCurrentBlock(t)}_setCurrentBlock(t){let e=this._currentBlock;this._currentBlock=t,this.emit("latest",t),this.emit("sync",{oldBlock:e,newBlock:t})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}}},75012:function(t,e,r){let n=r(12352),i=r(55850);function o(t,e){return new Promise(r=>{let n=setTimeout(r,t);n.unref&&e&&n.unref()})}t.exports=class extends i{constructor(t={}){if(!t.provider)throw Error("PollingBlockTracker - no provider specified.");let e=t.pollingInterval||2e4,r=t.retryTimeout||e/10,n=void 0===t.keepEventLoopActive||t.keepEventLoopActive,i=t.setSkipCacheFlag||!1;super(Object.assign({blockResetDuration:e},t)),this._provider=t.provider,this._pollingInterval=e,this._retryTimeout=r,this._keepEventLoopActive=n,this._setSkipCacheFlag=i}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}_start(){this._performSync().catch(t=>this.emit("error",t))}async _performSync(){for(;this._isRunning;)try{await this._updateLatestBlock(),await o(this._pollingInterval,!this._keepEventLoopActive)}catch(r){let t=Error(`PollingBlockTracker - encountered an error while attempting to update latest block: 20${r.stack}`);try{this.emit("error",t)}catch(e){console.error(t)}await o(this._retryTimeout,!this._keepEventLoopActive)}}async _updateLatestBlock(){let t=await this._fetchLatestBlock();this._newPotentialLatest(t)}async _fetchLatestBlock(){let t={jsonrpc:"2.0",id:1,method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(t.skipCache=!0);let e=await n(e=>this._provider.sendAsync(t,e))();if(e.error)throw Error(`PollingBlockTracker - encountered error fetching block: 21${e.error}`);return e.result}}},23256:function(t,e,r){let n=r(76622);t.exports=class extends n{constructor(){super(),this.allResults=[]}async update(){throw Error("BaseFilterWithHistory - no update method specified")}addResults(t){this.allResults=this.allResults.concat(t),super.addResults(t)}addInitialResults(t){this.allResults=this.allResults.concat(t),super.addInitialResults(t)}getAllResults(){return this.allResults}}},76622:function(t,e,r){let n=r(79569).Z;t.exports=class extends n{constructor(){super(),this.updates=[]}async initialize(){}
21async update(){throw Error("BaseFilter - no update method specified")}addResults(t){this.updates=this.updates.concat(t),t.forEach(t=>this.emit("update",t))}addInitialResults(t){}getChangesAndClear(){let t=this.updates;return this.updates=[],t}}},72785:function(t,e,r){let n=r(76622),i=r(40207),{incrementHexInt:o}=r(98112);t.exports=class extends n{constructor({provider:t,params:e}){super(),this.type="block",this.provider=t}async update({oldBlock:t,newBlock:e}){let r=o(t),n=await i({provider:this.provider,fromBlock:r,toBlock:e}),s=n.map(t=>t.hash);this.addResults(s)}}},40207:function(t){async function e({provider:t,fromBlock:e,toBlock:i}){e||(e=i);let o=r(e),s=r(i),a=Array(s-o+1).fill().map((t,e)=>o+e).map(n),u=await Promise.all(a.map(e=>{var r;return r=[e,!1],new Promise((e,n)=>{t.sendAsync({id:1,jsonrpc:"2.0",method:"eth_getBlockByNumber",params:r},(t,r)=>{if(t)return n(t);e(r.result)})})}));return u}function r(t){return null==t?t:Number.parseInt(t,16)}function n(t){if(null==t)return t;let e=t.toString(16);return"0x"+e}t.exports=e},98112:function(t){function e(t){return t.sort((t,e)=>"latest"===t||"earliest"===e?1:"latest"===e||"earliest"===t?-1:r(t)-r(e))}function r(t){return null==t?t:Number.parseInt(t,16)}function n(t){if(null==t)return t;let e=t.toString(16),r=e.length%2;return r&&(e="0"+e),"0x"+e}function i(){return Math.floor(16*Math.random()).toString(16)}t.exports={minBlockRef:function(...t){let r=e(t);return r[0]},maxBlockRef:function(...t){let r=e(t);return r[r.length-1]},sortBlockRefs:e,bnToHex:function(t){return"0x"+t.toString(16)},blockRefIsNumber:function(t){return t&&!["earliest","latest","pending"].includes(t)},hexToInt:r,incrementHexInt:function(t){if(null==t)return t;let e=r(t);return n(e+1)},intToHex:n,unsafeRandomBytes:function(t){let e="0x";for(let r=0;r<t;r++)e+=i(),e+=i();return e}}},98406:function(t,e,r){let n=r(48125).WU,{createAsyncMiddleware:i}=r(88625),o=r(57688),s=r(81663),a=r(72785),u=r(25792),{intToHex:c,hexToInt:l}=r(98112);function h(t){return f(async(...e)=>{let r=await t(...e),n=c(r.id);return n})}function f(t){return i(async(e,r)=>{let n=await t.apply(null,e.params);r.result=n})}function d(t,e){let r=[];for(let n in t)r.push(t[n]);return r}t.exports=function({blockTracker:t,provider:e}){let r=0,i={},p=new n,g=function({mutex:t}){return e=>async(r,n,i,o)=>{let s=await t.acquire();s(),e(r,n,i,o)}}({mutex:p}),m=o({eth_newFilter:g(h(b)),eth_newBlockFilter:g(h(v)),eth_newPendingTransactionFilter:g(h(_)),eth_uninstallFilter:g(f(S)),eth_getFilterChanges:g(f(w)),eth_getFilterLogs:g(f(M))}),y=async({oldBlock:t,newBlock:e})=>{if(0===i.length)return;let r=await p.acquire();try{await Promise.all(d(i).map(async r=>{try{await r.update({oldBlock:t,newBlock:e})}catch(n){console.error(n)}}))}catch(n){console.error(n)}r()};return m.newLogFilter=b,m.newBlockFilter=v,m.newPendingTransactionFilter=_,m.uninstallFilter=S,m.getFilterChanges=w,m.getFilterLogs=M,m.destroy=()=>{k()},m;async function b(t){let r=new s({provider:e,params:t});return await E(r),r}async function v(){let t=new a({provider:e});return await E(t),t}async function _(){let t=new u({provider:e});return await E(t),t}async function w(t){let e=l(t),r=i[e];if(!r)throw Error(`No filter for index "${e}"`);let n=r.getChangesAndClear();return n}async function M(t){let e=l(t),r=i[e];if(!r)throw Error(`No filter for index "${e}"`);return"log"===r.type?r.getAllResults():[]}async function S(t){let e=l(t),r=i[e],n=Boolean(r);return n&&await x(e),n}async function E(e){let n=d(i).length,o=await t.getLatestBlock();await e.initialize({currentBlock:o}),i[++r]=e,e.id=r,e.idHex=c(r);let s=d(i).length;return A({prevFilterCount:n,newFilterCount:s}),r}async function x(t){let e=d(i).length;delete i[t];let r=d(i).length;A({prevFilterCount:e,newFilterCount:r})}async function k(){let t=d(i).length;i={},A({prevFilterCount:t,newFilterCount:0})}function A({prevFilterCount:e,newFilterCount:r}){if(0===e&&r>0){t.on("sync",y);return}if(e>0&&0===r){t.removeListener("sync",y);return}}}},81663:function(t,e,r){let n=r(75682),i=r(6417),o=r(23256),{bnToHex:s,hexToInt:a,incrementHexInt:u,minBlockRef:c,blockRefIsNumber:l}
21=r(98112);t.exports=class extends o{constructor({provider:t,params:e}){super(),this.type="log",this.ethQuery=new n(t),this.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},e),this.params.address&&(Array.isArray(this.params.address)||(this.params.address=[this.params.address]),this.params.address=this.params.address.map(t=>t.toLowerCase()))}async initialize({currentBlock:t}){let e=this.params.fromBlock;["latest","pending"].includes(e)&&(e=t),"earliest"===e&&(e="0x0"),this.params.fromBlock=e;let r=c(this.params.toBlock,t),n=Object.assign({},this.params,{toBlock:r}),i=await this._fetchLogs(n);this.addInitialResults(i)}async update({oldBlock:t,newBlock:e}){let r;r=t?u(t):e;let n=Object.assign({},this.params,{fromBlock:r,toBlock:e}),i=await this._fetchLogs(n),o=i.filter(t=>this.matchLog(t));this.addResults(o)}async _fetchLogs(t){let e=await i(e=>this.ethQuery.getLogs(t,e))();return e}matchLog(t){if(a(this.params.fromBlock)>=a(t.blockNumber)||l(this.params.toBlock)&&a(this.params.toBlock)<=a(t.blockNumber))return!1;let e=t.address&&t.address.toLowerCase();if(this.params.address&&e&&!this.params.address.includes(e))return!1;let r=this.params.topics.every((e,r)=>{let n=t.topics[r];if(!n)return!1;n=n.toLowerCase();let i=Array.isArray(e)?e:[e],o=i.includes(null);if(o)return!0;i=i.map(t=>t.toLowerCase());let s=i.includes(n);return s});return r}}},79569:function(t,e,r){"use strict";let n=r(17187);function i(t,e,r){try{Reflect.apply(t,e,r)}catch(n){setTimeout(()=>{throw n})}}class o extends n.EventEmitter{emit(t,...e){let r="error"===t,n=this._events;if(void 0!==n)r=r&&void 0===n.error;else if(!r)return!1;if(r){let o;if(e.length>0&&([o]=e),o instanceof Error)throw o;let s=Error(`Unhandled error.${o?` (${o.message})`:""}`);throw s.context=o,s}let a=n[t];if(void 0===a)return!1;if("function"==typeof a)i(a,this,e);else{let u=a.length,c=function(t){let e=t.length,r=Array(e);for(let n=0;n<e;n+=1)r[n]=t[n];return r}(a);for(let l=0;l<u;l+=1)i(c[l],this,e)}return!0}}e.Z=o},6417:function(t){"use strict";let e=(t,e,r,n)=>function(...i){let o=e.promiseModule;return new o((o,s)=>{e.multiArgs?i.push((...t)=>{e.errorFirst?t[0]?s(t):(t.shift(),o(t)):o(t)}):e.errorFirst?i.push((t,e)=>{t?s(t):o(e)}):i.push(o),Reflect.apply(t,this===r?n:this,i)})},r=new WeakMap;t.exports=(t,n)=>{n={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...n};let i=typeof t;if(!(null!==t&&("object"===i||"function"===i)))throw TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===t?"null":i}\``);let o=(t,e)=>{let i=r.get(t);if(i||(i={},r.set(t,i)),e in i)return i[e];let o=t=>"string"==typeof t||"symbol"==typeof e?e===t:t.test(e),s=Reflect.getOwnPropertyDescriptor(t,e),a=void 0===s||s.writable||s.configurable,u=n.include?n.include.some(o):!n.exclude.some(o),c=u&&a;return i[e]=c,c},s=new WeakMap,a=new Proxy(t,{apply(t,r,i){let o=s.get(t);if(o)return Reflect.apply(o,r,i);let u=n.excludeMain?t:e(t,n,a,t);return s.set(t,u),Reflect.apply(u,r,i)},get(t,r){let i=t[r];if(!o(t,r)||i===Function.prototype[r])return i;let u=s.get(i);if(u)return u;if("function"==typeof i){let c=e(i,n,a,t);return s.set(i,c),c}return i}});return a}},68961:function(t,e,r){let n=r(79569).Z,i=r(57688),{createAsyncMiddleware:o}=r(88625),s=r(98406),{unsafeRandomBytes:a,incrementHexInt:u}=r(98112),c=r(40207);function l(t){return{hash:t.hash,parentHash:t.parentHash,sha3Uncles:t.sha3Uncles,miner:t.miner,stateRoot:t.stateRoot,transactionsRoot:t.transactionsRoot,receiptsRoot:t.receiptsRoot,logsBloom:t.logsBloom,difficulty:t.difficulty,number:t.number,gasLimit:t.gasLimit,gasUsed:t.gasUsed,nonce:t.nonce,mixHash:t.mixHash,timestamp:t.timestamp,extraData:t.extraData}}t.exports=function({blockTracker:t,provider:e}){let r={},h=s({blockTracker:t,provider:e}),f=!1,d=new n,p=i({eth_subscribe:o(g),eth_unsubscribe:o(m)});return p.destroy=function(){for(let t in d.removeAllListeners(),r)r[t].destroy(),delete r[t];f=!0},{events:d,middleware:p};async function g(n,i){let o;if(f)throw Error("SubscriptionManager - attempting to use after destroying");let s=n.params[0],d=a(16);switch(s){case"newHeads":o=function({subId:r}){let n={type:s,async destroy(){t.removeListener("sync",n.update)},async update({oldBlock:t,newBlock:n}){let i=u(t),o=await c({provider:e,fromBlock:i,toBlock:n}),s=o.map(l);
21s.forEach(t=>{y(r,t)})}};return t.on("sync",n.update),n}({subId:d});break;case"logs":let p=n.params[1],g=await h.newLogFilter(p);o=function({subId:t,filter:e}){return e.on("update",e=>y(t,e)),{type:s,destroy:async()=>await h.uninstallFilter(e.idHex)}}({subId:d,filter:g});break;default:throw Error(`SubscriptionManager - unsupported subscription type "${s}"`)}r[d]=o,i.result=d}async function m(t,e){if(f)throw Error("SubscriptionManager - attempting to use after destroying");let n=t.params[0],i=r[n];if(!i){e.result=!1;return}delete r[n],await i.destroy(),e.result=!0}function y(t,e){d.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:t,result:e}})}}},25792:function(t,e,r){let n=r(76622),i=r(40207),{incrementHexInt:o}=r(98112);t.exports=class extends n{constructor({provider:t}){super(),this.type="tx",this.provider=t}async update({oldBlock:t}){let e=o(t),r=await i({provider:this.provider,fromBlock:e,toBlock:t}),n=[];for(let s of r)n.push(...s.transactions);this.addResults(n)}}},37870:function(t,e,r){let n=r(91625),i=r(3156),o=[void 0,null,"<nil>"];t.exports=function(t={}){let{blockTracker:e}=t;if(!e)throw Error("createBlockCacheMiddleware - No BlockTracker specified");let r=new s,o={perma:r,block:r,fork:r};return i(async(t,i,s)=>{let a;if(t.skipCache)return s();let u=n.cacheTypeForPayload(t),c=o[u];if(!c||!c.canCacheRequest(t))return s();let l=n.blockTagForPayload(t);if(l||(l="latest"),"earliest"===l)a="0x00";else if("latest"===l){let h=await e.getLatestBlock();r.clearBefore(h),a=h}else a=l;let f=await c.get(t,a);void 0===f?(await s(),await c.set(t,a,i.result)):i.result=f})};class s{constructor(){this.cache={}}getBlockCacheForPayload(t,e){let r=Number.parseInt(e,16),n=this.cache[r];if(!n){let i={};this.cache[r]=i,n=i}return n}async get(t,e){let r=this.getBlockCacheForPayload(t,e);if(!r)return;let i=n.cacheIdentifierForPayload(t,!0),o=r[i];return o}async set(t,e,r){let i=this.canCacheResult(t,r);if(!i)return;let o=this.getBlockCacheForPayload(t,e),s=n.cacheIdentifierForPayload(t,!0);o[s]=r}canCacheRequest(t){if(!n.canCache(t))return!1;let e=n.blockTagForPayload(t);return"pending"!==e}canCacheResult(t,e){if(!o.includes(e))return!["eth_getTransactionByHash","eth_getTransactionReceipt"].includes(t.method)||!!e&&!!e.blockHash&&"0x0000000000000000000000000000000000000000000000000000000000000000"!==e.blockHash}clearBefore(t){let e=this,r=Number.parseInt(t,16);Object.keys(e.cache).map(Number).filter(t=>t<r).forEach(t=>delete e.cache[t])}}},91625:function(t,e,r){let n=r(67266);function i(t){return"never"!==a(t)}function o(t){let e=s(t);return e>=t.params.length?t.params:"eth_getBlockByNumber"===t.method?t.params.slice(1):t.params.slice(0,e)}function s(t){switch(t.method){case"eth_getStorageAt":return 2;case"eth_getBalance":case"eth_getCode":case"eth_getTransactionCount":case"eth_call":return 1;case"eth_getBlockByNumber":return 0;default:return}}function a(t){switch(t.method){case"web3_clientVersion":case"web3_sha3":case"eth_protocolVersion":case"eth_getBlockTransactionCountByHash":case"eth_getUncleCountByBlockHash":case"eth_getCode":case"eth_getBlockByHash":case"eth_getTransactionByHash":case"eth_getTransactionByBlockHashAndIndex":case"eth_getTransactionReceipt":case"eth_getUncleByBlockHashAndIndex":case"eth_getCompilers":case"eth_compileLLL":case"eth_compileSolidity":case"eth_compileSerpent":case"shh_version":case"test_permaCache":return"perma";case"eth_getBlockByNumber":case"eth_getBlockTransactionCountByNumber":case"eth_getUncleCountByBlockNumber":case"eth_getTransactionByBlockNumberAndIndex":case"eth_getUncleByBlockNumberAndIndex":case"test_forkCache":return"fork";case"eth_gasPrice":case"eth_blockNumber":case"eth_getBalance":case"eth_getStorageAt":case"eth_getTransactionCount":case"eth_call":case"eth_estimateGas":case"eth_getFilterLogs":case"eth_getLogs":case"test_blockCache":return"block";case"net_version":case"net_peerCount":case"net_listening":case"eth_syncing":case"eth_sign":case"eth_coinbase":case"eth_mining":case"eth_hashrate":case"eth_accounts":case"eth_sendTransaction":case"eth_sendRawTransaction":case"eth_newFilter":case"eth_newBlockFilter":case"eth_newPendingTransactionFilter":case"eth_uninstallFilter":case"eth_getFilterChanges":case"eth_getWork":case"eth_submitWork":case"eth_submitHashrate":case"db_putString":case"db_getString":case"db_putHex":case"db_getHex":case"shh_post":case"shh_newIdentity":case"shh_hasIdentity":case"shh_newGroup":case"shh_addToGroup":case"shh_newFilter":case"shh_uninstallFilter":case"shh_getFilterChanges":case"shh_getMessages":case"test_neverCache":return"never"}}t.exports={cacheIdentifierForPayload:function(t,e){let r=e?o(t):t.params;return i(t)?t.method+":"+n(r):null},canCache:i,blockTagForPayload:function(t){let e=s(t);return e>=t.params.length?null:t.params[e]},paramsWithoutBlockTag:o,blockTagParamIndex:s,cacheTypeForPayload:a}},3156:function(t){t.exports=function(t){return(e,r,n,i)=>{let o,s,a;let u=new Promise(t=>{o=t}),c=async()=>{a=!0,n(t=>{s=t,o()}),await u};t(e,r,c).then(async()=>{a?(await u,s(null)):i(null)}
21).catch(t=>{s?s(t):i(t)})}}},59721:function(t){t.exports=function(t){return(e,r,n,i)=>{let o=t[e.method];return void 0===o?n():"function"==typeof o?o(e,r,n,i):(r.result=o,i())}}},57688:function(t,e,r){t.exports=r(59721)},2843:function(t,e,r){let n=r(21964),i=r(68142);function o(t){let e=Error("Expect argument to be non-empty array");if("object"!=typeof t||!t.length)throw e;let r=t.map(function(t){return"bytes"===t.type?n.toBuffer(t.value):t.value}),o=t.map(function(t){return t.type}),s=t.map(function(t){if(!t.name)throw e;return t.type+" "+t.name});return i.soliditySHA3(["bytes32","bytes32"],[i.soliditySHA3(Array(t.length).fill("string"),s),i.soliditySHA3(o,r)])}function s(t,e){let r=n.toBuffer(e),i=n.fromRpcSig(r);return n.ecrecover(t,i.v,i.r,i.s)}function a(t){let e=n.toBuffer(t.data),r=n.hashPersonalMessage(e);return s(r,t.sig)}function u(t,e){for(var r=""+t;r.length<e;)r="0"+r;return r}t.exports={concatSig:function(t,e,r){let i=n.fromSigned(e),o=n.fromSigned(r),s=n.bufferToInt(t),a=u(n.toUnsigned(i).toString("hex"),64),c=u(n.toUnsigned(o).toString("hex"),64),l=n.stripHexPrefix(n.intToHex(s));return n.addHexPrefix(a.concat(c,l)).toString("hex")},normalize:function(t){if(t){if("number"==typeof t){let e=n.toBuffer(t);t=n.bufferToHex(e)}if("string"!=typeof t){var r="eth-sig-util.normalize() requires hex string or integer input.";throw Error(r+=" received "+typeof t+": "+t)}return n.addHexPrefix(t.toLowerCase())}},personalSign:function(t,e){var r=n.toBuffer(e.data),i=n.hashPersonalMessage(r),o=n.ecsign(i,t);return n.bufferToHex(this.concatSig(o.v,o.r,o.s))},recoverPersonalSignature:function(t){let e=a(t),r=n.publicToAddress(e),i=n.bufferToHex(r);return i},extractPublicKey:function(t){let e=a(t);return"0x"+e.toString("hex")},typedSignatureHash:function(t){let e=o(t);return n.bufferToHex(e)},signTypedData:function(t,e){let r=o(e.data),i=n.ecsign(r,t);return n.bufferToHex(this.concatSig(i.v,i.r,i.s))},recoverTypedSignature:function(t){let e=o(t.data),r=s(e,t.sig),i=n.publicToAddress(r);return n.bufferToHex(i)}}},75443:function(t,e,r){"use strict";var n=r(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.createHashFunction=function(t){return function(e){var r=t();return r.update(e),n.from(r.digest())}}},82192:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(75443),i=r(95811);e.keccak224=n.createHashFunction(function(){return i("keccak224")}),e.keccak256=n.createHashFunction(function(){return i("keccak256")}),e.keccak384=n.createHashFunction(function(){return i("keccak384")}),e.keccak512=n.createHashFunction(function(){return i("keccak512")})},90472:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(61798);e.getRandomBytes=function(t){return new Promise(function(e,r){n(t,function(t,n){if(t){r(t);return}e(n)})})},e.getRandomBytesSync=function(t){return n(t)}},95053:function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(i,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(s,a)}u((n=n.apply(t,e||[])).next())})},i=this&&this.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};
21Object.defineProperty(e,"__esModule",{value:!0});var o=r(17221),s=r(90472);e.createPrivateKey=function(){return n(this,void 0,void 0,function(){var t;return i(this,function(e){switch(e.label){case 0:return[4,s.getRandomBytes(32)];case 1:if(t=e.sent(),o.privateKeyVerify(t))return[2,t];return[3,0];case 2:return[2]}})})},e.createPrivateKeySync=function(){for(;;){var t=s.getRandomBytesSync(32);if(o.privateKeyVerify(t))return t}},function(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}(r(17221))},68142:function(t,e,r){t.exports=r(75437)},75437:function(t,e,r){var n=r(48764).Buffer;let i=r(86589),o=r(91609);var s=function(){};function a(t){if(t.startsWith("int["))return"int256"+t.slice(3);if("int"===t)return"int256";if(t.startsWith("uint["))return"uint256"+t.slice(4);if("uint"===t)return"uint256";if(t.startsWith("fixed["))return"fixed128x128"+t.slice(5);if("fixed"===t)return"fixed128x128";if(t.startsWith("ufixed["))return"ufixed128x128"+t.slice(6);else if("ufixed"===t)return"ufixed128x128";return t}function u(t){return parseInt(/^\D+(\d+)$/.exec(t)[1],10)}function c(t){var e=/^\D+(\d+)x(\d+)$/.exec(t);return[parseInt(e[1],10),parseInt(e[2],10)]}function l(t){var e=t.match(/(.*)\[(.*?)\]$/);return e?""===e[2]?"dynamic":parseInt(e[2],10):null}function h(t){var e=typeof t;if("string"===e)return i.isHexPrefixed(t)?new o(i.stripHexPrefix(t),16):new o(t,10);if("number"===e)return new o(t);if(t.toArray)return t;throw Error("Argument is not a number")}function f(t){var e=/^(\w+)\((.*)\)$/.exec(t);if(3!==e.length)throw Error("Invalid method signature");var r=/^(.+)\):\((.+)$/.exec(e[2]);if(null!==r&&3===r.length)return{method:e[1],args:r[1].split(","),retargs:r[2].split(",")};var n=e[2].split(",");return 1===n.length&&""===n[0]&&(n=[]),{method:e[1],args:n}}function d(t,e){var r,s,a,f;if("address"===t)return d("uint160",h(e));if("bool"===t)return d("uint8",e?1:0);if("string"===t)return d("bytes",n.from(e,"utf8"));if(g(t)){if(void 0===e.length)throw Error("Not an array?");if("dynamic"!==(r=l(t))&&0!==r&&e.length>r)throw Error("Elements exceed array size: "+r);for(f in a=[],t=t.slice(0,t.lastIndexOf("[")),"string"==typeof e&&(e=JSON.parse(e)),e)a.push(d(t,e[f]));if("dynamic"===r){var p=d("uint256",e.length);a.unshift(p)}return n.concat(a)}if("bytes"===t)return e=n.from(e),a=n.concat([d("uint256",e.length),e]),e.length%32!=0&&(a=n.concat([a,i.zeros(32-e.length%32)])),a;if(t.startsWith("bytes")){if((r=u(t))<1||r>32)throw Error("Invalid bytes<N> width: "+r);return i.setLengthRight(e,32)}if(t.startsWith("uint")){if((r=u(t))%8||r<8||r>256)throw Error("Invalid uint<N> width: "+r);if((s=h(e)).bitLength()>r)throw Error("Supplied uint exceeds width: "+r+" vs "+s.bitLength());if(s<0)throw Error("Supplied uint is negative");return s.toArrayLike(n,"be",32)}else if(t.startsWith("int")){if((r=u(t))%8||r<8||r>256)throw Error("Invalid int<N> width: "+r);if((s=h(e)).bitLength()>r)throw Error("Supplied int exceeds width: "+r+" vs "+s.bitLength());return s.toTwos(256).toArrayLike(n,"be",32)}else if(t.startsWith("ufixed")){if(r=c(t),(s=h(e))<0)throw Error("Supplied ufixed is negative");return d("uint256",s.mul(new o(2).pow(new o(r[1]))))}else if(t.startsWith("fixed"))return r=c(t),d("int256",h(e).mul(new o(2).pow(new o(r[1]))));throw Error("Unsupported or invalid type: "+t)}function p(t){if(g(t)){e=l(t);var e,r,n,i=t.slice(0,t.lastIndexOf("["));return i=p(i),r={isArray:!0,name:t,size:e,memoryUsage:"dynamic"===e?32:i.memoryUsage*e,subArray:i}}switch(t){case"address":n="uint160";break;case"bool":n="uint8";break;case"string":n="bytes"}if(r={rawType:n,name:t,memoryUsage:32},t.startsWith("bytes")&&"bytes"!==t||t.startsWith("uint")||t.startsWith("int")?r.size=u(t):(t.startsWith("ufixed")||t.startsWith("fixed"))&&(r.size=c(t)),t.startsWith("bytes")&&"bytes"!==t&&(r.size<1||r.size>32))throw Error("Invalid bytes<N> width: "+r.size);if((t.startsWith("uint")||t.startsWith("int"))&&(r.size%8||r.size<8||r.size>256))throw Error("Invalid int/uint<N> width: "+r.size);return r}function g(t){return t.lastIndexOf("]")===t.length-1}function m(t,e){return t.startsWith("address")||t.startsWith("bytes")?"0x"+e.toString("hex"):e.toString()}s.eventID=function(t,e){var r=t+"("+e.map(a).join(",")+")";return i.keccak256(n.from(r))},s.methodID=function(t,e){return s.eventID(t,e).slice(0,4)},s.rawEncode=function(t,e){var r=[],i=[],o=0;t.forEach(function(t){if(g(t)){var e=l(t);"dynamic"!==e?o+=32*e:o+=32}else o+=32});for(var s=0;s<t.length;s++){var u=a(t[s]),c=d(u,e[s]);"string"===u||"bytes"===u||"dynamic"===l(u)?(r.push(d("uint256",o)),i.push(c),o+=c.length):r.push(c)}return n.concat(r.concat(i))},s.rawDecode=function(t,e){var r=[];e=n.from(e);for(var i=0,s=0;s<t.length;s++){var u=p(a(t[s]),e,i),c=function t(e,r,i){if("string"==typeof e&&(e=p(e)),"address"===e.name)return t(e.rawType,r,i).toArrayLike(n,"be",20).toString("hex");
21if("bool"===e.name)return t(e.rawType,r,i).toString()===new o(1).toString();if("string"===e.name){var s,a,u,c,l=t(e.rawType,r,i);return n.from(l,"utf8").toString()}if(e.isArray){for(u=[],s=e.size,"dynamic"===e.size&&(i=t("uint256",r,i).toNumber(),s=t("uint256",r,i).toNumber(),i+=32),c=0;c<s;c++){var h=t(e.subArray,r,i);u.push(h),i+=e.subArray.memoryUsage}return u}if("bytes"===e.name)return i=t("uint256",r,i).toNumber(),s=t("uint256",r,i).toNumber(),r.slice(i+32,i+32+s);if(e.name.startsWith("bytes"))return r.slice(i,i+e.size);if(e.name.startsWith("uint")){if((a=new o(r.slice(i,i+32),16,"be")).bitLength()>e.size)throw Error("Decoded int exceeds width: "+e.size+" vs "+a.bitLength());return a}else if(e.name.startsWith("int")){if((a=new o(r.slice(i,i+32),16,"be").fromTwos(256)).bitLength()>e.size)throw Error("Decoded uint exceeds width: "+e.size+" vs "+a.bitLength());return a}else if(e.name.startsWith("ufixed")){if(s=new o(2).pow(new o(e.size[1])),!(a=t("uint256",r,i)).mod(s).isZero())throw Error("Decimals not supported yet");return a.div(s)}else if(e.name.startsWith("fixed")){if(s=new o(2).pow(new o(e.size[1])),!(a=t("int256",r,i)).mod(s).isZero())throw Error("Decimals not supported yet");return a.div(s)}throw Error("Unsupported or invalid type: "+e.name)}(u,e,i);i+=u.memoryUsage,r.push(c)}return r},s.simpleEncode=function(t){var e=Array.prototype.slice.call(arguments).slice(1),r=f(t);if(e.length!==r.args.length)throw Error("Argument count mismatch");return n.concat([s.methodID(r.method,r.args),s.rawEncode(r.args,e)])},s.simpleDecode=function(t,e){var r=f(t);if(!r.retargs)throw Error("No return values in method");return s.rawDecode(r.retargs,e)},s.stringify=function(t,e){var r=[];for(var n in t){var i=t[n],o=e[n];o=/^[^\[]+\[.*\]$/.test(i)?o.map(function(t){return m(i,t)}).join(", "):m(i,o),r.push(o)}return r},s.solidityHexValue=function(t,e,r){var o,a;if(g(t)){var c=t.replace(/\[.*?\]/,"");if(!g(c)){var f=l(t);if("dynamic"!==f&&0!==f&&e.length>f)throw Error("Elements exceed array size: "+f)}var d=e.map(function(t){return s.solidityHexValue(c,t,256)});return n.concat(d)}if("bytes"===t)return e;if("string"===t)return n.from(e,"utf8");if("bool"===t){var p=Array((r=r||8)/4).join("0");return n.from(e?p+"1":p+"0","hex")}if("address"===t){var m=20;return r&&(m=r/8),i.setLengthLeft(e,m)}if(t.startsWith("bytes")){if((o=u(t))<1||o>32)throw Error("Invalid bytes<N> width: "+o);return i.setLengthRight(e,o)}if(t.startsWith("uint")){if((o=u(t))%8||o<8||o>256)throw Error("Invalid uint<N> width: "+o);if((a=h(e)).bitLength()>o)throw Error("Supplied uint exceeds width: "+o+" vs "+a.bitLength());return r=r||o,a.toArrayLike(n,"be",r/8)}else if(t.startsWith("int")){if((o=u(t))%8||o<8||o>256)throw Error("Invalid int<N> width: "+o);if((a=h(e)).bitLength()>o)throw Error("Supplied int exceeds width: "+o+" vs "+a.bitLength());return r=r||o,a.toTwos(o).toArrayLike(n,"be",r/8)}else throw Error("Unsupported or invalid type: "+t)},s.solidityPack=function(t,e){if(t.length!==e.length)throw Error("Number of types are not matching the values");for(var r=[],i=0;i<t.length;i++){var o=a(t[i]),u=e[i];r.push(s.solidityHexValue(o,u,null))}return n.concat(r)},s.soliditySHA3=function(t,e){return i.keccak256(s.solidityPack(t,e))},s.soliditySHA256=function(t,e){return i.sha256(s.solidityPack(t,e))},s.solidityRIPEMD160=function(t,e){return i.ripemd160(s.solidityPack(t,e),!0)},s.fromSerpent=function(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];if("s"===n)e.push("bytes");else if("b"===n){for(var i,o="bytes",s=r+1;s<t.length&&(i=t[s])>="0"&&i<="9";)o+=t[s]-"0",s++;r=s-1,e.push(o)}else if("i"===n)e.push("int256");else if("a"===n)e.push("int256[]");else throw Error("Unsupported or invalid type: "+n)}return e},s.toSerpent=function(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];if("bytes"===n)e.push("s");else if(n.startsWith("bytes"))e.push("b"+u(n));else if("int256"===n)e.push("i");else if("int256[]"===n)e.push("a");else throw Error("Unsupported or invalid type: "+n)}return e.join("")},t.exports=s},91609:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&(("le"===e||"be"===e)&&(r=e,e=10),this._init(t||0,e||10,r||"be"))}
vendor: 4,188 bytes, line 21
21"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{l="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(40127).Buffer}catch(s){}function a(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=a(t,r);return r-1>=e&&(n|=a(t,r-1)<<4),n}function c(t,e,r,n){for(var i=0,o=Math.min(t.length,r),s=e;s<o;s++){var a=t.charCodeAt(s)-48;i*=n,a>=49?i+=a-49+10:a>=17?i+=a-17+10:i+=a}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return 0>t.cmp(e)?t:e},o.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=Array(this.length);for(var i,o,s=0;s<this.length;s++)this.words[s]=0;var a=0;if("be"===r)for(s=t.length-1,i=0;s>=0;s-=3)o=t[s]|t[s-1]<<8|t[s-2]<<16,this.words[i]|=o<<a&67108863,this.words[i+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===r)for(s=0,i=0;s<t.length;s+=3)o=t[s]|t[s+1]<<8|t[s+2]<<16,this.words[i]|=o<<a&67108863,this.words[i+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this.strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var o=0,s=0;if("be"===r)for(i=t.length-1;i>=e;i-=2)n=u(t,e,i)<<o,this.words[s]|=67108863&n,o>=18?(o-=18,s+=1,this.words[s]|=n>>>26):o+=8;else{var a=t.length-e;for(i=a%2==0?e+1:e;i<t.length;i+=2)n=u(t,e,i)<<o,this.words[s]|=67108863&n,o>=18?(o-=18,s+=1,this.words[s]|=n>>>26):o+=8}this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,u=0,l=r;l<a;l+=n)u=c(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==s){var h=1;for(u=c(t,l,t.length,e),l=0;l<s;l++)h*=e;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l,h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,143489
2107,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var c=1;c<n;c++){for(var l=u>>>26,h=67108863&u,f=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=f;d++){var p=c-d|0;l+=(s=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&s}r.words[c]=0|h,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var r,i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=((a<<i|o)&16777215).toString(16);r=0!=(o=a>>>24-i&16777215)||s!==this.length-1?h[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,s--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=f[t],l=d[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var g=p.modn(l).toString(t);r=(p=p.idivn(l)).isZero()?g+r:h[c-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n(void 0!==l),this.toArrayLike(l,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i,o,s=this.byteLength(),a=r||Math.max(1,s);n(s<=a,"byte array longer than desired length"),n(a>0,"Requested array length <= 0"),this.strip();var u=new t(a),c=this.clone();if("le"===e){for(o=0;!c.isZero();o++)i=c.andln(255),c.iushrn(8),u[o]=i;for(;o<a;o++)u[o]=0}else{for(o=0;o<a-s;o++)u[o]=0;for(o=0;!c.isZero();o++)i=c.andln(255),c.iushrn(8),u[a-o-1]=i}return u},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return(8191&e)==0&&(r+=13,e>>>=13),(127&e)==0&&(r+=7,e>>>=7),(15&e)==0&&(r+=4,e>>>=4),(3&e)==0&&(r+=2,e>>>=2),(1&e)==0&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return(this.length-1)*26+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n((this.negative|t.negative)==0),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n((this.negative|t.negative)==0),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){this.length>t.length?(e=this,r=t):(e=t,r=this);for(var e,r,n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n((this.negative|t.negative)==0),this.iuxor(t)}
vendor: 10,010 bytes, line 21
21,o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),e?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var e,r,n,i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e,r,n=this.iadd(t);return t.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,r=t):(e=t,r=this);for(var o=0,s=0;s<r.length;s++)o=(n=(0|e.words[s])-(0|r.words[s])+o)>>26,this.words[s]=67108863&n;for(;0!==o&&s<e.length;s++)o=(n=(0|e.words[s])+o)>>26,this.words[s]=67108863&n;if(0===o&&s<e.length&&e!==this)for(;s<e.length;s++)this.words[s]=e.words[s];return this.length=Math.max(this.length,s),e!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,c=0,l=0|s[0],h=8191&l,f=l>>>13,d=0|s[1],p=8191&d,g=d>>>13,m=0|s[2],y=8191&m,b=m>>>13,v=0|s[3],_=8191&v,w=v>>>13,M=0|s[4],S=8191&M,E=M>>>13,x=0|s[5],k=8191&x,A=x>>>13,C=0|s[6],R=8191&C,O=C>>>13,P=0|s[7],I=8191&P,T=P>>>13,N=0|s[8],L=8191&N,j=N>>>13,B=0|s[9],D=8191&B,F=B>>>13,U=0|a[0],z=8191&U,H=U>>>13,q=0|a[1],W=8191&q,V=q>>>13,K=0|a[2],G=8191&K,Z=K>>>13,$=0|a[3],J=8191&$,Y=$>>>13,Q=0|a[4],X=8191&Q,tt=Q>>>13,te=0|a[5],tr=8191&te,tn=te>>>13,ti=0|a[6],to=8191&ti,ts=ti>>>13,ta=0|a[7],tu=8191&ta,tc=ta>>>13,tl=0|a[8],th=8191&tl,tf=tl>>>13,td=0|a[9],tp=8191&td,tg=td>>>13;r.negative=t.negative^e.negative,r.length=19;var tm=(c+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(f,z)|0))<<13)|0;c=((o=Math.imul(f,H))+(i>>>13)|0)+(tm>>>26)|0,tm&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(g,z)|0,o=Math.imul(g,H);var ty=(c+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(f,W)|0))<<13)|0;c=((o=o+Math.imul(f,V)|0)+(i>>>13)|0)+(ty>>>26)|0,ty&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(b,z)|0,o=Math.imul(b,H),n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,V)|0;var tb=(c+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(f,G)|0))<<13)|0;c=((o=o+Math.imul(f,Z)|0)+(i>>>13)|0)+(tb>>>26)|0,tb&=67108863,n=Math.imul(_,z),i=(i=Math.imul(_,H))+Math.imul(w,z)|0,o=Math.imul(w,H),n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,V)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,V)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(g,G)|0,o=o+Math.imul(g,Z)|0;var tv=(c+(n=n+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(f,J)|0))<<13)|0;c=((o=o+Math.imul(f,Y)|0)+(i>>>13)|0)+(tv>>>26)|0,tv&=67108863,n=Math.imul(S,z),i=(i=Math.imul(S,H))+Math.imul(E,z)|0,o=Math.imul(E,H),n=n+Math.imul(_,W)|0,i=(i=i+Math.imul(_,V)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,V)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(g,J)|0,o=o+Math.imul(g,Y)|0;var t_=(c+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(f,X)|0))<<13)|0;c=((o=o+Math.imul(f,tt)|0)+(i>>>13)|0)+(t_>>>26)|0,t_&=67108863,n=Math.imul(k,z),i=(i=Math.imul(k,H))+Math.imul(A,z)|0,o=Math.imul(A,H),n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,V)|0)+Math.imul(E,W)|0,o=o+Math.imul(E,V)|0,n=n+Math.imul(_,G)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(w,G)|0,o=o+Math.imul(w,Z)|0,n=n+Math.imul(y,J)|0,i=(i=i+Math.imul(y,Y)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,Y)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,tt)|0;var tw=(c+(n=n+Math.imul(h,tr)|0)|0)+((8191&(i=(i=i+Math.imul(h,tn)|0)+Math.imul(f,tr)|0))<<13)|0;c=((o=o+Math.imul(f,tn)|0)+(i>>>13)|0)+(tw>>>26)|0,tw&=67108863,n=Math.imul(R,z),i=(i=Math.imul(R,H))+Math.imul(O,z)|0,o=Math.imul(O,H),n=n+Math.imul(k,W)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(A,W)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(E,G)|0,o=o+Math.imul(E,Z)|0,n=n+Math.imul(_,J)|0,i=(i=i+Math.imul(_,Y)|0)+Math.imul(w,J)|0,o=o+Math.imul(w,Y)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,tt)|0,n=n+Math.imul(p,tr)|0,i=(i=i+Math.imul(p,tn)|0)+Math.imul(g,tr)|0,o=o+Math.imul(g,tn)|0;var tM=(c+(n=n+Math.imul(h,to)|0)|0)+((8191&(i=(i=i+Math.imul(h,ts)|0)+Math.imul(f,to)|0))<<13)|0;c=((o=o+Math.imul(f,ts)|0)+(i>>>13)|0)+(tM>>>26)|0,tM&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,H))+Math.imul(T,z)|0,o=Math.imul(T,H),n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(O,W)|0,o=o+Math.imul(O,V)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(E,J)|0,o=o+Math.imul(E,Y)|0,n=n+Math.imul(_,X)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,tt)|0,n=n+Math.imul(y,tr)|0,i=(i=i+Math.imul(y,tn)|0)+Math.imul(b,tr)|0,o=o+Math.imul(b,tn)|0,n=n+Math.imul(p,to)|0,i=(i=i+Math.imul(p,ts)|0)+Math.imul(g,to)|0,o=o+Math.imul(g,ts)|0;var tS=(c+(n=n+Math.imul(h,tu)|0)|0)+((8191&(i=(i=i+Math.imul(h,tc)|0)+Math.imul(f,tu)|0))<<13)|0;c=((o=o+Math.imul(f,tc)|0)+(i>>>13)|0)+(tS>>>26)|0,tS&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(j,z)|0,o=Math.imul(j,H),n=n+Math.imul(I,W)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,V)|0,n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,Z)|0,n=n+Math.imul(k,J)|0,i=(i=i+Math.imul(k,Y)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,Y)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(E,X)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(_,tr)|0,i=(i=i+Math.imul(_,tn)|0)+Math.imul(w,tr)|0,o=o+Math.imul(w,tn)|0,n=n+Math.imul(y,to)|0,i=(i=i+Math.imul(y,ts)|0)+Math.imul(b,to)|0,o=o+Math.imul(b,ts)|0,n=n+Math.imul(p,tu)|0,i=(i=i+Math.imul(p,tc)|0)+Math.imul(g,tu)|0,o=o+Math.imul(g,tc)|0;var tE=(c+(n=n+Math.imul(h,th)|0)|0)+((8191&(i=(i=i+Math.imul(h,tf)|0)+Math.imul(f,th)|0))<<13)|0;c=((o=o+Math.imul(f,tf)|0)+(i>>>13)|0)+(tE>>>26)|0,tE&=67108863,n=Math.imul(D,z),i=(i=Math.imul(D,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(L,W)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,V)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(T,G)|0,o=o+Math.imul(T,Z)|0,n=n+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,Y)|0,n=n+Math.imul(k,X)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(S,tr)|0,i=(i=i+Math.imul(S,tn)|0)+Math.imul(E,tr)|0,o=o+Math.imul(E,tn)|0,n=n+Math.imul(_,to)|0,i=(i=i+Math.imul(_,ts)|0)+Math.imul(w,to)|0,o=o+Math.imul(w,ts)|0,n=n+Math.imul(y,tu)|0,i=(i=i+Math.imul(y,tc)|0)+Math.imul(b,tu)|0,o=o+Math.imul(b,tc)|0,n=n+Math.imul(p,th)|0,i=(i=i+Math.imul(p,tf)|0)+Math.imul(g,th)|0,o=o+Math.imul(g,tf)|0;var tx=(c+(n=n+Math.imul(h,tp)|0)|0)+((8191&(i=(i=i+Math.imul(h,tg)|0)+Math.imul(f,tp)|0))<<13)|0;c=((o=o+Math.imul(f,tg)|0)+(i>>>13)|0)+(tx>>>26)|0,tx&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,V))+Math.imul(F,W)|0,o=Math.imul(F,V),n=n+Math.imul(L,G)|0,i=(i=i+Math.imul(L,Z)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,Z)|0,n=n+Math.imul(I,J)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,Y)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(k,tr)|0,i=(i=i+Math.imul(k,tn)|0)+Math.imul(A,tr)|0,o=o+Math.imul(A,tn)|0,n=n+Math.imul(S,to)|0,i=(i=i+Math.imul(S,ts)|0)+Math.imul(E,to)|0,o=o+Math.imul(E,ts)|0,n=n+Math.imul(_,tu)|0,i=(i=i+Math.imul(_,tc)|0)+Math.imul(w,tu)|0,o=o+Math.imul(w,tc)|0,n=n+Math.imul(y,th)|0,i=(i=i+Math.imul(y,tf)|0)+Math.imul(b,th)|0,o=o+Math.imul(b,tf)|0;var tk=(c+(n=n+Math.imul(p,tp)|0)|0)+((8191&(i=(i=i+Math.imul(p,tg)|0)+Math.imul(g,tp)|0))<<13)|0;c=((o=o+Math.imul(g,tg)|0)+(i>>>13)|0)+(tk>>>26)|0,tk&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,Z))+Math.imul(F,G)|0,o=Math.imul(F,Z),n=n+Math.imul(L,J)|0,i=(i=i+Math.imul(L,Y)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(R,tr)|0,i=(i=i+Math.imul(R,tn)|0)+Math.imul(O,tr)|0,o=o+Math.imul(O,tn)|0,n=n+Math.imul(k,to)|0,i=(i=i+Math.imul(k,ts)|0)+Math.imul(A,to)|0,o=o+Math.imul(A,ts)|0,n=n+Math.imul(S,tu)|0,i=(i=i+Math.imul(S,tc)|0)+Math.imul(E,tu)|0,o=o+Math.imul(E,tc)|0,n=n+Math.imul(_,th)|0,i=(i=i+Math.imul(_,tf)|0)+Math.imul(w,th)|0,o=o+Math.imul(w,tf)|0;var tA=(c+(n=n+Math.imul(y,tp)|0)|0)+((8191&(i=(i=i+Math.imul(y,tg)|0)+Math.imul(b,tp)|0))<<13)|0;c=((o=o+Math.imul(b,tg)|0)+(i>>>13)|0)+(tA>>>26)|0,tA&=67108863,n=Math.imul(D,J),i=(i=Math.imul(D,Y))+Math.imul(F,J)|0,o=Math.imul(F,Y),n=n+Math.imul(L,X)|0,i=(i=i+Math.imul(L,tt)|0)+Math.imul(j,
vendor: 6,026 bytes, line 21
21X)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(I,tr)|0,i=(i=i+Math.imul(I,tn)|0)+Math.imul(T,tr)|0,o=o+Math.imul(T,tn)|0,n=n+Math.imul(R,to)|0,i=(i=i+Math.imul(R,ts)|0)+Math.imul(O,to)|0,o=o+Math.imul(O,ts)|0,n=n+Math.imul(k,tu)|0,i=(i=i+Math.imul(k,tc)|0)+Math.imul(A,tu)|0,o=o+Math.imul(A,tc)|0,n=n+Math.imul(S,th)|0,i=(i=i+Math.imul(S,tf)|0)+Math.imul(E,th)|0,o=o+Math.imul(E,tf)|0;var tC=(c+(n=n+Math.imul(_,tp)|0)|0)+((8191&(i=(i=i+Math.imul(_,tg)|0)+Math.imul(w,tp)|0))<<13)|0;c=((o=o+Math.imul(w,tg)|0)+(i>>>13)|0)+(tC>>>26)|0,tC&=67108863,n=Math.imul(D,X),i=(i=Math.imul(D,tt))+Math.imul(F,X)|0,o=Math.imul(F,tt),n=n+Math.imul(L,tr)|0,i=(i=i+Math.imul(L,tn)|0)+Math.imul(j,tr)|0,o=o+Math.imul(j,tn)|0,n=n+Math.imul(I,to)|0,i=(i=i+Math.imul(I,ts)|0)+Math.imul(T,to)|0,o=o+Math.imul(T,ts)|0,n=n+Math.imul(R,tu)|0,i=(i=i+Math.imul(R,tc)|0)+Math.imul(O,tu)|0,o=o+Math.imul(O,tc)|0,n=n+Math.imul(k,th)|0,i=(i=i+Math.imul(k,tf)|0)+Math.imul(A,th)|0,o=o+Math.imul(A,tf)|0;var tR=(c+(n=n+Math.imul(S,tp)|0)|0)+((8191&(i=(i=i+Math.imul(S,tg)|0)+Math.imul(E,tp)|0))<<13)|0;c=((o=o+Math.imul(E,tg)|0)+(i>>>13)|0)+(tR>>>26)|0,tR&=67108863,n=Math.imul(D,tr),i=(i=Math.imul(D,tn))+Math.imul(F,tr)|0,o=Math.imul(F,tn),n=n+Math.imul(L,to)|0,i=(i=i+Math.imul(L,ts)|0)+Math.imul(j,to)|0,o=o+Math.imul(j,ts)|0,n=n+Math.imul(I,tu)|0,i=(i=i+Math.imul(I,tc)|0)+Math.imul(T,tu)|0,o=o+Math.imul(T,tc)|0,n=n+Math.imul(R,th)|0,i=(i=i+Math.imul(R,tf)|0)+Math.imul(O,th)|0,o=o+Math.imul(O,tf)|0;var tO=(c+(n=n+Math.imul(k,tp)|0)|0)+((8191&(i=(i=i+Math.imul(k,tg)|0)+Math.imul(A,tp)|0))<<13)|0;c=((o=o+Math.imul(A,tg)|0)+(i>>>13)|0)+(tO>>>26)|0,tO&=67108863,n=Math.imul(D,to),i=(i=Math.imul(D,ts))+Math.imul(F,to)|0,o=Math.imul(F,ts),n=n+Math.imul(L,tu)|0,i=(i=i+Math.imul(L,tc)|0)+Math.imul(j,tu)|0,o=o+Math.imul(j,tc)|0,n=n+Math.imul(I,th)|0,i=(i=i+Math.imul(I,tf)|0)+Math.imul(T,th)|0,o=o+Math.imul(T,tf)|0;var tP=(c+(n=n+Math.imul(R,tp)|0)|0)+((8191&(i=(i=i+Math.imul(R,tg)|0)+Math.imul(O,tp)|0))<<13)|0;c=((o=o+Math.imul(O,tg)|0)+(i>>>13)|0)+(tP>>>26)|0,tP&=67108863,n=Math.imul(D,tu),i=(i=Math.imul(D,tc))+Math.imul(F,tu)|0,o=Math.imul(F,tc),n=n+Math.imul(L,th)|0,i=(i=i+Math.imul(L,tf)|0)+Math.imul(j,th)|0,o=o+Math.imul(j,tf)|0;var tI=(c+(n=n+Math.imul(I,tp)|0)|0)+((8191&(i=(i=i+Math.imul(I,tg)|0)+Math.imul(T,tp)|0))<<13)|0;c=((o=o+Math.imul(T,tg)|0)+(i>>>13)|0)+(tI>>>26)|0,tI&=67108863,n=Math.imul(D,th),i=(i=Math.imul(D,tf))+Math.imul(F,th)|0,o=Math.imul(F,tf);var tT=(c+(n=n+Math.imul(L,tp)|0)|0)+((8191&(i=(i=i+Math.imul(L,tg)|0)+Math.imul(j,tp)|0))<<13)|0;c=((o=o+Math.imul(j,tg)|0)+(i>>>13)|0)+(tT>>>26)|0,tT&=67108863;var tN=(c+(n=Math.imul(D,tp))|0)+((8191&(i=(i=Math.imul(D,tg))+Math.imul(F,tp)|0))<<13)|0;return c=((o=Math.imul(F,tg))+(i>>>13)|0)+(tN>>>26)|0,tN&=67108863,u[0]=tm,u[1]=ty,u[2]=tb,u[3]=tv,u[4]=t_,u[5]=tw,u[6]=tM,u[7]=tS,u[8]=tE,u[9]=tx,u[10]=tk,u[11]=tA,u[12]=tC,u[13]=tR,u[14]=tO,u[15]=tP,u[16]=tI,u[17]=tT,u[18]=tN,0!==c&&(u[19]=c,r.length++),r};function m(t,e,r){return new y().mulp(t,e,r)}function y(t,e){this.x=t,this.y=e}Math.imul||(g=p),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):r<63?p(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var l=o-c,h=(0|t.words[l])*(0|e.words[c]),f=67108863&h;s=s+(h/67108864|0)|0,a=67108863&(f=f+a|0),i+=(s=s+(f>>>26)|0)>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,t,e):m(this,t,e)},y.prototype.makeRBT=function(t){for(var e=Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s<o;s++)n[s]=e[t[s]],i[s]=r[t[s]]},y.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),c=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var h=u,f=c,d=0;d<s;d++){var p=r[l+d],g=n[l+d],m=r[l+d+s],y=n[l+d+s],b=h*m-f*y;y=h*y+f*m,m=b,r[l+d]=p+m,n[l+d]=g+y,r[l+d+s]=p-m,n[l+d+s]=g-y,d!==a&&(b=u*h-c*f,f=u*f+c*h,h=b)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},y.prototype.convert13b=function(t,e,r,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)r[s]=0;n(0===o),n((-8192&o)==0)},y.prototype.stub=function(t){for(var e=Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),s=Array(n),a=Array(n),u=Array(n),c=Array(n),l=Array(n),h=Array(n),f=r.words;f.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,c,n),this.transform(s,o,a,u,n,i),this.transform(c,o,l,h,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-u[d]*h[d];u[d]=a[d]*h[d]+u[d]*l[d],a[d]=p}return this.conjugate(a,u,n),this.transform(a,u,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>
vendor: 17,840 bytes, line 21
2126,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<r;this.words[e]=u|s,s=a>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var i,o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var c=0;c<s;c++)u.words[c]=this.words[c];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,c=0;c<this.length;c++)this.words[c]=this.words[c+s];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var h=0|this.words[c];this.words[c]=l<<26-o|h>>>o,l=h&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return!(this.length<=r)&&!!(this.words[r]&1<<e)},o.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==e&&r++,this.length=Math.min(r,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this.strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return(n("number"==typeof t),n(t<67108864),t<0)?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,s=t.length+r;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+a;var u=(0|t.words[i])*e;o-=67108863&u,a=(o>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)a=(o=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r,n=this.length-t.length,i=this.clone(),s=t,a=0|s.words[s.length-1];0!=(n=26-this._countBits(a))&&(s=s.ushln(n),i.iushln(n),a=0|s.words[s.length-1]);var u=i.length-s.length;if("mod"!==e){(r=new o(null)).length=u+1,r.words=Array(r.length);for(var c=0;c<r.length;c++)r.words[c]=0}var l=i.clone()._ishlnsubmul(s,1,u);0===l.negative&&(i=l,r&&(r.words[u]=1));for(var h=u-1;h>=0;h--){var f=(0|i.words[s.length+h])*67108864+(0|i.words[s.length+h-1]);for(f=Math.min(f/a|0,67108863),i._ishlnsubmul(s,f,h);0!==i.negative;)f--,i.negative=0,i._ishlnsubmul(s,1,h),i.isZero()||(i.negative^=1);r&&(r.words[h]=f)}return r&&r.strip(),i.strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(t,e,r){var i,s,a;return(n(!t.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):(this.negative&t.negative)!=0?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||0>this.cmp(t)?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=67108864%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),s=new o(0),a=new o(0),u=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var f=0,d=1;(e.words[0]&d)==0&&f<26;++f,d<<=1);if(f>0)for(e.iushrn(f);f-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(h)),i.iushrn(1),s.iushrn(1);for(var p=0,g=1;(r.words[0]&g)==0&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(h)),a.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),s.isub(u)):(r.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e,r=this,i=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var s=new o(1),a=new o(0),u=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,l=1;(r.words[0]&l)==0&&c<26;++c,l<<=1);if(c>0)for(r.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);for(var h=0,f=1;(i.words[0]&f)==0&&h<26;++h,f<<=1);if(h>0)for(i.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),s.isub(a)):(i.isub(r),a.isub(s))}return 0>(e=0===r.cmpn(1)?s:a).cmpn(0)&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return -1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return -1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return -1===this.cmpn(t)},o.prototype.lt=function(t){return -1===this.cmp(t)},o.prototype.lten=function(t){return 0>=this.cmpn(t)},o.prototype.lte=function(t){return 0>=this.cmp(t)},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new E(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new o(null);return t.words=Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,r=t;do this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},i(_,v),_.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9){t.words[0]=0,t.length=1;return}var i=t.words[9];for(n=10,e.words[e.length++]=4194303&i;n<t.length;n++){var o=0|t.words[n];t.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[n-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},_.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(w,v),i(M,v),i(S,v),S.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=(0|t.words[r])*19+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){var e;if(b[t])return b[t];if("k256"===t)e=new _;else if("p224"===t)e=new w;else if("p192"===t)e=new M;else if("p25519"===t)e=new S;else throw Error("Unknown prime "+t);return b[t]=e,e},E.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){n((t.negative|e.negative)==0,"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var h=this.pow(l,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;0!==d.cmp(a);){for(var g=d,m=0;0!==g.cmp(a);m++)g=g.redSqr();n(m<p);var y=this.pow(h,new o(1).iushln(p-m-1));f=f.redMul(y),h=y.redSqr(),d=d.redMul(h),p=m}return f},E.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},E.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],s=0,a=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],l=u-1;l>=0;l--){var h=c>>l&1;if(i!==r[0]&&(i=this.sqr(i)),0===h&&0===s){a=0;continue}s<<=1,s|=h,(4==++a||0===n&&0===l)&&(i=this.mul(i,r[s]),a=0,s=0)}u=26}return i},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new x(t)},i(x,E),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):0>
21i.cmpn(0)&&(s=i.iadd(this.m)),s._forceRed(this)},x.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},30248:function(t,e,r){"use strict";var n=r(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.importPublic=e.privateToPublic=e.privateToAddress=e.publicToAddress=e.pubToAddress=e.isValidPublic=e.isValidPrivate=e.isPrecompiled=e.generateAddress2=e.generateAddress=e.isValidChecksumAddress=e.toChecksumAddress=e.isZeroAddress=e.isValidAddress=e.zeroAddress=void 0;var i=r(27596),o=r(80884),s=r(83230),a=r(91609),u=r(77124),c=r(91550);e.zeroAddress=function(){var t=u.zeros(20);return u.bufferToHex(t)},e.isValidAddress=function(t){return/^0x[0-9a-fA-F]{40}$/.test(t)},e.isZeroAddress=function(t){return e.zeroAddress()===u.addHexPrefix(t)},e.toChecksumAddress=function(t,e){t=o.stripHexPrefix(t).toLowerCase();for(var r=void 0!==e?e.toString()+"0x":"",n=c.keccak(r+t).toString("hex"),i="0x",s=0;s<t.length;s++)parseInt(n[s],16)>=8?i+=t[s].toUpperCase():i+=t[s];return i},e.isValidChecksumAddress=function(t,r){return e.isValidAddress(t)&&e.toChecksumAddress(t,r)===t},e.generateAddress=function(t,e){t=u.toBuffer(t);var r=new a(e);return r.isZero()?c.rlphash([t,null]).slice(-20):c.rlphash([t,n.from(r.toArray())]).slice(-20)},e.generateAddress2=function(t,e,r){var o=u.toBuffer(t),s=u.toBuffer(e),a=u.toBuffer(r);return i(20===o.length),i(32===s.length),c.keccak256(n.concat([n.from("ff","hex"),o,s,c.keccak256(a)])).slice(-20)},e.isPrecompiled=function(t){var e=u.unpad(t);return 1===e.length&&e[0]>=1&&e[0]<=8},e.isValidPrivate=function(t){return s.privateKeyVerify(t)},e.isValidPublic=function(t,e){return(void 0===e&&(e=!1),64===t.length)?s.publicKeyVerify(n.concat([n.from([4]),t])):!!e&&s.publicKeyVerify(t)},e.pubToAddress=function(t,e){return void 0===e&&(e=!1),t=u.toBuffer(t),e&&64!==t.length&&(t=s.publicKeyConvert(t,!1).slice(1)),i(64===t.length),c.keccak(t).slice(-20)},e.publicToAddress=e.pubToAddress,e.privateToAddress=function(t){return e.publicToAddress(e.privateToPublic(t))},e.privateToPublic=function(t){return t=u.toBuffer(t),s.publicKeyCreate(t,!1).slice(1)},e.importPublic=function(t){return 64!==(t=u.toBuffer(t)).length&&(t=s.publicKeyConvert(t,!1).slice(1)),t}},77124:function(t,e,r){"use strict";var n=r(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.baToJSON=e.addHexPrefix=e.toUnsigned=e.fromSigned=e.bufferToHex=e.bufferToInt=e.toBuffer=e.stripZeros=e.unpad=e.setLengthRight=e.setLength=e.setLengthLeft=e.zeros=void 0;var i=r(80884),o=r(91609);e.zeros=function(t){return n.allocUnsafe(t).fill(0)},e.setLengthLeft=function(t,r,n){void 0===n&&(n=!1);var i=e.zeros(r);return(t=e.toBuffer(t),n)?t.length<r?(t.copy(i),i):t.slice(0,r):t.length<r?(t.copy(i,r-t.length),i):t.slice(-r)},e.setLength=e.setLengthLeft,e.setLengthRight=function(t,r){return e.setLength(t,r,!0)},e.unpad=function(t){for(var e=(t=i.stripHexPrefix(t))[0];t.length>0&&"0"===e.toString();)e=(t=t.slice(1))[0];return t},e.stripZeros=e.unpad,e.toBuffer=function(t){if(!n.isBuffer(t)){if(Array.isArray(t))t=n.from(t);else if("string"==typeof t){if(i.isHexString(t))t=n.from(i.padToEven(i.stripHexPrefix(t)),"hex");else throw Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: "+t)}else if("number"==typeof t)t=i.intToBuffer(t);else if(null==t)t=n.allocUnsafe(0);else if(o.isBN(t))t=t.toArrayLike(n);else if(t.toArray)t=n.from(t.toArray());else throw Error("invalid type")}return t},e.bufferToInt=function(t){return new o(e.toBuffer(t)).toNumber()},e.bufferToHex=function(t){return"0x"+(t=e.toBuffer(t)).toString("hex")},e.fromSigned=function(t){return new o(t).fromTwos(256)},e.toUnsigned=function(t){return n.from(t.toTwos(256).toArray())},e.addHexPrefix=function(t){return"string"!=typeof t?t:i.isHexPrefixed(t)?t:"0x"+t},e.baToJSON=function(t){if(n.isBuffer(t))return"0x"+t.toString("hex");if(t instanceof Array){for(var r=[],i=0;i<t.length;i++)r.push(e.baToJSON(t[i]));return r}}},46649:function(t,e,r){"use strict";var n=r(48764).Buffer;
21Object.defineProperty(e,"__esModule",{value:!0}),e.KECCAK256_RLP=e.KECCAK256_RLP_S=e.KECCAK256_RLP_ARRAY=e.KECCAK256_RLP_ARRAY_S=e.KECCAK256_NULL=e.KECCAK256_NULL_S=e.TWO_POW256=e.MAX_INTEGER=void 0;var i=r(91609);e.MAX_INTEGER=new i("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),e.TWO_POW256=new i("10000000000000000000000000000000000000000000000000000000000000000",16),e.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",e.KECCAK256_NULL=n.from(e.KECCAK256_NULL_S,"hex"),e.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",e.KECCAK256_RLP_ARRAY=n.from(e.KECCAK256_RLP_ARRAY_S,"hex"),e.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",e.KECCAK256_RLP=n.from(e.KECCAK256_RLP_S,"hex")},91550:function(t,e,r){"use strict";var n=r(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.rlphash=e.ripemd160=e.sha256=e.keccak256=e.keccak=void 0;var i=r(82192),o=i.keccak224,s=i.keccak384,a=i.keccak256,u=i.keccak512,c=r(23482),l=r(80884),h=r(51675),f=r(77124);e.keccak=function(t,e){switch(void 0===e&&(e=256),t="string"!=typeof t||l.isHexString(t)?f.toBuffer(t):n.from(t,"utf8"),e||(e=256),e){case 224:return o(t);case 256:return a(t);case 384:return s(t);case 512:return u(t);default:throw Error("Invald algorithm: keccak"+e)}},e.keccak256=function(t){return e.keccak(t)},e.sha256=function(t){return t=f.toBuffer(t),c("sha256").update(t).digest()},e.ripemd160=function(t,e){t=f.toBuffer(t);var r=c("rmd160").update(t).digest();return!0===e?f.setLength(r,32):r},e.rlphash=function(t){return e.keccak(h.encode(t))}},86589:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||e.hasOwnProperty(r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.secp256k1=e.rlp=e.BN=void 0;var o=r(83230);e.secp256k1=o;var s=r(80884),a=r(91609);e.BN=a;var u=r(51675);e.rlp=u,Object.assign(e,s),i(r(46649),e),i(r(30248),e),i(r(91550),e),i(r(86232),e),i(r(77124),e),i(r(81113),e)},81113:function(t,e,r){"use strict";var n=r(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.defineProperties=void 0;var i=r(27596),o=r(80884),s=r(51675),a=r(77124);e.defineProperties=function(t,e,r){if(t.raw=[],t._fields=[],t.toJSON=function(e){if(void 0===e&&(e=!1),e){var r={};return t._fields.forEach(function(e){r[e]="0x"+t[e].toString("hex")}),r}return a.baToJSON(t.raw)},t.serialize=function(){return s.encode(t.raw)},e.forEach(function(e,r){function o(){return t.raw[r]}function s(o){"00"!==(o=a.toBuffer(o)).toString("hex")||e.allowZero||(o=n.allocUnsafe(0)),e.allowLess&&e.length?(o=a.stripZeros(o),i(e.length>=o.length,"The field "+e.name+" must not have more "+e.length+" bytes")):!(e.allowZero&&0===o.length)&&e.length&&i(e.length===o.length,"The field "+e.name+" must have byte length of "+e.length),t.raw[r]=o}t._fields.push(e.name),Object.defineProperty(t,e.name,{enumerable:!0,configurable:!0,get:o,set:s}),e.default&&(t[e.name]=e.default),e.alias&&Object.defineProperty(t,e.alias,{enumerable:!1,configurable:!0,set:s,get:o})}),r){if("string"==typeof r&&(r=n.from(o.stripHexPrefix(r),"hex")),n.isBuffer(r)&&(r=s.decode(r)),Array.isArray(r)){if(r.length>t._fields.length)throw Error("wrong number of fields in data");r.forEach(function(e,r){t[t._fields[r]]=a.toBuffer(e)})}else if("object"==typeof r){var u=Object.keys(r);e.forEach(function(e){-1!==u.indexOf(e.name)&&(t[e.name]=r[e.name]),-1!==u.indexOf(e.alias)&&(t[e.alias]=r[e.alias])})}else throw Error("invalid data")}}},83230:function(t,e,r){"use strict";var n=r(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.ecdhUnsafe=e.ecdh=e.recover=e.verify=e.sign=e.signatureImportLax=e.signatureImport=e.signatureExport=e.signatureNormalize=e.publicKeyCombine=e.publicKeyTweakMul=e.publicKeyTweakAdd=e.publicKeyVerify=e.publicKeyConvert=e.publicKeyCreate=e.privateKeyTweakMul=e.privateKeyTweakAdd=e.privateKeyModInverse=e.privateKeyNegate=e.privateKeyImport=e.privateKeyExport=e.privateKeyVerify=void 0;var i=r(95053),o=r(78427),s=r(33646);e.privateKeyVerify=function(t){return 32===t.length&&i.privateKeyVerify(Uint8Array.from(t))},e.privateKeyExport=function(t,e){if(32!==t.length)throw RangeError("private key length is invali
21d");var r=o.privateKeyExport(t,e);return s.privateKeyExport(t,r,e)},e.privateKeyImport=function(t){if(null!==(t=s.privateKeyImport(t))&&32===t.length&&e.privateKeyVerify(t))return t;throw Error("couldn't import from DER format")},e.privateKeyNegate=function(t){return n.from(i.privateKeyNegate(Uint8Array.from(t)))},e.privateKeyModInverse=function(t){if(32!==t.length)throw Error("private key length is invalid");return n.from(o.privateKeyModInverse(Uint8Array.from(t)))},e.privateKeyTweakAdd=function(t,e){return n.from(i.privateKeyTweakAdd(Uint8Array.from(t),e))},e.privateKeyTweakMul=function(t,e){return n.from(i.privateKeyTweakMul(Uint8Array.from(t),Uint8Array.from(e)))},e.publicKeyCreate=function(t,e){return n.from(i.publicKeyCreate(Uint8Array.from(t),e))},e.publicKeyConvert=function(t,e){return n.from(i.publicKeyConvert(Uint8Array.from(t),e))},e.publicKeyVerify=function(t){return(33===t.length||65===t.length)&&i.publicKeyVerify(Uint8Array.from(t))},e.publicKeyTweakAdd=function(t,e,r){return n.from(i.publicKeyTweakAdd(Uint8Array.from(t),Uint8Array.from(e),r))},e.publicKeyTweakMul=function(t,e,r){return n.from(i.publicKeyTweakMul(Uint8Array.from(t),Uint8Array.from(e),r))},e.publicKeyCombine=function(t,e){var r=[];return t.forEach(function(t){r.push(Uint8Array.from(t))}),n.from(i.publicKeyCombine(r,e))},e.signatureNormalize=function(t){return n.from(i.signatureNormalize(Uint8Array.from(t)))},e.signatureExport=function(t){return n.from(i.signatureExport(Uint8Array.from(t)))},e.signatureImport=function(t){return n.from(i.signatureImport(Uint8Array.from(t)))},e.signatureImportLax=function(t){if(0===t.length)throw RangeError("signature length is invalid");var e=s.signatureImportLax(t);if(null===e)throw Error("couldn't parse DER signature");return o.signatureImport(e)},e.sign=function(t,e,r){if(null===r)throw TypeError("options should be an Object");var o=void 0;if(r){if(o={},null===r.data)throw TypeError("options.data should be a Buffer");if(r.data){if(32!=r.data.length)throw RangeError("options.data length is invalid");o.data=new Uint8Array(r.data)}if(null===r.noncefn)throw TypeError("options.noncefn should be a Function");r.noncefn&&(o.noncefn=function(t,e,i,o,s){var a=null!=i?n.from(i):null,u=null!=o?n.from(o):null,c=n.from("");return r.noncefn&&(c=r.noncefn(n.from(t),n.from(e),a,u,s)),new Uint8Array(c)})}var s=i.ecdsaSign(Uint8Array.from(t),Uint8Array.from(e),o);return{signature:n.from(s.signature),recovery:s.recid}},e.verify=function(t,e,r){return i.ecdsaVerify(Uint8Array.from(e),Uint8Array.from(t),r)},e.recover=function(t,e,r,o){return n.from(i.ecdsaRecover(Uint8Array.from(e),r,Uint8Array.from(t),o))},e.ecdh=function(t,e){return n.from(i.ecdh(Uint8Array.from(t),Uint8Array.from(e),{}))},e.ecdhUnsafe=function(t,e,r){if(33!==t.length&&65!==t.length)throw RangeError("public key length is invalid");if(32!==e.length)throw RangeError("private key length is invalid");return n.from(o.ecdhUnsafe(Uint8Array.from(t),Uint8Array.from(e),r))}},33646:function(t,e,r){"use strict";var n=r(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0});var i=n.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),o=n.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);e.privateKeyExport=function(t,e,r){void 0===r&&(r=!0);var s=n.from(r?i:o);return t.copy(s,r?8:9),e.copy(s,r?181:214),s},e.privateKeyImport=function(t){var e=t.length,r=0;if(e<1||48!==t[r]||e<(r+=1)+1||!(128&t[r]))return null;var n=127&t[r];if(r+=1,n<1||n>2||e<r+n)return null;var i=t[r+n-1]|(n>1?t[r+n-2]<<8:0);return e<(r+=n)+i||e<r+3||2!==t[r]||1!==t[r+1]||1!==t[r+2]||e<(r+=3)+2||4!==t[r]||t[r+1]>32||e<r+2+t[r+1]?null:t.slice(r+2,r+2+t[r+1])}
21,e.signatureImportLax=function(t){var e=n.alloc(32,0),r=n.alloc(32,0),i=t.length,o=0;if(48!==t[o++])return null;var s=t[o++];if(128&s&&(o+=s-128)>i||2!==t[o++])return null;var a=t[o++];if(128&a){if(o+(s=a-128)>i)return null;for(;s>0&&0===t[o];o+=1,s-=1);for(a=0;s>0;o+=1,s-=1)a=(a<<8)+t[o]}if(a>i-o)return null;var u=o;if(o+=a,2!==t[o++])return null;var c=t[o++];if(128&c){if(o+(s=c-128)>i)return null;for(;s>0&&0===t[o];o+=1,s-=1);for(c=0;s>0;o+=1,s-=1)c=(c<<8)+t[o]}if(c>i-o)return null;var l=o;for(o+=c;a>0&&0===t[u];a-=1,u+=1);if(a>32)return null;var h=t.slice(u,u+a);for(h.copy(e,32-h.length);c>0&&0===t[l];c-=1,l+=1);if(c>32)return null;var f=t.slice(l,l+c);return f.copy(r,32-f.length),{r:e,s:r}}},78427:function(t,e,r){"use strict";var n=r(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0});var i=r(91609),o=new(r(86266)).ec("secp256k1"),s=o.curve;e.privateKeyExport=function(t,e){void 0===e&&(e=!0);var r=new i(t);if(r.ucmp(s.n)>=0)throw Error("couldn't export to DER format");var n=o.g.mul(r);return a(n.getX(),n.getY(),e)},e.privateKeyModInverse=function(t){var e=new i(t);if(e.ucmp(s.n)>=0||e.isZero())throw Error("private key range is invalid");return e.invm(s.n).toArrayLike(n,"be",32)},e.signatureImport=function(t){var e=new i(t.r);e.ucmp(s.n)>=0&&(e=new i(0));var r=new i(t.s);return r.ucmp(s.n)>=0&&(r=new i(0)),n.concat([e.toArrayLike(n,"be",32),r.toArrayLike(n,"be",32)])},e.ecdhUnsafe=function(t,e,r){void 0===r&&(r=!0);var n=o.keyFromPublic(t),u=new i(e);if(u.ucmp(s.n)>
21=0||u.isZero())throw Error("scalar was invalid (zero or overflow)");var c=n.pub.mul(u);return a(c.getX(),c.getY(),r)};var a=function(t,e,r){var i;return r?((i=n.alloc(33))[0]=e.isOdd()?3:2,t.toArrayLike(n,"be",32).copy(i,1)):((i=n.alloc(65))[0]=4,t.toArrayLike(n,"be",32).copy(i,1),e.toArrayLike(n,"be",32).copy(i,33)),i}},86232:function(t,e,r){"use strict";var n=r(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.hashPersonalMessage=e.isValidSignature=e.fromRpcSig=e.toRpcSig=e.ecrecover=e.ecsign=void 0;var i=r(83230),o=r(91609),s=r(77124),a=r(91550);function u(t,e){return e?t-(2*e+35):t-27}function c(t){return 0===t||1===t}e.ecsign=function(t,e,r){var n=i.sign(t,e),o=n.recovery;return{r:n.signature.slice(0,32),s:n.signature.slice(32,64),v:r?o+(2*r+35):o+27}},e.ecrecover=function(t,e,r,o,a){var l=n.concat([s.setLength(r,32),s.setLength(o,32)],64),h=u(e,a);if(!c(h))throw Error("Invalid signature v value");var f=i.recover(t,l,h);return i.publicKeyConvert(f,!1).slice(1)},e.toRpcSig=function(t,e,r,i){if(!c(u(t,i)))throw Error("Invalid signature v value");return s.bufferToHex(n.concat([s.setLengthLeft(e,32),s.setLengthLeft(r,32),s.toBuffer(t)]))},e.fromRpcSig=function(t){var e=s.toBuffer(t);if(65!==e.length)throw Error("Invalid signature length");var r=e[64];return r<27&&(r+=27),{v:r,r:e.slice(0,32),s:e.slice(32,64)}},e.isValidSignature=function(t,e,r,n,i){void 0===n&&(n=!0);var s=new o("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),a=new o("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==e.length||32!==r.length||!c(u(t,i)))return!1;var l=new o(e),h=new o(r);return!(l.isZero()||l.gt(a)||h.isZero()||h.gt(a))&&(!n||1!==h.cmp(s))},e.hashPersonalMessage=function(t){var e=n.from("\x19Ethereum Signed Message:\n"+t.length.toString(),"utf-8");return a.keccak(n.concat([e,t]))}},29847:function(t,e,r){"use strict";var n=r(48764).Buffer,i=r(21964),o=r(16523),s=i.BN,a=new s("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),u=function(){function t(e){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),e=e||{};var r=[{name:"nonce",length:32,allowLess:!0,default:new n([])},{name:"gasPrice",length:32,allowLess:!0,default:new n([])},{name:"gasLimit",alias:"gas",length:32,allowLess:!0,default:new n([])},{name:"to",allowZero:!0,length:20,default:new n([])},{name:"value",length:32,allowLess:!0,default:new n([])},{name:"data",alias:"input",allowZero:!0,default:new n([])},{name:"v",allowZero:!0,default:new n([28])},{name:"r",length:32,allowZero:!0,allowLess:!0,default:new n([])},{name:"s",length:32,allowZero:!0,allowLess:!0,default:new n([])}];i.defineProperties(this,r,e),Object.defineProperty(this,"from",{enumerable:!0,configurable:!0,get:this.getSenderAddress.bind(this)});var o=Math.floor((i.bufferToInt(this.v)-35)/2);o<0&&(o=0),this._chainId=o||e.chainId||0,this._homestead=!0}return t.prototype.toCreationAddress=function(){return""===this.to.toString("hex")},t.prototype.hash=function(t){void 0===t&&(t=!0);var e=void 0;if(t)e=this.raw;else if(this._chainId>0){var r=this.raw.slice();this.v=this._chainId,this.r=0,this.s=0,e=this.raw,this.raw=r}else e=this.raw.slice(0,6);return i.rlphash(e)},t.prototype.getChainId=function(){return this._chainId},t.prototype.getSenderAddress=function(){if(this._from)return this._from;var t=this.getSenderPublicKey();return this._from=i.publicToAddress(t),this._from},t.prototype.getSenderPublicKey=function(){if((!this._senderPubKey||!this._senderPubKey.length)&&!this.verifySignature())throw Error("Invalid Signature");return this._senderPubKey},t.prototype.verifySignature=function(){var t=this.hash(!1);if(this._homestead&&1===new s(this.s).cmp(a))return!1;try{var e=i.bufferToInt(this.v);this._chainId>0&&(e-=2*this._chainId+8),this._senderPubKey=i.ecrecover(t,e,this.r,this.s)}catch(r){return!1}return!!this._senderPubKey},t.prototype.sign=function(t){var e=this.hash(!1),r=i.ecsign(e,t);this._chainId>0&&(r.v+=2*this._chainId+8),Object.assign(this,r)},t.prototype.getDataFee=function(){for(var t=this.raw[5],e=new s(0),r=0;r<t.length;
vendor: 5,358 bytes, line 21
21r++)0===t[r]?e.iaddn(o.txDataZeroGas.v):e.iaddn(o.txDataNonZeroGas.v);return e},t.prototype.getBaseFee=function(){var t=this.getDataFee().iaddn(o.txGas.v);return this._homestead&&this.toCreationAddress()&&t.iaddn(o.txCreation.v),t},t.prototype.getUpfrontCost=function(){return new s(this.gasLimit).imul(new s(this.gasPrice)).iadd(new s(this.value))},t.prototype.validate=function(t){var e=[];return(this.verifySignature()||e.push("Invalid Signature"),this.getBaseFee().cmp(new s(this.gasLimit))>0&&e.push(["gas limit is too low. Need at least "+this.getBaseFee()]),void 0===t||!1===t)?0===e.length:e.join(" ")},t}();t.exports=u},21964:function(t,e,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=r(82192),o=i.keccak224,s=i.keccak384,a=i.keccak256,u=i.keccak512,c=r(24565),l=r(27596),h=r(51675),f=r(80361),d=r(23482),p=r(89509).Buffer;Object.assign(e,r(80884)),e.MAX_INTEGER=new f("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),e.TWO_POW256=new f("10000000000000000000000000000000000000000000000000000000000000000",16),e.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",e.SHA3_NULL_S=e.KECCAK256_NULL_S,e.KECCAK256_NULL=p.from(e.KECCAK256_NULL_S,"hex"),e.SHA3_NULL=e.KECCAK256_NULL,e.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",e.SHA3_RLP_ARRAY_S=e.KECCAK256_RLP_ARRAY_S,e.KECCAK256_RLP_ARRAY=p.from(e.KECCAK256_RLP_ARRAY_S,"hex"),e.SHA3_RLP_ARRAY=e.KECCAK256_RLP_ARRAY,e.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",e.SHA3_RLP_S=e.KECCAK256_RLP_S,e.KECCAK256_RLP=p.from(e.KECCAK256_RLP_S,"hex"),e.SHA3_RLP=e.KECCAK256_RLP,e.BN=f,e.rlp=h,e.secp256k1=c,e.zeros=function(t){return p.allocUnsafe(t).fill(0)},e.zeroAddress=function(){var t=e.zeros(20);return e.bufferToHex(t)},e.setLengthLeft=e.setLength=function(t,r,n){var i=e.zeros(r);return(t=e.toBuffer(t),n)?t.length<r?(t.copy(i),i):t.slice(0,r):t.length<r?(t.copy(i,r-t.length),i):t.slice(-r)},e.setLengthRight=function(t,r){return e.setLength(t,r,!0)},e.unpad=e.stripZeros=function(t){for(var r=(t=e.stripHexPrefix(t))[0];t.length>0&&"0"===r.toString();)r=(t=t.slice(1))[0];return t},e.toBuffer=function(t){if(!p.isBuffer(t)){if(Array.isArray(t))t=p.from(t);else if("string"==typeof t)t=e.isHexString(t)?p.from(e.padToEven(e.stripHexPrefix(t)),"hex"):p.from(t);else if("number"==typeof t)t=e.intToBuffer(t);else if(null==t)t=p.allocUnsafe(0);else if(f.isBN(t))t=t.toArrayLike(p);else if(t.toArray)t=p.from(t.toArray());else throw Error("invalid type")}return t},e.bufferToInt=function(t){return new f(e.toBuffer(t)).toNumber()},e.bufferToHex=function(t){return"0x"+(t=e.toBuffer(t)).toString("hex")},e.fromSigned=function(t){return new f(t).fromTwos(256)},e.toUnsigned=function(t){return p.from(t.toTwos(256).toArray())},e.keccak=function(t,r){switch(t=e.toBuffer(t),r||(r=256),r){case 224:return o(t);case 256:return a(t);case 384:return s(t);case 512:return u(t);default:throw Error("Invald algorithm: keccak"+r)}},e.keccak256=function(t){return e.keccak(t)},e.sha3=e.keccak,e.sha256=function(t){return t=e.toBuffer(t),d("sha256").update(t).digest()},e.ripemd160=function(t,r){t=e.toBuffer(t);var n=d("rmd160").update(t).digest();return!0===r?e.setLength(n,32):n},e.rlphash=function(t){return e.keccak(h.encode(t))},e.isValidPrivate=function(t){return c.privateKeyVerify(t)},e.isValidPublic=function(t,e){return 64===t.length?c.publicKeyVerify(p.concat([p.from([4]),t])):!!e&&c.publicKeyVerify(t)},e.pubToAddress=e.publicToAddress=function(t,r){return t=e.toBuffer(t),r&&64!==t.length&&(t=c.publicKeyConvert(t,!1).slice(1)),l(64===t.length),e.keccak(t).slice(-20)};var g=e.privateToPublic=function(t){return t=e.toBuffer(t),c.publicKeyCreate(t,!1).slice(1)};e.importPublic=function(t){return 64!==(t=e.toBuffer(t)).length&&(t=c.publicKeyConvert(t,!1).slice(1)),t},e.ecsign=function(t,e){var r=c.sign(t,e),n={};return n.r=r.signature.slice(0,32),n.s=r.signature.slice(32,64),n.v=r.recovery+27,n},e.hashPersonalMessage=function(t){var r=e.toBuffer("\x19Ethereum Signed Message:\n"+t.length.toString());return e.keccak(p.concat([r,t]))},e.ecrecover=function(t,r,n,i){var o=p.concat([e.setLength(n,32),e.setLength(i,32)],64),s=r-27;if(0!==s&&1!==s)throw Error("Invalid signature v value");var a=c.recover(t,o,s);return c.publicKeyConvert(a,!1).slice(1)},e.toRpcSig=function(t,r,n){if(27!==t&&28!==t)throw Error("Invalid recovery id");return e.bufferToHex(p.concat([e.setLengthLeft(r,32),e.setLengthLeft(n,32),e.toBuffer(t-27)]))},e.fromRpcSig=function(t){if(65!==(t=e.toBuffer(t)).length)throw Error("Invalid signature length");var r=t[64];return r<27&&(r+=27),{v:r,r:t.slice(0,32),s:t.slice(32,64)}},e.privateToAddress=function(t){return e.publicToAddress(g(t))},e.isValidAddress=function(t){return/^0x[0-9a-fA-F]{40}$/.test(t)},e.isZeroAddress=function(t){return e.zeroAddress()===e.addHexPrefix(t)},e.toChecksumAddress=function(t){t=e.stripHexPrefix(t).toLowerCase();for(var r=e.keccak(t).toString("hex"),n="0x",i=0;i<t.length;i++)parseInt(r[i],16)>=8?n+=t[i].toUpperCase():n+=t[i];return n},e.isValidChecksumAddress=function(t){return e.isValidAddress(t)&&e.toChecksumAddress(t)===t}
21,e.generateAddress=function(t,r){return t=e.toBuffer(t),r=(r=new f(r)).isZero()?null:p.from(r.toArray()),e.rlphash([t,r]).slice(-20)},e.isPrecompiled=function(t){var r=e.unpad(t);return 1===r.length&&r[0]>=1&&r[0]<=8},e.addHexPrefix=function(t){return"string"!=typeof t?t:e.isHexPrefixed(t)?t:"0x"+t},e.isValidSignature=function(t,e,r,n){var i=new f("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),o=new f("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);return 32===e.length&&32===r.length&&(27===t||28===t)&&(e=new f(e),r=new f(r),!(e.isZero()||e.gt(o)||r.isZero()||r.gt(o))&&(!1!==n||1!==new f(r).cmp(i)))},e.baToJSON=function(t){if(p.isBuffer(t))return"0x"+t.toString("hex");if(t instanceof Array){for(var r=[],n=0;n<t.length;n++)r.push(e.baToJSON(t[n]));return r}},e.defineProperties=function(t,r,i){if(t.raw=[],t._fields=[],t.toJSON=function(r){if(r){var n={};return t._fields.forEach(function(e){n[e]="0x"+t[e].toString("hex")}),n}return e.baToJSON(this.raw)},t.serialize=function(){return h.encode(t.raw)},r.forEach(function(r,n){function i(){return t.raw[n]}function o(i){"00"!==(i=e.toBuffer(i)).toString("hex")||r.allowZero||(i=p.allocUnsafe(0)),r.allowLess&&r.length?(i=e.stripZeros(i),l(r.length>=i.length,"The field "+r.name+" must not have more "+r.length+" b
21ytes")):!(r.allowZero&&0===i.length)&&r.length&&l(r.length===i.length,"The field "+r.name+" must have byte length of "+r.length),t.raw[n]=i}t._fields.push(r.name),Object.defineProperty(t,r.name,{enumerable:!0,configurable:!0,get:i,set:o}),r.default&&(t[r.name]=r.default),r.alias&&Object.defineProperty(t,r.alias,{enumerable:!1,configurable:!0,set:o,get:i})}),i){if("string"==typeof i&&(i=p.from(e.stripHexPrefix(i),"hex")),p.isBuffer(i)&&(i=h.decode(i)),Array.isArray(i)){if(i.length>t._fields.length)throw Error("wrong number of fields in data");i.forEach(function(r,n){t[t._fields[n]]=e.toBuffer(r)})}else if((void 0===i?"undefined":n(i))==="object"){var o=Object.keys(i);r.forEach(function(e){-1!==o.indexOf(e.name)&&(t[e.name]=i[e.name]),-1!==o.indexOf(e.alias)&&(t[e.alias]=i[e.alias])})}else throw Error("invalid data")}}},24565:function(t,e,r){"use strict";var n=r(48764).Buffer,i=r(95053),o=r(67587),s=r(85484),a=function(t){return 32===t.length&&i.privateKeyVerify(Uint8Array.from(t))},u=function(t,e){if(32!==t.length)throw RangeError("private key length is invalid");var r=o.privateKeyExport(t,e);return s.privateKeyExport(t,r,e)},c=function(t){if(null!==(t=s.privateKeyImport(t))&&32===t.length&&a(t))return t;throw Error("couldn't import from DER format")},l=function(t){return n.from(i.privateKeyNegate(Uint8Array.from(t)))},h=function(t){if(32!==t.length)throw Error("private key length is invalid");return n.from(o.privateKeyModInverse(Uint8Array.from(t)))},f=function(t,e){return n.from(i.privateKeyTweakAdd(Uint8Array.from(t),e))},d=function(t,e){return n.from(i.privateKeyTweakMul(Uint8Array.from(t),Uint8Array.from(e)))},p=function(t,e){return n.from(i.publicKeyCreate(Uint8Array.from(t),e))},g=function(t,e){return n.from(i.publicKeyConvert(Uint8Array.from(t),e))},m=function(t){return(33===t.length||65===t.length)&&i.publicKeyVerify(Uint8Array.from(t))},y=function(t,e,r){return n.from(i.publicKeyTweakAdd(Uint8Array.from(t),Uint8Array.from(e),r))},b=function(t,e,r){return n.from(i.publicKeyTweakMul(Uint8Array.from(t),Uint8Array.from(e),r))},v=function(t,e){var r=[];return t.forEach(function(t){r.push(Uint8Array.from(t))}),n.from(i.publicKeyCombine(r,e))},_=function(t){return n.from(i.signatureNormalize(Uint8Array.from(t)))},w=function(t){return n.from(i.signatureExport(Uint8Array.from(t)))},M=function(t){return n.from(i.signatureImport(Uint8Array.from(t)))},S=function(t){if(0===t.length)throw RangeError("signature length is invalid");var e=s.signatureImportLax(t);if(null===e)throw Error("couldn't parse DER signature");return o.signatureImport(e)},E=function(t,e,r){if(null===r)throw TypeError("options should be an Object");var o=void 0;if(r){if(o={},null===r.data)throw TypeError("options.data should be a Buffer");if(r.data){if(32!==r.data.length)throw RangeError("options.data length is invalid");o.data=new Uint8Array(r.data)}if(null===r.noncefn)throw TypeError("options.noncefn should be a Function");r.noncefn&&(o.noncefn=function(t,e,i,o,s){var a=null!=i?n.from(i):null,u=null!=o?n.from(o):null,c=n.from("");return r.noncefn&&(c=r.noncefn(n.from(t),n.from(e),a,u,s)),Uint8Array.from(c)})}var s=i.ecdsaSign(Uint8Array.from(t),Uint8Array.from(e),o);return{signature:n.from(s.signature),recovery:s.recid}},x=function(t,e,r){return i.ecdsaVerify(Uint8Array.from(e),Uint8Array.from(t),r)},k=function(t,e,r,o){return n.from(i.ecdsaRecover(Uint8Array.from(e),r,Uint8Array.from(t),o))},A=function(t,e){return n.from(i.ecdh(Uint8Array.from(t),Uint8Array.from(e),{}))},C=function(t,e,r){if(33!==t.length&&65!==t.length)throw RangeError("public key length is invalid");if(32!==e.length)throw RangeError("private key length is invalid");return n.from(o.ecdhUnsafe(Uint8Array.from(t),Uint8Array.from(e),r))};t.exports={privateKeyVerify:a,privateKeyExport:u,privateKeyImport:c,privateKeyNegate:l,privateKeyModInverse:h,privateKeyTweakAdd:f,privateKeyTweakMul:d,publicKeyCreate:p,publicKeyConvert:g,publicKeyVerify:m,publicKeyTweakAdd:y,publicKeyTweakMul:b,publicKeyCombine:v,signatureNormalize:_,signatureExport:w,signatureImport:M,signatureImportLax:S,sign:E,verify:x,recover:k,ecdh:A,ecdhUnsafe:C}},85484:function(t,e,r){"use strict";var n=r(48764).Buffer,i=n.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),o=n.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);e.privateKeyExport=function(t,e,r){var s=n.from(r?i:o);return t.copy(s,r?8:9),e.copy(s,r?181:214),s},e.privateKeyImport=function(t){var e=t.length,r=0;if(e<1||48!==t[r]||e<(r+=1)+1||!(128&t[r]))return null;var n=127&t[r];if(r+=1,n<1||n>2||e<r+n)return null;var i=t[r+n-1]|(n>1?t[r+n-2]<<8:0);return e<(r+=n)+i||e<r+3||2!==t[r]||1!==t[r+1]||1!==t[r+2]||e<(r+=3)+2||4!==t[r]||t[r+1]>32||e<r+2+t[r+1]?null:t.slice(r+2,r+2+t[r+1])}
21,e.signatureImportLax=function(t){var e=n.alloc(32,0),r=n.alloc(32,0),i=t.length,o=0;if(48!==t[o++])return null;var s=t[o++];if(128&s&&(o+=s-128)>i||2!==t[o++])return null;var a=t[o++];if(128&a){if(o+(s=a-128)>i)return null;for(;s>0&&0===t[o];o+=1,s-=1);for(a=0;s>0;o+=1,s-=1)a=(a<<8)+t[o]}if(a>i-o)return null;var u=o;if(o+=a,2!==t[o++])return null;var c=t[o++];if(128&c){if(o+(s=c-128)>i)return null;for(;s>0&&0===t[o];o+=1,s-=1);for(c=0;s>0;o+=1,s-=1)c=(c<<8)+t[o]}if(c>i-o)return null;var l=o;for(o+=c;a>0&&0===t[u];a-=1,u+=1);if(a>32)return null;var h=t.slice(u,u+a);for(h.copy(e,32-h.length);c>0&&0===t[l];c-=1,l+=1);if(c>32)return null;var f=t.slice(l,l+c);return f.copy(r,32-f.length),{r:e,s:r}}},67587:function(t,e,r){"use strict";var n=r(48764).Buffer,i=r(80361),o=new(r(86266)).ec("secp256k1"),s=o.curve;e.privateKeyExport=function(t,e){var r=new i(t);if(r.ucmp(s.n)>=0)throw Error("couldn't export to DER format");var n=o.g.mul(r);return a(n.getX(),n.getY(),e)},e.privateKeyModInverse=function(t){var e=new i(t);if(e.ucmp(s.n)>=0||e.isZero())throw Error("private key range is invalid");return e.invm(s.n).toArrayLike(n,"be",32)},e.signatureImport=function(t){var e=new i(t.r);e.ucmp(s.n)>=0&&(e=new i(0));var r=new i(t.s);return r.ucmp(s.n)>=0&&(r=new i(0)),n.concat([e.toArrayLike(n,"be",32),r.toArrayLike(n,"be",32)])},e.ecdhUnsafe=function(t,e,r){var n=o.keyFromPublic(t),u=new i(e);if(u.ucmp(s.n)>
21=0||u.isZero())throw Error("scalar was invalid (zero or overflow)");var c=n.pub.mul(u);return a(c.getX(),c.getY(),r)};var a=function(t,e,r){var i=void 0;return r?((i=n.alloc(33))[0]=e.isOdd()?3:2,t.toArrayLike(n,"be",32).copy(i,1)):((i=n.alloc(65))[0]=4,t.toArrayLike(n,"be",32).copy(i,1),e.toArrayLike(n,"be",32).copy(i,33)),i}},80361:function(t,e,r){!function(t,e){"use strict";function n(t,e){if(!t)throw Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&(("le"===e||"be"===e)&&(r=e,e=10),this._init(t||0,e||10,r||"be"))}"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{l="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(27790).Buffer}catch(s){}function a(t,e){var r=t.charCodeAt(e);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(t,e,r){var n=a(t,r);return r-1>=e&&(n|=a(t,r-1)<<4),n}function c(t,e,r,n){for(var i=0,o=Math.min(t.length,r),s=e;s<o;s++){var a=t.charCodeAt(s)-48;i*=n,a>=49?i+=a-49+10:a>=17?i+=a-17+10:i+=a}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return 0>t.cmp(e)?t:e},o.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),"le"===r&&this._initArray(this.toArray(),e,r)))},o.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=Array(this.length);for(var i,o,s=0;s<this.length;s++)this.words[s]=0;var a=0;if("be"===r)for(s=t.length-1,i=0;s>=0;s-=3)o=t[s]|t[s-1]<<8|t[s-2]<<16,this.words[i]|=o<<a&67108863,this.words[i+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===r)for(s=0,i=0;s<t.length;s+=3)o=t[s]|t[s+1]<<8|t[s+2]<<16,this.words[i]|=o<<a&67108863,this.words[i+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this.strip()},o.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var o=0,s=0;if("be"===r)for(i=t.length-1;i>=e;i-=2)n=u(t,e,i)<<o,this.words[s]|=67108863&n,o>=18?(o-=18,s+=1,this.words[s]|=n>>>26):o+=8;else{var a=t.length-e;for(i=a%2==0?e+1:e;i<t.length;i+=2)n=u(t,e,i)<<o,this.words[s]|=67108863&n,o>=18?(o-=18,s+=1,this.words[s]|=n>>>26):o+=8}this.strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,s=o%n,a=Math.min(o,o-s)+r,u=0,l=r;l<a;l+=n)u=c(t,l,l+n,e),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==s){var h=1;for(u=c(t,l,t.length,e),l=0;l<s;l++)h*=e;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l,h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
21777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var c=1;c<n;c++){for(var l=u>>>26,h=67108863&u,f=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=f;d++){var p=c-d|0;l+=(s=(i=0|t.words[p])*(o=0|e.words[d])+h)/67108864|0,h=67108863&s}r.words[c]=0|h,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var r,i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=((a<<i|o)&16777215).toString(16);r=0!=(o=a>>>24-i&16777215)||s!==this.length-1?h[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,s--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=f[t],l=d[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var g=p.modn(l).toString(t);r=(p=p.idivn(l)).isZero()?g+r:h[c-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return n(void 0!==l),this.toArrayLike(l,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,r){var i,o,s=this.byteLength(),a=r||Math.max(1,s);n(s<=a,"byte array longer than desired length"),n(a>0,"Requested array length <= 0"),this.strip();var u=new t(a),c=this.clone();if("le"===e){for(o=0;!c.isZero();o++)i=c.andln(255),c.iushrn(8),u[o]=i;for(;o<a;o++)u[o]=0}else{for(o=0;o<a-s;o++)u[o]=0;for(o=0;!c.isZero();o++)i=c.andln(255),c.iushrn(8),u[a-o-1]=i}return u},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return(8191&e)==0&&(r+=13,e>>>=13),(127&e)==0&&(r+=7,e>>>=7),(15&e)==0&&(r+=4,e>>>=4),(3&e)==0&&(r+=2,e>>>=2),(1&e)==0&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return(this.length-1)*26+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return n((this.negative|t.negative)==0),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]&t.words[r];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return n((this.negative|t.negative)==0),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){this.length>t.length?(e=this,r=t):(e=t,r=this);for(var e,r,n=0;n<r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n<e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return n((this.negative|t.negative)==0),this.iuxor(t)}
vendor: 10,010 bytes, line 21
21,o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),e?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(r=this,n=t):(r=t,n=this);for(var e,r,n,i=0,o=0;o<n.length;o++)e=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<r.length;o++)e=(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e,r,n=this.iadd(t);return t.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(e=this,r=t):(e=t,r=this);for(var o=0,s=0;s<r.length;s++)o=(n=(0|e.words[s])-(0|r.words[s])+o)>>26,this.words[s]=67108863&n;for(;0!==o&&s<e.length;s++)o=(n=(0|e.words[s])+o)>>26,this.words[s]=67108863&n;if(0===o&&s<e.length&&e!==this)for(;s<e.length;s++)this.words[s]=e.words[s];return this.length=Math.max(this.length,s),e!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var g=function(t,e,r){var n,i,o,s=t.words,a=e.words,u=r.words,c=0,l=0|s[0],h=8191&l,f=l>>>13,d=0|s[1],p=8191&d,g=d>>>13,m=0|s[2],y=8191&m,b=m>>>13,v=0|s[3],_=8191&v,w=v>>>13,M=0|s[4],S=8191&M,E=M>>>13,x=0|s[5],k=8191&x,A=x>>>13,C=0|s[6],R=8191&C,O=C>>>13,P=0|s[7],I=8191&P,T=P>>>13,N=0|s[8],L=8191&N,j=N>>>13,B=0|s[9],D=8191&B,F=B>>>13,U=0|a[0],z=8191&U,H=U>>>13,q=0|a[1],W=8191&q,V=q>>>13,K=0|a[2],G=8191&K,Z=K>>>13,$=0|a[3],J=8191&$,Y=$>>>13,Q=0|a[4],X=8191&Q,tt=Q>>>13,te=0|a[5],tr=8191&te,tn=te>>>13,ti=0|a[6],to=8191&ti,ts=ti>>>13,ta=0|a[7],tu=8191&ta,tc=ta>>>13,tl=0|a[8],th=8191&tl,tf=tl>>>13,td=0|a[9],tp=8191&td,tg=td>>>13;r.negative=t.negative^e.negative,r.length=19;var tm=(c+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(f,z)|0))<<13)|0;c=((o=Math.imul(f,H))+(i>>>13)|0)+(tm>>>26)|0,tm&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(g,z)|0,o=Math.imul(g,H);var ty=(c+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(f,W)|0))<<13)|0;c=((o=o+Math.imul(f,V)|0)+(i>>>13)|0)+(ty>>>26)|0,ty&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(b,z)|0,o=Math.imul(b,H),n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,V)|0;var tb=(c+(n=n+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,Z)|0)+Math.imul(f,G)|0))<<13)|0;c=((o=o+Math.imul(f,Z)|0)+(i>>>13)|0)+(tb>>>26)|0,tb&=67108863,n=Math.imul(_,z),i=(i=Math.imul(_,H))+Math.imul(w,z)|0,o=Math.imul(w,H),n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,V)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,V)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(g,G)|0,o=o+Math.imul(g,Z)|0;var tv=(c+(n=n+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,Y)|0)+Math.imul(f,J)|0))<<13)|0;c=((o=o+Math.imul(f,Y)|0)+(i>>>13)|0)+(tv>>>26)|0,tv&=67108863,n=Math.imul(S,z),i=(i=Math.imul(S,H))+Math.imul(E,z)|0,o=Math.imul(E,H),n=n+Math.imul(_,W)|0,i=(i=i+Math.imul(_,V)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,V)|0,n=n+Math.imul(y,G)|0,i=(i=i+Math.imul(y,Z)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(g,J)|0,o=o+Math.imul(g,Y)|0;var t_=(c+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(f,X)|0))<<13)|0;c=((o=o+Math.imul(f,tt)|0)+(i>>>13)|0)+(t_>>>26)|0,t_&=67108863,n=Math.imul(k,z),i=(i=Math.imul(k,H))+Math.imul(A,z)|0,o=Math.imul(A,H),n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,V)|0)+Math.imul(E,W)|0,o=o+Math.imul(E,V)|0,n=n+Math.imul(_,G)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(w,G)|0,o=o+Math.imul(w,Z)|0,n=n+Math.imul(y,J)|0,i=(i=i+Math.imul(y,Y)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,Y)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,tt)|0;var tw=(c+(n=n+Math.imul(h,tr)|0)|0)+((8191&(i=(i=i+Math.imul(h,tn)|0)+Math.imul(f,tr)|0))<<13)|0;c=((o=o+Math.imul(f,tn)|0)+(i>>>13)|0)+(tw>>>26)|0,tw&=67108863,n=Math.imul(R,z),i=(i=Math.imul(R,H))+Math.imul(O,z)|0,o=Math.imul(O,H),n=n+Math.imul(k,W)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(A,W)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(E,G)|0,o=o+Math.imul(E,Z)|0,n=n+Math.imul(_,J)|0,i=(i=i+Math.imul(_,Y)|0)+Math.imul(w,J)|0,o=o+Math.imul(w,Y)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,tt)|0,n=n+Math.imul(p,tr)|0,i=(i=i+Math.imul(p,tn)|0)+Math.imul(g,tr)|0,o=o+Math.imul(g,tn)|0;var tM=(c+(n=n+Math.imul(h,to)|0)|0)+((8191&(i=(i=i+Math.imul(h,ts)|0)+Math.imul(f,to)|0))<<13)|0;c=((o=o+Math.imul(f,ts)|0)+(i>>>13)|0)+(tM>>>26)|0,tM&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,H))+Math.imul(T,z)|0,o=Math.imul(T,H),n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(O,W)|0,o=o+Math.imul(O,V)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(S,J)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(E,J)|0,o=o+Math.imul(E,Y)|0,n=n+Math.imul(_,X)|0,i=(i=i+Math.imul(_,tt)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,tt)|0,n=n+Math.imul(y,tr)|0,i=(i=i+Math.imul(y,tn)|0)+Math.imul(b,tr)|0,o=o+Math.imul(b,tn)|0,n=n+Math.imul(p,to)|0,i=(i=i+Math.imul(p,ts)|0)+Math.imul(g,to)|0,o=o+Math.imul(g,ts)|0;var tS=(c+(n=n+Math.imul(h,tu)|0)|0)+((8191&(i=(i=i+Math.imul(h,tc)|0)+Math.imul(f,tu)|0))<<13)|0;c=((o=o+Math.imul(f,tc)|0)+(i>>>13)|0)+(tS>>>26)|0,tS&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(j,z)|0,o=Math.imul(j,H),n=n+Math.imul(I,W)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,V)|0,n=n+Math.imul(R,G)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,Z)|0,n=n+Math.imul(k,J)|0,i=(i=i+Math.imul(k,Y)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,Y)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,tt)|0)+Math.imul(E,X)|0,o=o+Math.imul(E,tt)|0,n=n+Math.imul(_,tr)|0,i=(i=i+Math.imul(_,tn)|0)+Math.imul(w,tr)|0,o=o+Math.imul(w,tn)|0,n=n+Math.imul(y,to)|0,i=(i=i+Math.imul(y,ts)|0)+Math.imul(b,to)|0,o=o+Math.imul(b,ts)|0,n=n+Math.imul(p,tu)|0,i=(i=i+Math.imul(p,tc)|0)+Math.imul(g,tu)|0,o=o+Math.imul(g,tc)|0;var tE=(c+(n=n+Math.imul(h,th)|0)|0)+((8191&(i=(i=i+Math.imul(h,tf)|0)+Math.imul(f,th)|0))<<13)|0;c=((o=o+Math.imul(f,tf)|0)+(i>>>13)|0)+(tE>>>26)|0,tE&=67108863,n=Math.imul(D,z),i=(i=Math.imul(D,H))+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(L,W)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,V)|0,n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(T,G)|0,o=o+Math.imul(T,Z)|0,n=n+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,Y)|0,n=n+Math.imul(k,X)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,tt)|0,n=n+Math.imul(S,tr)|0,i=(i=i+Math.imul(S,tn)|0)+Math.imul(E,tr)|0,o=o+Math.imul(E,tn)|0,n=n+Math.imul(_,to)|0,i=(i=i+Math.imul(_,ts)|0)+Math.imul(w,to)|0,o=o+Math.imul(w,ts)|0,n=n+Math.imul(y,tu)|0,i=(i=i+Math.imul(y,tc)|0)+Math.imul(b,tu)|0,o=o+Math.imul(b,tc)|0,n=n+Math.imul(p,th)|0,i=(i=i+Math.imul(p,tf)|0)+Math.imul(g,th)|0,o=o+Math.imul(g,tf)|0;var tx=(c+(n=n+Math.imul(h,tp)|0)|0)+((8191&(i=(i=i+Math.imul(h,tg)|0)+Math.imul(f,tp)|0))<<13)|0;c=((o=o+Math.imul(f,tg)|0)+(i>>>13)|0)+(tx>>>26)|0,tx&=67108863,n=Math.imul(D,W),i=(i=Math.imul(D,V))+Math.imul(F,W)|0,o=Math.imul(F,V),n=n+Math.imul(L,G)|0,i=(i=i+Math.imul(L,Z)|0)+Math.imul(j,G)|0,o=o+Math.imul(j,Z)|0,n=n+Math.imul(I,J)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,Y)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(k,tr)|0,i=(i=i+Math.imul(k,tn)|0)+Math.imul(A,tr)|0,o=o+Math.imul(A,tn)|0,n=n+Math.imul(S,to)|0,i=(i=i+Math.imul(S,ts)|0)+Math.imul(E,to)|0,o=o+Math.imul(E,ts)|0,n=n+Math.imul(_,tu)|0,i=(i=i+Math.imul(_,tc)|0)+Math.imul(w,tu)|0,o=o+Math.imul(w,tc)|0,n=n+Math.imul(y,th)|0,i=(i=i+Math.imul(y,tf)|0)+Math.imul(b,th)|0,o=o+Math.imul(b,tf)|0;var tk=(c+(n=n+Math.imul(p,tp)|0)|0)+((8191&(i=(i=i+Math.imul(p,tg)|0)+Math.imul(g,tp)|0))<<13)|0;c=((o=o+Math.imul(g,tg)|0)+(i>>>13)|0)+(tk>>>26)|0,tk&=67108863,n=Math.imul(D,G),i=(i=Math.imul(D,Z))+Math.imul(F,G)|0,o=Math.imul(F,Z),n=n+Math.imul(L,J)|0,i=(i=i+Math.imul(L,Y)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(R,tr)|0,i=(i=i+Math.imul(R,tn)|0)+Math.imul(O,tr)|0,o=o+Math.imul(O,tn)|0,n=n+Math.imul(k,to)|0,i=(i=i+Math.imul(k,ts)|0)+Math.imul(A,to)|0,o=o+Math.imul(A,ts)|0,n=n+Math.imul(S,tu)|0,i=(i=i+Math.imul(S,tc)|0)+Math.imul(E,tu)|0,o=o+Math.imul(E,tc)|0,n=n+Math.imul(_,th)|0,i=(i=i+Math.imul(_,tf)|0)+Math.imul(w,th)|0,o=o+Math.imul(w,tf)|0;var tA=(c+(n=n+Math.imul(y,tp)|0)|0)+((8191&(i=(i=i+Math.imul(y,tg)|0)+Math.imul(b,tp)|0))<<13)|0;c=((o=o+Math.imul(b,tg)|0)+(i>>>13)|0)+(tA>>>26)|0,tA&=67108863,n=Math.imul(D,J),i=(i=Math.imul(D,Y))+Math.imul(F,J)|0,o=Math.imul(F,Y),n=n+Math.imul(L,X)|0,i=(i=i+Math.imul(L,tt)|0)+Math.imul(j,
vendor: 6,026 bytes, line 21
21X)|0,o=o+Math.imul(j,tt)|0,n=n+Math.imul(I,tr)|0,i=(i=i+Math.imul(I,tn)|0)+Math.imul(T,tr)|0,o=o+Math.imul(T,tn)|0,n=n+Math.imul(R,to)|0,i=(i=i+Math.imul(R,ts)|0)+Math.imul(O,to)|0,o=o+Math.imul(O,ts)|0,n=n+Math.imul(k,tu)|0,i=(i=i+Math.imul(k,tc)|0)+Math.imul(A,tu)|0,o=o+Math.imul(A,tc)|0,n=n+Math.imul(S,th)|0,i=(i=i+Math.imul(S,tf)|0)+Math.imul(E,th)|0,o=o+Math.imul(E,tf)|0;var tC=(c+(n=n+Math.imul(_,tp)|0)|0)+((8191&(i=(i=i+Math.imul(_,tg)|0)+Math.imul(w,tp)|0))<<13)|0;c=((o=o+Math.imul(w,tg)|0)+(i>>>13)|0)+(tC>>>26)|0,tC&=67108863,n=Math.imul(D,X),i=(i=Math.imul(D,tt))+Math.imul(F,X)|0,o=Math.imul(F,tt),n=n+Math.imul(L,tr)|0,i=(i=i+Math.imul(L,tn)|0)+Math.imul(j,tr)|0,o=o+Math.imul(j,tn)|0,n=n+Math.imul(I,to)|0,i=(i=i+Math.imul(I,ts)|0)+Math.imul(T,to)|0,o=o+Math.imul(T,ts)|0,n=n+Math.imul(R,tu)|0,i=(i=i+Math.imul(R,tc)|0)+Math.imul(O,tu)|0,o=o+Math.imul(O,tc)|0,n=n+Math.imul(k,th)|0,i=(i=i+Math.imul(k,tf)|0)+Math.imul(A,th)|0,o=o+Math.imul(A,tf)|0;var tR=(c+(n=n+Math.imul(S,tp)|0)|0)+((8191&(i=(i=i+Math.imul(S,tg)|0)+Math.imul(E,tp)|0))<<13)|0;c=((o=o+Math.imul(E,tg)|0)+(i>>>13)|0)+(tR>>>26)|0,tR&=67108863,n=Math.imul(D,tr),i=(i=Math.imul(D,tn))+Math.imul(F,tr)|0,o=Math.imul(F,tn),n=n+Math.imul(L,to)|0,i=(i=i+Math.imul(L,ts)|0)+Math.imul(j,to)|0,o=o+Math.imul(j,ts)|0,n=n+Math.imul(I,tu)|0,i=(i=i+Math.imul(I,tc)|0)+Math.imul(T,tu)|0,o=o+Math.imul(T,tc)|0,n=n+Math.imul(R,th)|0,i=(i=i+Math.imul(R,tf)|0)+Math.imul(O,th)|0,o=o+Math.imul(O,tf)|0;var tO=(c+(n=n+Math.imul(k,tp)|0)|0)+((8191&(i=(i=i+Math.imul(k,tg)|0)+Math.imul(A,tp)|0))<<13)|0;c=((o=o+Math.imul(A,tg)|0)+(i>>>13)|0)+(tO>>>26)|0,tO&=67108863,n=Math.imul(D,to),i=(i=Math.imul(D,ts))+Math.imul(F,to)|0,o=Math.imul(F,ts),n=n+Math.imul(L,tu)|0,i=(i=i+Math.imul(L,tc)|0)+Math.imul(j,tu)|0,o=o+Math.imul(j,tc)|0,n=n+Math.imul(I,th)|0,i=(i=i+Math.imul(I,tf)|0)+Math.imul(T,th)|0,o=o+Math.imul(T,tf)|0;var tP=(c+(n=n+Math.imul(R,tp)|0)|0)+((8191&(i=(i=i+Math.imul(R,tg)|0)+Math.imul(O,tp)|0))<<13)|0;c=((o=o+Math.imul(O,tg)|0)+(i>>>13)|0)+(tP>>>26)|0,tP&=67108863,n=Math.imul(D,tu),i=(i=Math.imul(D,tc))+Math.imul(F,tu)|0,o=Math.imul(F,tc),n=n+Math.imul(L,th)|0,i=(i=i+Math.imul(L,tf)|0)+Math.imul(j,th)|0,o=o+Math.imul(j,tf)|0;var tI=(c+(n=n+Math.imul(I,tp)|0)|0)+((8191&(i=(i=i+Math.imul(I,tg)|0)+Math.imul(T,tp)|0))<<13)|0;c=((o=o+Math.imul(T,tg)|0)+(i>>>13)|0)+(tI>>>26)|0,tI&=67108863,n=Math.imul(D,th),i=(i=Math.imul(D,tf))+Math.imul(F,th)|0,o=Math.imul(F,tf);var tT=(c+(n=n+Math.imul(L,tp)|0)|0)+((8191&(i=(i=i+Math.imul(L,tg)|0)+Math.imul(j,tp)|0))<<13)|0;c=((o=o+Math.imul(j,tg)|0)+(i>>>13)|0)+(tT>>>26)|0,tT&=67108863;var tN=(c+(n=Math.imul(D,tp))|0)+((8191&(i=(i=Math.imul(D,tg))+Math.imul(F,tp)|0))<<13)|0;return c=((o=Math.imul(F,tg))+(i>>>13)|0)+(tN>>>26)|0,tN&=67108863,u[0]=tm,u[1]=ty,u[2]=tb,u[3]=tv,u[4]=t_,u[5]=tw,u[6]=tM,u[7]=tS,u[8]=tE,u[9]=tx,u[10]=tk,u[11]=tA,u[12]=tC,u[13]=tR,u[14]=tO,u[15]=tP,u[16]=tI,u[17]=tT,u[18]=tN,0!==c&&(u[19]=c,r.length++),r};function m(t,e,r){return new y().mulp(t,e,r)}function y(t,e){this.x=t,this.y=e}Math.imul||(g=p),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?g(this,t,e):r<63?p(this,t,e):r<1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=u;c++){var l=o-c,h=(0|t.words[l])*(0|e.words[c]),f=67108863&h;s=s+(h/67108864|0)|0,a=67108863&(f=f+a|0),i+=(s=s+(f>>>26)|0)>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,t,e):m(this,t,e)},y.prototype.makeRBT=function(t){for(var e=Array(t),r=o.prototype._countBits(t)-1,n=0;n<t;n++)e[n]=this.revBin(n,r,t);return e},y.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i<e;i++)n|=(1&t)<<e-i-1,t>>=1;return n},y.prototype.permute=function(t,e,r,n,i,o){for(var s=0;s<o;s++)n[s]=e[t[s]],i[s]=r[t[s]]},y.prototype.transform=function(t,e,r,n,i,o){this.permute(o,t,e,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),c=Math.sin(2*Math.PI/a),l=0;l<i;l+=a)for(var h=u,f=c,d=0;d<s;d++){var p=r[l+d],g=n[l+d],m=r[l+d+s],y=n[l+d+s],b=h*m-f*y;y=h*y+f*m,m=b,r[l+d]=p+m,n[l+d]=g+y,r[l+d+s]=p-m,n[l+d+s]=g-y,d!==a&&(b=u*h-c*f,f=u*f+c*h,h=b)}},y.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(t,e,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},y.prototype.normalize13b=function(t,e){for(var r=0,n=0;n<e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&i,r=i<67108864?0:i/67108864|0}return t},y.prototype.convert13b=function(t,e,r,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)r[s]=0;n(0===o),n((-8192&o)==0)},y.prototype.stub=function(t){for(var e=Array(t),r=0;r<t;r++)e[r]=0;return e},y.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),o=this.stub(n),s=Array(n),a=Array(n),u=Array(n),c=Array(n),l=Array(n),h=Array(n),f=r.words;f.length=n,this.convert13b(t.words,t.length,s,n),this.convert13b(e.words,e.length,c,n),this.transform(s,o,a,u,n,i),this.transform(c,o,l,h,n,i);for(var d=0;d<n;d++){var p=a[d]*l[d]-u[d]*h[d];u[d]=a[d]*h[d]+u[d]*l[d],a[d]=p}return this.conjugate(a,u,n),this.transform(a,u,f,o,n,i),this.conjugate(f,o,n),this.normalize13b(f,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=Array(this.length+t.length),m(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){n("number"==typeof t),n(t<67108864);for(var e=0,r=0;r<this.length;r++){var i=(0|this.words[r])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>
vendor: 17,840 bytes, line 21
2126,this.words[r]=67108863&o}return 0!==e&&(this.words[r]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=Array(t.bitLength()),r=0;r<e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n<e.length&&0===e[n];n++,r=r.sqr());if(++n<e.length)for(var i=r.sqr();n<e.length;n++,i=i.sqr())0!==e[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var a=this.words[e]&o,u=(0|this.words[e])-a<<r;this.words[e]=u|s,s=a>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,r){n("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var i,o=t%26,s=Math.min((t-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var c=0;c<s;c++)u.words[c]=this.words[c];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,c=0;c<this.length;c++)this.words[c]=this.words[c+s];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var h=0|this.words[c];this.words[c]=l<<26-o|h>>>o,l=h&a}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return!(this.length<=r)&&!!(this.words[r]&1<<e)},o.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==e&&r++,this.length=Math.min(r,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this.strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return(n("number"==typeof t),n(t<67108864),t<0)?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,r){var i,o,s=t.length+r;this._expand(s);var a=0;for(i=0;i<t.length;i++){o=(0|this.words[i+r])+a;var u=(0|t.words[i])*e;o-=67108863&u,a=(o>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)a=(o=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var r,n=this.length-t.length,i=this.clone(),s=t,a=0|s.words[s.length-1];0!=(n=26-this._countBits(a))&&(s=s.ushln(n),i.iushln(n),a=0|s.words[s.length-1]);var u=i.length-s.length;if("mod"!==e){(r=new o(null)).length=u+1,r.words=Array(r.length);for(var c=0;c<r.length;c++)r.words[c]=0}var l=i.clone()._ishlnsubmul(s,1,u);0===l.negative&&(i=l,r&&(r.words[u]=1));for(var h=u-1;h>=0;h--){var f=(0|i.words[s.length+h])*67108864+(0|i.words[s.length+h-1]);for(f=Math.min(f/a|0,67108863),i._ishlnsubmul(s,f,h);0!==i.negative;)f--,i.negative=0,i._ishlnsubmul(s,1,h),i.isZero()||(i.negative^=1);r&&(r.words[h]=f)}return r&&r.strip(),i.strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(t,e,r){var i,s,a;return(n(!t.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(i=a.div.neg()),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(i=a.div.neg()),{div:i,mod:a.mod}):(this.negative&t.negative)!=0?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||0>this.cmp(t)?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){n(t<=67108863);for(var e=67108864%t,r=0,i=this.length-1;i>=0;i--)r=(e*r+(0|this.words[i]))%t;return r},o.prototype.idivn=function(t){n(t<=67108863);for(var e=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),s=new o(0),a=new o(0),u=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var f=0,d=1;(e.words[0]&d)==0&&f<26;++f,d<<=1);if(f>0)for(e.iushrn(f);f-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(l),s.isub(h)),i.iushrn(1),s.iushrn(1);for(var p=0,g=1;(r.words[0]&g)==0&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(l),u.isub(h)),a.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(a),s.isub(u)):(r.isub(e),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e,r=this,i=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var s=new o(1),a=new o(0),u=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,l=1;(r.words[0]&l)==0&&c<26;++c,l<<=1);if(c>0)for(r.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);for(var h=0,f=1;(i.words[0]&f)==0&&h<26;++h,f<<=1);if(h>0)for(i.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),s.isub(a)):(i.isub(r),a.isub(s))}return 0>(e=0===r.cmpn(1)?s:a).cmpn(0)&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];a+=o,o=a>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return -1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return -1;for(var e=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n<i?e=-1:n>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return -1===this.cmpn(t)},o.prototype.lt=function(t){return -1===this.cmp(t)},o.prototype.lten=function(t){return 0>=this.cmpn(t)},o.prototype.lte=function(t){return 0>=this.cmp(t)},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new E(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new o(null);return t.words=Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,r=t;do this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(e>this.n);var n=e<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},i(_,v),_.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n<r;n++)e.words[n]=t.words[n];if(e.length=r,t.length<=9){t.words[0]=0,t.length=1;return}var i=t.words[9];for(n=10,e.words[e.length++]=4194303&i;n<t.length;n++){var o=0|t.words[n];t.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[n-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},_.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r<t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(w,v),i(M,v),i(S,v),S.prototype.imulK=function(t){for(var e=0,r=0;r<t.length;r++){var n=(0|t.words[r])*19+e,i=67108863&n;n>>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){var e;if(b[t])return b[t];if("k256"===t)e=new _;else if("p224"===t)e=new w;else if("p192"===t)e=new M;else if("p25519"===t)e=new S;else throw Error("Unknown prime "+t);return b[t]=e,e},E.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){n((t.negative|e.negative)==0,"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return 0>r.cmpn(0)&&r.iadd(this.m),r},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var h=this.pow(l,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;0!==d.cmp(a);){for(var g=d,m=0;0!==g.cmp(a);m++)g=g.redSqr();n(m<p);var y=this.pow(h,new o(1).iushln(p-m-1));f=f.redMul(y),h=y.redSqr(),d=d.redMul(h),p=m}return f},E.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},E.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=Array(16);r[0]=new o(1).toRed(this),r[1]=t;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],s=0,a=0,u=e.bitLength()%26;for(0===u&&(u=26),n=e.length-1;n>=0;n--){for(var c=e.words[n],l=u-1;l>=0;l--){var h=c>>l&1;if(i!==r[0]&&(i=this.sqr(i)),0===h&&0===s){a=0;continue}s<<=1,s|=h,(4==++a||0===n&&0===l)&&(i=this.mul(i,r[s]),a=0,s=0)}u=26}return i},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new x(t)},i(x,E),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):0>
21i.cmpn(0)&&(s=i.iadd(this.m)),s._forceRed(this)},x.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=r.nmd(t),this)},56371:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.formatBytes32String=e.Utf8ErrorFuncs=e.toUtf8String=e.toUtf8CodePoints=e.toUtf8Bytes=e._toEscapedUtf8String=e.nameprep=e.hexDataSlice=e.hexDataLength=e.hexZeroPad=e.hexValue=e.hexStripZeros=e.hexConcat=e.isHexString=e.hexlify=e.base64=e.base58=e.TransactionDescription=e.LogDescription=e.Interface=e.SigningKey=e.HDNode=e.defaultPath=e.isBytesLike=e.isBytes=e.zeroPad=e.stripZeros=e.concat=e.arrayify=e.shallowCopy=e.resolveProperties=e.getStatic=e.defineReadOnly=e.deepCopy=e.checkProperties=e.poll=e.fetchJson=e._fetchData=e.RLP=e.Logger=e.checkResultErrors=e.FormatTypes=e.ParamType=e.FunctionFragment=e.EventFragment=e.ErrorFragment=e.ConstructorFragment=e.Fragment=e.defaultAbiCoder=e.AbiCoder=void 0,e.Indexed=e.Utf8ErrorReason=e.UnicodeNormalizationForm=e.SupportedAlgorithm=e.mnemonicToSeed=e.isValidMnemonic=e.entropyToMnemonic=e.mnemonicToEntropy=e.getAccountPath=e.verifyTypedData=e.verifyMessage=e.recoverPublicKey=e.computePublicKey=e.recoverAddress=e.computeAddress=e.getJsonWalletAddress=e.TransactionTypes=e.serializeTransaction=e.parseTransaction=e.accessListify=e.joinSignature=e.splitSignature=e.soliditySha256=e.solidityKeccak256=e.solidityPack=e.shuffled=e.randomBytes=e.sha512=e.sha256=e.ripemd160=e.keccak256=e.computeHmac=e.commify=e.parseUnits=e.formatUnits=e.parseEther=e.formatEther=e.isAddress=e.getCreate2Address=e.getContractAddress=e.getIcapAddress=e.getAddress=e._TypedDataEncoder=e.id=e.isValidName=e.namehash=e.hashMessage=e.dnsEncode=e.parseBytes32String=void 0;var s=r(83893);Object.defineProperty(e,"AbiCoder",{enumerable:!0,get:function(){return s.AbiCoder}}),Object.defineProperty(e,"checkResultErrors",{enumerable:!0,get:function(){return s.checkResultErrors}}),Object.defineProperty(e,"ConstructorFragment",{enumerable:!0,get:function(){return s.ConstructorFragment}}),Object.defineProperty(e,"defaultAbiCoder",{enumerable:!0,get:function(){return s.defaultAbiCoder}}),Object.defineProperty(e,"ErrorFragment",{enumerable:!0,get:function(){return s.ErrorFragment}}),Object.defineProperty(e,"EventFragment",{enumerable:!0,get:function(){return s.EventFragment}}),Object.defineProperty(e,"FormatTypes",{enumerable:!0,get:function(){return s.FormatTypes}}),Object.defineProperty(e,"Fragment",{enumerable:!0,get:function(){return s.Fragment}}),Object.defineProperty(e,"FunctionFragment",{enumerable:!0,get:function(){return s.FunctionFragment}}),Object.defineProperty(e,"Indexed",{enumerable:!0,get:function(){return s.Indexed}}),Object.defineProperty(e,"Interface",{enumerable:!0,get:function(){return s.Interface}}),Object.defineProperty(e,"LogDescription",{enumerable:!0,get:function(){return s.LogDescription}}),Object.defineProperty(e,"ParamType",{enumerable:!0,get:function(){return s.ParamType}}),Object.defineProperty(e,"TransactionDescription",{enumerable:!0,get:function(){return s.TransactionDescription}});var a=r(19485);Object.defineProperty(e,"getAddress",{enumerable:!0,get:function(){return a.getAddress}}),Object.defineProperty(e,"getCreate2Address",{enumerable:!0,get:function(){return a.getCreate2Address}}),Object.defineProperty(e,"getContractAddress",{enumerable:!0,get:function(){return a.getContractAddress}}),Object.defineProperty(e,"getIcapAddress",{enumerable:!0,get:function(){return a.getIcapAddress}}),Object.defineProperty(e,"isAddress",{enumerable:!0,get:function(){return a.isAddress}});var u=o(r(4089));e.base64=u;var c=r(57727);Object.defineProperty(e,"base58",{enumerable:!0,get:function(){return c.Base58}});var l=r(16441);Object.defineProperty(e,"arrayify",{enumerable:!0,get:function(){return l.arrayify}}),Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return l.concat}}),Object.defineProperty(e,"hexConcat",{enumerable:!0,get:function(){return l.hexConcat}}),Object.defineProperty(e,"hexDataSlice",{enumerable:!0,get:function(){return l.hexDataSlice}}),Object.defineProperty(e,"hexDataLength",{enumerable:!0,get:function(){return l.hexDataLength}}),Object.defineProperty(e,"hexlify",{enumerable:!0,get:function(){return l.hexlify}}),Object.defineProperty(e,"hexStripZeros",{enumerable:!0,get:function(){return l.hexStripZeros}}),Object.defineProperty(e,"hexValue",{enumerable:!0,get:function(){return l.hexValue}}),Object.defineProperty(e,"hexZeroPad",{enumerable:!0,get:function(){return l.hexZeroPad}}),Object.defineProperty(e,"isBytes",{enumerable:!0,get:function(){return l.isBytes}}),Object.defineProperty(e,"isBytesLike",{enumerable:!0,get:function(){return l.isBytesLike}}),Object.defineProperty(e,"isHexString",{enumerable:!0,get:function(){return l.isHexString}}),Object.defineProperty(e,"joinSignature",{enumerable:!0,get:function(){return l.joinSignature}}),Object.defineProperty(e,"zeroPad",{enumerable:!0,get:function(){return l.zeroPad}}),Object.defineProperty(e,"splitSignature",{enumerable:!0,get:function(){return l.splitSignature}}),Object.defineProperty(e,"stripZeros",{enumerable:!0,get:function(){return l.stripZeros}});var h=r(75931);Object.defineProperty(e,"_TypedDataEncoder",{enumerable:!0,get:function(){return h._TypedDataEncoder}}),Object.defineProperty(e,"dnsEncode",{enumerable:!0,get:function(){return h.dnsEncode}}),Object.defineProperty(e,"hashMessage",{enumerable:!0,get:function(){return h.hashMessage}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return h.id}}),Object.defineProperty(e,"isValidName",{enumerable:!0,get:function(){return h.isValidName}}),Object.defineProperty(e,"namehash",{enumerable:!0,get:function(){return h.namehash}});var f=r(86507);Object.defineProperty(e,"defaultPath",{enumerable:!0,get:function(){return f.defaultPath}}),Object.defineProperty(e,"entropyToMnemonic",{enumerable:!0,get:function(){return f.entro
21pyToMnemonic}}),Object.defineProperty(e,"getAccountPath",{enumerable:!0,get:function(){return f.getAccountPath}}),Object.defineProperty(e,"HDNode",{enumerable:!0,get:function(){return f.HDNode}}),Object.defineProperty(e,"isValidMnemonic",{enumerable:!0,get:function(){return f.isValidMnemonic}}),Object.defineProperty(e,"mnemonicToEntropy",{enumerable:!0,get:function(){return f.mnemonicToEntropy}}),Object.defineProperty(e,"mnemonicToSeed",{enumerable:!0,get:function(){return f.mnemonicToSeed}});var d=r(45659);Object.defineProperty(e,"getJsonWalletAddress",{enumerable:!0,get:function(){return d.getJsonWalletAddress}});var p=r(38197);Object.defineProperty(e,"keccak256",{enumerable:!0,get:function(){return p.keccak256}});var g=r(1581);Object.defineProperty(e,"Logger",{enumerable:!0,get:function(){return g.Logger}});var m=r(91278);Object.defineProperty(e,"computeHmac",{enumerable:!0,get:function(){return m.computeHmac}}),Object.defineProperty(e,"ripemd160",{enumerable:!0,get:function(){return m.ripemd160}}),Object.defineProperty(e,"sha256",{enumerable:!0,get:function(){return m.sha256}}),Object.defineProperty(e,"sha512",{enumerable:!0,get:function(){return m.sha512}});var y=r(31886);Object.defineProperty(e,"solidityKeccak256",{enumerable:!0,get:function(){return y.keccak256}}),Object.defineProperty(e,"solidityPack",{enumerable:!0,get:function(){return y.pack}}),Object.defineProperty(e,"soliditySha256",{enumerable:!0,get:function(){return y.sha256}});var b=r(36049);Object.defineProperty(e,"randomBytes",{enumerable:!0,get:function(){return b.randomBytes}}),Object.defineProperty(e,"shuffled",{enumerable:!0,get:function(){return b.shuffled}});var v=r(6881);Object.defineProperty(e,"checkProperties",{enumerable:!0,get:function(){return v.checkProperties}}),Object.defineProperty(e,"deepCopy",{enumerable:!0,get:function(){return v.deepCopy}}),Object.defineProperty(e,"defineReadOnly",{enumerable:!0,get:function(){return v.defineReadOnly}}),Object.defineProperty(e,"getStatic",{enumerable:!0,get:function(){return v.getStatic}}),Object.defineProperty(e,"resolveProperties",{enumerable:!0,get:function(){return v.resolveProperties}}),Object.defineProperty(e,"shallowCopy",{enumerable:!0,get:function(){return v.shallowCopy}});var _=o(r(59052));e.RLP=_;var w=r(67669);Object.defineProperty(e,"computePublicKey",{enumerable:!0,get:function(){return w.computePublicKey}}),Object.defineProperty(e,"recoverPublicKey",{enumerable:!0,get:function(){return w.recoverPublicKey}}),Object.defineProperty(e,"SigningKey",{enumerable:!0,get:function(){return w.SigningKey}});var M=r(22384);Object.defineProperty(e,"formatBytes32String",{enumerable:!0,get:function(){return M.formatBytes32String}}),Object.defineProperty(e,"nameprep",{enumerable:!0,get:function(){return M.nameprep}}),Object.defineProperty(e,"parseBytes32String",{enumerable:!0,get:function(){return M.parseBytes32String}}),Object.defineProperty(e,"_toEscapedUtf8String",{enumerable:!0,get:function(){return M._toEscapedUtf8String}}),Object.defineProperty(e,"toUtf8Bytes",{enumerable:!0,get:function(){return M.toUtf8Bytes}}),Object.defineProperty(e,"toUtf8CodePoints",{enumerable:!0,get:function(){return M.toUtf8CodePoints}}),Object.defineProperty(e,"toUtf8String",{enumerable:!0,get:function(){return M.toUtf8String}}),Object.defineProperty(e,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return M.Utf8ErrorFuncs}});var S=r(83875);Object.defineProperty(e,"accessListify",{enumerable:!0,get:function(){return S.accessListify}}),Object.defineProperty(e,"computeAddress",{enumerable:!0,get:function(){return S.computeAddress}}),Object.defineProperty(e,"parseTransaction",{enumerable:!0,get:function(){return S.parse}}),Object.defineProperty(e,"recoverAddress",{enumerable:!0,get:function(){return S.recoverAddress}}),Object.defineProperty(e,"serializeTransaction",{enumerable:!0,get:function(){return S.serialize}}),Object.defineProperty(e,"TransactionTypes",{enumerable:!0,get:function(){return S.TransactionTypes}});var E=r(35553);Object.defineProperty(e,"commify",{enumerable:!0,get:function(){return E.commify}}),Object.defineProperty(e,"formatEther",{enumerable:!0,get:function(){return E.formatEther}}),Object.defineProperty(e,"parseEther",{enumerable:!0,get:function(){return E.parseEther}}),Object.defineProperty(e,"formatUnits",{enumerable:!0,get:function(){return E.formatUnits}}),Object.defineProperty(e,"parseUnits",{enumerable:!0,get:function(){return E.parseUnits}});var x=r(79911);Object.defineProperty(e,"verifyMessage",{enumerable:!0,get:function(){return x.verifyMessage}}),Object.defineProperty(e,"verifyTypedData",{enumerable:!0,get:function(){return x.verifyTypedData}
21});var k=r(37707);Object.defineProperty(e,"_fetchData",{enumerable:!0,get:function(){return k._fetchData}}),Object.defineProperty(e,"fetchJson",{enumerable:!0,get:function(){return k.fetchJson}}),Object.defineProperty(e,"poll",{enumerable:!0,get:function(){return k.poll}});var A=r(91278);Object.defineProperty(e,"SupportedAlgorithm",{enumerable:!0,get:function(){return A.SupportedAlgorithm}});var C=r(22384);Object.defineProperty(e,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return C.UnicodeNormalizationForm}}),Object.defineProperty(e,"Utf8ErrorReason",{enumerable:!0,get:function(){return C.Utf8ErrorReason}})},80884:function(t,e,r){"use strict";var n=r(48764).Buffer,i=r(23944),o=r(49604);function s(t){var e=t;if("string"!=typeof e)throw Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof e+", while padToEven.");return e.length%2&&(e="0"+e),e}function a(t){return"0x"+t.toString(16)}t.exports={arrayContainsArray:function(t,e,r){if(!0!==Array.isArray(t))throw Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof t+"'");if(!0!==Array.isArray(e))throw Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof e+"'");return e[Boolean(r)&&"some"||"every"](function(e){return t.indexOf(e)>=0})},intToBuffer:function(t){var e=a(t);return new n(s(e.slice(2)),"hex")},getBinarySize:function(t){if("string"!=typeof t)throw Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof t+"'.");return n.byteLength(t,"utf8")},isHexPrefixed:i,stripHexPrefix:o,padToEven:s,intToHex:a,fromAscii:function(t){for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r).toString(16);e+=n.length<2?"0"+n:n}return"0x"+e},fromUtf8:function(t){return"0x"+s(new n(t,"utf8").toString("hex")).replace(/^0+|0+$/g,"")},toAscii:function(t){var e="",r=0,n=t.length;for("0x"===t.substring(0,2)&&(r=2);r<n;r+=2)e+=String.fromCharCode(parseInt(t.substr(r,2),16));return e},toUtf8:function(t){return new n(s(o(t).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(t,e,r){if(!Array.isArray(t))throw Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+typeof t+"'");if("string"!=typeof e)throw Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+typeof e+"'.");for(var n=[],i=0;i<t.length;i++){var o=t[i][e];if(r&&!o)o="";else if("string"!=typeof o)throw Error("invalid abi");n.push(o)}return n},isHexString:function(t,e){return"string"==typeof t&&!!t.match(/^0x[0-9A-Fa-f]*$/)&&(!e||t.length===2+2*e)}}},26729:function(t){"use strict";var e=Object.prototype.hasOwnProperty,r="~";function n(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function o(t,e,n,o,s){if("function"!=typeof n)throw TypeError("The listener must be a function");var a=new i(n,o||t,s),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],a]:t._events[u].push(a):(t._events[u]=a,t._eventsCount++),t}function s(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1)),a.prototype.eventNames=function(){var t,n,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},a.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,s=Array(o);i<o;i++)s[i]=n[i].fn;return s},a.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},a.prototype.emit=function(t,e,n,i,o,s){var a=r?r+t:t;if(!this._events[a])return!1;var u,c,l=this._events[a],h=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),h){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,i),!0;case 5:return l.fn.call(l.context,e,n,i,o),!0;case 6:return l.fn.call(l.context,e,n,i,o,s),!0}for(c=1,u=Array(h-1);c<h;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var f,d=l.length;for(c=0;c<d;c++)switch(l[c].once&&this.removeListener(t,l[c].fn,void 0,!0),h){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,e);break;case 3:l[c].fn.call(l[c].context,e,n);break;case 4:l[c].fn.call(l[c].context,e,n,i);break;default:if(!u)for(f=1,u=Array(h-1);f<h;f++)u[f-1]=arguments[f];l[c].fn.apply(l[c].context,u)}}return!0},a.prototype.on=function(t,e,r){return o(this,t,e,r,!1)},a.prototype.once=function(t,e,r){return o(this,t,e,r,!0)},a.prototype.removeListener=function(t,e,n,i){var o=r?r+t:t;if(!this._events[o])return this;if(!e)return s(this,o),this;var a=this._events[o];if(a.fn)a.fn!==e||i&&!a.once||n&&a.context!==n||s(this,o);else{for(var u=0,c=[],l=a.length;u<l;u++)(a[u].fn!==e||i&&!a[u].once||n&&a[u].context!==n)&&c.push(a[u]);c.length?this._events[o]=1===c.length?c[0]:c:s(this,o)}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&s(this,e)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,t.exports=a},769:function(t){t.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
21),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e||4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,(function(e){return t[e]}).bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=8)}([function(t,e,r){"use strict";function n(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0}),n(r(13)),n(r(17))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(18);function i(t){var r,o;return t.jsonrpc=t.jsonrpc||e.JSON_RPC_VERSION,t.id=n.getPayloadId(),t.batch||"eth_batchRequest"===t.method?(t.method="eth_batchRequest",t.batch=null!=(o=null===(r=t.batch)||void 0===r?void 0:r.map(function(t){return i(t)}))?o:[],t):(t.params=t.params||[],t)}e.JSON_RPC_VERSION="2.0",e.createJsonRpcRequestPayload=function(t,r){var i=[{}];return r&&(i=Array.isArray(r)?r:[{to:r.to,value:r.amount}]),{params:i,method:t,jsonrpc:e.JSON_RPC_VERSION,id:n.getPayloadId()}},e.createJsonRpcBatchRequestPayload=function(t){void 0===t&&(t=[]);var r=Array.isArray(t)?t:[t];return{method:"eth_batchRequest",jsonrpc:e.JSON_RPC_VERSION,id:n.getPayloadId(),batch:r.filter(Boolean).map(function(t){return i(t)})}},e.standardizeRequestPayload=i},function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=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(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var o=r(0),s=r(4),a=function(t){function e(r,n){var i=t.call(this,"Fortmatic SDK Error: ["+r+"] "+n)||this;return i.code=r,i.__proto__=Error,Object.setPrototypeOf(i,e.prototype),i}return i(e,t),e}(Error);e.FortmaticError=a;var u=function(){function t(t,e){this.code=t,this.message="Fortmatic SDK Warning: ["+t+"] "+e}return t.prototype.log=function(){console.warn(this.message)},t}();e.FortmaticWarning=u;var c=function(t){function e(r){var n=t.call(this)||this;n.__proto__=Error;var i=Number(null==r?void 0:r.code),a=(null==r?void 0:r.message)||"Internal error";return n.code=s.isJsonRpcErrorCode(i)?i:o.RPCErrorCode.InternalError,n.message="Fortmatic RPC Error: ["+n.code+"] "+a,Object.setPrototypeOf(n,e.prototype),n}return i(e,t),e}(Error);e.RpcError=c,e.createMissingApiKeyError=function(){return new a(o.SDKErrorCode.MissingApiKey,"Please provide a Fortmatic API key that you acquired from the developer dashboard.")},e.createModalNotReadyError=function(){return new a(o.SDKErrorCode.ModalNotReady,"Modal is not ready.")},e.createInvalidArgumentError=function(t){var e,r,n;return new a(o.SDKErrorCode.InvalidArgument,"Invalid "+(n=(e=t.argIndex+1)%100,1==(r=e%10)&&11!==n?e+"st":2===r&&12!==n?e+"nd":3===r&&13!==n?e+"rd":e+"th")+" argument given to `"+t.functionName+"`.\n Expected: `"+t.expected+"`\n Received: `"+t.received+"`")},e.createSynchronousWeb3MethodWarning=function(){return new u(o.SDKWarningCode.SyncWeb3Method,"Non-async web3 methods will be deprecated
21in web3 > 1.0 and are not supported by the Fortmatic provider. An async method is to be used instead.")},e.createDuplicateIframeWarning=function(){return new u(o.SDKWarningCode.DuplicateIframe,"Duplicate iframes found.")}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1);e.emitWeb3Payload=function(t,e,r){return void 0===r&&(r=[]),new Promise(function(i,o){t.sendAsync(n.createJsonRpcRequestPayload(e,r),function(t,e){t?o(t):i(e.result)})})},e.emitFortmaticPayload=function(t,e){return new Promise(function(r,n){t.sendFortmaticAsync(e,function(t,e){t?n(t):r(e?e.result:{})})})}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0);function i(t){return!!t&&!(!t.jsonrpc||!t.id||!t.method||!t.batch||t.params)}function o(t){return!!t&&!(!t.jsonrpc||!t.id||!t.method||!t.params||t.batch)}e.isJsonRpcBatchRequestPayload=i,e.isJsonRpcRequestPayload=o,e.isJsonRpcResponsePayload=function(t){return!!t&&!(!t.jsonrpc||!t.id||!t.result&&null!==t.result&&!t.error)},e.isFmRequest=function(t){return!(!t||!t.payload)&&o(t.payload)},e.isFmBatchRequest=function(t){return!(!t||!t.payload)&&i(t.payload)},e.isFmPayloadMethod=function(t){return!!t&&"string"==typeof t&&Object.values(n.FmPayloadMethod).includes(t)},e.isJsonRpcErrorCode=function(t){return!!t&&"number"==typeof t&&Object.values(n.RPCErrorCode).includes(t)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){this.sdk=t};e.BaseModule=n},function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(i,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(s,a)}u((n=n.apply(t,e||[])).next())})},i=this&&this.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0});var s=r(0),a=r(4),u=r(7),c=r(2);function l(t,e){h=!!(r=e).data.response.error||!!r.data.response.message||!!r.data.response.code,f={message:null!=(o=null!=(i=null===(n=r.data.response.error)||void 0===n?void 0:n.message)?i:r.data.response.message)?o:"Fortmatic: Modal was closed without executing action!",code:null!=(l=null!=(c=null===(s=r.data.response.error)||void 0===s?void 0:s.code)?c:r.data.response.code)?l:1},r.data.response.error=h?f:null;var r,n,i,o,s,c,l,h,f,d,p,g,m,y,b,v=null!=(p=null===(d=e.data.response)||void 0===d?void 0:d.id)?p:void 0;return{response:new u.JsonRpcResponse(v&&a.isJsonRpcBatchRequestPayload(t)&&t.batch.find(function(t){return t.id===v})||t).applyResult(null===(g=e.data.response)||void 0===g?void 0:g.result).applyError(null===(m=e.data.response)||void 0===m?void 0:m.error),id:null!=(b=null===(y=e.data.response)||void 0===y?void 0:y.id)?b:void 0}}var h=function(){function t(t,e){this.endpoint=t,this.encodedQueryParams=e,this.messageHandlers=new Set,this.initMessageListener()}return t.prototype.post=function(t,e,r){return n(this,void 0,void 0,function(){var n,o=this;return i(this,function(i){switch(i.label){case 0:return[4,t.iframe];case 1:return n=i.sent(),[2,new Promise(function(t,i){if(n.contentWindow){var h,f,d=[],p=a.isJsonRpcBatchRequestPayload(r)?r.batch.map(function(t){return t.id}):[];n.contentWindow.postMessage({msgType:e+"-"+o.encodedQueryParams,payload:r},"*");var g=o.on(s.FmIncomingWindowMessage.FORTMATIC_HANDLE_RESPONSE,(f=function(){g(),m()},function(e){var n=l(r,e),i=n.id,o=n.response;i&&a.isJsonRpcBatchRequestPayload(r)&&p.includes(i)?(d.push(o.payload),d.length===r.batch.length&&(f(),t(d))):i&&i===r.id&&(f(),t(o.payload))})),m=o.on(s.FmIncomingWindowMessage.FORTMATIC_USER_DENIED,(h=function(){m(),g()},function(e){var n=l(r,e),i=n.id,o=n.response,s={message:"Fortmatic: Modal was closed without executing action!",code:1},c=o.hasError?o.payload:o.applyError(s).payload;if(i&&a.isJsonRpcBatchRequestPayload(r)&&p.includes(i)){d.push(c);for(var f=d.length;f<r.batch.length;f++)d.push(new u.JsonRpcResponse(r.batch[f]).applyError(s).payload);h(),t(d)}else i&&i===r.id&&(h(),t(c))}))}else i(c.createModalNotReadyError())})]}})})}
21,t.prototype.on=function(t,e){var r=this,n=e.bind(window),i=function(e){e.data.msgType===t+"-"+r.encodedQueryParams&&n(e)};return this.messageHandlers.add(i),function(){return r.messageHandlers.delete(i)}},t.prototype.initMessageListener=function(){var t=this;window.addEventListener("message",function(e){var r,n,i;if(e.origin===t.endpoint&&e.data&&e.data.msgType&&t.messageHandlers.size){e.data.response=null!=(i=e.data.response)?i:{};try{for(var s=o(t.messageHandlers.values()),a=s.next();!a.done;a=s.next())(0,a.value)(e)}catch(u){r={error:u}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}}})},t}();e.FmPayloadTransport=h},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(4),i=function(){function t(e){e instanceof t?(this._jsonrpc=e.payload.jsonrpc,this._id=e.payload.id,this._result=e.payload.result,this._error=e.payload.error):n.isJsonRpcResponsePayload(e)?(this._jsonrpc=e.jsonrpc,this._id=e.id,this._result=e.result,this._error=e.error):(this._jsonrpc=e.jsonrpc,this._id=e.id,this._result=null,this._error=null)}return t.prototype.applyError=function(t){return this._error=t,this},t.prototype.applyResult=function(t){return this._result=t,this},Object.defineProperty(t.prototype,"hasError",{get:function(){return void 0!==this._error&&null!==this._error},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasResult",{get:function(){return void 0!==this._result&&null!==this._result},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"payload",{get:function(){return{jsonrpc:this._jsonrpc,id:this._id,result:this._result,error:this._error}},enumerable:!0,configurable:!0}),t}();e.JsonRpcResponse=i},function(t,e,r){t.exports=r(9)},function(t,e,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var o=r(10);e.default=o.Fortmatic;var s=r(2);e.FortmaticError=s.FortmaticError,e.FortmaticWarning=s.FortmaticWarning,e.RpcError=s.RpcError;var a=i(r(0));Object.assign(o.Fortmatic,n(n({},a),{FortmaticError:s.FortmaticError,FortmaticWarning:s.FortmaticWarning,RpcError:s.RpcError})),function(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}(r(0))},function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=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(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(i,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(s,a)}u((n=n.apply(t,e||[])).next())})},s=this&&this.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};
21Object.defineProperty(e,"__esModule",{value:!0});var a=r(11),u=r(12),c=r(19),l=r(20),h=r(0),f=r(3),d=r(1),p=r(21),g=r(23),m=r(24),y=r(2),b=function(){function t(t){if(!t.apiKey)throw y.createMissingApiKeyError();this.apiKey=t.apiKey,this.gsnRelay=t.gsnRelay,this.endpoint=new URL(t.endpoint).origin,this.encodedQueryParams=g.encodeQueryParameters({API_KEY:this.apiKey,DOMAIN_ORIGIN:window.location?window.location.origin:"",ETH_NETWORK:t.ethNetwork,host:new URL(this.endpoint).host,sdk:m.name,version:m.version,gsnRelay:t.gsnRelay})}return t.prototype.getProvider=function(){return t.__provider__.has(this.encodedQueryParams)||t.__provider__.set(this.encodedQueryParams,new p.FmProvider(this.endpoint,this.apiKey,this.encodedQueryParams)),t.__provider__.get(this.encodedQueryParams)},t.__provider__=new Map,t}();e.SDK=b;var v=function(t){function e(e,r){var n=t.call(this,{apiKey:e,ethNetwork:r,endpoint:a.PHANTOM_URL})||this;return n.user=new u.PhantomUser(n),n}return i(e,t),e.prototype.loginWithMagicLink=function(t){return o(this,void 0,void 0,function(){var e,r,n,i;return s(this,function(o){switch(o.label){case 0:return e=t.email,n=void 0===(r=t.showUI)||r,i=d.createJsonRpcRequestPayload(h.FmPayloadMethod.fm_auth_login_with_magic_link,[{email:e,showUI:n}]),[4,f.emitFortmaticPayload(this.getProvider(),i)];case 1:return o.sent(),[2,this.user]}})})},e}(b);e.PhantomMode=v;var _=function(t){function e(e,r,n){void 0===n&&(n={gsnRelay:!1});var i=t.call(this,{apiKey:e,ethNetwork:r,endpoint:a.WIDGET_URL,gsnRelay:n.gsnRelay})||this;return i.transactions=new c.TransactionsModule(i),i.user=new l.UserModule(i),i}return i(e,t),e.prototype.configure=function(t){void 0===t&&(t={});var e=d.createJsonRpcRequestPayload(h.FmPayloadMethod.fm_configure,[t]);return f.emitFortmaticPayload(this.getProvider(),e)},e.Phantom=v,e}(b);e.WidgetMode=_,e.Fortmatic=_},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WIDGET_URL="https://x2.fortmatic.com",e.PHANTOM_URL="https://auth.fortmatic.com"},function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=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(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var o=r(0),s=r(3),a=r(1),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getIdToken=function(t){var e=a.createJsonRpcRequestPayload(o.FmPayloadMethod.fm_auth_get_access_token,[t]);return s.emitFortmaticPayload(this.sdk.getProvider(),e)},e.prototype.getMetadata=function(){var t=a.createJsonRpcRequestPayload(o.FmPayloadMethod.fm_auth_get_metadata);return s.emitFortmaticPayload(this.sdk.getProvider(),t)},e.prototype.isLoggedIn=function(){var t=a.createJsonRpcRequestPayload(o.FmPayloadMethod.fm_is_logged_in);return s.emitFortmaticPayload(this.sdk.getProvider(),t)},e.prototype.logout=function(){var t=a.createJsonRpcRequestPayload(o.FmPayloadMethod.fm_auth_logout);return s.emitFortmaticPayload(this.sdk.getProvider(),t)},e}(r(5).BaseModule);e.PhantomUser=u},function(t,e,r){"use strict";function n(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0}),n(r(14)),n(r(15)),n(r(16))},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.FmPayloadMethod||(e.FmPayloadMethod={})).fm_composeSend="fm_composeSend",n.fm_logout="fm_logout",n.fm_get_balances="fm_get_balances",n.fm_get_transactions="fm_get_transactions",n.fm_is_logged_in="fm_is_logged_in",n.fm_accountSettings="fm_accountSettings",n.fm_deposit="fm_deposit",n.fm_get_user="fm_get_user",n.fm_configure="fm_configure",n.fm_auth_login_with_magic_link="fm_auth_login_with_magic_link",n.fm_auth_get_access_token="fm_auth_get_access_token",n.fm_auth_get_metadata="fm_auth_get_metadata",n.fm_auth_logout="fm_auth_logout"},function(t,e,r){"use strict";var n,i;
21Object.defineProperty(e,"__esModule",{value:!0}),(n=e.FmIncomingWindowMessage||(e.FmIncomingWindowMessage={})).FORTMATIC_HANDLE_RESPONSE="FORTMATIC_HANDLE_RESPONSE",n.FORTMATIC_OVERLAY_READY="FORTMATIC_OVERLAY_READY",n.FORTMATIC_SHOW_OVERLAY="FORTMATIC_SHOW_OVERLAY",n.FORTMATIC_HIDE_OVERLAY="FORTMATIC_HIDE_OVERLAY",n.FORTMATIC_USER_DENIED="FORTMATIC_USER_DENIED",n.FORTMATIC_USER_LOGOUT="FORTMATIC_USER_LOGOUT",(i=e.FmOutgoingWindowMessage||(e.FmOutgoingWindowMessage={})).FORTMATIC_HANDLE_BATCH_REQUEST="FORTMATIC_HANDLE_BATCH_REQUEST",i.FORTMATIC_HANDLE_REQUEST="FORTMATIC_HANDLE_REQUEST",i.FORTMATIC_HANDLE_FORTMATIC_REQUEST="FORTMATIC_HANDLE_FORTMATIC_REQUEST"},function(t,e,r){"use strict";var n,i,o;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.SDKErrorCode||(e.SDKErrorCode={})).MissingApiKey="MISSING_API_KEY",n.ModalNotReady="MODAL_NOT_READY",n.InvalidArgument="INVALID_ARGUMENT",(i=e.SDKWarningCode||(e.SDKWarningCode={})).SyncWeb3Method="SYNC_WEB3_METHOD",i.DuplicateIframe="DUPLICATE_IFRAME",(o=e.RPCErrorCode||(e.RPCErrorCode={}))[o.ParseError=-32700]="ParseError",o[o.InvalidRequest=-32600]="InvalidRequest",o[o.MethodNotFound=-32601]="MethodNotFound",o[o.InvalidParams=-32602]="InvalidParams",o[o.InternalError=-32603]="InternalError",o[o.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",o[o.MagicLinkExpired=-10001]="MagicLinkExpired",o[o.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",o[o.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn"},function(t,e,r){"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.WidgetModePrimaryLoginOption||(e.WidgetModePrimaryLoginOption={})).LoginWithEmail="email",n.LoginWithPhone="phone"},function(t,e,r){"use strict";var n=this&&this.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=function(){var t;return n(this,function(e){switch(e.label){case 0:t=0,e.label=1;case 1:return t<Number.MAX_SAFE_INTEGER?[4,++t]:[3,3];case 2:return e.sent(),[3,4];case 3:t=0,e.label=4;case 4:return[3,1];case 5:return[2]}})}();e.getPayloadId=function(){return i.next().value}},function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=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(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var o=r(0),s=r(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.send=function(t,e){var r=s.createJsonRpcRequestPayload(o.FmPayloadMethod.fm_composeSend,t);this.sdk.getProvider().sendFortmaticAsync(r,e)},e}(r(5).BaseModule);e.TransactionsModule=a},function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=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(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(i,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(s,a)}u((n=n.apply(t,e||[])).next())})},s=this&&this.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;
21function a(o){return function(a){return function(o){if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(e,"__esModule",{value:!0});var a=r(0),u=r(3),c=r(1),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.login=function(){return o(this,void 0,void 0,function(){return s(this,function(t){return[2,this.sdk.getProvider().enable()]})})},e.prototype.logout=function(){var t=c.createJsonRpcRequestPayload(a.FmPayloadMethod.fm_logout);return u.emitFortmaticPayload(this.sdk.getProvider(),t)},e.prototype.getUser=function(){var t=c.createJsonRpcRequestPayload(a.FmPayloadMethod.fm_get_user);return u.emitFortmaticPayload(this.sdk.getProvider(),t)},e.prototype.getBalances=function(){var t=c.createJsonRpcRequestPayload(a.FmPayloadMethod.fm_get_balances);return u.emitFortmaticPayload(this.sdk.getProvider(),t)},e.prototype.getTransactions=function(){var t=c.createJsonRpcRequestPayload(a.FmPayloadMethod.fm_get_transactions);return u.emitFortmaticPayload(this.sdk.getProvider(),t)},e.prototype.isLoggedIn=function(){var t=c.createJsonRpcRequestPayload(a.FmPayloadMethod.fm_is_logged_in);return u.emitFortmaticPayload(this.sdk.getProvider(),t)},e.prototype.settings=function(){var t=c.createJsonRpcRequestPayload(a.FmPayloadMethod.fm_accountSettings);return u.emitFortmaticPayload(this.sdk.getProvider(),t)},e.prototype.deposit=function(t){var e=c.createJsonRpcRequestPayload(a.FmPayloadMethod.fm_deposit,[t||{}]);return u.emitFortmaticPayload(this.sdk.getProvider(),e)},e}(r(5).BaseModule);e.UserModule=l},function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(i,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(s,a)}u((n=n.apply(t,e||[])).next())})},i=this&&this.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(0),s=r(3),a=r(1),u=r(4),c=r(22),l=r(6),h=r(7),f=r(2),d=function(){function t(t,e,r){this.apiKey=e,this.isFortmatic=!0,this.queue=[],this.overlay=new c.FmIframeController(t,r),this.payloadTransport=new l.FmPayloadTransport(t,r),this.listen()}return t.prototype.sendAsync=function(t,e){if(!e)throw f.createInvalidArgumentError({functionName:"sendAsync",argIndex:1,expected:"function",received:null===e?"null":typeof e});if(Array.isArray(t))return this.enqueue({onRequestComplete:e,payload:a.createJsonRpcBatchRequestPayload(t)});var r=a.standardizeRequestPayload(t);return u.isJsonRpcBatchRequestPayload(r),this.enqueue({onRequestComplete:e,payload:r})},t.prototype.sendFortmaticAsync=function(t,e){if(!e)throw f.createInvalidArgumentError({functionName:"sendFortmaticAsync",argIndex:1,expected:"function",received:null===e?"null":typeof e});var r=a.standardizeRequestPayload(t);this.enqueue({onRequestComplete:e,payload:r,isFortmaticMethod:!0})},t.prototype.send=function(t,e){return"string"==typeof t?s.emitWeb3Payload(this,t,e):e?void this.sendAsync(t,e):(f.createSynchronousWeb3MethodWarning().log(),new h.JsonRpcResponse(t).applyError({code:-32603,message:"Non-async web3 methods will be deprecated
21in web3 > 1.0 and are not supported by the Fortmatic provider. An async method is to be used instead."}).payload)},t.prototype.enable=function(){return s.emitWeb3Payload(this,"eth_accounts")},t.prototype.request=function(t){return n(this,void 0,void 0,function(){return i(this,function(e){return[2,s.emitWeb3Payload(this,t.method,t.params)]})})},t.prototype.on=function(t,e){return console.warn("Fortmatic doesn't support event emit!"),function(){}},t.prototype.enqueue=function(t){t&&(this.queue.push(t),this.overlay.overlayReady&&this.dequeue())},t.prototype.dequeue=function(){return n(this,void 0,void 0,function(){var t,e,r,n;return i(this,function(i){switch(i.label){case 0:return 0===this.queue.length?[2]:(t=this.queue.shift())?(e=t.payload,u.isJsonRpcBatchRequestPayload(e)?0===e.batch.length?[2,t.onRequestComplete(null,[])]:[4,this.payloadTransport.post(this.overlay,o.FmOutgoingWindowMessage.FORTMATIC_HANDLE_REQUEST,e)]:[3,2]):[3,5];case 1:r=i.sent(),t.onRequestComplete(null,r),i.label=2;case 2:return u.isJsonRpcRequestPayload(e)?[4,this.payloadTransport.post(this.overlay,t.isFortmaticMethod?o.FmOutgoingWindowMessage.FORTMATIC_HANDLE_FORTMATIC_REQUEST:o.FmOutgoingWindowMessage.FORTMATIC_HANDLE_REQUEST,e)]:[3,4];case 3:(n=i.sent()).error?t.onRequestComplete(new f.RpcError(n.error),n):t.onRequestComplete(null,n),i.label=4;case 4:this.dequeue(),i.label=5;case 5:return[2]}})})},t.prototype.listen=function(){var t=this;this.payloadTransport.on(o.FmIncomingWindowMessage.FORTMATIC_OVERLAY_READY,function(){t.dequeue()}),this.payloadTransport.on(o.FmIncomingWindowMessage.FORTMATIC_USER_DENIED,function(){t.queue.forEach(function(t){var e=new h.JsonRpcResponse(t.payload),r={message:"Fortmatic: Modal was closed without executing action!",code:1};t.onRequestComplete(new f.RpcError(r),e.applyError(r).payload)}),t.queue.slice(0)})},t}();e.FmProvider=d},function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(i,o){function s(t){try{u(n.next(t))}catch(e){o(e)}}function a(t){try{u(n.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(s,a)}u((n=n.apply(t,e||[])).next())})},i=this&&this.__generator||function(t,e){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s};Object.defineProperty(e,"__esModule",{value:!0});var a=r(0),u=r(6),c=r(2),l={display:"none",position:"fixed",top:"0",right:"0",width:"100%",height:"100%",borderRadius:"0",border:"none",zIndex:"2147483647"},h=function(){function t(t,e){this.endpoint=t,this.encodedQueryParams=e,this._overlayReady=!1,this.iframe=this.init(),this.payloadTransport=new u.FmPayloadTransport(t,e),this.listen()}return Object.defineProperty(t.prototype,"overlayReady",{get:function(){return this._overlayReady},enumerable:!0,configurable:!0}),t.prototype.init=function(){var t=this;return new Promise(function(e){var r=function(){if(r=t.encodedQueryParams,Boolean([].slice.call(document.querySelectorAll(".fortmatic-iframe")).find(function(t){var e;return null===(e=t.src)||void 0===e?void 0:e.includes(r)})))c.createDuplicateIframeWarning().log();else{var r,n=document.createElement("iframe");n.classList.add("fortmatic-iframe"),n.dataset.fortmaticIframeLabel=new URL(t.endpoint).host,n.src=new URL("/send?params="+t.encodedQueryParams,t.endpoint).href,function(t){var e,r;try{for(var n=o(Object.entries(l)),i=n.next();!i.done;i=n.next()){var a=s(i.value,2),u=a[0],c=a[1];t.style[u]=c}}catch(h){e={error:h}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}}(n),document.body.appendChild(n);var i=document.createElement("img");i.src="https://static.fortmatic.com/assets/trans.gif",i.style.position="fixed",document.body.appendChild(i),e(n)}};["loaded","interactive","complete"].includes(document.readyState)?r():window.addEventListener("load",r,!1)})},t.prototype.showOverlay=function(){return n(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return[4,this.iframe];case 1:return t.sent().style.display="block",[2]}})})},t.prototype.hideOverlay=function(){return n(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return[4,this.iframe];case 1:return t.sent().style.display="none",[2]}})})},t.prototype.listen=function(){var t=this;this.payloadTransport.on(a.FmIncomingWindowMessage.FORTMATIC_OVERLAY_READY,function(){t._overlayReady=!0}),this.payloadTransport.on(a.FmIncomingWindowMessage.FORTMATIC_HIDE_OVERLAY,function(){t.hideOverlay()}),this.payloadTransport.on(a.FmIncomingWindowMessage.FORTMATIC_SHOW_OVERLAY,function(){t.showOverlay()})},t}();e.FmIframeController=h},function(t,e,r){"use strict";var n;
21Object.defineProperty(e,"__esModule",{value:!0}),(n||(n={})).HARMONY="HARMONY",e.encodeQueryParameters=function(t){return btoa(JSON.stringify(t))},e.decodeQueryParameters=function(t){return JSON.parse(atob(t))}},function(t){t.exports=JSON.parse('{"name":"fortmatic","version":"2.4.0","description":"Fortmatic Javascript SDK","author":"Fortmatic <[email protected]> (https://fortmatic.com/)","license":"MIT","repository":{"type":"git","url":"https://github.com/fortmatic/fortmatic-js"},"keywords":["auth","login","web3","crypto","ethereum","metaMask","wallet","blockchain","dapp"],"homepage":"https://www.fortmatic.com","main":"dist/cjs/fortmatic.js","types":"dist/cjs/src/index.d.ts","scripts":{"start":"npm run clean:build && ./scripts/start.sh","build":"npm run clean:build && ./scripts/build.sh","test":"npm run clean:test-artifacts && ./scripts/test.sh","lint":"eslint --fix src/**/*.ts","clean":"npm-run-all -s clean:*","clean:test-artifacts":"rimraf coverage && rimraf .nyc_output","clean:build":"rimraf dist","clean_node_modules":"rimraf node_modules"},"dependencies":{},"devDependencies":{"@ikscodes/browser-env":"~0.3.1","@ikscodes/eslint-config":"~6.2.0","@ikscodes/prettier-config":"^0.1.0","@istanbuljs/nyc-config-typescript":"~0.1.3","@types/jsdom":"~12.2.4","@types/sinon":"~7.5.0","@types/webpack":"~4.41.0","@typescript-eslint/eslint-plugin":"~2.17.0","ava":"2.2.0","cross-env":"~6.0.3","eslint":"~6.8.0","eslint-import-resolver-typescript":"~2.0.0","eslint-plugin-import":"~2.20.0","eslint-plugin-jsx-a11y":"~6.2.3","eslint-plugin-prettier":"~3.1.2","eslint-plugin-react":"~7.18.0","eslint-plugin-react-hooks":"~1.7.0","lodash":"~4.17.15","npm-run-all":"~4.1.5","nyc":"13.1.0","prettier":"~1.19.1","rimraf":"~3.0.0","sinon":"7.1.1","ts-loader":"~6.2.1","ts-node":"~8.5.2","typescript":"~3.7.2","webpack":"~4.41.2","webpack-chain":"~6.2.0","webpack-cli":"~3.3.10"},"ava":{"require":["ts-node/register"],"files":["test/**/*.spec.ts"],"extensions":["ts"],"compileEnhancements":false,"verbose":true},"nyc":{"extends":"@istanbuljs/nyc-config-typescript","all":false,"check-coverage":true,"per-file":true,"lines":99,"statements":99,"functions":99,"branches":99,"reporter":["html","lcov"]}}')}]).default},3349:function(t,e,r){"use strict";var n=r(89509).Buffer,i=r(88473).Transform;function o(t){i.call(this),this._block=n.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(35717)(o,i),o.prototype._transform=function(t,e,r){var n=null;try{this.update(t,e)}catch(i){n=i}r(n)},o.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(r){e=r}t(e)},o.prototype.update=function(t,e){if(function(t,e){if(!n.isBuffer(t)&&"string"!=typeof t)throw TypeError(e+" must be a string or a buffer")}(t,"Data"),this._finalized)throw Error("Digest already called");n.isBuffer(t)||(t=n.from(t,e));for(var r=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)r[o++]=t[i++];this._update(),this._blockOffset=0}for(;i<t.length;)r[this._blockOffset++]=t[i++];for(var s=0,a=8*t.length;a>0;++s)this._length[s]+=a,(a=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*a);return this},o.prototype._update=function(){throw Error("_update is not implemented")},o.prototype.digest=function(t){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e},o.prototype._digest=function(){throw Error("_digest is not implemented")},t.exports=o},2156:function(t,e,r){"use strict";var n=r(33715),i=r(34504),o=r(79746);function s(t){if(!(this instanceof s))return new s(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=i.toArray(t.entropy,t.entropyEnc||"hex"),r=i.toArray(t.nonce,t.nonceEnc||"hex"),n=i.toArray(t.pers,t.persEnc||"hex");o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}t.exports=s,s.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},s.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},s.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([
211]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},s.prototype.reseed=function(t,e,r,n){"string"!=typeof e&&(n=r,r=e,e=null),t=i.toArray(t,e),r=i.toArray(r,n),o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},s.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof e&&(n=r,r=e,e=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<t;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var s=o.slice(0,t);return this._update(r),this._reseed++,i.encode(s,e)}},23944:function(t){t.exports=function(t){if("string"!=typeof t)throw Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof t+", while checking isHexPrefixed.");return"0x"===t.slice(0,2)}},4501:function(t){t.exports=n,n.strict=i,n.loose=o;var e=Object.prototype.toString,r={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function n(t){return i(t)||o(t)}function i(t){return t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array}function o(t){return r[e.call(t)]}},5826:function(t){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},67266:function(t,e,r){"use strict";var n="undefined"!=typeof JSON?JSON:r(58418),i=Array.isArray||function(t){return"[object Array]"===({}).toString.call(t)},o=Object.keys||function(t){var e=Object.prototype.hasOwnProperty||function(){return!0},r=[];for(var n in t)e.call(t,n)&&r.push(n);return r};t.exports=function(t,e){e||(e={}),"function"==typeof e&&(e={cmp:e});var r,s=e.space||"";"number"==typeof s&&(s=Array(s+1).join(" "));var a="boolean"==typeof e.cycles&&e.cycles,u=e.replacer||function(t,e){return e},c=e.cmp&&(r=e.cmp,function(t){return function(e,n){return r({key:e,value:t[e]},{key:n,value:t[n]})}}),l=[];return function t(e,r,h,f){var d=s?"\n"+Array(f+1).join(s):"",p=s?": ":":";if(h&&h.toJSON&&"function"==typeof h.toJSON&&(h=h.toJSON()),void 0!==(h=u.call(e,r,h))){if("object"!=typeof h||null===h)return n.stringify(h);if(i(h)){for(var g=[],m=0;m<h.length;m++){var y=t(h,m,h[m],f+1)||n.stringify(null);g.push(d+s+y)}return"["+g.join(",")+d+"]"}if(-1!==l.indexOf(h)){if(a)return n.stringify("__cycle__");throw TypeError("Converting circular structure to JSON")}l.push(h);for(var b=o(h).sort(c&&c(h)),g=[],m=0;m<b.length;m++){var r=b[m],v=t(h,r,h[r],f+1);if(v){var _=n.stringify(r)+p+v;g.push(d+s+_)}}return l.splice(l.indexOf(h),1),"{"+g.join(",")+d+"}"}}({"":t},"",t,0)}},58418:function(t,e,r){"use strict";e.parse=r(51396),e.stringify=r(66177)},51396:function(t){"use strict";var e,r,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "};function o(t){throw{name:"SyntaxError",message:t,at:e,text:n}}function s(t){return t&&t!==r&&o("Expected '"+t+"' instead of '"+r+"'"),r=n.charAt(e),e+=1,r}function a(){var t,e="";for("-"===r&&(e="-",s("-"));r>="0"&&r<="9";)e+=r,s();if("."===r)for(e+=".";s()&&r>="0"&&r<="9";)e+=r;if("e"===r||"E"===r)for(e+=r,s(),("-"===r||"+"===r)&&(e+=r,s());r>="0"&&r<="9";)e+=r,s();return isFinite(t=Number(e))||o("Bad number"),t}function u(){var t,e,n,a="";if('"'===r)for(;s();){if('"'===r)return s(),a;
21if("\\"===r){if(s(),"u"===r){for(e=0,n=0;e<4&&isFinite(t=parseInt(s(),16));e+=1)n=16*n+t;a+=String.fromCharCode(n)}else if("string"==typeof i[r])a+=i[r];else break}else a+=r}o("Bad string")}function c(){for(;r&&r<=" ";)s()}function l(){switch(c(),r){case"{":return function(){var t,e={};if("{"===r){if(s("{"),c(),"}"===r)return s("}"),e;for(;r;){if(t=u(),c(),s(":"),Object.prototype.hasOwnProperty.call(e,t)&&o('Duplicate key "'+t+'"'),e[t]=l(),c(),"}"===r)return s("}"),e;s(","),c()}}o("Bad object")}();case"[":return function(){var t=[];if("["===r){if(s("["),c(),"]"===r)return s("]"),t;for(;r;){if(t.push(l()),c(),"]"===r)return s("]"),t;s(","),c()}}o("Bad array")}();case'"':return u();case"-":return a();default:return r>="0"&&r<="9"?a():function(){switch(r){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null;default:o("Unexpected '"+r+"'")}}()}}t.exports=function(t,i){var s;return n=t,e=0,r=" ",s=l(),c(),r&&o("Syntax error"),"function"==typeof i?function t(e,r){var n,o,s=e[r];if(s&&"object"==typeof s)for(n in l)Object.prototype.hasOwnProperty.call(s,n)&&(void 0===(o=t(s,n))?delete s[n]:s[n]=o);return i.call(e,r,s)}({"":s},""):s}},66177:function(t){"use strict";var e,r,n=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,i={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function o(t){return n.lastIndex=0,n.test(t)?'"'+t.replace(n,function(t){var e=i[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'}t.exports=function(t,n,i){var s;if(e="",r="","number"==typeof i)for(s=0;s<i;s+=1)r+=" ";else"string"==typeof i&&(r=i);if(n&&"function"!=typeof n&&("object"!=typeof n||"number"!=typeof n.length))throw Error("JSON.stringify");return function t(i,s){var a,u,c,l,h,f=e,d=s[i];switch(d&&"object"==typeof d&&"function"==typeof d.toJSON&&(d=d.toJSON(i)),"function"==typeof n&&(d=n.call(s,i,d)),typeof d){case"string":return o(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(e+=r,h=[],"[object Array]"===Object.prototype.toString.apply(d)){for(a=0,l=d.length;a<l;a+=1)h[a]=t(a,d)||"null";return c=0===h.length?"[]":e?"[\n"+e+h.join(",\n"+e)+"\n"+f+"]":"["+h.join(",")+"]",e=f,c}if(n&&"object"==typeof n)for(a=0,l=n.length;a<l;a+=1)"string"==typeof(u=n[a])&&(c=t(u,d))&&h.push(o(u)+(e?": ":":")+c);else for(u in d)Object.prototype.hasOwnProperty.call(d,u)&&(c=t(u,d))&&h.push(o(u)+(e?": ":":")+c);return c=0===h.length?"{}":e?"{\n"+e+h.join(",\n"+e)+"\n"+f+"}":"{"+h.join(",")+"}",e=f,c}}("",{"":t})}},95811:function(t,e,r){t.exports=r(26066)(r(79653))},26066:function(t,e,r){let n=r(37016),i=r(5675);t.exports=function(t){let e=n(t),r=i(t);return function(t,n){let i="string"==typeof t?t.toLowerCase():t;switch(i){case"keccak224":return new e(1152,448,null,224,n);case"keccak256":return new e(1088,512,null,256,n);case"keccak384":return new e(832,768,null,384,n);case"keccak512":return new e(576,1024,null,512,n);case"sha3-224":return new e(1152,448,6,224,n);case"sha3-256":return new e(1088,512,6,256,n);case"sha3-384":return new e(832,768,6,384,n);case"sha3-512":return new e(576,1024,6,512,n);case"shake128":return new r(1344,256,31,n);case"shake256":return new r(1088,512,31,n);default:throw Error("Invald algorithm: "+t)}}}},37016:function(t,e,r){var n=r(48764).Buffer;let{Transform:i}=r(88473);t.exports=t=>class e extends i{constructor(e,r,n,i,o){super(o),this._rate=e,this._capacity=r,this._delimitedSuffix=n,this._hashBitLength=i,this._options=o,this._state=new t,this._state.initialize(e,r),this._finalized=!1}_transform(t,e,r){let n=null;try{this.update(t,e)}catch(i){n=i}r(n)}_flush(t){let e=null;try{this.push(this.digest())}catch(r){e=r}t(e)}update(t,e){if(!n.isBuffer(t)&&"string"!=typeof t)throw TypeError("Data must be a string or a buffer");if(this._finalized)throw Error("Digest already called");return n.isBuffer(t)||(t=n.from(t,e)),this._state.absorb(t),this}
21digest(t){if(this._finalized)throw Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let e=this._state.squeeze(this._hashBitLength/8);return void 0!==t&&(e=e.toString(t)),this._resetState(),e}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let t=new e(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}},5675:function(t,e,r){var n=r(48764).Buffer;let{Transform:i}=r(88473);t.exports=t=>class e extends i{constructor(e,r,n,i){super(i),this._rate=e,this._capacity=r,this._delimitedSuffix=n,this._options=i,this._state=new t,this._state.initialize(e,r),this._finalized=!1}_transform(t,e,r){let n=null;try{this.update(t,e)}catch(i){n=i}r(n)}_flush(){}_read(t){this.push(this.squeeze(t))}update(t,e){if(!n.isBuffer(t)&&"string"!=typeof t)throw TypeError("Data must be a string or a buffer");if(this._finalized)throw Error("Squeeze already called");return n.isBuffer(t)||(t=n.from(t,e)),this._state.absorb(t),this}squeeze(t,e){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let r=this._state.squeeze(t);return void 0!==e&&(r=r.toString(e)),r}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let t=new e(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}},34040:function(t,e){let r=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];e.p1600=function(t){for(let e=0;e<24;++e){let n=t[0]^t[10]^t[20]^t[30]^t[40],i=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],a=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[36]^t[46],l=t[7]^t[17]^t[27]^t[37]^t[47],h=t[8]^t[18]^t[28]^t[38]^t[48],f=t[9]^t[19]^t[29]^t[39]^t[49],d=h^(o<<1|s>>>31),p=f^(s<<1|o>>>31),g=t[0]^d,m=t[1]^p,y=t[10]^d,b=t[11]^p,v=t[20]^d,_=t[21]^p,w=t[30]^d,M=t[31]^p,S=t[40]^d,E=t[41]^p;d=n^(a<<1|u>>>31),p=i^(u<<1|a>>>31);let x=t[2]^d,k=t[3]^p,A=t[12]^d,C=t[13]^p,R=t[22]^d,O=t[23]^p,P=t[32]^d,I=t[33]^p,T=t[42]^d,N=t[43]^p;d=o^(c<<1|l>>>31),p=s^(l<<1|c>>>31);let L=t[4]^d,j=t[5]^p,B=t[14]^d,D=t[15]^p,F=t[24]^d,U=t[25]^p,z=t[34]^d,H=t[35]^p,q=t[44]^d,W=t[45]^p;d=a^(h<<1|f>>>31),p=u^(f<<1|h>>>31);let V=t[6]^d,K=t[7]^p,G=t[16]^d,Z=t[17]^p,$=t[26]^d,J=t[27]^p,Y=t[36]^d,Q=t[37]^p,X=t[46]^d,tt=t[47]^p;d=c^(n<<1|i>>>31),p=l^(i<<1|n>>>31);let te=t[8]^d,tr=t[9]^p,tn=t[18]^d,ti=t[19]^p,to=t[28]^d,ts=t[29]^p,ta=t[38]^d,tu=t[39]^p,tc=t[48]^d,tl=t[49]^p,th=b<<4|y>>>28,tf=y<<4|b>>>28,td=v<<3|_>>>29,tp=_<<3|v>>>29,tg=M<<9|w>>>23,tm=w<<9|M>>>23,ty=S<<18|E>>>14,tb=E<<18|S>>>14,tv=x<<1|k>>>31,t_=k<<1|x>>>31,tw=C<<12|A>>>20,tM=A<<12|C>>>20,tS=R<<10|O>>>22,tE=O<<10|R>>>22,tx=I<<13|P>>>19,tk=P<<13|I>>>19,tA=T<<2|N>>>30,tC=N<<2|T>>>30,tR=j<<30|L>>>2,tO=L<<30|j>>>2,tP=B<<6|D>>>26,tI=D<<6|B>>>26,tT=U<<11|F>>>21,tN=F<<11|U>>>21,tL=z<<15|H>>>17,tj=H<<15|z>>>17,tB=W<<29|q>>>3,tD=q<<29|W>>>3,tF=V<<28|K>>>4,tU=K<<28|V>>>4,tz=Z<<23|G>>>9,tH=G<<23|Z>>>9,tq=$<<25|J>>>7,tW=J<<25|$>>>7,tV=Y<<21|Q>>>11,tK=Q<<21|Y>>>11,tG=tt<<24|X>>>8,tZ=X<<24|tt>>>8,t$=te<<27|tr>>>5,tJ=tr<<27|te>>>5,tY=tn<<20|ti>>>12,tQ=ti<<20|tn>>>12,tX=ts<<7|to>>>25,t0=to<<7|ts>>>25,t1=ta<<8|tu>>>24,t2=tu<<8|ta>>>24,t3=tc<<14|tl>>>18,t6=tl<<14|tc>>>18;t[0]=g^~tw&tT,t[1]=m^~tM&tN,t[10]=tF^~tY&td,t[11]=tU^~tQ&tp,t[20]=tv^~tP&tq,t[21]=t_^~tI&tW,t[30]=t$^~th&tS,t[31]=tJ^~tf&tE,t[40]=tR^~tz&tX,t[41]=tO^~tH&t0,t[2]=tw^~tT&tV,t[3]=tM^~tN&tK,t[12]=tY^~td&tx,t[13]=tQ^~tp&tk,t[22]=tP^~tq&t1,t[23]=tI^~tW&t2,t[32]=th^~tS&tL,t[33]=tf^~tE&tj,t[42]=tz^~tX&tg,t[43]=tH^~t0&tm,t[4]=tT^~tV&t3,t[5]=tN^~tK&t6,t[14]=td^~tx&tB,t[15]=tp^~tk&tD,t[24]=tq^~t1&ty,t[25]=tW^~t2&tb,t[34]=tS^~tL&tG,t[35]=tE^~tj&tZ,t[44]=tX^~tg&tA,t[45]=t0^~tm&tC,t[6]=tV^~t3&g,t[7]=tK^~t6&m,t[16]=tx^~tB&tF,t[17]=tk^~tD&tU,t[26]=t1^~ty&tv,t[27]=t2^~tb&t_,t[36]=tL^~tG&t$,t[37]=tj^~tZ&tJ,t[46]=tg^~tA&tR,t[47]=tm^~tC&tO,t[8]=t3^~g&tw,t[9]=t6^~m&tM,t[18]=tB^~tF&tY,t[19]=tD^~tU&tQ,t[28]=ty^~tv&tP,t[29]=tb^~t_&tI,t[38]=tG^~t$&th,t[39]=tZ^~tJ&tf,t[48]=tA^~tR&tz,t[49]=tC^~tO&tH,t[0]^=r[2*e],t[1]^=r[2*e+1]}}},79653:function(t,e,r){var n=r(48764).Buffer;let i=r(34040);function o(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}o.prototype.initialize=function(t,e){for(let r=0;r<50;++r)this.state[r]=0;this.blockSize=t/8,this.count=0,this.squeezing=!1},o.prototype.absorb=function(t){for(let e=0;e<t.length;++e)this.state[~~(this.count/4)]^=t[e]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(i.p1600(this.state),this.count=0)},o.prototype.absorbLastFewBits=function(t){this.state[~~(this.count/4)]^=t<<8*(this.count%4),(128&t)!=0&&this.count===this.blockSize-1&&i.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),i.p1600(this.state),this.count=0,this.squeezing=!0},o.prototype.squeeze=function(t){this.squeezing||this.absorbLastFewBits(1);let e=n.alloc(t);for(let r=0;r<t;++r)e[r]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(i.p1600(this.state),this.count=0);return e},o.prototype.copy=function(t){for(let e=0;e<50;++e)t.state[e]=this.state[e];t.blockSize=this.blockSize,t.count=this.count,t.squeezing=this.squeezing},t.exports=o},94648:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};let i=n(r(13550)),o=n(r(48764)),s=n(r(95811)),a=o.default.Buffer;function u(t){return t=function(t){if(!a.isBuffer(t)){if(Array.isArray(t))t=a.from(t);else if("string"==typeof t){var e,r,n;t="string"==typeof(e=t)&&e.match(/^0x[0-9A-Fa-f]*$/)&&(!r||e.length===2+2*r)?a.from(c("string"!=typeof(n=t)?n:!function(t){if("string"!=typeof t)throw Error("value must be type 'string', is currently type "+typeof t+", while checking isHexPrefixed.");return"0x"===t.slice(0,2)}(n)?n:n.slice(2)),"hex"):a.from(t)}else if("number"==typeof t)t=function(t){let e=function(t){let e=t.toString(16);return`0x${e}`}(t);return a.from(c(e.slice(2)),"hex")}(t);else if(null==t)t=a.allocUnsafe(0);else if(i.default.isBN(t))t=t.toArrayLike(a);else if(t.toArray)t=a.from(t.toArray());else throw Error("invalid type")}return t}(t),(0,s.default)("keccak256").update(t).digest()}function c(t){if("string"!=typeof t)throw Error(`while padding to even, value must be string, is currently ${typeof t}, while padToEven.`);return t.length%2&&(t=`0${t}`),t}"undefined"!=typeof window&&(window.keccak256=u),t.exports=u},62705:function(t,e,r){var n=r(55639).Symbol;t.exports=n},14636:function(t,e,r){var n=r(22545),i=r(35694),o=r(1469),s=r(44144),a=r(65776),u=r(36719),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=o(t),l=!r&&i(t),h=!r&&!l&&s(t),f=!r&&!l&&!h&&u(t),d=r||l||h||f,p=d?n(t.length,String):[],g=p.length;for(var m in t)(e||c.call(t,m))&&!(d&&("length"==m||h&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,g)))&&p.push(m);return p}},44239:function(t,e,r){var n=r(62705),i=r(89607),o=r(2333),s=n?n.toStringTag:void 0;
21t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):o(t)}},9454:function(t,e,r){var n=r(44239),i=r(37005);t.exports=function(t){return i(t)&&"[object Arguments]"==n(t)}},38749:function(t,e,r){var n=r(44239),i=r(41780),o=r(37005),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[n(t)]}},280:function(t,e,r){var n=r(25726),i=r(86916),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=[];for(var r in Object(t))o.call(t,r)&&"constructor"!=r&&e.push(r);return e}},22545:function(t){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},7518:function(t){t.exports=function(t){return function(e){return t(e)}}},31957:function(t,e,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},89607:function(t,e,r){var n=r(62705),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(i){}var u=s.call(t);return n&&(e?t[a]=r:delete t[a]),u}},65776:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},25726:function(t){var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor,n="function"==typeof r&&r.prototype||e;return t===n}},86916:function(t,e,r){var n=r(5569)(Object.keys,Object);t.exports=n},31167:function(t,e,r){t=r.nmd(t);var n=r(31957),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,s=o&&o.exports===i&&n.process,a=function(){try{var t=o&&o.require&&o.require("util").types;if(t)return t;return s&&s.binding&&s.binding("util")}catch(e){}}();t.exports=a},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:function(t){t.exports=function(t,e){return function(r){return t(e(r))}}},55639:function(t,e,r){var n=r(31957),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();t.exports=o},35694:function(t,e,r){var n=r(9454),i=r(37005),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return i(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},1469:function(t){var e=Array.isArray;t.exports=e},98612:function(t,e,r){var n=r(23560),i=r(41780);t.exports=function(t){return null!=t&&i(t.length)&&!n(t)}},44144:function(t,e,r){t=r.nmd(t);var n=r(55639),i=r(95062),o=e&&!e.nodeType&&e,s=o&&t&&!t.nodeType&&t,a=s&&s.exports===o?n.Buffer:void 0,u=a?a.isBuffer:void 0;t.exports=u||i},23560:function(t,e,r){var n=r(44239),i=r(13218);t.exports=function(t){if(!i(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},41780:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},13218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},37005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},36719:function(t,e,r){var n=r(38749),i=r(7518),o=r(31167),s=o&&o.isTypedArray,a=s?i(s):n;t.exports=a},3674:function(t,e,r){var n=r(14636),i=r(280),o=r(98612);t.exports=function(t){return o(t)?n(t):i(t)}},50308:function(t){t.exports=function(){}},95062:function(t){t.exports=function(){return!1}},62318:function(t,e,r){"use strict";var n=r(35717),i=r(3349),o=r(89509).Buffer,s=Array(16);function a(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(t,e){return t<<e|t>>>32-e}function c(t,e,r,n,i,o,s){return u(t+(e&r|~e&n)+i+o|0,s)+e|0}function l(t,e,r,n,i,o,s){return u(t+(e&n|r&~n)+i+o|0,s)+e|0}function h(t,e,r,n,i,o,s){return u(t+(e^r^n)+i+o|0,s)+e|0}function f(t,e,r,n,i,o,s){return u(t+(r^(e|~n))+i+o|0,s)+e|0}n(a,i),a.prototype._update=function(){for(var t=s,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var r=this._a,n=this._b,i=this._c,o=this._d;r=c(r,n,i,o,t[0],3614090360,7),o=c(o,r,n,i,t[1],3905402710,12),i=c(i,o,r,n,t[2],606105819,17),n=c(n,i,o,r,t[3],3250441966,22),r=c(r,n,i,o,t[4],4118548399,7),o=c(o,r,n,i,t[5],1200080426,12),i=c(i,o,r,n,t[6],2821735955,17),n=c(n,i,o,r,t[7],4249261313,22),r=c(r,n,i,o,t[8],1770035416,7),o=c(o,r,n,i,t[9],2336552879,12),i=c(i,o,r,n,t[10],4294925233,17),n=c(n,i,o,r,t[11],2304563134,22),r=c(r,n,i,o,t[12],1804603682,7),o=c(o,r,n,i,t[13],4254626195,12),i=c(i,o,r,n,t[14],2792965006,17),n=c(n,i,o,r,t[15],1236535329,22),r=l(r,n,i,o,t[1],4129170786,5),o=l(o,r,n,i,t[6],3225465664,9),i=l(i,o,r,n,t[11],643717713,14),n=l(n,i,o,r,t[0],3921069994,20),r=l(r,n,i,o,t[5],3593408605,5),o=l(o,r,n,i,t[10],38016083,9),i=l(i,o,r,n,t[15],3634488961,14),n=l(n,i,o,r,t[4],3889429448,20),r=l(r,n,i,o,t[9],568446438,5),o=l(o,r,n,i,t[14],3275163606,9),i=l(i,o,r,n,t[3],4107603335,14),n=l(n,i,o,r,t[8],1163531501,20),r=l(r,n,i,o,t[13],2850285829,5),o=l(o,r,n,i,t[2],4243563512,9),i=l(i,o,r,n,t[7],1735328473,14),n=l(n,i,o,r,t[12],2368359562,20),r=h(r,n,i,o,t[5],4294588738,4),o=h(o,r,n,i,t[8],2272392833,11),i=h(i,o,r,n,t[11],1839030562,16),n=h(n,i,o,r,t[14],4259657740,23),r=h(r,n,i,o,t[1],2763975236,4),o=h(o,r,n,i,t[4],1272893353,11),i=h(i,o,r,n,t[7],4139469664,16),n=h(n,i,o,r,t[10],3200236656,23),r=h(r,n,i,o,t[13],681279174,4),o=h(o,r,n,i,t[0],3936430074,11),i=h(i,o,r,n,t[3],3572445317,16),n=h(n,i,o,r,t[6],76029189,23),r=h(r,n,i,o,t[9],3654602809,4),o=h(o,r,n,i,t[12],3873151461,11),i=h(i,o,r,n,t[15],530742520,16),n=h(n,i,o,r,t[2],3299628645,23),r=f(r,
21n,i,o,t[0],4096336452,6),o=f(o,r,n,i,t[7],1126891415,10),i=f(i,o,r,n,t[14],2878612391,15),n=f(n,i,o,r,t[5],4237533241,21),r=f(r,n,i,o,t[12],1700485571,6),o=f(o,r,n,i,t[3],2399980690,10),i=f(i,o,r,n,t[10],4293915773,15),n=f(n,i,o,r,t[1],2240044497,21),r=f(r,n,i,o,t[8],1873313359,6),o=f(o,r,n,i,t[15],4264355552,10),i=f(i,o,r,n,t[6],2734768916,15),n=f(n,i,o,r,t[13],1309151649,21),r=f(r,n,i,o,t[4],4149444226,6),o=f(o,r,n,i,t[11],3174756917,10),i=f(i,o,r,n,t[2],718787259,15),n=f(n,i,o,r,t[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=o.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=a},75117:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Base=void 0;let i=r(48764),o=n(r(81354));class s{print(){s.print(this)}bufferIndexOf(t,e,r=!1){if(r)return this.binarySearch(t,e,i.Buffer.compare);let n=(t,e)=>t.equals(e);return this.linearSearch(t,e,n)}static binarySearch(t,e,r){let n=0,i=t.length-1;for(;n<=i;){let o=Math.floor((n+i)/2),s=r(t[o],e);if(0===s){for(let a=o-1;a>=0;a--)if(0!==r(t[a],e))return a+1;return 0}s<0?n=o+1:i=o-1}return -1}binarySearch(t,e,r){return s.binarySearch(t,e,r)}static linearSearch(t,e,r){for(let n=0;n<t.length;n++)if(r(t[n],e))return n;return -1}linearSearch(t,e,r){return s.linearSearch(t,e,r)}static bufferify(t){if(!i.Buffer.isBuffer(t)){if("object"==typeof t&&t.words)return i.Buffer.from(t.toString(o.default.enc.Hex),"hex");if(s.isHexString(t))return i.Buffer.from(t.replace(/^0x/,""),"hex");if("string"==typeof t)return i.Buffer.from(t);if("bigint"==typeof t)return i.Buffer.from(t.toString(16),"hex");else if(t instanceof Uint8Array)return i.Buffer.from(t.buffer);else if("number"==typeof t){let e=t.toString();return e.length%2&&(e=`0${e}`),i.Buffer.from(e,"hex")}else if(ArrayBuffer.isView(t))return i.Buffer.from(t.buffer,t.byteOffset,t.byteLength)}return t}bigNumberify(t){return s.bigNumberify(t)}static bigNumberify(t){if("bigint"==typeof t)return t;if("string"==typeof t)return t.startsWith("0x")&&s.isHexString(t)?BigInt("0x"+t.replace("0x","").toString()):BigInt(t);if(i.Buffer.isBuffer(t))return BigInt("0x"+t.toString("hex"));if(t instanceof Uint8Array||"number"==typeof t)return BigInt(t);throw Error("cannot bigNumberify")}static isHexString(t){return"string"==typeof t&&/^(0x)?[0-9A-Fa-f]*$/.test(t)}static print(t){console.log(t.toString())}bufferToHex(t,e=!0){return s.bufferToHex(t,e)}static bufferToHex(t,e=!0){return`${e?"0x":""}${(t||i.Buffer.alloc(0)).toString("hex")}`}bufferify(t){return s.bufferify(t)}bufferifyFn(t){return e=>{let r=t(e);return i.Buffer.isBuffer(r)?r:this.isHexString(r)?i.Buffer.from(r.replace("0x",""),"hex"):"string"==typeof r?i.Buffer.from(r):"bigint"==typeof r?i.Buffer.from(e.toString(16),"hex"):ArrayBuffer.isView(r)?i.Buffer.from(r.buffer,r.byteOffset,r.byteLength):i.Buffer.from(t(o.default.enc.Hex.parse(e.toString("hex"))).toString(o.default.enc.Hex),"hex")}}isHexString(t){return s.isHexString(t)}log2(t){return 1===t?0:1+this.log2(t/2|0)}zip(t,e){return t.map((t,r)=>[t,e[r]])}static hexZeroPad(t,e){return"0x"+t.replace("0x","").padStart(e,"0")}}e.Base=s,e.default=s},8659:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.IncrementalMerkleTree=void 0;let i=n(r(75117)),o=n(r(99269));class s extends i.default{constructor(t,e){if(super(),this.hashFn=t,e.depth&&(this.depth=e.depth),e.arity&&(this.arity=e.arity),this.depth<1)throw Error("depth must be greater than 0");if(this.arity<1)throw Error("arity must be greater than 0");let r=[],n=e.zeroValue;if(this.zeroValue=n,this.zeroes=[],this.depth)for(let i=0;i<this.depth;i++)this.zeroes.push(n),r[i]=[],n=this.hashFn(Array(this.arity).fill(n));this.nodes=r,this.root=n}getRoot(){return this.root}getHexRoot(){return this.bufferToHex(this.bufferify(this.getRoot()))}insert(t){if(this.depth&&this.arity&&this.nodes[0].length>=this.getMaxLeaves())throw Error("tree is full");let e=t,r=this.nodes[0].length;for(let n=0;n<this.depth;n+=1){let i=r%this.arity,o=r-i,s=o+this.arity,a=[];this.nodes[n][r]=e;for(let u=o;u<s;u+=1)u<this.nodes[n].length?a.push(this.nodes[n][u]):a.push(this.zeroes[n]);
21e=this.hashFn(a),r=Math.floor(r/this.arity)}this.root=e}delete(t){this.update(t,this.zeroValue)}update(t,e){if(t<0||t>=this.nodes[0].length)throw Error("out of bounds");let r=e;for(let n=0;n<this.depth;n+=1){let i=t%this.arity,o=t-i,s=o+this.arity,a=[];this.nodes[n][t]=r;for(let u=o;u<s;u+=1)u<this.nodes[n].length?a.push(this.nodes[n][u]):a.push(this.zeroes[n]);r=this.hashFn(a),t=Math.floor(t/this.arity)}this.root=r}getDepth(){return this.depth}getArity(){return this.arity}getMaxLeaves(){return Math.pow(this.depth,this.arity)}indexOf(t){return this.nodes[0].indexOf(t)}getLeaves(){let t=this.copyList(this.nodes[0]),e=this.nodes[0].length;for(let r=e;r<this.getMaxLeaves();r++)t[r]=this.zeroValue;return t}copyList(t){return t.map(t=>BigInt(t))}getLayers(){let t=[];for(let e of this.nodes)t.push(this.copyList(e));if(t[0].length<this.getMaxLeaves()){let r=t[0].length;for(let n=r;n<this.getMaxLeaves();n++)t[0][n]=this.zeroValue;for(let i=0;i<this.depth;i++){let o=r%this.arity,s=r-o,a=s+this.arity;for(let u=s;u<a;u++)u>=t[i].length&&(t[i][u]=this.zeroes[i]);r=Math.floor(r/this.arity)}}return t.push([this.root]),t}getHexLayers(){return this.getLayers().reduce((t,e)=>(Array.isArray(e)?t.push(e.map(t=>this.bufferToHex(this.bufferify(t)))):t.push(e),t),[])}getLayersAsObject(){let t=this.getLayers().map(t=>t.map(t=>this.bufferToHex(this.bufferify(t),!1))),e=[];for(let r=0;r<t.length;r++){let n=[];for(let i=0;i<t[r].length;i++){let o={[t[r][i]]:null};if(e.length){o[t[r][i]]={};let s=e.shift(),a=Object.keys(s)[0];if(o[t[r][i]][a]=s[a],e.length){let u=e.shift(),c=Object.keys(u)[0];o[t[r][i]][c]=u[c]}}n.push(o)}e.push(...n)}return e[0]}computeRoot(){let t;let e=this.nodes[0].length;for(let r=0;r<this.depth;r+=1){let n=e%this.arity,i=e-n,o=i+this.arity,s=[];for(let a=i;a<o;a+=1)a<this.nodes[r].length?s.push(this.nodes[r][a]):s.push(this.zeroes[r]);t=this.hashFn(s),e=Math.floor(e/this.arity)}return t}getProof(t){if(t<0||t>=this.nodes[0].length)throw Error("The leaf does not exist in this tree");let e=[],r=[],n=t;for(let i=0;i<this.depth;i+=1){let o=t%this.arity,s=t-o,a=s+this.arity;r[i]=o,e[i]=[];for(let u=s;u<a;u+=1)u!==t&&(u<this.nodes[i].length?e[i].push(this.nodes[i][u]):e[i].push(this.zeroes[i]));t=Math.floor(t/this.arity)}return{root:this.root,leaf:this.nodes[0][n],pathIndices:r,siblings:e}}verify(t){let e=t.leaf;for(let r=0;r<t.siblings.length;r+=1){let n=t.siblings[r].slice();n.splice(t.pathIndices[r],0,e),e=this.hashFn(n)}return t.root===e}toString(){return this.toTreeString()}toTreeString(){let t=this.getLayersAsObject();return o.default.asTree(t,!0)}}e.IncrementalMerkleTree=s,"undefined"!=typeof window&&(window.IncrementalMerkleTree=s),e.default=s},4413:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.MerkleMountainRange=void 0;let i=r(48764),o=n(r(52153)),s=n(r(75117));class a extends s.default{constructor(t=o.default,e=[],r,n,s){for(let a of(super(),this.root=i.Buffer.alloc(0),this.size=0,this.width=0,this.hashes={},this.data={},e=e.map(this.bufferify),this.hashFn=this.bufferifyFn(t),this.hashLeafFn=r,this.peakBaggingFn=n,this.hashBranchFn=s,e))this.append(a)}append(t){t=this.bufferify(t);let e=this.hashFn(t),r=this.bufferToHex(e);this.data[r]&&this.bufferToHex(this.hashFn(this.data[r]))===r||(this.data[r]=t);let n=this.hashLeaf(this.size+1,e);this.hashes[this.size+1]=n,this.width+=1;let i=this.getPeakIndexes(this.width);this.size=this.getSize(this.width);let o=[];for(let s=0;s<i.length;s++)o[s]=this._getOrCreateNode(i[s]);this.root=this.peakBagging(this.width,o)}hashLeaf(t,e){return(e=this.bufferify(e),this.hashLeafFn)?this.bufferify(this.hashLeafFn(t,e)):this.hashFn(i.Buffer.concat([this.bufferify(t),e]))}hashBranch(t,e,r){return this.hashBranchFn?this.bufferify(this.hashBranchFn(t,e,r)):this.hashFn(i.Buffer.concat([this.bufferify(t),this.bufferify(e),this.bufferify(r)]))}getPeaks(){let t=this.getPeakIndexes(this.width),e=[];for(let r=0;r<t.length;r++)e[r]=this.hashes[t[r]];return e}
21getLeafIndex(t){return t%2==1?this.getSize(t):this.getSize(t-1)+1}getPeakIndexes(t){let e=this.numOfPeaks(t),r=[],n=0,i=0;for(let o=255;o>0&&((t&1<<o-1)==0||(i=i+(1<<o)-1,r[n++]=i,!(r.length>=e)));o--);if(n!==r.length)throw Error("invalid bit calculation");return r}numOfPeaks(t){let e=t,r=0;for(;e>0;)e%2==1&&r++,e>>=1;return r}peakBagging(t,e){let r=this.getSize(t);if(this.numOfPeaks(t)!==e.length)throw Error("received invalid number of peaks");return 0!==t||e.length?this.peakBaggingFn?this.bufferify(this.peakBaggingFn(r,e)):this.hashFn(i.Buffer.concat([this.bufferify(r),...e.map(this.bufferify)])):i.Buffer.alloc(0)}getSize(t){return(t<<1)-this.numOfPeaks(t)}getRoot(){return this.root}getHexRoot(){return this.bufferToHex(this.getRoot())}getNode(t){return this.hashes[t]}mountainHeight(t){let e=1;for(;1<<e<=t+e;)e++;return e-1}heightAt(t){let e=t,r=0,n=0;for(;e>r;)e-=(1<<n)-1,r=(1<<(n=this.mountainHeight(e)))-1;return n-(r-e)}isLeaf(t){return 1===this.heightAt(t)}getChildren(t){let e=t-(1<<this.heightAt(t)-1),r=t-1;if(e===r)throw Error("not a parent");return[e,r]}getMerkleProof(t){if(t>this.size)throw Error("out of range");if(!this.isLeaf(t))throw Error("not a leaf");let e=this.root,r=this.width,n=this.getPeakIndexes(this.width),i=[],o=0;for(let s=0;s<n.length;s++)i[s]=this.hashes[n[s]],n[s]>=t&&0===o&&(o=n[s]);let a=0,u=0,c=this.heightAt(o),l=[];for(;o!==t;)c--,[a,u]=this.getChildren(o),o=t<=a?a:u,l[c-1]=this.hashes[t<=a?u:a];return{root:e,width:r,peakBagging:i,siblings:l}}verify(t,e,r,n,i,o){let s,a;n=this.bufferify(n);let u=this.getSize(e);if(u<r)throw Error("index is out of range");if(!t.equals(this.peakBagging(e,i)))throw Error("invalid root hash from the peaks");let c=0,l=this.getPeakIndexes(e);for(let h=0;h<l.length;h++)if(l[h]>=r){s=i[h],c=l[h];break}if(!s)throw Error("target not found");let f=o.length+1,d=Array(f),p=0,g=0;for(;f>0&&(d[--f]=c,c!==r);)[p,g]=this.getChildren(c),c=r>p?g:p;for(;f<d.length;)c=d[f],a=0===f?this.hashLeaf(c,this.hashFn(n)):c-1===d[f-1]?this.hashBranch(c,o[f-1],a):this.hashBranch(c,a,o[f-1]),f++;if(!a.equals(s))throw Error("hashed peak is invalid");return!0}peaksToPeakMap(t,e){let r={},n=0,i=e.length;for(let o=1;o<=32;o++)n=32-o,(t&1<<o-1)!=0?r[n]=e[--i]:r[n]=0;if(0!==i)throw Error("invalid number of peaks");return r}peakMapToPeaks(t,e){let r=this.numOfPeaks(t),n=Array(r),i=0;for(let o=0;o<32;o++)0!==e[o]&&(n[i++]=e[o]);if(i!==r)throw Error("invalid number of peaks");return n}peakUpdate(t,e,r){let n={},i=t+1,o=this.getLeafIndex(i),s=this.hashLeaf(o,r),a=0,u=0,c=!1,l=!1,h=!1;for(let f=1;f<=32;f++)a=32-f,h?n[a]=e[a]:(c=(t&(u=1<<f-1))!=0,l=(i&u)!=0,o++,c&&(s=this.hashBranch(o,e[a],s)),l?(c?n[a]=e[a]:n[a]=s,h=!0):n[a]=0);return n}rollUp(t,e,r,n){if(!t.equals(this.peakBagging(e,r)))throw Error("invalid root hash from the peaks");let i=e,o=this.peaksToPeakMap(e,r);for(let s=0;s<n.length;s++)o=this.peakUpdate(i,o,n[s]),i++;return this.peakBagging(i,this.peakMapToPeaks(i,o))}_getOrCreateNode(t){if(t>this.size)throw Error("out of range");if(!this.hashes[t]){let[e,r]=this.getChildren(t),n=this._getOrCreateNode(e),i=this._getOrCreateNode(r);this.hashes[t]=this.hashBranch(t,n,i)}return this.hashes[t]}}e.MerkleMountainRange=a,"undefined"!=typeof window&&(window.MerkleMountainRange=a),e.default=a},75028:function(t,e,r){"use strict";var n=r(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.MerkleSumTree=e.ProofStep=e.Leaf=e.Bucket=void 0;let i=r(75117);class o{constructor(t,e){this.size=BigInt(t),this.hashed=e,this.parent=null,this.left=null,this.right=null}}e.Bucket=o,e.Leaf=class{constructor(t,e,r){this.hashFn=t,this.rng=e.map(t=>BigInt(t)),this.data=r}getBucket(){let t;return t=this.data?this.hashFn(this.data):n.alloc(32),new o(BigInt(this.rng[1])-BigInt(this.rng[0]),t)}};class s{constructor(t,e){this.bucket=t,this.right=e}}e.ProofStep=s;class a extends i.Base{constructor(t,e){for(let r of(super(),this.leaves=t,this.hashFn=e,a.checkConsecutive(t),this.buckets=[],t))this.buckets.push(r.getBucket());let i=[];for(let s of this.buckets)i.push(s);for(;1!==i.length;){let u=[];for(;i.length;)if(i.length>=2){let c=i.shift(),l=i.shift(),h=c.size+l.size,f=this.hashFn(n.concat([this.sizeToBuffer(c.size),this.bufferify(c.hashed),this.sizeToBuffer(l.size),this.bufferify(l.hashed)])),d=new o(h,f);l.parent=d,c.parent=l.parent,c.right=l,l.left=c,u.push(d)}else u.push(i.shift());i=u}this.root=i[0]}sizeToBuffer(t){let e=n.alloc(8),r=new DataView(e.buffer);return r.setBigInt64(0,BigInt(t),!1),e}static checkConsecutive(t){let e=BigInt(0);for(let r of t){if(r.rng[0]!==e)throw Error("leaf ranges are invalid");e=BigInt(r.rng[1])}}getProof(t){let e=this.buckets[Number(t)],r=[];for(;e&&e.parent;){let n=!!e.right,i=e.right?e.right:e.left;e=e.parent,r.push(new s(i,n))}return r}sum(t){let e=BigInt(0);for(let r of t)e+=BigInt(r);return e}
21verifyProof(t,e,r){let i;let s=[this.sum(r.filter(t=>!t.right).map(t=>t.bucket.size)),BigInt(t.size)-this.sum(r.filter(t=>t.right).map(t=>t.bucket.size))];if(!(s[0]===e.rng[0]&&s[1]===e.rng[1]))return!1;let a=e.getBucket();for(let u of r)i=u.right?this.hashFn(n.concat([this.sizeToBuffer(a.size),this.bufferify(a.hashed),this.sizeToBuffer(u.bucket.size),this.bufferify(u.bucket.hashed)])):this.hashFn(n.concat([this.sizeToBuffer(u.bucket.size),this.bufferify(u.bucket.hashed),this.sizeToBuffer(a.size),this.bufferify(a.hashed)])),a=new o(BigInt(a.size)+BigInt(u.bucket.size),i);return a.size===t.size&&a.hashed.toString("hex")===t.hashed.toString("hex")}}e.MerkleSumTree=a},78493:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.MerkleTree=void 0;let i=r(48764),o=n(r(56351)),s=n(r(52153)),a=n(r(99269)),u=n(r(75117));class c extends u.default{constructor(t,e=s.default,r={}){if(super(),this.duplicateOdd=!1,this.concatenator=i.Buffer.concat,this.hashLeaves=!1,this.isBitcoinTree=!1,this.leaves=[],this.layers=[],this.sortLeaves=!1,this.sortPairs=!1,this.sort=!1,this.fillDefaultHash=null,this.complete=!1,r.complete){if(r.isBitcoinTree)throw Error('option "complete" is incompatible with "isBitcoinTree"');if(r.duplicateOdd)throw Error('option "complete" is incompatible with "duplicateOdd"')}if(this.isBitcoinTree=!!r.isBitcoinTree,this.hashLeaves=!!r.hashLeaves,this.sortLeaves=!!r.sortLeaves,this.sortPairs=!!r.sortPairs,this.complete=!!r.complete,r.fillDefaultHash){if("function"==typeof r.fillDefaultHash)this.fillDefaultHash=r.fillDefaultHash;else if(i.Buffer.isBuffer(r.fillDefaultHash)||"string"==typeof r.fillDefaultHash)this.fillDefaultHash=(t,e)=>r.fillDefaultHash;else throw Error('method "fillDefaultHash" must be a function, Buffer, or string')}this.sort=!!r.sort,this.sort&&(this.sortLeaves=!0,this.sortPairs=!0),this.duplicateOdd=!!r.duplicateOdd,r.concatenator&&(this.concatenator=r.concatenator),this.hashFn=this.bufferifyFn(e),this.processLeaves(t)}getOptions(){var t,e;return{complete:this.complete,isBitcoinTree:this.isBitcoinTree,hashLeaves:this.hashLeaves,sortLeaves:this.sortLeaves,sortPairs:this.sortPairs,sort:this.sort,fillDefaultHash:null!==(e=null===(t=this.fillDefaultHash)||void 0===t?void 0:t.toString())&&void 0!==e?e:null,duplicateOdd:this.duplicateOdd}}processLeaves(t){if(this.hashLeaves&&(t=t.map(this.hashFn)),this.leaves=t.map(this.bufferify),this.sortLeaves&&(this.leaves=this.leaves.sort(i.Buffer.compare)),this.fillDefaultHash)for(let e=0;e<Math.pow(2,Math.ceil(Math.log2(this.leaves.length)));e++)e>=this.leaves.length&&this.leaves.push(this.bufferify(this.fillDefaultHash(e,this.hashFn)));this.createHashes(this.leaves)}createHashes(t){for(this.layers=[t];t.length>1;){let e=this.layers.length;this.layers.push([]);let r=this.complete&&1===e&&!Number.isInteger(Math.log2(t.length))?2*t.length-Math.pow(2,Math.ceil(Math.log2(t.length))):t.length;for(let n=0;n<t.length;n+=2){if(n>=r){this.layers[e].push(...t.slice(r));break}if(n+1===t.length&&t.length%2==1){let s=t[t.length-1],a=s;if(this.isBitcoinTree){a=this.hashFn(this.concatenator([o.default(s),o.default(s)])),a=o.default(this.hashFn(a)),this.layers[e].push(a);continue}if(this.duplicateOdd);else{this.layers[e].push(t[n]);continue}}let u=t[n],c=n+1===t.length?u:t[n+1],l=null;l=this.isBitcoinTree?[o.default(u),o.default(c)]:[u,c],this.sortPairs&&l.sort(i.Buffer.compare);let h=this.hashFn(this.concatenator(l));this.isBitcoinTree&&(h=o.default(this.hashFn(h))),this.layers[e].push(h)}t=this.layers[e]}}addLeaf(t,e=!1){e&&(t=this.hashFn(t)),this.processLeaves(this.leaves.concat(t))}addLeaves(t,e=!1){e&&(t=t.map(this.hashFn)),this.processLeaves(this.leaves.concat(t))}getLeaves(t){return Array.isArray(t)?(this.hashLeaves&&(t=t.map(this.hashFn),this.sortLeaves&&(t=t.sort(i.Buffer.compare))),this.leaves.filter(e=>-1!==this.bufferIndexOf(t,e,this.sortLeaves))):this.leaves}getLeaf(t){return t<0||t>this.leaves.length-1?i.Buffer.from([]):this.leaves[t]}getLeafIndex(t){t=this.bufferify(t);let e=this.getLeaves();for(let r=0;r<e.length;r++){let n=e[r];if(n.equals(t))return r}return -1}getLeafCount(){return this.leaves.length}getHexLeaves(){return this.leaves.map(t=>this.bufferToHex(t))}static marshalLeaves(t){return JSON.stringify(t.map(t=>c.bufferToHex(t)),null,2)}static unmarshalLeaves(t){let e=null;if("string"==typeof t)e=JSON.parse(t);else if(t instanceof Object)e=t;else throw Error("Expected type of string or object");
21if(!e)return[];if(!Array.isArray(e))throw Error("Expected JSON string to be array");return e.map(c.bufferify)}getLayers(){return this.layers}getHexLayers(){return this.layers.reduce((t,e)=>(Array.isArray(e)?t.push(e.map(t=>this.bufferToHex(t))):t.push(e),t),[])}getLayersFlat(){let t=this.layers.reduce((t,e)=>(Array.isArray(e)?t.unshift(...e):t.unshift(e),t),[]);return t.unshift(i.Buffer.from([0])),t}getHexLayersFlat(){return this.getLayersFlat().map(t=>this.bufferToHex(t))}getLayerCount(){return this.getLayers().length}getRoot(){return 0===this.layers.length?i.Buffer.from([]):this.layers[this.layers.length-1][0]||i.Buffer.from([])}getHexRoot(){return this.bufferToHex(this.getRoot())}getProof(t,e){if(void 0===t)throw Error("leaf is required");t=this.bufferify(t);let r=[];if(!Number.isInteger(e)){e=-1;for(let n=0;n<this.leaves.length;n++)0===i.Buffer.compare(t,this.leaves[n])&&(e=n)}if(e<=-1)return[];for(let o=0;o<this.layers.length;o++){let s=this.layers[o],a=e%2,u=a?e-1:this.isBitcoinTree&&e===s.length-1&&o<this.layers.length-1?e:e+1;u<s.length&&r.push({position:a?"left":"right",data:s[u]}),e=e/2|0}return r}getHexProof(t,e){return this.getProof(t,e).map(t=>this.bufferToHex(t.data))}getProofs(){let t=[];return this.getProofsDFS(this.layers.length-1,0,[],t),t}getProofsDFS(t,e,r,n){let i=e%2;if(-1===t){i||n.push([...r].reverse());return}if(e>=this.layers[t].length)return;let o=this.layers[t],s=i?e-1:e+1,a=!1;s<o.length&&(a=!0,r.push({position:i?"left":"right",data:o[s]})),this.getProofsDFS(t-1,2*e,r,n),this.getProofsDFS(t-1,2*e+1,r,n),a&&r.splice(r.length-1,1)}getHexProofs(){return this.getProofs().map(t=>this.bufferToHex(t.data))}getPositionalHexProof(t,e){return this.getProof(t,e).map(t=>["left"===t.position?0:1,this.bufferToHex(t.data)])}static marshalProof(t){let e=t.map(t=>"string"==typeof t?t:i.Buffer.isBuffer(t)?c.bufferToHex(t):{position:t.position,data:c.bufferToHex(t.data)});return JSON.stringify(e,null,2)}static unmarshalProof(t){let e=null;if("string"==typeof t)e=JSON.parse(t);else if(t instanceof Object)e=t;else throw Error("Expected type of string or object");if(!e)return[];if(!Array.isArray(e))throw Error("Expected JSON string to be array");return e.map(t=>{if("string"==typeof t)return c.bufferify(t);if(t instanceof Object)return{position:t.position,data:c.bufferify(t.data)};throw Error("Expected item to be of type string or object")})}static marshalTree(t){let e=t.getHexRoot(),r=t.leaves.map(t=>c.bufferToHex(t)),n=t.getHexLayers(),i=t.getOptions();return JSON.stringify({options:i,root:e,layers:n,leaves:r},null,2)}static unmarshalTree(t,e=s.default,r={}){let n=null;if("string"==typeof t)n=JSON.parse(t);else if(t instanceof Object)n=t;else throw Error("Expected type of string or object");if(!n)throw Error("could not parse json");return r=Object.assign({},n.options||{},r),new c(n.leaves,e,r)}getProofIndices(t,e){let r=Math.pow(2,e),n=new Set;for(let i of t){let o=r+i;for(;o>1;)n.add(1^o),o=o/2|0}let s=t.map(t=>r+t),a=Array.from(n).sort((t,e)=>t-e).reverse();n=s.concat(a);let u=new Set,c=[];for(let l of n)if(!u.has(l))for(c.push(l);l>1&&(u.add(l),u.has(1^l));)l=l/2|0;return c.filter(e=>!t.includes(e-r))}getProofIndicesForUnevenTree(t,e){let r=Math.ceil(Math.log2(e)),n=[];for(let i=0;i<r;i++){let o=e%2!=0;o&&n.push({index:i,leavesCount:e}),e=Math.ceil(e/2)}let s=[],a=t;for(let u=0;u<r;u++){let c=a.map(t=>t%2==0?t+1:t-1),l=c.filter(t=>!a.includes(t)),h=n.find(({index:t})=>t===u);h&&a.includes(h.leavesCount-1)&&(l=l.slice(0,-1)),s.push(l),a=[...new Set(a.map(t=>t%2==0?t/2:t%2==0?(t+1)/2:(t-1)/2))]}return s}getMultiProof(t,e){this.complete||console.warn("Warning: For correct multiProofs it's strongly recommended to set complete: true"),e||(e=t,t=this.getLayersFlat());let r=this.isUnevenTree();if(r&&e.every(Number.isInteger))return this.getMultiProofForUnevenTree(e);if(!e.every(Number.isInteger)){let n=e;this.sortPairs&&(n=n.sort(i.Buffer.compare));let o=n.map(t=>this.bufferIndexOf(this.leaves,t,this.sortLeaves)).sort((t,e)=>t===e?0:t>e?1:-1);if(!o.every(t=>-1!==t))throw Error("Element does not exist in Merkle tree");let s=[],a=[],u=[];for(let c=0;c<this.layers.length;c++){let l=this.layers[c];for(let h=0;h<o.length;h++){let f=o[h],d=this.getPairNode(l,f);s.push(l[f]),d&&a.push(d),u.push(f/2|0)}o=u.filter((t,e,r)=>r.indexOf(t)===e),u=[]}return a.filter(t=>!s.includes(t))}
21return this.getProofIndices(e,Math.log2(t.length/2|0)).map(e=>t[e])}getMultiProofForUnevenTree(t,e){e||(e=t,t=this.getLayers());let r=[],n=e;for(let i of t){let o=[];for(let s of n){if(s%2==0){let a=s+1;if(!n.includes(a)&&i[a]){o.push(i[a]);continue}}let u=s-1;if(!n.includes(u)&&i[u]){o.push(i[u]);continue}}r=r.concat(o);let c=new Set;for(let l of n){if(l%2==0){c.add(l/2);continue}if(l%2==0){c.add((l+1)/2);continue}c.add((l-1)/2)}n=Array.from(c)}return r}getHexMultiProof(t,e){return this.getMultiProof(t,e).map(t=>this.bufferToHex(t))}getProofFlags(t,e){let r;if(!Array.isArray(t)||t.length<=0)throw Error("Invalid Inputs!");if(!(r=t.every(Number.isInteger)?[...t].sort((t,e)=>t===e?0:t>e?1:-1):t.map(t=>this.bufferIndexOf(this.leaves,t,this.sortLeaves)).sort((t,e)=>t===e?0:t>e?1:-1)).every(t=>-1!==t))throw Error("Element does not exist in Merkle tree");let n=e.map(t=>this.bufferify(t)),i=[],o=[];for(let s=0;s<this.layers.length;s++){let a=this.layers[s];r=r.reduce((t,e)=>{let r=i.includes(a[e]);if(!r){let s=this.getPairNode(a,e),u=n.includes(a[e])||n.includes(s);s&&o.push(!u),i.push(a[e]),i.push(s)}return t.push(e/2|0),t},[])}return o}verify(t,e,r){let n=this.bufferify(e);if(r=this.bufferify(r),!Array.isArray(t)||!e||!r)return!1;for(let s=0;s<t.length;s++){let a=t[s],u=null,c=null;if("string"==typeof a)u=this.bufferify(a),c=!0;else if(Array.isArray(a))c=0===a[0],u=this.bufferify(a[1]);else if(i.Buffer.isBuffer(a))u=a,c=!0;else if(a instanceof Object)u=this.bufferify(a.data),c="left"===a.position;else throw Error("Expected node to be of type string or object");let l=[];this.isBitcoinTree?(l.push(o.default(n)),l[c?"unshift":"push"](o.default(u)),n=this.hashFn(this.concatenator(l)),n=o.default(this.hashFn(n))):this.sortPairs?-1===i.Buffer.compare(n,u)?(l.push(n,u),n=this.hashFn(this.concatenator(l))):(l.push(u,n),n=this.hashFn(this.concatenator(l))):(l.push(n),l[c?"unshift":"push"](u),n=this.hashFn(this.concatenator(l)))}return 0===i.Buffer.compare(n,r)}verifyMultiProof(t,e,r,n,o){let s=this.isUnevenTree();if(s)return this.verifyMultiProofForUnevenTree(t,e,r,n,o);let a=Math.ceil(Math.log2(n));t=this.bufferify(t),r=r.map(t=>this.bufferify(t)),o=o.map(t=>this.bufferify(t));let u={};for(let[c,l]of this.zip(e,r))u[Math.pow(2,a)+c]=l;for(let[h,f]of this.zip(this.getProofIndices(e,a),o))u[h]=f;let d=Object.keys(u).map(t=>+t).sort((t,e)=>t-e);d=d.slice(0,d.length-1);let p=0;for(;p<d.length;){let g=d[p];if(g>=2&&({}).hasOwnProperty.call(u,1^g)){let m=[u[g-g%2],u[g-g%2+1]];this.sortPairs&&(m=m.sort(i.Buffer.compare));let y=m[1]?this.hashFn(this.concatenator(m)):m[0];u[g/2|0]=y,d.push(g/2|0)}p+=1}return!e.length||({}).hasOwnProperty.call(u,1)&&u[1].equals(t)}verifyMultiProofWithFlags(t,e,r,n){t=this.bufferify(t),e=e.map(this.bufferify),r=r.map(this.bufferify);let o=e.length,s=n.length,a=[],u=0,c=0,l=0;for(let h=0;h<s;h++){let f=n[h]?u<o?e[u++]:a[c++]:r[l++],d=u<o?e[u++]:a[c++],p=[f,d].sort(i.Buffer.compare);a[h]=this.hashFn(this.concatenator(p))}return 0===i.Buffer.compare(a[s-1],t)}verifyMultiProofForUnevenTree(t,e,r,n,i){t=this.bufferify(t),r=r.map(t=>this.bufferify(t)),i=i.map(t=>this.bufferify(t));let o=this.calculateRootForUnevenTree(e,r,n,i);return t.equals(o)}getDepth(){return this.getLayers().length-1}getLayersAsObject(){let t=this.getLayers().map(t=>t.map(t=>this.bufferToHex(t,!1))),e=[];for(let r=0;r<t.length;r++){let n=[];for(let i=0;i<t[r].length;i++){let o={[t[r][i]]:null};if(e.length){o[t[r][i]]={};let s=e.shift(),a=Object.keys(s)[0];if(o[t[r][i]][a]=s[a],e.length){let u=e.shift(),c=Object.keys(u)[0];o[t[r][i]][c]=u[c]}}n.push(o)}e.push(...n)}return e[0]}static verify(t,e,r,n=s.default,i={}){let o=new c([],n,i);return o.verify(t,e,r)}static getMultiProof(t,e){let r=new c([]);return r.getMultiProof(t,e)}resetTree(){this.leaves=[],this.layers=[]}getPairNode(t,e){let r=e%2==0?e+1:e-1;return r<t.length?t[r]:null}toTreeString(){let t=this.getLayersAsObject();return a.default.asTree(t,!0)}toString(){return this.toTreeString()}isUnevenTree(t){let e=(null==t?void 0:t.length)||this.getDepth();return!this.isPowOf2(e)}isPowOf2(t){return t&&!(t&t-1)}calculateRootForUnevenTree(t,e,r,n){let i=this.zip(t,e).sort(([t],[e])=>t-e),o=i.map(([t])=>t),s=this.getProofIndicesForUnevenTree(o,r),a=0,u=[];for(let c=0;c<s.length;c++){let l=s[c],h=a;a+=l.length,u[c]=this.zip(l,n.slice(h,a))}let f=[i];for(let d=0;d<u.length;d++){let p=u[d].concat(f[d]).sort(([t],[e])=>t-e).map(([,t])=>t),g=f[d].map(([t])=>t),m=[...new Set(g.map(t=>t%2==0?t/2:t%2==0?(t+1)/2:(t-1)/2))],y=[];for(let b=0;b<m.length;b++){let v=m[b],_=p[2*b],w=p[2*b+1],M=w?this.hashFn(this.concatenator([_,w])):_;y.push([v,M])}f.push(y)}return f[f.length-1][0][1]}}e.MerkleTree=c,"undefined"!=typeof window&&(window.MerkleTree=c),e.default=c},2162:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
21Object.defineProperty(e,"__esModule",{value:!0}),e.MerkleTree=void 0;let i=n(r(78493));e.MerkleTree=i.default;var o=r(4413);Object.defineProperty(e,"MerkleMountainRange",{enumerable:!0,get:function(){return o.MerkleMountainRange}});var s=r(8659);Object.defineProperty(e,"IncrementalMerkleTree",{enumerable:!0,get:function(){return s.IncrementalMerkleTree}});var a=r(75028);Object.defineProperty(e,"MerkleSumTree",{enumerable:!0,get:function(){return a.MerkleSumTree}}),e.default=i.default},34504:function(t,e){"use strict";var r=e;function n(t){return 1===t.length?"0"+t:t}function i(t){for(var e="",r=0;r<t.length;r++)e+=n(t[r].toString(16));return e}r.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"!=typeof t){for(var n=0;n<t.length;n++)r[n]=0|t[n];return r}if("hex"===e){(t=t.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(t="0"+t);for(var n=0;n<t.length;n+=2)r.push(parseInt(t[n]+t[n+1],16))}else for(var n=0;n<t.length;n++){var i=t.charCodeAt(n),o=i>>8,s=255&i;o?r.push(o,s):r.push(s)}return r},r.zero2=n,r.toHex=i,r.encode=function(t,e){return"hex"===e?i(t):t}},80008:function(t,e,r){(t.exports=r(85177)).tz.load(r(91128))},85177:function(t,e,r){var n,i,o;o=function(t){"use strict";void 0===t.version&&t.default&&(t=t.default);var e,r,n={},i={},o={},s={},a={};t&&"string"==typeof t.version||A("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var u=t.version.split("."),c=+u[0],l=+u[1];function h(t){return t>96?t-87:t>64?t-29:t-48}function f(t){var e,r=0,n=t.split("."),i=n[0],o=n[1]||"",s=1,a=0,u=1;for(45===t.charCodeAt(0)&&(r=1,u=-1);r<i.length;r++)a=60*a+(e=h(i.charCodeAt(r)));for(r=0;r<o.length;r++)s/=60,a+=(e=h(o.charCodeAt(r)))*s;return a*u}function d(t){for(var e=0;e<t.length;e++)t[e]=f(t[e])}function p(t,e){var r,n=[];for(r=0;r<e.length;r++)n[r]=t[e[r]];return n}function g(t){var e=t.split("|"),r=e[2].split(" "),n=e[3].split(""),i=e[4].split(" ");return d(r),d(n),d(i),function(t,e){for(var r=0;r<e;r++)t[r]=Math.round((t[r-1]||0)+6e4*t[r]);t[e-1]=1/0}(i,n.length),{name:e[0],abbrs:p(e[1].split(" "),n),offsets:p(r,n),untils:i,population:0|e[5]}}function m(t){t&&this._set(g(t))}function y(t,e){this.name=t,this.zones=e}function b(t){var e=t.toTimeString(),r=e.match(/\([a-z ]+\)/i);"GMT"===(r=r&&r[0]?(r=r[0].match(/[A-Z]/g))?r.join(""):void 0:(r=e.match(/[A-Z]{3,5}/g))?r[0]:void 0)&&(r=void 0),this.at=+t,this.abbr=r,this.offset=t.getTimezoneOffset()}function v(t){this.zone=t,this.offsetScore=0,this.abbrScore=0}function _(t,e){return t.offsetScore!==e.offsetScore?t.offsetScore-e.offsetScore:t.abbrScore!==e.abbrScore?t.abbrScore-e.abbrScore:t.zone.population!==e.zone.population?e.zone.population-t.zone.population:e.zone.name.localeCompare(t.zone.name)}function w(t){return(t||"").toLowerCase().replace(/\//g,"_")}function M(t){var e,r,i,o;for("string"==typeof t&&(t=[t]),e=0;e<t.length;e++)n[o=w(r=(i=t[e].split("|"))[0])]=t[e],s[o]=r,function(t,e){var r,n;for(d(e),r=0;r<e.length;r++)a[n=e[r]]=a[n]||{},a[n][t]=!0}(o,i[2].split(" "))}function S(t,e){var r,o=n[t=w(t)];return o instanceof m?o:"string"==typeof o?(o=new m(o),n[t]=o,o):i[t]&&e!==S&&(r=S(i[t],S))?((o=n[t]=new m)._set(r),o.name=s[t],o):null}function E(t){var e,r,n,o;for("string"==typeof t&&(t=[t]),e=0;e<t.length;e++)n=w((r=t[e].split("|"))[0]),o=w(r[1]),i[n]=o,s[n]=r[0],i[o]=n,s[o]=r[1]}function x(t){return x.didShowError||(x.didShowError=!0,A("moment.tz.zoneExists('"+t+"') has been deprecated in favor of !moment.tz.zone('"+t+"')")),!!S(t)}function k(t){var e="X"===t._f||"x"===t._f;return!!(t._a&&void 0===t._tzm&&!e)}function A(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t)}function C(e){var r=Array.prototype.slice.call(arguments,0,-1),n=arguments[arguments.length-1],i=S(n),o=t.utc.apply(null,r);return i&&!t.isMoment(e)&&k(o)&&o.add(i.parse(o),"minutes"),o.tz(n),o}(c<2||2===c&&l<6)&&A("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+t.version+". See momentjs.com"),m.prototype={_set:function(t){this.name=t.name,this.abbrs=t.abbrs,this.untils=t.untils,this.offsets=t.offsets,this.population=t.population},_index:function(t){var e,r=+t,n=this.untils;for(e=0;e<n.length;e++)if(r<n[e])return e},countries:function(){var t=this.name;return Object.keys(o).filter(function(e){return -1!==o[e].zones.indexOf(t)})},parse:function(t){var e,r,n,i,o=+t,s=this.offsets,a=this.untils,u=a.length-1;for(i=0;i<u;
21i++)if(e=s[i],r=s[i+1],n=s[i?i-1:i],e<r&&C.moveAmbiguousForward?e=r:e>n&&C.moveInvalidForward&&(e=n),o<a[i]-6e4*e)return s[i];return s[u]},abbr:function(t){return this.abbrs[this._index(t)]},offset:function(t){return A("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(t)]},utcOffset:function(t){return this.offsets[this._index(t)]}},v.prototype.scoreOffsetAt=function(t){this.offsetScore+=Math.abs(this.zone.utcOffset(t.at)-t.offset),this.zone.abbr(t.at).replace(/[^A-Z]/g,"")!==t.abbr&&this.abbrScore++},C.version="0.5.40",C.dataVersion="",C._zones=n,C._links=i,C._names=s,C._countries=o,C.add=M,C.link=E,C.load=function(t){M(t.zones),E(t.links),function(t){var e,r,n,i;if(t&&t.length)for(e=0;e<t.length;e++)r=(i=t[e].split("|"))[0].toUpperCase(),n=i[1].split(" "),o[r]=new y(r,n)}(t.countries),C.dataVersion=t.version},C.zone=S,C.zoneExists=x,C.guess=function(t){return(!r||t)&&(r=function(){try{var t=Intl.DateTimeFormat().resolvedOptions().timeZone;if(t&&t.length>3){var e=s[w(t)];if(e)return e;A("Moment Timezone found "+t+" from the Intl api, but did not have that data loaded.")}}catch(r){}var n,i,o,u=function(){var t,e,r,n=new Date().getFullYear()-2,i=new b(new Date(n,0,1)),o=[i];for(r=1;r<48;r++)(e=new b(new Date(n,r,1))).offset!==i.offset&&(o.push(t=function(t,e){for(var r,n;n=((e.at-t.at)/12e4|0)*6e4;)(r=new b(new Date(t.at+n))).offset===t.offset?t=r:e=r;return t}(i,e)),o.push(new b(new Date(t.at+6e4)))),i=e;for(r=0;r<4;r++)o.push(new b(new Date(n+r,0,1))),o.push(new b(new Date(n+r,6,1)));return o}(),c=u.length,l=function(t){var e,r,n,i=t.length,o={},u=[];for(e=0;e<i;e++)for(r in n=a[t[e].offset]||{})n.hasOwnProperty(r)&&(o[r]=!0);for(e in o)o.hasOwnProperty(e)&&u.push(s[e]);return u}(u),h=[];for(i=0;i<l.length;i++){for(o=0,n=new v(S(l[i]),c);o<c;o++)n.scoreOffsetAt(u[o]);h.push(n)}return h.sort(_),h.length>0?h[0].zone.name:void 0}()),r},C.names=function(){var t,e=[];for(t in s)s.hasOwnProperty(t)&&(n[t]||n[i[t]])&&s[t]&&e.push(s[t]);return e.sort()},C.Zone=m,C.unpack=g,C.unpackBase60=f,C.needsOffset=k,C.moveInvalidForward=!0,C.moveAmbiguousForward=!1,C.countries=function(){return Object.keys(o)},C.zonesForCountry=function(t,e){if(!(t=o[t.toUpperCase()]||null))return null;var r=t.zones.sort();return e?r.map(function(t){var e=S(t);return{name:t,offset:e.utcOffset(new Date)}}):r};var R=t.fn;function O(t){return function(){return this._z?this._z.abbr(this):t.call(this)}}function P(t){return function(){return this._z=null,t.apply(this,arguments)}}t.tz=C,t.defaultZone=null,t.updateOffset=function(e,r){var n,i=t.defaultZone;if(void 0===e._z&&(i&&k(e)&&!e._isUTC&&(e._d=t.utc(e._a)._d,e.utc().add(i.parse(e),"minutes")),e._z=i),e._z){if(16>Math.abs(n=e._z.utcOffset(e))&&(n/=60),void 0!==e.utcOffset){var o=e._z;e.utcOffset(-n,r),e._z=o}else e.zone(n,r)}},R.tz=function(e,r){if(e){if("string"!=typeof e)throw Error("Time zone name must be a string, got "+e+" ["+typeof e+"]");return this._z=S(e),this._z?t.updateOffset(this,r):A("Moment Timezone has no data for "+e+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},R.zoneName=O(R.zoneName),R.zoneAbbr=O(R.zoneAbbr),R.utc=P(R.utc),R.local=P(R.local),R.utcOffset=(e=R.utcOffset,function(){return arguments.length>0&&(this._z=null),e.apply(this,arguments)}),t.tz.setDefault=function(e){return(c<2||2===c&&l<9)&&A("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+t.version+"."),t.defaultZone=e?S(e):null,t};var I=t.momentProperties;return"[object Array]"===Object.prototype.toString.call(I)?(I.push("_z"),I.push("_a")):I&&(I._z=null),t},t.exports?t.exports=o(r(30381)):(n=[r(30381)],void 0===(i=o.apply(e,n))||(t.exports=i))},27596:function(t,e,r){var n=r(34155),i=r(48764).Buffer;!function(){var e={992:function(t){t.exports=function(t,r,n){if(t.filter)return t.filter(r,n);if(null==t||"function"!=typeof r)throw TypeError();for(var i=[],o=0;o<t.length;o++)if(e.call(t,o)){var s=t[o];r.call(n,s,o,t)&&i.push(s)}return i};var e=Object.prototype.hasOwnProperty},167:function(t,e,r){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o,s,a=r(23).codes,u=a.ERR_AMBIGUOUS_ARGUMENT,c=a.ERR_INVALID_ARG_TYPE,l=a.ERR_INVALID_ARG_VALUE,h=a.ERR_INVALID_RETURN_VALUE,f=a.ERR_MISSING_ARGS,d=r(545),p=r(177).inspect,g=r(1
vendor: 6,781 bytes, line 21
2177).types,m=g.isPromise,y=g.isRegExp,b=Object.assign?Object.assign:r(604).assign,v=Object.is?Object.is:r(208);function _(){var t=r(176);o=t.isDeepEqual,s=t.isDeepStrictEqual}var w=!1,M=t.exports=k,S={};function E(t){if(t.message instanceof Error)throw t.message;throw new d(t)}function x(t,e,r,n){if(!r){var i=!1;if(0===e)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var o=new d({actual:r,expected:!0,message:n,operator:"==",stackStartFn:t});throw o.generatedMessage=i,o}}function k(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];x.apply(void 0,[k,e.length].concat(e))}M.fail=function t(e,r,i,o,s){var a,u=arguments.length;if(0===u?a="Failed":1===u?(i=e,e=void 0):(!1===w&&(w=!0,(n.emitWarning?n.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===u&&(o="!=")),i instanceof Error)throw i;var c={actual:e,expected:r,operator:void 0===o?"fail":o,stackStartFn:s||t};void 0!==i&&(c.message=i);var l=new d(c);throw a&&(l.message=a,l.generatedMessage=!0),l},M.AssertionError=d,M.ok=k,M.equal=function t(e,r,n){if(arguments.length<2)throw new f("actual","expected");e!=r&&E({actual:e,expected:r,message:n,operator:"==",stackStartFn:t})},M.notEqual=function t(e,r,n){if(arguments.length<2)throw new f("actual","expected");e==r&&E({actual:e,expected:r,message:n,operator:"!=",stackStartFn:t})},M.deepEqual=function t(e,r,n){if(arguments.length<2)throw new f("actual","expected");void 0===o&&_(),o(e,r)||E({actual:e,expected:r,message:n,operator:"deepEqual",stackStartFn:t})},M.notDeepEqual=function t(e,r,n){if(arguments.length<2)throw new f("actual","expected");void 0===o&&_(),o(e,r)&&E({actual:e,expected:r,message:n,operator:"notDeepEqual",stackStartFn:t})},M.deepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new f("actual","expected");void 0===o&&_(),s(e,r)||E({actual:e,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:t})},M.notDeepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new f("actual","expected");void 0===o&&_(),s(e,r)&&E({actual:e,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:t})},M.strictEqual=function t(e,r,n){if(arguments.length<2)throw new f("actual","expected");v(e,r)||E({actual:e,expected:r,message:n,operator:"strictEqual",stackStartFn:t})},M.notStrictEqual=function t(e,r,n){if(arguments.length<2)throw new f("actual","expected");v(e,r)&&E({actual:e,expected:r,message:n,operator:"notStrictEqual",stackStartFn:t})};var A=function t(e,r,n){var i=this;!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),r.forEach(function(t){t in e&&(void 0!==n&&"string"==typeof n[t]&&y(e[t])&&e[t].test(n[t])?i[t]=n[t]:i[t]=e[t])})};function C(t,e,r,n){if("function"!=typeof e){if(y(e))return e.test(t);if(2==arguments.length)throw new c("expected",["Function","RegExp"],e);if("object"!==i(t)||null===t){var a=new d({actual:t,expected:e,message:r,operator:"deepStrictEqual",stackStartFn:n});throw a.operator=n.name,a}var u=Object.keys(e);if(e instanceof Error)u.push("name","message");else if(0===u.length)throw new l("error",e,"may not be an empty object");return void 0===o&&_(),u.forEach(function(i){"string"==typeof t[i]&&y(e[i])&&e[i].test(t[i])||function(t,e,r,n,i,o){if(!(r in t)||!s(t[r],e[r])){if(!n){var a=new A(t,i),u=new A(e,i,t),c=new d({actual:a,expected:u,operator:"deepStrictEqual",stackStartFn:o});throw c.actual=t,c.expected=e,c.operator=o.name,c}E({actual:t,expected:e,message:n,operator:o.name,stackStartFn:o})}}(t,e,i,r,u,n)}),!0}return void 0!==e.prototype&&t instanceof e||!Error.isPrototypeOf(e)&&!0===e.call({},t)}function R(t){if("function"!=typeof t)throw new c("fn","Function",t);try{t()}catch(e){return e}return S}function O(t){return m(t)||null!==t&&"object"===i(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function P(t){return Promise.resolve().then(function(){var e;if("function"==typeof t){if(!O(e=t()))throw new h("instance of Promise","promiseFn",e)}else if(O(t))e=t;else throw new c("promiseFn",["Function","Promise"],t);return Promise.resolve().then(function(){return e}).then(function(){return S}).catch(function(t){return t})})}function I(t,e,r,n){if("string"==typeof r){if(4==arguments.length)throw new c("error",["Object","Error","Function","RegExp"],r);if("object"===i(e)&&null!==e){if(e.message===r)throw new u("error/message",'The error message "'.concat(e.message,'" is identical to the message.'))}else if(e===r)throw new u("error/message",'The error "'.concat(e,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==i(r)&&"function"!=typeof r)throw new c("error",["Object","Error","Function","RegExp"],r);if(e===S){var o="";r&&r.name&&(o+=" (".concat(r.name,")")),o+=n?": ".concat(n):".";var s="rejects"===t.name?"rejection":"exception";E({actual:void 0,expected:r,operator:t.name,message:"Missing expected ".concat(s).concat(o),stackStartFn:t})}if(r&&!C(e,r,n,t))throw e}function T(t,e,r,n){if(e!==S){if("string"==typeof r&&(n=r,r=void 0),!r||C(e,r)){var i=n?": ".concat(n):".",o="doesNotReject"===t.name?"rejection":"exception";E({actual:e,expected:r,operator:t.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(e&&e.message,'"'),stackStartFn:t})}throw e}}M.throws=function t(e){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];I.apply(void 0,[t,R(e)].concat(n))},M.rejects=function t(e){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return P(e).then(function(e){return I.apply(void 0,[t,e].concat(n))})},M.doesNotThrow=function t(e){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];T.apply(void 0,[t,R(e)].concat(n))},M.doesNotReject=function t(e){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return P(e).then(function(e){return T.apply(void 0,[t,e].concat(n))})},M.ifError=function t(e){if(null!=e){var r="ifError got unwanted exception: ";"object"===i(e)&&"string"==typeof e.message?0===e.message.length&&e.constructor?r+=e.constructor.name:r+=e.message:r+=p(e);var n=new d({actual:e,expected:null,operator:"ifError",message:r,stackStartFn:t}),o=e.stack;if("string"==typeof o){var s=o.split("\n");s.shift();for(var a=n.stack.split("\n"),u=0;u<s.length;u++){var c=a.indexOf(s[u]);if(-1!==c){a=a.slice(0,c);break}}n.stack="".concat(a.join("\n"),"\n").concat(s.join("\n"))}throw n}},M.strict=b(function t(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];x.apply(void 0,[t,r.length].concat(r))},M,{equal:M.strictEqual,deepEqual:M.deepStrictEqual,notEqual:M.notStrictEqual,notDeepEqual:M.notDeepStrictEqual}
21),M.strict.strict=M.strict},545:function(t,e,r){"use strict";function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e){return e&&("object"===h(e)||"function"==typeof e)?e:s(t)}function s(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t){var e="function"==typeof Map?new Map:void 0;return(a=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return u(t,arguments,l(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,t)})(t)}function u(t,e,r){return(u=!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()?function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&c(i,r.prototype),i}:Reflect.construct).apply(null,arguments)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var f=r(177).inspect,d=r(23).codes.ERR_INVALID_ARG_TYPE;function p(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}var g="",m="",y="",b="",v={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function _(t){var e=Object.keys(t),r=Object.create(Object.getPrototypeOf(t));return e.forEach(function(e){r[e]=t[e]}),Object.defineProperty(r,"message",{value:t.message}),r}function w(t){return f(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var M=function(t){var e,r;function a(t){if(!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,a),"object"!==h(t)||null===t)throw new d("options","Object",t);var e,r=t.message,i=t.operator,u=t.stackStartFn,c=t.actual,f=t.expected,M=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=r)e=o(this,l(a).call(this,String(r)));else if(n.stderr&&n.stderr.isTTY&&(n.stderr&&n.stderr.getColorDepth&&1!==n.stderr.getColorDepth()?(g="\x1b[34m",m="\x1b[32m",b="\x1b[39m",y="\x1b[31m"):(g="",m="",b="",y="")),"object"===h(c)&&null!==c&&"object"===h(f)&&null!==f&&"stack"in c&&c instanceof Error&&"stack"in f&&f instanceof Error&&(c=_(c),f=_(f)),"deepStrictEqual"===i||"strictEqual"===i)e=o(this,l(a).call(this,function(t,e,r){var i="",o="",s=0,a="",u=!1,c=w(t),l=c.split("\n"),f=w(e).split("\n"),d=0,_="";if("strictEqual"===r&&"object"===h(t)&&"object"===h(e)&&null!==t&&null!==e&&(r="strictEqualObject"),1===l.length&&1===f.length&&l[0]!==f[0]){var M=l[0].length+f[0].length;if(M<=10){if(("object"!==h(t)||null===t)&&("object"!==h(e)||null===e)&&(0!==t||0!==e))return"".concat(v[r],"\n\n")+"".concat(l[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==r&&M<(n.stderr&&n.stderr.isTTY?n.stderr.columns:80)){for(;l[0][d]===f[0][d];)d++;d>2&&(_="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var r=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,r-t.length)}(" ",d),"^"),d=0)}}for(var S=l[l.length-1],E=f[f.length-1];S===E&&(d++<2?a="\n ".concat(S).concat(a):i=S,l.pop(),f.pop(),0!==l.length&&0!==f.length);)S=l[l.length-1],E=f[f.length-1];var x=Math.max(l.length,f.length);if(0===x){var k=c.split("\n");if(k.length>30)for(k[26]="".concat(g,"...").concat(b);k.length>27;)k.pop();return"".concat(v.notIdentical,"\n\n").concat(k.join("\n"),"\n")}d>3&&(a="\n".concat(g,"...").concat(b).concat(a),u=!0),""!==i&&(a="\n ".concat(i).c
21oncat(a),i="");var A=0,C=v[r]+"\n".concat(m,"+ actual").concat(b," ").concat(y,"- expected").concat(b),R=" ".concat(g,"...").concat(b," Lines skipped");for(d=0;d<x;d++){var O=d-s;if(l.length<d+1)O>1&&d>2&&(O>4?(o+="\n".concat(g,"...").concat(b),u=!0):O>3&&(o+="\n ".concat(f[d-2]),A++),o+="\n ".concat(f[d-1]),A++),s=d,i+="\n".concat(y,"-").concat(b," ").concat(f[d]),A++;else if(f.length<d+1)O>1&&d>2&&(O>4?(o+="\n".concat(g,"...").concat(b),u=!0):O>3&&(o+="\n ".concat(l[d-2]),A++),o+="\n ".concat(l[d-1]),A++),s=d,o+="\n".concat(m,"+").concat(b," ").concat(l[d]),A++;else{var P=f[d],I=l[d],T=I!==P&&(!p(I,",")||I.slice(0,-1)!==P);T&&p(P,",")&&P.slice(0,-1)===I&&(T=!1,I+=","),T?(O>1&&d>2&&(O>4?(o+="\n".concat(g,"...").concat(b),u=!0):O>3&&(o+="\n ".concat(l[d-2]),A++),o+="\n ".concat(l[d-1]),A++),s=d,o+="\n".concat(m,"+").concat(b," ").concat(I),i+="\n".concat(y,"-").concat(b," ").concat(P),A+=2):(o+=i,i="",(1===O||0===d)&&(o+="\n ".concat(I),A++))}if(A>20&&d<x-2)return"".concat(C).concat(R,"\n").concat(o,"\n").concat(g,"...").concat(b).concat(i,"\n")+"".concat(g,"...").concat(b)}return"".concat(C).concat(u?R:"","\n").concat(o).concat(i).concat(a).concat(_)}(c,f,i)));else if("notDeepStrictEqual"===i||"notStrictEqual"===i){var S=v[i],E=w(c).split("\n");if("notStrictEqual"===i&&"object"===h(c)&&null!==c&&(S=v.notStrictEqualObject),E.length>30)for(E[26]="".concat(g,"...").concat(b);E.length>27;)E.pop();e=1===E.length?o(this,l(a).call(this,"".concat(S," ").concat(E[0]))):o(this,l(a).call(this,"".concat(S,"\n\n").concat(E.join("\n"),"\n")))}else{var x=w(c),k="",A=v[i];"notDeepEqual"===i||"notEqual"===i?(x="".concat(v[i],"\n\n").concat(x)).length>1024&&(x="".concat(x.slice(0,1021),"...")):(k="".concat(w(f)),x.length>512&&(x="".concat(x.slice(0,509),"...")),k.length>512&&(k="".concat(k.slice(0,509),"...")),"deepEqual"===i||"equal"===i?x="".concat(A,"\n\n").concat(x,"\n\nshould equal\n\n"):k=" ".concat(i," ").concat(k)),e=o(this,l(a).call(this,"".concat(x).concat(k)))}return Error.stackTraceLimit=M,e.generatedMessage=!r,Object.defineProperty(s(e),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),e.code="ERR_ASSERTION",e.actual=c,e.expected=f,e.operator=i,Error.captureStackTrace&&Error.captureStackTrace(s(e),u),e.stack,e.name="AssertionError",o(e)}return!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(a,t),e=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:f.custom,value:function(t,e){return f(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n,i;n=t,i=r[e],e in n?Object.defineProperty(n,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[e]=i})}return t}({},e,{customInspect:!1,depth:0}))}}],i(a.prototype,e),r&&i(a,r),a}(a(Error));t.exports=M},23:function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var s,a,u={};function c(t,e,r){r||(r=Error);var s=function(r){function s(r,o,a){var u,c;return!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,s),(u=(c=i(s).call(this,"string"==typeof e?e:e(r,o,a)))&&("object"===n(c)||"function"==typeof c)?c:function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this)).code=t,u}return!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(s,r),s}(r);u[t]=s}function l(t,e){if(!Array.isArray(t))return"of ".concat(e," ").concat(String(t));var r=t.length;return(t=t.map(function(t){return String(t)}),r>2)?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",function(t,e,
21i){if((void 0===s&&(s=r(167)),s("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(o="not ",e.substr(!a||a<0?0:+a,o.length)===o))?(f="must not be",e=e.replace(/^not /,"")):f="must be",u=" argument",(void 0===c||c>t.length)&&(c=t.length),t.substring(c-u.length,c)===u)d="The ".concat(t," ").concat(f," ").concat(l(e,"type"));else{var o,a,u,c,h,f,d,p=("number"!=typeof h&&(h=0),h+1>t.length||-1===t.indexOf(".",h))?"argument":"property";d='The "'.concat(t,'" ').concat(p," ").concat(f," ").concat(l(e,"type"))}return d+". Received type ".concat(n(i))},TypeError),c("ERR_INVALID_ARG_VALUE",function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===a&&(a=r(177));var i=a.inspect(e);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(n,". Received ").concat(i)},TypeError,RangeError),c("ERR_INVALID_RETURN_VALUE",function(t,e,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(i,".")},TypeError),c("ERR_MISSING_ARGS",function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];void 0===s&&(s=r(167)),s(e.length>0,"At least one arg needs to be specified");var i="The ",o=e.length;switch(e=e.map(function(t){return'"'.concat(t,'"')}),o){case 1:i+="".concat(e[0]," argument");break;case 2:i+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:i+=e.slice(0,o-1).join(", "),i+=", and ".concat(e[o-1]," arguments")}return"".concat(i," must be specified")}
21,TypeError),t.exports.codes=u},176:function(t,e,r){"use strict";function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(u){i=!0,o=u}finally{try{n||null==a.return||a.return()}finally{if(i)throw o}}return r}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=void 0!==/a/g.flags,s=function(t){var e=[];return t.forEach(function(t){return e.push(t)}),e},a=function(t){var e=[];return t.forEach(function(t,r){return e.push([r,t])}),e},u=Object.is?Object.is:r(208),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:r(718);function h(t){return t.call.bind(t)}var f=h(Object.prototype.hasOwnProperty),d=h(Object.prototype.propertyIsEnumerable),p=h(Object.prototype.toString),g=r(177).types,m=g.isAnyArrayBuffer,y=g.isArrayBufferView,b=g.isDate,v=g.isMap,_=g.isRegExp,w=g.isSet,M=g.isNativeError,S=g.isBoxedPrimitive,E=g.isNumberObject,x=g.isStringObject,k=g.isBooleanObject,A=g.isBigIntObject,C=g.isSymbolObject,R=g.isFloat32Array,O=g.isFloat64Array;function P(t){if(0===t.length||t.length>10)return!0;for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(r<48||r>57)return!0}return 10===t.length&&t>=4294967296}function I(t){return Object.keys(t).filter(P).concat(c(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}/*! 22 * The buffer module from node.js, for the browser. 23 * 24 * @author Feross Aboukhadijeh <[email protected]> <http://feross.org> 25 * @license MIT 26 */ function T(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}var N=void 0;function L(t,e,r,n){if(t===e)return 0!==t||!r||u(t,e);if(r){if("object"!==i(t))return"number"==typeof t&&l(t)&&l(e);if("object"!==i(e)||null===t||null===e||Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1}else{if(null===t||"object"!==i(t))return(null===e||"object"!==i(e))&&t==e;if(null===e||"object"!==i(e))return!1}var s=p(t);if(s!==p(e))return!1;if(Array.isArray(t)){if(t.length!==e.length)return!1;var a=I(t,N),c=I(e,N);return a.length===c.length&&B(t,e,r,n,1,a)}if("[object Object]"===s&&(!v(t)&&v(e)||!w(t)&&w(e)))return!1;if(b(t)){if(!b(e)||Date.prototype.getTime.call(t)!==Date.prototype.getTime.call(e))return!1}else if(_(t)){if(!_(e)||(o?t.source!==e.source||t.flags!==e.flags:RegExp.prototype.toString.call(t)!==RegExp.prototype.toString.call(e)))return!1}else if(M(t)||t instanceof Error){if(t.message!==e.message||t.name!==e.name)return!1}else if(y(t)){if(!r&&(R(t)||O(t))){if(!function(t,e){if(t.byteLength!==e.byteLength)return!1;for(var r=0;r<t.byteLength;r++)if(t[r]!==e[r])return!1;return!0}(t,e))return!1}else if(t.byteLength!==e.byteLength||0!==T(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength)))return!1;var h=I(t,N),f=I(e,N);return h.length===f.length&&B(t,e,r,n,0,h)}else if(w(t))return!!w(e)&&t.size===e.size&&B(t,e,r,n,2);else if(v(t))return!!v(e)&&t.size===e.size&&B(t,e,r,n,3);else if(m(t)){if(t.byteLength!==e.byteLength||0!==T(new Uint8Array(t),new Uint8Array(e)))return!1}else if(S(t)&&(E(t)?!(E(e)&&u(Number.prototype.valueOf.call(t),Number.prototype.valueOf.call(e))):x(t)?!x(e)||String.prototype.valueOf.call(t)!==String.prototype.valueOf.call(e):k(t)?!k(e)||Boolean.prototype.valueOf.call(t)!==Boolean.prototype.valueOf.call(e):A(t)?!A(e)||BigInt.prototype.valueOf.call(t)!==BigInt.prototype.valueOf.call(e):!C(e)||Symbol.prototype.valueOf.call(t)!==Symbol.prototype.valueOf.call(e)))return!1;return B(t,e,r,n,0)}function j(t,e){return e.filter(function(e){return d(t,e)})}function B(t,e,r,o,u,l){if(5==arguments.length){l=Object.keys(t);var h=Object.keys(e);if(l.length!==h.length)return!1}for(var p=0;p<l.length;p++)if(!f(e,l[p]))return!1;if(r&&5==arguments.length){var g=c(t);if(0!==g.length){var m=0;for(p=0;p<g.length;p++){var y=g[p];if(d(t,y)){if(!d(e,y))return!1;l.push(y),m++}else if(d(e,y))return!1}var b=c(e);if(g.length!==b.length&&j(e,b).length!==m)return!1}else{var v=c(e);if(0!==v.length&&0!==j(e,v).length)return!1}}if(0===l.length&&(0===u||1===u&&0===t.length||0===t.size))return!0;
26if(void 0===o)o={val1:new Map,val2:new Map,position:0};else{var _=o.val1.get(t);if(void 0!==_){var w=o.val2.get(e);if(void 0!==w)return _===w}o.position++}o.val1.set(t,o.position),o.val2.set(e,o.position);var M=function(t,e,r,o,u,c){var l=0;if(2===c){if(!function(t,e,r,n){for(var o=null,a=s(t),u=0;u<a.length;u++){var c=a[u];if("object"===i(c)&&null!==c)null===o&&(o=new Set),o.add(c);else if(!e.has(c)){if(r||!function(t,e,r){var n=F(r);return null!=n?n:e.has(n)&&!t.has(n)}(t,e,c))return!1;null===o&&(o=new Set),o.add(c)}}if(null!==o){for(var l=s(e),h=0;h<l.length;h++){var f=l[h];if("object"===i(f)&&null!==f){if(!D(o,f,r,n))return!1}else if(!r&&!t.has(f)&&!D(o,f,r,n))return!1}return 0===o.size}return!0}(t,e,r,u))return!1}else if(3===c){if(!function(t,e,r,o){for(var s=null,u=a(t),c=0;c<u.length;c++){var l=n(u[c],2),h=l[0],f=l[1];if("object"===i(h)&&null!==h)null===s&&(s=new Set),s.add(h);else{var d=e.get(h);if(void 0===d&&!e.has(h)||!L(f,d,r,o)){if(r||!function(t,e,r,n,i){var o=F(r);if(null!=o)return o;var s=e.get(o);return!!((void 0!==s||e.has(o))&&L(n,s,!1,i))&&!t.has(o)&&L(n,s,!1,i)}(t,e,h,f,o))return!1;null===s&&(s=new Set),s.add(h)}}}if(null!==s){for(var p=a(e),g=0;g<p.length;g++){var m=n(p[g],2),h=m[0],y=m[1];if("object"===i(h)&&null!==h){if(!U(s,t,h,y,r,o))return!1}else if(!r&&(!t.has(h)||!L(t.get(h),y,!1,o))&&!U(s,t,h,y,!1,o))return!1}return 0===s.size}return!0}(t,e,r,u))return!1}else if(1===c)for(;l<t.length;l++)if(f(t,l)){if(!f(e,l)||!L(t[l],e[l],r,u))return!1}else{if(f(e,l))return!1;for(var h=Object.keys(t);l<h.length;l++){var d=h[l];if(!f(e,d)||!L(t[d],e[d],r,u))return!1}if(h.length!==Object.keys(e).length)return!1;return!0}for(l=0;l<o.length;l++){var p=o[l];if(!L(t[p],e[p],r,u))return!1}return!0}(t,e,r,l,o,u);return o.val1.delete(t),o.val2.delete(e),M}function D(t,e,r,n){for(var i=s(t),o=0;o<i.length;o++){var a=i[o];if(L(e,a,r,n))return t.delete(a),!0}return!1}function F(t){switch(i(t)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":t=+t;case"number":if(l(t))return!1}return!0}function U(t,e,r,n,i,o){for(var a=s(t),u=0;u<a.length;u++){var c=a[u];if(L(r,c,i,o)&&L(n,e.get(c),i,o))return t.delete(c),!0}return!1}t.exports={isDeepEqual:function(t,e){return L(t,e,!1)},isDeepStrictEqual:function(t,e){return L(t,e,!0)}}},256:function(t,e,r){"use strict";var n=r(500),i=r(139),o=i(n("String.prototype.indexOf"));t.exports=function(t,e){var r=n(t,!!e);return"function"==typeof r&&o(t,".prototype.")>-1?i(r):r}},139:function(t,e,r){"use strict";var n=r(174),i=r(500),o=i("%Function.prototype.apply%"),s=i("%Function.prototype.call%"),a=i("%Reflect.apply%",!0)||n.call(s,o),u=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(h){c=null}t.exports=function(t){var e=a(n,s,arguments);return u&&c&&u(e,"length").configurable&&c(e,"length",{value:1+l(0,t.length-(arguments.length-1))}),e};var f=function(){return a(n,o,arguments)};c?c(t.exports,"apply",{value:f}):t.exports.apply=f},69:function(t,e,r){"use strict";var n=r(935),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,s=Array.prototype.concat,a=Object.defineProperty,u=a&&function(){var t={};try{for(var e in a(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(r){return!1}}(),c=function(t,e,r,n){(!(e in t)||"function"==typeof n&&"[object Function]"===o.call(n)&&n())&&(u?a(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r)},l=function(t,e){var r=arguments.length>2?arguments[2]:{},o=n(e);i&&(o=s.call(o,Object.getOwnPropertySymbols(e)));for(var a=0;a<o.length;a+=1)c(t,o[a],e[o[a]],r[o[a]])};l.supportsDescriptors=!!u,t.exports=l},604:function(t){"use strict";function e(t,e){if(null==t)throw TypeError("Cannot convert first argument to object");for(var r=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var o=Object.keys(Object(i)),s=0,a=o.length;s<a;s++){var u=o[s],c=Object.getOwnPropertyDescriptor(i,u);void 0!==c&&c.enumerable&&(r[u]=i[u])}}return r}t.exports={assign:e,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,
26configurable:!0,writable:!0,value:e})}}},144:function(t){var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString;t.exports=function(t,n,i){if("[object Function]"!==r.call(n))throw TypeError("iterator must be a function");var o=t.length;if(o===+o)for(var s=0;s<o;s++)n.call(i,t[s],s,t);else for(var a in t)e.call(t,a)&&n.call(i,t[a],a,t)}},426:function(t){"use strict";var e=Array.prototype.slice,r=Object.prototype.toString;t.exports=function(t){var n,i=this;if("function"!=typeof i||"[object Function]"!==r.call(i))throw TypeError("Function.prototype.bind called on incompatible "+i);for(var o=e.call(arguments,1),s=function(){if(!(this instanceof n))return i.apply(t,o.concat(e.call(arguments)));var r=i.apply(this,o.concat(e.call(arguments)));return Object(r)===r?r:this},a=Math.max(0,i.length-o.length),u=[],c=0;c<a;c++)u.push("$"+c);if(n=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(s),i.prototype){var l=function(){};l.prototype=i.prototype,n.prototype=new l,l.prototype=null}return n}},174:function(t,e,r){"use strict";var n=r(426);t.exports=Function.prototype.bind||n},500:function(t,e,r){"use strict";var n,i=SyntaxError,o=Function,s=TypeError,a=function(t){try{return o('"use strict"; return ('+t+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(c){u=null}var l=function(){throw new s},h=u?function(){try{return arguments.callee,l}catch(e){try{return u(arguments,"callee").get}catch(t){return l}}}():l,f=r(115)(),d=Object.getPrototypeOf||function(t){return t.__proto__},p={},g="undefined"==typeof Uint8Array?n:d(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f?d([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
26IteratorPrototype%":f?d(d([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?d((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?d((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?d(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":h,"%TypedArray%":g,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},y=function t(e){var r;if("%AsyncFunction%"===e)r=a("async function () {}");else if("%GeneratorFunction%"===e)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=a("async function* () {}");else if("%AsyncGenerator%"===e){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&(r=d(i.prototype))}return m[e]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=r(174),_=r(101),w=v.call(Function.call,Array.prototype.concat),M=v.call(Function.apply,Array.prototype.splice),S=v.call(Function.call,String.prototype.replace),E=v.call(Function.call,String.prototype.slice),x=v.call(Function.call,RegExp.prototype.exec),k=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,C=function(t){var e=E(t,0,1),r=E(t,-1);if("%"===e&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return S(t,k,function(t,e,r,i){n[n.length]=r?S(i,A,"$1"):e||t}),n},R=function(t,e){var r,n=t;if(_(b,n)&&(n="%"+(r=b[n])[0]+"%"),_(m,n)){var o=m[n];if(o===p&&(o=y(n)),void 0===o&&!e)throw new s("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new s('"allowMissing" argument must be a boolean');if(null===x(/^%?[^%]*%?$/g,t))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=C(t),n=r.length>0?r[0]:"",o=R("%"+n+"%",e),a=o.name,c=o.value,l=!1,h=o.alias;h&&(n=h[0],M(r,w([0,1],h)));for(var f=1,d=!0;f<r.length;f+=1){var p=r[f],g=E(p,0,1),y=E(p,-1);if(('"'===g||"'"===g||"`"===g||'"'===y||"'"===y||"`"===y)&&g!==y)throw new i("property names with quotes must have matching quotes");if("constructor"!==p&&d||(l=!0),n+="."+p,_(m,a="%"+n+"%"))c=m[a];else if(null!=c){if(!(p in c)){if(!e)throw new s("base intrinsic for "+t+" exists, but the property is not available.");return}if(u&&f+1>=r.length){var b=u(c,p);c=(d=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:c[p]}else d=_(c,p),c=c[p];d&&!l&&(m[a]=c)}}return c}},942:function(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(773);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},773:function(t){"use strict";
26t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e||"[object Symbol]"!==Object.prototype.toString.call(e)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},115:function(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(832);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},832:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e||"[object Symbol]"!==Object.prototype.toString.call(e)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},101:function(t,e,r){"use strict";var n=r(174);t.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},782:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},157:function(t){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=Object.prototype.toString,n=function(t){return(!e||!t||"object"!=typeof t||!(Symbol.toStringTag in t))&&"[object Arguments]"===r.call(t)},i=function(t){return!!n(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==r.call(t)&&"[object Function]"===r.call(t.callee)},o=function(){return n(arguments)}();n.isLegacyArguments=i,t.exports=o?n:i},391:function(t){"use strict";var e=Object.prototype.toString,r=Function.prototype.toString,n=/^\s*(?:function)?\*/,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=Object.getPrototypeOf,s=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(t){}}(),a=s?o(s):{};t.exports=function(t){return"function"==typeof t&&(!!n.test(r.call(t))||(i?o(t)===a:"[object GeneratorFunction]"===e.call(t)))}},460:function(t){"use strict";t.exports=function(t){return t!=t}},718:function(t,e,r){"use strict";var n=r(139),i=r(69),o=r(460),s=r(625),a=r(171),u=n(s(),Number);i(u,{getPolyfill:s,implementation:o,shim:a}),t.exports=u},625:function(t,e,r){"use strict";var n=r(460);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},171:function(t,e,r){"use strict";var n=r(69),i=r(625);t.exports=function(){var t=i();return n(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},994:function(t,e,n){"use strict";var i=n(144),o=n(349),s=n(256),a=s("Object.prototype.toString"),u=n(942)()&&"symbol"==typeof Symbol.toStringTag,c=o(),l=s("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return -1},h=s("String.prototype.slice"),f={},d=n(466),p=Object.getPrototypeOf;u&&d&&p&&i(c,function(t){var e=new r.g[t];if(!(Symbol.toStringTag in e))throw EvalError("this engine has support for Symbol.toStringTag, but "+t+" does not have the property! Please report this.");var n=p(e),i=d(n,Symbol.toStringTag);i||(i=d(p(n),Symbol.toStringTag)),f[t]=i.get});var g=function(t){var e=!1;return i(f,function(r,n){if(!e)try{e=r.call(t)===n}catch(i){}}),e};t.exports=function(t){return!!t&&"object"==typeof t&&(u?!!d&&g(t):l(c,h(a(t),8,-1))>-1)}},208:function(t){"use strict";var e=function(t){return t!=t};t.exports=function(t,r){return 0===t&&0===r?1/t==1/r:!!(t===r||e(t)&&e(r))}},579:function(t,e,r){"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=r(412),a=Object.prototype.propertyIsEnumerable,u=!a.call({toString:null},"toString"),c=a.call(function(){}
26,"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(t){var e=t.constructor;return e&&e.prototype===t},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!f["$"+t]&&i.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{h(window[t])}catch(e){return!0}}catch(r){return!0}return!1}(),p=function(t){if("undefined"==typeof window||!d)return h(t);try{return h(t)}catch(e){return!1}};n=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===o.call(t),n=s(t),a=e&&"[object String]"===o.call(t),h=[];if(!e&&!r&&!n)throw TypeError("Object.keys called on a non-object");var f=c&&r;if(a&&t.length>0&&!i.call(t,0))for(var d=0;d<t.length;++d)h.push(String(d));if(n&&t.length>0)for(var g=0;g<t.length;++g)h.push(String(g));else for(var m in t)!(f&&"prototype"===m)&&i.call(t,m)&&h.push(String(m));if(u)for(var y=p(t),b=0;b<l.length;++b)!(y&&"constructor"===l[b])&&i.call(t,l[b])&&h.push(l[b]);return h}}t.exports=n},935:function(t,e,r){"use strict";var n=Array.prototype.slice,i=r(412),o=Object.keys,s=o?function(t){return o(t)}:r(579),a=Object.keys;s.shim=function(){return Object.keys?!function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2)&&(Object.keys=function(t){return i(t)?a(n.call(t)):a(t)}):Object.keys=s,Object.keys||s},t.exports=s},412:function(t){"use strict";var e=Object.prototype.toString;t.exports=function(t){var r=e.call(t),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===e.call(t.callee)),n}},369:function(t){t.exports=function(t){return t instanceof i}},584:function(t,e,r){"use strict";var n=r(157),i=r(391),o=r(490),s=r(994);function a(t){return t.call.bind(t)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=a(Object.prototype.toString),h=a(Number.prototype.valueOf),f=a(String.prototype.valueOf),d=a(Boolean.prototype.valueOf);if(u)var p=a(BigInt.prototype.valueOf);if(c)var g=a(Symbol.prototype.valueOf);function m(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(r){return!1}}function y(t){return"[object Map]"===l(t)}function b(t){return"[object Set]"===l(t)}function v(t){return"[object WeakMap]"===l(t)}function _(t){return"[object WeakSet]"===l(t)}function w(t){return"[object ArrayBuffer]"===l(t)}function M(t){return"undefined"!=typeof ArrayBuffer&&(w.working?w(t):t instanceof ArrayBuffer)}function S(t){return"[object DataView]"===l(t)}function E(t){return"undefined"!=typeof DataView&&(S.working?S(t):t instanceof DataView)}e.isArgumentsObject=n,e.isGeneratorFunction=i,e.isTypedArray=s,e.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):s(t)||E(t)},e.isUint8Array=function(t){return"Uint8Array"===o(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===o(t)},e.isUint16Array=function(t){return"Uint16Array"===o(t)},e.isUint32Array=function(t){return"Uint32Array"===o(t)},e.isInt8Array=function(t){return"Int8Array"===o(t)},e.isInt16Array=function(t){return"Int16Array"===o(t)},e.isInt32Array=function(t){return"Int32Array"===o(t)},e.isFloat32Array=function(t){return"Float32Array"===o(t)},e.isFloat64Array=function(t){return"Float64Array"===o(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===o(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===o(t)},y.working="undefined"!=typeof Map&&y(new Map),e.isMap=function(t){return"undefined"!=typeof Map&&(y.working?y(t):t instanceof Map)},b.working="undefined"!=typeof Set&&b(new Set),e.isSet=function(t){return"undefined"!=typeof Set&&(b.working?b(t):t instanceof Set)},v.working="undefined"!=typeof WeakMap&&v(new WeakMap),e.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(v.working?v(t):t instanceof WeakMap)},_.working="undefined"!=typeof WeakSet&&_(new WeakSet),e.isWeakSet=function(t){return _(t)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),e.isArrayBuffer=M,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=E;var x="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function k(t){return"[object SharedArrayBuffer]"===l(t)}function A(t){return void 0!==x&&(void 0===k.working&&(k.working=k(new x)),k.working?k(t):t instanceof x)}function C(t){return m(t,h)}function R(t){return m(t,f)}function O(t){return m(t,d)}function P(t){return u&&m(t,p)}function I(t){return c&&m(t,g)}e.isSharedArrayBuffer=A,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===l(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===l(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===l(t)},e.isGeneratorObject=function(t){return"[object Generator]"===l(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===l(t)}
26,e.isNumberObject=C,e.isStringObject=R,e.isBooleanObject=O,e.isBigIntObject=P,e.isSymbolObject=I,e.isBoxedPrimitive=function(t){return C(t)||R(t)||O(t)||P(t)||I(t)},e.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(M(t)||A(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw Error(t+" is not supported in userland")}})})},177:function(t,e,r){var i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},o=/%[sdj%]/g;e.format=function(t){if(!v(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(c(arguments[r]));return e.join(" ")}for(var r=1,n=arguments,i=n.length,s=String(t).replace(o,function(t){if("%%"===t)return"%";if(r>=i)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return t}}),a=n[r];r<i;a=n[++r])y(a)||!M(a)?s+=" "+a:s+=" "+c(a);return s},e.deprecate=function(t,r){if(void 0!==n&&!0===n.noDeprecation)return t;if(void 0===n)return function(){return e.deprecate(t,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(n.throwDeprecation)throw Error(r);n.traceDeprecation?console.trace(r):console.error(r),i=!0}return t.apply(this,arguments)}};var s={},a=/^$/;if(n.env.NODE_DEBUG){var u=n.env.NODE_DEBUG;a=RegExp("^"+(u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function c(t,r){var n={seen:[],stylize:h};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),m(r)?n.showHidden=r:r&&e._extend(n,r),_(n.showHidden)&&(n.showHidden=!1),_(n.depth)&&(n.depth=2),_(n.colors)&&(n.colors=!1),_(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),f(n,t,n.depth)}function l(t,e){var r=c.styles[e];return r?"\x1b["+c.colors[r][0]+"m"+t+"\x1b["+c.colors[r][1]+"m":t}function h(t,e){return t}function f(t,r,n){if(t.customInspect&&r&&x(r.inspect)&&r.inspect!==e.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o,s,a,u,c=r.inspect(n,t);return v(c)||(c=f(t,c,n)),c}var l=function(t,e){if(_(e))return t.stylize("undefined","undefined");if(v(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return b(e)?t.stylize(""+e,"number"):m(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}(t,r);if(l)return l;var h=Object.keys(r),M=(a={},h.forEach(function(t,e){a[t]=!0}),a);if(t.showHidden&&(h=Object.getOwnPropertyNames(r)),E(r)&&(h.indexOf("message")>=0||h.indexOf("description")>=0))return d(r);if(0===h.length){if(x(r)){var k=r.name?": "+r.name:"";return t.stylize("[Function"+k+"]","special")}if(w(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(S(r))return t.stylize(Date.prototype.toString.call(r),"date");if(E(r))return d(r)}var A="",C=!1,O=["{","}"];return(g(r)&&(C=!0,O=["[","]"]),x(r)&&(A=" [Function"+(r.name?": "+r.name:"")+"]"),w(r)&&(A=" "+RegExp.prototype.toString.call(r)),S(r)&&(A=" "+Date.prototype.toUTCString.call(r)),E(r)&&(A=" "+d(r)),0!==h.length||C&&0!=r.length)?n<0?w(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),u=C?function(t,e,r,n,i){for(var o=[],s=0,a=e.length;s<a;++s)R(e,String(s))?o.push(p(t,e,r,n,String(s),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(p(t,e,r,n,i,!0))}),o}(t,r,n,M,h):h.map(function(e){return p(t,r,n,M,e,C)}),t.seen.pop(),i=A,o=O,s=0,u.reduce(function(t,e){return s++,e.indexOf("\n")>=0&&s++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?o[0]+(""===i?"":i+"\n ")+" "+u.join(",\n ")+" "+o[1]:o[0]+i+" "+u.join(", ")+" "+o[1]):O[0]+A+O[1]}function d(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,r,n,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(a=t.stylize("[Setter]","special")),R(n,i)||(s="["+i+"]"),!a&&(0>t.seen.indexOf(u.value)?(a=y(r)?f(t,u.value,null):f(t,u.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+a.split("\n").map(function(t){return" "+t}
26).join("\n")):a=t.stylize("[Circular]","special")),_(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function g(t){return Array.isArray(t)}function m(t){return"boolean"==typeof t}function y(t){return null===t}function b(t){return"number"==typeof t}function v(t){return"string"==typeof t}function _(t){return void 0===t}function w(t){return M(t)&&"[object RegExp]"===k(t)}function M(t){return"object"==typeof t&&null!==t}function S(t){return M(t)&&"[object Date]"===k(t)}function E(t){return M(t)&&("[object Error]"===k(t)||t instanceof Error)}function x(t){return"function"==typeof t}function k(t){return Object.prototype.toString.call(t)}function A(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(!s[t=t.toUpperCase()]){if(a.test(t)){var r=n.pid;s[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else s[t]=function(){}}return s[t]},e.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=r(584),e.isArray=g,e.isBoolean=m,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=b,e.isString=v,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=_,e.isRegExp=w,e.types.isRegExp=w,e.isObject=M,e.isDate=S,e.types.isDate=S,e.isError=E,e.types.isNativeError=E,e.isFunction=x,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=r(369);var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;console.log("%s - %s",(r=[A((t=new Date).getHours()),A(t.getMinutes()),A(t.getSeconds())].join(":"),[t.getDate(),C[t.getMonth()],r].join(" ")),e.format.apply(e,arguments))},e.inherits=r(782),e._extend=function(t,e){if(!e||!M(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var O="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function P(t,e){if(!t){var r=Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw TypeError('The "original" argument must be of type Function');if(O&&t[O]){var e=t[O];if("function"!=typeof e)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,O,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise(function(t,n){e=t,r=n}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(t,n){t?r(t):e(n)});try{t.apply(this,i)}catch(s){r(s)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),O&&Object.defineProperty(e,O,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,i(t))},e.promisify.custom=O,e.callbackify=function(t){if("function"!=typeof t)throw TypeError('The "original" argument must be of type Function');function e(){for(var e=[],r=0;r<arguments.length;r++)e.push(arguments[r]);var i=e.pop();if("function"!=typeof i)throw TypeError("The last argument must be of type Function");var o=this,s=function(){return i.apply(o,arguments)};t.apply(this,e).then(function(t){n.nextTick(s.bind(null,null,t))},function(t){n.nextTick(P.bind(null,t,s))})}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,i(t)),e}},490:function(t,e,n){"use strict";var i=n(144),o=n(349),s=n(256),a=s("Object.prototype.toString"),u=n(942)()&&"symbol"==typeof Symbol.toStringTag,c=o(),l=s("String.prototype.slice"),h={},f=n(466),d=Object.getPrototypeOf;u&&f&&d&&i(c,function(t){if("function"==typeof r.g[t]){var e=new r.g[t];if(!(Symbol.toStringTag in e))throw EvalError("this engine has support for Symbol.toStringTag, but "+t+" does not have the property! Please report this.");var n=d(e),i=f(n,Symbol.toStringTag);i||(i=f(d(n),Symbol.toStringTag)),h[t]=i.get}});var p=function(t){var e=!1;return i(h,function(r,n){if(!e)try{var i=r.call(t);i===n&&(e=i)}catch(o){}}),e},g=n(994);t.exports=function(t){return!!g(t)&&(u?p(t):l(a(t),8,-1))}},349:function(t,e,n){"use strict";var i=n(992);t.exports=function(){return i(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(t){return"function"==typeof r.g[t]})}},466:function(t,e,r){"use strict";var n=r(500)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(i){n=null}t.exports=n}},o={};function s(t){var r=o[t];
26if(void 0!==r)return r.exports;var n=o[t]={exports:{}},i=!0;try{e[t](n,n.exports,s),i=!1}finally{i&&delete o[t]}return n.exports}s.ab="//";var a=s(167);t.exports=a}()},78428:function(t,e,r){!function(){var e={528:function(t,e,r){var n=r(685),i=r(310),o=t.exports;for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);function a(t){if("string"==typeof t&&(t=i.parse(t)),t.protocol||(t.protocol="https:"),"https:"!==t.protocol)throw Error('Protocol "'+t.protocol+'" not supported. Expected "https:"');return t}o.request=function(t,e){return t=a(t),n.request.call(this,t,e)},o.get=function(t,e){return t=a(t),n.get.call(this,t,e)}},685:function(t){"use strict";t.exports=r(22321)},310:function(t){"use strict";t.exports=r(11987)}},n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var o=n[t]={exports:{}},s=!0;try{e[t](o,o.exports,i),s=!1}finally{s&&delete n[t]}return o.exports}i.ab="//";var o=i(528);t.exports=o}()},11987:function(t,e,r){!function(){var e={477:function(t){"use strict";t.exports=r(97334)}},n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var o=n[t]={exports:{}},s=!0;try{e[t](o,o.exports,i),s=!1}finally{s&&delete n[t]}return o.exports}i.ab="//";var o={};!function(){var t,e=o,r=(t=i(477))&&"object"==typeof t&&"default"in t?t.default:t,n=/https?|ftp|gopher|file/;function s(t){"string"==typeof t&&(t=b(t));var e,i,o,s,a,u,c,l,h,f=(i=(e=t).auth,o=e.hostname,s=e.protocol||"",a=e.pathname||"",u=e.hash||"",c=e.query||"",l=!1,i=i?encodeURIComponent(i).replace(/%3A/i,":")+"@":"",e.host?l=i+e.host:o&&(l=i+(~o.indexOf(":")?"["+o+"]":o),e.port&&(l+=":"+e.port)),c&&"object"==typeof c&&(c=r.encode(c)),h=e.search||c&&"?"+c||"",s&&":"!==s.substr(-1)&&(s+=":"),e.slashes||(!s||n.test(s))&&!1!==l?(l="//"+(l||""),a&&"/"!==a[0]&&(a="/"+a)):l||(l=""),u&&"#"!==u[0]&&(u="#"+u),h&&"?"!==h[0]&&(h="?"+h),{protocol:s,host:l,pathname:a=a.replace(/[?#]/g,encodeURIComponent),search:h=h.replace("#","%23"),hash:u});return""+f.protocol+f.host+f.pathname+f.search+f.hash}var a="http://",u=a+"w.w",c=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,l=/https?|ftp|gopher|file/;function h(t,e){var r="string"==typeof t?b(t):t;t="object"==typeof t?s(t):t;var n=b(e),i="";r.protocol&&!r.slashes&&(i=r.protocol,t=t.replace(r.protocol,""),i+="/"===e[0]||"/"===t[0]?"/":""),i&&n.protocol&&(i="",n.slashes||(i=n.protocol,e=e.replace(n.protocol,"")));var o=t.match(c);o&&!n.protocol&&(t=t.substr((i=o[1]+(o[2]||"")).length),/^\/\/[^/]/.test(e)&&(i=i.slice(0,-1)));var h=new URL(t,u+"/"),f=new URL(e,h).toString().replace(u,""),d=n.protocol||r.protocol;return d+=r.slashes||n.slashes?"//":"",!i&&d?f=f.replace(a,d):i&&(f=f.replace(a,"")),l.test(f)||~e.indexOf(".")||"/"===t.slice(-1)||"/"===e.slice(-1)||"/"!==f.slice(-1)||(f=f.slice(0,-1)),i&&(f=i+("/"===f[0]?f.substr(1):f)),f}function f(){}f.prototype.parse=b,f.prototype.format=s,f.prototype.resolve=h,f.prototype.resolveObject=h;var d=/^https?|ftp|gopher|file/,p=/^(.*?)([#?].*)/,g=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,m=/^([a-z0-9.+-]*:)?\/\/\/*/i,y=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function b(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!1),t&&"object"==typeof t&&t instanceof f)return t;var i=(t=t.trim()).match(p);t=i?i[1].replace(/\\/g,"/")+i[2]:t.replace(/\\/g,"/"),y.test(t)&&"/"!==t.slice(-1)&&(t+="/");var o=!/(^javascript)/.test(t)&&t.match(g),a=m.test(t),c="";o&&(d.test(o[1])||(c=o[1].toLowerCase(),t=""+o[2]+o[3]),o[2]||(a=!1,d.test(o[1])?(c=o[1],t=""+o[3]):t="//"+o[3]),3!==o[2].length&&1!==o[2].length||(c=o[1],t="/"+o[3]));var l,h=(i?i[1]:t).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),b=h&&h[1],v=new f,_="",w="";try{l=new URL(t)}catch(S){_=S,c||n||!/^\/\//.test(t)||/^\/\/.+[@.]/.test(t)||(w="/",t=t.substr(1));try{l=new URL(t,u)}catch(M){return v.protocol=c,v.href=c,v}}v.slashes=a&&!w,v.host="w.w"===l.host?"":l.host,v.hostname="w.w"===l.hostname?"":l.hostname.replace(/(\[|\])/g,""),v.protocol=_?c||null:l.protocol,v.search=l.search.replace(/\\/g,"%5C"),v.hash=l.hash.replace(/\\/g,"%5C");var E=t.split("#");!v.search&&~E[0].indexOf("?")&&(v.search="?"),v.hash||""!==E[1]||(v.hash="#"),v.query=e?r.decode(l.search.substr(1)):v.search.substr(1),v.pathname=w+(o?l.pathname.replace(/['^|`]/g,function(t){return"%"+t.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(t,e){try{return decodeURIComponent(e).split("").map(function(t){var e=t.charCodeAt();return e>256||/^[a-z0-9]$/i.test(t)?t:"%"+e.toString(16).toUpperCase()}).join("")}catch(r){return e}}):l.pathname),"about:"===v.protocol&&"blank"===v.pathname&&(v.protocol="",v.pathname=""),_&&"/"!==t[0]&&(v.pathname=v.pathname.substr(1)),c&&!d.test(c)&&"/"!==t.slice(-1)&&"/"===v.pathname&&(v.pathname=""),v.path=v.pathname+v.search,v.auth=[l.username,l.password].map(decodeURIComponent).filter(
26Boolean).join(":"),v.port=l.port,b&&!v.host.endsWith(b)&&(v.host+=b,v.port=b.slice(1)),v.href=w?""+v.pathname+v.search+v.hash:s(v);var x=/^(file)/.test(v.href)?["host","hostname"]:[];return Object.keys(v).forEach(function(t){~x.indexOf(t)||(v[t]=v[t]||null)}),v}e.parse=b,e.format=s,e.resolve=h,e.resolveObject=function(t,e){return b(h(t,e))},e.Url=f}(),t.exports=o}()},73461:function(t){var e,r;"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab="//"),(r=e={}).endianness=function(){return"LE"},r.hostname=function(){return"undefined"!=typeof location?location.hostname:""},r.loadavg=function(){return[]},r.uptime=function(){return 0},r.freemem=function(){return Number.MAX_VALUE},r.totalmem=function(){return Number.MAX_VALUE},r.cpus=function(){return[]},r.type=function(){return"Browser"},r.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},r.networkInterfaces=r.getNetworkInterfaces=function(){return{}},r.arch=function(){return"javascript"},r.platform=function(){return"browser"},r.tmpdir=r.tmpDir=function(){return"/tmp"},r.EOL="\n",r.homedir=function(){return"/"},t.exports=e},97334:function(t){!function(){"use strict";var e,r={815:function(t){t.exports=function(t,r,n,i){r=r||"&",n=n||"=";var o={};if("string"!=typeof t||0===t.length)return o;var s=/\+/g;t=t.split(r);var a=1e3;i&&"number"==typeof i.maxKeys&&(a=i.maxKeys);var u=t.length;a>0&&u>a&&(u=a);for(var c=0;c<u;++c){var l,h,f,d,p=t[c].replace(s,"%20"),g=p.indexOf(n);(g>=0?(l=p.substr(0,g),h=p.substr(g+1)):(l=p,h=""),f=decodeURIComponent(l),d=decodeURIComponent(h),Object.prototype.hasOwnProperty.call(o,f))?e(o[f])?o[f].push(d):o[f]=[o[f],d]:o[f]=d}return o};var e=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},577:function(t){var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,o,s,a){return(o=o||"&",s=s||"=",null===t&&(t=void 0),"object"==typeof t)?n(i(t),function(i){var a=encodeURIComponent(e(i))+s;return r(t[i])?n(t[i],function(t){return a+encodeURIComponent(e(t))}).join(o):a+encodeURIComponent(e(t[i]))}).join(o):a?encodeURIComponent(e(a))+s+encodeURIComponent(e(t)):""};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function n(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n<t.length;n++)r.push(e(t[n],n));return r}var i=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}}},n={};function i(t){var e=n[t];if(void 0!==e)return e.exports;var o=n[t]={exports:{}},s=!0;try{r[t](o,o.exports,i),s=!1}finally{s&&delete n[t]}return o.exports}i.ab="//";var o={};(e=o).decode=e.parse=i(815),e.encode=e.stringify=i(577),t.exports=o}()},22321:function(t,e,r){var n=r(34155),i=r(48764).Buffer;!function(){var e={523:function(t){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},782:function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},646:function(t){"use strict";let e={};function r(t,r,n){n||(n=Error);class i extends n{constructor(t,e,n){super("string"==typeof r?r:r(t,e,n))}}i.prototype.name=n.name,i.prototype.code=t,e[t]=i}function n(t,e){if(!Array.isArray(t))return`of ${e} ${String(t)}`;{let r=t.length;return(t=t.map(t=>String(t)),r>2)?`one of ${e} ${t.slice(0,r-1).join(", ")}, or `+t[r-1]:2===r?`one of ${e} ${t[0]} or ${t[1]}`:`of ${e} ${t[0]}`}}r("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invali
26d for option "'+t+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(t,e,r){var i,o,s,a,u;let c,l;if("string"==typeof e&&(i="not ",e.substr(!o||o<0?0:+o,i.length)===i)?(c="must not be",e=e.replace(/^not /,"")):c="must be",s=" argument",(void 0===a||a>t.length)&&(a=t.length),t.substring(a-s.length,a)===s)l=`The ${t} ${c} ${n(e,"type")}`;else{let h=("number"!=typeof u&&(u=0),u+1>t.length||-1===t.indexOf(".",u))?"argument":"property";l=`The "${t}" ${h} ${c} ${n(e,"type")}`}return l+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.q=e},403:function(t,e,r){"use strict";var i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=l;var o=r(709),s=r(337);r(782)(l,o);for(var a=i(s.prototype),u=0;u<a.length;u++){var c=a[u];l.prototype[c]||(l.prototype[c]=s.prototype[c])}function l(t){if(!(this instanceof l))return new l(t);o.call(this,t),s.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",h)))}function h(){this._writableState.ended||n.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})},889:function(t,e,r){"use strict";t.exports=i;var n=r(170);function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}r(782)(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},709:function(t,e,i){"use strict";t.exports=k,k.ReadableState=x,i(361).EventEmitter;var o,s,a,u,c,l=function(t,e){return t.listeners(e).length},h=i(678),f=i(300).Buffer,d=r.g.Uint8Array||function(){},p=i(837);s=p&&p.debuglog?p.debuglog("stream"):function(){};var g=i(379),m=i(25),y=i(776).getHighWaterMark,b=i(646).q,v=b.ERR_INVALID_ARG_TYPE,_=b.ERR_STREAM_PUSH_AFTER_EOF,w=b.ERR_METHOD_NOT_IMPLEMENTED,M=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i(782)(k,h);var S=m.errorOrDestroy,E=["error","close","destroy","pause","resume"];function x(t,e,r){o=o||i(403),t=t||{},"boolean"!=typeof r&&(r=e instanceof o),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=y(this,t,"readableHighWaterMark",r),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(a||(a=i(704).s),this.decoder=new a(t.encoding),this.encoding=t.encoding)}function k(t){if(o=o||i(403),!(this instanceof k))return new k(t);var e=this instanceof o;this._readableState=new x(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),h.call(this)}function A(t,e,r,n,i){s("readableAddChunk",e);var o,a,u,c,l,h=t._readableState;if(null===e)h.reading=!1,function(t,e){if(s("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?O(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,P(t)))}}(t,h);else{if(i||(o=h,a=e,f.isBuffer(a)||a instanceof d||"string"==typeof a||void 0===a||o.objectMode||(u=new v("chunk",["string","Buffer","Uint8Array"],a)),l=u),l)S(t,l);else if(h.objectMode||e&&e.length>0){if("string"==typeof e||h.objectMode||Object.getPrototypeOf(e)===f.prototype||(c=e,e=f.from(c)),n)h.endEmitted?S(t,new M):C(t,h,e,!0);else if(h.ended)S(t,new _);else{if(h.destroyed)return!1;h.reading=!1,h.decoder&&!r?(e=h.decoder.write(e),h.objectMode||0!==e.length?C(t,h,e,!1):I(t,h)):C(t,h,e,!1)}}else n||(h.reading=!1,I(t,h))}return!h.ended&&(h.length<h.highWaterMark||0===h.length)}function C(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&O(t)),I(t,e)}function R(t,e){if(t<=0||0===e.length&&e.ended)return 0;if(e.objectMode)return 1;if(t!=t)return e.flowing&&e.length?e.buffer.head.data.length:e.length;if(t>e.highWaterMark){var r;e.highWaterMark=((r=t)>=1073741824?r=1073741824:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)}return t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0)}function O(t){var e=t._readableState;s("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(s("emitReadable",e.flowing),e.emittedReadable=!0,n.nextTick(P,t))}function P(t){var e=t._readableState;
vendor: 4,459 bytes, line 26
26s("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,B(t)}function I(t,e){e.readingMore||(e.readingMore=!0,n.nextTick(T,t,e))}function T(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(s("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function N(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function L(t){s("readable nexttick read 0"),t.read(0)}function j(t,e){s("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),B(t),e.flowing&&!e.reading&&t.read(0)}function B(t){var e=t._readableState;for(s("flow",e.flowing);e.flowing&&null!==t.read(););}function D(t,e){var r;return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r)}function F(t){var e=t._readableState;s("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,n.nextTick(U,e,t))}function U(t,e){if(s("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function z(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return -1}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),k.prototype.destroy=m.destroy,k.prototype._undestroy=m.undestroy,k.prototype._destroy=function(t,e){e(t)},k.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=f.from(t,e),e=""),r=!0),A(this,t,e,!1,r)},k.prototype.unshift=function(t){return A(this,t,null,!0,!1)},k.prototype.isPaused=function(){return!1===this._readableState.flowing},k.prototype.setEncoding=function(t){a||(a=i(704).s);var e=new a(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";null!==r;)n+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this},k.prototype.read=function(t){s("read",t),t=parseInt(t,10);var e,r=this._readableState,n=t;if(0!==t&&(r.emittedReadable=!1),0===t&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return s("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?F(this):O(this),null;if(0===(t=R(t,r))&&r.ended)return 0===r.length&&F(this),null;var i=r.needReadable;return s("need readable",i),(0===r.length||r.length-t<r.highWaterMark)&&s("length less than watermark",i=!0),r.ended||r.reading?s("reading or ended",i=!1):i&&(s("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(t=R(n,r))),null===(e=t>0?D(t,r):null)?(r.needReadable=r.length<=r.highWaterMark,t=0):(r.length-=t,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==t&&r.ended&&F(this)),null!==e&&this.emit("data",e),e},k.prototype._read=function(t){S(this,new w("_read()"))},k.prototype.pipe=function(t,e){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,s("pipe count=%d opts=%j",i.pipesCount,e);var o=e&&!1===e.end||t===n.stdout||t===n.stderr?g:a;function a(){s("onend"),t.end()}i.endEmitted?n.nextTick(o):r.once("end",o),t.on("unpipe",function e(n,o){s("onunpipe"),n===r&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,s("cleanup"),t.removeListener("close",d),t.removeListener("finish",p),t.removeListener("drain",u),t.removeListener("error",f),t.removeListener("unpipe",e),r.removeListener("end",a),r.removeListener("end",g),r.removeListener("data",h),c=!0,i.awaitDrain&&(!t._writableState||t._writableState.needDrain)&&u())});var u=function(){var t=r._readableState;s("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&l(r,"data")&&(t.flowing=!0,B(r))};t.on("drain",u);var c=!1;function h(e){s("ondata");
vendor: 4,148 bytes, line 26
26var n=t.write(e);s("dest.write",n),!1===n&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==z(i.pipes,t))&&!c&&(s("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function f(e){s("onerror",e),g(),t.removeListener("error",f),0===l(t,"error")&&S(t,e)}function d(){t.removeListener("finish",p),g()}function p(){s("onfinish"),t.removeListener("close",d),g()}function g(){s("unpipe"),r.unpipe(t)}return r.on("data",h),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",f),t.once("close",d),t.once("finish",p),t.emit("pipe",r),i.flowing||(s("pipe resume"),r.resume()),t},k.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=z(e.pipes,t);return -1===s||(e.pipes.splice(s,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},k.prototype.on=function(t,e){var r=h.prototype.on.call(this,t,e),i=this._readableState;return"data"===t?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"!==t||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,s("on readable",i.length,i.reading),i.length?O(this):i.reading||n.nextTick(L,this)),r},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(t,e){var r=h.prototype.removeListener.call(this,t,e);return"readable"===t&&n.nextTick(N,this),r},k.prototype.removeAllListeners=function(t){var e=h.prototype.removeAllListeners.apply(this,arguments);return("readable"===t||void 0===t)&&n.nextTick(N,this),e},k.prototype.resume=function(){var t,e=this._readableState;return e.flowing||(s("resume"),e.flowing=!e.readableListening,(t=e).resumeScheduled||(t.resumeScheduled=!0,n.nextTick(j,this,t))),e.paused=!1,this},k.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},k.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on("end",function(){if(s("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)}),t.on("data",function(i){s("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!=i)&&(r.objectMode||i&&i.length)&&(e.push(i)||(n=!0,t.pause()))}),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<E.length;o++)t.on(E[o],this.emit.bind(this,E[o]));return this._read=function(e){s("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(k.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=i(871)),u(this)}),Object.defineProperty(k.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(k.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(k.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),k._fromList=D,Object.defineProperty(k.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(k.from=function(t,e){return void 0===c&&(c=i(727)),c(k,t,e)})},170:function(t,e,r){"use strict";t.exports=l;var n=r(646).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(403);function c(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;
26if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(t){if(!(this instanceof l))return new l(t);u.call(this,t),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",h)}function h(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush(function(e,r){f(t,e,r)})}function f(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new a;if(t._transformState.transforming)throw new s;return t.push(null)}r(782)(l,u),l.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},l.prototype._transform=function(t,e,r){r(new i("_transform()"))},l.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},l.prototype._destroy=function(t,e){u.prototype._destroy.call(this,t,function(t){e(t)})}},337:function(t,e,i){"use strict";function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){(function(t,e,r){var n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(void 0),n=n.next}e.corkedRequestsFree.next=t})(e,t)}}t.exports=k,k.WritableState=x;var s,a,u={deprecate:i(769)},c=i(678),l=i(300).Buffer,h=r.g.Uint8Array||function(){},f=i(25),d=i(776).getHighWaterMark,p=i(646).q,g=p.ERR_INVALID_ARG_TYPE,m=p.ERR_METHOD_NOT_IMPLEMENTED,y=p.ERR_MULTIPLE_CALLBACK,b=p.ERR_STREAM_CANNOT_PIPE,v=p.ERR_STREAM_DESTROYED,_=p.ERR_STREAM_NULL_VALUES,w=p.ERR_STREAM_WRITE_AFTER_END,M=p.ERR_UNKNOWN_ENCODING,S=f.errorOrDestroy;function E(){}function x(t,e,r){s=s||i(403),t=t||{},"boolean"!=typeof r&&(r=e instanceof s),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=d(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){(function(t,e){var r,i,o=t._writableState,s=o.sync,a=o.writecb;if("function"!=typeof a)throw new y;if((r=o).writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,e)i=t,--o.pendingcb,s?(n.nextTick(a,e),n.nextTick(I,i,o),i._writableState.errorEmitted=!0,S(i,e)):(a(e),i._writableState.errorEmitted=!0,S(i,e),I(i,o));else{var u=O(o)||t.destroyed;u||o.corked||o.bufferProcessing||!o.bufferedRequest||R(t,o),s?n.nextTick(C,t,o,u,a):C(t,o,u,a)}})(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function k(t){var e=this instanceof(s=s||i(403));if(!e&&!a.call(k,this))return new k(t);this._writableState=new x(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),c.call(this)}function A(t,e,r,n,i,o,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new v("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function C(t,e,r,n){var i;r||0===(i=e).length&&i.needDrain&&(i.needDrain=!1,t.emit("drain")),e.pendingcb--,n(),I(t,e)}function R(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=Array(e.bufferedRequestCount),i=e.corkedRequestsFree;i.entry=r;for(var s=0,a=!0;r;)n[s]=r,r.isBuf||(a=!1),r=r.next,s+=1;n.allBuffers=a,A(t,e,!0,e.length,n,"",i.finish),e.pendingcb++,e.lastBufferedRequest=null,i.next?(e.corkedRequestsFree=i.next,i.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,l=r.callback,h=e.objectMode?1:u.length;if(A(t,e,!1,h,u,c,l),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function O(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function P(t,e){t._final(function(r){e.pendingcb--,r&&S(t,r),e.prefinished=!0,t.emit("prefinish"),I(t,e)})}function I(t,e){var r,i=O(e);
26if(i&&((r=e).prefinished||r.finalCalled||("function"!=typeof t._final||r.destroyed?(r.prefinished=!0,t.emit("prefinish")):(r.pendingcb++,r.finalCalled=!0,n.nextTick(P,t,r))),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var o=t._readableState;(!o||o.autoDestroy&&o.endEmitted)&&t.destroy()}return i}i(782)(k,c),x.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(x.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(t){return!!a.call(this,t)||this===k&&t&&t._writableState instanceof x}})):a=function(t){return t instanceof this},k.prototype.pipe=function(){S(this,new b)},k.prototype.write=function(t,e,r){var i,o,s,a,u,c,f,d=this._writableState,p=!1,m=!d.objectMode&&(i=t,l.isBuffer(i)||i instanceof h);return m&&!l.isBuffer(t)&&(o=t,t=l.from(o)),("function"==typeof e&&(r=e,e=null),m?e="buffer":e||(e=d.defaultEncoding),"function"!=typeof r&&(r=E),d.ending)?(s=r,S(this,a=new w),n.nextTick(s,a)):(m||(u=t,c=r,null===u?f=new _:"string"==typeof u||d.objectMode||(f=new g("chunk",["string","Buffer"],u)),!f||(S(this,f),n.nextTick(c,f),0)))&&(d.pendingcb++,p=function(t,e,r,n,i,o){if(!r){var s,a,u=(s=n,a=i,e.objectMode||!1===e.decodeStrings||"string"!=typeof s||(s=l.from(s,a)),s);n!==u&&(r=!0,i="buffer",n=u)}var c=e.objectMode?1:n.length;e.length+=c;var h=e.length<e.highWaterMark;if(h||(e.needDrain=!0),e.writing||e.corked){var f=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else A(t,e,!1,c,n,i,o);return h}(this,d,m,t,e,r)),p},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var t=this._writableState;!t.corked||(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||R(this,t))},k.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new M(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(t,e,r){r(new m("_write()"))},k.prototype._writev=null,k.prototype.end=function(t,e,r){var i,o,s,a=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),a.corked&&(a.corked=1,this.uncork()),a.ending||(i=this,o=a,s=r,o.ending=!0,I(i,o),s&&(o.finished?n.nextTick(s):i.once("finish",s)),o.ended=!0,i.writable=!1),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),k.prototype.destroy=f.destroy,k.prototype._undestroy=f.undestroy,k.prototype._destroy=function(t,e){e(t)}},871:function(t,e,r){"use strict";function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o,s=r(698),a=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),h=Symbol("lastPromise"),f=Symbol("handlePromise"),d=Symbol("stream");function p(t,e){return{value:t,done:e}}function g(t){var e=t[a];if(null!==e){var r=t[d].read();null!==r&&(t[h]=null,t[a]=null,t[u]=null,e(p(r,!1)))}}function m(t){n.nextTick(g,t)}var y=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((i(o={get stream(){return this[d]},next:function(){var t,e,r=this,i=this[c];if(null!==i)return Promise.reject(i);if(this[l])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise(function(t,e){n.nextTick(function(){r[c]?e(r[c]):t(p(void 0,!0))})});var o=this[h];if(o)e=new Promise((t=this,function(e,r){o.then(function(){if(t[l]){e(p(void 0,!0));return}t[f](e,r)},r)}));else{var s=this[d].read();if(null!==s)return Promise.resolve(p(s,!1));e=new Promise(this[f])}return this[h]=e,e}},Symbol.asyncIterator,function(){return this}),i(o,"return",function(){var t=this;return new Promise(function(e,r){t[d].destroy(null,function(t){if(t){r(t);return}e(p(void 0,!0))})})}),o),y),v=function(t){var e,r=Object.create(b,(i(e={},d,{value:t,writable:!0}),i(e,a,{value:null,writable:!0}),i(e,u,{value:null,writable:!0}),i(e,c,{value:null,writable:!0}),i(e,l,{value:t._readableState.endEmitted,writable:!0}),i(e,f,{value:function(t,e){var n=r[d].read();n?(r[h]=null,r[a]=null,r[u]=null,t(p(n,!1))):(r[a]=t,r[u]=e)},writable:!0}),e));
26return r[h]=null,s(t,function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[u];null!==e&&(r[h]=null,r[a]=null,r[u]=null,e(t)),r[c]=t;return}var n=r[a];null!==n&&(r[h]=null,r[a]=null,r[u]=null,n(p(void 0,!0))),r[l]=!0}),t.on("readable",m.bind(null,r)),r};t.exports=v},379:function(t,e,r){"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function i(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var o=r(300).Buffer,s=r(837).inspect,a=s&&s.custom||"inspect";t.exports=function(){var t,e;function r(){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,r),this.head=null,this.tail=null,this.length=0}return t=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return o.alloc(0);for(var e,r,n=o.allocUnsafe(t>>>0),i=this.head,s=0;i;)e=i.data,r=s,o.prototype.copy.call(e,n,r),s+=i.data.length,i=i.next;return n}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,r=1,n=e.data;for(t-=n.length;e=e.next;){var i=e.data,o=t>i.length?i.length:t;if(o===i.length?n+=i:n+=i.slice(0,t),0==(t-=o)){o===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=o.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,s=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,s),0==(t-=s)){s===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(s));break}++n}return this.length-=n,e}},{key:a,value:function(t,e){return s(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach(function(e){var n,i;n=t,i=r[e],e in n?Object.defineProperty(n,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[e]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({},e,{depth:0,customInspect:!1}))}}],i(r.prototype,t),e&&i(r,e),r}()},25:function(t){"use strict";function e(t,e){i(t,e),r(t)}function r(t){(!t._writableState||t._writableState.emitClose)&&(!t._readableState||t._readableState.emitClose)&&t.emit("close")}function i(t,e){t.emit("error",e)}t.exports={destroy:function(t,o){var s=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?(o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,t)):n.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!o&&t?s._writableState?s._writableState.errorEmitted?n.nextTick(r,s):(s._writableState.errorEmitted=!0,n.nextTick(e,s,t)):n.nextTick(e,s,t):o?(n.nextTick(r,s),o(t)):n.nextTick(r,s)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}},698:function(t,e,r){"use strict";
26var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,r,o){if("function"==typeof r)return t(e,null,r);r||(r={}),s=o||i,a=!1,o=function(){if(!a){a=!0;for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];s.apply(this,e)}};var s,a,u=r.readable||!1!==r.readable&&e.readable,c=r.writable||!1!==r.writable&&e.writable,l=function(){e.writable||f()},h=e._writableState&&e._writableState.finished,f=function(){c=!1,h=!0,u||o.call(e)},d=e._readableState&&e._readableState.endEmitted,p=function(){u=!1,d=!0,c||o.call(e)},g=function(t){o.call(e,t)},m=function(){var t;return u&&!d?(e._readableState&&e._readableState.ended||(t=new n),o.call(e,t)):c&&!h?(e._writableState&&e._writableState.ended||(t=new n),o.call(e,t)):void 0},y=function(){e.req.on("finish",f)};return e.setHeader&&"function"==typeof e.abort?(e.on("complete",f),e.on("abort",m),e.req?y():e.on("request",y)):c&&!e._writableState&&(e.on("end",l),e.on("close",l)),e.on("end",p),e.on("finish",f),!1!==r.error&&e.on("error",g),e.on("close",m),function(){e.removeListener("complete",f),e.removeListener("abort",m),e.removeListener("request",y),e.req&&e.req.removeListener("finish",f),e.removeListener("end",l),e.removeListener("close",l),e.removeListener("finish",f),e.removeListener("end",p),e.removeListener("error",g),e.removeListener("close",m)}}},727:function(t,e,r){"use strict";function n(t,e,r,n,i,o,s){try{var a=t[o](s),u=a.value}catch(c){r(c);return}a.done?e(u):Promise.resolve(u).then(n,i)}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}var o=r(646).q.ERR_INVALID_ARG_TYPE;t.exports=function(t,e,r){if(e&&"function"==typeof e.next)s=e;else if(e&&e[Symbol.asyncIterator])s=e[Symbol.asyncIterator]();else if(e&&e[Symbol.iterator])s=e[Symbol.iterator]();else throw new o("iterable",["Iterable"],e);var s,a=new t(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach(function(e){var n,i;n=t,i=r[e],e in n?Object.defineProperty(n,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[e]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({objectMode:!0},r)),u=!1;function c(){return l.apply(this,arguments)}function l(){var t;return t=function*(){try{var t=yield s.next(),e=t.value;t.done?a.push(null):a.push((yield e))?c():u=!1}catch(r){a.destroy(r)}},(l=function(){var e=this,r=arguments;return new Promise(function(i,o){var s=t.apply(e,r);function a(t){n(s,i,o,a,u,"next",t)}function u(t){n(s,i,o,a,u,"throw",t)}a(void 0)})}).apply(this,arguments)}return a._read=function(){u||(u=!0,c())},a}},442:function(t,e,r){"use strict";var n,i=r(646).q,o=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function a(t){if(t)throw t}function u(t){t()}function c(t,e){return t.pipe(e)}t.exports=function(){for(var t,e,i=arguments.length,l=Array(i),h=0;h<i;h++)l[h]=arguments[h];var f=(t=l).length&&"function"==typeof t[t.length-1]?t.pop():a;if(Array.isArray(l[0])&&(l=l[0]),l.length<2)throw new o("streams");var d=l.map(function(t,i){var o,a,c,h,p,g,m=i<l.length-1;return o=i>0,c=a=function(t){e||(e=t),t&&d.forEach(u),m||(d.forEach(u),f(e))},h=!1,a=function(){h||(h=!0,c.apply(void 0,arguments))},p=!1,t.on("close",function(){p=!0}),void 0===n&&(n=r(698)),n(t,{readable:m,writable:o},function(t){if(t)return a(t);p=!0,a()}),g=!1,function(e){if(!p&&!g){if(g=!0,t.setHeader&&"function"==typeof t.abort)return t.abort();if("function"==typeof t.destroy)return t.destroy();a(e||new s("pipe"))}}});return l.reduce(c)}},776:function(t,e,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,i){var o=null!=e.highWaterMark?e.highWaterMark:i?e[r]:null;if(null!=o){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return t.objectMode?16:16384}}},678:function(t,e,r){t.exports=r(781)},726:function(t,e,r){var i=r(781);"disable"===n.env.READABLE_STREAM&&i?(t.exports=i.Readable,Object.assign(t.exports,i),t.exports.Stream=i):((e=t.exports=r(709)).Stream=i||e,e.Readable=e,e.Writable=r(337),e.Duplex=r(403),e.Transform=r(170),e.PassThrough=r(889),e.finished=r(698),e.pipeline=r(442))},55:function(t,e,r){var n=r(300),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function s(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(t,e,r){if("number"==typeof t)throw TypeError("Argument must not be a number");return i(t,e,r)},s.alloc=function(t,e,r){if("number"!=typeof t)throw TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},s.allocUnsafe=function(t){if("number"!=typeof t)throw TypeError("Argument must be a number");return i(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw TypeError("Argument must be a number");return n.SlowBuffer(t)}},813:function(t,e,n){var i=n(450),o=n(254),s=n(911),a=n(523),u=n(310),c=e;c.request=function(t,e){t="string"==typeof t?u.parse(t):s(t);var n=-1===r.g.location.protocol.search(/^https?:$/)?"http:":"",o=t.protocol||n,a=t.hostname||t.host,c=t.port,l=t.path||"/";a&&-1!==a.indexOf(":")&&(a="["+a+"]"),t.url=(a?o+"//"+a:"")+(c?":"+c:"")+l,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var h=new i(t);return e&&h.on("response",e),h},c.get=function(t,e){var r=c.request(t,e);return r.end(),r}
26,c.ClientRequest=i,c.IncomingMessage=o.IncomingMessage,c.Agent=function(){},c.Agent.defaultMaxSockets=4,c.globalAgent=new c.Agent,c.STATUS_CODES=a,c.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},301:function(t,e){var n;function i(){if(void 0!==n)return n;if(r.g.XMLHttpRequest){n=new r.g.XMLHttpRequest;try{n.open("GET",r.g.XDomainRequest?"/":"https://example.com")}catch(t){n=null}}else n=null;return n}function o(t){var e=i();if(!e)return!1;try{return e.responseType=t,e.responseType===t}catch(r){}return!1}function s(t){return"function"==typeof t}e.fetch=s(r.g.fetch)&&s(r.g.ReadableStream),e.writableStream=s(r.g.WritableStream),e.abortController=s(r.g.AbortController),e.arraybuffer=e.fetch||o("arraybuffer"),e.msstream=!e.fetch&&o("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&o("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||!!i()&&s(i().overrideMimeType),n=null},450:function(t,e,o){var s=o(301),a=o(782),u=o(254),c=o(726),l=u.IncomingMessage,h=u.readyStates,f=t.exports=function(t){var e,r,n,o=this;c.Writable.call(o),o._opts=t,o._body=[],o._headers={},t.auth&&o.setHeader("Authorization","Basic "+i.from(t.auth).toString("base64")),Object.keys(t.headers).forEach(function(e){o.setHeader(e,t.headers[e])});var a=!0;if("disable-fetch"===t.mode||"requestTimeout"in t&&!s.abortController)a=!1,n=!0;else if("prefer-streaming"===t.mode)n=!1;else if("allow-wrong-content-type"===t.mode)n=!s.overrideMimeType;else if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw Error("Invalid value for opts.mode");else n=!0;o._mode=(e=n,r=a,s.fetch&&r?"fetch":s.mozchunkedarraybuffer?"moz-chunked-arraybuffer":s.msstream?"ms-stream":s.arraybuffer&&e?"arraybuffer":"text"),o._fetchTimer=null,o.on("finish",function(){o._onFinish()})};a(f,c.Writable),f.prototype.setHeader=function(t,e){var r=this,n=t.toLowerCase();-1===d.indexOf(n)&&(r._headers[n]={name:t,value:e})},f.prototype.getHeader=function(t){var e=this._headers[t.toLowerCase()];return e?e.value:null},f.prototype.removeHeader=function(t){delete this._headers[t.toLowerCase()]},f.prototype._onFinish=function(){var t=this;if(!t._destroyed){var e=t._opts,i=t._headers,o=null;"GET"!==e.method&&"HEAD"!==e.method&&(o=new Blob(t._body,{type:(i["content-type"]||{}).value||""}));var a=[];
26if(Object.keys(i).forEach(function(t){var e=i[t].name,r=i[t].value;Array.isArray(r)?r.forEach(function(t){a.push([e,t])}):a.push([e,r])}),"fetch"===t._mode){var u=null;if(s.abortController){var c=new AbortController;u=c.signal,t._fetchAbortController=c,"requestTimeout"in e&&0!==e.requestTimeout&&(t._fetchTimer=r.g.setTimeout(function(){t.emit("requestTimeout"),t._fetchAbortController&&t._fetchAbortController.abort()},e.requestTimeout))}r.g.fetch(t._opts.url,{method:t._opts.method,headers:a,body:o||void 0,mode:"cors",credentials:e.withCredentials?"include":"same-origin",signal:u}).then(function(e){t._fetchResponse=e,t._connect()},function(e){r.g.clearTimeout(t._fetchTimer),t._destroyed||t.emit("error",e)})}else{var l=t._xhr=new r.g.XMLHttpRequest;try{l.open(t._opts.method,t._opts.url,!0)}catch(f){n.nextTick(function(){t.emit("error",f)});return}"responseType"in l&&(l.responseType=t._mode),"withCredentials"in l&&(l.withCredentials=!!e.withCredentials),"text"===t._mode&&"overrideMimeType"in l&&l.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in e&&(l.timeout=e.requestTimeout,l.ontimeout=function(){t.emit("requestTimeout")}),a.forEach(function(t){l.setRequestHeader(t[0],t[1])}),t._response=null,l.onreadystatechange=function(){switch(l.readyState){case h.LOADING:case h.DONE:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&(l.onprogress=function(){t._onXHRProgress()}),l.onerror=function(){t._destroyed||t.emit("error",Error("XHR error"))};try{l.send(o)}catch(d){n.nextTick(function(){t.emit("error",d)});return}}}},f.prototype._onXHRProgress=function(){(function(t){try{var e=t.status;return null!==e&&0!==e}catch(r){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},f.prototype._connect=function(){var t=this;t._destroyed||(t._response=new l(t._xhr,t._fetchResponse,t._mode,t._fetchTimer),t._response.on("error",function(e){t.emit("error",e)}),t.emit("response",t._response))},f.prototype._write=function(t,e,r){this._body.push(t),r()},f.prototype.abort=f.prototype.destroy=function(){var t=this;t._destroyed=!0,r.g.clearTimeout(t._fetchTimer),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort()},f.prototype.end=function(t,e,r){"function"==typeof t&&(r=t,t=void 0),c.Writable.prototype.end.call(this,t,e,r)},f.prototype.flushHeaders=function(){},f.prototype.setTimeout=function(){},f.prototype.setNoDelay=function(){},f.prototype.setSocketKeepAlive=function(){};var d=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},254:function(t,e,o){var s=o(301),a=o(782),u=o(726),c=e.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},l=e.IncomingMessage=function(t,e,o,a){var c=this;if(u.Readable.call(c),c._mode=o,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){n.nextTick(function(){c.emit("close")})}),"fetch"===o){if(c._fetchResponse=e,c.url=e.url,c.statusCode=e.status,c.statusMessage=e.statusText,e.headers.forEach(function(t,e){c.headers[e.toLowerCase()]=t,c.rawHeaders.push(e,t)}),s.writableStream){var l=new WritableStream({write:function(t){return new Promise(function(e,r){c._destroyed?r():c.push(i.from(t))?e():c._resumeFetch=e})},close:function(){r.g.clearTimeout(a),c._destroyed||c.push(null)},abort:function(t){c._destroyed||c.emit("error",t)}});try{e.body.pipeTo(l).catch(function(t){r.g.clearTimeout(a),c._destroyed||c.emit("error",t)});return}catch(h){}}var f=e.body.getReader();!function t(){f.read().then(function(e){if(!c._destroyed){if(e.done){r.g.clearTimeout(a),c.push(null);return}c.push(i.from(e.value)),t()}}).catch(function(t){r.g.clearTimeout(a),c._destroyed||c.emit("error",t)})}()}else if(c._xhr=t,c._pos=0,c.url=t.responseURL,c.statusCode=t.status,c.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach(function(t){var e=t.match(/^([^:]+):\s*(.*)/);if(e){var r=e[1].toLowerCase();"set-cookie"===r?(void 0===c.headers[r]&&(c.headers[r]=[]),c.headers[r].push(e[2])):void 0!==c.headers[r]?c.headers[r]+=", "+e[2]:c.headers[r]=e[2],c.rawHeaders.push(e[1],e[2])}}),c._charset="x-user-defined",!s.overrideMimeType){var d=c.rawHeaders["mime-type"];if(d){var p=d.match(/;\s*charset=([^;])(;|$)/);p&&(c._charset=p[1].toLowerCase())}c._charset||(c._charset="utf-8")}};a(l,u.Readable),l.prototype._read=function(){var t=this,e=t._resumeFetch;e&&(t._resumeFetch=null,e())},l.prototype._onXHRProgress=function(){var t=this,e=t._xhr,n=null;switch(t._mode){case"text":if((n=e.responseText).length>t._pos){var o=n.substr(t._pos);if("x-user-defined"===t._charset){for(var s=i.alloc(o.length),a=0;a<o.length;a++)s[a]=255&o.charCodeAt(a);t.push(s)}else t.push(o,t._charset);t._pos=n.length}break;case"arraybuffer":if(e.readyState!==c.DONE||!e.response)break;n=e.response,t.push(i.from(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=e.response,e.readyState!==c.LOADING||!n)break;t.push(i.from(new Uint8Array(n)));break;case"ms-stream":if(n=e.response,e.readyState!==c.LOADING)break;var u=new r.g.MSStreamReader;
26u.onprogress=function(){u.result.byteLength>t._pos&&(t.push(i.from(new Uint8Array(u.result.slice(t._pos)))),t._pos=u.result.byteLength)},u.onload=function(){t.push(null)},u.readAsArrayBuffer(n)}t._xhr.readyState===c.DONE&&"ms-stream"!==t._mode&&t.push(null)}},704:function(t,e,r){"use strict";var n=r(55).Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){var e;if(!t)return"utf8";for(;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=c,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=l,this.end=h,e=3;break;default:this.write=f,this.end=d;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if((192&e[0])!=128)return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if((192&e[1])!=128)return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&(192&e[2])!=128)return t.lastNeed=2,"�"}}(this,t,0);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length)}function u(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function l(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function f(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}e.s=o,o.prototype.write=function(t){var e,r;if(0===t.length)return"";if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},o.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},o.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=s(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||-2===i?0:(i=s(e[n]))>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||-2===i?0:(i=s(e[n]))>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},769:function(t){t.exports=function(t,r){if(e("noDeprecation"))return t;var n=!1;return function(){if(!n){if(e("throwDeprecation"))throw Error(r);e("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return t.apply(this,arguments)}};function e(t){try{if(!r.g.localStorage)return!1}catch(e){return!1}var n=r.g.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}},911:function(t){t.exports=function(){for(var t={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)e.call(n,i)&&(t[i]=n[i])}return t};var e=Object.prototype.hasOwnProperty},300:function(t){"use strict";
26t.exports=r(48764)},361:function(t){"use strict";t.exports=r(17187)},781:function(t){"use strict";t.exports=r(79681)},310:function(t){"use strict";t.exports=r(11987)},837:function(t){"use strict";t.exports=r(89539)}},o={};function s(t){var r=o[t];if(void 0!==r)return r.exports;var n=o[t]={exports:{}},i=!0;try{e[t](n,n.exports,s),i=!1}finally{i&&delete o[t]}return n.exports}s.ab="//";var a=s(813);t.exports=a}()},70631:function(t,e,r){var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&i&&"function"==typeof i.get?i.get:null,s=n&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=a&&u&&"function"==typeof u.get?u.get:null,l=a&&Set.prototype.forEach,h="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,g=Object.prototype.toString,m=Function.prototype.toString,y=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,_=String.prototype.toUpperCase,w=String.prototype.toLowerCase,M=RegExp.prototype.test,S=Array.prototype.concat,E=Array.prototype.join,x=Array.prototype.slice,k=Math.floor,A="function"==typeof BigInt?BigInt.prototype.valueOf:null,C=Object.getOwnPropertySymbols,R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,O="function"==typeof Symbol&&"object"==typeof Symbol.iterator,P="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===O?"object":"symbol")?Symbol.toStringTag:null,I=Object.prototype.propertyIsEnumerable,T=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function N(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||M.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-k(-t):k(t);if(n!==t){var i=String(n),o=b.call(e,i.length+1);return v.call(i,r,"$&_")+"."+v.call(v.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(e,r,"$&_")}var L=r(24654),j=L.custom,B=z(j)?j:null;function D(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function F(t){return"[object Array]"===W(t)&&(!P||!("object"==typeof t&&P in t))}function U(t){return"[object RegExp]"===W(t)&&(!P||!("object"==typeof t&&P in t))}function z(t){if(O)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!R)return!1;try{return R.call(t),!0}catch(e){}return!1}t.exports=function t(e,r,n,i){var a=r||{};if(q(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw TypeError('option "quoteStyle" must be "single" or "double"');if(q(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!q(a,"customInspect")||a.customInspect;if("boolean"!=typeof u&&"symbol"!==u)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(a,"indent")&&null!==a.indent&&" "!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var g=a.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return function t(e,r){if(e.length>r.maxStringLength){var n=e.length-r.maxStringLength;return t(b.call(e,0,r.maxStringLength),r)+"... "+n+" more character"+(n>1?"s":"")}return D(v.call(v.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,K),"single",r)}(e,a);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var _=String(e);return g?N(e,_):_}if("bigint"==typeof e){var M=String(e)+"n";return g?N(e,M):M}var k=void 0===a.depth?5:a.depth;if(void 0===n&&(n=0),n>=k&&k>0&&"object"==typeof e)return F(e)?"[Array]":"[Object]";var C=function(t,e){var r;if(" "===t.indent)r=" ";else{if("number"!=typeof t.indent||!(t.indent>0))return null;r=E.call(Array(t.indent+1)," ")}return{base:r,prev:E.call(Array(e+1),r)}}(a,n);if(void 0===i)i=[];else if(V(i,e)>=0)return"[Circular]";function j(e,r,o){if(r&&(i=x.call(i)).push(r),o){var s={depth:a.depth};return q(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),t(e,s,n+1,i)}return t(e,a,n+1,i)}if("function"==typeof e&&!U(e)){var H=function(t){if(t.name)return t.name;var e=y.call(m.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),Q=Y(e,j);return"[Function"+(H?": "+H:" (anonymous)")+"]"+(Q.length>0?" { "+E.call(Q,", ")+" }":"")}if(z(e)){var X=O?v.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):R.call(e);return"object"!=typeof e||O?X:G(X)}if(e&&"object"==typeof e&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)){for(var tt,te="<"+w.call(String(e.nodeName)),tr=e.attributes||[],tn=0;tn<tr.length;tn++)te+=" "+tr[tn].name+"="+D((tt=tr[tn].value,v.call(String(tt),/"/g,""")),"double",a);return te+=">",e.childNodes&&e.childNodes.length&&(te+="..."),te+="</"+w.call(String(e.nodeName))+">"}if(F(e)){if(0===e.length)return"[]";var ti=Y(e,j);return C&&!function(t){for(var e=0;e<t.length;e++)if(V(t[e],"\n")>=0)return!1;return!0}(ti)?"["+J(ti,C)+"]":"[ "+E.call(ti,", ")+" ]"}if("[object Error]"===W(e)&&(!P||!("object"==typeof e&&P in e))){var to=Y(e,j);return"cause"in Error.prototype||!("cause"in e)||I.call(e,"cause")?0===to.length?"["+String(e)+"]":"{ ["+String(e)+"] "+E.call(to,", ")+" }":"{ ["+String(e)+"] "+E.call(S.call("[cause]: "+j(e.cause),to),", ")+" }"}if("object"==typeof e&&u){if(B&&"function"==typeof e[B]&&L)return L(e,{depth:k-n});if("symbol"!==u&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!o||!t||"object"!=typeof t)return!1;try{o.call(t);try{c.call(t)}catch(e){return!0}return t instanceof Map}catch(r){}return!1}(e)){var ts=[];return s.call(e,function(t,r){ts.push(j(r,e,!0)+" => "+j(t,e))}),$("Map",o.call(e),ts,C)}if(function(t){if(!c||!t||"object"!=typeof t)return!1;try{c.call(t);try{o.call(t)}catch(e){return!0}return t instanceof Set}catch(r){}return!1}(e)){var ta=[];return l.call(e,function(t){ta.push(j(t,e))}),$("Set",c.call(e),ta,C)}if(function(t){if(!h||!t||"object"!=typeof t)return!1;try{h.call(t,h);try{f.call(t,f)}catch(e){return!0}return t instanceof WeakMap}catch(r){}return!1}(e))return Z("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{h.call(t,h)}catch(e){return!0}return t instanceof WeakSet}catch(r){}return!1}(e))return Z("WeakSet");if(function(t){if(!d||!t||"object"!=typeof t)return!1;try{return d.call(t),!0}catch(e){}return!1}(e))return Z("WeakRef");if("[object Number]"===W(e)&&(!P||!("object"==typeof e&&P in e)))return G(j(Number(e)));if(function(t){if(!t||"object"!=typeof t||!A)return!1;try{return A.call(t),!0}catch(e){}return!1}(e))return G(j(A.call(e)));if("[object Boolean]"===W(e)&&(!P||!("object"==typeof e&&P in e)))return G(p.call(e));if("[object String]"===W(e)&&(!P||!("object"==typeof e&&P in e)))return G(j(String(e)));if(!("[object Date]"===W(e)&&(!P||!("object"==typeof e&&P in e)))&&!U(e)){var tu=Y(e,j),tc=T?T(e)===Object.prototype:e instanceof Object||e.constructor===Object,tl=e instanceof Object?"":"null prototype",th=!tc&&P&&Object(e)===e&&P in e?b.call(W(e),8,-1):tl?"Object":"",tf=(tc||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(th||tl?"["+E.call(S.call([],th||[],tl||[]),": ")+"] ":"");return 0===tu.length?tf+"{}":C?tf+"{"+J(tu,C)+"}":tf+"{ "+E.call(tu,", ")+" }"}return String(e)};var H=Object.prototype.hasOwnProperty||function(t){return t in this};function q(t,e){return H.call(t,e)}function W(t){return g.call(t)}function V(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return -1}function K(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+_.call(e.toString(16))}function G(t){return"Object("+t+")"}function Z(t){return t+" { ? }"}function $(t,e,r,n){return t+" ("+e+") {"+(n?J(r,n):E.call(r,", "))+"}"}function J(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+E.call(t,","+r)+"\n"+e.prev}function Y(t,e){var r,n=F(t),i=[];if(n){i.length=t.length;for(var o=0;o<t.length;o++)i[o]=q(t,o)?e(t[o],t):""}var s="function"==typeof C?C(t):[];if(O){r={};for(var a=0;a<s.length;a++)r["$"+s[a]]=s[a]}for(var u in t)q(t,u)&&(!n||String(Number(u))!==u||!(u<t.length))&&(O&&r["$"+u]instanceof Symbol||(M.call(/[^\w$]/,u)?
vendor: 6,156 bytes, line 26
26i.push(e(u,t)+": "+e(t[u],t)):i.push(u+": "+e(t[u],t))));if("function"==typeof C)for(var c=0;c<s.length;c++)I.call(t,s[c])&&i.push("["+e(s[c])+"]: "+e(t[s[c]],t));return i}},6400:function(t,e,r){"use strict";r.r(e),r.d(e,{Component:function(){return v},Fragment:function(){return b},cloneElement:function(){return L},createContext:function(){return j},createElement:function(){return g},createRef:function(){return y},h:function(){return g},hydrate:function(){return N},isValidElement:function(){return s},options:function(){return i},render:function(){return T},toChildArray:function(){return function t(e,r){return r=r||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some(function(e){t(e,r)}):r.push(e)),r}}});var n,i,o,s,a,u,c,l={},h=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(t,e){for(var r in e)t[r]=e[r];return t}function p(t){var e=t.parentNode;e&&e.removeChild(t)}function g(t,e,r){var i,o,s,a={};for(s in e)"key"==s?i=e[s]:"ref"==s?o=e[s]:a[s]=e[s];if(arguments.length>2&&(a.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===a[s]&&(a[s]=t.defaultProps[s]);return m(t,a,i,o,null)}function m(t,e,r,n,s){var a={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==s?++o:s};return null==s&&null!=i.vnode&&i.vnode(a),a}function y(){return{current:null}}function b(t){return t.children}function v(t,e){this.props=t,this.context=e}function _(t,e){if(null==e)return t.__?_(t.__,t.__.__k.indexOf(t)+1):null;for(var r;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e)return r.__e;return"function"==typeof t.type?_(t):null}function w(t){(!t.__d&&(t.__d=!0)&&a.push(t)&&!M.__r++||u!==i.debounceRendering)&&((u=i.debounceRendering)||setTimeout)(M)}function M(){for(var t;M.__r=a.length;)t=a.sort(function(t,e){return t.__v.__b-e.__v.__b}),a=[],t.some(function(t){var e,r,n,i,o;t.__d&&(i=(n=t.__v).__e,(o=t.__P)&&(e=[],(r=d({},n)).__v=n.__v+1,R(o,n,r,t.__n,void 0!==o.ownerSVGElement,null!=n.__h?[i]:null,e,null==i?_(n):i,n.__h),O(e,n),n.__e!=i&&function t(e){var r,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,r=0;r<e.__k.length;r++)if(null!=(n=e.__k[r])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return t(e)}}(n)))})}function S(t,e,r,n,o,s,a,u,c,f){var d,g,y,v,w,M,S,x=n&&n.__k||h,k=x.length;for(r.__k=[],d=0;d<e.length;d++)if(null!=(v=r.__k[d]=null==(v=e[d])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?m(null,v,null,null,v):Array.isArray(v)?m(b,{children:v},null,null,null):v.__b>0?m(v.type,v.props,v.key,v.ref?v.ref:null,v.__v):v)){if(v.__=r,v.__b=r.__b+1,null===(y=x[d])||y&&v.key==y.key&&v.type===y.type)x[d]=void 0;else for(g=0;g<k;g++){if((y=x[g])&&v.key==y.key&&v.type===y.type){x[g]=void 0;break}y=null}R(t,v,y=y||l,o,s,a,u,c,f),w=v.__e,(g=v.ref)&&y.ref!=g&&(S||(S=[]),y.ref&&S.push(y.ref,null,v),S.push(g,v.__c||w,v)),null!=w?(null==M&&(M=w),"function"==typeof v.type&&v.__k===y.__k?v.__d=c=function t(e,r,n){for(var i,o=e.__k,s=0;o&&s<o.length;s++)(i=o[s])&&(i.__=e,r="function"==typeof i.type?t(i,r,n):E(n,i,i,o,i.__e,r));return r}(v,c,t):c=E(t,v,y,x,w,c),"function"==typeof r.type&&(r.__d=c)):c&&y.__e==c&&c.parentNode!=t&&(c=_(y))}for(r.__e=M,d=k;d--;)null!=x[d]&&function t(e,r,n){var o,s;if(i.unmount&&i.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||P(o,null,r)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(a){i.__e(a,r)}o.base=o.__P=null,e.__c=void 0}if(o=e.__k)for(s=0;s<o.length;s++)o[s]&&t(o[s],r,n||"function"!=typeof e.type);n||null==e.__e||p(e.__e),e.__=e.__e=e.__d=void 0}(x[d],x[d]);if(S)for(d=0;d<S.length;d++)P(S[d],S[++d],S[++d])}function E(t,e,r,n,i,o){var s,a,u;if(void 0!==e.__d)s=e.__d,e.__d=void 0;else if(null==r||i!=o||null==i.parentNode)t:if(null==o||o.parentNode!==t)t.appendChild(i),s=null;else{for(a=o,u=0;(a=a.nextSibling)&&u<n.length;u+=1)if(a==i)break t;t.insertBefore(i,o),s=o}return void 0!==s?s:i.nextSibling}function x(t,e,r){"-"===e[0]?t.setProperty(e,r):t[e]=null==r?"":"number"!=typeof r||f.test(e)?r:r+"px"}function k(t,e,r,n,i){var o;t:if("style"===e){if("string"==typeof r)t.style.cssText=r;else{if("string"==typeof n&&(t.style.cssText=n=""),n)for(e in n)r&&e in r||x(t.style,e,"");if(r)for(e in r)n&&r[e]===n[e]||x(t.style,e,r[e])}}else if("o"===e[0]&&"n"===e[1])o=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase() in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=r,r?n||t.addEventListener(e,o?C:A,o):t.removeEventListener(e,o?C:A,o);else if("dangerouslySetInnerHTML"!==e){if(i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==r?"":r;break t}catch(s){}"function"==typeof r||(null==r||!1===r&&-1==e.indexOf("-")?t.removeAttribute(e):t.setAttribute(e,r))}}function A(t){this.l[t.type+!1](i.event?i.event(t):t)}function C(t){this.l[t.type+!0](i.event?i.event(t):t)}function R(t,e,r,o,s,a,u,c,h){var f,g,m,y,w,M,E,x,A,C,R,O,P,T,N,L=e.type;if(void 0!==e.constructor)return null;null!=r.__h&&(h=r.__h,c=e.__e=r.__e,e.__h=null,a=[c]),(f=i.__b)&&f(e);try{t:if("function"==typeof L){if(x=e.props,A=(f=L.contextType)&&o[f.__c],C=f?A?A.props.value:f.__:o,r.__c?E=(g=e.__c=r.__c).__=g.__E:("prototype"in L&&L.prototype.render?e.__c=g=new L(x,C):(e.__c=g=new v(x,C),g.constructor=L,g.render=I),A&&A.sub(g),g.props=x,g.state||(g.state={}),g.context=C,g.__n=o,m=g.__d=!0,g.__h=[],g._sb=[]),null==g.__s&&(g.__s=g.state),null!=L.getDerivedStateFromProps&&(g.__s==g.state&&(g.__s=d({},g.__s)),d(g.__s,L.getDerivedStateFromProps(x,g.__s))),y=g.props,w=g.state,m)null==L.getDerivedStateFromProps&&null!=g.componentWillMount&&g.componentWillMount(),null!=g.componentDidMount&&g.__h.push(g.componentDidMount);else{if(null==L.getDerivedStateFromProps&&x!==y&&null!=g.componentWillReceiveProps&&g.componentWillReceiveProps(x,C),!g.__e&&null!=g.shouldComponentUpdate&&!1===g.shouldComponentUpdate(x,g.__s,C)||e.__v===r.__v){for(g.props=x,g.state=g.__s,e.__v!==r.__v&&(g.__d=!1),g.__v=e,e.__e=r.__e,e.__k=r.__k,e.__k.forEac
26h(function(t){t&&(t.__=e)}),R=0;R<g._sb.length;R++)g.__h.push(g._sb[R]);g._sb=[],g.__h.length&&u.push(g);break t}null!=g.componentWillUpdate&&g.componentWillUpdate(x,g.__s,C),null!=g.componentDidUpdate&&g.__h.push(function(){g.componentDidUpdate(y,w,M)})}if(g.context=C,g.props=x,g.__v=e,g.__P=t,O=i.__r,P=0,"prototype"in L&&L.prototype.render){for(g.state=g.__s,g.__d=!1,O&&O(e),f=g.render(g.props,g.state,g.context),T=0;T<g._sb.length;T++)g.__h.push(g._sb[T]);g._sb=[]}else do g.__d=!1,O&&O(e),f=g.render(g.props,g.state,g.context),g.state=g.__s;while(g.__d&&++P<25);g.state=g.__s,null!=g.getChildContext&&(o=d(d({},o),g.getChildContext())),m||null==g.getSnapshotBeforeUpdate||(M=g.getSnapshotBeforeUpdate(y,w)),N=null!=f&&f.type===b&&null==f.key?f.props.children:f,S(t,Array.isArray(N)?N:[N],e,r,o,s,a,u,c,h),g.base=e.__e,e.__h=null,g.__h.length&&u.push(g),E&&(g.__E=g.__=null),g.__e=!1}else null==a&&e.__v===r.__v?(e.__k=r.__k,e.__e=r.__e):e.__e=function(t,e,r,i,o,s,a,u){var c,h,f,d=r.props,g=e.props,m=e.type,y=0;if("svg"===m&&(o=!0),null!=s){for(;y<s.length;y++)if((c=s[y])&&"setAttribute"in c==!!m&&(m?c.localName===m:3===c.nodeType)){t=c,s[y]=null;break}}if(null==t){if(null===m)return document.createTextNode(g);t=o?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,g.is&&g),s=null,u=!1}if(null===m)d===g||u&&t.data===g||(t.data=g);else{if(s=s&&n.call(t.childNodes),h=(d=r.props||l).dangerouslySetInnerHTML,f=g.dangerouslySetInnerHTML,!u){if(null!=s)for(d={},y=0;y<t.attributes.length;y++)d[t.attributes[y].name]=t.attributes[y].value;(f||h)&&(f&&(h&&f.__html==h.__html||f.__html===t.innerHTML)||(t.innerHTML=f&&f.__html||""))}if(function(t,e,r,n,i){var o;for(o in r)"children"===o||"key"===o||o in e||k(t,o,null,r[o],n);for(o in e)i&&"function"!=typeof e[o]||"children"===o||"key"===o||"value"===o||"checked"===o||r[o]===e[o]||k(t,o,e[o],r[o],n)}(t,g,d,o,u),f)e.__k=[];else if(S(t,Array.isArray(y=e.props.children)?y:[y],e,r,i,o&&"foreignObject"!==m,s,a,s?s[0]:r.__k&&_(r,0),u),null!=s)for(y=s.length;y--;)null!=s[y]&&p(s[y]);u||("value"in g&&void 0!==(y=g.value)&&(y!==t.value||"progress"===m&&!y||"option"===m&&y!==d.value)&&k(t,"value",y,d.value,!1),"checked"in g&&void 0!==(y=g.checked)&&y!==t.checked&&k(t,"checked",y,d.checked,!1))}return t}(r.__e,e,r,o,s,a,u,h);(f=i.diffed)&&f(e)}catch(j){e.__v=null,(h||null!=a)&&(e.__e=c,e.__h=!!h,a[a.indexOf(c)]=null),i.__e(j,e,r)}}function O(t,e){i.__c&&i.__c(e,t),t.some(function(e){try{t=e.__h,e.__h=[],t.some(function(t){t.call(e)})}catch(r){i.__e(r,e.__v)}})}function P(t,e,r){try{"function"==typeof t?t(e):t.current=e}catch(n){i.__e(n,r)}}function I(t,e,r){return this.constructor(t,r)}function T(t,e,r){var o,s,a;i.__&&i.__(t,e),s=(o="function"==typeof r)?null:r&&r.__k||e.__k,a=[],R(e,t=(!o&&r||e).__k=g(b,null,[t]),s||l,l,void 0!==e.ownerSVGElement,!o&&r?[r]:s?null:e.firstChild?n.call(e.childNodes):null,a,!o&&r?r:s?s.__e:e.firstChild,o),O(a,t)}function N(t,e){T(t,e,N)}function L(t,e,r){var i,o,s,a=d({},t.props);for(s in e)"key"==s?i=e[s]:"ref"==s?o=e[s]:a[s]=e[s];return arguments.length>2&&(a.children=arguments.length>3?n.call(arguments,2):r),m(t.type,a,i||t.key,o||t.ref,null)}function j(t,e){var r={__c:e="__cC"+c++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var r,n;return this.getChildContext||(r=[],(n={})[e]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&r.some(w)},this.sub=function(t){r.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){r.splice(r.indexOf(t),1),e&&e.call(t)}}),t.children}};return r.Provider.__=r.Consumer.contextType=r}n=h.slice,i={__e:function(t,e,r,n){for(var i,o,s;e=e.__;)if((i=e.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(t)),s=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(t,n||{}),s=i.__d),s)return i.__E=i}catch(a){t=a}throw t}},o=0,s=function(t){return null!=t&&void 0===t.constructor},v.prototype.setState=function(t,e){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof t&&(t=t(d({},r),this.props)),t&&d(r,t),null!=t&&this.__v&&(e&&this._sb.push(e),w(this))},v.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),w(this))},v.prototype.render=b,a=[],M.__r=0,c=0},30396:function(t,e,r){"use strict";r.r(e),r.d(e,{useCallback:function(){return E},useContext:function(){return x},useDebugValue:function(){return k},useEffect:function(){return v},useErrorBoundary:function(){return A},useId:function(){return C},useImperativeHandle:function(){return M},useLayoutEffect:function(){return _},useMemo:function(){return S},useReducer:function(){return b},useRef:function(){return w},useState:function(){return y}});var n,i,o,s,a=r(6400),u=0,c=[],l=[],h=a.options.__b,f=a.options.__r,d=a.options.diffed,p=a.options.__c,g=a.options.unmount;function m(t,e){a.options.__h&&a.options.__h(i,t,u||e),u=0;var r=i.__H||(i.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({__V:l}),r.__[t]}function y(t){return u=1,b(L,t)}function b(t,e,r){var o=m(n++,2);if(o.t=t,!o.__c&&(o.__=[r?r(e):L(void 0,e),function(t){var e=o.__N?o.__N[0]:o.__[0],r=o.t(e,t);e!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=i,!i.u)){i.u=!0;var s=i.shouldComponentUpdate;i.shouldComponentUpdate=function(t,e,r){if(!o.__c.__H)return!0;var n=o.__c.__H.__.filter(function(t){return t.__c});if(n.every(function(t){return!t.__N}))return!s||s.call(this,t,e,r);var i=!1;
26return n.forEach(function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(i=!0)}}),!(!i&&o.__c.props===t)&&(!s||s.call(this,t,e,r))}}return o.__N||o.__}function v(t,e){var r=m(n++,3);!a.options.__s&&N(r.__H,e)&&(r.__=t,r.i=e,i.__H.__h.push(r))}function _(t,e){var r=m(n++,4);!a.options.__s&&N(r.__H,e)&&(r.__=t,r.i=e,i.__h.push(r))}function w(t){return u=5,S(function(){return{current:t}},[])}function M(t,e,r){u=6,_(function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0},null==r?r:r.concat(t))}function S(t,e){var r=m(n++,7);return N(r.__H,e)?(r.__V=t(),r.i=e,r.__h=t,r.__V):r.__}function E(t,e){return u=8,S(function(){return t},e)}function x(t){var e=i.context[t.__c],r=m(n++,9);return r.c=t,e?(null==r.__&&(r.__=!0,e.sub(i)),e.props.value):t.__}function k(t,e){a.options.useDebugValue&&a.options.useDebugValue(e?e(t):t)}function A(t){var e=m(n++,10),r=y();return e.__=t,i.componentDidCatch||(i.componentDidCatch=function(t,n){e.__&&e.__(t,n),r[1](t)}),[r[0],function(){r[1](void 0)}]}function C(){var t=m(n++,11);if(!t.__){for(var e=i.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var r=e.__m||(e.__m=[0,0]);t.__="P"+r[0]+"-"+r[1]++}return t.__}function R(){for(var t;t=c.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(I),t.__H.__h.forEach(T),t.__H.__h=[]}catch(e){t.__H.__h=[],a.options.__e(e,t.__v)}}a.options.__b=function(t){i=null,h&&h(t)},a.options.__r=function(t){f&&f(t),n=0;var e=(i=t.__c).__H;e&&(o===i?(e.__h=[],i.__h=[],e.__.forEach(function(t){t.__N&&(t.__=t.__N),t.__V=l,t.__N=t.i=void 0})):(e.__h.forEach(I),e.__h.forEach(T),e.__h=[])),o=i},a.options.diffed=function(t){d&&d(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==c.push(e)&&s===a.options.requestAnimationFrame||((s=a.options.requestAnimationFrame)||P)(R)),e.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.__V!==l&&(t.__=t.__V),t.i=void 0,t.__V=l})),o=i=null},a.options.__c=function(t,e){e.some(function(t){try{t.__h.forEach(I),t.__h=t.__h.filter(function(t){return!t.__||T(t)})}catch(r){e.some(function(t){t.__h&&(t.__h=[])}),e=[],a.options.__e(r,t.__v)}}),p&&p(t,e)},a.options.unmount=function(t){g&&g(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach(function(t){try{I(t)}catch(r){e=r}}),r.__H=void 0,e&&a.options.__e(e,r.__v))};var O="function"==typeof requestAnimationFrame;function P(t){var e,r=function(){clearTimeout(n),O&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,100);O&&(e=requestAnimationFrame(r))}function I(t){var e=i,r=t.__c;"function"==typeof r&&(t.__c=void 0,r()),i=e}function T(t){var e=i;t.__c=t.__(),i=e}function N(t,e){return!t||t.length!==e.length||e.some(function(e,r){return e!==t[r]})}function L(t,e){return"function"==typeof e?e(t):e}},92703:function(t,e,r){"use strict";var n=r(50414);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,r,i,o,s){if(s!==n){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i}
26;return r.PropTypes=r,r}},45697:function(t,e,r){t.exports=r(92703)()},50414:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},55798:function(t){"use strict";var e=String.prototype.replace,r=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports={default:n.RFC3986,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986}},80129:function(t,e,r){"use strict";var n=r(58261),i=r(55235),o=r(55798);t.exports={formats:o,parse:i,stringify:n}},55235:function(t,e,r){"use strict";var n=r(12769),i=Object.prototype.hasOwnProperty,o=Array.isArray,s={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},u=function(t,e){var r={},u=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,c=e.parameterLimit===1/0?void 0:e.parameterLimit,l=u.split(e.delimiter,c),h=-1,f=e.charset;if(e.charsetSentinel)for(d=0;d<l.length;++d)0===l[d].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[d]?f="utf-8":"utf8=%26%2310003%3B"===l[d]&&(f="iso-8859-1"),h=d,d=l.length);for(d=0;d<l.length;++d)if(d!==h){var d,p,g,m=l[d],y=m.indexOf("]="),b=-1===y?m.indexOf("="):y+1;-1===b?(p=e.decoder(m,s.decoder,f,"key"),g=e.strictNullHandling?null:""):(p=e.decoder(m.slice(0,b),s.decoder,f,"key"),g=n.maybeMap(a(m.slice(b+1),e),function(t){return e.decoder(t,s.decoder,f,"value")})),g&&e.interpretNumericEntities&&"iso-8859-1"===f&&(g=g.replace(/&#(\d+);/g,function(t,e){return String.fromCharCode(parseInt(e,10))})),m.indexOf("[]=")>-1&&(g=o(g)?[g]:g),i.call(r,p)?r[p]=n.combine(r[p],g):r[p]=g}return r},c=function(t,e,r,n){for(var i=n?e:a(e,r),o=t.length-1;o>=0;--o){var s,u=t[o];if("[]"===u&&r.parseArrays)s=[].concat(i);else{s=r.plainObjects?Object.create(null):{};var c="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,l=parseInt(c,10);r.parseArrays||""!==c?!isNaN(l)&&u!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(s=[])[l]=i:"__proto__"!==c&&(s[c]=i):s={0:i}}i=s}return i},l=function(t,e,r,n){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(o),u=a?o.slice(0,a.index):o,l=[];if(u){if(!r.plainObjects&&i.call(Object.prototype,u)&&!r.allowPrototypes)return;l.push(u)}for(var h=0;r.depth>0&&null!==(a=s.exec(o))&&h<r.depth;){if(h+=1,!r.plainObjects&&i.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(a[1])}return a&&l.push("["+o.slice(a.index)+"]"),c(l,e,r,n)}},h=function(t){if(!t)return s;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?s.charset:t.charset;return{allowDots:void 0===t.allowDots?s.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:s.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:s.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:s.comma,decoder:"function"==typeof t.decoder?t.decoder:s.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:s.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:s.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:s.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:s.strictNullHandling}};t.exports=function(t,e){var r=h(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var i="string"==typeof t?u(t,r):t,o=r.plainObjects?Object.create(null):{},s=Object.keys(i),a=0;a<s.length;++a){var c=s[a],f=l(c,i[c],r,"string"==typeof t);
26o=n.merge(o,f,r)}return!0===r.allowSparse?o:n.compact(o)}},58261:function(t,e,r){"use strict";var n=r(37478),i=r(12769),o=r(55798),s=Object.prototype.hasOwnProperty,a={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,c=String.prototype.split,l=Array.prototype.push,h=function(t,e){l.apply(t,u(e)?e:[e])},f=Date.prototype.toISOString,d=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(t){return f.call(t)},skipNulls:!1,strictNullHandling:!1},g={},m=function t(e,r,o,s,a,l,f,d,m,y,b,v,_,w,M,S){for(var E,x,k=e,A=S,C=0,R=!1;void 0!==(A=A.get(g))&&!R;){var O=A.get(e);if(C+=1,void 0!==O){if(O===C)throw RangeError("Cyclic object value");R=!0}void 0===A.get(g)&&(C=0)}if("function"==typeof d?k=d(r,k):k instanceof Date?k=b(k):"comma"===o&&u(k)&&(k=i.maybeMap(k,function(t){return t instanceof Date?b(t):t})),null===k){if(a)return f&&!w?f(r,p.encoder,M,"key",v):r;k=""}if("string"==typeof(E=k)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||i.isBuffer(k)){if(f){var P=w?r:f(r,p.encoder,M,"key",v);if("comma"===o&&w){for(var I=c.call(String(k),","),T="",N=0;N<I.length;++N)T+=(0===N?"":",")+_(f(I[N],p.encoder,M,"value",v));return[_(P)+(s&&u(k)&&1===I.length?"[]":"")+"="+T]}return[_(P)+"="+_(f(k,p.encoder,M,"value",v))]}return[_(r)+"="+_(String(k))]}var L=[];if(void 0===k)return L;if("comma"===o&&u(k))x=[{value:k.length>0?k.join(",")||null:void 0}];else if(u(d))x=d;else{var j=Object.keys(k);x=m?j.sort(m):j}for(var B=s&&u(k)&&1===k.length?r+"[]":r,D=0;D<x.length;++D){var F=x[D],U="object"==typeof F&&void 0!==F.value?F.value:k[F];if(!l||null!==U){var z=u(k)?"function"==typeof o?o(B,F):B:B+(y?"."+F:"["+F+"]");S.set(e,C);var H=n();H.set(g,S),h(L,t(U,z,o,s,a,l,f,d,m,y,b,v,_,w,M,H))}}return L},y=function(t){if(!t)return p;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw TypeError("Encoder has to be a function.");var e=t.charset||p.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==t.format){if(!s.call(o.formatters,t.format))throw TypeError("Unknown format option provided.");r=t.format}var n=o.formatters[r],i=p.filter;return("function"==typeof t.filter||u(t.filter))&&(i=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===t.allowDots?p.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:p.charsetSentinel,delimiter:void 0===t.delimiter?p.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:p.encode,encoder:"function"==typeof t.encoder?t.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:p.encodeValuesOnly,filter:i,format:r,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:p.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:p.strictNullHandling}};t.exports=function(t,e){var r,i=t,o=y(e);"function"==typeof o.filter?i=(0,o.filter)("",i):u(o.filter)&&(r=o.filter);var s=[];if("object"!=typeof i||null===i)return"";var c=a[e&&e.arrayFormat in a?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices"];if(e&&"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var l="comma"===c&&e&&e.commaRoundTrip;r||(r=Object.keys(i)),o.sort&&r.sort(o.sort);for(var f=n(),d=0;d<r.length;++d){var p=r[d];o.skipNulls&&null===i[p]||h(s,m(i[p],p,c,l,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,f))}var g=s.join(o.delimiter),b=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),g.length>0?b+g:""}},12769:function(t,e,r){"use strict";var n=r(55798),i=Object.prototype.hasOwnProperty,o=Array.isArray,s=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),a=function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(o(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);e.obj[e.prop]=n}}},u=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r},c=function t(e,r,n){if(!r)return e;if("object"!=typeof r){if(o(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var s=e;return(o(e)&&!o(r)&&(s=u(e,n)),o(e)&&o(r))?(r.forEach(function(r,o){if(i.call(e,o)){var s=e[o];s&&"object"==typeof s&&r&&"object"==typeof r?e[o]=t(s,r,n):e.push(r)}else e[o]=r}),e):Object.keys(r).reduce(function(e,o){var s=r[o];return i.call(e,o)?e[o]=t(e[o],s,n):e[o]=s,e},s)},l=function(t,e){return Object.keys(e).reduce(function(t,r){return t[r]=e[r],t},t)},h=function(t,e,r){var n=t.replace(/\+/g," ");
26if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(i){return n}},f=function(t,e,r,i,o){if(0===t.length)return t;var a=t;if("symbol"==typeof t?a=Symbol.prototype.toString.call(t):"string"!=typeof t&&(a=String(t)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"});for(var u="",c=0;c<a.length;++c){var l=a.charCodeAt(c);if(45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===n.RFC1738&&(40===l||41===l)){u+=a.charAt(c);continue}if(l<128){u+=s[l];continue}if(l<2048){u+=s[192|l>>6]+s[128|63&l];continue}if(l<55296||l>=57344){u+=s[224|l>>12]+s[128|l>>6&63]+s[128|63&l];continue}c+=1,u+=s[240|(l=65536+((1023&l)<<10|1023&a.charCodeAt(c)))>>18]+s[128|l>>12&63]+s[128|l>>6&63]+s[128|63&l]}return u},d=function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var i=e[n],o=i.obj[i.prop],s=Object.keys(o),u=0;u<s.length;++u){var c=s[u],l=o[c];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(e.push({obj:o,prop:c}),r.push(l))}return a(e),t},p=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},g=function(t){return!!t&&"object"==typeof t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},m=function(t,e){return[].concat(t,e)},y=function(t,e){if(o(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)};t.exports={arrayToObject:u,assign:l,combine:m,compact:d,decode:h,encode:f,isBuffer:g,isRegExp:p,maybeMap:y,merge:c}},17563:function(t,e,r){"use strict";let n=r(70610),i=r(44020),o=r(80500),s=t=>null==t;function a(t){if("string"!=typeof t||1!==t.length)throw TypeError("arrayFormatSeparator must be single character string")}function u(t,e){return e.encode?e.strict?n(t):encodeURIComponent(t):t}function c(t,e){return e.decode?i(t):t}function l(t){let e=t.indexOf("#");return -1!==e&&(t=t.slice(0,e)),t}function h(t){t=l(t);let e=t.indexOf("?");return -1===e?"":t.slice(e+1)}function f(t,e){return e.parseNumbers&&!Number.isNaN(Number(t))&&"string"==typeof t&&""!==t.trim()?t=Number(t):e.parseBooleans&&null!==t&&("true"===t.toLowerCase()||"false"===t.toLowerCase())&&(t="true"===t.toLowerCase()),t}function d(t,e){a((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);let r=function(t){let e;switch(t.arrayFormat){case"index":return(t,r,n)=>{if(e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),!e){n[t]=r;return}void 0===n[t]&&(n[t]={}),n[t][e[1]]=r};case"bracket":return(t,r,n)=>{if(e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),!e){n[t]=r;return}if(void 0===n[t]){n[t]=[r];return}n[t]=[].concat(n[t],r)};case"comma":case"separator":return(e,r,n)=>{let i="string"==typeof r&&r.split("").indexOf(t.arrayFormatSeparator)>-1,o=i?r.split(t.arrayFormatSeparator).map(e=>c(e,t)):null===r?r:c(r,t);n[e]=o};default:return(t,e,r)=>{if(void 0===r[t]){r[t]=e;return}r[t]=[].concat(r[t],e)}}}(e),n=Object.create(null);if("string"!=typeof t||!(t=t.trim().replace(/^[?#&]/,"")))return n;for(let i of t.split("&")){let[s,u]=o(e.decode?i.replace(/\+/g," "):i,"=");u=void 0===u?null:["comma","separator"].includes(e.arrayFormat)?u:c(u,e),r(c(s,e),u,n)}for(let l of Object.keys(n)){let h=n[l];if("object"==typeof h&&null!==h)for(let d of Object.keys(h))h[d]=f(h[d],e);else n[l]=f(h,e)}return!1===e.sort?n:(!0===e.sort?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce((t,e)=>{let r=n[e];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?t[e]=function t(e){return Array.isArray(e)?e.sort():"object"==typeof e?t(Object.keys(e)).sort((t,e)=>Number(t)-Number(e)).map(t=>e[t]):e}(r):t[e]=r,t},Object.create(null))}e.extract=h,e.parse=d,e.stringify=(t,e)=>{if(!t)return"";a((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);let r=r=>e.skipNull&&s(t[r])||e.skipEmptyString&&""===t[r],n=function(t){switch(t.arrayFormat){case"index":return e=>(r,n)=>{let i=r.length;return void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,[u(e,t),"[",i,"]"].join("")]:[...r,[u(e,t),"[",u(i,t),"]=",u(n,t)].join("")]};case"bracket":return e=>(r,n)=>void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,[u(e,t),"[]"].join("")]:[...r,[u(e,t),"[]=",u(n,t)].join("")];case"comma":case"separator":return e=>(r,n)=>null==n||0===n.length?r:0===r.length?[[u(e,t),"=",u(n,t)].join("")]:[[r,u(n,t)].join(t.arrayFormatSeparator)];default:return e=>(r,n)=>void 0===n||t.skipNull&&null===n||t.skipEmptyString&&""===n?r:null===n?[...r,u(e,t)]:[...r,[u(e,t),"=",u(n,t)].join("")]}}(e),i={};
26for(let o of Object.keys(t))r(o)||(i[o]=t[o]);let c=Object.keys(i);return!1!==e.sort&&c.sort(e.sort),c.map(r=>{let i=t[r];return void 0===i?"":null===i?u(r,e):Array.isArray(i)?i.reduce(n(r),[]).join("&"):u(r,e)+"="+u(i,e)}).filter(t=>t.length>0).join("&")},e.parseUrl=(t,e)=>{e=Object.assign({decode:!0},e);let[r,n]=o(t,"#");return Object.assign({url:r.split("?")[0]||"",query:d(h(t),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:c(n,e)}:{})},e.stringifyUrl=(t,r)=>{r=Object.assign({encode:!0,strict:!0},r);let n=l(t.url).split("?")[0]||"",i=e.extract(t.url),o=e.parse(i,{sort:!1}),s=Object.assign(o,t.query),a=e.stringify(s,r);a&&(a=`?${a}`);let c=function(t){let e="",r=t.indexOf("#");return -1!==r&&(e=t.slice(r)),e}(t.url);return t.fragmentIdentifier&&(c=`#${u(t.fragmentIdentifier,r)}`),`${n}${a}${c}`}},61798:function(t,e,r){"use strict";var n=r(34155),i=r(89509).Buffer,o=r.g.crypto||r.g.msCrypto;o&&o.getRandomValues?t.exports=function(t,e){if(t>4294967295)throw RangeError("requested too many random bytes");var r=i.allocUnsafe(t);if(t>0){if(t>65536)for(var s=0;s<t;s+=65536)o.getRandomValues(r.slice(s,s+65536));else o.getRandomValues(r)}return"function"==typeof e?n.nextTick(function(){e(null,r)}):r}:t.exports=function(){throw Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},50779:function(t,e,r){"use strict";r.d(e,{Z:function(){return f}});var n=r(73935),i=r(67294),o=r(45697),s=r.n(o),a=!!("undefined"!=typeof window&&window.document&&window.document.createElement),u=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),c=function(t){function e(){return!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:t}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),u(e,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return a?(this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),n.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),e}(i.Component);c.propTypes={children:s().node.isRequired,node:s().any};var l=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),h=function(t){function e(){return!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:t}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),l(e,[{key:"componentDidMount",value:function(){this.renderPortal()}},{key:"componentDidUpdate",value:function(t){this.renderPortal()}},{key:"componentWillUnmount",value:function(){n.unmountComponentAtNode(this.defaultNode||this.props.node),this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null,this.portal=null}},{key:"renderPortal",value:function(t){this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode));var e=this.props.children;"function"==typeof this.props.children.type&&(e=i.cloneElement(this.props.children)),this.portal=n.unstable_renderSubtreeIntoContainer(this,e,this.props.node||this.defaultNode)}},{key:"render",value:function(){return null}}]),e}(i.Component);h.propTypes={children:s().node.isRequired,node:s().any};var f=n.createPortal?c:h},79785:function(t,e,r){"use strict";var n=r(48764).Buffer,i=r(35717),o=r(3349),s=Array(16),a=[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],u=[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],c=[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],l=[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];function h(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function f(t,e){return t<<e|t>>>32-e}i(h,o),h.prototype._update=function(){for(var t,e,r,n,i,o,h,d,p,g,m,y,b,v,_,w,M,S,E,x,k,A,C,R,O,P,I,T,N,L,j,B,D,F,U,z,H,q,W,V,K,G,Z,$,J,Y,Q,X,tt,te,tr,tn,ti,to,ts,ta,tu,tc,tl,th,tf,td,tp,tg,tm,ty,tb,tv,t_,tw,tM,tS,tE=s,tx=0;tx<16;++tx)tE[tx]=this._block.readInt32LE(4*tx);for(var tk=0|this._a,tA=0|this._b,tC=0|this._c,tR=0|this._d,tO=0|this._e,tP=0|this._a,tI=0|this._b,tT=0|this._c,tN=0|this._d,tL=0|this._e,tj=0;tj<80;tj+=1)tj<16?(t=tk,e=tA,r=tC,n=tR,i=tO,tM=f(t+(e^r^n)+tE[a[tj]]+0|0,c[tj])+i|0,d=tP,p=tI,g=tT,m=tN,y=tL,tS=f(d+(p^(g|~m))+tE[u[tj]]+1352829926|0,l[tj])+y|0):tj<32?(_=tk,w=tA,M=tC,S=tR,E=tO,tM=f(_+(w&M|~w&S)+tE[a[tj]]+1518500249|0,c[tj])+E|0,A=tP,C=tI,R=tT,O=tN,P=tL,tS=f(A+(C&O|R&~O)+tE[u[tj]]+1548603684|0,l[tj])+P|0):tj<48?(N=tk,L=tA,j=tC,B=tR,D=tO,tM=f(N+((L|~j)^B)+tE[a[tj]]+1859775393|0,c[tj])+D|0,z=tP,H=tI,q=tT,W=tN,V=tL,tS=f(z+((H|~q)^W)+tE[u[tj]]+1836072691|0,l[tj])+V|0):tj<64?(Z=tk,$=tA,J=tC,Y=tR,Q=tO,tM=f(Z+($&Y|J&~Y)+tE[a[tj]]+2400959708|0,c[tj])+Q|0,te=tP,tr=tI,tn=tT,ti=tN,to=tL,tS=f(te+(tr&tn|~tr&ti)+tE[u[tj]]+2053994217|0,l[tj])+to|0):(tu=tk,tc=tA,tl=tC,th=tR,tf=tO,tM=f(tu+(tc^(tl|~th))+tE[a[tj]]+2840853838|0,c[tj])+tf|0,tg=tP,tm=tI,ty=tT,tb=tN,tv=tL,tS=f(tg+(tm^ty^tb)+tE[u[tj]]+0|0,l[tj])+tv|0),tk=tO,tO=tR,tR=f(tC,10),tC=tA,tA=tM,tP=tL,tL=tN,tN=f(tT,10),tT=tI,tI=tS;var tB=this._b+tC+tN|0;this._b=this._c+tR+tL|0,this._c=this._d+tO+tP|0,this._d=this._e+tk+tI|0,this._e=this._a+tA+tT|0,this._a=tB},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=n.alloc?n.alloc(20):new n(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t}
26,t.exports=h},51675:function(t,e,r){"use strict";var n=r(48764).Buffer,i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getLength=e.decode=e.encode=void 0;var o=i(r(13550));function s(t,e){if("0"===t[0]&&"0"===t[1])throw Error("invalid RLP: extra zeros");return parseInt(t,e)}function a(t,e){if(t<56)return n.from([t+e]);var r=c(t),i=c(e+55+r.length/2);return n.from(i+r,"hex")}function u(t){return"0x"===t.slice(0,2)}function c(t){if(t<0)throw Error("Invalid integer as argument, must be unsigned!");var e=t.toString(16);return e.length%2?"0"+e:e}function l(t){if(!n.isBuffer(t)){var e,r;if("string"==typeof t)return u(t)?n.from((e="string"!=typeof t?t:u(t)?t.slice(2):t).length%2?"0"+e:e,"hex"):n.from(t);if("number"==typeof t||"bigint"==typeof t)return t?(r=c(t),n.from(r,"hex")):n.from([]);if(null==t)return n.from([]);if(t instanceof Uint8Array)return n.from(t);else if(o.default.isBN(t))return n.from(t.toArray());else throw Error("invalid type")}return t}e.encode=function t(e){if(Array.isArray(e)){for(var r=[],i=0;i<e.length;i++)r.push(t(e[i]));var o=n.concat(r);return n.concat([a(o.length,192),o])}var s=l(e);return 1===s.length&&s[0]<128?s:n.concat([a(s.length,128),s])},e.decode=function(t,e){if(void 0===e&&(e=!1),!t||0===t.length)return n.from([]);var r=function t(e){var r,i,o,a,u,c=[],l=e[0];if(l<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(l<=183){if(r=l-127,o=128===l?n.from([]):e.slice(1,r),2===r&&o[0]<128)throw Error("invalid rlp encoding: byte must be less 0x80");return{data:o,remainder:e.slice(r)}}if(l<=191){if(i=l-182,e.length-1<i)throw Error("invalid RLP: not enough bytes for string length");if((r=s(e.slice(1,i).toString("hex"),16))<=55)throw Error("invalid RLP: expected string length to be greater than 55");if((o=e.slice(i,r+i)).length<r)throw Error("invalid RLP: not enough bytes for string");return{data:o,remainder:e.slice(r+i)}}if(l<=247){for(r=l-191,a=e.slice(1,r);a.length;)u=t(a),c.push(u.data),a=u.remainder;return{data:c,remainder:e.slice(r)}}i=l-246,r=s(e.slice(1,i).toString("hex"),16);var h=i+r;if(h>e.length)throw Error("invalid rlp: total length is larger than the data");if(0===(a=e.slice(i,h)).length)throw Error("invalid rlp, List has a invalid length");for(;a.length;)u=t(a),c.push(u.data),a=u.remainder;return{data:c,remainder:e.slice(h)}}(l(t));if(e)return r;if(0!==r.remainder.length)throw Error("invalid remainder");return r.data},e.getLength=function(t){if(!t||0===t.length)return n.from([]);var e=l(t),r=e[0];if(r<=127)return e.length;if(r<=183)return r-127;if(r<=191)return r-182;if(r<=247)return r-191;var i=r-246,o=s(e.slice(1,i).toString("hex"),16);return i+o}},67734:function(t,e,r){"use strict";r.r(e),r.d(e,{ArgumentOutOfRangeError:function(){return O.W},AsyncSubject:function(){return l.c},BehaviorSubject:function(){return u.X},ConnectableObservable:function(){return i.c},EMPTY:function(){return G.E},EmptyError:function(){return P.K},GroupedObservable:function(){return o.T},NEVER:function(){return ts},Notification:function(){return x.P},NotificationKind:function(){return x.W},ObjectUnsubscribedError:function(){return I.N},Observable:function(){return n.y},ReplaySubject:function(){return c.t},Scheduler:function(){return M.b},Subject:function(){return a.xQ},Subscriber:function(){return E.L},Subscription:function(){return S.w},TimeoutError:function(){return N.W},UnsubscriptionError:function(){return T.B},VirtualAction:function(){return w},VirtualTimeScheduler:function(){return _},animationFrame:function(){return v},animationFrameScheduler:function(){return b},asap:function(){return h.e},asapScheduler:function(){return h.E},async:function(){return f.P},asyncScheduler:function(){return f.z},bindCallback:function(){return function t(e,r,i){if(r){if(!(0,D.K)(r))return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return t(e,i).apply(void 0,n).pipe((0,L.U)(function(t){return(0,B.k)(t)?r.apply(void 0,t):r(t)}))};i=r}return function(){for(var t,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var s=this,a={context:s,subject:t,callbackFunc:e,scheduler:i};return new n.y(function(n){if(i)return i.schedule(F,0,{args:r,subscriber:n,params:a});if(!t){t=new l.c;var o=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.next(e.length<=1?e[0]:e),t.complete()};try{e.apply(s,r.concat([o]))}catch(u){(0,j._)(t)?t.error(u):console.warn(u)}}return t.subscribe(n)})}}},bindNodeCallback:function(){return function t(e,r,i){if(r){if(!(0,D.K)(r))return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return t(e,i).apply(void 0,n).pipe((0,L.U)(function(t){return(0,B.k)(t)?r.apply(void 0,t):r(t)}))};i=r}return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o={subject:void 0,args:t,callbackFunc:e,scheduler:i,context:this};return new n.y(function(r){var n=o.context,s=o.subject;if(i)return i.schedule(z,0,{params:o,subscriber:r,context:n});
26if(!s){s=o.subject=new l.c;var a=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t.shift();if(r){s.error(r);return}s.next(t.length<=1?t[0]:t),s.complete()};try{e.apply(n,t.concat([a]))}catch(u){(0,j._)(s)?s.error(u):console.warn(u)}}return s.subscribe(r)})}}},combineLatest:function(){return W.aj},concat:function(){return V.z},config:function(){return tE.v},defer:function(){return K.P},empty:function(){return G.c},forkJoin:function(){return J},from:function(){return $.D},fromEvent:function(){return function t(e,r,i,o){return((0,Q.m)(i)&&(o=i,i=void 0),o)?t(e,r,i).pipe((0,L.U)(function(t){return(0,B.k)(t)?o.apply(void 0,t):o(t)})):new n.y(function(t){(function t(e,r,n,i,o){if(e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener)e.addEventListener(r,n,o),s=function(){return e.removeEventListener(r,n,o)};else if(e&&"function"==typeof e.on&&"function"==typeof e.off)e.on(r,n),s=function(){return e.off(r,n)};else if(e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener)e.addListener(r,n),s=function(){return e.removeListener(r,n)};else if(e&&e.length)for(var s,a=0,u=e.length;a<u;a++)t(e[a],r,n,i,o);else throw TypeError("Invalid event target");i.add(s)})(e,r,function(e){arguments.length>1?t.next(Array.prototype.slice.call(arguments)):t.next(e)},t,i)})}},fromEventPattern:function(){return function t(e,r,i){return i?t(e,r).pipe((0,L.U)(function(t){return(0,B.k)(t)?i.apply(void 0,t):i(t)})):new n.y(function(t){var n,i=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t.next(1===e.length?e[0]:e)};try{n=e(i)}catch(o){t.error(o);return}if((0,Q.m)(r))return function(){return r(i,n)}})}},generate:function(){return X},identity:function(){return C.y},iif:function(){return te},interval:function(){return tn},isObservable:function(){return R},merge:function(){return to.T},never:function(){return ta},noop:function(){return A.Z},observable:function(){return s.L},of:function(){return tu.of},onErrorResumeNext:function(){return tc},pairs:function(){return tl},partition:function(){return tg},pipe:function(){return k.z},queue:function(){return d.c},queueScheduler:function(){return d.N},race:function(){return tm.S3},range:function(){return ty},scheduled:function(){return tS.x},throwError:function(){return tv._},timer:function(){return t_.H},using:function(){return tw},zip:function(){return tM.$R}});var n=r(61514),i=r(33140),o=r(11120),s=r(15050),a=r(70211),u=r(89233),c=r(12630),l=r(60364),h=r(81789),f=r(90964),d=r(76084),p=r(70655),g=r(48),m=function(t){function e(e,r){var n=t.call(this,e,r)||this;
26return n.scheduler=e,n.work=r,n}return p.__extends(e,t),e.prototype.requestAsyncId=function(e,r,n){return(void 0===n&&(n=0),null!==n&&n>0)?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))},e.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,n);0===e.actions.length&&(cancelAnimationFrame(r),e.scheduled=void 0)},e}(g.o),y=r(78399),b=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p.__extends(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do if(e=t.execute(t.state,t.delay))break;while(++n<i&&(t=r.shift()));if(this.active=!1,e){for(;++n<i&&(t=r.shift());)t.unsubscribe();throw e}},e}(y.v))(m),v=b,_=function(t){function e(e,r){void 0===e&&(e=w),void 0===r&&(r=Number.POSITIVE_INFINITY);var n=t.call(this,e,function(){return n.frame})||this;return n.maxFrames=r,n.frame=0,n.index=-1,n}return p.__extends(e,t),e.prototype.flush=function(){for(var t,e,r=this.actions,n=this.maxFrames;(e=r[0])&&e.delay<=n&&(r.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=r.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(y.v),w=function(t){function e(e,r,n){void 0===n&&(n=e.index+=1);var i=t.call(this,e,r)||this;
26return i.scheduler=e,i.work=r,i.index=n,i.active=!0,i.index=e.index=n,i}return p.__extends(e,t),e.prototype.schedule=function(r,n){if(void 0===n&&(n=0),!this.id)return t.prototype.schedule.call(this,r,n);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(r,n)},e.prototype.requestAsyncId=function(t,r,n){void 0===n&&(n=0),this.delay=t.frame+n;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,r){void 0===r&&(r=0)},e.prototype._execute=function(e,r){if(!0===this.active)return t.prototype._execute.call(this,e,r)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(g.o),M=r(38725),S=r(98760),E=r(10979),x=r(42632),k=r(62561),A=r(33306),C=r(43608);function R(t){return!!t&&(t instanceof n.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var O=r(76565),P=r(26929),I=r(41016),T=r(28782),N=r(81462),L=r(55709),j=r(93642),B=r(59026),D=r(17507);function F(t){var e=this,r=t.args,n=t.subscriber,i=t.params,o=i.callbackFunc,s=i.context,a=i.scheduler,u=i.subject;if(!u){u=i.subject=new l.c;var c=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=t.length<=1?t[0]:t;e.add(a.schedule(U,0,{value:n,subject:u}))};try{o.apply(s,r.concat([c]))}catch(h){u.error(h)}}this.add(u.subscribe(n))}function U(t){var e=t.value,r=t.subject;r.next(e),r.complete()}function z(t){var e=this,r=t.params,n=t.subscriber,i=t.context,o=r.callbackFunc,s=r.args,a=r.scheduler,u=r.subject;if(!u){u=r.subject=new l.c;var c=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=t.shift();if(n)e.add(a.schedule(q,0,{err:n,subject:u}));else{var i=t.length<=1?t[0]:t;e.add(a.schedule(H,0,{value:i,subject:u}))}};try{o.apply(i,s.concat([c]))}catch(h){this.add(a.schedule(q,0,{err:h,subject:u}))}}this.add(u.subscribe(n))}function H(t){var e=t.value,r=t.subject;r.next(e),r.complete()}function q(t){var e=t.err;t.subject.error(e)}var W=r(75142),V=r(49795),K=r(51410),G=r(5631),Z=r(92009),$=r(55760);function J(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){var r=t[0];if((0,B.k)(r))return Y(r,null);if((0,Z.K)(r)&&Object.getPrototypeOf(r)===Object.prototype){var n=Object.keys(r);return Y(n.map(function(t){return r[t]}),n)}}if("function"==typeof t[t.length-1]){var i=t.pop();return Y(t=1===t.length&&(0,B.k)(t[0])?t[0]:t,null).pipe((0,L.U)(function(t){return i.apply(void 0,t)}))}return Y(t,null)}function Y(t,e){return new n.y(function(r){var n=t.length;if(0===n){r.complete();return}for(var i=Array(n),o=0,s=0,a=function(a){var u=(0,$.D)(t[a]),c=!1;r.add(u.subscribe({next:function(t){!c&&(c=!0,s++),i[a]=t},error:function(t){return r.error(t)},complete:function(){++o!==n&&c||(s===n&&r.next(e?e.reduce(function(t,e,r){return t[e]=i[r],t},{}):i),r.complete())}}))},u=0;u<n;u++)a(u)})}var Q=r(14156);function X(t,e,r,i,o){if(1==arguments.length){var s,a;a=t.initialState,e=t.condition,r=t.iterate,s=t.resultSelector||C.y,o=t.scheduler}else void 0===i||(0,D.K)(i)?(a=t,s=C.y,o=i):(a=t,s=i);return new n.y(function(t){var n=a;if(o)return o.schedule(tt,0,{subscriber:t,iterate:r,condition:e,resultSelector:s,state:n});for(;;){if(e){var i=void 0;try{i=e(n)}catch(u){t.error(u);return}if(!i){t.complete();break}}var c=void 0;try{c=s(n)}catch(l){t.error(l);break}if(t.next(c),t.closed)break;try{n=r(n)}catch(h){t.error(h);break}}})}function tt(t){var e,r=t.subscriber,n=t.condition;if(!r.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(i){r.error(i);return}else t.needIterate=!0;if(n){var o=void 0;try{o=n(t.state)}catch(s){r.error(s);return}if(!o){r.complete();return}if(r.closed)return}try{e=t.resultSelector(t.state)}catch(a){r.error(a);return}if(!r.closed&&(r.next(e),!r.closed))return this.schedule(t)}}function te(t,e,r){return void 0===e&&(e=G.E),void 0===r&&(r=G.E),(0,K.P)(function(){return t()?e:r})}var tr=r(35812);function tn(t,e){return void 0===t&&(t=0),void 0===e&&(e=f.P),(!(0,tr.k)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=f.P),new n.y(function(r){return r.add(e.schedule(ti,t,{subscriber:r,counter:0,peri
26od:t})),r})}function ti(t){var e=t.subscriber,r=t.counter,n=t.period;e.next(r),this.schedule({subscriber:e,counter:r+1,period:n},n)}var to=r(14370),ts=new n.y(A.Z);function ta(){return ts}var tu=r(18170);function tc(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return G.E;var r=t[0],i=t.slice(1);return 1===t.length&&(0,B.k)(r)?tc.apply(void 0,r):new n.y(function(t){var e=function(){return t.add(tc.apply(void 0,i).subscribe(t))};return(0,$.D)(r).subscribe({next:function(e){t.next(e)},error:e,complete:e})})}function tl(t,e){return new n.y(e?function(r){var n=Object.keys(t),i=new S.w;return i.add(e.schedule(th,0,{keys:n,index:0,subscriber:r,subscription:i,obj:t})),i}:function(e){for(var r=Object.keys(t),n=0;n<r.length&&!e.closed;n++){var i=r[n];t.hasOwnProperty(i)&&e.next([i,t[i]])}e.complete()})}function th(t){var e=t.keys,r=t.index,n=t.subscriber,i=t.subscription,o=t.obj;if(!n.closed){if(r<e.length){var s=e[r];n.next([s,o[s]]),i.add(this.schedule({keys:e,index:r+1,subscriber:n,subscription:i,obj:o}))}else n.complete()}}var tf=r(18463),td=r(26730),tp=r(66008);function tg(t,e,r){return[(0,tp.h)(e,r)(new n.y((0,td.s)(t))),(0,tp.h)((0,tf.f)(e,r))(new n.y((0,td.s)(t)))]}var tm=r(38821);function ty(t,e,r){return void 0===t&&(t=0),new n.y(function(n){void 0===e&&(e=t,t=0);var i=0,o=t;if(r)return r.schedule(tb,0,{index:i,count:e,start:t,subscriber:n});for(;;){if(i++>=e){n.complete();break}if(n.next(o++),n.closed)break}})}function tb(t){var e=t.start,r=t.index,n=t.count,i=t.subscriber;if(r>=n){i.complete();return}i.next(e),i.closed||(t.index=r+1,t.start=e+1,this.schedule(t))}var tv=r(64944),t_=r(69604);function tw(t,e){return new n.y(function(r){try{o=t()}catch(n){r.error(n);return}try{s=e(o)}catch(i){r.error(i);return}var o,s,a=(s?(0,$.D)(s):G.E).subscribe(r);return function(){a.unsubscribe(),o&&o.unsubscribe()}})}var tM=r(25080),tS=r(68503),tE=r(30150)},60364:function(t,e,r){"use strict";r.d(e,{c:function(){return s}});var n=r(70655),i=r(70211),o=r(98760),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return n.__extends(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),o.w.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),o.w.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(i.xQ)},89233:function(t,e,r){"use strict";r.d(e,{X:function(){return s}});var n=r(70655),i=r(70211),o=r(41016),s=function(t){function e(e){var r=t.call(this)||this;return r._value=e,r}return n.__extends(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);return r&&!r.closed&&e.next(this._value),r},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(!this.closed)return this._value;throw new o.N},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.xQ)},42632:function(t,e,r){"use strict";r.d(e,{P:function(){return a},W:function(){return n}});var n,i=r(5631),o=r(18170),s=r(64944);n||(n={});var a=function(){function t(t,e,r){this.kind=t,this.value=e,this.error=r,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,r){var n=this.kind;switch(n){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}},t.prototype.accept=function(t,e,r){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,r)},t.prototype.toObservable=function(){var t=this.kind;switch(t){case"N":return(0,o.of)(this.value);case"E":return(0,s._)(this.error);case"C":return(0,i.c)()}throw Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},61514:function(t,e,r){"use strict";r.d(e,{y:function(){return l}});var n=r(93642),i=r(10979),o=r(23142),s=r(32174),a=r(15050),u=r(62561),c=r(30150),l=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,a=function(t,e,r){if(t){if(t instanceof i.L)return t;if(t[o.b])return t[o.b]()}return t||e||r?new i.L(t,e,r):new i.L(s.c)}(t,e,r);
26if(n?a.add(n.call(a,this.source)):a.add(this.source||c.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){c.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),(0,n._)(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=h(e))(function(e,n){var i;i=r.subscribe(function(e){try{t(e)}catch(r){n(r),i&&i.unsubscribe()}},n,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[a.L]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:(0,u.U)(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=h(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 h(t){if(t||(t=c.v.Promise||Promise),!t)throw Error("no Promise impl found");return t}},32174:function(t,e,r){"use strict";r.d(e,{c:function(){return o}});var n=r(30150),i=r(71644),o={closed:!0,next:function(t){},error:function(t){if(n.v.useDeprecatedSynchronousErrorHandling)throw t;(0,i.z)(t)},complete:function(){}}},62039:function(t,e,r){"use strict";r.d(e,{L:function(){return i}});var n=r(70655),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(r(10979).L)},12630:function(t,e,r){"use strict";r.d(e,{t:function(){return l}});var n=r(70655),i=r(70211),o=r(76084),s=r(98760),a=r(89276),u=r(41016),c=r(18253),l=function(t){function e(e,r,n){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this)||this;
vendor: 11,342 bytes, line 26
26return i.scheduler=n,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return n.__extends(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var r=this._events;r.push(e),r.length>this._bufferSize&&r.shift()}t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new h(this._getNow(),e)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,r=this._infiniteTimeWindow,n=r?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=n.length;if(this.closed)throw new u.N;if(this.isStopped||this.hasError?e=s.w.EMPTY:(this.observers.push(t),e=new c.W(this,t)),i&&t.add(t=new a.ht(t,i)),r)for(var l=0;l<o&&!t.closed;l++)t.next(n[l]);else for(var l=0;l<o&&!t.closed;l++)t.next(n[l].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||o.c).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,r=this._windowTime,n=this._events,i=n.length,o=0;o<i&&!(t-n[o].time<r);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&n.splice(0,o),n},e}(i.xQ),h=function(t,e){this.time=t,this.value=e}},38725:function(t,e,r){"use strict";r.d(e,{b:function(){return n}});var n=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}()},70211:function(t,e,r){"use strict";r.d(e,{Yc:function(){return l},xQ:function(){return h}});var n=r(70655),i=r(61514),o=r(10979),s=r(98760),a=r(41016),u=r(18253),c=r(23142),l=function(t){function e(e){var r=t.call(this,e)||this;return r.destination=e,r}return n.__extends(e,t),e}(o.L),h=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 n.__extends(e,t),e.prototype[c.b]=function(){return new l(this)},e.prototype.lift=function(t){var e=new f(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.N;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.N;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.N;this.isStopped=!0;for(var t=this.observers,e=t.length,r=t.slice(),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 a.N},e.prototype._subscribe=function(t){if(this.closed)throw new a.N;return this.hasError?(t.error(this.thrownError),s.w.EMPTY):this.isStopped?(t.complete(),s.w.EMPTY):(this.observers.push(t),new u.W(this,t))},e.prototype.asObservable=function(){var t=new i.y;return t.source=this,t},e.create=function(t,e){return new f(t,e)},e}(i.y),f=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return n.__extends(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){return this.source?this.source.subscribe(t):s.w.EMPTY},e}(h)},18253:function(t,e,r){"use strict";r.d(e,{W:function(){return i}});var n=r(70655),i=function(t){function e(e,r){var n=t.call(this)||this;return n.subject=e,n.subscriber=r,n.closed=!1,n}return n.__extends(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,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}(r(98760).w)},10979:function(t,e,r){"use strict";r.d(e,{L:function(){return l}});var n=r(70655),i=r(14156),o=r(32174),s=r(98760),a=r(23142),u=r(30150),c=r(71644),l=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=o.c;break;case 1:if(!r){s.destination=o.c;break}if("object"==typeof r){r instanceof e?(s.syncErrorThrowable=r.syncErrorThrowable,s.destination=r,r.add(s)):(s.syncErrorThrowable=!0,s.destination=new h(s,r));break}default:s.syncErrorThrowable=!0,s.destination=new h(s,r,n,i)}return s}return n.__extends(e,t),e.prototype[a.b]=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}(s.w),h=function(t){function e(e,r,n,s){var a,u=t.call(this)||this;u._parentSubscriber=e;var c=u;return(0,i.m)(r)?a=r:r&&(a=r.next,n=r.error,s=r.complete,r!==o.c&&(c=Object.create(r),(0,i.m)(c.unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=a,u._error=n,u._complete=s,u}return n.__extends(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;u.v.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,r=u.v.useDeprecatedSynchronousErrorHandling;if(this._error)r&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)r?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,c.z)(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;(0,c.z)(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)};u.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(r){if(this.unsubscribe(),u.v.useDeprecatedSynchronousErrorHandling)throw r;(0,c.z)(r)}},e.prototype.__tryOrSetError=function(t,e,r){if(!u.v.useDeprecatedSynchronousErrorHandling)throw Error("bad call");try{e.call(this._context,r)}catch(n){if(u.v.useDeprecatedSynchronousErrorHandling)return t.syncErrorValue=n,t.syncErrorThrown=!0,!0;return(0,c.z)(n),!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(l)},98760:function(t,e,r){"use strict";r.d(e,{w:function(){return a}});var n=r(59026),i=r(92009),o=r(14156),s=r(28782),a=function(){var t;function e(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return e.prototype.unsubscribe=function(){if(!this.closed){var t,r=this._parentOrParents,a=this._ctorUnsubscribe,c=this._unsubscribe,l=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof e)r.remove(this);else if(null!==r)for(var h=0;h<r.length;++h)r[h].remove(this);if((0,o.m)(c)){a&&(this._unsubscribe=void 0);try{c.call(this)}catch(f){t=f instanceof s.B?u(f.errors):[f]}}if((0,n.k)(l))for(var h=-1,d=l.length;++h<d;){var p=l[h];if((0,i.K)(p))try{p.unsubscribe()}catch(g){t=t||[],g instanceof s.B?t=t.concat(u(g.errors)):t.push(g)}}if(t)throw new s.B(t)}},e.prototype.add=function(t){var r=t;if(!t)return e.EMPTY;switch(typeof t){case"function":r=new e(t);case"object":if(r===this||r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if(!(r instanceof e)){var n=r;(r=new e)._subscriptions=[n]}break;default:throw Error("unrecognized teardown "+t+" added to Subscription.")}var i=r._parentOrParents;if(null===i)r._parentOrParents=this;else if(i instanceof e){if(i===this)return r;r._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return r;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[r]:o.push(r),r},e.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},e.EMPTY=((t=new e).closed=!0,t),e}();function u(t){return t.reduce(function(t,e){return t.concat(e instanceof s.B?e.errors:e)},[])}},30150:function(t,e,r){"use strict";r.d(e,{v:function(){return i}});var n=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(value){value&&Error().stack,n=value},get useDeprecatedSynchronousErrorHandling(){return n}}},17604:function(t,e,r){"use strict";r.d(e,{Ds:function(){return u},IY:function(){return a},ft:function(){return c}});var n=r(70655),i=r(10979),o=r(61514),s=r(26730),a=function(t){function e(e){var r=t.call(this)||this;return r.parent=e,r}return n.__extends(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}(i.L);!function(t){function e(e,r,n){var i=t.call(this)||this;return i.parent=e,i.outerValue=r,i.outerIndex=n,i}n.__extends(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()}}(i.L);var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(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}(i.L);function c(t,e){var r;if(!e.closed){if(t instanceof o.y)return t.subscribe(e);try{r=(0,s.s)(t)(e)}catch(n){e.error(n)}return r}}!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}n.__extends(e,t),e.prototype.notifyNext=function(t,e,r,n){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()}}(i.L)},33140:function(t,e,r){"use strict";r.d(e,{N:function(){return h},c:function(){return l}});
26var n,i=r(70655),o=r(70211),s=r(61514),a=r(10979),u=r(98760),c=r(3018),l=function(t){function e(e,r){var n=t.call(this)||this;return n.source=e,n.subjectFactory=r,n._refCount=0,n._isComplete=!1,n}return i.__extends(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return!t&&(this._isComplete=!1,(t=this._connection=new u.w).add(this.source.subscribe(new f(this.getSubject(),this))),t.closed&&(this._connection=null,t=u.w.EMPTY)),t},e.prototype.refCount=function(){return(0,c.x)()(this)},e}(s.y),h={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(n=l.prototype)._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}},f=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return i.__extends(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(o.Yc);!function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}i.__extends(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var e=t._refCount;if(e<=0||(t._refCount=e-1,e>1)){this.connection=null;return}var r=this.connection,n=t._connection;this.connection=null,n&&(!r||n===r)&&n.unsubscribe()}}(a.L)},75142:function(t,e,r){"use strict";r.d(e,{Ms:function(){return h},aj:function(){return l}});var n=r(70655),i=r(17507),o=r(59026),s=r(62039),a=r(61714),u=r(43375),c={};function l(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=void 0,n=void 0;return(0,i.K)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&(0,o.k)(t[0])&&(t=t[0]),(0,u.n)(t,n).lift(new h(r))}var h=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.resultSelector))},t}(),f=function(t){function e(e,r){var n=t.call(this,e)||this;return n.resultSelector=r,n.active=0,n.values=[],n.observables=[],n}return n.__extends(e,t),e.prototype._next=function(t){this.values.push(c),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var r=0;r<e;r++){var n=t[r];this.add((0,a.D)(this,n,void 0,r))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r){var n=this.values,i=n[r],o=this.toRespond?i===c?--this.toRespond:this.toRespond:0;n[r]=e,0===o&&(this.resultSelector?this._tryResultSelector(n):this.destination.next(n.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(r){this.destination.error(r);return}this.destination.next(e)},e}(s.L)},49795:function(t,e,r){"use strict";r.d(e,{z:function(){return o}});var n=r(18170),i=r(52257);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,i.u)()(n.of.apply(void 0,t))}},51410:function(t,e,r){"use strict";r.d(e,{P:function(){return s}});var n=r(61514),i=r(55760),o=r(5631);function s(t){return new n.y(function(e){var r;try{r=t()}catch(n){e.error(n);return}return(r?(0,i.D)(r):(0,o.c)()).subscribe(e)})}},5631:function(t,e,r){"use strict";r.d(e,{E:function(){return i},c:function(){return o}});var n=r(61514),i=new n.y(function(t){return t.complete()});function o(t){return t?new n.y(function(e){return t.schedule(function(){return e.complete()})}):i}},55760:function(t,e,r){"use strict";r.d(e,{D:function(){return s}});var n=r(61514),i=r(26730),o=r(68503);function s(t,e){return e?(0,o.x)(t,e):t instanceof n.y?t:new n.y((0,i.s)(t))}},43375:function(t,e,r){"use strict";r.d(e,{n:function(){return s}});var n=r(61514),i=r(56900),o=r(53109);function s(t,e){return e?(0,o.r)(t,e):new n.y((0,i.V)(t))}},14370:function(t,e,r){"use strict";r.d(e,{T:function(){return a}});var n=r(61514),i=r(17507),o=r(22556),s=r(43375);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Number.POSITIVE_INFINITY,a=null,u=t[t.length-1];return((0,i.K)(u)?(a=t.pop(),t.length>
261&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof u&&(r=t.pop()),null===a&&1===t.length&&t[0]instanceof n.y)?t[0]:(0,o.J)(r)((0,s.n)(t,a))}},18170:function(t,e,r){"use strict";r.d(e,{of:function(){return s}});var n=r(17507),i=r(43375),o=r(53109);function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return(0,n.K)(r)?(t.pop(),(0,o.r)(t,r)):(0,i.n)(t)}},38821:function(t,e,r){"use strict";r.d(e,{S3:function(){return u}});var n=r(70655),i=r(59026),o=r(43375),s=r(62039),a=r(61714);function u(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){if(!(0,i.k)(t[0]))return t[0];t=t[0]}return(0,o.n)(t,void 0).lift(new c)}var c=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new l(t))},t}(),l=function(t){function e(e){var r=t.call(this,e)||this;return r.hasFirst=!1,r.observables=[],r.subscriptions=[],r}return n.__extends(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var r=0;r<e&&!this.hasFirst;r++){var n=t[r],i=(0,a.D)(this,n,void 0,r);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},e.prototype.notifyNext=function(t,e,r){if(!this.hasFirst){this.hasFirst=!0;for(var n=0;n<this.subscriptions.length;n++)if(n!==r){var i=this.subscriptions[n];i.unsubscribe(),this.remove(i)}this.subscriptions=null}this.destination.next(e)},e}(s.L)},64944:function(t,e,r){"use strict";r.d(e,{_:function(){return i}});var n=r(61514);function i(t,e){return new n.y(e?function(r){return e.schedule(o,0,{error:t,subscriber:r})}:function(e){return e.error(t)})}function o(t){var e=t.error;t.subscriber.error(e)}},69604:function(t,e,r){"use strict";r.d(e,{H:function(){return a}});var n=r(61514),i=r(90964),o=r(35812),s=r(17507);function a(t,e,r){void 0===t&&(t=0);var a=-1;return(0,o.k)(e)?a=1>Number(e)&&1||Number(e):(0,s.K)(e)&&(r=e),(0,s.K)(r)||(r=i.P),new n.y(function(e){var n=(0,o.k)(t)?t:+t-r.now();return r.schedule(u,n,{index:0,period:a,subscriber:e})})}function u(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)}}},25080:function(t,e,r){"use strict";r.d(e,{$R:function(){return c},mx:function(){return l}});var n=r(70655),i=r(43375),o=r(59026),s=r(10979),a=r(999),u=r(17604);function c(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return"function"==typeof r&&t.pop(),(0,i.n)(t,void 0).lift(new l(r))}var l=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.resultSelector))},t}(),h=function(t){function e(e,r,n){void 0===n&&(n=Object.create(null));var i=t.call(this,e)||this;return i.resultSelector=r,i.iterators=[],i.active=0,i.resultSelector="function"==typeof r?r:void 0,i}return n.__extends(e,t),e.prototype._next=function(t){var e=this.iterators;(0,o.k)(t)?e.push(new d(t)):"function"==typeof t[a.hZ]?e.push(new f(t[a.hZ]())):e.push(new p(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0===e){this.destination.complete();return}this.active=e;for(var r=0;r<e;r++){var n=t[r];n.stillUnsubscribed?this.destination.add(n.subscribe()):this.active--}},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,r=this.destination,n=0;n<e;n++){var i=t[n];if("function"==typeof i.hasValue&&!i.hasValue())return}for(var o=!1,s=[],n=0;n<e;n++){var i=t[n],a=i.next();if(i.hasCompleted()&&(o=!0),a.done){r.complete();return}s.push(a.value)}this.resultSelector?this._tryresultSelector(s):r.next(s),o&&r.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(r){this.destination.error(r);return}this.destination.next(e)},e}(s.L),f=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return Boolean(t&&t.done)},t}(),d=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[a.hZ]=function(){return this},t.prototype.next=function(t){var e=this.index++,r=this.array;return e<this.length?{value:r[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),p=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.parent=r,i.observable=n,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return n.__extends(e,t),e.prototype[a.hZ]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return(0,u.ft)(this.observable,new u.IY(this))},e}(u.Ds)},52257:function(t,e,r){"use strict";r.d(e,{u:function(){return i}});var n=r(22556);function i(){return(0,n.J)(1)}},66008:function(t,e,r){"use strict";r.d(e,{h:function(){return o}});var n=r(70655),i=r(10979);function o(t,e){return function(r){return r.lift(new s(t,e))}}var s=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))},t}(),a=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 n.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(r){this.destination.error(r);return}e&&this.destination.next(t)},e}(i.L)},11120:function(t,e,r){"use strict";r.d(e,{T:function(){return f},v:function(){return u}});
26var n=r(70655),i=r(10979),o=r(98760),s=r(61514),a=r(70211);function u(t,e,r,n){return function(i){return i.lift(new c(t,e,r,n))}}var c=function(){function t(t,e,r,n){this.keySelector=t,this.elementSelector=e,this.durationSelector=r,this.subjectSelector=n}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),l=function(t){function e(e,r,n,i,o){var s=t.call(this,e)||this;return s.keySelector=r,s.elementSelector=n,s.durationSelector=i,s.subjectSelector=o,s.groups=null,s.attemptedToUnsubscribe=!1,s.count=0,s}return n.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(r){this.error(r);return}this._group(t,e)},e.prototype._group=function(t,e){var r,n=this.groups;n||(n=this.groups=new Map);var i=n.get(e);if(this.elementSelector)try{r=this.elementSelector(t)}catch(o){this.error(o)}else r=t;if(!i){i=this.subjectSelector?this.subjectSelector():new a.xQ,n.set(e,i);var s=new f(e,i,this);if(this.destination.next(s),this.durationSelector){var u=void 0;
26try{u=this.durationSelector(new f(e,i))}catch(c){this.error(c);return}this.add(u.subscribe(new h(e,i,this)))}}i.closed||i.next(r)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach(function(e,r){e.error(t)}),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(t,e){t.complete()}),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(i.L),h=function(t){function e(e,r,n){var i=t.call(this,r)||this;return i.key=e,i.group=r,i.parent=n,i}return n.__extends(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(i.L),f=function(t){function e(e,r,n){var i=t.call(this)||this;return i.key=e,i.groupSubject=r,i.refCountSubscription=n,i}return n.__extends(e,t),e.prototype._subscribe=function(t){var e=new o.w,r=this.refCountSubscription,n=this.groupSubject;return r&&!r.closed&&e.add(new d(r)),e.add(n.subscribe(t)),e},e}(s.y),d=function(t){function e(e){var r=t.call(this)||this;return r.parent=e,e.count++,r}return n.__extends(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(o.w)},55709:function(t,e,r){"use strict";r.d(e,{U:function(){return o}});var n=r(70655),i=r(10979);function o(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 s(t,e))}}var s=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.thisArg))},t}(),a=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 n.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(r){this.destination.error(r);return}this.destination.next(e)},e}(i.L)},22556:function(t,e,r){"use strict";r.d(e,{J:function(){return o}});var n=r(47746),i=r(43608);function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),(0,n.zg)(i.y,t)}},47746:function(t,e,r){"use strict";r.d(e,{VS:function(){return l},zg:function(){return a}});var n=r(70655),i=r(55709),o=r(55760),s=r(17604);function a(t,e,r){return(void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof e)?function(n){return n.pipe(a(function(r,n){return(0,o.D)(t(r,n)).pipe((0,i.U)(function(t,i){return e(r,t,n,i)}))},r))}:("number"==typeof e&&(r=e),function(e){return e.lift(new u(t,r))})}var u=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.project,this.concurrent))},t}(),c=function(t){function e(e,r,n){void 0===n&&(n=Number.POSITIVE_INFINITY);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 n.__extends(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,r=this.index++;try{e=this.project(t,r)}catch(n){this.destination.error(n);return}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new s.IY(this),r=this.destination;r.add(e);var n=(0,s.ft)(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}(s.Ds),l=a},89276:function(t,e,r){"use strict";r.d(e,{QV:function(){return s},ht:function(){return u}});var n=r(70655),i=r(10979),o=r(42632);function s(t,e){return void 0===e&&(e=0),function(r){return r.lift(new a(t,e))}}var a=function(){function t(t,e){void 0===e&&(e=0),this.scheduler
26=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.scheduler,this.delay))},t}(),u=function(t){function e(e,r,n){void 0===n&&(n=0);var i=t.call(this,e)||this;return i.scheduler=r,i.delay=n,i}return n.__extends(e,t),e.dispatch=function(t){var e=t.notification,r=t.destination;e.observe(r),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new c(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(o.P.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(o.P.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(o.P.createComplete()),this.unsubscribe()},e}(i.L),c=function(t,e){this.notification=t,this.destination=e}},3018:function(t,e,r){"use strict";r.d(e,{x:function(){return o}});var n=r(70655),i=r(10979);function o(){return function(t){return t.lift(new s(t))}}var s=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var r=this.connectable;r._refCount++;var n=new a(t,r),i=e.subscribe(n);return n.closed||(n.connection=r.connect()),i},t}(),a=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return n.__extends(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var e=t._refCount;if(e<=0||(t._refCount=e-1,e>1)){this.connection=null;return}var r=this.connection,n=t._connection;this.connection=null,n&&(!r||n===r)&&n.unsubscribe()},e}(i.L)},53109:function(t,e,r){"use strict";r.d(e,{r:function(){return o}});var n=r(61514),i=r(98760);function o(t,e){return new n.y(function(r){var n=new i.w,o=0;return n.add(e.schedule(function(){if(o===t.length){r.complete();return}r.next(t[o++]),r.closed||n.add(this.schedule())})),n})}},68503:function(t,e,r){"use strict";r.d(e,{x:function(){return l}});var n=r(61514),i=r(98760),o=r(15050),s=r(53109),a=r(999),u=r(70336),c=r(39217);function l(t,e){if(null!=t){if(t&&"function"==typeof t[o.L])return new n.y(function(r){var n=new i.w;return n.add(e.schedule(function(){var i=t[o.L]();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});if((0,u.t)(t))return new n.y(function(r){var n=new i.w;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});if((0,c.z)(t))return(0,s.r)(t,e);if(t&&"function"==typeof t[a.hZ]||"string"==typeof t)return function(t,e){if(!t)throw Error("Iterable cannot be null");return new n.y(function(r){var n,o=new i.w;return o.add(function(){n&&"function"==typeof n.return&&n.return()}),o.add(e.schedule(function(){n=t[a.hZ](),o.add(e.schedule(function(){if(!r.closed){try{var t,e,i=n.next();t=i.value,e=i.done}catch(o){r.error(o);return}e?r.complete():(r.next(t),this.schedule())}}))})),o})}(t,e)}throw TypeError((null!==t&&typeof t||t)+" is not observable")}},48:function(t,e,r){"use strict";r.d(e,{o:function(){return i}});var n=r(70655),i=function(t){function e(e,r){var n=t.call(this,e,r)||this;
26return n.scheduler=e,n.work=r,n.pending=!1,n}return n.__extends(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,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,n=void 0;try{this.work(t)}catch(i){r=!0,n=!!i&&i||Error(i)}if(r)return this.unsubscribe(),n},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,r=e.actions,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}(function(t){function e(e,r){return t.call(this)||this}return n.__extends(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(r(98760).w))},78399:function(t,e,r){"use strict";r.d(e,{v:function(){return o}});var n=r(70655),i=r(38725),o=function(t){function e(r,n){void 0===n&&(n=i.b.now);var o=t.call(this,r,function(){return e.delegate&&e.delegate!==o?e.delegate.now():n()})||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return n.__extends(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,r=this.actions;if(this.active){r.push(t);return}this.active=!0;do if(e=t.execute(t.state,t.delay))break;while(t=r.shift());if(this.active=!1,e){for(;t=r.shift();)t.unsubscribe();throw e}},e}(i.b)},81789:function(t,e,r){"use strict";r.d(e,{e:function(){return h},E:function(){return l}});var n=r(70655),i=1,o=Promise.resolve(),s={};function a(t){return t in s&&(delete s[t],!0)}var u={setImmediate:function(t){var e=i++;return s[e]=!0,o.then(function(){return a(e)&&t()}),e},clearImmediate:function(t){a(t)}},c=function(t){function e(e,r){var n=t.call(this,e,r)||this;
26return n.scheduler=e,n.work=r,n}return n.__extends(e,t),e.prototype.requestAsyncId=function(e,r,n){return(void 0===n&&(n=0),null!==n&&n>0)?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=u.setImmediate(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,n);0===e.actions.length&&(u.clearImmediate(r),e.scheduled=void 0)},e}(r(48).o),l=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do if(e=t.execute(t.state,t.delay))break;while(++n<i&&(t=r.shift()));if(this.active=!1,e){for(;++n<i&&(t=r.shift());)t.unsubscribe();throw e}},e}(r(78399).v))(c),h=l},90964:function(t,e,r){"use strict";r.d(e,{P:function(){return o},z:function(){return i}});var n=r(48),i=new(r(78399)).v(n.o),o=i},76084:function(t,e,r){"use strict";r.d(e,{c:function(){return s},N:function(){return o}});var n=r(70655),i=function(t){function e(e,r){var n=t.call(this,e,r)||this;
26return n.scheduler=e,n.work=r,n}return n.__extends(e,t),e.prototype.schedule=function(e,r){return(void 0===r&&(r=0),r>0)?t.prototype.schedule.call(this,e,r):(this.delay=r,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,r){return r>0||this.closed?t.prototype.execute.call(this,e,r):this._execute(e,r)},e.prototype.requestAsyncId=function(e,r,n){return(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)?t.prototype.requestAsyncId.call(this,e,r,n):e.flush(this)},e}(r(48).o),o=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e}(r(78399).v))(i),s=o},999:function(t,e,r){"use strict";r.d(e,{hZ:function(){return n}});var n="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},15050:function(t,e,r){"use strict";r.d(e,{L:function(){return n}});var n="function"==typeof Symbol&&Symbol.observable||"@@observable"},23142:function(t,e,r){"use strict";r.d(e,{b:function(){return n}});var n="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},76565:function(t,e,r){"use strict";r.d(e,{W:function(){return n}});var n=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}()},26929:function(t,e,r){"use strict";r.d(e,{K:function(){return n}});var n=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}()},41016:function(t,e,r){"use strict";r.d(e,{N:function(){return n}});var n=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},81462:function(t,e,r){"use strict";r.d(e,{W:function(){return n}});var n=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}()},28782:function(t,e,r){"use strict";r.d(e,{B:function(){return n}});var n=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}()},93642:function(t,e,r){"use strict";r.d(e,{_:function(){return i}});var n=r(10979);function i(t){for(;t;){var e=t,r=e.closed,i=e.destination,o=e.isStopped;if(r||o)return!1;t=i&&i instanceof n.L?i:null}return!0}},71644:function(t,e,r){"use strict";function n(t){setTimeout(function(){throw t},0)}r.d(e,{z:function(){return n}})},43608:function(t,e,r){"use strict";function n(t){return t}r.d(e,{y:function(){return n}})},59026:function(t,e,r){"use strict";r.d(e,{k:function(){return n}});var n=Array.isArray||function(t){return t&&"number"==typeof t.length}},39217:function(t,e,r){"use strict";r.d(e,{z:function(){return n}});var n=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},14156:function(t,e,r){"use strict";function n(t){return"function"==typeof t}r.d(e,{m:function(){return n}})},35812:function(t,e,r){"use strict";r.d(e,{k:function(){return i}});var n=r(59026);function i(t){return!(0,n.k)(t)&&t-parseFloat(t)+1>=0}},92009:function(t,e,r){"use strict";function n(t){return null!==t&&"object"==typeof t}r.d(e,{K:function(){return n}})},70336:function(t,e,r){"use strict";function n(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}r.d(e,{t:function(){return n}})},17507:function(t,e,r){"use strict";function n(t){return t&&"function"==typeof t.schedule}r.d(e,{K:function(){return n}})},33306:function(t,e,r){"use strict";function n(){}r.d(e,{Z:function(){return n}})},18463:function(t,e,r){"use strict";function n(t,e){function r(){return!r.pred.apply(r.thisArg,arguments)}return r.pred=t,r.thisArg=e,r}r.d(e,{f:function(){return n}})},62561:function(t,e,r){"use strict";r.d(e,{U:function(){return o},z:function(){return i}});var n=r(43608);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(t)}function o(t){return 0===t.length?n.y:1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}}},26730:function(t,e,r){"use strict";r.d(e,{s:function(){return l}});var n=r(56900),i=r(71644),o=r(999),s=r(15050),a=r(39217),u=r(70336),c=r(92009),l=function(t){if(t&&"function"==typeof t[s.L])return function(e){var r=t[s.L]();if("function"==typeof r.subscribe)return r.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")};if((0,a.z)(t))return(0,n.V)(t);if((0,u.t)(t))return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,i.z),e};if(t&&"function"==typeof t[o.hZ])return function(e){for(var r=t[o.hZ]();;){var n=void 0;try{n=r.next()}catch(i){return e.error(i),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};
26throw TypeError("You provided "+((0,c.K)(t)?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},56900:function(t,e,r){"use strict";r.d(e,{V:function(){return n}});var n=function(t){return function(e){for(var r=0,n=t.length;r<n&&!e.closed;r++)e.next(t[r]);e.complete()}}},61714:function(t,e,r){"use strict";r.d(e,{D:function(){return a}});var n=r(70655),i=function(t){function e(e,r,n){var i=t.call(this)||this;return i.parent=e,i.outerValue=r,i.outerIndex=n,i.index=0,i}return n.__extends(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(r(10979).L),o=r(26730),s=r(61514);function a(t,e,r,n,a){return(void 0===a&&(a=new i(t,r,n)),a.closed)?void 0:e instanceof s.y?e.subscribe(a):(0,o.s)(e)(a)}},16473:function(t,e,r){"use strict";r.r(e),r.d(e,{audit:function(){return o},auditTime:function(){return l},buffer:function(){return h},bufferCount:function(){return g},bufferTime:function(){return _},bufferToggle:function(){return O},bufferWhen:function(){return T},catchError:function(){return j},combineAll:function(){return U},combineLatest:function(){return q},concat:function(){return V},concatAll:function(){return K.u},concatMap:function(){return Z},concatMapTo:function(){return $},count:function(){return J},debounce:function(){return X},debounceTime:function(){return tr},defaultIfEmpty:function(){return ts},delay:function(){return th},delayWhen:function(){return tm},dematerialize:function(){return tw},distinct:function(){return tE},distinctUntilChanged:function(){return tA},distinctUntilKeyChanged:function(){return tO},elementAt:function(){return tH},endWith:function(){return tW},every:function(){return tV},exhaust:function(){return tZ},exhaustMap:function(){return function t(e,r){return r?function(n){return n.pipe(t(function(t,n){return(0,H.D)(e(t,n)).pipe((0,tY.U)(function(e,i){return r(t,e,n,i)}))}))}:function(t){return t.lift(new tQ(e))}}},expand:function(){return t0},filter:function(){return tI.h},finalize:function(){return t3},find:function(){return t5},findIndex:function(){return t9},first:function(){return ee},flatMap:function(){return G.VS},groupBy:function(){return er.v},ignoreElements:function(){return en},isEmpty:function(){return es},last:function(){return ef},map:function(){return tY.U},mapTo:function(){return ed},materialize:function(){return em},max:function(){return eE},merge:function(){return ek},mergeAll:function(){return eA.J},mergeMap:function(){return G.zg},mergeMapTo:function(){return eC},mergeScan:function(){return eR},min:function(){return eI},multicast:function(){return eN},observeOn:function(){return ej.QV},onErrorResumeNext:function(){return eB},pairwise:function(){return eU},partition:function(){return eW},pluck:function(){return eV},publish:function(){return eG},publishBehavior:function(){return e$},publishLast:function(){return eY},publishReplay:function(){return eX},race:function(){return e1},reduce:function(){return eS},refCount:function(){return ri.x},repeat:function(){return e2},repeatWhen:function(){return e4},retry:function(){return e7},retryWhen:function(){return re},sample:function(){return ro},sampleTime:function(){return ru},scan:function(){return ev},sequenceEqual:function(){return rf},share:function(){return ry},shareReplay:function(){return rb},single:function(){return rv},skip:function(){return rM},skipLast:function(){return rx},skipUntil:function(){return rC},skipWhile:function(){return rP},startWith:function(){return rN},subscribeOn:function(){return rD},switchAll:function(){return rq},switchMap:function(){return rU},switchMapTo:function(){return rW},take:function(){return tF},takeLast:function(){return ec},takeUntil:function(){return rV},takeWhile:function(){return rZ},tap:function(){return rX},throttle:function(){return r3},throttleTime:function(){return r5},throwIfEmpty:function(){return tN},timeInterval:function(){return ne},timeout:function(){return nu},timeoutWith:function(){return ni},timestamp:function(){return nc},toArray:function(){return nf},window:function(){return nd},windowCount:function(){return nm},windowTime:function(){return nv},windowToggle:function(){return nk},windowWhen:function(){return nR},withLatestFrom:function(){return nI},zip:function(){return nj},zipAll:function(){return nB}});var n=r(70655),i=r(17604);function o(t){return function(e){return e.lift(new s(t))}}var s=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.durationSelector))},t}(),a=function(t){function e(e,r){var n=t.call(this,e)||this;return n.durationSelector=r,n.hasValue=!1,n}return n.__extends(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=void 0;try{e=(0,this.durationSelector)(t)}catch(r){return this.destination.error(r)}var n=(0,i.ft)(e,new i.IY(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,r=this.throttled;r&&(this.remove(r),this.throttled=void 0,r.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(i.Ds),u=r(90964),c=r(69604);function l(t,e){return void 0===e&&(e=u.P),o(function(){return(0,c.H)(t,e)})}function h(t){return function(e){return e.lift(new f(t))}}var f=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new d(t,this.closingNotifier))},t}(),d=function(t){function e(e,r){var n=t.call(this,e)||this;return n.buffer=[],n.add((0,i.ft)(r,new i.IY(n))),n}return n.__extends(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},e}(i.Ds),p=r(10979);function g(t,e){return void 0===e&&(e=null),function(r){return r.lift(new m(t,e))}}var m=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,e&&t!==e?this.subscriberClass=b:this.subscriberClass=y}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),y=function(t){function e(e,r){var n=t.call(this,e)||this;return n.bufferSize=r,n.buffer=[],n}return n.__extends(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(p.L),b=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.bufferSize=r,i.startBufferEvery=n,i.buffers=[],i.count=0,i}return n.__extends(e,t),e.prototype._next=function(t){var e=this.bufferSize,r=this.startBufferEvery,n=this.buffers,i=this.count;this.count++,i%r==0&&n.push([]);for(var o=n.length;o--;){var s=n[o];s.push(t),s.length===e&&(n.splice(o,1),this.destination.next(s))}},e.prototype._complete=function(){for(var e=this.buffers,r=this.destination;e.length>0;){var n=e.shift();n.length>0&&r.next(n)}t.prototype._complete.call(this)},e}(p.L),v=r(17507);function _(t){var e=arguments.length,r=u.P;(0,v.K)(arguments[arguments.length-1])&&(r=arguments[arguments.length-1],e--);var n=null;e>=2&&(n=arguments[1]);var i=Number.POSITIVE_INFINITY;return e>=3&&(i=arguments[2]),function(e){return e.lift(new w(t,n,i,r))}}var w=function(){function t(t,e,r,n){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=r,this.scheduler
26=n}return t.prototype.call=function(t,e){return e.subscribe(new S(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),M=function(){this.buffer=[]},S=function(t){function e(e,r,n,i,o){var s=t.call(this,e)||this;s.bufferTimeSpan=r,s.bufferCreationInterval=n,s.maxBufferSize=i,s.scheduler=o,s.contexts=[];var a=s.openContext();return s.timespanOnly=null==n||n<0,s.timespanOnly?s.add(a.closeAction=o.schedule(E,r,{subscriber:s,context:a,bufferTimeSpan:r})):(s.add(a.closeAction=o.schedule(k,r,{subscriber:s,context:a})),s.add(o.schedule(x,n,{bufferTimeSpan:r,bufferCreationInterval:n,subscriber:s,scheduler:o}))),s}return n.__extends(e,t),e.prototype._next=function(t){for(var e,r=this.contexts,n=r.length,i=0;i<n;i++){var o=r[i],s=o.buffer;s.push(t),s.length==this.maxBufferSize&&(e=o)}e&&this.onBufferFull(e)},e.prototype._error=function(e){this.contexts.length=0,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts,r=this.destination;e.length>0;){var n=e.shift();r.next(n.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var r=this.bufferTimeSpan,n={subscriber:this,context:t,bufferTimeSpan:r};this.add(t.closeAction=this.scheduler.schedule(E,r,n))}},e.prototype.openContext=function(){var t=new M;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(p.L);function E(t){var e=t.subscriber,r=t.context;r&&e.closeContext(r),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function x(t){var e=t.bufferCreationInterval,r=t.bufferTimeSpan,n=t.subscriber,i=t.scheduler,o=n.openContext();n.closed||(n.add(o.closeAction=i.schedule(k,r,{subscriber:n,context:o})),this.schedule(t,e))}function k(t){var e=t.subscriber,r=t.context;e.closeContext(r)}var A=r(98760),C=r(61714),R=r(62039);function O(t,e){return function(r){return r.lift(new P(t,e))}}var P=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new I(t,this.openings,this.closingSelector))},t}(),I=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.closingSelector=n,i.contexts=[],i.add((0,C.D)(i,r)),i}return n.__extends(e,t),e.prototype._next=function(t){for(var e=this.contexts,r=e.length,n=0;n<r;n++)e[n].buffer.push(t)},e.prototype._error=function(e){for(var r=this.contexts;r.length>0;){var n=r.shift();n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var r=e.shift();this.destination.next(r.buffer),r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(r){this._error(r)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var r=t.buffer,n=t.subscription;this.destination.next(r),e.splice(e.indexOf(t),1),this.remove(n),n.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,r=new A.w,n={buffer:[],subscription:r};e.push(n);var i=(0,C.D)(this,t,n);!i||i.closed?this.closeBuffer(n):(i.context=n,this.add(i),r.add(i))},e}(R.L);function T(t){return function(e){return e.lift(new N(t))}}var N=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new L(t,this.closingSelector))},t}(),L=function(t){function e(e,r){var n=t.call(this,e)||this;return n.closingSelector=r,n.subscribing=!1,n.openBuffer(),n}return n.__extends(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},e.prototype.notifyNext=function(){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t,e=this.closingSubscription;e&&(this.remove(e),e.unsubscribe());var r=this.buffer;this.buffer&&this.destination.next(r),this.buffer=[];try{t=(0,this.closingSelector)()}catch(n){return this.error(n)}e=new A.w,this.closingSubscription=e,this.add(e),this.subscribing=!0,e.add((0,i.ft)(t,new i.IY(this))),this.subscribing=!1},e}(i.Ds);function j(t){return function(e){var r=new B(t),n=e.lift(r);return r.caught=n}}var B=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new D(t,this.selector,this.caught))},t}(),D=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.selector=r,i.caught=n,i}return n.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=void 0;try{r=this.selector(e,this.caught)}catch(n){t.prototype.error.call(this,n);return}this._unsubscribeAndRecycle();var o=new i.IY(this);this.add(o);var s=(0,i.ft)(r,o);s!==o&&this.add(s)}},e}(i.Ds),F=r(75142);function U(t){return function(e){return e.lift(new F.Ms(t))}}var z=r(59026),H=r(55760);function q(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&(0,z.k)(t[0])&&(t=t[0].slice()),function(e){return e.lift.call((0,H.D)([e].concat(t)),new F.Ms(r))}}var W=r(49795);function V(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(W.z.apply(void 0,[e].concat(t)))}}var K=r(52257),G=r(47746);function Z(t,e){return(0,G.zg)(t,e,1)}function $(t,e){return Z(function(){return t},e)}function J(t){return function(e){return e.lift(new Y(t,e))}}var Y=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Q(t,this.predicate,this.source))},t}(),Q=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.predicate=r,i.source=n,i.count=0,i.index=0,i}return n.__extends(e,t),e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(r){this.destination.error(r);return}e&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(p.L);function X(t){return function(e){return e.lift(new tt(t))}}var tt=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new te(t,this.durationSelector))},t}(),te=function(t){function e(e,r){var n=t.call(this,e)||this;return n.durationSelector=r,n.hasValue=!1,n}return n.__extends(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(r){this.destination.error(r)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var r=this.durationSubscription;this.value=t,this.hasValue=!0,r&&(r.unsubscribe(),this.remove(r)),(r=(0,i.ft)(e,new i.IY(this)))&&!r.closed&&this.add(this.durationSubscription=r)},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,r=this.durationSubscription;r&&(this.durationSubscription=void 0,r.unsubscribe(),this.remove(r)),this.value=void 0,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(i.Ds);function tr(t,e){return void 0===e&&(e=u.P),function(r){return r.lift(new tn(t,e))}}
26var tn=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new ti(t,this.dueTime,this.scheduler))},t}(),ti=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.dueTime=r,i.scheduler=n,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return n.__extends(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(to,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(p.L);function to(t){t.debouncedNext()}function ts(t){return void 0===t&&(t=null),function(e){return e.lift(new ta(t))}}var ta=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new tu(t,this.defaultValue))},t}(),tu=function(t){function e(e,r){var n=t.call(this,e)||this;return n.defaultValue=r,n.isEmpty=!0,n}return n.__extends(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(p.L);function tc(t){return t instanceof Date&&!isNaN(+t)}var tl=r(42632);function th(t,e){void 0===e&&(e=u.P);var r=tc(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new tf(r,e))}}var tf=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new td(t,this.delay,this.scheduler))},t}(),td=function(t){function e(e,r,n){var i=t.call(this,e)||this;
26return i.delay=r,i.scheduler=n,i.queue=[],i.active=!1,i.errored=!1,i}return n.__extends(e,t),e.dispatch=function(t){for(var e=t.source,r=e.queue,n=t.scheduler,i=t.destination;r.length>0&&r[0].time-n.now()<=0;)r.shift().notification.observe(i);if(r.length>0){var o=Math.max(0,r[0].time-n.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,r=new tp(e.now()+this.delay,t);this.queue.push(r),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(tl.P.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(tl.P.createComplete()),this.unsubscribe()},e}(p.L),tp=function(t,e){this.time=t,this.notification=e},tg=r(61514);function tm(t,e){return e?function(r){return new tv(r,e).lift(new ty(t))}:function(e){return e.lift(new ty(t))}}var ty=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new tb(t,this.delayDurationSelector))},t}(),tb=function(t){function e(e,r){var n=t.call(this,e)||this;return n.delayDurationSelector=r,n.completed=!1,n.delayNotifierSubscriptions=[],n.index=0,n}return n.__extends(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){var e=this.index++;try{var r=this.delayDurationSelector(t,e);r&&this.tryDelay(r,t)}catch(n){this.destination.error(n)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t);return -1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue},e.prototype.tryDelay=function(t,e){var r=(0,C.D)(this,t,e);r&&!r.closed&&(this.destination.add(r),this.delayNotifierSubscriptions.push(r))},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(R.L),tv=function(t){function e(e,r){var n=t.call(this)||this;return n.source=e,n.subscriptionDelay=r,n}return n.__extends(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new t_(t,this.source))},e}(tg.y),t_=function(t){function e(e,r){var n=t.call(this)||this;return n.parent=e,n.source=r,n.sourceSubscribed=!1,n}return n.__extends(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(p.L);function tw(){return function(t){return t.lift(new tM)}}var tM=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new tS(t))},t}(),tS=function(t){function e(e){return t.call(this,e)||this}return n.__extends(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(p.L);function tE(t,e){return function(r){return r.lift(new tx(t,e))}}var tx=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new tk(t,this.keySelector,this.flushes))},t}(),tk=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.keySelector=r,o.values=new Set,n&&o.add((0,i.ft)(n,new i.IY(o))),o}return n.__extends(e,t),e.prototype.notifyNext=function(){this.values.clear()},e.prototype.notifyError=function(t){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,r=this.destination;try{e=this.keySelector(t)}catch(n){r.error(n);return}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var r=this.values;r.has(t)||(r.add(t),this.destination.next(e))},e}(i.Ds);function tA(t,e){return function(r){return r.lift(new tC(t,e))}}var tC=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new tR(t,this.compare,this.keySelector))},t}(),tR=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.keySelector=n,i.hasKey=!1,"function"==typeof r&&(i.compare=r),i}return n.__extends(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){try{var e,r=this.keySelector;e=r?r(t):t}catch(n){return this.destination.error(n)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,e)}catch(o){return this.destination.error(o)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))},e}(p.L);function tO(t,e){return tA(function(r,n){return e?e(r[t],n[t]):r[t]===n[t]})}var tP=r(76565),tI=r(66008),tT=r(26929);function tN(t){return void 0===t&&(t=tB),function(e){return e.lift(new tL(t))}}var tL=function(){function t(t){this.errorFactory=t}return t.prototype.call=function(t,e){return e.subscribe(new tj(t,this.errorFactory)
26)},t}(),tj=function(t){function e(e,r){var n=t.call(this,e)||this;return n.errorFactory=r,n.hasValue=!1,n}return n.__extends(e,t),e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)},e}(p.L);function tB(){return new tT.K}var tD=r(5631);function tF(t){return function(e){return 0===t?(0,tD.c)():e.lift(new tU(t))}}var tU=function(){function t(t){if(this.total=t,this.total<0)throw new tP.W}return t.prototype.call=function(t,e){return e.subscribe(new tz(t,this.total))},t}(),tz=function(t){function e(e,r){var n=t.call(this,e)||this;return n.total=r,n.count=0,n}return n.__extends(e,t),e.prototype._next=function(t){var e=this.total,r=++this.count;r<=e&&(this.destination.next(t),r===e&&(this.destination.complete(),this.unsubscribe()))},e}(p.L);function tH(t,e){if(t<0)throw new tP.W;var r=arguments.length>=2;return function(n){return n.pipe((0,tI.h)(function(e,r){return r===t}),tF(1),r?ts(e):tN(function(){return new tP.W}))}}var tq=r(18170);function tW(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return(0,W.z)(e,tq.of.apply(void 0,t))}}function tV(t,e){return function(r){return r.lift(new tK(t,e,r))}}var tK=function(){function t(t,e,r){this.predicate=t,this.thisArg=e,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new tG(t,this.predicate,this.thisArg,this.source))},t}(),tG=function(t){function e(e,r,n,i){var o=t.call(this,e)||this;return o.predicate=r,o.thisArg=n,o.source=i,o.index=0,o.thisArg=n||o,o}return n.__extends(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(r){this.destination.error(r);return}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(p.L);function tZ(){return function(t){return t.lift(new t$)}}var t$=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new tJ(t))},t}(),tJ=function(t){function e(e){var r=t.call(this,e)||this;return r.hasCompleted=!1,r.hasSubscription=!1,r}return n.__extends(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add((0,i.ft)(t,new i.IY(this))))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(i.Ds),tY=r(55709),tQ=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new tX(t,this.project))},t}(),tX=function(t){function e(e,r){var n=t.call(this,e)||this;return n.project=r,n.hasSubscription=!1,n.hasCompleted=!1,n.index=0,n}return n.__extends(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(n){this.destination.error(n);return}this.hasSubscription=!0,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new i.IY(this),r=this.destination;r.add(e);var n=(0,i.ft)(t,e);n!==e&&r.add(n)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(i.Ds);function t0(t,e,r){return void 0===e&&(e=Number.POSITIVE_INFINITY),e=1>(e||0)?Number.POSITIVE_INFINITY:e,function(n){return n.lift(new t1(t,e,r))}}var t1=function(){function t(t,e,r){this.project=t,this.concurrent=e,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new t2(t,this.project,this.concurrent,this.scheduler))},t}(),t2=function(t){function e(e,r,n,i){var o=t.call(this,e)||this;
26return o.project=r,o.concurrent=n,o.scheduler=i,o.index=0,o.active=0,o.hasCompleted=!1,n<Number.POSITIVE_INFINITY&&(o.buffer=[]),o}return n.__extends(e,t),e.dispatch=function(t){var e=t.subscriber,r=t.result,n=t.value,i=t.index;e.subscribeToProjection(r,n,i)},e.prototype._next=function(t){var r=this.destination;if(r.closed){this._complete();return}var n=this.index++;if(this.active<this.concurrent){r.next(t);try{var i=(0,this.project)(t,n);this.scheduler?this.destination.add(this.scheduler.schedule(e.dispatch,0,{subscriber:this,result:i,value:t,index:n})):this.subscribeToProjection(i,t,n)}catch(o){r.error(o)}}else this.buffer.push(t)},e.prototype.subscribeToProjection=function(t,e,r){this.active++,this.destination.add((0,i.ft)(t,new i.IY(this)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this._next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t&&t.length>0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(i.Ds);function t3(t){return function(e){return e.lift(new t6(t))}}var t6=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new t4(t,this.callback))},t}(),t4=function(t){function e(e,r){var n=t.call(this,e)||this;return n.add(new A.w(r)),n}return n.__extends(e,t),e}(p.L);function t5(t,e){if("function"!=typeof t)throw TypeError("predicate is not a function");return function(r){return r.lift(new t8(t,r,!1,e))}}var t8=function(){function t(t,e,r,n){this.predicate=t,this.source=e,this.yieldIndex=r,this.thisArg=n}return t.prototype.call=function(t,e){return e.subscribe(new t7(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),t7=function(t){function e(e,r,n,i,o){var s=t.call(this,e)||this;return s.predicate=r,s.source=n,s.yieldIndex=i,s.thisArg=o,s.index=0,s}return n.__extends(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete(),this.unsubscribe()},e.prototype._next=function(t){var e=this.predicate,r=this.thisArg,n=this.index++;try{e.call(r||this,t,n,this.source)&&this.notifyComplete(this.yieldIndex?n:t)}catch(i){this.destination.error(i)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(p.L);function t9(t,e){return function(r){return r.lift(new t8(t,r,!0,e))}}var et=r(43608);function ee(t,e){var r=arguments.length>=2;return function(n){return n.pipe(t?(0,tI.h)(function(e,r){return t(e,r,n)}):et.y,tF(1),r?ts(e):tN(function(){return new tT.K}))}}var er=r(11120);function en(){return function(t){return t.lift(new ei)}}var ei=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new eo(t))},t}(),eo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.__extends(e,t),e.prototype._next=function(t){},e}(p.L);function es(){return function(t){return t.lift(new ea)}}var ea=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new eu(t))},t}(),eu=function(t){function e(e){return t.call(this,e)||this}return n.__extends(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(p.L);function ec(t){return function(e){return 0===t?(0,tD.c)():e.lift(new el(t))}}var el=function(){function t(t){if(this.total=t,this.total<0)throw new tP.W}return t.prototype.call=function(t,e){return e.subscribe(new eh(t,this.total))},t}(),eh=function(t){function e(e,r){var n=t.call(this,e)||this;return n.total=r,n.ring=[],n.count=0,n}return n.__extends(e,t),e.prototype._next=function(t){var e=this.ring,r=this.total,n=this.count++;e.length<r?e.push(t):e[n%r]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var r=this.count>=this.total?this.total:this.count,n=this.ring,i=0;i<r;i++){var o=e++%r;t.next(n[o])}t.complete()},e}(p.L);function ef(t,e){var r=arguments.length>=2;return function(n){return n.pipe(t?(0,tI.h)(function(e,r){return t(e,r,n)}):et.y,ec(1),r?ts(e):tN(function(){return new tT.K}))}}function ed(t){return function(e){return e.lift(new ep(t))}}var ep=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new eg(t,this.value))},t}(),eg=function(t){function e(e,r){var n=t.call(this,e)||this;return n.value=r,n}return n.__extends(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(p.L);function em(){return function(t){return t.lift(new ey)}}var ey=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new eb(t))},t}(),eb=function(t){function e(e){return t.call(this,e)||this}return n.__extends(e,t),e.prototype._next=function(t){this.destination.next(tl.P.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(tl.P.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(tl.P.createComplete()),t.complete()},e}(p.L);function ev(t,e){var r=!1;return arguments.length>=2&&(r=!0),function(n){return n.lift(new e_(t,e,r))}}var e_=function(){function t(t,e,r){void 0===r&&(r=!1),this.accumulator=t,this.seed=e,this.hasSeed=r}return t.prototype.call=function(t,e){return e.subscribe(new ew(t,this.accumulator,this.seed,this.hasSeed))},t}(),ew=function(t){function e(e,r,n,i){var o=t.call(this,e)||this;return o.accumulator=r,o._seed=n,o.hasSeed=i,o.index=0,o}return n.__extends(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.accumulator(this.seed,t,r)}catch(n){this.destination.error(n)}this.seed=e,this.destination.next(e)},e}(p.L),eM=r(62561);function eS(t,e){return arguments.length>=2?function(r){return(0,eM.z)(ev(t,e),ec(1),ts(e))(r)}:function(e){return(0,eM.z)(ev(function(e,r,n){return t(e,r,n+1)}),ec(1))(e)}}function eE(t){return eS("function"==typeof t?function(e,r){return t(e,r)>0?e:r}:function(t,e){return t>e?t:e})}
26var ex=r(14370);function ek(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(ex.T.apply(void 0,[e].concat(t)))}}var eA=r(22556);function eC(t,e,r){return(void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof e)?(0,G.zg)(function(){return t},e,r):("number"==typeof e&&(r=e),(0,G.zg)(function(){return t},r))}function eR(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),function(n){return n.lift(new eO(t,e,r))}}var eO=function(){function t(t,e,r){this.accumulator=t,this.seed=e,this.concurrent=r}return t.prototype.call=function(t,e){return e.subscribe(new eP(t,this.accumulator,this.seed,this.concurrent))},t}(),eP=function(t){function e(e,r,n,i){var o=t.call(this,e)||this;return o.accumulator=r,o.acc=n,o.concurrent=i,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return n.__extends(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,r=this.destination,n=void 0;try{n=(0,this.accumulator)(this.acc,t,e)}catch(i){return r.error(i)}this.active++,this._innerSub(n)}else this.buffer.push(t)},e.prototype._innerSub=function(t){var e=new i.IY(this),r=this.destination;r.add(e);var n=(0,i.ft)(t,e);n!==e&&r.add(n)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},e.prototype.notifyNext=function(t){var e=this.destination;this.acc=t,this.hasValue=!0,e.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(i.Ds);function eI(t){return eS("function"==typeof t?function(e,r){return 0>t(e,r)?e:r}:function(t,e){return t<e?t:e})}var eT=r(33140);function eN(t,e){return function(r){if(n="function"==typeof t?t:function(){return t},"function"==typeof e)return r.lift(new eL(n,e));var n,i=Object.create(r,eT.N);return i.source=r,i.subjectFactory=n,i}}var eL=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var r=this.selector,n=this.subjectFactory(),i=r(n).subscribe(t);return i.add(e.subscribe(n)),i},t}(),ej=r(89276);function eB(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&(0,z.k)(t[0])&&(t=t[0]),function(e){return e.lift(new eD(t))}}var eD=function(){function t(t){this.nextSources=t}return t.prototype.call=function(t,e){return e.subscribe(new eF(t,this.nextSources))},t}(),eF=function(t){function e(e,r){var n=t.call(this,e)||this;return n.destination=e,n.nextSources=r,n}return n.__extends(e,t),e.prototype.notifyError=function(){this.subscribeToNextSource()},e.prototype.notifyComplete=function(){this.subscribeToNextSource()},e.prototype._error=function(t){this.subscribeToNextSource(),this.unsubscribe()},e.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},e.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();if(t){var e=new i.IY(this),r=this.destination;r.add(e);var n=(0,i.ft)(t,e);n!==e&&r.add(n)}else this.destination.complete()},e}(i.Ds);function eU(){return function(t){return t.lift(new ez)}}var ez=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new eH(t))},t}(),eH=function(t){function e(e){var r=t.call(this,e)||this;return r.hasPrev=!1,r}return n.__extends(e,t),e.prototype._next=function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)},e}(p.L),eq=r(18463);function eW(t,e){return function(r){return[(0,tI.h)(t,e)(r),(0,tI.h)((0,eq.f)(t,e))(r)]}}function eV(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t.length;if(0===r)throw Error("list of properties cannot be empty.");return function(e){return(0,tY.U)(function(e){for(var n=e,i=0;i<r;i++){var o=null!=n?n[t[i]]:void 0;if(void 0===o)return;n=o}return n})(e)}}var eK=r(70211);function eG(t){return t?eN(function(){return new eK.xQ},t):eN(new eK.xQ)}var eZ=r(89233);function e$(t){return function(e){return eN(new eZ.X(t))(e)}}var eJ=r(60364);function eY(){return function(t){return eN(new eJ.c)(t)}}var eQ=r(12630);function eX(t,e,r,n){r&&"function"!=typeof r&&(n=r);var i="function"==typeof r?r:void 0,o=new eQ.t(t,e,n);return function(t){return eN(function(){return o},i)(t)}}var e0=r(38821);function e1(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return 1===t.length&&(0,z.k)(t[0])&&(t=t[0]),e.lift.call(e0.S3.apply(void 0,[e].concat(t)))}}function e2(t){return void 0===t&&(t=-1),function(e){return 0===t?(0,tD.c)():t<0?e.lift(new e3(-1,e)):e.lift(new e3(t-1,e))}}var e3=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new e6(t,this.count,this.source))},t}(),e6=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.count=r,i.source=n,i}return n.__extends(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this.source,r=this.count;if(0===r)return t.prototype.complete.call(this);r>-1&&(this.count=r-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(p.L);function e4(t){return function(e){return e.lift(new e5(t))}}var e5=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new e8(t,this.notifier,e))},t}(),e8=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.notifier=r,i.source=n,i.sourceIsBeingSubscribedTo=!0,i}return n.__extends(e,t),e.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){this.notifications=new eK.xQ;try{var e;e=(0,this.notifier)(this.notifications)}catch(r){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=(0,i.ft)(e,new i.IY(this))},e}(i.Ds);function e7(t){return void 0===t&&(t=-1),function(e){return e.lift(new e9(t,e))}}var e9=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new rt(t,this.count,this.source))},t}(),rt=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.count=r,i.source=n,i}return n.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=this.source,n=this.count;if(0===n)return t.prototype.error.call(this,e);n>-1&&(this.count=n-1),r.subscribe(this._unsubscribeAndRecycle())}},e}(p.L);function re(t){return function(e){return e.lift(new rr(t,e))}}var rr=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new rn(t,this.notifier,this.source))},t}(),rn=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.notifier=r,i.source=n,i}return n.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=this.errors,n=this.retries,o=this.retriesSubscription;if(n)this.errors=void 0,this.retriesSubscription=void 0;else{r=new eK.xQ;try{n=(0,this.notifier)(r)}catch(s){return t.prototype.error.call(this,s)}o=(0,i.ft)(n,new i.IY(this))}this._unsubscribeAndRecycle(),this.errors=r,this.retries=n,this.retriesSubscription=o,r.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},e}(i.Ds),ri=r(3018);function ro(t){return function(e){return e.lift(new rs(t))}}var rs=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var r=new ra(t),n=e.subscribe(r);return n.add((0,i.ft)(this.notifier,new i.IY(r))),n},t}(),ra=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return n.__extends(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(i.Ds);function ru(t,e){return void 0===e&&(e=u.P),function(r){return r.lift(new rc(t,e))}}
26var rc=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new rl(t,this.period,this.scheduler))},t}(),rl=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.period=r,i.scheduler=n,i.hasValue=!1,i.add(n.schedule(rh,r,{subscriber:i,period:r})),i}return n.__extends(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(p.L);function rh(t){var e=t.subscriber,r=t.period;e.notifyNext(),this.schedule(t,r)}function rf(t,e){return function(r){return r.lift(new rd(t,e))}}var rd=function(){function t(t,e){this.compareTo=t,this.comparator=e}return t.prototype.call=function(t,e){return e.subscribe(new rp(t,this.compareTo,this.comparator))},t}(),rp=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.compareTo=r,i.comparator=n,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(r.subscribe(new rg(e,i))),i}return n.__extends(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this._a,e=this._b,r=this.comparator;t.length>0&&e.length>0;){var n=t.shift(),i=e.shift(),o=!1;try{o=r?r(n,i):n===i}catch(s){this.destination.error(s)}o||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e}(p.L),rg=function(t){function e(e,r){var n=t.call(this,e)||this;return n.parent=r,n}return n.__extends(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(p.L);function rm(){return new eK.xQ}function ry(){return function(t){return(0,ri.x)()(eN(rm)(t))}}function rb(t,e,r){var n;return n=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:r},function(t){var e,r,i,o,s,a,u,c,l,h,f;return t.lift((o=void 0===(i=n.bufferSize)?Number.POSITIVE_INFINITY:i,a=void 0===(s=n.windowTime)?Number.POSITIVE_INFINITY:s,u=n.refCount,c=n.scheduler,l=0,h=!1,f=!1,function(t){var n;l++,!e||h?(h=!1,n=(e=new eQ.t(o,a,c)).subscribe(this),r=t.subscribe({next:function(t){e.next(t)},error:function(t){h=!0,e.error(t)},complete:function(){f=!0,r=void 0,e.complete()}}),f&&(r=void 0)):n=e.subscribe(this),this.add(function(){l--,n.unsubscribe(),n=void 0,r&&!f&&u&&0===l&&(r.unsubscribe(),r=void 0,e=void 0)})}))}}function rv(t){return function(e){return e.lift(new r_(t,e))}}var r_=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new rw(t,this.predicate,this.source))},t}(),rw=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.predicate=r,i.source=n,i.seenValue=!1,i.index=0,i}return n.__extends(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(r){this.destination.error(r)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new tT.K)},e}(p.L);function rM(t){return function(e){return e.lift(new rS(t))}}var rS=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new rE(t,this.total))},t}(),rE=function(t){function e(e,r){var n=t.call(this,e)||this;return n.total=r,n.count=0,n}return n.__extends(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(p.L);function rx(t){return function(e){return e.lift(new rk(t))}}var rk=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new tP.W}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new p.L(t)):e.subscribe(new rA(t,this._skipCount))},t}(),rA=function(t){function e(e,r){var n=t.call(this,e)||this;return n._skipCount=r,n._count=0,n._ring=Array(r),n}return n.__extends(e,t),e.prototype._next=function(t){var e=this._skipCount,r=this._count++;
26if(r<e)this._ring[r]=t;else{var n=r%e,i=this._ring,o=i[n];i[n]=t,this.destination.next(o)}},e}(p.L);function rC(t){return function(e){return e.lift(new rR(t))}}var rR=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new rO(t,this.notifier))},t}(),rO=function(t){function e(e,r){var n=t.call(this,e)||this;n.hasValue=!1;var o=new i.IY(n);n.add(o),n.innerSubscription=o;var s=(0,i.ft)(r,o);return s!==o&&(n.add(s),n.innerSubscription=s),n}return n.__extends(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){},e}(i.Ds);function rP(t){return function(e){return e.lift(new rI(t))}}var rI=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new rT(t,this.predicate))},t}(),rT=function(t){function e(e,r){var n=t.call(this,e)||this;return n.predicate=r,n.skipping=!0,n.index=0,n}return n.__extends(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(r){this.destination.error(r)}},e}(p.L);function rN(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return(0,v.K)(r)?(t.pop(),function(e){return(0,W.z)(t,e,r)}):function(e){return(0,W.z)(t,e)}}var rL=r(81789),rj=r(35812),rB=function(t){function e(e,r,n){void 0===r&&(r=0),void 0===n&&(n=rL.e);var i=t.call(this)||this;
26return i.source=e,i.delayTime=r,i.scheduler=n,(!(0,rj.k)(r)||r<0)&&(i.delayTime=0),n&&"function"==typeof n.schedule||(i.scheduler=rL.e),i}return n.__extends(e,t),e.create=function(t,r,n){return void 0===r&&(r=0),void 0===n&&(n=rL.e),new e(t,r,n)},e.dispatch=function(t){var e=t.source,r=t.subscriber;return this.add(e.subscribe(r))},e.prototype._subscribe=function(t){var r=this.delayTime,n=this.source;return this.scheduler.schedule(e.dispatch,r,{source:n,subscriber:t})},e}(tg.y);function rD(t,e){return void 0===e&&(e=0),function(r){return r.lift(new rF(t,e))}}var rF=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new rB(e,this.delay,this.scheduler).subscribe(t)},t}();function rU(t,e){return"function"==typeof e?function(r){return r.pipe(rU(function(r,n){return(0,H.D)(t(r,n)).pipe((0,tY.U)(function(t,i){return e(r,t,n,i)}))}))}:function(e){return e.lift(new rz(t))}}var rz=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new rH(t,this.project))},t}(),rH=function(t){function e(e,r){var n=t.call(this,e)||this;return n.project=r,n.index=0,n}return n.__extends(e,t),e.prototype._next=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(n){this.destination.error(n);return}this._innerSub(e)},e.prototype._innerSub=function(t){var e=this.innerSubscription;e&&e.unsubscribe();var r=new i.IY(this),n=this.destination;n.add(r),this.innerSubscription=(0,i.ft)(t,r),this.innerSubscription!==r&&n.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;(!e||e.closed)&&t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=void 0},e.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t){this.destination.next(t)},e}(i.Ds);function rq(){return rU(et.y)}function rW(t,e){return e?rU(function(){return t},e):rU(function(){return t})}function rV(t){return function(e){return e.lift(new rK(t))}}var rK=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var r=new rG(t),n=(0,i.ft)(this.notifier,new i.IY(r));return n&&!r.seenValue?(r.add(n),e.subscribe(r)):r},t}(),rG=function(t){function e(e){var r=t.call(this,e)||this;return r.seenValue=!1,r}return n.__extends(e,t),e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(i.Ds);function rZ(t,e){return void 0===e&&(e=!1),function(r){return r.lift(new r$(t,e))}}var r$=function(){function t(t,e){this.predicate=t,this.inclusive=e}return t.prototype.call=function(t,e){return e.subscribe(new rJ(t,this.predicate,this.inclusive))},t}(),rJ=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 n.__extends(e,t),e.prototype._next=function(t){var e,r=this.destination;try{e=this.predicate(t,this.index++)}catch(n){r.error(n);return}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var r=this.destination;Boolean(e)?r.next(t):(this.inclusive&&r.next(t),r.complete())},e}
26(p.L),rY=r(33306),rQ=r(14156);function rX(t,e,r){return function(n){return n.lift(new r0(t,e,r))}}var r0=function(){function t(t,e,r){this.nextOrObserver=t,this.error=e,this.complete=r}return t.prototype.call=function(t,e){return e.subscribe(new r1(t,this.nextOrObserver,this.error,this.complete))},t}(),r1=function(t){function e(e,r,n,i){var o=t.call(this,e)||this;return o._tapNext=rY.Z,o._tapError=rY.Z,o._tapComplete=rY.Z,o._tapError=n||rY.Z,o._tapComplete=i||rY.Z,(0,rQ.m)(r)?(o._context=o,o._tapNext=r):r&&(o._context=r,o._tapNext=r.next||rY.Z,o._tapError=r.error||rY.Z,o._tapComplete=r.complete||rY.Z),o}return n.__extends(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(e){this.destination.error(e);return}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(e){this.destination.error(e);return}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){this.destination.error(t);return}return this.destination.complete()},e}(p.L),r2={leading:!0,trailing:!1};function r3(t,e){return void 0===e&&(e=r2),function(r){return r.lift(new r6(t,!!e.leading,!!e.trailing))}}var r6=function(){function t(t,e,r){this.durationSelector=t,this.leading=e,this.trailing=r}return t.prototype.call=function(t,e){return e.subscribe(new r4(t,this.durationSelector,this.leading,this.trailing))},t}(),r4=function(t){function e(e,r,n,i){var o=t.call(this,e)||this;return o.destination=e,o.durationSelector=r,o._leading=n,o._trailing=i,o._hasValue=!1,o}return n.__extends(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._hasValue,e=this._sendValue;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=void 0},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=(0,i.ft)(e,new i.IY(this)))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(e){return this.destination.error(e),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=void 0,e&&this.send()},e.prototype.notifyNext=function(){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(i.Ds);function r5(t,e,r){return void 0===e&&(e=u.P),void 0===r&&(r=r2),function(n){return n.lift(new r8(t,e,r.leading,r.trailing))}}var r8=function(){function t(t,e,r,n){this.duration=t,this.scheduler=e,this.leading=r,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new r7(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),r7=function(t){function e(e,r,n,i,o){var s=t.call(this,e)||this;
26return s.duration=r,s.scheduler=n,s.leading=i,s.trailing=o,s._hasTrailingValue=!1,s._trailingValue=null,s}return n.__extends(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(r9,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))},e.prototype._complete=function(){this._hasTrailingValue&&this.destination.next(this._trailingValue),this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(p.L);function r9(t){t.subscriber.clearThrottle()}var nt=r(51410);function ne(t){return void 0===t&&(t=u.P),function(e){return(0,nt.P)(function(){return e.pipe(ev(function(e,r){var n=e.current;return{value:r,current:t.now(),last:n}},{current:t.now(),value:void 0,last:void 0}),(0,tY.U)(function(t){var e=t.current,r=t.last,n=t.value;return new nr(n,e-r)}))})}}var nr=function(t,e){this.value=t,this.interval=e},nn=r(81462);function ni(t,e,r){return void 0===r&&(r=u.P),function(n){var i=tc(t),o=i?+t-r.now():Math.abs(t);return n.lift(new no(o,i,e,r))}}var no=function(){function t(t,e,r,n){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=r,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new ns(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),ns=function(t){function e(e,r,n,i,o){var s=t.call(this,e)||this;return s.absoluteTimeout=r,s.waitFor=n,s.withObservable=i,s.scheduler=o,s.scheduleTimeout(),s}return n.__extends(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add((0,i.ft)(e,new i.IY(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}(i.Ds),na=r(64944);function nu(t,e){return void 0===e&&(e=u.P),ni(t,(0,na._)(new nn.W),e)}function nc(t){return void 0===t&&(t=u.P),(0,tY.U)(function(e){return new nl(e,t.now())})}var nl=function(t,e){this.value=t,this.timestamp=e};function nh(t,e,r){return 0===r?[e]:(t.push(e),t)}function nf(){return eS(nh,[])}function nd(t){return function(e){return e.lift(new np(t))}}var np=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var r=new ng(t),n=e.subscribe(r);return n.closed||r.add((0,i.ft)(this.windowBoundaries,new i.IY(r))),n},t}(),ng=function(t){function e(e){var r=t.call(this,e)||this;return r.window=new eK.xQ,e.next(r.window),r}return n.__extends(e,t),e.prototype.notifyNext=function(){this.openWindow()},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,r=this.window=new eK.xQ;e.next(r)},e}(i.Ds);function nm(t,e){return void 0===e&&(e=0),function(r){return r.lift(new ny(t,e))}}var ny=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new nb(t,this.windowSize,this.startWindowEvery))},t}(),nb=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.destination=e,i.windowSize=r,i.startWindowEvery=n,i.windows=[new eK.xQ],i.count=0,e.next(i.windows[0]),i}return n.__extends(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,r=this.destination,n=this.windowSize,i=this.windows,o=i.length,s=0;s<o&&!this.closed;s++)i[s].next(t);var a=this.count-n+1;if(a>=0&&a%e==0&&!this.closed&&i.shift().complete(),++this.count%e==0&&!this.closed){var u=new eK.xQ;i.push(u),r.next(u)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(p.L);function nv(t){var e=u.P,r=null,n=Number.POSITIVE_INFINITY;return(0,v.K)(arguments[3])&&(e=arguments[3]),(0,v.K)(arguments[2])?e=arguments[2]:(0,rj.k)(arguments[2])&&(n=Number(arguments[2])),(0,v.K)(arguments[1])?e=arguments[1]:(0,rj.k)(arguments[1])&&(r=Number(arguments[1])),function(i){return i.lift(new n_(t,r,n,e))}}var n_=function(){function t(t,e,r,n){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=r,this.scheduler
26=n}return t.prototype.call=function(t,e){return e.subscribe(new nM(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),nw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return n.__extends(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(eK.xQ),nM=function(t){function e(e,r,n,i,o){var s=t.call(this,e)||this;s.destination=e,s.windowTimeSpan=r,s.windowCreationInterval=n,s.maxWindowSize=i,s.scheduler=o,s.windows=[];var a=s.openWindow();return null!==n&&n>=0?(s.add(o.schedule(nx,r,{subscriber:s,window:a,context:null})),s.add(o.schedule(nE,n,{windowTimeSpan:r,windowCreationInterval:n,subscriber:s,scheduler:o}))):s.add(o.schedule(nS,r,{subscriber:s,window:a,windowTimeSpan:r})),s}return n.__extends(e,t),e.prototype._next=function(t){for(var e=this.windows,r=e.length,n=0;n<r;n++){var i=e[n];!i.closed&&(i.next(t),i.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new nw;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(p.L);function nS(t){var e=t.subscriber,r=t.windowTimeSpan,n=t.window;n&&e.closeWindow(n),t.window=e.openWindow(),this.schedule(t,r)}function nE(t){var e=t.windowTimeSpan,r=t.subscriber,n=t.scheduler,i=t.windowCreationInterval,o=r.openWindow(),s={action:this,subscription:null};s.subscription=n.schedule(nx,e,{subscriber:r,window:o,context:s}),this.add(s.subscription),this.schedule(t,i)}function nx(t){var e=t.subscriber,r=t.window,n=t.context;n&&n.action&&n.subscription&&n.action.remove(n.subscription),e.closeWindow(r)}function nk(t,e){return function(r){return r.lift(new nA(t,e))}}var nA=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new nC(t,this.openings,this.closingSelector))},t}(),nC=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.openings=r,i.closingSelector=n,i.contexts=[],i.add(i.openSubscription=(0,C.D)(i,r,r)),i}return n.__extends(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var r=e.length,n=0;n<r;n++)e[n].window.next(t)},e.prototype._error=function(e){var r=this.contexts;if(this.contexts=null,r)for(var n=r.length,i=-1;++i<n;){var o=r[i];o.window.error(e),o.subscription.unsubscribe()}t.prototype._error.call(this,e)},e.prototype._complete=function(){var e=this.contexts;if(this.contexts=null,e)for(var r=e.length,n=-1;++n<r;){var i=e[n];i.window.complete(),i.subscription.unsubscribe()}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,r=-1;++r<e;){var n=t[r];n.window.unsubscribe(),n.subscription.unsubscribe()}},e.prototype.notifyNext=function(t,e,r,n,i){if(t===this.openings){var o=void 0;try{o=(0,this.closingSelector)(e)}catch(s){return this.error(s)}var a=new eK.xQ,u=new A.w,c={window:a,subscription:u};this.contexts.push(c);var l=(0,C.D)(this,o,c);l.closed?this.closeWindow(this.contexts.length-1):(l.context=c,u.add(l)),this.destination.next(a)}else this.closeWindow(this.contexts.indexOf(t))},e.prototype.notifyError=function(t){this.error(t)},e.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},e.prototype.closeWindow=function(t){if(-1!==t){var e=this.contexts,r=e[t],n=r.window,i=r.subscription;e.splice(t,1),n.complete(),i.unsubscribe()}},e}(R.L);function nR(t){return function(e){return e.lift(new nO(t))}}var nO=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new nP(t,this.closingSelector))},t}(),nP=function(t){function e(e,r){var n=t.call(this,e)||this;return n.destination=e,n.closingSelector=r,n.openWindow(),n}return n.__extends(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.openWindow(i)},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var e,r=this.window;r&&r.complete();var n=this.window=new eK.xQ;this.destination.next(n);try{e=(0,this.closingSelector)()}catch(i){this.destination.error(i),this.window.error(i);return}this.add(this.closingNotification=(0,C.D)(this,e))},e}(R.L);function nI(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var r;return"function"==typeof t[t.length-1]&&(r=t.pop()),e.lift(new nT(t,r))}}var nT=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new nN(t,this.observables,this.project))},t}(),nN=function(t){function e(e,r,n){var i=t.call(this,e)||this;i.observables=r,i.project=n,i.toRespond=[];var o=r.length;i.values=Array(o);for(var s=0;s<o;s++)i.toRespond.push(s);for(var s=0;s<o;s++){var a=r[s];i.add((0,C.D)(i,a,void 0,s))}return i}return n.__extends(e,t),e.prototype.notifyNext=function(t,e,r){this.values[r]=e;var n=this.toRespond;if(n.length>0){var i=n.indexOf(r);-1!==i&&n.splice(i,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(r){this.destination.error(r);return}this.destination.next(e)},e}(R.L),nL=r(25080);function nj(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(nL.$R.apply(void 0,[e].concat(t)))}}function nB(t){return function(e){return e.lift(new nL.mx(t))}}},37253:function(t,e,r){let n=r(89539),i=r(17187);var o="object"==typeof Reflect?Reflect:null,s=o&&"function"==typeof o.apply?o.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};function a(){i.call(this)}function u(t,e,r){try{s(t,e,r)}catch(n){setTimeout(()=>{throw n})}}t.exports=a,n.inherits(a,i),a.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var n="error"===t,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){if(e.length>0&&(o=e[0]),o instanceof Error)throw o;var o,s=Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var a=i[t];if(void 0===a)return!1;if("function"==typeof a)u(a,this,e);else for(var c=a.length,l=function(t,e){for(var r=Array(e),n=0;n<e;++n)r[n]=t[n];return r}(a,c),r=0;r<c;++r)u(l[r],this,e);return!0}},17635:function(t){"use strict";!function(e){function r(t){let e=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
26734187,3204031479,3329325298]),r=1779033703,n=3144134277,i=1013904242,o=2773480762,s=1359893119,a=2600822924,u=528734635,c=1541459225,l=new Uint32Array(64);function h(t){let h=0,f=t.length;for(;f>=64;){let d=r,p=n,g=i,m=o,y=s,b=a,v=u,_=c,w,M,S,E,x;for(M=0;M<16;M++)S=h+4*M,l[M]=(255&t[S])<<24|(255&t[S+1])<<16|(255&t[S+2])<<8|255&t[S+3];for(M=16;M<64;M++)E=((w=l[M-2])>>>17|w<<15)^(w>>>19|w<<13)^w>>>10,x=((w=l[M-15])>>>7|w<<25)^(w>>>18|w<<14)^w>>>3,l[M]=(E+l[M-7]|0)+(x+l[M-16]|0)|0;for(M=0;M<64;M++)E=(((y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&b^~y&v)|0)+(_+(e[M]+l[M]|0)|0)|0,x=((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+(d&p^d&g^p&g)|0,_=v,v=b,b=y,y=m+E|0,m=g,g=p,p=d,d=E+x|0;r=r+d|0,n=n+p|0,i=i+g|0,o=o+m|0,s=s+y|0,a=a+b|0,u=u+v|0,c=c+_|0,h+=64,f-=64}}h(t);let f,d=t.length%64,p=t.length/536870912|0,g=t.length<<3,m=d<56?56:120,y=t.slice(t.length-d,t.length);for(y.push(128),f=d+1;f<m;f++)y.push(0);return y.push(p>>>24&255),y.push(p>>>16&255),y.push(p>>>8&255),y.push(p>>>0&255),y.push(g>>>24&255),y.push(g>>>16&255),y.push(g>>>8&255),y.push(g>>>0&255),h(y),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255,c>>>24&255,c>>>16&255,c>>>8&255,c>>>0&255]}function n(t,e,n){let i;t=t.length<=64?t:r(t);let o=64+e.length+4,s=Array(o),a=Array(64),u=[];for(i=0;i<64;i++)s[i]=54;for(i=0;i<t.length;i++)s[i]^=t[i];for(i=0;i<e.length;i++)s[64+i]=e[i];for(i=o-4;i<o;i++)s[i]=0;for(i=0;i<64;i++)a[i]=92;for(i=0;i<t.length;i++)a[i]^=t[i];function c(){for(let t=o-1;t>=o-4;t--){if(s[t]++,s[t]<=255)return;s[t]=0}}for(;n>=32;)c(),u=u.concat(r(a.concat(r(s)))),n-=32;return n>0&&(c(),u=u.concat(r(a.concat(r(s))).slice(0,n))),u}function i(t,e,r,n,i){let u;for(a(t,(2*r-1)*16,i,0,16),u=0;u<2*r;u++)s(t,16*u,i,16),function(t,e){a(t,0,e,0,16);for(let r=8;r>0;r-=2)e[4]^=o(e[0]+e[12],7),e[8]^=o(e[4]+e[0],9),e[12]^=o(e[8]+e[4],13),e[0]^=o(e[12]+e[8],18),e[9]^=o(e[5]+e[1],7),e[13]^=o(e[9]+e[5],9),e[1]^=o(e[13]+e[9],13),e[5]^=o(e[1]+e[13],18),e[14]^=o(e[10]+e[6],7),e[2]^=o(e[14]+e[10],9),e[6]^=o(e[2]+e[14],13),e[10]^=o(e[6]+e[2],18),e[3]^=o(e[15]+e[11],7),e[7]^=o(e[3]+e[15],9),e[11]^=o(e[7]+e[3],13),e[15]^=o(e[11]+e[7],18),e[1]^=o(e[0]+e[3],7),e[2]^=o(e[1]+e[0],9),e[3]^=o(e[2]+e[1],13),e[0]^=o(e[3]+e[2],18),e[6]^=o(e[5]+e[4],7),e[7]^=o(e[6]+e[5],9),e[4]^=o(e[7]+e[6],13),e[5]^=o(e[4]+e[7],18),e[11]^=o(e[10]+e[9],7),e[8]^=o(e[11]+e[10],9),e[9]^=o(e[8]+e[11],13),e[10]^=o(e[9]+e[8],18),e[12]^=o(e[15]+e[14],7),e[13]^=o(e[12]+e[15],9),e[14]^=o(e[13]+e[12],13),e[15]^=o(e[14]+e[13],18);for(let n=0;n<16;++n)t[n]+=e[n]}(i,n),a(i,0,t,e+16*u,16);for(u=0;u<r;u++)a(t,e+32*u,t,16*u,16);for(u=0;u<r;u++)a(t,e+(2*u+1)*16,t,(u+r)*16,16)}function o(t,e){return t<<e|t>>>32-e}function s(t,e,r,n){for(let i=0;i<n;i++)r[i]^=t[e+i]}function a(t,e,r,n,i){for(;i--;)r[n++]=t[e++]}function u(t){if(!t||"number"!=typeof t.length)return!1;for(let e=0;e<t.length;e++){let r=t[e];if("number"!=typeof r||r%1||r<0||r>=256)return!1}return!0}function c(t,e){if("number"!=typeof t||t%1)throw Error("invalid "+e);return t}function l(t,e,r,o,l,h,f){let d;if(r=c(r,"N"),o=c(o,"r"),l=c(l,"p"),h=c(h,"dkLen"),0===r||(r&r-1)!=0)throw Error("N must be power of 2");if(r>2147483647/128/o)throw Error("N too large");if(o>2147483647/128/l)throw Error("r too large");if(!u(t))throw Error("password must be an array or buffer");if(t=Array.prototype.slice.call(t),!u(e))throw Error("salt must be an array or buffer");let p=n(t,e=Array.prototype.slice.call(e),128*l*o),g=new Uint32Array(32*l*o);for(let m=0;m<g.length;m++){let y=4*m;g[m]=(255&p[y+3])<<24|(255&p[y+2])<<16|(255&p[y+1])<<8|(255&p[y+0])<<0}let b=new Uint32Array(64*o),v=new Uint32Array(32*o*r),_=32*o,w=new Uint32Array(16),M=new Uint32Array(16),S=l*r*2,E=0,x=null,k=!1,A=0,C=0,R,O=f?parseInt(1e3/o):4294967295,P="undefined"!=typeof setImmediate?setImmediate:setTimeout,I=function(){let e;if(k)return f(Error("cancelled"),E/S);switch(A){case 0:a(g,d=32*C*o,b,0,_),A=1,R=0;case 1:(e=r-R)>O&&(e=O);for(let u=0;u<e;u++)a(b,0,v,(R+u)*_,_),i(b,_,o,w,M);if(R+=e,E+=e,f){let c=parseInt(1e3*E/S);if(c!==x){if(k=f(null,E/S))break;x=c}}if(R<r)break;R=0,A=2;case 2:(e=r-R)>O&&(e=O);for(let m=0;m<e;m++){let y=(2*o-1)*16,T=b[y]&r-1;s(v,T*_,b,_),i(b,_,o,w,M)}if(R+=e,E+=e,f){let N=parseInt(1e3*E/S);if(N!==x){if(k=f(null,E/S))break;x=N}}if(R<r)break;
26if(a(b,0,g,d,_),++C<l){A=0;break}p=[];for(let L=0;L<g.length;L++)p.push(g[L]>>0&255),p.push(g[L]>>8&255),p.push(g[L]>>16&255),p.push(g[L]>>24&255);let j=n(t,p,h);return f&&f(null,1,j),j}f&&P(I)};if(!f)for(;;){let T=I();if(void 0!=T)return T}I()}t.exports={scrypt:function(t,e,r,n,i,o,s){return new Promise(function(a,u){let c=0;s&&s(0),l(t,e,r,n,i,o,function(t,e,r){if(t)u(t);else if(r)s&&1!==c&&s(1),a(new Uint8Array(r));else if(s&&e!==c)return c=e,s(e)})})},syncScrypt:function(t,e,r,n,i,o){return new Uint8Array(l(t,e,r,n,i,o))}}}(0)},17221:function(t,e,r){t.exports=r(59119)(r(58573))},58573:function(t,e,r){let n=r(86266).ec,i=new n("secp256k1"),o=i.curve,s=o.n.constructor;function a(t){let e=t[0];switch(e){case 2:case 3:if(33!==t.length)return null;return function(t,e){let r=new s(e);if(r.cmp(o.p)>=0)return null;let n=(r=r.toRed(o.red)).redSqr().redIMul(r).redIAdd(o.b).redSqrt();return 3===t!==n.isOdd()&&(n=n.redNeg()),i.keyPair({pub:{x:r,y:n}})}(e,t.subarray(1,33));case 4:case 6:case 7:if(65!==t.length)return null;return function(t,e,r){let n=new s(e),a=new s(r);if(n.cmp(o.p)>=0||a.cmp(o.p)>=0||(n=n.toRed(o.red),a=a.toRed(o.red),(6===t||7===t)&&a.isOdd()!==(7===t)))return null;let u=n.redSqr().redIMul(n);return a.redSqr().redISub(u.redIAdd(o.b)).isZero()?i.keyPair({pub:{x:n,y:a}}):null}(e,t.subarray(1,33),t.subarray(33,65));default:return null}}function u(t,e){let r=e.encode(null,33===t.length);for(let n=0;n<t.length;++n)t[n]=r[n]}t.exports={contextRandomize:()=>0,privateKeyVerify(t){let e=new s(t);return 0>e.cmp(o.n)&&!e.isZero()?0:1},privateKeyNegate(t){let e=new s(t),r=o.n.sub(e).umod(o.n).toArrayLike(Uint8Array,"be",32);return t.set(r),0},privateKeyTweakAdd(t,e){let r=new s(e);if(r.cmp(o.n)>=0||(r.iadd(new s(t)),r.cmp(o.n)>=0&&r.isub(o.n),r.isZero()))return 1;let n=r.toArrayLike(Uint8Array,"be",32);return t.set(n),0},privateKeyTweakMul(t,e){let r=new s(e);if(r.cmp(o.n)>=0||r.isZero())return 1;r.imul(new s(t)),r.cmp(o.n)>=0&&(r=r.umod(o.n));let n=r.toArrayLike(Uint8Array,"be",32);return t.set(n),0},publicKeyVerify(t){let e=a(t);return null===e?1:0},publicKeyCreate(t,e){let r=new s(e);if(r.cmp(o.n)>=0||r.isZero())return 1;let n=i.keyFromPrivate(e).getPublic();return u(t,n),0},publicKeyConvert(t,e){let r=a(e);if(null===r)return 1;let n=r.getPublic();return u(t,n),0},publicKeyNegate(t,e){let r=a(e);if(null===r)return 1;let n=r.getPublic();return n.y=n.y.redNeg(),u(t,n),0},publicKeyCombine(t,e){let r=Array(e.length);for(let n=0;n<e.length;++n)if(r[n]=a(e[n]),null===r[n])return 1;let i=r[0].getPublic();for(let o=1;o<r.length;++o)i=i.add(r[o].pub);return i.isInfinity()?2:(u(t,i),0)},publicKeyTweakAdd(t,e,r){let n=a(e);if(null===n)return 1;if((r=new s(r)).cmp(o.n)>=0)return 2;let i=n.getPublic().add(o.g.mul(r));return i.isInfinity()?2:(u(t,i),0)},publicKeyTweakMul(t,e,r){let n=a(e);if(null===n)return 1;if((r=new s(r)).cmp(o.n)>=0||r.isZero())return 2;let i=n.getPublic().mul(r);return u(t,i),0},signatureNormalize(t){let e=new s(t.subarray(0,32)),r=new s(t.subarray(32,64));return e.cmp(o.n)>=0||r.cmp(o.n)>=0?1:(1===r.cmp(i.nh)&&t.set(o.n.sub(r).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(t,e){let r=e.subarray(0,32),n=e.subarray(32,64);if(new s(r).cmp(o.n)>=0||new s(n).cmp(o.n)>=0)return 1;let{output:i}=t,a=i.subarray(4,37);a[0]=0,a.set(r,1);let u=33,c=0;for(;u>1&&0===a[c]&&!(128&a[c+1]);--u,++c);if(128&(a=a.subarray(c))[0]||u>1&&0===a[0]&&!(128&a[1]))return 1;let l=i.subarray(39,72);l[0]=0,l.set(n,1);let h=33,f=0;for(;h>1&&0===l[f]&&!(128&l[f+1]);--h,++f);return 128&(l=l.subarray(f))[0]||h>1&&0===l[0]&&!(128&l[1])?1:(t.outputlen=6+u+h,i[0]=48,i[1]=t.outputlen-2,i[2]=2,i[3]=a.length,i.set(a,4),i[4+u]=2,i[5+u]=l.length,i.set(l,6+u),0)},signatureImport(t,e){if(e.length<8||e.length>72||48!==e[0]||e[1]!==e.length-2||2!==e[2])return 1;let r=e[3];if(0===r||5+r>=e.length||2!==e[4+r])return 1;let n=e[5+r];if(0===n||6+r+n!==e.length||128&e[4]||r>1&&0===e[4]&&!(128&e[5])||128&e[r+6]||n>1&&0===e[r+6]&&!(128&e[r+7]))return 1;let i=e.subarray(4,4+r);if(33===i.length&&0===i[0]&&(i=i.subarray(1)),i.length>32)return 1;let a=e.subarray(6+r);if(33===a.length&&0===a[0]&&(a=a.slice(1)),a.length>32)throw Error("S length is too long");let u=new s(i);u.cmp(o.n)>=0&&(u=new s(0));let c=new s(e.subarray(6+r));return c.cmp(o.n)>=0&&(c=new s(0)),t.set(u.toArrayLike(Uint8Array,"be",32),0),t.set(c.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(t,e,r,n,a){let u;if(a){let c=a;a=t=>{let i=c(e,r,null,n,t),o=i instanceof Uint8Array&&32===i.length;if(!o)throw Error("This is the way");return new s(i)}}let l=new s(r);if(l.cmp(o.n)>=0||l.isZero())return 1;try{u=i.sign(e,r,{canonical:!0,k:a,pers:n})}catch(h){return 1}return t.signature.set(u.r.toArrayLike(Uint8Array,"be",32),0),t.signature.set(u.s.toArrayLike(Uint8Array,"be",32),32),t.recid=u.recoveryParam,0},ecdsaVerify(t,e,r){let n={r:t.subarray(0,32),s:t.subarray(32,64)},u=new s(n.r),c=new s(n.s);if(u.cmp(o.n)>=0||c.cmp(o.n)>=0)return 1;if(1===c.cmp(i.nh)||u.isZero()||c.isZero())return 3;let l=a(r);if(null===l)return 2;let h=l.getPublic(),f=i.verify(e,n,h);return f?0:3},ecdsaRecover(t,e,r,n){let a;let c={r:e.slice(0,32),s:e.slice(32,64)},l=new s(c.r),h=new s(c.s);if(l.cmp(o.n)>=0||h.cmp(o.n)>=0)return 1;if(l.isZero()||h.isZero())return 2;try{a=i.recoverPubKey(n,c,r)}catch(f){return 2}return u(t,a),0},ecdh(t,e,r,n,u,c,l){let h=a(e);if(null===h)return 1;let f=new s(r);if(f.cmp(o.n)>=0||f.isZero())return 2;let d=h.getPublic().mul(f);if(void 0===u){let p=d.encode(null,!0),g=i.hash().update(p).digest();for(let m=0;m<32;++m)t[m]=g[m]}
26else{c||(c=new Uint8Array(32));let y=d.getX().toArray("be",32);for(let b=0;b<32;++b)c[b]=y[b];l||(l=new Uint8Array(32));let v=d.getY().toArray("be",32);for(let _=0;_<32;++_)l[_]=v[_];let w=u(c,l,n),M=w instanceof Uint8Array&&w.length===t.length;if(!M)return 2;t.set(w)}return 0}}},59119:function(t){let e={IMPOSSIBLE_CASE:"Impossible case. Please create issue.",TWEAK_ADD:"The tweak was out of range or the resulted private key is invalid",TWEAK_MUL:"The tweak was out of range or equal to zero",CONTEXT_RANDOMIZE_UNKNOW:"Unknow error on context randomization",SECKEY_INVALID:"Private Key is invalid",PUBKEY_PARSE:"Public Key could not be parsed",PUBKEY_SERIALIZE:"Public Key serialization error",PUBKEY_COMBINE:"The sum of the public keys is not valid",SIG_PARSE:"Signature could not be parsed",SIGN:"The nonce generation function failed, or the private key was invalid",RECOVER:"Public key could not be recover",ECDH:"Scalar was invalid (zero or overflow)"};function r(t,e){if(!t)throw Error(e)}function n(t,e,n){if(r(e instanceof Uint8Array,`Expected ${t} to be an Uint8Array`),void 0!==n){if(Array.isArray(n)){let i=n.join(", "),o=`Expected ${t} to be an Uint8Array with length [${i}]`;r(n.includes(e.length),o)}else{let s=`Expected ${t} to be an Uint8Array with length ${n}`;r(e.length===n,s)}}}function i(t){r("Boolean"===s(t),"Expected compressed to be a Boolean")}function o(t=t=>new Uint8Array(t),e){return"function"==typeof t&&(t=t(e)),n("output",t,e),t}function s(t){return Object.prototype.toString.call(t).slice(8,-1)}t.exports=t=>({contextRandomize(i){if(r(null===i||i instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==i&&n("seed",i,32),1===t.contextRandomize(i))throw Error(e.CONTEXT_RANDOMIZE_UNKNOW)},privateKeyVerify:e=>(n("private key",e,32),0===t.privateKeyVerify(e)),privateKeyNegate(r){switch(n("private key",r,32),t.privateKeyNegate(r)){case 0:return r;case 1:throw Error(e.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(r,i){switch(n("private key",r,32),n("tweak",i,32),t.privateKeyTweakAdd(r,i)){case 0:return r;case 1:throw Error(e.TWEAK_ADD)}},privateKeyTweakMul(r,i){switch(n("private key",r,32),n("tweak",i,32),t.privateKeyTweakMul(r,i)){case 0:return r;case 1:throw Error(e.TWEAK_MUL)}},publicKeyVerify:e=>(n("public key",e,[33,65]),0===t.publicKeyVerify(e)),publicKeyCreate(r,s=!0,a){switch(n("private key",r,32),i(s),a=o(a,s?33:65),t.publicKeyCreate(a,r)){case 0:return a;case 1:throw Error(e.SECKEY_INVALID);case 2:throw Error(e.PUBKEY_SERIALIZE)}},publicKeyConvert(r,s=!0,a){switch(n("public key",r,[33,65]),i(s),a=o(a,s?33:65),t.publicKeyConvert(a,r)){case 0:return a;case 1:throw Error(e.PUBKEY_PARSE);case 2:throw Error(e.PUBKEY_SERIALIZE)}},publicKeyNegate(r,s=!0,a){switch(n("public key",r,[33,65]),i(s),a=o(a,s?33:65),t.publicKeyNegate(a,r)){case 0:return a;case 1:throw Error(e.PUBKEY_PARSE);case 2:throw Error(e.IMPOSSIBLE_CASE);case 3:throw Error(e.PUBKEY_SERIALIZE)}},publicKeyCombine(s,a=!0,u){for(let c of(r(Array.isArray(s),"Expected public keys to be an Array"),r(s.length>0,"Expected public keys array will have more than zero items"),s))n("public key",c,[33,65]);switch(i(a),u=o(u,a?33:65),t.publicKeyCombine(u,s)){case 0:return u;case 1:throw Error(e.PUBKEY_PARSE);case 2:throw Error(e.PUBKEY_COMBINE);case 3:throw Error(e.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(r,s,a=!0,u){switch(n("public key",r,[33,65]),n("tweak",s,32),i(a),u=o(u,a?33:65),t.publicKeyTweakAdd(u,r,s)){case 0:return u;case 1:throw Error(e.PUBKEY_PARSE);case 2:throw Error(e.TWEAK_ADD)}},publicKeyTweakMul(r,s,a=!0,u){switch(n("public key",r,[33,65]),n("tweak",s,32),i(a),u=o(u,a?33:65),t.publicKeyTweakMul(u,r,s)){case 0:return u;case 1:throw Error(e.PUBKEY_PARSE);case 2:throw Error(e.TWEAK_MUL)}},signatureNormalize(r){switch(n("signature",r,64),t.signatureNormalize(r)){case 0:return r;case 1:throw Error(e.SIG_PARSE)}},signatureExport(r,i){n("signature",r,64),i=o(i,72);let s={output:i,outputlen:72};switch(t.signatureExport(s,r)){case 0:return i.slice(0,s.outputlen);case 1:throw Error(e.SIG_PARSE);case 2:throw Error(e.IMPOSSIBLE_CASE)}},signatureImport(r,i){switch(n("signature",r),i=o(i,64),t.signatureImport(i,r)){case 0:return i;case 1:throw Error(e.SIG_PARSE);case 2:throw Error(e.IMPOSSIBLE_CASE)}},ecdsaSign(i,a,u={},c){n("message",i,32),n("private key",a,32),r("Object"===s(u),"Expected options to be an Object"),void 0!==u.data&&n("options.data",u.data),void 0!==u.noncefn&&r("Function"===s(u.noncefn),"Expected options.noncefn to be a Function"),c=o(c,64);let l={signature:c,recid:null};switch(t.ecdsaSign(l,i,a,u.data,u.noncefn)){case 0:return l;case 1:throw Error(e.SIGN);case 2:throw Error(e.IMPOSSIBLE_CASE)}},ecdsaVerify(r,i,o){switch(n("signature",r,64),n("message",i,32),n("public key",o,[33,65]),t.ecdsaVerify(r,i,o)){case 0:return!0;case 3:return!1;case 1:throw Error(e.SIG_PARSE);case 2:throw Error(e.PUBKEY_PARSE)}},ecdsaRecover(a,u,c,l=!0,h){switch(n("signature",a,64),r("Number"===s(u)&&u>=0&&u<=3,"Expected recovery id to be a Number within interval [0, 3]"),n("message",c,32),i(l),h=o(h,l?33:65),t.ecdsaRecover(h,a,u,c)){case 0:return h;case 1:throw Error(e.SIG_PARSE);case 2:throw Error(e.RECOVER);case 3:throw Error(e.IMPOSSIBLE_CASE)}},ecdh(i,a,u={},c){switch(n("public key",i,[33,65]),n("private key",a,32),r("Object"===s(u),"Expected options to be an Object"),void 0!==u.data&&n("options.data",u.data),void 0!==u.hashfn?(r("Function"===s(u.hashfn),"Expected options.hashfn to be a Function"),void 0!==u.xbuf&&n("options.xbuf",u.xbuf,32),void 0!==u.ybuf&&n("options.ybuf",u.ybuf,32),n("output",c)):c=o(c,32),t.ecdh(c,i,a,u.data,u.hashfn,u.xbuf,u.ybuf)){case 0:return c;case 1:throw Error(e.PUBKEY_PARSE);case 2:throw Error(e.ECDH)}}})},80045:function(t,e,r){var n,i=r(34155);n=function(t){setTimeout(t,0)},void 0!==i&&i&&"function"==typeof i.nextTick&&(n=i.nextTick),t.exports=function(t){var e={capacity:t||1,current:0,queue:[],firstHere:!1,take:function(){if(!1===e.firstHere){e.current++,e.firstHere=!0;var t=1}else var t=0;
26var r={n:1};"function"==typeof arguments[0]?r.task=arguments[0]:r.n=arguments[0],arguments.length>=2&&("function"==typeof arguments[1]?r.task=arguments[1]:r.n=arguments[1]);var n=r.task;if(r.task=function(){n(e.leave)},e.current+r.n-t>e.capacity)return 1===t&&(e.current--,e.firstHere=!1),e.queue.push(r);e.current+=r.n-t,r.task(e.leave),1===t&&(e.firstHere=!1)},leave:function(t){if(t=t||1,e.current-=t,!e.queue.length){if(e.current<0)throw Error("leave called too many times.");return}var r=e.queue[0];r.n+e.current>e.capacity||(e.queue.shift(),e.current+=r.n,n(r.task))},available:function(t){return t=t||1,e.current+t<=e.capacity}};return e}},37478:function(t,e,r){"use strict";var n=r(40210),i=r(21924),o=r(70631),s=n("%TypeError%"),a=n("%WeakMap%",!0),u=n("%Map%",!0),c=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),h=i("WeakMap.prototype.has",!0),f=i("Map.prototype.get",!0),d=i("Map.prototype.set",!0),p=i("Map.prototype.has",!0),g=function(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r},m=function(t,e){var r=g(t,e);return r&&r.value},y=function(t,e,r){var n=g(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}};t.exports=function(){var t,e,r,n={assert:function(t){if(!n.has(t))throw new s("Side channel does not contain "+o(t))},get:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(t)return c(t,n)}else if(u){if(e)return f(e,n)}else if(r)return m(r,n)},has:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(t)return h(t,n)}else if(u){if(e)return p(e,n)}else if(r)return!!g(r,n);return!1},set:function(n,i){a&&n&&("object"==typeof n||"function"==typeof n)?(t||(t=new a),l(t,n,i)):u?(e||(e=new u),d(e,n,i)):(r||(r={key:{},next:null}),y(r,n,i))}};return n}},49604:function(t,e,r){var n=r(23944);t.exports=function(t){return"string"!=typeof t?t:n(t)?t.slice(2):t}},11742:function(t){t.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,r=[],n=0;n<t.rangeCount;n++)r.push(t.getRangeAt(n));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null}return t.removeAllRanges(),function(){"Caret"===t.type&&t.removeAllRanges(),t.rangeCount||r.forEach(function(e){t.addRange(e)}),e&&e.focus()}}},99269:function(t){var e;e=function(){function t(e,r,n,i,o,s,a){var u,c,l,h="",f=0,d=i.slice(0);if(d.push([r,n])&&i.length>0&&(i.forEach(function(t,e){e>0&&(h+=(t[1]?" ":"â")+" "),l||t[0]!==r||(l=!0)}),h+=(u=n?"â":"â",e?u+="â ":u+="âââ",u+e),o&&("object"!=typeof r||r instanceof Date)&&(h+=": "+r),l&&(h+=" (circular ref.)"),a(h)),!l&&"object"==typeof r){var p=function(t,e){var r=[];for(var n in t)t.hasOwnProperty(n)&&(!e||"function"!=typeof t[n])&&r.push(n);return r}(r,s);p.forEach(function(e){c=++f===p.length,t(e,r[e],c,d,o,s,a)})}}var e={};return e.asLines=function(e,r,n,i){t(".",e,!1,[],r,"function"!=typeof n&&n,i||n)},e.asTree=function(e,r,n){var i="";return t(".",e,!1,[],r,n,function(t){i+=t+"\n"}),i},e},t.exports=e()},31739:function(t,e,r){var n=r(48764).Buffer,i=r(4501).strict;t.exports=function(t){if(!i(t))return n.from(t);var e=n.from(t.buffer);return t.byteLength!==t.buffer.byteLength&&(e=e.slice(t.byteOffset,t.byteOffset+t.byteLength)),e}},12906:function(t,e,r){let n=r(17187).EventEmitter,i=r(89539).inherits,o=r(21964),s=r(75012),a=r(94005),u=r(94282),c=r(52698);r(6496);let l=r(39728),h=function(){};function f(t){let e=this;n.call(e),e.setMaxListeners(30),t=t||{};let r={sendAsync:e._handleAsync.bind(e)},i=t.blockTrackerProvider||r;e._blockTracker=t.blockTracker||new s({provider:i,pollingInterval:t.pollingInterval||4e3,setSkipCacheFlag:!0}),e._ready=new c,e.currentBlock=null,e._providers=[]}t.exports=f,i(f,n),f.prototype.start=function(t=h){let e=this;e._ready.go(),e._blockTracker.on("latest",t=>{e._getBlockByNumberWithRetry(t,(t,r)=>{if(t){this.emit("error",t);return}if(!r){console.log(r),this.emit("error",Error("Could not find block"));return}let n={number:o.toBuffer(r.number),hash:o.toBuffer(r.hash),parentHash:o.toBuffer(r.parentHash),nonce:o.toBuffer(r.nonce),mixHash:o.toBuffer(r.mixHash),sha3Uncles:o.toBuffer(r.sha3Uncles),logsBloom:o.toBuffer(r.logsBloom),transactionsRoot:o.toBuffer(r.transactionsRoot),stateRoot:o.toBuffer(r.stateRoot),receiptsRoot:o.toBuffer(r.receiptRoot||r.receiptsRoot),miner:o.toBuffer(r.miner),difficulty:o.toBuffer(r.difficulty),totalDifficulty:o.toBuffer(r.totalDifficulty),size:o.toBuffer(r.size),extraData:o.toBuffer(r.extraData),gasLimit:o.toBuffer(r.gasLimit),gasUsed:o.toBuffer(r.gasUsed),timestamp:o.toBuffer(r.timestamp),transactions:r.transactions};e._setCurrentBlock(n),e.emit("rawBlock",r),e.emit("latest",r)})}),e._blockTracker.on("sync",e.emit.bind(e,"sync")),e._blockTracker.on("error",e.emit.bind(e,"error")),e._running=!0,e.emit("start")},f.prototype.stop=function(){let t=this;t._blockTracker.removeAllListeners(),t._running=!1,t.emit("stop")},f.prototype.isRunning=function(){return this._running},f.prototype.addProvider=function(t,e){"number"==typeof e?this._providers.splice(e,0,t):this._providers.push(t),t.setEngine(this)},f.prototype.removeProvider=function(t){let e=this._providers.indexOf(t);if(e<0)throw Error("Provider not found.");this._providers.splice(e,1)},f.prototype.send=function(t){throw Error("Web3ProviderEngine does not support synchronous requests.")},f.prototype.sendAsync=function(t,e){let r=this;r._ready.await(function(){Array.isArray(t)?a(t,r._handleAsync.bind(r),e):r._handleAsync(t,e)})},f.prototype._getBlockByNumberWithRetry=function(t,e){let r=this,n=5;function i(){r._getBlockByNumber(t,o)}function o(t,r){if(t)return e(t);if(!r){if(n>0){n--,setTimeout(function(){i()},1e3);return}e(null,null);return}e(null,r)}i()},f.prototype._getBlockByNumber=function(t,e){let r=l({method:"eth_getBlockByNumber",params:[t,!1],skipCache:!0});this._handleAsync(r,(t,r)=>t?e(t):e(null,r.result))},f.prototype._handleAsync=function(t,e){var r=this,n=-1,i=null,o=null,s=[];function a(r,n){o=r,i=n,u(s,function(t,e){t?t(o,i,e):e()},function(){var r={id:t.id,jsonrpc:t.jsonrpc,result:i};null!=o?(r.error={message:o.stack||o.message||o,code:-32e3},e(o,r)):e(null,r)}
26)}(function e(i){if(n+=1,s.unshift(i),n>=r._providers.length)a(Error('Request for method "'+t.method+'" not handled by any subprovider. Please check your subprovider configuration to ensure this method is handled.'));else try{r._providers[n].handleRequest(t,e,a)}catch(o){a(o)}})()},f.prototype._setCurrentBlock=function(t){let e=this;e.currentBlock=t,e.emit("block",t)}},41955:function(t,e,r){let n=r(6403),i=r(37870);t.exports=class extends n{constructor(t){super(({blockTracker:e})=>i(Object.assign({blockTracker:e},t)))}}},28260:function(t,e,r){let n=r(6403),i=r(98406);t.exports=class extends n{constructor(){super(({blockTracker:t,provider:e,engine:r})=>i({blockTracker:t,provider:e}))}}},2110:function(t,e,r){let n=r(89539).inherits,i=r(30398);function o(t){let e=this;t=t||{},e.staticResponses=t}t.exports=o,n(o,i),o.prototype.handleRequest=function(t,e,r){var n=this.staticResponses[t.method];"function"==typeof n?n(t,e,r):void 0!==n?setTimeout(()=>r(null,n)):e()}},78747:function(t,e,r){let n=r(7879),i=r(80047),o=r(89539).inherits,s=r(21964),a=r(2843),u=r(47529),c=r(80045),l=r(30398),h=r(28372),f=/^[0-9A-Fa-f]+$/g;function d(t){let e=this;e.nonceLock=c(1),t.getAccounts&&(e.getAccounts=t.getAccounts),t.processTransaction&&(e.processTransaction=t.processTransaction),t.processMessage&&(e.processMessage=t.processMessage),t.processPersonalMessage&&(e.processPersonalMessage=t.processPersonalMessage),t.processTypedMessage&&(e.processTypedMessage=t.processTypedMessage),e.approveTransaction=t.approveTransaction||e.autoApprove,e.approveMessage=t.approveMessage||e.autoApprove,e.approvePersonalMessage=t.approvePersonalMessage||e.autoApprove,e.approveDecryptMessage=t.approveDecryptMessage||e.autoApprove,e.approveEncryptionPublicKey=t.approveEncryptionPublicKey||e.autoApprove,e.approveTypedMessage=t.approveTypedMessage||e.autoApprove,t.signTransaction&&(e.signTransaction=t.signTransaction||b("signTransaction")),t.signMessage&&(e.signMessage=t.signMessage||b("signMessage")),t.signPersonalMessage&&(e.signPersonalMessage=t.signPersonalMessage||b("signPersonalMessage")),t.decryptMessage&&(e.decryptMessage=t.decryptMessage||b("decryptMessage")),t.encryptionPublicKey&&(e.encryptionPublicKey=t.encryptionPublicKey||b("encryptionPublicKey")),t.signTypedMessage&&(e.signTypedMessage=t.signTypedMessage||b("signTypedMessage")),t.recoverPersonalSignature&&(e.recoverPersonalSignature=t.recoverPersonalSignature),t.publishTransaction&&(e.publishTransaction=t.publishTransaction),e.estimateGas=t.estimateGas||e.estimateGas,e.getGasPrice=t.getGasPrice||e.getGasPrice}function p(t){return t.toLowerCase()}function g(t){let e=s.addHexPrefix(t),r=s.isValidAddress(e);return r}function m(t){let e=s.addHexPrefix(t),r=s.isValidAddress(e);return!r&&y(t)}function y(t){if("string"!=typeof t)return!1;let e="0x"===t.slice(0,2);if(!e)return!1;let r=t.slice(2),n=r.match(f);return n}function b(t){return function(e,r){r(Error('ProviderEngine - HookedWalletSubprovider - Must provide "'+t+'" fn in constructor options'))}}t.exports=d,o(d,l),d.prototype.handleRequest=function(t,e,r){let i,o,s,a,c;let l=this;switch(l._parityRequests={},l._parityRequestCount=0,t.method){case"eth_coinbase":l.getAccounts(function(t,e){if(t)return r(t);r(null,e[0]||null)});return;case"eth_accounts":l.getAccounts(function(t,e){if(t)return r(t);r(null,e)});return;case"eth_sendTransaction":i=t.params[0],n([t=>l.validateTransaction(i,t),t=>l.processTransaction(i,t)],r);return;case"eth_signTransaction":i=t.params[0],n([t=>l.validateTransaction(i,t),t=>l.processSignTransaction(i,t)],r);return;case"eth_sign":a=t.params[0],s=t.params[1],o=u(t.params[2]||{},{from:a,data:s}),n([t=>l.validateMessage(o,t),t=>l.processMessage(o,t)],r);return;case"personal_sign":return function(){let e=t.params[0],i=t.params[1];if(m(i)&&g(e)){let c="The eth_personalSign method requires params ordered ";c+="[message, address]. This was previously handled incorrectly, ",c+="and has been corrected automatically. ",console.warn(c+="Please switch this param order for smooth behavior in the future."),a=t.params[0],s=t.params[1]}else s=t.params[0],a=t.params[1];o=u(t.params[2]||{},{from:a,data:s}),n([t=>l.validatePersonalMessage(o,t),t=>l.processPersonalMessage(o,t)],r)}();case"eth_decryptMessage":return function(){let e=t.params[0],i=t.params[1];if(m(i)&&g(e)){let c="The eth_decryptMessage method requires params ordered ";c+="[message, address]. This was previously handled incorrectly, ",c+="and has been corrected automatically. ",console.warn(c+="Please switch this param order for smooth behavior in the future."),a=t.params[0],s=t.params[1]}else s=t.params[0],a=t.params[1];o=u(t.params[2]||{},{from:a,data:s}),n([t=>l.validateDecryptMessage(o,t),t=>l.processDecryptMessage(o,t)],r)}();case"encryption_public_key":return function(){let e=t.params[0];n([t=>l.validateEncryptionPublicKey(e,t),t=>l.processEncryptionPublicKey(e,t)],r)}();case"personal_ecRecover":return s=t.params[0],c=t.params[1],void(o=u(t.params[2]||{},{sig:c,data:s}),l.recoverPersonalSignature(o,r));case"eth_signTypedData":case"eth_signTypedData_v3":case"eth_signTypedData_v4":return function(){let e=t.params[0],i=t.params[1];g(e)?(a=e,s=i):(s=e,a=i),o=u(t.params[2]||{},{from:a,data:s}),n([t=>l.validateTypedMessage(o,t),t=>l.processTypedMessage(o,t)],r)}();case"parity_postTransaction":i=t.params[0],l.parityPostTransaction(i,r);return;case"parity_postSign":a=t.params[0],s=t.params[1],l.parityPostSign(a,s,r);return;case"parity_checkRequest":return function(){let e=t.params[0];l.parityCheckRequest(e,r)}();case"parity_defaultAccount":l.getAccounts(function(t,e){if(t)return r(t);let n=e[0]||null;r(null,n)});return;default:e();return}},d.prototype.getAccounts=function(t){t(null,[])},d.prototype.processTransaction=function(t,e){let r=this;n([e=>r.approveTransaction(t,e),(t,e)=>r.checkApproval("transaction",t,e),e=>r.finalizeAndSubmitTx(t,e)],e)},d.prototype.processSignTransaction=function(t,e){let r=this;n([e=>r.approveTransaction(t,e),(t,e)=>r.checkApproval("transaction",t,e),e=>r.finalizeTx(t,e)],e)},d.prototype.processMessage=function(t,e){let r=this;n([e=>r.approveMessage(t,e),(t,e)=>r.checkApproval("message",t,e),e=>r.signMessage(t,e)],e)},d.prototype.processPersonalMessage=function(t,e){let r=this;n([e=>r.approvePersonalMessage(t,e),(t,e)=>r.checkApproval("message",t,e),e=>r.signPersonalMessage(t,e)],e)},d.prototype.processDecryptMessage=function(t,e){let r=this;n([e=>r.approveDecryptMessage(t,e),(t,e)=>r.checkApproval("decryptMessage",t,e),e=>r.decryptMessage(t,e)],e)},d.prototype.processEncryptionPublicKey=function(t,e){let r=this;n([e=>r.approveEncryptionPublicKey(t,e),(t,e)=>r.checkApproval("encryptionPublicKey",t,e),e=>r.encryptionPublicKey(t,e)],e)},d.prototype.processTypedMessage=function(t,e){let r=this;n([e=>r.approveTypedMessage(t,e),(t,e)=>r.checkApproval("message",t,e),e=>r.signTypedMessage(t,e)],e)},d.prototype.autoApprove=function(t,e){e(null,!0)},d.prototype.checkApproval=function(t,e,r){r(e?null:Error("User denied "+t+" signature."))},d.prototype.parityPostTransaction=function(t,e){let r=this,n=r._parityRequestCount,i=`0x${n.toString(16)}`;r._parityRequestCount++,r.emitPayload({method:"eth_sendTransaction",params:[t]},function(t,e){if(t){r._parityRequests[i]={error:t};return}let n=e.result;r._parityRequests[i]=n}),e(null,i)},d.prototype.parityPostSign=function(t,e,r){let n=this,i=n._parityRequestCount,o=`0x${i.toString(16)}`;n._parityRequestCount++,n.emitPayload({method:"eth_sign",params:[t,e]},function(t,e){if(t){n._parityRequests[o]={error:t};return}let r=e.result;n._parityRequests[o]=r}),r(null,o)},d.prototype.parityCheckRequest=function(t,e){let r=this._parityRequests[t]||null;return r?r.error?e(r.error):void e(null,r):e(null,null)},d.prototype.recoverPersonalSignature=function(t,e){let r;try{r=a.recoverPersonalSignature(t)}catch(n){return e(n)}e(null,r)},d.prototype.validateTransaction=function(t,e){if(void 0===t.from)return e(Error("Undefined address - from address required to sign transaction."));this.validateSender(t.from,function(r,n){return r?e(r):n?void e():e(Error(`Unknown address - unable to sign transaction for this address: "${t.from}"`))})},d.prototype.validateMessage=function(t,e){if(void 0===t.from)return e(Error("Undefined address - from address required to sign message."));this.validateSender(t.from,function(r,n){return r?e(r):n?void e():e(Error(`Unknown address - unable to sign message for this address: "${t.from}"`))})},d.prototype.validatePersonalMessage=function(t,e){return void 0===t.from?e(Error("Undefined address - from address required to sign personal message.")):void 0===t.data?e(Error("Undefined message - message required to sign personal message.")):y(t.data)?void this.validateSender(t.from,function(r,n){return r?e(r):n?void e():e(Error(`Unknown address - unable to sign message for this address: "${t.from}"`))}):e(Error("HookedWalletSubprovider - validateMessage - message was not encoded as hex."))},d.prototype.validateDecryptMessage=function(t,e){return void 0===t.from?e(Error("Undefined address - from address required to decrypt message.")):void 0===t.data?e(Error("Undefined message - message required to decrypt message.")):y(t.data)?void this.validateSender(t.from,function(r,n){return r?e(r):n?void e():e(Error(`Unknown address - unable to decrypt message for this address: "${t.from}"`))}):e(Error("HookedWalletSubprovider - validateDecryptMessage - message was not encoded as hex."))},d.prototype.validateEncryptionPublicKey=function(t,e){this.validateSender(t,function(r,n){return r?e(r):n?void e():e(Error(`Unknown address - unable to obtain encryption public key for this address: "${t}"`))})},d.prototype.validateTypedMessage=function(t,e){return void 0===t.from?e(Error("Undefined address - from address required to sign typed data.")):void 0===t.data?e(Error("Undefined data - message required to sign typed data.")):void this.validateSender(t.from,function(r,n){return r?e(r):n?void e():e(Error(`Unknown address - unable to sign message for this address: "${t.from}"`))})},d.prototype.validateSender=function(t,e){if(!t)return e(null,!1);this.getAccounts(function(r,n){if(r)return e(r);let i=-1!==n.map(p).indexOf(t.toLowerCase());e(null,i)})},d.prototype.finalizeAndSubmitTx=function(t,e){let r=this;r.nonceLock.take(function(){n([r.fillInTxExtras.bind(r,t),r.signTransaction.bind(r),r.publishTransaction.bind(r)],function(t,n){if(r.nonceLock.leave(),t)return e(t);e(null,n)})})},d.prototype.finalizeTx=function(t,e){let r=this;r.nonceLock.take(function(){n([r.fillInTxExtras.bind(r,t),r.signTransaction.bind(r)],function(n,i){if
26(r.nonceLock.leave(),n)return e(n);e(null,{raw:i,tx:t})})})},d.prototype.publishTransaction=function(t,e){this.emitPayload({method:"eth_sendRawTransaction",params:[t]},function(t,r){if(t)return e(t);e(null,r.result)})},d.prototype.estimateGas=function(t,e){h(this.engine,t,e)},d.prototype.getGasPrice=function(t){this.emitPayload({method:"eth_gasPrice",params:[]},function(e,r){if(e)return t(e);t(null,r.result)})},d.prototype.fillInTxExtras=function(t,e){let r=t.from,n={};void 0===t.gasPrice&&(n.gasPrice=this.getGasPrice.bind(this)),void 0===t.nonce&&(n.nonce=this.emitPayload.bind(this,{method:"eth_getTransactionCount",params:[r,"pending"]})),void 0===t.gas&&(n.gas=this.estimateGas.bind(this,{from:t.from,to:t.to,value:t.value,data:t.data,gas:t.gas,gasPrice:t.gasPrice,nonce:t.nonce})),i(n,function(r,n){if(r)return e(r);let i={};n.gasPrice&&(i.gasPrice=n.gasPrice),n.nonce&&(i.nonce=n.nonce.result),n.gas&&(i.gas=n.gas),e(null,u(t,i))})}},6403:function(t,e,r){let n=r(30398);t.exports=class extends n{constructor(t){if(super(),!t)throw Error("JsonRpcEngineMiddlewareSubprovider - no constructorFn specified");this._constructorFn=t}setEngine(t){if(this.middleware)throw Error("JsonRpcEngineMiddlewareSubprovider - subprovider added to engine twice");let e=t._blockTracker,r=this._constructorFn({engine:t,provider:t,blockTracker:e});if(!r)throw Error("JsonRpcEngineMiddlewareSubprovider - _constructorFn did not return middleware");if("function"!=typeof r)throw Error("JsonRpcEngineMiddlewareSubprovider - specified middleware is not a function");this.middleware=r}handleRequest(t,e,r){let n={id:t.id};this.middleware(t,n,function(t){e((e,r,i)=>{e?(delete n.result,n.error={message:e.message||e}):n.result=r,t?t(i):i()})},function(t){if(t)return r(t);r(null,n.result)})}}},3621:function(t,e,r){var n=r(48764).Buffer;let i=r(89539).inherits,o=r(29847),s=r(21964),a=r(30398),u=r(6496).blockTagForPayload;function c(t){let e=this;e.nonceCache={}}t.exports=c,i(c,a),c.prototype.handleRequest=function(t,e,r){let i=this;switch(t.method){case"eth_getTransactionCount":var a=u(t),c=t.params[0].toLowerCase(),l=i.nonceCache[c];"pending"===a?l?r(null,l):e(function(t,e,r){if(t)return r();void 0===i.nonceCache[c]&&(i.nonceCache[c]=e),r()}):e();return;case"eth_sendRawTransaction":e(function(e,r,a){if(e)return a();var u=t.params[0];s.stripHexPrefix(u),n.from(s.stripHexPrefix(u),"hex");var c=new o(n.from(s.stripHexPrefix(u),"hex")),l="0x"+c.getSenderAddress().toString("hex").toLowerCase(),h=s.bufferToInt(c.nonce);h++;var f=h.toString(16);f.length%2&&(f="0"+f),f="0x"+f,i.nonceCache[l]=f,a()});return;case"evm_revert":i.nonceCache={},e();return;default:e();return}}},30398:function(t,e,r){let n=r(39728);function i(){}t.exports=i,i.prototype.setEngine=function(t){let e=this;e.engine||(e.engine=t,t.on("block",function(t){e.currentBlock=t}),t.on("start",function(){e.start()}),t.on("stop",function(){e.stop()}))},i.prototype.handleRequest=function(t,e,r){throw Error("Subproviders should override `handleRequest`.")},i.prototype.emitPayload=function(t,e){this.engine.sendAsync(n(t),e)},i.prototype.stop=function(){},i.prototype.start=function(){}},78191:function(t,e,r){let n=r(6403),i=r(68961);t.exports=class extends n{constructor(){super(({blockTracker:t,provider:e,engine:r})=>{let{events:n,middleware:o}=i({blockTracker:t,provider:e});return n.on("notification",t=>r.emit("data",null,t)),o})}}},39728:function(t,e,r){let n=r(88620),i=r(47529);t.exports=function(t){return i({id:n(),jsonrpc:"2.0",params:[]},t)}},28372:function(t,e,r){let n=r(39728);t.exports=function(t,e,r){t.sendAsync(n({method:"eth_estimateGas",params:[e]}),function(t,e){if(t)return"no contract code at given address"===t.message?r(null,"0xcf08"):r(t);r(null,e.result)})}},88620:function(t){t.exports=function(){return Math.floor(Number.MAX_SAFE_INTEGER*Math.random())}},6496:function(t,e,r){let n=r(67266);function i(t){return"never"!==a(t)}function o(t){var e=s(t);return e>=t.params.length?t.params:"eth_getBlockByNumber"===t.method?t.params.slice(1):t.params.slice(0,e)}function s(t){switch(t.method){case"eth_getStorageAt":return 2;case"eth_getBalance":case"eth_getCode":case"eth_getTransactionCount":case"eth_call":case"eth_estimateGas":return 1;case"eth_getBlockByNumber":return 0;default:return}}function a(t){switch(t.method){case"web3_clientVersion":case"web3_sha3":case"eth_protocolVersion":case"eth_getBlockTransactionCountByHash":case"eth_getUncleCountByBlockHash":case"eth_getCode":case"eth_getBlockByHash":case"eth_getTransactionByHash":case"eth_getTransactionByBlockHashAndIndex":case"eth_getTransactionReceipt":case"eth_getUncleByBlockHashAndIndex":case"eth_getCompilers":case"eth_compileLLL":case"eth_compileSolidity":case"eth_compileSerpent":case"shh_version":return"perma";case"eth_getBlockByNumber":case"eth_getBlockTransactionCountByNumber":case"eth_getUncleCountByBlockNumber":case"eth_getTransactionByBlockNumberAndIndex":case"eth_getUncleByBlockNumberAndIndex":return"fork";case"eth_gasPrice":case"eth_getBalance":case"eth_getStorageAt":case"eth_getTransactionCount":case"eth_call":case"eth_estimateGas":case"eth_getFilterLogs":case"eth_getLogs":case"eth_blockNumber":return"block";case"net_version":case"net_peerCount":case"net_listening":case"eth_syncing":case"eth_sign":case"eth_coinbase":case"eth_mining":case"eth_hashrate":case"eth_accounts":case"eth_sendTransaction":case"eth_sendRawTransaction":case"eth_newFilter":case"eth_newBlockFilter":case"eth_newPendingTransactionFilter":case"eth_uninstallFilter":case"eth_getFilterChanges":case"eth_getWork":case"eth_submitWork":case"eth_submitHashrate":case"db_putString":case"db_getString":case"db_putHex":case"db_getHex":case"shh_post":case"shh_newIdentity":case"shh_hasIdentity":case"shh_newGroup":case"shh_addToGroup":case"shh_newFilter":case"shh_uninstallFilter":case"shh_getFilterChanges":case"shh_getMessages":return"never"}}t.exports={cacheIdentifierForPayload:function(t,e={}){if(!i(t))return null;let{includeBlockRef:r}=e,s=r?t.params:o(t);return t.method+":"+n(s)},canCache:i,blockTagForPayload:function(t){var e=s(t);return e>=t.params.length?null:t.params[e]},paramsWithoutBlockTag:o,blockTagParamIndex:s,cacheTypeForPayload:a}},52698:function(t,e,r){let n=r(17187).EventEmitter,i=r(89539).inherits;function o(){let t=this;n.call(t),t.isLocked=!0}t.exports=o,i(o,n),o.prototype.go=function(){let t=this;t.isLocked=!1,t.emit("unlock")},o.prototype.stop=function(){let t=this;t.isLocked=!0,t.emit("lock")},o.prototype.await=function(t){this.isLocked?this.once("unlock",t):setTimeout(t)}},98355:function(t,e){"use strict";var r,n=this&&this.__extends||(r=Object.setPrototypeOf||({__proto__:[]}
26)instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(Error);e.SecurityError=i;var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(Error);e.InvalidStateError=o;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(Error);e.NetworkError=s;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e}(Error);e.SyntaxError=a},59536:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}(r(96763));var n=r(40335);e.XMLHttpRequestEventTarget=n.XMLHttpRequestEventTarget},67296:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){this.type=t,this.bubbles=!1,this.cancelable=!1,this.loaded=0,this.lengthComputable=!1,this.total=0};e.ProgressEvent=r},40335:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.listeners={}}return t.prototype.addEventListener=function(t,e){t=t.toLowerCase(),this.listeners[t]=this.listeners[t]||[],this.listeners[t].push(e.handleEvent||e)},t.prototype.removeEventListener=function(t,e){if(t=t.toLowerCase(),this.listeners[t]){var r=this.listeners[t].indexOf(e.handleEvent||e);r<0||this.listeners[t].splice(r,1)}},t.prototype.dispatchEvent=function(t){var e=t.type.toLowerCase();if(t.target=this,this.listeners[e])for(var r=0,n=this.listeners[e];r<n.length;r++)n[r].call(this,t);var i=this["on"+e];return i&&i.call(this,t),!0},t}();e.XMLHttpRequestEventTarget=r},77983:function(t,e,r){"use strict";var n,i=r(48764).Buffer,o=this&&this.__extends||(n=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])},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var s=function(t){function e(){var e=t.call(this)||this;return e._contentType=null,e._body=null,e._reset(),e}return o(e,t),e.prototype._reset=function(){this._contentType=null,this._body=null},e.prototype._setData=function(t){if(null!=t){if("string"==typeof t)0!==t.length&&(this._contentType="text/plain;charset=UTF-8"),this._body=new i(t,"utf-8");else if(i.isBuffer(t))this._body=t;else if(t instanceof ArrayBuffer){for(var e=new i(t.byteLength),r=new
26Uint8Array(t),n=0;n<t.byteLength;n++)e[n]=r[n];this._body=e}else if(t.buffer&&t.buffer instanceof ArrayBuffer){for(var e=new i(t.byteLength),o=t.byteOffset,r=new Uint8Array(t.buffer),n=0;n<t.byteLength;n++)e[n]=r[n+o];this._body=e}else throw Error("Unsupported send() data "+t)}},e.prototype._finalizeHeaders=function(t,e){this._contentType&&!e["content-type"]&&(t["Content-Type"]=this._contentType),this._body&&(t["Content-Length"]=this._body.length.toString())},e.prototype._startUpload=function(t){this._body&&t.write(this._body),t.end()},e}(r(40335).XMLHttpRequestEventTarget);e.XMLHttpRequestUpload=s},96763:function(t,e,r){"use strict";var n,i=r(34155),o=r(48764).Buffer,s=this&&this.__extends||(n=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])},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__assign||Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t};Object.defineProperty(e,"__esModule",{value:!0});var u=r(22321),c=r(78428),l=r(73461),h=r(11987),f=r(67296),d=r(98355),p=r(40335),g=r(77983),m=r(37866),y=function(t){function e(r){void 0===r&&(r={});var n=t.call(this)||this;return n.UNSENT=e.UNSENT,n.OPENED=e.OPENED,n.HEADERS_RECEIVED=e.HEADERS_RECEIVED,n.LOADING=e.LOADING,n.DONE=e.DONE,n.onreadystatechange=null,n.readyState=e.UNSENT,n.response=null,n.responseText="",n.responseType="",n.status=0,n.statusText="",n.timeout=0,n.upload=new g.XMLHttpRequestUpload,n.responseUrl="",n.withCredentials=!1,n._method=null,n._url=null,n._sync=!1,n._headers={},n._loweredHeaders={},n._mimeOverride=null,n._request=null,n._response=null,n._responseParts=null,n._responseHeaders=null,n._aborting=null,n._error=null,n._loadedBytes=0,n._totalBytes=0,n._lengthComputable=!1,n._restrictedMethods={CONNECT:!0,TRACE:!0,TRACK:!0},n._restrictedHeaders={"accept-charset":!0,"accept-encoding":!0,"access-control-request-headers":!0,"access-control-request-method":!0,connection:!0,"content-length":!0,cookie:!0,cookie2:!0,date:!0,dnt:!0,expect:!0,host:!0,"keep-alive":!0,origin:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,via:!0},n._privateHeaders={"set-cookie":!0,"set-cookie2":!0},n._userAgent="Mozilla/5.0 ("+l.type()+" "+l.arch()+") node.js/"+i.versions.node+" v8/"+i.versions.v8,n._anonymous=r.anon||!1,n}return s(e,t),e.prototype.open=function(t,r,n,i,o){if(void 0===n&&(n=!0),t=t.toUpperCase(),this._restrictedMethods[t])throw new e.SecurityError("HTTP method "+t+" is not allowed in XHR");var s=this._parseUrl(r,i,o);this.readyState===e.HEADERS_RECEIVED||(this.readyState,e.LOADING),this._method=t,this._url=s,this._sync=!n,this._headers={},this._loweredHeaders={},this._mimeOverride=null,this._setReadyState(e.OPENED),this._request=null,this._response=null,this.status=0,this.statusText="",this._responseParts=[],this._responseHeaders=null,this._loadedBytes=0,this._totalBytes=0,this._lengthComputable=!1},e.prototype.setRequestHeader=function(t,r){if(this.readyState!==e.OPENED)throw new e.InvalidStateError("XHR readyState must be OPENED");var n=t.toLowerCase();if(this._restrictedHeaders[n]||/^sec-/.test(n)||/^proxy-/.test(n)){console.warn('Refused to set unsafe header "'+t+'"');return}r=r.toString(),null!=this._loweredHeaders[n]?(t=this._loweredHeaders[n],this._headers[t]=this._headers[t]+", "+r):(this._loweredHeaders[n]=t,this._headers[t]=r)},e.prototype.send=function(t){if(this.readyState!==e.OPENED)throw new e.InvalidStateError("XHR readyState must be OPENED");if(this._request)throw new e.InvalidStateError("send() already called");switch(this._url.protocol){case"file:":return this._sendFile(t);case"http:":case"https:":return this._sendHttp(t);default:throw new e.NetworkError("Unsupported protocol "+this._url.protocol)}},e.prototype.abort=function(){null!=this._request&&(this._request.abort(),this._setError(),this._dispatchProgress("abort"),this._dispatchProgress("loadend"))},e.prototype.getResponseHeader=function(t){if(null==this._responseHeaders||null==t)return null;var e=t.toLowerCase();return this._responseHeaders.hasOwnProperty(e)?this._responseHeaders[t.toLowerCase()]:null},e.prototype.getAllResponseHeaders=function(){var t=this;return null==this._responseHeaders?"":Object.keys(this._responseHeaders).map(function(e){return e+": "+t._responseHeaders[e]}).join("\r\n")},e.prototype.overrideMimeType=function(t){if(this.readyState===e.LOADING||this.readyState===e.DONE)throw new e.InvalidStateError("overrideMimeType() not allowed in LOADING or DONE");this._mimeOverride=t.toLowerCase()},e.prototype.nodejsSet=function(t){if(this.nodejsHttpAgent=t.httpAgent||this.nodejsHttpAgent,this.nodejsHttpsAgent=t.httpsAgent||this.nodejsHttpsAgent,t.hasOwnProperty("baseUrl")){if(null!=t.baseUrl&&!h.parse(t.baseUrl,!1,!0).protocol)throw new e.SyntaxError("baseUrl must be an absolute URL");this.nodejsBaseUrl=t.baseUrl}},e.nodejsSet=function(t){e.prototype.nodejsSet(t)},e.prototype._setReadyState=function(t){this.readyState=t,this.dispatchEvent(new f.ProgressEvent("readystatechange"))},e.prototype._sendFile=function(t){throw Error("Protocol file: not implemented")},e.prototype._sendHttp=function(t){if(this._sync)throw Error("Synchronous XHR processing not implemented");t&&("GET"===this._method||"HEAD"===this._method)?(console.warn("Discarding entity body for "+this._method+" requests"),t=null):t=t||"",this.upload._setData(t),this._finalizeHeaders(),this._sendHxxpRequest()},e.prototype._sendHxxpRequest=function(){var t=this;if(this.withCredentials){var r=e.cookieJar.getCookies(m.CookieAccessInfo(this._url.hostname,this._url.pathname,"https:"===this._url.protocol)).toValueString();this._headers.cookie=this._headers.cookie2=r}var n="http:"===this._url.protocol?[u,this.nodejsHttpAgent]:[c,this.nodejsHttpsAgent],i=n[0],o=n[1],s=i.request.bind(i)({hostname:this._url.hostname,port:+this._url.port,path:this._url.path,auth:this._url.auth,method:this._method,headers:this._headers,agent:o});this._request=s,this.timeout&&s.setTimeout(this.timeout,function(){return t._onHttpTimeout(s)}),s.on("response",function(e){return t._onHttpResponse(s,e)}),s.on("error",function(e){return t._onHttpRequestError(s,e)}),this.upload._startUpload(s),this._request===s&&this._dispatchProgress("loadstart")},e.prototype._finalizeHeaders=function(){this._headers=a({},this._headers,{Connection:"keep-alive",Host:this._url.host,"User-Agent":this._userAgent},this._anonymous?{Referer:"about:blank"}:{}),this.upload._finalizeHeaders(this._headers,this._loweredHeaders)},e.prototype._onHttpResponse=function(t,r){var n=this;if(this._request===t){if(this.withCredentials&&(r.headers["set-cookie"]||r.headers["set-cookie2"])&&e.cookieJar.setCookies(r.headers["set-cookie"]||r.headers["set-cookie2"]),[301,302,303,307,308].indexOf(r.statusCode)>=0){this._url=this._parseUrl(r.headers.location),this._method="GET",this._loweredHeaders["content-type"]&&(delete this._headers[this._loweredHeaders["content-type"]],delete this._loweredHeaders["content-type"]),null!=this._headers["Content-Type"]&&delete this._headers["Content-Type"],delete this._headers["Content-Length"],this.upload._reset(),this._finalizeHeaders(),this._sendHxxpRequest();return}this._response=r,this._response.on("data",function(t){return n._onHttpResponseData(r,t)}),this._response.on("end",function(){return n._onHttpResponseEnd(r)}),this._response.on("close",function(){return n._onHttpResponseClose(r)}),this.responseUrl=this._url.href.split("#")[0],this.status=r.statusCode,this.statusText=u.STATUS_CODES[this.status],this._parseResponseHeaders(r);var i=this._responseHeaders["content-length"]||"";this._totalBytes=+i,this._lengthComputable=!!i,this._setReadyState(e.HEADERS_RECEIVED)}},e.prototype._onHttpResponseData=function(t,r){this._response===t&&(this._responseParts.push(new o(r)),this._loadedBytes+=r.length,this.readyState!==e.LOADING&&this._setReadyState(e.LOADING),this._dispatchProgress("progress"))},e.prototype._onHttpResponseEnd=function(t){this._response===t&&(this._parseResponse(),this._request=null,this._response=null,this._setReadyState(e.DONE),this._dispatchProgress("load"),this._dispatchProgress("loadend"))},e.prototype._onHttpResponseClose=function(t){if(this._response===t){var r=this._request;this._setError(),r.abort(),this._setReadyState(e.DONE),this._dispatchProgress("error"),this._dispatchProgress("loadend")}},e.prototype._onHttpTimeout=function(t){this._request===t&&(this._setError(),t.abort(),this._setReadyState(e.DONE),this._dispatchProgress("timeout"),this._dispatchProgress("loadend"))},e.prototype._onHttpRequestError=function(t,r){this._request===t&&(this._setError(),t.abort(),this._setReadyState(e.DONE),this._dispatchProgress("error"),this._dispatchProgress("loadend"))},e.prototype._dispatchProgress=function(t){var r=new e.ProgressEvent(t);r.lengthComputable=this._lengthComputable,r.loaded=this._loadedBytes,r.total=this._totalBytes,this.dispatchEvent(r)},e.prototype._setError=function(){this._request=null,this._response=null,this._responseHeaders=null,this._responseParts=null},e.prototype._parseUrl=function(t,e,r){var n=null==this.nodejsBaseUrl?t:h.resolve(this.nodejsBaseUrl,t),i=h.parse(n,!1,!0);i.hash=null;var o=(i.auth||"").split(":"),s=o[0],a=o[1];return(s||a||e||r)&&(i.auth=(e||s||"")+":"+(r||a||"")),i},e.prototype._parseResponseHeaders=function(t){for(var e in this._responseHeaders={},t.headers){var r=e.toLowerCase();this._privateHeaders[r]||(this._responseHeaders[r]=t.headers[e])}null!=this._mimeOverride&&(this._responseHeaders["content-type"]=this._mimeOverride)},e.prototype._parseResponse=function(){var t=o.concat(this._responseParts);switch(this._responseParts=null,this.responseType){case"json":this.responseText=null;try{this.response=JSON.parse(t.toString("utf-8"))}catch(e){this.response=null}return;case"buffer":this.responseText=null,this.response=t;return;case"arraybuffer":this.responseText=null;for(var r=new ArrayBuffer(t.length),n=new Uint8Array(r),i=0;i<t.length;i++)n[i]=t[i];this.response=r;return;default:try{this.responseText=t.toString(this._parseResponseEncoding())}catch(s){this.responseText=t.toString("binary")}this.response=this.responseText}},e.prototype._parseResponseEncoding=function(){return/;\s*charset=(.*)$/.exec(this._responseHeaders["content-type"]||"")[1]||"utf-8"},e.ProgressEvent=f.ProgressEvent,e.InvalidStateError=d.InvalidStateError,e.NetworkError=d.NetworkError,e.SecurityError=d.SecurityError,e.SyntaxError=d.SyntaxError,e.XMLHttpRequestUpload=g.XMLHttpRequestUpload,e.UNSENT=0,e.OPENED=1,e.HEADERS_RECEIVED=2,e.LOADING=3,e.DONE=4,e.cookieJar=m.CookieJar(),e}(p.XMLHttpRequestEventTarget);e.XMLHttpRequest=y,y.prototype.nodejsHttpAgent=u.globalAgent,y.prototype.nodejsHttpsAgent=c.globalAgent,y.prototype.nodejsBaseUrl=null},40626:function(t){"use strict";
26t.exports={i8:"3.6.3"}},18597:function(t){"use strict";t.exports={i8:"6.5.4"}},16523:function(t){"use strict";t.exports=JSON.parse('{"genesisGasLimit":{"v":5000,"d":"Gas limit of the Genesis block."},"genesisDifficulty":{"v":17179869184,"d":"Difficulty of the Genesis block."},"genesisNonce":{"v":"0x0000000000000042","d":"the geneis nonce"},"genesisExtraData":{"v":"0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa","d":"extra data "},"genesisHash":{"v":"0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3","d":"genesis hash"},"genesisStateRoot":{"v":"0xd7f8974fb5ac78d9ac099b9ad5018bedc2ce0a72dad1827a1709da30580f0544","d":"the genesis state root"},"minGasLimit":{"v":5000,"d":"Minimum the gas limit may ever be."},"gasLimitBoundDivisor":{"v":1024,"d":"The bound divisor of the gas limit, used in update calculations."},"minimumDifficulty":{"v":131072,"d":"The minimum that the difficulty may ever be."},"difficultyBoundDivisor":{"v":2048,"d":"The bound divisor of the difficulty, used in the update calculations."},"durationLimit":{"v":13,"d":"The decision boundary on the blocktime duration used to determine whether difficulty should go up or not."},"maximumExtraDataSize":{"v":32,"d":"Maximum size extra data may be after Genesis."},"epochDuration":{"v":30000,"d":"Duration between proof-of-work epochs."},"stackLimit":{"v":1024,"d":"Maximum size of VM stack allowed."},"callCreateDepth":{"v":1024,"d":"Maximum depth of call/create stack."},"tierStepGas":{"v":[0,2,3,5,8,10,20],"d":"Once per operation, for a selection of them."},"expGas":{"v":10,"d":"Once per EXP instuction."},"expByteGas":{"v":10,"d":"Times ceil(log256(exponent)) for the EXP instruction."},"sha3Gas":{"v":30,"d":"Once per SHA3 operation."},"sha3WordGas":{"v":6,"d":"Once per word of the SHA3 operation\'s data."},"sloadGas":{"v":50,"d":"Once per SLOAD operation."},"sstoreSetGas":{"v":20000,"d":"Once per SSTORE operation if the zeroness changes from zero."},"sstoreResetGas":{"v":5000,"d":"Once per SSTORE operation if the zeroness does not change from zero."},"sstoreRefundGas":{"v":15000,"d":"Once per SSTORE operation if the zeroness changes to zero."},"jumpdestGas":{"v":1,"d":"Refunded gas, once per SSTORE operation if the zeroness changes to zero."},"logGas":{"v":375,"d":"Per LOG* operation."},"logDataGas":{"v":8,"d":"Per byte in a LOG* operation\'s data."},"logTopicGas":{"v":375,"d":"Multiplied by the * of the LOG*, per LOG transaction. e.g. LOG0 incurs 0 * c_txLogTopicGas, LOG4 incurs 4 * c_txLogTopicGas."},"createGas":{"v":32000,"d":"Once per CREATE operation & contract-creation transaction."},"callGas":{"v":40,"d":"Once per CALL operation & message call transaction."},"callStipend":{"v":2300,"d":"Free gas given at beginning of call."},"callValueTransferGas":{"v":9000,"d":"Paid for CALL when the value transfor is non-zero."},"callNewAccountGas":{"v":25000,"d":"Paid for CALL when the destination address didn\'t exist prior."},"suicideRefundGas":{"v":24000,"d":"Refunded following a suicide operation."},"memoryGas":{"v":3,"d":"Times the address of the (highest referenced byte in memory + 1). NOTE: referencing happens on read, write and in instructions such as RETURN and CALL."},"quadCoeffDiv":{"v":512,"d":"Divisor for the quadratic particle of the memory cost equation."},"createDataGas":{"v":200,"d":""},"txGas":{"v":21000,"d":"Per transaction. NOTE: Not payable on data of calls between transactions."},"txCreation":{"v":32000,"d":"the cost of creating a contract via tx"},"txDataZeroGas":{"v":4,"d":"Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions."},"txDataNonZeroGas":{"v":68,"d":"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions."},"copyGas":{"v":3,"d":"Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added."},"ecrecoverGas":{"v":3000,"d":""},"sha256Gas":{"v":60,"d":""},"sha256WordGas":{"v":12,"d":""},"ripemd160Gas":{"v":600,"d":""},"ripemd160WordGas":{"v":120,"d":""},"identityGas":{"v":15,"d":""},"identityWordGas":{"v":3,"d":""},"minerReward":{"v":"5000000000000000000","d":"the amount a miner get rewarded for mining a block"},"ommerReward":{"v":"625000000000000000","d":"The amount of wei a miner of an uncle block gets for being inculded in the blockchain"},"niblingReward":{"v":"156250000000000000","d":"the amount a miner gets for inculding a uncle"},"homeSteadForkNumber":{"v":1150000,"d":"the block that the Homestead fork started at"},"homesteadRepriceForkNumber":{"v":2463000,"d":"the block that the Homestead Reprice (EIP150) fork started at"},"timebombPeriod":{"v":100000,"d":"Exponential difficulty timebomb period"},"freeBlockPeriod":{"v":2}}')}}]);
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.