PageSourceSearch

https://www.civfund.app/_next/static/chunks/775.a54f75e1d62c5eec.js

js civfund.app collected 2026-10-09 21:30:56 UTC 436,131 bytes, 6 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[775],{36098:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseWalletSDK=void 0;let i=n(95691),s=n(99105),o=n(25290),a=n(89406),u=n(3384),c=n(98543),v=n(19924),R=n(98993),U=n(26835),W=n(19744),Z=n(91974);let CoinbaseWalletSDK=class CoinbaseWalletSDK{constructor(e){var t,n,i;this._appName="",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;let u=e.linkAPIUrl||s.LINK_API_URL;void 0===e.overrideIsMetaMask?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=e.overrideIsMetaMask,this._overrideIsCoinbaseWallet=null===(t=e.overrideIsCoinbaseWallet)||void 0===t||t,this._overrideIsCoinbaseBrowser=null!==(n=e.overrideIsCoinbaseBrowser)&&void 0!==n&&n,this._diagnosticLogger=e.diagnosticLogger,this._reloadOnDisconnect=null===(i=e.reloadOnDisconnect)||void 0===i||i;let X=new URL(u),Y=`${X.protocol}//${X.host}`;if(this._storage=new a.ScopedLocalStorage(`-walletlink:${Y}`),this._storage.setItem("version",CoinbaseWalletSDK.VERSION),this.walletExtension||this.coinbaseBrowser)return;this._relayEventManager=new R.RelayEventManager;let ee=(0,o.isMobileWeb)(),et=e.uiConstructor||(e=>ee?new v.MobileRelayUI(e):new U.WalletLinkRelayUI(e)),er={linkAPIUrl:u,version:Z.LIB_VERSION,darkMode:!!e.darkMode,uiConstructor:et,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect,enableMobileWalletLink:e.enableMobileWalletLink};if(this._relay=ee?new c.MobileRelay(er):new W.WalletLinkRelay(er),this.setAppInfo(e.appName,e.appLogoUrl),e.headlessMode)return;this._relay.attachUI()}makeWeb3Provider(e="",t=1){let n=this.walletExtension;if(n)return this.isCipherProvider(n)||n.setProviderInfo(e,t),!1===this._reloadOnDisconnect&&"function"==typeof n.disableReloadOnDisconnect&&n.disableReloadOnDisconnect(),n;let i=this.coinbaseBrowser;if(i)return i;let s=this._relay;if(!s||!this._relayEventManager||!this._storage)throw Error("Relay not initialized, should never happen");return e||s.setConnectDisabled(!0),new u.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(s),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:e,chainId:t,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(e,t){var n;this._appName=e||"DApp",this._appLogoUrl=t||(0,o.getFavicon)();let i=this.walletExtension;i?this.isCipherProvider(i)||i.setAppInfo(this._appName,this._appLogoUrl):null===(n=this._relay)||void 0===n||n.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var e;let t=this===null||void 0===this?void 0:this.walletExtension;t?t.close():null===(e=this._relay)||void 0===e||e.resetAndReload()}getQrUrl(){var e,t;return null!==(t=null===(e=this._relay)||void 0===e?void 0:e.getQRCodeUrl())&&void 0!==t?t:null}getCoinbaseWalletLogo(e,t=240){return(0,i.walletLogo)(e,t)}get walletExtension(){var e;return null!==(e=window.coinbaseWalletExtension)&&void 0!==e?e:window.walletLinkExtension}get coinbaseBrowser(){var e,t;try{let n=null!==(e=window.ethereum)&&void 0!==e?e:null===(t=window.top)||void 0===t?void 0:t.ethereum;if(!n)return;if("isCoinbaseBrowser"in n&&n.isCoinbaseBrowser)return n;return}catch(e){return}}isCipherProvider(e){return"boolean"==typeof e.isCipher&&e.isCipher}};t.CoinbaseWalletSDK=CoinbaseWalletSDK,CoinbaseWalletSDK.VERSION=Z.LIB_VERSION},95691:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.walletLogo=void 0,t.walletLogo=(e,t)=>
vendor: 9,478 bytes, line 1
1{let n;switch(e){case"standard":default:return n=t,`data:image/svg+xml,%3Csvg width='${t}' height='${n}' 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 n=t,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${n}' 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 n=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${n}' 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.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return n=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${n}' 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 n=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${n}' 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 n=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${n}' 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.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`}}
1},99105:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LINK_API_URL=void 0,t.LINK_API_URL="https://www.walletlink.org"},76478:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.errorValues=t.standardErrorCodes=void 0,t.standardErrorCodes={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,unsupportedChain:4902}},t.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."},4902:{standard:"EIP-3085",message:"Unrecognized chain ID."}}},53983:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.standardErrors=void 0;let i=n(76478),s=n(55339);function getEthJsonRpcError(e,t){let[n,i]=parseOpts(t);return new EthereumRpcError(e,n||(0,s.getMessageFromCode)(e),i)}function getEthProviderError(e,t){let[n,i]=parseOpts(t);return new EthereumProviderError(e,n||(0,s.getMessageFromCode)(e),i)}function parseOpts(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){let{message:t,data:n}=e;if(t&&"string"!=typeof t)throw Error("Must specify string message.");return[t||void 0,n]}}return[]}t.standardErrors={rpc:{parse:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.parse,e),invalidRequest:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.invalidRequest,e),invalidParams:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.invalidParams,e),methodNotFound:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.methodNotFound,e),internal:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum RPC Server errors must provide single object argument.");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw Error('"code" must be an integer such that: -32099 <= code 
1<= -32005');return getEthJsonRpcError(t,e)},invalidInput:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.invalidInput,e),resourceNotFound:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.transactionRejected,e),methodNotSupported:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.methodNotSupported,e),limitExceeded:e=>getEthJsonRpcError(i.standardErrorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>getEthProviderError(i.standardErrorCodes.provider.userRejectedRequest,e),unauthorized:e=>getEthProviderError(i.standardErrorCodes.provider.unauthorized,e),unsupportedMethod:e=>getEthProviderError(i.standardErrorCodes.provider.unsupportedMethod,e),disconnected:e=>getEthProviderError(i.standardErrorCodes.provider.disconnected,e),chainDisconnected:e=>getEthProviderError(i.standardErrorCodes.provider.chainDisconnected,e),unsupportedChain:e=>getEthProviderError(i.standardErrorCodes.provider.unsupportedChain,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum Provider custom errors must provide single object argument.");let{code:t,message:n,data:i}=e;if(!n||"string"!=typeof n)throw Error('"message" must be a nonempty string');return new EthereumProviderError(t,n,i)}}};let EthereumRpcError=class EthereumRpcError extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw Error('"message" must be a nonempty string.');super(t),this.code=e,void 0!==n&&(this.data=n)}};let EthereumProviderError=class EthereumProviderError extends EthereumRpcError{constructor(e,t,n){if(!isValidEthProviderCode(e))throw Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}};function isValidEthProviderCode(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}},75068:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.standardErrors=t.standardErrorCodes=t.serializeError=t.getMessageFromCode=t.getErrorCode=void 0;let i=n(76478);Object.defineProperty(t,"standardErrorCodes",{enumerable:!0,get:function(){return i.standardErrorCodes}});let s=n(53983);Object.defineProperty(t,"standardErrors",{enumerable:!0,get:function(){return s.standardErrors}});let o=n(44321);Object.defineProperty(t,"serializeError",{enumerable:!0,get:function(){return o.serializeError}});let a=n(55339);Object.defineProperty(t,"getErrorCode",{enumerable:!0,get:function(){return a.getErrorCode}}),Object.defineProperty(t,"getMessageFromCode",{enumerable:!0,get:function(){return a.getMessageFromCode}})},44321:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeError=void 0;let i=n(34541),s=n(91974),o=n(76478),a=n(55339);function serializeError(e,t){let n=(0,a.serialize)(getErrorObject(e),{shouldIncludeStack:!0}),i=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");i.searchParams.set("version",s.LIB_VERSION),i.searchParams.set("code",n.code.toString());let o=getMethod(n.data,t);return o&&i.searchParams.set("method",o),i.searchParams.set("message",n.message),Object.assign(Object.assign({},n),{docUrl:i.href})}function getErrorObject(e){return"string"==typeof e?{message:e,code:o.standardErrorCodes.rpc.internal}:(0,i.isErrorResponse)(e)?Object.assign(Object.assign({},e),{message:e.errorMessage,code:e.errorCode,data:{method:e.method}}):e}function getMethod(e,t){let n=null==e?void 0:e.method;if(n)return n;if(void 0===t);else if("string"==typeof t)return t;else if(!Array.isArray(t))return t.method;else if(t.length>0)return t[0].method}t.serializeError=serializeError},55339:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serialize=t.getErrorCode=t.isValidCode=t.getMessageFromCode=t.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;let i=n(76478),s="Unspecified error message.";function getMessageFromCode(e,n=s){if(e&&Number.isInteger(e)){let n=e.toString();if(hasKey(i.errorValues,n))return i.errorValues[n].message;if(e>=-32099&&e<=-32e3)return t.JSON_RPC_SERVER_ERROR_MESSAGE}return n}function isValidCode(e){if(!Number.isInteger(e))return!1;let t=e.toString();return!!(i.errorValues[t]||e>=-32099&&e<=-32e3)}function getErrorCode(e){var t;return"number"==typeof e?e:isErrorWithCode(e)?null!==(t=e.code)&&void 0!==t?t:e.errorCode:void 0}function isErrorWithCode(e){return"object"==typeof e&&null!==e&&("number"==typeof e.code||"number"==typeof e.errorCode)}function serialize(e,{shouldIncludeStack:t=!1}={}){let n={};return e&&"object"==typeof e&&!Array.isArray(e)&&hasKey(e,"code")&&isValidCode(e.code)?(n.code=e.code,e.message&&"string"==typeof e.message?(n.message=e.message,hasKey(e,"data")&&(n.data=e.data)):(n.message=getMessageFromCode(n.code),n.data={originalError:assignOriginalError(e)})):(n.code=i.standardErrorCodes.rpc.internal,n.message=hasStringProperty(e,"message")?e.message:s,n.data={originalError:assignOriginalError(e)}),t&&(n.stack=hasStringProperty(e,"stack")?e.stack:void 0),n}function assignOriginalError(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function hasKey(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function hasStringProperty(e,t){return"object"==typeof e&&null!==e&&t in e&&"string"==typeof e[t]}t.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",t.getMessageFromCode=getMessageFromCode,t.isValidCode=isValidCode,t.getErrorCode=getErrorCode,t.serialize=serialize},50556:function(e,t){"use strict";var n,i;function OpaqueType(){return e=>e}function IntNumber(e){return Math.floor(e)}
1Object.defineProperty(t,"__esModule",{value:!0}),t.ProviderType=t.RegExpString=t.IntNumber=t.BigIntString=t.AddressString=t.HexString=t.OpaqueType=void 0,t.OpaqueType=OpaqueType,t.HexString=OpaqueType(),t.AddressString=OpaqueType(),t.BigIntString=OpaqueType(),t.IntNumber=IntNumber,t.RegExpString=OpaqueType(),(i=n||(t.ProviderType=n={})).CoinbaseWallet="CoinbaseWallet",i.MetaMask="MetaMask",i.Unselected=""},25290:function(e,t,n){"use strict";var i=n(67133).Buffer,s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isMobileWeb=t.getLocation=t.isInIFrame=t.createQrUrl=t.getFavicon=t.range=t.isBigNumber=t.ensureParsedJSONObject=t.ensureBN=t.ensureRegExpString=t.ensureIntNumber=t.ensureBuffer=t.ensureAddressString=t.ensureEvenLengthHexString=t.ensureHexString=t.isHexString=t.prepend0x=t.strip0x=t.has0xPrefix=t.hexStringFromIntNumber=t.intNumberFromHexString=t.bigIntStringFromBN=t.hexStringFromBuffer=t.hexStringToUint8Array=t.uint8ArrayToHex=t.randomBytesHex=void 0;let o=s(n(56662)),a=n(75068),u=n(50556),c=/^[0-9]*$/,v=/^[a-f0-9]*$/;function randomBytesHex(e){return uint8ArrayToHex(crypto.getRandomValues(new Uint8Array(e)))}function uint8ArrayToHex(e){return[...e].map(e=>e.toString(16).padStart(2,"0")).join("")}function hexStringToUint8Array(e){return new Uint8Array(e.match(/.{1,2}/g).map(e=>parseInt(e,16)))}function hexStringFromBuffer(e,t=!1){let n=e.toString("hex");return(0,u.HexString)(t?`0x${n}`:n)}function bigIntStringFromBN(e){return(0,u.BigIntString)(e.toString(10))}function intNumberFromHexString(e){return(0,u.IntNumber)(new o.default(ensureEvenLengthHexString(e,!1),16).toNumber())}function hexStringFromIntNumber(e){return(0,u.HexString)(`0x${new o.default(e).toString(16)}`)}function has0xPrefix(e){return e.startsWith("0x")||e.startsWith("0X")}function strip0x(e){return has0xPrefix(e)?e.slice(2):e}function prepend0x(e){return has0xPrefix(e)?`0x${e.slice(2)}`:`0x${e}`}function isHexString(e){if("string"!=typeof e)return!1;let t=strip0x(e).toLowerCase();return v.test(t)}function ensureHexString(e,t=!1){if("string"==typeof e){let n=strip0x(e).toLowerCase();if(v.test(n))return(0,u.HexString)(t?`0x${n}`:n)}throw a.standardErrors.rpc.invalidParams(`"${String(e)}" is not a hexadecimal string`)}function ensureEvenLengthHexString(e,t=!1){let n=ensureHexString(e,!1);return n.length%2==1&&(n=(0,u.HexString)(`0${n}`)),t?(0,u.HexString)(`0x${n}`):n}function ensureAddressString(e){if("string"==typeof e){let t=strip0x(e).toLowerCase();if(isHexString(t)&&40===t.length)return(0,u.AddressString)(prepend0x(t))}throw a.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(e)}`)}function ensureBuffer(e){if(i.isBuffer(e))return e;if("string"==typeof e){if(isHexString(e)){let t=ensureEvenLengthHexString(e,!1);return i.from(t,"hex")}return i.from(e,"utf8")}throw a.standardErrors.rpc.invalidParams(`Not binary data: ${String(e)}`)}function ensureIntNumber(e){if("number"==typeof e&&Number.isInteger(e))return(0,u.IntNumber)(e);if("string"==typeof e){if(c.test(e))return(0,u.IntNumber)(Number(e));if(isHexString(e))return(0,u.IntNumber)(new o.default(ensureEvenLengthHexString(e,!1),16).toNumber())}throw a.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}function ensureRegExpString(e){if(e instanceof RegExp)return(0,u.RegExpString)(e.toString());throw a.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(e)}`)}function ensureBN(e){if(null!==e&&(o.default.isBN(e)||isBigNumber(e)))return new o.default(e.toString(10),10);if("number"==typeof e)return new o.default(ensureIntNumber(e));if("string"==typeof e){if(c.test(e))return new o.default(e,10);if(isHexString(e))return new o.default(ensureEvenLengthHexString(e,!1),16)}throw a.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}function ensureParsedJSONObject(e){if("string"==typeof e)return JSON.parse(e);if("object"==typeof e)return e;throw a.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(e)}`)}function isBigNumber(e){if(null==e||"function"!=typeof e.constructor)return!1;let{constructor:t}=e;return"function"==typeof t.config&&"number"==typeof t.EUCLID}function range(e,t){return Array.from({length:t-e},(t,n)=>e+n)}function getFavicon(){let e=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:t,host:n}=document.location,i=e?e.getAttribute("href"):null;return!i||i.startsWith("javascript:")||i.startsWith("vbscript:")?null:i.startsWith("http://")||i.startsWith("https://")||i.startsWith("data:")?i:i.startsWith("//")?t+i:`${t}//${n}${i}`}function createQrUrl(e,t,n,i,s,o){let a=new URLSearchParams({[i?"parent-id":"id"]:e,secret:t,server:n,v:s,chainId:o.toString()}).toString(),u=`${n}/#/link?${a}`;return u}function isInIFrame(){try{return null!==window.frameElement}catch(e){return!1}}function getLocation(){try{if(isInIFrame()&&window.top)return window.top.location;return window.location}catch(e){return window.location}}function isMobileWeb(){var e;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(null===(e=null==window?void 0:window.navigator)||void 0===e?void 0:e.userAgent)}t.randomBytesHex=randomBytesHex,t.uint8ArrayToHex=uint8ArrayToHex,t.hexStringToUint8Array=hexStringToUint8Array,t.hexStringFromBuffer=hexStringFromBuffer,t.bigIntStringFromBN=bigIntStringFromBN,t.intNumberFromHexString=intNumberFromHexString,t.hexStringFromIntNumber=hexStringFromIntNumber,t.has0xPrefix=has0xPrefix,t.strip0x=strip0x,t.prepend0x=prepend0x,t.isHexString=isHexString,t.ensureHexString=ensureHexString,t.ensureEvenLengthHexString=ensureEvenLengthHexString,t.ensureAddressString=ensureAddressString,t.ensureBuffer=ensureBuffer,t.ensureIntNumber=ensureIntNumber,t.ensureRegExpString=ensureRegExpString,t.ensureBN=ensureBN,t.ensureParsedJSONObject=ensureParsedJSONObject,t.isBigNumber=isBigNumber,t.range=range,t.getFavicon=getFavicon,t.createQrUrl=createQrUrl,t.isInIFrame=isInIFrame,t.getLocation=getLocation,t.isMobileWeb=isMobileWeb},64775:function(e,t,n){"use strict";let i=n(36098),s=n(3384);n(36098),n(3384),t.default=i.CoinbaseWalletSDK,"undefined"!=typeof window&&(window.CoinbaseWalletSDK=i.CoinbaseWalletSDK,window.CoinbaseWalletProvider=s.CoinbaseWalletProvider,window.WalletLink=i.CoinbaseWalletSDK,window.WalletLinkProvider=s.CoinbaseWalletProvider)},7149:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.Cipher=void 0;let i=n(25290);let Cipher=class Cipher{constructor(e){this.secret=e}async encrypt(e){let t=this.secret;if(64!==t.length)throw Error("secret must be 256 bits");let n=crypto.getRandomValues(new Uint8Array(12)),s=await crypto.subtle.importKey("raw",(0,i.hexStringToUint8Array)(t),{name:"aes-gcm"},!1,["encrypt","decrypt"]),o=new TextEncoder,a=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:n},s,o.encode(e)),u=a.slice(a.byteLength-16),c=a.slice(0,a.byteLength-16),v=new Uint8Array(u),R=new Uint8Array(c),U=new Uint8Array([...n,...v,...R]);return(0,i.uint8ArrayToHex)(U)}async decrypt(e){let t=this.secret;if(64!==t.length)throw Error("secret must be 256 bits");return new Promise((n,s)=>{!async function(){let o=await crypto.subtle.importKey("raw",(0,i.hexStringToUint8Array)(t),{name:"aes-gcm"},!1,["encrypt","decrypt"]),a=(0,i.hexStringToUint8Array)(e),u=a.slice(0,12),c=a.slice(12,28),v=a.slice(28),R=new Uint8Array([...v,...c]),U={name:"AES-GCM",iv:new Uint8Array(u)};try{let e=await window.crypto.subtle.decrypt(U,o,R),t=new TextDecoder;n(t.decode(e))}catch(e){s(e)}}()})}};t.Cipher=Cipher},89406:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScopedLocalStorage=void 0;let ScopedLocalStorage=class ScopedLocalStorage{constructor(e){this.scope=e}setItem(e,t){localStorage.setItem(this.scopedKey(e),t)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){let e=this.scopedKey(""),t=[];for(let n=0;n<localStorage.length;n++){let i=localStorage.key(n);"string"==typeof i&&i.startsWith(e)&&t.push(i)}t.forEach(e=>localStorage.removeItem(e))}scopedKey(e){return`${this.scope}:${e}`}};t.ScopedLocalStorage=ScopedLocalStorage},38954:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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}'},19158:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esMo
1dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.injectCssReset=void 0;let s=i(n(38954));function injectCssReset(){let e=document.createElement("style");e.type="text/css",e.appendChild(document.createTextNode(s.default)),document.documentElement.appendChild(e)}t.injectCssReset=injectCssReset},3384:function(e,t,n){"use strict";var i=n(67133).Buffer,s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseWalletProvider=void 0;let o=s(n(56662)),a=n(28729),u=n(75068),c=n(25290),v=n(98543),R=n(88800),U=n(14677),W=n(34541),Z=s(n(31880)),X=n(34121),Y=n(61532),ee=n(60125),et="DefaultChainId",er="DefaultJsonRpcUrl";let CoinbaseWalletProvider=class CoinbaseWalletProvider extends a.EventEmitter{constructor(e){var t,n;super(),this._filterPolyfill=new Y.FilterPolyfill(this),this._subscriptionManager=new ee.SubscriptionManager(this),this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1,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=e.chainId,this._jsonRpcUrlFromOpts=e.jsonRpcUrl,this._overrideIsMetaMask=e.overrideIsMetaMask,this._relayProvider=e.relayProvider,this._storage=e.storage,this._relayEventManager=e.relayEventManager,this.diagnostic=e.diagnosticLogger,this.reloadOnDisconnect=!0,this.isCoinbaseWallet=null===(t=e.overrideIsCoinbaseWallet)||void 0===t||t,this.isCoinbaseBrowser=null!==(n=e.overrideIsCoinbaseBrowser)&&void 0!==n&&n,this.qrUrl=e.qrUrl;let i=this.getChainId(),s=(0,c.prepend0x)(i.toString(16));this.emit("connect",{chainIdStr:s});let o=this._storage.getItem(R.LOCAL_STORAGE_ADDRESSES_KEY);if(o){let e=o.split(" ");""!==e[0]&&(this._addresses=e.map(e=>(0,c.ensureAddressString)(e)),this.emit("accountsChanged",e))}this._subscriptionManager.events.on("notification",e=>{this.emit("message",{type:e.method,data:e.params})}),this._isAuthorized()&&this.initializeRelay(),window.addEventListener("message",e=>{var t;if(e.origin===location.origin&&e.source===window&&"walletLinkMessage"===e.data.type&&"dappChainSwitched"===e.data.data.action){let n=e.data.data.chainId,i=null!==(t=e.data.data.jsonRpcUrl)&&void 0!==t?t:this.jsonRpcUrl;this.updateProviderInfo(i,Number(n))}})}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,c.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 e;return null!==(e=this._storage.getItem(er))&&void 0!==e?e:this._jsonRpcUrlFromOpts}set jsonRpcUrl(e){this._storage.setItem(er,e)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(e,t){this.isCoinbaseBrowser||(this._chainIdFromOpts=t,this._jsonRpcUrlFromOpts=e),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(e,t){this.jsonRpcUrl=e;let n=this.getChainId();this._storage.setItem(et,t.toString(10));let i=(0,c.ensureIntNumber)(t)!==n;(i||!this.hasMadeFirstChainChangedEmission)&&(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(e,t,n,i,s,o){let a=await this.initializeRelay(),u=await a.watchAsset(e,t,n,i,s,null==o?void 0:o.toString()).promise;return!(0,W.isErrorResponse)(u)&&!!u.result}async addEthereumChain(e,t,n,i,s,o){var a,u;if((0,c.ensureIntNumber)(e)===this.getChainId())return!1;let v=await this.initializeRelay(),R=v.inlineAddEthereumChain(e.toString());this._isAuthorized()||R||await v.requestEthereumAccounts().promise;let U=await v.addEthereumChain(e.toString(),t,s,n,i,o).promise;return!(0,W.isErrorResponse)(U)&&((null===(a=U.result)||void 0===a?void 0:a.isApproved)===!0&&this.updateProviderInfo(t[0],e),(null===(u=U.result)||void 0===u?void 0:u.isApproved)===!0)}async switchEthereumChain(e){let t=await this.initializeRelay(),n=await t.switchEthereumChain(e.toString(10),this.selectedAddress||void 0).promise;if((0,W.isErrorResponse)(n)){if(!n.errorCode)return;if(n.errorCode===u.standardErrorCodes.provider.unsupportedChain)throw u.standardErrors.provider.unsupportedChain();throw u.standardErrors.provider.custom({message:n.errorMessage,code:n.errorCode})}let i=n.result;i.isApproved&&i.rpcUrl.length>0&&this.updateProviderInfo(i.rpcUrl,e)}setAppInfo(e,t){this.initializeRelay().then(n=>n.setAppInfo(e,t))}async enable(){var e;return(null===(e=this.diagnostic)||void 0===e||e.log(X.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?U.Session.hash(this._relay.session.id):void 0}),this._isAuthorized())?[...this._addresses]:await this.send("eth_requestAccounts")}async close(){let e=await this.initializeRelay();e.resetAndReload()}send(e,t){try{let n=this._send(e,t);if(n instanceof Promise)return n.catch(t=>{throw(0,u.serializeError)(t,e)})}catch(t){throw(0,u.serializeError)(t,e)}}_send(e,t){if("string"==typeof e){let n=Array.isArray(t)?t:void 0!==t?[t]:[];return this._sendRequestAsync({jsonrpc:"2.0",id:0,method:e,params:n}).then(e=>e.result)}return"function"==typeof t?this._sendAsync(e,t):Array.isArray(e)?e.map(e=>this._sendRequest(e)):this._sendRequest(e)}async sendAsync(e,t){try{return this._sendAsync(e,t).catch(t=>{throw(0,u.serializeError)(t,e)})}catch(t){return Promise.reject((0,u.serializeError)(t,e))}}async _sendAsync(e,t){if("function"!=typeof t)throw Error("callback is required");if(Array.isArray(e)){this._sendMultipleRequestsAsync(e).then(e=>t(null,e)).catch(e=>t(e,null));return}return this._sendRequestAsync(e).then(e=>t(null,e)).catch(e=>t(e,null))}async request(e){try{return this._request(e).catch(t=>{throw(0,u.serializeError)(t,e.method)})}catch(t){return Promise.reject((0,u.serializeError)(t,e.method))}}async _request(e){if(!e||"object"!=typeof e||Array.isArray(e))throw u.standardErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:e});let{method:t,params:n}=e;if("string"!=typeof t||0===t.length)throw u.standardErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:e});if(void 0!==n&&!Array.isArray(n)&&("object"!=typeof n||null===n))throw u.standardErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:e});let i=void 0===n?[]:n,s=this._relayEventManager.makeRequestId(),o=await this._sendRequestAsync({method:t,params:i,jsonrpc:"2.0",id:s});return o.result}
1async scanQRCode(e){let t=await this.initializeRelay(),n=await t.scanQRCode((0,c.ensureRegExpString)(e)).promise;if((0,W.isErrorResponse)(n))throw(0,u.serializeError)(n.errorMessage,"scanQRCode");if("string"!=typeof n.result)throw(0,u.serializeError)("result was not a string","scanQRCode");return n.result}async genericRequest(e,t){let n=await this.initializeRelay(),i=await n.genericRequest(e,t).promise;if((0,W.isErrorResponse)(i))throw(0,u.serializeError)(i.errorMessage,"generic");if("string"!=typeof i.result)throw(0,u.serializeError)("result was not a string","generic");return i.result}async connectAndSignIn(e){var t;let n;null===(t=this.diagnostic)||void 0===t||t.log(X.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::connectAndSignIn",sessionIdHash:this._relay?U.Session.hash(this._relay.session.id):void 0});try{let t=await this.initializeRelay();if(!(t instanceof v.MobileRelay))throw Error("connectAndSignIn is only supported on mobile");if(n=await t.connectAndSignIn(e).promise,(0,W.isErrorResponse)(n))throw Error(n.errorMessage)}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw u.standardErrors.provider.userRejectedRequest("User denied account authorization");throw e}if(!n.result)throw Error("accounts received is empty");let{accounts:i}=n.result;return this._setAddresses(i),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),n.result}async selectProvider(e){let t=await this.initializeRelay(),n=await t.selectProvider(e).promise;if((0,W.isErrorResponse)(n))throw(0,u.serializeError)(n.errorMessage,"selectProvider");if("string"!=typeof n.result)throw(0,u.serializeError)("result was not a string","selectProvider");return n.result}supportsSubscriptions(){return!1}subscribe(){throw Error("Subscriptions are not supported")}unsubscribe(){throw Error("Subscriptions are not supported")}disconnect(){return!0}_sendRequest(e){let t={jsonrpc:"2.0",id:e.id},{method:n}=e;if(t.result=this._handleSynchronousMethods(e),void 0===t.result)throw Error(`Coinbase Wallet does not support calling ${n} synchronously without a callback. Please provide a callback parameter to call ${n} asynchronously.`);return t}_setAddresses(e,t){if(!Array.isArray(e))throw Error("addresses is not an array");let n=e.map(e=>(0,c.ensureAddressString)(e));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses=n,this.emit("accountsChanged",this._addresses),this._storage.setItem(R.LOCAL_STORAGE_ADDRESSES_KEY,n.join(" ")))}_sendRequestAsync(e){return new Promise((t,n)=>{try{let i=this._handleSynchronousMethods(e);if(void 0!==i)return t({jsonrpc:"2.0",id:e.id,result:i});let s=this._handleAsynchronousFilterMethods(e);if(void 0!==s){s.then(n=>t(Object.assign(Object.assign({},n),{id:e.id}))).catch(e=>n(e));return}let o=this._handleSubscriptionMethods(e);if(void 0!==o){o.then(n=>t({jsonrpc:"2.0",id:e.id,result:n.result})).catch(e=>n(e));return}}catch(e){return n(e)}this._handleAsynchronousMethods(e).then(n=>n&&t(Object.assign(Object.assign({},n),{id:e.id}))).catch(e=>n(e))})}_sendMultipleRequestsAsync(e){return Promise.all(e.map(e=>this._sendRequestAsync(e)))}_handleSynchronousMethods(e){let{method:t}=e,n=e.params||[];switch(t){case"eth_accounts":return this._eth_accounts();case"eth_coinbase":return this._eth_coinbase();case"eth_uninstallFilter":return this._eth_uninstallFilter(n);case"net_version":return this._net_version();case"eth_chainId":return this._eth_chainId();default:return}}async _handleAsynchronousMethods(e){let{method:t}=e,n=e.params||[];switch(t){case"eth_requestAccounts":return this._eth_requestAccounts();case"eth_sign":return this._eth_sign(n);case"eth_ecRecover":return this._eth_ecRecover(n);case"personal_sign":return this._personal_sign(n);case"personal_ecRecover":return this._personal_ecRecover(n);case"eth_signTransaction":return this._eth_signTransaction(n);case"eth_sendRawTransaction":return this._eth_sendRawTransaction(n);case"eth_sendTransaction":return this._eth_sendTransaction(n);case"eth_signTypedData_v1":return this._eth_signTypedData_v1(n);case"eth_signTypedData_v2":return this._throwUnsupportedMethodError();case"eth_signTypedData_v3":return this._eth_signTypedData_v3(n);case"eth_signTypedData_v4":case"eth_signTypedData":return this._eth_signTypedData_v4(n);case"cbWallet_arbitrary":return this._cbwallet_arbitrary(n);case"wallet_addEthereumChain":return this._wallet_addEthereumChain(n);case"wallet_switchEthereumChain":return this._wallet_switchEthereumChain(n);case"wallet_watchAsset":return this._wallet_watchAsset(n)}let i=await this.initializeRelay();
1return i.makeEthereumJSONRPCRequest(e,this.jsonRpcUrl).catch(t=>{var n;throw(t.code===u.standardErrorCodes.rpc.methodNotFound||t.code===u.standardErrorCodes.rpc.methodNotSupported)&&(null===(n=this.diagnostic)||void 0===n||n.log(X.EVENTS.METHOD_NOT_IMPLEMENTED,{method:e.method,sessionIdHash:this._relay?U.Session.hash(this._relay.session.id):void 0})),t})}_handleAsynchronousFilterMethods(e){let{method:t}=e,n=e.params||[];switch(t){case"eth_newFilter":return this._eth_newFilter(n);case"eth_newBlockFilter":return this._eth_newBlockFilter();case"eth_newPendingTransactionFilter":return this._eth_newPendingTransactionFilter();case"eth_getFilterChanges":return this._eth_getFilterChanges(n);case"eth_getFilterLogs":return this._eth_getFilterLogs(n)}}_handleSubscriptionMethods(e){switch(e.method){case"eth_subscribe":case"eth_unsubscribe":return this._subscriptionManager.handleRequest(e)}}_isKnownAddress(e){try{let t=(0,c.ensureAddressString)(e),n=this._addresses.map(e=>(0,c.ensureAddressString)(e));return n.includes(t)}catch(e){}return!1}_ensureKnownAddress(e){var t;if(!this._isKnownAddress(e))throw null===(t=this.diagnostic)||void 0===t||t.log(X.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),Error("Unknown Ethereum address")}_prepareTransactionParams(e){let t=e.from?(0,c.ensureAddressString)(e.from):this.selectedAddress;if(!t)throw Error("Ethereum address is unavailable");this._ensureKnownAddress(t);let n=e.to?(0,c.ensureAddressString)(e.to):null,s=null!=e.value?(0,c.ensureBN)(e.value):new o.default(0),a=e.data?(0,c.ensureBuffer)(e.data):i.alloc(0),u=null!=e.nonce?(0,c.ensureIntNumber)(e.nonce):null,v=null!=e.gasPrice?(0,c.ensureBN)(e.gasPrice):null,R=null!=e.maxFeePerGas?(0,c.ensureBN)(e.maxFeePerGas):null,U=null!=e.maxPriorityFeePerGas?(0,c.ensureBN)(e.maxPriorityFeePerGas):null,W=null!=e.gas?(0,c.ensureBN)(e.gas):null,Z=e.chainId?(0,c.ensureIntNumber)(e.chainId):this.getChainId();return{fromAddress:t,toAddress:n,weiValue:s,data:a,nonce:u,gasPriceInWei:v,maxFeePerGas:R,maxPriorityFeePerGas:U,gasLimit:W,chainId:Z}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw u.standardErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw u.standardErrors.provider.unsupportedMethod({})}async _signEthereumMessage(e,t,n,i){this._ensureKnownAddress(t);try{let s=await this.initializeRelay(),o=await s.signEthereumMessage(e,t,n,i).promise;if((0,W.isErrorResponse)(o))throw Error(o.errorMessage);return{jsonrpc:"2.0",id:0,result:o.result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw u.standardErrors.provider.userRejectedRequest("User denied message signature");throw e}}async _ethereumAddressFromSignedMessage(e,t,n){let i=await this.initializeRelay(),s=await i.ethereumAddressFromSignedMessage(e,t,n).promise;if((0,W.isErrorResponse)(s))throw Error(s.errorMessage);return{jsonrpc:"2.0",id:0,result:s.result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,c.hexStringFromIntNumber)(this.getChainId())}getChainId(){let e=this._storage.getItem(et);if(!e)return(0,c.ensureIntNumber)(this._chainIdFromOpts);let t=parseInt(e,10);return(0,c.ensureIntNumber)(t)}async _eth_requestAccounts(){var e;let t;if(null===(e=this.diagnostic)||void 0===e||e.log(X.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?U.Session.hash(this._relay.session.id):void 0}),this._isAuthorized())return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});try{let e=await this.initializeRelay();if(t=await e.requestEthereumAccounts().promise,(0,W.isErrorResponse)(t))throw Error(t.errorMessage)}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw u.standardErrors.provider.userRejectedRequest("User denied account authorization");throw e}if(!t.result)throw Error("accounts received is empty");return this._setAddresses(t.result),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(e){this._requireAuthorization();let t=(0,c.ensureAddressString)(e[0]),n=(0,c.ensureBuffer)(e[1]);return this._signEthereumMessage(n,t,!1)}_eth_ecRecover(e){let t=(0,c.ensureBuffer)(e[0]),n=(0,c.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!1)}_personal_sign(e){this._requireAuthorization();let t=(0,c.ensureBuffer)(e[0]),n=(0,c.ensureAddressString)(e[1]);return this._signEthereumMessage(t,n,!0)}_personal_ecRecover(e){let t=(0,c.ensureBuffer)(e[0]),n=(0,c.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!0)}async _eth_signTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{let e=await this.initializeRelay(),n=await e.signEthereumTransaction(t).promise;if((0,W.isErrorResponse)(n))throw Error(n.errorMessage);return{jsonrpc:"2.0",id:0,result:n.result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw u.standardErrors.provider.userRejectedRequest("User denied transaction signature");throw e}}async _eth_sendRawTransaction(e){let t=(0,c.ensureBuffer)(e[0]),n=await this.initializeRelay(),i=await n.submitEthereumTransaction(t,this.getChainId()).promise;if((0,W.isErrorResponse)(i))throw Error(i.errorMessage);return{jsonrpc:"2.0",id:0,result:i.result}}async _eth_sendTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{let e=await this.initializeRelay(),n=await e.signAndSubmitEthereumTransaction(t).promise;if((0,W.isErrorResponse)(n))throw Error(n.errorMessage);return{jsonrpc:"2.0",id:0,result:n.result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw u.standardErrors.provider.userRejectedRequest("User denied transaction signature");throw e}}async _eth_signTypedData_v1(e){this._requireAuthorization();let t=(0,c.ensureParsedJSONObject)(e[0]),n=(0,c.ensureAddressString)(e[1]);this._ensureKnownAddress(n);let i=Z.default.hashForSignTypedDataLegacy({data:t}),s=JSON.stringify(t,null,2);return this._signEthereumMessage(i,n,!1,s)}async _eth_signTypedData_v3(e){this._requireAuthorization();let t=(0,c.ensureAddressString)(e[0]),n=(0,c.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let i=Z.default.hashForSignTypedData_v3({data:n}),s=JSON.stringify(n,null,2);return this._signEthereumMessage(i,t,!1,s)}async _eth_signTypedData_v4(e){this._requireAuthorization();let t=(0,c.ensureAddressString)(e[0]),n=(0,c.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let i=Z.default.hashForSignTypedData_v4({data:n}),s=JSON.stringify(n,null,2);return this._signEthereumMessage(i,t,!1,s)}async _cbwallet_arbitrary(e){let t=e[0],n=e[1];if("string"!=typeof n)throw Error("parameter must be a string");if("object"!=typeof t||null===t)throw Error("parameter must be an object");let i=await this.genericRequest(t,n);return{jsonrpc:"2.0",id:0,result:i}}async _wallet_addEthereumChain(e){var t,n,i,s;let o=e[0];if((null===(t=o.rpcUrls)||void 0===t?void 0:t.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 u.standardErrors.rpc.invalidParams("chainName is a required field");if(!o.nativeCurrency)throw u.standardErrors.rpc.invalidParams("nativeCurrency is a required field");let a=parseInt(o.chainId,16),c=await this.addEthereumChain(a,null!==(n=o.rpcUrls)&&void 0!==n?n:[],null!==(i=o.blockExplorerUrls)&&void 0!==i?i:[],o.chainName,null!==(s=o.iconUrls)&&void 0!==s?s:[],o.nativeCurrency);return c?{jsonrpc:"2.0",id:0,result:null}:{jsonrpc:"2.0",id:0,error:{code:2,message:"unable to add ethereum chain"}}}async _wallet_switchEthereumChain(e){let t=e[0];return await this.switchEthereumChain(parseInt(t.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(e){let t=Array.isArray(e)?e[0]:e;if(!t.type)throw u.standardErrors.rpc.invalidParams("Type is required");if((null==t?void 0:t.type)!=="ERC20")throw u.standardErrors.rpc.invalidParams(`Asset of type '${t.type}' is not supported`);if(!(null==t?void 0:t.options))throw u.standardErrors.rpc.invalidParams("Options are required");if(!(null==t?void 0:t.options.address))throw u.standardErrors.rpc.invalidParams("Address is required");let n=this.getChainId(),{address:i,symbol:s,image:o,decimals:a}=t.options,c=await this.watchAsset(t.type,i,s,a,o,n);return{jsonrpc:"2.0",id:0,result:c}}_eth_uninstallFilter(e){let t=(0,c.ensureHexString)(e[0]);return this._filterPolyfill.uninstallFilter(t)}async _eth_newFilter(e){let t=e[0],n=await this._filterPolyfill.newFilter(t);return{jsonrpc:"2.0",id:0,result:n}}async _eth_newBlockFilter(){let e=await this._filterPolyfill.newBlockFilter();return{jsonrpc:"2.0",id:0,result:e}}async _eth_newPendingTransactionFilter(){let e=await this._filterPolyfill.newPendingTransactionFilter();return{jsonrpc:"2.0",id:0,result:e}}_eth_getFilterChanges(e){let t=(0,c.ensureHexString)(e[0]);return this._filterPolyfill.getFilterChanges(t)}_eth_getFilterLogs(e){let t=(0,c.ensureHexString)(e[0]);return this._filterPolyfill.getFilterLogs(t)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then(e=>(e.setAccountsCallback((e,t)=>this._setAddresses(e,t)),e.setChainCallback((e,t)=>{this.updateProviderInfo(t,parseInt(e,10))}),e.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=e,e))}};t.CoinbaseWalletProvider=CoinbaseWalletProvider},34121:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.EVENTS=void 0,t.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",METHOD_NOT_IMPLEMENTED:"walletlink_sdk.method_not_implemented",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"}},61532:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filterFromParam=t.FilterPolyfill=void 0;let i=n(50556),s=n(25290),o={jsonrpc:"2.0",id:0};let FilterPolyfill=class FilterPolyfill{constructor(e){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,i.IntNumber)(1),this.REQUEST_THROTTLE_INTERVAL=1e3,this.lastFetchTimestamp=new Date(0),this.resolvers=[],this.provider=e}async newFilter(e){let t=filterFromParam(e),n=this.makeFilterId(),i=await this.setInitialCursorPosition(n,t.fromBlock);return console.info(`Installing new log filter(${n}):`,t,"initial cursor position:",i),this.logFilters.set(n,t),this.setFilterTimeout(n),(0,s.hexStringFromIntNumber)(n)}async newBlockFilter(){let e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.info(`Installing new block filter (${e}) with initial cursor position:`,t),this.blockFilters.add(e),this.setFilterTimeout(e),(0,s.hexStringFromIntNumber)(e)}async newPendingTransactionFilter(){let e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.info(`Installing new block filter (${e}) with initial cursor position:`,t),this.pendingTransactionFilters.add(e),this.setFilterTimeout(e),(0,s.hexStringFromIntNumber)(e)}uninstallFilter(e){let t=(0,s.intNumberFromHexString)(e);return console.info(`Uninstalling filter (${t})`),this.deleteFilter(t),!0}getFilterChanges(e){let t=(0,s.intNumberFromHexString)(e);return(this.timeouts.has(t)&&this.setFilterTimeout(t),this.logFilters.has(t))?this.getLogFilterChanges(t):this.blockFilters.has(t)?this.getBlockFilterChanges(t):this.pendingTransactionFilters.has(t)?this.getPendingTransactionFilterChanges(t):Promise.resolve(filterNotFoundError())}async getFilterLogs(e){let t=(0,s.intNumberFromHexString)(e),n=this.logFilters.get(t);return n?this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getLogs",params:[paramFromFilter(n)]})):filterNotFoundError()}makeFilterId(){return(0,i.IntNumber)(++this.nextFilterId)}sendAsyncPromise(e){return new Promise((t,n)=>{this.provider.sendAsync(e,(e,i)=>e?n(e):Array.isArray(i)||null==i?n(Error(`unexpected response received: ${JSON.stringify(i)}`)):void t(i))})}deleteFilter(e){console.info(`Deleting filter (${e})`),this.logFilters.delete(e),this.blockFilters.delete(e),this.pendingTransactionFilters.delete(e),this.cursors.delete(e),this.timeouts.delete(e)}async getLogFilterChanges(e){let t=this.logFilters.get(e),n=this.cursors.get(e);if(!n||!t)return filterNotFoundError();let a=await this.getCurrentBlockHeight(),u="latest"===t.toBlock?a:t.toBlock;if(n>a||n>Number(t.toBlock))return emptyResult();console.info(`Fetching logs from ${n} to ${u} for filter ${e}`);let c=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getLogs",params:[paramFromFilter(Object.assign(Object.assign({},t),{fromBlock:n,toBlock:u}))]}));if(Array.isArray(c.result)){let t=c.result.map(e=>(0,s.intNumberFromHexString)(e.blockNumber||"0x0")),o=Math.max(...t);if(o&&o>n){let t=(0,i.IntNumber)(o+1);console.info(`Moving cursor position for filter (${e}) from ${n} to ${t}`),this.cursors.set(e,t)}}return c}async getBlockFilterChanges(e){let t=this.cursors.get(e);if(!t)return filterNotFoundError();let n=await this.getCurrentBlockHeight();if(t>n)return emptyResult();console.info(`Fetching blocks from ${t} to ${n} for filter (${e})`);let a=(await Promise.all((0,s.range)(t,n+1).map(e=>this.getBlockHashByNumber((0,i.IntNumber)(e))))).filter(e=>!!e),u=(0,i.IntNumber)(t+a.length);return console.info(`Moving cursor position for filter (${e}) from ${t} to ${u}`),this.cursors.set(e,u),Object.assign(Object.assign({},o),{result:a})}async getPendingTransactionFilterChanges(e){return Promise.resolve(emptyResult())}async setInitialCursorPosition(e,t){let n=await this.getCurrentBlockHeight(),i="number"==typeof t&&t>n?t:n;return this.cursors.set(e,i),i}setFilterTimeout(e){let t=this.timeouts.get(e);t&&window.clearTimeout(t);let n=window.setTimeout(()=>{console.info(`Filter (${e}) timed out`),this.deleteFilter(e)},3e5);this.timeouts.set(e,n)}async getCurrentBlockHeight(){let e=new Date;if(e.getTime()-this.lastFetchTimestamp.getTime()>this.REQUEST_THROTTLE_INTERVAL){this.lastFetchTimestamp=e;let t=await this._getCurrentBlockHeight();
1this.currentBlockHeight=t,this.resolvers.forEach(e=>e(t)),this.resolvers=[]}return this.currentBlockHeight?this.currentBlockHeight:new Promise(e=>this.resolvers.push(e))}async _getCurrentBlockHeight(){let{result:e}=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_blockNumber",params:[]}));return(0,s.intNumberFromHexString)((0,s.ensureHexString)(e))}async getBlockHashByNumber(e){let t=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getBlockByNumber",params:[(0,s.hexStringFromIntNumber)(e),!1]}));return t.result&&"string"==typeof t.result.hash?(0,s.ensureHexString)(t.result.hash):null}};function filterFromParam(e){return{fromBlock:intBlockHeightFromHexBlockHeight(e.fromBlock),toBlock:intBlockHeightFromHexBlockHeight(e.toBlock),addresses:void 0===e.address?null:Array.isArray(e.address)?e.address:[e.address],topics:e.topics||[]}}function paramFromFilter(e){let t={fromBlock:hexBlockHeightFromIntBlockHeight(e.fromBlock),toBlock:hexBlockHeightFromIntBlockHeight(e.toBlock),topics:e.topics};return null!==e.addresses&&(t.address=e.addresses),t}function intBlockHeightFromHexBlockHeight(e){if(void 0===e||"latest"===e||"pending"===e)return"latest";if("earliest"===e)return(0,i.IntNumber)(0);if((0,s.isHexString)(e))return(0,s.intNumberFromHexString)(e);throw Error(`Invalid block option: ${String(e)}`)}function hexBlockHeightFromIntBlockHeight(e){return"latest"===e?e:(0,s.hexStringFromIntNumber)(e)}function filterNotFoundError(){return Object.assign(Object.assign({},o),{error:{code:-32e3,message:"filter not found"}})}function emptyResult(){return Object.assign(Object.assign({},o),{result:[]})}t.FilterPolyfill=FilterPolyfill,t.filterFromParam=filterFromParam},60125:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SubscriptionManager=void 0;let i=n(2704),s=n(55117),noop=()=>{};let SubscriptionManager=class SubscriptionManager{constructor(e){let t=new i.PollingBlockTracker({provider:e,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:n,middleware:o}=s({blockTracker:t,provider:e});this.events=n,this.subscriptionMiddleware=o}async handleRequest(e){let t={};return await this.subscriptionMiddleware(e,t,noop,noop),t}destroy(){this.subscriptionMiddleware.destroy()}};t.SubscriptionManager=SubscriptionManager},88800:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RelayAbstract=t.APP_VERSION_KEY=t.LOCAL_STORAGE_ADDRESSES_KEY=t.WALLET_USER_NAME_KEY=void 0;let i=n(75068);t.WALLET_USER_NAME_KEY="walletUsername",t.LOCAL_STORAGE_ADDRESSES_KEY="Addresses",t.APP_VERSION_KEY="AppVersion";let RelayAbstract=class RelayAbstract{async makeEthereumJSONRPCRequest(e,t){if(!t)throw Error("Error: No jsonRpcUrl provided");return window.fetch(t,{method:"POST",body:JSON.stringify(e),mode:"cors",headers:{"Content-Type":"application/json"}}).then(e=>e.json()).then(t=>{if(!t)throw i.standardErrors.rpc.parse({});let{error:n}=t;if(n)throw(0,i.serializeError)(n,e.method);return t})}};t.RelayAbstract=RelayAbstract},98993:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RelayEventManager=void 0;let i=n(25290);let RelayEventManager=class RelayEventManager{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let e=this._nextRequestId,t=(0,i.prepend0x)(e.toString(16)),n=this.callbacks.get(t);return n&&this.callbacks.delete(t),e}};t.RelayEventManager=RelayEventManager},14677:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Session=void 0;let i=n(71114),s=n(25290),o="session:id",a="session:secret",u="session:linked";let Session=class Session{constructor(e,t,n,o){this._storage=e,this._id=t||(0,s.randomBytesHex)(16),this._secret=n||(0,s.randomBytesHex)(32),this._key=new i.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!o}static load(e){let t=e.getItem(o),n=e.getItem(u),i=e.getItem(a);return t&&i?new Session(e,t,i,"1"===n):null}static hash(e){return new i.sha256().update(e).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this._storage.setItem(o,this._id),this._storage.setItem(a,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(u,this._linked?"1":"0")}};t.Session=Session},98543:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.MobileRelay=void 0;let i=n(25290),s=n(19744),o=n(19924);let MobileRelay=class MobileRelay extends s.WalletLinkRelay{constructor(e){var t;super(e),this._enableMobileWalletLink=null!==(t=e.enableMobileWalletLink)&&void 0!==t&&t}requestEthereumAccounts(){return this._enableMobileWalletLink?super.requestEthereumAccounts():{promise:new Promise(()=>{let e=(0,i.getLocation)();e.href=`https://go.cb-w.com/dapp?cb_url=${encodeURIComponent(e.href)}`}),cancel:()=>{}}}publishWeb3RequestEvent(e,t){if(super.publishWeb3RequestEvent(e,t),!(this._enableMobileWalletLink&&this.ui instanceof o.MobileRelayUI))return;let n=!1;switch(t.method){case"requestEthereumAccounts":case"connectAndSignIn":n=!0,this.ui.openCoinbaseWalletDeeplink(this.getQRCodeUrl());break;case"switchEthereumChain":return;default:n=!0,this.ui.openCoinbaseWalletDeeplink()}n&&window.addEventListener("blur",()=>{window.addEventListener("focus",()=>{this.connection.checkUnseenEvents()},{once:!0})},{once:!0})}handleWeb3ResponseMessage(e){super.handleWeb3ResponseMessage(e),this._enableMobileWalletLink&&this.ui instanceof o.MobileRelayUI&&this.ui.closeOpenedWindow()}connectAndSignIn(e){if(!this._enableMobileWalletLink)throw Error("connectAndSignIn is supported only when enableMobileWalletLink is on");return this.sendRequest({method:"connectAndSignIn",params:{appName:this.appName,appLogoUrl:this.appLogoUrl,domain:window.location.hostname,aud:window.location.href,version:"1",type:"eip4361",nonce:e.nonce,iat:new Date().toISOString(),chainId:`eip155:${this.dappDefaultChain}`,statement:e.statement,resources:e.resources}})}};t.MobileRelay=MobileRelay},19924:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MobileRelayUI=void 0;let i=n(53932);let MobileRelayUI=class MobileRelayUI{constructor(e){this.attached=!1,this.darkMode=!1,this.openedWindow=null,this.redirectDialog=new i.RedirectDialog,this.darkMode=e.darkMode}attach(){if(this.attached)throw Error("Coinbase Wallet SDK UI is already attached");this.redirectDialog.attach(),this.attached=!0}setConnected(e){}closeOpenedWindow(){var e;null===(e=this.openedWindow)||void 0===e||e.close(),this.openedWindow=null}redirectToCoinbaseWallet(e){let t=new URL("https://go.cb-w.com/walletlink");t.searchParams.append("redirect_url",window.location.href),e&&t.searchParams.append("wl_url",e),this.openedWindow=window.open(t.href,"cbw-opener"),this.openedWindow&&setTimeout(()=>this.closeOpenedWindow(),5e3)}openCoinbaseWalletDeeplink(e){this.redirectDialog.present({title:"Redirecting to Coinbase Wallet...",buttonText:"Open",darkMode:this.darkMode,onButtonClick:()=>{this.redirectToCoinbaseWallet(e)}}),setTimeout(()=>{this.redirectToCoinbaseWallet(e)},99)}showConnecting(e){return()=>{this.closeOpenedWindow(),this.redirectDialog.clear()}}hideRequestEthereumAccounts(){this.closeOpenedWindow(),this.redirectDialog.clear()}requestEthereumAccounts(){}addEthereumChain(){}watchAsset(){}selectProvider(){}switchEthereumChain(){}signEthereumMessage(){}signEthereumTransaction(){}submitEthereumTransaction(){}ethereumAddressFromSignedMessage(){}reloadUI(){}setStandalone(){}setConnectDisabled(){}inlineAccountsResponse(){return!1}inlineAddEthereumChain(){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}isStandalone(){return!1}};t.MobileRelayUI=MobileRelayUI},19744:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletLinkRelay=void 0;let i=n(75068),s=n(50556),o=n(25290),a=n(34121),u=n(88800),c=n(14677),v=n(41559),R=n(34541),U=n(26835);let WalletLinkRelay=class WalletLinkRelay extends u.RelayAbstract{constructor(e){var t;super(),this.accountsCallback=null,this.chainCallbackParams={chainId:"",jsonRpcUrl:""},this.chainCallback=null,this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.linkedUpdated=e=>{var t;this.isLinked=e;let n=this.storage.getItem(u.LOCAL_STORAGE_ADDRESSES_KEY);if(e&&(this.session.linked=e),this.isUnlinkedErrorState=!1,n){let i=n.split(" "),s="true"===this.storage.getItem("IsStandaloneSigning");if(""!==i[0]&&!e&&this.session.linked&&!s){this.isUnlinkedErrorState=!0;let e=this.getSessionIdHash();null===(t=this.diagnostic)||void 0===t||t.log(a.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:e})}}},this.metadataUpdated=(e,t)=>{this.storage.setItem(e,t)},this.chainUpdated=(e,t)=>{(this.chainCallbackParams.chainId!==e||this.chainCallbackParams.jsonRpcUrl!==t)&&(this.chainCallbackParams={chainId:e,jsonRpcUrl:t},this.chainCallback&&this.chainCallback(e,t))},this.accountUpdated=e=>{this.accountsCallback&&this.accountsCallback([e]),WalletLinkRelay.accountRequestCallbackIds.size>0&&(Array.from(WalletLinkRelay.accountRequestCallbackIds.values()).forEac
1h(t=>{this.invokeCallback(Object.assign(Object.assign({},{type:"WEB3_RESPONSE",id:t,response:{method:"requestEthereumAccounts",result:[e]}}),{id:t}))}),WalletLinkRelay.accountRequestCallbackIds.clear())},this.connectedUpdated=e=>{this.ui.setConnected(e)},this.resetAndReload=this.resetAndReload.bind(this),this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage,this.options=e;let{session:n,ui:i,connection:s}=this.subscribe();this._session=n,this.connection=s,this.relayEventManager=e.relayEventManager,this.diagnostic=e.diagnosticLogger,this._reloadOnDisconnect=null===(t=e.reloadOnDisconnect)||void 0===t||t,this.ui=i}subscribe(){let e=c.Session.load(this.storage)||new c.Session(this.storage).save(),{linkAPIUrl:t,diagnostic:n}=this,i=new v.WalletLinkConnection({session:e,linkAPIUrl:t,diagnostic:n,listener:this}),{version:s,darkMode:o}=this.options,a=this.options.uiConstructor({linkAPIUrl:t,version:s,darkMode:o,session:e});return i.connect(),{session:e,ui:a,connection:i}}attachUI(){this.ui.attach()}resetAndReload(){Promise.race([this.connection.setSessionMetadata("__destroyed","1"),new Promise(e=>setTimeout(()=>e(null),1e3))]).then(()=>{var e,t;let n=this.ui.isStandalone();null===(e=this.diagnostic)||void 0===e||e.log(a.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();let i=c.Session.load(this.storage);if((null==i?void 0:i.id)===this._session.id?this.storage.clear():i&&(null===(t=this.diagnostic)||void 0===t||t.log(a.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:c.Session.hash(i.id)})),this._reloadOnDisconnect){this.ui.reloadUI();return}this.accountsCallback&&this.accountsCallback([],!0);let{session:s,ui:o,connection:u}=this.subscribe();this._session=s,this.connection=u,this.ui=o,n&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.attachUI()}).catch(e=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(a.EVENTS.FAILURE,{method:"relay::resetAndReload",message:`failed to reset and reload with ${e}`,sessionIdHash:this.getSessionIdHash()})})}setAppInfo(e,t){this.appName=e,this.appLogoUrl=t}getStorageItem(e){return this.storage.getItem(e)}get session(){return this._session}setStorageItem(e,t){this.storage.setItem(e,t)}signEthereumMessage(e,t,n,i){return this.sendRequest({method:"signEthereumMessage",params:{message:(0,o.hexStringFromBuffer)(e,!0),address:t,addPrefix:n,typedDataJson:i||null}})}ethereumAddressFromSignedMessage(e,t,n){return this.sendRequest({method:"ethereumAddressFromSignedMessage",params:{message:(0,o.hexStringFromBuffer)(e,!0),signature:(0,o.hexStringFromBuffer)(t,!0),addPrefix:n}})}signEthereumTransaction(e){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,o.bigIntStringFromBN)(e.weiValue),data:(0,o.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,o.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?(0,o.bigIntStringFromBN)(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?(0,o.bigIntStringFromBN)(e.gasPriceInWei):null,gasLimit:e.gasLimit?(0,o.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:"signEthereumTransaction",params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,o.bigIntStringFromBN)(e.weiValue),data:(0,o.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,o.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?(0,o.bigIntStringFromBN)(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?(0,o.bigIntStringFromBN)(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?(0,o.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,t){return this.sendRequest({method:"submitEthereumTransaction",params:{signedTransaction:(0,o.hexStringFromBuffer)(e,!0),chainId:t}})}scanQRCode(e){return this.sendRequest({method:"scanQRCode",params:{regExp:e}})}getQRCodeUrl(){return(0,o.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(e,t){return this.sendRequest({method:"generic",params:{action:t,data:e}})}sendGenericMessage(e){return this.sendRequest(e)}sendRequest(e){let t=null,n=(0,o.randomBytesHex)(8),cancel=i=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,i),null==t||t()},i=new Promise((i,s)=>{this.ui.isStandalone()||(t=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:cancel,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(n,e=>{if(null==t||t(),(0,R.isErrorResponse)(e))return s(Error(e.errorMessage));i(e)}),this.ui.isStandalone()?this.sendRequestStandalone(n,e):this.publishWeb3RequestEvent(n,e)});return{promise:i,cancel}}setConnectDisabled(e){this.ui.setConnectDisabled(e)}setAccountsCallback(e){this.accountsCallback=e}setChainCallback(e){this.chainCallback=e}setDappDefaultChainCallback(e){this.dappDefaultChain=e,this.ui instanceof U.WalletLinkRelayUI&&this.ui.setChainId(e)}publishWeb3RequestEvent(e,t){var n;let i={type:"WEB3_REQUEST",id:e,request:t},s=c.Session.load(this.storage);null===(n=this.diagnostic)||void 0===n||n.log(a.EVENTS.WEB3_REQUEST,{eventId:i.id,method:`relay::${t.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:s?c.Session.hash(s.id):"",isSessionMismatched:((null==s?void 0:s.id)!==this._session.id).toString()}),this.publishEvent("Web3Request",i,!0).then(e=>{var n;null===(n=this.diagnostic)||void 0===n||n.log(a.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:i.id,method:`relay::${t.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:s?c.Session.hash(s.id):"",isSessionMismatched:((null==s?void 0:s.id)!==this._session.id).toString()})}).catch(e=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:i.id,response:{method:t.method,errorMessage:e.message}})})}publishWeb3RequestCanceledEvent(e){this.publishEvent("Web3RequestCanceled",{type:"WEB3_REQUEST_CANCELED",id:e},!1).then()}publishEvent(e,t,n){return this.connection.publishEvent(e,t,n)}handleWeb3ResponseMessage(e){var t;let{response:n}=e;if(null===(t=this.diagnostic)||void 0===t||t.log(a.EVENTS.WEB3_RESPONSE,{eventId:e.id,method:`relay::${n.method}`,sessionIdHash:this.getSessionIdHash()}),"requestEthereumAccounts"===n.method){WalletLinkRelay.accountRequestCallbackIds.forEach(t=>this.invokeCallback(Object.assign(Object.assign({},e),{id:t}))),WalletLinkRelay.accountRequestCallbackIds.clear();return}this.invokeCallback(e)}handleErrorResponse(e,t,n,s){var o;let a=null!==(o=null==n?void 0:n.message)&&void 0!==o?o:(0,i.getMessageFromCode)(s);this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:e,response:{method:t,errorMessage:a,errorCode:s}})}invokeCallback(e){let t=this.relayEventManager.callbacks.get(e.id);t&&(t(e.response),this.relayEventManager.callbacks.delete(e.id))}requestEthereumAccounts(){let e={method:"requestEthereumAccounts",params:{appName:this.appName,a
1ppLogoUrl:this.appLogoUrl||null}},t=(0,o.randomBytesHex)(8),cancel=n=>{this.publishWeb3RequestCanceledEvent(t),this.handleErrorResponse(t,e.method,n)},n=new Promise((n,s)=>{if(this.relayEventManager.callbacks.set(t,e=>{if(this.ui.hideRequestEthereumAccounts(),(0,R.isErrorResponse)(e))return s(Error(e.errorMessage));n(e)}),this.ui.inlineAccountsResponse())this.ui.requestEthereumAccounts({onCancel:cancel,onAccounts:e=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:t,response:{method:"requestEthereumAccounts",result:e}})}});else{let e=i.standardErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>cancel(e)})}WalletLinkRelay.accountRequestCallbackIds.add(t),this.ui.inlineAccountsResponse()||this.ui.isStandalone()||this.publishWeb3RequestEvent(t,e)});return{promise:n,cancel}}selectProvider(e){let t=(0,o.randomBytesHex)(8),n=new Promise((n,i)=>{this.relayEventManager.callbacks.set(t,e=>{if((0,R.isErrorResponse)(e))return i(Error(e.errorMessage));n(e)}),this.ui.selectProvider&&this.ui.selectProvider({onApprove:e=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:t,response:{method:"selectProvider",result:e}})},onCancel:e=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:t,response:{method:"selectProvider",result:s.ProviderType.Unselected}})},providerOptions:e})});return{cancel:e=>{this.publishWeb3RequestCanceledEvent(t),this.handleErrorResponse(t,"selectProvider",e)},promise:n}}watchAsset(e,t,n,i,s,a){let u={method:"watchAsset",params:{type:e,options:{address:t,symbol:n,decimals:i,image:s},chainId:a}},c=null,v=(0,o.randomBytesHex)(8),cancel=e=>{this.publishWeb3RequestCanceledEvent(v),this.handleErrorResponse(v,u.method,e),null==c||c()};this.ui.inlineWatchAsset()||(c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:cancel,onResetConnection:this.resetAndReload}));let U=new Promise((o,U)=>{this.relayEventManager.callbacks.set(v,e=>{if(null==c||c(),(0,R.isErrorResponse)(e))return U(Error(e.errorMessage));o(e)}),this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:()=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:v,response:{method:"watchAsset",result:!0}})},onCancel:e=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:v,response:{method:"watchAsset",result:!1}})},type:e,address:t,symbol:n,decimals:i,image:s,chainId:a}),this.ui.inlineWatchAsset()||this.ui.isStandalone()||this.publishWeb3RequestEvent(v,u)});return{cancel,promise:U}}addEthereumChain(e,t,n,i,s,a){let u={method:"addEthereumChain",params:{chainId:e,rpcUrls:t,blockExplorerUrls:i,chainName:s,iconUrls:n,nativeCurrency:a}},c=null,v=(0,o.randomBytesHex)(8),cancel=e=>{this.publishWeb3RequestCanceledEvent(v),this.handleErrorResponse(v,u.method,e),null==c||c()};this.ui.inlineAddEthereumChain(e)||(c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:cancel,onResetConnection:this.resetAndReload}));let U=new Promise((t,n)=>{this.relayEventManager.callbacks.set(v,e=>{if(null==c||c(),(0,R.isErrorResponse)(e))return n(Error(e.errorMessage));t(e)}),this.ui.inlineAddEthereumChain(e)&&this.ui.addEthereumChain({onCancel:e=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:v,response:{method:"addEthereumChain",result:{isApproved:!1,rpcUrl:""}}})},onApprove:e=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:v,response:{method:"addEthereumChain",result:{isApproved:!0,rpcUrl:e}}})},chainId:u.params.chainId,rpcUrls:u.params.rpcUrls,blockExplorerUrls:u.params.blockExplorerUrls,chainName:u.params.chainName,iconUrls:u.params.iconUrls,nativeCurrency:u.params.nativeCurrency}),this.ui.inlineAddEthereumChain(e)||this.ui.isStandalone()||this.publishWeb3RequestEvent(v,u)});return{promise:U,cancel}}switchEthereumChain(e,t){let n={method:"switchEthereumChain",params:Object.assign({chainId:e},{address:t})},s=(0,o.randomBytesHex)(8),a=new Promise((t,o)=>{this.relayEventManager.callbacks.set(s,e=>(0,R.isErrorResponse)(e)&&e.errorCode?o(i.standardErrors.provider.custom({code:e.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."})):(0,R.isErrorResponse)(e)?o(Error(e.errorMessage)):void t(e)),this.ui.switchEthereumChain({onCancel:t=>{var n;if(t){let o=null!==(n=(0,i.getErrorCode)(t))&&void 0!==n?n:i.standardErrorCodes.provider.unsupportedChain;this.handleErrorResponse(s,"switchEthereumChain",t instanceof Error?t:i.standardErrors.provider.unsupportedChain(e),o)}else this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:s,response:{method:"switchEthereumChain",result:{isApproved:!1,rpcUrl:""}}})},onApprove:e=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:s,response:{method:"switchEthereumChain",result:{isApproved:!0,rpcUrl:e}}})},chainId:n.params.chainId,address:n.params.address}),this.ui.inlineSwitchEthereumChain()||this.ui.isStandalone()||this.publishWeb3RequestEvent(s,n)});return{promise:a,cancel:e=>{this.publishWeb3RequestCanceledEvent(s),this.handleErrorResponse(s,n.method,e)}}}inlineAddEthereumChain(e){return this.ui.inlineAddEthereumChain(e)}getSessionIdHash(){return c.Session.hash(this._session.id)}sendRequestStandalone(e,t){let _cancel=n=>{this.handleErrorResponse(e,t.method,n)},onSuccess=t=>{this.handleWeb3ResponseMessage({type:"WEB3_RESPONSE",id:e,response:t})};switch(t.method){case"signEthereumMessage":this.ui.signEthereumMessage({request:t,onSuccess,onCancel:_cancel});break;case"signEthereumTransaction":this.ui.signEthereumTransaction({request:t,onSuccess,onCancel:_cancel});break;case"submitEthereumTransaction":this.ui.submitEthereumTransaction({request:t,onSuccess,onCancel:_cancel});break;case"ethereumAddressFromSignedMessage":this.ui.ethereumAddressFromSignedMessage({request:t,onSuccess});break;default:_cancel()}}};t.WalletLinkRelay=WalletLinkRelay,WalletLinkRelay.accountRequestCallbackIds=new Set},41559:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.WalletLinkConnection=void 0;let i=n(50556),s=n(7149),o=n(34121),a=n(88800),u=n(14677),c=n(59264),v=n(96445);let WalletLinkConnection=class WalletLinkConnection{constructor({session:e,linkAPIUrl:t,listener:n,diagnostic:R,WebSocketClass:U=WebSocket}){this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,i.IntNumber)(1),this._connected=!1,this._linked=!1,this.shouldFetchUnseenEventsOnConnect=!1,this.requestResolutions=new Map,this.handleSessionMetadataUpdated=e=>{if(!e)return;let t=new Map([["__destroyed",this.handleDestroyed],["EthereumAddress",this.handleAccountUpdated],["WalletUsername",this.handleWalletUsernameUpdated],["AppVersion",this.handleAppVersionUpdated],["ChainId",t=>e.JsonRpcUrl&&this.handleChainUpdated(t,e.JsonRpcUrl)]]);t.forEach((t,n)=>{let i=e[n];void 0!==i&&t(i)})},this.handleDestroyed=e=>{var t,n;"1"===e&&(null===(t=this.listener)||void 0===t||t.resetAndReload(),null===(n=this.diagnostic)||void 0===n||n.log(o.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:this.isDestroyed,sessionIdHash:u.Session.hash(this.session.id)}))},this.handleAccountUpdated=async e=>{var t,n;try{let n=await this.cipher.decrypt(e);null===(t=this.listener)||void 0===t||t.accountUpdated(n)}catch(e){null===(n=this.diagnostic)||void 0===n||n.log(o.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}},this.handleMetadataUpdated=async(e,t)=>{var n,i;try{let i=await this.cipher.decrypt(t);null===(n=this.listener)||void 0===n||n.metadataUpdated(e,i)}catch(t){null===(i=this.diagnostic)||void 0===i||i.log(o.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:e})}},this.handleWalletUsernameUpdated=async e=>{this.handleMetadataUpdated(a.WALLET_USER_NAME_KEY,e)},this.handleAppVersionUpdated=async e=>{this.handleMetadataUpdated(a.APP_VERSION_KEY,e)},this.handleChainUpdated=async(e,t)=>{var n,i;try{let i=await this.cipher.decrypt(e),s=await this.cipher.decrypt(t);null===(n=this.listener)||void 0===n||n.chainUpdated(i,s)}catch(e){null===(i=this.diagnostic)||void 0===i||i.log(o.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}},this.session=e,this.cipher=new s.Cipher(e.secret),this.diagnostic=R,this.listener=n;let W=new v.WalletLinkWebSocket(`${t}/rpc`,U);W.setConnectionStateListener(async t=>{var n;null===(n=this.diagnostic)||void 0===n||n.log(o.EVENTS.CONNECTED_STATE_CHANGE,{state:t,sessionIdHash:u.Session.hash(e.id)});let i=!1;switch(t){case v.ConnectionState.DISCONNECTED:if(!this.destroyed){let connect=async()=>{await new Promise(e=>setTimeout(e,5e3)),this.destroyed||W.connect().catch(()=>{connect()})};connect()}break;case v.ConnectionState.CONNECTED:try{await this.authenticate(),this.sendIsLinked(),this.sendGetSessionConfig(),i=!0}catch(e){}this.updateLastHeartbeat(),setInterval(()=>{this.heartbeat()},1e4),this.shouldFetchUnseenEventsOnConnect&&this.fetchUnseenEventsAPI();case v.ConnectionState.CONNECTING:}this.connected!==i&&(this.connected=i)}),W.setIncomingDataListener(t=>{var n,i,s;switch(t.type){case"Heartbeat":this.updateLastHeartbeat();return;case"IsLinkedOK":case"Linked":{let i="IsLinkedOK"===t.type?t.linked:void 0;null===(n=this.diagnostic)||void 0===n||n.log(o.EVENTS.LINKED,{sessionIdHash:u.Session.hash(e.id),linked:i,type:t.type,onlineGuests:t.onlineGuests}),this.linked=i||t.onlineGuests>0;break}case"GetSessionConfigOK":case"SessionConfigUpdated":null===(i=this.diagnostic)||void 0===i||i.log(o.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:u.Session.hash(e.id),metadata_keys:t&&t.metadata?Object.keys(t.metadata):void 0}),this.handleSessionMetadataUpdated(t.metadata);break;case"Event":this.handleIncomingEvent(t)}void 0!==t.id&&(null===(s=this.requestResolutions.get(t.id))||void 0===s||s(t))}),this.ws=W,this.http=new c.WalletLinkHTTP(t,e.id,e.key)}connect(){var e;if(this.destroyed)throw Error("instance is destroyed");null===(e=this.diagnostic)||void 0===e||e.log(o.EVENTS.STARTED_CONNECTING,{sessionIdHash:u.Session.hash(this.session.id)}),this.ws.connect()}destroy(){var e;this.destroyed=!0,this.ws.disconnect(),null===(e=this.diagnostic)||void 0===e||e.log(o.EVENTS.DISCONNECTED,{sessionIdHash:u.Session.hash(this.session.id)}),this.listener=void 0}get isDestroyed(){return this.destroyed}get connected(){return this._connected}set connected(e){var t,n;this._connected=e,e&&(null===(t=this.onceConnected)||void 0===t||t.call(this)),null===(n=this.listener)||void 0===n||n.connectedUpdated(e)}setOnceConnected(e){return new Promise(t=>{this.connected?e().then(t):this.onceConnected=()=>{e().then(t),this.onceConnected=void 0}})}get linked(){return this._linked}set linked(e){var t,n;this._linked=e,e&&(null===(t=this.onceLinked)||void 0===t||t.call(this)),null===(n=this.listener)||void 0===n||n.linkedUpdated(e)}setOnceLinked(e){return new Promise(t=>{this.linked?e().then(t):this.onceLinked=()=>{e().then(t),this.onceLinked=void 0}})}async handleIncomingEvent(e){var t,n;if("Event"===e.type&&"Web3Response"===e.event)try{let n=await this.cipher.decrypt(e.data),i=JSON.parse(n);if("WEB3_RESPONSE"!==i.type)return;null===(t=this.listener)||void 0===t||t.handleWeb3ResponseMessage(i)}catch(e){null===(n=this.diagnostic)||void 0===n||n.log(o.EVENTS.GENERAL_ER
1ROR,{message:"Had error decrypting",value:"incomingEvent"})}}async checkUnseenEvents(){if(!this.connected){this.shouldFetchUnseenEventsOnConnect=!0;return}await new Promise(e=>setTimeout(e,250));try{await this.fetchUnseenEventsAPI()}catch(e){console.error("Unable to check for unseen events",e)}}async fetchUnseenEventsAPI(){this.shouldFetchUnseenEventsOnConnect=!1;let e=await this.http.fetchUnseenEvents();e.forEach(e=>this.handleIncomingEvent(e))}async setSessionMetadata(e,t){let n={type:"SetSessionConfig",id:(0,i.IntNumber)(this.nextReqId++),sessionId:this.session.id,metadata:{[e]:t}};return this.setOnceConnected(async()=>{let e=await this.makeRequest(n);if("Fail"===e.type)throw Error(e.error||"failed to set session metadata")})}async publishEvent(e,t,n=!1){let s=await this.cipher.encrypt(JSON.stringify(Object.assign(Object.assign({},t),{origin:location.origin,relaySource:window.coinbaseWalletExtension?"injected_sdk":"sdk"}))),o={type:"PublishEvent",id:(0,i.IntNumber)(this.nextReqId++),sessionId:this.session.id,event:e,data:s,callWebhook:n};return this.setOnceLinked(async()=>{let e=await this.makeRequest(o);if("Fail"===e.type)throw Error(e.error||"failed to publish event");return e.eventId})}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>2e4){this.ws.disconnect();return}try{this.ws.sendData("h")}catch(e){}}async makeRequest(e,t=6e4){let n;let i=e.id;return this.sendData(e),Promise.race([new Promise((e,s)=>{n=window.setTimeout(()=>{s(Error(`request ${i} timed out`))},t)}),new Promise(e=>{this.requestResolutions.set(i,t=>{clearTimeout(n),e(t),this.requestResolutions.delete(i)})})])}async authenticate(){let e={type:"HostSession",id:(0,i.IntNumber)(this.nextReqId++),sessionId:this.session.id,sessionKey:this.session.key},t=await this.makeRequest(e);if("Fail"===t.type)throw Error(t.error||"failed to authentcate")}sendIsLinked(){let e={type:"IsLinked",id:(0,i.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(e)}sendGetSessionConfig(){let e={type:"GetSessionConfig",id:(0,i.IntNumber)(this.nextReqId++),sessionId:this.session.id};this.sendData(e)}};t.WalletLinkConnection=WalletLinkConnection},59264:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletLinkHTTP=void 0;let WalletLinkHTTP=class WalletLinkHTTP{constructor(e,t,n){this.linkAPIUrl=e,this.sessionId=t;let i=`${t}:${n}`;this.auth=`Basic ${btoa(i)}`}async markUnseenEventsAsSeen(e){return Promise.all(e.map(e=>fetch(`${this.linkAPIUrl}/events/${e.eventId}/seen`,{method:"POST",headers:{Authorization:this.auth}}))).catch(e=>console.error("Unabled to mark event as failed:",e))}async fetchUnseenEvents(){var e;let t=await fetch(`${this.linkAPIUrl}/events?unseen=true`,{headers:{Authorization:this.auth}});if(t.ok){let{events:n,error:i}=await t.json();if(i)throw Error(`Check unseen events failed: ${i}`);let s=null!==(e=null==n?void 0:n.filter(e=>"Web3Response"===e.event).map(e=>({type:"Event",sessionId:this.sessionId,eventId:e.id,event:e.event,data:e.data})))&&void 0!==e?e:[];return this.markUnseenEventsAsSeen(s),s}throw Error(`Check unseen events failed: ${t.status}`)}};t.WalletLinkHTTP=WalletLinkHTTP},96445:function(e,t){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.WalletLinkWebSocket=t.ConnectionState=void 0,(i=n||(t.ConnectionState=n={}))[i.DISCONNECTED=0]="DISCONNECTED",i[i.CONNECTING=1]="CONNECTING",i[i.CONNECTED=2]="CONNECTED";let WalletLinkWebSocket=class WalletLinkWebSocket{setConnectionStateListener(e){this.connectionStateListener=e}setIncomingDataListener(e){this.incomingDataListener=e}constructor(e,t=WebSocket){this.WebSocketClass=t,this.webSocket=null,this.pendingData=[],this.url=e.replace(/^http/,"ws")}async connect(){if(this.webSocket)throw Error("webSocket object is not null");return new Promise((e,t)=>{var i;let s;try{this.webSocket=s=new this.WebSocketClass(this.url)}catch(e){t(e);return}null===(i=this.connectionStateListener)||void 0===i||i.call(this,n.CONNECTING),s.onclose
1=e=>{var i;this.clearWebSocket(),t(Error(`websocket error ${e.code}: ${e.reason}`)),null===(i=this.connectionStateListener)||void 0===i||i.call(this,n.DISCONNECTED)},s.onopen=t=>{var i;if(e(),null===(i=this.connectionStateListener)||void 0===i||i.call(this,n.CONNECTED),this.pendingData.length>0){let e=[...this.pendingData];e.forEach(e=>this.sendData(e)),this.pendingData=[]}},s.onmessage=e=>{var t,n;if("h"===e.data)null===(t=this.incomingDataListener)||void 0===t||t.call(this,{type:"Heartbeat"});else try{let t=JSON.parse(e.data);null===(n=this.incomingDataListener)||void 0===n||n.call(this,t)}catch(e){}}})}disconnect(){var e;let{webSocket:t}=this;if(t){this.clearWebSocket(),null===(e=this.connectionStateListener)||void 0===e||e.call(this,n.DISCONNECTED),this.connectionStateListener=void 0,this.incomingDataListener=void 0;try{t.close()}catch(e){}}}sendData(e){let{webSocket:t}=this;if(!t){this.pendingData.push(e),this.connect();return}t.send(e)}clearWebSocket(){let{webSocket:e}=this;e&&(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}};t.WalletLinkWebSocket=WalletLinkWebSocket},34541:function(e,t){"use strict";function isErrorResponse(e){return void 0!==e.errorMessage}Object.defineProperty(t,"__esModule",{value:!0}),t.isErrorResponse=void 0,t.isErrorResponse=isErrorResponse},26835:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletLinkRelayUI=void 0;let i=n(19158),s=n(87610),o=n(41502);let WalletLinkRelayUI=class WalletLinkRelayUI{constructor(e){this.standalone=null,this.attached=!1,this.snackbar=new o.Snackbar({darkMode:e.darkMode}),this.linkFlow=new s.LinkFlow({darkMode:e.darkMode,version:e.version,sessionId:e.session.id,sessionSecret:e.session.secret,linkAPIUrl:e.linkAPIUrl,isParentConnection:!1})}attach(){if(this.attached)throw Error("Coinbase Wallet SDK UI is already attached");let e=document.documentElement,t=document.createElement("div");t.className="-cbwsdk-css-reset",e.appendChild(t),this.linkFlow.attach(t),this.snackbar.attach(t),this.attached=!0,(0,i.injectCssReset)()}setConnected(e){this.linkFlow.setConnected(e)}setChainId(e){this.linkFlow.setChainId(e)}setConnectDisabled(e){this.linkFlow.setConnectDisabled(e)}addEthereumChain(){}watchAsset(){}switchEthereumChain(){}requestEthereumAccounts(e){this.linkFlow.open({onCancel:e.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(){}signEthereumTransaction(){}submitEthereumTransaction(){}ethereumAddressFromSignedMessage(){}showConnecting(e){let t;return t=e.isUnlinkedErrorState?{autoExpand:!0,message:"Connection lost",menuItems:[{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:e.onResetConnection}]}:{message:"Confirm on phone",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:e.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:e.onResetConnection}]},this.snackbar.presentItem(t)}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(e){this.standalone=e}isStandalone(){var e;return null!==(e=this.standalone)&&void 0!==e&&e}};t.WalletLinkRelayUI=WalletLinkRelayUI},69729:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.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;border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{background:#001033;color:#588af5}.-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}"},42823:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseWalletSteps=t.ConnectContent=void 0;let s=i(n(50348)),o=n(88049),a=n(25290),u=n(91974),c=n(42583),v=n(97013),R=n(15446),U=n(84759),W=n(47812),Z=i(n(69729)),X={title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",steps:CoinbaseWalletSteps},makeIconColor=e=>"light"===e?"#FFFFFF":"#0A0B0D";function ConnectContent(e){let{theme:t}=e,n=(0,a.createQrUrl)(e.sessionId,e.sessionSecret,e.linkAPIUrl,e.isParentConnection,e.version,e.chainId),i=X.steps;return(0,o.h)("div",{"data-testid":"connect-content",className:(0,s.default)("-cbwsdk-connect-content",t)},(0,o.h)("style",null,Z.default),(0,o.h)("div",{className:"-cbwsdk-connect-content-header"},(0,o.h)("h2",{className:(0,s.default)("-cbwsdk-connect-content-heading",t)},"Scan to connect with our mobile app"),e.onCancel&&(0,o.h)("button",{type:"button",className:"-cbwsdk-cancel-button",onClick:e.onCancel},(0,o.h)(c.CloseIcon,{fill:"light"===t?"#0A0B0D":"#FFFFFF"}))),(0,o.h)("div",{className:"-cbwsdk-connect-content-layout"},(0,o.h)("div",{className:"-cbwsdk-connect-content-column-left"}
1,(0,o.h)(ConnectItem,{title:X.title,description:X.description,theme:t})),(0,o.h)("div",{className:"-cbwsdk-connect-content-column-right"},(0,o.h)("div",{className:"-cbwsdk-connect-content-qr-wrapper"},(0,o.h)(U.QRCode,{content:n,width:200,height:200,fgColor:"#000",bgColor:"transparent"}),(0,o.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:u.LIB_VERSION}),(0,o.h)("input",{type:"hidden",value:n})),(0,o.h)(i,{theme:t}),!e.isConnected&&(0,o.h)("div",{"data-testid":"connecting-spinner",className:(0,s.default)("-cbwsdk-connect-content-qr-connecting",t)},(0,o.h)(W.Spinner,{size:36,color:"dark"===t?"#FFF":"#000"}),(0,o.h)("p",null,"Connecting...")))))}function ConnectItem({title:e,description:t,theme:n}){return(0,o.h)("div",{className:(0,s.default)("-cbwsdk-connect-item",n)},(0,o.h)("div",null,(0,o.h)(v.CoinbaseWalletRound,null)),(0,o.h)("div",{className:"-cbwsdk-connect-item-copy-wrapper"},(0,o.h)("h3",{className:"-cbwsdk-connect-item-title"},e),(0,o.h)("p",{className:"-cbwsdk-connect-item-description"},t)))}function CoinbaseWalletSteps({theme:e}){return(0,o.h)("ol",{className:"-cbwsdk-wallet-steps"},(0,o.h)("li",{className:(0,s.default)("-cbwsdk-wallet-steps-item",e)},(0,o.h)("div",{className:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,o.h)("li",{className:(0,s.default)("-cbwsdk-wallet-steps-item",e)},(0,o.h)("div",{className:"-cbwsdk-wallet-steps-item-wrapper"},(0,o.h)("span",null,"Tap ",(0,o.h)("strong",null,"Scan")," "),(0,o.h)("span",{className:(0,s.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",e)},(0,o.h)(R.QRCodeIcon,{fill:makeIconColor(e)})))))}t.ConnectContent=ConnectContent,t.CoinbaseWalletSteps=CoinbaseWalletSteps},98586:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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}
1.-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}"},85551:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectDialog=void 0;let s=i(n(50348)),o=n(88049),a=n(87060),u=n(42823),c=n(75460),v=i(n(98586));t.ConnectDialog=e=>{let{isOpen:t,darkMode:n}=e,[i,R]=(0,a.useState)(!t),[U,W]=(0,a.useState)(!t);(0,a.useEffect)(()=>{let e=[window.setTimeout(()=>{W(!t)},10)];return t?R(!1):e.push(window.setTimeout(()=>{R(!0)},360)),()=>{e.forEach(window.clearTimeout)}},[t]);let Z=n?"dark":"light";return(0,o.h)("div",{class:(0,s.default)("-cbwsdk-connect-dialog-container",i&&"-cbwsdk-connect-dialog-container-hidden")},(0,o.h)("style",null,v.default),(0,o.h)("div",{class:(0,s.default)("-cbwsdk-connect-dialog-backdrop",Z,U&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,o.h)("div",{class:"-cbwsdk-connect-dialog"},(0,o.h)("div",{class:(0,s.default)("-cbwsdk-connect-dialog-box",U&&"-cbwsdk-connect-dialog-box-hidden")},e.connectDisabled?null:(0,o.h)(u.ConnectContent,{theme:Z,version:e.version,sessionId:e.sessionId,sessionSecret:e.sessionSecret,linkAPIUrl:e.linkAPIUrl,isConnected:e.isConnected,isParentConnection:e.isParentConnection,chainId:e.chainId,onCancel:e.onCancel}),(0,o.h)(c.TryExtensionContent,{theme:Z}))))}},87610:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkFlow=void 0;let i=n(88049),s=n(85551);let LinkFlow=class LinkFlow{constructor(e){this.connected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=e.darkMode,this.version=e.version,this.sessionId=e.sessionId,this.sessionSecret=e.sessionSecret,this.linkAPIUrl=e.linkAPIUrl,this.isParentConnection=e.isParentConnection}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",e.appendChild(this.root),this.render()}setConnected(e){this.connected!==e&&(this.connected=e,this.render())}setChainId(e){this.chainId!==e&&(this.chainId=e,this.render())}detach(){var e;this.root&&((0,i.render)(null,this.root),null===(e=this.root.parentElement)||void 0===e||e.removeChild(this.root))}setConnectDisabled(e){this.connectDisabled=e}open(e){this.isOpen=!0,this.onCancel=e.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){this.root&&(0,i.render)((0,i.h)(s.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.connected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)}};t.LinkFlow=LinkFlow},84759:function(e,t,n){"use strict";var i=n(67133).Buffer,s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.QRCode=void 0;let o=n(88049),a=n(87060),u=s(n(49204));t.QRCode=e=>{let[t,n]=(0,a.useState)("");return(0,a.useEffect)(()=>{var t,s;let o=new u.default({content:e.content,background:e.bgColor||"#ffffff",color:e.fgColor||"#000000",container:"svg",ecl:"M",width:null!==(t=e.width)&&void 0!==t?t:256,height:null!==(s=e.height)&&void 0!==s?s:256,padding:0,image:e.image}),a=i.from(o.svg(),"utf8").toString("base64");n(`data:image/svg+xml;base64,${a}`)},[e.bgColor,e.content,e.fgColor,e.height,e.image,e.width]),t?(0,o.h)("img",{src:t,alt:"QR Code"}):null}},36525:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s;background-color:rgba(10,11,13,.5)}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop-hidden{opacity:0}
1.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box{display:block;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);padding:20px;border-radius:8px;background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box p{display:block;font-weight:400;font-size:14px;line-height:20px;padding-bottom:12px;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box button{appearance:none;border:none;background:none;color:#0052ff;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark{background-color:#0a0b0d;color:#fff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark button{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light{background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light button{color:#0052ff}"},53932:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RedirectDialog=void 0;let s=i(n(50348)),o=n(88049),a=n(19158),u=n(58740),c=i(n(36525));let RedirectDialog=class RedirectDialog{constructor(){this.root=null}attach(){let e=document.documentElement;this.root=document.createElement("div"),this.root.className="-cbwsdk-css-reset",e.appendChild(this.root),(0,a.injectCssReset)()}present(e){this.render(e)}clear(){this.render(null)}render(e){this.root&&((0,o.render)(null,this.root),e&&(0,o.render)((0,o.h)(RedirectDialogContent,Object.assign({},e,{onDismiss:()=>{this.clear()}})),this.root))}};t.RedirectDialog=RedirectDialog;let RedirectDialogContent=({title:e,buttonText:t,darkMode:n,onButtonClick:i,onDismiss:a})=>(0,o.h)(u.SnackbarContainer,{darkMode:n},(0,o.h)("div",{class:"-cbwsdk-redirect-dialog"},(0,o.h)("style",null,c.default),(0,o.h)("div",{class:"-cbwsdk-redirect-dialog-backdrop",onClick:a}),(0,o.h)("div",{class:(0,s.default)("-cbwsdk-redirect-dialog-box",n?"dark":"light")},(0,o.h)("p",null,e),(0,o.h)("button",{onClick:i},t))))},42878:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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}
1.-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}"},41502:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SnackbarInstance=t.SnackbarContainer=t.Snackbar=void 0;let s=i(n(50348)),o=n(88049),a=n(87060),u=i(n(42878));let Snackbar=class Snackbar{constructor(e){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=e.darkMode}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",e.appendChild(this.root),this.render()}presentItem(e){let t=this.nextItemKey++;return this.items.set(t,e),this.render(),()=>{this.items.delete(t),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,o.render)((0,o.h)("div",null,(0,o.h)(t.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([e,n])=>(0,o.h)(t.SnackbarInstance,Object.assign({},n,{key:e}))))),this.root)}};t.Snackbar=Snackbar,t.SnackbarContainer=e=>(0,o.h)("div",{class:(0,s.default)("-cbwsdk-snackbar-container")},(0,o.h)("style",null,u.default),(0,o.h)("div",{class:"-cbwsdk-snackbar"},e.children)),t.SnackbarInstance=({autoExpand:e,message:t,menuItems:n})=>{let[i,u]=(0,a.useState)(!0),[c,v]=(0,a.useState)(null!=e&&e);return(0,a.useEffect)(()=>{let e=[window.setTimeout(()=>{u(!1)},1),window.setTimeout(()=>{v(!0)},1e4)];return()=>{e.forEach(window.clearTimeout)}}),(0,o.h)("div",{class:(0,s.default)("-cbwsdk-snackbar-instance",i&&"-cbwsdk-snackbar-instance-hidden",c&&"-cbwsdk-snackbar-instance-expanded")},(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:()=>{v(!c)}},(0,o.h)("img",{src:"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"},t),(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"}))),n&&n.length>0&&(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},n.map((e,t)=>(0,o.h)("div",{class:(0,s.default)("-cbwsdk-snackbar-instance-menu-item",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:e.onClick,key:t},(0,o.h)("svg",{width:e.svgWidth,height:e.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{"fill-rule":e.defaultFillRule,"clip-rule":e.defaultClipRule,d:e.path,fill:"#AAAAAA"})),(0,o.h)("span",{class:(0,s.default)("-cbwsdk-snackbar-instance-menu-item-info",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},e.info)))))}},58740:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,s)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),s(n(41502),t)},80611:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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)}}"},47812:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Spinner=void 0;let s=n(88049),o=i(n(80611));t.Spinner=e=>{var t;let n=null!==(t=e.size)&&void 0!==t?t:64,i=e.color||"#000";return(0,s.h)("div",{class:"-cbwsdk-spinner"},(0,s.h)("style",null,o.default),(0,s.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:n,height:n}},(0,s.h)("circle",{style:{cx:50,cy:50,r:45,stroke:i}})))}},96621:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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}"},75460:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esMo
1dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TryExtensionContent=void 0;let s=i(n(50348)),o=n(88049),a=n(87060),u=n(88257),c=n(39576),v=n(30134),R=i(n(96621));function TryExtensionContent({theme:e}){let[t,n]=(0,a.useState)(!1),i=(0,a.useCallback)(()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")},[]),U=(0,a.useCallback)(()=>{t?window.location.reload():(i(),n(!0))},[i,t]);return(0,o.h)("div",{class:(0,s.default)("-cbwsdk-try-extension",e)},(0,o.h)("style",null,R.default),(0,o.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,o.h)("h3",{class:(0,s.default)("-cbwsdk-try-extension-heading",e)},"Or try the Coinbase Wallet browser extension"),(0,o.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,o.h)("button",{class:(0,s.default)("-cbwsdk-try-extension-cta",e),onClick:U},t?"Refresh":"Install"),(0,o.h)("div",null,!t&&(0,o.h)(u.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:"light"===e?"#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,s.default)("-cbwsdk-try-extension-list-item-icon",e)},(0,o.h)(c.LaptopIcon,{fill:"light"===e?"#0A0B0D":"#FFFFFF"}))),(0,o.h)("div",{class:(0,s.default)("-cbwsdk-try-extension-list-item-copy",e)},"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,s.default)("-cbwsdk-try-extension-list-item-icon",e)},(0,o.h)(v.SafeIcon,{fill:"light"===e?"#0A0B0D":"#FFFFFF"}))),(0,o.h)("div",{class:(0,s.default)("-cbwsdk-try-extension-list-item-copy",e)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}t.TryExtensionContent=TryExtensionContent},88257:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowLeftIcon=void 0;let i=n(88049);function ArrowLeftIcon(e){return(0,i.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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"}))}t.ArrowLeftIcon=ArrowLeftIcon},42583:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CloseIcon=void 0;let i=n(88049);function CloseIcon(e){return(0,i.h)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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"}))}t.CloseIcon=CloseIcon},97013:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseWalletRound=void 0;let i=n(88049);function CoinbaseWalletRound(e){return(0,i.h)("svg",Object.assign({width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.h)("circle",{cx:"14",cy:"14",r:"14",fill:"#0052FF"}),(0,i.h)("path",{d:"M23.8521 14.0003C23.8521 19.455 19.455 23.8521 14.0003 23.8521C8.54559 23.8521 4.14844 19.455 4.14844 14.0003C4.14844 8.54559 8.54559 4.14844 14.0003 4.14844C19.455 4.14844 23.8521 8.54559 23.8521 14.0003Z",fill:"white"}),(0,i.h)("path",{d:"M11.1855 12.5042C11.1855 12.0477 11.1855 11.7942 11.2835 11.642C11.3814 11.4899 11.4793 11.3377 11.6261 11.287C11.8219 11.1855 12.0178 11.1855 12.5073 11.1855H15.4934C15.983 11.1855 16.1788 11.1855 16.3746 11.287C16.5215 11.3884 16.6683 11.4899 16.7173 11.642C16.8152 11.8449 16.8152 12.0477 16.8152 12.5042V15.4965C16.8152 15.953 16.8152 16.2066 16.7173 16.3587C16.6194 16.5109 16.5215 16.663 16.3746 16.7137C16.1788 16.8152 15.983 16.8152 15.4934 16.8152H12.5073C12.0178 16.8152 11.8219 16.8152 11.6261 16.7137C11.4793 16.6123 11.3324 16.5109 11.2835 16.3587C11.1855 16.1558 11.1855 15.953 11.1855 15.4965V12.5042Z",fill:"#0052FF"}))}t.CoinbaseWalletRound=CoinbaseWalletRound},39576:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.LaptopIcon=void 0;let i=n(88049);function LaptopIcon(e){return(0,i.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.h)("path",{d:"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z"}),(0,i.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"}))}t.LaptopIcon=LaptopIcon},15446:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QRCodeIcon=void 0;let i=n(88049);function QRCodeIcon(e){return(0,i.h)("svg",Object.assign({width:"18",height:"18",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.h)("path",{d:"M3 3V8.99939L5 8.99996V5H9V3H3Z"}),(0,i.h)("path",{d:"M15 21L21 21V15.0006L19 15V19L15 19V21Z"}),(0,i.h)("path",{d:"M21 9H19V5H15.0006L15 3H21V9Z"}),(0,i.h)("path",{d:"M3 15V21H8.99939L8.99996 19H5L5 15H3Z"}))}t.QRCodeIcon=QRCodeIcon},30134:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SafeIcon=void 0;let i=n(88049);function SafeIcon(e){return(0,i.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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"}))}t.SafeIcon=SafeIcon},5865:function(e,t,n){var i=n(67133).Buffer;let s=n(59942),o=n(56662);function elementaryName(e){if(e.startsWith("int["))return"int256"+e.slice(3);if("int"===e)return"int256";if(e.startsWith("uint["))return"uint256"+e.slice(4);if("uint"===e)return"uint256";if(e.startsWith("fixed["))return"fixed128x128"+e.slice(5);if("fixed"===e)return"fixed128x128";if(e.startsWith("ufixed["))return"ufixed128x128"+e.slice(6);else if("ufixed"===e)return"ufixed128x128";return e}function parseTypeN(e){return parseInt(/^\D+(\d+)$/.exec(e)[1],10)}function parseTypeNxM(e){var t=/^\D+(\d+)x(\d+)$/.exec(e);return[parseInt(t[1],10),parseInt(t[2],10)]}function parseTypeArray(e){var t=e.match(/(.*)\[(.*?)\]$/);return t?""===t[2]?"dynamic":parseInt(t[2],10):null}function parseNumber(e){var t=typeof e;if("string"===t)return s.isHexString(e)?new o(s.stripHexPrefix(e),16):new o(e,10);if("number"===t)return new o(e);if(e.toArray)return e;throw Error("Argument is not a number")}function encodeSingle(e,t){var n,a,u,c;if("address"===e)return encodeSingle("uint160",parseNumber(t));if("bool"===e)return encodeSingle("uint8",t?1:0);if("string"===e)return encodeSingle("bytes",new i(t,"utf8"));if(isArray(e)){if(void 0===t.length)throw Error("Not an array?");if("dynamic"!==(n=parseTypeArray(e))&&0!==n&&t.length>n)throw Error("Elements exceed array size: "+n);for(c in u=[],e=e.slice(0,e.lastIndexOf("[")),"string"==typeof t&&(t=JSON.parse(t)),t)u.push(encodeSingle(e,t[c]));if("dynamic"===n){var v=encodeSingle("uint256",t.length);u.unshift(v)}return i.concat(u)}if("bytes"===e)return t=new i(t),u=i.concat([encodeSingle("uint256",t.length),t]),t.length%32!=0&&(u=i.concat([u,s.zeros(32-t.length%32)])),u;if(e.startsWith("bytes")){if((n=parseTypeN(e))<1||n>32)throw Error("Invalid bytes<N> width: "+n);return s.setLengthRight(t,32)}if(e.startsWith("uint")){if((n=parseTypeN(e))%8||n<8||n>256)throw Error("Invalid uint<N> width: "+n);if((a=parseNumber(t)).bitLength()>n)throw Error("Supplied uint exceeds width: "+n+" vs "+a.bitLength());if(a<0)throw Error("Supplied uint is negative");return a.toArrayLike(i,"be",32)}else if(e.startsWith("int")){if((n=parseTypeN(e))%8||n<8||n>256)throw Error("Invalid int<N> width: "+n);if((a=parseNumber(t)).bitLength()>n)throw Error("Supplied int exceeds width: "+n+" vs "+a.bitLength());return a.toTwos(256).toArrayLike(i,"be",32)}else if(e.startsWith("ufixed")){if(n=parseTypeNxM(e),(a=parseNumber(t))<0)throw Error("Supplied ufixed is negative");return encodeSingle("uint256",a.mul(new o(2).pow(new o(n[1]))))}else if(e.startsWith("fixed"))return n=parseTypeNxM(e),encodeSingle("int256",parseNumber(t).mul(new o(2).pow(new o(n[1]))));throw Error("Unsupported or invalid type: "+e)}function isDynamic(e){return"string"===e||"bytes"===e||"dynamic"===parseTypeArray(e)}function isArray(e){return e.lastIndexOf("]")===e.length-1}function rawEncode(e,t){var n=[],s=[],o=32*e.length;for(var a in e){var u=elementaryName(e[a]),c=encodeSingle(u,t[a]);isDynamic(u)?(n.push(encodeSingle("uint256",o)),s.push(c),o+=c.length):n.push(c)}return i.concat(n.concat(s))}function solidityPack(e,t){if(e.length!==t.length)throw Error("Number of types are not matching the values");for(var n,o,a=[],u=0;u<e.length;u++){var c=elementaryName(e[u]),v=t[u];if("bytes"===c)a.push(v);else if("string"===c)a.push(new i(v,"utf8"));else if("bool"===c)a.push(new i(v?"01":"00","hex"));else if("address"===c)a.push(s.setLength(v,20));else if(c.startsWith("bytes")){if((n=parseTypeN(c))<1||n>32)throw Error("Invalid bytes<N> width: "+n);a.push(s.setLengthRight(v,n))}else if(c.startsWith("uint")){if((n=parseTypeN(c))%8||n<8||n>256)throw Error("Invalid uint<N> width: "+n);if((o=parseNumber(v)).bitLength()>n)throw Error("Supplied uint exceeds width: "+n+" vs "+o.bitLength());a.push(o.toArrayLike(i,"be",n/8))}else if(c.startsWith("int")){if((n=parseTypeN(c))%8||n<8||n>256)throw Error("Invalid int<N> width: "+n);if((o=parseNumber(v)).bitLength()>n)throw Error("Supplied int exceeds width: "+n+" vs "+o.bitLength());a.push(o.toTwos(n).toArrayLike(i,"be",n/8))}else throw Error("Unsupported or invalid type: "+c)}return i.concat(a)}function soliditySHA3(e,t){return s.keccak(solidityPack(e,t))}e.exports={rawEncode,solidityPack,soliditySHA3}},31880:function(e,t,n){var i=n(67133).Buffer;let s=n(59942),o=n(5865),a={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"]},u={encodeData(e,t,n,a=!0){let u=["bytes32"],c=[this.hashType(e,n)];if(a){let encodeField=(e,t,u)=>{if(void 0!==n[t])return["bytes32",null==u?"0x0000000000000000000000000000000000000000000000000000000000000000":s.keccak(this.encodeData(t,u,n,a))];if(void 0===u)throw Error(`missing value for field ${e} of type ${t}`);if("bytes"===t)return["bytes32",s.keccak(u)];if("string"===t)return"string"==typeof u&&(u=i.from(u,"utf8")),["bytes32",s.keccak(u)];if(t.lastIndexOf("]")===t.length-1){let n=t.slice(0,t.lastIndexOf("[")),i=u.map(t=>encodeField(e,n,t));return["bytes32",s.keccak(o.rawEncode(i.map(([e])=>e),i.map(([,e])=>e)))]}return[t,u]};for(let i of n[e]){let[e,n]=encodeField(i.name,i.type,t[i.name]);u.push(e),c.push(n)}}else for(let o of n[e]){let e=t[o.name];if(void 0!==e){if("bytes"===o.type)u.push("bytes32"),e=s.keccak(e),c.push(e);else if("string"===o.type)u.push("bytes32"),"string"==typeof e&&(e=i.from(e,"utf8")),e=s.keccak(e),c.push(e);else if(void 0!==n[o.type])u.push("bytes32"),e=s.keccak(this.encodeData(o.type,e,n,a)),c.push(e);else if(o.type.lastIndexOf("]")===o.type.length-1)throw Error("Arrays currently unimplemented in encodeData");else u.push(o.type),c.push(e)}}return o.rawEncode(u,c)},encodeType(e,t){let n="",i=this.findTypeDependencies(e,t).filter(t=>t!==e);for(let s of i=[e].concat(i.sort())){let e=t[s];if(!e)throw Error("No type definition specified: "+s);n+=s+"("+t[s].map(({name:e,type:t})=>t+" "+e).join(",")+")"}return n},findTypeDependencies(e,t,n=[]){if(e=e.match(/^\w*/)[0],n.includes(e)||void 0===t[e])return n;for(let i of(n.push(e),t[e]))for(let e of this.findTypeDependencies(i.type,t,n))n.includes(e)||n.push(e);return n},hashStruct(e,t,n,i=!0){return s.keccak(this.encodeData(e,t,n,i))},hashType(e,t){return s.keccak(this.encodeType(e,t))},sanitizeData(e){let t={};for(let n in a.properties)e[n]&&(t[n]=e[n]);return t.types&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},hash(e,t=!0){let n=this.sanitizeData(e),o=[i.from("1901","hex")];return o.push(this.hashStruct("EIP712Domain",n.domain,n.types,t)),"EIP712Domain"!==n.primaryType&&o.push(this.hashStruct(n.primaryType,n.message,n.types,t)),s.keccak(i.
1concat(o))}};function typedSignatureHashLegacy(e){let t=Error("Expect argument to be non-empty array");if("object"!=typeof e||!e.length)throw t;let n=e.map(function(e){return"bytes"===e.type?s.toBuffer(e.value):e.value}),i=e.map(function(e){return e.type}),a=e.map(function(e){if(!e.name)throw t;return e.type+" "+e.name});return o.soliditySHA3(["bytes32","bytes32"],[o.soliditySHA3(Array(e.length).fill("string"),a),o.soliditySHA3(i,n)])}e.exports={TYPED_MESSAGE_SCHEMA:a,TypedDataUtils:u,hashForSignTypedDataLegacy:function(e){return typedSignatureHashLegacy(e.data)},hashForSignTypedData_v3:function(e){return u.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return u.hash(e.data)}}},59942:function(e,t,n){var i=n(67133).Buffer;let s=n(26961),o=n(56662);function zeros(e){return i.allocUnsafe(e).fill(0)}function setLength(e,t,n){let i=zeros(t);return(e=toBuffer(e),n)?e.length<t?(e.copy(i),i):e.slice(0,t):e.length<t?(e.copy(i,t-e.length),i):e.slice(-t)}function setLengthRight(e,t){return setLength(e,t,!0)}function toBuffer(e){if(!i.isBuffer(e)){if(Array.isArray(e))e=i.from(e);else if("string"==typeof e)e=isHexString(e)?i.from(padToEven(stripHexPrefix(e)),"hex"):i.from(e);else if("number"==typeof e)e=intToBuffer(e);else if(null==e)e=i.allocUnsafe(0);else if(o.isBN(e))e=e.toArrayLike(i);else if(e.toArray)e=i.from(e.toArray());else throw Error("invalid type")}return e}function bufferToHex(e){return"0x"+(e=toBuffer(e)).toString("hex")}function keccak(e,t){return e=toBuffer(e),t||(t=256),s("keccak"+t).update(e).digest()}function padToEven(e){return e.length%2?"0"+e:e}function isHexString(e){return"string"==typeof e&&e.match(/^0x[0-9A-Fa-f]*$/)}function stripHexPrefix(e){return"string"==typeof e&&e.startsWith("0x")?e.slice(2):e}e.exports={zeros,setLength,setLengthRight,isHexString,stripHexPrefix,toBuffer,bufferToHex,keccak}},49204:function(e){function QR8bitByte(e){this.mode=t.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var n=0,i=this.data.length;n<i;n++){var s=[],o=this.data.charCodeAt(n);o>65536?(s[0]=240|(1835008&o)>>>18,s[1]=128|(258048&o)>>>12,s[2]=128|(4032&o)>>>6,s[3]=128|63&o):o>2048?(s[0]=224|(61440&o)>>>12,s[1]=128|(4032&o)>>>6,s[2]=128|63&o):o>128?(s[0]=192|(1984&o)>>>6,s[1]=128|63&o):s[0]=o,this.parsedData.push(s)}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 QRCodeModel(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}QR8bitByte.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,n=this.parsedData.length;t<n;t++)e.put(this.parsedData[t],8)}},QRCodeModel.prototype={addData:function(e){var t=new QR8bitByte(e);this.dataList.push(t),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){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(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=QRCodeModel.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1)&&!(this.moduleCount<=e+n))for(var i=-1;i<=7;i++)t+i<=-1||this.moduleCount<=t+i||(0<=n&&n<=6&&(0==i||6==i)||0<=i&&i<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=i&&i<=4?this.modules[e+n][t+i]=!0:this.modules[e+n][t+i]=!1)},getBestMaskPattern:function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var i=s.getLostPoint(this);(0==n||e>i)&&(e=i,t=n)}return t},createMovieClip:function(e,t,n){var i=e.createEmptyMovieClip(t,n);this.make();for(var s=0;s<this.modules.length;s++)for(var o=1*s,a=0;a<this.modules[s].length;a++){var u=1*a;this.modules[s][a]&&(i.beginFill(0,100),i.moveTo(u,o),i.lineTo(u+1,o),i.lineTo(u+1,o+1),i.lineTo(u,o+1),i.endFill())}return i},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=s.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var n=0;n<e.length;n++){var i=e[t],o=e[n];if(null==this.modules[i][o])for(var a=-2;a<=2;a++)for(var u=-2;u<=2;u++)-2==a||2==a||-2==u||2==u||0==a&&0==u?this.modules[i+a][o+u]=!0:this.modules[i+a][o+u]=!1}},setupTypeNumber:function(e){for(var t=s.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var i=!e&&(t>>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=i}for(var n=0;n<18;n++){var i=!e&&(t>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=i}},setupTypeInfo:function(e,t){for(var n=this.errorCorrectLevel<<3|t,i=s.getBCHTypeInfo(n),o=0;o<15;o++){var a=!e&&(i>>o&1)==1;o<6?this.modules[o][8]=a:o<8?this.modules[o+1][8]=a:this.modules[this.moduleCount-15+o][8]=a}for(var o=0;o<15;o++){var a=!e&&(i>>o&1)==1;o<8?this.modules[8][this.moduleCount-o-1]=a:o<9?this.modules[8][15-o-1+1]=a:this.modules[8][15-o-1]=a}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var n=-1,i=this.moduleCount-1,o=7,a=0,u=this.moduleCount-1;u>0;u-=2)for(6==u&&u--;;){for(var c=0;c<2;c++)if(null==this.modules[i][u-c]){var v=!1;a<e.length&&(v=(e[a]>>>o&1)==1),s.getMask(t,i,u-c)&&(v=!v),this.modules[i][u-c]=v,-1==--o&&(a++,o=7)}if((i+=n)<0||this.moduleCount<=i){i-=n,n=-n;break}}}},QRCodeModel.PAD0=236,QRCodeModel.PAD1=17,QRCodeModel.createData=function(e,t,n){for(var i=QRRSBlock.getRSBlocks(e,t),o=new QRBitBuffer,a=0;a<n.length;a++){var u=n[a];o.put(u.mode,4),o.put(u.getLength(),s.getLengthInBits(u.mode,e)),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(QRCodeModel.PAD0,8),!(o.getLengthInBits()>=8*c));)o.put(QRCodeModel.PAD1,8);return QRCodeModel.createBytes(o,i)},QRCodeModel.createBytes=function(e,t){for(var n=0,i=0,o=0,a=Array(t.length),u=Array(t.length),c=0;c<t.length;c++){var v=t[c].dataCount,R=t[c].totalCount-v;i=Math.max(i,v),o=Math.max(o,R),a[c]=Array(v);for(var U=0;U<a[c].length;U++)a[c][U]=255&e.buffer[U+n];n+=v;var W=s.getErrorCorrectPolynomial(R),Z=new QRPolynomial(a[c],W.getLength()-1).mod(W);u[c]=Array(W.getLength()-1);for(var U=0;U<u[c].length;U++){var X=U+Z.getLength()-u[c].length;u[c][U]=X>=0?Z.get(X):0}}for(var Y=0,U=0;U<t.length;U++)Y+=t[U].totalCount;for(var ee=Array(Y),et=0,U=0;U<i;U++)for(var c=0;c<t.length;c++)U<a[c].length&&(ee[et++]=a[c][U]);for(var U=0;U<o;U++)for(var c=0;c<t.length;c++)U<u[c].length&&(ee[et++]=u[c][U]);return ee};for(var t={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},n={L:1,M:0,Q:3,H:2},i={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(e){for(var t=e<<10;
1s.getBCHDigit(t)-s.getBCHDigit(s.G15)>=0;)t^=s.G15<<s.getBCHDigit(t)-s.getBCHDigit(s.G15);return(e<<10|t)^s.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;s.getBCHDigit(t)-s.getBCHDigit(s.G18)>=0;)t^=s.G18<<s.getBCHDigit(t)-s.getBCHDigit(s.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return s.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case i.PATTERN000:return(t+n)%2==0;case i.PATTERN001:return t%2==0;case i.PATTERN010:return n%3==0;case i.PATTERN011:return(t+n)%3==0;case i.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case i.PATTERN101:return t*n%2+t*n%3==0;case i.PATTERN110:return(t*n%2+t*n%3)%2==0;case i.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new QRPolynomial([1],0),n=0;n<e;n++)t=t.multiply(new QRPolynomial([1,o.gexp(n)],0));return t},getLengthInBits:function(e,n){if(1<=n&&n<10)switch(e){case t.MODE_NUMBER:return 10;case t.MODE_ALPHA_NUM:return 9;case t.MODE_8BIT_BYTE:case t.MODE_KANJI:return 8;default:throw Error("mode:"+e)}else if(n<27)switch(e){case t.MODE_NUMBER:return 12;case t.MODE_ALPHA_NUM:return 11;case t.MODE_8BIT_BYTE:return 16;case t.MODE_KANJI:return 10;default:throw Error("mode:"+e)}else if(n<41)switch(e){case t.MODE_NUMBER:return 14;case t.MODE_ALPHA_NUM:return 13;case t.MODE_8BIT_BYTE:return 16;case t.MODE_KANJI:return 12;default:throw Error("mode:"+e)}else throw Error("type:"+n)},getLostPoint:function(e){for(var t=e.getModuleCount(),n=0,i=0;i<t;i++)for(var s=0;s<t;s++){for(var o=0,a=e.isDark(i,s),u=-1;u<=1;u++)if(!(i+u<0)&&!(t<=i+u))for(var c=-1;c<=1;c++)!(s+c<0)&&!(t<=s+c)&&(0!=u||0!=c)&&a==e.isDark(i+u,s+c)&&o++;o>5&&(n+=3+o-5)}for(var i=0;i<t-1;i++)for(var s=0;s<t-1;s++){var v=0;e.isDark(i,s)&&v++,e.isDark(i+1,s)&&v++,e.isDark(i,s+1)&&v++,e.isDark(i+1,s+1)&&v++,(0==v||4==v)&&(n+=3)}for(var i=0;i<t;i++)for(var s=0;s<t-6;s++)e.isDark(i,s)&&!e.isDark(i,s+1)&&e.isDark(i,s+2)&&e.isDark(i,s+3)&&e.isDark(i,s+4)&&!e.isDark(i,s+5)&&e.isDark(i,s+6)&&(n+=40);for(var s=0;s<t;s++)for(var i=0;i<t-6;i++)e.isDark(i,s)&&!e.isDark(i+1,s)&&e.isDark(i+2,s)&&e.isDark(i+3,s)&&e.isDark(i+4,s)&&!e.isDark(i+5,s)&&e.isDark(i+6,s)&&(n+=40);for(var R=0,s=0;s<t;s++)for(var i=0;i<t;i++)e.isDark(i,s)&&R++;return n+10*(Math.abs(100*R/t/t-50)/5)}},o={glog:function(e){if(e<1)throw Error("glog("+e+")");return o.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return o.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},a=0;a<8;a++)o.EXP_TABLE[a]=1<<a;for(var a=8;a<256;a++)o.EXP_TABLE[a]=o.EXP_TABLE[a-4]^o.EXP_TABLE[a-5]^o.EXP_TABLE[a-6]^o.EXP_TABLE[a-8];for(var a=0;a<255;a++)o.LOG_TABLE[o.EXP_TABLE[a]]=a;function QRPolynomial(e,t){if(void 0==e.length)throw Error(e.length+"/"+t);for(var n=0;n<e.length&&0==e[n];)n++;this.num=Array(e.length-n+t);for(var i=0;i<e.length-n;i++)this.num[i]=e[i+n]}function QRRSBlock(e,t){this.totalCount=e,this.dataCount=t}function QRBitBuffer(){this.buffer=[],this.length=0}QRPolynomial.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=Array(this.getLength()+e.getLength()-1),n=0;n<this.getLength();n++)for(var i=0;i<e.getLength();i++)t[n+i]^=o.gexp(o.glog(this.get(n))+o.glog(e.get(i)));return new QRPolynomial(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=o.glog(this.get(0))-o.glog(e.get(0)),n=Array(this.getLength()),i=0;i<this.getLength();i++)n[i]=this.get(i);for(var i=0;i<e.getLength();i++)n[i]^=o.gexp(o.glog(e.get(i))+t);return new QRPolynomial(n,0).mod(e)}},QRRSBlock.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
1],[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]],QRRSBlock.getRSBlocks=function(e,t){var n=QRRSBlock.getRsBlockTable(e,t);if(void 0==n)throw Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var i=n.length/3,s=[],o=0;o<i;o++)for(var a=n[3*o+0],u=n[3*o+1],c=n[3*o+2],v=0;v<a;v++)s.push(new QRRSBlock(u,c));return s},QRRSBlock.getRsBlockTable=function(e,t){switch(t){case n.L:return QRRSBlock.RS_BLOCK_TABLE[(e-1)*4+0];case n.M:return QRRSBlock.RS_BLOCK_TABLE[(e-1)*4+1];case n.Q:return QRRSBlock.RS_BLOCK_TABLE[(e-1)*4+2];case n.H:return QRRSBlock.RS_BLOCK_TABLE[(e-1)*4+3];default:return}},QRBitBuffer.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(var n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var u=[[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,86,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 QRCode(e){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 e&&(e={content:e}),e)for(var t in e)this.options[t]=e[t];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!");function _getErrorCorrectLevel(e){switch(e){case"L":return n.L;case"M":return n.M;case"Q":return n.Q;case"H":return n.H;default:throw Error("Unknwon error correction level: "+e)}}function _getTypeNumber(e,t){for(var n=_getUTF8Length(e),i=1,s=0,o=0,a=u.length;o<=a;o++){var c=u[o];if(!c)throw Error("Content too long: expected "+s+" but got "+n);switch(t){case"L":s=c[0];break;case"M":s=c[1];break;case"Q":s=c[2];break;case"H":s=c[3];break;default:throw Error("Unknwon error correction level: "+t)}if(n<=s)break;i++}if(i>u.length)throw Error("Content too long");return i}function _getUTF8Length(e){var t=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=e?3:0)}var i=this.options.content,s=_getTypeNumber(i,this.options.ecl),o=_getErrorCorrectLevel(this.options.ecl);this.qrcode=new QRCodeModel(s,o),this.qrcode.addData(i),this.qrcode.make()}QRCode.prototype.svg=function(e){var t=this.options||{},n=this.qrcode.modules;void 0===e&&(e={container:t.container||"svg"});for(var i=void 0===t.pretty||!!t.pretty,s=i?"  ":"",o=i?"\r\n":"",a=t.width,u=t.height,c=n.length,v=a/(c+2*t.padding),R=u/(c+2*t.padding),U=void 0!==t.join&&!!t.join,W=void 0!==t.swap&&!!t.swap,Z=void 0===t.xmlDeclaration||!!t.xmlDeclaration,X=void 0!==t.predefined&&!!t.predefined,Y=X?s+'<defs><path id="qrmodule" d="M0 0 h'+R+" v"+v+' H0 z" style="fill:'+t.color+';shape-rendering:crispEdges;" /></defs>'+o:"",ee=s+'<rect x="0" y="0" width="'+a+'" height="'+u+'" style="fill:'+t.background+';shape-rendering:crispEdges;"/>'+o,et="",er="",en=0;en<c;en++)for(var ei=0;ei<c;ei++)if(n[ei][en]){var es=ei*v+t.padding*v,eo=en*R+t.padding*R;if(W){var ea=es;es=eo,eo=ea}if(U){var el=v+es,eu=R+eo;es=Number.isInteger(es)?Number(es):es.toFixed(2),eo=Number.isInteger(eo)?Number(eo):eo.toFixed(2),el=Number.isInteger(el)?Number(el):el.toFixed(2),er+="M"+es+","+eo+" V"+(eu=Number.isInteger(eu)?Number(eu):eu.toFixed(2))+" H"
1+el+" V"+eo+" H"+es+" Z "}else X?et+=s+'<use x="'+es.toString()+'" y="'+eo.toString()+'" href="#qrmodule" />'+o:et+=s+'<rect x="'+es.toString()+'" y="'+eo.toString()+'" width="'+v+'" height="'+R+'" style="fill:'+t.color+';shape-rendering:crispEdges;"/>'+o}U&&(et=s+'<path x="0" y="0" style="fill:'+t.color+';shape-rendering:crispEdges;" d="'+er+'" />');let ec="";if(void 0!==this.options.image&&this.options.image.svg){let e=a*this.options.image.width/100,t=u*this.options.image.height/100;ec+=`<svg x="${a/2-e/2}" y="${u/2-t/2}" width="${e}" height="${t}" viewBox="0 0 100 100" preserveAspectRatio="xMinYMin meet">`+(this.options.image.svg+o)+"</svg>"}var eh="";switch(e.container){case"svg":Z&&(eh+='<?xml version="1.0" standalone="yes"?>'+o),eh+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="'+a+'" height="'+u+'">'+o+(Y+ee+et)+ec+"</svg>";break;case"svg-viewbox":Z&&(eh+='<?xml version="1.0" standalone="yes"?>'+o),eh+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 '+a+" "+u+'">'+o+(Y+ee+et)+ec+"</svg>";break;case"g":eh+='<g width="'+a+'" height="'+u+'">'+o+(Y+ee+et)+ec+"</g>";break;default:eh+=(Y+ee+et+ec).replace(/^\s+/,"")}return eh},e.exports=QRCode},91974:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LIB_VERSION=void 0,t.LIB_VERSION="3.9.1"},69930:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=n(512);function safeApply(e,t,n){try{Reflect.apply(e,t,n)}catch(e){setTimeout(()=>{throw e})}}function arrayClone(e){let t=e.length,n=Array(t);for(let i=0;i<t;i+=1)n[i]=e[i];return n}let SafeEventEmitter=class SafeEventEmitter extends i.EventEmitter{emit(e,...t){let n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){let e;if(t.length>0&&([e]=t),e instanceof Error)throw e;let n=Error(`Unhandled error.${e?` (${e.message})`:""}`);throw n.context=e,n}let s=i[e];if(void 0===s)return!1;if("function"==typeof s)safeApply(s,this,t);else{let e=s.length,n=arrayClone(s);for(let i=0;i<e;i+=1)safeApply(n[i],this,t)}return!0}};t.default=SafeEventEmitter},93514:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertExhaustive=t.assertStruct=t.assert=t.AssertionError=void 0;let i=n(13142);function isErrorWithMessage(e){return"object"==typeof e&&null!==e&&"message"in e}function isConstructable(e){var t,n;return"string"==typeof(null===(n=null===(t=null==e?void 0:e.prototype)||void 0===t?void 0:t.constructor)||void 0===n?void 0:n.name)}function getErrorMessage(e){let t=isErrorWithMessage(e)?e.message:String(e);return t.endsWith(".")?t.slice(0,-1):t}function getError(e,t){return isConstructable(e)?new e({message:t}):e({message:t})}let AssertionError=class AssertionError extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}};function assert(e,t="Assertion failed.",n=AssertionError){if(!e){if(t instanceof Error)throw t;throw getError(n,t)}}function assertStruct(e,t,n="Assertion failed",s=AssertionError){try{(0,i.assert)(e,t)}catch(e){throw getError(s,`${n}: ${getErrorMessage(e)}.`)}}function assertExhaustive(e){throw Error("Invalid branch reached. Should be detected during compilation.")}t.AssertionError=AssertionError,t.assert=assert,t.assertStruct=assertStruct,t.assertExhaustive=assertExhaustive},90484:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.base64=void 0;let i=n(13142),s=n(93514);t.base64=(e,t={})=>{var n,o;let a,u;let c=null!==(n=t.paddingRequired)&&void 0!==n&&n,v=null!==(o=t.characterSet)&&void 0!==o?o:"base64";return"base64"===v?a=String.raw`[A-Za-z0-9+\/]`:((0,s.assert)("base64url"===v),a=String.raw`[-_A-Za-z0-9]`),u=c?RegExp(`^(?:${a}{4})*(?:${a}{3}=|${a}{2}==)?$`,"u"):RegExp(`^(?:${a}{4})*(?:${a}{2,3}|${a}{3}=|${a}{2}==)?$`,"u"),(0,i.pattern)(e,u)}},83747:function(e,t,n){"use strict";var i=n(67133).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.createDataView=t.concatBytes=t.valueToBytes=t.stringToBytes=t.numberToBytes=t.signedBigIntToBytes=t.bigIntToBytes=t.hexToBytes=t.bytesToString=t.bytesToNumber=t.bytesToSignedBigInt=t.bytesToBigInt=t.bytesToHex=t.assertIsBytes=t.isBytes=void 0;let s=n(93514),o=n(15377);function getPrecomputedHexValuesBuilder(){let e=[];return()=>{if(0===e.length)for(let t=0;t<256;t++)e.push(t.toString(16).padStart(2,"0"));return e}}let a=getPrecomputedHexValuesBuilder();function isBytes(e){return e instanceof Uint8Array}function assertIsBytes(e){(0,s.assert)(isBytes(e),"Value must be a Uint8Array.")}function bytesToHex(e){if(assertIsBytes(e),0===e.length)return"0x";let t=a(),n=Array(e.length);for(let i=0;i<e.length;i++)n[i]=t[e[i]];return(0,o.add0x)(n.join(""))}function bytesToBigInt(e){assertIsBytes(e);let t=bytesToHex(e);return BigInt(t)}function bytesToSignedBigInt(e){assertIsBytes(e);let t=BigInt(0);for(let n of e)t=(t<<BigInt(8))+BigInt(n);return BigInt.asIntN(8*e.length,t)}function bytesToNumber(e){assertIsBytes(e);let t=bytesToBigInt(e);return(0,s.assert)(t<=BigInt(Number.MAX_SAFE_INTEGER),"Number is not a safe integer. Use `bytesToBigInt` instead."),Number(t)}function bytesToString(e){return assertIsBytes(e),new TextDecoder().decode(e)}function hexToBytes(e){var t;if((null===(t=null==e?void 0:e.toLowerCase)||void 0===t?void 0:t.call(e))==="0x")return new Uint8Array;(0,o.assertIsHexString)(e);let n=(0,o.remove0x)(e).toLowerCase(),i=n.length%2==0?n:`0${n}`,s=new Uint8Array(i.length/2);for(let e=0;e<s.length;e++){let t=i.charCodeAt(2*e),n=i.charCodeAt(2*e+1),o=t-(t<58?48:87),a=n-(n<58?48:87);s[e]=16*o+a}return s}function bigIntToBytes(e){(0,s.assert)("bigint"==typeof e,"Value must be a bigint."),(0,s.assert)(e>=BigInt(0),"Value must be a non-negative bigint.");let t=e.toString(16);return hexToBytes(t)}function bigIntFits(e,t){(0,s.assert)(t>0);let n=e>>BigInt(31);return!((~e&n)+(e&~n)>>BigInt(8*t+-1))}function signedBigIntToBytes(e,t){(0,s.assert)("bigint"==typeof e,"Value must be a bigint."),(0,s.assert)("number"==typeof t,"Byte length must be a number."),(0,s.assert)(t>0,"Byte length must be greater than 0."),(0,s.assert)(bigIntFits(e,t),"Byte length is too small to represent the given value.");let n=e,i=new Uint8Array(t);for(let e=0;e<i.length;e++)i[e]=Number(BigInt.asUintN(8,n)),n>>=BigInt(8);return i.reverse()}function numberToBytes(e){(0,s.assert)("number"==typeof e,"Value must be a number."),(0,s.assert)(e>=0,"Value must be a non-negative number."),(0,s.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToBytes` instead.");let t=e.toString(16);return hexToBytes(t)}function stringToBytes(e){return(0,s.assert)("string"==typeof e,"Value must be a string."),new TextEncoder().encode(e)}function valueToBytes(e){if("bigint"==typeof e)return bigIntToBytes(e);if("number"==typeof e)return numberToBytes(e);if("string"==typeof e)return e.startsWith("0x")?hexToBytes(e):stringToBytes(e);if(isBytes(e))return e;throw TypeError(`Unsupported value type: "${typeof e}".`)}function concatBytes(e){let t=Array(e.length),n=0;for(let i=0;i<e.length;i++){let s=valueToBytes(e[i]);t[i]=s,n+=s.length}let i=new Uint8Array(n);for(let e=0,n=0;e<t.length;e++)i.set(t[e],n),n+=t[e].length;return i}function createDataView(e){if(void 0!==i&&e instanceof i){let t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return new DataView(t)}return new DataView(e.buffer,e.byteOffset,e.byteLength)}t.isBytes=isBytes,t.assertIsBytes=assertIsBytes,t.bytesToHex=bytesToHex,t.bytesToBigInt=bytesToBigInt,t.bytesToSignedBigInt=bytesToSignedBigInt,t.bytesToNumber=bytesToNumber,t.bytesToString=bytesToString,t.hexToBytes=hexToBytes,t.bigIntToBytes=bigIntToBytes,t.signedBigIntToBytes=signedBigIntToBytes,t.numberToBytes=numberToBytes,t.stringToBytes=stringToBytes,t.valueToBytes=valueToBytes,t.concatBytes=concatBytes,t.createDataView=createDataView},88015:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.ChecksumStruct=void 0;let i=n(13142),s=n(90484);t.ChecksumStruct=(0,i.size)((0,s.base64)((0,i.string)(),{paddingRequired:!0}),44,44)},90183:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHex=t.createBytes=t.createBigInt=t.createNumber=void 0;let i=n(13142),s=n(93514),o=n(83747),a=n(15377),u=(0,i.union)([(0,i.number)(),(0,i.bigint)(),(0,i.string)(),a.StrictHexStruct]),c=(0,i.coerce)((0,i.number)(),u,Number),v=(0,i.coerce)((0,i.bigint)(),u,BigInt);(0,i.union)([a.StrictHexStruct,(0,i.instance)(Uint8Array)]);let R=(0,i.coerce)((0,i.instance)(Uint8Array),(0,i.union)([a.StrictHexStruct]),o.hexToBytes),U=(0,i.coerce)(a.StrictHexStruct,(0,i.instance)(Uint8Array),o.bytesToHex);function createNumber(e){try{let t=(0,i.create)(e,c);return(0,s.assert)(Number.isFinite(t),`Expected a number-like value, got "${e}".`),t}catch(t){if(t instanceof i.StructError)throw Error(`Expected a number-like value, got "${e}".`);throw t}}function createBigInt(e){try{return(0,i.create)(e,v)}catch(e){if(e instanceof i.StructError)throw Error(`Expected a number-like value, got "${String(e.value)}".`);throw e}}function createBytes(e){if("string"==typeof e&&"0x"===e.toLowerCase())return new Uint8Array;try{return(0,i.create)(e,R)}catch(e){if(e instanceof i.StructError)throw Error(`Expected a bytes-like value, got "${String(e.value)}".`);throw e}}function createHex(e){if(e instanceof Uint8Array&&0===e.length||"string"==typeof e&&"0x"===e.toLowerCase())return"0x";try{return(0,i.create)(e,U)}catch(e){if(e instanceof i.StructError)throw Error(`Expected a bytes-like value, got "${String(e.value)}".`);throw e}}t.createNumber=createNumber,t.createBigInt=createBigInt,t.createBytes=createBytes,t.createHex=createHex},62523:function(e,t){"use strict";var n,i,s=this&&this.__classPrivateFieldSet||function(e,t,n,i,s){if("m"===i)throw TypeError("Private method is not writable");if("a"===i&&!s)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?s.call(e,n):s?s.value=n:t.set(e,n),n},o=this&&this.__classPrivateFieldGet||function(e,t,n,i){if("a"===n&&!i)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.FrozenSet=t.FrozenMap=void 0;let FrozenMap=class FrozenMap{constructor(e){n.set(this,void 0),s(this,n,new Map(e),"f"),Object.freeze(this)}get size(){return o(this,n,"f").size}[(n=new WeakMap,Symbol.iterator)](){return o(this,n,"f")[Symbol.iterator]()}entries(){return o(this,n,"f").entries()}forEach(e,t){return o(this,n,"f").forEach((n,i,s)=>e.call(t,n,i,this))}get(e){return o(this,n,"f").get(e)}has(e){return o(this,n,"f").has(e)}keys(){return o(this,n,"f").keys()}values(){return o(this,n,"f").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map(([e,t])=>`${String(e)} => ${String(t)}`).join(", ")} `:""}}`}};t.FrozenMap=FrozenMap;let FrozenSet=class FrozenSet{constructor(e){i.set(this,void 0),s(this,i,new Set(e),"f"),Object.freeze(this)}get size(){return o(this,i,"f").size}[(i=new WeakMap,Symbol.iterator)](){return o(this,i,"f")[Symbol.iterator]()}entries(){return o(this,i,"f").entries()}forEach(e,t){return o(this,i,"f").forEach((n,i,s)=>e.call(t,n,i,this))}has(e){return o(this,i,"f").has(e)}keys(){return o(this,i,"f").keys()}values(){return o(this,i,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map(e=>String(e)).join(", ")} `:""}}`}};t.FrozenSet=FrozenSet,Object.freeze(FrozenMap),Object.freeze(FrozenMap.prototype),Object.freeze(FrozenSet),Object.freeze(FrozenSet.prototype)},23846:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},15377:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.remove0x=t.add0x=t.assertIsStrictHexString=t.assertIsHexString=t.isStrictHexString=t.isHexString=t.StrictHexStruct=t.HexStruct=void 0;let i=n(13142),s=n(93514);function isHexString(e){return(0,i.is)(e,t.HexStruct)}function isStrictHexString(e){return(0,i.is)(e,t.StrictHexStruct)}function assertIsHexString(e){(0,s.assert)(isHexString(e),"Value must be a hexadecimal string.")}function assertIsStrictHexString(e){(0,s.assert)(isStrictHexString(e),'Value must be a hexadecimal string, starting with "0x".')}function add0x(e){return e.startsWith("0x")?e:e.startsWith("0X")?`0x${e.substring(2)}`:`0x${e}`}function remove0x(e){return e.startsWith("0x")||e.startsWith("0X")?e.substring(2):e}t.HexStruct=(0,i.pattern)((0,i.string)(),/^(?:0x)?[0-9a-f]+$/iu),t.StrictHexStruct=(0,i.pattern)((0,i.string)(),/^0x[0-9a-f]+$/iu),t.isHexString=isHexString,t.isStrictHexString=isStrictHexString,t.assertIsHexString=assertIsHexString,t.assertIsStrictHexString=assertIsStrictHexString,t.add0x=add0x,t.remove0x=remove0x},30377:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,s)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),s(n(93514),t),s(n(90484),t),s(n(83747),t),s(n(88015),t),s(n(90183),t),s(n(62523),t),s(n(23846),t),s(n(15377),t),s(n(62586),t),s(n(4052),t),s(n(83551),t),s(n(16663),t),s(n(63058),t),s(n(91713),t),s(n(23687),t),s(n(26818),t),s(n(78129),t)},62586:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getJsonRpcIdValidator=t.assertIsJsonRpcError=t.isJsonRpcError=t.assertIsJsonRpcFailure=t.isJsonRpcFailure=t.assertIsJsonRpcSuccess=t.isJsonRpcSuccess=t.assertIsJsonRpcResponse=t.isJsonRpcResponse=t.assertIsPendingJsonRpcResponse=t.isPendingJsonRpcResponse=t.JsonRpcResponseStruct=t.JsonRpcFailureStruct=t.JsonRpcSuccessStruct=t.PendingJsonRpcResponseStruct=t.assertIsJsonRpcRequest=t.isJsonRpcRequest=t.assertIsJsonRpcNotification=t.isJsonRpcNotification=t.JsonRpcNotificationStruct=t.JsonRpcRequestStruct=t.JsonRpcParamsStruct=t.JsonRpcErrorStruct=t.JsonRpcIdStruct=t.JsonRpcVersionStruct=t.jsonrpc2=t.getJsonSize=t.isValidJson=t.JsonStruct=t.UnsafeJsonStruct=void 0;let i=n(13142),s=n(93514);function isValidJson(e){return(0,i.is)(e,t.JsonStruct)}function getJsonSize(e){(0,s.assertStruct)(e,t.JsonStruct,"Invalid JSON value");let n=JSON.stringify(e);return new TextEncoder().encode(n).byteLength}function isJsonRpcNotification(e){return(0,i.is)(e,t.JsonRpcNotificationStruct)}function assertIsJsonRpcNotification(e,n){(0,s.assertStruct)(e,t.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",n)}function isJsonRpcRequest(e){return(0,i.is)(e,t.JsonRpcRequestStruct)}function assertIsJsonRpcRequest(e,n){(0,s.assertStruct)(e,t.JsonRpcRequestStruct,"Invalid JSON-RPC request",n)}function isPendingJsonRpcResponse(e){return(0,i.is)(e,t.PendingJsonRpcResponseStruct)}function assertIsPendingJsonRpcResponse(e,n){(0,s.assertStruct)(e,t.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",n)}function isJsonRpcResponse(e){return(0,i.is)(e,t.JsonRpcResponseStruct)}function assertIsJsonRpcResponse(e,n){(0,s.assertStruct)(e,t.JsonRpcResponseStruct,"Invalid JSON-RPC response",n)}function isJsonRpcSuccess(e){return(0,i.is)(e,t.JsonRpcSuccessStruct)}function assertIsJsonRpcSuccess(e,n){(0,s.assertStruct)(e,t.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",n)}function isJsonRpcFailure(e){return(0,i.is)(e,t.JsonRpcFailureStruct)}function assertIsJsonRpcFailure(e,n){(0,s.assertStruct)(e,t.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",n)}function isJsonRpcError(e){return(0,i.is)(e,t.JsonRpcErrorStruct)}function assertIsJsonRpcError(e,n){(0,s.assertStruct)(e,t.JsonRpcErrorStruct,"Invalid JSON-RPC error",n)}function getJsonRpcIdValidator(e){let{permitEmptyString:t,permitFractions:n,permitNull:i}=Object.assign({permitEmptyString:!0,permitFractions:!1,permitNull:!0},e);return e=>!!("number"==typeof e&&(n||Number.isInteger(e))||"string"==typeof e&&(t||e.length>0)||i&&null===e)}t.UnsafeJsonStruct=(0,i.union)([(0,i.literal)(null),(0,i.boolean)(),(0,i.define)("finite number",e=>(0,i.is)(e,(0,i.number)())&&Number.isFinite(e)),(0,i.string)(),(0,i.array)((0,i.lazy)(()=>t.UnsafeJsonStruct)),(0,i.record)((0,i.string)(),(0,i.lazy)(()=>t.UnsafeJsonStruct))]),t.JsonStruct=(0,i.define)("Json",(e,n)=>{function checkStruct(e,t){let i=t.validator(e,n),s=[...i];return!(s.length>0)||s}try{let n=checkStruct(e,t.UnsafeJsonStruct);if(!0!==n)return n;return checkStruct(JSON.parse(JSON.stringify(e)),t.UnsafeJsonStruct)}catch(e){if(e instanceof RangeError)return"Circular reference detected";return!1}}),t.isValidJson=isValidJson,t.getJsonSize=getJsonSize,t.jsonrpc2="2.0",t.JsonRpcVersionStru
1ct=(0,i.literal)(t.jsonrpc2),t.JsonRpcIdStruct=(0,i.nullable)((0,i.union)([(0,i.number)(),(0,i.string)()])),t.JsonRpcErrorStruct=(0,i.object)({code:(0,i.integer)(),message:(0,i.string)(),data:(0,i.optional)(t.JsonStruct),stack:(0,i.optional)((0,i.string)())}),t.JsonRpcParamsStruct=(0,i.optional)((0,i.union)([(0,i.record)((0,i.string)(),t.JsonStruct),(0,i.array)(t.JsonStruct)])),t.JsonRpcRequestStruct=(0,i.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,method:(0,i.string)(),params:t.JsonRpcParamsStruct}),t.JsonRpcNotificationStruct=(0,i.omit)(t.JsonRpcRequestStruct,["id"]),t.isJsonRpcNotification=isJsonRpcNotification,t.assertIsJsonRpcNotification=assertIsJsonRpcNotification,t.isJsonRpcRequest=isJsonRpcRequest,t.assertIsJsonRpcRequest=assertIsJsonRpcRequest,t.PendingJsonRpcResponseStruct=(0,i.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,result:(0,i.optional)((0,i.unknown)()),error:(0,i.optional)(t.JsonRpcErrorStruct)}),t.JsonRpcSuccessStruct=(0,i.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,result:t.JsonStruct}),t.JsonRpcFailureStruct=(0,i.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,error:t.JsonRpcErrorStruct}),t.JsonRpcResponseStruct=(0,i.union)([t.JsonRpcSuccessStruct,t.JsonRpcFailureStruct]),t.isPendingJsonRpcResponse=isPendingJsonRpcResponse,t.assertIsPendingJsonRpcResponse=assertIsPendingJsonRpcResponse,t.isJsonRpcResponse=isJsonRpcResponse,t.assertIsJsonRpcResponse=assertIsJsonRpcResponse,t.isJsonRpcSuccess=isJsonRpcSuccess,t.assertIsJsonRpcSuccess=assertIsJsonRpcSuccess,t.isJsonRpcFailure=isJsonRpcFailure,t.assertIsJsonRpcFailure=assertIsJsonRpcFailure,t.isJsonRpcError=isJsonRpcError,t.assertIsJsonRpcError=assertIsJsonRpcError,t.getJsonRpcIdValidator=getJsonRpcIdValidator},4052:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},83551:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createModuleLogger=t.createProjectLogger=void 0;let s=i(n(4461)),o=(0,s.default)("metamask");function createProjectLogger(e){return o.extend(e)}function createModuleLogger(e,t){return e.extend(t)}t.createProjectLogger=createProjectLogger,t.createModuleLogger=createModuleLogger},16663:function(e,t){"use strict";var n;function isNonEmptyArray(e){return Array.isArray(e)&&e.length>0}function isNullOrUndefined(e){return null==e}function isObject(e){return!!e&&"object"==typeof e&&!Array.isArray(e)}function isPlainObject(e){if("object"!=typeof e||null===e)return!1;try{let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch(e){return!1}}function isASCII(e){return 127>=e.charCodeAt(0)}function calculateStringSize(e){var n;let i=e.split("").reduce((e,t)=>isASCII(t)?e+1:e+2,0);return i+(null!==(n=e.match(t.ESCAPE_CHARACTERS_REGEXP))&&void 0!==n?n:[]).length}function calculateNumberSize(e){return e.toString().length}Object.defineProperty(t,"__esModule",{value:!0}),t.calculateNumberSize=t.calculateStringSize=t.isASCII=t.isPlainObject=t.ESCAPE_CHARACTERS_REGEXP=t.JsonSize=t.hasProperty=t.isObject=t.isNullOrUndefined=t.isNonEmptyArray=void 0,t.isNonEmptyArray=isNonEmptyArray,t.isNullOrUndefined=isNullOrUndefined,t.isObject=isObject,t.hasProperty=(e,t)=>Object.hasOwnProperty.call(e,t),(n=t.JsonSize||(t.JsonSize={}))[n.Null=4]="Null",n[n.Comma=1]="Comma",n[n.Wrapper=1]="Wrapper",n[n.True=4]="True",n[n.False=5]="False",n[n.Quote=1]="Quote",n[n.Colon=1]="Colon",n[n.Date=24]="Date",t.ESCAPE_CHARACTERS_REGEXP=/"|\\|\n|\r|\t/gu,t.isPlainObject=isPlainObject,t.isASCII=isASCII,t.calculateStringSize=calculateStringSize,t.calculateNumberSize=calculateNumberSize},63058:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBigInt=t.hexToNumber=t.bigIntToHex=t.numberToHex=void 0;let i=n(93514),s=n(15377);t.numberToHex=e=>((0,i.assert)("number"==typeof e,"Value must be a number."),(0,i.assert)(e>=0,"Value must be a non-negative number."),(0,i.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,s.add0x)(e.toString(16))),t.bigIntToHex=e=>((0,i.assert)("bigint"==typeof e,"Value must be a bigint."),(0,i.assert)(e>=0,"Value must be a non-negative bigint."),(0,s.add0x)(e.toString(16))),t.hexToNumber=e=>{(0,s.assertIsHexString)(e);let t=parseInt(e,16);return(0,i.assert)(Number.isSafeInteger(t),"Value is not a safe integer. Use `hexToBigInt` instead."),t},t.hexToBigInt=e=>((0,s.assertIsHexString)(e),BigInt((0,s.add0x)(e)))},91713:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0})},23687:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.timeSince=t.inMilliseconds=t.Duration=void 0,(n=t.Duration||(t.Duration={}))[n.Millisecond=1]="Millisecond",n[n.Second=1e3]="Second",n[n.Minute=6e4]="Minute",n[n.Hour=36e5]="Hour",n[n.Day=864e5]="Day",n[n.Week=6048e5]="Week",n[n.Year=31536e6]="Year";let isNonNegativeInteger=e=>Number.isInteger(e)&&e>=0,assertIsNonNegativeInteger=(e,t)=>{if(!isNonNegativeInteger(e))throw Error(`"${t}" must be a non-negative integer. Received: "${e}".`)};function inMilliseconds(e,t){return assertIsNonNegativeInteger(e,"count"),e*t}function timeSince(e){return assertIsNonNegativeInteger(e,"timestamp"),Date.now()-e}t.inMilliseconds=inMilliseconds,t.timeSince=timeSince},26818:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},78129:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.satisfiesVersionRange=t.gtRange=t.gtVersion=t.assertIsSemVerRange=t.assertIsSemVerVersion=t.isValidSemVerRange=t.isValidSemVerVersion=t.VersionRangeStruct=t.VersionStruct=void 0;let i=n(84076),s=n(13142),o=n(93514);function isValidSemVerVersion(e){return(0,s.is)(e,t.VersionStruct)}function isValidSemVerRange(e){return(0,s.is)(e,t.VersionRangeStruct)}function assertIsSemVerVersion(e){(0,o.assertStruct)(e,t.VersionStruct)}function assertIsSemVerRange(e){(0,o.assertStruct)(e,t.VersionRangeStruct)}function gtVersion(e,t){return(0,i.gt)(e,t)}function gtRange(e,t){return(0,i.gtr)(e,t)}function satisfiesVersionRange(e,t){return(0,i.satisfies)(e,t,{includePrerelease:!0})}t.VersionStruct=(0,s.refine)((0,s.string)(),"Version",e=>null!==(0,i.valid)(e)||`Expected SemVer version, got "${e}"`),t.VersionRangeStruct=(0,s.refine)((0,s.string)(),"Version range",e=>null!==(0,i.validRange)(e)||`Expected SemVer range, got "${e}"`),t.isValidSemVerVersion=isValidSemVerVersion,t.isValidSemVerRange=isValidSemVerRange,t.assertIsSemVerVersion=assertIsSemVerVersion,t.assertIsSemVerRange=assertIsSemVerRange,t.gtVersion=gtVersion,t.gtRange=gtRange,t.satisfiesVersionRange=satisfiesVersionRange},65816:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(50044),s=n(71236),o=function(){function Mutex(){this._semaphore=new s.default(1)}return Mutex.prototype.acquire=function(){return i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(e){switch(e.label){case 0:return[4,this._semaphore.acquire()];case 1:return[2,e.sent()[1]]}})})},Mutex.prototype.runExclusive=function(e){return this._semaphore.runExclusive(function(){return e()})},Mutex.prototype.isLocked=function(){return this._semaphore.isLocked()},Mutex.prototype.release=function(){this._semaphore.release()},Mutex}();t.default=o},71236:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(50044),s=function(){function Semaphore(e){if(this._maxConcurrency=e,this._queue=[],e<=0)throw Error("semaphore must be initialized to a positive value");this._value=e}return Semaphore.prototype.acquire=function(){var e=this,t=this.isLocked(),n=new Promise(function(t){return e._queue.push(t)});return t||this._dispatch(),n},Semaphore.prototype.runExclusive=function(e){return i.__awaiter(this,void 0,void 0,function(){var t,n,s;return i.__generator(this,function(i){switch(i.label){case 0:return[4,this.acquire()];case 1:n=(t=i.sent())[0],s=t[1],i.label=2;case 2:return i.trys.push([2,,4,5]),[4,e(n)];case 3:return[2,i.sent()];case 4:return s(),[7];case 5:return[2]}})})},Semaphore.prototype.isLocked=function(){return this._value<=0},Semaphore.prototype.release=function(){if(this._maxConcurrency>1)throw Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var e=this._currentReleaser;this._currentReleaser=void 0,e()}},Semaphore.prototype._dispatch=function(){var e=this,t=this._queue.shift();if(t){var n=!1;this._currentReleaser=function(){n||(n=!0,e._value++,e._dispatch())},t([this._value--,this._currentReleaser])}},Semaphore}();t.default=s},72140:function(e,t,n){"use strict";t.WU=void 0;var i=n(65816);Object.defineProperty(t,"WU",{enumerable:!0,get:function(){return i.default}}),n(71236),n(41335)},41335:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.withTimeout=void 0;var i=n(50044);function withTimeout(e,t,n){var s=this;return void 0===n&&(n=Error("timeout")),{acquire:function(){return new Promise(function(o,a){return i.__awaiter(s,void 0,void 0,function(){var s,u;return i.__generator(this,function(i){switch(i.label){case 0:return s=!1,setTimeout(function(){s=!0,a(n)},t),[4,e.acquire()];case 1:return u=i.sent(),s?(Array.isArray(u)?u[1]:u)():o(u),[2]}})})})},runExclusive:function(e){return i.__awaiter(this,void 0,void 0,function(){var t,n;return i.__generator(this,function(i){switch(i.label){case 0:t=function(){},i.label=1;case 1:return i.trys.push([1,,7,8]),[4,this.acquire()];case 2:if(!Array.isArray(n=i.sent()))return[3,4];return t=n[1],[4,e(n[0])];case 3:case 5:return[2,i.sent()];case 4:return t=n,[4,e()];case 6:return[3,8];case 7:return t(),[7];case 8:return[2]}})})},release:function(){e.release()},isLocked:function(){return e.isLocked()}}}t.withTimeout=withTimeout},56662:function(e,t,n){!function(e,t){"use strict";function assert(e,t){if(!e)throw Error(t||"Assertion failed")}function inherits(e,t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype,e.prototype=new TempCtor,e.prototype.constructor=e}function BN(e,t,n){if(BN.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(n=t,t=10),this._init(e||0,t||10,n||"be"))}"object"==typeof e?e.exports=BN:t.BN=BN,BN.BN=BN,BN.wordSize=26;try{i="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(46601).Buffer}catch(e){}function parseHex4Bits(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void assert(!1,"Invalid character in "+e)}function parseHexByte(e,t,n){var i=parseHex4Bits(e,n);return n-1>=t&&(i|=parseHex4Bits(e,n-1)<<4),i}function parseBase(e,t,n,i){for(var s=0,o=0,a=Math.min(e.length,n),u=t;u<a;u++){var c=e.charCodeAt(u)-48;s*=i,o=c>=49?c-49+10:c>=17?c-17+10:c,assert(c>=0&&o<i,"Invalid character"),s+=o}return s}function move(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(BN.isBN=function(e){return e instanceof BN||null!==e&&"object"==typeof e&&e.constructor.wordSize===BN.wordSize&&Array.isArray(e.words)},BN.max=function(e,t){return e.cmp(t)>0?e:t},BN.min=function(e,t){return 0>e.cmp(t)?e:t},BN.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),assert(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,n):(this._parseBase(e,t,i),"le"===n&&this._initArray(this.toArray(),t,n)))},BN.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(assert(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},BN.prototype._initArray=function(e,t,n){if(assert("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,s,o=0;o<this.length;o++)this.words[o]=0;var a=0;if("be"===n)for(o=e.length-1,i=0;o>=0;o-=3)s=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[i]|=s<<a&67108863,this.words[i+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);else if("le"===n)for(o=0,i=0;o<e.length;o+=3)s=e[o]|e[o+1]<<8|e[o+2]<<16,this.words[i]|=s<<a&67108863,this.words[i+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,i++);return this._strip()},BN.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var i,s=0;s<this.length;s++)this.words[s]=0;var o=0,a=0;if("be"===n)for(s=e.length-1;s>=t;s-=2)i=parseHexByte(e,t,s)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(s=(e.length-t)%2==0?t+1:t;s<e.length;s+=2)i=parseHexByte(e,t,s)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},BN.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var i=0,s=1;s<=67108863;s*=t)i++;i--,s=s/t|0;for(var o=e.length-n,a=o%i,u=Math.min(o,o-a)+n,c=0,v=n;v<u;v+=i)c=parseBase(e,v,v+i,t),this.imuln(s),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var R=1;for(c=parseBase(e,v,e.length,t),v=0;v<a;v++)R*=t;this.imuln(R),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},BN.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},BN.prototype._move=function(e){move(e,this)},BN.prototype.clone=function(){var e=new BN(null);return this.copy(e),e},BN.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},BN.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},BN.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{BN.prototype[Symbol.for("nodejs.util.inspect.custom")]=inspect}catch(e){BN.prototype.inspect=inspect}else BN.prototype.inspect=inspect;function inspect(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var i,s=["","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"],o=[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],a=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 6,836 bytes, line 1
1777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function toBitArray(e){for(var t=Array(e.bitLength()),n=0;n<t.length;n++){var i=n/26|0,s=n%26;t[n]=e.words[i]>>>s&1}return t}function smallMulTo(e,t,n){n.negative=t.negative^e.negative;var i=e.length+t.length|0;n.length=i,i=i-1|0;var s=0|e.words[0],o=0|t.words[0],a=s*o,u=67108863&a,c=a/67108864|0;n.words[0]=u;for(var v=1;v<i;v++){for(var R=c>>>26,U=67108863&c,W=Math.min(v,t.length-1),Z=Math.max(0,v-e.length+1);Z<=W;Z++){var X=v-Z|0;R+=(a=(s=0|e.words[X])*(o=0|t.words[Z])+U)/67108864|0,U=67108863&a}n.words[v]=0|U,c=0|R}return 0!==c?n.words[v]=0|c:n.length--,n._strip()}BN.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var n,i=0,u=0,c=0;c<this.length;c++){var v=this.words[c],R=((v<<i|u)&16777215).toString(16);u=v>>>24-i&16777215,(i+=2)>=26&&(i-=26,c--),n=0!==u||c!==this.length-1?s[6-R.length]+R+n:R+n}for(0!==u&&(n=u.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var U=o[e],W=a[e];n="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var X=Z.modrn(W).toString(e);n=(Z=Z.idivn(W)).isZero()?X+n:s[U-X.length]+X+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}assert(!1,"Base should be between 2 and 36")},BN.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&assert(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},BN.prototype.toJSON=function(){return this.toString(16,2)},i&&(BN.prototype.toBuffer=function(e,t){return this.toArrayLike(i,e,t)}),BN.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},BN.prototype.toArrayLike=function(e,t,n){this._strip();var i=this.byteLength(),s=n||Math.max(1,i);assert(i<=s,"byte array longer than desired length"),assert(s>0,"Requested array length <= 0");var o=e.allocUnsafe?e.allocUnsafe(s):new e(s);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,i),o},BN.prototype._toArrayLikeLE=function(e,t){for(var n=0,i=0,s=0,o=0;s<this.length;s++){var a=this.words[s]<<o|i;e[n++]=255&a,n<e.length&&(e[n++]=a>>8&255),n<e.length&&(e[n++]=a>>16&255),6===o?(n<e.length&&(e[n++]=a>>24&255),i=0,o=0):(i=a>>>24,o+=2)}if(n<e.length)for(e[n++]=i;n<e.length;)e[n++]=0},BN.prototype._toArrayLikeBE=function(e,t){for(var n=e.length-1,i=0,s=0,o=0;s<this.length;s++){var a=this.words[s]<<o|i;e[n--]=255&a,n>=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),i=0,o=0):(i=a>>>24,o+=2)}if(n>=0)for(e[n--]=i;n>=0;)e[n--]=0},Math.clz32?BN.prototype._countBits=function(e){return 32-Math.clz32(e)}:BN.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},BN.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return(8191&t)==0&&(n+=13,t>>>=13),(127&t)==0&&(n+=7,t>>>=7),(15&t)==0&&(n+=4,t>>>=4),(3&t)==0&&(n+=2,t>>>=2),(1&t)==0&&n++,n},BN.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},BN.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},BN.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},BN.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},BN.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},BN.prototype.isNeg=function(){return 0!==this.negative},BN.prototype.neg=function(){return this.clone().ineg()},BN.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},BN.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},BN.prototype.ior=function(e){return assert((this.negative|e.negative)==0),this.iuor(e)},BN.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},BN.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},BN.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this._strip()},BN.prototype.iand=function(e){return assert((this.negative|e.negative)==0),this.iuand(e)},BN.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},BN.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},BN.prototype.iuxor=function(e){this.length>e.length?(t=this,n=e):(t=e,n=this);for(var t,n,i=0;i<n.length;i++)this.words[i]=t.words[i]^n.words[i];if(this!==t)for(;i<t.length;i++)this.words[i]=t.words[i];return this.length=t.length,this._strip()},BN.prototype.ixor=function(e){return assert((this.negative|e.negative)==0),this.iuxor(e)},BN.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},BN.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},BN.prototype.inotn=function(e){assert("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},BN.prototype.notn=function(e){return this.clone().inotn(e)},BN.prototype.setn=function(e,t){assert("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),t?this.words[n]=this.words[n]|1<<i:this.words[n]=this.words[n]&~(1<<i),this._strip()},BN.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,i=e):(n=e,i=this);for(var t,n,i,s=0,o=0;o<i.length;o++)t=(0|n.words[o])+(0|i.words[o])+s,this.words[o]=67108863&t,s=t>>>26;for(;0!==s&&o<n.length;o++)t=(0|n.words[o])+s,this.words[o]=67108863&t,s=t>>>26;if(this.length=n.length,0!==s)this.words[this.length]=s,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},BN.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},BN.prototype.isub=function(e){if(0!==e.negative){e.negative=0;
vendor: 8,344 bytes, line 1
1var t,n,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var s=this.cmp(e);if(0===s)return this.negative=0,this.length=1,this.words[0]=0,this;s>0?(t=this,n=e):(t=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(i=(0|t.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&i;for(;0!==o&&a<t.length;a++)o=(i=(0|t.words[a])+o)>>26,this.words[a]=67108863&i;if(0===o&&a<t.length&&t!==this)for(;a<t.length;a++)this.words[a]=t.words[a];return this.length=Math.max(this.length,a),t!==this&&(this.negative=1),this._strip()},BN.prototype.sub=function(e){return this.clone().isub(e)};var comb10MulTo=function(e,t,n){var i,s,o,a=e.words,u=t.words,c=n.words,v=0,R=0|a[0],U=8191&R,W=R>>>13,Z=0|a[1],X=8191&Z,Y=Z>>>13,ee=0|a[2],et=8191&ee,er=ee>>>13,en=0|a[3],ei=8191&en,es=en>>>13,eo=0|a[4],ea=8191&eo,el=eo>>>13,eu=0|a[5],ec=8191&eu,eh=eu>>>13,ed=0|a[6],ef=8191&ed,ep=ed>>>13,eg=0|a[7],em=8191&eg,ey=eg>>>13,eb=0|a[8],e_=8191&eb,ev=eb>>>13,ew=0|a[9],eE=8191&ew,eS=ew>>>13,ek=0|u[0],eR=8191&ek,eM=ek>>>13,eC=0|u[1],ex=8191&eC,eI=eC>>>13,eA=0|u[2],eN=8191&eA,eT=eA>>>13,eP=0|u[3],eB=8191&eP,eO=eP>>>13,eL=0|u[4],eF=8191&eL,ej=eL>>>13,eD=0|u[5],eU=8191&eD,eH=eD>>>13,e$=0|u[6],eW=8191&e$,eV=e$>>>13,eq=0|u[7],ez=8191&eq,eJ=eq>>>13,eG=0|u[8],eQ=8191&eG,eZ=eG>>>13,eK=0|u[9],eX=8191&eK,eY=eK>>>13;n.negative=e.negative^t.negative,n.length=19;var e0=(v+(i=Math.imul(U,eR))|0)+((8191&(s=(s=Math.imul(U,eM))+Math.imul(W,eR)|0))<<13)|0;v=((o=Math.imul(W,eM))+(s>>>13)|0)+(e0>>>26)|0,e0&=67108863,i=Math.imul(X,eR),s=(s=Math.imul(X,eM))+Math.imul(Y,eR)|0,o=Math.imul(Y,eM);var e1=(v+(i=i+Math.imul(U,ex)|0)|0)+((8191&(s=(s=s+Math.imul(U,eI)|0)+Math.imul(W,ex)|0))<<13)|0;v=((o=o+Math.imul(W,eI)|0)+(s>>>13)|0)+(e1>>>26)|0,e1&=67108863,i=Math.imul(et,eR),s=(s=Math.imul(et,eM))+Math.imul(er,eR)|0,o=Math.imul(er,eM),i=i+Math.imul(X,ex)|0,s=(s=s+Math.imul(X,eI)|0)+Math.imul(Y,ex)|0,o=o+Math.imul(Y,eI)|0;var e2=(v+(i=i+Math.imul(U,eN)|0)|0)+((8191&(s=(s=s+Math.imul(U,eT)|0)+Math.imul(W,eN)|0))<<13)|0;v=((o=o+Math.imul(W,eT)|0)+(s>>>13)|0)+(e2>>>26)|0,e2&=67108863,i=Math.imul(ei,eR),s=(s=Math.imul(ei,eM))+Math.imul(es,eR)|0,o=Math.imul(es,eM),i=i+Math.imul(et,ex)|0,s=(s=s+Math.imul(et,eI)|0)+Math.imul(er,ex)|0,o=o+Math.imul(er,eI)|0,i=i+Math.imul(X,eN)|0,s=(s=s+Math.imul(X,eT)|0)+Math.imul(Y,eN)|0,o=o+Math.imul(Y,eT)|0;var e3=(v+(i=i+Math.imul(U,eB)|0)|0)+((8191&(s=(s=s+Math.imul(U,eO)|0)+Math.imul(W,eB)|0))<<13)|0;v=((o=o+Math.imul(W,eO)|0)+(s>>>13)|0)+(e3>>>26)|0,e3&=67108863,i=Math.imul(ea,eR),s=(s=Math.imul(ea,eM))+Math.imul(el,eR)|0,o=Math.imul(el,eM),i=i+Math.imul(ei,ex)|0,s=(s=s+Math.imul(ei,eI)|0)+Math.imul(es,ex)|0,o=o+Math.imul(es,eI)|0,i=i+Math.imul(et,eN)|0,s=(s=s+Math.imul(et,eT)|0)+Math.imul(er,eN)|0,o=o+Math.imul(er,eT)|0,i=i+Math.imul(X,eB)|0,s=(s=s+Math.imul(X,eO)|0)+Math.imul(Y,eB)|0,o=o+Math.imul(Y,eO)|0;var e4=(v+(i=i+Math.imul(U,eF)|0)|0)+((8191&(s=(s=s+Math.imul(U,ej)|0)+Math.imul(W,eF)|0))<<13)|0;v=((o=o+Math.imul(W,ej)|0)+(s>>>13)|0)+(e4>>>26)|0,e4&=67108863,i=Math.imul(ec,eR),s=(s=Math.imul(ec,eM))+Math.imul(eh,eR)|0,o=Math.imul(eh,eM),i=i+Math.imul(ea,ex)|0,s=(s=s+Math.imul(ea,eI)|0)+Math.imul(el,ex)|0,o=o+Math.imul(el,eI)|0,i=i+Math.imul(ei,eN)|0,s=(s=s+Math.imul(ei,eT)|0)+Math.imul(es,eN)|0,o=o+Math.imul(es,eT)|0,i=i+Math.imul(et,eB)|0,s=(s=s+Math.imul(et,eO)|0)+Math.imul(er,eB)|0,o=o+Math.imul(er,eO)|0,i=i+Math.imul(X,eF)|0,s=(s=s+Math.imul(X,ej)|0)+Math.imul(Y,eF)|0,o=o+Math.imul(Y,ej)|0;var e5=(v+(i=i+Math.imul(U,eU)|0)|0)+((8191&(s=(s=s+Math.imul(U,eH)|0)+Math.imul(W,eU)|0))<<13)|0;v=((o=o+Math.imul(W,eH)|0)+(s>>>13)|0)+(e5>>>26)|0,e5&=67108863,i=Math.imul(ef,eR),s=(s=Math.imul(ef,eM))+Math.imul(ep,eR)|0,o=Math.imul(ep,eM),i=i+Math.imul(ec,ex)|0,s=(s=s+Math.imul(ec,eI)|0)+Math.imul(eh,ex)|0,o=o+Math.imul(eh,eI)|0,i=i+Math.imul(ea,eN)|0,s=(s=s+Math.imul(ea,eT)|0)+Math.imul(el,eN)|0,o=o+Math.imul(el,eT)|0,i=i+Math.imul(ei,eB)|0,s=(s=s+Math.imul(ei,eO)|0)+Math.imul(es,eB)|0,o=o+Math.imul(es,eO)|0,i=i+Math.imul(et,eF)|0,s=(s=s+Math.imul(et,ej)|0)+Math.imul(er,eF)|0,o=o+Math.imul(er,ej)|0,i=i+Math.imul(X,eU)|0,s=(s=s+Math.imul(X,eH)|0)+Math.imul(Y,eU)|0,o=o+Math.imul(Y,eH)|0;var e6=(v+(i=i+Math.imul(U,eW)|0)|0)+((8191&(s=(s=s+Math.imul(U,eV)|0)+Math.imul(W,eW)|0))<<13)|0;v=((o=o+Math.imul(W,eV)|0)+(s>>>13)|0)+(e6>>>26)|0,e6&=67108863,i=Math.imul(em,eR),s=(s=Math.imul(em,eM))+Math.imul(ey,eR)|0,o=Math.imul(ey,eM),i=i+Math.imul(ef,ex)|0,s=(s=s+Math.imul(ef,eI)|0)+Math.imul(ep,ex)|0,o=o+Math.imul(ep,eI)|0,i=i+Math.imul(ec,eN)|0,s=(s=s+Math.imul(ec,eT)|0)+Math.imul(eh,eN)|0,o=o+Math.imul(eh,eT)|0,i=i+Math.imul(ea,eB)|0,s=(s=s+Math.imul(ea,eO)|0)+Math.imul(el,eB)|0,o=o+Math.imul(el,eO)|0,i=i+Math.imul(ei,eF)|0,s=(s=s+Math.imul(ei,ej)|0)+Math.imul(es,eF)|0,o=o+Math.imul(es,ej)|0,i=i+Math.imul(et,eU)|0,s=(s=s+Math.imul(et,eH)|0)+Math.imul(er,eU)|0,o=o+Math.imul(er,eH)|0,i=i+Math.imul(X,eW)|0,s=(s=s+Math.imul(X,eV)|0)+Math.imul(Y,eW)|0,o=o+Math.imul(Y,eV)|0;var e8=(v+(i=i+Math.imul(U,ez)|0)|0)+((8191&(s=(s=s+Math.imul(U,eJ)|0)+Math.imul(W,ez)|0))<<13)|0;v=((o=o+Math.imul(W,eJ)|0)+(s>>>13)|0)+(e8>>>26)|0,e8&=67108863,i=Math.imul(e_,eR),s=(s=Math.imul(e_,eM))+Math.imul(ev,eR)|0,o=Math.imul(ev,eM),i=i+Math.imul(em,ex)|0,s=(s=s+Math.imul(em,eI)|0)+Math.imul(ey,ex)|0,o=o+Math.imul(ey,eI)|0,i=i+Math.imul(ef,eN)|0,s=(s=s+Math.imul(ef,eT)|0)+Math.imul(ep,eN)|0,o=o+Math.imul(ep,eT)|0,i=i+Math.imul(ec,eB)|0,s=(s=s+Math.imul(ec,eO)|0)+Math.imul(eh,eB)|0,o=o+Math.imul(eh,eO)|0,i=i+Math.imul(ea,eF)|0,s=(s=s+Math.imul(ea,ej)|0)+Math.imul(el,eF)|0,o=o+Math.imul(el,ej)|0,i=i+Math.imul(ei,eU)|0,s=(s=s+Math.imul(ei,eH)|0)+Math.imul(es,eU)|0,o=o+Math.imul(es,eH)|0,i=i+Math.imul(et,eW)|0,s=(s=s+Math.imul(et,eV)|0)+Math.imul(er,eW)|0,o=o+Math.imul(er,eV)|0,i=i+Math.imul(X,ez)|0,s=(s=s+Math.imul(X,eJ)|0)+Math.imul(Y,ez)|0,o=o+Math.imul(Y,eJ)|0;var e7=(v+(i=i+Math.imul(U,eQ)|0)|0)+((8191&(s=(s=s+Math.imul(U,eZ)|0)+Math.imul(W,eQ)|0))<<13)|0;v=((o=o+Math.imul(W,eZ)|0)+(s>>>13)|0)+(e7>>>26)|0,e7&=67108863,i=Math.imul(eE,eR),s=(s=Math.imul(eE,eM))+Math.imul(eS,eR)|0,o=Math.imul(eS,eM),i=i+Math.imul(e_,ex)|0,s=(s=s+Math.imul(e_,eI)|0)+Math.imul(ev,ex)|0,o=o+Math.imul(ev,eI)|0,i=i+Math.imul(em,eN)|0,s=(s=s+Math.imul(em,eT)|0)+Math.imul(ey,eN)|0,o=o+Math.imul(ey,eT)|0,i=i+Math.imul(ef,eB)|0,s=(s=s+Math.imul(ef,eO)|0)+Math.imul(ep,eB)|0,o=o+Math.imul(ep,eO)|0,i=i+Math.imul(ec,eF)|0,s=(s=s+Math.imul(ec,ej)|0)+Math.imul(eh,eF)|0,o=o+Math.imul(eh,ej)|0,i=i+Math.imul(ea,eU)|0,s=(s=s+Math.imul(ea,eH)|0)+Math.imul(el,eU)|0,o=o+Math.imul(el,eH)|0,i=i+Math.imul(ei,eW)|0,s=(s=s+Math.imul(ei,eV)|0)+Math.imul(es,eW)|0,o=o+Math.imul(es,eV)|0,i=i+Math.imul(et,ez)|0,s=(s=s+Math.imul(et,eJ)|0)+Math.imul(er,ez)|0,o=o+Math.imul(er,eJ)|0,i=i+Math.imul(X,eQ)|0,s=(s=s+Math.imul(X,eZ)|0)+Math.imul(Y,eQ)|0,o=o+Math.imul(Y,eZ)|0;var e9=(v+(i=i+Math.imul(U,eX)|0)|0)+((8191&(s=(s=s+Math.imul(U,eY)|0)+Math.imul(W,eX)|0))<<13)|0;v=((o=o+Math.imul(W,eY)|0)+(s>>>13)|0)+(e9>>>26)|0,e9&=67108863,i=Math.imul(eE,ex),s=(s=Math.imul(eE,eI))+Math.imul(eS,ex)|0,o=Math.imul(eS,eI),i=i+Math.imul(e_,eN)|0,s=(s=s+Math.imul(e_,eT)|0)+Math.imul(ev,eN)|0,o=o+Math.imul(ev,eT)|0,i=i+Math.imul(em,eB)|0,s=(s=s+Math.imul(em,eO)|0)+Math.imul(ey,eB)|0,o=o+Math.imul(ey,eO)|0,i=i+Math.imul(ef,eF)|0,s=(s=s+Math.imul(ef,ej)|0)+Math.imul(ep,eF)|0,o=o+Math.imul(ep,ej)|0,i=i+Math.imul(ec,eU)|0,s=(s=s+Math.imul(ec,eH)|0)+Math.imul(eh,eU)|0,o=o+Math.imul(eh,eH)|0,i=i+Math.imul(ea,eW)|0,s=(s=s+Math.imul(ea,eV)|0)+Math.imul(el,eW)|0,o=o+Math.imul(el,eV)|0,i=i+Math.imul(ei,ez)|0,s=(s=s+Math.imul(ei,eJ)|0)+Math.imul(es,ez)|0,o=o+Math.imul(es,eJ)|0,i=i+Math.imul(et,eQ)|0,s=(s=s+Math.imul(et,eZ)|0)+Math.imul(er,eQ)|0,o=o+Math.imul(er,eZ)|0;var te=(v+(i=i+Math.imul(X,eX)|0)|0)+((8191&(s=(s=s+Math.imul(X,eY)|0)+Math.imul(Y,eX)|0))<<13)|0;v=((o=o+Math.imul(Y,eY)|0)+(s>>>13)|0)+(te>>>26)|0,te&=67108863,i=Math.imul(eE,eN),s=(s=Math.imul(eE,eT))+Math.imul(eS,eN)|0,o=Math.imul(eS,eT),i=i+Math.imul(e_,eB)|0,s=(s=s+Math.imul(e_,eO)|0)+Math.imul(ev,eB)|0,o=o+Math.imul(ev,eO)|0,i=i+Math.imul(em,eF)|0,s=(s=s+Math.imul(em,ej)|0)+Math.imul(ey,eF)|0,o=o+Math.imul(ey,ej)|0,i=i+Math.imul(ef,eU)|0,s=(s=s+Math.imul(ef,eH)|0)+Math.imul(ep,eU)|0,o=o+Math.imul(ep,eH)|0,i=i+Math.imul(ec,eW)|0,s=(s=s+Math.imul(ec,eV)|0)+Math.imul(eh,eW)|0,o=o+Math.imul(eh,eV
vendor: 8,235 bytes, line 1
1)|0,i=i+Math.imul(ea,ez)|0,s=(s=s+Math.imul(ea,eJ)|0)+Math.imul(el,ez)|0,o=o+Math.imul(el,eJ)|0,i=i+Math.imul(ei,eQ)|0,s=(s=s+Math.imul(ei,eZ)|0)+Math.imul(es,eQ)|0,o=o+Math.imul(es,eZ)|0;var tt=(v+(i=i+Math.imul(et,eX)|0)|0)+((8191&(s=(s=s+Math.imul(et,eY)|0)+Math.imul(er,eX)|0))<<13)|0;v=((o=o+Math.imul(er,eY)|0)+(s>>>13)|0)+(tt>>>26)|0,tt&=67108863,i=Math.imul(eE,eB),s=(s=Math.imul(eE,eO))+Math.imul(eS,eB)|0,o=Math.imul(eS,eO),i=i+Math.imul(e_,eF)|0,s=(s=s+Math.imul(e_,ej)|0)+Math.imul(ev,eF)|0,o=o+Math.imul(ev,ej)|0,i=i+Math.imul(em,eU)|0,s=(s=s+Math.imul(em,eH)|0)+Math.imul(ey,eU)|0,o=o+Math.imul(ey,eH)|0,i=i+Math.imul(ef,eW)|0,s=(s=s+Math.imul(ef,eV)|0)+Math.imul(ep,eW)|0,o=o+Math.imul(ep,eV)|0,i=i+Math.imul(ec,ez)|0,s=(s=s+Math.imul(ec,eJ)|0)+Math.imul(eh,ez)|0,o=o+Math.imul(eh,eJ)|0,i=i+Math.imul(ea,eQ)|0,s=(s=s+Math.imul(ea,eZ)|0)+Math.imul(el,eQ)|0,o=o+Math.imul(el,eZ)|0;var tr=(v+(i=i+Math.imul(ei,eX)|0)|0)+((8191&(s=(s=s+Math.imul(ei,eY)|0)+Math.imul(es,eX)|0))<<13)|0;v=((o=o+Math.imul(es,eY)|0)+(s>>>13)|0)+(tr>>>26)|0,tr&=67108863,i=Math.imul(eE,eF),s=(s=Math.imul(eE,ej))+Math.imul(eS,eF)|0,o=Math.imul(eS,ej),i=i+Math.imul(e_,eU)|0,s=(s=s+Math.imul(e_,eH)|0)+Math.imul(ev,eU)|0,o=o+Math.imul(ev,eH)|0,i=i+Math.imul(em,eW)|0,s=(s=s+Math.imul(em,eV)|0)+Math.imul(ey,eW)|0,o=o+Math.imul(ey,eV)|0,i=i+Math.imul(ef,ez)|0,s=(s=s+Math.imul(ef,eJ)|0)+Math.imul(ep,ez)|0,o=o+Math.imul(ep,eJ)|0,i=i+Math.imul(ec,eQ)|0,s=(s=s+Math.imul(ec,eZ)|0)+Math.imul(eh,eQ)|0,o=o+Math.imul(eh,eZ)|0;var tn=(v+(i=i+Math.imul(ea,eX)|0)|0)+((8191&(s=(s=s+Math.imul(ea,eY)|0)+Math.imul(el,eX)|0))<<13)|0;v=((o=o+Math.imul(el,eY)|0)+(s>>>13)|0)+(tn>>>26)|0,tn&=67108863,i=Math.imul(eE,eU),s=(s=Math.imul(eE,eH))+Math.imul(eS,eU)|0,o=Math.imul(eS,eH),i=i+Math.imul(e_,eW)|0,s=(s=s+Math.imul(e_,eV)|0)+Math.imul(ev,eW)|0,o=o+Math.imul(ev,eV)|0,i=i+Math.imul(em,ez)|0,s=(s=s+Math.imul(em,eJ)|0)+Math.imul(ey,ez)|0,o=o+Math.imul(ey,eJ)|0,i=i+Math.imul(ef,eQ)|0,s=(s=s+Math.imul(ef,eZ)|0)+Math.imul(ep,eQ)|0,o=o+Math.imul(ep,eZ)|0;var ti=(v+(i=i+Math.imul(ec,eX)|0)|0)+((8191&(s=(s=s+Math.imul(ec,eY)|0)+Math.imul(eh,eX)|0))<<13)|0;v=((o=o+Math.imul(eh,eY)|0)+(s>>>13)|0)+(ti>>>26)|0,ti&=67108863,i=Math.imul(eE,eW),s=(s=Math.imul(eE,eV))+Math.imul(eS,eW)|0,o=Math.imul(eS,eV),i=i+Math.imul(e_,ez)|0,s=(s=s+Math.imul(e_,eJ)|0)+Math.imul(ev,ez)|0,o=o+Math.imul(ev,eJ)|0,i=i+Math.imul(em,eQ)|0,s=(s=s+Math.imul(em,eZ)|0)+Math.imul(ey,eQ)|0,o=o+Math.imul(ey,eZ)|0;var ts=(v+(i=i+Math.imul(ef,eX)|0)|0)+((8191&(s=(s=s+Math.imul(ef,eY)|0)+Math.imul(ep,eX)|0))<<13)|0;v=((o=o+Math.imul(ep,eY)|0)+(s>>>13)|0)+(ts>>>26)|0,ts&=67108863,i=Math.imul(eE,ez),s=(s=Math.imul(eE,eJ))+Math.imul(eS,ez)|0,o=Math.imul(eS,eJ),i=i+Math.imul(e_,eQ)|0,s=(s=s+Math.imul(e_,eZ)|0)+Math.imul(ev,eQ)|0,o=o+Math.imul(ev,eZ)|0;var to=(v+(i=i+Math.imul(em,eX)|0)|0)+((8191&(s=(s=s+Math.imul(em,eY)|0)+Math.imul(ey,eX)|0))<<13)|0;v=((o=o+Math.imul(ey,eY)|0)+(s>>>13)|0)+(to>>>26)|0,to&=67108863,i=Math.imul(eE,eQ),s=(s=Math.imul(eE,eZ))+Math.imul(eS,eQ)|0,o=Math.imul(eS,eZ);var ta=(v+(i=i+Math.imul(e_,eX)|0)|0)+((8191&(s=(s=s+Math.imul(e_,eY)|0)+Math.imul(ev,eX)|0))<<13)|0;v=((o=o+Math.imul(ev,eY)|0)+(s>>>13)|0)+(ta>>>26)|0,ta&=67108863;var tl=(v+(i=Math.imul(eE,eX))|0)+((8191&(s=(s=Math.imul(eE,eY))+Math.imul(eS,eX)|0))<<13)|0;return v=((o=Math.imul(eS,eY))+(s>>>13)|0)+(tl>>>26)|0,tl&=67108863,c[0]=e0,c[1]=e1,c[2]=e2,c[3]=e3,c[4]=e4,c[5]=e5,c[6]=e6,c[7]=e8,c[8]=e7,c[9]=e9,c[10]=te,c[11]=tt,c[12]=tr,c[13]=tn,c[14]=ti,c[15]=ts,c[16]=to,c[17]=ta,c[18]=tl,0!==v&&(c[19]=v,n.length++),n};function bigMulTo(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var i=0,s=0,o=0;o<n.length-1;o++){var a=s;s=0;for(var u=67108863&i,c=Math.min(o,t.length-1),v=Math.max(0,o-e.length+1);v<=c;v++){var R=o-v,U=(0|e.words[R])*(0|t.words[v]),W=67108863&U;a=a+(U/67108864|0)|0,u=67108863&(W=W+u|0),s+=(a=a+(W>>>26)|0)>>>26,a&=67108863}n.words[o]=u,i=a,a=s}return 0!==i?n.words[o]=i:n.length--,n._strip()}function FFTM(e,t){this.x=e,this.y=t}Math.imul||(comb10MulTo=smallMulTo),BN.prototype.mulTo=function(e,t){var n,i=this.length+e.length;return 10===this.length&&10===e.length?comb10MulTo(this,e,t):i<63?smallMulTo(this,e,t):bigMulTo(this,e,t)},FFTM.prototype.makeRBT=function(e){for(var t=Array(e),n=BN.prototype._countBits(e)-1,i=0;i<e;i++)t[i]=this.revBin(i,n,e);return t},FFTM.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var i=0,s=0;s<t;s++)i|=(1&e)<<t-s-1,e>>=1;return i},FFTM.prototype.permute=function(e,t,n,i,s,o){for(var a=0;a<o;a++)i[a]=t[e[a]],s[a]=n[e[a]]},FFTM.prototype.transform=function(e,t,n,i,s,o){this.permute(o,e,t,n,i,s);for(var a=1;a<s;a<<=1)for(var u=a<<1,c=Math.cos(2*Math.PI/u),v=Math.sin(2*Math.PI/u),R=0;R<s;R+=u)for(var U=c,W=v,Z=0;Z<a;Z++){var X=n[R+Z],Y=i[R+Z],ee=n[R+Z+a],et=i[R+Z+a],er=U*ee-W*et;et=U*et+W*ee,ee=er,n[R+Z]=X+ee,i[R+Z]=Y+et,n[R+Z+a]=X-ee,i[R+Z+a]=Y-et,Z!==u&&(er=c*U-v*W,W=c*W+v*U,U=er)}},FFTM.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),i=1&n,s=0;for(n=n/2|0;n;n>>>=1)s++;return 1<<s+1+i},FFTM.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var i=0;i<n/2;i++){var s=e[i];e[i]=e[n-i-1],e[n-i-1]=s,s=t[i],t[i]=-t[n-i-1],t[n-i-1]=-s}},FFTM.prototype.normalize13b=function(e,t){for(var n=0,i=0;i<t/2;i++){var s=8192*Math.round(e[2*i+1]/t)+Math.round(e[2*i]/t)+n;e[i]=67108863&s,n=s<67108864?0:s/67108864|0}return e},FFTM.prototype.convert13b=function(e,t,n,i){for(var s=0,o=0;o<t;o++)s+=0|e[o],n[2*o]=8191&s,s>>>=13,n[2*o+1]=8191&s,s>>>=13;for(o=2*t;o<i;++o)n[o]=0;assert(0===s),assert((-8192&s)==0)},FFTM.prototype.stub=function(e){for(var t=Array(e),n=0;n<e;n++)t[n]=0;return t},FFTM.prototype.mulp=function(e,t,n){var i=2*this.guessLen13b(e.length,t.length),s=this.makeRBT(i),o=this.stub(i),a=Array(i),u=Array(i),c=Array(i),v=Array(i),R=Array(i),U=Array(i),W=n.words;W.length=i,this.convert13b(e.words,e.length,a,i),this.convert13b(t.words,t.length,v,i),this.transform(a,o,u,c,i,s),this.transform(v,o,R,U,i,s);for(var Z=0;Z<i;Z++){var X=u[Z]*R[Z]-c[Z]*U[Z];c[Z]=u[Z]*U[Z]+c[Z]*R[Z],u[Z]=X}return this.conjugate(u,c,i),this.transform(u,c,W,o,i,s),this.conjugate(W,o,i),this.normalize13b(W,i),n.negative=e.negative^t.negative,n.length=e.length+t.length,n._strip()},BN.prototype.mul=function(e){var t=new BN(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},BN.prototype.mulf=function(e){var t=new BN(null);return t.words=Array(this.length+e.length),bigMulTo(this,e,t)},BN.prototype.imul=function(e){return this.clone().mulTo(e,this)},BN.prototype.imuln=function(e){var t=e<0;t&&(e=-e),assert("number"==typeof e),assert(e<67108864);for(var n=0,i=0;i<this.length;i++){var s=(0|this.words[i])*e,o=(67108863&s)+(67108863&n);n>>=26,n+=(s/67108864|0)+(o>>>26),this.words[i]=67108863&o}return 0!==n&&(this.words[i]=n,this.length++),this.length=0===e?1:this.length,t?this.ineg():this},BN.prototype.muln=function(e){return this.clone().imuln(e)},BN.prototype.sqr=function(){return this.mul(this)},BN.prototype.isqr=function(){return this.imul(this.clone())},BN.prototype.pow=function(e){var t=toBitArray(e);if(0===t.length)return new BN(1);for(var n=this,i=0;i<t.length&&0===t[i];i++,n=n.sqr());if(++i<t.length)for(var s=n.sqr();i<t.length;i++,s=s.sqr())0!==t[i]&&(n=n.mul(s));return n},BN.prototype.iushln=function(e){assert("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,s=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t<this.length;t++){var a=this.words[t]&s,u=(0|this.words[t])-a<<n;this.words[t]=u|o,o=a>>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},BN.prototype.ishln=function(e){return assert(0===this.negative),this.iushln(e)},BN.prototype.iushrn=function(e,t,n){assert("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var i,s=e%26,o=Math.min((e-s)/26,this.length),a=67108863^67108863>>>s<<s;if(i-=o,i=Math.max(0,i),n){for(var u=0;u<o;u++)n.words[u]=this.words[u];n.length=o}if(0===o);else if(this.length>o)for(this.length-=o,u=0;u<this.length;u++)this.words[u]=this.words[u+o];else this.words[0]=0,this.length=1;var c=0;for(u=this.length-1;u>=0&&(0!==c||u>=i);u--){var v=0|this.words[u];this.words[u]=c<<26-s|v>>>s,c=v&a}
vendor: 15,271 bytes, line 1
1return n&&0!==c&&(n.words[n.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},BN.prototype.ishrn=function(e,t,n){return assert(0===this.negative),this.iushrn(e,t,n)},BN.prototype.shln=function(e){return this.clone().ishln(e)},BN.prototype.ushln=function(e){return this.clone().iushln(e)},BN.prototype.shrn=function(e){return this.clone().ishrn(e)},BN.prototype.ushrn=function(e){return this.clone().iushrn(e)},BN.prototype.testn=function(e){assert("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;return!(this.length<=n)&&!!(this.words[n]&1<<t)},BN.prototype.imaskn=function(e){assert("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;return(assert(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)?this:(0!==t&&n++,this.length=Math.min(n,this.length),0!==t&&(this.words[this.length-1]&=67108863^67108863>>>t<<t),this._strip())},BN.prototype.maskn=function(e){return this.clone().imaskn(e)},BN.prototype.iaddn=function(e){return(assert("number"==typeof e),assert(e<67108864),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},BN.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},BN.prototype.isubn=function(e){if(assert("number"==typeof e),assert(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},BN.prototype.addn=function(e){return this.clone().iaddn(e)},BN.prototype.subn=function(e){return this.clone().isubn(e)},BN.prototype.iabs=function(){return this.negative=0,this},BN.prototype.abs=function(){return this.clone().iabs()},BN.prototype._ishlnsubmul=function(e,t,n){var i,s,o=e.length+n;this._expand(o);var a=0;for(i=0;i<e.length;i++){s=(0|this.words[i+n])+a;var u=(0|e.words[i])*t;s-=67108863&u,a=(s>>26)-(u/67108864|0),this.words[i+n]=67108863&s}for(;i<this.length-n;i++)a=(s=(0|this.words[i+n])+a)>>26,this.words[i+n]=67108863&s;if(0===a)return this._strip();for(assert(-1===a),a=0,i=0;i<this.length;i++)a=(s=-(0|this.words[i])+a)>>26,this.words[i]=67108863&s;return this.negative=1,this._strip()},BN.prototype._wordDiv=function(e,t){var n,i=this.length-e.length,s=this.clone(),o=e,a=0|o.words[o.length-1];0!=(i=26-this._countBits(a))&&(o=o.ushln(i),s.iushln(i),a=0|o.words[o.length-1]);var u=s.length-o.length;if("mod"!==t){(n=new BN(null)).length=u+1,n.words=Array(n.length);for(var c=0;c<n.length;c++)n.words[c]=0}var v=s.clone()._ishlnsubmul(o,1,u);0===v.negative&&(s=v,n&&(n.words[u]=1));for(var R=u-1;R>=0;R--){var U=(0|s.words[o.length+R])*67108864+(0|s.words[o.length+R-1]);for(U=Math.min(U/a|0,67108863),s._ishlnsubmul(o,U,R);0!==s.negative;)U--,s.negative=0,s._ishlnsubmul(o,1,R),s.isZero()||(s.negative^=1);n&&(n.words[R]=U)}return n&&n._strip(),s._strip(),"div"!==t&&0!==i&&s.iushrn(i),{div:n||null,mod:s}},BN.prototype.divmod=function(e,t,n){var i,s,o;return(assert(!e.isZero()),this.isZero())?{div:new BN(0),mod:new BN(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(i=o.div.neg()),"div"!==t&&(s=o.mod.neg(),n&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(i=o.div.neg()),{div:i,mod:o.mod}):(this.negative&e.negative)!=0?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),n&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new BN(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new BN(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new BN(this.modrn(e.words[0]))}:this._wordDiv(e,t)},BN.prototype.div=function(e){return this.divmod(e,"div",!1).div},BN.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},BN.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},BN.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,i=e.ushrn(1),s=e.andln(1),o=n.cmp(i);return o<0||1===s&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},BN.prototype.modrn=function(e){var t=e<0;t&&(e=-e),assert(e<=67108863);for(var n=67108864%e,i=0,s=this.length-1;s>=0;s--)i=(n*i+(0|this.words[s]))%e;return t?-i:i},BN.prototype.modn=function(e){return this.modrn(e)},BN.prototype.idivn=function(e){var t=e<0;t&&(e=-e),assert(e<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var s=(0|this.words[i])+67108864*n;this.words[i]=s/e|0,n=s%e}return this._strip(),t?this.ineg():this},BN.prototype.divn=function(e){return this.clone().idivn(e)},BN.prototype.egcd=function(e){assert(0===e.negative),assert(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new BN(1),s=new BN(0),o=new BN(0),a=new BN(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var c=n.clone(),v=t.clone();!t.isZero();){for(var R=0,U=1;(t.words[0]&U)==0&&R<26;++R,U<<=1);if(R>0)for(t.iushrn(R);R-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(c),s.isub(v)),i.iushrn(1),s.iushrn(1);for(var W=0,Z=1;(n.words[0]&Z)==0&&W<26;++W,Z<<=1);if(W>0)for(n.iushrn(W);W-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(c),a.isub(v)),o.iushrn(1),a.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(o),s.isub(a)):(n.isub(t),o.isub(i),a.isub(s))}return{a:o,b:a,gcd:n.iushln(u)}},BN.prototype._invmp=function(e){assert(0===e.negative),assert(!e.isZero());var t,n=this,i=e.clone();n=0!==n.negative?n.umod(e):n.clone();for(var s=new BN(1),o=new BN(0),a=i.clone();n.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,c=1;(n.words[0]&c)==0&&u<26;++u,c<<=1);if(u>0)for(n.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(a),s.iushrn(1);for(var v=0,R=1;(i.words[0]&R)==0&&v<26;++v,R<<=1);if(v>0)for(i.iushrn(v);v-- >0;)o.isOdd()&&o.iadd(a),o.iushrn(1);n.cmp(i)>=0?(n.isub(i),s.isub(o)):(i.isub(n),o.isub(s))}return 0>(t=0===n.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},BN.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var i=0;t.isEven()&&n.isEven();i++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var s=t.cmp(n);if(s<0){var o=t;t=n,n=o}else if(0===s||0===n.cmpn(1))break;t.isub(n)}return n.iushln(i)},BN.prototype.invm=function(e){return this.egcd(e).a.umod(e)},BN.prototype.isEven=function(){return(1&this.words[0])==0},BN.prototype.isOdd=function(){return(1&this.words[0])==1},BN.prototype.andln=function(e){return this.words[0]&e},BN.prototype.bincn=function(e){assert("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var s=i,o=n;0!==s&&o<this.length;o++){var a=0|this.words[o];a+=s,s=a>>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},BN.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},BN.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return -1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),assert(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},BN.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},BN.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,n=this.length-1;n>=0;n--){var i=0|this.words[n],s=0|e.words[n];if(i!==s){i<s?t=-1:i>s&&(t=1);break}}return t},BN.prototype.gtn=function(e){return 1===this.cmpn(e)},BN.prototype.gt=function(e){return 1===this.cmp(e)},BN.prototype.gten=function(e){return this.cmpn(e)>=0},BN.prototype.gte=function(e){return this.cmp(e)>=0},BN.prototype.ltn=function(e){return -1===this.cmpn(e)},BN.prototype.lt=function(e){return -1===this.cmp(e)},BN.prototype.lten=function(e){return 0>=this.cmpn(e)},BN.prototype.lte=function(e){return 0>=this.cmp(e)},BN.prototype.eqn=function(e){return 0===this.cmpn(e)},BN.prototype.eq=function(e){return 0===this.cmp(e)},BN.red=function(e){return new Red(e)},BN.prototype.toRed=function(e){return assert(!this.red,"Already a number in reduction context"),assert(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},BN.prototype.fromRed=function(){return assert(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},BN.prototype._forceRed=function(e){return this.red=e,this},BN.prototype.forceRed=function(e){return assert(!this.red,"Already a number in reduction context"),this._forceRed(e)},BN.prototype.redAdd=function(e){return assert(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},BN.prototype.redIAdd=function(e){return assert(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},BN.prototype.redSub=function(e){return assert(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},BN.prototype.redISub=function(e){return assert(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},BN.prototype.redShl=function(e){return assert(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},BN.prototype.redMul=function(e){return assert(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},BN.prototype.redIMul=function(e){return assert(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},BN.prototype.redSqr=function(){return assert(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},BN.prototype.redISqr=function(){return assert(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},BN.prototype.redSqrt=function(){return assert(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},BN.prototype.redInvm=function(){return assert(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},BN.prototype.redNeg=function(){return assert(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},BN.prototype.redPow=function(e){return assert(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var u={k256:null,p224:null,p192:null,p25519:null};function MPrime(e,t){this.name=e,this.p=new BN(t,16),this.n=this.p.bitLength(),this.k=new BN(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function K256(){MPrime.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function P224(){MPrime.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function P192(){MPrime.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function P25519(){MPrime.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Red(e){if("string"==typeof e){var t=BN._prime(e);this.m=t.p,this.prime=t}else assert(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function Mont(e){Red.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new BN(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)}MPrime.prototype._tmp=function(){var e=new BN(null);return e.words=Array(Math.ceil(this.n/13)),e},MPrime.prototype.ireduce=function(e){var t,n=e;do this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength();while(t>this.n);var i=t<this.n?-1:n.ucmp(this.p);return 0===i?(n.words[0]=0,n.length=1):i>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},MPrime.prototype.split=function(e,t){e.iushrn(this.n,0,t)},MPrime.prototype.imulK=function(e){return e.imul(this.k)},inherits(K256,MPrime),K256.prototype.split=function(e,t){for(var n=Math.min(e.length,9),i=0;i<n;i++)t.words[i]=e.words[i];if(t.length=n,e.length<=9){e.words[0]=0,e.length=1;return}var s=e.words[9];for(i=10,t.words[t.length++]=4194303&s;i<e.length;i++){var o=0|e.words[i];e.words[i-10]=(4194303&o)<<4|s>>>22,s=o}s>>>=22,e.words[i-10]=s,0===s&&e.length>10?e.length-=10:e.length-=9},K256.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var i=0|e.words[n];t+=977*i,e.words[n]=67108863&t,t=64*i+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},inherits(P224,MPrime),inherits(P192,MPrime),inherits(P25519,MPrime),P25519.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var i=(0|e.words[n])*19+t,s=67108863&i;i>>>=26,e.words[n]=s,t=i}return 0!==t&&(e.words[e.length++]=t),e},BN._prime=function(e){var t;if(u[e])return u[e];if("k256"===e)t=new K256;else if("p224"===e)t=new P224;else if("p192"===e)t=new P192;else if("p25519"===e)t=new P25519;else throw Error("Unknown prime "+e);return u[e]=t,t},Red.prototype._verify1=function(e){assert(0===e.negative,"red works only with positives"),assert(e.red,"red works only with red numbers")},Red.prototype._verify2=function(e,t){assert((e.negative|t.negative)==0,"red works only with positives"),assert(e.red&&e.red===t.red,"red works only with red numbers")},Red.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(move(e,e.umod(this.m)._forceRed(this)),e)},Red.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},Red.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},Red.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},Red.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return 0>n.cmpn(0)&&n.iadd(this.m),n._forceRed(this)},Red.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return 0>n.cmpn(0)&&n.iadd(this.m),n},Red.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},Red.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},Red.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},Red.prototype.isqr=function(e){return this.imul(e,e.clone())},Red.prototype.sqr=function(e){return this.mul(e,e)},Red.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(assert(t%2==1),3===t){var n=this.m.add(new BN(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);assert(!i.isZero());var o=new BN(1).toRed(this),a=o.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new BN(2*c*c).toRed(this);0!==this.pow(c,u).cmp(a);)c.redIAdd(a);for(var v=this.pow(c,i),R=this.pow(e,i.addn(1).iushrn(1)),U=this.pow(e,i),W=s;0!==U.cmp(o);){for(var Z=U,X=0;
10!==Z.cmp(o);X++)Z=Z.redSqr();assert(X<W);var Y=this.pow(v,new BN(1).iushln(W-X-1));R=R.redMul(Y),v=Y.redSqr(),U=U.redMul(v),W=X}return R},Red.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},Red.prototype.pow=function(e,t){if(t.isZero())return new BN(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=Array(16);n[0]=new BN(1).toRed(this),n[1]=e;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],e);var s=n[0],o=0,a=0,u=t.bitLength()%26;for(0===u&&(u=26),i=t.length-1;i>=0;i--){for(var c=t.words[i],v=u-1;v>=0;v--){var R=c>>v&1;if(s!==n[0]&&(s=this.sqr(s)),0===R&&0===o){a=0;continue}o<<=1,o|=R,(4==++a||0===i&&0===v)&&(s=this.mul(s,n[o]),a=0,o=0)}u=26}return s},Red.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},Red.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},BN.mont=function(e){return new Mont(e)},inherits(Mont,Red),Mont.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},Mont.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},Mont.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=n.isub(i).iushrn(this.shift),o=s;return s.cmp(this.m)>=0?o=s.isub(this.m):0>s.cmpn(0)&&(o=s.iadd(this.m)),o._forceRed(this)},Mont.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new BN(0)._forceRed(this);var n=e.mul(t),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=n.isub(i).iushrn(this.shift),o=s;return s.cmp(this.m)>=0?o=s.isub(this.m):0>s.cmpn(0)&&(o=s.iadd(this.m)),o._forceRed(this)},Mont.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},6725:function(e,t,n){"use strict";var i=n(24316),s=n(30184),o=n(96751),a=n(4949);e.exports=a||i.call(o,s)},85475:function(e,t,n){"use strict";var i=n(24316),s=n(30184),o=n(6725);e.exports=function(){return o(i,s,arguments)}},30184:function(e){"use strict";e.exports=Function.prototype.apply},96751:function(e){"use strict";e.exports=Function.prototype.call},9166:function(e,t,n){"use strict";var i=n(24316),s=n(35281),o=n(96751),a=n(6725);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new s("a function is required");return a(i,o,e)}},4949:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},65775:function(e,t,n){"use strict";var i=n(91475),s=n(50228),o=n(9166),a=n(85475);e.exports=function(e){var t=o(arguments),n=e.length-(arguments.length-1);return i(t,1+(n>0?n:0),!0)},s?s(e.exports,"apply",{value:a}):e.exports.apply=a},18971:function(e,t,n){"use strict";var i=n(51597),s=n(9166),o=s([i("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=i(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?s([n]):n}},50348:function(e,t,n){"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e){if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t)}return i}function clsx(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}n.r(t),n.d(t,{clsx:function(){return clsx}}),t.default=clsx},4461:function(e,t,n){let i;var s=n(62601);function useColors(){let e;return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function formatArgs(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let n="color: "+this.color;t.splice(1,0,n,"color: inherit");let i=0,s=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(i++,"%c"===e&&(s=i))}),t.splice(s,0,n)}function save(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&void 0!==s&&"env"in s&&(e=s.env.DEBUG),e}function localstorage(){try{return localStorage}catch(e){}}t.formatArgs=formatArgs,t.save=save,t.load=load,t.useColors=useColors,t.storage=localstorage(),t.destroy=(i=!1,()=>{i||(i=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33
1CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(84239)(t);let{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},84239:function(e,t,n){function setup(e){function selectColor(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return createDebug.colors[Math.abs(t)%createDebug.colors.length]}function createDebug(e){let t,n,i;let s=null;function debug(...e){if(!debug.enabled)return;let n=debug,i=Number(new Date),s=i-(t||i);n.diff=s,n.prev=t,n.curr=i,t=i,e[0]=createDebug.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if("%%"===t)return"%";o++;let s=createDebug.formatters[i];if("function"==typeof s){let i=e[o];t=s.call(n,i),e.splice(o,1),o--}return t}),createDebug.formatArgs.call(n,e);let a=n.log||createDebug.log;a.apply(n,e)}return debug.namespace=e,debug.useColors=createDebug.useColors(),debug.color=createDebug.selectColor(e),debug.extend=extend,debug.destroy=createDebug.destroy,Object.defineProperty(debug,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(n!==createDebug.namespaces&&(n=createDebug.namespaces,i=createDebug.enabled(e)),i),set:e=>{s=e}}),"function"==typeof createDebug.init&&createDebug.init(debug),debug}function extend(e,t){let n=createDebug(this.namespace+(void 0===t?":":t)+e);return n.log=this.log,n}function enable(e){createDebug.save(e),createDebug.namespaces=e,createDebug.names=[],createDebug.skips=[];let t=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let e of t)"-"===e[0]?createDebug.skips.push(e.slice(1)):createDebug.names.push(e)}function matchesTemplate(e,t){let n=0,i=0,s=-1,o=0;for(;n<e.length;)if(i<t.length&&(t[i]===e[n]||"*"===t[i]))"*"===t[i]?(s=i,o=n):n++,i++;else{if(-1===s)return!1;i=s+1,n=++o}for(;i<t.length&&"*"===t[i];)i++;return i===t.length}function disable(){let e=[...createDebug.names,...createDebug.skips.map(e=>"-"+e)].join(",");return createDebug.enable(""),e}function enabled(e){for(let t of createDebug.skips)if(matchesTemplate(e,t))return!1;for(let t of createDebug.names)if(matchesTemplate(e,t))return!0;return!1}function coerce(e){return e instanceof Error?e.stack||e.message:e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return createDebug.debug=createDebug,createDebug.default=createDebug,createDebug.coerce=coerce,createDebug.disable=disable,createDebug.enable=enable,createDebug.enabled=enabled,createDebug.humanize=n(60438),createDebug.destroy=destroy,Object.keys(e).forEach(t=>{createDebug[t]=e[t]}),createDebug.names=[],createDebug.skips=[],createDebug.formatters={},createDebug.selectColor=selectColor,createDebug.enable(createDebug.load()),createDebug}e.exports=setup},9122:function(e,t,n){"use strict";var i=n(50228),s=n(39819),o=n(35281),a=n(67526);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,v=arguments.length>5?arguments[5]:null,R=arguments.length>6&&arguments[6],U=!!a&&a(e,t);if(i)i(e,t,{configurable:null===v&&U?U.configurable:!v,enumerable:null===u&&U?U.enumerable:!u,value:n,writable:null===c&&U?U.writable:!c});else if(!R&&(u||c||v))throw new s("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=n}},4236:function(e,t,n){"use strict";var i,s=n(9166),o=n(67526);try{i=[].__proto__===Array.prototype}
1catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!i&&o&&o(Object.prototype,"__proto__"),u=Object,c=u.getPrototypeOf;e.exports=a&&"function"==typeof a.get?s([a.get]):"function"==typeof c&&function(e){return c(null==e?e:u(e))}},50228:function(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},31618:function(e){"use strict";e.exports=EvalError},31330:function(e){"use strict";e.exports=Error},87698:function(e){"use strict";e.exports=RangeError},5905:function(e){"use strict";e.exports=ReferenceError},39819:function(e){"use strict";e.exports=SyntaxError},35281:function(e){"use strict";e.exports=TypeError},33880:function(e){"use strict";e.exports=URIError},56976:function(e){"use strict";e.exports=Object},68590:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseBlockTracker=void 0;let s=i(n(69930)),calculateSum=(e,t)=>e+t,o=["sync","latest"];let BaseBlockTracker=class BaseBlockTracker extends s.default{constructor(e){super(),this._blockResetDuration=e.blockResetDuration||2e4,this._usePastBlocks=e.usePastBlocks||!1,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()}async destroy(){this._cancelBlockResetTimeout(),await this._maybeEnd(),super.removeAllListeners()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){if(this._currentBlock)return this._currentBlock;let e=await new Promise(e=>this.once("latest",e));return e}removeAllListeners(e){return e?super.removeAllListeners(e):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener(),this}_setupInternalEvents(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}_onNewListener(e){o.includes(e)&&this._maybeStart()}_onRemoveListener(){this._getBlockTrackerEventCount()>0||this._maybeEnd()}async _maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),await this._start(),this.emit("_started"))}async _maybeEnd(){this._isRunning&&(this._isRunning=!1,this._setupBlockResetTimeout(),await this._end(),this.emit("_ended"))}_getBlockTrackerEventCount(){return o.map(e=>this.listenerCount(e)).reduce(calculateSum)}_shouldUseNewBlock(e){let t=this._currentBlock;if(!t)return!0;let n=hexToInt(e),i=hexToInt(t);return this._usePastBlocks&&n<i||n>i}_newPotentialLatest(e){this._shouldUseNewBlock(e)&&this._setCurrentBlock(e)}_setCurrentBlock(e){let t=this._currentBlock;this._currentBlock=e,this.emit("latest",e),this.emit("sync",{oldBlock:t,newBlock:e})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){this._blockResetTimeout&&clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}};function hexToInt(e){return Number.parseInt(e,16)}t.BaseBlockTracker=BaseBlockTracker},42399:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PollingBlockTracker=void 0;let s=i(n(21192)),o=i(n(81044)),a=n(68590),u=n(58378),c=(0,u.createModuleLogger)(u.projectLogger,"polling-block-tracker"),v=(0,s.default)();let PollingBlockTracker=class PollingBlockTracker extends a.BaseBlockTracker{constructor(e={}){var t;if(!e.provider)throw Error("PollingBlockTracker - no provider specified.");super(Object.assign(Object.assign({},e),{blockResetDuration:null!==(t=e.blockResetDuration)&&void 0!==t?t:e.pollingInterval})),this._provider=e.provider,this._pollingInterval=e.pollingInterval||2e4,this._retryTimeout=e.retryTimeout||this._pollingInterval/10,this._keepEventLoopActive=void 0===e.keepEventLoopActive||e.keepEventLoopActive,this._setSkipCacheFlag=e.setSkipCacheFlag||!1}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}async _start(){this._synchronize()}async _end(){}async _synchronize(){for(var e;this._isRunning;)try{await this._updateLatestBlock();let e=timeout(this._pollingInterval,!this._keepEventLoopActive);
1this.emit("_waitingForNextIteration"),await e}catch(i){let t=Error(`PollingBlockTracker - encountered an error while attempting to update latest block:
2${null!==(e=i.stack)&&void 0!==e?e:i}`);try{this.emit("error",t)}catch(e){console.error(t)}let n=timeout(this._retryTimeout,!this._keepEventLoopActive);this.emit("_waitingForNextIteration"),await n}}async _updateLatestBlock(){let e=await this._fetchLatestBlock();this._newPotentialLatest(e)}async _fetchLatestBlock(){let e={jsonrpc:"2.0",id:v(),method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(e.skipCache=!0),c("Making request",e);let t=await (0,o.default)(t=>this._provider.sendAsync(e,t))();if(c("Got response",t),t.error)throw Error(`PollingBlockTracker - encountered error fetching block:
3${t.error.message}`);return t.result}};function timeout(e,t){return new Promise(n=>{let i=setTimeout(n,e);i.unref&&t&&i.unref()})}t.PollingBlockTracker=PollingBlockTracker},57826:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SubscribeBlockTracker=void 0;let s=i(n(21192)),o=n(68590),a=(0,s.default)();let SubscribeBlockTracker=class SubscribeBlockTracker extends o.BaseBlockTracker{constructor(e={}){if(!e.provider)throw Error("SubscribeBlockTracker - no provider specified.");super(e),this._provider=e.provider,this._subscriptionId=null}async checkForLatestBlock(){return await this.getLatestBlock()}
3async _start(){if(void 0===this._subscriptionId||null===this._subscriptionId)try{let e=await this._call("eth_blockNumber");this._subscriptionId=await this._call("eth_subscribe","newHeads"),this._provider.on("data",this._handleSubData.bind(this)),this._newPotentialLatest(e)}catch(e){this.emit("error",e)}}async _end(){if(null!==this._subscriptionId&&void 0!==this._subscriptionId)try{await this._call("eth_unsubscribe",this._subscriptionId),this._subscriptionId=null}catch(e){this.emit("error",e)}}_call(e,...t){return new Promise((n,i)=>{this._provider.sendAsync({id:a(),method:e,params:t,jsonrpc:"2.0"},(e,t)=>{e?i(e):n(t.result)})})}_handleSubData(e,t){var n;"eth_subscription"===t.method&&(null===(n=t.params)||void 0===n?void 0:n.subscription)===this._subscriptionId&&this._newPotentialLatest(t.params.result.number)}};t.SubscribeBlockTracker=SubscribeBlockTracker},2704:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),s(n(42399),t),s(n(57826),t)},58378:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createModuleLogger=t.projectLogger=void 0;let i=n(30377);Object.defineProperty(t,"createModuleLogger",{enumerable:!0,get:function(){return i.createModuleLogger}}),t.projectLogger=(0,i.createProjectLogger)("eth-block-tracker")},81044:function(e){"use strict";let processFn=(e,t)=>function(){let n=t.promiseModule,i=Array(arguments.length);for(let e=0;e<arguments.length;e++)i[e]=arguments[e];return new n((n,s)=>{t.errorFirst?i.push(function(e,i){if(t.multiArgs){let t=Array(arguments.length-1);for(let e=1;e<arguments.length;e++)t[e-1]=arguments[e];e?(t.unshift(e),s(t)):n(t)}else e?s(e):n(i)}):i.push(function(e){if(t.multiArgs){let e=Array(arguments.length-1);for(let t=0;t<arguments.length;t++)e[t]=arguments[t];n(e)}else n(e)}),e.apply(this,i)})};e.exports=(e,t)=>{let n;t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);let filter=e=>{let match=t=>"string"==typeof t?e===t:t.test(e);return t.include?t.include.some(match):!t.exclude.some(match)};for(let i in n="function"==typeof e?function(){return t.excludeMain?e.apply(this,arguments):processFn(e,t).apply(this,arguments)}:Object.create(Object.getPrototypeOf(e)),e){let s=e[i];n[i]="function"==typeof s&&filter(i)?processFn(s,t):s}return n}},44907:function(e,t,n){let i=n(12928);let BaseFilterWithHistory=class BaseFilterWithHistory extends i{constructor(){super(),this.allResults=[]}async update(){throw Error("BaseFilterWithHistory - no update method specified")}addResults(e){this.allResults=this.allResults.concat(e),super.addResults(e)}addInitialResults(e){this.allResults=this.allResults.concat(e),super.addInitialResults(e)}getAllResults(){return this.allResults}};e.exports=BaseFilterWithHistory},12928:function(e,t,n){let i=n(69930).default;let BaseFilter=class BaseFilter extends i{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw Error("BaseFilter - no update method specified")}addResults(e){this.updates=this.updates.concat(e),e.forEach(e=>this.emit("update",e))}addInitialResults(e){}getChangesAndClear(){let e=this.updates;return this.updates=[],e}};e.exports=BaseFilter},28500:function(e,t,n){let i=n(12928),s=n(53936),{incrementHexInt:o}=n(19691);let BlockFilter=class BlockFilter extends i{constructor({provider:e,params:t}){super(),this.type="block",this.provider=e}async update({oldBlock:e,newBlock:t}){let n=o(e),i=await s({provider:this.provider,fromBlock:n,toBlock:t}),a=i.map(e=>e.hash);this.addResults(a)}};e.exports=BlockFilter},53936:function(e){async function getBlocksForRange({provider:e,fromBlock:t,toBlock:n}){t||(t=n);let i=hexToInt(t),s=hexToInt(n),o=s-i+1,a=Array(o).fill().map((e,t)=>i+t).map(intToHex);return(await Promise.all(a.map(t=>
3query(e,"eth_getBlockByNumber",[t,!1])))).filter(e=>null!==e)}function hexToInt(e){return null==e?e:Number.parseInt(e,16)}function intToHex(e){if(null==e)return e;let t=e.toString(16);return"0x"+t}function sendAsync(e,t){return new Promise((n,i)=>{e.sendAsync(t,(e,t)=>{e?i(e):t.error?i(t.error):t.result?n(t.result):i(Error("Result was empty"))})})}async function query(e,t,n){for(let i=0;i<3;i++)try{return await sendAsync(e,{id:1,jsonrpc:"2.0",method:t,params:n})}catch(e){console.error(`provider.sendAsync failed: ${e.stack||e.message||e}`)}return null}e.exports=getBlocksForRange},19691:function(e){function minBlockRef(...e){let t=sortBlockRefs(e);return t[0]}function maxBlockRef(...e){let t=sortBlockRefs(e);return t[t.length-1]}function sortBlockRefs(e){return e.sort((e,t)=>"latest"===e||"earliest"===t?1:"latest"===t||"earliest"===e?-1:hexToInt(e)-hexToInt(t))}function bnToHex(e){return"0x"+e.toString(16)}function blockRefIsNumber(e){return e&&!["earliest","latest","pending"].includes(e)}function hexToInt(e){return null==e?e:Number.parseInt(e,16)}function incrementHexInt(e){if(null==e)return e;let t=hexToInt(e);return intToHex(t+1)}function intToHex(e){if(null==e)return e;let t=e.toString(16),n=t.length%2;return n&&(t="0"+t),"0x"+t}function unsafeRandomBytes(e){let t="0x";for(let n=0;n<e;n++)t+=unsafeRandomNibble()+unsafeRandomNibble();return t}function unsafeRandomNibble(){return Math.floor(16*Math.random()).toString(16)}e.exports={minBlockRef,maxBlockRef,sortBlockRefs,bnToHex,blockRefIsNumber,hexToInt,incrementHexInt,intToHex,unsafeRandomBytes}},51018:function(e,t,n){let i=n(72140).WU,{createAsyncMiddleware:s,createScaffoldMiddleware:o}=n(49116),a=n(26723),u=n(28500),c=n(78575),{intToHex:v,hexToInt:R}=n(19691);function createEthFilterMiddleware({blockTracker:e,provider:t}){let n=0,s={},U=new i,W=mutexMiddlewareWrapper({mutex:U}),Z=o({eth_newFilter:W(toFilterCreationMiddleware(newLogFilter)),eth_newBlockFilter:W(toFilterCreationMiddleware(newBlockFilter)),eth_newPendingTransactionFilter:W(toFilterCreationMiddleware(newPendingTransactionFilter)),eth_uninstallFilter:W(toAsyncRpcMiddleware(uninstallFilterHandler)),eth_getFilterChanges:W(toAsyncRpcMiddleware(getFilterChanges)),eth_getFilterLogs:W(toAsyncRpcMiddleware(getFilterLogs))}),filterUpdater=async({oldBlock:e,newBlock:t})=>{if(0===s.length)return;let n=await U.acquire();try{await Promise.all(objValues(s).map(async n=>{try{await n.update({oldBlock:e,newBlock:t})}catch(e){console.error(e)}}))}catch(e){console.error(e)}n()};return Z.newLogFilter=newLogFilter,Z.newBlockFilter=newBlockFilter,Z.newPendingTransactionFilter=newPendingTransactionFilter,Z.uninstallFilter=uninstallFilterHandler,Z.getFilterChanges=getFilterChanges,Z.getFilterLogs=getFilterLogs,Z.destroy=()=>{uninstallAllFilters()},Z;async function newLogFilter(e){let n=new a({provider:t,params:e});return await installFilter(n),n}async function newBlockFilter(){let e=new u({provider:t});return await installFilter(e),e}async function newPendingTransactionFilter(){let e=new c({provider:t});return await installFilter(e),e}async function getFilterChanges(e){let t=R(e),n=s[t];if(!n)throw Error(`No filter for index "${t}"`);let i=n.getChangesAndClear();return i}async function getFilterLogs(e){let t=R(e),n=s[t];if(!n)throw Error(`No filter for index "${t}"`);let i=[];return"log"===n.type&&(i=n.getAllResults()),i}async function uninstallFilterHandler(e){let t=R(e),n=s[t],i=!!n;return i&&await uninstallFilter(t),i}async function installFilter(t){let i=objValues(s).length,o=await e.getLatestBlock();await t.initialize({currentBlock:o}),s[++n]=t,t.id=n,t.idHex=v(n);let a=objValues(s).length;return updateBlockTrackerSubs({prevFilterCount:i,newFilterCount:a}),n}async function uninstallFilter(e){let t=objValues(s).length;delete s[e];let n=objValues(s).length;updateBlockTrackerSubs({prevFilterCount:t,newFilterCount:n})}async function uninstallAllFilters(){let e=objValues(s).length;s={},updateBlockTrackerSubs({prevFilterCount:e,newFilterCount:0})}function updateBlockTrackerSubs({prevFilterCount:t,newFilterCount:n}){if(0===t&&n>0){e.on("sync",filterUpdater);return}if(t>0&&0===n){e.removeListener("sync",filterUpdater);return}}}function toFilterCreationMiddleware(e){return toAsyncRpcMiddleware(async(...t)=>{let n=await e(...t),i=v(n.id);return i})}function toAsyncRpcMiddleware(e){return s(async(t,n)=>{let i=await e.apply(null,t.params);n.result=i})}function mutexMiddlewareWrapper({mutex:e}){return t=>async(n,i,s,o)=>{let a=await e.acquire();a(),t(n,i,s,o)}}function objValues(e,t){let n=[];for(let t in e)n.push(e[t]);return n}
3e.exports=createEthFilterMiddleware},26723:function(e,t,n){let i=n(62011),s=n(743),o=n(44907),{bnToHex:a,hexToInt:u,incrementHexInt:c,minBlockRef:v,blockRefIsNumber:R}=n(19691);let LogFilter=class LogFilter extends o{constructor({provider:e,params:t}){super(),this.type="log",this.ethQuery=new i(e),this.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},t),this.params.address&&(Array.isArray(this.params.address)||(this.params.address=[this.params.address]),this.params.address=this.params.address.map(e=>e.toLowerCase()))}async initialize({currentBlock:e}){let t=this.params.fromBlock;["latest","pending"].includes(t)&&(t=e),"earliest"===t&&(t="0x0"),this.params.fromBlock=t;let n=v(this.params.toBlock,e),i=Object.assign({},this.params,{toBlock:n}),s=await this._fetchLogs(i);this.addInitialResults(s)}async update({oldBlock:e,newBlock:t}){let n;n=e?c(e):t;let i=Object.assign({},this.params,{fromBlock:n,toBlock:t}),s=await this._fetchLogs(i),o=s.filter(e=>this.matchLog(e));this.addResults(o)}async _fetchLogs(e){let t=await s(t=>this.ethQuery.getLogs(e,t))();return t}matchLog(e){if(u(this.params.fromBlock)>=u(e.blockNumber)||R(this.params.toBlock)&&u(this.params.toBlock)<=u(e.blockNumber))return!1;let t=e.address&&e.address.toLowerCase();if(this.params.address&&t&&!this.params.address.includes(t))return!1;let n=this.params.topics.every((t,n)=>{let i=e.topics[n];if(!i)return!1;i=i.toLowerCase();let s=Array.isArray(t)?t:[t],o=s.includes(null);if(o)return!0;s=s.map(e=>e.toLowerCase());let a=s.includes(i);return a});return n}};e.exports=LogFilter},743:function(e){"use strict";let processFn=(e,t,n,i)=>function(...s){let o=t.promiseModule;return new o((o,a)=>{t.multiArgs?s.push((...e)=>{t.errorFirst?e[0]?a(e):(e.shift(),o(e)):o(e)}):t.errorFirst?s.push((e,t)=>{e?a(e):o(t)}):s.push(o);let u=this===n?i:this;Reflect.apply(e,u,s)})},t=new WeakMap;e.exports=(e,n)=>{n={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...n};let i=typeof e;if(!(null!==e&&("object"===i||"function"===i)))throw TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===e?"null":i}\``);let filter=(e,i)=>{let s=t.get(e);if(s||(s={},t.set(e,s)),i in s)return s[i];let match=e=>"string"==typeof e||"symbol"==typeof i?i===e:e.test(i),o=Reflect.getOwnPropertyDescriptor(e,i),a=void 0===o||o.writable||o.configurable,u=n.include?n.include.some(match):!n.exclude.some(match),c=u&&a;return s[i]=c,c},s=new WeakMap,o=new Proxy(e,{apply(e,t,i){let a=s.get(e);if(a)return Reflect.apply(a,t,i);let u=n.excludeMain?e:processFn(e,n,o,e);return s.set(e,u),Reflect.apply(u,t,i)},get(e,t){let i=e[t];if(!filter(e,t)||i===Function.prototype[t])return i;let a=s.get(i);if(a)return a;if("function"==typeof i){let t=processFn(i,n,o,e);return s.set(i,t),t}return i}});return o}},55117:function(e,t,n){let i=n(69930).default,{createAsyncMiddleware:s,createScaffoldMiddleware:o}=n(49116),a=n(51018),{unsafeRandomBytes:u,incrementHexInt:c}=n(19691),v=n(53936);function createSubscriptionMiddleware({blockTracker:e,provider:t}){let n={},R=a({blockTracker:e,provider:t}),U=!1,W=new i,Z=o({eth_subscribe:s(subscribe),eth_unsubscribe:s(unsubscribe)});return Z.destroy=destroy,{events:W,middleware:Z};async function subscribe(i,s){let o;if(U)throw Error("SubscriptionManager - attempting to use after destroying");let a=i.params[0],W=u(16);switch(a){case"newHeads":o=createSubNewHeads({subId:W});break;case"logs":let Z=i.params[1],X=await R.newLogFilter(Z);o=createSubFromFilter({subId:W,filter:X});break;default:throw Error(`SubscriptionManager - unsupported subscription type "${a}"`)}function createSubNewHeads({subId:n}){let i={type:a,destroy:async()=>{e.removeListener("sync",i.update)},update:async({oldBlock:e,newBlock:i})=>{let s=c(e),o=await v({provider:t,fromBlock:s,toBlock:i}),a=o.map(normalizeBlock).filter(e=>null!==e);a.forEach(e=>{_emitSubscriptionResult(n,e)})}};return e.on("sync",i.update),i}function createSubFromFilter({subId:e,filter:t}){return t.on("update",t=>_emitSubscriptionResult(e,t)),{type:a,destroy:async()=>await R.uninstallFilter(t.idHex)}}n[W]=o,s.result=W}async function unsubscribe(e,t){if(U)throw Error("SubscriptionManager - attempting to use after destroying");let i=e.params[0],s=n[i];if(!s){t.result=!1;return}delete n[i],await s.destroy(),t.result=!0}function _emitSubscriptionResult(e,t){W.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:e,result:t}})}function destroy(){for(let e in W.removeAllListeners(),n)n[e].destroy(),delete n[e];U=!0}}function normalizeBlock(e){return null==e?null:{hash:e.hash,parentHash:e.parentHash,sha3Uncles:e.sha3Uncles,miner:e.miner,stateRoot:e.stateRoot,transactionsRoot:e.transactionsRoot,receiptsRoot:e.receiptsRoot,logsBloom:e.logsBloom,difficulty:e.difficulty,number:e.number,gasLim
3it:e.gasLimit,gasUsed:e.gasUsed,nonce:e.nonce,mixHash:e.mixHash,timestamp:e.timestamp,extraData:e.extraData}}e.exports=createSubscriptionMiddleware},78575:function(e,t,n){let i=n(12928),s=n(53936),{incrementHexInt:o}=n(19691);let TxFilter=class TxFilter extends i{constructor({provider:e}){super(),this.type="tx",this.provider=e}async update({oldBlock:e}){let t=o(e),n=await s({provider:this.provider,fromBlock:t,toBlock:e}),i=[];for(let e of n)i.push(...e.transactions);this.addResults(i)}};e.exports=TxFilter},62011:function(e,t,n){let i=n(49820),s=n(21192)();function EthQuery(e){this.currentProvider=e}function generateFnFor(e){return function(){var t=[].slice.call(arguments),n=t.pop();this.sendAsync({method:e,params:t},n)}}function generateFnWithDefaultBlockFor(e,t){return function(){var n=[].slice.call(arguments),i=n.pop();n.length<e&&n.push("latest"),this.sendAsync({method:t,params:n},i)}}function createPayload(e){return i({id:s(),jsonrpc:"2.0",params:[]},e)}e.exports=EthQuery,EthQuery.prototype.getBalance=generateFnWithDefaultBlockFor(2,"eth_getBalance"),EthQuery.prototype.getCode=generateFnWithDefaultBlockFor(2,"eth_getCode"),EthQuery.prototype.getTransactionCount=generateFnWithDefaultBlockFor(2,"eth_getTransactionCount"),EthQuery.prototype.getStorageAt=generateFnWithDefaultBlockFor(3,"eth_getStorageAt"),EthQuery.prototype.call=generateFnWithDefaultBlockFor(2,"eth_call"),EthQuery.prototype.protocolVersion=generateFnFor("eth_protocolVersion"),EthQuery.prototype.syncing=generateFnFor("eth_syncing"),EthQuery.prototype.coinbase=generateFnFor("eth_coinbase"),EthQuery.prototype.mining=generateFnFor("eth_mining"),EthQuery.prototype.hashrate=generateFnFor("eth_hashrate"),EthQuery.prototype.gasPrice=generateFnFor("eth_gasPrice"),EthQuery.prototype.accounts=generateFnFor("eth_accounts"),EthQuery.prototype.blockNumber=generateFnFor("eth_blockNumber"),EthQuery.prototype.getBlockTransactionCountByHash=generateFnFor("eth_getBlockTransactionCountByHash"),EthQuery.prototype.getBlockTransactionCountByNumber=generateFnFor("eth_getBlockTransactionCountByNumber"),EthQuery.prototype.getUncleCountByBlockHash=generateFnFor("eth_getUncleCountByBlockHash"),EthQuery.prototype.getUncleCountByBlockNumber=generateFnFor("eth_getUncleCountByBlockNumber"),EthQuery.prototype.sign=generateFnFor("eth_sign"),EthQuery.prototype.sendTransaction=generateFnFor("eth_sendTransaction"),EthQuery.prototype.sendRawTransaction=generateFnFor("eth_sendRawTransaction"),EthQuery.prototype.estimateGas=generateFnFor("eth_estimateGas"),EthQuery.prototype.getBlockByHash=generateFnFor("eth_getBlockByHash"),EthQuery.prototype.getBlockByNumber=generateFnFor("eth_getBlockByNumber"),EthQuery.prototype.getTransactionByHash=generateFnFor("eth_getTransactionByHash"),EthQuery.prototype.getTransactionByBlockHashAndIndex=generateFnFor("eth_getTransactionByBlockHashAndIndex"),EthQuery.prototype.getTransactionByBlockNumberAndIndex=generateFnFor("eth_getTransactionByBlockNumberAndIndex"),EthQuery.prototype.getTransactionReceipt=generateFnFor("eth_getTransactionReceipt"),EthQuery.prototype.getUncleByBlockHashAndIndex=generateFnFor("eth_getUncleByBlockHashAndIndex"),EthQuery.prototype.getUncleByBlockNumberAndIndex=generateFnFor("eth_getUncleByBlockNumberAndIndex"),EthQuery.prototype.getCompilers=generateFnFor("eth_getCompilers"),EthQuery.prototype.compileLLL=generateFnFor("eth_compileLLL"),EthQuery.prototype.compileSolidity=generateFnFor("eth_compileSolidity"),EthQuery.prototype.compileSerpent=generateFnFor("eth_compileSerpent"),EthQuery.prototype.newFilter=generateFnFor("eth_newFilter"),EthQuery.prototype.newBlockFilter=generateFnFor("eth_newBlockFilter"),EthQuery.prototype.newPendingTransactionFilter=generateFnFor("eth_newPendingTransactionFilter"),EthQuery.prototype.uninstallFilter=generateFnFor("eth_uninstallFilter"),EthQuery.prototype.getFilterChanges=generateFnFor("eth_getFilterChanges"),EthQuery.prototype.getFilterLogs=generateFnFor("eth_getFilterLogs"),EthQuery.prototype.getLogs=generateFnFor("eth_getLogs"),EthQuery.prototype.getWork=generateFnFor("eth_getWork"),EthQuery.prototype.submitWork=generateFnFor("eth_submitWork"),EthQuery.prototype.submitHashrate=generateFnFor("eth_submitHashrate"),EthQuery.prototype.sendAsync=function(e,t){this.currentProvider.sendAsync(createPayload(e),function(e,n){if(!e&&n.error&&(e=Error("EthQuery - RPC Error - "+n.error.message)),e)return t(e);t(null,n.result)})}},62096:function(e,t,n){"use strict";
3Object.defineProperty(t,"__esModule",{value:!0}),t.EthereumProviderError=t.EthereumRpcError=void 0;let i=n(28534);let EthereumRpcError=class EthereumRpcError extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw Error('"message" must be a nonempty string.');super(t),this.code=e,void 0!==n&&(this.data=n)}serialize(){let e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return i.default(this.serialize(),stringifyReplacer,2)}};t.EthereumRpcError=EthereumRpcError;let EthereumProviderError=class EthereumProviderError extends EthereumRpcError{constructor(e,t,n){if(!isValidEthProviderCode(e))throw Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}};function isValidEthProviderCode(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}function stringifyReplacer(e,t){if("[Circular]"!==t)return t}t.EthereumProviderError=EthereumProviderError},58519:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.errorValues=t.errorCodes=void 0,t.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}},t.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."}}},71984:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ethErrors=void 0;let i=n(62096),s=n(81199),o=n(58519);function getEthJsonRpcError(e,t){let[n,o]=parseOpts(t);return new i.EthereumRpcError(e,n||s.getMessageFromCode(e),o)}function getEthProviderError(e,t){let[n,o]=parseOpts(t);return new i.EthereumProviderError(e,n||s.getMessageFromCode(e),o)}function parseOpts(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){let{message:t,data:n}=e;if(t&&"string"!=typeof t)throw Error("Must specify string message.");return[t||void 0,n]}}return[]}t.ethErrors={rpc:{parse:e=>getEthJsonRpcError(o.errorCodes.rpc.parse,e),invalidRequest:e=>getEthJsonRpcError(o.errorCodes.rpc.invalidRequest,e),invalidParams:e=>getEthJsonRpcError(o.errorCodes.rpc.invalidParams,e),methodNotFound:e=>getEthJsonRpcError(o.errorCodes.rpc.methodNotFound,e),internal:e=>getEthJsonRpcError(o.errorCodes.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum RPC Server errors must provide single object argument.");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw Error('"code" must be an integer such that: -32099 <= code 
3<= -32005');return getEthJsonRpcError(t,e)},invalidInput:e=>getEthJsonRpcError(o.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>getEthJsonRpcError(o.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>getEthJsonRpcError(o.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>getEthJsonRpcError(o.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>getEthJsonRpcError(o.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>getEthJsonRpcError(o.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>getEthProviderError(o.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>getEthProviderError(o.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>getEthProviderError(o.errorCodes.provider.unsupportedMethod,e),disconnected:e=>getEthProviderError(o.errorCodes.provider.disconnected,e),chainDisconnected:e=>getEthProviderError(o.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum Provider custom errors must provide single object argument.");let{code:t,message:n,data:s}=e;if(!n||"string"!=typeof n)throw Error('"message" must be a nonempty string');return new i.EthereumProviderError(t,n,s)}}}},46281:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMessageFromCode=t.serializeError=t.EthereumProviderError=t.EthereumRpcError=t.ethErrors=t.errorCodes=void 0;let i=n(62096);Object.defineProperty(t,"EthereumRpcError",{enumerable:!0,get:function(){return i.EthereumRpcError}}),Object.defineProperty(t,"EthereumProviderError",{enumerable:!0,get:function(){return i.EthereumProviderError}});let s=n(81199);Object.defineProperty(t,"serializeError",{enumerable:!0,get:function(){return s.serializeError}}),Object.defineProperty(t,"getMessageFromCode",{enumerable:!0,get:function(){return s.getMessageFromCode}});let o=n(71984);Object.defineProperty(t,"ethErrors",{enumerable:!0,get:function(){return o.ethErrors}});let a=n(58519);Object.defineProperty(t,"errorCodes",{enumerable:!0,get:function(){return a.errorCodes}})},81199:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeError=t.isValidCode=t.getMessageFromCode=t.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;let i=n(58519),s=n(62096),o=i.errorCodes.rpc.internal,a={code:o,message:getMessageFromCode(o)};function getMessageFromCode(e,n="Unspecified error message. This is a bug, please report it."){if(Number.isInteger(e)){let n=e.toString();if(hasKey(i.errorValues,n))return i.errorValues[n].message;if(e>=-32099&&e<=-32e3)return t.JSON_RPC_SERVER_ERROR_MESSAGE}return n}function isValidCode(e){if(!Number.isInteger(e))return!1;let t=e.toString();return!!(i.errorValues[t]||e>=-32099&&e<=-32e3)}function serializeError(e,{fallbackError:t=a,shouldIncludeStack:n=!1}={}){if(!t||!Number.isInteger(t.code)||"string"!=typeof t.message)throw Error("Must provide fallback error with integer number code and string message.");if(e instanceof s.EthereumRpcError)return e.serialize();let i={};if(e&&"object"==typeof e&&!Array.isArray(e)&&hasKey(e,"code")&&isValidCode(e.code))i.code=e.code,e.message&&"string"==typeof e.message?(i.message=e.message,hasKey(e,"data")&&(i.data=e.data)):(i.message=getMessageFromCode(i.code),i.data={originalError:assignOriginalError(e)});else{i.code=t.code;let n=null==e?void 0:e.message;i.message=n&&"string"==typeof n?n:t.message,i.data={originalError:assignOriginalError(e)}}let o=null==e?void 0:e.stack;return n&&e&&o&&"string"==typeof o&&(i.stack=o),i}function assignOriginalError(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function hasKey(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",t.getMessageFromCode=getMessageFromCode,t.isValidCode=isValidCode,t.serializeError=serializeError},512:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,i=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};function ProcessEmitWarning(e){console&&console.warn&&console.warn(e)}t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function EventEmitter(){EventEmitter.init.call(this)}e.exports=EventEmitter,e.exports.once=once,EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._eventsCount=0,EventEmitter.prototype._maxListeners=void 0;var o=10;function checkListener(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function _getMaxListeners(e){return void 0===e._maxListeners?EventEmitter.defaultMaxListeners:e._maxListeners}function _addListener(e,t,n,i){if(checkListener(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=i?[n,a]:[a,n]:i?a.unshift(n):a.push(n),(s=_getMaxListeners(e))>0&&a.length>s&&!a.warned){a.warned=!0;var s,o,a,u=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,ProcessEmitWarning(u)}return e}
3function onceWrapper(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},s=onceWrapper.bind(i);return s.listener=n,i.wrapFn=s,s}function _listeners(e,t,n){var i=e._events;if(void 0===i)return[];var s=i[t];return void 0===s?[]:"function"==typeof s?n?[s.listener||s]:[s]:n?unwrapListeners(s):arrayClone(s,s.length)}function listenerCount(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function arrayClone(e,t){for(var n=Array(t),i=0;i<t;++i)n[i]=e[i];return n}function spliceOne(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function unwrapListeners(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function once(e,t){return new Promise(function(n,i){function errorListener(n){e.removeListener(t,resolver),i(n)}function resolver(){"function"==typeof e.removeListener&&e.removeListener("error",errorListener),n([].slice.call(arguments))}eventTargetAgnosticAddListener(e,t,resolver,{once:!0}),"error"!==t&&addErrorHandlerIfEventEmitter(e,errorListener,{once:!0})})}function addErrorHandlerIfEventEmitter(e,t,n){"function"==typeof e.on&&eventTargetAgnosticAddListener(e,"error",t,n)}function eventTargetAgnosticAddListener(e,t,n,i){if("function"==typeof e.on)i.once?e.once(t,n):e.on(t,n);else if("function"==typeof e.addEventListener)e.addEventListener(t,function wrapListener(s){i.once&&e.removeEventListener(t,wrapListener),n(s)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(EventEmitter,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e||e<0||s(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");o=e}}),EventEmitter.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},EventEmitter.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},EventEmitter.prototype.getMaxListeners=function(){return _getMaxListeners(this)},EventEmitter.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var s="error"===e,o=this._events;if(void 0!==o)s=s&&void 0===o.error;else if(!s)return!1;if(s){if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var a,u=Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)i(c,this,t);else for(var v=c.length,R=arrayClone(c,v),n=0;n<v;++n)i(R[n],this,t);return!0},EventEmitter.prototype.addListener=function(e,t){return _addListener(this,e,t,!1)},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.prependListener=function(e,t){return _addListener(this,e,t,!0)},EventEmitter.prototype.once=function(e,t){return checkListener(t),this.on(e,_onceWrap(this,e,t)),this},EventEmitter.prototype.prependOnceListener=function(e,t){return checkListener(t),this.prependListener(e,_onceWrap(this,e,t)),this},EventEmitter.prototype.removeListener=function(e,t){var n,i,s,o,a;if(checkListener(t),void 0===(i=this._events)||void 0===(n=i[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(s=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,s=o;break}if(s<0)return this;0===s?n.shift():spliceOne(n,s),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,a||t)}return this},EventEmitter.prototype.off=EventEmitter.prototype.removeListener,EventEmitter.prototype.removeAllListeners=function(e){var t,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0==arguments.length){var s,o=Object.keys(n);for(i=0;i<o.length;++i)"removeListener"!==(s=o[i])&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},EventEmitter.prototype.listeners=function(e){return _listeners(this,e,!0)},EventEmitter.prototype.rawListeners=function(e){return _listeners(this,e,!1)},EventEmitter.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):listenerCount.call(e,t)},EventEmitter.prototype.listenerCount=listenerCount,EventEmitter.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},28534:function(e){e.exports=stringify,stringify.default=stringify,stringify.stable=deterministicStringify,stringify.stableStringify=deterministicStringify;
3var t="[...]",n="[Circular]",i=[],s=[];function defaultOptions(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function stringify(e,t,n,o){void 0===o&&(o=defaultOptions()),decirc(e,"",0,[],void 0,0,o);try{a=0===s.length?JSON.stringify(e,t,n):JSON.stringify(e,replaceGetterValues(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var a,u=i.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return a}function setReplace(e,t,n,o){var a=Object.getOwnPropertyDescriptor(o,n);void 0!==a.get?a.configurable?(Object.defineProperty(o,n,{value:e}),i.push([o,n,t,a])):s.push([t,n,e]):(o[n]=e,i.push([o,n,t]))}function decirc(e,i,s,o,a,u,c){if(u+=1,"object"==typeof e&&null!==e){for(v=0;v<o.length;v++)if(o[v]===e){setReplace(n,e,i,a);return}if(void 0!==c.depthLimit&&u>c.depthLimit||void 0!==c.edgesLimit&&s+1>c.edgesLimit){setReplace(t,e,i,a);return}if(o.push(e),Array.isArray(e))for(v=0;v<e.length;v++)decirc(e[v],v,v,o,e,u,c);else{var v,R=Object.keys(e);for(v=0;v<R.length;v++){var U=R[v];decirc(e[U],U,v,o,e,u,c)}}o.pop()}}function compareFunction(e,t){return e<t?-1:e>t?1:0}function deterministicStringify(e,t,n,o){void 0===o&&(o=defaultOptions());var a,u=deterministicDecirc(e,"",0,[],void 0,0,o)||e;try{a=0===s.length?JSON.stringify(u,t,n):JSON.stringify(u,replaceGetterValues(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var c=i.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return a}function deterministicDecirc(e,s,o,a,u,c,v){if(c+=1,"object"==typeof e&&null!==e){for(R=0;R<a.length;R++)if(a[R]===e){setReplace(n,e,s,u);return}try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==v.depthLimit&&c>v.depthLimit||void 0!==v.edgesLimit&&o+1>v.edgesLimit){setReplace(t,e,s,u);return}if(a.push(e),Array.isArray(e))for(R=0;R<e.length;R++)deterministicDecirc(e[R],R,R,a,e,c,v);else{var R,U={},W=Object.keys(e).sort(compareFunction);for(R=0;R<W.length;R++){var Z=W[R];deterministicDecirc(e[Z],Z,R,a,e,c,v),U[Z]=e[Z]}if(void 0===u)return U;i.push([u,s,e]),u[s]=U}a.pop()}}function replaceGetterValues(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(s.length>0)for(var i=0;i<s.length;i++){var o=s[i];if(o[1]===t&&o[0]===n){n=o[2],s.splice(i,1);break}}return e.call(this,t,n)}}},11549:function(e,t,n){"use strict";var i=n(18339),s=Object.prototype.toString,o=Object.prototype.hasOwnProperty,forEachArray=function(e,t,n){for(var i=0,s=e.length;i<s;i++)o.call(e,i)&&(null==n?t(e[i],i,e):t.call(n,e[i],i,e))},forEachString=function(e,t,n){for(var i=0,s=e.length;i<s;i++)null==n?t(e.charAt(i),i,e):t.call(n,e.charAt(i),i,e)},forEachObject=function(e,t,n){for(var i in e)o.call(e,i)&&(null==n?t(e[i],i,e):t.call(n,e[i],i,e))};function isArray(e){return"[object Array]"===s.call(e)}e.exports=function(e,t,n){var s;if(!i(t))throw TypeError("iterator must be a function");arguments.length>=3&&(s=n),isArray(e)?forEachArray(e,t,s):"string"==typeof e?forEachString(e,t,s):forEachObject(e,t,s)}},50164:function(e){"use strict";var t=Object.prototype.toString,n=Math.max,concatty=function(e,t){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var s=0;s<t.length;s+=1)n[s+e.length]=t[s];return n},slicy=function(e,t){for(var n=[],i=t||0,s=0;i<e.length;i+=1,s+=1)n[s]=e[i];return n},joiny=function(e,t){for(var n="",i=0;i<e.length;i+=1)n+=e[i],i+1<e.length&&(n+=t);return n};e.exports=function(e){var i,s=this;if("function"!=typeof s||"[object Function]"!==t.apply(s))throw TypeError("Function.prototype.bind called on incompatible "+s);for(var o=slicy(arguments,1),a=n(0,s.length-o.length),u=[],c=0;c<a;c++)u[c]="$"+c;if(i=Function("binder","return function ("+joiny(u,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var t=s.apply(this,concatty(o,arguments));return Object(t)===t?t:this}return s.apply(e,concatty(o,arguments))}),s.prototype){var Empty=function(){};Empty.prototype=s.prototype,i.prototype=new Empty,Empty.prototype=null}return i}},24316:function(e,t,n){"use strict";var i=n(50164);e.exports=Function.prototype.bind||i}
3,51597:function(e,t,n){"use strict";var i,s=n(56976),o=n(31330),a=n(31618),u=n(87698),c=n(5905),v=n(39819),R=n(35281),U=n(33880),W=n(60515),Z=n(84924),X=n(5877),Y=n(44440),ee=n(35706),et=n(48925),er=n(22565),en=Function,getEvalledConstructor=function(e){try{return en('"use strict"; return ('+e+").constructor;")()}catch(e){}},ei=n(67526),es=n(50228),throwTypeError=function(){throw new R},eo=ei?function(){try{return arguments.callee,throwTypeError}catch(e){try{return ei(arguments,"callee").get}catch(e){return throwTypeError}}}():throwTypeError,ea=n(79633)(),el=n(54224),eu=n(2676),ec=n(2987),eh=n(30184),ed=n(96751),ef={},ep="undefined"!=typeof Uint8Array&&el?el(Uint8Array):i,eg={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":ea&&el?el([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":ef,"%AsyncGenerator%":ef,"%AsyncGeneratorFunction%":ef,"%AsyncIteratorPrototype%":ef,"%Atomics%":"undefined"==typeof Atomics?i:Atomics,"%BigInt%":"undefined"==typeof BigInt?i:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?i:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?i:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?i:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":en,"%GeneratorFunction%":ef,"%Int8Array%":"undefined"==typeof Int8Array?i:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?i:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
3IteratorPrototype%":ea&&el?el(el([][Symbol.iterator]())):i,"%JSON%":"object"==typeof JSON?JSON:i,"%Map%":"undefined"==typeof Map?i:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&ea&&el?el(new Map()[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":s,"%Object.getOwnPropertyDescriptor%":ei,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?i:Promise,"%Proxy%":"undefined"==typeof Proxy?i:Proxy,"%RangeError%":u,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?i:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&ea&&el?el(new Set()[Symbol.iterator]()):i,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ea&&el?el(""[Symbol.iterator]()):i,"%Symbol%":ea?Symbol:i,"%SyntaxError%":v,"%ThrowTypeError%":eo,"%TypedArray%":ep,"%TypeError%":R,"%Uint8Array%":"undefined"==typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?i:Uint32Array,"%URIError%":U,"%WeakMap%":"undefined"==typeof WeakMap?i:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?i:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?i:WeakSet,"%Function.prototype.call%":ed,"%Function.prototype.apply%":eh,"%Object.defineProperty%":es,"%Object.getPrototypeOf%":eu,"%Math.abs%":W,"%Math.floor%":Z,"%Math.max%":X,"%Math.min%":Y,"%Math.pow%":ee,"%Math.round%":et,"%Math.sign%":er,"%Reflect.getPrototypeOf%":ec};if(el)try{null.error}catch(e){var em=el(el(e));eg["%Error.prototype%"]=em}var doEval=function doEval(e){var t;if("%AsyncFunction%"===e)t=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===e)t=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===e)t=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===e){var n=doEval("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=doEval("%AsyncGenerator%");i&&el&&(t=el(i.prototype))}return eg[e]=t,t},ey={__proto__:null,"%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"]},eb=n(24316),e_=n(73335),ev=eb.call(ed,Array.prototype.concat),ew=eb.call(eh,Array.prototype.splice),eE=eb.call(ed,String.prototype.replace),eS=eb.call(ed,String.prototype.slice),ek=eb.call(ed,RegExp.prototype.exec),eR=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,eM=/\\(\\)?/g,stringToPath=function(e){var t=eS(e,0,1),n=eS(e,-1);if("%"===t&&"%"!==n)throw new v("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new v("invalid intrinsic syntax, expected opening `%`");var i=[];return eE(e,eR,function(e,t,n,s){i[i.length]=n?eE(s,eM,"$1"):t||e}),i},getBaseIntrinsic=function(e,t){var n,i=e;if(e_(ey,i)&&(i="%"+(n=ey[i])[0]+"%"),e_(eg,i)){var s=eg[i];if(s===ef&&(s=doEval(i)),void 0===s&&!t)throw new R("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:s}}throw new v("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new R("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new R('"allowMissing" argument must be a boolean');if(null===ek(/^%?[^%]*%?$/,e))throw new v("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=stringToPath(e),i=n.length>0?n[0]:"",s=getBaseIntrinsic("%"+i+"%",t),o=s.name,a=s.value,u=!1,c=s.alias;c&&(i=c[0],ew(n,ev([0,1],c)));for(var U=1,W=!0;U<n.length;U+=1){var Z=n[U],X=eS(Z,0,1),Y=eS(Z,-1);
vendor: 4,229 bytes, line 3
3if(('"'===X||"'"===X||"`"===X||'"'===Y||"'"===Y||"`"===Y)&&X!==Y)throw new v("property names with quotes must have matching quotes");if("constructor"!==Z&&W||(u=!0),i+="."+Z,e_(eg,o="%"+i+"%"))a=eg[o];else if(null!=a){if(!(Z in a)){if(!t)throw new R("base intrinsic for "+e+" exists, but the property is not available.");return}if(ei&&U+1>=n.length){var ee=ei(a,Z);a=(W=!!ee)&&"get"in ee&&!("originalValue"in ee.get)?ee.get:a[Z]}else W=e_(a,Z),a=a[Z];W&&!u&&(eg[o]=a)}}return a}},2676:function(e,t,n){"use strict";var i=n(56976);e.exports=i.getPrototypeOf||null},2987:function(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},54224:function(e,t,n){"use strict";var i=n(2987),s=n(2676),o=n(4236);e.exports=i?function(e){return i(e)}:s?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return s(e)}:o?function(e){return o(e)}:null},90405:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},67526:function(e,t,n){"use strict";var i=n(90405);if(i)try{i([],"length")}catch(e){i=null}e.exports=i},59972:function(e,t,n){"use strict";var i=n(50228),hasPropertyDescriptors=function(){return!!i};hasPropertyDescriptors.hasArrayLengthDefineBug=function(){if(!i)return null;try{return 1!==i([],"length",{value:1}).length}catch(e){return!0}},e.exports=hasPropertyDescriptors},79633:function(e,t,n){"use strict";var i="undefined"!=typeof Symbol&&Symbol,s=n(76500);e.exports=function(){return"function"==typeof i&&"function"==typeof Symbol&&"symbol"==typeof i("foo")&&"symbol"==typeof Symbol("bar")&&s()}},76500:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var i in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var s=Object.getOwnPropertySymbols(e);if(1!==s.length||s[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},86273:function(e,t,n){"use strict";var i=n(76500);e.exports=function(){return i()&&!!Symbol.toStringTag}},73335:function(e,t,n){"use strict";var i=Function.prototype.call,s=Object.prototype.hasOwnProperty,o=n(24316);e.exports=o.call(i,s)},75335:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype,e.prototype=new TempCtor,e.prototype.constructor=e}}},18339:function(e){"use strict";var t,n,i=Function.prototype.toString,s="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof s&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},s(function(){throw 42},null,t)}catch(e){e!==n&&(s=null)}else s=null;var o=/^\s*class\b/,isES6ClassFn=function(e){try{var t=i.call(e);return o.test(t)}catch(e){return!1}},tryFunctionObject=function(e){try{if(isES6ClassFn(e))return!1;return i.call(e),!0}catch(e){return!1}},a=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),isDDA=function(){return!1};if("object"==typeof document){var v=document.all;a.call(v)===a.call(document.all)&&(isDDA=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=a.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=s?function(e){if(isDDA(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;try{s(e,null,t)}catch(e){if(e!==n)return!1}return!isES6ClassFn(e)&&tryFunctionObject(e)}:function(e){if(isDDA(e))return!0;
3if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if(u)return tryFunctionObject(e);if(isES6ClassFn(e))return!1;var t=a.call(e);return!!("[object Function]"===t||"[object GeneratorFunction]"===t||/^\[object HTML/.test(t))&&tryFunctionObject(e)}},59354:function(e,t,n){"use strict";var i=n(78266);e.exports=function(e){return!!i(e)}},82333:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},8566:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.JsonRpcEngine=void 0;let s=i(n(75077)),o=n(46281);let JsonRpcEngine=class JsonRpcEngine extends s.default{constructor(){super(),this._middleware=[]}push(e){this._middleware.push(e)}handle(e,t){if(t&&"function"!=typeof t)throw Error('"callback" must be a function if provided.');return Array.isArray(e)?t?this._handleBatch(e,t):this._handleBatch(e):t?this._handle(e,t):this._promiseHandle(e)}asMiddleware(){return async(e,t,n,i)=>{try{let[s,o,a]=await JsonRpcEngine._runAllMiddleware(e,t,this._middleware);if(o)return await JsonRpcEngine._runReturnHandlers(a),i(s);return n(async e=>{try{await JsonRpcEngine._runReturnHandlers(a)}catch(t){return e(t)}return e()})}catch(e){return i(e)}}}async _handleBatch(e,t){try{let n=await Promise.all(e.map(this._promiseHandle.bind(this)));if(t)return t(null,n);return n}catch(e){if(t)return t(e);throw e}}_promiseHandle(e){return new Promise(t=>{this._handle(e,(e,n)=>{t(n)})})}async _handle(e,t){if(!e||Array.isArray(e)||"object"!=typeof e){let n=new o.EthereumRpcError(o.errorCodes.rpc.invalidRequest,`Requests must be plain objects. Received: ${typeof e}`,{request:e});return t(n,{id:void 0,jsonrpc:"2.0",error:n})}if("string"!=typeof e.method){let n=new o.EthereumRpcError(o.errorCodes.rpc.invalidRequest,`Must specify a string method. Received: ${typeof e.method}`,{request:e});return t(n,{id:e.id,jsonrpc:"2.0",error:n})}let n=Object.assign({},e),i={id:n.id,jsonrpc:n.jsonrpc},s=null;try{await this._processRequest(n,i)}catch(e){s=e}return s&&(delete i.result,i.error||(i.error=o.serializeError(s))),t(s,i)}async _processRequest(e,t){let[n,i,s]=await JsonRpcEngine._runAllMiddleware(e,t,this._middleware);if(JsonRpcEngine._checkForCompletion(e,t,i),await JsonRpcEngine._runReturnHandlers(s),n)throw n}static async _runAllMiddleware(e,t,n){let i=[],s=null,o=!1;for(let a of n)if([s,o]=await JsonRpcEngine._runMiddleware(e,t,a,i),o)break;return[s,o,i.reverse()]}static _runMiddleware(e,t,n,i){return new Promise(s=>{let end=e=>{let n=e||t.error;n&&(t.error=o.serializeError(n)),s([n,!0])};try{n(e,t,n=>{t.error?end(t.error):(n&&("function"!=typeof n&&end(new o.EthereumRpcError(o.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof n}" for request:
4${jsonify(e)}`,{request:e})),i.push(n)),s([null,!1]))},end)}catch(e){end(e)}})}static async _runReturnHandlers(e){for(let t of e)await new Promise((e,n)=>{t(t=>t?n(t):e())})}static _checkForCompletion(e,t,n){if(!("result"in t)&&!("error"in t))throw new o.EthereumRpcError(o.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request:
5${jsonify(e)}`,{request:e});if(!n)throw new o.EthereumRpcError(o.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request:
6${jsonify(e)}`,{request:e})}};function jsonify(e){return JSON.stringify(e,null,2)}t.JsonRpcEngine=JsonRpcEngine},4029:function(e,t){"use strict";function createAsyncMiddleware(e){return async(t,n,i,s)=>{let o;let a=new Promise(e=>{o=e}),u=null,c=!1,asyncNext=async()=>{c=!0,i(e=>{u=e,o()}),await a};try{await e(t,n,asyncNext),c?(await a,u(null)):s(null)}catch(e){u?u(e):s(e)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.createAsyncMiddleware=void 0,t.createAsyncMiddleware=createAsyncMiddleware},74386:function(e,t){"use strict";function createScaffoldMiddleware(e){return(t,n,i,s)=>{let o=e[t.method];return void 0===o?i():"function"==typeof o?o(t,n,i,s):(n.result=o,s())}}Object.defineProperty(t,"__esModule",{value:!0}),t.createScaffoldMiddleware=void 0,t.createScaffoldMiddleware=createScaffoldMiddleware},74719:function(e,t){"use strict";
6Object.defineProperty(t,"__esModule",{value:!0}),t.getUniqueId=void 0;let n=Math.floor(4294967295*Math.random());function getUniqueId(){return n=(n+1)%4294967295}t.getUniqueId=getUniqueId},94449:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createIdRemapMiddleware=void 0;let i=n(74719);function createIdRemapMiddleware(){return(e,t,n,s)=>{let o=e.id,a=i.getUniqueId();e.id=a,t.id=a,n(n=>{e.id=o,t.id=o,n()})}}t.createIdRemapMiddleware=createIdRemapMiddleware},49116:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),s(n(94449),t),s(n(4029),t),s(n(74386),t),s(n(74719),t),s(n(8566),t),s(n(13592),t)},13592:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMiddleware=void 0;let i=n(8566);function mergeMiddleware(e){let t=new i.JsonRpcEngine;return e.forEach(e=>t.push(e)),t.asMiddleware()}t.mergeMiddleware=mergeMiddleware},75077:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=n(512);function safeApply(e,t,n){try{Reflect.apply(e,t,n)}catch(e){setTimeout(()=>{throw e})}}function arrayClone(e){let t=e.length,n=Array(t);for(let i=0;i<t;i+=1)n[i]=e[i];return n}let SafeEventEmitter=class SafeEventEmitter extends i.EventEmitter{emit(e,...t){let n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){let e;if(t.length>0&&([e]=t),e instanceof Error)throw e;let n=Error(`Unhandled error.${e?` (${e.message})`:""}`);throw n.context=e,n}let s=i[e];if(void 0===s)return!1;if("function"==typeof s)safeApply(s,this,t);else{let e=s.length,n=arrayClone(s);for(let i=0;i<e;i+=1)safeApply(n[i],this,t)}return!0}};t.default=SafeEventEmitter},21192:function(e){e.exports=IdIterator;function IdIterator(e){var t=(e=e||{}).max||Number.MAX_SAFE_INTEGER,n=void 0!==e.start?e.start:Math.floor(Math.random()*t);return function(){return n%=t,n++}}},26961:function(e,t,n){e.exports=n(8478)(n(64586))},8478:function(e,t,n){let i=n(99001),s=n(68013);e.exports=function(e){let t=i(e),n=s(e);return function(e,i){let s="string"==typeof e?e.toLowerCase():e;switch(s){case"keccak224":return new t(1152,448,null,224,i);case"keccak256":return new t(1088,512,null,256,i);case"keccak384":return new t(832,768,null,384,i);case"keccak512":return new t(576,1024,null,512,i);case"sha3-224":return new t(1152,448,6,224,i);case"sha3-256":return new t(1088,512,6,256,i);case"sha3-384":return new t(832,768,6,384,i);case"sha3-512":return new t(576,1024,6,512,i);case"shake128":return new n(1344,256,31,i);case"shake256":return new n(1088,512,31,i);default:throw Error("Invald algorithm: "+e)}}}},99001:function(e,t,n){var i=n(67133).Buffer;let{Transform:s}=n(26120);e.exports=e=>class Keccak extends s{constructor(t,n,i,s,o){super(o),this._rate=t,this._capacity=n,this._delimitedSuffix=i,this._hashBitLength=s,this._options=o,this._state=new e,this._state.initialize(t,n),this._finalized=!1}_transform(e,t,n){let i=null;try{this.update(e,t)}catch(e){i=e}n(i)}_flush(e){let t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}update(e,t){if(!i.isBuffer(e)&&"string"!=typeof e)throw TypeError("Data must be a string or a buffer");if(this._finalized)throw Error("Digest already called");return i.isBuffer(e)||(e=i.from(e,t)),this._state.absorb(e),this}digest(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let t=this._state.squeeze(this._hashBitLength/8);return void 0!==e&&(t=t.toString(e)),this._resetState(),t}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let e=new Keccak(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},68013:function(e,t,n){var i=n(67133).Buffer;let{Transform:s}=n(26120);e.exports=e=>class Shake extends s{constructor(t,n,i,s){super(s),this._rate=t,this._capacity=n,this._delimitedSuffix=i,this._options=s,this._state=new e,this._state.initialize(t,n),this._finalized=!1}_transform(e,t,n){let i=null;try{this.update(e,t)}catch(e){i=e}n(i)}_flush(){}_read(e){this.push(this.squeeze(e))}update(e,t){if(!i.isBuffer(e)&&"string"!=typeof e)throw TypeError("Data must be a string or a buffer");if(this._finalized)throw Error("Squeeze already called");return i.isBuffer(e)||(e=i.from(e,t)),this._state.absorb(e),this}squeeze(e,t){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let n=this._state.squeeze(e);return void 0!==t&&(n=n.toString(t)),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let e=new Shake(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},89773:function(e,t){let n=[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];t.p1600=function(e){for(let t=0;t<24;++t){let i=e[0]^e[10]^e[20]^e[30]^e[40],s=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],a=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],v=e[6]^e[16]^e[26]^e[36]^e[46],R=e[7]^e[17]^e[27]^e[37]^e[47],U=e[8]^e[18]^e[28]^e[38]^e[48],W=e[9]^e[19]^e[29]^e[39]^e[49],Z=U^(o<<1|a>>>31),X=W^(a<<1|o>>>31),Y=e[0]^Z,ee=e[1]^X,et=e[10]^Z,er=e[11]^X,en=e[20]^Z,ei=e[21]^X,es=e[30]^Z,eo=e[31]^X,ea=e[40]^Z,el=e[41]^X;Z=i^(u<<1|c>>>31),X=s^(c<<1|u>>>31);let eu=e[2]^Z,ec=e[3]^X,eh=e[12]^Z,ed=e[13]^X,ef=e[22]^Z,ep=e[23]^X,eg=e[32]^Z,em=e[33]^X,ey=e[42]^Z,eb=e[43]^X;Z=o^(v<<1|R>>>31),X=a^(R<<1|v>>>31);let e_=e[4]^Z,ev=e[5]^X,ew=e[14]^Z,eE=e[15]^X,eS=e[24]^Z,ek=e[25]^X,eR=e[34]^Z,eM=e[35]^X,eC=e[44]^Z,ex=e[45]^X;Z=u^(U<<1|W>>>31),X=c^(W<<1|U>>>31);let eI=e[6]^Z,eA=e[7]^X,eN=e[16]^Z,eT=e[17]^X,eP=e[26]^Z,eB=e[27]^X,eO
6=e[36]^Z,eL=e[37]^X,eF=e[46]^Z,ej=e[47]^X;Z=v^(i<<1|s>>>31),X=R^(s<<1|i>>>31);let eD=e[8]^Z,eU=e[9]^X,eH=e[18]^Z,e$=e[19]^X,eW=e[28]^Z,eV=e[29]^X,eq=e[38]^Z,ez=e[39]^X,eJ=e[48]^Z,eG=e[49]^X,eQ=er<<4|et>>>28,eZ=et<<4|er>>>28,eK=en<<3|ei>>>29,eX=ei<<3|en>>>29,eY=eo<<9|es>>>23,e0=es<<9|eo>>>23,e1=ea<<18|el>>>14,e2=el<<18|ea>>>14,e3=eu<<1|ec>>>31,e4=ec<<1|eu>>>31,e5=ed<<12|eh>>>20,e6=eh<<12|ed>>>20,e8=ef<<10|ep>>>22,e7=ep<<10|ef>>>22,e9=em<<13|eg>>>19,te=eg<<13|em>>>19,tt=ey<<2|eb>>>30,tr=eb<<2|ey>>>30,tn=ev<<30|e_>>>2,ti=e_<<30|ev>>>2,ts=ew<<6|eE>>>26,to=eE<<6|ew>>>26,ta=ek<<11|eS>>>21,tl=eS<<11|ek>>>21,tu=eR<<15|eM>>>17,tc=eM<<15|eR>>>17,th=ex<<29|eC>>>3,td=eC<<29|ex>>>3,tf=eI<<28|eA>>>4,tp=eA<<28|eI>>>4,tg=eT<<23|eN>>>9,tm=eN<<23|eT>>>9,ty=eP<<25|eB>>>7,tb=eB<<25|eP>>>7,t_=eO<<21|eL>>>11,tv=eL<<21|eO>>>11,tw=ej<<24|eF>>>8,tE=eF<<24|ej>>>8,tS=eD<<27|eU>>>5,tk=eU<<27|eD>>>5,tR=eH<<20|e$>>>12,tM=e$<<20|eH>>>12,tC=eV<<7|eW>>>25,tx=eW<<7|eV>>>25,tI=eq<<8|ez>>>24,tA=ez<<8|eq>>>24,tN=eJ<<14|eG>>>18,tT=eG<<14|eJ>>>18;e[0]=Y^~e5&ta,e[1]=ee^~e6&tl,e[10]=tf^~tR&eK,e[11]=tp^~tM&eX,e[20]=e3^~ts&ty,e[21]=e4^~to&tb,e[30]=tS^~eQ&e8,e[31]=tk^~eZ&e7,e[40]=tn^~tg&tC,e[41]=ti^~tm&tx,e[2]=e5^~ta&t_,e[3]=e6^~tl&tv,e[12]=tR^~eK&e9,e[13]=tM^~eX&te,e[22]=ts^~ty&tI,e[23]=to^~tb&tA,e[32]=eQ^~e8&tu,e[33]=eZ^~e7&tc,e[42]=tg^~tC&eY,e[43]=tm^~tx&e0,e[4]=ta^~t_&tN,e[5]=tl^~tv&tT,e[14]=eK^~e9&th,e[15]=eX^~te&td,e[24]=ty^~tI&e1,e[25]=tb^~tA&e2,e[34]=e8^~tu&tw,e[35]=e7^~tc&tE,e[44]=tC^~eY&tt,e[45]=tx^~e0&tr,e[6]=t_^~tN&Y,e[7]=tv^~tT&ee,e[16]=e9^~th&tf,e[17]=te^~td&tp,e[26]=tI^~e1&e3,e[27]=tA^~e2&e4,e[36]=tu^~tw&tS,e[37]=tc^~tE&tk,e[46]=eY^~tt&tn,e[47]=e0^~tr&ti,e[8]=tN^~Y&e5,e[9]=tT^~ee&e6,e[18]=th^~tf&tR,e[19]=td^~tp&tM,e[28]=e1^~e3&ts,e[29]=e2^~e4&to,e[38]=tw^~tS&eQ,e[39]=tE^~tk&eZ,e[48]=tt^~tn&tg,e[49]=tr^~ti&tm,e[0]^=n[2*t],e[1]^=n[2*t+1]}}},64586:function(e,t,n){var i=n(67133).Buffer;let s=n(89773);function Keccak(){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}Keccak.prototype.initialize=function(e,t){for(let e=0;e<50;++e)this.state[e]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},Keccak.prototype.absorb=function(e){for(let t=0;t<e.length;++t)this.state[~~(this.count/4)]^=e[t]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(s.p1600(this.state),this.count=0)},Keccak.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<8*(this.count%4),(128&e)!=0&&this.count===this.blockSize-1&&s.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),s.p1600(this.state),this.count=0,this.squeezing=!0},Keccak.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);let t=i.alloc(e);for(let n=0;n<e;++n)t[n]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(s.p1600(this.state),this.count=0);return t},Keccak.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},e.exports=Keccak},91300:function(e){"use strict";function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var t={};function createErrorType(e,n,i){function getMessage(e,t,i){return"string"==typeof n?n:n(e,t,i)}i||(i=Error);var s=function(e){function NodeError(t,n,i){return e.call(this,getMessage(t,n,i))||this}return _inheritsLoose(NodeError,e),NodeError}(i);s.prototype.name=i.name,s.prototype.code=e,t[e]=s}function oneOf(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));var n=e.length;return(e=e.map(function(e){return String(e)}),n>2)?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}function startsWith(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function endsWith(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function includes(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}createErrorType("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invali
6d for option "'+e+'"'},TypeError),createErrorType("ERR_INVALID_ARG_TYPE",function(e,t,n){if("string"==typeof t&&startsWith(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be",endsWith(e," argument"))s="The ".concat(e," ").concat(i," ").concat(oneOf(t,"type"));else{var i,s,o=includes(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(o," ").concat(i," ").concat(oneOf(t,"type"))}return s+". Received type ".concat(typeof n)},TypeError),createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close"),createErrorType("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end"),createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),createErrorType("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},55421:function(e,t,n){"use strict";var i=n(62601),s=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=Duplex;var o=n(25847),a=n(97606);n(75335)(Duplex,o);for(var u=s(a.prototype),c=0;c<u.length;c++){var v=u[c];Duplex.prototype[v]||(Duplex.prototype[v]=a.prototype[v])}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",onend)))}function onend(){this._writableState.ended||i.nextTick(onEndNT,this)}function onEndNT(e){e.end()}Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(Duplex.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Duplex.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(Duplex.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},80809:function(e,t,n){"use strict";e.exports=PassThrough;var i=n(30777);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);i.call(this,e)}n(75335)(PassThrough,i),PassThrough.prototype._transform=function(e,t,n){n(null,e)}},25847:function(e,t,n){"use strict";var i,s,o,a,u,c=n(62601);e.exports=Readable,Readable.ReadableState=ReadableState,n(512).EventEmitter;var EElistenerCount=function(e,t){return e.listeners(t).length},v=n(46610),R=n(67133).Buffer,U=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return R.from(e)}function _isUint8Array(e){return R.isBuffer(e)||e instanceof U}var W=n(46586);s=W&&W.debuglog?W.debuglog("stream"):function(){};var Z=n(48738),X=n(96248),Y=n(51747).getHighWaterMark,ee=n(91300).q,et=ee.ERR_INVALID_ARG_TYPE,er=ee.ERR_STREAM_PUSH_AFTER_EOF,en=ee.ERR_METHOD_NOT_IMPLEMENTED,ei=ee.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(75335)(Readable,v);var es=X.errorOrDestroy,eo=["error","close","destroy","pause","resume"];function prependListener(e,t,n){if("function"==typeof e.prependListener)return e.prepe
vendor: 10,596 bytes, line 6
6ndListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function ReadableState(e,t,s){i=i||n(55421),e=e||{},"boolean"!=typeof s&&(s=t instanceof i),this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=Y(this,e,"readableHighWaterMark",s),this.buffer=new Z,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!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(o||(o=n(19430).s),this.decoder=new o(e.encoding),this.encoding=e.encoding)}function Readable(e){if(i=i||n(55421),!(this instanceof Readable))return new Readable(e);var t=this instanceof i;this._readableState=new ReadableState(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),v.call(this)}function readableAddChunk(e,t,n,i,o){s("readableAddChunk",t);var a,u=e._readableState;if(null===t)u.reading=!1,onEofChunk(e,u);else if(o||(a=chunkInvalid(u,t)),a)es(e,a);else if(u.objectMode||t&&t.length>0){if("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===R.prototype||(t=_uint8ArrayToBuffer(t)),i)u.endEmitted?es(e,new ei):addChunk(e,u,t,!0);else if(u.ended)es(e,new er);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!n?(t=u.decoder.write(t),u.objectMode||0!==t.length?addChunk(e,u,t,!1):maybeReadMore(e,u)):addChunk(e,u,t,!1)}}else i||(u.reading=!1,maybeReadMore(e,u));return!u.ended&&(u.length<u.highWaterMark||0===u.length)}function addChunk(e,t,n,i){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&emitReadable(e)),maybeReadMore(e,t)}function chunkInvalid(e,t){var n;return _isUint8Array(t)||"string"==typeof t||void 0===t||e.objectMode||(n=new et("chunk",["string","Buffer","Uint8Array"],t)),n}function computeNewHighWaterMark(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function howMuchToRead(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=computeNewHighWaterMark(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function onEofChunk(e,t){if(s("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?emitReadable(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,emitReadable_(e)))}}function emitReadable(e){var t=e._readableState;s("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(s("emitReadable",t.flowing),t.emittedReadable=!0,c.nextTick(emitReadable_,e))}function emitReadable_(e){var t=e._readableState;s("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,flow(e)}function maybeReadMore(e,t){t.readingMore||(t.readingMore=!0,c.nextTick(maybeReadMore_,e,t))}function maybeReadMore_(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(s("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function pipeOnDrain(e){return function(){var t=e._readableState;s("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&EElistenerCount(e,"data")&&(t.flowing=!0,flow(e))}}function updateReadableListening(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function nReadingNextTick(e){s("readable nexttick read 0"),e.read(0)}function resume(e,t){t.resumeScheduled||(t.resumeScheduled=!0,c.nextTick(resume_,e,t))}function resume_(e,t){s("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),flow(e),t.flowing&&!t.reading&&e.read(0)}function flow(e){var t=e._readableState;for(s("flow",t.flowing);t.flowing&&null!==e.read(););}function fromList(e,t){var n;return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n)}function endReadable(e){var t=e._readableState;s("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,c.nextTick(endReadableNT,t,e))}function endReadableNT(e,t){if(s("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function indexOf(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return -1}Object.defineProperty(Readable.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),Readable.prototype.destroy=X.destroy,Readable.prototype._undestroy=X.undestroy,Readable.prototype._destroy=function(e,t){t(e)},Readable.prototype.push=function(e,t){var n,i=this._readableState;return i.objectMode?n=!0:"string"==typeof e&&((t=t||i.defaultEncoding)!==i.encoding&&(e=R.from(e,t),t=""),n=!0),readableAddChunk(this,e,t,!1,n)},Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,!0,!1)},Readable.prototype.isPaused=function(){return!1===this._readableState.flowing},Readable.prototype.setEncoding=function(e){o||(o=n(19430).s);var t=new o(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var i=this._readableState.buffer.head,s="";null!==i;)s+=t.write(i.data),i=i.next;return this._readableState.buffer.clear(),""!==s&&this._readableState.buffer.push(s),this._readableState.length=s.length,this},Readable.prototype.read=function(e){s("read",e),e=parseInt(e,10);var t,n=this._readableState,i=e;if(0!==e&&(n.emittedReadable=!1),0===e&&n.needReadable&&((0!==n.highWaterMark?n.length>=n.highWaterMark:n.length>0)||n.ended))return s("read: emitReadable",n.length,n.ended),0===n.length&&n.ended?endReadable(this):emitReadable(this),null;if(0===(e=howMuchToRead(e,n))&&n.ended)return 0===n.length&&endReadable(this),null;var o=n.needReadable;return s("need readable",o),(0===n.length||n.length-e<n.highWaterMark)&&s("length less than watermark",o=!0),n.ended||n.reading?s("reading or ended",o=!1):o&&(s("do read"),n.reading=!0,n.sync=!0,0===n.length&&(n.needReadable=!0),this._read(n.highWaterMark),n.sync=!1,n.reading||(e=howMuchToRead(i,n))),null===(t=e>0?fromList(e,n):null)?(n.needReadable=n.length<=n.highWaterMark,e=0):(n.length-=e,n.awaitDrain=0),0===n.length&&(n.ended||(n.needReadable=!0),i!==e&&n.ended&&endReadable(this)),null!==t&&this.emit("data",t),t},Readable.prototype._read=function(e){es(this,new en("_read()"))},Readable.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,s("pipe count=%d opts=%j",i.pipesCount,t);var o=t&&!1===t.end||e===c.stdout||e===c.stderr?unpipe:onend;function onunpipe(e,t){s("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,cleanup())}function onend(){s("onend"),e.end()}i.endEmitted?c.nextTick(o):n.once("end",o),e.on("unpipe",onunpipe);var a=pipeOnDrain(n);e.on("drain",a);var u=!1;function cleanup(){s("cleanup"),e.removeListener("close",onclose),e.removeListener("finish",onfinish),e.removeListener("drain",a),e.removeListener("error",onerror),e.removeListener("unpipe",onunpipe),n.removeListener("end",onend),n.removeListener("end",unpipe),n.removeListener("data",ondata),u=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&a()}function ondata(t){s("ondata");var o=e.write(t);s("dest.write",o),!1===o&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==indexOf(i.pipes,e))&&!u&&(s("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function onerror(t){s("onerror",t),unpipe(),e.removeListener("error",onerror),0===EElistenerCount(e,"error")&&es(e,t)}function onclose(){e.removeListener("finish",onfinish),unpipe()}function onfinish(){s("onfinish"),e.removeListener("close",onclose),unpipe()}function unpipe(){s("unpipe"),n.unpipe(e)}return n.on("data",ondata),prependListener(e,"error",onerror),e.once("close",onclose),e.once("finish",onfinish),e.emit("pipe",n),i.flowing||(s("pipe resume"),n.resume()),e},Readable.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var i=t.pipes,s=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<s;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=indexOf(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},Readable.prototype.on=function(e,t){var n=v.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"!==e||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,s("on readable",i.length,i.reading),i.length?emitReadable(this):i.reading||c.nextTick(nReadingNextTick,this)),n},Readable.prototype.addListener=Readable.prototype.on,Readable.prototype.removeListener=function(e,t){var n=v.prototype.removeListener.call(this,e,t);return"readable"===e&&c.nextTick(updateReadableListening,this),n},Readable.prototype.removeAllListeners=function(e){var t=v.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&c.nextTick(updateReadableListening,this),t},Readable.prototype.resume=function(){var e=this._readableState;return e.flowing||(s("resume"),e.flowing=!e.readableListening,resume(this,e)),e.paused=!1,this},Readable.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(s("pause"),this._readableState.flowing=!1,this.emit
vendor: 4,224 bytes, line 6
6("pause")),this._readableState.paused=!0,this},Readable.prototype.wrap=function(e){var t=this,n=this._readableState,i=!1;for(var o in e.on("end",function(){if(s("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){s("wrapped data"),n.decoder&&(o=n.decoder.write(o)),(!n.objectMode||null!=o)&&(n.objectMode||o&&o.length)&&(t.push(o)||(i=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var a=0;a<eo.length;a++)e.on(eo[a],this.emit.bind(this,eo[a]));return this._read=function(t){s("wrapped _read",t),i&&(i=!1,e.resume())},this},"function"==typeof Symbol&&(Readable.prototype[Symbol.asyncIterator]=function(){return void 0===a&&(a=n(48335)),a(this)}),Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Readable.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Readable.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),Readable._fromList=fromList,Object.defineProperty(Readable.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(Readable.from=function(e,t){return void 0===u&&(u=n(32102)),u(Readable,e,t)})},30777:function(e,t,n){"use strict";e.exports=Transform;var i=n(91300).q,s=i.ERR_METHOD_NOT_IMPLEMENTED,o=i.ERR_MULTIPLE_CALLBACK,a=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,u=i.ERR_TRANSFORM_WITH_LENGTH_0,c=n(55421);function afterTransform(e,t){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(null===i)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),i(e);var s=this._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}function Transform(e){if(!(this instanceof Transform))return new Transform(e);c.call(this,e),this._transformState={afterTransform:afterTransform.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",prefinish)}function prefinish(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?done(this,null,null):this._flush(function(t,n){done(e,t,n)})}function done(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new u;if(e._transformState.transforming)throw new a;return e.push(null)}n(75335)(Transform,c),Transform.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},Transform.prototype._transform=function(e,t,n){n(new s("_transform()"))},Transform.prototype._write=function(e,t,n){var i=this._transformState;if(i.writecb=n,i.writechunk=e,i.writeencoding=t,!i.transforming){var s=this._readableState;(i.needTransform||s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}},Transform.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},Transform.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,function(e){t(e)})}},97606:function(e,t,n){"use strict";var i,s,o=n(62601);function CorkedRequest(e){var t=this;this.next=null,this.entry=null,this.finish=function(){onCorkedFinish(t,e)}}e.exports=Writable,Writable.WritableState=WritableState;var a={deprecate:n(79026)},u=n(46610),c=n(67133).Buffer,v=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(e){return c.from(e)}function _isUint8Array(e){return c.isBuffer(e)||e instanceof v}var R=n(96248),U=n(51747).getHighWaterMark,W=n(91300).q,Z=W.ERR_INVALID_ARG_TYPE,X=W.ERR_METHOD_NOT_IMPLEMENT
vendor: 8,699 bytes, line 6
6ED,Y=W.ERR_MULTIPLE_CALLBACK,ee=W.ERR_STREAM_CANNOT_PIPE,et=W.ERR_STREAM_DESTROYED,er=W.ERR_STREAM_NULL_VALUES,en=W.ERR_STREAM_WRITE_AFTER_END,ei=W.ERR_UNKNOWN_ENCODING,es=R.errorOrDestroy;function nop(){}function WritableState(e,t,s){i=i||n(55421),e=e||{},"boolean"!=typeof s&&(s=t instanceof i),this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=U(this,e,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){onwrite(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new CorkedRequest(this)}function Writable(e){var t=this instanceof(i=i||n(55421));if(!t&&!s.call(Writable,this))return new Writable(e);this._writableState=new WritableState(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function writeAfterEnd(e,t){var n=new en;es(e,n),o.nextTick(t,n)}function validChunk(e,t,n,i){var s;return null===n?s=new er:"string"==typeof n||t.objectMode||(s=new Z("chunk",["string","Buffer"],n)),!s||(es(e,s),o.nextTick(i,s),!1)}function decodeChunk(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,n)),t}function writeOrBuffer(e,t,n,i,s,o){if(!n){var a=decodeChunk(t,i,s);i!==a&&(n=!0,s="buffer",i=a)}var u=t.objectMode?1:i.length;t.length+=u;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var v=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:s,isBuf:n,callback:o,next:null},v?v.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else doWrite(e,t,!1,u,i,s,o);return c}function doWrite(e,t,n,i,s,o,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new et("write")):n?e._writev(s,t.onwrite):e._write(s,o,t.onwrite),t.sync=!1}function onwriteError(e,t,n,i,s){--t.pendingcb,n?(o.nextTick(s,i),o.nextTick(finishMaybe,e,t),e._writableState.errorEmitted=!0,es(e,i)):(s(i),e._writableState.errorEmitted=!0,es(e,i),finishMaybe(e,t))}function onwriteStateUpdate(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function onwrite(e,t){var n=e._writableState,i=n.sync,s=n.writecb;if("function"!=typeof s)throw new Y;if(onwriteStateUpdate(n),t)onwriteError(e,n,i,t,s);else{var a=needFinish(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||clearBuffer(e,n),i?o.nextTick(afterWrite,e,n,a,s):afterWrite(e,n,a,s)}}function afterWrite(e,t,n,i){n||onwriteDrain(e,t),t.pendingcb--,i(),finishMaybe(e,t)}function onwriteDrain(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function clearBuffer(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=Array(t.bufferedRequestCount),s=t.corkedRequestsFree;s.entry=n;for(var o=0,a=!0;n;)i[o]=n,n.isBuf||(a=!1),n=n.next,o+=1;i.allBuffers=a,doWrite(e,t,!0,t.length,i,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new CorkedRequest(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,c=n.encoding,v=n.callback,R=t.objectMode?1:u.length;if(doWrite(e,t,!1,R,u,c,v),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function needFinish(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function callFinal(e,t){e._final(function(n){t.pendingcb--,n&&es(e,n),t.prefinished=!0,e.emit("prefinish"),finishMaybe(e,t)})}function prefinish(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,o.nextTick(callFinal,e,t)))}function finishMaybe(e,t){var n=needFinish(t);if(n&&(prefinish(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return n}function endWritable(e,t,n){t.ending=!0,finishMaybe(e,t),n&&(t.finished?o.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}function onCorkedFinish(e,t,n){var i=e.entry;for(e.entry=null;i;){var s=i.callback;t.pendingcb--,s(n),i=i.next}t.corkedRequestsFree.next=e}n(75335)(Writable,u),WritableState.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(Writable,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===Writable&&e&&e._writableState instanceof WritableState}})):s=function(e){return e instanceof this},Writable.prototype.pipe=function(){es(this,new ee)},Writable.prototype.write=function(e,t,n){var i=this._writableState,s=!1,o=!i.objectMode&&_isUint8Array(e);return o&&!c.isBuffer(e)&&(e=_uint8ArrayToBuffer(e)),"function"==typeof t&&(n=t,t=null),o?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=nop),i.ending?writeAfterEnd(this,n):(o||validChunk(this,i,e,n))&&(i.pendingcb++,s=writeOrBuffer(this,i,o,e,t,n)),s},Writable.prototype.cork=function(){this._writableState.corked++},Writable.prototype.uncork=function(){var e=this._writableState;!e.corked||(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||clearBuffer(this,e))},Writable.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new ei(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(Writable.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Writable.prototype._write=function(e,t,n){n(new X("_write()"))},Writable.prototype._writev=null,Writable.prototype.end=function(e,t,n){var i=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||endWritable(this,i,n),this},Object.defineProperty(Writable.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(Writable.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),Writable.prototype.destroy=R.destroy,Writable.prototype._undestroy=R.undestroy,Writable.prototype._destroy=function(e,t){t(e)}},48335:function(e,t,n){"use strict";var i,s=n(62601);function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:String(t)}function _toPrimitive(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var o=n(35199),a=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),v=Symbol("ended"),R=Symbol("lastPromise"),U=Symbol("handlePromise"),W=Symbol("stream");function createIterResult(e,t){return{value:e,done:t}}function readAndResolve(e){var t=e[a];if(null!==t){var n=e[W].read();null!==n&&(e[R]=null,e[a]=null,e[u]=null,t(createIterResult(n,!1)))}}function onReadable(e){s.nextTick(readAndResolve,e)}function wrapForNext(e,t){return function(n,i){e.then(function(){if(t[v]){n(createIterResult(void 0,!0));return}t[U](n,i)},i)}}var Z=Object.getPrototypeOf(function(){}
6),X=Object.setPrototypeOf((_defineProperty(i={get stream(){return this[W]},next:function(){var e,t=this,n=this[c];if(null!==n)return Promise.reject(n);if(this[v])return Promise.resolve(createIterResult(void 0,!0));if(this[W].destroyed)return new Promise(function(e,n){s.nextTick(function(){t[c]?n(t[c]):e(createIterResult(void 0,!0))})});var i=this[R];if(i)e=new Promise(wrapForNext(i,this));else{var o=this[W].read();if(null!==o)return Promise.resolve(createIterResult(o,!1));e=new Promise(this[U])}return this[R]=e,e}},Symbol.asyncIterator,function(){return this}),_defineProperty(i,"return",function(){var e=this;return new Promise(function(t,n){e[W].destroy(null,function(e){if(e){n(e);return}t(createIterResult(void 0,!0))})})}),i),Z);e.exports=function(e){var t,n=Object.create(X,(_defineProperty(t={},W,{value:e,writable:!0}),_defineProperty(t,a,{value:null,writable:!0}),_defineProperty(t,u,{value:null,writable:!0}),_defineProperty(t,c,{value:null,writable:!0}),_defineProperty(t,v,{value:e._readableState.endEmitted,writable:!0}),_defineProperty(t,U,{value:function(e,t){var i=n[W].read();i?(n[R]=null,n[a]=null,n[u]=null,e(createIterResult(i,!1))):(n[a]=e,n[u]=t)},writable:!0}),t));return n[R]=null,o(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[u];null!==t&&(n[R]=null,n[a]=null,n[u]=null,t(e)),n[c]=e;return}var i=n[a];null!==i&&(n[R]=null,n[a]=null,n[u]=null,i(createIterResult(void 0,!0))),n[v]=!0}),e.on("readable",onReadable.bind(null,n)),n}},48738:function(e,t,n){"use strict";function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){_defineProperty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey(i.key),i)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:String(t)}function _toPrimitive(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var i=n(67133).Buffer,s=n(29120).inspect,o=s&&s.custom||"inspect";function copyBuffer(e,t,n){i.prototype.copy.call(e,t,n)}e.exports=function(){function BufferList(){_classCallCheck(this,BufferList),this.head=null,this.tail=null,this.length=0}return _createClass(BufferList,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return i.alloc(0);for(var t=i.allocUnsafe(e>>>0),n=this.head,s=0;n;)copyBuffer(n.data,t,s),s+=n.data.length,n=n.next;return t}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,i=t.data;for(e-=i.length;t=t.next;){var s=t.data,o=e>s.length?s.length:e;if(o===s.length?i+=s:i+=s.slice(0,e),0==(e-=o)){o===s.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=s.slice(o));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(e){var t=i.allocUnsafe(e),n=this.head,s=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,a),0==(e-=a)){a===o.length?(++s,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++s}return this.length-=s,t}},{key:o,value:function(e,t){return s(this,_objectSpread(_objectSpread({},t),{},{depth:0,customInspect:!1}))}}]),BufferList}()},96248:function(e,t,n){"use strict";var i=n(62601);function destroy(e,t){var n=this,s=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return s||o?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(emitErrorNT,this,e)):i.nextTick(emitErrorNT,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted?i.nextTick(emitCloseNT,n):(n._writableState.errorEmitted=!0,i.nextTick(emitErrorAndCloseNT,n,e)):i.nextTick(emitErrorAndCloseNT,n,e):t?(i.nextTick(emitCloseNT,n),t(e)):i.nextTick(emitCloseNT,n)})),this}function emitErrorAndCloseNT(e,t){emitErrorNT(e,t),emitCloseNT(e)}function emitCloseNT(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function undestroy(){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)}function emitErrorNT(e,t){e.emit("error",t)}function errorOrDestroy(e,t){var n=e._readableState,i=e._writableState;n&&n.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}
6e.exports={destroy:destroy,undestroy:undestroy,errorOrDestroy:errorOrDestroy}},35199:function(e,t,n){"use strict";var i=n(91300).q.ERR_STREAM_PREMATURE_CLOSE;function once(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,i=Array(n),s=0;s<n;s++)i[s]=arguments[s];e.apply(this,i)}}}function noop(){}function isRequest(e){return e.setHeader&&"function"==typeof e.abort}function eos(e,t,n){if("function"==typeof t)return eos(e,null,t);t||(t={}),n=once(n||noop);var s=t.readable||!1!==t.readable&&e.readable,o=t.writable||!1!==t.writable&&e.writable,onlegacyfinish=function(){e.writable||onfinish()},a=e._writableState&&e._writableState.finished,onfinish=function(){o=!1,a=!0,s||n.call(e)},u=e._readableState&&e._readableState.endEmitted,onend=function(){s=!1,u=!0,o||n.call(e)},onerror=function(t){n.call(e,t)},onclose=function(){var t;return s&&!u?(e._readableState&&e._readableState.ended||(t=new i),n.call(e,t)):o&&!a?(e._writableState&&e._writableState.ended||(t=new i),n.call(e,t)):void 0},onrequest=function(){e.req.on("finish",onfinish)};return isRequest(e)?(e.on("complete",onfinish),e.on("abort",onclose),e.req?onrequest():e.on("request",onrequest)):o&&!e._writableState&&(e.on("end",onlegacyfinish),e.on("close",onlegacyfinish)),e.on("end",onend),e.on("finish",onfinish),!1!==t.error&&e.on("error",onerror),e.on("close",onclose),function(){e.removeListener("complete",onfinish),e.removeListener("abort",onclose),e.removeListener("request",onrequest),e.req&&e.req.removeListener("finish",onfinish),e.removeListener("end",onlegacyfinish),e.removeListener("close",onlegacyfinish),e.removeListener("finish",onfinish),e.removeListener("end",onend),e.removeListener("error",onerror),e.removeListener("close",onclose)}}e.exports=eos},32102:function(e){e.exports=function(){throw Error("Readable.from is not available in the browser")}},23396:function(e,t,n){"use strict";function once(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i,s=n(91300).q,o=s.ERR_MISSING_ARGS,a=s.ERR_STREAM_DESTROYED;function noop(e){if(e)throw e}function isRequest(e){return e.setHeader&&"function"==typeof e.abort}function destroyer(e,t,s,o){o=once(o);var u=!1;e.on("close",function(){u=!0}),void 0===i&&(i=n(35199)),i(e,{readable:t,writable:s},function(e){if(e)return o(e);u=!0,o()});var c=!1;return function(t){if(!u&&!c){if(c=!0,isRequest(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();o(t||new a("pipe"))}}}function call(e){e()}function pipe(e,t){return e.pipe(t)}function popCallback(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():noop}function pipeline(){for(var e,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];var s=popCallback(n);if(Array.isArray(n[0])&&(n=n[0]),n.length<2)throw new o("streams");var a=n.map(function(t,i){var o=i<n.length-1;return destroyer(t,o,i>0,function(t){e||(e=t),t&&a.forEach(call),o||(a.forEach(call),s(e))})});return n.reduce(pipe)}e.exports=pipeline},51747:function(e,t,n){"use strict";var i=n(91300).q.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}function getHighWaterMark(e,t,n,s){var o=highWaterMarkFrom(t,s,n);if(null!=o){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new i(s?n:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}e.exports={getHighWaterMark:getHighWaterMark}},46610:function(e,t,n){e.exports=n(512).EventEmitter},26120:function(e,t,n){(t=e.exports=n(25847)).Stream=t,t.Readable=t,t.Writable=n(97606),t.Duplex=n(55421),t.Transform=n(30777),t.PassThrough=n(80809),t.finished=n(35199),t.pipeline=n(23396)},14730:function(e,t,n){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var i=n(67133),s=i.Buffer;function copyProps(e,t){for(var n in e)t[n]=e[n]}function SafeBuffer(e,t,n){return s(e,t,n)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?e.exports=i:(copyProps(i,t),t.Buffer=SafeBuffer),SafeBuffer.prototype=Object.create(s.prototype),copyProps(s,SafeBuffer),SafeBuffer.from=function(e,t,n){if("number"==typeof e)throw TypeError("Argument must not be a number");return s(e,t,n)},SafeBuffer.alloc=function(e,t,n){if("number"!=typeof e)throw TypeError("Argument must be a number");var i=s(e);return void 0!==t?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},SafeBuffer.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return s(e)},SafeBuffer.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i.SlowBuffer(e)}},19430:function(e,t,n){"use strict";var i=n(14730).Buffer,s=i.isEncoding||function(e){switch((e=""+e)&&e.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 _normalizeEncoding(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";
6case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if("string"!=typeof t&&(i.isEncoding===s||!s(e)))throw Error("Unknown encoding: "+e);return t||e}function StringDecoder(e){var t;switch(this.encoding=normalizeEncoding(e),this.encoding){case"utf16le":this.text=utf16Text,this.end=utf16End,t=4;break;case"utf8":this.fillLast=utf8FillLast,t=4;break;case"base64":this.text=base64Text,this.end=base64End,t=3;break;default:this.write=simpleWrite,this.end=simpleEnd;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function utf8CheckByte(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function utf8CheckIncomplete(e,t,n){var i=t.length-1;if(i<n)return 0;var s=utf8CheckByte(t[i]);return s>=0?(s>0&&(e.lastNeed=s-1),s):--i<n||-2===s?0:(s=utf8CheckByte(t[i]))>=0?(s>0&&(e.lastNeed=s-2),s):--i<n||-2===s?0:(s=utf8CheckByte(t[i]))>=0?(s>0&&(2===s?s=0:e.lastNeed=s-3),s):0}function utf8CheckExtraBytes(e,t,n){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed,n=utf8CheckExtraBytes(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function utf8Text(e,t){var n=utf8CheckIncomplete(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function utf8End(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function utf16Text(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function utf16End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function base64Text(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function base64End(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}t.s=StringDecoder,StringDecoder.prototype.write=function(e){var t,n;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},StringDecoder.prototype.end=utf8End,StringDecoder.prototype.text=utf8Text,StringDecoder.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},60515:function(e){"use strict";e.exports=Math.abs},84924:function(e){"use strict";e.exports=Math.floor},57055:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},5877:function(e){"use strict";e.exports=Math.max},44440:function(e){"use strict";e.exports=Math.min},35706:function(e){"use strict";e.exports=Math.pow},48925:function(e){"use strict";e.exports=Math.round},22565:function(e,t,n){"use strict";var i=n(57055);e.exports=function(e){return i(e)||0===e?e:e<0?-1:1}},60438:function(e){function parse(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"weeks":case"week":case"w":return 6048e5*n;case"days":case"day":case"d":return 864e5*n;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*n;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*n;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function fmtShort(e){var t=Math.abs(e);return t>=864e5?Math.round(e/864e5)+"d":t>=36e5?Math.round(e/36e5)+"h":t>=6e4?Math.round(e/6e4)+"m":t>=1e3?Math.round(e/1e3)+"s":e+"ms"}function fmtLong(e){var t=Math.abs(e);return t>=864e5?plural(e,t,864e5,"day"):t>=36e5?plural(e,t,36e5,"hour"):t>=6e4?plural(e,t,6e4,"minute"):t>=1e3?plural(e,t,1e3,"second"):e+" ms"}function plural(e,t,n,i){return Math.round(e/n)+" "+i+(t>=1.5*n?"s":"")}e.exports=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return parse(e);if("number"===n&&isFinite(e))return t.long?fmtLong(e):fmtShort(e);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},90854:function(e){"use strict";e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},88049:function(e,t,n){"use strict";n.r(t),n.d(t,{Component:function(){return x},Fragment:function(){return k},cloneElement:function(){return K},createContext:function(){return Q},createElement:function(){return _},createRef:function(){return b},h:function(){return _},hydrate:function(){return J},isValidElement:function(){return a},options:function(){return s},render:function(){return G},toChildArray:function(){return H}});var i,s,o,a,u,c,v,R,U,W,Z,X,Y,ee={},et=[],er=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,en=Array.isArray;function d(e,t){for(var n in t)e[n]=t[n];return e}function g(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function _(e,t,n){var s,o,a,u={};
vendor: 6,366 bytes, line 6
6for(a in t)"key"==a?s=t[a]:"ref"==a?o=t[a]:u[a]=t[a];if(arguments.length>2&&(u.children=arguments.length>3?i.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return m(e,u,s,o,null)}function m(e,t,n,i,a){var u={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==a?++o:a,__i:-1,__u:0};return null==a&&null!=s.vnode&&s.vnode(u),u}function b(){return{current:null}}function k(e){return e.children}function x(e,t){this.props=e,this.context=t}function S(e,t){if(null==t)return e.__?S(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?S(e):null}function C(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return C(e)}}function M(e){(!e.__d&&(e.__d=!0)&&u.push(e)&&!$.__r++||c!=s.debounceRendering)&&((c=s.debounceRendering)||v)($)}function $(){for(var e,t,n,i,o,a,c=1;u.length;)u.length>c&&u.sort(R),e=u.shift(),c=u.length,e.__d&&(t=void 0,n=void 0,i=(n=e.__v).__e,o=[],a=[],e.__P&&((t=d({},n)).__v=n.__v+1,s.vnode&&s.vnode(t),O(e.__P,t,n,e.__n,e.__P.namespaceURI,32&n.__u?[i]:null,o,null==i?S(n):i,!!(32&n.__u),a),t.__v=n.__v,t.__.__k[t.__i]=t,N(o,t,a),n.__e=n.__=null,t.__e!=i&&C(t)));$.__r=0}function I(e,t,n,i,s,o,a,u,c,v,R){var U,W,Z,X,Y,er,en,ei=i&&i.__k||et,es=t.length;for(c=P(n,t,ei,c,es),U=0;U<es;U++)null!=(Z=n.__k[U])&&(W=-1==Z.__i?ee:ei[Z.__i]||ee,Z.__i=U,er=O(e,Z,W,s,o,a,u,c,v,R),X=Z.__e,Z.ref&&W.ref!=Z.ref&&(W.ref&&B(W.ref,null,Z),R.push(Z.ref,Z.__c||X,Z)),null==Y&&null!=X&&(Y=X),(en=!!(4&Z.__u))||W.__k===Z.__k?c=A(Z,c,e,en):"function"==typeof Z.type&&void 0!==er?c=er:X&&(c=X.nextSibling),Z.__u&=-7);return n.__e=Y,c}function P(e,t,n,i,s){var o,a,u,c,v,R=n.length,U=R,W=0;for(e.__k=Array(s),o=0;o<s;o++)null!=(a=t[o])&&"boolean"!=typeof a&&"function"!=typeof a?(c=o+W,(a=e.__k[o]="string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?m(null,a,null,null,null):en(a)?m(k,{children:a},null,null,null):null==a.constructor&&a.__b>0?m(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,u=null,-1!=(v=a.__i=L(a,n,c,U))&&(U--,(u=n[v])&&(u.__u|=2)),null==u||null==u.__v?(-1==v&&(s>R?W--:s<R&&W++),"function"!=typeof a.type&&(a.__u|=4)):v!=c&&(v==c-1?W--:v==c+1?W++:(v>c?W--:W++,a.__u|=4))):e.__k[o]=null;if(U)for(o=0;o<R;o++)null!=(u=n[o])&&0==(2&u.__u)&&(u.__e==i&&(i=S(u)),D(u,u));return i}function A(e,t,n,i){var s,o;if("function"==typeof e.type){for(s=e.__k,o=0;s&&o<s.length;o++)s[o]&&(s[o].__=e,t=A(s[o],t,n,i));return t}e.__e!=t&&(i&&(t&&e.type&&!t.parentNode&&(t=S(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(null!=t&&8==t.nodeType);return t}function H(e,t){return t=t||[],null==e||"boolean"==typeof e||(en(e)?e.some(function(e){H(e,t)}):t.push(e)),t}function L(e,t,n,i){var s,o,a,u=e.key,c=e.type,v=t[n],R=null!=v&&0==(2&v.__u);if(null===v&&null==e.key||R&&u==v.key&&c==v.type)return n;if(i>(R?1:0)){for(s=n-1,o=n+1;s>=0||o<t.length;)if(null!=(v=t[a=s>=0?s--:o++])&&0==(2&v.__u)&&u==v.key&&c==v.type)return a}return -1}function T(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||er.test(t)?n:n+"px"}function j(e,t,n,i,s){var o,a;e:if("style"==t){if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||T(e.style,t,"");if(n)for(t in n)i&&n[t]==i[t]||T(e.style,t,n[t])}}else if("o"==t[0]&&"n"==t[1])o=t!=(t=t.replace(U,"$1")),t=(a=t.toLowerCase())in e||"onFocusOut"==t||"onFocusIn"==t?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?i?n.u=i.u:(n.u=W,e.addEventListener(t,o?X:Z,o)):e.removeEventListener(t,o?X:Z,o);else{if("http://www.w3.org/2000/svg"==s)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function F(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=W++;else if(t.t<n.u)return;return n(s.event?s.event(t):t)}}}function O(e,t,n,i,o,a,u,c,v,R){var U,W,Z,X,Y,ee,et,er,ei,es,eo,ea,el,eu,ec,eh,ed,ef=t.type;if(null!=t.constructor)return null;128&n.__u&&(v=!!(32&n.__u),a=[c=t.__e=n.__e]),(U=s.__b)&&U(t);e:if("function"==typeof ef)try{if(er=t.props,ei="prototype"in ef&&ef.prototype.render,es=(U=ef.contextType)&&i[U.__c],eo=U?es?es.props.value:U.__:i,n.__c?et=(W=t.__c=n.__c).__=W.__E:(ei?t.__c=W=new ef(er,eo):(t.__c=W=new x(er,eo),W.constructor=ef,W.render=E),es&&es.sub(W),W.props=er,W.state||(W.state={}),W.context=eo,W.__n=i,Z=W.__d=!0,W.__h=[],W._sb=[]),ei&&null==W.__s&&(W.__s=W.state),ei&&null!=ef.getDerivedStateFromProps&&(W.__s==W.state&&(W.__s=d({},W.__s)),d(W.__s,ef.getDerivedStateFromProps(er,W.__s))),X=W.props,Y=W.state,W.__v=t,Z)ei&&null==ef.getDerivedStateFromProps&&null!=W.componentWillMount&&W.componentWillMount(),ei&&null!=W.componentDidMount&&W.__h.push(W.componentDidMount);else{if(ei&&null==ef.getDerivedStateFromProps&&er!==X&&null!=W.componentWillReceiveProps&&W.componentWillReceiveProps(er,eo),!W.__e&&null!=W.shouldComponentUpdate&&!1===W.shouldComponentUpdate(er,W.__s,eo)||t.__v==n.__v){for(t.__v!=n.__v&&(W.props=er,W.state=W.__s,W.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),ea=0;ea<W._sb.length;ea++)W.__h.push(W._sb[ea]);W._sb=[],W.__h.length&&u.push(W);break e}null!=W.componentWillUpdate&&W.componentWillUpdate(er,W.__s,eo),ei&&null!=W.componentDidUpdate&&W.__h.push(function(){W.componentDidUpdate(X,Y,ee)})}if(W.context=eo,W.props=er,W.__P=e,W.__e=!1,el=s.__r,eu=0,ei){for(W.state=W.__s,W.__d=!1,el&&el(t),U=W.render(W.props,W.state,W.context),ec=0;ec<W._sb.length;ec++)W.__h.push(W._sb[ec]);W._sb=[]}else do W.__d=!1,el&&el(t),U=W.render(W.props,W.state,W.context),W.state=W.__s;while(W.__d&&++eu<25);W.state=W.__s,null!=W.getChildContext&&(i=d(d({},i),W.getChildContext())),ei&&!Z&&null!=W.getSnapshotBeforeUpdate&&(ee=W.getSnapshotBeforeUpdate(X,Y)),eh=U,null!=U&&U.type===k&&null==U.key&&(eh=V(U.props.children)),c=I(e,en(eh)?eh:[eh],t,n,i,o,a,u,c,v,R),W.base
vendor: 3,296 bytes, line 6
6=t.__e,t.__u&=-161,W.__h.length&&u.push(W),et&&(W.__E=W.__=null)}catch(e){if(t.__v=null,v||null!=a){if(e.then){for(t.__u|=v?160:128;c&&8==c.nodeType&&c.nextSibling;)c=c.nextSibling;a[a.indexOf(c)]=null,t.__e=c}else{for(ed=a.length;ed--;)g(a[ed]);z(t)}}else t.__e=n.__e,t.__k=n.__k,e.then||z(t);s.__e(e,t,n)}else null==a&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):c=t.__e=q(n.__e,t,n,i,o,a,u,v,R);return(U=s.diffed)&&U(t),128&t.__u?void 0:c}function z(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(z)}function N(e,t,n){for(var i=0;i<n.length;i++)B(n[i],n[++i],n[++i]);s.__c&&s.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){s.__e(e,t.__v)}})}function V(e){return"object"!=typeof e||null==e||e.__b&&e.__b>0?e:en(e)?e.map(V):d({},e)}function q(e,t,n,o,a,u,c,v,R){var U,W,Z,X,Y,et,er,ei=n.props,es=t.props,eo=t.type;if("svg"==eo?a="http://www.w3.org/2000/svg":"math"==eo?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=u){for(U=0;U<u.length;U++)if((Y=u[U])&&"setAttribute"in Y==!!eo&&(eo?Y.localName==eo:3==Y.nodeType)){e=Y,u[U]=null;break}}if(null==e){if(null==eo)return document.createTextNode(es);e=document.createElementNS(a,eo,es.is&&es),v&&(s.__m&&s.__m(t,u),v=!1),u=null}if(null==eo)ei===es||v&&e.data==es||(e.data=es);else{if(u=u&&i.call(e.childNodes),ei=n.props||ee,!v&&null!=u)for(ei={},U=0;U<e.attributes.length;U++)ei[(Y=e.attributes[U]).name]=Y.value;for(U in ei)if(Y=ei[U],"children"==U);else if("dangerouslySetInnerHTML"==U)Z=Y;else if(!(U in es)){if("value"==U&&"defaultValue"in es||"checked"==U&&"defaultChecked"in es)continue;j(e,U,null,Y,a)}for(U in es)Y=es[U],"children"==U?X=Y:"dangerouslySetInnerHTML"==U?W=Y:"value"==U?et=Y:"checked"==U?er=Y:v&&"function"!=typeof Y||ei[U]===Y||j(e,U,Y,ei[U],a);if(W)v||Z&&(W.__html==Z.__html||W.__html==e.innerHTML)||(e.innerHTML=W.__html),t.__k=[];else if(Z&&(e.innerHTML=""),I("template"==t.type?e.content:e,en(X)?X:[X],t,n,o,"foreignObject"==eo?"http://www.w3.org/1999/xhtml":a,u,c,u?u[0]:n.__k&&S(n,0),v,R),null!=u)for(U=u.length;U--;)g(u[U]);v||(U="value","progress"==eo&&null==et?e.removeAttribute("value"):null==et||et===e[U]&&("progress"!=eo||et)&&("option"!=eo||et==ei[U])||j(e,U,et,ei[U],a),U="checked",null!=er&&er!=e[U]&&j(e,U,er,ei[U],a))}return e}function B(e,t,n){try{if("function"==typeof e){var i="function"==typeof e.__u;i&&e.__u(),i&&null==t||(e.__u=e(t))}else e.current=t}catch(e){s.__e(e,n)}}function D(e,t,n){var i,o;if(s.unmount&&s.unmount(e),(i=e.ref)&&(i.current&&i.current!=e.__e||B(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){s.__e(e,t)}i.base=i.__P=null}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&D(i[o],t,n||"function"!=typeof e.type);n||g(e.__e),e.__c=e.__=e.__e=void 0}function E(e,t,n){return this.constructor(e,n)}function G(e,t,n){var o,a,u,c;t==document&&(t=document.documentElement),s.__&&s.__(e,t),a=(o="function"==typeof n)?null:n&&n.__k||t.__k,u=[],c=[],O(t,e=(!o&&n||t).__k=_(k,null,[e]),a||ee,ee,t.namespaceURI,!o&&n?[n]:a?null:t.firstChild?i.call(t.childNodes):null,u,!o&&n?n:a?a.__e:t.firstChild,o,c),N(u,e,c)}function J(e,t){G(e,t,J)}function K(e,t,n){var s,o,a,u,c=d({},e.props);for(a in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)"key"==a?s=t[a]:"ref"==a?o=t[a
vendor: 1,441 bytes, line 6
6]:c[a]=void 0===t[a]&&null!=u?u[a]:t[a];return arguments.length>2&&(c.children=arguments.length>3?i.call(arguments,2):n),m(e.type,c,s||e.key,o||e.ref,null)}function Q(e){function l(e){var t,n;return this.getChildContext||(t=new Set,(n={})[l.__c]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){t=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&t.forEach(function(e){e.__e=!0,M(e)})},this.sub=function(e){t.add(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t&&t.delete(e),n&&n.call(e)}}),e.children}return l.__c="__cC"+Y++,l.__=e,l.Provider=l.__l=(l.Consumer=function(e,t){return e.children(t)}).contextType=l,l}i=et.slice,s={__e:function(e,t,n,i){for(var s,o,a;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&null!=o.getDerivedStateFromError&&(s.setState(o.getDerivedStateFromError(e)),a=s.__d),null!=s.componentDidCatch&&(s.componentDidCatch(e,i||{}),a=s.__d),a)return s.__E=s}catch(t){e=t}throw e}},o=0,a=function(e){return null!=e&&null==e.constructor},x.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=d({},this.state),"function"==typeof e&&(e=e(d({},n),this.props)),e&&d(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),M(this))},x.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),M(this))},x.prototype.render=k,u=[],v="function"==typeof Promise?Promise.prototype.then.bind(Prom
6ise.resolve()):setTimeout,R=function(e,t){return e.__v.__b-t.__v.__b},$.__r=0,U=/(PointerCapture)$|Capture$/i,W=0,Z=F(!1),X=F(!0),Y=0},87060:function(e,t,n){"use strict";n.r(t),n.d(t,{useCallback:function(){return q},useContext:function(){return x},useDebugValue:function(){return P},useEffect:function(){return y},useErrorBoundary:function(){return b},useId:function(){return g},useImperativeHandle:function(){return F},useLayoutEffect:function(){return _},useMemo:function(){return T},useReducer:function(){return h},useRef:function(){return A},useState:function(){return d}});var i,s,o,a,u=n(88049),c=0,v=[],R=u.options,U=R.__b,W=R.__r,Z=R.diffed,X=R.__c,Y=R.unmount,ee=R.__;function p(e,t){R.__h&&R.__h(s,e,c||t),c=0;var n=s.__H||(s.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function d(e){return c=1,h(D,e)}function h(e,t,n){var o=p(i++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):D(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],n=o.t(t,e);t!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=s,!s.__f)){var f=function(e,t,n){if(!o.__c.__H)return!0;var i=o.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!a||a.call(this,e,t,n);var s=o.__c.props!==e;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}}),a&&a.call(this,e,t,n)||s};s.__f=!0;var a=s.shouldComponentUpdate,u=s.componentWillUpdate;s.componentWillUpdate=function(e,t,n){if(this.__e){var i=a;a=void 0,f(e,t,n),a=i}u&&u.call(this,e,t,n)},s.shouldComponentUpdate=f}return o.__N||o.__}function y(e,t){var n=p(i++,3);!R.__s&&C(n.__H,t)&&(n.__=e,n.u=t,s.__H.__h.push(n))}function _(e,t){var n=p(i++,4);!R.__s&&C(n.__H,t)&&(n.__=e,n.u=t,s.__h.push(n))}function A(e){return c=5,T(function(){return{current:e}},[])}function F(e,t,n){c=6,_(function(){if("function"==typeof e){var n=e(t());return function(){e(null),n&&"function"==typeof n&&n()}}if(e)return e.current=t(),function(){return e.current=null}},null==n?n:n.concat(e))}function T(e,t){var n=p(i++,7);return C(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function q(e,t){return c=8,T(function(){return e},t)}function x(e){var t=s.context[e.__c],n=p(i++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(s)),t.props.value):e.__}function P(e,t){R.useDebugValue&&R.useDebugValue(t?t(e):e)}function b(e){var t=p(i++,10),n=d();return t.__=e,s.componentDidCatch||(s.componentDidCatch=function(e,i){t.__&&t.__(e,i),n[1](e)}),[n[0],function(){n[1](void 0)}]}function g(){var e=p(i++,11);if(!e.__){for(var t=s.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function j(){for(var e;e=v.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(z),e.__H.__h.forEach(B),e.__H.__h=[]}catch(t){e.__H.__h=[],R.__e(t,e.__v)}}R.__b=function(e){s=null,U&&U(e)},R.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ee&&ee(e,t)},R.__r=function(e){W&&W(e),i=0;var t=(s=e.__c).__H;t&&(o===s?(t.__h=[],s.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(z),t.__h.forEach(B),t.__h=[],i=0)),o=s},R.diffed=function(e){Z&&Z(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==v.push(t)&&a===R.requestAnimationFrame||((a=R.requestAnimationFrame)||w)(j)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),o=s=null},R.__c=function(e,t){t.some(function(e){try{e.__h.forEach(z),e.__h=e.__h.filter(function(e){return!e.__||B(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],R.__e(n,e.__v)}}),X&&X(e,t)},R.unmount=function(e){Y&&Y(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{z(e)}catch(e){t=e}}),n.__H=void 0,t&&R.__e(t,n.__v))};var et="function"==typeof requestAnimationFrame;function w(e){var t,r=function(){clearTimeout(n),et&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);et&&(t=requestAnimationFrame(r))}function z(e){var t=s,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),s=t}function B(e){var t=s;e.__c=e.__(),s=t}function C(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function D(e,t){return"function"==typeof t?t(e):t}},48394:function(e,t,n){"use strict";let i=Symbol("SemVer ANY");let Comparator=class Comparator{static get ANY(){return i}constructor(e,t){if(t=s(t),e instanceof Comparator){if(!!t.loose===e.loose)return e;e=e.value}c("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===i?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){let t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],n=e.match(t);if(!n)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new v(n[2],this.options.loose):this.semver=i}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===i||e===i)return!0;
6if("string"==typeof e)try{e=new v(e,this.options)}catch(e){return!1}return u(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new R(e.value,t).test(this.value):""===e.operator?""===e.value||new R(this.value,t).test(e.semver):!((t=s(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||u(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||u(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))}};e.exports=Comparator;let s=n(52887),{safeRe:o,t:a}=n(87425),u=n(25212),c=n(21628),v=n(24642),R=n(64070)},64070:function(e,t,n){"use strict";let i=/\s+/g;let Range=class Range{constructor(e,t){if(t=a(t),e instanceof Range){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;return new Range(e.raw,t)}if(e instanceof u)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(i," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!isNullSet(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&isAny(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let t=(this.options.includePrerelease&&Y)|(this.options.loose&&ee),n=t+":"+e,i=o.get(n);if(i)return i;let s=this.options.loose,a=s?R[U.HYPHENRANGELOOSE]:R[U.HYPHENRANGE];c("hyphen replace",e=e.replace(a,hyphenReplace(this.options.includePrerelease))),c("comparator trim",e=e.replace(R[U.COMPARATORTRIM],W)),c("tilde trim",e=e.replace(R[U.TILDETRIM],Z)),c("caret trim",e=e.replace(R[U.CARETTRIM],X));let v=e.split(" ").map(e=>parseComparator(e,this.options)).join(" ").split(/\s+/).map(e=>replaceGTE0(e,this.options));s&&(v=v.filter(e=>(c("loose invalid filter",e,this.options),!!e.match(R[U.COMPARATORLOOSE])))),c("range list",v);let et=new Map,er=v.map(e=>new u(e,this.options));for(let e of er){if(isNullSet(e))return[e];et.set(e.value,e)}et.size>1&&et.has("")&&et.delete("");let en=[...et.values()];return o.set(n,en),en}intersects(e,t){if(!(e instanceof Range))throw TypeError("a Range is required");return this.set.some(n=>isSatisfiable(n,t)&&e.set.some(e=>isSatisfiable(e,t)&&n.every(n=>e.every(e=>n.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new v(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(testSet(this.set[t],e,this.options))return!0;return!1}};e.exports=Range;let s=n(919),o=new s,a=n(52887),u=n(48394),c=n(21628),v=n(24642),{safeRe:R,t:U,comparatorTrimReplace:W,tildeTrimReplace:Z,caretTrimReplace:X}=n(87425),{FLAG_INCLUDE_PRERELEASE:Y,FLAG_LOOSE:ee}=n(90323),isNullSet=e=>"<0.0.0-0"===e.value,isAny=e=>""===e.value,isSatisfiable=(e,t)=>
6{let n=!0,i=e.slice(),s=i.pop();for(;n&&i.length;)n=i.every(e=>s.intersects(e,t)),s=i.pop();return n},parseComparator=(e,t)=>(c("comp",e,t),c("caret",e=replaceCarets(e,t)),c("tildes",e=replaceTildes(e,t)),c("xrange",e=replaceXRanges(e,t)),c("stars",e=replaceStars(e,t)),e),isX=e=>!e||"x"===e.toLowerCase()||"*"===e,replaceTildes=(e,t)=>e.trim().split(/\s+/).map(e=>replaceTilde(e,t)).join(" "),replaceTilde=(e,t)=>{let n=t.loose?R[U.TILDELOOSE]:R[U.TILDE];return e.replace(n,(t,n,i,s,o)=>{let a;return c("tilde",e,t,n,i,s,o),isX(n)?a="":isX(i)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:isX(s)?a=`>=${n}.${i}.0 <${n}.${+i+1}.0-0`:o?(c("replaceTilde pr",o),a=`>=${n}.${i}.${s}-${o} <${n}.${+i+1}.0-0`):a=`>=${n}.${i}.${s} <${n}.${+i+1}.0-0`,c("tilde return",a),a})},replaceCarets=(e,t)=>e.trim().split(/\s+/).map(e=>replaceCaret(e,t)).join(" "),replaceCaret=(e,t)=>{c("caret",e,t);let n=t.loose?R[U.CARETLOOSE]:R[U.CARET],i=t.includePrerelease?"-0":"";return e.replace(n,(t,n,s,o,a)=>{let u;return c("caret",e,t,n,s,o,a),isX(n)?u="":isX(s)?u=`>=${n}.0.0${i} <${+n+1}.0.0-0`:isX(o)?u="0"===n?`>=${n}.${s}.0${i} <${n}.${+s+1}.0-0`:`>=${n}.${s}.0${i} <${+n+1}.0.0-0`:a?(c("replaceCaret pr",a),u="0"===n?"0"===s?`>=${n}.${s}.${o}-${a} <${n}.${s}.${+o+1}-0`:`>=${n}.${s}.${o}-${a} <${n}.${+s+1}.0-0`:`>=${n}.${s}.${o}-${a} <${+n+1}.0.0-0`):(c("no pr"),u="0"===n?"0"===s?`>=${n}.${s}.${o}${i} <${n}.${s}.${+o+1}-0`:`>=${n}.${s}.${o}${i} <${n}.${+s+1}.0-0`:`>=${n}.${s}.${o} <${+n+1}.0.0-0`),c("caret return",u),u})},replaceXRanges=(e,t)=>(c("replaceXRanges",e,t),e.split(/\s+/).map(e=>replaceXRange(e,t)).join(" ")),replaceXRange=(e,t)=>
6{e=e.trim();let n=t.loose?R[U.XRANGELOOSE]:R[U.XRANGE];return e.replace(n,(n,i,s,o,a,u)=>{c("xRange",e,n,i,s,o,a,u);let v=isX(s),R=v||isX(o),U=R||isX(a);return"="===i&&U&&(i=""),u=t.includePrerelease?"-0":"",v?n=">"===i||"<"===i?"<0.0.0-0":"*":i&&U?(R&&(o=0),a=0,">"===i?(i=">=",R?(s=+s+1,o=0):o=+o+1,a=0):"<="===i&&(i="<",R?s=+s+1:o=+o+1),"<"===i&&(u="-0"),n=`${i+s}.${o}.${a}${u}`):R?n=`>=${s}.0.0${u} <${+s+1}.0.0-0`:U&&(n=`>=${s}.${o}.0${u} <${s}.${+o+1}.0-0`),c("xRange return",n),n})},replaceStars=(e,t)=>(c("replaceStars",e,t),e.trim().replace(R[U.STAR],"")),replaceGTE0=(e,t)=>(c("replaceGTE0",e,t),e.trim().replace(R[t.includePrerelease?U.GTE0PRE:U.GTE0],"")),hyphenReplace=e=>(t,n,i,s,o,a,u,c,v,R,U,W)=>(n=isX(i)?"":isX(s)?`>=${i}.0.0${e?"-0":""}`:isX(o)?`>=${i}.${s}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`,c=isX(v)?"":isX(R)?`<${+v+1}.0.0-0`:isX(U)?`<${v}.${+R+1}.0-0`:W?`<=${v}.${R}.${U}-${W}`:e?`<${v}.${R}.${+U+1}-0`:`<=${c}`,`${n} ${c}`.trim()),testSet=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(c(e[n].semver),e[n].semver!==u.ANY&&e[n].semver.prerelease.length>0){let i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}},24642:function(e,t,n){"use strict";let i=n(21628),{MAX_LENGTH:s,MAX_SAFE_INTEGER:o}=n(90323),{safeRe:a,t:u}=n(87425),c=n(52887),{compareIdentifiers:v}=n(82569);let SemVer=class SemVer{constructor(e,t){if(t=c(t),e instanceof SemVer){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>s)throw TypeError(`version is longer than ${s} characters`);i("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?a[u.LOOSE]:a[u.FULL]);if(!n)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<o)return t}return e}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(i("SemVer.compare",this.version,this.options,e),!(e instanceof SemVer)){if("string"==typeof e&&e===this.version)return 0;e=new SemVer(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof SemVer||(e=new SemVer(e,this.options)),v(this.major,e.major)||v(this.minor,e.minor)||v(this.patch,e.patch)}comparePre(e){if(e instanceof SemVer||(e=new SemVer(e,this.options)),this.prerelease.length&&!e.prerelease.length)return -1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],s=e.prerelease[t];if(i("prerelease compare",t,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return -1;if(n===s)continue;else return v(n,s)}while(++t)}compareBuild(e){e instanceof SemVer||(e=new SemVer(e,this.options));let t=0;do{let n=this.build[t],s=e.build[t];if(i("build compare",t,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return -1;if(n===s)continue;else return v(n,s)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw Error("invalid increment argument: identifier is empty");if(t){let e=`-${t}`.match(this.options.loose?a[u.PRERELEASELOOSE]:a[u.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{let e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let i=this.prerelease.length;for(;--i>=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);if(-1===i){if(t===this.prerelease.join(".")&&!1===n)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let i=[t,e];!1===n&&(i=[t]),0===v(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};e.exports=SemVer},13304:function(e,t,n){"use strict";let i=n(28881);e.exports=(e,t)=>{let n=i(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},25212:function(e,t,n){"use strict";let i=n(60748),s=n(77901),o=n(99649),a=n(35135),u=n(95422),c=n(70998);e.exports=(e,t,n,v)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return i(e,n,v);case"!=":return s(e,n,v);case">":return o(e,n,v);case">=":return a(e,n,v);case"<":return u(e,n,v);case"<=":return c(e,n,v);default:throw TypeError(`Invalid operator: ${t}`)}}},65945:function(e,t,n){"use strict";let i=n(24642),s=n(28881),{safeRe:o,t:a}=n(87425);e.exports=(e,t)=>{if(e instanceof i)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let i;let s=t.includePrerelease?o[a.COERCERTLFULL]:o[a.COERCERTL];for(;(i=s.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&i.index+i[0].length===n.index+n[0].length||(n=i),s.lastIndex=i.index+i[1].length+i[2].length;s.lastIndex=-1}else n=e.match(t.includePrerelease?o[a.COERCEFULL]:o[a.COERCE]);if(null===n)return null;let u=n[2],c=n[3]||"0",v=n[4]||"0",R=t.includePrerelease&&n[5]?`-${n[5]}`:"",U=t.includePrerelease&&n[6]?`+${n[6]}`:"";return s(`${u}.${c}.${v}${R}${U}`,t)}},44081:function(e,t,n){"use strict";let i=n(24642);e.exports=(e,t,n)=>{let s=new i(e,n),o=new i(t,n);return s.compare(o)||s.compareBuild(o)}},96388:function(e,t,n){"use strict";let i=n(34066);e.exports=(e,t)=>i(e,t,!0)},34066:function(e,t,n){"use strict";let i=n(24642);e.exports=(e,t,n)=>new i(e,n).compare(new i(t,n))},6461:function(e,t,n){"use strict";let i=n(28881);e.exports=(e,t)=>{let n=i(e,null,!0),s=i(t,null,!0),o=n.compare(s);if(0===o)return null;let a=o>0,u=a?n:s,c=a?s:n,v=!!u.prerelease.length,R=!!c.prerelease.length;if(R&&!v){if(!c.patch&&!c.minor)return"major";if(0===c.compareMain(u))return c.minor&&!c.patch?"minor":"patch"}let U=v?"pre":"";return n.major!==s.major?U+"major":n.minor!==s.minor?U+"minor":n.patch!==s.patch?U+"patch":"prerelease"}},60748:function(e,t,n){"use strict";let i=n(34066);e.exports=(e,t,n)=>0===i(e,t,n)},99649:function(e,t,n){"use strict";let i=n(34066);e.exports=(e,t,n)=>i(e,t,n)>0},35135:function(e,t,n){"use strict";let i=n(34066);e.exports=(e,t,n)=>i(e,t,n)>=0},72811:function(e,t,n){"use strict";let i=n(24642);e.exports=(e,t,n,s,o)=>{"string"==typeof n&&(o=s,s=n,n=void 0);
6try{return new i(e instanceof i?e.version:e,n).inc(t,s,o).version}catch(e){return null}}},95422:function(e,t,n){"use strict";let i=n(34066);e.exports=(e,t,n)=>0>i(e,t,n)},70998:function(e,t,n){"use strict";let i=n(34066);e.exports=(e,t,n)=>0>=i(e,t,n)},82048:function(e,t,n){"use strict";let i=n(24642);e.exports=(e,t)=>new i(e,t).major},80145:function(e,t,n){"use strict";let i=n(24642);e.exports=(e,t)=>new i(e,t).minor},77901:function(e,t,n){"use strict";let i=n(34066);e.exports=(e,t,n)=>0!==i(e,t,n)},28881:function(e,t,n){"use strict";let i=n(24642);e.exports=(e,t,n=!1)=>{if(e instanceof i)return e;try{return new i(e,t)}catch(e){if(!n)return null;throw e}}},83382:function(e,t,n){"use strict";let i=n(24642);e.exports=(e,t)=>new i(e,t).patch},94797:function(e,t,n){"use strict";let i=n(28881);e.exports=(e,t)=>{let n=i(e,t);return n&&n.prerelease.length?n.prerelease:null}},68271:function(e,t,n){"use strict";let i=n(34066);e.exports=(e,t,n)=>i(t,e,n)},34879:function(e,t,n){"use strict";let i=n(44081);e.exports=(e,t)=>e.sort((e,n)=>i(n,e,t))},93796:function(e,t,n){"use strict";let i=n(64070);e.exports=(e,t,n)=>{try{t=new i(t,n)}catch(e){return!1}return t.test(e)}},73433:function(e,t,n){"use strict";let i=n(44081);e.exports=(e,t)=>e.sort((e,n)=>i(e,n,t))},54984:function(e,t,n){"use strict";let i=n(28881);e.exports=(e,t)=>{let n=i(e,t);return n?n.version:null}},84076:function(e,t,n){"use strict";let i=n(87425),s=n(90323),o=n(24642),a=n(82569),u=n(28881),c=n(54984),v=n(13304),R=n(72811),U=n(6461),W=n(82048),Z=n(80145),X=n(83382),Y=n(94797),ee=n(34066),et=n(68271),er=n(96388),en=n(44081),ei=n(73433),es=n(34879),eo=n(99649),ea=n(95422),el=n(60748),eu=n(77901),ec=n(35135),eh=n(70998),ed=n(25212),ef=n(65945),ep=n(48394),eg=n(64070),em=n(93796),ey=n(77285),eb=n(37987),e_=n(61451),ev=n(27465),ew=n(38686),eE=n(70754),eS=n(70077),ek=n(9823),eR=n(7701),eM=n(30442),eC=n(72640);e.exports={parse:u,valid:c,clean:v,inc:R,diff:U,major:W,minor:Z,patch:X,prerelease:Y,compare:ee,rcompare:et,compareLoose:er,compareBuild:en,sort:ei,rsort:es,gt:eo,lt:ea,eq:el,neq:eu,gte:ec,lte:eh,cmp:ed,coerce:ef,Comparator:ep,Range:eg,satisfies:em,toComparators:ey,maxSatisfying:eb,minSatisfying:e_,minVersion:ev,validRange:ew,outside:eE,gtr:eS,ltr:ek,intersects:eR,simplifyRange:eM,subset:eC,SemVer:o,re:i.re,src:i.src,tokens:i.t,SEMVER_SPEC_VERSION:s.SEMVER_SPEC_VERSION,RELEASE_TYPES:s.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},90323:function(e){"use strict";let t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},21628:function(e,t,n){"use strict";var i=n(62601);let s="object"==typeof i&&i.env&&i.env.NODE_DEBUG&&/\bsemver\b/i.test(i.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=s},82569:function(e){"use strict";let t=/^[0-9]+$/,compareIdentifiers=(e,n)=>{let i=t.test(e),s=t.test(n);return i&&s&&(e=+e,n=+n),e===n?0:i&&!s?-1:s&&!i?1:e<n?-1:1};e.exports={compareIdentifiers,rcompareIdentifiers:(e,t)=>compareIdentifiers(t,e)}},919:function(e){"use strict";let LRUCache=class LRUCache{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(void 0!==t)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){let n=this.delete(e);if(!n&&void 0!==t){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}};e.exports=LRUCache},52887:function(e){"use strict";let t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},87425:function(e,t,n){"use strict";let{MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:o}=n(90323),a=n(21628);t=e.exports={};let u=t.re=[],c=t.safeRe=[],v=t.src=[],R=t.safeSrc=[],U=t.t={},W=0,Z="[a-zA-Z0-9-]",X=[["\\s",1],["\\d",o],[Z,s]],makeSafeRegex=e=>{for(let[t,n]of X)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},createToken=(e,t,n)=>{let i=makeSafeRegex(t),s=W++;a(e,s,t),U[e]=s,v[s]=t,R[s]=i,u[s]=new RegExp(t,n?"g":void 0),c[s]=new RegExp(i,n?"g":void 0)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*"),createToken("NUMERICIDENTIFIERLOOSE","\\d+"),createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Z}*`),createToken("MAINVERSION",`(${v[U.NUMERICIDENTIFIER]})\\.(${v[U.NUMERICIDENTIFIER]})\\.(${v[U.NUMERICIDENTIFIER]})`),createToken("MAINVERSIONLOOSE",`(${v[U.NUMERICIDENTIFIERLOOSE]})\\.(${v[U.NUMERICIDENTIFIERLOOSE]})\\.(${v[U.NUMERICIDENTIFIERLOOSE]})`),createToken("PRERELEASEIDENTIFIER",`(?:${v[U.NONNUMERICIDENTIFIER]}|${v[U.NUMERICIDENTIFIER]})`),createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${v[U.NONNUMERICIDENTIFIER]}|${v[U.NUMERICIDENTIFIERLOOSE]})`),createToken("PRERELEASE",`(?:-(${v[U.PRERELEASEIDENTIFIER]}(?:\\.${v[U.PRERELEASEIDENTIFIER]})*))`),createToken("PRERELEASELOOSE",`(?:-?(${v[U.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${v[U.PRERELEASEIDENTIFIERLOOSE]}
6)*))`),createToken("BUILDIDENTIFIER",`${Z}+`),createToken("BUILD",`(?:\\+(${v[U.BUILDIDENTIFIER]}(?:\\.${v[U.BUILDIDENTIFIER]})*))`),createToken("FULLPLAIN",`v?${v[U.MAINVERSION]}${v[U.PRERELEASE]}?${v[U.BUILD]}?`),createToken("FULL",`^${v[U.FULLPLAIN]}$`),createToken("LOOSEPLAIN",`[v=\\s]*${v[U.MAINVERSIONLOOSE]}${v[U.PRERELEASELOOSE]}?${v[U.BUILD]}?`),createToken("LOOSE",`^${v[U.LOOSEPLAIN]}$`),createToken("GTLT","((?:<|>)?=?)"),createToken("XRANGEIDENTIFIERLOOSE",`${v[U.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),createToken("XRANGEIDENTIFIER",`${v[U.NUMERICIDENTIFIER]}|x|X|\\*`),createToken("XRANGEPLAIN",`[v=\\s]*(${v[U.XRANGEIDENTIFIER]})(?:\\.(${v[U.XRANGEIDENTIFIER]})(?:\\.(${v[U.XRANGEIDENTIFIER]})(?:${v[U.PRERELEASE]})?${v[U.BUILD]}?)?)?`),createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${v[U.XRANGEIDENTIFIERLOOSE]})(?:\\.(${v[U.XRANGEIDENTIFIERLOOSE]})(?:\\.(${v[U.XRANGEIDENTIFIERLOOSE]})(?:${v[U.PRERELEASELOOSE]})?${v[U.BUILD]}?)?)?`),createToken("XRANGE",`^${v[U.GTLT]}\\s*${v[U.XRANGEPLAIN]}$`),createToken("XRANGELOOSE",`^${v[U.GTLT]}\\s*${v[U.XRANGEPLAINLOOSE]}$`),createToken("COERCEPLAIN",`(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?`),createToken("COERCE",`${v[U.COERCEPLAIN]}(?:$|[^\\d])`),createToken("COERCEFULL",v[U.COERCEPLAIN]+`(?:${v[U.PRERELEASE]})?`+`(?:${v[U.BUILD]})?`+"(?:$|[^\\d])"),createToken("COERCERTL",v[U.COERCE],!0),createToken("COERCERTLFULL",v[U.COERCEFULL],!0),createToken("LONETILDE","(?:~>?)"),createToken("TILDETRIM",`(\\s*)${v[U.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",createToken("TILDE",`^${v[U.LONETILDE]}${v[U.XRANGEPLAIN]}$`),createToken("TILDELOOSE",`^${v[U.LONETILDE]}${v[U.XRANGEPLAINLOOSE]}$`),createToken("LONECARET","(?:\\^)"),createToken("CARETTRIM",`(\\s*)${v[U.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",createToken("CARET",`^${v[U.LONECARET]}${v[U.XRANGEPLAIN]}$`),createToken("CARETLOOSE",`^${v[U.LONECARET]}${v[U.XRANGEPLAINLOOSE]}$`),createToken("COMPARATORLOOSE",`^${v[U.GTLT]}\\s*(${v[U.LOOSEPLAIN]})$|^$`),createToken("COMPARATOR",`^${v[U.GTLT]}\\s*(${v[U.FULLPLAIN]})$|^$`),createToken("COMPARATORTRIM",`(\\s*)${v[U.GTLT]}\\s*(${v[U.LOOSEPLAIN]}|${v[U.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",createToken("HYPHENRANGE",`^\\s*(${v[U.XRANGEPLAIN]})\\s+-\\s+(${v[U.XRANGEPLAIN]})\\s*$`),createToken("HYPHENRANGELOOSE",`^\\s*(${v[U.XRANGEPLAINLOOSE]})\\s+-\\s+(${v[U.XRANGEPLAINLOOSE]})\\s*$`),createToken("STAR","(<|>)?=?\\s*\\*"),createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},70077:function(e,t,n){"use strict";let i=n(70754);e.exports=(e,t,n)=>i(e,t,">",n)},7701:function(e,t,n){"use strict";let i=n(64070);e.exports=(e,t,n)=>(e=new i(e,n),t=new i(t,n),e.intersects(t,n))},9823:function(e,t,n){"use strict";let i=n(70754);e.exports=(e,t,n)=>i(e,t,"<",n)},37987:function(e,t,n){"use strict";let i=n(24642),s=n(64070);e.exports=(e,t,n)=>{let o=null,a=null,u=null;try{u=new s(t,n)}catch(e){return null}return e.forEach(e=>{u.test(e)&&(!o||-1===a.compare(e))&&(a=new i(o=e,n))}),o}},61451:function(e,t,n){"use strict";let i=n(24642),s=n(64070);e.exports=(e,t,n)=>{let o=null,a=null,u=null;try{u=new s(t,n)}catch(e){return null}return e.forEach(e=>{u.test(e)&&(!o||1===a.compare(e))&&(a=new i(o=e,n))}),o}},27465:function(e,t,n){"use strict";let i=n(24642),s=n(64070),o=n(99649);e.exports=(e,t)=>{e=new s(e,t);let n=new i("0.0.0");if(e.test(n)||(n=new i("0.0.0-0"),e.test(n)))return n;n=null;for(let t=0;t<e.set.length;++t){let s=e.set[t],a=null;
6s.forEach(e=>{let t=new i(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!a||o(t,a))&&(a=t);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),a&&(!n||o(n,a))&&(n=a)}return n&&e.test(n)?n:null}},70754:function(e,t,n){"use strict";let i=n(24642),s=n(48394),{ANY:o}=s,a=n(64070),u=n(93796),c=n(99649),v=n(95422),R=n(70998),U=n(35135);e.exports=(e,t,n,W)=>{let Z,X,Y,ee,et;switch(e=new i(e,W),t=new a(t,W),n){case">":Z=c,X=R,Y=v,ee=">",et=">=";break;case"<":Z=v,X=U,Y=c,ee="<",et="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(u(e,t,W))return!1;for(let n=0;n<t.set.length;++n){let i=t.set[n],a=null,u=null;if(i.forEach(e=>{e.semver===o&&(e=new s(">=0.0.0")),a=a||e,u=u||e,Z(e.semver,a.semver,W)?a=e:Y(e.semver,u.semver,W)&&(u=e)}),a.operator===ee||a.operator===et||(!u.operator||u.operator===ee)&&X(e,u.semver)||u.operator===et&&Y(e,u.semver))return!1}return!0}},30442:function(e,t,n){"use strict";let i=n(93796),s=n(34066);e.exports=(e,t,n)=>{let o=[],a=null,u=null,c=e.sort((e,t)=>s(e,t,n));for(let e of c){let s=i(e,t,n);s?(u=e,a||(a=e)):(u&&o.push([a,u]),u=null,a=null)}a&&o.push([a,null]);let v=[];for(let[e,t]of o)e===t?v.push(e):t||e!==c[0]?t?e===c[0]?v.push(`<=${t}`):v.push(`${e} - ${t}`):v.push(`>=${e}`):v.push("*");let R=v.join(" || "),U="string"==typeof t.raw?t.raw:String(t);return R.length<U.length?R:t}},72640:function(e,t,n){"use strict";let i=n(64070),s=n(48394),{ANY:o}=s,a=n(93796),u=n(34066),c=[new s(">=0.0.0-0")],v=[new s(">=0.0.0")],simpleSubset=(e,t,n)=>{let i,s,R,U,W,Z,X;if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=n.includePrerelease?c:v}if(1===t.length&&t[0].semver===o){if(n.includePrerelease)return!0;t=v}let Y=new Set;for(let t of e)">"===t.operator||">="===t.operator?i=higherGT(i,t,n):"<"===t.operator||"<="===t.operator?s=lowerLT(s,t,n):Y.add(t.semver);if(Y.size>1||i&&s&&((R=u(i.semver,s.semver,n))>0||0===R&&(">="!==i.operator||"<="!==s.operator)))return null;for(let e of Y){if(i&&!a(e,String(i),n)||s&&!a(e,String(s),n))return null;for(let i of t)if(!a(e,String(i),n))return!1;return!0}let ee=!!s&&!n.includePrerelease&&!!s.semver.prerelease.length&&s.semver,et=!!i&&!n.includePrerelease&&!!i.semver.prerelease.length&&i.semver;for(let e of(ee&&1===ee.prerelease.length&&"<"===s.operator&&0===ee.prerelease[0]&&(ee=!1),t)){if(X=X||">"===e.operator||">="===e.operator,Z=Z||"<"===e.operator||"<="===e.operator,i){if(et&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===et.major&&e.semver.minor===et.minor&&e.semver.patch===et.patch&&(et=!1),">"===e.operator||">="===e.operator){if((U=higherGT(i,e,n))===e&&U!==i)return!1}else if(">="===i.operator&&!a(i.semver,String(e),n))return!1}if(s){if(ee&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===ee.major&&e.semver.minor===ee.minor&&e.semver.patch===ee.patch&&(ee=!1),"<"===e.operator||"<="===e.operator){if((W=lowerLT(s,e,n))===e&&W!==s)return!1}else if("<="===s.operator&&!a(s.semver,String(e),n))return!1}if(!e.operator&&(s||i)&&0!==R)return!1}return(!i||!Z||!!s||0===R)&&(!s||!X||!!i||0===R)&&!et&&!ee},higherGT=(e,t,n)=>{if(!e)return t;let i=u(e.semver,t.semver,n);return i>0?e:i<0?t:">"===t.operator&&">="===e.operator?t:e},lowerLT=(e,t,n)=>{if(!e)return t;let i=u(e.semver,t.semver,n);return i<0?e:i>0?t:"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new i(e,n),t=new i(t,n);let s=!1;t:for(let i of e.set){for(let e of t.set){let t=simpleSubset(i,e,n);if(s=s||null!==t,t)continue t}if(s)return!1}return!0}},77285:function(e,t,n){"use strict";let i=n(64070);e.exports=(e,t)=>new i(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},38686:function(e,t,n){"use strict";let i=n(64070);e.exports=(e,t)=>{try{return new i(e,t).range||"*"}catch(e){return null}}},91475:function(e,t,n){"use strict";var i=n(51597),s=n(9122),o=n(59972)(),a=n(67526),u=n(35281),c=i("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new u("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||c(t)!==t)throw new u("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,v=!0;if("length"in e&&a){var R=a(e,"length");R&&!R.configurable&&(i=!1),R&&!R.writable&&(v=!1)}return(i||v||!n)&&(o?s(e,"length",t,!0,!0):s(e,"length",t)),e}},95904:function(e,t,n){"use strict";var i=n(53230).Buffer,s=n(70891);function Hash(e,t){this._block=i.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}Hash.prototype.update=function(e,t){e=s(e,t||"utf8");for(var n=this._block,i=this._blockSize,o=e.length,a=this._len,u=0;u<o;){for(var c=a%i,v=Math.min(o-u,i-c),R=0;R<v;R++)n[c+R]=e[u+R];a+=v,u+=v,a%i==0&&this._update(n)}return this._len+=o,this},Hash.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var i=(4294967295&n)>>>0,s=(n-i)/4294967296;this._block.writeUInt32BE(s,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},Hash.prototype._update=function(){throw Error("_update must be implemented by subclass")},e.exports=Hash},71114:function(e,t,n){"use strict";e.exports=function(t){var n=t.toLowerCase(),i=e.exports[n];if(!i)throw Error(n+" is not supported (we accept pull requests)");return new i},e.exports.sha=n(83358),e.exports.sha1=n(43652),e.exports.sha224=n(43212),e.exports.sha256=n(78194),e.exports.sha384=n(33681),e.exports.sha512=n(34270)},53230:function(e,t,n){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var i=n(67133),s=i.Buffer;function copyProps(e,t){for(var n in e)t[n]=e[n]}function SafeBuffer(e,t,n){return s(e,t,n)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?e.exports=i:(copyProps(i,t),t.Buffer=SafeBuffer),SafeBuffer.prototype=Object.create(s.prototype),copyProps(s,SafeBuffer),SafeBuffer.from=function(e,t,n){if("number"==typeof e)throw TypeError("Argument must not be a number");return s(e,t,n)},SafeBuffer.alloc=function(e,t,n){if("number"!=typeof e)throw TypeError("Argument must be a number");var i=s(e);return void 0!==t?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},SafeBuffer.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return s(e)},SafeBuffer.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i.SlowBuffer(e)}},83358:function(e,t,n){"use strict";var i=n(75335),s=n(95904),o=n(53230).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],u=Array(80);function Sha(){this.init(),this._w=u,s.call(this,64,56)}function rotl5(e){return e<<5|e>>>27}function rotl30(e){return e<<30|e>>>2}function ft(e,t,n,i){return 0===e?t&n|~t&i:2===e?t&n|t&i|n&i:t^n^i}i(Sha,s),Sha.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},Sha.prototype._update=function(e){for(var t=this._w,n=0|this._a,i=0|this._b,s=0|this._c,o=0|this._d,u=0|this._e,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<80;++c)t[c]=t[c-3]^t[c-8]^t[c-14]^t[c-16];for(var v=0;v<80;++v){var R=~~(v/20),U=rotl5(n)+ft(R,i,s,o)+u+t[v]+a[R]|0;u=o,o=s,s=rotl30(i),i=n,n=U}this._a=n+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=o+this._d|0,this._e=u+this._e|0},Sha.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=Sha},43652:function(e,t,n){"use strict";var i=n(75335),s=n(95904),o=n(53230).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],u=Array(80);function Sha1(){this.init(),this._w=u,s.call(this,64,56)}function rotl1(e){return e<<1|e>>>31}function rotl5(e){return e<<5|e>>>27}function rotl30(e){return e<<30|e>>>2}function ft(e,t,n,i){return 0===e?t&n|~t&i:2===e?t&n|t&i|n&i:t^n^i}i(Sha1,s),Sha1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},Sha1.prototype._update=function(e){for(var t=this._w,n=0|this._a,i=0|this._b,s=0|this._c,o=0|this._d,u=0|this._e,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<80;++c)t[c]=rotl1(t[c-3]^t[c-8]^t[c-14]^t[c-16]);for(var v=0;v<80;++v){var R=~~(v/20),U=rotl5(n)+ft(R,i,s,o)+u+t[v]+a[R]|0;u=o,o=s,s=rotl30(i),i=n,n=U}this._a=n+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=o+this._d|0,this._e=u+this._e|0},Sha1.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=Sha1},43212:function(e,t,n){"use strict";var i=n(75335),s=n(78194),o=n(95904),a=n(53230).Buffer,u=Array(64);function Sha224(){this.init(),this._w=u,o.call(this,64,56)}i(Sha224,s),Sha224.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},Sha224.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=Sha224},78194:function(e,t,n){"use strict";var i=n(75335),s=n(95904),o=n(53230).Buffer,a=[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
vendor: 4,085 bytes, line 6
6734187,3204031479,3329325298],u=Array(64);function Sha256(){this.init(),this._w=u,s.call(this,64,56)}function ch(e,t,n){return n^e&(t^n)}function maj(e,t,n){return e&t|n&(e|t)}function sigma0(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function sigma1(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function gamma0(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function gamma1(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}i(Sha256,s),Sha256.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},Sha256.prototype._update=function(e){for(var t=this._w,n=0|this._a,i=0|this._b,s=0|this._c,o=0|this._d,u=0|this._e,c=0|this._f,v=0|this._g,R=0|this._h,U=0;U<16;++U)t[U]=e.readInt32BE(4*U);for(;U<64;++U)t[U]=gamma1(t[U-2])+t[U-7]+gamma0(t[U-15])+t[U-16]|0;for(var W=0;W<64;++W){var Z=R+sigma1(u)+ch(u,c,v)+a[W]+t[W]|0,X=sigma0(n)+maj(n,i,s)|0;R=v,v=c,c=u,u=o+Z|0,o=s,s=i,i=n,n=Z+X|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=o+this._d|0,this._e=u+this._e|0,this._f=c+this._f|0,this._g=v+this._g|0,this._h=R+this._h|0},Sha256.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=Sha256},33681:function(e,t,n){"use strict";var i=n(75335),s=n(34270),o=n(95904),a=n(53230).Buffer,u=Array(160);function Sha384(){this.init(),this._w=u,o.call(this,128,112)}i(Sha384,s),Sha384.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},Sha384.prototype._hash=function(){var e=a.allocUnsafe(48);function writeInt64BE(t,n,i){e.writeInt32BE(t,i),e.writeInt32BE(n,i+4)}return writeInt64BE(this._ah,this._al,0),writeInt64BE(this._bh,this._bl,8),writeInt64BE(this._ch,this._cl,16),writeInt64BE(this._dh,this._dl,24),writeInt64BE(this._eh,this._el,32),writeInt64BE(this._fh,this._fl,40),e},e.exports=Sha384},34270:function(e,t,n){"use strict";var i=n(75335),s=n(95904),o=n(53230).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,
61126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],u=Array(160);function Sha512(){this.init(),this._w=u,s.call(this,128,112)}function sigma0(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function sigma1(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function Gamma0(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function Gamma0l(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function Gamma1(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function Gamma1l(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function getCarry(e,t){return e>>>0<t>>>0?1:0}i(Sha512,s),Sha512.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},Sha512.prototype._update=function(e){for(var t=this._w,n=0|this._ah,i=0|this._bh,s=0|this._ch,o=0|this._dh,u=0|this._eh,c=0|this._fh,v=0|this._gh,R=0|this._hh,U=0|this._al,W=0|this._bl,Z=0|this._cl,X=0|this._dl,Y=0|this._el,ee=0|this._fl,et=0|this._gl,er=0|this._hl,en=0;en<32;en+=2)t[en]=e.readInt32BE(4*en),t[en+1]=e.readInt32BE(4*en+4);for(;en<160;en+=2){var ei=t[en-30],es=t[en-30+1],eo=Gamma0(ei,es),ea=Gamma0l(es,ei),el=Gamma1(ei=t[en-4],es=t[en-4+1]),eu=Gamma1l(es,ei),ec=t[en-14],eh=t[en-14+1],ed=t[en-32],ef=t[en-32+1],ep=ea+eh|0,eg=eo+ec+getCarry(ep,ea)|0;eg=(eg=eg+el+getCarry(ep=ep+eu|0,eu)|0)+ed+getCarry(ep=ep+ef|0,ef)|0,t[en]=eg,t[en+1]=ep}for(var em=0;em<160;em+=2){eg=t[em],ep=t[em+1];var ey,eb,e_,ev,ew,eE,eS,ek,eR,eM,eC=(ey=n)&(eb=i)|s&(ey|eb),ex=(e_=U)&(ev=W)|Z&(e_|ev),eI=sigma0(n,U),eA=sigma0(U,n),eN=sigma1(u,Y),eT=sigma1(Y,u),eP=a[em],eB=a[em+1],eO=(ew=u,eE=c,(eS=v)^ew&(eE^eS)),eL=(ek=Y,eR=ee,(eM=et)^ek&(eR^eM)),eF=er+eT|0,ej=R+eN+getCarry(eF,er)|0;ej=(ej=(ej=ej+eO+getCarry(eF=eF+eL|0,eL)|0)+eP+getCarry(eF=eF+eB|0,eB)|0)+eg+getCarry(eF=eF+ep|0,ep)|0;var eD=eA+ex|0,eU=eI+eC+getCarry(eD,eA)|0;R=v,er=et,v=c,et=ee,c=u,ee=Y,u=o+ej+getCarry(Y=X+eF|0,X)|0,o=s,X=Z,s=i,Z=W,i=n,W=U,n=ej+eU+getCarry(U=eF+eD|0,eF)|0}this._al=this._al+U|0,this._bl=this._bl+W|0,this._cl=this._cl+Z|0,this._dl=this._dl+X|0,this._el=this._el+Y|0,this._fl=this._fl+ee|0,this._gl=this._gl+et|0,this._hl=this._hl+er|0,this._ah=this._ah+n+getCarry(this._al,U)|0,this._bh=this._bh+i+getCarry(this._bl,W)|0,this._ch=this._ch+s+getCarry(this._cl,Z)|0,this._dh=this._dh+o+getCarry(this._dl,X)|0,this._eh=this._eh+u+getCarry(this._el,Y)|0,this._fh=this._fh+c+getCarry(this._fl,ee)|0,this._gh=this._gh+v+getCarry(this._gl,et)|0,this._hh=this._hh+R+getCarry(this._hl,er)|0},Sha512.prototype._hash=function(){var e=o.allocUnsafe(64);function writeInt64BE(t,n,i){e.writeInt32BE(t,i),e.writeInt32BE(n,i+4)}return writeInt64BE(this._ah,this._al,0),writeInt64BE(this._bh,this._bl,8),writeInt64BE(this._ch,this._cl,16),writeInt64BE(this._dh,this._dl,24),writeInt64BE(this._eh,this._el,32),writeInt64BE(this._fh,this._fl,40),writeInt64BE(this._gh,this._gl,48),writeInt64BE(this._hh,this._hl,56),e},e.exports=Sha512},70891:function(e,t,n){"use strict";var i=n(56683).Buffer,s=n(82333),o=n(78911),a=ArrayBuffer.isView||function(e){try{return o(e),!0}catch(e){return!1}},u="undefined"!=typeof Uint8Array,c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,v=c&&(i.prototype instanceof Uint8Array||i.TYPED_ARRAY_SUPPORT);e.exports=function(e,t){if(e instanceof i)return e;if("string"==typeof e)return i.from(e,t);if(c&&a(e)){if(0===e.byteLength)return i.alloc(0);if(v){var n=i.from(e.buffer,e.byteOffset,e.byteLength);if(n.byteLength===e.byteLength)return n}var o=e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),R=i.from(o);if(R.length===e.byteLength)return R}if(u&&e instanceof Uint8Array)return i.from(e);var U=s(e);if(U)for(var W=0;W<e.length;W+=1){var Z=e[W];if("number"!=typeof Z||Z<0||Z>255||~~Z!==Z)throw RangeError("Array items must be numbers in the range 0-255.")}if(U||i.isBuffer(e)&&e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))return i.from(e);throw TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}},56683:function(e,t,n){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var i=n(67133),s=i.Buffer;function copyProps(e,t){for(var n in e)t[n]=e[n]}function SafeBuffer(e,t,n){return s(e,t,n)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?e.exports=i:(copyProps(i,t),t.Buffer=SafeBuffer),SafeBuffer.prototype=Object.create(s.prototype),copyProps(s,SafeBuffer),SafeBuffer.from=function(e,t,n){if("number"==typeof e)throw TypeError("Argument must not be a number");return s(e,t,n)},SafeBuffer.alloc=function(e,t,n){if("number"!=typeof e)throw TypeError("Argument must be a number");var i=s(e);return void 0!==t?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},SafeBuffer.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return s(e)},SafeBuffer.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i.SlowBuffer(e)}},78911:function(e,t,n){"use strict";var i=n(35281),s=n(18971)("TypedArray.prototype.buffer",!0),o=n(59354);e.exports=s||function(e){if(!o(e))throw new i("Not a Typed Array");return e.buffer}},79026:function(e,t,n){function deprecate(e,t){if(config("noDeprecation"))return e;var n=!1;
6return function(){if(!n){if(config("throwDeprecation"))throw Error(t);config("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}function config(e){try{if(!n.g.localStorage)return!1}catch(e){return!1}var t=n.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=deprecate},78266:function(e,t,n){"use strict";var i=n(11549),s=n(32432),o=n(65775),a=n(18971),u=n(67526),c=n(54224),v=a("Object.prototype.toString"),R=n(86273)(),U="undefined"==typeof globalThis?n.g:globalThis,W=s(),Z=a("String.prototype.slice"),X=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return -1},Y={__proto__:null};R&&u&&c?i(W,function(e){var t=new U[e];if(Symbol.toStringTag in t&&c){var n=c(t),i=u(n,Symbol.toStringTag);!i&&n&&(i=u(c(n),Symbol.toStringTag)),Y["$"+e]=o(i.get)}}):i(W,function(e){var t=new U[e],n=t.slice||t.set;n&&(Y["$"+e]=o(n))});var tryTypedArrays=function(e){var t=!1;return i(Y,function(n,i){if(!t)try{"$"+n(e)===i&&(t=Z(i,1))}catch(e){}}),t},trySlices=function(e){var t=!1;return i(Y,function(n,i){if(!t)try{n(e),t=Z(i,1)}catch(e){}}),t};e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!R){var t=Z(v(e),8,-1);return X(W,t)>-1?t:"Object"===t&&trySlices(e)}return u?tryTypedArrays(e):null}},49820:function(e){e.exports=extend;var t=Object.prototype.hasOwnProperty;function extend(){for(var e={},n=0;n<arguments.length;n++){var i=arguments[n];for(var s in i)t.call(i,s)&&(e[s]=i[s])}return e}},32432:function(e,t,n){"use strict";var i=n(90854),s="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<i.length;t++)"function"==typeof s[i[t]]&&(e[e.length]=i[t]);return e}},13142:function(e,t,n){"use strict";n.r(t),n.d(t,{Struct:function(){return Struct},StructError:function(){return StructError},any:function(){return any},array:function(){return array},assert:function(){return assert},assign:function(){return assign},bigint:function(){return bigint},boolean:function(){return boolean},coerce:function(){return coerce},create:function(){return create},date:function(){return date},defaulted:function(){return defaulted},define:function(){return define},deprecated:function(){return deprecated},dynamic:function(){return dynamic},empty:function(){return empty},enums:function(){return enums},func:function(){return func},instance:function(){return instance},integer:function(){return integer},intersection:function(){return intersection},is:function(){return is},lazy:function(){return lazy},literal:function(){return literal},map:function(){return map},mask:function(){return mask},max:function(){return max},min:function(){return min},never:function(){return never},nonempty:function(){return nonempty},nullable:function(){return nullable},number:function(){return number},object:function(){return object},omit:function(){return omit},optional:function(){return optional},partial:function(){return partial},pattern:function(){return pattern},pick:function(){return pick},record:function(){return record},refine:function(){return refine},regexp:function(){return regexp},set:function(){return set},size:function(){return size},string:function(){return string},struct:function(){return struct},trimmed:function(){return trimmed},tuple:function(){return tuple},type:function(){return type},union:function(){return union},unknown:function(){return unknown},validate:function(){return validate}});let StructError=class StructError extends TypeError{constructor(e,t){let n;let{message:i,explanation:s,...o}=e,{path:a}=e,u=0===a.length?i:`At path: ${a.join(".")} -- ${i}`;super(s??u),null!=s&&(this.cause=u),Object.assign(this,o),this.name=this.constructor.name,this.failures=()=>n??(n=[e,...t()])}};function isIterable(e){return isObject(e)&&"function"==typeof e[Symbol.iterator]}function isObject(e){return"object"==typeof e&&null!=e}function isPlainObject(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function print(e){return"symbol"==typeof e?e.toString():"string"==typeof e?JSON.stringify(e):`${e}`}function shiftIterator(e){let{done:t,value:n}=e.next();return t?void 0:n}function toFailure(e,t,n,i){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});let{path:s,branch:o}=t,{type:a}=n,{refinement:u,message:c=`Expected a value of type \`${a}\`${u?` with refinement \`${u}\``:""}, but received: \`${print(i)}\``}=e;return{value:i,type:a,refinement:u,key:s[s.length-1],path:s,branch:o,...e,message:c}}function*toFailures(e,t,n,i){for(let s of(isIterable(e)||(e=[e]),e)){let e=toFailure(s,t,n,i);e&&(yield e)}}function*run(e,t,n={}){let{path:i=[],branch:s=[e],coerce:o=!1,mask:a=!1}=n,u={path:i,branch:s};if(o&&(e=t.coercer(e,u),a&&"type"!==t.type&&isObject(t.schema)&&isObject(e)&&!Array.isArray(e)))for(let n in e)void 0===t.schema[n]&&delete e[n];let c="valid";for(let i of t.validator(e,u))i.explanation=n.message,c="not_val
6id",yield[i,void 0];for(let[v,R,U]of t.entries(e,u)){let t=run(R,U,{path:void 0===v?i:[...i,v],branch:void 0===v?s:[...s,R],coerce:o,mask:a,message:n.message});for(let n of t)n[0]?(c=null!=n[0].refinement?"not_refined":"not_valid",yield[n[0],void 0]):o&&(R=n[1],void 0===v?e=R:e instanceof Map?e.set(v,R):e instanceof Set?e.add(R):isObject(e)&&(void 0!==R||v in e)&&(e[v]=R))}if("not_valid"!==c)for(let i of t.refiner(e,u))i.explanation=n.message,c="not_refined",yield[i,void 0];"valid"===c&&(yield[void 0,e])}let Struct=class Struct{constructor(e){let{type:t,schema:n,validator:i,refiner:s,coercer:o=e=>e,entries:a=function*(){}}=e;this.type=t,this.schema=n,this.entries=a,this.coercer=o,i?this.validator=(e,t)=>{let n=i(e,t);return toFailures(n,t,this,e)}:this.validator=()=>[],s?this.refiner=(e,t)=>{let n=s(e,t);return toFailures(n,t,this,e)}:this.refiner=()=>[]}assert(e,t){return assert(e,this,t)}create(e,t){return create(e,this,t)}is(e){return is(e,this)}mask(e,t){return mask(e,this,t)}validate(e,t={}){return validate(e,this,t)}};function assert(e,t,n){let i=validate(e,t,{message:n});if(i[0])throw i[0]}function create(e,t,n){let i=validate(e,t,{coerce:!0,message:n});if(!i[0])return i[1];throw i[0]}function mask(e,t,n){let i=validate(e,t,{coerce:!0,mask:!0,message:n});if(!i[0])return i[1];throw i[0]}function is(e,t){let n=validate(e,t);return!n[0]}function validate(e,t,n={}){let i=run(e,t,n),s=shiftIterator(i);if(s[0]){let e=new StructError(s[0],function*(){for(let e of i)e[0]&&(yield e[0])});return[e,void 0]}{let e=s[1];return[void 0,e]}}function assign(...e){let t="type"===e[0].type,n=e.map(e=>e.schema),i=Object.assign({},...n);return t?type(i):object(i)}function define(e,t){return new Struct({type:e,schema:null,validator:t})}function deprecated(e,t){return new Struct({...e,refiner:(t,n)=>void 0===t||e.refiner(t,n),validator:(n,i)=>void 0===n||(t(n,i),e.validator(n,i))})}function dynamic(e){return new Struct({type:"dynamic",schema:null,*entries(t,n){let i=e(t,n);yield*i.entries(t,n)},validator(t,n){let i=e(t,n);return i.validator(t,n)},coercer(t,n){let i=e(t,n);return i.coercer(t,n)},refiner(t,n){let i=e(t,n);return i.refiner(t,n)}})}function lazy(e){let t;return new Struct({type:"lazy",schema:null,*entries(n,i){t??(t=e()),yield*t.entries(n,i)},validator:(n,i)=>(t??(t=e()),t.validator(n,i)),coercer:(n,i)=>(t??(t=e()),t.coercer(n,i)),refiner:(n,i)=>(t??(t=e()),t.refiner(n,i))})}function omit(e,t){let{schema:n}=e,i={...n};for(let e of t)delete i[e];return"type"===e.type?type(i):object(i)}function partial(e){let t=e instanceof Struct,n=t?{...e.schema}:{...e};for(let e in n)n[e]=optional(n[e]);return t&&"type"===e.type?type(n):object(n)}function pick(e,t){let{schema:n}=e,i={};for(let e of t)i[e]=n[e];return"type"===e.type?type(i):object(i)}function struct(e,t){return console.warn("[email protected] - The `struct` helper has been renamed to `define`."),define(e,t)}function any(){return define("any",()=>!0)}function array(e){return new Struct({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(let[n,i]of t.entries())yield[n,i,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||`Expected an array value, but received: ${print(e)}`})}function bigint(){return define("bigint",e=>"bigint"==typeof e)}function boolean(){return define("boolean",e=>"boolean"==typeof e)}function date(){return define("date",e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \`Date\` object, but received: ${print(e)}`)}function enums(e){let t={},n=e.map(e=>print(e)).join();for(let n of e)t[n]=n;return new Struct({type:"enums",schema:t,validator:t=>e.includes(t)||`Expected one of \`${n}\`, but received: ${print(t)}`})}function func(){return define("func",e=>"function"==typeof e||`Expected a function, but received: ${print(e)}`)}function instance(e){return define("instance",t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${print(t)}`)}function integer(){return define("integer",e=>"number"==typeof e&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${print(e)}`)}function intersection(e){return new Struct({type:"intersection",schema:null,*entries(t,n){for(let i of e)yield*i.entries(t,n)},*validator(t,n){for(let i of e)yield*i.validator(t,n)},*refiner(t,n){for(let i of e)yield*i.refiner(t,n)}})}function literal(e){let t=print(e),n=typeof e;return new Struct({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?e:null,validator:n=>n===e||`Expected the literal \`${t}\`, but received: ${print(n)}`})}function map(e,t){return new Struct({type:"map",schema:null,*entries(n){if(e&&t&&n instanceof Map)for(let[i,s]of n.entries())yield[i,i,e],yield[i,s,t]},coercer:e=>e instanceof Map?new Map(e):e,validator:e=>e instanceof Map||`Expected a \`Map\` object, but received: ${print(e)}`})}function never(){return define("never",()=>!1)}function nullable(e){return new Struct({...e,validator:(t,n)=>null===t||e.validator(t,n),refiner:(t,n)=>null===t||e.refiner(t,n)})}function number(){return define("number",e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${print(e)}`)}function object(e){let t=e?Object.keys(e):[],n=never();return new Struct({type:"object",schema:e||null,*entries(i){if(e&&isObject(i)){let s=new Set(Object.keys(i));for(let n of t)s.delete(n),yield[n,i[n],e[n]];for(let e of s)yield[e,i[e],n]}},validator:e=>isObject(e)||`Expected an object, but received: ${print(e)}`,coercer:e=>isObject(e)?{...e}:e})}function optional(e){return new Struct({...e,validator:(t,n)=>void 0===t||e.validator(t,n),refiner:(t,n)=>void 0===t||e.refiner(t,n)})}function record(e,t){return new Struct({type:"record",schema:null,*entries(n){if(isObject(n))for(let i in n){let s=n[i];yield[i,i,e],yield[i,s,t]}},validator:e=>isObject(e)||`Expected an object, but received: ${print(e)}`})}function regexp(){return define("regexp",e=>e instanceof RegExp)}function set(e){return new Struct({type:"set",schema:null,*entries(t){if(e&&t instanceof Set)for(let n of t)yield[n,n,e]},coercer:e=>e instanceof Set?new Set(e):e,validator:e=>e instanceof Set||`Expected a \`Set\` object, but received: ${print(e)}`})}function string(){return define("string",e=>"string"==typeof e||`Expected a string, but received: ${print(e)}`)}function tuple(e){let t=never();return new Struct({type:"tuple",schema:null,*entries(n){if(Array.isArray(n)){let i=Math.max(e.length,n.length);for(let s=0;s<i;s++)yield[s,n[s],e[s]||t]}},validator:e=>Array.isArray(e)||`Expected an array, but received: ${print(e)}`})}function type(e){let t=Object.keys(e);return new Struct({type:"type",schema:e,*entries(n){if(isObject(n))for(let i of t)yield[i,n[i],e[i]]},validator:e=>isObject(e)||`Expected an object, but received: ${print(e)}`,coercer:e=>isObject(e)?{...e}:e})}function union(e){let t=e.map(e=>e.type).join(" | ");return new Struct({type:"union",schema:null,coercer(t){for(let n of e){let[e,i]=n.validate(t,{coerce:!0});if(!e)return i}return t},validator(n,i){let s=[];for(let t of e){let[...e]=run(n,t,i),[o]=e;if(!o[0])return[];for(let[t]of e)t&&s.push(t)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${print(n)}`,...s]}})}function unknown(){return define("unknown",()=>!0)}function coerce(e,t,n){return new Struct({...e,coercer:(i,s)=>is(i,t)?e.coercer(n(i,s),s):e.coercer(i,s)})}function defaulted(e,t,n={}){return coerce(e,unknown(),e=>{let i="function"==typeof t?t():t;if(void 0===e)return i;if(!n.strict&&isPlainObject(e)&&isPlainObject(i)){let t={...e},n=!1;for(let e in i)void 0===t[e]&&(t[e]=i[e],n=!0);if(n)return t}return e})}function trimmed(e){return coerce(e,string(),e=>e.trim())}function empty(e){return refine(e,"empty",t=>{let n=getSize(t);return 0===n||`Expected an empty ${e.type} but received one with a size of \`${n}\``})}function getSize(e){return e instanceof Map||e instanceof Set?e.size:e.length}function max(e,t,n={}){let{exclusive:i}=n;return refine(e,"max",n=>i?n<t:n<=t||`Expected a ${e.type} less than ${i?"":"or equal to "}${t} but received \`${n}\``)}function min(e,t,n={}){let{exclusive:i}=n;return refine(e,"min",n=>i?n>t:n>=t||`Expected a ${e.type} greater than ${i?"":"or equal to "}${t} but received \`${n}\``)}function nonempty(e){return refine(e,"nonempty",t=>{let n=getSize(t);return n>0||`Expected a nonempty ${e.type} but received an empty one`})}function pattern(e,t){return refine(e,"pattern",n=>t.test(n)||`Expected a ${e.type} matching \`/${t.source}/\` but received "${n}"`)}function size(e,t,n=t){let i=`Expected a ${e.type}`,s=t===n?`of \`${t}\``:`between \`${t}\` and \`${n}\``;return refine(e,"size",e=>
6{if("number"==typeof e||e instanceof Date)return t<=e&&e<=n||`${i} ${s} but received \`${e}\``;if(e instanceof Map||e instanceof Set){let{size:o}=e;return t<=o&&o<=n||`${i} with a size ${s} but received one with a size of \`${o}\``}{let{length:o}=e;return t<=o&&o<=n||`${i} with a length ${s} but received one with a length of \`${o}\``}})}function refine(e,t,n){return new Struct({...e,*refiner(i,s){yield*e.refiner(i,s);let o=n(i,s),a=toFailures(o,s,e,i);for(let e of a)yield{...e,refinement:t}}})}},50044:function(e,t,n){"use strict";n.r(t),n.d(t,{__addDisposableResource:function(){return __addDisposableResource},__assign:function(){return __assign},__asyncDelegator:function(){return __asyncDelegator},__asyncGenerator:function(){return __asyncGenerator},__asyncValues:function(){return __asyncValues},__await:function(){return __await},__awaiter:function(){return __awaiter},__classPrivateFieldGet:function(){return __classPrivateFieldGet},__classPrivateFieldIn:function(){return __classPrivateFieldIn},__classPrivateFieldSet:function(){return __classPrivateFieldSet},__createBinding:function(){return i},__decorate:function(){return __decorate},__disposeResources:function(){return __disposeResources},__esDecorate:function(){return __esDecorate},__exportStar:function(){return __exportStar},__extends:function(){return __extends},__generator:function(){return __generator},__importDefault:function(){return __importDefault},__importStar:function(){return __importStar}
6,__makeTemplateObject:function(){return __makeTemplateObject},__metadata:function(){return __metadata},__param:function(){return __param},__propKey:function(){return __propKey},__read:function(){return __read},__rest:function(){return __rest},__rewriteRelativeImportExtension:function(){return __rewriteRelativeImportExtension},__runInitializers:function(){return __runInitializers},__setFunctionName:function(){return __setFunctionName},__spread:function(){return __spread},__spreadArray:function(){return __spreadArray},__spreadArrays:function(){return __spreadArrays},__values:function(){return __values}});var extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function __extends(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var __assign=function(){return(__assign=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)};function __rest(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)0>t.indexOf(i[s])&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(n[i[s]]=e[i[s]]);return n}function __decorate(e,t,n,i){var s,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var u=e.length-1;u>=0;u--)(s=e[u])&&(a=(o<3?s(a):o>3?s(t,n,a):s(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function __param(e,t){return function(n,i){t(n,i,e)}}function __esDecorate(e,t,n,i,s,o){function accept(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var a,u=i.kind,c="getter"===u?"get":"setter"===u?"set":"value",v=!t&&e?i.static?e:e.prototype:null,R=t||(v?Object.getOwnPropertyDescriptor(v,i.name):{}),U=!1,W=n.length-1;W>=0;W--){var Z={};for(var X in i)Z[X]="access"===X?{}:i[X];for(var X in i.access)Z.access[X]=i.access[X];Z.addInitializer=function(e){if(U)throw TypeError("Cannot add initializers after decoration has completed");o.push(accept(e||null))};var Y=(0,n[W])("accessor"===u?{get:R.get,set:R.set}:R[c],Z);if("accessor"===u){if(void 0===Y)continue;if(null===Y||"object"!=typeof Y)throw TypeError("Object expected");(a=accept(Y.get))&&(R.get=a),(a=accept(Y.set))&&(R.set=a),(a=accept(Y.init))&&s.unshift(a)}else(a=accept(Y))&&("field"===u?s.unshift(a):R[c]=a)}v&&Object.defineProperty(v,i.name,R),U=!0}function __runInitializers(e,t,n){for(var i=arguments.length>2,s=0;s<t.length;s++)n=i?t[s].call(e,n):t[s].call(e);return i?n:void 0}function __propKey(e){return"symbol"==typeof e?e:"".concat(e)}function __setFunctionName(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function __metadata(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function __awaiter(e,t,n,i){function adopt(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,s){function fulfilled(e){try{step(i.next(e))}catch(e){s(e)}}function rejected(e){try{step(i.throw(e))}catch(e){s(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((i=i.apply(e,t||[])).next())})}function __generator(e,t){var n,i,s,o={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=verb(0),a.throw=verb(1),a.return=verb(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function verb(e){return function(t){return step([e,t])}}function step(u){if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(o=0)),o;)try{if(n=1,i&&(s=2&u[0]?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[2&u[0],s.value]),u[0]){case 0:case 1:s=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,i=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(s=(s=o.trys).length>0&&s[s.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!s||u[1]>s[0]&&u[1]<s[3])){o.label=u[1];break}if(6===u[0]&&o.label<s[1]){o.label=s[1],s=u;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(u);break}s[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],i=0}finally{n=s=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var i=Object.create?function(e,t,n,i){void 0===i&&(i=n);var s=Object.getOwnPropertyDescriptor(t,n);
6(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,s)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]};function __exportStar(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)}function __values(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,s,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){s={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(s)throw s.error}}return a}function __spread(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(__read(arguments[t]));return e}function __spreadArrays(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var i=Array(e),s=0,t=0;t<n;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,s++)i[s]=o[a];return i}function __spreadArray(e,t,n){if(n||2==arguments.length)for(var i,s=0,o=t.length;s<o;s++)!i&&s in t||(i||(i=Array.prototype.slice.call(t,0,s)),i[s]=t[s]);return e.concat(i||Array.prototype.slice.call(t))}function __await(e){return this instanceof __await?(this.v=e,this):new __await(e)}function __asyncGenerator(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var i,s=n.apply(e,t||[]),o=[];return i=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),verb("next"),verb("throw"),verb("return",awaitReturn),i[Symbol.asyncIterator]=function(){return this},i;function awaitReturn(e){return function(t){return Promise.resolve(t).then(e,reject)}}function verb(e,t){s[e]&&(i[e]=function(t){return new Promise(function(n,i){o.push([e,t,n,i])>1||resume(e,t)})},t&&(i[e]=t(i[e])))}function resume(e,t){try{step(s[e](t))}catch(e){settle(o[0][3],e)}}function step(e){e.value instanceof __await?Promise.resolve(e.value.v).then(fulfill,reject):settle(o[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){e(t),o.shift(),o.length&&resume(o[0][0],o[0][1])}}function __asyncDelegator(e){var t,n;return t={},verb("next"),verb("throw",function(e){throw e}),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(i,s){t[i]=e[i]?function(t){return(n=!n)?{value:__await(e[i](t)),done:!1}:s?s(t):t}:s}}function __asyncValues(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=__values(e),t={},verb("next"),verb("throw"),verb("return"),t[Symbol.asyncIterator]=function(){return this},t);function verb(n){t[n]=e[n]&&function(t){return new Promise(function(i,s){settle(i,s,(t=e[n](t)).done,t.value)})}}function settle(e,t,n,i){Promise.resolve(i).then(function(t){e({value:t,done:n})},t)}}
6function __makeTemplateObject(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var s=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},ownKeys=function(e){return(ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)};function __importStar(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=ownKeys(e),o=0;o<n.length;o++)"default"!==n[o]&&i(t,e,n[o]);return s(t,e),t}function __importDefault(e){return e&&e.__esModule?e:{default:e}}function __classPrivateFieldGet(e,t,n,i){if("a"===n&&!i)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)}function __classPrivateFieldSet(e,t,n,i,s){if("m"===i)throw TypeError("Private method is not writable");if("a"===i&&!s)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?s.call(e,n):s?s.value=n:t.set(e,n),n}function __classPrivateFieldIn(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function __addDisposableResource(e,t,n){if(null!=t){var i,s;if("object"!=typeof t&&"function"!=typeof t)throw TypeError("Object expected.");if(n){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");i=t[Symbol.asyncDispose]}if(void 0===i){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");i=t[Symbol.dispose],n&&(s=i)}if("function"!=typeof i)throw TypeError("Object not disposable.");s&&(i=function(){try{s.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:i,async:n})}else n&&e.stack.push({async:!0});return t}var o="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var i=Error(n);return i.name="SuppressedError",i.error=e,i.suppressed=t,i};function __disposeResources(e){function fail(t){e.error=e.hasError?new o(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var t,n=0;function next(){for(;t=e.stack.pop();)try{if(!t.async&&1===n)return n=0,e.stack.push(t),Promise.resolve().then(next);if(t.dispose){var i=t.dispose.call(t.value);if(t.async)return n|=2,Promise.resolve(i).then(next,function(e){return fail(e),next()})}else n|=1}catch(e){fail(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return next()}function __rewriteRelativeImportExtension(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,n,i,s,o){return n?t?".jsx":".js":!i||s&&o?i+s+"."+o.toLowerCase()+"js":e}):e}t.default={__extends,__assign,__rest,__decorate,__param,__esDecorate,__runInitializers,__propKey,__setFunctionName,__metadata,__awaiter,__generator,__createBinding:i,__exportStar,__values,__read,__spread,__spreadArrays,__spreadArray,__await,__asyncGenerator,__asyncDelegator,__asyncValues,__makeTemplateOb
6ject,__importStar,__importDefault,__classPrivateFieldGet,__classPrivateFieldSet,__classPrivateFieldIn,__addDisposableResource,__disposeResources,__rewriteRelativeImportExtension}}}]);

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.