forked from bombastictranz/bitcoincom-solidity-swap
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
237-c5ea5dd10feeb7ff.js.download
1 lines (1 loc) · 66.3 KB
/
237-c5ea5dd10feeb7ff.js.download
1
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[237],{6980:function(e,t,n){"use strict";n.d(t,{Vw:function(){return Ge},TH:function(){return It},vz:function(){return Rt},Mb:function(){return $t},BO:function(){return vr},em:function(){return Kt},mk:function(){return tn},D8:function(){return sn},rU:function(){return h},sE:function(){return xn},mr:function(){return wn},fU:function(){return P},Ox:function(){return An},gG:function(){return N},ol:function(){return Qn},bM:function(){return Kn},T1:function(){return S},uK:function(){return rr},PU:function(){return ur}});var r=n(5893),o=n(6734),a=n(1120);(0,a.Z)((function(e){return{avatar:{color:e.palette.getContrastText(o.Z[500]),backgroundColor:o.Z[500],marginRight:e.spacing(2)}}}));var i=n(5522),l=n(7294),c=n(9659),u=n(1664),s=n(6010),f=n(1163);function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){d(e,t,n[t])}))}return e}function m(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var b=(0,l.forwardRef)((function(e,t){var n=e.as,o=e.href,a=m(e,["as","href"]);return(0,r.jsx)(u.default,{href:o,as:n,children:(0,r.jsx)("a",p({ref:t},a))})}));function y(e){var t=e.href,n=e.activeClassName,o=void 0===n?"MuiLink-underlineAlways":n,a=e.className,i=e.innerRef,l=e.naked,u=m(e,["href","activeClassName","className","innerRef","naked"]),y=(0,f.useRouter)(),h="string"===typeof t?t:t.pathname,v=(0,s.Z)(a,d({},o,y.pathname===h&&o));return l?(0,r.jsx)(b,p({className:v,ref:i,href:t},u)):(0,r.jsx)(c.Z,p({component:b,className:v,ref:i,href:t},u))}var h=(0,l.forwardRef)((function(e,t){return(0,r.jsx)(y,p({},e,{innerRef:t}))})),v=n(4433),g=n(7265),x=n(8269);function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var O=(0,a.Z)((function(e){return{root:{marginRight:e.spacing(2),color:e.palette.text.secondary}}})),k={"0x249ca82617ec3dfb2589c4c17ab7ec9765350a18":"verse","0xd9c2d319cd7e6177336b0a9c93c21cb48d84fb54":"8567","0xdb85f6685950e285b1e611037bebe5b34e2b7d78":"8370"};function S(e){var t=e.id,n=w(e,["id"]),o=O(),a=(0,l.useMemo)((function(){return k[t.toLowerCase()]?"https://markets.bitcoin.com/images/coins/".concat(k[t.toLowerCase()],".png"):"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/".concat((0,x.toChecksumAddress)(t),"/logo.png")}),[t]);return(0,r.jsx)(g.Z,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){j(e,t,n[t])}))}return e}({classes:{root:o.root},src:a},n))}var Z=(0,a.Z)((function(e){return{root:{},token:{marginRight:0},tokens:{marginRight:e.spacing(2)}}}));function P(e){var t=e.base,n=e.quote,o=Z();return(0,r.jsx)(v.Z,{className:o.tokens,children:[t,n].map((function(e){return(0,r.jsx)(S,{id:e,className:o.token},e)}))})}var D=n(4903),A=n(8920);function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function N(e){var t=e.percent,n=C(e,["percent"]),o=(0,A.Z)(),a=!Number.isNaN(t)&&isFinite(t)?Number(t).toFixed(2):0,i="inherit";return a>0?i=o.palette.positive.main:a<0&&(i=o.palette.negative.main),(0,r.jsxs)(D.Z,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){I(e,t,n[t])}))}return e}({style:{color:i}},n,{children:[a,"%"]}))}var E=n(2318),B=n(6847),T=n(2302),F=n(9613),W=n(7394),L=n(8222),U=n(2134),M=n(5911),G=n(6570);function H(e){var t=e.classes,n=(e.onSelectAllClick,e.order),o=e.orderBy,a=(e.numSelected,e.rowCount,e.onRequestSort),i=e.columns;return(0,r.jsx)(M.Z,{children:(0,r.jsx)(W.Z,{children:i.map((function(e){return(0,r.jsx)(L.Z,{align:e.align||"left",padding:e.disablePadding?"none":"default",sortDirection:o===e.key&&n,children:(0,r.jsxs)(G.Z,{active:o===e.key,direction:o===e.key?n:"asc",onClick:e.disableSort?void 0:(i=e.key,function(e){a(e,i)}),hideSortIcon:e.disableSort,children:[e.label,o===e.key?(0,r.jsx)("span",{className:t.visuallyHidden,children:"desc"===n?"sorted descending":"sorted ascending"}):null]})},e.key);var i}))})})}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function V(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(c){l=!0,o=c}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var $=(0,a.Z)((function(e){return{root:{width:"100%"},paper:{width:"100%",marginBottom:e.spacing(2)},avatar:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},visuallyHidden:{border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1},cellBody:{fontSize:"16px"}}}));function q(e,t,n){return e=Number.isNaN(parseFloat(e[n]))?e[n]:parseFloat(e[n]),(t=Number.isNaN(parseFloat(t[n]))?t[n]:parseFloat(t[n]))<e?-1:t>e?1:0}function Y(e,t){return"desc"===e?function(e,n){return q(e,n,t)}:function(e,n){return-q(e,n,t)}}function Q(e,t){var n=e.map((function(e,t){return[e,t]}));return n.sort((function(e,n){var r=t(e[0],n[0]);return 0!==r?r:e[1]-n[1]})),n.map((function(e){return e[0]}))}function X(e){var t=e.columns,n=e.rows,o=e.title,a=R(e,["columns","rows","title"]),i=$(),c=V(l.useState(a.order||"desc"),2),u=c[0],s=c[1],f=V(l.useState(a.orderBy),2),d=f[0],p=f[1],m=V(l.useState(0),2),b=m[0],y=m[1],h=V(l.useState(25),2),v=h[0],g=h[1];return(0,r.jsxs)("div",{className:i.root,children:[o&&(0,r.jsx)(E.Z,{variant:"h6",component:"h2",gutterBottom:!0,children:o}),(0,r.jsx)(B.Z,{children:(0,r.jsxs)(T.Z,{className:i.table,"aria-label":"".concat(o," table"),children:[(0,r.jsx)(H,{columns:t,classes:i,order:u,orderBy:d,onRequestSort:function(e,t){s(d===t&&"asc"===u?"desc":"asc"),p(t)},rowCount:n.length}),(0,r.jsx)(F.Z,{children:Q(n,Y(u,d)).slice(b*v,b*v+v).map((function(e,n){return(0,r.jsx)(W.Z,{children:t.map((function(t,o){return(0,r.jsx)(L.Z,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){z(e,t,n[t])}))}return e}({classes:{body:i.cellBody}},0===o?{component:"th",scope:"row"}:{},{align:t.align||"left",variant:"body",children:"function"===typeof t.render?t.render(e,n):e[t.key]}),o)}))},e.id)}))})]})}),(0,r.jsx)(U.Z,{rowsPerPageOptions:[{label:"All",value:-1}],component:"div",count:n.length,rowsPerPage:v,page:b,onChangePage:function(e,t){y(t)},onChangeRowsPerPage:function(e){g(parseInt(e.target.value,10)),y(0)}})]})}(0,a.Z)((function(e){return{root:{},small:{width:e.spacing(3),height:e.spacing(3)}}}));var J=n(3457),K=n(5258),ee=n(8358),te=n(7812),ne=n(3450),re=n(8130),oe=n(1587),ae=n(5639),ie=n(304),le=n(2273);function ce(){return ce=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ce.apply(this,arguments)}var ue={ethereum:{path:"",label:"Ethereum",trackingLabel:"ETH"},sbch:{path:"sbch",label:"Smart BCH",trackingLabel:"SBCH"}};function se(e){ce({},e);return(0,r.jsx)(ie.Z,{labelId:"chain-select",value:"ethereum",onChange:function(e){var t=ue[e.target.value];(0,i.HI)("navigation clicked",{"current page":window.location.href,blockchain:"ETH",menu:"analytics header","menu cta":"network ".concat(t.trackingLabel),highlight:""}),window.location="".concat(le.m4,"/").concat(t.path)},children:Object.keys(ue).map((function(e){return(0,r.jsx)(ae.Z,{value:e,children:ue[e].label})}))})}var fe=function(e){var t=function(){return Boolean(e.match(/Android/i))},n=function(){return Boolean(e.match(/iPhone|iPad|iPod/i))},r=function(){return Boolean(e.match(/SSR/i))},o=function(){return Boolean(t()||n()||Boolean(e.match(/Opera Mini/i))||Boolean(e.match(/IEMobile/i)))};return{isMobile:o,isDesktop:function(){return Boolean(!o()&&!r())},isAndroid:t,isIos:n,isSSR:r}},de=function(){(0,l.useEffect)((function(){}),[]);var e="undefined"===typeof navigator?"SSR":navigator.userAgent;return fe(e)},pe=n(6829),me=n(4956);function be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ye=(0,a.Z)((function(e){var t,n;return{root:(t={zIndex:e.zIndex.drawer+1,transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen})},be(t,e.breakpoints.up("sm"),{}),be(t,"borderBottom","light"===e.palette.type?"1px solid rgba(5, 7, 9, 0.12)":"1px solid rgba(255, 255, 255, 0.12)"),t),logo:(n={display:"flex",alignItems:"center",justifyContent:"center",flexGrow:1},be(n,"justifyContent","flex-start"),be(n,e.breakpoints.up("sm"),{justifyContent:"start"}),n),logoCentered:{justifyContent:"center"},menuButton:{marginRight:e.spacing(2)},title:{fontWeight:600,fontSize:18},backHomeContainer:{display:"flex",alignItems:"center",justifyContent:"flex-end"},backHomeTitle:{display:"block",fontWeight:600,fontSize:18,textAlign:"end","@media (max-width: 610px)":{display:"none"}},backHomeLink:{textDecoration:"none",color:me.Q3.verseBlue,fill:me.Q3.verseBlue}}}));function he(e){var t,n=e.className,o=(e.children,e.onToggleSidebar),a=e.open,l=e.mobileOpen,c=ye(),u=(0,A.Z)(),d=(0,f.useRouter)(),p=((0,pe.useReactiveVar)(i.TE),(0,J.Z)(u.breakpoints.up("sm"))),m="/"===d.pathname?"Dashboard":d.pathname.split("/")[1],b=de().isDesktop;return(0,r.jsx)(K.Z,(be(t={position:"fixed",color:"transparent"},"color","inherit"),be(t,"elevation",0),be(t,"className",[c.root,n].join(" ")),be(t,"children",(0,r.jsxs)(ee.Z,{children:[(0,r.jsx)(te.Z,{color:"default","aria-label":"open drawer",edge:"start",onClick:o,className:c.menuButton,children:a&&b()||l&&!p?(0,r.jsx)(re.Z,{}):(0,r.jsx)(oe.Z,{})}),(0,r.jsxs)("div",{className:(0,s.Z)(c.logo,be({},c.logoCentered,!a&&p)),children:[(0,r.jsx)(ne.Z,{xsDown:!0,implementation:"css",children:(0,r.jsxs)(D.Z,{display:"flex",alignItems:"center",justifyContent:"space-around",children:[(0,r.jsx)(te.Z,{edge:!1,onClick:function(){(0,i.HI)("navigation clicked",{"current page":window.location.href,blockchain:"ETH",menu:"analytics header","menu cta":"logo",highlight:""}),d.push("/")},children:(0,r.jsx)(g.Z,{classes:{root:c.root},src:"/logo.png"})}),(0,r.jsx)(E.Z,{classes:{subtitle1:c.title},variant:"subtitle1",color:"textPrimary",noWrap:!0,style:{marginRight:8},children:"Verse Analytics /"})]})}),(0,r.jsx)(E.Z,{classes:{subtitle1:c.title},variant:"subtitle1",color:"textPrimary",noWrap:!0,children:m.charAt(0).toUpperCase()+m.slice(1)})]}),(0,r.jsx)("div",{children:(0,r.jsx)(se,{})})]})),t))}(0,a.Z)((function(e){return{root:{margin:e.spacing(4,0)}}}));var ve=n(2008),ge=n(9825),xe=n(7993),je=n(1183),we=n(7217),Oe=n(6477),ke=n(8386),Se=n(2822),Ze=n(998),Pe=n(6869),De=n(5757),Ae=n(5517);function Ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ce(e,t,n[t])}))}return e}function Ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(c){l=!0,o=c}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Ie(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ie(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Be=(0,a.Z)((function(e){return{divider:{margin:"8px 0px"},externalLink:{marginLeft:"16px",color:"#495b7b",width:"20px"},itemIcon:{minWidth:"44px"},itemText:{fontWeight:600},nested:{paddingLeft:e.spacing(5)},toolbar:e.mixins.toolbar}}));function Te(){var e=Be(),t=((0,A.Z)(),(0,f.useRouter)()),n=(0,l.useState)(!0),o=(n[0],n[1],Ee(l.useState(!1),2)),a=(o[0],o[1],Ee(l.useState(""),2)),c=(a[0],a[1],{blockchain:"ETH",menu:"analytics nav",highlight:""});return(0,r.jsxs)("div",{classes:e.root,children:[(0,r.jsx)("div",{className:e.toolbar,children:(0,r.jsx)(ne.Z,{smUp:!0,implementation:"css",children:(0,r.jsxs)(D.Z,{display:"flex",alignItems:"center",py:.5,children:[(0,r.jsx)(te.Z,{edge:!1,onClick:function(){return t.push("/")},children:(0,r.jsx)(g.Z,{classes:{root:e.root},src:"/logo.png"})}),(0,r.jsx)(E.Z,{variant:"subtitle1",color:"textPrimary",noWrap:!0,children:"Verse Analytics"})]})})}),(0,r.jsxs)(Se.Z,{className:e.list,direction:"horizontal",children:[(0,r.jsxs)(Ze.Z,{button:!0,selected:"/"===t.pathname,onClick:function(){(0,i.HI)("navigation clicked",Ne({},c,{"current page":window.location.href,"menu cta":"dashboard"})),t.push("/")},children:[(0,r.jsx)(Pe.Z,{className:e.itemIcon,children:(0,r.jsx)(ve.Z,{})}),(0,r.jsx)(De.Z,{primary:"Dashboard"})]},"/"),(0,r.jsxs)(Ze.Z,{button:!0,selected:"/pairs"===t.pathname,onClick:function(){(0,i.HI)("navigation clicked",Ne({},c,{"current page":window.location.href,"menu cta":"pairs"})),t.push("/pairs")},children:[(0,r.jsx)(Pe.Z,{className:e.itemIcon,children:(0,r.jsx)(ge.Z,{})}),(0,r.jsx)(De.Z,{classes:{primary:e.itemText},primary:"Pairs"})]},"/pairs"),(0,r.jsxs)(Ze.Z,{button:!0,selected:t.pathname.includes("tokens"),onClick:function(){(0,i.HI)("navigation clicked",Ne({},c,{"current page":window.location.href,"menu cta":"tokens"})),t.push("/tokens")},children:[(0,r.jsx)(Pe.Z,{className:e.itemIcon,children:(0,r.jsx)(xe.Z,{})}),(0,r.jsx)(De.Z,{classes:{primary:e.itemText},primary:"Tokens"})]},"/tokens"),(0,r.jsxs)(Ze.Z,{button:!0,onClick:function(){(0,i.HI)("navigation clicked",Ne({},c,{"current page":window.location.href,"menu cta":"burns"})),window.open("https://dune.com/jtk/verse-burns")},children:[(0,r.jsx)(Pe.Z,{className:e.itemIcon,children:(0,r.jsx)(je.Z,{})}),(0,r.jsx)(De.Z,{classes:{primary:e.itemText},primary:"Verse Burns"}),(0,r.jsx)(Pe.Z,{children:(0,r.jsx)(we.Z,{className:e.externalLink})})]},"/verse-burns"),(0,r.jsxs)(Ze.Z,{button:!0,onClick:function(){(0,i.HI)("navigation clicked",Ne({},c,{"current page":window.location.href,"menu cta":"staking"})),window.open("https://dune.com/jtk/verse-staking")},children:[(0,r.jsx)(Pe.Z,{className:e.itemIcon,children:(0,r.jsx)(Oe.Z,{})}),(0,r.jsx)(De.Z,{classes:{primary:e.itemText},primary:"Verse Staking"}),(0,r.jsx)(Pe.Z,{children:(0,r.jsx)(we.Z,{className:e.externalLink})})]},"/verse-staking"),(0,r.jsx)(Ae.Z,{className:e.divider}),(0,r.jsxs)(Ze.Z,{button:!0,onClick:function(){(0,i.HI)("navigation clicked",Ne({},c,{"current page":window.location.href,"menu cta":"dex"})),window.location="https://verse.bitcoin.com/"},children:[(0,r.jsx)(Pe.Z,{className:e.itemIcon,children:(0,r.jsx)(ke.Z,{})}),(0,r.jsx)(De.Z,{classes:{primary:e.itemText},primary:"Verse DEX"})]},"/dex")]})]})}var Fe=n(8008),We=n(3832);function Le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ue=240,Me=(0,a.Z)((function(e){return{root:{display:"flex",background:me.XT.backgrounds.bgBlackWithTopLeftGlow},appBar:{background:me.XT.backgrounds.bgBlackWithTopLeftGlow},hide:{display:"none"},drawer:Le({},e.breakpoints.up("sm"),{width:Ue,flexShrink:0}),drawerPaper:{width:Ue,background:me.XT.backgrounds.bgBlackWithTopLeftGlow},toolbar:e.mixins.toolbar,drawerPaperMobile:{width:Ue,border:0,background:me.XT.backgrounds.bgBlackWithTopLeftGlow},content:{padding:e.spacing(3,0),flexGrow:1,width:"100%",marginLeft:-240},contentShift:{marginLeft:0,width:"calc(100% - ".concat(Ue,"px)")},mobileBanner:Le({},e.breakpoints.up("sm"),{display:"none"})}}));var Ge=function(e){var t=e.window,n=e.children,o=Me(),a=(0,A.Z)(),i=(0,l.useState)(!1),c=i[0],u=i[1],f=(0,l.useState)(!0),d=f[0],p=f[1],m=(0,J.Z)(a.breakpoints.up("sm")),b=void 0!==t?function(){return t().document.body}:void 0,y=function(){m?p(!d):u(!c)};return(0,r.jsxs)("div",{className:o.root,children:[(0,r.jsx)(he,{className:o.appBar,onToggleSidebar:y,open:d,mobileOpen:c}),(0,r.jsxs)("nav",{className:o.drawer,"aria-label":"navigation",children:[(0,r.jsx)(ne.Z,{smUp:!0,implementation:"js",children:(0,r.jsx)(Fe.ZP,{container:b,variant:"temporary",anchor:"left",open:c,onClose:y,classes:{paper:o.drawerPaperMobile},ModalProps:{keepMounted:!0},children:(0,r.jsx)(Te,{})})}),(0,r.jsx)(ne.Z,{xsDown:!0,implementation:"css",children:(0,r.jsx)(Fe.ZP,{className:o.drawer,variant:"persistent",anchor:"left",open:d,transitionDuration:0,classes:{paper:o.drawerPaper},children:(0,r.jsx)(Te,{})})})]}),(0,r.jsxs)("main",{className:(0,s.Z)(o.content,Le({},o.contentShift,d||!m)),children:[(0,r.jsx)("div",{className:o.toolbar}),(0,r.jsx)(We.Z,{maxWidth:"xl",children:n})]})]})},He=n(4569),_e=n(9223),ze=n(1788),Re=n(3510),Ve=n(4961),$e=n(8334),qe=n(907),Ye=n(3350),Qe=n(7357),Xe=n(7123),Je=n(9599),Ke=n(5165),et=n(7459),tt=n(1217),nt=n(1346);function rt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ot(e){return function(e){if(Array.isArray(e))return rt(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return rt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(0,Xe.Z1)("%Y-%m-%d"),(0,Xe.i$)("%b %d");var at=function(e){return new Date(e.time)},it=function(e){return e.value},lt=((0,tt.Z)({domain:["xSushi Age","xSushi Age Destroyed"],range:[$e.Z[500],qe.Z[500]]}),(0,nt.Z)((function(e){var t,n,o,a,i=e.parentWidth,l=e.parentHeight,c=e.margin,u=e.data,s=u.reduce((function(e,t){return e.concat(t)}),[]),f=i-c.left-c.right,d=l-c.top-c.bottom,p=(0,Ye.Z)({range:[0,f],domain:[(t=Math).min.apply(t,ot(s.map(at))),(n=Math).max.apply(n,ot(s.map(at)))]}),m=(0,Qe.Z)({range:[d,0],domain:[(o=Math).min.apply(o,ot(s.map((function(e){return it(e)})))),(a=Math).max.apply(a,ot(s.map((function(e){return it(e)}))))],nice:!0});return(0,r.jsx)("div",{style:{position:"relative"},children:(0,r.jsxs)("svg",{width:i,height:l,children:[(0,r.jsx)(Re.Z,{id:"gradient"}),(0,r.jsx)(Ve.Z,{id:"positive",from:"#43e97b",to:"#43e97b",rotate:"0"}),(0,r.jsx)(Ve.Z,{id:"negative",from:"#ff0844",to:"#ffb199",rotate:"0"}),(0,r.jsxs)(Je.Z,{left:c.left,right:c.right,children:[i>8&&u.map((function(e,t){return(0,r.jsx)(Je.Z,{top:c.top,children:(0,r.jsx)(He.Z,{data:e,x:function(e){return p(at(e))||0},y:function(e){return m(it(e))||0},yScale:m,strokeWidth:2,stroke:"url(#".concat(t%2===0?"positive":"negative",")"),fill:"url(#".concat(t%2===0?"positive":"negative",")"),curve:Ke.Z})},"chart-".concat(t))})),(0,r.jsx)(_e.Z,{top:d+c.top,scale:p,stroke:"currentColor",tickStroke:"currentColor",tickFormat:function(e,t){return i>800||t%2===0?(0,Xe.i$)("%b %d")(e):""},tickLabelProps:function(){return{fill:"currentColor",fontSize:11,textAnchor:"middle"}}}),(0,r.jsx)(ze.Z,{scale:m,top:c.top,tickFormat:et.Z,stroke:"currentColor",tickStroke:"currentColor",tickLabelProps:function(){return{fill:"currentColor",fontSize:11,textAnchor:"end",verticalAnchor:"middle"}}})]})]})})})),n(8649)),ct=n(3382),ut=n(5068),st=n(5107),ft=n(282);var dt=(0,Xe.i$)("%b %d, '%y"),pt=(0,a.Z)((function(e){return{title:{fontSize:"14px",fontWeight:600},value:{fontSize:"24px",fontWeight:600},date:{fontSize:"16px",fontWeight:600},filter:(t={display:"flex",flexDirection:"column"},n=e.breakpoints.up("md"),r={flexDirection:"row"},n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t),button:{fontSize:"14px","&:hover":{color:me.Q3.white,background:"transparent"}}};var t,n,r}));function mt(){var e=(0,l.useState)("1W"),t=e[0],n=e[1];return[t,"1W"===t?(0,i.un)():"1M"===t?(0,i.vS)():62802180,n]}function bt(e){var t=e.overlay,n=e.selectedTimespan,o=e.onTimespanChange,a=function(e){o(e.currentTarget.value)},i=t.title,l=t.value,c=t.date,u=(0,A.Z)(),s=pt();(0,J.Z)(u.breakpoints.up("sm"));return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{style:{position:"absolute",top:24,left:24},children:[(0,r.jsx)(E.Z,{classes:{subtitle2:s.title},variant:"subtitle2",color:"textSecondary",children:i}),(0,r.jsx)(E.Z,{classes:{h5:s.value},variant:"h5",color:"textPrimary",children:l.includes("NaN")?"$0.00":l}),(0,r.jsx)(E.Z,{classes:{subtitle1:s.date},variant:"subtitle1",color:"textSecondary",children:c?dt(1e3*c):""})]}),(0,r.jsx)("div",{style:{position:"absolute",top:20,right:12},children:(0,r.jsxs)("div",{className:s.filter,children:[(0,r.jsx)(ft.Z,{classes:{root:s.button},type:"button",value:"1W","aria-label":"1 week timespan",variant:"text",size:"small",color:"1W"===n?"primary":"secondary",onClick:a,children:"1W"}),(0,r.jsx)(ft.Z,{className:s.button,type:"button",value:"1M","aria-label":"1 month timespan",variant:"text",size:"small",color:"1M"===n?"primary":"secondary",onClick:a,children:"1M"}),(0,r.jsx)(ft.Z,{className:s.button,type:"button",value:"ALL","aria-label":"ALL timespan",variant:"text",size:"small",color:"ALL"===n?"primary":"secondary",onClick:a,children:"ALL"})]})})]})}var yt=n(9173),ht=n(2594);var vt=function(e){var t=e.id;return(0,r.jsx)(Ve.Z,{id:t,from:"#0EBEF0",fromOffset:"0%",to:"#0085FF",toOffset:"100%"})};function gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){xt(e,t,n[t])}))}return e}function wt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(c){l=!0,o=c}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||kt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ot(e){return function(e){if(Array.isArray(e))return gt(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||kt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kt(e,t){if(e){if("string"===typeof e)return gt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gt(e,t):void 0}}var St=jt({},ct.j,{background:"#fff",border:"1px solid white",color:"inherit",zIndex:1702}),Zt=function(e){return new Date(null===e||void 0===e?void 0:e.date)},Pt=(0,yt.Z)((function(e){return new Date(null===e||void 0===e?void 0:e.date)})).left,Dt=function(e){return null===e||void 0===e?void 0:e.value},At=(0,Xe.i$)("%b %d, '%y");var It=(0,ut.Z)((function(e){var t,n,a,c,u,s,f=e.data,d=e.tooltipDisabled,p=void 0!==d&&d,m=e.overlayEnabled,b=void 0!==m&&m,y=e.priceFormat,h=void 0!==y&&y,v=e.title,g=void 0===v?"":v,x=e.width,j=e.height,w=e.showTooltip,O=e.hideTooltip,k=e.tooltipData,S=e.tooltipTop,Z=void 0===S?0:S,P=e.tooltipLeft,D=void 0===P?0:P,A=(e.onTimespanChange,e.margin),I=void 0===A?{top:0,bottom:0,left:0,right:0}:A,C=wt(mt(),3),N=C[0],E=C[1],B=C[2];f=f.filter((function(e){return E<=e.date}));var T=(0,l.useState)({title:g,value:(h?i.T4:i.xG)(null===(u=f[f.length-1])||void 0===u?void 0:u.value),date:null===(s=f[f.length-1])||void 0===s?void 0:s.date}),F=T[0],W=T[1],L=x-I.left-I.right,U=j-I.top-I.bottom,M=(0,l.useMemo)((function(){return(0,st.Z)({range:[0,L],domain:[(t=Math).min.apply(t,Ot(f.map(Zt))),(n=Math).max.apply(n,Ot(f.map(Zt)))]})}),[L,f]),G=(0,l.useMemo)((function(){return(0,Qe.Z)({range:[U,0],domain:[(a=Math).min.apply(a,Ot(f.map((function(e){return Dt(e)})))),(c=Math).max.apply(c,Ot(f.map((function(e){return Dt(e)}))))],nice:!0})}),[U,f]),H=(0,l.useCallback)((function(e){var t=((0,ht.Z)(e)||{x:0}).x,n=M.invert(t),r=Pt(f,n,1),o=f[r-1],a=f[r],l=o;a&&Zt(a)&&(l=n.valueOf()-Zt(o).valueOf()>Zt(a).valueOf()-n.valueOf()?a:o),W(jt({},F,{value:(h?i.T4:i.xG)(null===l||void 0===l?void 0:l.value),date:null===l||void 0===l?void 0:l.date})),w({tooltipData:l,tooltipLeft:t,tooltipTop:G(Dt(l))})}),[w,G,M]);return x<10?null:(0,r.jsxs)("div",{style:{position:"relative"},children:[b&&(0,r.jsx)(bt,{overlay:F,selectedTimespan:N,onTimespanChange:B}),(0,r.jsxs)("svg",{width:x,height:j,children:[(0,r.jsx)(vt,{id:"verse-area-chart"}),(0,r.jsx)("rect",{x:0,y:0,width:x,height:j,fill:"transparent"}),(0,r.jsx)(Je.Z,{top:I.top,left:I.left,children:(0,r.jsx)(He.Z,{data:f,x:function(e){return M(Zt(e))},y:function(e){return G(Dt(e))},yScale:G,fill:"url(#verse-area-chart)"})}),(0,r.jsx)(lt.Z,{x:0,y:0,width:x,height:j,fill:"transparent",rx:14,onTouchStart:H,onTouchMove:H,onMouseMove:H,onMouseLeave:function(){var e,t;O(),W(jt({},F,{value:(h?i.T4:i.xG)(null===(e=f[f.length-1])||void 0===e?void 0:e.value),date:null===(t=f[f.length-1])||void 0===t?void 0:t.date}))}}),k&&(0,r.jsxs)(Je.Z,{top:I.top,left:I.left,children:[(0,r.jsx)("circle",{cx:D,cy:Z+1,r:4,fill:"black",fillOpacity:.1,stroke:"black",strokeOpacity:.1,strokeWidth:2,pointerEvents:"none"}),(0,r.jsx)("circle",{cx:D,cy:Z,r:4,fill:o.Z[400],stroke:"white",strokeWidth:2,pointerEvents:"none"})]})]}),!p&&k&&(0,r.jsxs)("div",{children:[(0,r.jsx)(ct.Z,{top:I.top+Z-12,left:D+12,style:St,children:"$".concat((0,et.Z)(Dt(k)))}),(0,r.jsx)(ct.Z,{top:U+I.top-14,left:D,style:jt({},ct.j,{minWidth:90,textAlign:"center",transform:"translateX(-50%)"}),children:At(Zt(k))})]})]})})),Ct=n(7923),Nt=n(606),Et=n(3539);function Bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ft(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Tt(e,t,n[t])}))}return e}function Wt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(c){l=!0,o=c}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||Ut(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lt(e){return function(e){if(Array.isArray(e))return Bt(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ut(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ut(e,t){if(e){if("string"===typeof e)return Bt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bt(e,t):void 0}}var Mt,Gt=function(e){return new Date(e.date)},Ht=function(e){return Number(e.value)},_t=(0,Xe.i$)("%b %d, '%y"),zt=Ft({},ct.j,{minWidth:60,background:"white",border:"1px solid white",color:"inherit",zIndex:1702});function Rt(e){var t,n,a,c=e.width,u=e.height,s=e.margin,f=void 0===s?{top:0,right:0,bottom:0,left:0}:s,d=e.data,p=e.events,m=void 0!==p&&p,b=e.tooltipDisabled,y=void 0!==b&&b,h=e.overlayEnabled,v=void 0!==h&&h,g=e.title,x=void 0===g?"":g,j=(0,Ct.Z)(),w=(j.tooltipOpen,j.tooltipTop),O=j.tooltipLeft,k=j.tooltipData,S=j.hideTooltip,Z=j.showTooltip,P=(0,Nt.Z)(),D=P.containerRef,A=(P.TooltipInPortal,Wt(mt(),3)),I=A[0],C=A[1],N=A[2];d=d.filter((function(e){return C<=e.date}));var E=(0,l.useState)({title:x,value:(0,i.xG)(null===(n=d[d.length-1])||void 0===n?void 0:n.value),date:null===(a=d[d.length-1])||void 0===a?void 0:a.date}),B=E[0],T=E[1],F=c-f.left-f.right,W=u-f.top-f.bottom,L=(0,l.useMemo)((function(){return(0,Et.Z)({range:[0,F],domain:d.map(Gt)})}),[F,d]),U=(0,l.useMemo)((function(){return(0,Qe.Z)({range:[W,0],domain:[0,(t=Math).max.apply(t,Lt(d.map((function(e){return Ht(e)}))))],nice:!0})}),[W,d]);return c<10?null:(0,r.jsxs)("div",{style:{position:"relative"},children:[v&&(0,r.jsx)(bt,{overlay:B,selectedTimespan:I,onTimespanChange:N}),(0,r.jsxs)("svg",{ref:D,width:c,height:u,children:[(0,r.jsx)(vt,{id:"verse-bar-chart"}),(0,r.jsx)("rect",{width:c,height:u,fill:"transparent"}),(0,r.jsx)(Je.Z,{top:f.top,children:d.map((function(e){var t,n=Gt(e),o=L.bandwidth(),a=W-(null!==(t=U(Ht(e)))&&void 0!==t?t:0),l=L(n),c=W-a;return(0,r.jsx)(lt.Z,{x:l,y:c,width:o,height:a,fill:"url(#verse-bar-chart)",onClick:function(){m&&alert("clicked: ".concat(JSON.stringify(Object.values(e))))},onMouseLeave:function(){Mt=window.setTimeout((function(){S(),T(Ft({},B,{value:(0,i.xG)(d[d.length-1].value),date:d[d.length-1].date}))}),300)},onMouseMove:function(t){Mt&&clearTimeout(Mt);t.clientY,f.top;var n=l+o/2;T(Ft({},B,{value:(0,i.xG)(e.value),date:e.date})),Z({tooltipData:e,tooltipTop:U(Ht(e)),tooltipLeft:n})}},"bar-".concat(n))}))}),k&&(0,r.jsxs)(Je.Z,{top:f.top,left:f.left,children:[(0,r.jsx)("circle",{cx:O,cy:w+1,r:4,fill:"black",fillOpacity:.1,stroke:"black",strokeOpacity:.1,strokeWidth:2,pointerEvents:"none"}),(0,r.jsx)("circle",{cx:O,cy:w,r:4,fill:o.Z[400],stroke:"white",strokeWidth:2,pointerEvents:"none"})]})]}),!y&&k&&(0,r.jsxs)("div",{children:[(0,r.jsx)(ct.Z,{top:f.top+w-12,left:O+12,style:zt,children:"$".concat((0,et.Z)(Ht(k)))}),(0,r.jsx)(ct.Z,{top:W+f.top-14,left:O,style:Ft({},ct.j,{minWidth:90,textAlign:"center",transform:"translateX(-50%)"}),children:_t(Gt(k))})]})]})}function Vt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $t(e){var t=e.title,n=e.headCells,o=e.bodyCells;e.style;return(0,r.jsxs)("div",{children:[t&&(0,r.jsx)(E.Z,{variant:"h6",component:"h2",gutterBottom:!0,children:t}),(0,r.jsx)(B.Z,{variant:"outlined",children:(0,r.jsxs)(T.Z,{"aria-label":"information",children:[(0,r.jsx)(M.Z,{children:(0,r.jsx)(W.Z,{children:n.map((function(e){return(0,r.jsx)(L.Z,{align:e.align||"left",style:{maxWidth:e.maxWidth||"initial"},children:e.label},e.key)}))},Date.now())}),(0,r.jsx)(F.Z,{children:(0,r.jsx)(W.Z,{children:o.map((function(e,t){return(0,r.jsx)(L.Z,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Vt(e,t,n[t])}))}return e}({},0===t?{component:"th",scope:"row"}:{},{align:n[t].align||"left",style:{maxWidth:n[t].maxWidth||"initial"},children:e}),t)}))},Date.now())})]})})]})}function qt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){qt(e,t,n[t])}))}return e}Yt({},ct.j,{border:"1px solid initial",color:"initial",zIndex:1702});var Qt="brush_pattern";"url(#".concat(Qt,")");var Xt="brush_pattern";o.Z[400],"url(#".concat(Xt,")"),(0,Xe.Z1)("%Y-%m-%d"),(0,Xe.i$)("%b %d");var Jt=n(8936);function Kt(){var e=(0,r.jsx)(h,{href:"https://verse.bitcoin.com/pools/",style:{textDecoration:"none",color:"rgb(255, 213, 153)",fontWeight:600},children:"verse.bitcoin.com/pools/"});return(0,r.jsx)("div",{style:{margin:"20px 0"},children:(0,r.jsxs)(Jt.Z,{severity:"warning",children:["The values on this page may be delayed. Please refer to"," ",e," ","for the latest information."]})})}var en=(0,a.Z)((function(e){return{root:{},gained:{color:e.palette.positive.main},bodyText:{fontWeight:600,fontSize:"16px"}}}));function tn(e){var t=e.pairs,n=en(),o=t;return(0,r.jsx)("div",{className:n.root,children:(0,r.jsx)(X,{title:"Gainers (24h)",orderBy:"feesUSDGained",order:"desc",columns:[{key:"name",label:"Name",render:function(e,t){return(0,r.jsxs)(D.Z,{display:"flex",alignItems:"center",children:[(0,r.jsx)(P,{base:e.token0.id,quote:e.token1.id}),(0,r.jsx)(h,{href:"/pairs/".concat(e.id),className:n.bodyText,noWrap:!0,children:"".concat(e.token0.symbol.replace("WBCH","BCH"),"-").concat(e.token1.symbol.replace("WBCH","BCH"))})]})}},{key:"feesUSDGained",label:"Fees USD Gained",align:"right",render:function(e,t){return(0,r.jsxs)("div",{className:n.gained,children:["+",(0,i.xG)(e.feesUSDGained-e.feesUSDGainedYesterday)]})}},{key:"volumeUSDGained",label:"Volume USD Gained",align:"right",render:function(e,t){return(0,r.jsxs)("div",{className:n.gained,children:["+",(0,i.xG)(e.volumeUSDGained)]})}},{key:"reserveUSDGained",label:"Liquidity USD Gained",align:"right",render:function(e,t){return(0,r.jsxs)("div",{className:n.gained,children:["+",(0,i.xG)(e.reserveUSDGained)]})}}],rows:o})})}var nn=n(8463),rn=n(9912),on=n(9214);function an(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ln(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var cn=(0,on.Z)((function(e){return{root:{height:"100%"},cardContent:{"&:last-child":{paddingBottom:16}},title:{fontWeight:500},content:{display:"flex",alignItems:"center",justifyContent:"flex-start"}}})),un={none:function(e){return e},percent:function(e){return Number.isNaN(e)?"0%":"".concat(e.toFixed(2),"%")},integer:function(e){return Number.isNaN(e)?0:parseInt(e)},currency:function(e){return Number.isNaN(e)?"$0":(0,i.xG)(e)}};var sn=function(e){var t=e.className,n=e.title,o=void 0===n?"":n,a=e.difference,i=void 0===a?"":a,l=e.value,c=void 0===l?"":l,u=(e.valueUSD,e.format),f=void 0===u?"none":u,d=ln(e,["className","title","difference","value","valueUSD","format"]),p=cn();return(0,r.jsx)(nn.Z,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){an(e,t,n[t])}))}return e}({},d,{className:(0,s.Z)(p.root,t),variant:"outlined",children:(0,r.jsxs)(rn.Z,{className:p.cardContent,children:[(0,r.jsx)(E.Z,{variant:"subtitle2",color:"textSecondary",gutterBottom:!0,noWrap:!0,className:p.title,children:o}),(0,r.jsxs)("div",{className:p.content,children:[(0,r.jsx)(E.Z,{variant:"h6",color:"textPrimary",noWrap:!0,children:un[f](c)}),(0,r.jsx)(E.Z,{variant:"subtitle2",color:"textSecondary",noWrap:!0,children:i&&!Number.isNaN(i)?(0,r.jsx)(N,{marginLeft:1,percent:i}):null})]})]})}))},fn=n(5988),dn=n.n(fn),pn=n(4645),mn=n(775);function bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yn(e){return function(e){if(Array.isArray(e))return bn(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return bn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(0,Xe.Z1)("%Y-%m-%d"),(0,Xe.i$)("%b %d");var hn=function(e){return new Date(e.time)},vn=function(e){return e.value};(0,tt.Z)({domain:["xSushi Age","xSushi Age Destroyed"],range:[$e.Z[500],qe.Z[500]]}),(0,nt.Z)((function(e){var t,n,o,a,i,l,c=e.parentWidth,u=e.parentHeight,s=e.lines,f=e.strokes,d=e.margin,p=e.title,m=s.reduce((function(e,t){return e.concat(t)}),[]),b=c-d.left-d.right,y=u-d.top-d.bottom,h=(0,Ye.Z)({range:[0,b],domain:[(t=Math).min.apply(t,yn(m.map(hn))),(n=Math).max.apply(n,yn(m.map(hn)))]}),v=(0,Qe.Z)({range:[y,0],domain:[(o=Math).min.apply(o,yn(m.map((function(e){return vn(e)})))),(a=Math).max.apply(a,yn(m.map((function(e){return vn(e)}))))],nice:!0});return(0,r.jsxs)("div",{style:{position:"relative"},className:"jsx-38fe480fbcee7d93",children:[(0,r.jsxs)("svg",{width:c,height:u,className:"jsx-38fe480fbcee7d93",children:[(0,r.jsxs)(Je.Z,{left:d.left,right:d.right,children:[c>8&&s.map((function(e,t){return(0,r.jsx)(Je.Z,{top:d.top,children:(0,r.jsx)(pn.Z,{data:e,x:function(e){return null!==(i=h(hn(e)))&&void 0!==i?i:0},y:function(e){return null!==(l=v(vn(e)))&&void 0!==l?l:0},stroke:f[t],strokeWidth:2,shapeRendering:"geometricPrecision"})},"lines-".concat(t))})),(0,r.jsx)(_e.Z,{top:y+d.top,scale:h,stroke:"currentColor",tickStroke:"currentColor",tickFormat:function(e,t){return c>800||t%2===0?(0,Xe.i$)("%b %d")(e):""},tickLabelProps:function(){return{fill:"currentColor",fontSize:11,textAnchor:"middle"}}}),(0,r.jsx)(ze.Z,{scale:v,top:d.top,tickFormat:et.Z,stroke:"currentColor",tickStroke:"currentColor",tickLabelProps:function(){return{fill:"currentColor",fontSize:11,textAnchor:"end",verticalAnchor:"middle"}}})]}),p&&(0,r.jsx)(mn.Z,{y:d.top/2,x:c/2,width:c,verticalAnchor:"start",textAnchor:"middle",fill:"currentColor",children:p})]}),(0,r.jsx)(dn(),{id:"38fe480fbcee7d93",children:".legends.jsx-38fe480fbcee7d93{font-family:arial;\nfont-weight:900;\nbackground-color:black;\nborder-radius:14px;\npadding:24px 24px 24px 32px;\noverflow-y:auto;\n-webkit-box-flex:1;\n-webkit-flex-grow:1;\n-ms-flex-positive:1;\nflex-grow:1}\n.chart.jsx-38fe480fbcee7d93 h2.jsx-38fe480fbcee7d93{margin-left:10px}"})]})})),(0,a.Z)((function(e){return{root:{width:"100%",margin:e.spacing(3,0)},avatar:{color:e.palette.getContrastText(o.Z[500]),backgroundColor:o.Z[500],marginRight:e.spacing(2)}}}));var gn=(0,a.Z)((function(e){return{root:{},lost:{fontSize:"16px",fontWeight:600,color:e.palette.negative.main}}}));function xn(e){var t=e.pairs,n=gn(),o=t;return(0,r.jsx)("div",{className:n.root,children:(0,r.jsx)(X,{title:"Losers (24h)",orderBy:"feesUSDLost",order:"desc",columns:[{key:"name",label:"Name",render:function(e,t){return(0,r.jsxs)(D.Z,{display:"flex",alignItems:"center",children:[(0,r.jsx)(P,{base:e.token0.id,quote:e.token1.id}),(0,r.jsx)(h,{href:"/pairs/".concat(e.id),noWrap:!0,children:"".concat(e.token0.symbol.replace("WBCH","BCH"),"-").concat(e.token1.symbol.replace("WBCH","BCH"))})]})}},{key:"feesUSDLost",label:"Fees USD Lost",align:"right",render:function(e){return(0,r.jsx)(E.Z,{className:n.lost,noWrap:!0,children:(0,i.xG)(e.feesUSDLost-e.feesUSDLostYesterday)})}},{key:"volumeUSDLost",label:"Volume USD Lost",align:"right",render:function(e){return(0,r.jsxs)(E.Z,{className:n.lost,noWrap:!0,children:["-",(0,i.xG)(e.volumeUSDLost)]})}},{key:"reserveUSDLost",label:"Liquidity USD Lost",align:"right",render:function(e){return(0,r.jsx)(E.Z,{className:n.lost,noWrap:!0,children:(0,i.xG)(e.reserveUSDLost)})}}],rows:o})})}var jn=(0,a.Z)((function(e){return{root:{marginTop:e.spacing(1),marginBottom:e.spacing(4)}}}));function wn(e){var t=e.children,n=jn();return(0,r.jsx)("div",{className:n.root,children:t})}function On(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){kn(e,t,n[t])}))}return e}function Zn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Pn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(c){l=!0,o=c}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return On(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return On(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Dn=(0,a.Z)((function(e){return{bodyText:{fontWeight:600,fontSize:"16px"}}}));function An(e){var t=e.pairs,n=e.title,o=Zn(e,["pairs","title"]),a=Dn(),l=t.filter((function(e){var t=!le.sE.includes(e.id),n=parseFloat(e.reserveUSD)>100;return t&&n})).map((function(e){var t,n,r,o,a=Pn("0"===(null===e||void 0===e?void 0:e.volumeUSD)?[null===e||void 0===e?void 0:e.untrackedVolumeUSD,null===e||void 0===e||null===(t=e.oneDay)||void 0===t?void 0:t.untrackedVolumeUSD,null===e||void 0===e||null===(n=e.sevenDay)||void 0===n?void 0:n.untrackedVolumeUSD]:[null===e||void 0===e?void 0:e.volumeUSD,null===e||void 0===e||null===(r=e.oneDay)||void 0===r?void 0:r.volumeUSD,null===e||void 0===e||null===(o=e.sevenDay)||void 0===o?void 0:o.volumeUSD],3),i=a[0],l=a[1],c=a[2],u="undefined"===l?i:i-l,s=.003*u,f=.003*u*365*100/e.reserveUSD,d="undefined"===c?i:i-c;return Sn({},e,{displayName:"".concat(e.token0.symbol.replace("WBCH","BCH"),"-").concat(e.token1.symbol.replace("WBCH","BCH")),oneDayVolume:Number.isNaN(u)?0:u,sevenDayVolume:Number.isNaN(d)?0:d,oneDayFees:Number.isNaN(s)?0:s,sevenDayFees:Number.isNaN(d)?0:.003*d,oneYearFees:f})}));return(0,r.jsx)("div",{className:a.root,children:(0,r.jsx)(X,Sn({orderBy:"reserveUSD",title:n},o,{columns:[{key:"displayName",numeric:!1,render:function(e,t){return(0,r.jsxs)(D.Z,{display:"flex",alignItems:"center",children:[(0,r.jsx)(P,{base:e.token0.id,quote:e.token1.id}),(0,r.jsx)(h,{href:"/pairs/".concat(e.id),noWrap:!0,children:e.displayName})]})},label:"Name"},{key:"reserveUSD",render:function(e){return(0,i.xG)(e.reserveUSD)},align:"right",label:"Liquidity"},{key:"oneDayVolume",render:function(e){return(0,i.xG)(e.oneDayVolume)},align:"right",label:"Volume (24h)"},{key:"sevenDayVolume",render:function(e){return(0,i.xG)(e.sevenDayVolume)},align:"right",label:"Volume (7d)"},{key:"oneDayFees",render:function(e){return(0,i.xG)(e.oneDayFees)},align:"right",label:"Fees (24h)"},{key:"sevenDayFees",render:function(e){return(0,i.xG)(e.sevenDayFees)},align:"right",label:"Fees (7d)"},{key:"oneYearFees",render:function(e){return(0,r.jsx)(N,{percent:e.oneYearFees})},align:"right",label:"APY"}],rows:l}))})}(0,a.Z)((function(e){return{root:{},small:{width:e.spacing(3),height:e.spacing(3)}}}));var In=n(5697),Cn=n.n(In),Nn=n(2037),En=n(1027),Bn=n(6837),Tn=n(2848),Fn=n(1447),Wn=n.n(Fn),Ln=n(3370),Un=n.n(Ln);function Mn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Gn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Gn(e,t,n[t])}))}return e}function _n(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function zn(e){return function(e){if(Array.isArray(e))return Mn(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Mn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rn(e){var t=e.data,n=e.index,r=e.style;return l.cloneElement(t[n],{style:Hn({},r,{top:r.top+8})})}var Vn=l.createContext({}),$n=l.forwardRef((function(e,t){var n=l.useContext(Vn);return(0,r.jsx)("div",Hn({ref:t},e,n))})),qn=l.forwardRef((function(e,t){var n=e.children,o=_n(e,["children"]),a=l.Children.toArray(n),i=a.length,c=function(e){return l.isValidElement(e)&&e.type===Bn.Z?60:55};return(0,r.jsx)("div",{ref:t,children:(0,r.jsx)(Vn.Provider,{value:o,children:(0,r.jsx)(Tn.t7,{itemData:a,height:(i>8?440:a.map(c).reduce((function(e,t){return e+t}),0))+16,width:"100%",outerElementType:$n,innerElementType:"ul",itemSize:55,overscanCount:5,itemCount:i,children:Rn})})})}));qn.propTypes={children:Cn().node};var Yn=function(e){return[(0,r.jsx)(Bn.Z,{component:"div",children:e.group},e.key),e.children]};function Qn(e){var t=e.pairs,n=e.tokens,o=(0,f.useRouter)(),a=zn(t).concat(zn(n)).map((function(e){var t,n;return{__typename:e.__typename,id:e.id,token0:e.token0?e.token0.id:"",token1:e.token1?e.token1.id:"",text:e.name?" ".concat(e.symbol," ").concat(e.name):"".concat(null===(t=e.token0)||void 0===t?void 0:t.symbol,"-").concat(null===(n=e.token1)||void 0===n?void 0:n.symbol)}}));return(0,r.jsx)(En.ZP,{id:"search",style:{width:"100%"},disableListWrap:!0,ListboxComponent:qn,renderGroup:Yn,onChange:function(e,t){o.push("/".concat(t.__typename.toLowerCase(),"s/").concat(t.id))},onOpen:function(){(0,i.HI)("navigation clicked",{"current page":window.location.href,blockchain:"ETH",menu:"analytics header","menu cta":"search bar",highlight:""})},options:a.sort((function(e,t){if("Token"===e.__typename&&"Pair"===t.__typename)return-1})),groupBy:function(e){return e.__typename},renderInput:function(e){return(0,r.jsx)(Nn.Z,Hn({},e,{label:"Looking for something?",variant:"outlined",size:"small"}))},getOptionLabel:function(e){return e.text},renderOption:function(e,t){var n=t.inputValue,o=Wn()(e.text,n),a=Un()(e.text,o);return(0,r.jsxs)(D.Z,{display:"flex",alignItems:"center",children:["Token"===e.__typename?(0,r.jsx)(S,{id:e.id}):(0,r.jsx)(P,{base:e.token0,quote:e.token1}),a.map((function(e,t){return(0,r.jsx)("span",{style:{fontWeight:e.highlight?700:400,whiteSpace:"pre-wrap"},children:e.text},t)}))]})}})}function Xn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Jn=(0,on.Z)((function(e){return{cardContent:{"&:last-child":{paddingBottom:16}},title:{fontWeight:500},content:{display:"flex",alignItems:"center",justifyContent:"flex-start"}}}));var Kn=function(e){e.className;var t=e.title,n=void 0===t?"":t,o=e.value,a=void 0===o?"":o,i=(e.format,Xn(e,["className","title","value","format"]),Jn());return(0,r.jsx)(nn.Z,{variant:"outlined",children:(0,r.jsxs)(rn.Z,{className:i.cardContent,children:[(0,r.jsx)(E.Z,{variant:"subtitle2",color:"textSecondary",gutterBottom:!0,noWrap:!0,className:i.title,children:n}),(0,r.jsx)("div",{className:i.content,children:a})]})})},er=n(3646);function tr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nr=(0,a.Z)((function(e){return{bodyText:{fontWeight:600,fontSize:"16px"}}}));function rr(e){var t=e.tokens,n=e.title,o=nr(),a=(0,A.Z)(),l=(0,pe.useQuery)(i.B8,{pollInterval:6e4}).data.bundles,c=((0,pe.useQuery)(i.dQ).data,(0,pe.useQuery)(i.Qp).data),u=t.filter((function(e){return!le.O5.includes(null===e||void 0===e?void 0:e.id)})).map((function(e){var t,n,r,o,a,i=parseFloat(e.derivedETH)*parseFloat(null===(t=l[0])||void 0===t?void 0:t.ethPrice),u=parseFloat(null===(n=e.oneDay)||void 0===n?void 0:n.priceYesterdayUSD),s=(i-u)/u*100,f=parseFloat(null===(r=e.sevenDay)||void 0===r?void 0:r.derivedETH)*parseFloat(null===c||void 0===c?void 0:c.ethPrice),d=(i-f)/f*100,p=parseFloat(null===e||void 0===e?void 0:e.liquidity)*parseFloat(null===e||void 0===e?void 0:e.derivedETH)*parseFloat(null===(o=l[0])||void 0===o?void 0:o.ethPrice),m=null===(a=e.oneDay)||void 0===a?void 0:a.volumeUSD;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){tr(e,t,n[t])}))}return e}({},e,{price:i,priceYesterday:Number.isNaN(u)?0:u,priceChange:s,liquidityUSD:p||0,volumeYesterday:Number.isNaN(m)?0:m,sevenDayPriceChange:d})}));return(0,r.jsx)("div",{className:o.root,children:(0,r.jsx)(X,{title:n,orderBy:"liquidityUSD",columns:[{key:"name",label:"Name",render:function(e,t){return(0,r.jsxs)(D.Z,{display:"flex",alignItems:"center",children:[(0,r.jsx)(S,{id:e.id}),(0,r.jsx)(h,{href:"/tokens/".concat(e.id),children:(0,r.jsx)(E.Z,{className:o.bodyText,noWrap:!0,children:e.name})})]})}},{key:"liquidityUSD",align:"right",label:"Liquidity",render:function(e){return(0,i.xG)(e.liquidityUSD)}},{key:"volumeYesterday",align:"right",label:"Volume (24h)",render:function(e){return(0,i.xG)(e.volumeYesterday)}},{key:"price",align:"right",label:"Price",render:function(e){return(0,i.T4)(e.price)}},{key:"priceChange",align:"right",render:function(e){return(0,r.jsx)(N,{percent:e.priceChange})},label:"Price Change (24h)"},{key:"lastSevenDays",align:"right",label:"Last 7 Days",disableSort:!0,render:function(e){return(0,r.jsx)(er.Sparklines,{data:e.dayData.map((function(e){return e.priceUSD})),limit:7,svgWidth:160,svgHeight:30,children:(0,r.jsx)(er.SparklinesLine,{style:{strokeWidth:3,stroke:e.sevenDayPriceChange>0?a.palette.positive.main:e.sevenDayPriceChange<0?a.palette.negative.main:"currentColor",fill:"none"}})})}}],rows:u})})}var or=n(9114);function ar(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ir(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lr(e){return function(e){if(Array.isArray(e))return ar(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return ar(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ar(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var cr=(0,a.Z)((function(e){return{root:{width:"100%"},bodyText:{fontSize:"16px",fontWeight:400}}}));function ur(e){var t=e.transactions,n=(e.txCount,cr()),o=lr(t.swaps).concat(lr(t.mints),lr(t.burns)).map((function(e){return"Swap"===e.__typename?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ir(e,t,n[t])}))}return e}({},e,{amount0:"0"===e.amount0In?e.amount1In:e.amount0In,amount1:"0"===e.amount1Out?e.amount0Out:e.amount1Out}):e})),a=new Date;return(0,r.jsx)("div",{className:n.root,children:(0,r.jsx)(X,{title:"Transactions",orderBy:"timestamp",columns:[{key:"__typename",label:"Type",render:function(e){return(0,r.jsxs)(E.Z,{classes:{body2:n.bodyText},variant:"body2",noWrap:!0,children:["Mint"===e.__typename&&"Deposit LP","Burn"===e.__typename&&"Withdraw LP","Swap"===e.__typename&&(0,r.jsxs)(r.Fragment,{children:[e.__typename," ","0"===e.amount0In?e.pair.token1.symbol:e.pair.token0.symbol," ","for"," ","0"===e.amount1Out?e.pair.token0.symbol:e.pair.token1.symbol]})]})}},{key:"amountUSD",align:"right",label:"Value",render:function(e){return(0,r.jsx)(E.Z,{classes:{body2:n.bodyText},variant:"body2",noWrap:!0,children:(0,i.xG)(e.amountUSD)})}},{key:"amount0",align:"right",label:"In",render:function(e){return(0,r.jsx)(E.Z,{classes:{body2:n.bodyText},variant:"body2",noWrap:!0,children:"Swap"===e.__typename&&(0,r.jsxs)(r.Fragment,{children:[i.Vs.format(e.amount0)," ","0"!==e.amount1In&&e.amount1In?e.pair.token1.symbol:e.pair.token0.symbol]})})}},{key:"amount1",align:"right",label:"Out",render:function(e){return(0,r.jsx)(E.Z,{classes:{body2:n.bodyText},variant:"body2",noWrap:!0,children:"Swap"===e.__typename&&(0,r.jsxs)(r.Fragment,{children:[i.Vs.format(e.amount1)," ","0"!==e.amount0Out&&e.amount0Out?e.pair.token0.symbol:e.pair.token1.symbol]})})}},{key:"to",label:"To",render:function(e){return(0,r.jsx)(h,{className:n.bodyText,href:"https://etherscan.io/address/".concat(e.to),children:(0,x.toChecksumAddress)(e.to)})}},{key:"timestamp",align:"right",label:"Time",render:function(e){return(0,r.jsxs)(E.Z,{classes:{body2:n.bodyText},variant:"body2",noWrap:!0,children:[(0,or.Z)(a,new Date(1e3*e.timestamp))," ago"]})}}],rows:o})})}function sr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(c){l=!0,o=c}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return sr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Object.fromEntries(Object.entries({"0x674A71E69fe8D5cCff6fdcF9F1Fa4262Aa14b154":{farmId:7,allocPoint:3e8},"0x437E444365aD9ed788e8f255c908bceAd5AEA645":{farmId:8,allocPoint:18895896},"0x80F712670d268cf2C05e7162674c7466c940eBE3":{farmId:0,allocPoint:15532938},"0x24f011f12Ea45AfaDb1D4245bA15dCAB38B43D13":{farmId:1,allocPoint:300496954},"0x4fF52e9D7824EC9b4e0189F11B5aA0F02b459b03":{farmId:2,allocPoint:10921078},"0x41075d2Ea8BEF1CAfb24D9Bd2061b620cbc05B60":{farmId:6,allocPoint:9144225},"0xc47B0B4B51EE06De0daF02517D78f0473B776633":{farmId:9,allocPoint:66660671},"0xD6EcaDB40b35D17f739Ec27285759d0ca119e3A1":{farmId:10,allocPoint:9508994},"0xCabdb1321CEAb169935a0c9d4c856250766C3df7":{farmId:14,allocPoint:15930397},"0xbE48dC2353a460668A5D859C66e4472661581998":{farmId:15,allocPoint:3895864},"0x24615e918AD078900BfE13F4cd26876Bae64dD75":{farmId:18,allocPoint:8496585},"0x64c379ab93b859AdA71b8AbACA77BeD104a5DbCa":{farmId:27,allocPoint:25590307},"0x8221D04A71FcD0Dd3d096cB3B49E22918095933F":{farmId:30,allocPoint:5724322},"0x5775D98022590dc60E9c4Ae0a1c56bF1fD8fcaDC":{farmId:31,allocPoint:14925656},"0xB02A135992478a485D9DD771092CdD8B4487594A":{farmId:33,allocPoint:11304180},"0xE75Ec02F28bC0E1ca1794FbFFe8229ac1662075E":{farmId:34,allocPoint:7553514},"0x99057a0cb475d1c4d950d552e77e9e68cddb8261":{farmId:35,allocPoint:9703179},"0x1f354956de4a7ed71308225de94a27b35a84ea57":{farmId:36,allocPoint:10091644},"0xbe8c7c35103c443844ef234cffd73a491df6f503":{farmId:37,allocPoint:15401755},"0x49f8c72fca1f6f62411da1aa451c479e1324eb8f":{farmId:39,allocPoint:16458210},"0xea5038043364830c489d7fd8f95efe35eae6f4ff":{farmId:40,allocPoint:10053255},"0x2ea9369daee963cebc0266ae8b98c3e015c59046":{farmId:41,allocPoint:7704190},"0x800632afc31225813b06185ea8be8ed571820a50":{farmId:42,allocPoint:8094038},"0x7e1b9f1e286160a80ab9b04d228c02583aef90b5":{farmId:44,allocPoint:9154285},"0xc20a4f3012ba2df47544d4926b19604fa777fb01":{farmId:46,allocPoint:33935881},"0x1d5a7bea34ee984d54af6ff355a1cb54c29eb546":{farmId:47,allocPoint:16930892},"0xe1b5bc09427710bc4d886ec49654944110b58134":{farmId:48,allocPoint:12184556},"0x380094357328488781a0fb31c271a13db7357c1e":{farmId:49,allocPoint:10226248},"0x8c14d399f3e12b702effd16cf27337637b38c84a":{farmId:50,allocPoint:10861373},"0x0151b25a5acf7f2f31bb2ab4358c9fa894db2cb2":{farmId:51,allocPoint:4618896}}).map((function(e){var t=fr(e,2),n=t[0],r=t[1];return[n.toLowerCase(),r]})));(0,a.Z)((function(e){return{root:{},body:{fontSize:"16px",fontWeight:600},small:{width:e.spacing(3),height:e.spacing(3)},lost:{color:e.palette.negative.main},gained:{color:e.palette.positive.main},brandnew:{color:me.Q3.verseBlue}}}));function dr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(c){l=!0,o=c}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return dr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Object.fromEntries(Object.entries({"0x674A71E69fe8D5cCff6fdcF9F1Fa4262Aa14b154":{farmId:7,allocPoint:3e8},"0x437E444365aD9ed788e8f255c908bceAd5AEA645":{farmId:8,allocPoint:18895896},"0x80F712670d268cf2C05e7162674c7466c940eBE3":{farmId:0,allocPoint:15532938},"0x24f011f12Ea45AfaDb1D4245bA15dCAB38B43D13":{farmId:1,allocPoint:300496954},"0x4fF52e9D7824EC9b4e0189F11B5aA0F02b459b03":{farmId:2,allocPoint:10921078},"0x41075d2Ea8BEF1CAfb24D9Bd2061b620cbc05B60":{farmId:6,allocPoint:9144225},"0xc47B0B4B51EE06De0daF02517D78f0473B776633":{farmId:9,allocPoint:66660671},"0xD6EcaDB40b35D17f739Ec27285759d0ca119e3A1":{farmId:10,allocPoint:9508994},"0xCabdb1321CEAb169935a0c9d4c856250766C3df7":{farmId:14,allocPoint:15930397},"0xbE48dC2353a460668A5D859C66e4472661581998":{farmId:15,allocPoint:3895864},"0x24615e918AD078900BfE13F4cd26876Bae64dD75":{farmId:18,allocPoint:8496585},"0x64c379ab93b859AdA71b8AbACA77BeD104a5DbCa":{farmId:27,allocPoint:25590307},"0x8221D04A71FcD0Dd3d096cB3B49E22918095933F":{farmId:30,allocPoint:5724322},"0x5775D98022590dc60E9c4Ae0a1c56bF1fD8fcaDC":{farmId:31,allocPoint:14925656},"0xB02A135992478a485D9DD771092CdD8B4487594A":{farmId:33,allocPoint:11304180},"0xE75Ec02F28bC0E1ca1794FbFFe8229ac1662075E":{farmId:34,allocPoint:7553514},"0x99057a0cb475d1c4d950d552e77e9e68cddb8261":{farmId:35,allocPoint:9703179},"0x1f354956de4a7ed71308225de94a27b35a84ea57":{farmId:36,allocPoint:10091644},"0xbe8c7c35103c443844ef234cffd73a491df6f503":{farmId:37,allocPoint:15401755},"0x49f8c72fca1f6f62411da1aa451c479e1324eb8f":{farmId:39,allocPoint:16458210},"0xea5038043364830c489d7fd8f95efe35eae6f4ff":{farmId:40,allocPoint:10053255},"0x2ea9369daee963cebc0266ae8b98c3e015c59046":{farmId:41,allocPoint:7704190},"0x800632afc31225813b06185ea8be8ed571820a50":{farmId:42,allocPoint:8094038},"0x7e1b9f1e286160a80ab9b04d228c02583aef90b5":{farmId:44,allocPoint:9154285},"0xc20a4f3012ba2df47544d4926b19604fa777fb01":{farmId:46,allocPoint:33935881},"0x1d5a7bea34ee984d54af6ff355a1cb54c29eb546":{farmId:47,allocPoint:16930892},"0xe1b5bc09427710bc4d886ec49654944110b58134":{farmId:48,allocPoint:12184556},"0x380094357328488781a0fb31c271a13db7357c1e":{farmId:49,allocPoint:10226248},"0x8c14d399f3e12b702effd16cf27337637b38c84a":{farmId:50,allocPoint:10861373},"0x0151b25a5acf7f2f31bb2ab4358c9fa894db2cb2":{farmId:51,allocPoint:4618896}}).map((function(e){var t=pr(e,2),n=t[0],r=t[1];return[n.toLowerCase(),r]})));(0,a.Z)((function(e){return{root:{},small:{width:e.spacing(3),height:e.spacing(3)},gained:{color:e.palette.positive.main}}}));(0,a.Z)((function(e){return{root:{},small:{width:e.spacing(3),height:e.spacing(3)},lost:{fontSize:"16px",fontWeight:600,color:e.palette.negative.main}}}));(0,a.Z)((function(e){return{container:{height:"500px",fontWeight:"bold"},progress:{textAlign:"center",minHeight:"50px"}}}));var mr=n(9895);function br(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var hr=(0,a.Z)((function(e){return{root:{borderRadius:"24px 24px 0 0",boxShadow:"0px 4px 120px rgba(47, 169, 238, 0.4)"}}}));var vr=function(e){var t=e.className,n=e.children,o=yr(e,["className","children"]),a=hr();return(0,r.jsx)(mr.Z,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){br(e,t,n[t])}))}return e}({className:[a.root,t].join(" "),variant:"outlined"},o,{children:n}))}},6601:function(){}}]);