1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ca380b18-dab3-499a-ae5d-026ec563c697",e._sentryDebugIdIdentifier="sentry-dbid-ca380b18-dab3-499a-ae5d-026ec563c697")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[749],{69157:function(e,t,n){n.d(t,{Z:function(){return k}});var a=n(85893),i=n(38456),s=n.n(i),o=n(10043),r=n.n(o),l=n(1184),c=n(19521);let u=c.ZP.table.withConfig({componentId:"sc-a3180c5f-0"})(["margin-bottom:32px;margin-top:32px;width:100%;td,th{color:",";padding:8px;}"],e=>{let{theme:t}=e;return t.colors.text}),d=c.ZP.div.withConfig({componentId:"sc-a3180c5f-1"})(["width:100%;overflow:auto;-webkit-overflow-scrolling:touch;"]),h=c.ZP.div.withConfig({componentId:"sc-a3180c5f-2"})(["color:",";margin-bottom:16px;margin-top:16px;li{margin-bottom:8px;}"],e=>{let{theme:t}=e;return t.colors.text}),p=c.ZP.pre.withConfig({componentId:"sc-a3180c5f-3"})(["color:",";margin-bottom:16px;margin-top:16px;max-width:100%;overflow-x:auto;"],e=>{let{theme:t}=e;return t.colors.text}),w=c.ZP.a.withConfig({componentId:"sc-a3180c5f-4"})(["word-break:break-all;"]),m=e=>(0,a.jsx)(l.X6q,{as:"h4",scale:"lg",my:"16px",...e});var f={h1:m,h2:m,h3:m,h4:m,h5:m,h6:m,p:e=>(0,a.jsx)(l.xvT,{as:"p",my:"16px",...e}),table:e=>{let{...t}=e;return(0,a.jsx)(d,{children:(0,a.jsx)(u,{children:t.children})})},ol:e=>(0,a.jsx)(h,{as:"ol",...e}),ul:e=>(0,a.jsx)(h,{as:"ul",...e}),pre:p,a:w},k=e=>(0,a.jsx)(s(),{remarkPlugins:[r()],components:f,...e})},67825:function(e,t,n){n.d(t,{l:function(){return y}});var a=n(30950),i=n(19898),s=n(1184),o=n(16441),r=n(29251),l=n(81928),c=n(72818),u=n(50924),d=n(45298);function h(e){return e.hasOwnProperty("result")?e.result:e}
1class p extends Error{constructor(){super(),this.name=this.constructor.name,this.message="No Okx provider was found on window.okxwallet."}}class w extends Error{constructor(){super(),this.name=this.constructor.name,this.message="The user rejected the request."}}class m extends u.AbstractConnector{constructor(e){super(e),this.handleNetworkChanged=this.handleNetworkChanged.bind(this),this.handleChainChanged=this.handleChainChanged.bind(this),this.handleAccountsChanged=this.handleAccountsChanged.bind(this),this.handleClose=this.handleClose.bind(this)}handleChainChanged(e){this.emitUpdate({chainId:e,provider:window.okxwallet})}handleAccountsChanged(e){0===e.length?this.emitDeactivate():this.emitUpdate({account:e[0]})}handleClose(e,t){this.emitDeactivate()}handleNetworkChanged(e){this.emitUpdate({chainId:e,provider:window.okxwallet})}async activate(){let e;if(!window.okxwallet)throw new p;window.okxwallet.on&&(window.okxwallet.on("chainChanged",this.handleChainChanged),window.okxwallet.on("accountsChanged",this.handleAccountsChanged),window.okxwallet.on("close",this.handleClose),window.okxwallet.on("networkChanged",this.handleNetworkChanged)),window.okxwallet.isMetaMask&&(window.okxwallet.autoRefreshOnNetworkChange=!1);try{e=await window.okxwallet.send("eth_requestAccounts").then(e=>h(e)[0])}catch(e){if(4001===e.code)throw new w;(0,d.default)(!1,"eth_requestAccounts was unsuccessful, falling back to enable")}return e||(e=await window.okxwallet.enable().then(e=>e&&h(e)[0])),{provider:window.okxwallet,...e?{account:e}:{}}}async getProvider(){return window.okxwallet}async getChainId(){let e;if(!window.okxwallet)throw new p;try{e=await window.okxwallet.send("eth_chainId").then(h)}catch{(0,d.default)(!1,"eth_chainId was unsuccessful, falling back to net_version")}if(!e)try{e=await window.okxwallet.send("net_version").then(h)}catch{(0,d.default)(!1,"net_version was unsuccessful, falling back to net version v2")}if(!e)try{e=h(window.okxwallet.send({method:"net_version"}))}catch{(0,d.default)(!1,"net_version v2 was unsuccessful, falling back to manual matches and static properties")}return e||(e=window.okxwallet.isDapper?h(window.okxwallet.cachedResults.net_version):window.okxwallet.chainId||window.okxwallet.netVersion||window.okxwallet.networkVersion||window.okxwallet._chainId),e}async getAccount(){let e;if(!window.okxwallet)throw new p;try{e=await window.okxwallet.send("eth_accounts").then(e=>h(e)[0])}catch{(0,d.default)(!1,"eth_accounts was unsuccessful, falling back to enable")}if(!e)try{e=await window.okxwallet.enable().then(e=>h(e)[0])}catch{(0,d.default)(!1,"enable was unsuccessful, falling back to eth_accounts v2")}return e||(e=h(window.okxwallet.send({method:"eth_accounts"}))[0]),e}deactivate(){window.okxwallet&&window.okxwallet.removeListener&&(window.okxwallet.removeListener("chainChanged",this.handleChainChanged),window.okxwallet.removeListener("accountsChanged",this.handleAccountsChanged),window.okxwallet.removeListener("close",this.handleClose),window.okxwallet.removeListener("networkChanged",this.handleNetworkChanged))}async isAuthorized(){if(!window.okxwallet)return!1;try{return await window.okxwallet.send("eth_accounts").then(e=>h(e).length>0)}catch{return!1}}}function f(e){return e.hasOwnProperty("result")?e.result:e}class k extends Error{constructor(){super(),this.name=this.constructor.name,this.message="To use BitKeep properly, please make sure it is installed."}}class b extends Error{constructor(){super(),this.name=this.constructor.name,this.message="The user rejected the request."}}class x extends u.AbstractConnector{constructor(e){super(e),this.handleNetworkChanged=this.handleNetworkChanged.bind(this),this.handleChainChanged=this.handleChainChanged.bind(this),this.handleAccountsChanged=this.handleAccountsChanged.bind(this),this.handleClose=this.handleClose.bind(this)}handleChainChanged(e){this.emitUpdate({chainId:e,provider:window.bitkeep.ethereum})}handleAccountsChanged(e){0===e.length?this.emitDeactivate():this.emitUpdate({account:e[0]})}handleClose(e,t){this.emitDeactivate()}handleNetworkChanged(e){this.emitUpdate({chainId:e,provider:window.bitkeep.ethereum})}async activate(){let e;if(!window.bitkeep?.ethereum)throw new k;window.bitkeep.ethereum.on&&(window.bitkeep.ethereum.on("chainChanged",this.handleChainChanged),window.bitkeep.ethereum.on("accountsChanged",this.handleAccountsChanged),window.bitkeep.ethereum.on("close",this.handleClose),window.bitkeep.ethereum.on("networkChanged",this.handleNetworkChanged)),window.bitkeep.ethereum.isMetaMask&&(window.bitkeep.ethereum.autoRefreshOnNetworkChange=!1);try{e=await window.bitkeep.ethereum.send("eth_requestAccounts").then(e=>f(e)[0])}catch(e){if(4001===e.code)throw new b;(0,d.default)(!1,"eth_requestAccounts was unsuccessful, falling back to enable")}
1return e||(e=await window.bitkeep.ethereum.enable().then(e=>e&&f(e)[0])),{provider:window.bitkeep.ethereum,...e?{account:e}:{}}}async getProvider(){return window.bitkeep.ethereum}async getChainId(){let e;if(!window.bitkeep.ethereum)throw new k;try{e=await window.bitkeep.ethereum.send("eth_chainId").then(f)}catch{(0,d.default)(!1,"eth_chainId was unsuccessful, falling back to net_version")}if(!e)try{e=await window.bitkeep.ethereum.send("net_version").then(f)}catch{(0,d.default)(!1,"net_version was unsuccessful, falling back to net version v2")}if(!e)try{e=f(window.bitkeep.ethereum.send({method:"net_version"}))}catch{(0,d.default)(!1,"net_version v2 was unsuccessful, falling back to manual matches and static properties")}return e||(e=window.bitkeep.ethereum.isDapper?f(window.bitkeep.ethereum.cachedResults.net_version):window.bitkeep.ethereum.chainId||window.bitkeep.ethereum.netVersion||window.bitkeep.ethereum.networkVersion||window.bitkeep.ethereum._chainId),e}async getAccount(){let e;if(!window.bitkeep.ethereum)throw new k;try{e=await window.bitkeep.ethereum.send("eth_accounts").then(e=>f(e)[0])}catch{(0,d.default)(!1,"eth_accounts was unsuccessful, falling back to enable")}if(!e)try{e=await window.bitkeep.ethereum.enable().then(e=>f(e)[0])}catch{(0,d.default)(!1,"enable was unsuccessful, falling back to eth_accounts v2")}return e||(e=f(window.bitkeep.ethereum.send({method:"eth_accounts"}))[0]),e}deactivate(){window.bitkeep.ethereum&&window.bitkeep.ethereum.removeListener&&(window.bitkeep.ethereum.removeListener("chainChanged",this.handleChainChanged),window.bitkeep.ethereum.removeListener("accountsChanged",this.handleAccountsChanged),window.bitkeep.ethereum.removeListener("close",this.handleClose),window.bitkeep.ethereum.removeListener("networkChanged",this.handleNetworkChanged))}async isAuthorized(){if(!window.bitkeep.ethereum)return!1;try{return await window.bitkeep.ethereum.send("eth_accounts").then(e=>f(e).length>0)}catch{return!1}}}(0,c.ZP)();let g=parseInt(l.K,10);new a._k({supportedChainIds:[g]}),new i.BscConnector({supportedChainIds:[g]}),new m({supportedChainIds:[g]}),new x({supportedChainIds:[g]}),s.Mt7.Injected,s.Mt7.BSC,s.Mt7.OKX,s.Mt7.BitKeep;let y=async(e,t,n,a)=>{if(window.BinanceChain&&e instanceof i.BscConnector){let{signature:e}=await window.BinanceChain.bnbSign(n,a);return e}if(t.provider?.wc){let e=(0,o.Dv)((0,r.Y0)(a));return await t.provider?.wc.signPersonalMessage([e,n])}return t.getSigner(n).signMessage(a)}},64842:function(e,t,n){var a=n(85893),i=n(1184),s=n(131),o=n(19521),r=n(31292),l=n(29587),c=n(13919);let u=(0,o.ZP)(i.NRJ).withConfig({componentId:"sc-1e16d566-0"})(["display:inline-flex;font-size:14px;> svg{width:14px;}"]);t.Z=e=>{let{total:t,cakeBalance:n,cakeVaultBalance:o,cakePoolBalance:d,poolsBalance:h,cakeBnbLpBalance:p,ifoPoolBalance:w,block:m}=e,{t:f}=(0,s.$G)();return(0,a.jsxs)(c.I,{mb:"0",children:[(0,a.jsx)(i.xvT,{as:"p",mb:"24px",fontSize:"14px",color:"textSubtle",children:f("Your voting power is determined by the amount of CAKE you held at the block detailed below. CAKE held in other places does not contribute to your voting power.")}),(0,a.jsx)(i.xvT,{color:"secondary",textTransform:"uppercase",mb:"4px",bold:!0,fontSize:"14px",children:f("Overview")}),(0,a.jsxs)(c.k,{children:[(0,a.jsx)(i.xvT,{color:"secondary",children:f("Your Voting Power")}),(0,a.jsx)(i.xvT,{bold:!0,fontSize:"20px",children:(0,l.uf)(t,0,3)})]}),(0,a.jsxs)(i.xvT,{color:"secondary",textTransform:"uppercase",mb:"4px",bold:!0,fontSize:"14px",children:[f("Your CAKE held at block"),(0,a.jsx)(u,{href:(0,r.s6)(m,"block"),ml:"8px",children:m})]}),(0,a.jsxs)(i.kCb,{alignItems:"center",justifyContent:"space-between",mb:"4px",children:[(0,a.jsx)(i.xvT,{color:"textSubtle",fontSize:"16px",children:f("Wallet")}),(0,a.jsx)(i.xvT,{textAlign:"right",children:(0,l.uf)(n,0,3)})]}),(0,a.jsxs)(i.kCb,{alignItems:"center",justifyContent:"space-between",mb:"4px",children:[(0,a.jsx)(i.xvT,{color:"textSubtle",fontSize:"16px",children:f("Manual CAKE Pool")}),(0,a.jsx)(i.xvT,{textAlign:"right",children:(0,l.uf)(d,0,3)})]}),(0,a.jsxs)(i.kCb,{alignItems:"center",justifyContent:"space-between",mb:"4px",children:[(0,a.jsx)(i.xvT,{color:"textSubtle",fontSize:"16px",children:f("Auto CAKE Pool")}),(0,a.jsx)(i.xvT,{textAlign:"right",children:(0,l.uf)(o,0,3)})]}),(0,a.jsxs)(i.kCb,{alignItems:"center",justifyContent:"space-between",mb:"4px",children:[(0,a.jsx)(i.xvT,{color:"textSubtle",fontSize:"16px",children:f("IFO Pool")}),(0,a.jsx)(i.xvT,{textAlign:"right",children:(0,l.uf)(w,0,3)})]}),(0,a.jsxs)(i.kCb,{alignItems:"center",justifyContent:"space-between",mb:"4px",children:[(0,a.jsx)(i.xvT,{color:"textSubtle",fontSize:"16px",children:f("Other Syrup Pools")}),(0,a.jsx)(i.xvT,{textAlign:"right",children:(0,l.uf)(h,0,3)})]}),(0,a.jsxs)(i.kCb,{alignItems:"center",justifyContent:"space-between",mb:"4px",children:[(0,a.jsx)(i.xvT,{color:"textSubtle",fontSize:"16px",children:f("CAKE BNB LP")}),(0,a.jsx)(i.xvT,{textAlign:"right",children:(0,l.uf)(p,0,3)})]})]})}},13919:function(e,t,n){n.d(t,{I:function(){return o},k:function(){return s}});var a=n(85893),i=n(1184);let s=n(19521).ZP.div.withConfig({componentId:"sc-d94d1549-0"})(["align-items:center;border:1px solid ",";border-radius:12px;display:flex;height:64px;justify-content:space-between;margin-bottom:24px;padding:0 16px;"],e=>{let{theme:t}=e;return t.colors.cardBorder}),o=e=>(0,a.jsx)(i.xuv,{mb:"24px",maxWidth:"320px",...e})},88101:function(e,t,n){let a=n(19521).ZP.div.withConfig({componentId:"sc-930753e4-0"})(["align-items:start;display:grid;grid-gap:32px;grid-template-columns:minmax(0,1fr);","{grid-template-columns:1fr 332px;}"],e=>{let{theme:t}=e;return t.mediaQueries.lg});t.Z=a},39940:function(e,t,n){n.d(t,{A4:function(){return a},F_:function(){return i},Gs:function(){return s},Q8:function(){return r},V5:function(){return l},qo:function(){return o}});let a=10,i=["0x842B508681eE336E74600974B4623B709477d29D","0x977e0c1005dff8749f8cac22f4df0bd5f013d1a7","0x6eaf1b33b8672c5dc40ab8f4ba3a0111723126c7"].map(e=>e.toLowerCase()),s="https://gateway.ipfs.io/ipfs",o="0.1.3",r="cake.eth",l=10},37673:function(e,t,n){n.d(t,{zn:function(){return P},JY:function(){return g},LJ:function(){return x},yx:function(){return y},GB:function(){return C},Z$:function(){return I},u$:function(){return B},BV:function(){return S},md:function(){return b},Jl:function(){return v}});var a=n(34478),i=n.n(a),s=n(70794),o=n(68839),r=n(16247),l=n(91234),c=n(43669);let u="0x0eD7e52944161450477ee417DE9Cd3a859b14fD0",d={name:"erc20-balance-of",params:{address:r.default.cake.address,decimals:0,symbol:r.default.cake.symbol}},h={name:"contract-call",params:{address:(0,c.O9)(),decimals:0,output:"shares",methodABI:{input
1s:[{internalType:"address",name:"",type:"address"}],name:"userInfo",outputs:[{internalType:"uint256",name:"shares",type:"uint256"},{internalType:"uint256",name:"lastDepositedTime",type:"uint256"},{internalType:"uint256",name:"cakeAtLastUserAction",type:"uint256"},{internalType:"uint256",name:"lastUserActionTime",type:"uint256"}],stateMutability:"view",type:"function"}}},p={name:"contract-call",params:{address:(0,c.O9)(),decimals:0,args:[],methodABI:{inputs:[],name:"getPricePerFullShare",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}}},w={name:"contract-call",params:{address:(0,c.rp)(),decimals:0,output:"shares",methodABI:{inputs:[{internalType:"address",name:"",type:"address"}],name:"userInfo",outputs:[{internalType:"uint256",name:"shares",type:"uint256"},{internalType:"uint256",name:"lastDepositedTime",type:"uint256"},{internalType:"uint256",name:"cakeAtLastUserAction",type:"uint256"},{internalType:"uint256",name:"lastUserActionTime",type:"uint256"}],stateMutability:"view",type:"function"}}},m={name:"contract-call",params:{address:(0,c.rp)(),decimals:0,args:[],methodABI:{inputs:[],name:"getPricePerFullShare",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}}},f=[d,h,p,w,m,{name:"contract-call",params:{address:(0,c.Oc)(),decimals:0,args:[0,"%{address}"],output:"amount",methodABI:{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"address",name:"",type:"address"}],name:"userInfo",outputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint256",name:"rewardDebt",type:"uint256"}],stateMutability:"view",type:"function"}}},{name:"contract-call",params:{address:u,decimals:0,args:[],methodABI:{constant:!0,inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"}}},{name:"contract-call",params:{address:u,decimals:0,args:[],output:"_reserve0",methodABI:{constant:!0,inputs:[],name:"getReserves",outputs:[{internalType:"uint112",name:"_reserve0",type:"uint112"},{internalType:"uint112",name:"_reserve1",type:"uint112"},{internalType:"uint32",name:"_blockTimestampLast",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"}}},{name:"contract-call",params:{address:(0,c.Lg)(),decimals:0,args:[1,"%{address}"],output:"amount",methodABI:{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"address",name:"",type:"address"}],name:"userInfo",outputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint256",name:"rewardDebt",type:"uint256"}],stateMutability:"view",type:"function"}}}];var k=n(39940);let b=e=>k.F_.includes(e.author.toLowerCase()),x=(e,t)=>{if(!e)return[];switch(t){case l.nK.COMMUNITY:return e.filter(e=>!b(e));case l.nK.CORE:return e.filter(e=>b(e));case l.nK.ALL:default:return e}},g=(e,t)=>e.filter(e=>e.state===t),y=()=>({plugins:{}
1,network:56,strategies:[{name:"cake",params:{symbol:"CAKE",address:r.default.cake.address,decimals:18}}]}),C=()=>({version:k.qo,timestamp:(Date.now()/1e3).toFixed(),space:k.Q8}),v=async e=>{let t=await fetch(o.lO,{method:"post",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok){let e=await t.json();throw Error(e?.error_description)}return await t.json()},B=async(e,t,n)=>(await S([e],t,n))[0],P=e=>e?e.reduce((e,t)=>{let n=t.proposal.choices[t.choice-1];return{...e,[n]:e[n]?[...e[n],t]:[t]}},{}):{},I=e=>e?e.reduce((e,t)=>{let n=parseFloat(t.metadata?.votingPower);return n||(n=0),e+n},0):0,T=new s.Z(10).pow(18);async function S(e,t,n){let a=t.map(e=>({name:"contract-call",params:{address:e,decimals:0,output:"amount",methodABI:{inputs:[{internalType:"address",name:"",type:"address"}],name:"userInfo",outputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint256",name:"rewardDebt",type:"uint256"}],stateMutability:"view",type:"function"}}})),o={Cake:693963<n,CakeVault:6975840<n,IFOPool:13463954<n,MasterChef:699498<n,CakeLp:6810706<n},r={cakeBalances:-1,cakeVaultShares:-1,cakeVaultPricePerFullShares:-1,ifoPoolShares:-1,ifoPoolPricePerFullShares:-1,userStakeInCakePools:-1,cakeBnbLpTotalSupplies:-1,cakeBnbLpReserve0s:-1,cakeBnbLpCakeBnbBalances:-1,poolStart:0},l=[],c=0;o.Cake&&(l.push(f[0]),r.cakeBalances=c++),o.CakeVault&&(l.push(f[1]),r.cakeVaultShares=c++,l.push(f[2]),r.cakeVaultPricePerFullShares=c++),o.IFOPool&&(l.push(f[3]),r.ifoPoolShares=c++,l.push(f[4]),r.ifoPoolPricePerFullShares=c++),o.MasterChef&&(l.push(f[5]),r.userStakeInCakePools=c++),o.CakeLp&&(l.push(f[6]),r.cakeBnbLpTotalSupplies=c++,l.push(f[7]),r.cakeBnbLpReserve0s=c++,l.push(f[8]),r.cakeBnbLpCakeBnbBalances=c++),r.poolStart=c;let u=[...l,...a];return function(e,t,n){let[a,i,o,r,l,c,u,d,h]=Array(9),p={};for(let e=0;e<t.length;e++)p[t[e]]=0;return a=n.cakeBalances>-1?e[n.cakeBalances]:p,i=n.cakeVaultShares>-1?e[n.cakeVaultShares]:p,o=n.cakeVaultPricePerFullShares>-1?e[n.cakeVaultPricePerFullShares]:p,r=n.ifoPoolShares>-1?e[n.ifoPoolShares]:p,l=n.ifoPoolPricePerFullShares>-1?e[n.ifoPoolPricePerFullShares]:p,c=n.userStakeInCakePools>-1?e[n.userStakeInCakePools]:p,u=n.cakeBnbLpTotalSupplies>-1?e[n.cakeBnbLpTotalSupplies]:p,d=n.cakeBnbLpReserve0s>-1?e[n.cakeBnbLpReserve0s]:p,h=n.cakeBnbLpCakeBnbBalances>-1?e[n.cakeBnbLpCakeBnbBalances]:p,t.map(t=>{let p=new s.Z(a[t]),w=new s.Z(o[t]).div(T),m=new s.Z(i[t]).times(w),f=new s.Z(l[t]).div(T),k=new s.Z(r[t]).times(f),b=new s.Z(c[t]),x=new s.Z(u[t]),g=new s.Z(d[t]),y=new s.Z(h[t]).times(g).div(x),C=n.poolStart,v=new s.Z(0);for(let n=C;n<e.length;n++){let a=new s.Z(e[n][t]);v=v.plus(a)}let B=p.plus(m).plus(b).plus(k).plus(y).plus(v).div(T).toFixed(18);return{cakeBalance:p.div(T).toFixed(18),cakeVaultBalance:m.div(T).toFixed(18),IFOPoolBalance:k.div(T).toFixed(18),cakePoolBalance:b.div(T).toFixed(18),cakeBnbLpBalance:y.div(T).toFixed(18),poolsBalance:v.div(T).toFixed(18),total:B,voter:t}})}(await i().utils.getScores(k.Q8,u,"56",e,n),e,r)}},833:function(e,t,n){var a=n(67294),i=n(28409),s=n(12646),o=n(43669),r=n(40483),l=n(37673);let c={cakeBalance:0,cakeVaultBalance:0,cakePoolBalance:0,poolsBalance:0,cakeBnbLpBalance:0,ifoPoolBalance:0,total:0};t.Z=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],{account:n}=(0,i.ZP)(),[u,d]=(0,a.useState)(c),[h,p]=(0,a.useState)(!!n);return(0,a.useEffect)(()=>{let a=async()=>{p(!0);try{let a=e||await r.JK.getBlockNumber(),i=(await (0,s.yp)(a)).map(e=>{let{contractAddress:t}=e;return(0,o.Kn)(t)}),{cakeBalance:c,cakeBnbLpBalance:u,cakePoolBalance:h,total:p,poolsBalance:w,cakeVaultBalance:m,IFOPoolBalance:f}=await (0,l.u$)(n,i,a);t&&d(e=>({...e,cakeBalance:parseFloat(c),cakeBnbLpBalance:parseFloat(u),cakePoolBalance:parseFloat(h),poolsBalance:parseFloat(w),cakeVaultBalance:parseFloat(m),ifoPoolBalance:f?parseFloat(f):0,total:parseFloat(p)}))}finally{p(!1)}};n&&t&&a()},[n,e,d,t,p]),{...u,isLoading:h}}}}]);
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.