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D,MAAO,IAAKW,EAAAI,EAAC,GAAEH,EAAAG,EAAC,GAAEV,OAAQ4H,I,qEAC9CC,GAAAA,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,EAAAA,CAAAjI,SAAU,IAAKI,OAAQC,EAAAA,K,mFApBtC,IAAa,GAACwH,QAAM,K,yFAApB,EAAa,GAACA,O,uNA5FR,SAAAG,EAAWxH,G,OAEhBN,KAAKgI,KAAM,IAAQ1H,EAAI,GAAON,KAAKiI,GAAM,GAAKjI,KAAKkI,IAAI,GAAM,GAAO5H,GACpE,C,yBAhBI,MAAA+F,OAAAA,GAAW5B,EAAAA,GAEb0D,EAAiB/D,EAAAA,GACpBgE,OAAO,iBACPC,MAAKC,EAAAA,EAAAA,GAAUlE,EAAAA,GAAMC,MAAMkE,gBAAgB,OAAY,K,8BAMtD/H,EACAC,G,SALO+H,GAAgB,G,gBAChBC,GAAwB,G,cACxBC,GAAiC,EAkB5ClI,EAAI,EACJC,EAAI,EAEA,IAAAkI,EAAY,W,MAUV9I,EAAQ,WACR,IAAA+I,EAA8C,KAC1C,OAAAC,EAAsBC,KAC5B9B,aAAa4B,GACbA,EAAQ1B,WAAW2B,EAAUC,EAAG,C,CAJtB,G,kLAnBPN,EAASnH,SAAS,OACvB0H,EAAAA,EAAAA,GAAK,IAELA,EAAAA,EAAAA,EAAI,I,SAGF,E,UAI0B,KACV,cAAdJ,GACFI,EAAAA,EAAAA,EAAY,aAEdlJ,GAAM,WACJkJ,EAAAA,EAAAA,EAAY,W,GACX,IAAK,E","sources":["../node_modules/@web3-onboard/core/node_modules/svelte/animate/index.mjs","../node_modules/@web3-onboard/core/src/views/notify/ChainBadge.svelte","../node_modules/@web3-onboard/core/src/views/notify/StatusIconBadge.svelte","../node_modules/@web3-onboard/core/src/views/notify/Timer.svelte","../node_modules/@web3-onboard/core/src/views/notify/NotificationContent.svelte","../node_modules/@web3-onboard/core/src/replacement.ts","../node_modules/@web3-onboard/core/src/views/notify/Notification.svelte","../node_modules/@web3-onboard/core/src/icons/close-circle.ts","../node_modules/@web3-onboard/core/src/views/notify/Index.svelte"],"sourcesContent":["import { cubicOut } from '../easing/index.mjs';\nimport { is_function } from '../internal/index.mjs';\n\nfunction flip(node, { from, to }, params = {}) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n const [ox, oy] = style.transformOrigin.split(' ').map(parseFloat);\n const dx = (from.left + from.width * ox / to.width) - (to.left + ox);\n const dy = (from.top + from.height * oy / to.height) - (to.top + oy);\n const { delay = 0, duration = (d) => Math.sqrt(d) * 120, easing = cubicOut } = params;\n return {\n delay,\n duration: is_function(duration) ? duration(Math.sqrt(dx * dx + dy * dy)) : duration,\n easing,\n css: (t, u) => {\n const x = u * dx;\n const y = u * dy;\n const sx = t + u * from.width / to.width;\n const sy = t + u * from.height / to.height;\n return `transform: ${transform} translate(${x}px, ${y}px) scale(${sx}, ${sy});`;\n }\n };\n}\n\nexport { flip };\n","\n\n\n\n\n {@html icon}\n\n","\n\n\n\n{#if notification.type}\n
\n {#if notification.type === 'pending'}\n
\n {/if}\n\n \n \n {@html defaultNotifyEventStyles[notification.type]['eventIcon']}\n
\n
\n {#if !notification.id.includes('customNotification') && !notification.id.includes('preflight')}\n
\n \n
\n {/if}\n \n{/if}\n","\n\n\n\n
\n {#if startTime}\n -\n \n {timeString(currentTime - startTime)}\n \n ago\n {/if}\n
\n","\n\n\n\n
\n \n {notification.message}\n \n\n {#if notification.id && !notification.id.includes('customNotification') && !notification.id.includes('preflight')}\n \n {#if notification.link}\n \n {shortenAddress(notification.id)}\n \n {:else}\n
\n {shortenAddress(notification.id)}\n
\n {/if}\n \n
\n {/if}\n
\n","import { bigIntToHex } from '@web3-onboard/common';\nimport { configuration } from './configuration.js';\nimport { state } from './store/index.js';\nimport { gweiToWeiHex, networkToChainId, toHexString } from './utils.js';\nconst ACTIONABLE_EVENT_CODES = ['txPool'];\nconst VALID_GAS_NETWORKS = ['main', 'matic-main'];\nconst WALLETS_SUPPORT_REPLACEMENT = [\n 'Ledger',\n 'Trezor',\n 'Keystone',\n 'KeepKey',\n `D'CENT`\n];\nexport const actionableEventCode = (eventCode) => ACTIONABLE_EVENT_CODES.includes(eventCode);\nexport const validGasNetwork = (network) => VALID_GAS_NETWORKS.includes(network);\nexport const walletSupportsReplacement = (wallet) => wallet && WALLETS_SUPPORT_REPLACEMENT.includes(wallet.label);\nexport async function replaceTransaction({ type, wallet, transaction }) {\n const { from, input, value, to, nonce, gas: gasLimit, network } = transaction;\n const chainId = networkToChainId[network];\n const { gasPriceProbability } = state.get().notify.replacement;\n const { gas, apiKey } = configuration;\n if (!gas)\n return;\n // get gas price\n const [gasResult] = await gas.get({\n chains: [networkToChainId[network]],\n endpoint: 'blockPrices',\n apiKey\n });\n const { maxFeePerGas, maxPriorityFeePerGas } = gasResult.blockPrices[0].estimatedPrices.find(({ confidence }) => confidence ===\n (type === 'speedup'\n ? gasPriceProbability === null || gasPriceProbability === void 0 ? void 0 : gasPriceProbability.speedup\n : gasPriceProbability === null || gasPriceProbability === void 0 ? void 0 : gasPriceProbability.cancel)) || {};\n if (!maxFeePerGas || !maxPriorityFeePerGas)\n return;\n const maxFeePerGasWeiHex = gweiToWeiHex(maxFeePerGas);\n const maxPriorityFeePerGasWeiHex = gweiToWeiHex(maxPriorityFeePerGas);\n // Some wallets do not like empty '0x' val\n const dataObj = input === '0x' ? {} : { data: input };\n return wallet.provider.request({\n method: 'eth_sendTransaction',\n params: [\n Object.assign({ type: '0x2', from, to: type === 'cancel' ? from : to, chainId: parseInt(chainId), value: bigIntToHex(BigInt(value)), nonce: toHexString(nonce), gasLimit: toHexString(gasLimit), maxFeePerGas: maxFeePerGasWeiHex, maxPriorityFeePerGas: maxPriorityFeePerGasWeiHex }, dataObj)\n ]\n });\n}\n","\n\n\n\n (hovered = true)}\n on:mouseleave={() => (hovered = false)}\n class:bn-notify-clickable={notification.onClick}\n on:click={handleClick}\n class=\"bn-notify-notification bn-notify-notification-{notification.type}}\"\n>\n
\n \n \n\n {\n removeNotification(notification.id)\n removeTransaction(notification.id)\n updateParentOnRemove()\n }}\n class=\"notify-close-btn notify-close-btn-{device.type} pointer flex\"\n >\n
\n {@html closeIcon}\n
\n
\n \n\n \n \n {#if notification.eventCode === 'txPool'}\n
\n {\n try {\n await replaceTransaction({ type: 'cancel', wallet, transaction })\n } catch (error) {\n // we want a unique id so that the hint notification does not replace the pending notification, so it can't just be the hash\n // but the id is displayed as a hash, so we need to insert the error in the middle\n const id = `${transaction.hash.slice(\n 0,\n 9\n )}:txReplaceError${transaction.hash.slice(-5)}`\n\n addCustomNotification({\n id,\n type: 'hint',\n eventCode: 'txError',\n message: $_('notify.transaction.txReplaceError'),\n key: id,\n autoDismiss: 4000\n })\n }\n }}\n class=\"dropdown-button\">Cancel\n {\n try {\n await replaceTransaction({\n type: 'speedup',\n wallet,\n transaction\n })\n } catch (error) {\n // we want a unique id so that the hint notification does not replace the pending notification, so it can't just be the hash\n // but the id is displayed as a hash, so we need to insert the error in the middle\n const id = `${transaction.hash.slice(\n 0,\n 9\n )}:txReplaceError${transaction.hash.slice(-5)}`\n\n addCustomNotification({\n id,\n type: 'hint',\n eventCode: 'txError',\n message: $_('notify.transaction.txReplaceError'),\n key: id,\n autoDismiss: 4000\n })\n }\n }}\n class=\"dropdown-button\">Speed-up\n
\n {/if}\n \n\n","export default `\n\n \n\n`;\n","\n\n\n\n{#if notifications.length}\n \n {#each notifications as notification (notification.key)}\n \n \n \n {/each}\n \n{/if}\n"],"names":["flip","node","from","to","params","style","getComputedStyle","transform","ox","oy","transformOrigin","split","map","parseFloat","dx","left","width","dy","top","height","delay","duration","d","Math","sqrt","easing","cubicOut","is_function","css","t","u","x","y","sx","sy","ctx","insert","icon","borderColorVar","size","padding","background","type","id","includes","defaultNotifyEventStyles","append","color","chainStyles","unrecognizedChainStyle","notification","startTime","currentTime","Date","now","intervalId","setInterval","onDestroy","clearInterval","time","seconds","floor","formattedSeconds","toLocaleString","$locale","$formatter","link","shortenAddress","attr","message","ACTIONABLE_EVENT_CODES","VALID_GAS_NETWORKS","WALLETS_SUPPORT_REPLACEMENT","actionableEventCode","eventCode","validGasNetwork","network","walletSupportsReplacement","wallet","label","async","replaceTransaction","transaction","input","value","nonce","gas","gasLimit","chainId","networkToChainId","gasPriceProbability","state","get","notify","replacement","apiKey","configuration","gasResult","chains","endpoint","maxFeePerGas","maxPriorityFeePerGas","blockPrices","estimatedPrices","find","confidence","speedup","cancel","maxFeePerGasWeiHex","gweiToWeiHex","maxPriorityFeePerGasWeiHex","dataObj","data","provider","request","method","Object","assign","parseInt","bigIntToHex","BigInt","toHexString","toggle_class","onClick","device","timeoutId","updateParentOnRemove","hovered","transactions$","getValue","hash","$wallets$","accounts","address","toLowerCase","clearTimeout","autoDismiss","setTimeout","removeNotification","removeTransaction","e","error","slice","addCustomNotification","$_","key","length","expanded","stop_animation","elasticOut","li_outro","sin","PI","pow","accountCenter$","select","pipe","startWith","accountCenter","position","sharedContainer","notifications","overflowY","timer","callback","ms","$$invalidate"],"sourceRoot":""}