1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="12c95131-a2cc-4030-93a3-ce534da81a4f",e._sentryDebugIdIdentifier="sentry-dbid-12c95131-a2cc-4030-93a3-ce534da81a4f")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1070,4577,5357,6502],{5125:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(350979);n(25963);var l=n(257057);let r=e=>(0,o.jsxs)(l.A,{viewBox:"0 0 1024 1024",...e,children:[(0,o.jsxs)("g",{children:[(0,o.jsx)("path",{d:"M1041.52 0H-27V1024H1041.52V0Z",fill:"#2980FE"}),(0,o.jsxs)("g",{clipPath:"url(#clip0_408_225)",children:[(0,o.jsx)("path",{d:"M406.796 438.643H406.927C406.796 437.857 406.796 436.94 406.796 436.154V438.643Z",fill:"#29AEFF"}),(0,o.jsx)("path",{d:"M667.602 463.533H523.249V724.076C523.249 736.389 533.204 746.345 545.517 746.345H645.333C657.647 746.345 667.602 736.389 667.602 724.076V463.533Z",fill:"white"}),(0,o.jsx)("path",{d:"M453.563 277H448.716H190.269C177.955 277 168 286.955 168 299.269V389.653C168 401.967 177.955 411.922 190.269 411.922H250.918H275.021V438.644V724.731C275.021 737.045 284.976 747 297.289 747H392.128C404.441 747 414.396 737.045 414.396 724.731V438.644V436.156V411.922H438.499H448.323H453.17C490.372 411.922 520.631 381.663 520.631 344.461C521.024 307.259 490.765 277 453.563 277Z",fill:"white"}),(0,o.jsx)("path",{d:"M667.735 463.533V645.35C672.713 646.529 677.821 647.446 683.061 648.232C690.397 649.28 697.994 649.935 705.592 650.066C705.985 650.066 706.378 650.066 706.902 650.066V505.45C685.026 504.009 667.735 485.801 667.735 463.533Z",fill:"url(#paint0_linear_408_225)"}),(0,o.jsx)("path",{d:"M709.781 277C606.822 277 523.249 360.573 523.249 463.533C523.249 552.084 584.946 626.225 667.733 645.35V463.533C667.733 440.347 686.596 421.484 709.781 421.484C732.967 421.484 751.83 440.347 751.83 463.533C751.83 483.051 738.6 499.425 720.523 504.14C717.117 505.057 713.449 505.581 709.781 505.581V650.066C713.449 650.066 716.986 649.935 720.523 649.804C818.505 644.171 896.314 562.956 896.314 463.533C896.445 360.573 812.872 277 709.781 277Z",fill:"white"}),(0,o.jsx)("path",{d:"M709.78 650.066V505.581C708.733 505.581 707.816 505.581 706.768 505.45V650.066C707.816 650.066 708.864 650.066 709.78 650.066Z",fill:"white"})]})]}),(0,o.jsxs)("defs",{children:[(0,o.jsxs)("linearGradient",{id:"paint0_linear_408_225",x1:"709.844",y1:"556.827",x2:"667.753",y2:"556.827",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"white"}),(0,o.jsx)("stop",{offset:"0.9667",stopColor:"white",stopOpacity:"0.3233"}),(0,o.jsx)("stop",{offset:"1",stopColor:"white",stopOpacity:"0.3"})]}),(0,o.jsx)("clipPath",{id:"clip0_408_225",children:(0,o.jsx)("rect",{width:"728.448",height:"470",fill:"white",transform:"translate(168 277)"})})]})]})},41811:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(350979);n(25963);var l=n(257057);let r=e=>(0,o.jsx)(l.A,{viewBox:"0 0 24 24",...e,children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 4C18.5 4 19 4.5 19 6L19 8C20.1046 8 21 8.89543 21 10L21 17C21 19 20 20 17.999 20H6C4 20 3 19 3 17L3 7C3 5.5 4.5 4 6 4L17 4ZM5 7C5 6.44772 5.44772 6 6 6L19 6L19 8L6 8C5.44772 8 5 7.55229 5 7ZM17 16C18 16 19.001 15 19 14C18.999 13 18 12 17 12C16 12 15 13 15 14C15 15 16 16 17 16Z"})})},47968:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>tI});var o=n(350979),l=n(228876),r=n(769932),i=n(670420),s=n(317905),a=n(677787),c=n(501823),d=n(575058),u=n(941937),x=n(818193),p=n(91168),h=n(814795),m=n(298491),f=n.n(m),j=n(359777),A=n.n(j),y=n(853667),k=n.n(y),b=n(25963),g=n(733775),v=n(428089),C=n(979332),w=n(114956),P=n(150591),S=n(557423),L=n(266283),D=n(747292),I=n(432594),M=n(164811),E=n.n(M),T=n(605641),F=n(812297),R=n(819324),B=n(653632),N=n(348221),O=n(734658),H=n(294643),z=n(680797);let U=(0,z.I4)(c.A).withConfig({componentId:"sc-757f1f64-0"})(["align-items:center;justify-content:space-between;button{padding:0;}"]),Z=(0,z.I4)(c.A).withConfig({componentId:"sc-757f1f64-1"})(["width:100%;$ > svg{height:14px;width:14px;}"]);function V(e){let{children:t}=e,{t:n}=(0,r.A)(),[l,i]=(0,b.useState)(!1);return(0,o.jsxs)(c.A,{flexDirection:"column",alignItems:"center",children:[(0,o.jsx)(U,{children:(0,o.jsx)(H.d,{exp
1anded:l,onClick:()=>i(!l),children:n(l?"Hide":"Info.detail")})}),l&&(0,o.jsx)(Z,{flexDirection:"column",children:t})]})}var $=n(208553),_=n(155018),q=n(567223),W=n.n(q);function Q(e){let{amount:t,shouldStrike:n,fontSize:l,mb:r="-4px"}=e,i=(0,_.h1)(t.currency.wrapped,W()(t.toSignificant(6)));return b.createElement(n?"s":b.Fragment,void 0,(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(T.A,{fontSize:l,bold:!0,mb:r,children:[t.toSignificant(6)," ",t.currency.symbol]}),(0,o.jsx)($.A,{unit:" USD",color:"textSubtle",prefix:"~$",fontSize:"12px",decimals:2,value:i||0})]}))}var Y=n(311560),K=n(107600),G=n(446271),J=n(312680),X=n(28192),ee=n(634892),et=n(796259),en=function(e){return e.D30="30D",e.D60="60D",e.D90="90D",e}({}),eo=function(e){return e.WITHDRAW="withdraw",e.HARVEST="harvest",e}({});en.D30,en.D60,en.D90;let el={};var er=n(818663),ei=n(378385),es=n(131619),ea=n(555967),ec=n(779597);let ed=e=>{let{userShares:t}=e;return!!(t&&t.gt(0))},eu=e=>{let{userShares:t,locked:n}=e;return ed({userShares:t})&&!!n};var ex=function(e){return e[e.None=0]="None",e[e.Flexible=1]="Flexible",e[e.Locked=2]="Locked",e[e.LockedEnd=3]="LockedEnd",e[e.AfterBurning=4]="AfterBurning",e}({}),ep=n(107723),eh=n(17581),em=n(53670),ef=n(782739);function ej(){let e=(0,ea.rt)(),{chainId:t}=(0,em.ax)(),{data:n}=(0,ef.Qo)({abi:e.abi,address:e.address,functionName:"getCurrentDay",query:{enabled:!0},chainId:t,watch:!0});return n||0}function eA(e){var t,n;let{amountDeposit:o,lockPeriod:l,apr:r,unlockAPR:i,poolEndDay:s,lastDayAction:a}=e,c=ej(),d=a+l,u=null==o||null==(t=o.multiply(d>s?s-a:l))?void 0:t.multiply(r.divide(365)),x=null==o||null==(n=o.multiply(c<=d?0:c>=s?s-d:c-d))?void 0:n.multiply(i.divide(365));return(0,b.useMemo)(()=>({projectedReturnAmount:u.add(x),amountDeposit:o}),[o,u,x])}var ey=n(889551);function ek(e){let{lockPeriod:t,poolEndDay:n}=e,l=ej();if(!t||!n)return null;let r=l+t;return(0,o.jsx)(o.Fragment,{children:(0,ey.H)(86400*(r>n?n:r)+43200)})}var eb=n(530957);let eg=(0,z.I4)(T.A).withConfig({componentId:"sc-72213e7c-0"})(["text-decoration:line-through;"]),ev=e=>{let{value:t,newValue:n}=e;return(0,eb.A)(n)||(0,eb.A)(t)||t===n?(0,o.jsx)(T.A,{bold:!0,fontSize:"16px",children:t||"-"}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(eg,{bold:!0,fontSize:"16px",mr:"4px",children:t}),"->",(0,o.jsx)(T.A,{bold:!0,color:"failure",ml:"4px",fontSize:"16px",children:n})]})},eC=e=>{let{title:t,value:n,newValue:l}=e;return(0,o.jsxs)(c.A,{alignItems:"center",justifyContent:"space-between",children:[(0,o.jsx)(T.A,{color:"textSubtle",textTransform:"uppercase",bold:!0,fontSize:"12px",children:t}),(0,o.jsx)(c.A,{alignItems:"center",children:(0,o.jsx)(ev,{value:n,newValue:l})})]})};function ew(e){let{lockPeriod:t}=e,{t:n}=(0,r.A)(),l=ej(),i=l+t;return(0,o.jsx)(eC,{title:n("Duration"),value:n("%lockPeriod% days",{lockPeriod:t}),newValue:n("%lockPeriod% days",{lockPeriod:i-l})})}function eP(e){let{stakeAmount:t,lockAPR:n,boostAPR:l,unlockAPR:i,isBoost:s,lockPeriod:a,lastDayAction:d,poolEndDay:u,isUnstakeView:x,alreadyStakedAmount:p,disableStrike:h,calculator:m,unlockTime:f}=e,{t:j}=(0,r.A)(),A=(0,b.useMemo)(()=>s?l:n,[l,s,n]),y=(0,b.useMemo)(()=>p||O.eF.fromRawAmount(t.currency,"0"),[p,t.currency]),k=ej(),{projectedReturnAmount:g}=eA({amountDeposit:t.add(y),lastDayAction:(y.greaterThan(0)&&t.equalTo(0)?d:k)||0,lockPeriod:a||0,apr:A,poolEndDay:u,unlockAPR:i});return(0,o.jsxs)(L.k0,{children:[x?null:(0,o.jsx)(eC,{title:j("Stake Amount"),value:y.greaterThan(0)?y.toSignificant(5):t.toSignificant(5),newValue:y.greaterThan(0)?t.add(y).toSignificant(5):t.toSignificant(5)}),!x&&a?y.greaterThan(0)&&t.greaterThan(0)?(0,o.jsx)(ew,{lockPeriod:a}):(0,o.jsxs)(c.A,{alignItems:"center",justifyContent:"space-between",children:[(0,o.jsx)(T.A,{fontSize:12,textTransform:"uppercase",color:"textSubtle",bold:!0,children:j("Duration")}),(0,o.jsxs)(T.A,{bold:!0,children:[a," ",j("days")]})]}):null,(0,o.jsxs)(c.A,{alignItems:"center",justifyContent:"space-between",children:[(0,o.jsx)(T.A,{fontSize:12,textTransform:"uppercase",color:"textSubtle",bold:!0,children:j("APR")}),(0,o.jsxs)(T.A,{bold:!0,children:[null==A?void 0:A.toSignificant(2),"%"]})]}),l&&n?(0,o.jsxs)(c.A,{alignItems:"center",justifyContent:"space-between",children:[(0,o.jsx)(T.A,{fontSize:12,textTransform:"uppercase",color:"textSubtle",bold:!0,children:j("Locked Cake Boost")}),(0,o.jsxs)(T.A,{bold:!0,children:[l.divide(n).divide(100).toSignificant(2),"x"]})]}):null,(0,o.jsxs)(c.A,{alignItems:"center",justifyContent:"space-between",children:[(0,o.jsx)(T.A,{fontSize:12,textTransform:"uppercase",color:"textSubtle",bold:!0,children:j("Stake Period Ends")}),(0,o.jsx)(T.A,{color:y.greaterThan(0)?"failure":void 0,bold:!0,children:f?(0,ey.H)(f):(0,o.jsx)(ek,{lockPeriod:a,poolEndDay:u})})]}),(0,o.jsxs)(c.A,{alignItems:"baseline",justifyContent:"space-between",children:[(0,o.jsx)(T.A,{fontSize:12,textTransform:"uppercase",color:"textSubtle",bold:!0,children:j("Projected Return")}),(0,o.jsxs)(c.A,{children:[(0,o.jsx)(v.Ay,{style:{textAlign:"end"},children:(0,o.jsx)(Q,{shouldStrike:x&&!h,amount:g})}),m]})]})]})}var eS=n(334404),eL=n(282304),eD=n(326763),eI=n(614325),eM=n(779243),eE=n(226464),eT=n(673115),eF=n(63544),eR=n(150103),eB=n(227883),eN=n(450253),eO=n.n(eN),eH=n(262453),ez=n(623895),eU=n(389512),eZ=n(419041),eV=n(681422);function e$(e){let{boostDayPercent:t,lockDayPercent:n,unlockDayPercent:o}=e;return(0,b.useMemo)(()=>({boostAPR:new Y.QE(t||0,1e9).multiply(365),lockAPR:new Y.QE(n||0,1e9).multiply(365),unlockAPR:new Y.QE(o||0,1e9).multiply(365)}),[t,n,o])}var e_=n(310085);function eq(e){let{check:t,setCheck:n}=e;return(0,o.jsxs)(c.A,{alignItems:"center",mb:"16px",children:[(0,o.jsx)("div",{style:{flex:"none",alignSelf:"flex-start"},children:(0,o.jsx)(e_.A,{scale:"sm",checked:t,onChange:()=>n(e=>!e)})}),(0,o.jsxs)(T.A,{fontSize:"14px",ml:"8px",children:["By checking this box, I understand that my funds will be custodied by Binance Earn. ",(0,o.jsx)("br",{}),"For more information please read"," ",(0,o.jsx)(eT.A,{style:{display:"inline",fontSize:"14px"},href:"https://docs.pancakeswap.finance/products/simple-staking/terms-and-conditions",external:!0,children:"the Terms & Conditions."})]})]})}var eW=n(898719);function eQ(e){let{children:t,style:n}=e;return(0,o.jsx)(C.A,{style:n,outline:!0,variant:"secondary",startIcon:(0,o.jsx)(B.A,{style:{marginRight:"0px"},width:"18px",color:"secondary"}),children:t})}function eY(e){let{tokenTitle:t,token:n,lockPeriod:l,isEnded:i}=e,{t:s}=(0,r.A)();return(0,o.jsxs)(c.A,{alignItems:"center",children:[(0,o.jsx)(eW.Z,{currency:n,size:"32px"}),(0,o.jsx)(d.A,{scale:"lg",mx:"8px",children:t}),l?(0,o.jsxs)(eQ,{children:[l,"D ",i?s("Ended"):null]}):null]})}function eK(e){let{stakeCurrencyAmount:t,poolEndDay:n,lockAPR:l,boostAPR:i,unlockAPR:s,lockPeriod:a,isBoost:d}=e,{t:u}=(0,r.A)();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(et.y,{color:"textSubtle",children:u("Overview")}),(0,o.jsx)(L.Al,{mb:"16px",children:(0,o.jsxs)(c.A,{justifyContent:"space-between",children:[(0,o.jsxs)(v.Ay,{children:[(0,o.jsx)(et.y,{fontSize:"12px",color:"textSubtle",children:u("Stake Amount")}),(0,o.jsx)(Q,{amount:t})]}),(0,o.jsxs)(v.Ay,{style:{textAlign:"end"},children:[(0,o.jsx)(et.y,{fontSize:"12px",color:"textSubtle",children:u("Ends In")}),(0,o.jsxs)(T.A,{bold:!0,children:[a," ",u("days")]}),(0,o.jsxs)(T.A,{color:"textSubtle",fontSize:"12px",marginTop:"-4px",children:["On ",(0,o.jsx)(ek,{lockPeriod:a,poolEndDay:n})]})]})]})}),(0,o.jsx)(et.y,{textTransform:"uppercase",bold:!0,mb:"8px",children:u("Position Details")}),(0,o.jsx)(eP,{isUnstakeView:!0,disableStrike:!0,poolEndDay:n,stakeAmount:t,isBoost:d,lockAPR:l,boostAPR:i,unlockAPR:s,lockPeriod:a})]})}let eG=(0,z.I4)(S.A).withConfig({componentId:"sc-3a763c67-0"})(["flex-grow:1;"]);function eJ(e){var t,n;let{stakingToken:l,pools:i,initialLockPeriod:s,stakedPeriods:a,body:d,head:u,hideStakeButton:x,stakedPositions:h=[],onBack:m,title:f,useNative:j}=e,{t:A}=(0,r.A)(),[y,k]=(0,b.useState)(""),[g,C]=(0,b.useState)(!1),[w,P]=(0,b.useState)(!1),[L,I]=(0,b.useState)(!1),M=(0,eZ.Ay)(),[F,R]=(0,b.useState)(0);(0,b.useEffect)(()=>{k(""),R(0)},[L]);let B=M.wrapped.equals(l),N=j&&L,O=(0,b.useMemo)(()=>N?M:l,[N,M,l]),H=(0,b.useMemo)(()=>h.filter(e=>0>=eO().unix(e.endLockTime).diff(eO()())).map(e=>e.pool.lockPeriod),[h]),[z,U]=(0,b.useState)(null==s?(null==(t=E()(i.filter(e=>!H.includes(e.lockPeriod))))?void 0:t.lockPeriod)||0:s),Z=(0,b.useMemo)(()=>null==h?void 0:h.find(e=>e.pool.lockPeriod===z),[z,h]),V=(0,b.useMemo)(()=>Y.eF.fromRawAmount(O,Z?Z.userInfo.userDeposit.toString():"0"),[Z,O]),$=(0,b.useMemo)(()=>i.find(e=>e.lockPeriod===z),[z,i]),q=function(e){let{minBoostAmount:t,boostDayPercent:n}=e,{locked:o,amount:l}=function(){let e=(0,ea.iQ)(er.e1.CakeVault),{account:t,chainId:n}=(0,em.W7)(),{data:o}=(0,ef.Qo)({chainId:n,abi:null==e?void 0:e.abi,address:null==e?void 0:e.address,functionName:"userInfo",args:[t],query:{enabled:!!t}}
1);return(0,b.useMemo)(()=>{var e;if(!Array.isArray(o))return{locked:!1,amount:(0,ei.zR)(new p.A(0))};let[t,,,,,n,,l,r]=o,i=(e=>{let{userShares:t,locked:n,lockEndTime:o}=e;return!!o&&"0"!==o&&eu({userShares:t,locked:n})&&Date.now()>new Date(1e3*parseInt(o)).getTime()+1e3*er.$H})(e={userShares:new p.A(t),locked:l,lockEndTime:n.toString()})?4:(e=>{let{userShares:t,locked:n,lockEndTime:o}=e;return!!o&&"0"!==o&&eu({userShares:t,locked:n})&&Date.now()>=1e3*parseInt(o)&&Date.now()<=new Date(1e3*parseInt(o)).getTime()+1e3*er.$H})(e)?3:eu(e)?2:+!!ed(e);return{locked:ex.Locked===i,amount:(0,ei.zR)(new p.A(r))}},[o])}();return!!(n>0&&o&&l.gte((0,ei.zR)(new p.A(t||"0"))))}({minBoostAmount:null==$?void 0:$.minBoostAmount,boostDayPercent:null==$?void 0:$.boostDayPercent}),{balance:Q}=(0,eV.OD)(),{balance:K}=(0,eV.Ay)(null==l||null==(n=l.wrapped)?void 0:n.address),G=(0,b.useMemo)(()=>N?new p.A(null==Q?void 0:Q.toString()):K,[Q,N,K]),{fetchWithCatchTxError:J,loading:X}=(0,eU.A)(),ee=(0,ea.rt)(),{callWithGasPrice:en}=(0,ez.M)(),{toastSuccess:eo}=(0,eS.d)(),el=(0,_.h1)(O,W()(y)),es=(0,ei.MS)(new p.A(y),O.decimals),ec=Y.eF.fromRawAmount(O,es.gt(0)?es.toString():"0"),ep=Y.eF.fromRawAmount(l,es.gt(0)?es.toString():"0"),eh=Y.eF.fromRawAmount(O,$?$.totalDeposited.toString():"0"),ej=Y.eF.fromRawAmount(O,$?$.maxDeposit:"0"),eA=Y.eF.fromRawAmount(O,$?$.minDeposit:"0"),ey=Y.eF.fromRawAmount(O,$?$.maxPoolAmount:"0"),ek="",eb=ec.add(V);ec.greaterThan(G.toString())?ek=A("Insufficient %symbol% balance",{symbol:O.symbol}):eb.greaterThan(ej)?ek=A("Maximum %amount% %symbol%",{amount:ej.toSignificant(2),symbol:O.symbol}):ec.lessThan(eA)?ek=A("Minimum %amount% %symbol%",{amount:eA.toSignificant(2),symbol:O.symbol}):ec.add(eh).greaterThan(ey)&&(ek=A("Maximum pool %amount% %symbol%",{amount:ey.toSignificant(2),symbol:O.symbol}));let{approvalState:eg,approveCallback:ev}=(0,eH.en)(ec,null==ee?void 0:ee.address),eC=(0,b.useCallback)(async()=>{let e=await J(()=>en(ee,"deposit",[null==$?void 0:$.poolIndex,es.toString()],{value:N?BigInt(es.toString()):0n}));(null==e?void 0:e.status)&&(eo(A("Staked!"),(0,o.jsx)(eB.G,{txHash:e.transactionHash,children:A("Your funds have been staked in the pool")})),C(!0))},[en,N,J,ee,es,null==$?void 0:$.poolIndex,A,eo]),ew=(0,b.useCallback)(e=>{if(e){let t=Math.floor(new p.A(e).multipliedBy((0,eF.E)(O.decimals)).dividedBy(G).multipliedBy(100).toNumber());R(t>100?100:t)}else R(0);k(e)},[O.decimals,G]),eP=(0,b.useCallback)(e=>{if(e>0){let t=G.dividedBy(100).multipliedBy(e);k((0,ei.cB)(t,O.decimals,O.decimals))}else k("");R(e)},[O.decimals,G]),eN=!!a.find(e=>e===z),{boostAPR:e_,lockAPR:eW,unlockAPR:eQ}=e$((0,b.useMemo)(()=>({boostDayPercent:(null==$?void 0:$.boostDayPercent)||0,lockDayPercent:(null==$?void 0:$.lockDayPercent)||0,unlockDayPercent:(null==$?void 0:$.unlockDayPercent)||0}),[null==$?void 0:$.boostDayPercent,null==$?void 0:$.lockDayPercent,null==$?void 0:$.unlockDayPercent])),eJ=(0,b.useMemo)(()=>({alreadyStakedAmount:V,stakeCurrencyAmount:ec,positionStakeCurrencyAmount:ep,setLockPeriod:U,lockPeriod:z,isStaked:eN,boostAPR:e_,lockAPR:eW,unlockAPR:eQ,isBoost:q,poolEndDay:(null==$?void 0:$.endDay)||0,lastDayAction:Z?Z.userInfo.lastDayAction:0}),[V,ec,ep,z,eN,e_,eW,eQ,q,null==$?void 0:$.endDay,Z]),eX=function(e){let t=(0,b.useRef)();return(0,b.useEffect)(()=>{t.current=e},[e]),t.current}(V);return((0,b.useEffect)(()=>{eX&&!V.equalTo(eX)&&k("")},[V,eX]),g)?(0,o.jsx)(eL.Ay,{title:(0,o.jsx)(eY,{token:O,tokenTitle:`${A("Stake")} ${null==O?void 0:O.symbol}`}),width:["100%","100%","420px"],maxWidth:["100%","100%","420px"],children:(0,o.jsx)(eK,{isBoost:q,stakeCurrencyAmount:V.add(ec),poolEndDay:eJ.poolEndDay,lockAPR:eW,boostAPR:e_,unlockAPR:eQ,lockPeriod:z})}):(0,o.jsxs)(eL.Ay,{title:f||(0,o.jsx)(eY,{token:O,tokenTitle:`${A("Stake")} ${null==O?void 0:O.symbol}`}),width:["100%","100%","420px"],maxWidth:["100%","100%","420px"],onBack:m,children:[u?u():null,(0,o.jsxs)(c.A,{alignItems:"center",justifyContent:"space-between",mb:"8px",children:[(0,o.jsx)(et.y,{textTransform:"uppercase",bold:!0,children:A("Stake Amount")}),(0,o.jsxs)(c.A,{alignItems:"center",minWidth:"70px",children:[(0,o.jsx)(eR.Zm,{currency:O,size:"24px"}),(0,o.jsx)(T.A,{ml:"4px",bold:!0,children:O.symbol})]})]}),(0,o.jsx)(eD.A,{value:y,onUserInput:ew,currencyValue:`~${el||0} USD`,decimals:O.decimals}),(0,o.jsx)(T.A,{color:"textSubtle",textAlign:"right",fontSize:"12px",m:"8px 0",children:A("Balance: %balance%",{balance:(0,ei.cB)(G,O.decimals)})}),(0,o.jsx)(v.Ay,{children:(0,o.jsx)(eI.A,{min:0,max:100,value:F,onValueChanged:eP,name:"stake",valueLabel:`${F}%`,step:1})}),(0,o.jsxs)(c.A,{alignItems:"center",justifyContent:"space-between",mt:"8px",mb:"16px",children:[(0,o.jsx)(eG,{scale:"xs",width:"100%",mx:"2px",variant:"tertiary",onClick:()=>eP(25),children:"25%"}),(0,o.jsx)(eG,{scale:"xs",width:"100%",mx:"2px",variant:"tertiary",onClick:()=>eP(50),children:"50%"}),(0,o.jsx)(eG,{scale:"xs",width:"100%",mx:"2px",variant:"tertiary",onClick:()=>eP(75),children:"75%"}),(0,o.jsx)(eG,{scale:"xs",width:"100%",mx:"2px",variant:"tertiary",onClick:()=>eP(100),children:A("Max.fill-max")})]}),B?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(c.A,{ml:"auto",alignItems:"center",justifyContent:"space-between",width:"100%",children:[(0,o.jsxs)(et.y,{textTransform:"uppercase",bold:!0,children:[A("Stake as")," BNB"]}),(0,o.jsx)(eM.A,{id:"receive-as-wnative",scale:"sm",checked:L,onChange:()=>I(e=>!e)})]}),L?(0,o.jsx)(eE.A,{variant:"warning",my:"8px",children:(0,o.jsx)(eE.J,{children:"You will receive WBNB if you withdraw your staked BNB."})}):null]}):null,(0,o.jsx)(D.A,{}),"function"==typeof d?d(eJ):d,x?null:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(eq,{check:w,setCheck:P}),ek?(0,o.jsx)(S.A,{disabled:!0,style:{minHeight:"48px"},children:ek}):es.gt(0)&&eg!==eH.h$.APPROVED?(0,o.jsx)(S.A,{disabled:!es.gt(0)||eg===eH.h$.PENDING||eg===eH.h$.UNKNOWN,style:{minHeight:"48px"},onClick:ev,children:eg===eH.h$.PENDING?A("Enabling"):A("Enable.Approval")}):(0,o.jsx)(S.A,{disabled:!es.gt(0)||X||!!ek||!w,style:{minHeight:"48px"},onClick:eC,children:X?A("Confirming"):A("Confirm")}),G.eq(0)?(0,o.jsx)(S.A,{as:eT.A,external:!0,style:{width:"100%",marginTop:"8px",paddingTop:"16px",paddingBottom:"16
1px"},href:`/swap?outputCurrency=${O.symbol}`,variant:"secondary",children:A("Get %symbol%",{symbol:O.symbol})}):null]})]})}function eX(e){let{stakeAmount:t,lockAPR:n,boostAPR:l,unlockAPR:r,isBoost:i,lockPeriod:s,lastDayAction:a,poolEndDay:c}=e,d=(0,b.useMemo)(()=>i?l:n,[l,i,n]),u=(0,b.useMemo)(()=>Y.eF.fromRawAmount(t.currency,"0"),[t.currency]),x=ej(),{projectedReturnAmount:p}=eA({amountDeposit:t.add(u),lastDayAction:u.greaterThan(0)&&t.equalTo(0)?a:x,lockPeriod:s||0,apr:d,poolEndDay:c,unlockAPR:r}),h=(0,_.h1)(p.currency,W()(null==p?void 0:p.toSignificant(2)));return(0,o.jsx)(K.Ay,{earningTokenSymbol:p.currency.symbol,calculatorState:{data:{roiUSD:h||0,roiTokens:p?W()(null==p?void 0:p.toSignificant(2)):0,roiPercentage:d?W()(null==d?void 0:d.toSignificant(2)):0},controls:{mode:G.Or.ROI_BASED_ON_PRINCIPAL}}})}function e0(e){let{stakingToken:t,pools:n,initialLockPeriod:l,hideBackButton:i}=e,s=(0,b.useMemo)(()=>n.map(e=>e.lockPeriod),[n]),{t:a}=(0,r.A)(),d=(0,J.jN)(),u=(0,b.useCallback)(()=>{d.onDismiss()},[d]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(X.A,{height:"24px",variant:"text",scale:"sm",onClick:e=>{e.stopPropagation(),d.onOpen()},children:(0,o.jsx)(ee.A,{color:"textSubtle",ml:"0.25em",width:"24px"})}),(0,o.jsx)(J.aF,{...d,onDismiss:u,closeOnOverlayClick:!0,children:(0,o.jsx)(eJ,{useNative:!0,title:a("ROI Calculator"),onBack:i?void 0:()=>d.onDismiss(),hideStakeButton:!0,stakingToken:t,pools:n,initialLockPeriod:l,stakedPeriods:s,body:e=>{let{setLockPeriod:t,stakeCurrencyAmount:l,lockPeriod:r,boostAPR:i,lockAPR:s,unlockAPR:d,poolEndDay:u,lastDayAction:x,isBoost:p}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(et.y,{textTransform:"uppercase",bold:!0,mb:"8px",children:a("Stake Duration")}),(0,o.jsx)(c.A,{mb:"16px",children:n.map(e=>(0,o.jsxs)(S.A,{scale:"md",variant:e.lockPeriod===r?"subtle":"light",width:"100%",mx:"2px",onClick:n=>{n.stopPropagation(),t(e.lockPeriod)},children:[e.lockPeriod,"D"]},e.lockPeriod))}),(0,o.jsx)(eX,{lastDayAction:x,poolEndDay:u,stakeAmount:l,lockAPR:s,boostAPR:i,isBoost:p,unlockAPR:d,lockPeriod:r}),(0,o.jsxs)(v.Ay,{mb:"16px",mt:"16px",children:[(0,o.jsx)(et.y,{textTransform:"uppercase",bold:!0,mb:"8px",children:a("Position Overview")}),(0,o.jsx)(eP,{lastDayAction:x,poolEndDay:u,stakeAmount:l,lockAPR:s,boostAPR:i,isBoost:p,unlockAPR:d,lockPeriod:r})]})]})}})})]})}function e1(e){let{lockPeriod:t,stakingToken:n,boostDayPercent:l,lockDayPercent:r,unlockDayPercent:i,pools:s}=e,{boostAPR:a,lockAPR:d}=e$({boostDayPercent:l,lockDayPercent:r,unlockDayPercent:i});return(0,o.jsxs)(c.A,{justifyContent:"space-between",alignItems:"center",children:[(0,o.jsxs)(T.A,{children:[t,"D APR:"]}),(0,o.jsxs)(c.A,{alignItems:"center",children:[a.greaterThan(0)?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.A,{width:"18px",color:"success"}),(0,o.jsxs)(T.A,{mx:"4px",color:"success",bold:!0,children:["Up to ",a.toSignificant(2),"%"]})]}):null,(0,o.jsx)(T.A,{children:a.greaterThan(0)?(0,o.jsxs)("s",{children:[d.toSignificant(2),"%"]}):(0,o.jsxs)(o.Fragment,{children:[d.toSignificant(2),"%"]})}),(0,o.jsx)(e0,{hideBackButton:!0,stakingToken:n,initialLockPeriod:t,pools:s})]})]})}function e2(e){let{pool:t,stakedPositions:n}=e,[o,l]=(0,b.useState)(null),r=(0,b.useMemo)(()=>n.filter(e=>0>=eO().unix(e.endLockTime).diff(eO()())).map(e=>e.pool.lockPeriod),[n]),i=(0,b.useMemo)(()=>n.filter(e=>eO().unix(e.endLockTime).diff(eO()())>0).map(e=>e.pool.lockPeriod),[n]),s=(0,b.useMemo)(()=>t.pools.map((e,t)=>r.includes(e.lockPeriod)?t:void 0),[r,t.pools]),a=(0,b.useMemo)(()=>t.pools.map((e,t)=>i.includes(e.lockPeriod)?t:void 0),[i,t.pools]),c=null!==o?t.pools[o]:void 0;return{setSelectedPeriodIndex:l,selectedPeriodIndex:o,selectedPool:c,claimedIndexes:s,lockedIndexes:a}}function e3(e){return new Y.QE(e,1e9).multiply(365)}function e6(e){let{minLockDayPercent:t,maxLockDayPercent:n}=e,l=e3(t),r=e3(n);return(0,o.jsxs)(o.Fragment,{children:[l.toSignificant(2),"% ~ ",r.toSignificant(2),"%"]})}function e7(e){let{selectedPeriodIndex:t,selectedPool:n,pool:l,hideCalculator:r}=e;return null!==t&&n?(0,o.jsxs)(c.A,{alignItems:"center",children:[e3(n.boostDayPercent).greaterThan(0)?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.A,{width:"18px",color:"success"}),(0,o.jsxs)(T.A,{mx:"4px",color:"success",bold:!0,children:["Up to ",e3(n.boostDayPercent).toSignificant(2),"%"]})]}):null,(0,o.jsx)(T.A,{children:e3(n.boostDayPercent).greaterThan(0)?(0,o.jsxs)("s",{children:[e3(n.lockDayPercent).toSignificant(2),"%"]}):(0,o.jsxs)(o.Fragment,{children:[e3(n.lockDayPercent).toSignificant(2),"%"]})}),r?null:(0,o.jsx)(e0,{hideBackButton:!0,stakingToken:n.token,initialLockPeriod:n.lockPeriod,pools:l.pools})]}):(0,o.jsxs)(c.A,{alignItems:"center",children:[(0,o.jsx)(T.A,{bold:!0,children:(0,o.jsx)(e6,{minLockDayPercent:l.minLockDayPercent,maxLockDayPercent:l.maxLockDayPercent})}),r?null:(0,o.jsx)(e0,{hideBackButton:!0,stakingToken:l.token,pools:l.pools,initialLockPeriod:null==n?void 0:n.lockPeriod},t)]})}
1function e5(e){let{title:t,detail:n,alignItems:l="center"}=e;return(0,o.jsxs)(c.A,{alignItems:l,justifyContent:"space-between",mb:"8px",children:[(0,o.jsx)(T.A,{fontSize:["14px","14px","16px"],textAlign:"left",children:t}),n]})}function e9(e){let{children:t,pool:n,stakedPositions:l}=e,{t:i}=(0,r.A)(),s=O.eF.fromRawAmount(n.token,n.totalDeposited.toNumber()),{selectedPeriodIndex:a,setSelectedPeriodIndex:d,claimedIndexes:u,lockedIndexes:x,selectedPool:p}=e2({pool:n,stakedPositions:l});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e5,{title:i("APR:"),detail:(0,o.jsx)(e7,{selectedPeriodIndex:a,selectedPool:p,pool:n})}),(0,o.jsx)(e5,{title:i("Stake Periods:"),detail:(0,o.jsx)(F.A,{activeIndex:null!=a?a:n.pools.length,onItemClick:e=>{[...u,...x].includes(e)||d(e)},scale:"sm",variant:"subtle",children:n.pools.map((e,t)=>(0,o.jsxs)(R.A,{width:"48px",children:[u.includes(t)?(0,o.jsx)(B.A,{color:"secondary"}):null,x.includes(t)?(0,o.jsx)(N.A,{color:"secondary"}):null,e.lockPeriod,"D"]},e.lockPeriod))})}),(0,o.jsx)(e5,{alignItems:"baseline",title:i("Total Staked:"),detail:(0,o.jsx)(v.Ay,{style:{textAlign:"end"},children:(0,o.jsx)(Q,{amount:s})})}),(0,o.jsx)(c.A,{flexDirection:"column",width:"100%",mb:"8px",children:t(a,d)}),(0,o.jsx)(V,{children:n.pools.map(e=>(0,o.jsx)(e1,{stakingToken:n.token,lockPeriod:e.lockPeriod,pools:n.pools,boostDayPercent:e.boostDayPercent,lockDayPercent:e.lockDayPercent,unlockDayPercent:e.unlockDayPercent},e.lockPeriod))})]})}var e4=n(296123),e8=n(112824),te=n(464279),tt=n.n(te);function tn(e){let{lockPeriod:t}=e,{t:n}=(0,r.A)();return(0,o.jsxs)(c.A,{mt:"8px",children:[(0,o.jsx)(e8.A,{style:{alignSelf:"baseline",marginTop:"4px",marginRight:"8px"},color:"textSubtle",mr:"4px"}),(0,o.jsxs)(T.A,{fontSize:"14px",color:"textSubtle",children:[n("Funds will not be available for withdrawal for the first %days% days, and subsequently an early withdrawal fee will be applied if amount is unstaked before locked period is up. ",{days:tt()(t/3)}),(0,o.jsx)(eT.A,{style:{display:"inline",fontSize:"14px"},href:"https://docs.pancakeswap.finance/products/simple-staking#when-can-i-claim-my-rewards",external:!0,children:n("Click here for more information")})]})]})}function to(e){let{stakingToken:t,pools:n,children:l,initialLockPeriod:i,stakedPositions:s,setSelectedPeriodIndex:a}=e,{address:d}=(0,eh.F)(),{t:u}=(0,r.A)(),x=(0,J.jN)(),p=(0,b.useMemo)(()=>s.filter(e=>eO().unix(e.endLockTime).diff(eO()())>0).map(e=>e.pool.lockPeriod),[s]),h=(0,b.useMemo)(()=>s.filter(e=>0>=eO().unix(e.endLockTime).diff(eO()())).map(e=>e.pool.lockPeriod),[s]),m=s.length===n.length,f=ej(),j=(0,b.useCallback)(()=>{a&&a(null),x.onDismiss()},[x,a]);return d?(0,o.jsxs)(o.Fragment,{children:[l(x.onOpen,m),(0,o.jsx)(J.aF,{...x,onDismiss:j,closeOnOverlayClick:!0,children:(0,o.jsx)(eJ,{hideStakeButton:!0,useNative:!0,stakingToken:t,pools:n,initialLockPeriod:i,stakedPeriods:p,stakedPositions:s,body:e=>{let{setLockPeriod:l,alreadyStakedAmount:r,poolEndDay:i,stakeCurrencyAmount:s,lockPeriod:a,isStaked:d,boostAPR:x,lockAPR:p,unlockAPR:m,isBoost:j,lastDayAction:A}=e;return(0,o.jsxs)(o.Fragment,{children:[n.length>1?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(et.y,{textTransform:"uppercase",bold:!0,mb:"8px",children:u("Stake Duration")}),(0,o.jsx)(c.A,{children:n.map(e=>(0,o.jsxs)(S.A,{disabled:f+e.lockPeriod>e.endDay||h.includes(e.lockPeriod),scale:"md",variant:e.lockPeriod===a?"subtle":"light",width:"100%",mx:"2px",onClick:()=>l(e.lockPeriod),children:[e.lockPeriod,"D"]},e.lockPeriod))}),(0,o.jsx)(tn,{lockPeriod:a}),d?(0,o.jsx)(eE.A,{variant:"warning",my:"8px",children:(0,o.jsx)(eE.J,{children:`You already have a position in ${a}D lock period, adding to the position will restart locking and non-withdrawal period`})}):null,(0,o.jsx)(D.A,{})]}):null,(0,o.jsxs)(v.Ay,{mb:"16px",mt:"16px",children:[(0,o.jsx)(et.y,{textTransform:"uppercase",bold:!0,mb:"8px",children:u("Position Overview")}),(0,o.jsx)(eP,{isBoost:j,lastDayAction:A,alreadyStakedAmount:r,poolEndDay:i,stakeAmount:s,lockAPR:p,boostAPR:x,unlockAPR:m,lockPeriod:a,calculator:(0,o.jsx)(e0,{stakingToken:t,pools:n,initialLockPeriod:a})})]})]})}})})]}):(0,o.jsx)(e4.A,{})}let tl=(0,z.I4)(T.A).withConfig({componentId:"sc-7008bc68-0"})(["display:inline;"]);var tr=n(619005),ti=n(795904),ts=n(892977),ta=n(807543),tc=n(703258);function td(e){let{poolIndex:t,stakingToken:n,onSuccess:l}=e,{t:i}=(0,r.A)(),{toastSuccess:s,toastInfo:a}=(0,eS.d)(),{callWithGasPrice:c}=(0,ez.M)(),d=(0,b.useCallback)(()=>{a(i("Withdawal approval is pending"),(0,o.jsxs)(o.Fragment,{children:[i("Please come back to check later at a certain amount of time"),(0,o.jsx)(eT.A,{external:!0,href:"https://docs.pancakeswap.finance/products/simple-staking/faq#what-happens-in-the-withdrawal-process-when-withdrawal-approval-is-pending",children:i("Learn more")})]}))},[i,a]),{fetchWithCatchTxError:u,loading:x}=(0,eU.A)({throwCustomError:d}),p=(0,ea.rt)(),{chainId:h}=(0,em.W7)(),m=(0,tc.ge)(n.wrapped.address),{data:f}=(0,ef.Qo)({chainId:h,address:m.address,abi:m.abi,query:{enabled:!!p.address},functionName:"balanceOf",args:[p.address]}),j=O.eF.fromRawAmount(n,f||"0"),A=(0,b.useCallback)(async(e,n)=>{let o=await u(()=>c(p,e,[t]));if(null==o?void 0:o.status){let t=n.greaterThan(j)?i("Your action has been requested and we are processing the funds. Please check back in a couple of hours to request withdrawal of funds."):e===eo.HARVEST?i("Your harvest request has been submitted."):i("Your funds have been restaked in the pool"),r=(0,b.createElement)(eB.G,{txHash:o.transactionHash},t);s(i("Successfully submitted!"),r),l&&l()}},[c,u,p,l,t,j,i,s]);return(0,b.useMemo)(()=>({handleSubmission:A,pendingTx:x}),[A,x])}function tu(e){let{unstakeModal:t,lockPeriod:n,token:l,handleSubmission:i,stakeAmount:s,accrueInterest:a,loading:c,onBack:d}=e,{t:u}=(0,r.A)();return(0,o.jsx)(J.aF,{...t,closeOnOverlayClick:!0,children:(0,o.jsxs)(eL.Ay,{onBack:()=>{t.onDismiss(),d()},title:(0,o.jsx)(eY,{token:l,tokenTitle:l.symbol,lockPeriod:n,isEnded:!0}),width:["100%","100%","420px"],maxWidth:["100%",null,"420px"],children:[(0,o.jsxs)(L.R4,{mb:"16px",children:[(0,o.jsx)(T.A,{fontSize:"12px",textTransform:"uppercase",bold:!0,color:"textSubtle",textAlign:"left",children:u("Unstaked Amount")}),(0,o.jsx)(Q,{fontSize:"20px",amount:s})]}),(0,o.jsxs)(ta.A,{isActive:!0,mb:"16px",innerCardProps:{padding:"16px",o
1pacity:"0.9"},children:[(0,o.jsx)(T.A,{fontSize:"12px",textTransform:"uppercase",bold:!0,color:"textSubtle",textAlign:"left",children:u("Reward Amount")}),(0,o.jsx)(Q,{fontSize:"20px",amount:a})]}),(0,o.jsx)(S.A,{disabled:c,style:{minHeight:"48px",marginBottom:"8px"},onClick:()=>i(eo.WITHDRAW,s.add(a)),children:u(c?"Confirming":"Confirm Unstake")})]})})}function tx(e){let{token:t,lockPeriod:n,children:l,unlockTime:i,lockAPR:s,stakePositionUserInfo:a,poolIndex:d,boostAPR:u,poolEndDay:x}=e,{t:p}=(0,r.A)(),h=(0,J.jN)(),m=(0,J.jN)(),f=(0,b.useMemo)(()=>O.eF.fromRawAmount(t,a.userDeposit.toString()),[a.userDeposit,t]),j=(0,b.useMemo)(()=>a.boost?u:s,[u,s,a.boost]),A=(0,b.useMemo)(()=>O.eF.fromRawAmount(t,a.accrueInterest.toString()),[a.accrueInterest,t]),{handleSubmission:y,pendingTx:k}=td({poolIndex:d,stakingToken:t,onSuccess:()=>h.isOpen?h.onDismiss():null}),g=(0,ey.H)(i);return(0,o.jsxs)(o.Fragment,{children:[l(m.onOpen),(0,o.jsx)(J.aF,{...m,closeOnOverlayClick:!0,children:(0,o.jsxs)(eL.Ay,{title:(0,o.jsx)(eY,{tokenTitle:t.symbol,token:t,lockPeriod:n}),width:["100%","100%","420px"],maxWidth:["100%","","420px"],children:[(0,o.jsx)(et.y,{color:"textSubtle",children:p("Overview")}),(0,o.jsx)(L.R4,{mb:"16px",children:(0,o.jsxs)(c.A,{justifyContent:"space-between",children:[(0,o.jsxs)(v.Ay,{children:[(0,o.jsx)(et.y,{fontSize:"12px",color:"textSubtle",children:p("Stake Amount")}),(0,o.jsx)(Q,{fontSize:"20px",amount:f})]}),(0,o.jsxs)(v.Ay,{style:{textAlign:"end"},children:[(0,o.jsx)(et.y,{fontSize:"12px",color:"textSubtle",children:p("Fixed-staking Ends")}),(0,o.jsx)(T.A,{fontSize:"20px",bold:!0,color:"#D67E0A",mb:"-4px",children:p("Ended")}),(0,o.jsxs)(T.A,{color:"#D67E0A",fontSize:12,children:["On ",g]})]})]})}),(0,o.jsx)(et.y,{textTransform:"uppercase",bold:!0,mb:"8px",children:p("Details")}),(0,o.jsxs)(ta.A,{mb:"16px",isActive:!0,innerCardProps:{padding:"16px",opacity:"0.9"},children:[(0,o.jsxs)(c.A,{justifyContent:"space-between",alignItems:"start",children:[(0,o.jsx)(T.A,{fontSize:"14px",textTransform:"uppercase",bold:!0,color:"textSubtle",textAlign:"left",children:p("Rewards")}),(0,o.jsx)(v.Ay,{style:{textAlign:"end"},children:(0,o.jsx)(Q,{amount:A})})]}),(0,o.jsxs)(c.A,{justifyContent:"space-between",alignItems:"center",children:[(0,o.jsx)(T.A,{fontSize:"14px",textTransform:"uppercase",bold:!0,color:"textSubtle",textAlign:"left",children:p("Restake period ends on")}),(0,o.jsx)(T.A,{textAlign:"end",bold:!0,children:(0,o.jsx)(ek,{lockPeriod:n,poolEndDay:x})})]}),(0,o.jsxs)(c.A,{justifyContent:"space-between",mb:"8px",alignItems:"center",children:[(0,o.jsx)(T.A,{fontSize:"14px",textTransform:"uppercase",bold:!0,color:"textSubtle",textAlign:"left",children:p("APR")}),(0,o.jsxs)(T.A,{bold:!0,children:[j.toSignificant(2),"%"]})]})]}),(0,o.jsx)(S.A,{variant:"secondary",style:{minHeight:"48px",marginBottom:"8px"},onClick:()=>{m.onDismiss(),h.onOpen()},children:p("Claim Reward & Unstake")})]})}),(0,o.jsx)(tu,{onBack:m.onOpen,loading:k,stakeAmount:f,accrueInterest:A,handleSubmission:y,token:t,lockPeriod:n,unstakeModal:h})]})}function tp(e){let{children:t,style:n}=e;return(0,o.jsx)(C.A,{style:n,variant:"secondary",startIcon:(0,o.jsx)(N.A,{style:{marginRight:"0px"},width:"18px",color:"white"}),children:t})}function th(e){let{stakingToken:t,pools:n,children:l,initialLockPeriod:i,stakedPeriods:s,setSelectedPeriodIndex:a,amountDeposit:d,stakedPositions:u}=e,{address:x}=(0,eh.F)(),{t:p}=(0,r.A)(),h=(0,J.jN)();return x?(0,o.jsxs)(o.Fragment,{children:[l(h.onOpen),(0,o.jsx)(J.aF,{...h,onDismiss:()=>{a&&a(null),h.onDismiss()},closeOnOverlayClick:!0,children:(0,o.jsx)(eJ,{hideStakeButton:!0,useNative:!0,stakedPositions:u,stakingToken:t,pools:n,initialLockPeriod:i,stakedPeriods:s,head:()=>(0,o.jsx)(eE.A,{variant:"primary",mb:"24px",children:(0,o.jsx)(eE.J,{children:p("Adding stake to the position will restart the lock and withdrawal period.")})}),body:e=>{let{unlockAPR:l,isBoost:r,stakeCurrencyAmount:i,alreadyStakedAmount:s,poolEndDay:a,lockPeriod:u,boostAPR:x,lockAPR:h,lastDayAction:m,positionStakeCurrencyAmount:f}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(tn,{lockPeriod:u}),(0,o.jsxs)(v.Ay,{mb:"16px",mt:"16px",children:[(0,o.jsx)(et.y,{textTransform:"uppercase",bold:!0,mb:"8px",children:p("Overview")}),(0,o.jsx)(L.k0,{children:(0,o.jsxs)(c.A,{justifyContent:"space-between",children:[(0,o.jsxs)(v.Ay,{children:[(0,o.jsxs)(c.A,{children:[(0,o.jsx)(et.y,{mr:"4px",children:p("New")}),(0,o.jsx)(et.y,{color:"textSubtle",children:p("Staked Amount")})]}),(0,o.jsx)(Q,{amount:d.add(f)})]}),(0,o.jsxs)(v.Ay,{style:{textAlign:"end"},children:[(0,o.jsx)(et.y,{color:"textSubtle",children:p("Stake Period")}),(0,o.jsxs)(T.A,{bold:!0,children:[u," Days"]})]})]})})]}),(0,o.jsxs)(v.Ay,{mb:"16px",mt:"16px",children:[(0,o.jsx)(et.y,{textTransform:"uppercase",bold:!0,mb:"8px",children:p("Position Details")}),(0,o.jsx)(eP,{alreadyStakedAmount:s,poolEndDay:a,lastDayAction:m,stakeAmount:i,isBoost:r,boostAPR:x,unlockAPR:l,lockAPR:h,lockPeriod:u,calculator:(0,o.jsx)(e0,{stakingToken:t,pools:n,initialLockPeriod:u})})]})]})}})})]}):(0,o.jsx)(e4.A,{})}function tm(e){let{token:t,lockPeriod:n,lockAPR:l,stakePositionUserInfo:i,withdrawalFee:s,poolIndex:a,boostAPR:d,unlockAPR:u,pools:x,poolEndDay:p,lastDayAction:h,unlockTime:m,children:f}=e,{t:j}=(0,r.A)(),A=(0,J.jN)(),y=(0,b.useMemo)(()=>O.eF.fromRawAmount(t,i.userDeposit.toString()),[i.userDeposit,t]),k=(0,b.useMemo)(()=>O.eF.fromRawAmount(t,i.accrueInterest.toString()),[i.accrueInterest,t]),g=(0,b.useMemo)(()=>new O.QE(null!=s?s:0,1e4),[s]),C=(0,b.useMemo)(()=>y.multiply(g).add(k),[k,y,g]),w=(0,b.useMemo)(()=>y.add(k).subtract(C),[k,y,C]),{handleSubmission:P,pendingTx:D}=td({poolIndex:a,stakingToken:t,onSuccess:()=>A.onDismiss()}),I=function(e){let{lockPeriod:t,lastDayAction:n}=e;return ej()-n<=t/3}({lastDayAction:h,lockPeriod:n});return(0,o.jsxs)(o.Fragment,{children:[f(A.onOpen,I),(0,o.jsx)(J.aF,{...A,closeOnOverlayClick:!0,children:(0,o.jsxs)(eL.Ay,{title:(0,o.jsx)(eY,{token:t,tokenTitle:t.symbol,lockPeriod:n}),width:["100%","100%","420px"],maxWidth:["100%",null,"420px"],children:[(0,o.jsx)(et.y,{mb:"4px",children:j("Unstake Overview")}),(0,o.jsx)(L.R4,{mb:"16px",children:(0,o.jsxs)(c.A,{justifyContent:"space-between",children:[(0,o.jsxs)(v.Ay,{children:[(0,o.jsx)(T.A,{fontSize:"12px",textTransform:"uppercase",bold:!0,color:"textSubtle",children:j("Withdrawal Fee")}),(0,o.jsxs)(T.A,{color:"#D67E0A",fontSize:"20px",bold:!0,mb:"-4px",children:[C.toSignificant(2)," ",t.symbol]}),(0,o.jsx)(T.A,{fontSize:"12px",color:"#D67E0A",children:j("for early withdrawal")})]}),(0,o.jsxs)(v.Ay,{style:{textAlign:"end"},children:[(0,o.jsx)(T.A,{fontSize:"12px",textTransform:"uppercase",bold:!0,color:"textSubtle",children:j("You will get")}),(0,o.jsx)(Q,{fontSize:"20px",amount:w})]})]})}),(0,o.jsx)(et.y,{color:"textSubtle",mb:"4px",children:j("Position Details")}),(0,o.jsx)(eP,{isUnstakeView:!0,unlockTime:m,lastDayAction:i.lastDayAction,lockPeriod:n,stakeAmount:y,lockAPR:l,boostAPR:d,unlockAPR:u,isBoost:i.boost,poolEndDay:p,calculator:(0,o.jsx)(e0,{stakingToken:t,pools:x,initialLockPeriod:n})}),(0,o.jsx)(eE.A,{variant:"warning",my:"16px",children:(0,o.jsx)(eE.J,{children:j("No rewards are credited for early withdrawal, and commission is required")})}),(0,o.jsx)(S.A,{disabled:D,style:{minHeight:"48px"},onClick:()=>{P(eo.WITHDRAW,w)},children:j(D?"Confirming":"Confirm Unstake")})]})})]})}let tf=(0,z.I4)(c.A).withConfig({componentId:"sc-29938e54-0"})(["width:100%;align-items:center;margin-right:16px;border-right:1px solid ",";"],e=>{let{theme:t}=e;return t.colors.cardBorder});function tj(e){let{apr:t,shouldUnlock:n,unlockTime:l,accrueInterest:i,tokenSymbol:s,projectedReturnAmount:a}=e,{t:c}=(0,r.A)();return(0,o.jsxs)(v.Ay,{children:[(0,o.jsxs)(T.A,{color:"textSubtle",fontSize:"12px",children:["APR: ",t.toSignificant(2),"%"]}),(0,o.jsx)(T.A,{color:"textSubtle",fontSize:"12px",children:n?"Fixed Staking ended":`Ends on ${eO().unix(l).format("MMM D, YYYY")}`}),(0,o.jsx)(T.A,{color:"textSubtle",fontSize:"12px",children:n?(0,o.jsxs)(o.Fragment,{children:[c("Reward"),": ",i.toSignificant(3)," ",s]}):(0,o.jsxs)(o.Fragment,{children:[c("Est. Reward"),": ",a.toSignificant(3)," ",s]})})]})}function tA(e){let{amountDeposit:t,shouldUnlock:n,lockPeriod:l,children:r}=e;return(0,o.jsxs)(c.A,{children:[(0,o.jsxs)(tf,{children:[(0,o.jsx)(c.A,{children:(0,o.jsx)(v.Ay,{children:(0,o.jsx)(Q,{amount:t})})}),(0,o.jsx)(tr.A,{width:"24px"}),n?(0,o.jsxs)(eQ,{children:[l,"D"]}):(0,o.jsxs)(tp,{children:[l,"D"]})]}),r]})}function ty(e){let{amountDeposit:t,lockPeriod:n,shouldUnlock:l,children:r}=e;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(c.A,{mb:"8px",justifyContent:"space-between",width:"100%",children:[(0,o.jsx)(c.A,{children:(0,o.jsx)(v.Ay,{children:(0,o.jsx)(Q,{amount:t})})}),l?(0,o.jsxs)(eQ,{children:[n,"D"]}):(0,o.jsxs)(tp,{children:[n,"D"]})]}),r]})}function tk(e){var t;let{token:n,stakePositionUserInfo:l,unlockTime:s,lockPeriod:a,poolIndex:d,lockDayPercent:u,boostDayPercent:x,unlockDayPercent:p,withdrawalFee:h,pool:m,stakedPeriods:f,stakePosition:j,showRow:A}=e,{t:y}=(0,r.A)(),{boostAPR:k,lockAPR:g,unlockAPR:v}=e$({lockDayPercent:u,boostDayPercent:x,unlockDayPercent:p}),C=(0,b.useMemo)(()=>O.eF.fromRawAmount(n,l.userDeposit.toString()),[l.userDeposit,n]),{projectedReturnAmount:w}=eA({amountDeposit:C,lastDayAction:l.lastDayAction,lockPeriod:a,apr:l.boost?k:g,poolEndDay:j.pool.endDay,unlockAPR:v}),P=(0,b.useMemo)(()=>O.eF.fromRawAmount(n,l.accrueInterest.toString()),[l.accrueInterest,n]),L=(null==(t=m.pools.find(e=>e.poolIndex===d))?void 0:t.endDay)||0,D=0>=eO().unix(s).diff(eO()()),I=(0,b.useMemo)(()=>[j],[j]),M=j.userInfo.boost?k:g,E=ej(),T=(0,o.jsxs)(c.A,{justifyContent:"space-between",width:"100%",children:[(0,o.jsx)(tj,{apr:M,shouldUnlock:D,unlockTime:s,accrueInterest:P,tokenSymbol:n.symbol,projectedReturnAmount:w}),(0,o.jsx)(tx,{poolEndDay:L,stakedPeriods:f,stakePosition:j,pool:m,lockAPR:g,boostAPR:k,unlockAPR:v,poolIndex:d,stakePositionUserInfo:l,token:n,lockPeriod:a,unlockTime:s,children:e=>D?(0,o.jsx)(S.A,{height:"auto",onClick:e,children:y("Claim")}):null}),D?null:(0,o.jsxs)(c.A,{children:[(0,o.jsx)(tm,{pools:m.pools,unlockTime:s,poolEndDay:L,token:n,lockPeriod:a,unlockAPR:v,lockAPR:g,boostAPR:k,stakePositionUserInfo:l,withdrawalFee:h,poolIndex:d,lastDayAction:l.lastDayAction,children:(e,t)=>(0,o.jsx)(X.A,{disabled:t,variant:"secondary",onClick:e,mr:"6px",children:(0,o.jsx)(ti.A,{color:"primary",width:"14px"})})}),(0,o.jsx)(th,{stakedPositions:I,amountDeposit:C,stakedPeriods:f,stakingToken:n,pools:m.pools,initialLockPeriod:a,children:e=>(0,o.jsx)(X.A,{disabled:m.token.equals(i.x_.cake)||E+a>L,variant:"secondary",onClick:e,children:(0,o.jsx)(ts.A,{color:"primary",width:"14px"})})})]})]});return A?(0,o.jsx)(tA,{amountDeposit:C,shouldUnlock:D,lockPeriod:a,children:T}):(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(ty,{amountDeposit:C,lockPeriod:a,shouldUnlock:D,children:T})})}function tb(e){var t;let{pool:n,stakedPositions:l}=e,{t:i}=(0,r.A)();return(0,o.jsxs)(x.b.StyledCard,{children:[(0,o.jsx)(c.A,{px:"24px",pt:"24px",alignItems:"center",justifyContent:"space-between",children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(I.Ay,{currency:n.token,size:"56px"}),(0,o.jsxs)(v.Ay,{children:[(0,o.jsx)(d.A,{scale:"lg",textAlign:"end",children:n.token.symbol}),new p.A((null==(t=E()(n.pools))?void 0:t.boostDayPercent)||"0").gt(0)?(0,o.jsx)(C.A,{outline:!0,variant:"success",startIcon:(0,o.jsx)(w.A,{width:"18px",color:"success"}),children:i("Locked Cake Boost")}):null]})]})}),(0,o.jsx)(P.A,{children:(0,o.jsx)(e9,{pool:n,stakedPositions:l,children:(e,t)=>{var r;return(0,o.jsxs)(o.Fragment,{children:[l.length?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(tl,{color:"textSubtle",textTransform:"uppercase",bold:!0,fontSize:"12px",children:[l.length," ",i("Staked Position")]}),(0,o.jsx)(L.k0,{mb:"16px",mt:"8px",children:l.map((e,t)=>(0,o.jsxs)(b.Fragment,{children:[(0,o.jsx)(tk,{stakePosition:e,lockDayPercent:e.pool.lockDayPercent,boostDayPercent:e.pool.boostDayPercent,unlockDayPercent:e.pool.unlockDayPercent,lockPeriod:e.pool.lockPeriod,unlockTime:e.endLockTime,stakePositionUserInfo:e.userInfo,token:e.pool.token,poolIndex:e.pool.poolIndex,withdrawalFee:e.pool.withdrawalFee,pool:n,stakedPeriods:l.map(e=>e.pool.lockPeriod)}),t<l.length-1?(0,o.jsx)(v.Ay,{my:"16px",children:(0,o.jsx)(D.A,{})}):null]},e.pool.poolIndex))})]}):null,(null==n||null==(r=n.pools)?void 0:r.length)?(0,o.jsx)(to,{setSelectedPeriodIndex:t,initialLockPeriod:null!==e?n.pools[e].lockPeriod:0,pools:n.pools,stakingToken:n.token,stakedPositions:l,children:(e,t)=>t?null:(0,o.jsx)(S.A,{disabled:!0,onClick:e,children:i("Stake")})},e):null]})}})})]})}var tg=n(796898),tv=n(38395),tC=n(867635),tw=n(508129),tP=n(83976);let tS=e=>{let{pool:t,stakedPositions:n}=e,{t:l}=(0,r.A)(),i=O.eF.fromRawAmount(t.token,t.totalDeposited.toNumber()),{isMobile:s,isTablet:a}=(0,tg.A)(),{selectedPeriodIndex:d,setSelectedPeriodIndex:u,claimedIndexes:x,lockedIndexes:p,selectedPool:h}=e2({pool:t,stakedPositions:n}),m=n.length===t.pools.length;return(0,o.jsxs)(o.Fragment,{children:[s?(0,o.jsxs)(tw.I,{style:{border:"none",paddingBottom:"0px"},display:"flex",alignItems:"center",children:[(0,o.jsx)(tv.Z,{currency:t.token,size:"32px"}),(0,o.jsxs)(c.A,{flexDirection:"column",justifyContent:"center",alignItems:"start",ml:"8px",children:[(0,o.jsx)(T.A,{color:"secondary",textTransform:"uppercase",fontSize:"12px",bold:!0,mb:"-4px",children:l("Stake & Earn")}),(0,o.jsx)(T.A,{fontSize:"16px",bold:!0,children:t.token.symbol})]}),(0,o.jsxs)(v.Ay,{ml:"auto",pr:"4px",children:[(0,o.jsx)(T.A,{color:"secondary",textAlign:"end",textTransform:"uppercase",fontSize:"12px",bold:!0,mb:"-4px",children:l("APR")}),(0,o.jsx)(e7,{hideCalculator:s,selectedPeriodIndex:d,selectedPool:h,pool:t})]})]}):null,(0,o.jsx)(tC.ExpandRow,{initialActivity:!1,panel:(0,o.jsxs)(tP.m7,{expanded:!0,children:[(0,o.jsxs)(tP.K4,{mt:"8px",children:[s||a?(0,o.jsxs)(c.A,{justifyContent:"space-between",mb:"8px",children:[(0,o.jsx)(T.A,{textAlign:"left",children:l("Total Staked:")}),(0,o.jsx)(v.Ay,{style:{textAlign:"end"},children:(0,o.jsx)(Q,{amount:i})})]}):null,t.pools.map(e=>(0,o.jsx)(e1,{stakingToken:t.token,lockPeriod:e.lockPeriod,pools:t.pools,boostDayPercent:e.boostDayPercent,lockDayPercent:e.lockDayPercent,unlockDayPercent:e.unlockDayPercent},e.lockPeriod))]}),(0,o.jsxs)(tP.M0,{style:{alignItems:s?"center":"start"},children:[(null==n?void 0:n.length)?(0,o.jsx)(tP.M0,{width:"100%",pl:["0px","0px","0px","0px","32px"],children:(0,o.jsx)(L.k0,{mb:"16px",mt:"8px",children:n.map((e,l)=>(0,o.jsxs)(b.Fragment,{children:[(0,o.jsx)(tk,{showRow:m&&!s,stakePosition:e,lockDayPercent:e.pool.lockDayPercent,boostDayPercent:e.pool.boostDayPercent,unlockDayPercent:e.pool.unlockDayPercent,lockPeriod:e.pool.lockPeriod,unlockTime:e.endLockTime,stakePositionUserInfo:e.userInfo,token:e.pool.token,poolIndex:e.pool.poolIndex,withdrawalFee:e.pool.withdrawalFee,pool:t,stakedPeriods:n.map(e=>e.pool.lockPeriod)}),l<n.length-1?(0,o.jsx)(v.Ay,{my:"16px",children:(0,o.jsx)(D.A,{})}):null]},e.pool.poolIndex))})}):null,m?null:(0,o.jsx)(tP.M0,{width:"100%",children:(0,o.jsxs)(L.k0,{mb:"16px",mt:"8px",ml:["0px","0px","32px","32px","32px"],style:{display:"flex",flexDirection:"column"},children:[(0,o.jsxs)(v.Ay,{display:"inline",children:[(0,o.jsx)(tl,{color:"textSubtle",textTransform:"uppercase",bold:!0,fontSize:"12px",mr:"4px",children:l("Stake")}),(0,o.jsx)(tl,{color:"secondary",bold:!0,fontSize:"12px",children:`${t.token.symbol} `})]}),(0,o.jsx)(to,{setSelectedPeriodIndex:u,initialLockPeriod:null==h?void 0:h.lockPeriod,pools:t.pools,stakingToken:t.token,stakedPositions:n,children:e=>(0,o.jsx)(S.A,{disabled:!0,onClick:e,children:l("Stake")})},d)]})})]})]}),children:(0,o.jsxs)(o.Fragment,{children:[s?null:(0,o.jsxs)(tw.I,{minWidth:"120px",display:"flex",alignItems:"center",children:[(0,o.jsx)(tv.Z,{currency:t.token,size:"48px"}),(0,o.jsxs)(c.A,{flexDirection:"column",justifyContent:"center",alignItems:"start",ml:"8px",children:[(0,o.jsx)(T.A,{color:"secondary",textTransform:"uppercase",fontSize:"12px",bold:!0,mb:"-4px",children:l("Stake & Earn")}),(0,o.jsx)(T.A,{fontSize:"16px",bold:!0,children:t.token.symbol})]})]}
1),(0,o.jsx)(tw.I,{children:(0,o.jsxs)(tC.CellContent,{children:[(0,o.jsx)(T.A,{fontSize:"12px",color:"textSubtle",textAlign:"left",mb:"4px",children:l("Stake Periods")}),(0,o.jsx)(F.A,{activeIndex:null!=d?d:t.pools.length,onItemClick:(e,t)=>{t.stopPropagation(),[...x,...p].includes(e)||u(e)},scale:"sm",variant:"subtle",children:t.pools.map((e,t)=>(0,o.jsxs)(R.A,{width:"48px",children:[x.includes(t)?(0,o.jsx)(B.A,{color:"secondary"}):null,p.includes(t)?(0,o.jsx)(N.A,{color:"secondary"}):null,e.lockPeriod,"D"]},e.lockPeriod))})]})}),s?null:(0,o.jsx)(tw.I,{children:(0,o.jsxs)(tC.CellContent,{children:[(0,o.jsx)(T.A,{fontSize:"12px",color:"textSubtle",textAlign:"left",mb:"4px",children:l("APR")}),(0,o.jsx)(e7,{hideCalculator:s,selectedPeriodIndex:d,selectedPool:h,pool:t})]})}),s||a?null:(0,o.jsx)(tw.I,{children:(0,o.jsxs)(tC.CellContent,{children:[(0,o.jsx)(T.A,{fontSize:"12px",color:"textSubtle",textAlign:"left",mb:"4px",children:l("Total Staked:")}),(0,o.jsx)(Q,{mb:"0px",amount:i})]})})]})})]})},tL=()=>{let{t:e}=(0,r.A)(),[t,n]=(0,b.useState)(s.n.TABLE),l=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,ea.rt)(),n=(0,es.Wc)(),{chainId:o}=(0,em.ax)(),{data:l}=(0,ef.Qo)({abi:t.abi,address:t.address,functionName:"poolLength",chainId:o,args:[],query:{enabled:e}}),r=l?W()(l.toString()):0,i=Number.isSafeInteger(r)&&r>=0?r:0,s=(0,ec.YS)({contract:(0,b.useMemo)(()=>({abi:t.abi,address:t.address}),[t]),functionName:"pools",args:(0,b.useMemo)(()=>Array.from(Array(i).keys()).map(e=>[BigInt(e)]),[i]),options:{enabled:e&&!!i}});return(0,b.useMemo)(()=>(null==s?void 0:s.length)?s.map((e,t)=>{var l;let{result:r}=e;if(!r||!o)return null;let i=n[(0,ep.b)(r[0])];if(null==(l=el[o])?void 0:l.includes(i.address))return null;let s=r[5];return s<30?null:{poolIndex:t,token:i,endDay:r[1],lockDayPercent:r[2],boostDayPercent:r[3],unlockDayPercent:r[4],lockPeriod:s,withdrawalCut1:r[6],withdrawalCut2:r[7],withdrawalFee:r[7],depositEnabled:r[8],maxDeposit:r[9],minDeposit:r[10],totalDeposited:new p.A(r[11]),maxPoolAmount:r[12],minBoostAmount:r[13]}}).filter(Boolean):[],[o,s,n])}(),m=function(e){let t=(0,ea.rt)(),{address:n}=(0,eh.F)(),o=(0,es.Wc)(),l=(0,ec.YS)({contract:(0,b.useMemo)(()=>({abi:t.abi,address:t.address}),[t]),functionName:"getUserInfo",args:(0,b.useMemo)(()=>n?e.map(e=>[e,n]):[],[n,e])}),r=ej();return(0,b.useMemo)(()=>Array.isArray(l)?l.map((t,n)=>{let{result:l}=t;if(!Array.isArray(l)||new p.A(l[0].userInfo.userDeposit).eq(0))return;let i=l[0],s=86400*i.pool.endDay+43200,a=i.endLockTime>s?s:i.endLockTime,c=i.pool.lockPeriod/3,{lastDayAction:d}=i.userInfo,{withdrawalCut1:u,withdrawalCut2:x}=i.pool,h=null,m=r-d;m<=2*c?h=u:m<=3*c&&(h=x);let f=(0,g.QR)(i.pool.token),j=f&&o[f];if(j)return{...i,pool:{...i.pool,withdrawalFee:h,poolIndex:e[n],token:j},endLockTime:a}}).filter(Boolean):[],[r,e,l,o])}((0,b.useMemo)(()=>l.map(e=>e.poolIndex),[l])),j=(0,b.useMemo)(()=>l.filter(e=>e.token).reduce((e,t)=>Array.isArray(e[t.token.address])?(e[t.token.address].push(t),e):{[t.token.address]:[t],...e},{}),[l]),y=(0,b.useMemo)(()=>Object.keys(j).reduce((e,t)=>{let n=j[t],o=A()(n.map(e=>e.lockDayPercent||e.boostDayPercent)),l=f()(n.map(e=>e.boostDayPercent||e.lockDayPercent)),r=n.reduce((e,t)=>e.plus(t.totalDeposited),new p.A(0));return{[t]:{token:n[0].token,minLockDayPercent:o,maxLockDayPercent:l,totalDeposited:r,pools:n},...e}},{}),[j]),v=(0,b.useMemo)(()=>{let[e,t]=k()(Object.keys(y),e=>[i.x_.wbnb.address,i.x_.cake.address].includes(e));return[...e,...t]},[y]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.A,{children:(0,o.jsx)(c.A,{justifyContent:"space-between",flexDirection:["column",null,null,"row"],children:(0,o.jsxs)(c.A,{flex:"1",flexDirection:"column",mr:["8px",0],children:[(0,o.jsx)(d.A,{as:"h1",scale:"xxl",color:"secondary",mb:"24px",children:e("Simple Staking")}),(0,o.jsx)(d.A,{scale:"md",color:"text",children:e("Single-Sided Simple Earn Staking")})]})})}),(0,o.jsxs)(h.A,{title:e("Pools"),children:[(0,o.jsx)(c.A,{mb:"24px",children:(0,o.jsx)(s.S,{idPrefix:"clickFarm",viewMode:t,onToggle:n})}),t===s.n.TABLE?(0,o.jsx)(x.b.PoolsTable,{children:v.map(e=>(0,o.jsx)(tS,{stakedPositions:m.filter(t=>{let{pool:n}=t;return(0,g.ho)(n.token.address,y[e].token.address)}),pool:y[e]},e))}):(0,o.jsx)(u.A,{children:v.map(e=>(0,o.jsx)(tb,{pool:y[e],stakedPositions:m.filter(t=>{let{pool:n}=t;return(0,g.ho)(n.token.address,y[e].token.address)})},e))})]})]})},tD=()=>(0,o.jsx)(tL,{});tD.chains=[l.nU.BSC];let tI=tD},102891:(e,t,n)=>{"use strict";n.d(t,{T8:()=>x,uE:()=>p,wB:()=>h});var o=n(311560),l=n(970645),r=n(603485),i=n(745765),s=n(955647),a=n(987212),c=n(121480),d=n(401368),u=n(178367);function x(e){if(!e)return{priceImpactWithoutFee:void 0,lpFeeAmount:null};let{routes:t,outputAmount:n,inputAmount:x}
1=e,m=new o.QE(0),f=o.eF.fromRawAmount(e.outputAmount.currency,0),j=!1;for(let n of t){let{inputAmount:t,pools:x,percent:A}=n,y=l.cK.subtract(x.reduce((t,n)=>{var s,x,m;let f=function(e){if(!e||"object"!=typeof e||!("displayFee"in e))return;let{displayFee:t}=e;return"number"==typeof t?t:void 0}(n);if(r.tj.isV2Pool(n))return void 0!==f?t.multiply(l.cK.subtract(new o.QE(f,1e6))):t.multiply(l.Yx);if(r.tj.isStablePool(n))return void 0!==f?t.multiply(l.cK.subtract(new o.QE(f,i.j0))):t.multiply(l.cK.subtract(n.fee));if(r.tj.isInfinityStablePool(n))return t.multiply(l.cK.subtract(new o.QE(BigInt(null!=(s=n.stableFee)?s:0),c.kz)));if(r.tj.isV3Pool(n))return t.multiply(l.cK.subtract(h(null!=f?f:n.fee)));if(r.tj.isInfinityClPool(n)||r.tj.isInfinityBinPool(n)){if(void 0!==f)return t.multiply(l.cK.subtract(new o.QE(f,1e6)));let r=n.fee;if(n.hooks&&!(0,d.ho)(n.hooks,a.Xd)){let t=(0,u.$Y)(e.inputAmount.currency.chainId,n.hooks);(null==t||null==(m=t.behaviors)||null==(x=m.dynamicFee)?void 0:x.defaultFee)&&(r=t.behaviors.dynamicFee.defaultFee)}let i=new o.QE(p(r,n.protocolFee).totalFee,1e6);return t.multiply(l.cK.subtract(i))}return t},l.cK));if(m=m.add(y.multiply(o.QE.toPercent((0,s.Qu)(A/100)||new o.fw(0)))),x.every(e=>r.tj.isV3Pool(e)?"sqrtRatioX96"in e:r.tj.isV2Pool(e)?"reserve0"in e&&"reserve1"in e&&e.reserve0.greaterThan(0)&&e.reserve1.greaterThan(0):r.tj.isStablePool(e)?"amplifier"in e&&"balances"in e&&e.amplifier>0n&&e.balances.every(e=>e.greaterThan(0)):r.tj.isInfinityClPool(e)?"sqrtRatioX96"in e:!r.tj.isInfinityBinPool(e)||"activeId"in e)){j=!0;try{let l=r.tj.getMidPrice(n);f=f.add(o.eF.fromRawAmount(e.outputAmount.currency,l.wrapped.quote(t.wrapped).quotient))}catch(t){console.error("Error calculating output amount:",t),f=o.eF.fromRawAmount(e.outputAmount.currency,0);break}}}if(!j)return{priceImpactWithoutFee:void 0!==e.priceImpactBps?new o.QE(e.priceImpactBps,1e4):void 0,lpFeeAmount:m.greaterThan(0)?x.multiply(m):o.eF.fromRawAmount(x.currency,0)};if(f.quotient===o.f2)return{priceImpactWithoutFee:void 0,lpFeeAmount:null};let A=f.subtract(n).divide(f);return{priceImpactWithoutFee:new o.QE(A.numerator,A.denominator),lpFeeAmount:x.multiply(m)}}function p(e,t){let n=(null!=t?t:0)&4095;return{totalFee:Number((n+(1e6-n)*e/1e6).toFixed(0)),lpFee:e,protocolFee:n}}function h(e){return new o.QE(e,100n*i.j0)}},114956:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(350979);n(25963);var l=n(257057);let r=e=>(0,o.jsx)(l.A,{viewBox:"0 0 14 14",...e,children:(0,o.jsx)("path",{d:"M6.99325 0.333252C3.31325 0.333252 0.333252 3.31992 0.333252 6.99992C0.333252 10.6799 3.31325 13.6666 6.99325 13.6666C10.6799 13.6666 13.6666 10.6799 13.6666 6.99992C13.6666 3.31992 10.6799 0.333252 6.99325 0.333252ZM9.14659 10.5933L6.99992 9.29992L4.85325 10.5933C4.59992 10.7466 4.28659 10.5199 4.35325 10.2333L4.91992 7.79325L3.03325 6.15992C2.81325 5.96659 2.93325 5.59992 3.22659 5.57325L5.71992 5.35992L6.69325 3.05992C6.80659 2.78659 7.19325 2.78659 7.30659 3.05992L8.27992 5.35325L10.7733 5.56659C11.0666 5.59325 11.1866 5.95992 10.9599 6.15325L9.07325 7.78659L9.63992 10.2333C9.70659 10.5199 9.39992 10.7466 9.14659 10.5933Z",fill:"#31D0AA"})})},150103:(e,t,n)=>{"use strict";n.d(t,{Zm:()=>o.Ay,gz:()=>i.A});var o=n(432594);n(350979),n(311560);var l=n(371309);n(247821),n(25963),n(856870);var r=n(680797);n(733775),n(389624),(0,r.I4)(l.A).withConfig({componentId:"sc-576e4e17-0"})(["width:",";height:",";border-radius:",";"],e=>{let{size:t}=e;return t},e=>{let{size:t}=e;return t},e=>{let{size:t}=e;return t}),r.I4.div.withConfig({componentId:"sc-576e4e17-1"})(["position:relative;display:flex;flex-direction:row;align-items:center;width:32px;img:last-child{margin-left:-4px;}&.farm{width:48px;margin-right:-24px;img:first-child{margin-bottom:14px;}img:last-child{margin-left:-14px;margin-top:14px;}svg:last-child{margin-left:-14px;margin-top:14px;}}"]);var i=n(831016)},166351:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(350979);n(25963);var l=n(257057);let r=e=>(0,o.jsx)(l.A,{viewBox:"0 0 18 18",...e,children:(0,o.jsx)("path",{d:"M4.10386 15.4522C3.67286 15.4522 3.30573 15.3006 3.00248 14.9974C2.69923 14.6941 2.54761 14.327 2.54761 13.896V4.10361C2.54761 3.67261 2.69923 3.30549 3.00248 3.00224C3.30573 2.69899 3.67286 2.54736 4.10386 2.54736H13.8962C14.3272 2.54736 14.6944 2.69899 14.9976 3.00224C15.3009 3.30549 15.4525 3.67261 15.4525 4.10361
1H9.45905C8.72692 4.10361 8.10136 4.36311 7.58236 4.88211C7.06336 5.40111 6.80386 6.02668 6.80386 6.7588V11.2498C6.80386 11.9819 7.06336 12.606 7.58236 13.122C8.10136 13.638 8.72692 13.896 9.45905 13.896H15.4525C15.4525 14.3307 15.3009 14.6988 14.9976 15.0002C14.6944 15.3016 14.3272 15.4522 13.8962 15.4522H4.10386ZM9.45905 12.5998C9.0908 12.5998 8.77223 12.4669 8.50336 12.201C8.23448 11.9351 8.10005 11.6181 8.10005 11.2498V6.7588C8.10005 6.39055 8.23448 6.07199 8.50336 5.80311C8.77223 5.53424 9.0908 5.3998 9.45905 5.3998H14.9935C15.3617 5.3998 15.6803 5.53424 15.9492 5.80311C16.218 6.07199 16.3525 6.39055 16.3525 6.7588V11.2498C16.3525 11.6181 16.218 11.9351 15.9492 12.201C15.6803 12.4669 15.3617 12.5998 14.9935 12.5998H9.45905ZM12.15 10.1248C12.4625 10.1248 12.7282 10.0154 12.9469 9.79668C13.1657 9.57793 13.275 9.3123 13.275 8.9998C13.275 8.6873 13.1657 8.42168 12.9469 8.20293C12.7282 7.98418 12.4625 7.8748 12.15 7.8748C11.8375 7.8748 11.5719 7.98418 11.3532 8.20293C11.1344 8.42168 11.025 8.6873 11.025 8.9998C11.025 9.3123 11.1344 9.57793 11.3532 9.79668C11.5719 10.0154 11.8375 10.1248 12.15 10.1248Z",fill:"currentColor"})})},247821:(e,t,n)=>{"use strict";n.d(t,{H:()=>o.H9});var o=n(559180)},262453:(e,t,n)=>{"use strict";n.d(t,{CT:()=>v,en:()=>g,h$:()=>b});var o=n(769932),l=n(311560),r=n(734658),i=n(334404),s=n(530957),a=n(633571),c=n(25963),d=n(306411),u=n(733775),x=n(661742),p=n(189346),h=n(660876),m=n(339819),f=n(17581),j=n(53670),A=n(623895),y=n(555967),k=n(665548),b=function(e){return e[e.UNKNOWN=0]="UNKNOWN",e[e.NOT_APPROVED=1]="NOT_APPROVED",e[e.PENDING=2]="PENDING",e[e.APPROVED=3]="APPROVED",e}({});function g(e,t){var n;let{addToTransaction:l=!0,targetAmount:b,enablePaymaster:g=!1,overrideChainId:v}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{address:C}=(0,f.F)(),{chainId:w}=(0,j.ax)(),P=null!=v?v:w,{callWithGasPrice:S}=(0,A.M)(P),{t:L}=(0,o.A)(),{toastError:D}=(0,i.d)(),I=(null==e||null==(n=e.currency)?void 0:n.isToken)?e.currency:void 0,{allowance:M,refetch:E}=(0,k.Q)({token:I,owner:null!=C?C:void 0,spender:t,chainId:P}),T=(0,d.yI)(null==I?void 0:I.address,t,P),{isPaymasterAvailable:F,isPaymasterTokenActive:R,sendPaymasterTransaction:B}=(0,a.E)(),[N,O]=(0,c.useState)(T),[H,z]=(0,c.useState)(!1);(0,c.useEffect)(()=>{T?O(!0):N&&E().then(()=>{O(!1)})},[T,N,E]);let U=(0,c.useMemo)(()=>{var n;return e&&t?(null==(n=e.currency)?void 0:n.isNative)?3:M?M.lessThan(e)?N?2:1:3:0:0},[e,M,N,t]),Z=(0,y.dV)(null==I?void 0:I.address,P),V=(0,d.OQ)(P),$=(0,c.useCallback)(async function(n){var o,i;let a,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1!==U;if(c&&(0,s.A)(n)){D(L("Error"),L("Approve was called unnecessarily")),console.error("approve was called unnecessarily"),z(!0);return}if(I||console.error("no token"),!Z){D(L("Error"),L("Cannot find contract of the token %tokenAddress%",{tokenAddress:null==I?void 0:I.address})),console.error("tokenContract is null"),z(!0);return}if(!e&&(0,s.A)(n)){D(L("Error"),L("Missing amount to approve")),console.error("missing amount to approve"),z(!0);return}if(!t){D(L("Error"),L("No spender")),console.error("no spender"),z(!0);return}let d=!1,f=await Z.estimateGas.approve([t,r.Is],{account:Z.account}).catch(o=>{var l,i;return console.info("try estimate approve max failure",o),d=!0,Z.estimateGas.approve([t,null!=(i=null!=(l=null!=n?n:null==e?void 0:e.quotient)?l:b)?i:r.Is],{account:Z.account}).catch(e=>(console.error("estimate gas failure",e),D(L("Error"),L("Unexpected error. Could not estimate gas for the approve.")),z(!0),null))});if(!f)return;let j=null!=n?n:d&&null!=(i=null!=(o=null==e?void 0:e.quotient)?o:b)?i:r.Is;if(g&&F&&R){let e=(0,h.p)({abi:(0,m.U)(["function approve(address spender, uint256 amount) public returns (bool)"]),functionName:"approve",args:[t,j]});a=B({address:Z.address,gas:f,calldata:e},C)}else a=S(Z,"approve",[t,j],{gas:(0,u.KL)(f)}).then(e=>e.hash);return a.then(o=>{if(l&&I){var r,i,s;V({hash:o},{summary:`Approve ${null!=n?n:null==e||null==(r=e.currency)?void 0:r.symbol}`,translatableSummary:{text:"Approve %symbol%",data:{symbol:null!=(s=null==n?void 0:n.toString())?s:null==e||null==(i=e.currency)?void 0:i.symbol}},approval:{tokenAddress:I.address,spender:t,amount:j.toString()},type:"approve"})}return{hash:o}}).catch(e=>{throw(0,p.v)(e),console.error("Failed to approve token",e),(0,p.U)(e)||D(L("Error"),(0,x.rV)(e)),e})},[U,I,Z,e,t,S,b,D,L,l,V,C,F,R,B,g]),_=(0,c.useCallback)(async e=>$(e,!1),[$]),q=(0,c.useCallback)(()=>$(),[$]),W=(0,c.useCallback)(()=>$(0n),[$]),Q=(0,c.useCallback)(()=>_(0n),[_]);return{approvalState:U,approveCallback:q,approveNoCheck:_,revokeCallback:W,revokeNoCheck:Q,currentAllowance:M,isPendingError:H}}function v(e){let{token:t,minAmount:n,targetAmount:o,spender:r,addToTransaction:i}=e;return g((0,c.useMemo)(()=>
1{if(n&&t)return l.eF.fromRawAmount(t,n)},[n,t]),r,{addToTransaction:i,targetAmount:o})}},265449:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(350979);n(25963);var l=n(257057);let r=e=>(0,o.jsx)(l.A,{viewBox:"0 0 24 24",...e,children:(0,o.jsx)("path",{d:"M17.65 6.35C16.02 4.72 13.71 3.78 11.17 4.04C7.50002 4.41 4.48002 7.39 4.07002 11.06C3.52002 15.91 7.27002 20 12 20C15.19 20 17.93 18.13 19.21 15.44C19.53 14.77 19.05 14 18.31 14C17.94 14 17.59 14.2 17.43 14.53C16.3 16.96 13.59 18.5 10.63 17.84C8.41002 17.35 6.62002 15.54 6.15002 13.32C5.31002 9.44 8.26002 6 12 6C13.66 6 15.14 6.69 16.22 7.78L14.71 9.29C14.08 9.92 14.52 11 15.41 11H19C19.55 11 20 10.55 20 10V6.41C20 5.52 18.92 5.07 18.29 5.7L17.65 6.35Z"})})},287659:(e,t,n)=>{"use strict";n.d(t,{Y:()=>l}),n(311560);var o=n(970645);function l(e){return e?(null==e?void 0:e.lessThan(o.XT))?(null==e?void 0:e.lessThan(o.jz))?(null==e?void 0:e.lessThan(o.C1))?+(null==e||!e.lessThan(o.li)):2:3:4:0}},508195:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(350979);n(25963);var l=n(257057);let r=e=>(0,o.jsxs)(l.A,{viewBox:"0 0 40 40",...e,children:[(0,o.jsx)("path",{d:"M36.0112 3.33337L22.1207 13.6277L24.7012 7.56091L36.0112 3.33337Z",fill:"#E17726"}),(0,o.jsx)("path",{d:"M4.00261 3.33337L17.7558 13.7238L15.2989 7.56091L4.00261 3.33337Z",fill:"#E27625"}),(0,o.jsx)("path",{d:"M31.0149 27.2023L27.3227 32.8573L35.2287 35.0397L37.4797 27.3258L31.0149 27.2023Z",fill:"#E27625"}),(0,o.jsx)("path",{d:"M2.53386 27.3258L4.77116 35.0397L12.6772 32.8573L8.9987 27.2023L2.53386 27.3258Z",fill:"#E27625"}),(0,o.jsx)("path",{d:"M12.2518 17.6496L10.0419 20.9712L17.8793 21.3281L17.6048 12.8867L12.2518 17.6496Z",fill:"#E27625"}),(0,o.jsx)("path",{d:"M27.762 17.6494L22.3129 12.7905L22.1207 21.3279L29.9581 20.9711L27.762 17.6494Z",fill:"#E27625"}),(0,o.jsx)("path",{d:"M12.6772 32.8574L17.3989 30.5652L13.336 27.3809L12.6772 32.8574Z",fill:"#E27625"}),(0,o.jsx)("path",{d:"M22.6009 30.5652L27.3226 32.8574L26.6637 27.3809L22.6009 30.5652Z",fill:"#E27625"}),(0,o.jsx)("path",{d:"M27.3226 32.8575L22.6009 30.5653L22.9715 33.6399L22.9303 34.9301L27.3226 32.8575Z",fill:"#D5BFB2"}),(0,o.jsx)("path",{d:"M12.6772 32.8575L17.0694 34.9301L17.042 33.6399L17.3989 30.5653L12.6772 32.8575Z",fill:"#D5BFB2"}),(0,o.jsx)("path",{d:"M17.1518 25.3495L13.2262 24.1965L15.9988 22.92L17.1518 25.3495Z",fill:"#233447"}),(0,o.jsx)("path",{d:"M22.848 25.3495L24.001 22.92L26.801 24.1965L22.848 25.3495Z",fill:"#233447"}),(0,o.jsx)("path",{d:"M12.6773 32.8573L13.3635 27.2023L8.99876 27.3258L12.6773 32.8573Z",fill:"#CC6228"}),(0,o.jsx)("path",{d:"M26.6364 27.2023L27.3227 32.8573L31.0149 27.3258L26.6364 27.2023Z",fill:"#CC6228"}),(0,o.jsx)("path",{d:"M29.9581 20.9709L22.1207 21.3278L22.8482 25.3495L24.0011 22.92L26.8012 24.1965L29.9581 20.9709Z",fill:"#CC6228"}),(0,o.jsx)("path",{d:"M13.2263 24.1965L15.9989 22.92L17.1519 25.3495L17.8793 21.3278L10.0419 20.9709L13.2263 24.1965Z",fill:"#CC6228"}),(0,o.jsx)("path",{d:"M10.0419 20.9709L13.3361 27.3809L13.2263 24.1965L10.0419 20.9709Z",fill:"#E27525"}),(0,o.jsx)("path",{d:"M26.8011 24.1965L26.6638 27.3809L29.958 20.9709L26.8011 24.1965Z",fill:"#E27525"}),(0,o.jsx)("path",{d:"M17.8793 21.3278L17.1519 25.3494L18.0715 30.0985L18.2637 23.8396L17.8793 21.3278Z",fill:"#E27525"}),(0,o.jsx)("path",{d:"M22.1205 21.3278L21.7499 23.8258L21.9283 30.0985L22.848 25.3494L22.1205 21.3278Z",fill:"#E27525"}),(0,o.jsx)("path",{d:"M22.848 25.3496L21.9284 30.0987L22.601 30.5654L26.6638 27.381L26.8011 24.1967L22.848 25.3496Z",fill:"#F5841F"}),(0,o.jsx)("path",{d:"M13.2262 24.1967L13.336 27.381L17.3989 30.5654L18.0714 30.0987L17.1518 25.3496L13.2262 24.1967Z",fill:"#F5841F"}),(0,o.jsx)("path",{d:"M22.9303 34.93L22.9715 33.6398L22.6284 33.3378H17.3714L17.042 33.6398L17.0694 34.93L12.6772 32.8574L14.2145 34.1202L17.3302 36.2751H22.6696L25.7853 34.1202L27.3226 32.8574L22.9303 34.93Z",fill:"#C0AC9D"}),(0,o.jsx)("path",{d:"M22.601 30.5653L21.9284 30.0986H18.0715L17.3989 30.5653L17.0421 33.6399L17.3715 33.3379H22.6285L22.9716 33.6399L22.601 30.5653Z",fill:"#161616"}),(0,o.jsx)("path",{d:"M36.5875 14.3003L37.7542 8.61779L36.011 3.33337L22.6009 13.2846L27.7618 17.6493L35.0365 19.7768L36.6424 17.8964L35.9424 17.3886L37.0679 16.3728L36.2169 15.7003L37.3287 14.863L36.5875 14.3003Z",fill:"#763E1A"}),(0,o.jsx)("path",{d:"M2.24573 8.61779L3.42615 14.3003L2.67123 14.863L3.78302 15.7003L2.93202 16.3728L4.05753 17.3886L3.35752 17.8964L4.96343 19.7768L12.2518 17.6493L17.399 13.2846L4.00263 3.33337L2.24573 8.61779Z",fill:"#763E1A"}),(0,o.jsx)("path",{d:"M35.0365 19.777L27.7619 17.6495L29.958 20.9712L26.6638 27.3811L31.0149 27.3262H37.4797L35.0365 19.777Z",fill:"#F5841F"}),(0,o.jsx)("path",{d:"M12.2517 17.6495L4.96332 19.777L2.53386 27.3262H8.99869L13.336 27.3811L10.0419 20.9712L12.2517 17.6495Z",fill:"#F5841F"}),(0,o.jsx)("path",{d:"M22.1205 21.3276L22.6009 13.2843L24.701 7.56067H15.2988L17.3988 13.2843L17.8792 21.3276L18.0577 23.8531L18.0714 30.0984H21.9283L21.9421 23.8531L22.1205 21.3276Z",fill:"#F5841F"})]})}
1,512729:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(350979);n(25963);var l=n(257057);let r=e=>(0,o.jsxs)(l.A,{viewBox:"0 0 40 40",...e,children:[(0,o.jsx)("rect",{width:"40",height:"40",rx:"8",fill:"#9BED2D"}),(0,o.jsx)("path",{d:"M23.7588 15.666H16.2477C15.9286 15.666 15.6699 15.9246 15.6699 16.2437V23.7549C15.6699 24.0739 15.9286 24.3327 16.2477 24.3327H23.7588C24.0779 24.3327 24.3366 24.0739 24.3366 23.7549V16.2437C24.3366 15.9246 24.0779 15.666 23.7588 15.666Z",fill:"black"}),(0,o.jsx)("path",{d:"M15.0889 6.99902H7.57782C7.25873 6.99902 7 7.25764 7 7.57684V15.0879C7 15.4069 7.25873 15.6657 7.57782 15.6657H15.0889C15.4081 15.6657 15.6667 15.4069 15.6667 15.0879V7.57684C15.6667 7.25764 15.4081 6.99902 15.0889 6.99902Z",fill:"black"}),(0,o.jsx)("path",{d:"M32.423 6.99902H24.9118C24.5927 6.99902 24.334 7.25764 24.334 7.57684V15.0879C24.334 15.4069 24.5927 15.6657 24.9118 15.6657H32.423C32.7421 15.6657 33.0007 15.4069 33.0007 15.0879V7.57684C33.0007 7.25764 32.7421 6.99902 32.423 6.99902Z",fill:"black"}),(0,o.jsx)("path",{d:"M15.0889 24.332H7.57782C7.25873 24.332 7 24.5906 7 24.9097V32.4209C7 32.74 7.25873 32.9987 7.57782 32.9987H15.0889C15.4081 32.9987 15.6667 32.74 15.6667 32.4209V24.9097C15.6667 24.5906 15.4081 24.332 15.0889 24.332Z",fill:"black"}),(0,o.jsx)("path",{d:"M32.423 24.332H24.9118C24.5927 24.332 24.334 24.5906 24.334 24.9097V32.4209C24.334 32.74 24.5927 32.9987 24.9118 32.9987H32.423C32.7421 32.9987 33.0007 32.74 33.0007 32.4209V24.9097C33.0007 24.5906 32.7421 24.332 32.423 24.332Z",fill:"black"})]})},559180:(e,t,n)=>{"use strict";n.d(t,{H9:()=>x,k1:()=>j});var o=n(228876),l=n(311560),r=n(670420),i=n(760013),s=n.n(i),a=n(449229);let c={[o.nU.BSC]:"smartchain",[o.nU.ETHEREUM]:"ethereum",[o.nU.ARBITRUM_ONE]:"arbitrum",[o.nU.ZKSYNC]:"zksync",[o.nU.BASE]:"base",[o.nU.LINEA]:"linea",[o.nU.OPBNB]:"opbnb",[o.nU.MONAD_MAINNET]:"monad",[o.nU.ROBINHOOD]:"robinhood",[o.nU.ARC]:"arc"},d=s()(e=>e&&c[e.chainId]?`https://assets-cdn.trustwallet.com/blockchains/${c[e.chainId]}/assets/${(0,a.b)(e.address)}/logo.png`:null,e=>`${null==e?void 0:e.chainId}#${null==e?void 0:e.address}`),u=s()((e,t)=>e&&t&&c[t]?`https://assets-cdn.trustwallet.com/blockchains/${c[t]}/assets/${(0,a.b)(e)}/logo.png`:null,(e,t)=>`${t}#${e}`),x={[o.nU.BSC]:"",[o.nU.ETHEREUM]:"eth",[o.nU.ARBITRUM_ONE]:"arbitrum",[o.nU.ZKSYNC]:"zksync",[o.nU.LINEA]:"linea",[o.nU.BASE]:"base",[o.nU.OPBNB]:"opbnb",[o.nU.MONAD_MAINNET]:"monad",[o.nU.MONAD_TESTNET]:"monad-testnet",[o.nU.ROBINHOOD]:"robinhood",[o.nU.ARC]:"arc",[o.Cb.SOLANA]:"solana"},p=e=>{let t;if(!Object.keys(x).includes(String(e.chainId)))return null;if(e.chainId===o.Cb.SOLANA)t=e.address;else if(e.chainId===o.nU.ROBINHOOD)t=e.address.toLowerCase();else try{t=(0,a.b)(e.address)}catch{return null}return`https://tokens.pancakeswap.finance/images/${e.chainId===o.nU.BSC?"":`${x[e.chainId]}/`}${t}.png`},h=[r.E8.usdt,r.E8.usdc,r.x_.cake,r.x_.usdv,r.E8.wbtc,r.E8.weth,l.s6[o.nU.BSC],r.x_.busd,r.E8.dai].map(e=>{let{symbol:t}=e;return t}),m=s()(e=>f(null==e?void 0:e.symbol),e=>`logoUrls#${null==e?void 0:e.chainId}#${null==e?void 0:e.symbol}`),f=s()(e=>e&&h.includes(e)?`https://tokens.pancakeswap.finance/images/symbol/${e.toLocaleLowerCase()}.png`:void 0,e=>`logoUrls#symbol#${e}`);s()(function(e){let{useTrustWallet:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=d(null==e?void 0:e.wrapped),o=e?p(e.wrapped):null;return[m(e),t?n:void 0,o].filter(e=>!!e)},(e,t)=>{var n;return`logoUrls#${null==e?void 0:e.chainId}#${null==e||null==(n=e.wrapped)?void 0:n.address}#${t?JSON.stringify(t):""}`});let j=s()(function(e){let{useTrustWallet:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return[];let{chainId:n,address:o,symbol:l}=e,r=u(o,n),i=n&&o?p({chainId:n,address:o}):null;return[f(l),t?r:void 0,i].filter(e=>!!e)},(e,t)=>`logoUrls#${null==e?void 0:e.chainId}#${null==e?void 0:e.symbol}#${null==e?void 0:e.address}#${t?JSON.stringify(t):""}`)},569387:(e,t,n)=>{"use strict";n.d(t,{x:()=>i});var o=n(228876),l=n(223181),r=n.n(l);function i(e,t){let n=null==e?void 0:e.symbol;return(null==e?void 0:e.chainId)&&t&&(n=`${n} (${r()(o.Qk[e.chainId])})`),n}}
1,608998:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});var o=n(530957),l=n(985148);let r=(0,n(781649).getLogger)("error-report");function i(e){let t,{asyncFn:n,maxRetries:i=3,delayMs:s=1e3,fallbackValue:a,errorReportKey:c,shared:d=!1,sharedTtlMs:u=6e4}=e,x=(0,l.eU)(0),p=(e,o)=>{if(!d)return n(e,o);let l=Date.now();if(t&&l-t.at<u)return t.promise;let r=n(e,new AbortController().signal).catch(e=>{throw(null==t?void 0:t.promise)===r&&(t=void 0),e});return t={at:l,promise:r},r},h=(0,l.eU)(async(e,t)=>{let{signal:n}=t;e(x);let l=0;for(;l<i;)try{return await p(e,n)}catch(e){if(c&&r.error(c,{reason:"Async function failed",message:e instanceof Error?e.message:String(e),stack:e instanceof Error?e.stack:void 0}),++l>=i){if(!(0,o.A)(a))try{if("function"==typeof a)return await a();return a}catch{return}throw e}await new Promise(e=>setTimeout(e,s))}throw Error("Retries exhausted")});return(0,l.eU)(e=>e(h),(e,n)=>{t=void 0,n(x,e=>e+1)})}},653632:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(350979);n(25963);var l=n(257057);let r=e=>(0,o.jsx)(l.A,{width:16,height:16,viewBox:"0 0 16 16",fill:"none",...e,children:(0,o.jsx)("path",{d:"M8 11.333c.733 0 1.333-.6 1.333-1.333S8.733 8.667 8 8.667s-1.333.6-1.333 1.333.6 1.333 1.333 1.333zm4-6h-.667V4a3.335 3.335 0 00-6.666 0h1.266c0-1.14.927-2.067 2.067-2.067 1.14 0 2.067.927 2.067 2.067v1.333H4c-.733 0-1.333.6-1.333 1.334v6.666c0 .734.6 1.334 1.333 1.334h8c.733 0 1.333-.6 1.333-1.334V6.667c0-.734-.6-1.334-1.333-1.334zm0 8H4V6.667h8v6.666z",fill:"
1currentColor"})})},665548:(e,t,n)=>{"use strict";n.d(t,{Q:()=>c});var o=n(311560),l=n(25963),r=n(821497),i=n(662928),s=n(529208),a=n(18468);function c(e){let{chainId:t,token:n,owner:c,spender:d}=e,u=(0,l.useMemo)(()=>[c,d],[c,d]),{data:x,refetch:p}=(0,i.I)({queryKey:[t,null==n?void 0:n.address,c,d],queryFn:()=>{if(!n)throw Error("No token");return(0,a.Rt)({chainId:t}).readContract({abi:r.xw,address:null==n?void 0:n.address,functionName:"allowance",args:u})},refetchInterval:s.fr,retry:!0,refetchOnWindowFocus:!1,enabled:!!(d&&c&&n)});return(0,l.useMemo)(()=>({allowance:n&&void 0!==x?o.eF.fromRawAmount(n,x.toString()):void 0,refetch:p}),[n,p,x])}},681422:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>y,EV:()=>j,OD:()=>m,WE:()=>f,hN:()=>A});var o=n(228876),l=n(670420),r=n(659918),i=n(782739),s=n(91168),a=n(25963),c=n(207014),d=n(821497),u=n(17581),x=n(53670);let p=(e,t,n)=>h(e,t?o.nU.BSC:n),h=(e,t)=>{let{account:n,chainId:o}=(0,x.W7)(),{data:l,status:c,refetch:u,...p}=(0,i.Qo)({chainId:t||o,abi:d.xw,address:e,functionName:"balanceOf",args:[n||"0x"],query:{enabled:!!n},watch:!0});return{...p,refetch:u,fetchStatus:c,balance:(0,a.useMemo)(()=>void 0!==l?new s.A(l.toString()):r.AH,[l])}},m=()=>{let{address:e}=(0,u.F)(),{status:t,refetch:n,data:l}=(0,i.Av)({chainId:o.nU.BSC,address:e,query:{enabled:!!e},watch:!0});return{balance:(null==l?void 0:l.value)?BigInt(l.value):0n,fetchStatus:t,refresh:n}},f=e=>{let{address:t}=(0,u.F)(),{chainId:n}=(0,x.ax)(),{status:o,refetch:l,data:r}=(0,i.Av)({chainId:e||n,address:t,query:{enabled:!!t},watch:!0});return{balance:(null==r?void 0:r.value)?BigInt(r.value):0n,fetchStatus:o,refresh:l}},j=()=>{var e;let{balance:t,fetchStatus:n}=p(null==(e=l.vb[o.nU.BSC])?void 0:e.address,!0);return{balance:BigInt(t.toString()),fetchStatus:n}},A=e=>{let{chainId:t}=(0,x.ax)(),{balance:n,fetchStatus:o}=p((0,c.a3)(null!=e?e:t),!1,e);return{balance:n,fetchStatus:o}},y=p},686815:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(350979);n(25963);var l=n(257057);let r=e=>(0,o.jsx)(l.A,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0, 0, 400,400",...e,children:(0,o.jsxs)("g",{stroke:"none",fillRule:"evenodd",children:[(0,o.jsx)("path",{d:"M193.4 60.265C87.303 66.651 25.782 181.12 79.826 271.586c57.163 95.688 198.154 89.201 246.382-11.336C371.654 165.512 297.595 53.993 193.4 60.265m47.221 95.946c1.213.75 2.418 1.955 3.168 3.168l1.211 1.958v77.326l-1.211 1.958c-.75 1.213-1.955 2.418-3.168 3.168L238.663 245h-77.326l-1.958-1.211c-1.213-.75-2.418-1.955-3.168-3.168L155 238.663l-.119-37.831c-.08-25.344.018-38.306.297-39.267.685-2.365 2.559-4.562 4.876-5.717l2.127-1.06 38.241.106 38.241.106 1.958 1.211",fill:"#fbfbfc"}),(0,o.jsx)("path",{d:"M183.6.43C41.847 12.741-42.613 163.705 21.396 290.354c49.819 98.572 170.31 138.107 268.958 88.25 98.572-49.819 138.107-170.31 88.25-268.958C348.052 49.197 290.688 9.389 222 .97c-6.325-.775-31.6-1.13-38.4-.54M218 60.975c81.04 11.263 135.239 87.02 119.351 166.825-15.844 79.589-97.673 129.334-175.893 106.929-74.141-21.237-117.409-99.181-96.187-173.271C81.09 106.232 129.39 66.081 186.8 60.433c5.76-.567 25.716-.22 31.2.542m-57.4 94.781c-1.92.838-3.855 2.682-4.648 4.427-.974 2.145-1.175 76.834-.213 79.13.828 1.974 2.657 3.923 4.444 4.735 2.145.974 76.834 1.175 79.13.213 1.974-.828 3.923-2.657 4.735-4.444.974-2.145 1.175-76.834.213-79.13-.828-1.974-2.657-3.923-4.444-4.735-2.115-.96-77.043-1.146-79.217-.196",fill:"#0454fc"}),(0,o.jsx)("path",{d:"M181.5 155.1c10.175.059 26.825.059 37 0 10.175-.06 1.85-.108-18.5-.108s-28.675.048-18.5.108M154.992 200c0 20.35.048 28.675.108 18.5.059-10.175.059-26.825 0-37-.06-10.175-.108-1.85-.108 18.5m90 0c0 20.35.048 28.675.108 18.5.059-10.175.059-26.825 0-37-.06-10.175-.108-1.85-.108 18.5M181.5 245.1c10.175.059 26.825.059 37 0 10.175-.06 1.85-.108-18.5-.108s-28.675.048-18.5.108",fill:"#5286fc"}),(0,o.jsx)("path",{d:"M192.7 60.282a5.661 5.661 0 001.8 0c.495-.095.09-.173-.9-.173s-1.395.078-.9.173m12.8 0a5.661 5.661 0 001.8 0c.495-.095.09-.173-.9-.173s-1.395.078-.9.173M60.109 193.6c0 .99.078 1.395.173.9a5.661 5.661 0 000-1.8c-.095-.495-.173-.09-.173.9m279.6 0c0 .99.078 1.395.173.9a5.661 5.661 0 000-1.8c-.095-.495-.173-.09-.173.9m-279.6 12.8c0 .99.078 1.395.173.9a5.661 5.661 0 000-1.8c-.095-.495-.173-.09-.173.9m279.6 0c0 .99.078 1.395.173.9a5.661 5.661 0 000-1.8c-.095-.495-.173-.09-.173.9m-238.926 92.5c1.658 1.766 2.017 2.084 2.017 1.783 0-.064-.855-.919-1.9-1.9L99 297l1.783 1.9m198.017.1c-.972.99-1.677 1.8-1.567 1.8.11 0 .995-.81 1.967-1.8.972-.99 1.677-1.8 1.567-1.8-.11 0-.995.81-1.967 1.8m-106.1 40.882a5.661 5.661 0 001.8 0c.495-.095.09-.173-.9-.173s-1.395.078-.9.173m12.8 0a5.661 5.661 0 001.8 0c.495-.095.09-.173-.9-.173s-1.395.078-.9.173",fill:"#84acfc"}),(0,o.jsx)("path",{d:"M100.786 101.1l-2.186 2.3 2.3-2.186c2.137-2.032 2.483-2.414 2.186-2.414-.062 0-1.097 1.035-2.3 2.3M298.8 101c1.195 1.21 2.263 2.2 2.373 2.2.11 0-.778-.99-1.973-2.2-1.195-1.21-2.263-2.2-2.373-2.2-.11 0 .778.99 1.973 2.2",fill:"#7cacfc"})]})})}
1,738004:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/simple-staking",function(){return n(47968)}])},747292:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});let o=n(680797).I4.hr.withConfig({componentId:"sc-913bec5e-0"})(["border:1px solid ",";width:100%;",""],e=>{let{theme:t}=e;return t.colors.cardBorder},e=>{let{thin:t,theme:n}=e;return t&&` 2 border: none; 3 border-top: 1px solid ${n.colors.cardBorder}; 4 `})},779597:(e,t,n)=>{"use strict";n.d(t,{DD:()=>b,Dd:()=>y,YS:()=>j,_l:()=>k});var o=n(782739),l=n(27313),r=n(53670),i=n(118708),s=n(25963),a=n(753189),c=n(851374),d=n(660876),u=n(279910);let x={valid:!1,blockNumber:void 0,data:void 0};function p(e,t,n){let{chainId:o}=(0,r.ax)(),l=n||o,[{callResults:c},d]=(0,i.fp)(a.V),p=(0,s.useMemo)(()=>JSON.stringify(Array.isArray(e)?e.filter(e=>!!e).map(u.$o).sort():[]),[e]),h=(0,s.useMemo)(()=>t?JSON.stringify(t):"{}",[t]);return(0,s.useEffect)(()=>{if(!l)return;let e=JSON.parse(p);if(!Array.isArray(e)||0===e.length)return;let t=JSON.parse(h),n=e.map(e=>(0,u.Jf)(e));return d((0,u.IW)({chainId:l,calls:n,options:t})),()=>{d((0,u.l1)({chainId:l,calls:n,options:t}))}},[l,d,h,p]),(0,s.useMemo)(()=>e.map(e=>{var t;let n;if(!l||!e)return x;let o=null==(t=c[l])?void 0:t[(0,u.$o)(e)];return(null==o?void 0:o.data)&&(null==o?void 0:o.data)!=="0x"&&(n=o.data),{valid:!0,data:n,blockNumber:null==o?void 0:o.blockNumber}}),[c,e,l])}let h={valid:!1,result:void 0,loading:!1,syncing:!1,error:!1},m={valid:!0,result:void 0,loading:!0,syncing:!0,error:!1};function f(e,t,n,o){let l;if(!e)return h;let{valid:r,data:i,blockNumber:s}=e;if(!r)return h;if(r&&!s||!n||!t||!o)return m;let a=i&&i.length>2,d=(null!=s?s:0)<o;if(a&&i)try{l=(0,c.e)({abi:t,data:i,functionName:n})}catch(e){return console.debug("Result data parsing failed",t,i),{valid:!0,loading:!1,error:!0,syncing:d,result:l,blockNumber:s}}return{valid:!0,loading:!1,syncing:d,result:l,error:!a,blockNumber:s}}function j(e){let{contract:t,args:n,functionName:o,options:i}=e,{chainId:a}=(0,r.ax)(),{enabled:c=!0}=null!=i?i:{},u=p((0,s.useMemo)(()=>c&&t&&t.abi&&t.address&&n&&n.length>0?n.map(e=>{if(t.address)return{address:t.address,callData:(0,d.p)({abi:t.abi,functionName:o,args:e})}}):[],[n,t,c,o]),i),x=(0,l.jE)();return(0,s.useMemo)(()=>{var e,n;let l=null==(n=x.getQueryCache().find({queryKey:["blockNumber",a]}))||null==(e=n.state)?void 0:e.data;return u.map(e=>f(e,t.abi,o,l))},[x,a,u,t.abi,o])}let A={blocksPerFetch:void 0};function y(e){let{abi:t,addresses:n,chainId:l,functionName:r,args:i,options:a}=e,c=(0,s.useMemo)(()=>n.map((e,o)=>({abi:t,address:e,functionName:r,args:i,chainId:Array.isArray(l)?l.length===n.length?l[o]:void 0:l})),[t,r,i,n,l]);return(0,o.XO)({batchSize:2048,contracts:c,watch:null==a?void 0:a.watch,query:{enabled:null==a?void 0:a.enabled,refetchInterval:null==a?void 0:a.refetchInterval}})}function k(e){let{abi:t,addresses:n,functionName:o,args:i,options:a}=e,{enabled:c=!0,blocksPerFetch:u,chainId:x}=null!=a?a:{},h=(0,s.useMemo)(()=>t&&c?(0,d.p)({abi:t,functionName:o,args:i}):void 0,[t,i,c,o]),m=(0,s.useMemo)(()=>n&&n.length>0&&h?n.map(e=>e&&h?{address:e,callData:h}:void 0):[],[n,h]),{chainId:j}=(0,r.ax)(),y=null!=x?x:j,k=p(m,(null==a?void 0:a.blocksPerFetch)?{blocksPerFetch:u}:A,x),b=(0,l.jE)();return(0,s.useMemo)(()=>{var e,n;let l=null==(n=b.getQueryCache().find({queryKey:["blockNumber",y]}))||null==(e=n.state)?void 0:e.data;return k.map(e=>f(e,t,o,l))},[b,y,k,t,o])}function b(e){let{contract:t,functionName:n,args:o,options:i}=e,{enabled:a=!0}=null!=i?i:{},c=p((0,s.useMemo)(()=>a&&t&&t.abi&&t.address?[{address:t.address,callData:(0,d.p)({abi:t.abi,args:o,functionName:n})}]:[],[t,o,a,n]),i)[0],u=(0,l.jE)(),{chainId:x}=(0,r.ax)();return(0,s.useMemo)(()=>{var e,o;let l=null==(o=u.getQueryCache().find({queryKey:["blockNumber",x]}))||null==(e=o.state)?void 0:e.data;return f(c,null==t?void 0:t.abi,n,l)},[u,x,c,null==t?void 0:t.abi,n])}},797837:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(350979);n(25963);var l=n(257057);let r=e=>(0,o.jsxs)(l.A,{x:"0px",y:"0px",viewBox:"0 0 1000 1000",...e,children:[(0,o.jsxs)("linearGradient",{id:"a",gradientUnits:"userSpaceOnUse",x1:416.6229,y1:16.304,x2:416.6229,y2:985.446,children:[(0,o.jsx)("stop",{offset:.3,stopColor:"#ff1b2d"}),(0,o.jsx)("stop",{offset:.4381,stopColor:"#fa1a2c"}),(0,o.jsx)("stop",{offset:.5939,stopColor:"#ed1528"}),(0,o.jsx)("stop",{offset:.7581,stopColor:"#d60e21"}),(0,o.jsx)("stop",{offset:.9272,stopColor:"#b70519"}),(0,o.jsx)("stop",{offset:1,stopColor:"#a70014"})]}),(0,o.jsx)("path",{d:"M335.4 781.8c-55.3-65.3-91.1-161.7-93.5-270v-23.6c2.4-108.3 38.2-204.7 93.5-270C407.2 125.1 513.8 66 632.8 66c73.2 0 141.8 22.4 200.4 61.3C745.2 48.5 629.2.5 501.9 0H500C223.9 0 0 223.9 0 500c0 268.2 211.1 487 476.2 499.4 7.9.4 15.8.6 23.8.6 128 0 244.8-48.1 333.2-127.2-58.6 38.8-127.1 61.2-200.4 61.2-119 0-225.6-59.1-297.4-152.2z",fill:"url(#a)"}),(0,o.jsxs)("linearGradient",{id:"b",gradientUnits:"userSpaceOnUse",x1:667.7092,y1:73.4257,x2:667.7092,y2:930.5844,children:[(0,o.jsx)("stop",{offset:0,stopColor:"#9c0000"}),(0,o.jsx)("stop",{offset:.7,stopColor:"#ff4b4b"})]}),(0,o.jsx)("path",{d:"M335.4 218.2c45.9-54.2 105.1-86.8 169.9-86.8 145.6 0 263.5 165 263.5 368.6s-118 368.6-263.5 368.6c-64.7 0-124-32.7-169.9-86.8C407.2 874.9 513.8 934 632.8 934c73.2 0 141.8-22.4 200.4-61.2C935.6 781.2 1000 648.1 1000 500c0-148.1-64.4-281.2-166.8-372.7C774.6 88.4 706.1 66 632.8 66c-119 0-225.6 59.1-297.4 152.2z",fill:"url(#b)"})]})},831016:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=n(350979),l=n(680797),r=n(432594);let i=l.I4.div.withConfig({componentId:"sc-da8aeab-0"})(["display:flex;flex-direction:row;align-items:center;margin-right:",";"],e=>{let{margin:t}=e;return t&&"4px"});function s(e){let{currency0:t,currency1:n,size:l=20,margin:s=!1}=e;return(0,o.jsxs)(i,{margin:s,children:[t&&(0,o.jsx)(r.Ay,{currency:t,size:`${l.toString()}px`,style:{marginRight:"4px"}}),n&&(0,o.jsx)(r.Ay,{currency:n,size:`${l.toString()}px`})]})}},861485:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var o=n(350979);n(25963);var l=n(257057);let r=e=>
4(0,o.jsx)(l.A,{viewBox:"0 0 40 40",...e,children:(0,o.jsx)("path",{opacity:"0.9",d:"M19.9959 4.8377L20.7771 3.82105C20.5523 3.64825 20.2766 3.55457 19.9931 3.55457C19.7095 3.55457 19.4339 3.64825 19.209 3.82105L19.9959 4.8377ZM33.425 8.7837H34.7059C34.7081 8.61378 34.6767 8.44509 34.6134 8.28737C34.5502 8.12965 34.4563 7.98603 34.3372 7.8648C34.2181 7.74358 34.0762 7.64714 33.9196 7.58107C33.763 7.515 33.5949 7.4806 33.425 7.47985V8.7837ZM19.9959 36.2161L19.2837 37.2845C19.4936 37.425 19.7405 37.5 19.9931 37.5C20.2457 37.5 20.4925 37.425 20.7024 37.2845L19.9959 36.2161ZM6.57841 8.7837V7.49709C6.40847 7.49783 6.24036 7.53223 6.0838 7.5983C5.92723 7.66437 5.7853 7.76081 5.66621 7.88204C5.54712 8.00326 5.45322 8.14688 5.38995 8.3046C5.32667 8.46232 5.29526 8.63101 5.29754 8.80093L6.57841 8.7837ZM19.2148 5.84861C25.0275 10.3518 31.6846 10.0646 33.4307 10.0646V7.49709C31.6214 7.49709 25.8259 7.72684 20.7943 3.82105L19.2148 5.84861ZM32.1499 8.76073C32.0522 14.7113 31.7995 18.91 31.317 22.0174C30.8345 25.1248 30.1682 26.9399 29.2894 28.238C28.4106 29.5361 27.2848 30.3804 25.6364 31.3626C23.9879 32.3448 21.8799 33.4361 19.2837 35.1535L20.7312 37.2845C23.1895 35.6475 25.2343 34.6021 26.9747 33.5625C28.7284 32.6075 30.2502 31.2779 31.4319 29.6682C32.5806 27.9451 33.3675 25.6475 33.873 22.408C34.3785 19.1685 34.6369 14.809 34.7346 8.80093L32.1499 8.76073ZM20.7312 35.1535C18.1522 33.4304 16.05 32.362 14.413 31.3684C12.776 30.3747 11.6502 29.582 10.7656 28.238C9.8811 26.8939 9.16312 25.1076 8.66915 22.0174C8.17519 18.9273 7.95692 14.7113 7.85928 8.76073L5.29754 8.80093C5.39518 14.809 5.6594 19.18 6.15911 22.408C6.65882 25.636 7.42275 27.9336 8.59448 29.6682C9.77051 31.2788 11.2888 32.6088 13.0402 33.5625C14.7633 34.6021 16.8254 35.6475 19.2837 37.2845L20.7312 35.1535ZM6.57841 10.0646C8.30155 10.0646 14.9644 10.3518 20.7771 5.84861L19.209 3.82105C14.166 7.72684 8.37048 7.49709 6.57266 7.49709L6.57841 10.0646Z",fill:"#3688EB"})})},889551:(e,t,n)=>{"use strict";n.d(t,{H:()=>i,f:()=>r});var o=n(450253),l=n.n(o);function r(e){return l()(e).format("MMM D, YYYY HH:mm")}function i(e){return r(l().unix(e).toDate())}},898719:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o.Z});var o=n(38395)}},e=>{e.O(0,[3821,5139,7578,3732,4306,4374,3892,6341,3679,6142,5583,7212,1480,6335,4711,9818,7635,64,8269,6283,5018,9508,245,6652,1715,8658,636,6593,8792],()=>e(e.s=738004)),_N_E=e.O()}]);
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.