PageSourceSearch

https://andex.vercel.app/_next/static/chunks/4299.208e91336fe2b6c5.js

js andex.vercel.app collected 2026-10-03 05:48:58 UTC 481,752 bytes, 20 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4299],{10436:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseWalletSDK=void 0;let i=n(97305),o=n(50543),a=n(5697),u=n(28846),c=n(39165),l=n(89401),R=n(15190),j=n(19088),W=n(71499);let CoinbaseWalletSDK=class CoinbaseWalletSDK{constructor(e){var t,n,i;let u;this._appName="",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;let j=e.linkAPIUrl||o.LINK_API_URL;if(u=e.uiConstructor?e.uiConstructor:e=>new c.WalletSDKUI(e),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,e.diagnosticLogger&&e.eventListener)throw Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this._diagnosticLogger={log:e.eventListener.onEvent}:this._diagnosticLogger=e.diagnosticLogger,this._reloadOnDisconnect=null===(i=e.reloadOnDisconnect)||void 0===i||i;let H=new URL(j),U=`${H.protocol}//${H.host}`;if(this._storage=new a.ScopedLocalStorage(`-walletlink:${U}`),this._storage.setItem("version",CoinbaseWalletSDK.VERSION),this.walletExtension||this.coinbaseBrowser||(this._relayEventManager=new R.WalletSDKRelayEventManager,this._relay=new l.WalletSDKRelay({linkAPIUrl:j,version:W.LIB_VERSION,darkMode:!!e.darkMode,uiConstructor:u,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect}),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 o=this._relay;if(!o||!this._relayEventManager||!this._storage)throw Error("Relay not initialized, should never happen");return e||o.setConnectDisabled(!0),new u.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(o),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,j.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.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=W.LIB_VERSION},97305: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},19197:function(e,t){"use strict";Object.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}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-item.light.selected{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark.selected{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item.selected{border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}"},13131: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.CoinbaseAppSteps=t.CoinbaseWalletSteps=t.ConnectItem=t.ConnectContent=void 0;let o=i(n(14517)),a=n(85737),u=n(65116),c=n(19088),l=n(71499),R=n(28419),j=i(n(43484)),W=i(n(92521)),H=n(70321),U=i(n(4230)),J=i(n(19387)),Q=n(11455),G=n(50516),Z=n(35081),Y=i(n(19197)),K={"coinbase-wallet-app":{title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",icon:W.default,steps:CoinbaseWalletSteps},"coinbase-app":{title:"Coinbase app",description:"Connect with your Coinbase account",icon:j.default,steps:CoinbaseAppSteps}},makeQrCodeImage=e=>"coinbase-app"===e?U.default:J.default,makeIconColor=e=>"light"===e?"#FFFFFF":"#0A0B0D";function ConnectItem({title:e,description:t,icon:n,selected:i,theme:u,onClick:c}){return(0,a.h)("div",{onClick:c,class:(0,o.default)("-cbwsdk-connect-item",u,{selected:i})},(0,a.h)("div",null,(0,a.h)("img",{src:n,alt:e})),(0,a.h)("div",{class:"-cbwsdk-connect-item-copy-wrapper"},(0,a.h)("h3",{class:"-cbwsdk-connect-item-title"},e),(0,a.h)("p",{class:"-cbwsdk-connect-item-description"},t)))}function CoinbaseWalletSteps({theme:e}){return(0,a.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,a.h)("li",{class:(0,o.default)("-cbwsdk-wallet-steps-item",e)},(0,a.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,a.h)("li",{class:(0,o.default)("-cbwsdk-wallet-steps-item",e)},(0,a.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,a.h)("span",null,"Tap ",(0,a.h)("strong",null,"Scan")," "),(0,a.h)("span",{class:(0,o.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",e)},(0,a.h)(H.QRCodeIcon,{fill:makeIconColor(e)})))))}function CoinbaseAppSteps({theme:e}){return(0,a.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,a.h)("li",{class:(0,o.default)("-cbwsdk-wallet-steps-item",e)},(0,a.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase app")),(0,a.h)("li",{class:(0,o.default)("-cbwsdk-wallet-steps-item",e)},(0,a.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,a.h)("span",null,"Tap ",(0,a.h)("strong",null,"More")),(0,a.h)("span",{class:(0,o.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",e)},(0,a.h)(Q.StatusDotIcon,{fill:makeIconColor(e)})),(0,a.h)("span",{class:"-cbwsdk-wallet-steps-pad-left"},"then ",(0,a.h)("strong",null,"Scan")),(0,a.h)("span",{class:(0,o.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",e)},(0,a.h)(H.QRCodeIcon,{fill:makeIconColor(e)})))))}t.ConnectContent=function(e){let{theme:t}=e,[n,i]=(0,u.useState)("coinbase-wallet-app"),j=(0,u.useCallback)(e=>{i(e)},[]),W=(0,c.createQrUrl)(e.sessionId,e.sessionSecret,e.linkAPIUrl,e.isParentConnection,e.version,e.chainId),H=K[n];if(!n)return null;let U=H.steps,J="coinbase-app"===n;return(0,a.h)("div",{"data-testid":"connect-content",class:(0,o.default)("-cbwsdk-connect-content",t)},(0,a.h)("style",null,Y.default),(0,a.h)("div",{class:"-cbwsdk-connect-content-header"},(0,a.h)("h2",{class:(0,o.default)("-cbwsdk-connect-content-heading",t)},"Scan to connect with one of our mobile apps"),e.onCancel&&(0,a.h)("button",{type:"button",class:"-cbwsdk-cancel-button",onClick:e.onCancel},(0,a.h)(R.CloseIcon,{fill:"light"===t?"#0A0B0D":"#FFFFFF"}))),(0,a.h)("div",{class:"-cbwsdk-connect-content-layout"},(0,a.h)("div",{class:"-cbwsdk-connect-content-column-left"},(0,a.h)("div",null,Object.entries(K).map(([e,i])=>(0,a.h)(ConnectItem,{key:e,title:i.title,description:i.description,icon:i.icon,selected:n===e,onClick:()=>j(e),theme:t}))),J&&(0,a.h)("div",{class:(0,o.default)("-cbwsdk-connect-content-update-app",t)},"Don’t see a ",(0,a.h)("strong",null,"Scan")," option? Update your Coinbase app to the latest version and try again.")),(0,a.h)("div",{class:"-cbwsdk-connect-content-column-right"},(0,a.h)("div",{class:"-cbwsdk-connect-content-qr-wrapper"},(0,a.h)(G.QRCode,{content:W,width:200,height:200,fgColor:"#000",bgColor:"transparent",image:{svg:makeQrCodeImage(n),width:25,height:25}}),(0,a.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:l.LIB_VERSION}),(0,a.h)("input",{type:"hidden",value:W})),(0,a.h)(U,{theme:t}),!e.isConnected&&(0,a.h)("div",{"data-testid":"connecting-spinner",class:(0,o.default)("-cbwsdk-connect-content-qr-connecting",t)},(0,a.h)(Z.Spinner,{size:36,color:"dark"===t?"#FFF":"#000"}),(0,a.h)("p",null,"Connecting...")))))},t.ConnectItem=ConnectItem,t.CoinbaseWalletSteps=CoinbaseWalletSteps,t.CoinbaseAppSteps=CoinbaseAppSteps},57112:function(e,t){"use strict";
1Object.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}.-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}"},56929: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 o=i(n(14517)),a=n(85737),u=n(65116),c=n(13131),l=n(61163),R=i(n(57112));t.ConnectDialog=e=>{let{isOpen:t,darkMode:n}=e,[i,j]=(0,u.useState)(!t),[W,H]=(0,u.useState)(!t);(0,u.useEffect)(()=>{let e=[window.setTimeout(()=>{H(!t)},10)];return t?j(!1):e.push(window.setTimeout(()=>{j(!0)},360)),()=>{e.forEach(window.clearTimeout)}},[e.isOpen]);let U=n?"dark":"light";return(0,a.h)("div",{class:(0,o.default)("-cbwsdk-connect-dialog-container",i&&"-cbwsdk-connect-dialog-container-hidden")},(0,a.h)("style",null,R.default),(0,a.h)("div",{class:(0,o.default)("-cbwsdk-connect-dialog-backdrop",U,W&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,a.h)("div",{class:"-cbwsdk-connect-dialog"},(0,a.h)("div",{class:(0,o.default)("-cbwsdk-connect-dialog-box",W&&"-cbwsdk-connect-dialog-box-hidden")},e.connectDisabled?null:(0,a.h)(c.ConnectContent,{theme:U,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,a.h)(l.TryExtensionContent,{theme:U}))))}},17580:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkFlow=void 0;let i=n(85737),o=n(68354),a=n(56929);t.LinkFlow=class{constructor(e){this.extensionUI$=new o.BehaviorSubject({}),this.subscriptions=new o.Subscription,this.isConnected=!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,this.connected$=e.connected$,this.chainId$=e.chainId$}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",e.appendChild(this.root),this.render(),this.subscriptions.add(this.connected$.subscribe(e=>{this.isConnected!==e&&(this.isConnected=e,this.render())})),this.subscriptions.add(this.chainId$.subscribe(e=>{this.chainId!==e&&(this.chainId=e,this.render())}))}detach(){var e;this.root&&(this.subscriptions.unsubscribe(),(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(){if(!this.root)return;let e=this.extensionUI$.subscribe(()=>{this.root&&(0,i.render)((0,i.h)(a.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.isConnected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)});this.subscriptions.add(e)}}},50516:function(e,t,n){"use strict";var i=n(15313).Buffer,o=this&&this.__importDefault||function(e){return e&&e.__esMo
1dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.QRCode=void 0;let a=n(85737),u=n(65116),c=o(n(50887));t.QRCode=e=>{let[t,n]=(0,u.useState)("");return(0,u.useEffect)(()=>{var t,o;let a=new c.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!==(o=e.height)&&void 0!==o?o:256,padding:0,image:e.image}),u=i.from(a.svg(),"utf8").toString("base64");n(`data:image/svg+xml;base64,${u}`)}),t?(0,a.h)("img",{src:t,alt:"QR Code"}):null}},12766: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}.-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}"},24446: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 o=i(n(14517)),a=n(85737),u=n(65116),c=i(n(12766));t.Snackbar=class{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,a.render)((0,a.h)("div",null,(0,a.h)(t.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([e,n])=>(0,a.h)(t.SnackbarInstance,Object.assign({},n,{key:e}))))),this.root)}},t.SnackbarContainer=e=>(0,a.h)("div",{class:(0,o.default)("-cbwsdk-snackbar-container")},(0,a.h)("style",null,c.default),(0,a.h)("div",{class:"-cbwsdk-snackbar"},e.children)),t.SnackbarInstance=({autoExpand:e,message:t,menuItems:n,appSrc:i})=>{let[c,l]=(0,u.useState)(!0),[R,j]=(0,u.useState)(null!=e&&e);return(0,u.useEffect)(()=>{let e=[window.setTimeout(()=>{l(!1)},1),window.setTimeout(()=>{j(!0)},1e4)];return()=>{e.forEach(window.clearTimeout)}}),(0,a.h)("div",{class:(0,o.default)("-cbwsdk-snackbar-instance",c&&"-cbwsdk-snackbar-instance-hidden",R&&"-cbwsdk-snackbar-instance-expanded")},(0,a.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:()=>{j(!R)}},(0,a.h)("img",{src:"coinbase-app"===i?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjY3NCAxOC44NThjLTIuMDQ1IDAtMy42NDgtMS43MjItMy42NDgtMy44NDVzMS42NTktMy44NDUgMy42NDgtMy44NDVjMS44MjQgMCAzLjMxNyAxLjM3NyAzLjU5MyAzLjIxNGgzLjcwM2MtLjMzMS0zLjk2LTMuNDgyLTcuMDU5LTcuMjk2LTcuMDU5LTQuMDM0IDAtNy4zNSAzLjQ0My03LjM1IDcuNjkgMCA0LjI0NiAzLjI2IDcuNjkgNy4zNSA3LjY5IDMuODcgMCA2Ljk2NS0zLjEgNy4yOTYtNy4wNTloLTMuNzAzYy0uMjc2IDEuODM2LTEuNzY5IDMuMjE0LTMuNTkzIDMuMjE0WiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0wIDEwLjY3OGMwLTMuNzExIDAtNS41OTYuNzQyLTcuMDIzQTYuNTMyIDYuNTMyIDAgMCAxIDMuNjU1Ljc0MkM1LjA4MiAwIDYuOTY3IDAgMTAuNjc4IDBoNy45MzhjMy43MTEgMCA1LjU5NiAwIDcuMDIzLjc0MmE2LjUzMSA2LjUzMSAwIDAgMSAyLjkxMyAyLjkxM2MuNzQyIDEuNDI3Ljc0MiAzLjMxMi43NDIgNy4wMjN2Ny45MzhjMCAzLjcxMSAwIDUuNTk2LS43NDIgNy4wMjNhNi41MzEgNi41MzEgMCAwIDEtMi45MTMgMi45MTNjLTEuNDI3Ljc0Mi0zLjMxMi43NDItNy4wMjMuNzQyaC03LjkzOGMtMy43MTEgMC01LjU5NiAwLTcuMDIzLS43NDJhNi41MzEgNi41MzEgMCAwIDEtMi45MTMtMi45MTNDMCAyNC4yMTIgMCAyMi4zODQgMCAxOC42MTZ2LTcuOTM4WiIgZmlsbD0iIzAwNTJGRiIvPjxwYXRoIGQ9Ik0xNC42ODQgMTkuNzczYy0yLjcyNyA
1wLTQuODY0LTIuMjk1LTQuODY0LTUuMTI2IDAtMi44MzEgMi4yMS01LjEyNyA0Ljg2NC01LjEyNyAyLjQzMiAwIDQuNDIyIDEuODM3IDQuNzkgNC4yODVoNC45MzhjLS40NDItNS4yOC00LjY0My05LjQxMS05LjcyOC05LjQxMS01LjM4IDAtOS44MDIgNC41OS05LjgwMiAxMC4yNTMgMCA1LjY2MiA0LjM0OCAxMC4yNTMgOS44MDIgMTAuMjUzIDUuMTU5IDAgOS4yODYtNC4xMzIgOS43MjgtOS40MTFoLTQuOTM4Yy0uMzY4IDIuNDQ4LTIuMzU4IDQuMjg0LTQuNzkgNC4yODRaIiBmaWxsPSIjZmZmIi8+PC9zdmc+":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+",class:"-cbwsdk-snackbar-instance-header-cblogo"}),(0,a.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},t),(0,a.h)("div",{class:"-gear-container"},!R&&(0,a.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,a.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=",class:"-gear-icon",title:"Expand"}))),n&&n.length>0&&(0,a.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},n.map((e,t)=>(0,a.h)("div",{class:(0,o.default)("-cbwsdk-snackbar-instance-menu-item",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:e.onClick,key:t},(0,a.h)("svg",{width:e.svgWidth,height:e.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.h)("path",{"fill-rule":e.defaultFillRule,"clip-rule":e.defaultClipRule,d:e.path,fill:"#AAAAAA"})),(0,a.h)("span",{class:(0,o.default)("-cbwsdk-snackbar-instance-menu-item-info",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},e.info)))))}},12339: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)}}"},35081: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.Spinner=void 0;let o=n(85737),a=i(n(12339));t.Spinner=e=>{var t;let n=null!==(t=e.size)&&void 0!==t?t:64,i=e.color||"#000";return(0,o.h)("div",{class:"-cbwsdk-spinner"},(0,o.h)("style",null,a.default),(0,o.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:n,height:n}},(0,o.h)("circle",{style:{cx:50,cy:50,r:45,stroke:i}})))}},13922: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}"},61163: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.TryExtensionContent=void 0;let o=i(n(14517)),a=n(85737),u=n(65116),c=n(41038),l=n(52267),R=n(84763),j=i(n(13922));t.TryExtensionContent=function({theme:e}){let[t,n]=(0,u.useState)(!1),i=(0,u.useCallback)(()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")},[]),W=(0,u.useCallback)(()=>{t?window.location.reload():(i(),n(!0))},[i,t]);return(0,a.h)("div",{class:(0,o.default)("-cbwsdk-try-extension",e)},(0,a.h)("style",null,j.default),(0,a.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,a.h)("h3",{class:(0,o.default)("-cbwsdk-try-extension-heading",e)},"Or try the Coinbase Wallet browser extension"),(0,a.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,a.h)("button",{class:(0,o.default)("-cbwsdk-try-extension-cta",e),onClick:W},t?"Refresh":"Install"),(0,a.h)("div",null,!t&&(0,a.h)(c.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:"light"===e?"#0052FF":"#588AF5"})))),(0,a.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,a.h)("ul",{class:"-cbwsdk-try-extension-list"},(0,a.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,a.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,a.h)("span",{class:(0,o.default)("-cbwsdk-try-extension-list-item-icon",e)},(0,a.h)(l.LaptopIcon,{fill:"light"===e?"#0A0B0D":"#FFFFFF"}))),(0,a.h)("div",{class:(0,o.default)("-cbwsdk-try-extension-list-item-copy",e)},"Connect with dapps with just one click on your desktop browser")),(0,a.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,a.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,a.h)("span",{class:(0,o.default)("-cbwsdk-try-extension-list-item-icon",e)},(0,a.h)(R.SafeIcon,{fill:"light"===e?"#0A0B0D":"#FFFFFF"}))),(0,a.h)("div",{class:(0,o.default)("-cbwsdk-try-extension-list-item-copy",e)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}},41038:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowLeftIcon=void 0;let i=n(85737);t.ArrowLeftIcon=function(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"}))}},28419:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CloseIcon=void 0;let i=n(85737);t.CloseIcon=function(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"}))}},52267:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LaptopIcon=void 0;let i=n(85737);t.LaptopIcon=function(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"}))}},70321:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QRCodeIcon=void 0;let i=n(85737);t.QRCodeIcon=function(e){return(0,i.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.h)("path",{d:"M8.2271 1.77124L7.0271 1.77124V2.97124H8.2271V1.77124Z"}),(0,i.h)("path",{d:"M5.44922 0.199219L5.44922 4.54922L9.79922 4.54922V0.199219L5.44922 0.199219ZM8.89922 3.64922L6.34922 3.64922L6.34922 1.09922L8.89922 1.09922V3.64922Z"}),(0,i.h)("path",{d:"M2.97124 1.77124L1.77124 1.77124L1.77124 2.97124H2.97124V1.77124Z"}),(0,i.h)("path",{d:"M0.199219 4.54922L4.54922 4.54922L4.54922 0.199219L0.199219 0.199219L0.199219 4.54922ZM1.09922 1.09922L3.64922 1.09922L3.64922 3.64922L1.09922 3.64922L1.09922 1.09922Z"}),(0,i.h)("path",{d:"M2.97124 7.0271H1.77124L1.77124 8.2271H2.97124V7.0271Z"}),(0,i.h)("path",{d:"M0.199219 9.79922H4.54922L4.54922 5.44922L0.199219 5.44922L0.199219 9.79922ZM1.09922 6.34922L3.64922 6.34922L3.64922 8.89922H1.09922L1.09922 6.34922Z"}),(0,i.h)("path",{d:"M8.89922 7.39912H7.99922V5.40112H5.44922L5.44922 9.79912H6.34922L6.34922 6.30112H7.09922V8.29912H9.79922V5.40112H8.89922V7.39912Z"}),(0,i.h)("path",{d:"M7.99912 8.89917H7.09912V9.79917H7.99912V8.89917Z"}),(0,i.h)("path",{d:"M9.79917 8.89917H8.89917V9.79917H9.79917V8.89917Z"}))}},4230:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=`
2    <svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
3        <path d="M50 100C77.6142 100 100 77.6142 100 50C100 22.3858 77.6142 0 50 0C22.3858 0 0 22.3858 0 50C0 77.6142 22.3858 100 50 100Z" fill="white"/>
4        <path d="M50.512 94C74.2907 94 93.5673 74.5244 93.5673 50.5C93.5673 26.4756 74.2907 7 50.512 7C26.7332 7 7.45667 26.4756 7.45667 50.5C7.45667 74.5244 26.7332 94 50.512 94Z" fill="#0052FF"/>
5        <path d="M50.6248 65.4335C42.3697 65.4335 35.8996 58.7469 35.8996 50.5C35.8996 42.2531 42.5928 35.5664 50.6248 35.5664C57.9873 35.5664 64.0111 40.9157 65.1267 48.0481H80.0749C78.7363 32.6688 66.0191 20.6328 50.6248 20.6328C34.3379 20.6328 20.9514 34.0062 20.9514 50.5C20.9514 66.9936 34.1148 80.3671 50.6248 80.3671C66.2422 80.3671 78.7363 68.331 80.0749 52.9516H65.1267C64.0111 60.0841 57.9873 65.4335 50.6248 65.4335Z" fill="white"/>
6    </svg>
7`;t.default=n},19387:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=`
8    <svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
9        <circle cx="50" cy="50" r="50" fill="white"/>
10        <circle cx="49.9996" cy="49.9996" r="43.6363" fill="#1B53E4"/>
11        <circle cx="49.9996" cy="49.9996" r="43.6363" stroke="white"/>
12        <path fill-rule="evenodd" clip-rule="evenodd" d="M19.3379 49.9484C19.3379 66.8508 33.04 80.553 49.9425 80.553C66.8449 80.553 80.5471 66.8508 80.5471 49.9484C80.5471 33.0459 66.8449 19.3438 49.9425 19.3438C33.04 19.3438 19.3379 33.0459 19.3379 49.9484ZM44.0817 40.0799C41.8725 40.0799 40.0817 41.8708 40.0817 44.0799V55.8029C40.0817 58.012 41.8725 59.8029 44.0817 59.8029H55.8046C58.0138 59.8029 59.8046 58.012 59.8046 55.8029V44.0799C59.8046 41.8708 58.0138 40.0799 55.8046 40.0799H44.0817Z" fill="white"/>
13    </svg>
14`},84763:function(e,t,n){"use strict";
14Object.defineProperty(t,"__esModule",{value:!0}),t.SafeIcon=void 0;let i=n(85737);t.SafeIcon=function(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"}))}},11455:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatusDotIcon=void 0;let i=n(85737);t.StatusDotIcon=function(e){return(0,i.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.29995 4.99995C2.29995 5.57985 1.82985 6.04995 1.24995 6.04995C0.670052 6.04995 0.199951 5.57985 0.199951 4.99995C0.199951 4.42005 0.670052 3.94995 1.24995 3.94995C1.82985 3.94995 2.29995 4.42005 2.29995 4.99995ZM4.99995 6.04995C5.57985 6.04995 6.04995 5.57985 6.04995 4.99995C6.04995 4.42005 5.57985 3.94995 4.99995 3.94995C4.42005 3.94995 3.94995 4.42005 3.94995 4.99995C3.94995 5.57985 4.42005 6.04995 4.99995 6.04995ZM8.74995 6.04995C9.32985 6.04995 9.79995 5.57985 9.79995 4.99995C9.79995 4.42005 9.32985 3.94995 8.74995 3.94995C8.17005 3.94995 7.69995 4.42005 7.69995 4.99995C7.69995 5.57985 8.17005 6.04995 8.74995 6.04995Z"}))}},43484:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMTQuMDM3IDE4LjkyNmMtMi43NSAwLTQuOTA3LTIuMjA1LTQuOTA3LTQuOTI2IDAtMi43MiAyLjIzLTQuOTI2IDQuOTA3LTQuOTI2YTQuODY2IDQuODY2IDAgMCAxIDQuODMzIDQuMTE4aDQuOTgyYy0uNDQ2LTUuMDczLTQuNjg0LTkuMDQ0LTkuODE1LTkuMDQ0QzguNjEgNC4xNDggNC4xNDkgOC41NiA0LjE0OSAxNHM0LjM4NyA5Ljg1MiA5Ljg5IDkuODUyYzUuMjA0IDAgOS4zNjgtMy45NyA5LjgxNC05LjA0M0gxOC44N2E0Ljg2NiA0Ljg2NiAwIDAgMS00LjgzMyA0LjExN1oiIGZpbGw9IiNmZmYiLz48L3N2Zz4="},92521:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMjMuODUyIDE0QTkuODM0IDkuODM0IDAgMCAxIDE0IDIzLjg1MiA5LjgzNCA5LjgzNCAwIDAgMSA0LjE0OCAxNCA5LjgzNCA5LjgzNCAwIDAgMSAxNCA0LjE0OCA5LjgzNCA5LjgzNCAwIDAgMSAyMy44NTIgMTRaIiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTExLjE4NSAxMi41MDRjMC0uNDU2IDAtLjcxLjA5OC0uODYyLjA5OC0uMTUyLjE5Ni0uMzA0LjM0My0uMzU1LjE5Ni0uMTAyLjM5Mi0uMTAyLjg4MS0uMTAyaDIuOTg2Yy40OSAwIC42ODYgMCAuODgyLjEwMi4xNDYuMTAxLjI5My4yMDMuMzQyLjM1NS4wOTguMjAzLjA5OC40MDYuMDk4Ljg2MnYyLjk5MmMwIC40NTcgMCAuNzEtLjA5OC44NjMtLjA5OC4xNTItLjE5NS4zMDQtLjM0Mi4zNTUtLjE5Ni4xMDEtLjM5Mi4xMDEtLjg4Mi4xMDFoLTIuOTg2Yy0uNDkgMC0uNjg1IDAtLjg4LS4xMDEtLjE0OC0uMTAyLS4yOTUtLjIwMy0uMzQ0LS4zNTUtLjA5OC0uMjAzLS4wOTgtLjQwNi0uMDk4LS44NjN2LTIuOTkyWiIgZmlsbD0iIzAwNTJGRiIvPjwvc3ZnPg=="},6254:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientMessagePublishEvent=t.ClientMessageSetSessionConfig=t.ClientMessageGetSessionConfig=t.ClientMessageIsLinked=t.ClientMessageHostSession=void 0,t.ClientMessageHostSession=function(e){return Object.assign({type:"HostSession"},e)},t.ClientMessageIsLinked=function(e){return Object.assign({type:"IsLinked"},e)},t.ClientMessageGetSessionConfig=function(e){return Object.assign({type:"GetSessionConfig"},e)},t.ClientMessageSetSessionConfig=function(e){return Object.assign({type:"SetSessionConfig"},e)},t.ClientMessagePublishEvent=function(e){return Object.assign({type:"PublishEvent"},e)}},30891:function(e,t){"use strict";
14Object.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",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"}},34816:function(e,t,n){"use strict";var i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.RxWebSocket=t.ConnectionState=void 0;let a=n(68354),u=n(14087);(o=i=t.ConnectionState||(t.ConnectionState={}))[o.DISCONNECTED=0]="DISCONNECTED",o[o.CONNECTING=1]="CONNECTING",o[o.CONNECTED=2]="CONNECTED",t.RxWebSocket=class{constructor(e,t=WebSocket){this.WebSocketClass=t,this.webSocket=null,this.connectionStateSubject=new a.BehaviorSubject(i.DISCONNECTED),this.incomingDataSubject=ne
14w a.Subject,this.url=e.replace(/^http/,"ws")}connect(){return this.webSocket?(0,a.throwError)(Error("webSocket object is not null")):new a.Observable(e=>{let t;try{this.webSocket=t=new this.WebSocketClass(this.url)}catch(t){e.error(t);return}this.connectionStateSubject.next(i.CONNECTING),t.onclose=t=>{this.clearWebSocket(),e.error(Error(`websocket error ${t.code}: ${t.reason}`)),this.connectionStateSubject.next(i.DISCONNECTED)},t.onopen=t=>{e.next(),e.complete(),this.connectionStateSubject.next(i.CONNECTED)},t.onmessage=e=>{this.incomingDataSubject.next(e.data)}}).pipe((0,u.take)(1))}disconnect(){let{webSocket:e}=this;if(e){this.clearWebSocket(),this.connectionStateSubject.next(i.DISCONNECTED);try{e.close()}catch(e){}}}get connectionState$(){return this.connectionStateSubject.asObservable()}get incomingData$(){return this.incomingDataSubject.asObservable()}get incomingJSONData$(){return this.incomingData$.pipe((0,u.flatMap)(e=>{let t;try{t=JSON.parse(e)}catch(e){return(0,a.empty)()}return(0,a.of)(t)}))}sendData(e){let{webSocket:t}=this;if(!t)throw Error("websocket is not connected");t.send(e)}clearWebSocket(){let{webSocket:e}=this;e&&(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}}},441:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isServerMessageFail=void 0,t.isServerMessageFail=function(e){return e&&"Fail"===e.type&&"number"==typeof e.id&&"string"==typeof e.sessionId&&"string"==typeof e.error}},59230:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKConnection=void 0;let i=n(68354),o=n(14087),a=n(11632),u=n(27654),c=n(6254),l=n(30891),R=n(34816),j=n(441);t.WalletSDKConnection=class{constructor(e,t,n,c,j=WebSocket){this.sessionId=e,this.sessionKey=t,this.diagnostic=c,this.subscriptions=new i.Subscription,this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,u.IntNumber)(1),this.connectedSubject=ne
14w i.BehaviorSubject(!1),this.linkedSubject=new i.BehaviorSubject(!1),this.sessionConfigSubject=new i.ReplaySubject(1);let W=new R.RxWebSocket(n+"/rpc",j);this.ws=W,this.subscriptions.add(W.connectionState$.pipe((0,o.tap)(t=>{var n;return null===(n=this.diagnostic)||void 0===n?void 0:n.log(l.EVENTS.CONNECTED_STATE_CHANGE,{state:t,sessionIdHash:a.Session.hash(e)})}),(0,o.skip)(1),(0,o.filter)(e=>e===R.ConnectionState.DISCONNECTED&&!this.destroyed),(0,o.delay)(5e3),(0,o.filter)(e=>!this.destroyed),(0,o.flatMap)(e=>W.connect()),(0,o.retry)()).subscribe()),this.subscriptions.add(W.connectionState$.pipe((0,o.skip)(2),(0,o.switchMap)(e=>(0,i.iif)(()=>e===R.ConnectionState.CONNECTED,this.authenticate().pipe((0,o.tap)(e=>this.sendIsLinked()),(0,o.tap)(e=>this.sendGetSessionConfig()),(0,o.map)(e=>!0)),(0,i.of)(!1))),(0,o.distinctUntilChanged)(),(0,o.catchError)(e=>(0,i.of)(!1))).subscribe(e=>this.connectedSubject.next(e))),this.subscriptions.add(W.connectionState$.pipe((0,o.skip)(1),(0,o.switchMap)(e=>(0,i.iif)(()=>e===R.ConnectionState.CONNECTED,(0,i.timer)(0,1e4)))).subscribe(e=>0===e?this.updateLastHeartbeat():this.heartbeat())),this.subscriptions.add(W.incomingData$.pipe((0,o.filter)(e=>"h"===e)).subscribe(e=>this.updateLastHeartbeat())),this.subscriptions.add(W.incomingJSONData$.pipe((0,o.filter)(e=>["IsLinkedOK","Linked"].includes(e.type))).subscribe(t=>{var n;null===(n=this.diagnostic)||void 0===n||n.log(l.EVENTS.LINKED,{sessionIdHash:a.Session.hash(e),linked:t.linked,type:t.type,onlineGuests:t.onlineGuests}),this.linkedSubject.next(t.linked||t.onlineGuests>0)})),this.subscriptions.add(W.incomingJSONData$.pipe((0,o.filter)(e=>["GetSessionConfigOK","SessionConfigUpdated"].includes(e.type))).subscribe(t=>{var n;null===(n=this.diagnostic)||void 0===n||n.log(l.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:a.Session.hash(e),metadata_keys:t&&t.metadata?Object.keys(t.metadata):void 0}),this.sessionConfigSubject.next({webhookId:t.webhookId,webhookUrl:t.webhookUrl,metadata:t.metadata})}))}connect(){var e;if(this.destroyed)throw Error("instance is destroyed");null===(e=this.diagnostic)||void 0===e||e.log(l.EVENTS.STARTED_CONNECTING,{sessionIdHash:a.Session.hash(this.sessionId)}),this.ws.connect().subscribe()}destroy(){var e;this.subscriptions.unsubscribe(),this.ws.disconnect(),null===(e=this.diagnostic)||void 0===e||e.log(l.EVENTS.DISCONNECTED,{sessionIdHash:a.Session.hash(this.sessionId)}),this.destroyed=!0}get isDestroyed(){return this.destroyed}get connected$(){return this.connectedSubject.asObservable()}get onceConnected$(){return this.connected$.pipe((0,o.filter)(e=>e),(0,o.take)(1),(0,o.map)(()=>void 0))}get linked$(){return this.linkedSubject.asObservable()}get onceLinked$(){return this.linked$.pipe((0,o.filter)(e=>e),(0,o.take)(1),(0,o.map)(()=>void 0))}get sessionConfig$(){return this.sessionConfigSubject.asObservable()}get incomingEvent$(){return this.ws.incomingJSONData$.pipe((0,o.filter)(e=>"Event"===e.type&&"string"==typeof e.sessionId&&"string"==typeof e.eventId&&"string"==typeof e.event&&"string"==typeof e.data),(0,o.map)(e=>e))}setSessionMetadata(e,t){let n=(0,c.ClientMessageSetSessionConfig)({id:(0,u.IntNumber)(this.nextReqId++),sessionId:this.sessionId,metadata:{[e]:t}});return this.onceConnected$.pipe((0,o.flatMap)(e=>this.makeRequest(n)),(0,o.map)(e=>{if((0,j.isServerMessageFail)(e))throw Error(e.error||"failed to set session metadata")}))}publishEvent(e,t,n=!1){let i=(0,c.ClientMessagePublishEvent)({id:(0,u.IntNumber)(this.nextReqId++),sessionId:this.sessionId,event:e,data:t,callWebhook:n});return this.onceLinked$.pipe((0,o.flatMap)(e=>this.makeRequest(i)),(0,o.map)(e=>{if((0,j.isServerMessageFail)(e))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){}}makeRequest(e,t=6e4){let n=e.id;try{this.sendData(e)}catch(e){return(0,i.throwError)(e)}return this.ws.incomingJSONData$.pipe((0,o.timeoutWith)(t,(0,i.throwError)(Error(`request ${n} timed out`))),(0,o.filter)(e=>e.id===n),(0,o.take)(1))}authenticate(){let e=(0,c.ClientMessageHostSession)({id:(0,u.IntNumber)(this.nextReqId++),sessionId:this.sessionId,sessionKey:this.sessionKey});
14return this.makeRequest(e).pipe((0,o.map)(e=>{if((0,j.isServerMessageFail)(e))throw Error(e.error||"failed to authentcate")}))}sendIsLinked(){let e=(0,c.ClientMessageIsLinked)({id:(0,u.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}sendGetSessionConfig(){let e=(0,c.ClientMessageGetSessionConfig)({id:(0,u.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}}},50543: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"},17400:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCode=t.serializeError=t.standardErrors=t.standardErrorMessage=t.standardErrorCodes=void 0;let i=n(28322),o=n(31835),a=n(71499);t.standardErrorCodes=Object.freeze(Object.assign(Object.assign({},i.errorCodes),{provider:Object.freeze(Object.assign(Object.assign({},i.errorCodes.provider),{unsupportedChain:4902}))})),t.standardErrorMessage=function(e){return void 0!==e?(0,i.getMessageFromCode)(e):"Unknown error"},t.standardErrors=Object.freeze(Object.assign(Object.assign({},i.ethErrors),{provider:Object.freeze(Object.assign(Object.assign({},i.ethErrors.provider),{unsupportedChain:(e="")=>i.ethErrors.provider.custom({code:t.standardErrorCodes.provider.unsupportedChain,message:`Unrecognized chain ID ${e}. Try adding the chain using wallet_addEthereumChain first.`})}))})),t.serializeError=function(e,n){let u=(0,i.serializeError)("string"==typeof e?{message:e,code:t.standardErrorCodes.rpc.internal}:(0,o.isErrorResponse)(e)?Object.assign(Object.assign({},e),{message:e.errorMessage,code:e.errorCode,data:{method:e.method,result:e.result}}):e,{shouldIncludeStack:!0}),c=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");c.searchParams.set("version",a.LIB_VERSION),c.searchParams.set("code",u.code.toString());let l=function(e,t){let n=null==e?void 0:e.method;return n?n:void 0!==t?"string"==typeof t?t:Array.isArray(t)?t.length>0?t[0].method:void 0:t.method:void 0}(u.data,n);return l&&c.searchParams.set("method",l),c.searchParams.set("message",u.message),Object.assign(Object.assign({},u),{docUrl:c.href})},t.getErrorCode=function(e){var t;return"number"==typeof e?e:"object"==typeof e&&null!==e&&("number"==typeof e.code||"number"==typeof e.errorCode)?null!==(t=e.code)&&void 0!==t?t:e.errorCode:void 0}},24299:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseWalletProvider=t.CoinbaseWalletSDK=void 0;let i=n(10436),o=n(28846);var a=n(10436);Object.defineProperty(t,"CoinbaseWalletSDK",{enumerable:!0,get:function(){return a.CoinbaseWalletSDK}});var u=n(28846);Object.defineProperty(t,"CoinbaseWalletProvider",{enumerable:!0,get:function(){return u.CoinbaseWalletProvider}}),t.default=i.CoinbaseWalletSDK,"undefined"!=typeof window&&(window.CoinbaseWalletSDK=i.CoinbaseWalletSDK,window.CoinbaseWalletProvider=o.CoinbaseWalletProvider,window.WalletLink=i.CoinbaseWalletSDK,window.WalletLinkProvider=o.CoinbaseWalletProvider)},5697:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScopedLocalStorage=void 0,t.ScopedLocalStorage=class{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}`}}},7375: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}'},32065:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esMo
14dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.injectCssReset=void 0;let o=i(n(7375));t.injectCssReset=function(){let e=document.createElement("style");e.type="text/css",e.appendChild(document.createTextNode(o.default)),document.documentElement.appendChild(e)}},28846:function(e,t,n){"use strict";var i=n(15313).Buffer,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseWalletProvider=void 0;let a=o(n(35247)),u=o(n(98394)),c=n(30891),l=n(17400),R=n(11632),j=n(50697),W=n(13334),H=n(31835),U=n(19088),J=o(n(76539)),Q=n(3313),G=n(26327),Z=n(85138),Y="DefaultChainId",K="DefaultJsonRpcUrl";let CoinbaseWalletProvider=class CoinbaseWalletProvider extends a.default{constructor(e){var t,n;super(),this._filterPolyfill=new Q.FilterPolyfill(this),this._subscriptionManager=new Z.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(),o=(0,U.prepend0x)(i.toString(16));this.emit("connect",{chainIdStr:o});let a=this._storage.getItem(j.LOCAL_STORAGE_ADDRESSES_KEY);if(a){let e=a.split(" ");""!==e[0]&&(this._addresses=e.map(e=>(0,U.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){if("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))}"addressChanged"===e.data.data.action&&this._setAddresses([e.data.data.address])}})}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,U.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(K))&&void 0!==e?e:this._jsonRpcUrlFromOpts}set jsonRpcUrl(e){this._storage.setItem(K,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(Y,t.toString(10));let i=(0,U.ensureIntNumber)(t)!==n;(i||!this.hasMadeFirstChainChangedEmission)&&(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(e,t,n,i,o,a){let u=await this.initializeRelay(),c=await u.watchAsset(e,t,n,i,o,null==a?void 0:a.toString()).promise;return!!c.result}async addEthereumChain(e,t,n,i,o,a){var u,c;if((0,U.ensureIntNumber)(e)===this.getChainId())return!1;let l=await this.initializeRelay(),R=l.inlineAddEthereumChain(e.toString());this._isAuthorized()||R||await l.requestEthereumAccounts().promise;let j=await l.addEthereumChain(e.toString(),t,o,n,i,a).promise;return(null===(u=j.result)||void 0===u?void 0:u.isApproved)===!0&&this.updateProviderInfo(t[0],e),(null===(c=j.result)||void 0===c?void 0:c.isApproved)===!0}async switchEthereumChain(e){let t=await this.initializeRelay(),n=await t.switchEthereumChain(e.toString(10),this.selectedAddress||void 0).promise;if((0,H.isErrorResponse)(n)&&n.errorCode){if(n.errorCode===l.standardErrorCodes.provider.unsupportedChain)throw l.standardErrors.provider.unsupportedChain(e);throw l.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(c.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?R.Session.hash(this._relay.session.id):void 0}),this._isAuthorized())?[...this._addresses]:await this.send(G.JSONRPCMethod.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,l.serializeError)(t,e)})}catch(t){throw(0,l.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,l.serializeError)(t,e)})}catch(t){return Promise.reject((0,l.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,l.serializeError)(t,e.method)})}catch(t){return Promise.reject((0,l.serializeError)(t,e.method))}}async _request(e){if(!e||"object"!=typeof e||Array.isArray(e))throw l.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 l.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 l.standardErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:e});let i=void 0===n?[]:n,o=this._relayEventManager.makeRequestId(),a=await this._sendRequestAsync({method:t,params:i,jsonrpc:"2.0",id:o});return a.result}
14async scanQRCode(e){var t;let n=await this.initializeRelay(),i=await n.scanQRCode((0,U.ensureRegExpString)(e)).promise;if("string"!=typeof i.result)throw(0,l.serializeError)(null!==(t=i.errorMessage)&&void 0!==t?t:"result was not a string",W.Web3Method.scanQRCode);return i.result}async genericRequest(e,t){var n;let i=await this.initializeRelay(),o=await i.genericRequest(e,t).promise;if("string"!=typeof o.result)throw(0,l.serializeError)(null!==(n=o.errorMessage)&&void 0!==n?n:"result was not a string",W.Web3Method.generic);return o.result}async selectProvider(e){var t;let n=await this.initializeRelay(),i=await n.selectProvider(e).promise;if("string"!=typeof i.result)throw(0,l.serializeError)(null!==(t=i.errorMessage)&&void 0!==t?t:"result was not a string",W.Web3Method.selectProvider);return i.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,U.ensureAddressString)(e));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses=n,this.emit("accountsChanged",this._addresses),this._storage.setItem(j.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 o=this._handleAsynchronousFilterMethods(e);if(void 0!==o){o.then(n=>t(Object.assign(Object.assign({},n),{id:e.id}))).catch(e=>n(e));return}let a=this._handleSubscriptionMethods(e);if(void 0!==a){a.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 G.JSONRPCMethod.eth_accounts:return this._eth_accounts();case G.JSONRPCMethod.eth_coinbase:return this._eth_coinbase();case G.JSONRPCMethod.eth_uninstallFilter:return this._eth_uninstallFilter(n);case G.JSONRPCMethod.net_version:return this._net_version();case G.JSONRPCMethod.eth_chainId:return this._eth_chainId();default:return}}async _handleAsynchronousMethods(e){let{method:t}=e,n=e.params||[];switch(t){case G.JSONRPCMethod.eth_requestAccounts:return this._eth_requestAccounts();case G.JSONRPCMethod.eth_sign:return this._eth_sign(n);case G.JSONRPCMethod.eth_ecRecover:return this._eth_ecRecover(n);case G.JSONRPCMethod.personal_sign:return this._personal_sign(n);case G.JSONRPCMethod.personal_ecRecover:return this._personal_ecRecover(n);case G.JSONRPCMethod.eth_signTransaction:return this._eth_signTransaction(n);case G.JSONRPCMethod.eth_sendRawTransaction:return this._eth_sendRawTransaction(n);case G.JSONRPCMethod.eth_sendTransaction:return this._eth_sendTransaction(n);case G.JSONRPCMethod.eth_signTypedData_v1:return this._eth_signTypedData_v1(n);case G.JSONRPCMethod.eth_signTypedData_v2:return this._throwUnsupportedMethodError();case G.JSONRPCMethod.eth_signTypedData_v3:return this._eth_signTypedData_v3(n);case G.JSONRPCMethod.eth_signTypedData_v4:case G.JSONRPCMethod.eth_signTypedData:return this._eth_signTypedData_v4(n);case G.JSONRPCMethod.cbWallet_arbitrary:return this._cbwallet_arbitrary(n);case G.JSONRPCMethod.wallet_addEthereumChain:return this._wallet_addEthereumChain(n);case G.JSONRPCMethod.wallet_switchEthereumChain:return this._wallet_switchEthereumChain(n);case G.JSONRPCMethod.wallet_watchAsset:return this._wallet_watchAsset(n)}let i=await this.initializeRelay();return i.makeEthereumJSONRPCRequest(e,this.jsonRpcUrl)}_handleAsynchronousFilterMethods(e){let{method:t}=e,n=e.params||[];switch(t){case G.JSONRPCMethod.eth_newFilter:return this._eth_newFilter(n);case G.JSONRPCMethod.eth_newBlockFilter:return this._eth_newBlockFilter();case G.JSONRPCMethod.eth_newPendingTransactionFilter:return this._eth_newPendingTransactionFilter();case G.JSONRPCMethod.eth_getFilterChanges:return this._eth_getFilterChanges(n);case G.JSONRPCMethod.eth_getFilterLogs:return this._eth_getFilterLogs(n)}}_handleSubscriptionMethods(e){switch(e.method){case G.JSONRPCMethod.eth_subscribe:case G.JSONRPCMethod.eth_unsubscribe:return this._subscriptionManager.handleRequest(e)}}_isKnownAddress(e){try{let t=(0,U.ensureAddressString)(e),n=this._addresses.map(e=>(0,U.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(c.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),Error("Unknown Ethereum address")}_prepareTransactionParams(e){let t=e.from?(0,U.ensureAddressString)(e.from):this.selectedAddress;if(!t)throw Error("Ethereum address is unavailable");this._ensureKnownAddress(t);let n=e.to?(0,U.ensureAddressString)(e.to):null,o=null!=e.value?(0,U.ensureBN)(e.value):new u.default(0),a=e.data?(0,U.ensureBuffer)(e.data):i.alloc(0),c=null!=e.nonce?(0,U.ensureIntNumber)(e.nonce):null,l=null!=e.gasPrice?(0,U.ensureBN)(e.gasPrice):null,R=null!=e.maxFeePerGas?(0,U.ensureBN)(e.maxFeePerGas):null,j=null!=e.maxPriorityFeePerGas?(0,U.ensureBN)(e.maxPriorityFeePerGas):null,W=null!=e.gas?(0,U.ensureBN)(e.gas):null,H=this.getChainId();return{fromAddress:t,toAddress:n,weiValue:o,data:a,nonce:c,gasPriceInWei:l,maxFeePerGas:R,maxPriorityFeePerGas:j,gasLimit:W,chainId:H}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw l.standardErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw l.standardErrors.provider.unsupportedMethod({})}async _signEthereumMessage(e,t,n,i){this._ensureKnownAddress(t);try{let o=await this.initializeRelay(),a=await o.signEthereumMessage(e,t,n,i).promise;return{jsonrpc:"2.0",id:0,result:a.result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw l.standardErrors.provider.userRejectedRequest("User denied message signature");throw e}}async _ethereumAddressFromSignedMessage(e,t,n){let i=await this.initializeRelay(),o=await i.ethereumAddressFromSignedMessage(e,t,n).promise;return{jsonrpc:"2.0",id:0,result:o.result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,U.hexStringFromIntNumber)(this.getChainId())}getChainId(){let e=this._storage.getItem(Y);if(!e)return(0,U.ensureIntNumber)(this._chainIdFromOpts);let t=parseInt(e,10);return(0,U.ensureIntNumber)(t)}async _eth_requestAccounts(){var e;let t;if(null===(e=this.diagnostic)||void 0===e||e.log(c.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?R.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();t=await e.requestEthereumAccounts().promise}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw l.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,U.ensureAddressString)(e[0]),n=(0,U.ensureBuffer)(e[1]);return this._signEthereumMessage(n,t,!1)}_eth_ecRecover(e){let t=(0,U.ensureBuffer)(e[0]),n=(0,U.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!1)}_personal_sign(e){this._requireAuthorization();let t=(0,U.ensureBuffer)(e[0]),n=(0,U.ensureAddressString)(e[1]);return this._signEthereumMessage(t,n,!0)}_personal_ecRecover(e){let t=(0,U.ensureBuffer)(e[0]),n=(0,U.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;return{jsonrpc:"2.0",id:0,result:n.result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw l.standardErrors.provider.userRejectedRequest("User denied transaction signature");throw e}}async _eth_sendRawTransaction(e){let t=(0,U.ensureBuffer)(e[0]),n=await this.initializeRelay(),i=await n.submitEthereumTransaction(t,this.getChainId()).promise;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;return{jsonrpc:"2.0",id:0,result:n.result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw l.standardErrors.provider.userRejectedRequest("User denied transaction signature");throw e}}async _eth_signTypedData_v1(e){this._requireAuthorization();let t=(0,U.ensureParsedJSONObject)(e[0]),n=(0,U.ensureAddressString)(e[1]);this._ensureKnownAddress(n);let i=J.default.hashForSignTypedDataLegacy({data:t}),o=JSON.stringify(t,null,2);return this._signEthereumMessage(i,n,!1,o)}async _eth_signTypedData_v3(e){this._requireAuthorization();let t=(0,U.ensureAddressString)(e[0]),n=(0,U.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let i=J.default.hashForSignTypedData_v3({data:n}),o=JSON.stringify(n,null,2);return this._signEthereumMessage(i,t,!1,o)}async _eth_signTypedData_v4(e){this._requireAuthorization();let t=(0,U.ensureAddressString)(e[0]),n=(0,U.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let i=J.default.hashForSignTypedData_v4({data:n}),o=JSON.stringify(n,null,2);return this._signEthereumMessage(i,t,!1,o)}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,o;let a=e[0];if((null===(t=a.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(!a.chainName||""===a.chainName.trim())throw l.standardErrors.rpc.invalidParams("chainName is a required field");if(!a.nativeCurrency)throw l.standardErrors.rpc.invalidParams("nativeCurrency is a required field");let u=parseInt(a.chainId,16),c=await this.addEthereumChain(u,null!==(n=a.rpcUrls)&&void 0!==n?n:[],null!==(i=a.blockExplorerUrls)&&void 0!==i?i:[],a.chainName,null!==(o=a.iconUrls)&&void 0!==o?o:[],a.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 l.standardErrors.rpc.invalidParams("Type is required");if((null==t?void 0:t.type)!=="ERC20")throw l.standardErrors.rpc.invalidParams(`Asset of type '${t.type}' is not supported`);if(!(null==t?void 0:t.options))throw l.standardErrors.rpc.invalidParams("Options are required");if(!(null==t?void 0:t.options.address))throw l.standardErrors.rpc.invalidParams("Address is required");let n=this.getChainId(),{address:i,symbol:o,image:a,decimals:u}=t.options,c=await this.watchAsset(t.type,i,o,u,a,n);return{jsonrpc:"2.0",id:0,result:c}}_eth_uninstallFilter(e){let t=(0,U.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,U.ensureHexString)(e[0]);return this._filterPolyfill.getFilterChanges(t)}_eth_getFilterLogs(e){let t=(0,U.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},3313:function(e,t,n){"use strict";
14Object.defineProperty(t,"__esModule",{value:!0}),t.filterFromParam=t.FilterPolyfill=void 0;let i=n(27654),o=n(19088),a={jsonrpc:"2.0",id:0};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,o.isHexString)(e))return(0,o.intNumberFromHexString)(e);throw Error(`Invalid block option: ${String(e)}`)}function hexBlockHeightFromIntBlockHeight(e){return"latest"===e?e:(0,o.hexStringFromIntNumber)(e)}function filterNotFoundError(){return Object.assign(Object.assign({},a),{error:{code:-32e3,message:"filter not found"}})}function emptyResult(){return Object.assign(Object.assign({},a),{result:[]})}t.FilterPolyfill=class{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.provider=e}async newFilter(e){let t=filterFromParam(e),n=this.makeFilterId(),i=await this.setInitialCursorPosition(n,t.fromBlock);return console.log(`Installing new log filter(${n}):`,t,"initial cursor position:",i),this.logFilters.set(n,t),this.setFilterTimeout(n),(0,o.hexStringFromIntNumber)(n)}async newBlockFilter(){let e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.blockFilters.add(e),this.setFilterTimeout(e),(0,o.hexStringFromIntNumber)(e)}async newPendingTransactionFilter(){let e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.pendingTransactionFilters.add(e),this.setFilterTimeout(e),(0,o.hexStringFromIntNumber)(e)}uninstallFilter(e){let t=(0,o.intNumberFromHexString)(e);return console.log(`Uninstalling filter (${t})`),this.deleteFilter(t),!0}getFilterChanges(e){let t=(0,o.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,o.intNumberFromHexString)(e),n=this.logFilters.get(t);return n?this.sendAsyncPromise(Object.assign(Object.assign({},a),{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.log(`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 u=await this.getCurrentBlockHeight(),c="latest"===t.toBlock?u:t.toBlock;if(n>u||n>t.toBlock)return emptyResult();console.log(`Fetching logs from ${n} to ${c} for filter ${e}`);let l=await this.sendAsyncPromise(Object.assign(Object.assign({},a),{method:"eth_getLogs",params:[paramFromFilter(Object.assign(Object.assign({},t),{fromBlock:n,toBlock:c}))]}));if(Array.isArray(l.result)){let t=l.result.map(e=>(0,o.intNumberFromHexString)(e.blockNumber||"0x0")),a=Math.max(...t);if(a&&a>n){let t=(0,i.IntNumber)(a+1);console.log(`Moving cursor position for filter (${e}) from ${n} to ${t}`),this.cursors.set(e,t)}}return l}async getBlockFilterChanges(e){let t=this.cursors.get(e);if(!t)return filterNotFoundError();let n=await this.getCurrentBlockHeight();if(t>n)return emptyResult();console.log(`Fetching blocks from ${t} to ${n} for filter (${e})`);let u=(await Promise.all((0,o.range)(t,n+1).map(e=>this.getBlockHashByNumber((0,i.IntNumber)(e))))).filter(e=>!!e),c=(0,i.IntNumber)(t+u.length);return console.log(`Moving cursor position for filter (${e}) from ${t} to ${c}`),this.cursors.set(e,c),Object.assign(Object.assign({},a),{result:u})}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.log(`Filter (${e}) timed out`),this.deleteFilter(e)},3e5);this.timeouts.set(e,n)}async getCurrentBlockHeight(){let{result:e}=await this.sendAsyncPromise(Object.assign(Object.assign({},a),{method:"eth_blockNumber",params:[]}));return(0,o.intNumberFromHexString)((0,o.ensureHexString)(e))}async getBlockHashByNumber(e){let t=await this.sendAsyncPromise(Object.assign(Object.assign({},a),{method:"eth_getBlockByNumber",params:[(0,o.hexStringFromIntNumber)(e),!1]}));return t.result&&"string"==typeof t.result.hash?(0,o.ensureHexString)(t.result.hash):null}},t.filterFromParam=filterFromParam},26327:function(e,t){"use strict";var n;
14Object.defineProperty(t,"__esModule",{value:!0}),t.JSONRPCMethod=void 0,(n=t.JSONRPCMethod||(t.JSONRPCMethod={})).eth_accounts="eth_accounts",n.eth_coinbase="eth_coinbase",n.net_version="net_version",n.eth_chainId="eth_chainId",n.eth_uninstallFilter="eth_uninstallFilter",n.eth_requestAccounts="eth_requestAccounts",n.eth_sign="eth_sign",n.eth_ecRecover="eth_ecRecover",n.personal_sign="personal_sign",n.personal_ecRecover="personal_ecRecover",n.eth_signTransaction="eth_signTransaction",n.eth_sendRawTransaction="eth_sendRawTransaction",n.eth_sendTransaction="eth_sendTransaction",n.eth_signTypedData_v1="eth_signTypedData_v1",n.eth_signTypedData_v2="eth_signTypedData_v2",n.eth_signTypedData_v3="eth_signTypedData_v3",n.eth_signTypedData_v4="eth_signTypedData_v4",n.eth_signTypedData="eth_signTypedData",n.cbWallet_arbitrary="walletlink_arbitrary",n.wallet_addEthereumChain="wallet_addEthereumChain",n.wallet_switchEthereumChain="wallet_switchEthereumChain",n.wallet_watchAsset="wallet_watchAsset",n.eth_subscribe="eth_subscribe",n.eth_unsubscribe="eth_unsubscribe",n.eth_newFilter="eth_newFilter",n.eth_newBlockFilter="eth_newBlockFilter",n.eth_newPendingTransactionFilter="eth_newPendingTransactionFilter",n.eth_getFilterChanges="eth_getFilterChanges",n.eth_getFilterLogs="eth_getFilterLogs"},85138:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SubscriptionManager=void 0;let i=n(28196),o=n(19380),noop=()=>{};t.SubscriptionManager=class{constructor(e){let t=new i.PollingBlockTracker({provider:e,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:n,middleware:a}=o({blockTracker:t,provider:e});this.events=n,this.subscriptionMiddleware=a}async handleRequest(e){let t={};return await this.subscriptionMiddleware(e,t,noop,noop),t}destroy(){this.subscriptionMiddleware.destroy()}}},39165:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKUI=void 0;let i=n(17580),o=n(24446),a=n(32065);t.WalletSDKUI=class{constructor(e){this.standalone=null,this.attached=!1,this.appSrc=null,this.snackbar=new o.Snackbar({darkMode:e.darkMode}),this.linkFlow=new i.LinkFlow({darkMode:e.darkMode,version:e.version,sessionId:e.session.id,sessionSecret:e.session.secret,linkAPIUrl:e.linkAPIUrl,connected$:e.connected$,chainId$:e.chainId$,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,a.injectCssReset)()}setConnectDisabled(e){this.linkFlow.setConnectDisabled(e)}addEthereumChain(e){}watchAsset(e){}switchEthereumChain(e){}requestEthereumAccounts(e){this.linkFlow.open({onCancel:e.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(e){}signEthereumTransaction(e){}submitEthereumTransaction(e){}ethereumAddressFromSignedMessage(e){}showConnecting(e){let t;return t=e.isUnlinkedErrorState?{autoExpand:!0,message:"Connection lost",appSrc:this.appSrc,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",appSrc:this.appSrc,menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:e.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.9687
145C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]},this.snackbar.presentItem(t)}setAppSrc(e){this.appSrc=e}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(e){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}}},60540:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.RelayMessageType=void 0,(n=t.RelayMessageType||(t.RelayMessageType={})).SESSION_ID_REQUEST="SESSION_ID_REQUEST",n.SESSION_ID_RESPONSE="SESSION_ID_RESPONSE",n.LINKED="LINKED",n.UNLINKED="UNLINKED",n.WEB3_REQUEST="WEB3_REQUEST",n.WEB3_REQUEST_CANCELED="WEB3_REQUEST_CANCELED",n.WEB3_RESPONSE="WEB3_RESPONSE"},11632:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Session=void 0;let i=n(55402),o=n(19088),a="session:id",u="session:secret",c="session:linked";let Session=class Session{constructor(e,t,n,a){this._storage=e,this._id=t||(0,o.randomBytesHex)(16),this._secret=n||(0,o.randomBytesHex)(32),this._key=new i.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!a}static load(e){let t=e.getItem(a),n=e.getItem(c),i=e.getItem(u);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(a,this._id),this._storage.setItem(u,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(c,this._linked?"1":"0")}};t.Session=Session},89401: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]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__decorate||function(e,t,n,i){var o,a=arguments.length,u=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,i);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(u=(a<3?o(u):a>3?o(t,n,u):o(t,n))||u);return a>3&&u&&Object.defineProperty(t,n,u),u},u=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKRelay=void 0;let l=c(n(82237)),R=n(68354),j=n(14087),W=n(30891),H=n(59230),U=n(17400),J=n(27654),Q=n(19088),G=u(n(30553)),Z=n(11632),Y=n(50697),K=n(13334),X=n(96871),ee=n(41937),et=n(31835),er=n(3636);let WalletSDKRelay=class WalletSDKRelay extends Y.WalletSDKRelayAbstract{constructor(e){var t;super(),this.accountsCallback=null,this.chainCallback=null,this.dappDefaultChainSubject=new R.BehaviorSubject(1),this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.subscriptions=new R.Subscription,this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage,this.options=e;let{session:n,ui:i,connection:o}=this.subscribe();if(this._session=n,this.connection=o,this.relayEventManager=e.relayEventManager,e.diagnosticLogger&&e.eventListener)throw Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this.diagnostic={log:e.eventListener.onEvent}:this.diagnostic=e.diagnosticLogger,this._reloadOnDisconnect=null===(t=e.reloadOnDisconnect)||void 0===t||t,this.ui=i}subscribe(){this.subscriptions.add(this.dappDefaultChainSubject.subscribe(e=>{this.dappDefaultChain!==e&&(this.dappDefaultChain=e)}));let e=Z.Session.load(this.storage)||new Z.Session(this.storage).save(),t=new H.WalletSDKConnection(e.id,e.key,this.linkAPIUrl,this.diagnostic);this.subscriptions.add(t.sessionConfig$.subscribe({next:e=>{this.onSessionConfigChanged(e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(W.EVENTS.GENERAL_ER
14ROR,{message:"error while invoking session config callback"})}})),this.subscriptions.add(t.incomingEvent$.pipe((0,j.filter)(e=>"Web3Response"===e.event)).subscribe({next:this.handleIncomingEvent})),this.subscriptions.add(t.linked$.pipe((0,j.skip)(1),(0,j.tap)(e=>{var t;this.isLinked=e;let n=this.storage.getItem(Y.LOCAL_STORAGE_ADDRESSES_KEY);if(e&&(this.session.linked=e),this.isUnlinkedErrorState=!1,n){let i=n.split(" "),o="true"===this.storage.getItem("IsStandaloneSigning");if(""!==i[0]&&!e&&this.session.linked&&!o){this.isUnlinkedErrorState=!0;let e=this.getSessionIdHash();null===(t=this.diagnostic)||void 0===t||t.log(W.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:e})}}})).subscribe()),this.subscriptions.add(t.sessionConfig$.pipe((0,j.filter)(e=>!!e.metadata&&"1"===e.metadata.__destroyed)).subscribe(()=>{var e;let n=t.isDestroyed;return null===(e=this.diagnostic)||void 0===e||e.log(W.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:n,sessionIdHash:this.getSessionIdHash()}),this.resetAndReload()})),this.subscriptions.add(t.sessionConfig$.pipe((0,j.filter)(e=>e.metadata&&void 0!==e.metadata.WalletUsername)).pipe((0,j.mergeMap)(t=>G.decrypt(t.metadata.WalletUsername,e.secret))).subscribe({next:e=>{this.storage.setItem(Y.WALLET_USER_NAME_KEY,e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(W.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"username"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,j.filter)(e=>e.metadata&&void 0!==e.metadata.AppVersion)).pipe((0,j.mergeMap)(t=>G.decrypt(t.metadata.AppVersion,e.secret))).subscribe({next:e=>{this.storage.setItem(Y.APP_VERSION_KEY,e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(W.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appversion"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,j.filter)(e=>e.metadata&&void 0!==e.metadata.ChainId&&void 0!==e.metadata.JsonRpcUrl)).pipe((0,j.mergeMap)(t=>(0,R.zip)(G.decrypt(t.metadata.ChainId,e.secret),G.decrypt(t.metadata.JsonRpcUrl,e.secret)))).pipe((0,j.distinctUntilChanged)()).subscribe({next:([e,t])=>{this.chainCallback&&this.chainCallback(e,t)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(W.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,j.filter)(e=>e.metadata&&void 0!==e.metadata.EthereumAddress)).pipe((0,j.mergeMap)(t=>G.decrypt(t.metadata.EthereumAddress,e.secret))).subscribe({next:e=>{this.accountsCallback&&this.accountsCallback([e]),WalletSDKRelay.accountRequestCallbackIds.size>0&&(Array.from(WalletSDKRelay.accountRequestCallbackIds.values()).forEach(t=>{let n=(0,er.Web3ResponseMessage)({id:t,response:(0,et.RequestEthereumAccountsResponse)([e])});this.invokeCallback(Object.assign(Object.assign({},n),{id:t}))}),WalletSDKRelay.accountRequestCallbackIds.clear())},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(W.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,j.filter)(e=>e.metadata&&void 0!==e.metadata.AppSrc)).pipe((0,j.mergeMap)(t=>G.decrypt(t.metadata.AppSrc,e.secret))).subscribe({next:e=>{this.ui.setAppSrc(e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(W.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appSrc"})}}));let n=this.options.uiConstructor({linkAPIUrl:this.options.linkAPIUrl,version:this.options.version,darkMode:this.options.darkMode,session:e,connected$:t.connected$,chainId$:this.dappDefaultChainSubject});return t.connect(),{session:e,ui:n,connection:t}}attachUI(){this.ui.attach()}resetAndReload(){this.connection.setSessionMetadata("__destroyed","1").pipe((0,j.timeout)(1e3),(0,j.catchError)(e=>(0,R.of)(null))).subscribe(e=>{var t,n,i;let o=this.ui.isStandalone();try{this.subscriptions.unsubscribe()}catch(e){null===(t=this.diagnostic)||void 0===t||t.log(W.EVENTS.GENERAL_ERROR,{message:"Had error unsubscribing"})}null===(n=this.diagnostic)||void 0===n||n.log(W.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();let a=Z.Session.load(this.storage);if((null==a?void 0:a.id)===this._session.id?this.storage.clear():a&&(null===(i=this.diagnostic)||void 0===i||i.log(W.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:Z.Session.hash(a.id)})),this._reloadOnDisconnect){this.ui.reloadUI();return}this.accountsCallback&&this.accountsCallback([],!0),this.subscriptions=new R.Subscription;let{session:u,ui:c,connection:l}=this.subscribe();this._session=u,this.connection=l,this.ui=c,o&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.attachUI()},e=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(W.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:K.Web3Method.signEthereumMessage,params:{message:(0,Q.hexStringFromBuffer)(e,!0),address:t,addPrefix:n,typedDataJson:i||null}})}ethereumAddressFromSignedMessage(e,t,n){return this.sendRequest({method:K.Web3Method.ethereumAddressFromSignedMessage,params:{message:(0,Q.hexStringFromBuffer)(e,!0),signature:(0,Q.hexStringFromBuffer)(t,!0),addPrefix:n}})}signEthereumTransaction(e){return this.sendRequest({method:K.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,Q.bigIntStringFromBN)(e.weiValue),data:(0,Q.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,Q.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?(0,Q.bigIntStringFromBN)(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?(0,Q.bigIntStringFromBN)(e.gasPriceInWei):null,gasLimit:e.gasLim
14it?(0,Q.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:K.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,Q.bigIntStringFromBN)(e.weiValue),data:(0,Q.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,Q.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?(0,Q.bigIntStringFromBN)(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?(0,Q.bigIntStringFromBN)(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?(0,Q.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,t){return this.sendRequest({method:K.Web3Method.submitEthereumTransaction,params:{signedTransaction:(0,Q.hexStringFromBuffer)(e,!0),chainId:t}})}scanQRCode(e){return this.sendRequest({method:K.Web3Method.scanQRCode,params:{regExp:e}})}getQRCodeUrl(){return(0,Q.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(e,t){return this.sendRequest({method:K.Web3Method.generic,params:{action:t,data:e}})}sendGenericMessage(e){return this.sendRequest(e)}sendRequest(e){let t=null,n=(0,Q.randomBytesHex)(8),cancel=i=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,i),null==t||t()},i=new Promise((i,o)=>{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(),e.errorMessage)return o(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.dappDefaultChainSubject.next(e)}publishWeb3RequestEvent(e,t){var n;let i=(0,ee.Web3RequestMessage)({id:e,request:t}),o=Z.Session.load(this.storage);null===(n=this.diagnostic)||void 0===n||n.log(W.EVENTS.WEB3_REQUEST,{eventId:i.id,method:`relay::${i.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:o?Z.Session.hash(o.id):"",isSessionMismatched:((null==o?void 0:o.id)!==this._session.id).toString()}),this.subscriptions.add(this.publishEvent("Web3Request",i,!0).subscribe({next:e=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(W.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:i.id,method:`relay::${i.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:o?Z.Session.hash(o.id):"",isSessionMismatched:((null==o?void 0:o.id)!==this._session.id).toString()})},error:e=>{this.handleWeb3ResponseMessage((0,er.Web3ResponseMessage)({id:i.id,response:{method:i.request.method,errorMessage:e.message}}))}}))}publishWeb3RequestCanceledEvent(e){let t=(0,X.Web3RequestCanceledMessage)(e);this.subscriptions.add(this.publishEvent("Web3RequestCanceled",t,!1).subscribe())}publishEvent(e,t,n){let i=this.session.secret;return new R.Observable(e=>{G.encrypt(JSON.stringify(Object.assign(Object.assign({},t),{origin:location.origin})),i).then(t=>{e.next(t),e.complete()})}).pipe((0,j.mergeMap)(t=>this.connection.publishEvent(e,t,n)))}handleIncomingEvent(e){try{this.subscriptions.add((0,R.from)(G.decrypt(e.data,this.session.secret)).pipe((0,j.map)(e=>JSON.parse(e))).subscribe({next:e=>{let t=(0,er.isWeb3ResponseMessage)(e)?e:null;t&&this.handleWeb3ResponseMessage(t)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(W.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}))}catch(e){return}}handleWeb3ResponseMessage(e){var t;let{response:n}=e;if(null===(t=this.diagnostic)||void 0===t||t.log(W.EVENTS.WEB3_RESPONSE,{eventId:e.id,method:`relay::${n.method}`,sessionIdHash:this.getSessionIdHash()}),(0,et.isRequestEthereumAccountsResponse)(n)){WalletSDKRelay.accountRequestCallbackIds.forEach(t=>this.invokeCallback(Object.assign(Object.assign({},e),{id:t}))),WalletSDKRelay.accountRequestCallbackIds.clear();return}this.invokeCallback(e)}handleErrorResponse(e,t,n,i){var o;let a=null!==(o=null==n?void 0:n.message)&&void 0!==o?o:(0,U.standardErrorMessage)(i);this.handleWeb3ResponseMessage((0,er.Web3ResponseMessage)({id:e,response:{method:t,errorMessage:a,errorCode:i}
14}))}invokeCallback(e){let t=this.relayEventManager.callbacks.get(e.id);t&&(t(e.response),this.relayEventManager.callbacks.delete(e.id))}requestEthereumAccounts(){let e={method:K.Web3Method.requestEthereumAccounts,params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},t=(0,Q.randomBytesHex)(8),cancel=n=>{this.publishWeb3RequestCanceledEvent(t),this.handleErrorResponse(t,e.method,n)},n=new Promise((n,i)=>{var o;this.relayEventManager.callbacks.set(t,e=>{if(this.ui.hideRequestEthereumAccounts(),e.errorMessage)return i(Error(e.errorMessage));n(e)});let a=(null===(o=null==window?void 0:window.navigator)||void 0===o?void 0:o.userAgent)||null;if(a&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)){let e;try{e=(0,Q.isInIFrame)()&&window.top?window.top.location:window.location}catch(t){e=window.location}e.href=`https://www.coinbase.com/connect-dapp?uri=${encodeURIComponent(e.href)}`;return}if(this.ui.inlineAccountsResponse())this.ui.requestEthereumAccounts({onCancel:cancel,onAccounts:e=>{this.handleWeb3ResponseMessage((0,er.Web3ResponseMessage)({id:t,response:(0,et.RequestEthereumAccountsResponse)(e)}))}});else{let e=U.standardErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>cancel(e)})}WalletSDKRelay.accountRequestCallbackIds.add(t),this.ui.inlineAccountsResponse()||this.ui.isStandalone()||this.publishWeb3RequestEvent(t,e)});return{promise:n,cancel}}selectProvider(e){let t={method:K.Web3Method.selectProvider,params:{providerOptions:e}},n=(0,Q.randomBytesHex)(8),i=new Promise((t,i)=>{this.relayEventManager.callbacks.set(n,e=>{if(e.errorMessage)return i(Error(e.errorMessage));t(e)}),this.ui.selectProvider&&this.ui.selectProvider({onApprove:e=>{this.handleWeb3ResponseMessage((0,er.Web3ResponseMessage)({id:n,response:(0,et.SelectProviderResponse)(e)}))},onCancel:e=>{this.handleWeb3ResponseMessage((0,er.Web3ResponseMessage)({id:n,response:(0,et.SelectProviderResponse)(J.ProviderType.Unselected)}))},providerOptions:e})});return{cancel:e=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,t.method,e)},promise:i}}watchAsset(e,t,n,i,o,a){let u={method:K.Web3Method.watchAsset,params:{type:e,options:{address:t,symbol:n,decimals:i,image:o},chainId:a}},c=null,l=(0,Q.randomBytesHex)(8),cancel=e=>{this.publishWeb3RequestCanceledEvent(l),this.handleErrorResponse(l,u.method,e),null==c||c()};this.ui.inlineWatchAsset()||(c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:cancel,onResetConnection:this.resetAndReload}));let R=new Promise((R,j)=>{this.relayEventManager.callbacks.set(l,e=>{if(null==c||c(),e.errorMessage)return j(Error(e.errorMessage));R(e)}),this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:()=>{this.handleWeb3ResponseMessage((0,er.Web3ResponseMessage)({id:l,response:(0,et.WatchAssetReponse)(!0)}))},onCancel:e=>{this.handleWeb3ResponseMessage((0,er.Web3ResponseMessage)({id:l,response:(0,et.WatchAssetReponse)(!1)}))},type:e,address:t,symbol:n,decimals:i,image:o,chainId:a}),this.ui.inlineWatchAsset()||this.ui.isStandalone()||this.publishWeb3RequestEvent(l,u)});return{cancel,promise:R}}addEthereumChain(e,t,n,i,o,a){let u={method:K.Web3Method.addEthereumChain,params:{chainId:e,rpcUrls:t,blockExplorerUrls:i,chainName:o,iconUrls:n,nativeCurrency:a}},c=null,l=(0,Q.randomBytesHex)(8),cancel=e=>{this.publishWeb3RequestCanceledEvent(l),this.handleErrorResponse(l,u.method,e),null==c||c()};this.ui.inlineAddEthereumChain(e)||(c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:cancel,onResetConnection:this.resetAndReload}));let R=new Promise((t,n)=>{this.relayEventManager.callbacks.set(l,e=>{if(null==c||c(),e.errorMessage)return n(Error(e.errorMessage));t(e)}),this.ui.inlineAddEthereumChain(e)&&this.ui.addEthereumChain({onCancel:e=>{this.handleWeb3ResponseMessage((0,er.Web3ResponseMessage)({id:l,response:(0,et.AddEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},onApprove:e=>{this.handleWeb3ResponseMessage((0,er.Web3ResponseMessage)({id:l,response:(0,et.AddEthereumChainResponse)({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(l,u)});return{promise:R,cancel}}switchEthereumChain(e,t){let n={method:K.Web3Method.switchEthereumChain,params:Object.assign({chainId:e},{address:t})},i=(0,Q.randomBytesHex)(8),o=new Promise((t,o)=>{this.relayEventManager.callbacks.set(i,e=>(0,et.isErrorResponse)(e)&&e.errorCode?o(U.standardErrors.provider.custom({code:e.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."})):e.errorMessage?o(Error(e.errorMessage)):void t(e)),this.ui.switchEthereumChain({onCancel:t=>{var n;if(t){let o=null!==(n=(0,U.getErrorCode)(t))&&void 0!==n?n:U.standardErrorCodes.provider.unsupportedChain;this.handleErrorResponse(i,K.Web3Method.switchEthereumChain,t instanceof Error?t:U.standardErrors.provider.unsupportedChain(e),o)}else this.handleWeb3ResponseMessage((0,er.Web3ResponseMessage)({id:i,response:(0,et.SwitchEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},onApprove:e=>{this.handleWeb3ResponseMessage((0,er.Web3ResponseMessage)({id:i,response:(0,et.SwitchEthereumChainResponse)({isApproved:!0,rpcUrl:e})}))},chainId:n.params.chainId,address:n.params.address}),this.ui.inlineSwitchEthereumChain()||this.ui.isStandalone()||this.publishWeb3RequestEvent(i,n)});return{promise:o,cancel:e=>{this.publishWeb3RequestCanceledEvent(i),this.handleErrorResponse(i,n.method,e)}}}inlineAddEthereumChain(e){return this.ui.inlineAddEthereumChain(e)}getSessionIdHash(){return Z.Session.hash(this._session.id)}sendRequestStandalone(e,t){let _cancel=n=>{this.handleErrorResponse(e,t.method,n)},onSuccess=t=>{this.handleWeb3ResponseMessage((0,er.Web3ResponseMessage)({id:e,response:t}))};switch(t.method){case K.Web3Method.signEthereumMessage:this.ui.signEthereumMessage({request:t,onSuccess,onCancel:_cancel});break;case K.Web3Method.signEthereumTransaction:this.ui.signEthereumTransaction({request:t,onSuccess,onCancel:_cancel});break;case K.Web3Method.submitEthereumTransaction:this.ui.submitEthereumTransaction({request:t,onSuccess,onCancel:_cancel});break;case K.Web3Method.ethereumAddressFromSignedMessage:this.ui.ethereumAddressFromSignedMessage({request:t,onSuccess});break;default:_cancel()}}onSessionConfigChanged(e){}};WalletSDKRelay.accountRequestCallbackIds=new Set,a([l.default],WalletSDKRelay.prototype,"resetAndReload",null),a([l.default],WalletSDKRelay.prototype,"handleIncomingEvent",null),t.WalletSDKRelay=WalletSDKRelay},50697:function(e,t,n){"use strict";
14Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKRelayAbstract=t.APP_VERSION_KEY=t.LOCAL_STORAGE_ADDRESSES_KEY=t.WALLET_USER_NAME_KEY=void 0;let i=n(17400);t.WALLET_USER_NAME_KEY="walletUsername",t.LOCAL_STORAGE_ADDRESSES_KEY="Addresses",t.APP_VERSION_KEY="AppVersion",t.WalletSDKRelayAbstract=class{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})}}},15190:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKRelayEventManager=void 0;let i=n(19088);t.WalletSDKRelayEventManager=class{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}}},13334:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Web3Method=void 0,(n=t.Web3Method||(t.Web3Method={})).requestEthereumAccounts="requestEthereumAccounts",n.signEthereumMessage="signEthereumMessage",n.signEthereumTransaction="signEthereumTransaction",n.submitEthereumTransaction="submitEthereumTransaction",n.ethereumAddressFromSignedMessage="ethereumAddressFromSignedMessage",n.scanQRCode="scanQRCode",n.generic="generic",n.childRequestEthereumAccounts="childRequestEthereumAccounts",n.addEthereumChain="addEthereumChain",n.switchEthereumChain="switchEthereumChain",n.makeEthereumJSONRPCRequest="makeEthereumJSONRPCRequest",n.watchAsset="watchAsset",n.selectProvider="selectProvider"},96871:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Web3RequestCanceledMessage=void 0;let i=n(60540);t.Web3RequestCanceledMessage=function(e){return{type:i.RelayMessageType.WEB3_REQUEST_CANCELED,id:e}}},41937:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Web3RequestMessage=void 0;let i=n(60540);t.Web3RequestMessage=function(e){return Object.assign({type:i.RelayMessageType.WEB3_REQUEST},e)}},31835:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EthereumAddressFromSignedMessageResponse=t.SubmitEthereumTransactionResponse=t.SignEthereumTransactionResponse=t.SignEthereumMessageResponse=t.isRequestEthereumAccountsResponse=t.SelectProviderResponse=t.WatchAssetReponse=t.RequestEthereumAccountsResponse=t.SwitchEthereumChainResponse=t.AddEthereumChainResponse=t.isErrorResponse=void 0;let i=n(13334);t.isErrorResponse=function(e){return(null==e?void 0:e.method)!==void 0&&(null==e?void 0:e.errorMessage)!==void 0},t.AddEthereumChainResponse=function(e){return{method:i.Web3Method.addEthereumChain,result:e}},t.SwitchEthereumChainResponse=function(e){return{method:i.Web3Method.switchEthereumChain,result:e}},t.RequestEthereumAccountsResponse=function(e){return{method:i.Web3Method.requestEthereumAccounts,result:e}},t.WatchAssetReponse=function(e){return{method:i.Web3Method.watchAsset,result:e}},t.SelectProviderResponse=function(e){return{method:i.Web3Method.selectProvider,result:e}},t.isRequestEthereumAccountsResponse=function(e){return e&&e.method===i.Web3Method.requestEthereumAccounts},t.SignEthereumMessageResponse=function(e){return{method:i.Web3Method.signEthereumMessage,result:e}},t.SignEthereumTransactionResponse=function(e){return{method:i.Web3Method.signEthereumTransaction,result:e}},t.SubmitEthereumTransactionResponse=function(e){return{method:i.Web3Method.submitEthereumTransaction,result:e}},t.EthereumAddressFromSignedMessageResponse=function(e){return{method:i.Web3Method.ethereumAddressFromSignedMessage,result:e}}},3636:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWeb3ResponseMessage=t.Web3ResponseMessage=void 0;let i=n(60540);t.Web3ResponseMessage=function(e){return Object.assign({type:i.RelayMessageType.WEB3_RESPONSE},e)},t.isWeb3ResponseMessage=function(e){return e&&e.type===i.RelayMessageType.WEB3_RESPONSE}},30553:function(e,t,n){"use strict";
14Object.defineProperty(t,"__esModule",{value:!0}),t.decrypt=t.encrypt=void 0;let i=n(19088);async function encrypt(e,t){if(64!==t.length)throw Error("secret must be 256 bits");let n=crypto.getRandomValues(new Uint8Array(12)),o=await crypto.subtle.importKey("raw",(0,i.hexStringToUint8Array)(t),{name:"aes-gcm"},!1,["encrypt","decrypt"]),a=new TextEncoder,u=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:n},o,a.encode(e)),c=u.slice(u.byteLength-16),l=u.slice(0,u.byteLength-16),R=new Uint8Array(c),j=new Uint8Array(l),W=new Uint8Array([...n,...R,...j]);return(0,i.uint8ArrayToHex)(W)}t.encrypt=encrypt,t.decrypt=function(e,t){if(64!==t.length)throw Error("secret must be 256 bits");return new Promise((n,o)=>{!async function(){let a=await crypto.subtle.importKey("raw",(0,i.hexStringToUint8Array)(t),{name:"aes-gcm"},!1,["encrypt","decrypt"]),u=(0,i.hexStringToUint8Array)(e),c=u.slice(0,12),l=u.slice(12,28),R=u.slice(28),j=new Uint8Array([...R,...l]),W={name:"AES-GCM",iv:new Uint8Array(c)};try{let e=await window.crypto.subtle.decrypt(W,a,j),t=new TextDecoder;n(t.decode(e))}catch(e){o(e)}}()})}},27654:function(e,t){"use strict";var n;function OpaqueType(){return e=>e}Object.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=function(e){return Math.floor(e)},t.RegExpString=OpaqueType(),(n=t.ProviderType||(t.ProviderType={})).CoinbaseWallet="CoinbaseWallet",n.MetaMask="MetaMask",n.Unselected=""},19088:function(e,t,n){"use strict";var i=n(15313).Buffer,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),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 a=o(n(98394)),u=n(67905),c=n(17400),l=n(27654),R=/^[0-9]*$/,j=/^[a-f0-9]*$/;function uint8ArrayToHex(e){return[...e].map(e=>e.toString(16).padStart(2,"0")).join("")}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 j.test(t)}function ensureHexString(e,t=!1){if("string"==typeof e){let n=strip0x(e).toLowerCase();if(j.test(n))return(0,l.HexString)(t?"0x"+n:n)}throw c.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,l.HexString)("0"+n)),t?(0,l.HexString)("0x"+n):n}function ensureIntNumber(e){if("number"==typeof e&&Number.isInteger(e))return(0,l.IntNumber)(e);if("string"==typeof e){if(R.test(e))return(0,l.IntNumber)(Number(e));if(isHexString(e))return(0,l.IntNumber)(new a.default(ensureEvenLengthHexString(e,!1),16).toNumber())}throw c.standardErrors.rpc.invalidParams(`Not an integer: ${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}t.randomBytesHex=function(e){return uint8ArrayToHex(crypto.getRandomValues(new Uint8Array(e)))},t.uint8ArrayToHex=uint8ArrayToHex,t.hexStringToUint8Array=function(e){return new Uint8Array(e.match(/.{1,2}/g).map(e=>parseInt(e,16)))},t.hexStringFromBuffer=function(e,t=!1){let n=e.toString("hex");return(0,l.HexString)(t?"0x"+n:n)},t.bigIntStringFromBN=function(e){return(0,l.BigIntString)(e.toString(10))},t.intNumberFromHexString=function(e){return(0,l.IntNumber)(new a.default(ensureEvenLengthHexString(e,!1),16).toNumber())},t.hexStringFromIntNumber=function(e){return(0,l.HexString)("0x"+new a.default(e).toString(16))},t.has0xPrefix=has0xPrefix,t.strip0x=strip0x,t.prepend0x=prepend0x,t.isHexString=isHexString,t.ensureHexString=ensureHexString,t.ensureEvenLengthHexString=ensureEvenLengthHexString,t.ensureAddressString=function(e){if("string"==typeof e){let t=strip0x(e).toLowerCase();if(isHexString(t)&&40===t.length)return(0,l.AddressString)(prepend0x(t))}throw c.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(e)}`)},t.ensureBuffer=function(e){if(i.isBuffer(e))return e;if("string"==typeof e){if(!isHexString(e))return i.from(e,"utf8");{let t=ensureEvenLengthHexString(e,!1);return i.from(t,"hex")}}throw c.standardErrors.rpc.invalidParams(`Not binary data: ${String(e)}`)},t.ensureIntNumber=ensureIntNumber,t.ensureRegExpString=function(e){if(e instanceof RegExp)return(0,l.RegExpString)(e.toString());throw c.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(e)}`)},t.ensureBN=function(e){if(null!==e&&(a.default.isBN(e)||isBigNumber(e)))return new a.default(e.toString(10),10);if("number"==typeof e)return new a.default(ensureIntNumber(e));if("string"==typeof e){if(R.test(e))return new a.default(e,10);if(isHexString(e))return new a.default(ensureEvenLengthHexString(e,!1),16)}throw c.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)},t.ensureParsedJSONObject=function(e){if("string"==typeof e)return JSON.parse(e);if("object"==typeof e)return e;throw c.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(e)}`)},t.isBigNumber=isBigNumber,t.range=function(e,t){return Array.from({length:t-e},(t,n)=>e+n)},t.getFavicon=function(){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:")?null:i.startsWith("http://")||i.startsWith("https://")||i.startsWith("data:")?i:i.startsWith("//")?t+i:`${t}//${n}${i}`},t.createQrUrl=function(e,t,n,i,o,a){let c=(0,u.stringify)({[i?"parent-id":"id"]:e,secret:t,server:n,v:o,chainId:a}),l=`${n}/#/link?${c}`;return l},t.isInIFrame=function(){try{return null!==window.frameElement}catch(e){return!1}}},21975:function(e,t,n){var i=n(15313).Buffer;let o=n(44343),a=n(98394);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 o.isHexString(e)?new a(o.stripHexPrefix(e),16):new a(e,10);if("number"===t)return new a(e);if(e.toArray)return e;throw Error("Argument is not a number")}function encodeSingle(e,t){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((R=e).lastIndexOf("]")===R.length-1){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(l in c=[],e=e.slice(0,e.lastIndexOf("[")),"string"==typeof t&&(t=JSON.parse(t)),t)c.push(encodeSingle(e,t[l]));if("dynamic"===n){var n,u,c,l,R,j=encodeSingle("uint256",t.length);c.unshift(j)}return i.concat(c)}if("bytes"===e)return t=new i(t),c=i.concat([encodeSingle("uint256",t.length),t]),t.length%32!=0&&(c=i.concat([c,o.zeros(32-t.length%32)])),c;if(e.startsWith("bytes")){if((n=parseTypeN(e))<1||n>32)throw Error("Invalid bytes<N> width: "+n);return o.setLengthRight(t,32)}else if(e.startsWith("uint")){if((n=parseTypeN(e))%8||n<8||n>256)throw Error("Invalid uint<N> width: "+n);if((u=parseNumber(t)).bitLength()>n)throw Error("Supplied uint exceeds width: "+n+" vs "+u.bitLength());if(u<0)throw Error("Supplied uint is negative");return u.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((u=parseNumber(t)).bitLength()>n)throw Error("Supplied int exceeds width: "+n+" vs "+u.bitLength());return u.toTwos(256).toArrayLike(i,"be",32)}else if(e.startsWith("ufixed")){if(n=parseTypeNxM(e),(u=parseNumber(t))<0)throw Error("Supplied ufixed is negative");return encodeSingle("uint256",u.mul(new a(2).pow(new a(n[1]))))}else if(e.startsWith("fixed"))return n=parseTypeNxM(e),encodeSingle("int256",parseNumber(t).mul(new a(2).pow(new a(n[1]))));throw Error("Unsupported or invalid type: "+e)}function solidityPack(e,t){if(e.length!==t.length)throw Error("Number of types are not matching the values");for(var n,a,u=[],c=0;c<e.length;c++){var l=elementaryName(e[c]),R=t[c];if("bytes"===l)u.push(R);else if("string"===l)u.push(new i(R,"utf8"));else if("bool"===l)u.push(new i(R?"01":"00","hex"));else if("address"===l)u.push(o.setLength(R,20));else if(l.startsWith("bytes")){if((n=parseTypeN(l))<1||n>32)throw Error("Invalid bytes<N> width: "+n);u.push(o.setLengthRight(R,n))}else if(l.startsWith("uint")){if((n=parseTypeN(l))%8||n<8||n>256)throw Error("Invalid uint<N> width: "+n);if((a=parseNumber(R)).bitLength()>n)throw Error("Supplied uint exceeds width: "+n+" vs "+a.bitLength());u.push(a.toArrayLike(i,"be",n/8))}else if(l.startsWith("int")){if((n=parseTypeN(l))%8||n<8||n>256)throw Error("Invalid int<N> width: "+n);if((a=parseNumber(R)).bitLength()>n)throw Error("Supplied int exceeds width: "+n+" vs "+a.bitLength());u.push(a.toTwos(n).toArrayLike(i,"be",n/8))}else throw Error("Unsupported or invalid type: "+l)}return i.concat(u)}e.exports={rawEncode:function(e,t){var n=[],o=[],a=32*e.length;for(var u in e){var c=elementaryName(e[u]),l=encodeSingle(c,t[u]);"string"===c||"bytes"===c||"dynamic"===parseTypeArray(c)?(n.push(encodeSingle("uint256",a)),o.push(l),a+=l.length):n.push(l)}return i.concat(n.concat(o))},solidityPack,soliditySHA3:function(e,t){return o.keccak(solidityPack(e,t))}}},76539:function(e,t,n){var i=n(15313).Buffer;let o=n(44343),a=n(21975),u={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"]},c={encodeData(e,t,n,u=!0){let c=["bytes32"],l=[this.hashType(e,n)];if(u){let encodeField=(e,t,c)=>{if(void 0!==n[t])return["bytes32",null==c?"0x0000000000000000000000000000000000000000000000000000000000000000":o.keccak(this.encodeData(t,c,n,u))];if(void 0===c)throw Error(`missing value for field ${e} of type ${t}`);if("bytes"===t)return["bytes32",o.keccak(c)];if("string"===t)return"string"==typeof c&&(c=i.from(c,"utf8")),["bytes32",o.keccak(c)];if(t.lastIndexOf("]")===t.length-1){let n=t.slice(0,t.lastIndexOf("[")),i=c.map(t=>encodeField(e,n,t));return["bytes32",o.keccak(a.rawEncode(i.map(([e])=>e),i.map(([,e])=>e)))]}return[t,c]};for(let i of n[e]){let[e,n]=encodeField(i.name,i.type,t[i.name]);c.push(e),l.push(n)}}else for(let a of n[e]){let e=t[a.name];
14if(void 0!==e){if("bytes"===a.type)c.push("bytes32"),e=o.keccak(e),l.push(e);else if("string"===a.type)c.push("bytes32"),"string"==typeof e&&(e=i.from(e,"utf8")),e=o.keccak(e),l.push(e);else if(void 0!==n[a.type])c.push("bytes32"),e=o.keccak(this.encodeData(a.type,e,n,u)),l.push(e);else if(a.type.lastIndexOf("]")===a.type.length-1)throw Error("Arrays currently unimplemented in encodeData");else c.push(a.type),l.push(e)}}return a.rawEncode(c,l)},encodeType(e,t){let n="",i=this.findTypeDependencies(e,t).filter(t=>t!==e);for(let o of i=[e].concat(i.sort())){let e=t[o];if(!e)throw Error("No type definition specified: "+o);n+=o+"("+t[o].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 o.keccak(this.encodeData(e,t,n,i))},hashType(e,t){return o.keccak(this.encodeType(e,t))},sanitizeData(e){let t={};for(let n in u.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),a=[i.from("1901","hex")];return a.push(this.hashStruct("EIP712Domain",n.domain,n.types,t)),"EIP712Domain"!==n.primaryType&&a.push(this.hashStruct(n.primaryType,n.message,n.types,t)),o.keccak(i.concat(a))}};e.exports={TYPED_MESSAGE_SCHEMA:u,TypedDataUtils:c,hashForSignTypedDataLegacy:function(e){return function(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?o.toBuffer(e.value):e.value}),i=e.map(function(e){return e.type}),u=e.map(function(e){if(!e.name)throw t;return e.type+" "+e.name});return a.soliditySHA3(["bytes32","bytes32"],[a.soliditySHA3(Array(e.length).fill("string"),u),a.soliditySHA3(i,n)])}(e.data)},hashForSignTypedData_v3:function(e){return c.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return c.hash(e.data)}}},44343:function(e,t,n){var i=n(15313).Buffer;let o=n(18521),a=n(98394);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 toBuffer(e){if(!i.isBuffer(e)){if(Array.isArray(e))e=i.from(e);else if("string"==typeof e){var t;e=isHexString(e)?i.from((t=stripHexPrefix(e)).length%2?"0"+t:t,"hex"):i.from(e)}else if("number"==typeof e)e=intToBuffer(e);else if(null==e)e=i.allocUnsafe(0);else if(a.isBN(e))e=e.toArrayLike(i);else if(e.toArray)e=i.from(e.toArray());else throw Error("invalid type")}return 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:function(e,t){return setLength(e,t,!0)},isHexString,stripHexPrefix,toBuffer,bufferToHex:function(e){return"0x"+(e=toBuffer(e)).toString("hex")},keccak:function(e,t){return e=toBuffer(e),t||(t=256),o("keccak"+t).update(e).digest()}}},50887: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 o=[],a=this.data.charCodeAt(n);a>65536?(o[0]=240|(1835008&a)>>>18,o[1]=128|(258048&a)>>>12,o[2]=128|(4032&a)>>>6,o[3]=128|63&a):a>2048?(o[0]=224|(61440&a)>>>12,o[1]=128|(4032&a)>>>6,o[2]=128|63&a):a>128?(o[0]=192|(1984&a)>>>6,o[1]=128|63&a):o[0]=a,this.parsedData.push(o)}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=o.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 o=0;o<this.modules.length;o++)for(var a=1*o,u=0;u<this.modules[o].length;u++){var c=1*u;this.modules[o][u]&&(i.beginFill(0,100),i.moveTo(c,a),i.lineTo(c+1,a),i.lineTo(c+1,a+1),i.lineTo(c,a+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=o.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var n=0;n<e.length;n++){var i=e[t],a=e[n];if(null==this.modules[i][a])for(var u=-2;u<=2;u++)for(var c=-2;c<=2;c++)-2==u||2==u||-2==c||2==c||0==u&&0==c?this.modules[i+u][a+c]=!0:this.modules[i+u][a+c]=!1}},setupTypeNumber:function(e){for(var t=o.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=o.getBCHTypeInfo(n),a=0;a<15;a++){var u=!e&&(i>>a&1)==1;a<6?this.modules[a][8]=u:a<8?this.modules[a+1][8]=u:this.modules[this.moduleCount-15+a][8]=u}for(var a=0;a<15;a++){var u=!e&&(i>>a&1)==1;a<8?this.modules[8][this.moduleCount-a-1]=u:a<9?this.modules[8][15-a-1+1]=u:this.modules[8][15-a-1]=u}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var n=-1,i=this.moduleCount-1,a=7,u=0,c=this.moduleCount-1;c>0;c-=2)for(6==c&&c--;;){for(var l=0;l<2;l++)if(null==this.modules[i][c-l]){var R=!1;u<e.length&&(R=(e[u]>>>a&1)==1),o.getMask(t,i,c-l)&&(R=!R),this.modules[i][c-l]=R,-1==--a&&(u++,a=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),a=new QRBitBuffer,u=0;u<n.length;u++){var c=n[u];a.put(c.mode,4),a.put(c.getLength(),o.getLengthInBits(c.mode,e)),c.write(a)}for(var l=0,u=0;u<i.length;u++)l+=i[u].dataCount;if(a.getLengthInBits()>8*l)throw Error("code length overflow. ("+a.getLengthInBits()+">"+8*l+")");for(a.getLengthInBits()+4<=8*l&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=8*l)&&(a.put(QRCodeModel.PAD0,8),!(a.getLengthInBits()>=8*l));)a.put(QRCodeModel.PAD1,8);return QRCodeModel.createBytes(a,i)},QRCodeModel.createBytes=function(e,t){for(var n=0,i=0,a=0,u=Array(t.length),c=Array(t.length),l=0;l<t.length;l++){var R=t[l].dataCount,j=t[l].totalCount-R;i=Math.max(i,R),a=Math.max(a,j),u[l]=Array(R);for(var W=0;W<u[l].length;W++)u[l][W]=255&e.buffer[W+n];n+=R;var H=o.getErrorCorrectPolynomial(j),U=new QRPolynomial(u[l],H.getLength()-1).mod(H);c[l]=Array(H.getLength()-1);for(var W=0;W<c[l].length;W++){var J=W+U.getLength()-c[l].length;c[l][W]=J>=0?U.get(J):0}}for(var Q=0,W=0;W<t.length;W++)Q+=t[W].totalCount;for(var G=Array(Q),Z=0,W=0;W<i;W++)for(var l=0;l<t.length;l++)W<u[l].length&&(G[Z++]=u[l][W]);for(var W=0;W<a;W++)for(var l=0;l<t.length;l++)W<c[l].length&&(G[Z++]=c[l][W]);return G};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},o={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;
14o.getBCHDigit(t)-o.getBCHDigit(o.G15)>=0;)t^=o.G15<<o.getBCHDigit(t)-o.getBCHDigit(o.G15);return(e<<10|t)^o.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;o.getBCHDigit(t)-o.getBCHDigit(o.G18)>=0;)t^=o.G18<<o.getBCHDigit(t)-o.getBCHDigit(o.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return o.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,a.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 o=0;o<t;o++){for(var a=0,u=e.isDark(i,o),c=-1;c<=1;c++)if(!(i+c<0)&&!(t<=i+c))for(var l=-1;l<=1;l++)!(o+l<0)&&!(t<=o+l)&&(0!=c||0!=l)&&u==e.isDark(i+c,o+l)&&a++;a>5&&(n+=3+a-5)}for(var i=0;i<t-1;i++)for(var o=0;o<t-1;o++){var R=0;e.isDark(i,o)&&R++,e.isDark(i+1,o)&&R++,e.isDark(i,o+1)&&R++,e.isDark(i+1,o+1)&&R++,(0==R||4==R)&&(n+=3)}for(var i=0;i<t;i++)for(var o=0;o<t-6;o++)e.isDark(i,o)&&!e.isDark(i,o+1)&&e.isDark(i,o+2)&&e.isDark(i,o+3)&&e.isDark(i,o+4)&&!e.isDark(i,o+5)&&e.isDark(i,o+6)&&(n+=40);for(var o=0;o<t;o++)for(var i=0;i<t-6;i++)e.isDark(i,o)&&!e.isDark(i+1,o)&&e.isDark(i+2,o)&&e.isDark(i+3,o)&&e.isDark(i+4,o)&&!e.isDark(i+5,o)&&e.isDark(i+6,o)&&(n+=40);for(var j=0,o=0;o<t;o++)for(var i=0;i<t;i++)e.isDark(i,o)&&j++;return n+10*(Math.abs(100*j/t/t-50)/5)}},a={glog:function(e){if(e<1)throw Error("glog("+e+")");return a.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return a.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},u=0;u<8;u++)a.EXP_TABLE[u]=1<<u;for(var u=8;u<256;u++)a.EXP_TABLE[u]=a.EXP_TABLE[u-4]^a.EXP_TABLE[u-5]^a.EXP_TABLE[u-6]^a.EXP_TABLE[u-8];for(var u=0;u<255;u++)a.LOG_TABLE[a.EXP_TABLE[u]]=u;function 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]^=a.gexp(a.glog(this.get(n))+a.glog(e.get(i)));return new QRPolynomial(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=a.glog(this.get(0))-a.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]^=a.gexp(a.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
14],[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,o=[],a=0;a<i;a++)for(var u=n[3*a+0],c=n[3*a+1],l=n[3*a+2],R=0;R<u;R++)o.push(new QRRSBlock(c,l));return o},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 c=[[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!");var i=this.options.content,o=function(e,t){for(var n,i=(n=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a")).length+(n.length!=e?3:0),o=1,a=0,u=0,l=c.length;u<=l;u++){var R=c[u];if(!R)throw Error("Content too long: expected "+a+" but got "+i);switch(t){case"L":a=R[0];break;case"M":a=R[1];break;case"Q":a=R[2];break;case"H":a=R[3];break;default:throw Error("Unknwon error correction level: "+t)}if(i<=a)break;o++}if(o>c.length)throw Error("Content too long");return o}(i,this.options.ecl),a=function(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)}}(this.options.ecl);this.qrcode=new QRCodeModel(o,a),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,o=i?"  ":"",a=i?"\r\n":"",u=t.width,c=t.height,l=n.length,R=u/(l+2*t.padding),j=c/(l+2*t.padding),W=void 0!==t.join&&!!t.join,H=void 0!==t.swap&&!!t.swap,U=void 0===t.xmlDeclaration||!!t.xmlDeclaration,J=void 0!==t.predefined&&!!t.predefined,Q=J?o+'<defs><path id="qrmodule" d="M0 0 h'+j+" v"+R+' H0 z" style="fill:'+t.color+';shape-rendering:crispEdges;" /></defs>'+a:"",G=o+'<rect x="0" y="0" width="'+u+'" height="'+c+'" style="fill:'+t.background+';shape-rendering:crispEdges;"/>'+a,Z="",Y="",K=0;K<l;K++)for(var X=0;X<l;X++)if(n[X][K]){var ee=X*R+t.padding*R,et=K*j+t.padding*j;if(H){var er=ee;ee=et,et=er}if(W){var en=R+ee,ei=j+et;ee=Number.isInteger(ee)?Number(ee):ee.toFixed(2),et=Number.isInteger(et)?Number(et):et.toFixed(2),en=Number.isInteger(en)?Number(en):en.toFixed(2),Y+="M"+ee+","+et+" V"+(ei=Number.isInteger(ei)?Number(ei):ei.toFixed(2))+" H"
14+en+" V"+et+" H"+ee+" Z "}else J?Z+=o+'<use x="'+ee.toString()+'" y="'+et.toString()+'" href="#qrmodule" />'+a:Z+=o+'<rect x="'+ee.toString()+'" y="'+et.toString()+'" width="'+R+'" height="'+j+'" style="fill:'+t.color+';shape-rendering:crispEdges;"/>'+a}W&&(Z=o+'<path x="0" y="0" style="fill:'+t.color+';shape-rendering:crispEdges;" d="'+Y+'" />');let es="";if(void 0!==this.options.image&&this.options.image.svg){let e=u*this.options.image.width/100,t=c*this.options.image.height/100;es+=`<svg x="${u/2-e/2}" y="${c/2-t/2}" width="${e}" height="${t}" viewBox="0 0 100 100" preserveAspectRatio="xMinYMin meet">`+(this.options.image.svg+a)+"</svg>"}var eo="";switch(e.container){case"svg":U&&(eo+='<?xml version="1.0" standalone="yes"?>'+a),eo+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="'+u+'" height="'+c+'">'+a+(Q+G+Z)+es+"</svg>";break;case"svg-viewbox":U&&(eo+='<?xml version="1.0" standalone="yes"?>'+a),eo+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 '+u+" "+c+'">'+a+(Q+G+Z)+es+"</svg>";break;case"g":eo+='<g width="'+u+'" height="'+c+'">'+a+(Q+G+Z)+es+"</g>";break;default:eo+=(Q+G+Z+es).replace(/^\s+/,"")}return eo},e.exports=QRCode},71499:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LIB_VERSION=void 0,t.LIB_VERSION="3.7.2"},35247:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=n(47324);function safeApply(e,t,n){try{Reflect.apply(e,t,n)}catch(e){setTimeout(()=>{throw e})}}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 o=i[e];if(void 0===o)return!1;if("function"==typeof o)safeApply(o,this,t);else{let e=o.length,n=function(e){let t=e.length,n=Array(t);for(let i=0;i<t;i+=1)n[i]=e[i];return n}(o);for(let i=0;i<e;i+=1)safeApply(n[i],this,t)}return!0}};t.default=SafeEventEmitter},15393: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(78341);function getError(e,t){var n,i;return"string"==typeof(null===(i=null===(n=null==e?void 0:e.prototype)||void 0===n?void 0:n.constructor)||void 0===i?void 0:i.name)?new e({message:t}):e({message:t})}let AssertionError=class AssertionError extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}};t.AssertionError=AssertionError,t.assert=function(e,t="Assertion failed.",n=AssertionError){if(!e){if(t instanceof Error)throw t;throw getError(n,t)}},t.assertStruct=function(e,t,n="Assertion failed",o=AssertionError){try{(0,i.assert)(e,t)}catch(e){throw getError(o,`${n}: ${function(e){let t="object"==typeof e&&null!==e&&"message"in e?e.message:String(e);return t.endsWith(".")?t.slice(0,-1):t}(e)}.`)}},t.assertExhaustive=function(e){throw Error("Invalid branch reached. Should be detected during compilation.")}},69888:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.base64=void 0;let i=n(78341),o=n(15393);t.base64=(e,t={})=>{var n,a;let u,c;let l=null!==(n=t.paddingRequired)&&void 0!==n&&n,R=null!==(a=t.characterSet)&&void 0!==a?a:"base64";return"base64"===R?u=String.raw`[A-Za-z0-9+\/]`:((0,o.assert)("base64url"===R),u=String.raw`[-_A-Za-z0-9]`),c=l?RegExp(`^(?:${u}{4})*(?:${u}{3}=|${u}{2}==)?$`,"u"):RegExp(`^(?:${u}{4})*(?:${u}{2,3}|${u}{3}=|${u}{2}==)?$`,"u"),(0,i.pattern)(e,c)}},85870:function(e,t,n){"use strict";var i=n(15313).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 o=n(15393),a=n(10771),u=function(){let e=[];return()=>{if(0===e.length)for(let t=0;t<256;t++)e.push(t.toString(16).padStart(2,"0"));return e}}();function isBytes(e){return e instanceof Uint8Array}function assertIsBytes(e){(0,o.assert)(isBytes(e),"Value must be a Uint8Array.")}function bytesToHex(e){if(assertIsBytes(e),0===e.length)return"0x";let t=u(),n=Array(e.length);for(let i=0;i<e.length;i++)n[i]=t[e[i]];return(0,a.add0x)(n.join(""))}function bytesToBigInt(e){assertIsBytes(e);let t=bytesToHex(e);return BigInt(t)}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,a.assertIsHexString)(e);let n=(0,a.remove0x)(e).toLowerCase(),i=n.length%2==0?n:`0${n}`,o=new Uint8Array(i.length/2);for(let e=0;e<o.length;e++){let t=i.charCodeAt(2*e),n=i.charCodeAt(2*e+1),a=t-(t<58?48:87),u=n-(n<58?48:87);o[e]=16*a+u}return o}function bigIntToBytes(e){(0,o.assert)("bigint"==typeof e,"Value must be a bigint."),(0,o.assert)(e>=BigInt(0),"Value must be a non-negative bigint.");let t=e.toString(16);return hexToBytes(t)}function numberToBytes(e){(0,o.assert)("number"==typeof e,"Value must be a number."),(0,o.assert)(e>=0,"Value must be a non-negative number."),(0,o.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,o.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}".`)}t.isBytes=isBytes,t.assertIsBytes=assertIsBytes,t.bytesToHex=bytesToHex,t.bytesToBigInt=bytesToBigInt,t.bytesToSignedBigInt=function(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)},t.bytesToNumber=function(e){assertIsBytes(e);let t=bytesToBigInt(e);return(0,o.assert)(t<=BigInt(Number.MAX_SAFE_INTEGER),"Number is not a safe integer. Use `bytesToBigInt` instead."),Number(t)},t.bytesToString=function(e){return assertIsBytes(e),new TextDecoder().decode(e)},t.hexToBytes=hexToBytes,t.bigIntToBytes=bigIntToBytes,t.signedBigIntToBytes=function(e,t){(0,o.assert)("bigint"==typeof e,"Value must be a bigint."),(0,o.assert)("number"==typeof t,"Byte length must be a number."),(0,o.assert)(t>0,"Byte length must be greater than 0."),(0,o.assert)(function(e,t){(0,o.assert)(t>0);let n=e>>BigInt(31);return!((~e&n)+(e&~n)>>BigInt(8*t+-1))}(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()},t.numberToBytes=numberToBytes,t.stringToBytes=stringToBytes,t.valueToBytes=valueToBytes,t.concatBytes=function(e){let t=Array(e.length),n=0;for(let i=0;i<e.length;i++){let o=valueToBytes(e[i]);t[i]=o,n+=o.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},t.createDataView=function(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)}},57934:function(e,t,n){"use strict";
14Object.defineProperty(t,"__esModule",{value:!0}),t.ChecksumStruct=void 0;let i=n(78341),o=n(69888);t.ChecksumStruct=(0,i.size)((0,o.base64)((0,i.string)(),{paddingRequired:!0}),44,44)},52e3: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(78341),o=n(15393),a=n(85870),u=n(10771),c=(0,i.union)([(0,i.number)(),(0,i.bigint)(),(0,i.string)(),u.StrictHexStruct]),l=(0,i.coerce)((0,i.number)(),c,Number),R=(0,i.coerce)((0,i.bigint)(),c,BigInt);(0,i.union)([u.StrictHexStruct,(0,i.instance)(Uint8Array)]);let j=(0,i.coerce)((0,i.instance)(Uint8Array),(0,i.union)([u.StrictHexStruct]),a.hexToBytes),W=(0,i.coerce)(u.StrictHexStruct,(0,i.instance)(Uint8Array),a.bytesToHex);t.createNumber=function(e){try{let t=(0,i.create)(e,l);return(0,o.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}},t.createBigInt=function(e){try{return(0,i.create)(e,R)}catch(e){if(e instanceof i.StructError)throw Error(`Expected a number-like value, got "${String(e.value)}".`);throw e}},t.createBytes=function(e){if("string"==typeof e&&"0x"===e.toLowerCase())return new Uint8Array;try{return(0,i.create)(e,j)}catch(e){if(e instanceof i.StructError)throw Error(`Expected a bytes-like value, got "${String(e.value)}".`);throw e}},t.createHex=function(e){if(e instanceof Uint8Array&&0===e.length||"string"==typeof e&&"0x"===e.toLowerCase())return"0x";try{return(0,i.create)(e,W)}catch(e){if(e instanceof i.StructError)throw Error(`Expected a bytes-like value, got "${String(e.value)}".`);throw e}}},80890:function(e,t){"use strict";var n,i,o=this&&this.__classPrivateFieldSet||function(e,t,n,i,o){if("m"===i)throw TypeError("Private method is not writable");if("a"===i&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?o.call(e,n):o?o.value=n:t.set(e,n),n},a=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),o(this,n,new Map(e),"f"),Object.freeze(this)}get size(){return a(this,n,"f").size}[(n=new WeakMap,Symbol.iterator)](){return a(this,n,"f")[Symbol.iterator]()}entries(){return a(this,n,"f").entries()}forEach(e,t){return a(this,n,"f").forEach((n,i,o)=>e.call(t,n,i,this))}get(e){return a(this,n,"f").get(e)}has(e){return a(this,n,"f").has(e)}keys(){return a(this,n,"f").keys()}values(){return a(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),o(this,i,new Set(e),"f"),Object.freeze(this)}get size(){return a(this,i,"f").size}[(i=new WeakMap,Symbol.iterator)](){return a(this,i,"f")[Symbol.iterator]()}entries(){return a(this,i,"f").entries()}forEach(e,t){return a(this,i,"f").forEach((n,i,o)=>e.call(t,n,i,this))}has(e){return a(this,i,"f").has(e)}keys(){return a(this,i,"f").keys()}values(){return a(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)},10771:function(e,t,n){"use strict";Object.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(78341),o=n(15393);function isHexString(e){return(0,i.is)(e,t.HexStruct)}function isStrictHexString(e){return(0,i.is)(e,t.StrictHexStruct)}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=function(e){(0,o.assert)(isHexString(e),"Value must be a hexadecimal string.")},t.assertIsStrictHexString=function(e){(0,o.assert)(isStrictHexString(e),'Value must be a hexadecimal string, starting with "0x".')},t.add0x=function(e){return e.startsWith("0x")?e:e.startsWith("0X")?`0x${e.substring(2)}`:`0x${e}`},t.remove0x=function(e){return e.startsWith("0x")||e.startsWith("0X")?e.substring(2):e}},37375:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);
14(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),o=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}),o(n(15393),t),o(n(69888),t),o(n(85870),t),o(n(57934),t),o(n(52e3),t),o(n(80890),t),o(n(10771),t),o(n(16477),t),o(n(49547),t),o(n(99190),t),o(n(66513),t),o(n(70185),t),o(n(26857),t),o(n(11154),t)},16477:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateJsonAndGetSize=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.isValidJson=t.JsonStruct=void 0;let i=n(78341),o=n(15393),a=n(99190);function validateJsonAndGetSize(e,t=!1){let n=new Set;return function getJsonSerializableInfo(e,t){if(void 0===e)return[!1,0];if(null===e)return[!0,t?0:a.JsonSize.Null];let i=typeof e;try{if("function"===i)return[!1,0];if("string"===i||e instanceof String)return[!0,t?0:(0,a.calculateStringSize)(e)+2*a.JsonSize.Quote];if("boolean"===i||e instanceof Boolean){if(t)return[!0,0];return[!0,!0==e?a.JsonSize.True:a.JsonSize.False]}if("number"===i||e instanceof Number){if(t)return[!0,0];return[!0,(0,a.calculateNumberSize)(e)]}else if(e instanceof Date){if(t)return[!0,0];return[!0,isNaN(e.getDate())?a.JsonSize.Null:a.JsonSize.Date+2*a.JsonSize.Quote]}}catch(e){return[!1,0]}if(!(0,a.isPlainObject)(e)&&!Array.isArray(e)||n.has(e))return[!1,0];n.add(e);try{return[!0,Object.entries(e).reduce((i,[o,u],c,l)=>{let[R,j]=getJsonSerializableInfo(u,t);if(!R)throw Error("JSON validation did not pass. Validation process stopped.");if(n.delete(e),t)return 0;let W=Array.isArray(e)?0:o.length+a.JsonSize.Comma+2*a.JsonSize.Colon,H=c<l.length-1?a.JsonSize.Comma:0;return i+W+j+H},t?0:2*a.JsonSize.Wrapper)]}catch(e){return[!1,0]}}(e,t)}t.JsonStruct=(0,i.define)("Json",e=>{let[t]=validateJsonAndGetSize(e,!0);return!!t||"Expected a valid JSON-serializable value"}),t.isValidJson=function(e){return(0,i.is)(e,t.JsonStruct)},t.jsonrpc2="2.0",t.JsonRpcVersionStruct=(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=function(e){return(0,i.is)(e,t.JsonRpcNotificationStruct)},t.assertIsJsonRpcNotification=function(e,n){(0,o.assertStruct)(e,t.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",n)},t.isJsonRpcRequest=function(e){return(0,i.is)(e,t.JsonRpcRequestStruct)},t.assertIsJsonRpcRequest=function(e,n){(0,o.assertStruct)(e,t.JsonRpcRequestStruct,"Invalid JSON-RPC request",n)},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=function(e){return(0,i.is)(e,t.PendingJsonRpcResponseStruct)},t.assertIsPendingJsonRpcResponse=function(e,n){(0,o.assertStruct)(e,t.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",n)},t.isJsonRpcResponse=function(e){return(0,i.is)(e,t.JsonRpcResponseStruct)},t.assertIsJsonRpcResponse=function(e,n){(0,o.assertStruct)(e,t.JsonRpcResponseStruct,"Invalid JSON-RPC response",n)},t.isJsonRpcSuccess=function(e){return(0,i.is)(e,t.JsonRpcSuccessStruct)},t.assertIsJsonRpcSuccess=function(e,n){(0,o.assertStruct)(e,t.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",n)},t.isJsonRpcFailure=function(e){return(0,i.is)(e,t.JsonRpcFailureStruct)},t.assertIsJsonRpcFailure=function(e,n){(0,o.assertStruct)(e,t.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",n)},t.isJsonRpcError=function(e){return(0,i.is)(e,t.JsonRpcErrorStruct)},t.assertIsJsonRpcError=function(e,n){(0,o.assertStruct)(e,t.JsonRpcErrorStruct,"Invalid JSON-RPC error",n)},t.getJsonRpcIdValidator=function(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.validateJsonAndGetSize=validateJsonAndGetSize},49547:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esMo
14dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createModuleLogger=t.createProjectLogger=void 0;let o=i(n(95146)),a=(0,o.default)("metamask");t.createProjectLogger=function(e){return a.extend(e)},t.createModuleLogger=function(e,t){return e.extend(t)}},99190:function(e,t){"use strict";var n;function isASCII(e){return 127>=e.charCodeAt(0)}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=function(e){return Array.isArray(e)&&e.length>0},t.isNullOrUndefined=function(e){return null==e},t.isObject=function(e){return!!e&&"object"==typeof e&&!Array.isArray(e)},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=function(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}},t.isASCII=isASCII,t.calculateStringSize=function(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},t.calculateNumberSize=function(e){return e.toString().length}},66513: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(15393),o=n(10771);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,o.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,o.add0x)(e.toString(16))),t.hexToNumber=e=>{(0,o.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,o.assertIsHexString)(e),BigInt((0,o.add0x)(e)))},70185:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},26857: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}".`)};t.inMilliseconds=function(e,t){return assertIsNonNegativeInteger(e,"count"),e*t},t.timeSince=function(e){return assertIsNonNegativeInteger(e,"timestamp"),Date.now()-e}},11154: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(50595),o=n(78341),a=n(15393);t.VersionStruct=(0,o.refine)((0,o.string)(),"Version",e=>null!==(0,i.valid)(e)||`Expected SemVer version, got "${e}"`),t.VersionRangeStruct=(0,o.refine)((0,o.string)(),"Version range",e=>null!==(0,i.validRange)(e)||`Expected SemVer range, got "${e}"`),t.isValidSemVerVersion=function(e){return(0,o.is)(e,t.VersionStruct)},t.isValidSemVerRange=function(e){return(0,o.is)(e,t.VersionRangeStruct)},t.assertIsSemVerVersion=function(e){(0,a.assertStruct)(e,t.VersionStruct)},t.assertIsSemVerRange=function(e){(0,a.assertStruct)(e,t.VersionRangeStruct)},t.gtVersion=function(e,t){return(0,i.gt)(e,t)},t.gtRange=function(e,t){return(0,i.gtr)(e,t)},t.satisfiesVersionRange=function(e,t){return(0,i.satisfies)(e,t,{includePrerelease:!0})}},23616:function(e,t,n){"use strict";
14Object.defineProperty(t,"__esModule",{value:!0});var i=n(43112),o=n(4872),a=function(){function Mutex(){this._semaphore=new o.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=a},4872:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(43112),o=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,o;return i.__generator(this,function(i){switch(i.label){case 0:return[4,this.acquire()];case 1:n=(t=i.sent())[0],o=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 o(),[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=o},11710:function(e,t,n){"use strict";t.WU=void 0;var i=n(23616);Object.defineProperty(t,"WU",{enumerable:!0,get:function(){return i.default}}),n(4872),n(90061)},90061:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withTimeout=void 0;var i=n(43112);t.withTimeout=function(e,t,n){var o=this;return void 0===n&&(n=Error("timeout")),{acquire:function(){return new Promise(function(a,u){return i.__awaiter(o,void 0,void 0,function(){var o,c;return i.__generator(this,function(i){switch(i.label){case 0:return o=!1,setTimeout(function(){o=!0,u(n)},t),[4,e.acquire()];case 1:return c=i.sent(),o?(Array.isArray(c)?c[1]:c)():a(c),[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()}}}},82237:function(e,t){"use strict";var n,i;function bind(e,t,i){if(!i||typeof i.value!==n.typeOfFunction)throw TypeError("Only methods can be decorated with @bind. <"+t+"> is not a method!");return{configurable:n.boolTrue,get:function(){var e=i.value.bind(this);return Object.defineProperty(this,t,{value:e,configurable:n.boolTrue,writable:n.boolTrue}),e}}}Object.defineProperty(t,"__esModule",{value:!0}),(i=n||(n={})).typeOfFunction="function",i.boolTrue=!0,t.bind=bind,t.default=bind},27831: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 o=i(n(35247)),calculateSum=(e,t)=>e+t,a=["sync","latest"];let BaseBlockTracker=class BaseBlockTracker extends o.default{constructor(e){super(),this._blockResetDuration=e.blockResetDuration||2e4,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){a.includes(e)&&this._maybeStart()}
14_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 a.map(e=>this.listenerCount(e)).reduce(calculateSum)}_newPotentialLatest(e){let t=this._currentBlock;t&&hexToInt(e)<=hexToInt(t)||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},98892: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 o=i(n(85350)),a=i(n(30115)),u=n(27831),c=n(73672),l=(0,c.createModuleLogger)(c.projectLogger,"polling-block-tracker"),R=(0,o.default)();let PollingBlockTracker=class PollingBlockTracker extends u.BaseBlockTracker{constructor(e={}){var t;if(!e.provider)throw Error("PollingBlockTracker - no provider specified.");super({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);this.emit("_waitingForNextIteration"),await e}catch(i){let t=Error(`PollingBlockTracker - encountered an error while attempting to update latest block:
15${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:R(),method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(e.skipCache=!0),l("Making request",e);let t=await (0,a.default)(t=>this._provider.sendAsync(e,t))();if(l("Got response",t),t.error)throw Error(`PollingBlockTracker - encountered error fetching block:
16${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},76419: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 o=i(n(85350)),a=n(27831),u=(0,o.default)();let SubscribeBlockTracker=class SubscribeBlockTracker extends a.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()}
16async _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:u(),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},28196: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]}),o=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}),o(n(98892),t),o(n(76419),t),o(n(50434),t)},73672:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createModuleLogger=t.projectLogger=void 0;let i=n(37375);Object.defineProperty(t,"createModuleLogger",{enumerable:!0,get:function(){return i.createModuleLogger}}),t.projectLogger=(0,i.createProjectLogger)("eth-block-tracker")},50434:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},94744:function(e,t,n){let i=n(76941);e.exports=class 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}}},76941:function(e,t,n){let i=n(35247).default;e.exports=class 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}}},32785:function(e,t,n){let i=n(76941),o=n(68850),{incrementHexInt:a}=n(20238);e.exports=class extends i{constructor({provider:e,params:t}){super(),this.type="block",this.provider=e}async update({oldBlock:e,newBlock:t}){let n=a(e),i=await o({provider:this.provider,fromBlock:n,toBlock:t}),u=i.map(e=>e.hash);this.addResults(u)}}},68850:function(e){async function getBlocksForRange({provider:e,fromBlock:t,toBlock:n}){t||(t=n);let i=hexToInt(t),o=hexToInt(n),a=o-i+1,u=Array(a).fill().map((e,t)=>i+t).map(intToHex),c=await Promise.all(u.map(t=>query(e,"eth_getBlockByNumber",[t,!1])));return c}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}async function query(e,t,n){for(let i=0;i<3;i++)try{return await function(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"))})})}(e,{id:1,jsonrpc:"2.0",method:t,params:n})}catch(e){console.error(`provider.sendAsync failed: ${e.stack||e.message||e}`)}throw Error(`Block not found for params: ${JSON.stringify(n)}`)}e.exports=getBlocksForRange},20238:function(e){function sortBlockRefs(e){return e.sort((e,t)=>"latest"===e||"earliest"===t?1:"latest"===t||"earliest"===e?-1:hexToInt(e)-hexToInt(t))}function hexToInt(e){return null==e?e:Number.parseInt(e,16)}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 unsafeRandomNibble(){return Math.floor(16*Math.random()).toString(16)}e.exports={minBlockRef:function(...e){let t=sortBlockRefs(e);return t[0]},maxBlockRef:function(...e){let t=sortBlockRefs(e);return t[t.length-1]},sortBlockRefs,bnToHex:function(e){return"0x"+e.toString(16)},blockRefIsNumber:function(e){return e&&!["earliest","latest","pending"].includes(e)},hexToInt,incrementHexInt:function(e){if(null==e)return e;let t=hexToInt(e);return intToHex(t+1)},intToHex,unsafeRandomBytes:function(e){let t="0x";for(let n=0;n<e;n++)t+=unsafeRandomNibble()+unsafeRandomNibble();return t}}},98135:function(e,t,n){let i=n(11710).WU,{createAsyncMiddleware:o,createScaffoldMiddleware:a}=n(91743),u=n(29916),c=n(32785),l=n(16636),{intToHex:R,hexToInt:j}=n(20238);function toFilterCreationMiddleware(e){return toAsyncRpcMiddleware(async(...t)=>{let n=await e(...t),i=R(n.id);return i})}function toAsyncRpcMiddleware(e){return o(async(t,n)=>{let i=await e.apply(null,t.params);n.result=i})}function objValues(e,t){let n=[];for(let t in e)n.push(e[t]);return n}
16e.exports=function({blockTracker:e,provider:t}){let n=0,o={},W=new i,H=function({mutex:e}){return t=>async(n,i,o,a)=>{let u=await e.acquire();u(),t(n,i,o,a)}}({mutex:W}),U=a({eth_newFilter:H(toFilterCreationMiddleware(newLogFilter)),eth_newBlockFilter:H(toFilterCreationMiddleware(newBlockFilter)),eth_newPendingTransactionFilter:H(toFilterCreationMiddleware(newPendingTransactionFilter)),eth_uninstallFilter:H(toAsyncRpcMiddleware(uninstallFilterHandler)),eth_getFilterChanges:H(toAsyncRpcMiddleware(getFilterChanges)),eth_getFilterLogs:H(toAsyncRpcMiddleware(getFilterLogs))}),filterUpdater=async({oldBlock:e,newBlock:t})=>{if(0===o.length)return;let n=await W.acquire();try{await Promise.all(objValues(o).map(async n=>{try{await n.update({oldBlock:e,newBlock:t})}catch(e){console.error(e)}}))}catch(e){console.error(e)}n()};return U.newLogFilter=newLogFilter,U.newBlockFilter=newBlockFilter,U.newPendingTransactionFilter=newPendingTransactionFilter,U.uninstallFilter=uninstallFilterHandler,U.getFilterChanges=getFilterChanges,U.getFilterLogs=getFilterLogs,U.destroy=()=>{uninstallAllFilters()},U;async function newLogFilter(e){let n=new u({provider:t,params:e});return await installFilter(n),n}async function newBlockFilter(){let e=new c({provider:t});return await installFilter(e),e}async function newPendingTransactionFilter(){let e=new l({provider:t});return await installFilter(e),e}async function getFilterChanges(e){let t=j(e),n=o[t];if(!n)throw Error(`No filter for index "${t}"`);let i=n.getChangesAndClear();return i}async function getFilterLogs(e){let t=j(e),n=o[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=j(e),n=o[t],i=!!n;return i&&await uninstallFilter(t),i}async function installFilter(t){let i=objValues(o).length,a=await e.getLatestBlock();await t.initialize({currentBlock:a}),o[++n]=t,t.id=n,t.idHex=R(n);let u=objValues(o).length;return updateBlockTrackerSubs({prevFilterCount:i,newFilterCount:u}),n}async function uninstallFilter(e){let t=objValues(o).length;delete o[e];let n=objValues(o).length;updateBlockTrackerSubs({prevFilterCount:t,newFilterCount:n})}async function uninstallAllFilters(){let e=objValues(o).length;o={},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}}}},29916:function(e,t,n){let i=n(25156),o=n(51636),a=n(94744),{bnToHex:u,hexToInt:c,incrementHexInt:l,minBlockRef:R,blockRefIsNumber:j}=n(20238);e.exports=class extends a{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=R(this.params.toBlock,e),i=Object.assign({},this.params,{toBlock:n}),o=await this._fetchLogs(i);this.addInitialResults(o)}async update({oldBlock:e,newBlock:t}){let n;n=e?l(e):t;let i=Object.assign({},this.params,{fromBlock:n,toBlock:t}),o=await this._fetchLogs(i),a=o.filter(e=>this.matchLog(e));this.addResults(a)}async _fetchLogs(e){let t=await o(t=>this.ethQuery.getLogs(e,t))();return t}matchLog(e){if(c(this.params.fromBlock)>=c(e.blockNumber)||j(this.params.toBlock)&&c(this.params.toBlock)<=c(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 o=Array.isArray(t)?t:[t],a=o.includes(null);if(a)return!0;o=o.map(e=>e.toLowerCase());let u=o.includes(i);return u});return n}}},19380:function(e,t,n){let i=n(35247).default,{createAsyncMiddleware:o,createScaffoldMiddleware:a}=n(91743),u=n(98135),{unsafeRandomBytes:c,incrementHexInt:l}=n(20238),R=n(68850);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
16it:e.gasLimit,gasUsed:e.gasUsed,nonce:e.nonce,mixHash:e.mixHash,timestamp:e.timestamp,extraData:e.extraData}}e.exports=function({blockTracker:e,provider:t}){let n={},j=u({blockTracker:e,provider:t}),W=!1,H=new i,U=a({eth_subscribe:o(subscribe),eth_unsubscribe:o(unsubscribe)});return U.destroy=function(){for(let e in H.removeAllListeners(),n)n[e].destroy(),delete n[e];W=!0},{events:H,middleware:U};async function subscribe(i,o){let a;if(W)throw Error("SubscriptionManager - attempting to use after destroying");let u=i.params[0],H=c(16);switch(u){case"newHeads":a=function({subId:n}){let i={type:u,destroy:async()=>{e.removeListener("sync",i.update)},update:async({oldBlock:e,newBlock:i})=>{let o=l(e),a=await R({provider:t,fromBlock:o,toBlock:i}),u=a.map(normalizeBlock).filter(e=>null!==e);u.forEach(e=>{_emitSubscriptionResult(n,e)})}};return e.on("sync",i.update),i}({subId:H});break;case"logs":let U=i.params[1],J=await j.newLogFilter(U);a=function({subId:e,filter:t}){return t.on("update",t=>_emitSubscriptionResult(e,t)),{type:u,destroy:async()=>await j.uninstallFilter(t.idHex)}}({subId:H,filter:J});break;default:throw Error(`SubscriptionManager - unsupported subscription type "${u}"`)}n[H]=a,o.result=H}async function unsubscribe(e,t){if(W)throw Error("SubscriptionManager - attempting to use after destroying");let i=e.params[0],o=n[i];if(!o){t.result=!1;return}delete n[i],await o.destroy(),t.result=!0}function _emitSubscriptionResult(e,t){H.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:e,result:t}})}}},16636:function(e,t,n){let i=n(76941),o=n(68850),{incrementHexInt:a}=n(20238);e.exports=class extends i{constructor({provider:e}){super(),this.type="tx",this.provider=e}async update({oldBlock:e}){let t=a(e),n=await o({provider:this.provider,fromBlock:t,toBlock:e}),i=[];for(let e of n)i.push(...e.transactions);this.addResults(i)}}},25156:function(e,t,n){let i=n(31693),o=n(85350)();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)}}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(i({id:o(),jsonrpc:"2.0",params:[]},e),function(e,n){if(!e&&n.error&&(e=Error("EthQuery - RPC Error - "+n.error.message)),e)return t(e);t(null,n.result)})}},65753:function(e,t,n){"use strict";
16Object.defineProperty(t,"__esModule",{value:!0}),t.EthereumProviderError=t.EthereumRpcError=void 0;let i=n(4329);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)}};function stringifyReplacer(e,t){if("[Circular]"!==t)return t}t.EthereumRpcError=EthereumRpcError,t.EthereumProviderError=class extends EthereumRpcError{constructor(e,t,n){if(!(Number.isInteger(e)&&e>=1e3&&e<=4999))throw Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}}},84358: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."}}},86917:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ethErrors=void 0;let i=n(65753),o=n(43245),a=n(84358);function getEthJsonRpcError(e,t){let[n,a]=parseOpts(t);return new i.EthereumRpcError(e,n||o.getMessageFromCode(e),a)}function getEthProviderError(e,t){let[n,a]=parseOpts(t);return new i.EthereumProviderError(e,n||o.getMessageFromCode(e),a)}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(a.errorCodes.rpc.parse,e),invalidRequest:e=>getEthJsonRpcError(a.errorCodes.rpc.invalidRequest,e),invalidParams:e=>getEthJsonRpcError(a.errorCodes.rpc.invalidParams,e),methodNotFound:e=>getEthJsonRpcError(a.errorCodes.rpc.methodNotFound,e),internal:e=>getEthJsonRpcError(a.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 
16<= -32005');return getEthJsonRpcError(t,e)},invalidInput:e=>getEthJsonRpcError(a.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>getEthJsonRpcError(a.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>getEthJsonRpcError(a.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>getEthJsonRpcError(a.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>getEthJsonRpcError(a.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>getEthJsonRpcError(a.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>getEthProviderError(a.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>getEthProviderError(a.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>getEthProviderError(a.errorCodes.provider.unsupportedMethod,e),disconnected:e=>getEthProviderError(a.errorCodes.provider.disconnected,e),chainDisconnected:e=>getEthProviderError(a.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:o}=e;if(!n||"string"!=typeof n)throw Error('"message" must be a nonempty string');return new i.EthereumProviderError(t,n,o)}}}},28322: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(65753);Object.defineProperty(t,"EthereumRpcError",{enumerable:!0,get:function(){return i.EthereumRpcError}}),Object.defineProperty(t,"EthereumProviderError",{enumerable:!0,get:function(){return i.EthereumProviderError}});let o=n(43245);Object.defineProperty(t,"serializeError",{enumerable:!0,get:function(){return o.serializeError}}),Object.defineProperty(t,"getMessageFromCode",{enumerable:!0,get:function(){return o.getMessageFromCode}});let a=n(86917);Object.defineProperty(t,"ethErrors",{enumerable:!0,get:function(){return a.ethErrors}});let u=n(84358);Object.defineProperty(t,"errorCodes",{enumerable:!0,get:function(){return u.errorCodes}})},43245: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(84358),o=n(65753),a=i.errorCodes.rpc.internal,u={code:a,message:getMessageFromCode(a)};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 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=function(e,{fallbackError:t=u,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 o.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 a=null==e?void 0:e.stack;return n&&e&&a&&"string"==typeof a&&(i.stack=a),i}},4329:function(e){e.exports=stringify,stringify.default=stringify,stringify.stable=deterministicStringify,stringify.stableStringify=deterministicStringify;var t="[...]",n="[Circular]",i=[],o=[];function defaultOptions(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function stringify(e,a,u,c){void 0===c&&(c=defaultOptions()),function decirc(e,i,o,a,u,c,l){if(c+=1,"object"==typeof e&&null!==e){for(R=0;R<a.length;R++)if(a[R]===e){setReplace(n,e,i,u);return}if(void 0!==l.depthLimit&&c>l.depthLimit||void 0!==l.edgesLimit&&o+1>l.edgesLimit){setReplace(t,e,i,u);return}if(a.push(e),Array.isArray(e))for(R=0;R<e.length;R++)decirc(e[R],R,R,a,e,c,l);else{var R,j=Object.keys(e);for(R=0;R<j.length;R++){var W=j[R];decirc(e[W],W,R,a,e,c,l)}}a.pop()}}(e,"",0,[],void 0,0,c);try{l=0===o.length?JSON.stringify(e,a,u):JSON.stringify(e,replaceGetterValues(a),u)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var l,R=i.pop();4===R.length?Object.defineProperty(R[0],R[1],R[3]):R[0][R[1]]=R[2]}}return l}function setReplace(e,t,n,a){var u=Object.getOwnPropertyDescriptor(a,n);void 0!==u.get?u.configurable?(Object.defineProperty(a,n,{value:e}),i.push([a,n,t,u])):o.push([t,n,e]):(a[n]=e,i.push([a,n,t]))}function compareFunction(e,t){return e<t?-1:e>t?1:0}function deterministicStringify(e,a,u,c){void 0===c&&(c=defaultOptions());var l,R=function deterministicDecirc(e,o,a,u,c,l,R){if(l+=1,"object"==typeof e&&null!==e){for(j=0;j<u.length;j++)if(u[j]===e){setReplace(n,e,o,c);return}try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==R.depthLimit&&l>R.depthLimit||void 0!==R.edgesLimit&&a+1>R.edgesLimit){setReplace(t,e,o,c);return}if(u.push(e),Array.isArray(e))for(j=0;j<e.length;j++)deterministicDecirc(e[j],j,j,u,e,l,R);else{var j,W={},H=Object.keys(e).sort(compareFunction);for(j=0;j<H.length;j++){var U=H[j];deterministicDecirc(e[U],U,j,u,e,l,R),W[U]=e[U]}if(void 0===c)return W;i.push([c,o,e]),c[o]=W}u.pop()}}(e,"",0,[],void 0,0,c)||e;try{l=0===o.length?JSON.stringify(R,a,u):JSON.stringify(R,replaceGetterValues(a),u)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var j=i.pop();4===j.length?Object.defineProperty(j[0],j[1],j[3]):j[0][j[1]]=j[2]}}return l}function replaceGetterValues(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(o.length>0)for(var i=0;i<o.length;i++){var a=o[i];if(a[1]===t&&a[0]===n){n=a[2],o.splice(i,1);break}}return e.call(this,t,n)}}},8685:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esMo
16dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.JsonRpcEngine=void 0;let o=i(n(35247)),a=n(28322);let JsonRpcEngine=class JsonRpcEngine extends o.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[o,a,u]=await JsonRpcEngine._runAllMiddleware(e,t,this._middleware);if(a)return await JsonRpcEngine._runReturnHandlers(u),i(o);return n(async e=>{try{await JsonRpcEngine._runReturnHandlers(u)}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 a.EthereumRpcError(a.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 a.EthereumRpcError(a.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},o=null;try{await this._processRequest(n,i)}catch(e){o=e}return o&&(delete i.result,i.error||(i.error=a.serializeError(o))),t(o,i)}async _processRequest(e,t){let[n,i,o]=await JsonRpcEngine._runAllMiddleware(e,t,this._middleware);if(JsonRpcEngine._checkForCompletion(e,t,i),await JsonRpcEngine._runReturnHandlers(o),n)throw n}static async _runAllMiddleware(e,t,n){let i=[],o=null,a=!1;for(let u of n)if([o,a]=await JsonRpcEngine._runMiddleware(e,t,u,i),a)break;return[o,a,i.reverse()]}static _runMiddleware(e,t,n,i){return new Promise(o=>{let end=e=>{let n=e||t.error;n&&(t.error=a.serializeError(n)),o([n,!0])};try{n(e,t,n=>{t.error?end(t.error):(n&&("function"!=typeof n&&end(new a.EthereumRpcError(a.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof n}" for request:
17${jsonify(e)}`,{request:e})),i.push(n)),o([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 a.EthereumRpcError(a.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request:
18${jsonify(e)}`,{request:e});if(!n)throw new a.EthereumRpcError(a.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request:
19${jsonify(e)}`,{request:e})}};function jsonify(e){return JSON.stringify(e,null,2)}t.JsonRpcEngine=JsonRpcEngine},21612:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createAsyncMiddleware=void 0,t.createAsyncMiddleware=function(e){return async(t,n,i,o)=>{let a;let u=new Promise(e=>{a=e}),c=null,l=!1,asyncNext=async()=>{l=!0,i(e=>{c=e,a()}),await u};try{await e(t,n,asyncNext),l?(await u,c(null)):o(null)}catch(e){c?c(e):o(e)}}}},3507:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createScaffoldMiddleware=void 0,t.createScaffoldMiddleware=function(e){return(t,n,i,o)=>{let a=e[t.method];return void 0===a?i():"function"==typeof a?a(t,n,i,o):(n.result=a,o())}}},64873:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUniqueId=void 0;let n=Math.floor(4294967295*Math.random());t.getUniqueId=function(){return n=(n+1)%4294967295}},25080:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createIdRemapMiddleware=void 0;let i=n(64873);t.createIdRemapMiddleware=function(){return(e,t,n,o)=>{let a=e.id,u=i.getUniqueId();e.id=u,t.id=u,n(n=>{e.id=a,t.id=a,n()})}}},91743: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]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};
19Object.defineProperty(t,"__esModule",{value:!0}),o(n(25080),t),o(n(21612),t),o(n(3507),t),o(n(64873),t),o(n(8685),t),o(n(43111),t)},43111:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMiddleware=void 0;let i=n(8685);t.mergeMiddleware=function(e){let t=new i.JsonRpcEngine;return e.forEach(e=>t.push(e)),t.asMiddleware()}},85350:function(e){e.exports=function(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++}}},18521:function(e,t,n){e.exports=n(59864)(n(71488))},59864:function(e,t,n){let i=n(86106),o=n(86360);e.exports=function(e){let t=i(e),n=o(e);return function(e,i){let o="string"==typeof e?e.toLowerCase():e;switch(o){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)}}}},86106:function(e,t,n){var i=n(15313).Buffer;let{Transform:o}=n(19046);e.exports=e=>class Keccak extends o{constructor(t,n,i,o,a){super(a),this._rate=t,this._capacity=n,this._delimitedSuffix=i,this._hashBitLength=o,this._options=a,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}}},86360:function(e,t,n){var i=n(15313).Buffer;let{Transform:o}=n(19046);e.exports=e=>class Shake extends o{constructor(t,n,i,o){super(o),this._rate=t,this._capacity=n,this._delimitedSuffix=i,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(){}_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}}},25340: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],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],u=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],R=e[6]^e[16]^e[26]^e[36]^e[46],j=e[7]^e[17]^e[27]^e[37]^e[47],W=e[8]^e[18]^e[28]^e[38]^e[48],H=e[9]^e[19]^e[29]^e[39]^e[49],U=W^(a<<1|u>>>31),J=H^(u<<1|a>>>31),Q=e[0]^U,G=e[1]^J,Z=e[10]^U,Y=e[11]^J,K=e[20]^U,X=e[21]^J,ee=e[30]^U,et=e[31]^J,er=e[40]^U,en=e[41]^J;U=i^(c<<1|l>>>31),J=o^(l<<1|c>>>31);let ei=e[2]^U,es=e[3]^J,eo=e[12]^U,ea=e[13]^J,eu=e[22]^U,ec=e[23]^J,el=e[32]^U,eh=e[33]^J,ed=e[42]^U,ef=e[43]^J;U=a^(R<<1|j>>>31),J=u^(j<<1|R>>>31);let ep=e[4]^U,eb=e[5]^J,eg=e[14]^U,ey=e[15]^J,em=e[24]^U,ev=e[25]^J,e_=e[34]^U,eS=e[35]^J,ew=e[44]^U,eE=e[45]^J;U=c^(W<<1|H>>>31),J=l^(H<<1|W>>>31);let ex=e[6]^U,ek=e[7]^J,eC=e[16]^U,eR=e[17]^J,eI=e[26]^U,eT=e[27]^J,eM=e[36]^U,eO=e[37]^J,eN=e[46]^U,eA=e[47]^J;U=R^(i<<1|o>>>31),J=j^(o<<1|i>>>31);let eL=e[8]^U,ej=e[9]^J,eD=e[18]^U,eP=e[19]^J,eB=e[28]^U,eF=e[29]^J,eW=e[38]^U,ez=e[39]^J,eH=e[48]^U,eV=e[49]^J,e$=Y<<4|Z>>>28,eU=Z<<4|Y>>>28,eq=K<<3|X>>>29,eJ=X<<3|K>>>29,eQ=et<<9|ee>>>
1923,eG=ee<<9|et>>>23,eZ=er<<18|en>>>14,eY=en<<18|er>>>14,eK=ei<<1|es>>>31,eX=es<<1|ei>>>31,e0=ea<<12|eo>>>20,e1=eo<<12|ea>>>20,e2=eu<<10|ec>>>22,e3=ec<<10|eu>>>22,e4=eh<<13|el>>>19,e5=el<<13|eh>>>19,e8=ed<<2|ef>>>30,e6=ef<<2|ed>>>30,e9=eb<<30|ep>>>2,e7=ep<<30|eb>>>2,te=eg<<6|ey>>>26,tt=ey<<6|eg>>>26,tr=ev<<11|em>>>21,tn=em<<11|ev>>>21,ti=e_<<15|eS>>>17,ts=eS<<15|e_>>>17,to=eE<<29|ew>>>3,ta=ew<<29|eE>>>3,tu=ex<<28|ek>>>4,tc=ek<<28|ex>>>4,tl=eR<<23|eC>>>9,th=eC<<23|eR>>>9,td=eI<<25|eT>>>7,tf=eT<<25|eI>>>7,tp=eM<<21|eO>>>11,tb=eO<<21|eM>>>11,tg=eA<<24|eN>>>8,ty=eN<<24|eA>>>8,tm=eL<<27|ej>>>5,tv=ej<<27|eL>>>5,t_=eD<<20|eP>>>12,tS=eP<<20|eD>>>12,tw=eF<<7|eB>>>25,tE=eB<<7|eF>>>25,tx=eW<<8|ez>>>24,tk=ez<<8|eW>>>24,tC=eH<<14|eV>>>18,tR=eV<<14|eH>>>18;e[0]=Q^~e0&tr,e[1]=G^~e1&tn,e[10]=tu^~t_&eq,e[11]=tc^~tS&eJ,e[20]=eK^~te&td,e[21]=eX^~tt&tf,e[30]=tm^~e$&e2,e[31]=tv^~eU&e3,e[40]=e9^~tl&tw,e[41]=e7^~th&tE,e[2]=e0^~tr&tp,e[3]=e1^~tn&tb,e[12]=t_^~eq&e4,e[13]=tS^~eJ&e5,e[22]=te^~td&tx,e[23]=tt^~tf&tk,e[32]=e$^~e2&ti,e[33]=eU^~e3&ts,e[42]=tl^~tw&eQ,e[43]=th^~tE&eG,e[4]=tr^~tp&tC,e[5]=tn^~tb&tR,e[14]=eq^~e4&to,e[15]=eJ^~e5&ta,e[24]=td^~tx&eZ,e[25]=tf^~tk&eY,e[34]=e2^~ti&tg,e[35]=e3^~ts&ty,e[44]=tw^~eQ&e8,e[45]=tE^~eG&e6,e[6]=tp^~tC&Q,e[7]=tb^~tR&G,e[16]=e4^~to&tu,e[17]=e5^~ta&tc,e[26]=tx^~eZ&eK,e[27]=tk^~eY&eX,e[36]=ti^~tg&tm,e[37]=ts^~ty&tv,e[46]=eQ^~e8&e9,e[47]=eG^~e6&e7,e[8]=tC^~Q&e0,e[9]=tR^~G&e1,e[18]=to^~tu&t_,e[19]=ta^~tc&tS,e[28]=eZ^~eK&te,e[29]=eY^~eX&tt,e[38]=tg^~tm&e$,e[39]=ty^~tv&eU,e[48]=e8^~e9&tl,e[49]=e6^~e7&th,e[0]^=n[2*t],e[1]^=n[2*t+1]}}},71488:function(e,t,n){var i=n(15313).Buffer;let o=n(25340);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&&(o.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&&o.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),o.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&&(o.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},29416:function(e,t,n){"use strict";let i=n(87406),o=Symbol("max"),a=Symbol("length"),u=Symbol("lengthCalculator"),c=Symbol("allowStale"),l=Symbol("maxAge"),R=Symbol("dispose"),j=Symbol("noDisposeOnSet"),W=Symbol("lruList"),H=Symbol("cache"),U=Symbol("updateAgeOnGet"),naiveLength=()=>1,get=(e,t,n)=>{let i=e[H].get(t);if(i){let t=i.value;if(isStale(e,t)){if(del(e,i),!e[c])return}else n&&(e[U]&&(i.value.now=Date.now()),e[W].unshiftNode(i));return t.value}},isStale=(e,t)=>{if(!t||!t.maxAge&&!e[l])return!1;let n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[l]&&n>e[l]},trim=e=>{if(e[a]>e[o])for(let t=e[W].tail;e[a]>e[o]&&null!==t;){let n=t.prev;del(e,t),t=n}},del=(e,t)=>{if(t){let n=t.value;e[R]&&e[R](n.key,n.value),e[a]-=n.length,e[H].delete(n.key),e[W].removeNode(t)}};let Entry=class Entry{constructor(e,t,n,i,o){this.key=e,this.value=t,this.length=n,this.now=i,this.maxAge=o||0}};let forEachStep=(e,t,n,i)=>{let o=n.value;isStale(e,o)&&(del(e,n),e[c]||(o=void 0)),o&&t.call(i,o.value,o.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[o]=e.max||1/0;let t=e.length||naiveLength;if(this[u]="function"!=typeof t?naiveLength:t,this[c]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[l]=e.maxAge||0,this[R]=e.dispose,this[j]=e.noDisposeOnSet||!1,this[U]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[o]=e||1/0,trim(this)}get max(){return this[o]}set allowStale(e){this[c]=!!e}get allowStale(){return this[c]}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[l]=e,trim(this)}get maxAge(){return this[l]}set lengthCalculator(e){"function"!=typeof e&&(e=naiveLength),e!==this[u]&&(this[u]=e,this[a]=0,this[W].forEach(e
19=>{e.length=this[u](e.value,e.key),this[a]+=e.length})),trim(this)}get lengthCalculator(){return this[u]}get length(){return this[a]}get itemCount(){return this[W].length}rforEach(e,t){t=t||this;for(let n=this[W].tail;null!==n;){let i=n.prev;forEachStep(this,e,n,t),n=i}}forEach(e,t){t=t||this;for(let n=this[W].head;null!==n;){let i=n.next;forEachStep(this,e,n,t),n=i}}keys(){return this[W].toArray().map(e=>e.key)}values(){return this[W].toArray().map(e=>e.value)}reset(){this[R]&&this[W]&&this[W].length&&this[W].forEach(e=>this[R](e.key,e.value)),this[H]=new Map,this[W]=new i,this[a]=0}dump(){return this[W].map(e=>!isStale(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[W]}set(e,t,n){if((n=n||this[l])&&"number"!=typeof n)throw TypeError("maxAge must be a number");let i=n?Date.now():0,c=this[u](t,e);if(this[H].has(e)){if(c>this[o])return del(this,this[H].get(e)),!1;let u=this[H].get(e),l=u.value;return this[R]&&!this[j]&&this[R](e,l.value),l.now=i,l.maxAge=n,l.value=t,this[a]+=c-l.length,l.length=c,this.get(e),trim(this),!0}let U=new Entry(e,t,c,i,n);return U.length>this[o]?(this[R]&&this[R](e,t),!1):(this[a]+=U.length,this[W].unshift(U),this[H].set(e,this[W].head),trim(this),!0)}has(e){if(!this[H].has(e))return!1;let t=this[H].get(e).value;return!isStale(this,t)}get(e){return get(this,e,!0)}peek(e){return get(this,e,!1)}pop(){let e=this[W].tail;return e?(del(this,e),e.value):null}del(e){del(this,this[H].get(e))}load(e){this.reset();let t=Date.now();for(let n=e.length-1;n>=0;n--){let i=e[n],o=i.e||0;if(0===o)this.set(i.k,i.v);else{let e=o-t;e>0&&this.set(i.k,i.v,e)}}}prune(){this[H].forEach((e,t)=>get(this,t,!1))}}},30115: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,o)=>{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),o(t)):n(t)}else e?o(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 o=e[i];n[i]="function"==typeof o&&filter(i)?processFn(o,t):o}return n}},51636:function(e){"use strict";let processFn=(e,t,n,i)=>function(...o){let a=t.promiseModule;return new a((a,u)=>{t.multiArgs?o.push((...e)=>{t.errorFirst?e[0]?u(e):(e.shift(),a(e)):a(e)}):t.errorFirst?o.push((e,t)=>{e?u(e):a(t)}):o.push(a);let c=this===n?i:this;Reflect.apply(e,c,o)})},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 o=t.get(e);if(o||(o={},t.set(e,o)),i in o)return o[i];let match=e=>"string"==typeof e||"symbol"==typeof i?i===e:e.test(i),a=Reflect.getOwnPropertyDescriptor(e,i),u=void 0===a||a.writable||a.configurable,c=n.include?n.include.some(match):!n.exclude.some(match),l=c&&u;return o[i]=l,l},o=new WeakMap,a=new Proxy(e,{apply(e,t,i){let u=o.get(e);if(u)return Reflect.apply(u,t,i);let c=n.excludeMain?e:processFn(e,n,a,e);return o.set(e,c),Reflect.apply(c,t,i)},get(e,t){let i=e[t];if(!filter(e,t)||i===Function.prototype[t])return i;let u=o.get(i);if(u)return u;if("function"==typeof i){let t=processFn(i,n,a,e);return o.set(i,t),t}return i}});return a}},85737:function(e,t,n){"use strict";n.r(t),n.d(t,{Component:function(){return b},Fragment:function(){return g},cloneElement:function(){return E},createContext:function(){return F},createElement:function(){return y},createRef:function(){return _},h:function(){return y},hydrate:function(){return B},isValidElement:function(){return u},options:function(){return o},render:function(){return q},toChildArray:function(){return function $(e,t){return t=t||[],null==e||"boolean"==typeof e||(Q(e)?e.some(function(e){$(e,t)}):t.push(e)),t}}});var i,o,a,u,c,l,R,j,W,H={},U=[],J=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Q=Array.isArray;function v(e,t){for(var n in t)e[n]=t[n];return e}function p(e){var t=e.parentNode;t&&t.removeChild(e)}function y(e,t,n){var o,a,u,c={};for(u in t)"key"==u?o=t[u]:"ref"==u?a=t[u]:c[u]=t[u];
vendor: 2,005 bytes, line 19
19if(arguments.length>2&&(c.children=arguments.length>3?i.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(u in e.defaultProps)void 0===c[u]&&(c[u]=e.defaultProps[u]);return d(e,c,o,a,null)}function d(e,t,n,i,u){var c={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==u?++a:u,__i:-1,__u:0};return null==u&&null!=o.vnode&&o.vnode(c),c}function _(){return{current:null}}function g(e){return e.children}function b(e,t){this.props=e,this.context=t}function m(e,t){if(null==t)return e.__?m(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?m(e):null}function w(e){(!e.__d&&(e.__d=!0)&&c.push(e)&&!x.__r++||l!==o.debounceRendering)&&((l=o.debounceRendering)||R)(x)}function x(){var e,t,n,i,a,u,l,R,W;for(c.sort(j);e=c.shift();)e.__d&&(t=c.length,i=void 0,u=(a=(n=e).__v).__e,R=[],W=[],(l=n.__P)&&((i=v({},a)).__v=a.__v+1,o.vnode&&o.vnode(i),L(l,i,a,n.__n,void 0!==l.ownerSVGElement,32&a.__u?[u]:null,R,null==u?m(a):u,!!(32&a.__u),W),i.__.__k[i.__i]=i,M(R,i,W),i.__e!=u&&function k(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 k(e)}}(i)),c.length>t&&c.sort(j));x.__r=0}function C(e,t,n,i,o,a,u,c,l,R,j){var W,J,G,Z,Y,K=i&&i.__k||U,X=t.length;for(n.__d=l,function(e,t,n){var i,o,a,u,c,l=t.length,R=n.length,j=R,W=0;for(e.__k=[],i=0;i<l;i++)null!=(o=e.__k[i]=null==(o=t[i])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?d(null,o,null,null,o):Q(o)?d(g,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?d(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,c=function(e,t,n,i){var o=e.key,a=e.type,u=n-1,c=n+1,l=t[n];if(null===l||l&&o==l.key&&a===l.type)return n;if(i>(null!=l&&0==(131072&l.__u)?1:0))for(;u>=0||c<t.length;){if(u>
vendor: 8,380 bytes, line 19
19=0){if((l=t[u])&&0==(131072&l.__u)&&o==l.key&&a===l.type)return u;u--}if(c<t.length){if((l=t[c])&&0==(131072&l.__u)&&o==l.key&&a===l.type)return c;c++}}return -1}(o,n,u=i+W,j),o.__i=c,a=null,-1!==c&&(j--,(a=n[c])&&(a.__u|=131072)),null==a||null===a.__v?(-1==c&&W--,"function"!=typeof o.type&&(o.__u|=65536)):c!==u&&(c===u+1?W++:c>u?j>l-u?W+=c-u:W--:W=c<u&&c==u-1?c-u:0,c!==i+W&&(o.__u|=65536))):(a=n[i])&&null==a.key&&a.__e&&(a.__e==e.__d&&(e.__d=m(a)),N(a,a,!1),n[i]=null,j--);if(j)for(i=0;i<R;i++)null!=(a=n[i])&&0==(131072&a.__u)&&(a.__e==e.__d&&(e.__d=m(a)),N(a,a))}(n,t,K),l=n.__d,W=0;W<X;W++)null!=(G=n.__k[W])&&"boolean"!=typeof G&&"function"!=typeof G&&(J=-1===G.__i?H:K[G.__i]||H,G.__i=W,L(e,G,J,o,a,u,c,l,R,j),Z=G.__e,G.ref&&J.ref!=G.ref&&(J.ref&&z(J.ref,null,G),j.push(G.ref,G.__c||Z,G)),null==Y&&null!=Z&&(Y=Z),65536&G.__u||J.__k===G.__k?l=function S(e,t,n){var i,o;if("function"==typeof e.type){for(i=e.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=e,t=S(i[o],t,n));return t}return e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e),t&&t.nextSibling}(G,l,e):"function"==typeof G.type&&void 0!==G.__d?l=G.__d:Z&&(l=Z.nextSibling),G.__d=void 0,G.__u&=-196609);n.__d=l,n.__e=Y}function I(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||J.test(t)?n:n+"px"}function T(e,t,n,i,o){var 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||I(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||I(e.style,t,n[t])}}else if("o"===t[0]&&"n"===t[1])a=t!==(t=t.replace(/(PointerCapture)$|Capture$/,"$1")),t=t.toLowerCase() in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?i?n.u=i.u:(n.u=Date.now(),e.addEventListener(t,a?D:A,a)):e.removeEventListener(t,a?D:A,a);else{if(o)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&&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,n))}}function A(e){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(o.event?o.event(e):e)}function D(e){return this.l[e.type+!0](o.event?o.event(e):e)}function L(e,t,n,a,u,c,l,R,j,W){var U,J,G,Z,Y,K,X,ee,et,er,en,ei,es,eo,ea,eu=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(j=!!(32&n.__u),c=[R=t.__e=n.__e]),(U=o.__b)&&U(t);e:if("function"==typeof eu)try{if(ee=t.props,et=(U=eu.contextType)&&a[U.__c],er=U?et?et.props.value:U.__:a,n.__c?X=(J=t.__c=n.__c).__=J.__E:("prototype"in eu&&eu.prototype.render?t.__c=J=new eu(ee,er):(t.__c=J=new b(ee,er),J.constructor=eu,J.render=O),et&&et.sub(J),J.props=ee,J.state||(J.state={}),J.context=er,J.__n=a,G=J.__d=!0,J.__h=[],J._sb=[]),null==J.__s&&(J.__s=J.state),null!=eu.getDerivedStateFromProps&&(J.__s==J.state&&(J.__s=v({},J.__s)),v(J.__s,eu.getDerivedStateFromProps(ee,J.__s))),Z=J.props,Y=J.state,J.__v=t,G)null==eu.getDerivedStateFromProps&&null!=J.componentWillMount&&J.componentWillMount(),null!=J.componentDidMount&&J.__h.push(J.componentDidMount);else{if(null==eu.getDerivedStateFromProps&&ee!==Z&&null!=J.componentWillReceiveProps&&J.componentWillReceiveProps(ee,er),!J.__e&&(null!=J.shouldComponentUpdate&&!1===J.shouldComponentUpdate(ee,J.__s,er)||t.__v===n.__v)){for(t.__v!==n.__v&&(J.props=ee,J.state=J.__s,J.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),en=0;en<J._sb.length;en++)J.__h.push(J._sb[en]);J._sb=[],J.__h.length&&l.push(J);break e}null!=J.componentWillUpdate&&J.componentWillUpdate(ee,J.__s,er),null!=J.componentDidUpdate&&J.__h.push(function(){J.componentDidUpdate(Z,Y,K)})}if(J.context=er,J.props=ee,J.__P=e,J.__e=!1,ei=o.__r,es=0,"prototype"in eu&&eu.prototype.render){for(J.state=J.__s,J.__d=!1,ei&&ei(t),U=J.render(J.props,J.state,J.context),eo=0;eo<J._sb.length;eo++)J.__h.push(J._sb[eo]);J._sb=[]}else do J.__d=!1,ei&&ei(t),U=J.render(J.props,J.state,J.context),J.state=J.__s;while(J.__d&&++es<25);J.state=J.__s,null!=J.getChildContext&&(a=v(v({},a),J.getChildContext())),G||null==J.getSnapshotBeforeUpdate||(K=J.getSnapshotBeforeUpdate(Z,Y)),C(e,Q(ea=null!=U&&U.type===g&&null==U.key?U.props.children:U)?ea:[ea],t,n,a,u,c,l,R,j,W),J.base=t.__e,t.__u&=-161,J.__h.length&&l.push(J),X&&(J.__E=J.__=null)}catch(e){t.__v=null,j||null!=c?(t.__e=R,t.__u|=j?160:32,c[c.indexOf(R)]=null):(t.__e=n.__e,t.__k=n.__k),o.__e(e,t,n)}else null==c&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,o,a,u,c,l,R){var j,W,U,J,G,Z,Y,K=n.props,X=t.props,ee=t.type;if("svg"===ee&&(a=!0),null!=u){for(j=0;j<u.length;j++)if((G=u[j])&&"setAttribute"in G==!!ee&&(ee?G.localName===ee:3===G.nodeType)){e=G,u[j]=null;break}}if(null==e){if(null===ee)return document.createTextNode(X);e=a?document.createElementNS("http://www.w3.org/2000/svg",ee):document.createElement(ee,X.is&&X),u=null,l=!1}if(null===ee)K===X||l&&e.data===X||(e.data=X);else{if(u=u&&i.call(e.childNodes),K=n.props||H,!l&&null!=u)for(K={},j=0;j<e.attributes.length;j++)K[(G=e.attributes[j]).name]=G.value;for(j in K)G=K[j],"children"==j||("dangerouslySetInnerHTML"==j?U=G:"key"===j||j in X||T(e,j,null,G,a));for(j in X)G=X[j],"children"==j?J=G:"dangerouslySetInnerHTML"==j?W=G:"value"==j?Z=G:"checked"==j?Y=G:"key"===j||l&&"function"!=typeof G||K[j]===G||T(e,j,G,K[j],a);if(W)l||U&&(W.__html===U.__html||W.__html===e.innerHTML)||(e.innerHTML=W.__html),t.__k=[];else if(U&&(e.innerHTML=""),C(e,Q(J)?J:[J],t,n,o,a&&"foreignObject"!==ee,u,c,u?u[0]:n.__k&&m(n,0),l,R),null!=u)for(j=u.length;j--;)null!=u[j]&&p(u[j]);l||(j="value",void 0===Z||Z===e[j]&&("progress"!==ee||Z)&&("option"!==ee||Z===K[j])||T(e,j,Z,K[j],!1),j="checked",void 0!==Y&&Y!==e[j]&&T(e,j,Y,K[j],!1))}return e}(n.__e,t,n,a,u,c,l,j,W);(U=o.diffed)&&U(t)}function M(e,t,n){t.__d=void 0;for(var i=0;i<n.length;i++)z(n[i],n[++i],n[++i]);o.__c&&o.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){o.__e(e,t.__v)}})}function z(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function N(e,t,n){var i,a;if(o.unmount&&o.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||z(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){o.__e(e,t)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(a=0;a<i.length;a++)i[a]&&N(i[a],t,n||"function"!=typeof e.type);n||null==e.__e||p(e.__e),e.__=e.__e=e.__d=void 0}function O(e,t,n){return this.constructor(e,n)}function q(e,t,n){var a,u,c,l;o.__&&o.__(e,t),u=(a="function"==typeof n)?null:n&&n.__k||t.__k,c=[],l=[],L(t,e=(!a&&n||t).__k=y(g,null,[e]),u||H,H,void 0!==t.ownerSVGElement,!a&&n?[n]:u?null:t.firstChild?i.call(t.childNodes):null,c,!a&&n?n:u?u.__e:t.firstChild,a,l),M(c,e,l)}function B(e,t){q(e,t,B)}function E(e,t,n){var o,a,u,c,l=v({},e.props);for(u in e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)"key"==u?o=t[u]:"ref"==u?a=t[u]:l[u]=void 0===t[u]&&void 0!==c?c[u]:t[u];return arguments.length>2&&(l.children=arguments.length>3?i.call(arguments,2):n),d(e.type,l,o||e.key,a||e.ref,null)}function F(e,t){var n={__c:t="__cC"+W++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,i;return this.getChildContext||(n=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(function(e){e.__e=!0,w(e)})},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}i=U.slice,o={__e:function(e,t,n,i){for(var o,a,u;t=t.__;)if((o=t.__c)&&!o.__)try{if((a=o.constructor)&&null!=a.getDerivedStateFromError&&(o.setState(a.getDerivedStateFromError(e)),u=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,i||{}),u=o.__d),u)return o.__E=o}catch(t){e=t}throw e}},a=0,u=function(e){return null!=e&&null==e.constructor},b.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v({},this.state),"function"==typeof e&&(e=e(v({},n),this.props)),e&&v(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),w(this))},b.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),w(this))},b.prototype.render=g,c=[],R="function"==typeof Promise?Promise.prototype.then.bind(Prom
19ise.resolve()):setTimeout,j=function(e,t){return e.__v.__b-t.__v.__b},x.__r=0,W=0},65116:function(e,t,n){"use strict";n.r(t),n.d(t,{useCallback:function(){return T},useContext:function(){return q},useDebugValue:function(){return x},useEffect:function(){return p},useErrorBoundary:function(){return P},useId:function(){return V},useImperativeHandle:function(){return A},useLayoutEffect:function(){return y},useMemo:function(){return F},useReducer:function(){return s},useRef:function(){return _},useState:function(){return h}});var i,o,a,u,c=n(85737),l=0,R=[],j=[],W=c.options.__b,H=c.options.__r,U=c.options.diffed,J=c.options.__c,Q=c.options.unmount;function d(e,t){c.options.__h&&c.options.__h(o,e,l||t),l=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:j}),n.__[e]}function h(e){return l=1,s(B,e)}function s(e,t,n){var a=d(i++,2);if(a.t=e,!a.__c&&(a.__=[n?n(t):B(void 0,t),function(e){var t=a.__N?a.__N[0]:a.__[0],n=a.t(t,e);t!==n&&(a.__N=[n,a.__[1]],a.__c.setState({}))}],a.__c=o,!o.u)){var f=function(e,t,n){if(!a.__c.__H)return!0;var i=a.__c.__H.__.filter(function(e){return e.__c});if(i.every(function(e){return!e.__N}))return!u||u.call(this,e,t,n);var o=!1;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),!(!o&&a.__c.props===e)&&(!u||u.call(this,e,t,n))};o.u=!0;var u=o.shouldComponentUpdate,c=o.componentWillUpdate;o.componentWillUpdate=function(e,t,n){if(this.__e){var i=u;u=void 0,f(e,t,n),u=i}c&&c.call(this,e,t,n)},o.shouldComponentUpdate=f}return a.__N||a.__}function p(e,t){var n=d(i++,3);!c.options.__s&&z(n.__H,t)&&(n.__=e,n.i=t,o.__H.__h.push(n))}function y(e,t){var n=d(i++,4);!c.options.__s&&z(n.__H,t)&&(n.__=e,n.i=t,o.__h.push(n))}function _(e){return l=5,F(function(){return{current:e}},[])}function A(e,t,n){l=6,y(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==n?n:n.concat(e))}function F(e,t){var n=d(i++,7);return z(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function T(e,t){return l=8,F(function(){return e},t)}function q(e){var t=o.context[e.__c],n=d(i++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(o)),t.props.value):e.__}function x(e,t){c.options.useDebugValue&&c.options.useDebugValue(t?t(e):e)}function P(e){var t=d(i++,10),n=h();return t.__=e,o.componentDidCatch||(o.componentDidCatch=function(e,i){t.__&&t.__(e,i),n[1](e)}),[n[0],function(){n[1](void 0)}]}function V(){var e=d(i++,11);if(!e.__){for(var t=o.__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 b(){for(var e;e=R.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(k),e.__H.__h.forEach(w),e.__H.__h=[]}catch(t){e.__H.__h=[],c.options.__e(t,e.__v)}}c.options.__b=function(e){o=null,W&&W(e)},c.options.__r=function(e){H&&H(e),i=0;var t=(o=e.__c).__H;t&&(a===o?(t.__h=[],o.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=j,e.__N=e.i=void 0})):(t.__h.forEach(k),t.__h.forEach(w),t.__h=[],i=0)),a=o},c.options.diffed=function(e){U&&U(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==R.push(t)&&u===c.options.requestAnimationFrame||((u=c.options.requestAnimationFrame)||function(e){var t,r=function(){clearTimeout(n),G&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);G&&(t=requestAnimationFrame(r))})(b)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==j&&(e.__=e.__V),e.i=void 0,e.__V=j})),a=o=null},c.options.__c=function(e,t){t.some(function(e){try{e.__h.forEach(k),e.__h=e.__h.filter(function(e){return!e.__||w(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],c.options.__e(n,e.__v)}}),J&&J(e,t)},c.options.unmount=function(e){Q&&Q(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{k(e)}catch(e){t=e}}),n.__H=void 0,t&&c.options.__e(t,n.__v))};var G="function"==typeof requestAnimationFrame;function k(e){var t=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=t}function w(e){var t=o;e.__c=e.__(),o=t}function z(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function B(e,t){return"function"==typeof t?t(e):t}},71936:function(e){"use strict";var t={};function createErrorType(e,n,i){i||(i=Error);var o=function(e){function NodeError(t,i,o){return e.call(this,"string"==typeof n?n:n(t,i,o))||this}return NodeError.prototype=Object.create(e.prototype),NodeError.prototype.constructor=NodeError,NodeError.__proto__=e,NodeError}(i);o.prototype.name=i.name,o.prototype.code=e,t[e]=o}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])}createErrorType("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invali
19d for option "'+e+'"'},TypeError),createErrorType("ERR_INVALID_ARG_TYPE",function(e,t,n){if("string"==typeof t&&(i="not ",t.substr(!o||o<0?0:+o,i.length)===i)?(l="must not be",t=t.replace(/^not /,"")):l="must be",a=" argument",(void 0===u||u>e.length)&&(u=e.length),e.substring(u-a.length,u)===a)R="The ".concat(e," ").concat(l," ").concat(oneOf(t,"type"));else{var i,o,a,u,c,l,R,j=("number"!=typeof c&&(c=0),c+1>e.length||-1===e.indexOf(".",c))?"argument":"property";R='The "'.concat(e,'" ').concat(j," ").concat(l," ").concat(oneOf(t,"type"))}return R+". 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},23955:function(e,t,n){"use strict";var i=n(73656),o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=Duplex;var a=n(40794),u=n(33216);n(67483)(Duplex,a);for(var c=o(u.prototype),l=0;l<c.length;l++){var R=c[l];Duplex.prototype[R]||(Duplex.prototype[R]=u.prototype[R])}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);a.call(this,e),u.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)}})},70637:function(e,t,n){"use strict";e.exports=PassThrough;var i=n(93685);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);i.call(this,e)}n(67483)(PassThrough,i),PassThrough.prototype._transform=function(e,t,n){n(null,e)}},40794:function(e,t,n){"use strict";var i,o,a,u,c,l=n(73656);e.exports=Readable,Readable.ReadableState=ReadableState,n(47324).EventEmitter;var EElistenerCount=function(e,t){return e.listeners(t).length},R=n(61612),j=n(15313).Buffer,W=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},H=n(22810);o=H&&H.debuglog?H.debuglog("stream"):function(){};var U=n(68741),J=n(48045),Q=n(36782).getHighWaterMark,G=n(71936).q,Z=G.ERR_INVALID_ARG_TYPE,Y=G.ERR_STREAM_PUSH_AFTER_EOF,K=G.ERR_METHOD_NOT_IMPLEMENTED,X=G.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(67483)(Readable,R);var ee=J.errorOrDestroy,et=["error","close","destroy","pause","resume"];function ReadableState(e,t,o){i=i||n(23955),e=e||{},"boolean"!=typeof o&&(o=t instanceof i),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=Q(this,e,"readableHighWaterMark",o),this.buffer=new U,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&&(a||(a=n(23457).s),this.decoder=new a(e.encoding),this.encoding=e.encoding)}function Readable(e){if(i=i||n(23955),!(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)),R.call(this)}function readableAddChunk(e,t,n,i,a){o("readableAddChunk",t);var u,c,l,R,H,U=e._readableState;if(null===t)U.reading=!1,function(e,t){if(o("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)))}}(e,U);else{if(a||(u=U,c=t,j.isBuffer(c)||c instanceof W||"string"==typeof c||void 0===c||u.objectMode||(l=new Z("chunk",["string","Buffer","Uint8Array"],c)),H=l),H)ee(e,H);else if(U.objectMode||t&&t.length>0){if("string"==typeof t||U.objectMode||Object.getPrototypeOf(t)===j.prototype||(R=t,t=j.from(R)),i)U.endEmitted?ee(e,new X):addChunk(e,U,t,!0);else if(U.ended)ee(e,new Y);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 howMuchToRead(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)return t.flowing&&t.length?t.buffer.head.data.length:t.length;if(e>t.highWaterMark){var n;t.highWaterMark=((n=e)>=1073741824?n=1073741824:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n)}return e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)}function emitReadable(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,l.nextTick(emitReadable_,e))}function emitReadable_(e){var t=e._readableState;o("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,l.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(o("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}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){o("readable nexttick read 0"),e.read(0)}function resume_(e,t){o("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(o("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;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,l.nextTick(endReadableNT,t,e))}function endReadableNT(e,t){if(o("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=J.destroy,Readable.prototype._undestroy=J.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=j.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){a||(a=n(23457).s);var t=new a(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;
19for(var i=this._readableState.buffer.head,o="";null!==i;)o+=t.write(i.data),i=i.next;return this._readableState.buffer.clear(),""!==o&&this._readableState.buffer.push(o),this._readableState.length=o.length,this},Readable.prototype.read=function(e){o("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 o("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 a=n.needReadable;return o("need readable",a),(0===n.length||n.length-e<n.highWaterMark)&&o("length less than watermark",a=!0),n.ended||n.reading?o("reading or ended",a=!1):a&&(o("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){ee(this,new K("_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,o("pipe count=%d opts=%j",i.pipesCount,t);var a=t&&!1===t.end||e===l.stdout||e===l.stderr?unpipe:onend;function onend(){o("onend"),e.end()}i.endEmitted?l.nextTick(a):n.once("end",a),e.on("unpipe",function onunpipe(t,a){o("onunpipe"),t===n&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),e.removeListener("close",onclose),e.removeListener("finish",onfinish),e.removeListener("drain",ondrain),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)&&ondrain())});var ondrain=function(){var e=n._readableState;o("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&EElistenerCount(n,"data")&&(e.flowing=!0,flow(n))};e.on("drain",ondrain);var u=!1;function ondata(t){o("ondata");var a=e.write(t);o("dest.write",a),!1===a&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==indexOf(i.pipes,e))&&!u&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function onerror(t){o("onerror",t),unpipe(),e.removeListener("error",onerror),0===EElistenerCount(e,"error")&&ee(e,t)}function onclose(){e.removeListener("finish",onfinish),unpipe()}function onfinish(){o("onfinish"),e.removeListener("close",onclose),unpipe()}function unpipe(){o("unpipe"),n.unpipe(e)}return n.on("data",ondata),function(e,t,n){if("function"==typeof e.prependListener)return e.prepe
vendor: 5,936 bytes, line 19
19ndListener(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)}(e,"error",onerror),e.once("close",onclose),e.once("finish",onfinish),e.emit("pipe",n),i.flowing||(o("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,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<o;a++)i[a].emit("unpipe",this,{hasUnpiped:!1});return this}var u=indexOf(t.pipes,e);return -1===u||(t.pipes.splice(u,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=R.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,o("on readable",i.length,i.reading),i.length?emitReadable(this):i.reading||l.nextTick(nReadingNextTick,this)),n},Readable.prototype.addListener=Readable.prototype.on,Readable.prototype.removeListener=function(e,t){var n=R.prototype.removeListener.call(this,e,t);return"readable"===e&&l.nextTick(updateReadableListening,this),n},Readable.prototype.removeAllListeners=function(e){var t=R.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&l.nextTick(updateReadableListening,this),t},Readable.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,l.nextTick(resume_,this,e))),e.paused=!1,this},Readable.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},Readable.prototype.wrap=function(e){var t=this,n=this._readableState,i=!1;for(var a in e.on("end",function(){if(o("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(a){o("wrapped data"),n.decoder&&(a=n.decoder.write(a)),(!n.objectMode||null!=a)&&(n.objectMode||a&&a.length)&&(t.push(a)||(i=!0,e.pause()))}),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var u=0;u<et.length;u++)e.on(et[u],this.emit.bind(this,et[u]));return this._read=function(t){o("wrapped _read",t),i&&(i=!1,e.resume())},this},"function"==typeof Symbol&&(Readable.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=n(21505)),u(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===c&&(c=n(23913)),c(Readable,e,t)})},93685:function(e,t,n){"use strict";e.exports=Transform;var i=n(71936).q,o=i.ERR_METHOD_NOT_IMPLEMENTED,a=i.ERR_MULTIPLE_CALLBACK,u=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,c=i.ERR_TRANSFORM_WITH_LENGTH_0,l=n(23955);function afterTransform(e,t){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(null===i)return this.emit("error",new a);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),i(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function Transform(e){if(!(this instanceof Transform))return new Transform(e);l.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 c;if(e._transformState.transforming)throw new u;return e.push(null)}n(67483)(Transform,l),Transform.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},Transform.prototype._transform=function(e,t,n){n(new o("_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 o=this._readableState;(i.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.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){l.prototype._destroy.call(this,e,function(e){t(e)})}},33216:function(e,t,n){"use strict";var i,o,a=n(73656);function CorkedRequest(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,n){var i=e.entry;for(e.entry=null;i;){var o=i.callback;t.pendingcb--,o(void 0),i=i.next}t.corkedRequestsFree.next=e})(t,e)}}
19e.exports=Writable,Writable.WritableState=WritableState;var u={deprecate:n(54012)},c=n(61612),l=n(15313).Buffer,R=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},j=n(48045),W=n(36782).getHighWaterMark,H=n(71936).q,U=H.ERR_INVALID_ARG_TYPE,J=H.ERR_METHOD_NOT_IMPLEMENTED,Q=H.ERR_MULTIPLE_CALLBACK,G=H.ERR_STREAM_CANNOT_PIPE,Z=H.ERR_STREAM_DESTROYED,Y=H.ERR_STREAM_NULL_VALUES,K=H.ERR_STREAM_WRITE_AFTER_END,X=H.ERR_UNKNOWN_ENCODING,ee=j.errorOrDestroy;function nop(){}function WritableState(e,t,o){i=i||n(23955),e=e||{},"boolean"!=typeof o&&(o=t instanceof i),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=W(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===e.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var n=e._writableState,i=n.sync,o=n.writecb;if("function"!=typeof o)throw new Q;if(n.writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0,t)--n.pendingcb,i?(a.nextTick(o,t),a.nextTick(finishMaybe,e,n),e._writableState.errorEmitted=!0,ee(e,t)):(o(t),e._writableState.errorEmitted=!0,ee(e,t),finishMaybe(e,n));else{var u=needFinish(n)||e.destroyed;u||n.corked||n.bufferProcessing||!n.bufferedRequest||clearBuffer(e,n),i?a.nextTick(afterWrite,e,n,u,o):afterWrite(e,n,u,o)}})(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(23955));if(!t&&!o.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)),c.call(this)}function doWrite(e,t,n,i,o,a,u){t.writelen=i,t.writecb=u,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new Z("write")):n?e._writev(o,t.onwrite):e._write(o,a,t.onwrite),t.sync=!1}function afterWrite(e,t,n,i){n||0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain")),t.pendingcb--,i(),finishMaybe(e,t)}function clearBuffer(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=Array(t.bufferedRequestCount),o=t.corkedRequestsFree;o.entry=n;for(var a=0,u=!0;n;)i[a]=n,n.isBuf||(u=!1),n=n.next,a+=1;i.allBuffers=u,doWrite(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new CorkedRequest(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,l=n.encoding,R=n.callback,j=t.objectMode?1:c.length;if(doWrite(e,t,!1,j,c,l,R),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&&ee(e,n),t.prefinished=!0,e.emit("prefinish"),finishMaybe(e,t)})}function finishMaybe(e,t){var n=needFinish(t);if(n&&(t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,a.nextTick(callFinal,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}n(67483)(Writable,c),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:u.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]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(Writable,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===Writable&&e&&e._writableState instanceof WritableState}})):o=function(e){return e instanceof this},Writable.prototype.pipe=function(){ee(this,new G)},Writable.prototype.write=function(e,t,n){var i,o,u,c,j,W,H,J=this._writableState,Q=!1,G=!J.objectMode&&(i=e,l.isBuffer(i)||i instanceof R);return G&&!l.isBuffer(e)&&(o=e,e=l.from(o)),("function"==typeof t&&(n=t,t=null),G?t="buffer":t||(t=J.defaultEncoding),"function"!=typeof n&&(n=nop),J.ending)?(u=n,ee(this,c=new K),a.nextTick(u,c)):(G||(j=e,W=n,null===j?H=new Y:"string"==typeof j||J.objectMode||(H=new U("chunk",["string","Buffer"],j)),!H||(ee(this,H),a.nextTick(W,H),0)))&&(J.pendingcb++,Q=function(e,t,n,i,o,a){if(!n){var u,c,R=(u
19=i,c=o,t.objectMode||!1===t.decodeStrings||"string"!=typeof u||(u=l.from(u,c)),u);i!==R&&(n=!0,o="buffer",i=R)}var j=t.objectMode?1:i.length;t.length+=j;var W=t.length<t.highWaterMark;if(W||(t.needDrain=!0),t.writing||t.corked){var H=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:o,isBuf:n,callback:a,next:null},H?H.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else doWrite(e,t,!1,j,i,o,a);return W}(this,J,G,e,t,n)),Q},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 X(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 J("_write()"))},Writable.prototype._writev=null,Writable.prototype.end=function(e,t,n){var i,o=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),o.corked&&(o.corked=1,this.uncork()),o.ending||(i=n,o.ending=!0,finishMaybe(this,o),i&&(o.finished?a.nextTick(i):this.once("finish",i)),o.ended=!0,this.writable=!1),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=j.destroy,Writable.prototype._undestroy=j.undestroy,Writable.prototype._destroy=function(e,t){t(e)}},21505:function(e,t,n){"use strict";var i,o=n(73656);function _defineProperty(e,t,n){var i;return(t="symbol"==typeof(i=function(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)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(3825),u=Symbol("lastResolve"),c=Symbol("lastReject"),l=Symbol("error"),R=Symbol("ended"),j=Symbol("lastPromise"),W=Symbol("handlePromise"),H=Symbol("stream");function createIterResult(e,t){return{value:e,done:t}}function readAndResolve(e){var t=e[u];if(null!==t){var n=e[H].read();null!==n&&(e[j]=null,e[u]=null,e[c]=null,t(createIterResult(n,!1)))}}function onReadable(e){o.nextTick(readAndResolve,e)}var U=Object.getPrototypeOf(function(){}),J=Object.setPrototypeOf((_defineProperty(i={get stream(){return this[H]},next:function(){var e,t,n=this,i=this[l];if(null!==i)return Promise.reject(i);if(this[R])return Promise.resolve(createIterResult(void 0,!0));if(this[H].destroyed)return new Promise(function(e,t){o.nextTick(function(){n[l]?t(n[l]):e(createIterResult(void 0,!0))})});var a=this[j];if(a)t=new Promise((e=this,function(t,n){a.then(function(){if(e[R]){t(createIterResult(void 0,!0));return}e[W](t,n)},n)}));else{var u=this[H].read();if(null!==u)return Promise.resolve(createIterResult(u,!1));t=new Promise(this[W])}return this[j]=t,t}},Symbol.asyncIterator,function(){return this}),_defineProperty(i,"return",function(){var e=this;return new Promise(function(t,n){e[H].destroy(null,function(e){if(e){n(e);return}t(createIterResult(void 0,!0))})})}),i),U);e.exports=function(e){var t,n=Object.create(J,(_defineProperty(t={},H,{value:e,writable:!0}),_defineProperty(t,u,{value:null,writable:!0}),_defineProperty(t,c,{value:null,writable:!0}),_defineProperty(t,l,{value:null,writable:!0}),_defineProperty(t,R,{value:e._readableState.endEmitted,writable:!0}),_defineProperty(t,W,{value:function(e,t){var i=n[H].read();i?(n[j]=null,n[u]=null,n[c]=null,e(createIterResult(i,!1))):(n[u]=e,n[c]=t)},writable:!0}),t));return n[j]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[c];null!==t&&(n[j]=null,n[u]=null,n[c]=null,t(e)),n[l]=e;return}var i=n[u];null!==i&&(n[j]=null,n[u]=null,n[c]=null,i(createIterResult(void 0,!0))),n[R]=!0}),e.on("readable",onReadable.bind(null,n)),n}},68741: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]:{};
19t%2?ownKeys(Object(n),!0).forEach(function(t){var i,o;i=t,o=n[t],(i=_toPropertyKey(i))in e?Object.defineProperty(e,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[i]=o}):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 _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 _toPropertyKey(e){var t=function(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)}(e,"string");return"symbol"==typeof t?t:String(t)}var i=n(15313).Buffer,o=n(15325).inspect,a=o&&o.custom||"inspect";e.exports=function(){var e,t;function BufferList(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,BufferList),this.head=null,this.tail=null,this.length=0}return e=[{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,n,o=i.allocUnsafe(e>>>0),a=this.head,u=0;a;)t=a.data,n=u,i.prototype.copy.call(t,o,n),u+=a.data.length,a=a.next;return o}},{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 o=t.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0==(e-=a)){a===o.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(a));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(e){var t=i.allocUnsafe(e),n=this.head,o=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var a=n.data,u=e>a.length?a.length:e;if(a.copy(t,t.length-e,0,u),0==(e-=u)){u===a.length?(++o,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=a.slice(u));break}++o}return this.length-=o,t}},{key:a,value:function(e,t){return o(this,_objectSpread(_objectSpread({},t),{},{depth:0,customInspect:!1}))}}],_defineProperties(BufferList.prototype,e),t&&_defineProperties(BufferList,t),Object.defineProperty(BufferList,"prototype",{writable:!1}),BufferList}()},48045:function(e,t,n){"use strict";var i=n(73656);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 emitErrorNT(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?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},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,i=e._writableState;n&&n.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}}},3825:function(e,t,n){"use strict";
19var i=n(71936).q.ERR_STREAM_PREMATURE_CLOSE;function noop(){}e.exports=function eos(e,t,n){if("function"==typeof t)return eos(e,null,t);t||(t={}),o=n||noop,a=!1,n=function(){if(!a){a=!0;for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];o.apply(this,t)}};var o,a,u=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,onlegacyfinish=function(){e.writable||onfinish()},l=e._writableState&&e._writableState.finished,onfinish=function(){c=!1,l=!0,u||n.call(e)},R=e._readableState&&e._readableState.endEmitted,onend=function(){u=!1,R=!0,c||n.call(e)},onerror=function(t){n.call(e,t)},onclose=function(){var t;return u&&!R?(e._readableState&&e._readableState.ended||(t=new i),n.call(e,t)):c&&!l?(e._writableState&&e._writableState.ended||(t=new i),n.call(e,t)):void 0},onrequest=function(){e.req.on("finish",onfinish)};return e.setHeader&&"function"==typeof e.abort?(e.on("complete",onfinish),e.on("abort",onclose),e.req?onrequest():e.on("request",onrequest)):c&&!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)}}},23913:function(e){e.exports=function(){throw Error("Readable.from is not available in the browser")}},3599:function(e,t,n){"use strict";var i,o=n(71936).q,a=o.ERR_MISSING_ARGS,u=o.ERR_STREAM_DESTROYED;function noop(e){if(e)throw e}function call(e){e()}function pipe(e,t){return e.pipe(t)}e.exports=function(){for(var e,t,o=arguments.length,c=Array(o),l=0;l<o;l++)c[l]=arguments[l];var R=(e=c).length&&"function"==typeof e[e.length-1]?e.pop():noop;if(Array.isArray(c[0])&&(c=c[0]),c.length<2)throw new a("streams");var j=c.map(function(e,o){var a,l,W,H,U,J=o<c.length-1;return l=a=function(e){t||(t=e),e&&j.forEach(call),J||(j.forEach(call),R(t))},W=!1,a=function(){W||(W=!0,l.apply(void 0,arguments))},H=!1,e.on("close",function(){H=!0}),void 0===i&&(i=n(3825)),i(e,{readable:J,writable:o>0},function(e){if(e)return a(e);H=!0,a()}),U=!1,function(t){if(!H&&!U){if(U=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();a(t||new u("pipe"))}}});return c.reduce(pipe)}},36782:function(e,t,n){"use strict";var i=n(71936).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,o){var a=null!=t.highWaterMark?t.highWaterMark:o?t[n]:null;if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var u=o?n:"highWaterMark";throw new i(u,a)}return Math.floor(a)}return e.objectMode?16:16384}}},61612:function(e,t,n){e.exports=n(47324).EventEmitter},19046:function(e,t,n){(t=e.exports=n(40794)).Stream=t,t.Readable=t,t.Writable=n(33216),t.Duplex=n(23955),t.Transform=n(93685),t.PassThrough=n(70637),t.finished=n(3825),t.pipeline=n(3599)},68354:function(e,t,n){"use strict";n.r(t),n.d(t,{ArgumentOutOfRangeError:function(){return eu.W},AsyncSubject:function(){return j.c},BehaviorSubject:function(){return l.X},ConnectableObservable:function(){return o.c},EMPTY:function(){return e_.E},EmptyError:function(){return ec.K},GroupedObservable:function(){return a.T},NEVER:function(){return eC},Notification:function(){return ei.P},NotificationKind:function(){return ei.W},ObjectUnsubscribedError:function(){return el.N},Observable:function(){return i.y},ReplaySubject:function(){return R.t},Scheduler:function(){return et.b},Subject:function(){return c.xQ},Subscriber:function(){return en.L},Subscription:function(){return er.w},TimeoutError:function(){return ed.W},UnsubscriptionError:function(){return eh.B},VirtualAction:function(){return ee},VirtualTimeScheduler:function(){return X},animationFrame:function(){return K},animationFrameScheduler:function(){return Y},asap:function(){return W.e},asapScheduler:function(){return W.E},async:function(){return H.P},asyncScheduler:function(){return H.z},bindCallback:function(){return function bindCallback(e,t,n){if(t){if(!(0,eg.
19K)(t))return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return bindCallback(e,n).apply(void 0,i).pipe((0,ef.U)(function(e){return(0,eb.k)(e)?t.apply(void 0,e):t(e)}))};n=t}return function(){for(var t,o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var u=this,c={context:u,subject:t,callbackFunc:e,scheduler:n};return new i.y(function(i){if(n)return n.schedule(dispatch,0,{args:o,subscriber:i,params:c});if(!t){t=new j.c;try{e.apply(u,o.concat([function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.next(e.length<=1?e[0]:e),t.complete()}]))}catch(e){(0,ep._)(t)?t.error(e):console.warn(e)}}return t.subscribe(i)})}}},bindNodeCallback:function(){return function bindNodeCallback(e,t,n){if(t){if(!(0,eg.K)(t))return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return bindNodeCallback(e,n).apply(void 0,i).pipe((0,ef.U)(function(e){return(0,eb.k)(e)?t.apply(void 0,e):t(e)}))};n=t}return function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var a={subject:void 0,args:t,callbackFunc:e,scheduler:n,context:this};return new i.y(function(i){var o=a.context,u=a.subject;if(n)return n.schedule(bindNodeCallback_dispatch,0,{params:a,subscriber:i,context:o});if(!u){u=a.subject=new j.c;try{e.apply(o,t.concat([function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.shift();if(n){u.error(n);return}u.next(e.length<=1?e[0]:e),u.complete()}]))}catch(e){(0,ep._)(u)?u.error(e):console.warn(e)}}return u.subscribe(i)})}}},combineLatest:function(){return ey.aj},concat:function(){return em.z},config:function(){return eD.v},defer:function(){return ev.P},empty:function(){return e_.c},forkJoin:function(){return forkJoin},from:function(){return ew.D},fromEvent:function(){return function fromEvent(e,t,n,o){return((0,eE.m)(n)&&(o=n,n=void 0),o)?fromEvent(e,t,n).pipe((0,ef.U)(function(e){return(0,eb.k)(e)?o.apply(void 0,e):o(e)})):new i.y(function(i){(function setupSubscription(e,t,n,i,o){if(e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener)e.addEventListener(t,n,o),a=function(){return e.removeEventListener(t,n,o)};else if(e&&"function"==typeof e.on&&"function"==typeof e.off)e.on(t,n),a=function(){return e.off(t,n)};else if(e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener)e.addListener(t,n),a=function(){return e.removeListener(t,n)};else if(e&&e.length)for(var a,u=0,c=e.length;u<c;u++)setupSubscription(e[u],t,n,i,o);else throw TypeError("Invalid event target");i.add(a)})(e,t,function(e){arguments.length>1?i.next(Array.prototype.slice.call(arguments)):i.next(e)},i,n)})}},fromEventPattern:function(){return function fromEventPattern(e,t,n){return n?fromEventPattern(e,t).pipe((0,ef.U)(function(e){return(0,eb.k)(e)?n.apply(void 0,e):n(e)})):new i.y(function(n){var i,handler=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.next(1===e.length?e[0]:e)};try{i=e(handler)}catch(e){n.error(e);return}if((0,eE.m)(t))return function(){return t(handler,i)}})}},generate:function(){return generate},identity:function(){return ea.y},iif:function(){return iif},interval:function(){return interval},isObservable:function(){return isObservable},merge:function(){return ek.T},never:function(){return never},noop:function(){return eo.Z},observable:function(){return u.L},of:function(){return eR.of},onErrorResumeNext:function(){return onErrorResumeNext},pairs:function(){return pairs},partition:function(){return partition},pipe:function(){return es.z},queue:function(){return U.c},queueScheduler:function(){return U.N},race:function(){return eO.S3},range:function(){return range},scheduled:function(){return ej.x},throwError:function(){return eN._},timer:function(){return eA.H},using:function(){return using},zip:function(){return eL.$R}});var i=n(87304),o=n(73483),a=n(67723),u=n(31720),c=n(94589),l=n(42959),R=n(90989),j=n(26387),W=n(96614),H=n(14134),U=n(22610),J=n(33569),Q=n(95182),G=function(e){function AnimationFrameAction(t,n){var i=e.call(this,t,n)||this;
19return i.scheduler=t,i.work=n,i}return J.__extends(AnimationFrameAction,e),AnimationFrameAction.prototype.requestAsyncId=function(t,n,i){return(void 0===i&&(i=0),null!==i&&i>0)?e.prototype.requestAsyncId.call(this,t,n,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))},AnimationFrameAction.prototype.recycleAsyncId=function(t,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,i);0===t.actions.length&&(cancelAnimationFrame(n),t.scheduled=void 0)},AnimationFrameAction}(Q.o),Z=n(72350),Y=new(function(e){function AnimationFrameScheduler(){return null!==e&&e.apply(this,arguments)||this}return J.__extends(AnimationFrameScheduler,e),AnimationFrameScheduler.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,o=n.length;e=e||n.shift();do if(t=e.execute(e.state,e.delay))break;while(++i<o&&(e=n.shift()));if(this.active=!1,t){for(;++i<o&&(e=n.shift());)e.unsubscribe();throw t}},AnimationFrameScheduler}(Z.v))(G),K=Y,X=function(e){function VirtualTimeScheduler(t,n){void 0===t&&(t=ee),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=e.call(this,t,function(){return i.frame})||this;return i.maxFrames=n,i.frame=0,i.index=-1,i}return J.__extends(VirtualTimeScheduler,e),VirtualTimeScheduler.prototype.flush=function(){for(var e,t,n=this.actions,i=this.maxFrames;(t=n[0])&&t.delay<=i&&(n.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=n.shift();)t.unsubscribe();throw e}},VirtualTimeScheduler.frameTimeFactor=10,VirtualTimeScheduler}(Z.v),ee=function(e){function VirtualAction(t,n,i){void 0===i&&(i=t.index+=1);var o=e.call(this,t,n)||this;return o.scheduler=t,o.work=n,o.index=i,o.active=!0,o.index=t.index=i,o}return J.__extends(VirtualAction,e),VirtualAction.prototype.schedule=function(t,n){if(void 0===n&&(n=0),!this.id
19)return e.prototype.schedule.call(this,t,n);this.active=!1;var i=new VirtualAction(this.scheduler,this.work);return this.add(i),i.schedule(t,n)},VirtualAction.prototype.requestAsyncId=function(e,t,n){void 0===n&&(n=0),this.delay=e.frame+n;var i=e.actions;return i.push(this),i.sort(VirtualAction.sortActions),!0},VirtualAction.prototype.recycleAsyncId=function(e,t,n){void 0===n&&(n=0)},VirtualAction.prototype._execute=function(t,n){if(!0===this.active)return e.prototype._execute.call(this,t,n)},VirtualAction.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},VirtualAction}(Q.o),et=n(24496),er=n(35203),en=n(61501),ei=n(83890),es=n(63490),eo=n(53457),ea=n(43898);function isObservable(e){return!!e&&(e instanceof i.y||"function"==typeof e.lift&&"function"==typeof e.subscribe)}var eu=n(32243),ec=n(76446),el=n(79366),eh=n(86863),ed=n(8153),ef=n(57243),ep=n(99946),eb=n(13072),eg=n(87511);function dispatch(e){var t=this,n=e.args,i=e.subscriber,o=e.params,a=o.callbackFunc,u=o.context,c=o.scheduler,l=o.subject;if(!l){l=o.subject=new j.c;try{a.apply(u,n.concat([function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e.length<=1?e[0]:e;t.add(c.schedule(dispatchNext,0,{value:i,subject:l}))}]))}catch(e){l.error(e)}}this.add(l.subscribe(i))}function dispatchNext(e){var t=e.value,n=e.subject;n.next(t),n.complete()}function bindNodeCallback_dispatch(e){var t=this,n=e.params,i=e.subscriber,o=e.context,a=n.callbackFunc,u=n.args,c=n.scheduler,l=n.subject;if(!l){l=n.subject=new j.c;try{a.apply(o,u.concat([function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e.shift();if(i)t.add(c.schedule(bindNodeCallback_dispatchError,0,{err:i,subject:l}));else{var o=e.length<=1?e[0]:e;t.add(c.schedule(bindNodeCallback_dispatchNext,0,{value:o,subject:l}))}}]))}catch(e){this.add(c.schedule(bindNodeCallback_dispatchError,0,{err:e,subject:l}))}}this.add(l.subscribe(i))}function bindNodeCallback_dispatchNext(e){var t=e.value,n=e.subject;n.next(t),n.complete()}function bindNodeCallback_dispatchError(e){var t=e.err;e.subject.error(t)}var ey=n(71880),em=n(89440),ev=n(59462),e_=n(56590),eS=n(43368),ew=n(93317);function forkJoin(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){var n=e[0];if((0,eb.k)(n))return forkJoinInternal(n,null);if((0,eS.K)(n)&&Object.getPrototypeOf(n)===Object.prototype){var i=Object.keys(n);return forkJoinInternal(i.map(function(e){return n[e]}),i)}}if("function"==typeof e[e.length-1]){var o=e.pop();return forkJoinInternal(e=1===e.length&&(0,eb.k)(e[0])?e[0]:e,null).pipe((0,ef.U)(function(e){return o.apply(void 0,e)}))}return forkJoinInternal(e,null)}function forkJoinInternal(e,t){return new i.y(function(n){var i=e.length;if(0===i){n.complete();return}for(var o=Array(i),a=0,u=0,_loop_1=function(c){var l=(0,ew.D)(e[c]),R=!1;n.add(l.subscribe({next:function(e){!R&&(R=!0,u++),o[c]=e},error:function(e){return n.error(e)},complete:function(){++a!==i&&R||(u===i&&n.next(t?t.reduce(function(e,t,n){return e[t]=o[n],e},{}):o),n.complete())}}))},c=0;c<i;c++)_loop_1(c)})}var eE=n(3941);function generate(e,t,n,o,a){if(1==arguments.length){var u,c;c=e.initialState,t=e.condition,n=e.iterate,u=e.resultSelector||ea.y,a=e.scheduler}else void 0===o||(0,eg.K)(o)?(c=e,u=ea.y,a=o):(c=e,u=o);return new i.y(function(e){var i=c;if(a)return a.schedule(generate_dispatch,0,{subscriber:e,iterate:n,condition:t,resultSelector:u,state:i});for(;;){if(t){var o=void 0;try{o=t(i)}catch(t){e.error(t);return}if(!o){e.complete();break}}var l=void 0;try{l=u(i)}catch(t){e.error(t);break}if(e.next(l),e.closed)break;try{i=n(i)}catch(t){e.error(t);break}}})}function generate_dispatch(e){var t,n=e.subscriber,i=e.condition;if(!n.closed){if(e.needIterate)try{e.state=e.iterate(e.state)}catch(e){n.error(e);return}else e.needIterate=!0;if(i){var o=void 0;try{o=i(e.state)}catch(e){n.error(e);return}if(!o){n.complete();return}if(n.closed)return}try{t=e.resultSelector(e.state)}catch(e){n.error(e);return}if(!n.closed&&(n.next(t),!n.closed))return this.schedule(e)}}function iif(e,t,n){return void 0===t&&(t=e_.E),void 0===n&&(n=e_.E),(0,ev.P)(function(){return e()?t:n})}var ex=n(30518);function interval(e,t){return void 0===e&&(e=0),void 0===t&&(t=H.P),(!(0,ex.k)(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=H.P),new i.y(function(n){return n.add(t.schedule(interval_dispatch,e,{subscriber:n,counter:0,peri
19od:e})),n})}function interval_dispatch(e){var t=e.subscriber,n=e.counter,i=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}var ek=n(73606),eC=new i.y(eo.Z);function never(){return eC}var eR=n(87582);function onErrorResumeNext(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(0===e.length)return e_.E;var n=e[0],o=e.slice(1);return 1===e.length&&(0,eb.k)(n)?onErrorResumeNext.apply(void 0,n):new i.y(function(e){var subNext=function(){return e.add(onErrorResumeNext.apply(void 0,o).subscribe(e))};return(0,ew.D)(n).subscribe({next:function(t){e.next(t)},error:subNext,complete:subNext})})}function pairs(e,t){return new i.y(t?function(n){var i=Object.keys(e),o=new er.w;return o.add(t.schedule(pairs_dispatch,0,{keys:i,index:0,subscriber:n,subscription:o,obj:e})),o}:function(t){for(var n=Object.keys(e),i=0;i<n.length&&!t.closed;i++){var o=n[i];e.hasOwnProperty(o)&&t.next([o,e[o]])}t.complete()})}function pairs_dispatch(e){var t=e.keys,n=e.index,i=e.subscriber,o=e.subscription,a=e.obj;if(!i.closed){if(n<t.length){var u=t[n];i.next([u,a[u]]),o.add(this.schedule({keys:t,index:n+1,subscriber:i,subscription:o,obj:a}))}else i.complete()}}var eI=n(9768),eT=n(27800),eM=n(94431);function partition(e,t,n){return[(0,eM.h)(t,n)(new i.y((0,eT.s)(e))),(0,eM.h)((0,eI.f)(t,n))(new i.y((0,eT.s)(e)))]}var eO=n(46949);function range(e,t,n){return void 0===e&&(e=0),new i.y(function(i){void 0===t&&(t=e,e=0);var o=0,a=e;if(n)return n.schedule(range_dispatch,0,{index:o,count:t,start:e,subscriber:i});for(;;){if(o++>=t){i.complete();break}if(i.next(a++),i.closed)break}})}function range_dispatch(e){var t=e.start,n=e.index,i=e.count,o=e.subscriber;if(n>=i){o.complete();return}o.next(t),o.closed||(e.index=n+1,e.start=t+1,this.schedule(e))}var eN=n(42756),eA=n(29562);function using(e,t){return new i.y(function(n){try{i=e()}catch(e){n.error(e);return}try{o=t(i)}catch(e){n.error(e);return}var i,o,a=(o?(0,ew.D)(o):e_.E).subscribe(n);return function(){a.unsubscribe(),i&&i.unsubscribe()}})}var eL=n(40510),ej=n(7745),eD=n(32258)},26387:function(e,t,n){"use strict";n.d(t,{c:function(){return u}});var i=n(33569),o=n(94589),a=n(35203),u=function(e){function AsyncSubject(){var t=null!==e&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return i.__extends(AsyncSubject,e),AsyncSubject.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),a.w.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),a.w.EMPTY):e.prototype._subscribe.call(this,t)},AsyncSubject.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},AsyncSubject.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},AsyncSubject.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},AsyncSubject}(o.xQ)},42959:function(e,t,n){"use strict";n.d(t,{X:function(){return u}});var i=n(33569),o=n(94589),a=n(79366),u=function(e){function BehaviorSubject(t){var n=e.call(this)||this;return n._value=t,n}return i.__extends(BehaviorSubject,e),Object.defineProperty(BehaviorSubject.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),BehaviorSubject.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},BehaviorSubject.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(!this.closed)return this._value;throw new a.N},BehaviorSubject.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},BehaviorSubject}(o.xQ)},83890:function(e,t,n){"use strict";n.d(t,{P:function(){return c},W:function(){return i}});var i,o=n(56590),a=n(87582),u=n(42756);i||(i={});var c=function(){function Notification(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return Notification.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},Notification.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},Notification.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n
19)},Notification.prototype.toObservable=function(){switch(this.kind){case"N":return(0,a.of)(this.value);case"E":return(0,u._)(this.error);case"C":return(0,o.c)()}throw Error("unexpected notification kind value")},Notification.createNext=function(e){return void 0!==e?new Notification("N",e):Notification.undefinedValueNotification},Notification.createError=function(e){return new Notification("E",void 0,e)},Notification.createComplete=function(){return Notification.completeNotification},Notification.completeNotification=new Notification("C"),Notification.undefinedValueNotification=new Notification("N",void 0),Notification}()},87304:function(e,t,n){"use strict";n.d(t,{y:function(){return j}});var i=n(99946),o=n(61501),a=n(92036),u=n(35531),c=n(31720),l=n(63490),R=n(32258),j=function(){function Observable(e){this._isScalar=!1,e&&(this._subscribe=e)}return Observable.prototype.lift=function(e){var t=new Observable;return t.source=this,t.operator=e,t},Observable.prototype.subscribe=function(e,t,n){var i=this.operator,c=function(e,t,n){if(e){if(e instanceof o.L)return e;if(e[a.b])return e[a.b]()}return e||t||n?new o.L(e,t,n):new o.L(u.c)}(e,t,n);if(i?c.add(i.call(c,this.source)):c.add(this.source||R.v.useDeprecatedSynchronousErrorHandling&&!c.syncErrorThrowable?this._subscribe(c):this._trySubscribe(c)),R.v.useDeprecatedSynchronousErrorHandling&&c.syncErrorThrowable&&(c.syncErrorThrowable=!1,c.syncErrorThrown))throw c.syncErrorValue;return c},Observable.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){R.v.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),(0,i._)(e)?e.error(t):console.warn(t)}},Observable.prototype.forEach=function(e,t){var n=this;return new(t=getPromiseCtor(t))(function(t,i){var o;o=n.subscribe(function(t){try{e(t)}catch(e){i(e),o&&o.unsubscribe()}},i,t)})},Observable.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},Observable.prototype[c.L]=function(){return this},Observable.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:(0,l.U)(e)(this)},Observable.prototype.toPromise=function(e){var t=this;return new(e=getPromiseCtor(e))(function(e,n){var i;t.subscribe(function(e){return i=e},function(e){return n(e)},function(){return e(i)})})},Observable.create=function(e){return new Observable(e)},Observable}();function getPromiseCtor(e){if(e||(e=R.v.Promise||Promise),!e)throw Error("no Promise impl found");return e}},35531:function(e,t,n){"use strict";n.d(t,{c:function(){return a}});var i=n(32258),o=n(1847),a={closed:!0,next:function(e){},error:function(e){if(i.v.useDeprecatedSynchronousErrorHandling)throw e;(0,o.z)(e)},complete:function(){}}},37689:function(e,t,n){"use strict";n.d(t,{L:function(){return o}});var i=n(33569),o=function(e){function OuterSubscriber(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(OuterSubscriber,e),OuterSubscriber.prototype.notifyNext=function(e,t,n,i,o){this.destination.next(t)},OuterSubscriber.prototype.notifyError=function(e,t){this.destination.error(e)},OuterSubscriber.prototype.notifyComplete=function(e){this.destination.complete()},OuterSubscriber}(n(61501).L)},90989:function(e,t,n){"use strict";n.d(t,{t:function(){return j}});var i=n(33569),o=n(94589),a=n(22610),u=n(35203),c=n(19847),l=n(79366),R=n(57002),j=function(e){function ReplaySubject(t,n,i){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var o=e.call(this)||this;return o.scheduler=i,o._events=[],o._infiniteTimeWindow=!1,o._bufferSize=t<1?1:t,o._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(o._infiniteTimeWindow=!0,o.next=o.nextInfiniteTimeWindow):o.next=o.nextTimeWindow,o}return i.__extends(ReplaySubject,e),ReplaySubject.prototype.nextInfiniteTimeWindow=function(t){if(!this.isStopped){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift()}e.prototype.next.call(this,t)},ReplaySubject.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new ReplayEvent(this._getNow(),t)),this._trimBufferThenGetEvents()),e.prototype.next.call(this,t)},ReplaySubject.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,a=i.length;if(this.closed)throw new l.N;if(this.isStopped||this.hasError?t=u.w.EMPTY:(this.observers.push(e),t=new R.W(this,e)),o&&e.add(e=new c.ht(e,o)),n)for(var j=0;j<a&&!e.closed;j++)e.next(i[j]);else for(var j=0;j<a&&!e.closed;j++)e.next(i[j].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t},ReplaySubject.prototype._getNow=function(){return(this.scheduler||a.c).now()},ReplaySubject.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,o=i.length,a=0;a<o&&!(e-i[a].time<n);)a++;return o>t&&(a=Math.max(a,o-t)),a>0&&i.splice(0,a),i},ReplaySubject}(o.xQ),ReplayEvent=function(e,t){this.time=e,this.value=t}},24496:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var i=function(){function Scheduler(e,t){void 0===t&&(t=Scheduler.now),this.SchedulerA
19ction=e,this.now=t}return Scheduler.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},Scheduler.now=function(){return Date.now()},Scheduler}()},94589:function(e,t,n){"use strict";n.d(t,{Yc:function(){return j},xQ:function(){return W}});var i=n(33569),o=n(87304),a=n(61501),u=n(35203),c=n(79366),l=n(57002),R=n(92036),j=function(e){function SubjectSubscriber(t){var n=e.call(this,t)||this;return n.destination=t,n}return i.__extends(SubjectSubscriber,e),SubjectSubscriber}(a.L),W=function(e){function Subject(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i.__extends(Subject,e),Subject.prototype[R.b]=function(){return new j(this)},Subject.prototype.lift=function(e){var t=new H(this,this);return t.operator=e,t},Subject.prototype.next=function(e){if(this.closed)throw new c.N;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),o=0;o<n;o++)i[o].next(e)},Subject.prototype.error=function(e){if(this.closed)throw new c.N;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,i=t.slice(),o=0;o<n;o++)i[o].error(e);this.observers.length=0},Subject.prototype.complete=function(){if(this.closed)throw new c.N;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),i=0;i<t;i++)n[i].complete();this.observers.length=0},Subject.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},Subject.prototype._trySubscribe=function(t){if(!this.closed)return e.prototype._trySubscribe.call(this,t);throw new c.N},Subject.prototype._subscribe=function(e){if(this.closed)throw new c.N;return this.hasError?(e.error(this.thrownError),u.w.EMPTY):this.isStopped?(e.complete(),u.w.EMPTY):(this.observers.push(e),new l.W(this,e))},Subject.prototype.asObservable=function(){var e=new o.y;return e.source=this,e},Subject.create=function(e,t){return new H(e,t)},Subject}(o.y),H=function(e){function AnonymousSubject(t,n){var i=e.call(this)||this;return i.destination=t,i.source=n,i}return i.__extends(AnonymousSubject,e),AnonymousSubject.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},AnonymousSubject.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},AnonymousSubject.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},AnonymousSubject.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):u.w.EMPTY},AnonymousSubject}(W)},57002:function(e,t,n){"use strict";n.d(t,{W:function(){return o}});var i=n(33569),o=function(e){function SubjectSubscription(t,n){var i=e.call(this)||this;return i.subject=t,i.subscriber=n,i.closed=!1,i}return i.__extends(SubjectSubscription,e),SubjectSubscription.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},SubjectSubscription}(n(35203).w)},61501:function(e,t,n){"use strict";n.d(t,{L:function(){return j}});var i=n(33569),o=n(3941),a=n(35531),u=n(35203),c=n(92036),l=n(32258),R=n(1847),j=function(e){function Subscriber(t,n,i){var o=e.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=a.c;break;case 1:if(!t){o.destination=a.c;break}if("object"==typeof t){t instanceof Subscriber?(o.syncErrorThrowable=t.syncErrorThrowable,o.destination=t,t.add(o)):(o.syncErrorThrowable=!0,o.destination=new W(o,t));break}default:o.syncErrorThrowable=!0,o.destination=new W(o,t,n,i)}return o}return i.__extends(Subscriber,e),Subscriber.prototype[c.b]=function(){return this},Subscriber.create=function(e,t,n){var i=new Subscriber(e,t,n);return i.syncErrorThrowable=!1,i},Subscriber.prototype.next=function(e){this.isStopped||this._next(e)},Subscriber.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},Subscriber.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Subscriber.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},Subscriber.prototype._next=function(e){this.destination.next(e)},Subscriber.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},Subscriber.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},Subscriber.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},Subscriber}(u.w),W=function(e){function SafeSubscriber(t,n,i,u){var c,l=e.call(this)||this;l._parentSubscriber=t;var R=l;return(0,o.m)(n)?c=n:n&&(c=n.next,i=n.error,u=n.complete,n!==a.c&&(R=Object.create(n),(0,o.m)(R.unsubscribe)&&l.add(R.unsubscribe.bind(R)),R.unsubscribe=l.unsubscribe.bind(l))),l._context=R,l._next=c,l._error=i,l._complete=u,l}return i.__extends(SafeSubscriber,e),SafeSubscriber.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;l.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},SafeSubscriber.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=l.v.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?this.__tryOrSetError(t,this._error,e):this.__tryOrUnsub(this._error,e),this.unsubscribe();else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):(0,R.z)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;(0,R.z)(e)}}},SafeSubscriber.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var wrappedComplete=function(){return e._complete.call(e._context)};l.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,wrappedComplete):this.__tryOrUnsub(wrappedComplete),this.unsubscribe()}else this.unsubscribe()}},SafeSubscriber.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),l.v.useDeprecatedSynchronousErrorHandling)throw e;(0,R.z)(e)}},SafeSubscriber.prototype.__tryOrSetError=function(e,t,n){if(!l.v.useDeprecatedSynchronousErrorHandling)throw Error("bad call");try{t.call(this._context,n)}catch(t){if(l.v.useDeprecatedSynchronousErrorHandling)return e.syncErrorValue=t,e.syncErrorThrown=!0,!0;return(0,R.z)(t),!0}return!1},SafeSubscriber.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},SafeSubscriber}(j)},35203:function(e,t,n){"use strict";n.d(t,{w:function(){return c}});var i=n(13072),o=n(43368),a=n(3941),u=n(86863),c=function(){var e;function Subscription(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return Subscription.prototype.unsubscribe=function(){if(!this.closed){var e,t=this._parentOrParents,n=this._ctorUnsubscribe,c=this._unsubscribe,l=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof Subscription)t.remove(this);else if(null!==t)for(var R=0;R<t.length;++R)t[R].remove(this);if((0,a.m)(c)){n&&(this._unsubscribe=void 0);try{c.call(this)}catch(t){e=t instanceof u.B?flattenUnsubscriptionErrors(t.errors):[t]}}if((0,i.k)(l))for(var R=-1,j=l.length;++R<j;){var W=l[R];if((0,o.K)(W))try{W.unsubscribe()}catch(t){e=e||[],t instanceof u.B?e=e.concat(flattenUnsubscriptionErrors(t.errors)):e.push(t)}}if(e)throw new u.B(e)}},Subscription.prototype.add=function(e){var t=e;if(!e)return Subscription.EMPTY;switch(typeof e){case"function":t=new Subscription(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof Subscription)){var n=t;(t=new Subscription)._subscriptions=[n]}break;default:throw Error("unrecognized teardown "+e+" added to Subscription.")}var i=t._parentOrParents;if(null===i)t._parentOrParents=this;else if(i instanceof Subscription){if(i===this)return t;t._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return t;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[t]:o.push(t),t},Subscription.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},Subscription.EMPTY=((e=new Subscription).closed=!0,e),Subscription}();function flattenUnsubscriptionErrors(e){return e.reduce(function(e,t){return e.concat(t instanceof u.B?t.errors:t)},[])}},32258:function(e,t,n){"use strict";n.d(t,{v:function(){return o}});var i=!1,o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(value){value&&Error().stack,i=value},get useDeprecatedSynchronousErrorHandling(){return i}}},38652:function(e,t,n){"use strict";n.d(t,{Ds:function(){return l},IY:function(){return c},ft:function(){return innerSubscribe}});var i=n(33569),o=n(61501),a=n(87304),u=n(27800),c=function(e){function SimpleInnerSubscriber(t){var n=e.call(this)||this;return n.parent=t,n}return i.__extends(SimpleInnerSubscriber,e),SimpleInnerSubscriber.prototype._next=function(e){this.parent.notifyNext(e)},SimpleInnerSubscriber.prototype._error=function(e){this.parent.notifyError(e),this.unsubscribe()},SimpleInnerSubscriber.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},SimpleInnerSubscriber}(o.L),l=function(e){function SimpleOuterSubscriber(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(SimpleOuterSubscriber,e),SimpleOuterSubscriber.prototype.notifyNext=function(e){this.destination.next(e)},SimpleOuterSubscriber.prototype.notifyError=function(e){this.destination.error(e)},SimpleOuterSubscriber.prototype.notifyComplete=function(){this.destination.complete()},SimpleOuterSubscriber}(o.L);function innerSubscribe(e,t){var n;if(!t.closed){if(e instanceof a.y)return e.subscribe(t);try{n=(0,u.s)(e)(t)}catch(e){t.error(e)}return n}}},73483:function(e,t,n){"use strict";n.d(t,{N:function(){return j},c:function(){return R}});var i,o=n(33569),a=n(94589),u=n(87304),c=n(35203),l=n(62307),R=function(e){function ConnectableObservable(t,n){var i=e.call(this)||this;return i.source=t,i.subjectFactory=n,i._refCount=0,i._isComplete=!1,i}return o.__extends(ConnectableObservable,e),ConnectableObservable.prototype._subscribe=function(e){return this.get
19Subject().subscribe(e)},ConnectableObservable.prototype.getSubject=function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject},ConnectableObservable.prototype.connect=function(){var e=this._connection;return!e&&(this._isComplete=!1,(e=this._connection=new c.w).add(this.source.subscribe(new W(this.getSubject(),this))),e.closed&&(this._connection=null,e=c.w.EMPTY)),e},ConnectableObservable.prototype.refCount=function(){return(0,l.x)()(this)},ConnectableObservable}(u.y),j={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(i=R.prototype)._subscribe},_isComplete:{value:i._isComplete,writable:!0},getSubject:{value:i.getSubject},connect:{value:i.connect},refCount:{value:i.refCount}},W=function(e){function ConnectableSubscriber(t,n){var i=e.call(this,t)||this;return i.connectable=n,i}return o.__extends(ConnectableSubscriber,e),ConnectableSubscriber.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},ConnectableSubscriber.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},ConnectableSubscriber.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},ConnectableSubscriber}(a.Yc)},71880:function(e,t,n){"use strict";n.d(t,{Ms:function(){return j},aj:function(){return combineLatest}});var i=n(33569),o=n(87511),a=n(13072),u=n(37689),c=n(39169),l=n(81976),R={};function combineLatest(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=void 0,i=void 0;return(0,o.K)(e[e.length-1])&&(i=e.pop()),"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&(0,a.k)(e[0])&&(e=e[0]),(0,l.n)(e,i).lift(new j(n))}var j=function(){function CombineLatestOperator(e){this.resultSelector=e}return CombineLatestOperator.prototype.call=function(e,t){return t.subscribe(new W(e,this.resultSelector))},CombineLatestOperator}(),W=function(e){function CombineLatestSubscriber(t,n){var i=e.call(this,t)||this;return i.resultSelector=n,i.active=0,i.values=[],i.observables=[],i}return i.__extends(CombineLatestSubscriber,e),CombineLatestSubscriber.prototype._next=function(e){this.values.push(R),this.observables.push(e)},CombineLatestSubscriber.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var i=e[n];this.add((0,c.D)(this,i,void 0,n))}}},CombineLatestSubscriber.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},CombineLatestSubscriber.prototype.notifyNext=function(e,t,n){var i=this.values,o=i[n],a=this.toRespond?o===R?--this.toRespond:this.toRespond:0;i[n]=t,0===a&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))},CombineLatestSubscriber.prototype._tryResultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){this.destination.error(e);return}this.destination.next(t)},CombineLatestSubscriber}(u.L)},89440:function(e,t,n){"use strict";n.d(t,{z:function(){return concat}});var i=n(87582),o=n(12936);function concat(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,o.u)()(i.of.apply(void 0,e))}},59462:function(e,t,n){"use strict";n.d(t,{P:function(){return defer}});var i=n(87304),o=n(93317),a=n(56590);function defer(e){return new i.y(function(t){var n;try{n=e()}catch(e){t.error(e);return}return(n?(0,o.D)(n):(0,a.c)()).subscribe(t)})}},56590:function(e,t,n){"use strict";n.d(t,{E:function(){return o},c:function(){return empty}});var i=n(87304),o=new i.y(function(e){return e.complete()});function empty(e){return e?new i.y(function(t){return e.schedule(function(){return t.complete()})}):o}},93317:function(e,t,n){"use strict";n.d(t,{D:function(){return from}});var i=n(87304),o=n(27800),a=n(7745);function from(e,t){return t?(0,a.x)(e,t):e instanceof i.y?e:new i.y((0,o.s)(e))}},81976:function(e,t,n){"use strict";n.d(t,{n:function(){return fromArray}});var i=n(87304),o=n(77207),a=n(83881);
19function fromArray(e,t){return t?(0,a.r)(e,t):new i.y((0,o.V)(e))}},73606:function(e,t,n){"use strict";n.d(t,{T:function(){return merge}});var i=n(87304),o=n(87511),a=n(97019),u=n(81976);function merge(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Number.POSITIVE_INFINITY,c=null,l=e[e.length-1];return((0,o.K)(l)?(c=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof l&&(n=e.pop()),null===c&&1===e.length&&e[0]instanceof i.y)?e[0]:(0,a.J)(n)((0,u.n)(e,c))}},87582:function(e,t,n){"use strict";n.d(t,{of:function(){return of}});var i=n(87511),o=n(81976),a=n(83881);function of(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return(0,i.K)(n)?(e.pop(),(0,a.r)(e,n)):(0,o.n)(e)}},46949:function(e,t,n){"use strict";n.d(t,{S3:function(){return race}});var i=n(33569),o=n(13072),a=n(81976),u=n(37689),c=n(39169);function race(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){if(!(0,o.k)(e[0]))return e[0];e=e[0]}return(0,a.n)(e,void 0).lift(new l)}var l=function(){function RaceOperator(){}return RaceOperator.prototype.call=function(e,t){return t.subscribe(new R(e))},RaceOperator}(),R=function(e){function RaceSubscriber(t){var n=e.call(this,t)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return i.__extends(RaceSubscriber,e),RaceSubscriber.prototype._next=function(e){this.observables.push(e)},RaceSubscriber.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(var n=0;n<t&&!this.hasFirst;n++){var i=e[n],o=(0,c.D)(this,i,void 0,n);this.subscriptions&&this.subscriptions.push(o),this.add(o)}this.observables=null}},RaceSubscriber.prototype.notifyNext=function(e,t,n){if(!this.hasFirst){this.hasFirst=!0;for(var i=0;i<this.subscriptions.length;i++)if(i!==n){var o=this.subscriptions[i];o.unsubscribe(),this.remove(o)}this.subscriptions=null}this.destination.next(t)},RaceSubscriber}(u.L)},42756:function(e,t,n){"use strict";n.d(t,{_:function(){return throwError}});var i=n(87304);function throwError(e,t){return new i.y(t?function(n){return t.schedule(dispatch,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function dispatch(e){var t=e.error;e.subscriber.error(t)}},29562:function(e,t,n){"use strict";n.d(t,{H:function(){return timer}});var i=n(87304),o=n(14134),a=n(30518),u=n(87511);function timer(e,t,n){void 0===e&&(e=0);var c=-1;return(0,a.k)(t)?c=1>Number(t)&&1||Number(t):(0,u.K)(t)&&(n=t),(0,u.K)(n)||(n=o.P),new i.y(function(t){var i=(0,a.k)(e)?e:+e-n.now();return n.schedule(dispatch,i,{index:0,period:c,subscriber:t})})}function dispatch(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}},40510:function(e,t,n){"use strict";n.d(t,{$R:function(){return zip},mx:function(){return R}});var i=n(33569),o=n(81976),a=n(13072),u=n(61501),c=n(48183),l=n(38652);function zip(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return"function"==typeof n&&e.pop(),(0,o.n)(e,void 0).lift(new R(n))}var R=function(){function ZipOperator(e){this.resultSelector=e}return ZipOperator.prototype.call=function(e,t){return t.subscribe(new j(e,this.resultSelector))},ZipOperator}(),j=function(e){function ZipSubscriber(t,n,i){void 0===i&&(i=Object.create(null));var o=e.call(this,t)||this;return o.resultSelector=n,o.iterators=[],o.active=0,o.resultSelector="function"==typeof n?n:void 0,o}return i.__extends(ZipSubscriber,e),ZipSubscriber.prototype._next=function(e){var t=this.iterators;(0,a.k)(e)?t.push(new H(e)):"function"==typeof e[c.hZ]?t.push(new W(e[c.hZ]())):t.push(new U(this.destination,this,e))},ZipSubscriber.prototype._complete=function(){var e=this.iterators,t=e.length;if(this.unsubscribe(),0===t){this.destination.complete();return}this.active=t;for(var n=0;n<t;n++){var i=e[n];i.stillUnsubscribed?this.destination.add(i.subscribe()):this.active--}},ZipSubscriber.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},ZipSubscriber.prototype.checkIterators=function(){for(var e=this.iterators,t=e.length,n=this.destination,i=0;i<t;i++){var o=e[i];if("function"==typeof o.hasValue&&!o.hasValue())return}for(var a=!1,u=[],i=0;i<t;i++){var o=e[i],c=o.next();if(o.hasCompleted()&&(a=!0),c.done){n.complete();return}u.push(c.value)}
19this.resultSelector?this._tryresultSelector(u):n.next(u),a&&n.complete()},ZipSubscriber.prototype._tryresultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){this.destination.error(e);return}this.destination.next(t)},ZipSubscriber}(u.L),W=function(){function StaticIterator(e){this.iterator=e,this.nextResult=e.next()}return StaticIterator.prototype.hasValue=function(){return!0},StaticIterator.prototype.next=function(){var e=this.nextResult;return this.nextResult=this.iterator.next(),e},StaticIterator.prototype.hasCompleted=function(){var e=this.nextResult;return!!(e&&e.done)},StaticIterator}(),H=function(){function StaticArrayIterator(e){this.array=e,this.index=0,this.length=0,this.length=e.length}return StaticArrayIterator.prototype[c.hZ]=function(){return this},StaticArrayIterator.prototype.next=function(e){var t=this.index++,n=this.array;return t<this.length?{value:n[t],done:!1}:{value:null,done:!0}},StaticArrayIterator.prototype.hasValue=function(){return this.array.length>this.index},StaticArrayIterator.prototype.hasCompleted=function(){return this.array.length===this.index},StaticArrayIterator}(),U=function(e){function ZipBufferIterator(t,n,i){var o=e.call(this,t)||this;return o.parent=n,o.observable=i,o.stillUnsubscribed=!0,o.buffer=[],o.isComplete=!1,o}return i.__extends(ZipBufferIterator,e),ZipBufferIterator.prototype[c.hZ]=function(){return this},ZipBufferIterator.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},ZipBufferIterator.prototype.hasValue=function(){return this.buffer.length>0},ZipBufferIterator.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},ZipBufferIterator.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},ZipBufferIterator.prototype.notifyNext=function(e){this.buffer.push(e),this.parent.checkIterators()},ZipBufferIterator.prototype.subscribe=function(){return(0,l.ft)(this.observable,new l.IY(this))},ZipBufferIterator}(l.Ds)},12936:function(e,t,n){"use strict";n.d(t,{u:function(){return concatAll}});var i=n(97019);function concatAll(){return(0,i.J)(1)}},94431:function(e,t,n){"use strict";n.d(t,{h:function(){return filter}});var i=n(33569),o=n(61501);function filter(e,t){return function(n){return n.lift(new a(e,t))}}var a=function(){function FilterOperator(e,t){this.predicate=e,this.thisArg=t}return FilterOperator.prototype.call=function(e,t){return t.subscribe(new u(e,this.predicate,this.thisArg))},FilterOperator}(),u=function(e){function FilterSubscriber(t,n,i){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=i,o.count=0,o}return i.__extends(FilterSubscriber,e),FilterSubscriber.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){this.destination.error(e);return}t&&this.destination.next(e)},FilterSubscriber}(o.L)},67723:function(e,t,n){"use strict";n.d(t,{T:function(){return W},v:function(){return groupBy}});var i=n(33569),o=n(61501),a=n(35203),u=n(87304),c=n(94589);function groupBy(e,t,n,i){return function(o){return o.lift(new l(e,t,n,i))}}var l=function(){function GroupByOperator(e,t,n,i){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=i}return GroupByOperator.prototype.call=function(e,t){return t.subscribe(new R(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},GroupByOperator}(),R=function(e){function GroupBySubscriber(t,n,i,o,a){var u=e.call(this,t)||this;return u.keySelector=n,u.elementSelector=i,u.durationSelector=o,u.subjectSelector=a,u.groups=null,u.attemptedToUnsubscribe=!1,u.count=0,u}return i.__extends(GroupBySubscriber,e),GroupBySubscriber.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(e){this.error(e);return}this._group(e,t)},GroupBySubscriber.prototype._group=function(e,t){var n,i=this.groups;i||(i=this.groups=new Map);var o=i.get(t);if(this.elementSelector)try{n=this.elementSelector(e)}catch(e){this.error(e)}else n=e;if(!o){o=this.subjectSelector?this.subjectSelector():new c.xQ,i.set(t,o);var a=new W(t,o,this);if(this.destination.next(a),this.durationSelector){var u=void 0;try{u=this.durationSelector(new W(t,o))}catch(e){this.error(e);return}this.add(u.subscribe(new j(t,o,this)))}}o.closed||o.next(n)},GroupBySubscriber.prototype._error=function(e){var t=this.groups;t&&(t.forEach(function(t,n){t.error(e)}),t.clear()),this.destination.error(e)},GroupBySubscriber.prototype._complete=function(){var e=this.groups;e&&(e.forEach(function(e,t){e.complete()}),e.clear()),this.destination.complete()},GroupBySubscriber.prototype.removeGroup=function(e){this.groups.delete(e)},GroupBySubscriber.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&e.prototype.unsubscribe.call(this))},GroupBySubscriber}(o.L),j=function(e){function GroupDurationSubscriber(t,n,i){var o=e.call(this,n)||this;return o.key=t,o.group=n,o.parent=i,o}return i.__extends(GroupDurationSubscriber,e),GroupDurationSubscriber.prototype._next=function(e){this.complete()},GroupDurationSubscriber.prototype._unsubscribe=function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)},GroupDurationSubscriber}(o.L),W=function(e){function GroupedObservable(t,n,i){var o=e.call(this)||this;return o.key=t,o.groupSubject=n,o.refCountSubscription=i,o}return i.__extends(GroupedObservable,e),GroupedObservable.prototype._subscribe=function(e){var t=new a.w,n=this.refCountSubscription,i=this.groupSubject;return n&&!n.closed&&t.add(new H(n)),t.add(i.subscribe(e)),t},GroupedObservable}(u.y),H=function(e){function InnerRefCountSubscription(t){var n=e.call(this)||this;return n.parent=t,t.count++,n}return i.__extends(InnerRefCountSubscription,e),InnerRefCountSubscription.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},InnerRefCountSubscription}(a.w)},57243:function(e,t,n){"use strict";n.d(t,{U:function(){return map}});var i=n(33569),o=n(61501);function map(e,t){return function(n){if("function"!=typeof e)throw TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(e,t))}}var a=function(){function MapOperator(e,t){this.project=e,this.thisArg=t}return MapOperator.prototype.call=function(e,t){return t.subscribe(new u(e,this.project,this.thisArg))},MapOperator}(),u=function(e){function MapSubscriber(t,n,i){var o=e.call(this,t)||this;return o.project=n,o.count=0,o.thisArg=i||o,o}
19return i.__extends(MapSubscriber,e),MapSubscriber.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){this.destination.error(e);return}this.destination.next(t)},MapSubscriber}(o.L)},97019:function(e,t,n){"use strict";n.d(t,{J:function(){return mergeAll}});var i=n(62990),o=n(43898);function mergeAll(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),(0,i.zg)(o.y,e)}},62990:function(e,t,n){"use strict";n.d(t,{VS:function(){return R},zg:function(){return mergeMap}});var i=n(33569),o=n(57243),a=n(93317),u=n(38652);function mergeMap(e,t,n){return(void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t)?function(i){return i.pipe(mergeMap(function(n,i){return(0,a.D)(e(n,i)).pipe((0,o.U)(function(e,o){return t(n,e,i,o)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new c(e,n))})}var c=function(){function MergeMapOperator(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return MergeMapOperator.prototype.call=function(e,t){return t.subscribe(new l(e,this.project,this.concurrent))},MergeMapOperator}(),l=function(e){function MergeMapSubscriber(t,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY);var o=e.call(this,t)||this;return o.project=n,o.concurrent=i,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return i.__extends(MergeMapSubscriber,e),MergeMapSubscriber.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},MergeMapSubscriber.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){this.destination.error(e);return}this.active++,this._innerSub(t)},MergeMapSubscriber.prototype._innerSub=function(e){var t=new u.IY(this),n=this.destination;n.add(t);var i=(0,u.ft)(e,t);i!==t&&n.add(i)},MergeMapSubscriber.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},MergeMapSubscriber.prototype.notifyNext=function(e){this.destination.next(e)},MergeMapSubscriber.prototype.notifyComplete=function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},MergeMapSubscriber}(u.Ds),R=mergeMap},19847:function(e,t,n){"use strict";n.d(t,{QV:function(){return observeOn},ht:function(){return c}});var i=n(33569),o=n(61501),a=n(83890);function observeOn(e,t){return void 0===t&&(t=0),function(n){return n.lift(new u(e,t))}}var u=function(){function ObserveOnOperator(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return ObserveOnOperator.prototype.call=function(e,t){return t.subscribe(new c(e,this.scheduler,this.delay))},ObserveOnOperator}(),c=function(e){function ObserveOnSubscriber(t,n,i){void 0===i&&(i=0);var o=e.call(this,t)||this;return o.scheduler=n,o.delay=i,o}return i.__extends(ObserveOnSubscriber,e),ObserveOnSubscriber.dispatch=function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()},ObserveOnSubscriber.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(ObserveOnSubscriber.dispatch,this.delay,new ObserveOnMessage(e,this.destination)))},ObserveOnSubscriber.prototype._next=function(e){this.scheduleMessage(
19a.P.createNext(e))},ObserveOnSubscriber.prototype._error=function(e){this.scheduleMessage(a.P.createError(e)),this.unsubscribe()},ObserveOnSubscriber.prototype._complete=function(){this.scheduleMessage(a.P.createComplete()),this.unsubscribe()},ObserveOnSubscriber}(o.L),ObserveOnMessage=function(e,t){this.notification=e,this.destination=t}},62307:function(e,t,n){"use strict";n.d(t,{x:function(){return refCount}});var i=n(33569),o=n(61501);function refCount(){return function(e){return e.lift(new a(e))}}var a=function(){function RefCountOperator(e){this.connectable=e}return RefCountOperator.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var i=new u(e,n),o=t.subscribe(i);return i.closed||(i.connection=n.connect()),o},RefCountOperator}(),u=function(e){function RefCountSubscriber(t,n){var i=e.call(this,t)||this;return i.connectable=n,i}return i.__extends(RefCountSubscriber,e),RefCountSubscriber.prototype._unsubscribe=function(){var e=this.connectable;if(!e){this.connection=null;return}this.connectable=null;var t=e._refCount;if(t<=0||(e._refCount=t-1,t>1)){this.connection=null;return}var n=this.connection,i=e._connection;this.connection=null,i&&(!n||i===n)&&i.unsubscribe()},RefCountSubscriber}(o.L)},83881:function(e,t,n){"use strict";n.d(t,{r:function(){return scheduleArray}});var i=n(87304),o=n(35203);function scheduleArray(e,t){return new i.y(function(n){var i=new o.w,a=0;return i.add(t.schedule(function(){if(a===e.length){n.complete();return}n.next(e[a++]),n.closed||i.add(this.schedule())})),i})}},7745:function(e,t,n){"use strict";n.d(t,{x:function(){return scheduled}});var i=n(87304),o=n(35203),a=n(31720),u=n(83881),c=n(48183),l=n(42368),R=n(5664);function scheduled(e,t){if(null!=e){if(e&&"function"==typeof e[a.L])return new i.y(function(n){var i=new o.w;return i.add(t.schedule(function(){var o=e[a.L]();i.add(o.subscribe({next:function(e){i.add(t.schedule(function(){return n.next(e)}))},error:function(e){i.add(t.schedule(function(){return n.error(e)}))},complete:function(){i.add(t.schedule(function(){return n.complete()}))}}))})),i});if((0,l.t)(e))return new i.y(function(n){var i=new o.w;return i.add(t.schedule(function(){return e.then(function(e){i.add(t.schedule(function(){n.next(e),i.add(t.schedule(function(){return n.complete()}))}))},function(e){i.add(t.schedule(function(){return n.error(e)}))})})),i});if((0,R.z)(e))return(0,u.r)(e,t);if(e&&"function"==typeof e[c.hZ]||"string"==typeof e)return function(e,t){if(!e)throw Error("Iterable cannot be null");return new i.y(function(n){var i,a=new o.w;return a.add(function(){i&&"function"==typeof i.return&&i.return()}),a.add(t.schedule(function(){i=e[c.hZ](),a.add(t.schedule(function(){if(!n.closed){try{var e,t,o=i.next();e=o.value,t=o.done}catch(e){n.error(e);return}t?n.complete():(n.next(e),this.schedule())}}))})),a})}(e,t)}throw TypeError((null!==e&&typeof e||e)+" is not observable")}},95182:function(e,t,n){"use strict";n.d(t,{o:function(){return o}});var i=n(33569),o=function(e){function AsyncAction(t,n){var i=e.call(this,t,n)||this;
19return i.scheduler=t,i.work=n,i.pending=!1,i}return i.__extends(AsyncAction,e),AsyncAction.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this},AsyncAction.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},AsyncAction.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},AsyncAction.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},AsyncAction.prototype._execute=function(e,t){var n=!1,i=void 0;try{this.work(e)}catch(e){n=!0,i=!!e&&e||Error(e)}if(n)return this.unsubscribe(),i},AsyncAction.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},AsyncAction}(function(e){function Action(t,n){return e.call(this)||this}return i.__extends(Action,e),Action.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},Action}(n(35203).w))},72350:function(e,t,n){"use strict";n.d(t,{v:function(){return a}});var i=n(33569),o=n(24496),a=function(e){function AsyncScheduler(t,n){void 0===n&&(n=o.b.now);var i=e.call(this,t,function(){return AsyncScheduler.delegate&&AsyncScheduler.delegate!==i?AsyncScheduler.delegate.now():n()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return i.__extends(AsyncScheduler,e),AsyncScheduler.prototype.schedule=function(t,n,i){return(void 0===n&&(n=0),AsyncScheduler.delegate&&AsyncScheduler.delegate!==this)?AsyncScheduler.delegate.schedule(t,n,i):e.prototype.schedule.call(this,t,n,i)},AsyncScheduler.prototype.flush=function(e){var t,n=this.actions;if(this.active){n.push(e);return}this.active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=n.shift());if(this.active=!1,t){for(;e=n.shift();)e.unsubscribe();throw t}},AsyncScheduler}(o.b)},96614:function(e,t,n){"use strict";n.d(t,{e:function(){return j},E:function(){return R}});var i=n(33569),o=1,a=Promise.resolve(),u={};function findAndClearHandle(e){return e in u&&(delete u[e],!0)}var c={setImmediate:function(e){var t=o++;return u[t]=!0,a.then(function(){return findAndClearHandle(t)&&e()}),t},clearImmediate:function(e){findAndClearHandle(e)}},l=function(e){function AsapAction(t,n){var i=e.call(this,t,n)||this;
19return i.scheduler=t,i.work=n,i}return i.__extends(AsapAction,e),AsapAction.prototype.requestAsyncId=function(t,n,i){return(void 0===i&&(i=0),null!==i&&i>0)?e.prototype.requestAsyncId.call(this,t,n,i):(t.actions.push(this),t.scheduled||(t.scheduled=c.setImmediate(t.flush.bind(t,null))))},AsapAction.prototype.recycleAsyncId=function(t,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,i);0===t.actions.length&&(c.clearImmediate(n),t.scheduled=void 0)},AsapAction}(n(95182).o),R=new(function(e){function AsapScheduler(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(AsapScheduler,e),AsapScheduler.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,o=n.length;e=e||n.shift();do if(t=e.execute(e.state,e.delay))break;while(++i<o&&(e=n.shift()));if(this.active=!1,t){for(;++i<o&&(e=n.shift());)e.unsubscribe();throw t}},AsapScheduler}(n(72350).v))(l),j=R},14134:function(e,t,n){"use strict";n.d(t,{P:function(){return a},z:function(){return o}});var i=n(95182),o=new(n(72350)).v(i.o),a=o},22610:function(e,t,n){"use strict";n.d(t,{c:function(){return u},N:function(){return a}});var i=n(33569),o=function(e){function QueueAction(t,n){var i=e.call(this,t,n)||this;
19return i.scheduler=t,i.work=n,i}return i.__extends(QueueAction,e),QueueAction.prototype.schedule=function(t,n){return(void 0===n&&(n=0),n>0)?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},QueueAction.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},QueueAction.prototype.requestAsyncId=function(t,n,i){return(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)?e.prototype.requestAsyncId.call(this,t,n,i):t.flush(this)},QueueAction}(n(95182).o),a=new(function(e){function QueueScheduler(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(QueueScheduler,e),QueueScheduler}(n(72350).v))(o),u=a},48183:function(e,t,n){"use strict";n.d(t,{hZ:function(){return i}});var i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},31720:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var i="function"==typeof Symbol&&Symbol.observable||"@@observable"},92036:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},32243:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var i=function(){function ArgumentOutOfRangeErrorImpl(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return ArgumentOutOfRangeErrorImpl.prototype=Object.create(Error.prototype),ArgumentOutOfRangeErrorImpl}()},76446:function(e,t,n){"use strict";n.d(t,{K:function(){return i}});var i=function(){function EmptyErrorImpl(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return EmptyErrorImpl.prototype=Object.create(Error.prototype),EmptyErrorImpl}()},79366:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var i=function(){function ObjectUnsubscribedErrorImpl(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return ObjectUnsubscribedErrorImpl.prototype=Object.create(Error.prototype),ObjectUnsubscribedErrorImpl}()},8153:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var i=function(){function TimeoutErrorImpl(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return TimeoutErrorImpl.prototype=Object.create(Error.prototype),TimeoutErrorImpl}()},86863:function(e,t,n){"use strict";n.d(t,{B:function(){return i}});var i=function(){function UnsubscriptionErrorImpl(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=e,this}return UnsubscriptionErrorImpl.prototype=Object.create(Error.prototype),UnsubscriptionErrorImpl}()},99946:function(e,t,n){"use strict";n.d(t,{_:function(){return canReportError}});var i=n(61501);function canReportError(e){for(;e;){var t=e,n=t.closed,o=t.destination,a=t.isStopped;if(n||a)return!1;e=o&&o instanceof i.L?o:null}return!0}},1847:function(e,t,n){"use strict";function hostReportError(e){setTimeout(function(){throw e},0)}n.d(t,{z:function(){return hostReportError}})},43898:function(e,t,n){"use strict";function identity(e){return e}n.d(t,{y:function(){return identity}})},13072:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var i=Array.isArray||function(e){return e&&"number"==typeof e.length}},5664:function(e,t,n){"use strict";n.d(t,{z:function(){return isArrayLike}});var isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},3941:function(e,t,n){"use strict";function isFunction(e){return"function"==typeof e}n.d(t,{m:function(){return isFunction}})},30518:function(e,t,n){"use strict";n.d(t,{k:function(){return isNumeric}});var i=n(13072);function isNumeric(e){return!(0,i.k)(e)&&e-parseFloat(e)+1>=0}},43368:function(e,t,n){"use strict";function isObject(e){return null!==e&&"object"==typeof e}n.d(t,{K:function(){return isObject}})},42368:function(e,t,n){"use strict";function isPromise(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,{t:function(){return isPromise}})},87511:function(e,t,n){"use strict";function isScheduler(e){return e&&"function"==typeof e.schedule}n.d(t,{K:function(){return isScheduler}})},53457:function(e,t,n){"use strict";function noop(){}n.d(t,{Z:function(){return noop}})},9768:function(e,t,n){"use strict";function not(e,t){function notPred(){return!notPred.pred.apply(notPred.thisArg,arguments)}return notPred.pred=e,notPred.thisArg=t,notPred}n.d(t,{f:function(){return not}})},63490:function(e,t,n){"use strict";n.d(t,{U:function(){return pipeFromArray},z:function(){return pipe}});var i=n(43898);function pipe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return pipeFromArray(e)}
19function pipeFromArray(e){return 0===e.length?i.y:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}},27800:function(e,t,n){"use strict";n.d(t,{s:function(){return subscribeTo}});var i=n(77207),o=n(1847),a=n(48183),u=n(31720),c=n(5664),l=n(42368),R=n(43368),subscribeTo=function(e){if(e&&"function"==typeof e[u.L])return function(t){var n=e[u.L]();if("function"==typeof n.subscribe)return n.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")};if((0,c.z)(e))return(0,i.V)(e);if((0,l.t)(e))return function(t){return e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,o.z),t};if(e&&"function"==typeof e[a.hZ])return function(t){for(var n=e[a.hZ]();;){var i=void 0;try{i=n.next()}catch(e){return t.error(e),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof n.return&&t.add(function(){n.return&&n.return()}),t};throw TypeError("You provided "+((0,R.K)(e)?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},77207:function(e,t,n){"use strict";n.d(t,{V:function(){return subscribeToArray}});var subscribeToArray=function(e){return function(t){for(var n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()}}},39169:function(e,t,n){"use strict";n.d(t,{D:function(){return subscribeToResult}});var i=n(33569),o=function(e){function InnerSubscriber(t,n,i){var o=e.call(this)||this;return o.parent=t,o.outerValue=n,o.outerIndex=i,o.index=0,o}return i.__extends(InnerSubscriber,e),InnerSubscriber.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},InnerSubscriber.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},InnerSubscriber.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},InnerSubscriber}(n(61501).L),a=n(27800),u=n(87304);function subscribeToResult(e,t,n,i,c){return(void 0===c&&(c=new o(e,n,i)),c.closed)?void 0:t instanceof u.y?t.subscribe(c):(0,a.s)(t)(c)}},14087:function(e,t,n){"use strict";n.r(t),n.d(t,{audit:function(){return audit},auditTime:function(){return auditTime},buffer:function(){return buffer},bufferCount:function(){return bufferCount},bufferTime:function(){return bufferTime},bufferToggle:function(){return bufferToggle},bufferWhen:function(){return bufferWhen},catchError:function(){return catchError},combineAll:function(){return combineAll},combineLatest:function(){return combineLatest_combineLatest},concat:function(){return concat_concat},concatAll:function(){return el.u},concatMap:function(){return concatMap},concatMapTo:function(){return concatMapTo},count:function(){return count},debounce:function(){return debounce},debounceTime:function(){return debounceTime},defaultIfEmpty:function(){return defaultIfEmpty},delay:function(){return delay},delayWhen:function(){return delayWhen},dematerialize:function(){return dematerialize},distinct:function(){return distinct},distinctUntilChanged:function(){return distinctUntilChanged},distinctUntilKeyChanged:function(){return distinctUntilKeyChanged},elementAt:function(){return elementAt},endWith:function(){return endWith},every:function(){return every},exhaust:function(){return exhaust},exhaustMap:function(){return function exhaustMap(e,t){return t?function(n){return n.pipe(exhaustMap(function(n,i){return(0,eu.D)(e(n,i)).pipe((0,eJ.U)(function(e,o){return t(n,e,i,o)}))}))}:function(t){return t.lift(new eQ(e))}}},expand:function(){return expand},filter:function(){return ej.h},finalize:function(){return finalize},find:function(){return find},findIndex:function(){return findIndex},first:function(){return first},flatMap:function(){return eh.VS},groupBy:function(){return e3.v},ignoreElements:function(){return ignoreElements},isEmpty:function(){return isEmpty},last:function(){return last},map:function(){return eJ.U},mapTo:function(){return mapTo},materialize:function(){return materialize},max:function(){return max},merge:function(){return merge_merge},mergeAll:function(){return tu.J},mergeMap:function(){return eh.zg},mergeMapTo:function(){return mergeMapTo},mergeScan:function(){return mergeScan},min:function(){return min},multicast:function(){return multicast},observeOn:function(){return tf.QV},onErrorResumeNext:function(){return onErrorResumeNext},pairwise:function(){return pairwise},partition:function(){return partition},pluck:function(){return pluck},publish:function(){return publish},publishBehavior:function(){return publishBehavior},publishLast:function(){return publishLast},publishReplay:function(){return publishReplay},race:function(){return race_race},reduce:function(){return reduce},refCount:function(){return tN.x},repeat:function(){return repeat},repeatWhen:function(){return repeatWhen},retry:function(){return retry},retryWhen:function(){return retryWhen},sample:function(){return sample},sampleTime:function(){return sampleTime},scan:function(){return scan},sequenceEqual:function(){return sequenceEqual},share:function(){return share},shareReplay:function(){return shareReplay},single:function(){return single},skip:function(){return skip},skipLast:function(){return skipLast},skipUntil:function(){return skipUntil},skipWhile:function(){return skipWhile},startWith:function(){return startWith},subscribeOn:function(){return subscribeOn},switchAll:function(){return switchAll},switchMap:function(){return switchMap},switchMapTo:function(){return switchMapTo},take:function(){return take},takeLast:function(){return takeLast},takeUntil:function(){return takeUntil},takeWhile:function(){return takeWhile},tap:function(){return tap},throttle:function(){return throttle},throttleTime:function(){return throttleTime},throwIfEmpty:function(){return throwIfEmpty},timeInterval:function(){return timeInterval},timeout:function(){return timeout},timeoutWith:function(){return timeoutWith},timestamp:function(){return timestamp},toArray:function(){return toArray},window:function(){return window_window},windowCount:function(){return windowCount},windowTime:function(){return windowTime},windowToggle:function(){return windowToggle},windowWhen:function(){return windowWhen},withLatestFrom:function(){return withLatestFrom},zip:function(){return zip_zip},zipAll:function(){return zipAll}});var i=n(33569),o=n(38652);function audit(e){return function(t){return t.lift(new a(e))}}var a=function(){function AuditOperator(e){this.durationSelector=e}return AuditOperator.prototype.call=function(e,t){return t.subscribe(new u(e,this.durationSelector))},AuditOperator}(),u=function(e){function AuditSubscriber(t,n){var i=e.call(this,t)||this;return i.durationSelector=n,i.hasValue=!1,i}return i.__extends(AuditSubscriber,e),AuditSubscriber.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t=void 0;try{t=(0,this.durationSelector)(e)}catch(e){return this.destination.error(e)}var n=(0,o.ft)(t,new o.IY(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},AuditSubscriber.prototype.clearThrottle=function(){var e=this.value,t=this.hasValue,n=this.throttled;
19n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))},AuditSubscriber.prototype.notifyNext=function(){this.clearThrottle()},AuditSubscriber.prototype.notifyComplete=function(){this.clearThrottle()},AuditSubscriber}(o.Ds),c=n(14134),l=n(29562);function auditTime(e,t){return void 0===t&&(t=c.P),audit(function(){return(0,l.H)(e,t)})}function buffer(e){return function(t){return t.lift(new R(e))}}var R=function(){function BufferOperator(e){this.closingNotifier=e}return BufferOperator.prototype.call=function(e,t){return t.subscribe(new j(e,this.closingNotifier))},BufferOperator}(),j=function(e){function BufferSubscriber(t,n){var i=e.call(this,t)||this;return i.buffer=[],i.add((0,o.ft)(n,new o.IY(i))),i}return i.__extends(BufferSubscriber,e),BufferSubscriber.prototype._next=function(e){this.buffer.push(e)},BufferSubscriber.prototype.notifyNext=function(){var e=this.buffer;this.buffer=[],this.destination.next(e)},BufferSubscriber}(o.Ds),W=n(61501);function bufferCount(e,t){return void 0===t&&(t=null),function(n){return n.lift(new H(e,t))}}var H=function(){function BufferCountOperator(e,t){this.bufferSize=e,this.startBufferEvery=t,t&&e!==t?this.subscriberClass=J:this.subscriberClass=U}return BufferCountOperator.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},BufferCountOperator}(),U=function(e){function BufferCountSubscriber(t,n){var i=e.call(this,t)||this;return i.bufferSize=n,i.buffer=[],i}return i.__extends(BufferCountSubscriber,e),BufferCountSubscriber.prototype._next=function(e){var t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])},BufferCountSubscriber.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),e.prototype._complete.call(this)},BufferCountSubscriber}(W.L),J=function(e){function BufferSkipCountSubscriber(t,n,i){var o=e.call(this,t)||this;return o.bufferSize=n,o.startBufferEvery=i,o.buffers=[],o.count=0,o}return i.__extends(BufferSkipCountSubscriber,e),BufferSkipCountSubscriber.prototype._next=function(e){var t=this.bufferSize,n=this.startBufferEvery,i=this.buffers,o=this.count;this.count++,o%n==0&&i.push([]);for(var a=i.length;a--;){var u=i[a];u.push(e),u.length===t&&(i.splice(a,1),this.destination.next(u))}},BufferSkipCountSubscriber.prototype._complete=function(){for(var t=this.buffers,n=this.destination;t.length>0;){var i=t.shift();i.length>0&&n.next(i)}e.prototype._complete.call(this)},BufferSkipCountSubscriber}(W.L),Q=n(87511);function bufferTime(e){var t=arguments.length,n=c.P;(0,Q.K)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);var i=null;t>=2&&(i=arguments[1]);var o=Number.POSITIVE_INFINITY;return t>=3&&(o=arguments[2]),function(t){return t.lift(new G(e,i,o,n))}}var G=function(){function BufferTimeOperator(e,t,n,i){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=i}return BufferTimeOperator.prototype.call=function(e,t){return t.subscribe(new Z(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},BufferTimeOperator}(),Context=function(){this.buffer=[]},Z=function(e){function BufferTimeSubscriber(t,n,i,o,a){var u=e.call(this,t)||this;u.bufferTimeSpan=n,u.bufferCreationInterval=i,u.maxBufferSize=o,u.scheduler=a,u.contexts=[];var c=u.openContext();return u.timespanOnly=null==i||i<0,u.timespanOnly?u.add(c.closeAction=a.schedule(dispatchBufferTimeSpanOnly,n,{subscriber:u,context:c,bufferTimeSpan:n})):(u.add(c.closeAction=a.schedule(dispatchBufferClose,n,{subscriber:u,context:c})),u.add(a.schedule(dispatchBufferCreation,i,{bufferTimeSpan:n,bufferCreationInterval:i,subscriber:u,scheduler:a}))),u}return i.__extends(BufferTimeSubscriber,e),BufferTimeSubscriber.prototype._next=function(e){for(var t,n=this.contexts,i=n.length,o=0;o<i;o++){var a=n[o],u=a.buffer;u.push(e),u.length==this.maxBufferSize&&(t=a)}t&&this.onBufferFull(t)},BufferTimeSubscriber.prototype._error=function(t){this.contexts.length=0,e.prototype._error.call(this,t)},BufferTimeSubscriber.prototype._complete=function(){for(var t=this.contexts,n=this.destination;t.length>0;){var i=t.shift();n.next(i.buffer)}e.prototype._complete.call(this)},BufferTimeSubscriber.prototype._unsubscribe=function(){this.contexts=null},BufferTimeSubscriber.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan,i={subscriber:this,context:e,bufferTimeSpan:n};
19this.add(e.closeAction=this.scheduler.schedule(dispatchBufferTimeSpanOnly,n,i))}},BufferTimeSubscriber.prototype.openContext=function(){var e=new Context;return this.contexts.push(e),e},BufferTimeSubscriber.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)},BufferTimeSubscriber}(W.L);function dispatchBufferTimeSpanOnly(e){var t=e.subscriber,n=e.context;n&&t.closeContext(n),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function dispatchBufferCreation(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,i=e.subscriber,o=e.scheduler,a=i.openContext();i.closed||(i.add(a.closeAction=o.schedule(dispatchBufferClose,n,{subscriber:i,context:a})),this.schedule(e,t))}function dispatchBufferClose(e){var t=e.subscriber,n=e.context;t.closeContext(n)}var Y=n(35203),K=n(39169),X=n(37689);function bufferToggle(e,t){return function(n){return n.lift(new ee(e,t))}}var ee=function(){function BufferToggleOperator(e,t){this.openings=e,this.closingSelector=t}return BufferToggleOperator.prototype.call=function(e,t){return t.subscribe(new et(e,this.openings,this.closingSelector))},BufferToggleOperator}(),et=function(e){function BufferToggleSubscriber(t,n,i){var o=e.call(this,t)||this;return o.closingSelector=i,o.contexts=[],o.add((0,K.D)(o,n)),o}return i.__extends(BufferToggleSubscriber,e),BufferToggleSubscriber.prototype._next=function(e){for(var t=this.contexts,n=t.length,i=0;i<n;i++)t[i].buffer.push(e)},BufferToggleSubscriber.prototype._error=function(t){for(var n=this.contexts;n.length>0;){var i=n.shift();i.subscription.unsubscribe(),i.buffer=null,i.subscription=null}this.contexts=null,e.prototype._error.call(this,t)},BufferToggleSubscriber.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var n=t.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,e.prototype._complete.call(this)},BufferToggleSubscriber.prototype.notifyNext=function(e,t){e?this.closeBuffer(e):this.openBuffer(t)},BufferToggleSubscriber.prototype.notifyComplete=function(e){this.closeBuffer(e.context)},BufferToggleSubscriber.prototype.openBuffer=function(e){try{var t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(e){this._error(e)}},BufferToggleSubscriber.prototype.closeBuffer=function(e){var t=this.contexts;if(t&&e){var n=e.buffer,i=e.subscription;this.destination.next(n),t.splice(t.indexOf(e),1),this.remove(i),i.unsubscribe()}},BufferToggleSubscriber.prototype.trySubscribe=function(e){var t=this.contexts,n=new Y.w,i={buffer:[],subscription:n};t.push(i);var o=(0,K.D)(this,e,i);!o||o.closed?this.closeBuffer(i):(o.context=i,this.add(o),n.add(o))},BufferToggleSubscriber}(X.L);function bufferWhen(e){return function(t){return t.lift(new er(e))}}var er=function(){function BufferWhenOperator(e){this.closingSelector=e}return BufferWhenOperator.prototype.call=function(e,t){return t.subscribe(new en(e,this.closingSelector))},BufferWhenOperator}(),en=function(e){function BufferWhenSubscriber(t,n){var i=e.call(this,t)||this;return i.closingSelector=n,i.subscribing=!1,i.openBuffer(),i}return i.__extends(BufferWhenSubscriber,e),BufferWhenSubscriber.prototype._next=function(e){this.buffer.push(e)},BufferWhenSubscriber.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),e.prototype._complete.call(this)},BufferWhenSubscriber.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},BufferWhenSubscriber.prototype.notifyNext=function(){this.openBuffer()},BufferWhenSubscriber.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},BufferWhenSubscriber.prototype.openBuffer=function(){var e,t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{e=(0,this.closingSelector)()}catch(e){return this.error(e)}t=new Y.w,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add((0,o.ft)(e,new o.IY(this))),this.subscribing=!1},BufferWhenSubscriber}(o.Ds);function catchError(e){return function(t){var n=new ei(e),i=t.lift(n);return n.caught=i}}var ei=function(){function CatchOperator(e){this.selector=e}return CatchOperator.prototype.call=function(e,t){return t.subscribe(new es(e,this.selector,this.caught))}
19,CatchOperator}(),es=function(e){function CatchSubscriber(t,n,i){var o=e.call(this,t)||this;return o.selector=n,o.caught=i,o}return i.__extends(CatchSubscriber,e),CatchSubscriber.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){e.prototype.error.call(this,t);return}this._unsubscribeAndRecycle();var i=new o.IY(this);this.add(i);var a=(0,o.ft)(n,i);a!==i&&this.add(a)}},CatchSubscriber}(o.Ds),eo=n(71880);function combineAll(e){return function(t){return t.lift(new eo.Ms(e))}}var ea=n(13072),eu=n(93317);function combineLatest_combineLatest(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=null;return"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&(0,ea.k)(e[0])&&(e=e[0].slice()),function(t){return t.lift.call((0,eu.D)([t].concat(e)),new eo.Ms(n))}}var ec=n(89440);function concat_concat(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(ec.z.apply(void 0,[t].concat(e)))}}var el=n(12936),eh=n(62990);function concatMap(e,t){return(0,eh.zg)(e,t,1)}function concatMapTo(e,t){return concatMap(function(){return e},t)}function count(e){return function(t){return t.lift(new ed(e,t))}}var ed=function(){function CountOperator(e,t){this.predicate=e,this.source=t}return CountOperator.prototype.call=function(e,t){return t.subscribe(new ef(e,this.predicate,this.source))},CountOperator}(),ef=function(e){function CountSubscriber(t,n,i){var o=e.call(this,t)||this;return o.predicate=n,o.source=i,o.count=0,o.index=0,o}return i.__extends(CountSubscriber,e),CountSubscriber.prototype._next=function(e){this.predicate?this._tryPredicate(e):this.count++},CountSubscriber.prototype._tryPredicate=function(e){var t;try{t=this.predicate(e,this.index++,this.source)}catch(e){this.destination.error(e);return}t&&this.count++},CountSubscriber.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},CountSubscriber}(W.L);function debounce(e){return function(t){return t.lift(new ep(e))}}var ep=function(){function DebounceOperator(e){this.durationSelector=e}return DebounceOperator.prototype.call=function(e,t){return t.subscribe(new eb(e,this.durationSelector))},DebounceOperator}(),eb=function(e){function DebounceSubscriber(t,n){var i=e.call(this,t)||this;return i.durationSelector=n,i.hasValue=!1,i}return i.__extends(DebounceSubscriber,e),DebounceSubscriber.prototype._next=function(e){try{var t=this.durationSelector.call(this,e);t&&this._tryNext(e,t)}catch(e){this.destination.error(e)}},DebounceSubscriber.prototype._complete=function(){this.emitValue(),this.destination.complete()},DebounceSubscriber.prototype._tryNext=function(e,t){var n=this.durationSubscription;this.value=e,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=(0,o.ft)(t,new o.IY(this)))&&!n.closed&&this.add(this.durationSubscription=n)},DebounceSubscriber.prototype.notifyNext=function(){this.emitValue()},DebounceSubscriber.prototype.notifyComplete=function(){this.emitValue()},DebounceSubscriber.prototype.emitValue=function(){if(this.hasValue){var t=this.value,n=this.durationSubscription;n&&(this.durationSubscription=void 0,n.unsubscribe(),this.remove(n)),this.value=void 0,this.hasValue=!1,e.prototype._next.call(this,t)}},DebounceSubscriber}(o.Ds);function debounceTime(e,t){return void 0===t&&(t=c.P),function(n){return n.lift(new eg(e,t))}}var eg=function(){function DebounceTimeOperator(e,t){this.dueTime=e,this.scheduler=t}return DebounceTimeOperator.prototype.call=function(e,t){return t.subscribe(new ey(e,this.dueTime,this.scheduler))},DebounceTimeOperator}(),ey=function(e){function DebounceTimeSubscriber(t,n,i){var o=e.call(this,t)||this;return o.dueTime=n,o.scheduler=i,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return i.__extends(DebounceTimeSubscriber,e),DebounceTimeSubscriber.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(dispatchNext,this.dueTime,this))},DebounceTimeSubscriber.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},DebounceTimeSubscriber.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}},DebounceTimeSubscriber.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},DebounceTimeSubscriber}(W.L);function dispatchNext(e){e.debouncedNext()}function defaultIfEmpty(e){return void 0===e&&(e=null),function(t){return t.lift(new em(e))}}var em=function(){function DefaultIfEmptyOperator(e){this.defaultValue=e}return DefaultIfEmptyOperator.prototype.call=function(e,t){return t.subscribe(new ev(e,this.defaultValue))},DefaultIfEmptyOperator}(),ev=function(e){function DefaultIfEmptySubscriber(t,n){var i=e.call(this,t)||this;return i.defaultValue=n,i.isEmpty=!0,i}return i.__extends(DefaultIfEmptySubscriber,e),DefaultIfEmptySubscriber.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},DefaultIfEmptySubscriber.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},DefaultIfEmptySubscriber}(W.L);function isDate(e){return e instanceof Date&&!isNaN(+e)}var e_=n(83890);function delay(e,t){void 0===t&&(t=c.P);var n=isDate(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new eS(n,t))}}var eS=function(){function DelayOperator(e,t){this.delay=e,this.scheduler
19=t}return DelayOperator.prototype.call=function(e,t){return t.subscribe(new ew(e,this.delay,this.scheduler))},DelayOperator}(),ew=function(e){function DelaySubscriber(t,n,i){var o=e.call(this,t)||this;return o.delay=n,o.scheduler=i,o.queue=[],o.active=!1,o.errored=!1,o}return i.__extends(DelaySubscriber,e),DelaySubscriber.dispatch=function(e){for(var t=e.source,n=t.queue,i=e.scheduler,o=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(o);if(n.length>0){var a=Math.max(0,n[0].time-i.now());this.schedule(e,a)}else this.unsubscribe(),t.active=!1},DelaySubscriber.prototype._schedule=function(e){this.active=!0,this.destination.add(e.schedule(DelaySubscriber.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},DelaySubscriber.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,n=new DelayMessage(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}},DelaySubscriber.prototype._next=function(e){this.scheduleNotification(e_.P.createNext(e))},DelaySubscriber.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()},DelaySubscriber.prototype._complete=function(){this.scheduleNotification(e_.P.createComplete()),this.unsubscribe()},DelaySubscriber}(W.L),DelayMessage=function(e,t){this.time=e,this.notification=t},eE=n(87304);function delayWhen(e,t){return t?function(n){return new eC(n,t).lift(new ex(e))}:function(t){return t.lift(new ex(e))}}var ex=function(){function DelayWhenOperator(e){this.delayDurationSelector=e}return DelayWhenOperator.prototype.call=function(e,t){return t.subscribe(new ek(e,this.delayDurationSelector))},DelayWhenOperator}(),ek=function(e){function DelayWhenSubscriber(t,n){var i=e.call(this,t)||this;return i.delayDurationSelector=n,i.completed=!1,i.delayNotifierSubscriptions=[],i.index=0,i}return i.__extends(DelayWhenSubscriber,e),DelayWhenSubscriber.prototype.notifyNext=function(e,t,n,i,o){this.destination.next(e),this.removeSubscription(o),this.tryComplete()},DelayWhenSubscriber.prototype.notifyError=function(e,t){this._error(e)},DelayWhenSubscriber.prototype.notifyComplete=function(e){var t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()},DelayWhenSubscriber.prototype._next=function(e){var t=this.index++;try{var n=this.delayDurationSelector(e,t);n&&this.tryDelay(n,e)}catch(e){this.destination.error(e)}},DelayWhenSubscriber.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},DelayWhenSubscriber.prototype.removeSubscription=function(e){e.unsubscribe();var t=this.delayNotifierSubscriptions.indexOf(e);return -1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue},DelayWhenSubscriber.prototype.tryDelay=function(e,t){var n=(0,K.D)(this,e,t);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},DelayWhenSubscriber.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},DelayWhenSubscriber}(X.L),eC=function(e){function SubscriptionDelayObservable(t,n){var i=e.call(this)||this;return i.source=t,i.subscriptionDelay=n,i}return i.__extends(SubscriptionDelayObservable,e),SubscriptionDelayObservable.prototype._subscribe=function(e){this.subscriptionDelay.subscribe(new eR(e,this.source))},SubscriptionDelayObservable}(eE.y),eR=function(e){function SubscriptionDelaySubscriber(t,n){var i=e.call(this)||this;return i.parent=t,i.source=n,i.sourceSubscribed=!1,i}return i.__extends(SubscriptionDelaySubscriber,e),SubscriptionDelaySubscriber.prototype._next=function(e){this.subscribeToSource()},SubscriptionDelaySubscriber.prototype._error=function(e){this.unsubscribe(),this.parent.error(e)},SubscriptionDelaySubscriber.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},SubscriptionDelaySubscriber.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},SubscriptionDelaySubscriber}(W.L);function dematerialize(){return function(e){return e.lift(new eI)}}var eI=function(){function DeMaterializeOperator(){}return DeMaterializeOperator.prototype.call=function(e,t){return t.subscribe(new eT(e))},DeMaterializeOperator}(),eT=function(e){function DeMaterializeSubscriber(t){return e.call(this,t)||this}return i.__extends(DeMaterializeSubscriber,e),DeMaterializeSubscriber.prototype._next=function(e){e.observe(this.destination)},DeMaterializeSubscriber}(W.L);function distinct(e,t){return function(n){return n.lift(new eM(e,t))}}var eM=function(){function DistinctOperator(e,t){this.keySelector=e,this.flushes=t}return DistinctOperator.prototype.call=function(e,t){return t.subscribe(new eO(e,this.keySelector,this.flushes))},DistinctOperator}(),eO=function(e){function DistinctSubscriber(t,n,i){var a=e.call(this,t)||this;return a.keySelector=n,a.values=new Set,i&&a.add((0,o.ft)(i,new o.IY(a))),a}return i.__extends(DistinctSubscriber,e),DistinctSubscriber.prototype.notifyNext=function(){this.values.clear()},DistinctSubscriber.prototype.notifyError=function(e){this._error(e)},DistinctSubscriber.prototype._next=function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)}
19,DistinctSubscriber.prototype._useKeySelector=function(e){var t,n=this.destination;try{t=this.keySelector(e)}catch(e){n.error(e);return}this._finalizeNext(t,e)},DistinctSubscriber.prototype._finalizeNext=function(e,t){var n=this.values;n.has(e)||(n.add(e),this.destination.next(t))},DistinctSubscriber}(o.Ds);function distinctUntilChanged(e,t){return function(n){return n.lift(new eN(e,t))}}var eN=function(){function DistinctUntilChangedOperator(e,t){this.compare=e,this.keySelector=t}return DistinctUntilChangedOperator.prototype.call=function(e,t){return t.subscribe(new eA(e,this.compare,this.keySelector))},DistinctUntilChangedOperator}(),eA=function(e){function DistinctUntilChangedSubscriber(t,n,i){var o=e.call(this,t)||this;return o.keySelector=i,o.hasKey=!1,"function"==typeof n&&(o.compare=n),o}return i.__extends(DistinctUntilChangedSubscriber,e),DistinctUntilChangedSubscriber.prototype.compare=function(e,t){return e===t},DistinctUntilChangedSubscriber.prototype._next=function(e){try{var t,n=this.keySelector;t=n?n(e):e}catch(e){return this.destination.error(e)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(e){return this.destination.error(e)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))},DistinctUntilChangedSubscriber}(W.L);function distinctUntilKeyChanged(e,t){return distinctUntilChanged(function(n,i){return t?t(n[e],i[e]):n[e]===i[e]})}var eL=n(32243),ej=n(94431),eD=n(76446);function throwIfEmpty(e){return void 0===e&&(e=defaultErrorFactory),function(t){return t.lift(new eP(e))}}var eP=function(){function ThrowIfEmptyOperator(e){this.errorFactory=e}return ThrowIfEmptyOperator.prototype.call=function(e,t){return t.subscribe(new eB(e,this.errorFactory))},ThrowIfEmptyOperator}(),eB=function(e){function ThrowIfEmptySubscriber(t,n){var i=e.call(this,t)||this;return i.errorFactory=n,i.hasValue=!1,i}return i.__extends(ThrowIfEmptySubscriber,e),ThrowIfEmptySubscriber.prototype._next=function(e){this.hasValue=!0,this.destination.next(e)},ThrowIfEmptySubscriber.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var e=void 0;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)},ThrowIfEmptySubscriber}(W.L);function defaultErrorFactory(){return new eD.K}var eF=n(56590);function take(e){return function(t){return 0===e?(0,eF.c)():t.lift(new eW(e))}}var eW=function(){function TakeOperator(e){if(this.total=e,this.total<0)throw new eL.W}return TakeOperator.prototype.call=function(e,t){return t.subscribe(new ez(e,this.total))},TakeOperator}(),ez=function(e){function TakeSubscriber(t,n){var i=e.call(this,t)||this;return i.total=n,i.count=0,i}return i.__extends(TakeSubscriber,e),TakeSubscriber.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},TakeSubscriber}(W.L);function elementAt(e,t){if(e<0)throw new eL.W;var n=arguments.length>=2;return function(i){return i.pipe((0,ej.h)(function(t,n){return n===e}),take(1),n?defaultIfEmpty(t):throwIfEmpty(function(){return new eL.W}))}}var eH=n(87582);function endWith(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return(0,ec.z)(t,eH.of.apply(void 0,e))}}function every(e,t){return function(n){return n.lift(new eV(e,t,n))}}var eV=function(){function EveryOperator(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return EveryOperator.prototype.call=function(e,t){return t.subscribe(new e$(e,this.predicate,this.thisArg,this.source))},EveryOperator}(),e$=function(e){function EverySubscriber(t,n,i,o){var a=e.call(this,t)||this;return a.predicate=n,a.thisArg=i,a.source=o,a.index=0,a.thisArg=i||a,a}return i.__extends(EverySubscriber,e),EverySubscriber.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},EverySubscriber.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(e){this.destination.error(e);return}t||this.notifyComplete(!1)},EverySubscriber.prototype._complete=function(){this.notifyComplete(!0)},EverySubscriber}(W.L);function exhaust(){return function(e){return e.lift(new eU)}}var eU=function(){function SwitchFirstOperator(){}return SwitchFirstOperator.prototype.call=function(e,t){return t.subscribe(new eq(e))},SwitchFirstOperator}(),eq=function(e){function SwitchFirstSubscriber(t){var n=e.call(this,t)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return i.__extends(SwitchFirstSubscriber,e),SwitchFirstSubscriber.prototype._next=function(e){this.hasSubscription||(this.hasSubscription=!0,this.add((0,o.ft)(e,new o.IY(this))))},SwitchFirstSubscriber.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},SwitchFirstSubscriber.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},SwitchFirstSubscriber}(o.Ds),eJ=n(57243),eQ=function(){function ExhaustMapOperator(e){this.project=e}return ExhaustMapOperator.prototype.call=function(e,t){return t.subscribe(new eG(e,this.project))},ExhaustMapOperator}
19(),eG=function(e){function ExhaustMapSubscriber(t,n){var i=e.call(this,t)||this;return i.project=n,i.hasSubscription=!1,i.hasCompleted=!1,i.index=0,i}return i.__extends(ExhaustMapSubscriber,e),ExhaustMapSubscriber.prototype._next=function(e){this.hasSubscription||this.tryNext(e)},ExhaustMapSubscriber.prototype.tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){this.destination.error(e);return}this.hasSubscription=!0,this._innerSub(t)},ExhaustMapSubscriber.prototype._innerSub=function(e){var t=new o.IY(this),n=this.destination;n.add(t);var i=(0,o.ft)(e,t);i!==t&&n.add(i)},ExhaustMapSubscriber.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},ExhaustMapSubscriber.prototype.notifyNext=function(e){this.destination.next(e)},ExhaustMapSubscriber.prototype.notifyError=function(e){this.destination.error(e)},ExhaustMapSubscriber.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},ExhaustMapSubscriber}(o.Ds);function expand(e,t,n){return void 0===t&&(t=Number.POSITIVE_INFINITY),t=1>(t||0)?Number.POSITIVE_INFINITY:t,function(i){return i.lift(new eZ(e,t,n))}}var eZ=function(){function ExpandOperator(e,t,n){this.project=e,this.concurrent=t,this.scheduler=n}return ExpandOperator.prototype.call=function(e,t){return t.subscribe(new eY(e,this.project,this.concurrent,this.scheduler))},ExpandOperator}(),eY=function(e){function ExpandSubscriber(t,n,i,o){var a=e.call(this,t)||this;return a.project=n,a.concurrent=i,a.scheduler=o,a.index=0,a.active=0,a.hasCompleted=!1,i<Number.POSITIVE_INFINITY&&(a.buffer=[]),a}return i.__extends(ExpandSubscriber,e),ExpandSubscriber.dispatch=function(e){var t=e.subscriber,n=e.result,i=e.value,o=e.index;t.subscribeToProjection(n,i,o)},ExpandSubscriber.prototype._next=function(e){var t=this.destination;if(t.closed){this._complete();return}var n=this.index++;if(this.active<this.concurrent){t.next(e);try{var i=(0,this.project)(e,n);this.scheduler?this.destination.add(this.scheduler.schedule(ExpandSubscriber.dispatch,0,{subscriber:this,result:i,value:e,index:n})):this.subscribeToProjection(i,e,n)}catch(e){t.error(e)}}else this.buffer.push(e)},ExpandSubscriber.prototype.subscribeToProjection=function(e,t,n){this.active++,this.destination.add((0,o.ft)(e,new o.IY(this)))},ExpandSubscriber.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},ExpandSubscriber.prototype.notifyNext=function(e){this._next(e)},ExpandSubscriber.prototype.notifyComplete=function(){var e=this.buffer;this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},ExpandSubscriber}(o.Ds);function finalize(e){return function(t){return t.lift(new eK(e))}}var eK=function(){function FinallyOperator(e){this.callback=e}return FinallyOperator.prototype.call=function(e,t){return t.subscribe(new eX(e,this.callback))},FinallyOperator}(),eX=function(e){function FinallySubscriber(t,n){var i=e.call(this,t)||this;return i.add(new Y.w(n)),i}return i.__extends(FinallySubscriber,e),FinallySubscriber}(W.L);function find(e,t){if("function"!=typeof e)throw TypeError("predicate is not a function");return function(n){return n.lift(new e0(e,n,!1,t))}}var e0=function(){function FindValueOperator(e,t,n,i){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=i}return FindValueOperator.prototype.call=function(e,t){return t.subscribe(new e1(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},FindValueOperator}(),e1=function(e){function FindValueSubscriber(t,n,i,o,a){var u=e.call(this,t)||this;return u.predicate=n,u.source=i,u.yieldIndex=o,u.thisArg=a,u.index=0,u}return i.__extends(FindValueSubscriber,e),FindValueSubscriber.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete(),this.unsubscribe()},FindValueSubscriber.prototype._next=function(e){var t=this.predicate,n=this.thisArg,i=this.index++;try{t.call(n||this,e,i,this.source)&&this.notifyComplete(this.yieldIndex?i:e)}catch(e){this.destination.error(e)}},FindValueSubscriber.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},FindValueSubscriber}(W.L);function findIndex(e,t){return function(n){return n.lift(new e0(e,n,!0,t))}}var e2=n(43898);function first(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?(0,ej.h)(function(t,n){return e(t,n,i)}):e2.y,take(1),n?defaultIfEmpty(t):throwIfEmpty(function(){return new eD.K}))}}var e3=n(67723);function ignoreElements(){return function(e){return e.lift(new e4)}}var e4=function(){function IgnoreElementsOperator(){}return IgnoreElementsOperator.prototype.call=function(e,t){return t.subscribe(new e5(e))},IgnoreElementsOperator}(),e5=function(e){function IgnoreElementsSubscriber(){return null!==e&&e.apply(this,arguments)||this}return i.__extends(IgnoreElementsSubscriber,e),IgnoreElementsSubscriber.prototype._next=function(e){},IgnoreElementsSubscriber}(W.L);function isEmpty(){return function(e){return e.lift(new e8)}}var e8=function(){function IsEmptyOperator(){}return IsEmptyOperator.prototype.call=function(e,t){return t.subscribe(new e6(e))},IsEmptyOperator}(),e6=function(e){function IsEmptySubscriber(t){return e.call(this,t)||this}return i.__extends(IsEmptySubscriber,e),IsEmptySubscriber.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete()},IsEmptySubscriber.prototype._next=function(e){this.notifyComplete(!1)},IsEmptySubscriber.prototype._complete=function(){this.notifyComplete(!0)},IsEmptySubscriber}(W.L);
19function takeLast(e){return function(t){return 0===e?(0,eF.c)():t.lift(new e9(e))}}var e9=function(){function TakeLastOperator(e){if(this.total=e,this.total<0)throw new eL.W}return TakeLastOperator.prototype.call=function(e,t){return t.subscribe(new e7(e,this.total))},TakeLastOperator}(),e7=function(e){function TakeLastSubscriber(t,n){var i=e.call(this,t)||this;return i.total=n,i.ring=[],i.count=0,i}return i.__extends(TakeLastSubscriber,e),TakeLastSubscriber.prototype._next=function(e){var t=this.ring,n=this.total,i=this.count++;t.length<n?t.push(e):t[i%n]=e},TakeLastSubscriber.prototype._complete=function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,o=0;o<n;o++){var a=t++%n;e.next(i[a])}e.complete()},TakeLastSubscriber}(W.L);function last(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?(0,ej.h)(function(t,n){return e(t,n,i)}):e2.y,takeLast(1),n?defaultIfEmpty(t):throwIfEmpty(function(){return new eD.K}))}}function mapTo(e){return function(t){return t.lift(new te(e))}}var te=function(){function MapToOperator(e){this.value=e}return MapToOperator.prototype.call=function(e,t){return t.subscribe(new tt(e,this.value))},MapToOperator}(),tt=function(e){function MapToSubscriber(t,n){var i=e.call(this,t)||this;return i.value=n,i}return i.__extends(MapToSubscriber,e),MapToSubscriber.prototype._next=function(e){this.destination.next(this.value)},MapToSubscriber}(W.L);function materialize(){return function(e){return e.lift(new tr)}}var tr=function(){function MaterializeOperator(){}return MaterializeOperator.prototype.call=function(e,t){return t.subscribe(new tn(e))},MaterializeOperator}(),tn=function(e){function MaterializeSubscriber(t){return e.call(this,t)||this}return i.__extends(MaterializeSubscriber,e),MaterializeSubscriber.prototype._next=function(e){this.destination.next(e_.P.createNext(e))},MaterializeSubscriber.prototype._error=function(e){var t=this.destination;t.next(e_.P.createError(e)),t.complete()},MaterializeSubscriber.prototype._complete=function(){var e=this.destination;e.next(e_.P.createComplete()),e.complete()},MaterializeSubscriber}(W.L);function scan(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new ti(e,t,n))}}var ti=function(){function ScanOperator(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return ScanOperator.prototype.call=function(e,t){return t.subscribe(new ts(e,this.accumulator,this.seed,this.hasSeed))},ScanOperator}(),ts=function(e){function ScanSubscriber(t,n,i,o){var a=e.call(this,t)||this;return a.accumulator=n,a._seed=i,a.hasSeed=o,a.index=0,a}return i.__extends(ScanSubscriber,e),Object.defineProperty(ScanSubscriber.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),ScanSubscriber.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},ScanSubscriber.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},ScanSubscriber}(W.L),to=n(63490);function reduce(e,t){return arguments.length>=2?function(n){return(0,to.z)(scan(e,t),takeLast(1),defaultIfEmpty(t))(n)}:function(t){return(0,to.z)(scan(function(t,n,i){return e(t,n,i+1)}),takeLast(1))(t)}}function max(e){return reduce("function"==typeof e?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}var ta=n(73606);function merge_merge(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(ta.T.apply(void 0,[t].concat(e)))}}var tu=n(97019);function mergeMapTo(e,t,n){return(void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t)?(0,eh.zg)(function(){return e},t,n):("number"==typeof t&&(n=t),(0,eh.zg)(function(){return e},n))}function mergeScan(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(i){return i.lift(new tc(e,t,n))}}var tc=function(){function MergeScanOperator(e,t,n){this.accumulator=e,this.seed=t,this.concurrent=n}return MergeScanOperator.prototype.call=function(e,t){return t.subscribe(new tl(e,this.accumulator,this.seed,this.concurrent))},MergeScanOperator}(),tl=function(e){function MergeScanSubscriber(t,n,i,o){var a=e.call(this,t)||this;return a.accumulator=n,a.acc=i,a.concurrent=o,a.hasValue=!1,a.hasCompleted=!1,a.buffer=[],a.active=0,a.index=0,a}return i.__extends(MergeScanSubscriber,e),MergeScanSubscriber.prototype._next=function(e){if(this.active<this.concurrent){var t=this.index++,n=this.destination,i=void 0;try{i=(0,this.accumulator)(this.acc,e,t)}catch(e){return n.error(e)}this.active++,this._innerSub(i)}else this.buffer.push(e)},MergeScanSubscriber.prototype._innerSub=function(e){var t=new o.IY(this),n=this.destination;n.add(t);var i=(0,o.ft)(e,t);i!==t&&n.add(i)},MergeScanSubscriber.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},MergeScanSubscriber.prototype.notifyNext=function(e){var t=this.destination;this.acc=e,this.hasValue=!0,t.next(e)},MergeScanSubscriber.prototype.notifyComplete=function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},MergeScanSubscriber}(o.Ds);function min(e){return reduce("function"==typeof e?function(t,n){return 0>e(t,n)?t:n}:function(e,t){return e<t?e:t})}var th=n(73483);function multicast(e,t){return function(n){if(i="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new td(i,t));var i,o=Object.create(n,th.N);return o.source=n,o.subjectFactory=i,o}}var td=function(){function MulticastOperator(e,t){this.subjectFactory=e,this.selector=t}return MulticastOperator.prototype.call=function(e,t){var n=this.selector,i=this.subjectFactory(),o=n(i).subscribe(e);return o.add(t.subscribe(i)),o},MulticastOperator}(),tf=n(19847);function onErrorResumeNext(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length&&(0,ea.k)(e[0])&&(e=e[0]),function(t){return t.lift(new tp(e))}}var tp=function(){function OnErrorResumeNextOperator(e){this.nextSources=e}return OnErrorResumeNextOperator.prototype.call=function(e,t){return t.subscribe(new tb(e,this.nextSources))},OnErrorResumeNextOperator}(),tb=function(e){function OnErrorResumeNextSubscriber(t,n){var i=e.call(this,t)||this;return i.destination=t,i.nextSources=n,i}return i.__extends(OnErrorResumeNextSubscriber,e),OnErrorResumeNextSubscriber.prototype.notifyError=function(){this.subscribeToNextSource()},OnErrorResumeNextSubscriber.prototype.notifyComplete=function(){this.subscribeToNextSource()},OnErrorResumeNextSubscriber.prototype._error=function(e){this.subscribeToNextSource(),this.unsubscribe()},OnErrorResumeNextSubscriber.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},OnErrorResumeNextSubscriber.prototype.subscribeToNextSource=function(){var e=this.nextSources.shift();if(e){var t=new o.IY(this),n=this.destination;n.add(t);var i=(0,o.ft)(e,t);i!==t&&n.add(i)}else this.destination.complete()},OnErrorResumeNextSubscriber}(o.Ds);function pairwise(){return function(e){return e.lift(new tg)}}var tg=function(){function PairwiseOperator(){}return PairwiseOperator.prototype.call=function(e,t){return t.subscribe(new ty(e))},PairwiseOperator}(),ty=function(e){function PairwiseSubscriber(t){var n=e.call(this,t)||this;return n.hasPrev=!1,n}return i.__extends(PairwiseSubscriber,e),PairwiseSubscriber.prototype._next=function(e){var t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)},PairwiseSubscriber}(W.L),tm=n(9768);function partition(e,t){return function(n){return[(0,ej.h)(e,t)(n),(0,ej.h)((0,tm.f)(e,t))(n)]}}function pluck(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(0===n)throw Error("list of properties cannot be empty.");return function(t){return(0,eJ.U)(function(t){for(var i=t,o=0;o<n;o++){var a=null!=i?i[e[o]]:void 0;if(void 0===a)return;i=a}return i})(t)}}var tv=n(94589);function publish(e){return e?multicast(function(){return new tv.xQ}
19,e):multicast(new tv.xQ)}var t_=n(42959);function publishBehavior(e){return function(t){return multicast(new t_.X(e))(t)}}var tS=n(26387);function publishLast(){return function(e){return multicast(new tS.c)(e)}}var tw=n(90989);function publishReplay(e,t,n,i){n&&"function"!=typeof n&&(i=n);var o="function"==typeof n?n:void 0,a=new tw.t(e,t,i);return function(e){return multicast(function(){return a},o)(e)}}var tE=n(46949);function race_race(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return 1===e.length&&(0,ea.k)(e[0])&&(e=e[0]),t.lift.call(tE.S3.apply(void 0,[t].concat(e)))}}function repeat(e){return void 0===e&&(e=-1),function(t){return 0===e?(0,eF.c)():e<0?t.lift(new tx(-1,t)):t.lift(new tx(e-1,t))}}var tx=function(){function RepeatOperator(e,t){this.count=e,this.source=t}return RepeatOperator.prototype.call=function(e,t){return t.subscribe(new tk(e,this.count,this.source))},RepeatOperator}(),tk=function(e){function RepeatSubscriber(t,n,i){var o=e.call(this,t)||this;return o.count=n,o.source=i,o}return i.__extends(RepeatSubscriber,e),RepeatSubscriber.prototype.complete=function(){if(!this.isStopped){var t=this.source,n=this.count;if(0===n)return e.prototype.complete.call(this);n>-1&&(this.count=n-1),t.subscribe(this._unsubscribeAndRecycle())}},RepeatSubscriber}(W.L);function repeatWhen(e){return function(t){return t.lift(new tC(e))}}var tC=function(){function RepeatWhenOperator(e){this.notifier=e}return RepeatWhenOperator.prototype.call=function(e,t){return t.subscribe(new tR(e,this.notifier,t))},RepeatWhenOperator}(),tR=function(e){function RepeatWhenSubscriber(t,n,i){var o=e.call(this,t)||this;return o.notifier=n,o.source=i,o.sourceIsBeingSubscribedTo=!0,o}return i.__extends(RepeatWhenSubscriber,e),RepeatWhenSubscriber.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},RepeatWhenSubscriber.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return e.prototype.complete.call(this)},RepeatWhenSubscriber.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return e.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},RepeatWhenSubscriber.prototype._unsubscribe=function(){var e=this.notifications,t=this.retriesSubscription;e&&(e.unsubscribe(),this.notifications=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},RepeatWhenSubscriber.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,e.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},RepeatWhenSubscriber.prototype.subscribeToRetries=function(){this.notifications=new tv.xQ;try{var t;t=(0,this.notifier)(this.notifications)}catch(t){return e.prototype.complete.call(this)}this.retries=t,this.retriesSubscription=(0,o.ft)(t,new o.IY(this))},RepeatWhenSubscriber}(o.Ds);function retry(e){return void 0===e&&(e=-1),function(t){return t.lift(new tI(e,t))}}var tI=function(){function RetryOperator(e,t){this.count=e,this.source=t}return RetryOperator.prototype.call=function(e,t){return t.subscribe(new tT(e,this.count,this.source))},RetryOperator}(),tT=function(e){function RetrySubscriber(t,n,i){var o=e.call(this,t)||this;return o.count=n,o.source=i,o}return i.__extends(RetrySubscriber,e),RetrySubscriber.prototype.error=function(t){if(!this.isStopped){var n=this.source,i=this.count;if(0===i)return e.prototype.error.call(this,t);i>-1&&(this.count=i-1),n.subscribe(this._unsubscribeAndRecycle())}},RetrySubscriber}(W.L);function retryWhen(e){return function(t){return t.lift(new tM(e,t))}}var tM=function(){function RetryWhenOperator(e,t){this.notifier=e,this.source=t}return RetryWhenOperator.prototype.call=function(e,t){return t.subscribe(new tO(e,this.notifier,this.source))},RetryWhenOperator}(),tO=function(e){function RetryWhenSubscriber(t,n,i){var o=e.call(this,t)||this;return o.notifier=n,o.source=i,o}return i.__extends(RetryWhenSubscriber,e),RetryWhenSubscriber.prototype.error=function(t){if(!this.isStopped){var n=this.errors,i=this.retries,a=this.retriesSubscription;if(i)this.errors=void 0,this.retriesSubscription=void 0;else{n=new tv.xQ;try{i=(0,this.notifier)(n)}catch(t){return e.prototype.error.call(this,t)}a=(0,o.ft)(i,new o.IY(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=i,this.retriesSubscription=a,n.next(t)}},RetryWhenSubscriber.prototype._unsubscribe=function(){var e=this.errors,t=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},RetryWhenSubscriber.prototype.notifyNext=function(){var e=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=e,this.source.subscribe(this)},RetryWhenSubscriber}(o.Ds),tN=n(62307);function sample(e){return function(t){return t.lift(new tA(e))}}var tA=function(){function SampleOperator(e){this.notifier=e}return SampleOperator.prototype.call=function(e,t){var n=new tL(e),i=t.subscribe(n);return i.add((0,o.ft)(this.notifier,new o.IY(n))),i},SampleOperator}(),tL=function(e){function SampleSubscriber(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasValue=!1,t}return i.__extends(SampleSubscriber,e),SampleSubscriber.prototype._next=function(e){this.value=e,this.hasValue=!0},SampleSubscriber.prototype.notifyNext=function(){this.emitValue()},SampleSubscriber.prototype.notifyComplete=function(){this.emitValue()},SampleSubscriber.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},SampleSubscriber}(o.Ds);function sampleTime(e,t){return void 0===t&&(t=c.P),function(n){return n.lift(new tj(e,t))}}var tj=function(){function SampleTimeOperator(e,t){this.period=e,this.scheduler
19=t}return SampleTimeOperator.prototype.call=function(e,t){return t.subscribe(new tD(e,this.period,this.scheduler))},SampleTimeOperator}(),tD=function(e){function SampleTimeSubscriber(t,n,i){var o=e.call(this,t)||this;return o.period=n,o.scheduler=i,o.hasValue=!1,o.add(i.schedule(dispatchNotification,n,{subscriber:o,period:n})),o}return i.__extends(SampleTimeSubscriber,e),SampleTimeSubscriber.prototype._next=function(e){this.lastValue=e,this.hasValue=!0},SampleTimeSubscriber.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},SampleTimeSubscriber}(W.L);function dispatchNotification(e){var t=e.subscriber,n=e.period;t.notifyNext(),this.schedule(e,n)}function sequenceEqual(e,t){return function(n){return n.lift(new tP(e,t))}}var tP=function(){function SequenceEqualOperator(e,t){this.compareTo=e,this.comparator=t}return SequenceEqualOperator.prototype.call=function(e,t){return t.subscribe(new tB(e,this.compareTo,this.comparator))},SequenceEqualOperator}(),tB=function(e){function SequenceEqualSubscriber(t,n,i){var o=e.call(this,t)||this;return o.compareTo=n,o.comparator=i,o._a=[],o._b=[],o._oneComplete=!1,o.destination.add(n.subscribe(new tF(t,o))),o}return i.__extends(SequenceEqualSubscriber,e),SequenceEqualSubscriber.prototype._next=function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())},SequenceEqualSubscriber.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},SequenceEqualSubscriber.prototype.checkValues=function(){for(var e=this._a,t=this._b,n=this.comparator;e.length>0&&t.length>0;){var i=e.shift(),o=t.shift(),a=!1;try{a=n?n(i,o):i===o}catch(e){this.destination.error(e)}a||this.emit(!1)}},SequenceEqualSubscriber.prototype.emit=function(e){var t=this.destination;t.next(e),t.complete()},SequenceEqualSubscriber.prototype.nextB=function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())},SequenceEqualSubscriber.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},SequenceEqualSubscriber}(W.L),tF=function(e){function SequenceEqualCompareToSubscriber(t,n){var i=e.call(this,t)||this;return i.parent=n,i}return i.__extends(SequenceEqualCompareToSubscriber,e),SequenceEqualCompareToSubscriber.prototype._next=function(e){this.parent.nextB(e)},SequenceEqualCompareToSubscriber.prototype._error=function(e){this.parent.error(e),this.unsubscribe()},SequenceEqualCompareToSubscriber.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},SequenceEqualCompareToSubscriber}(W.L);function shareSubjectFactory(){return new tv.xQ}function share(){return function(e){return(0,tN.x)()(multicast(shareSubjectFactory)(e))}}function shareReplay(e,t,n){var i;return i=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){var t,n,o,a,u,c,l,R,j,W,H;return e.lift((a=void 0===(o=i.bufferSize)?Number.POSITIVE_INFINITY:o,c=void 0===(u=i.windowTime)?Number.POSITIVE_INFINITY:u,l=i.refCount,R=i.scheduler,j=0,W=!1,H=!1,function(e){var i;j++,!t||W?(W=!1,i=(t=new tw.t(a,c,R)).subscribe(this),n=e.subscribe({next:function(e){t.next(e)},error:function(e){W=!0,t.error(e)},complete:function(){H=!0,n=void 0,t.complete()}}),H&&(n=void 0)):i=t.subscribe(this),this.add(function(){j--,i.unsubscribe(),i=void 0,n&&!H&&l&&0===j&&(n.unsubscribe(),n=void 0,t=void 0)})}))}}function single(e){return function(t){return t.lift(new tW(e,t))}}var tW=function(){function SingleOperator(e,t){this.predicate=e,this.source=t}return SingleOperator.prototype.call=function(e,t){return t.subscribe(new tz(e,this.predicate,this.source))},SingleOperator}(),tz=function(e){function SingleSubscriber(t,n,i){var o=e.call(this,t)||this;return o.predicate=n,o.source=i,o.seenValue=!1,o.index=0,o}return i.__extends(SingleSubscriber,e),SingleSubscriber.prototype.applySingleValue=function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)},SingleSubscriber.prototype._next=function(e){var t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)},SingleSubscriber.prototype.tryNext=function(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(e){this.destination.error(e)}},SingleSubscriber.prototype._complete=function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new eD.K)},SingleSubscriber}(W.L);function skip(e){return function(t){return t.lift(new tH(e))}}
19var tH=function(){function SkipOperator(e){this.total=e}return SkipOperator.prototype.call=function(e,t){return t.subscribe(new tV(e,this.total))},SkipOperator}(),tV=function(e){function SkipSubscriber(t,n){var i=e.call(this,t)||this;return i.total=n,i.count=0,i}return i.__extends(SkipSubscriber,e),SkipSubscriber.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},SkipSubscriber}(W.L);function skipLast(e){return function(t){return t.lift(new t$(e))}}var t$=function(){function SkipLastOperator(e){if(this._skipCount=e,this._skipCount<0)throw new eL.W}return SkipLastOperator.prototype.call=function(e,t){return 0===this._skipCount?t.subscribe(new W.L(e)):t.subscribe(new tU(e,this._skipCount))},SkipLastOperator}(),tU=function(e){function SkipLastSubscriber(t,n){var i=e.call(this,t)||this;return i._skipCount=n,i._count=0,i._ring=Array(n),i}return i.__extends(SkipLastSubscriber,e),SkipLastSubscriber.prototype._next=function(e){var t=this._skipCount,n=this._count++;if(n<t)this._ring[n]=e;else{var i=n%t,o=this._ring,a=o[i];o[i]=e,this.destination.next(a)}},SkipLastSubscriber}(W.L);function skipUntil(e){return function(t){return t.lift(new tq(e))}}var tq=function(){function SkipUntilOperator(e){this.notifier=e}return SkipUntilOperator.prototype.call=function(e,t){return t.subscribe(new tJ(e,this.notifier))},SkipUntilOperator}(),tJ=function(e){function SkipUntilSubscriber(t,n){var i=e.call(this,t)||this;i.hasValue=!1;var a=new o.IY(i);i.add(a),i.innerSubscription=a;var u=(0,o.ft)(n,a);return u!==a&&(i.add(u),i.innerSubscription=u),i}return i.__extends(SkipUntilSubscriber,e),SkipUntilSubscriber.prototype._next=function(t){this.hasValue&&e.prototype._next.call(this,t)},SkipUntilSubscriber.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},SkipUntilSubscriber.prototype.notifyComplete=function(){},SkipUntilSubscriber}(o.Ds);function skipWhile(e){return function(t){return t.lift(new tQ(e))}}var tQ=function(){function SkipWhileOperator(e){this.predicate=e}return SkipWhileOperator.prototype.call=function(e,t){return t.subscribe(new tG(e,this.predicate))},SkipWhileOperator}(),tG=function(e){function SkipWhileSubscriber(t,n){var i=e.call(this,t)||this;return i.predicate=n,i.skipping=!0,i.index=0,i}return i.__extends(SkipWhileSubscriber,e),SkipWhileSubscriber.prototype._next=function(e){var t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)},SkipWhileSubscriber.prototype.tryCallPredicate=function(e){try{var t=this.predicate(e,this.index++);this.skipping=!!t}catch(e){this.destination.error(e)}},SkipWhileSubscriber}(W.L);function startWith(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return(0,Q.K)(n)?(e.pop(),function(t){return(0,ec.z)(e,t,n)}):function(t){return(0,ec.z)(e,t)}}var tZ=n(96614),tY=n(30518),tK=function(e){function SubscribeOnObservable(t,n,i){void 0===n&&(n=0),void 0===i&&(i=tZ.e);var o=e.call(this)||this;return o.source=t,o.delayTime=n,o.scheduler=i,(!(0,tY.k)(n)||n<0)&&(o.delayTime=0),i&&"function"==typeof i.schedule||(o.scheduler
19=tZ.e),o}return i.__extends(SubscribeOnObservable,e),SubscribeOnObservable.create=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=tZ.e),new SubscribeOnObservable(e,t,n)},SubscribeOnObservable.dispatch=function(e){var t=e.source,n=e.subscriber;return this.add(t.subscribe(n))},SubscribeOnObservable.prototype._subscribe=function(e){var t=this.delayTime,n=this.source;return this.scheduler.schedule(SubscribeOnObservable.dispatch,t,{source:n,subscriber:e})},SubscribeOnObservable}(eE.y);function subscribeOn(e,t){return void 0===t&&(t=0),function(n){return n.lift(new tX(e,t))}}var tX=function(){function SubscribeOnOperator(e,t){this.scheduler=e,this.delay=t}return SubscribeOnOperator.prototype.call=function(e,t){return new tK(t,this.delay,this.scheduler).subscribe(e)},SubscribeOnOperator}();function switchMap(e,t){return"function"==typeof t?function(n){return n.pipe(switchMap(function(n,i){return(0,eu.D)(e(n,i)).pipe((0,eJ.U)(function(e,o){return t(n,e,i,o)}))}))}:function(t){return t.lift(new t0(e))}}var t0=function(){function SwitchMapOperator(e){this.project=e}return SwitchMapOperator.prototype.call=function(e,t){return t.subscribe(new t1(e,this.project))},SwitchMapOperator}(),t1=function(e){function SwitchMapSubscriber(t,n){var i=e.call(this,t)||this;return i.project=n,i.index=0,i}return i.__extends(SwitchMapSubscriber,e),SwitchMapSubscriber.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){this.destination.error(e);return}this._innerSub(t)},SwitchMapSubscriber.prototype._innerSub=function(e){var t=this.innerSubscription;t&&t.unsubscribe();var n=new o.IY(this),i=this.destination;i.add(n),this.innerSubscription=(0,o.ft)(e,n),this.innerSubscription!==n&&i.add(this.innerSubscription)},SwitchMapSubscriber.prototype._complete=function(){var t=this.innerSubscription;(!t||t.closed)&&e.prototype._complete.call(this),this.unsubscribe()},SwitchMapSubscriber.prototype._unsubscribe=function(){this.innerSubscription=void 0},SwitchMapSubscriber.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&e.prototype._complete.call(this)},SwitchMapSubscriber.prototype.notifyNext=function(e){this.destination.next(e)},SwitchMapSubscriber}(o.Ds);function switchAll(){return switchMap(e2.y)}function switchMapTo(e,t){return t?switchMap(function(){return e},t):switchMap(function(){return e})}function takeUntil(e){return function(t){return t.lift(new t2(e))}}var t2=function(){function TakeUntilOperator(e){this.notifier=e}return TakeUntilOperator.prototype.call=function(e,t){var n=new t3(e),i=(0,o.ft)(this.notifier,new o.IY(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n},TakeUntilOperator}(),t3=function(e){function TakeUntilSubscriber(t){var n=e.call(this,t)||this;return n.seenValue=!1,n}return i.__extends(TakeUntilSubscriber,e),TakeUntilSubscriber.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},TakeUntilSubscriber.prototype.notifyComplete=function(){},TakeUntilSubscriber}(o.Ds);function takeWhile(e,t){return void 0===t&&(t=!1),function(n){return n.lift(new t4(e,t))}}var t4=function(){function TakeWhileOperator(e,t){this.predicate=e,this.inclusive=t}return TakeWhileOperator.prototype.call=function(e,t){return t.subscribe(new t5(e,this.predicate,this.inclusive))},TakeWhileOperator}(),t5=function(e){function TakeWhileSubscriber(t,n,i){var o=e.call(this,t)||this;return o.predicate=n,o.inclusive=i,o.index=0,o}return i.__extends(TakeWhileSubscriber,e),TakeWhileSubscriber.prototype._next=function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(e){n.error(e);return}this.nextOrComplete(e,t)},TakeWhileSubscriber.prototype.nextOrComplete=function(e,t){var n=this.destination;t?n.next(e):(this.inclusive&&n.next(e),n.complete())},TakeWhileSubscriber}(W.L),t8=n(53457),t6=n(3941);function tap(e,t,n){return function(i){return i.lift(new t9(e,t,n))}}var t9=function(){function DoOperator(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return DoOperator.prototype.call=function(e,t){return t.subscribe(new t7(e,this.nextOrObserver,this.error,this.complete))},DoOperator}(),t7=function(e){function TapSubscriber(t,n,i,o){var a=e.call(this,t)||this;return a._tapNext=t8.Z,a._tapError=t8.Z,a._tapComplete=t8.Z,a._tapError=i||t8.Z,a._tapComplete=o||t8.Z,(0,t6.m)(n)?(a._context=a,a._tapNext=n):n&&(a._context=n,a._tapNext=n.next||t8.Z,a._tapError=n.error||t8.Z,a._tapComplete=n.complete||t8.Z),a}return i.__extends(TapSubscriber,e),TapSubscriber.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.next(e)},TapSubscriber.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.error(e)},TapSubscriber.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){this.destination.error(e);return}return this.destination.complete()},TapSubscriber}(W.L),re={leading:!0,trailing:!1};function throttle(e,t){return void 0===t&&(t=re),function(n){return n.lift(new rt(e,!!t.leading,!!t.trailing))}}var rt=function(){function ThrottleOperator(e,t,n){this.durationSelector=e,this.leading=t,this.trailing=n}return ThrottleOperator.prototype.call=function(e,t){return t.subscribe(new rr(e,this.durationSelector,this.leading,this.trailing))},ThrottleOperator}(),rr=function(e){function ThrottleSubscriber(t,n,i,o){var a=e.call(this,t)||this;return a.destination=t,a.durationSelector=n,a._leading=i,a._trailing=o,a._hasValue=!1,a}return i.__extends(ThrottleSubscriber,e),ThrottleSubscriber.prototype._next=function(e){this._hasValue=!0,this._sendValue=e,this._throttled||(this._leading?this.send():this.throttle(e))},ThrottleSubscriber.prototype.send=function(){var e=this._hasValue,t=this._sendValue;e&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=void 0},ThrottleSubscriber.prototype.throttle=function(e){var t=this.tryDurationSelector(e);t&&this.add(this._throttled=(0,o.ft)(t,new o.IY(this)))},ThrottleSubscriber.prototype.tryDurationSelector=function(e){try{return this.durationSelector(e)}catch(e){return this.destination.error(e),null}},ThrottleSubscriber.prototype.throttlingDone=function(){var e=this._throttled,t=this._trailing;e&&e.unsubscribe(),this._throttled=void 0,t&&this.send()},ThrottleSubscriber.prototype.notifyNext=function(){this.throttlingDone()},ThrottleSubscriber.prototype.notifyComplete=function(){this.throttlingDone()},ThrottleSubscriber}(o.Ds);function throttleTime(e,t,n){return void 0===t&&(t=c.P),void 0===n&&(n=re),function(i){return i.lift(new rn(e,t,n.leading,n.trailing))}}var rn=function(){function ThrottleTimeOperator(e,t,n,i){this.duration=e,this.scheduler
19=t,this.leading=n,this.trailing=i}return ThrottleTimeOperator.prototype.call=function(e,t){return t.subscribe(new ri(e,this.duration,this.scheduler,this.leading,this.trailing))},ThrottleTimeOperator}(),ri=function(e){function ThrottleTimeSubscriber(t,n,i,o,a){var u=e.call(this,t)||this;return u.duration=n,u.scheduler=i,u.leading=o,u.trailing=a,u._hasTrailingValue=!1,u._trailingValue=null,u}return i.__extends(ThrottleTimeSubscriber,e),ThrottleTimeSubscriber.prototype._next=function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(throttleTime_dispatchNext,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))},ThrottleTimeSubscriber.prototype._complete=function(){this._hasTrailingValue&&this.destination.next(this._trailingValue),this.destination.complete()},ThrottleTimeSubscriber.prototype.clearThrottle=function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)},ThrottleTimeSubscriber}(W.L);function throttleTime_dispatchNext(e){e.subscriber.clearThrottle()}var rs=n(59462);function timeInterval(e){return void 0===e&&(e=c.P),function(t){return(0,rs.P)(function(){return t.pipe(scan(function(t,n){var i=t.current;return{value:n,current:e.now(),last:i}},{current:e.now(),value:void 0,last:void 0}),(0,eJ.U)(function(e){var t=e.current,n=e.last,i=e.value;return new TimeInterval(i,t-n)}))})}}var TimeInterval=function(e,t){this.value=e,this.interval=t},ro=n(8153);function timeoutWith(e,t,n){return void 0===n&&(n=c.P),function(i){var o=isDate(e),a=o?+e-n.now():Math.abs(e);return i.lift(new ra(a,o,t,n))}}var ra=function(){function TimeoutWithOperator(e,t,n,i){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=n,this.scheduler=i}return TimeoutWithOperator.prototype.call=function(e,t){return t.subscribe(new ru(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},TimeoutWithOperator}(),ru=function(e){function TimeoutWithSubscriber(t,n,i,o,a){var u=e.call(this,t)||this;return u.absoluteTimeout=n,u.waitFor=i,u.withObservable=o,u.scheduler=a,u.scheduleTimeout(),u}return i.__extends(TimeoutWithSubscriber,e),TimeoutWithSubscriber.dispatchTimeout=function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add((0,o.ft)(t,new o.IY(e)))},TimeoutWithSubscriber.prototype.scheduleTimeout=function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(TimeoutWithSubscriber.dispatchTimeout,this.waitFor,this))},TimeoutWithSubscriber.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),e.prototype._next.call(this,t)},TimeoutWithSubscriber.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},TimeoutWithSubscriber}(o.Ds),rc=n(42756);function timeout(e,t){return void 0===t&&(t=c.P),timeoutWith(e,(0,rc._)(new ro.W),t)}function timestamp(e){return void 0===e&&(e=c.P),(0,eJ.U)(function(t){return new Timestamp(t,e.now())})}var Timestamp=function(e,t){this.value=e,this.timestamp=t};function toArrayReducer(e,t,n){return 0===n?[t]:(e.push(t),e)}function toArray(){return reduce(toArrayReducer,[])}function window_window(e){return function(t){return t.lift(new rl(e))}}var rl=function(){function WindowOperator(e){this.windowBoundaries=e}return WindowOperator.prototype.call=function(e,t){var n=new rh(e),i=t.subscribe(n);return i.closed||n.add((0,o.ft)(this.windowBoundaries,new o.IY(n))),i},WindowOperator}(),rh=function(e){function WindowSubscriber(t){var n=e.call(this,t)||this;return n.window=new tv.xQ,t.next(n.window),n}return i.__extends(WindowSubscriber,e),WindowSubscriber.prototype.notifyNext=function(){this.openWindow()},WindowSubscriber.prototype.notifyError=function(e){this._error(e)},WindowSubscriber.prototype.notifyComplete=function(){this._complete()},WindowSubscriber.prototype._next=function(e){this.window.next(e)},WindowSubscriber.prototype._error=function(e){this.window.error(e),this.destination.error(e)},WindowSubscriber.prototype._complete=function(){this.window.complete(),this.destination.complete()},WindowSubscriber.prototype._unsubscribe=function(){this.window=null},WindowSubscriber.prototype.openWindow=function(){var e=this.window;e&&e.complete();var t=this.destination,n=this.window=new tv.xQ;t.next(n)},WindowSubscriber}(o.Ds);function windowCount(e,t){return void 0===t&&(t=0),function(n){return n.lift(new rd(e,t))}}var rd=function(){function WindowCountOperator(e,t){this.windowSize=e,this.startWindowEvery=t}return WindowCountOperator.prototype.call=function(e,t){return t.subscribe(new rf(e,this.windowSize,this.startWindowEvery))},WindowCountOperator}(),rf=function(e){function WindowCountSubscriber(t,n,i){var o=e.call(this,t)||this;return o.destination=t,o.windowSize=n,o.startWindowEvery=i,o.windows=[new tv.xQ],o.count=0,t.next(o.windows[0]),o}return i.__extends(WindowCountSubscriber,e),WindowCountSubscriber.prototype._next=function(e){for(var t=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,i=this.windowSize,o=this.windows,a=o.length,u=0;u<a&&!this.closed;u++)o[u].next(e);var c=this.count-i+1;if(c>=0&&c%t==0&&!this.closed&&o.shift().complete(),++this.count%t==0&&!this.closed){var l=new tv.xQ;o.push(l),n.next(l)}},WindowCountSubscriber.prototype._error=function(e){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)},WindowCountSubscriber.prototype._complete=function(){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()},WindowCountSubscriber.prototype._unsubscribe=function(){this.count=0,this.windows=null},WindowCountSubscriber}(W.L);function windowTime(e){var t=c.P,n=null,i=Number.POSITIVE_INFINITY;return(0,Q.K)(arguments[3])&&(t=arguments[3]),(0,Q.K)(arguments[2])?t=arguments[2]:(0,tY.k)(arguments[2])&&(i=Number(arguments[2])),(0,Q.K)(arguments[1])?t=arguments[1]:(0,tY.k)(arguments[1])&&(n=Number(arguments[1])),function(o){return o.lift(new rp(e,n,i,t))}}var rp=function(){function WindowTimeOperator(e,t,n,i){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler
19=i}return WindowTimeOperator.prototype.call=function(e,t){return t.subscribe(new rg(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},WindowTimeOperator}(),rb=function(e){function CountedSubject(){var t=null!==e&&e.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return i.__extends(CountedSubject,e),CountedSubject.prototype.next=function(t){this._numberOfNextedValues++,e.prototype.next.call(this,t)},Object.defineProperty(CountedSubject.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),CountedSubject}(tv.xQ),rg=function(e){function WindowTimeSubscriber(t,n,i,o,a){var u=e.call(this,t)||this;u.destination=t,u.windowTimeSpan=n,u.windowCreationInterval=i,u.maxWindowSize=o,u.scheduler=a,u.windows=[];var c=u.openWindow();return null!==i&&i>=0?(u.add(a.schedule(dispatchWindowClose,n,{subscriber:u,window:c,context:null})),u.add(a.schedule(dispatchWindowCreation,i,{windowTimeSpan:n,windowCreationInterval:i,subscriber:u,scheduler:a}))):u.add(a.schedule(dispatchWindowTimeSpanOnly,n,{subscriber:u,window:c,windowTimeSpan:n})),u}return i.__extends(WindowTimeSubscriber,e),WindowTimeSubscriber.prototype._next=function(e){for(var t=this.windows,n=t.length,i=0;i<n;i++){var o=t[i];!o.closed&&(o.next(e),o.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(o))}},WindowTimeSubscriber.prototype._error=function(e){for(var t=this.windows;t.length>0;)t.shift().error(e);this.destination.error(e)},WindowTimeSubscriber.prototype._complete=function(){for(var e=this.windows;e.length>0;){var t=e.shift();t.closed||t.complete()}this.destination.complete()},WindowTimeSubscriber.prototype.openWindow=function(){var e=new rb;return this.windows.push(e),this.destination.next(e),e},WindowTimeSubscriber.prototype.closeWindow=function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)},WindowTimeSubscriber}(W.L);function dispatchWindowTimeSpanOnly(e){var t=e.subscriber,n=e.windowTimeSpan,i=e.window;i&&t.closeWindow(i),e.window=t.openWindow(),this.schedule(e,n)}function dispatchWindowCreation(e){var t=e.windowTimeSpan,n=e.subscriber,i=e.scheduler,o=e.windowCreationInterval,a=n.openWindow(),u={action:this,subscription:null};u.subscription=i.schedule(dispatchWindowClose,t,{subscriber:n,window:a,context:u}),this.add(u.subscription),this.schedule(e,o)}function dispatchWindowClose(e){var t=e.subscriber,n=e.window,i=e.context;i&&i.action&&i.subscription&&i.action.remove(i.subscription),t.closeWindow(n)}function windowToggle(e,t){return function(n){return n.lift(new ry(e,t))}}var ry=function(){function WindowToggleOperator(e,t){this.openings=e,this.closingSelector=t}return WindowToggleOperator.prototype.call=function(e,t){return t.subscribe(new rm(e,this.openings,this.closingSelector))},WindowToggleOperator}(),rm=function(e){function WindowToggleSubscriber(t,n,i){var o=e.call(this,t)||this;return o.openings=n,o.closingSelector=i,o.contexts=[],o.add(o.openSubscription=(0,K.D)(o,n,n)),o}return i.__extends(WindowToggleSubscriber,e),WindowToggleSubscriber.prototype._next=function(e){var t=this.contexts;if(t)for(var n=t.length,i=0;i<n;i++)t[i].window.next(e)},WindowToggleSubscriber.prototype._error=function(t){var n=this.contexts;if(this.contexts=null,n)for(var i=n.length,o=-1;++o<i;){var a=n[o];a.window.error(t),a.subscription.unsubscribe()}e.prototype._error.call(this,t)},WindowToggleSubscriber.prototype._complete=function(){var t=this.contexts;if(this.contexts=null,t)for(var n=t.length,i=-1;++i<n;){var o=t[i];o.window.complete(),o.subscription.unsubscribe()}e.prototype._complete.call(this)},WindowToggleSubscriber.prototype._unsubscribe=function(){var e=this.contexts;if(this.contexts=null,e)for(var t=e.length,n=-1;++n<t;){var i=e[n];i.window.unsubscribe(),i.subscription.unsubscribe()}},WindowToggleSubscriber.prototype.notifyNext=function(e,t,n,i,o){if(e===this.openings){var a=void 0;try{a=(0,this.closingSelector)(t)}catch(e){return this.error(e)}var u=new tv.xQ,c=new Y.w,l={window:u,subscription:c};this.contexts.push(l);var R=(0,K.D)(this,a,l);R.closed?this.closeWindow(this.contexts.length-1):(R.context=l,c.add(R)),this.destination.next(u)}else this.closeWindow(this.contexts.indexOf(e))},WindowToggleSubscriber.prototype.notifyError=function(e){this.error(e)},WindowToggleSubscriber.prototype.notifyComplete=function(e){e!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(e.context))},WindowToggleSubscriber.prototype.closeWindow=function(e){if(-1!==e){var t=this.contexts,n=t[e],i=n.window,o=n.subscription;t.splice(e,1),i.complete(),o.unsubscribe()}},WindowToggleSubscriber}(X.L);function windowWhen(e){return function(t){return t.lift(new rv(e))}}var rv=function(){function WindowOperator(e){this.closingSelector=e}return WindowOperator.prototype.call=function(e,t){return t.subscribe(new r_(e,this.closingSelector))},WindowOperator}(),r_=function(e){function WindowSubscriber(t,n){var i=e.call(this,t)||this;return i.destination=t,i.closingSelector=n,i.openWindow(),i}return i.__extends(WindowSubscriber,e),WindowSubscriber.prototype.notifyNext=function(e,t,n,i,o){this.openWindow(o)},WindowSubscriber.prototype.notifyError=function(e){this._error(e)},WindowSubscriber.prototype.notifyComplete=function(e){this.openWindow(e)},WindowSubscriber.prototype._next=function(e){this.window.next(e)},WindowSubscriber.prototype._error=function(e){this.window.error(e),this.destination.error(e),this.unsubscribeClosingNotification()},WindowSubscriber.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},WindowSubscriber.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},WindowSubscriber.prototype.openWindow=function(e){void 0===e&&(e=null),e&&(this.remove(e),e.unsubscribe());var t,n=this.window;n&&n.complete();var i=this.window=new tv.xQ;this.destination.next(i);try{t=(0,this.closingSelector)()}catch(e){this.destination.error(e),this.window.error(e);return}this.add(this.closingNotification=(0,K.D)(this,t))},WindowSubscriber}(X.L);function withLatestFrom(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n;return"function"==typeof e[e.length-1]&&(n=e.pop()),t.lift(new rS(e,n))}}var rS=function(){function WithLatestFromOperator(e,t){this.observables=e,this.project=t}return WithLatestFromOperator.prototype.call=function(e,t){return t.subscribe(new rw(e,this.observables,this.project))},WithLatestFromOperator}(),rw=function(e){function WithLatestFromSubscriber(t,n,i){var o=e.call(this,t)||this;o.observables=n,o.project=i,o.toRespond=[];var a=n.length;o.values=Array(a);for(var u=0;u<a;u++)o.toRespond.push(u);for(var u=0;u<a;u++){var c=n[u];o.add((0,K.D)(o,c,void 0,u))}return o}return i.__extends(WithLatestFromSubscriber,e),WithLatestFromSubscriber.prototype.notifyNext=function(e,t,n){this.values[n]=t;var i=this.toRespond;if(i.length>0){var o=i.indexOf(n);-1!==o&&i.splice(o,1)}},WithLatestFromSubscriber.prototype.notifyComplete=function(){},WithLatestFromSubscriber.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},WithLatestFromSubscriber.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){this.destination.error(e);return}this.destination.next(t)},WithLatestFromSubscriber}(X.L),rE=n(40510);function zip_zip(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(rE.$R.apply(void 0,[t].concat(e)))}}function zipAll(e){return function(t){return t.lift(new rE.mx(e))}}},21607:function(e,t,n){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var i=n(15313),o=i.Buffer;function copyProps(e,t){for(var n in e)t[n]=e[n]}function SafeBuffer(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=i:(copyProps(i,t),t.Buffer=SafeBuffer),SafeBuffer.prototype=Object.create(o.prototype),copyProps(o,SafeBuffer),SafeBuffer.from=function(e,t,n){if("number"==typeof e)throw TypeError("Argument must not be a number");return o(e,t,n)},SafeBuffer.alloc=function(e,t,n){if("number"!=typeof e)throw TypeError("Argument must be a number");var i=o(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 o(e)},SafeBuffer.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i.SlowBuffer(e)}},41896:function(e,t,n){let i=Symbol("SemVer ANY");let Comparator=class Comparator{static get ANY(){return i}constructor(e,t){if(t=o(t),e instanceof Comparator){if(!!t.loose===e.loose)return e;e=e.value}l("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,l("comp",this)}parse(e){let t=this.options.loose?a[u.COMPARATORLOOSE]:a[u.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 R(n[2],this.options.loose):this.semver=i}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===i||e===i)return!0;
19if("string"==typeof e)try{e=new R(e,this.options)}catch(e){return!1}return c(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 j(e.value,t).test(this.value):""===e.operator?""===e.value||new j(this.value,t).test(e.semver):!((t=o(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("=")||c(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||c(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))}};e.exports=Comparator;let o=n(11296),{safeRe:a,t:u}=n(63573),c=n(8176),l=n(49175),R=n(7742),j=n(33957)},33957:function(e,t,n){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.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),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.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let t=(this.options.includePrerelease&&J)|(this.options.loose&&Q),n=t+":"+e,i=o.get(n);if(i)return i;let a=this.options.loose,l=a?R[j.HYPHENRANGELOOSE]:R[j.HYPHENRANGE];c("hyphen replace",e=e.replace(l,hyphenReplace(this.options.includePrerelease))),c("comparator trim",e=e.replace(R[j.COMPARATORTRIM],W)),c("tilde trim",e=e.replace(R[j.TILDETRIM],H)),c("caret trim",e=e.replace(R[j.CARETTRIM],U));let G=e.split(" ").map(e=>parseComparator(e,this.options)).join(" ").split(/\s+/).map(e=>replaceGTE0(e,this.options));a&&(G=G.filter(e=>(c("loose invalid filter",e,this.options),!!e.match(R[j.COMPARATORLOOSE])))),c("range list",G);let Z=new Map,Y=G.map(e=>new u(e,this.options));for(let e of Y){if(isNullSet(e))return[e];Z.set(e.value,e)}Z.size>1&&Z.has("")&&Z.delete("");let K=[...Z.values()];return o.set(n,K),K}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 l(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 i=n(29416),o=new i({max:1e3}),a=n(11296),u=n(41896),c=n(49175),l=n(7742),{safeRe:R,t:j,comparatorTrimReplace:W,tildeTrimReplace:H,caretTrimReplace:U}=n(63573),{FLAG_INCLUDE_PRERELEASE:J,FLAG_LOOSE:Q}=n(11321),isNullSet=e=>"<0.0.0-0"===e.value,isAny=e=>""===e.value,isSatisfiable=(e,t)=>
19{let n=!0,i=e.slice(),o=i.pop();for(;n&&i.length;)n=i.every(e=>o.intersects(e,t)),o=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[j.TILDELOOSE]:R[j.TILDE];return e.replace(n,(t,n,i,o,a)=>{let u;return c("tilde",e,t,n,i,o,a),isX(n)?u="":isX(i)?u=`>=${n}.0.0 <${+n+1}.0.0-0`:isX(o)?u=`>=${n}.${i}.0 <${n}.${+i+1}.0-0`:a?(c("replaceTilde pr",a),u=`>=${n}.${i}.${o}-${a} <${n}.${+i+1}.0-0`):u=`>=${n}.${i}.${o} <${n}.${+i+1}.0-0`,c("tilde return",u),u})},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[j.CARETLOOSE]:R[j.CARET],i=t.includePrerelease?"-0":"";return e.replace(n,(t,n,o,a,u)=>{let l;return c("caret",e,t,n,o,a,u),isX(n)?l="":isX(o)?l=`>=${n}.0.0${i} <${+n+1}.0.0-0`:isX(a)?l="0"===n?`>=${n}.${o}.0${i} <${n}.${+o+1}.0-0`:`>=${n}.${o}.0${i} <${+n+1}.0.0-0`:u?(c("replaceCaret pr",u),l="0"===n?"0"===o?`>=${n}.${o}.${a}-${u} <${n}.${o}.${+a+1}-0`:`>=${n}.${o}.${a}-${u} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${a}-${u} <${+n+1}.0.0-0`):(c("no pr"),l="0"===n?"0"===o?`>=${n}.${o}.${a}${i} <${n}.${o}.${+a+1}-0`:`>=${n}.${o}.${a}${i} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${a} <${+n+1}.0.0-0`),c("caret return",l),l})},replaceXRanges=(e,t)=>(c("replaceXRanges",e,t),e.split(/\s+/).map(e=>replaceXRange(e,t)).join(" ")),replaceXRange=(e,t)=>
19{e=e.trim();let n=t.loose?R[j.XRANGELOOSE]:R[j.XRANGE];return e.replace(n,(n,i,o,a,u,l)=>{c("xRange",e,n,i,o,a,u,l);let R=isX(o),j=R||isX(a),W=j||isX(u);return"="===i&&W&&(i=""),l=t.includePrerelease?"-0":"",R?n=">"===i||"<"===i?"<0.0.0-0":"*":i&&W?(j&&(a=0),u=0,">"===i?(i=">=",j?(o=+o+1,a=0):a=+a+1,u=0):"<="===i&&(i="<",j?o=+o+1:a=+a+1),"<"===i&&(l="-0"),n=`${i+o}.${a}.${u}${l}`):j?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:W&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),c("xRange return",n),n})},replaceStars=(e,t)=>(c("replaceStars",e,t),e.trim().replace(R[j.STAR],"")),replaceGTE0=(e,t)=>(c("replaceGTE0",e,t),e.trim().replace(R[t.includePrerelease?j.GTE0PRE:j.GTE0],"")),hyphenReplace=e=>(t,n,i,o,a,u,c,l,R,j,W,H,U)=>(n=isX(i)?"":isX(o)?`>=${i}.0.0${e?"-0":""}`:isX(a)?`>=${i}.${o}.0${e?"-0":""}`:u?`>=${n}`:`>=${n}${e?"-0":""}`,l=isX(R)?"":isX(j)?`<${+R+1}.0.0-0`:isX(W)?`<${R}.${+j+1}.0-0`:H?`<=${R}.${j}.${W}-${H}`:e?`<${R}.${j}.${+W+1}-0`:`<=${l}`,`${n} ${l}`.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}},7742:function(e,t,n){let i=n(49175),{MAX_LENGTH:o,MAX_SAFE_INTEGER:a}=n(11321),{safeRe:u,t:c}=n(63573),l=n(11296),{compareIdentifiers:R}=n(9029);let SemVer=class SemVer{constructor(e,t){if(t=l(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>o)throw TypeError(`version is longer than ${o} characters`);i("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?u[c.LOOSE]:u[c.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>a||this.major<0)throw TypeError("Invalid major version");if(this.minor>a||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>a||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<a)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)),R(this.major,e.major)||R(this.minor,e.minor)||R(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],o=e.prerelease[t];if(i("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return -1;if(n===o)continue;else return R(n,o)}while(++t)}compareBuild(e){e instanceof SemVer||(e=new SemVer(e,this.options));let t=0;do{let n=this.build[t],o=e.build[t];if(i("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return -1;if(n===o)continue;else return R(n,o)}while(++t)}inc(e,t,n){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"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(!t&&!1===n)throw Error("invalid increment argument: identifier is empty");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===R(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},59440:function(e,t,n){let i=n(80769);e.exports=(e,t)=>{let n=i(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},8176:function(e,t,n){let i=n(89883),o=n(30448),a=n(59880),u=n(20705),c=n(16683),l=n(81562);e.exports=(e,t,n,R)=>{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,R);case"!=":return o(e,n,R);case">":return a(e,n,R);case">=":return u(e,n,R);case"<":return c(e,n,R);case"<=":return l(e,n,R);default:throw TypeError(`Invalid operator: ${t}`)}}},68923:function(e,t,n){let i=n(7742),o=n(80769),{safeRe:a,t:u}=n(63573);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 t;for(;(t=a[u.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),a[u.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;a[u.COERCERTL].lastIndex=-1}else n=e.match(a[u.COERCE]);return null===n?null:o(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)}},30791:function(e,t,n){let i=n(7742);e.exports=(e,t,n)=>{let o=new i(e,n),a=new i(t,n);return o.compare(a)||o.compareBuild(a)}},96185:function(e,t,n){let i=n(85239);e.exports=(e,t)=>i(e,t,!0)},85239:function(e,t,n){let i=n(7742);e.exports=(e,t,n)=>new i(e,n).compare(new i(t,n))},17530:function(e,t,n){let i=n(80769);e.exports=(e,t)=>{let n=i(e,null,!0),o=i(t,null,!0),a=n.compare(o);if(0===a)return null;let u=a>0,c=u?n:o,l=u?o:n,R=!!c.prerelease.length,j=!!l.prerelease.length;if(j&&!R)return l.patch||l.minor?c.patch?"patch":c.minor?"minor":"major":"major";let W=R?"pre":"";return n.major!==o.major?W+"major":n.minor!==o.minor?W+"minor":n.patch!==o.patch?W+"patch":"prerelease"}},89883:function(e,t,n){let i=n(85239);e.exports=(e,t,n)=>0===i(e,t,n)},59880:function(e,t,n){let i=n(85239);e.exports=(e,t,n)=>i(e,t,n)>0},20705:function(e,t,n){let i=n(85239);e.exports=(e,t,n)=>i(e,t,n)>=0},81382:function(e,t,n){let i=n(7742);e.exports=(e,t,n,o,a)=>{"string"==typeof n&&(a=o,o=n,n=void 0);
19try{return new i(e instanceof i?e.version:e,n).inc(t,o,a).version}catch(e){return null}}},16683:function(e,t,n){let i=n(85239);e.exports=(e,t,n)=>0>i(e,t,n)},81562:function(e,t,n){let i=n(85239);e.exports=(e,t,n)=>0>=i(e,t,n)},39374:function(e,t,n){let i=n(7742);e.exports=(e,t)=>new i(e,t).major},92531:function(e,t,n){let i=n(7742);e.exports=(e,t)=>new i(e,t).minor},30448:function(e,t,n){let i=n(85239);e.exports=(e,t,n)=>0!==i(e,t,n)},80769:function(e,t,n){let i=n(7742);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}}},15140:function(e,t,n){let i=n(7742);e.exports=(e,t)=>new i(e,t).patch},53057:function(e,t,n){let i=n(80769);e.exports=(e,t)=>{let n=i(e,t);return n&&n.prerelease.length?n.prerelease:null}},20540:function(e,t,n){let i=n(85239);e.exports=(e,t,n)=>i(t,e,n)},57213:function(e,t,n){let i=n(30791);e.exports=(e,t)=>e.sort((e,n)=>i(n,e,t))},21695:function(e,t,n){let i=n(33957);e.exports=(e,t,n)=>{try{t=new i(t,n)}catch(e){return!1}return t.test(e)}},62626:function(e,t,n){let i=n(30791);e.exports=(e,t)=>e.sort((e,n)=>i(e,n,t))},69367:function(e,t,n){let i=n(80769);e.exports=(e,t)=>{let n=i(e,t);return n?n.version:null}},50595:function(e,t,n){let i=n(63573),o=n(11321),a=n(7742),u=n(9029),c=n(80769),l=n(69367),R=n(59440),j=n(81382),W=n(17530),H=n(39374),U=n(92531),J=n(15140),Q=n(53057),G=n(85239),Z=n(20540),Y=n(96185),K=n(30791),X=n(62626),ee=n(57213),et=n(59880),er=n(16683),en=n(89883),ei=n(30448),es=n(20705),eo=n(81562),ea=n(8176),eu=n(68923),ec=n(41896),el=n(33957),eh=n(21695),ed=n(42988),ef=n(20069),ep=n(57581),eb=n(64349),eg=n(36456),ey=n(83098),em=n(21609),ev=n(79675),e_=n(1226),eS=n(69315),ew=n(79196);e.exports={parse:c,valid:l,clean:R,inc:j,diff:W,major:H,minor:U,patch:J,prerelease:Q,compare:G,rcompare:Z,compareLoose:Y,compareBuild:K,sort:X,rsort:ee,gt:et,lt:er,eq:en,neq:ei,gte:es,lte:eo,cmp:ea,coerce:eu,Comparator:ec,Range:el,satisfies:eh,toComparators:ed,maxSatisfying:ef,minSatisfying:ep,minVersion:eb,validRange:eg,outside:ey,gtr:em,ltr:ev,intersects:e_,simplifyRange:eS,subset:ew,SemVer:a,re:i.re,src:i.src,tokens:i.t,SEMVER_SPEC_VERSION:o.SEMVER_SPEC_VERSION,RELEASE_TYPES:o.RELEASE_TYPES,compareIdentifiers:u.compareIdentifiers,rcompareIdentifiers:u.rcompareIdentifiers}},11321:function(e){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}},9029:function(e){let t=/^[0-9]+$/,compareIdentifiers=(e,n)=>{let i=t.test(e),o=t.test(n);return i&&o&&(e=+e,n=+n),e===n?0:i&&!o?-1:o&&!i?1:e<n?-1:1};e.exports={compareIdentifiers,rcompareIdentifiers:(e,t)=>compareIdentifiers(t,e)}},11296:function(e){let t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},63573:function(e,t,n){let{MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:o,MAX_LENGTH:a}=n(11321),u=n(49175);t=e.exports={};let c=t.re=[],l=t.safeRe=[],R=t.src=[],j=t.t={},W=0,H="[a-zA-Z0-9-]",U=[["\\s",1],["\\d",a],[H,o]],makeSafeRegex=e=>{for(let[t,n]of U)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},createToken=(e,t,n)=>{let i=makeSafeRegex(t),o=W++;u(e,o,t),j[e]=o,R[o]=t,c[o]=new RegExp(t,n?"g":void 0),l[o]=new RegExp(i,n?"g":void 0)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*"),createToken("NUMERICIDENTIFIERLOOSE","\\d+"),createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${H}*`),createToken("MAINVERSION",`(${R[j.NUMERICIDENTIFIER]})\\.(${R[j.NUMERICIDENTIFIER]})\\.(${R[j.NUMERICIDENTIFIER]})`),createToken("MAINVERSIONLOOSE",`(${R[j.NUMERICIDENTIFIERLOOSE]})\\.(${R[j.NUMERICIDENTIFIERLOOSE]})\\.(${R[j.NUMERICIDENTIFIERLOOSE]})`),createToken("PRERELEASEIDENTIFIER",`(?:${R[j.NUMERICIDENTIFIER]}|${R[j.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${R[j.NUMERICIDENTIFIERLOOSE]}|${R[j.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASE",`(?:-(${R[j.PRERELEASEIDENTIFIER]}(?:\\.${R[j.PRERELEASEIDENTIFIER]})*))`),createToken("PRERELEASELOOSE",`(?:-?(${R[j.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${R[j.PRERELEASEIDENTIFIERLOOSE]}
19)*))`),createToken("BUILDIDENTIFIER",`${H}+`),createToken("BUILD",`(?:\\+(${R[j.BUILDIDENTIFIER]}(?:\\.${R[j.BUILDIDENTIFIER]})*))`),createToken("FULLPLAIN",`v?${R[j.MAINVERSION]}${R[j.PRERELEASE]}?${R[j.BUILD]}?`),createToken("FULL",`^${R[j.FULLPLAIN]}$`),createToken("LOOSEPLAIN",`[v=\\s]*${R[j.MAINVERSIONLOOSE]}${R[j.PRERELEASELOOSE]}?${R[j.BUILD]}?`),createToken("LOOSE",`^${R[j.LOOSEPLAIN]}$`),createToken("GTLT","((?:<|>)?=?)"),createToken("XRANGEIDENTIFIERLOOSE",`${R[j.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),createToken("XRANGEIDENTIFIER",`${R[j.NUMERICIDENTIFIER]}|x|X|\\*`),createToken("XRANGEPLAIN",`[v=\\s]*(${R[j.XRANGEIDENTIFIER]})(?:\\.(${R[j.XRANGEIDENTIFIER]})(?:\\.(${R[j.XRANGEIDENTIFIER]})(?:${R[j.PRERELEASE]})?${R[j.BUILD]}?)?)?`),createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${R[j.XRANGEIDENTIFIERLOOSE]})(?:\\.(${R[j.XRANGEIDENTIFIERLOOSE]})(?:\\.(${R[j.XRANGEIDENTIFIERLOOSE]})(?:${R[j.PRERELEASELOOSE]})?${R[j.BUILD]}?)?)?`),createToken("XRANGE",`^${R[j.GTLT]}\\s*${R[j.XRANGEPLAIN]}$`),createToken("XRANGELOOSE",`^${R[j.GTLT]}\\s*${R[j.XRANGEPLAINLOOSE]}$`),createToken("COERCE",`(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?(?:$|[^\\d])`),createToken("COERCERTL",R[j.COERCE],!0),createToken("LONETILDE","(?:~>?)"),createToken("TILDETRIM",`(\\s*)${R[j.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",createToken("TILDE",`^${R[j.LONETILDE]}${R[j.XRANGEPLAIN]}$`),createToken("TILDELOOSE",`^${R[j.LONETILDE]}${R[j.XRANGEPLAINLOOSE]}$`),createToken("LONECARET","(?:\\^)"),createToken("CARETTRIM",`(\\s*)${R[j.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",createToken("CARET",`^${R[j.LONECARET]}${R[j.XRANGEPLAIN]}$`),createToken("CARETLOOSE",`^${R[j.LONECARET]}${R[j.XRANGEPLAINLOOSE]}$`),createToken("COMPARATORLOOSE",`^${R[j.GTLT]}\\s*(${R[j.LOOSEPLAIN]})$|^$`),createToken("COMPARATOR",`^${R[j.GTLT]}\\s*(${R[j.FULLPLAIN]})$|^$`),createToken("COMPARATORTRIM",`(\\s*)${R[j.GTLT]}\\s*(${R[j.LOOSEPLAIN]}|${R[j.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",createToken("HYPHENRANGE",`^\\s*(${R[j.XRANGEPLAIN]})\\s+-\\s+(${R[j.XRANGEPLAIN]})\\s*$`),createToken("HYPHENRANGELOOSE",`^\\s*(${R[j.XRANGEPLAINLOOSE]})\\s+-\\s+(${R[j.XRANGEPLAINLOOSE]})\\s*$`),createToken("STAR","(<|>)?=?\\s*\\*"),createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},21609:function(e,t,n){let i=n(83098);e.exports=(e,t,n)=>i(e,t,">",n)},1226:function(e,t,n){let i=n(33957);e.exports=(e,t,n)=>(e=new i(e,n),t=new i(t,n),e.intersects(t,n))},79675:function(e,t,n){let i=n(83098);e.exports=(e,t,n)=>i(e,t,"<",n)},20069:function(e,t,n){let i=n(7742),o=n(33957);e.exports=(e,t,n)=>{let a=null,u=null,c=null;try{c=new o(t,n)}catch(e){return null}return e.forEach(e=>{c.test(e)&&(!a||-1===u.compare(e))&&(a=e,u=new i(a,n))}),a}},57581:function(e,t,n){let i=n(7742),o=n(33957);e.exports=(e,t,n)=>{let a=null,u=null,c=null;try{c=new o(t,n)}catch(e){return null}return e.forEach(e=>{c.test(e)&&(!a||1===u.compare(e))&&(a=e,u=new i(a,n))}),a}},64349:function(e,t,n){let i=n(7742),o=n(33957),a=n(59880);e.exports=(e,t)=>{e=new o(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 o=e.set[t],u=null;o.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">=":(!u||a(t,u))&&(u=t);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),u&&(!n||a(n,u))&&(n=u)}return n&&e.test(n)?n:null}},83098:function(e,t,n){let i=n(7742),o=n(41896),{ANY:a}=o,u=n(33957),c=n(21695),l=n(59880),R=n(16683),j=n(81562),W=n(20705);e.exports=(e,t,n,H)=>{let U,J,Q,G,Z;switch(e=new i(e,H),t=new u(t,H),n){case">":U=l,J=j,Q=R,G=">",Z=">=";break;case"<":U=R,J=W,Q=l,G="<",Z="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(c(e,t,H))return!1;for(let n=0;n<t.set.length;++n){let i=t.set[n],u=null,c=null;if(i.forEach(e=>{e.semver===a&&(e=new o(">=0.0.0")),u=u||e,c=c||e,U(e.semver,u.semver,H)?u=e:Q(e.semver,c.semver,H)&&(c=e)}),u.operator===G||u.operator===Z||(!c.operator||c.operator===G)&&J(e,c.semver)||c.operator===Z&&Q(e,c.semver))return!1}return!0}},69315:function(e,t,n){let i=n(21695),o=n(85239);e.exports=(e,t,n)=>{let a=[],u=null,c=null,l=e.sort((e,t)=>
19o(e,t,n));for(let e of l){let o=i(e,t,n);o?(c=e,u||(u=e)):(c&&a.push([u,c]),c=null,u=null)}u&&a.push([u,null]);let R=[];for(let[e,t]of a)e===t?R.push(e):t||e!==l[0]?t?e===l[0]?R.push(`<=${t}`):R.push(`${e} - ${t}`):R.push(`>=${e}`):R.push("*");let j=R.join(" || "),W="string"==typeof t.raw?t.raw:String(t);return j.length<W.length?j:t}},79196:function(e,t,n){let i=n(33957),o=n(41896),{ANY:a}=o,u=n(21695),c=n(85239),l=[new o(">=0.0.0-0")],R=[new o(">=0.0.0")],simpleSubset=(e,t,n)=>{let i,o,j,W,H,U,J;if(e===t)return!0;if(1===e.length&&e[0].semver===a){if(1===t.length&&t[0].semver===a)return!0;e=n.includePrerelease?l:R}if(1===t.length&&t[0].semver===a){if(n.includePrerelease)return!0;t=R}let Q=new Set;for(let t of e)">"===t.operator||">="===t.operator?i=higherGT(i,t,n):"<"===t.operator||"<="===t.operator?o=lowerLT(o,t,n):Q.add(t.semver);if(Q.size>1||i&&o&&((j=c(i.semver,o.semver,n))>0||0===j&&(">="!==i.operator||"<="!==o.operator)))return null;for(let e of Q){if(i&&!u(e,String(i),n)||o&&!u(e,String(o),n))return null;for(let i of t)if(!u(e,String(i),n))return!1;return!0}let G=!!o&&!n.includePrerelease&&!!o.semver.prerelease.length&&o.semver,Z=!!i&&!n.includePrerelease&&!!i.semver.prerelease.length&&i.semver;for(let e of(G&&1===G.prerelease.length&&"<"===o.operator&&0===G.prerelease[0]&&(G=!1),t)){if(J=J||">"===e.operator||">="===e.operator,U=U||"<"===e.operator||"<="===e.operator,i){if(Z&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===Z.major&&e.semver.minor===Z.minor&&e.semver.patch===Z.patch&&(Z=!1),">"===e.operator||">="===e.operator){if((W=higherGT(i,e,n))===e&&W!==i)return!1}else if(">="===i.operator&&!u(i.semver,String(e),n))return!1}if(o){if(G&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===G.major&&e.semver.minor===G.minor&&e.semver.patch===G.patch&&(G=!1),"<"===e.operator||"<="===e.operator){if((H=lowerLT(o,e,n))===e&&H!==o)return!1}else if("<="===o.operator&&!u(o.semver,String(e),n))return!1}if(!e.operator&&(o||i)&&0!==j)return!1}return(!i||!U||!!o||0===j)&&(!o||!J||!!i||0===j)&&!Z&&!G},higherGT=(e,t,n)=>{if(!e)return t;let i=c(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=c(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 o=!1;t:for(let i of e.set){for(let e of t.set){let t=simpleSubset(i,e,n);if(o=o||null!==t,t)continue t}if(o)return!1}return!0}},42988:function(e,t,n){let i=n(33957);e.exports=(e,t)=>new i(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},36456:function(e,t,n){let i=n(33957);e.exports=(e,t)=>{try{return new i(e,t).range||"*"}catch(e){return null}}},82849:function(e,t,n){var i=n(21607).Buffer;function Hash(e,t){this._block=i.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}Hash.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=i.from(e,t));for(var n=this._block,o=this._blockSize,a=e.length,u=this._len,c=0;c<a;){for(var l=u%o,R=Math.min(a-c,o-l),j=0;j<R;j++)n[l+j]=e[c+j];u+=R,c+=R,u%o==0&&this._update(n)}return this._len+=a,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,o=(n-i)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},Hash.prototype._update=function(){throw Error("_update must be implemented by subclass")},e.exports=Hash},55402:function(e,t,n){var i=e.exports=function(e){var t=i[e=e.toLowerCase()];if(!t)throw Error(e+" is not supported (we accept pull requests)");return new t};i.sha=n(14434),i.sha1=n(76924),i.sha224=n(24273),i.sha256=n(118),i.sha384=n(13459),i.sha512=n(76151)},14434:function(e,t,n){var i=n(67483),o=n(82849),a=n(21607).Buffer,u=[1518500249,1859775393,-1894007588,-899497514],c=Array(80);function Sha(){this.init(),this._w=c,o.call(this,64,56)}i(Sha,o),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,o=0|this._c,a=0|this._d,c=0|this._e,l=0;l<16;++l)t[l]=e.readInt32BE(4*l);for(;l<80;++l)t[l]=t[l-3]^t[l-8]^t[l-14]^t[l-16];for(var R=0;R<80;++R){var j,W,H,U,J,Q=~~(R/20),G=((j=n)<<5|j>>>27)+(W=i,H=o,U=a,0===Q?W&H|~W&U:2===Q?W&H|W&U|H&U:W^H^U)+c+t[R]+u[Q]|0;c=a,a=o,o=(J=i)<<30|J>>>2,i=n,n=G}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},Sha.prototype._hash=function(){var e=a.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},76924:function(e,t,n){var i=n(67483),o=n(82849),a=n(21607).Buffer,u=[1518500249,1859775393,-1894007588,-899497514],c=Array(80);function Sha1(){this.init(),this._w=c,o.call(this,64,56)}i(Sha1,o),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,o=0|this._c,a=0|this._d,c=0|this._e,l=0;l<16;++l)t[l]=e.readInt32BE(4*l);for(;l<80;++l)t[l]=(j=t[l-3]^t[l-8]^t[l-14]^t[l-16])<<1|j>>>31;for(var R=0;R<80;++R){var j,W,H,U,J,Q,G=~~(R/20),Z=((W=n)<<5|W>>>27)+(H=i,U=o,J=a,0===G?H&U|~H&J:2===G?H&U|H&J|U&J:H^U^J)+c+t[R]+u[G]|0;c=a,a=o,o=(Q=i)<<30|Q>>>2,i=n,n=Z}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},Sha1.prototype._hash=function(){var e=a.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},24273:function(e,t,n){var i=n(67483),o=n(118),a=n(82849),u=n(21607).Buffer,c=Array(64);function Sha224(){this.init(),this._w=c,a.call(this,64,56)}i(Sha224,o),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=u.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},118:function(e,t,n){var i=n(67483),o=n(82849),a=n(21607).Buffer,u=[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
19734187,3204031479,3329325298],c=Array(64);function Sha256(){this.init(),this._w=c,o.call(this,64,56)}i(Sha256,o),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,o=0|this._c,a=0|this._d,c=0|this._e,l=0|this._f,R=0|this._g,j=0|this._h,W=0;W<16;++W)t[W]=e.readInt32BE(4*W);for(;W<64;++W)t[W]=(((U=t[W-2])>>>17|U<<15)^(U>>>19|U<<13)^U>>>10)+t[W-7]+(((J=t[W-15])>>>7|J<<25)^(J>>>18|J<<14)^J>>>3)+t[W-16]|0;for(var H=0;H<64;++H){var U,J,Q,G,Z,Y,K,X,ee,et=j+(((Q=c)>>>6|Q<<26)^(Q>>>11|Q<<21)^(Q>>>25|Q<<7))+(G=c,Z=l,(Y=R)^G&(Z^Y))+u[H]+t[H]|0,er=(((K=n)>>>2|K<<30)^(K>>>13|K<<19)^(K>>>22|K<<10))+((X=n)&(ee=i)|o&(X|ee))|0;j=R,R=l,l=c,c=a+et|0,a=o,o=i,i=n,n=et+er|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0,this._f=l+this._f|0,this._g=R+this._g|0,this._h=j+this._h|0},Sha256.prototype._hash=function(){var e=a.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},13459:function(e,t,n){var i=n(67483),o=n(76151),a=n(82849),u=n(21607).Buffer,c=Array(160);function Sha384(){this.init(),this._w=c,a.call(this,128,112)}i(Sha384,o),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=u.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},76151:function(e,t,n){var i=n(67483),o=n(82849),a=n(21607).Buffer,u=[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,
191126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],c=Array(160);function Sha512(){this.init(),this._w=c,o.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 getCarry(e,t){return e>>>0<t>>>0?1:0}i(Sha512,o),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,o=0|this._ch,a=0|this._dh,c=0|this._eh,l=0|this._fh,R=0|this._gh,j=0|this._hh,W=0|this._al,H=0|this._bl,U=0|this._cl,J=0|this._dl,Q=0|this._el,G=0|this._fl,Z=0|this._gl,Y=0|this._hl,K=0;K<32;K+=2)t[K]=e.readInt32BE(4*K),t[K+1]=e.readInt32BE(4*K+4);for(;K<160;K+=2){var X,ee,et,er,en,ei,es,eo,ea=t[K-30],eu=t[K-30+1],ec=((X=ea)>>>1|(ee=eu)<<31)^(X>>>8|ee<<24)^X>>>7,el=((et=eu)>>>1|(er=ea)<<31)^(et>>>8|er<<24)^(et>>>7|er<<25);ea=t[K-4],eu=t[K-4+1];var eh=((en=ea)>>>19|(ei=eu)<<13)^(ei>>>29|en<<3)^en>>>6,ed=((es=eu)>>>19|(eo=ea)<<13)^(eo>>>29|es<<3)^(es>>>6|eo<<26),ef=t[K-14],ep=t[K-14+1],eb=t[K-32],eg=t[K-32+1],ey=el+ep|0,em=ec+ef+getCarry(ey,el)|0;em=(em=em+eh+getCarry(ey=ey+ed|0,ed)|0)+eb+getCarry(ey=ey+eg|0,eg)|0,t[K]=em,t[K+1]=ey}for(var ev=0;ev<160;ev+=2){em=t[ev],ey=t[ev+1];var e_,eS,ew,eE,ex,ek,eC,eR,eI,eT,eM=(e_=n)&(eS=i)|o&(e_|eS),eO=(ew=W)&(eE=H)|U&(ew|eE),eN=sigma0(n,W),eA=sigma0(W,n),eL=sigma1(c,Q),ej=sigma1(Q,c),eD=u[ev],eP=u[ev+1],eB=(ex=c,ek=l,(eC=R)^ex&(ek^eC)),eF=(eR=Q,eI=G,(eT=Z)^eR&(eI^eT)),eW=Y+ej|0,ez=j+eL+getCarry(eW,Y)|0;ez=(ez=(ez=ez+eB+getCarry(eW=eW+eF|0,eF)|0)+eD+getCarry(eW=eW+eP|0,eP)|0)+em+getCarry(eW=eW+ey|0,ey)|0;var eH=eA+eO|0,eV=eN+eM+getCarry(eH,eA)|0;j=R,Y=Z,R=l,Z=G,l=c,G=Q,c=a+ez+getCarry(Q=J+eW|0,J)|0,a=o,J=U,o=i,U=H,i=n,H=W,n=ez+eV+getCarry(W=eW+eH|0,eW)|0}this._al=this._al+W|0,this._bl=this._bl+H|0,this._cl=this._cl+U|0,this._dl=this._dl+J|0,this._el=this._el+Q|0,this._fl=this._fl+G|0,this._gl=this._gl+Z|0,this._hl=this._hl+Y|0,this._ah=this._ah+n+getCarry(this._al,W)|0,this._bh=this._bh+i+getCarry(this._bl,H)|0,this._ch=this._ch+o+getCarry(this._cl,U)|0,this._dh=this._dh+a+getCarry(this._dl,J)|0,this._eh=this._eh+c+getCarry(this._el,Q)|0,this._fh=this._fh+l+getCarry(this._fl,G)|0,this._gh=this._gh+R+getCarry(this._gl,Z)|0,this._hh=this._hh+j+getCarry(this._hl,Y)|0},Sha512.prototype._hash=function(){var e=a.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},23457:function(e,t,n){"use strict";var i=n(21607).Buffer,o=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 StringDecoder(e){var t;switch(this.encoding=function(e){var t=function(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";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(i.isEncoding===o||!o(e)))throw Error("Unknown encoding: "+e);return t||e}(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 utf8FillLast(e){var t=this.lastTotal-this.lastNeed,n=function(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,"�"}}(this,e,0);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 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=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},StringDecoder.prototype.text=function(e,t){var n=function(e,t,n){var i=t.length-1;if(i<n)return 0;var o=utf8CheckByte(t[i]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--i<n||-2===o?0:(o=utf8CheckByte(t[i]))>=0?(o>0&&(e.lastNeed=o-2),o):--i<n||-2===o?0:(o=utf8CheckByte(t[i]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(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)},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}},54012:function(e,t,n){e.exports=function(e,t){if(config("noDeprecation"))return e;var n=!1;
19return 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()}},31693:function(e){e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var i=arguments[n];for(var o in i)t.call(i,o)&&(e[o]=i[o])}return e};var t=Object.prototype.hasOwnProperty},94735:function(e){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},87406:function(e,t,n){"use strict";function Yallist(e){var t=this;if(t instanceof Yallist||(t=new Yallist),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var n=0,i=arguments.length;n<i;n++)t.push(arguments[n]);return t}function Node(e,t,n,i){if(!(this instanceof Node))return new Node(e,t,n,i);this.list=i,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}e.exports=Yallist,Yallist.Node=Node,Yallist.create=Yallist,Yallist.prototype.removeNode=function(e){if(e.list!==this)throw Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},Yallist.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},Yallist.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},Yallist.prototype.push=function(){for(var e,t=0,n=arguments.length;t<n;t++)e=arguments[t],this.tail=new Node(e,this.tail,null,this),this.head||(this.head=this.tail),this.length++;return this.length},Yallist.prototype.unshift=function(){for(var e,t=0,n=arguments.length;t<n;t++)e=arguments[t],this.head=new Node(e,null,this.head,this),this.tail||(this.tail=this.head),this.length++;return this.length},Yallist.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},Yallist.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},Yallist.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,i=0;null!==n;i++)e.call(t,n.value,i,this),n=n.next},Yallist.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,i=this.length-1;null!==n;i--)e.call(t,n.value,i,this),n=n.prev},Yallist.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},Yallist.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},Yallist.prototype.map=function(e,t){t=t||this;for(var n=new Yallist,i=this.head;null!==i;)n.push(e.call(t,i.value,this)),i=i.next;return n},Yallist.prototype.mapReverse=function(e,t){t=t||this;for(var n=new Yallist,i=this.tail;null!==i;)n.push(e.call(t,i.value,this)),i=i.prev;return n},Yallist.prototype.reduce=function(e,t){var n,i=this.head;if(arguments.length>1)n=t;else if(this.head)i=this.head.next,n=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var o=0;null!==i;o++)n=e(n,i.value,o),i=i.next;return n},Yallist.prototype.reduceReverse=function(e,t){var n,i=this.tail;if(arguments.length>1)n=t;else if(this.tail)i=this.tail.prev,n=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var o=this.length-1;null!==i;o--)n=e(n,i.value,o),i=i.prev;return n},Yallist.prototype.toArray=function(){for(var e=Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},Yallist.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,n=this.tail;null!==n;
19t++)e[t]=n.value,n=n.prev;return e},Yallist.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new Yallist;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;for(;null!==o&&i<t;i++,o=o.next)n.push(o.value);return n},Yallist.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new Yallist;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)n.push(o.value);return n},Yallist.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;for(var a=[],i=0;o&&i<t;i++)a.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(var i=0;i<n.length;i++)o=function(e,t,n){var i=t===e.head?new Node(n,null,t,e):new Node(n,t,t.next,e);return null===i.next&&(e.tail=i),null===i.prev&&(e.head=i),e.length++,i}(this,o,n[i]);return a},Yallist.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var i=n.prev;n.prev=n.next,n.next=i}return this.head=t,this.tail=e,this};try{n(94735)(Yallist)}catch(e){}},78341: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:o,...a}=e,{path:u}=e,c=0===u.length?i:`At path: ${u.join(".")} -- ${i}`;super(o??c),null!=o&&(this.cause=c),Object.assign(this,a),this.name=this.constructor.name,this.failures=()=>n??(n=[e,...t()])}};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*toFailures(e,t,n,i){var o;for(let a of(isObject(o=e)&&"function"==typeof o[Symbol.iterator]||(e=[e]),e)){let e=function(e,t,n,i){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});let{path:o,branch:a}=t,{type:u}=n,{refinement:c,message:l=`Expected a value of type \`${u}\`${c?` with refinement \`${c}\``:""}, but received: \`${print(i)}\``}=e;return{value:i,type:u,refinement:c,key:o[o.length-1],path:o,branch:a,...e,message:l}}(a,t,n,i);e&&(yield e)}}function*run(e,t,n={}){let{path:i=[],branch:o=[e],coerce:a=!1,mask:u=!1}=n,c={path:i,branch:o};if(a&&(e=t.coercer(e,c),u&&"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 l="valid";for(let i of t.validator(e,c))i.explanation=n.message,l="not_val
19id",yield[i,void 0];for(let[R,j,W]of t.entries(e,c)){let t=run(j,W,{path:void 0===R?i:[...i,R],branch:void 0===R?o:[...o,j],coerce:a,mask:u,message:n.message});for(let n of t)n[0]?(l=null!=n[0].refinement?"not_refined":"not_valid",yield[n[0],void 0]):a&&(j=n[1],void 0===R?e=j:e instanceof Map?e.set(R,j):e instanceof Set?e.add(j):isObject(e)&&(void 0!==j||R in e)&&(e[R]=j))}if("not_valid"!==l)for(let i of t.refiner(e,c))i.explanation=n.message,l="not_refined",yield[i,void 0];"valid"===l&&(yield[void 0,e])}let Struct=class Struct{constructor(e){let{type:t,schema:n,validator:i,refiner:o,coercer:a=e=>e,entries:u=function*(){}}=e;this.type=t,this.schema=n,this.entries=u,this.coercer=a,i?this.validator=(e,t)=>{let n=i(e,t);return toFailures(n,t,this,e)}:this.validator=()=>[],o?this.refiner=(e,t)=>{let n=o(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),o=function(e){let{done:t,value:n}=e.next();return t?void 0:n}(i);if(o[0]){let e=new StructError(o[0],function*(){for(let e of i)e[0]&&(yield e[0])});return[e,void 0]}{let e=o[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?{...e.schema}:{...e};for(let e in t)t[e]=optional(t[e]);return object(t)}function pick(e,t){let{schema:n}=e,i={};for(let e of t)i[e]=n[e];return 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,o]of n.entries())yield[i,i,e],yield[i,o,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 o=new Set(Object.keys(i));for(let n of t)o.delete(n),yield[n,i[n],e[n]];for(let e of o)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 o=n[i];yield[i,i,e],yield[i,o,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 o=0;o<i;o++)yield[o,n[o],e[o]||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 o=[];for(let t of e){let[...e]=run(n,t,i),[a]=e;if(!a[0])return[];for(let[t]of e)t&&o.push(t)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${print(n)}`,...o]}})}function unknown(){return define("unknown",()=>!0)}function coerce(e,t,n){return new Struct({...e,coercer:(i,o)=>is(i,t)?e.coercer(n(i,o),o):e.coercer(i,o)})}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}`,o=t===n?`of \`${t}\``:`between \`${t}\` and \`${n}\``;return refine(e,"size",e=>
19{if("number"==typeof e||e instanceof Date)return t<=e&&e<=n||`${i} ${o} but received \`${e}\``;if(e instanceof Map||e instanceof Set){let{size:a}=e;return t<=a&&a<=n||`${i} with a size ${o} but received one with a size of \`${a}\``}{let{length:a}=e;return t<=a&&a<=n||`${i} with a length ${o} but received one with a length of \`${a}\``}})}function refine(e,t,n){return new Struct({...e,*refiner(i,o){yield*e.refiner(i,o);let a=n(i,o),u=toFailures(a,o,e,i);for(let e of u)yield{...e,refinement:t}}})}}}]);
20//# sourceMappingURL=4299.208e91336fe2b6c5.js.map

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.