1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8997],{4571:(e,t,r)=>{"use strict";r.d(t,{NodeWindowData:()=>u});var s=r(95155),n=r(12115),a=r(49316),l=r(30832),i=r.n(l),o=r(19169),d=r(95478),c=r(76270),x=r(95395),m=r(88699);let u=()=>{var e,t,r,l,u,h,p,g,v,b,f,j,w,y,N,k,P,C;let[S,E]=(0,n.useState)(!1);(0,n.useEffect)(()=>{E(!0)},[]);let A=(0,o.Ay)("".concat((0,x.ZJ)(),"/api/v2/cosmos/chain/network"),a.clientFetch,{refreshInterval:a.SECOND}),T=null!=(N=null==A||null==(t=A.data)||null==(e=t.latestBlock)?void 0:e.height)?N:0,L=null!=(k=null==A||null==(l=A.data)||null==(r=l.window)?void 0:r.windowStart)?k:0,F=null!=(P=null==A||null==(h=A.data)||null==(u=h.window)?void 0:u.windowEnd)?P:0,I=(null==A||null==(g=A.data)||null==(p=g.latestBlock)?void 0:p.time)?new Date(A.data.latestBlock.time).getTime():Date.now(),B=(F-T)*(null!=(C=null==A||null==(b=A.data)||null==(v=b.blockTime)?void 0:v.diffTime)?C:0),D=new Date(I+1e3*B),_=i()(D).toISOString();return(0,s.jsxs)(d.Widget,{className:"flex flex-col gap-15 rounded-small border-1 border-secondary bg-tertiary p-15",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(null==A||null==(j=A.data)||null==(f=j.window)?void 0:f.round)?(0,s.jsxs)("h3",{className:"text-h5 text-primary-text",children:["Epoch ",null==A||null==(y=A.data)||null==(w=y.window)?void 0:w.round]}):(0,s.jsx)(d.LoadingSkeleton,{containerClassName:"w-20"}),(0,s.jsx)("p",{className:"text-h6 text-secondary-text",children:(0,m.U)(B)})]}),(0,s.jsxs)("div",{className:"flex items-center gap-5",children:[(0,s.jsx)(d.CircleChart,{size:77,value:T-L,max:F-L,strokeWidth:6,strokeLinecap:"round",useGradient:!0,defaultBackgroundColor:"rgba(var(--color-primary-variant, 1))",children:!A.isLoading&&(0,s.jsxs)("p",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-h5 text-primary-text",children:[((T-L)*100/(F-L)).toFixed(2),"%"]})}),(0,s.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,s.jsx)("p",{className:"text-h6 text-tertiary-text",children:"Estimated time:"}),S?(0,s.jsx)(c.$q,{timestamp:_,format:a.TIMESTAMP_FORMAT.FULL,className:"text-h5 text-primary-text"}):(0,s.jsx)(d.LoadingSkeleton,{className:"!w-32"})]})]})]})}},8861:e=>{function t(e){return Promise.resolve().then(()=>{var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}t.keys=()=>[],t.resolve=t,t.id=8861,e.exports=t},9337:(e,t,r)=>{"use strict";r.d(t,{NodeChart:()=>o});var s=r(95155),n=r(12115),a=r(66012),l=r(95478),i=r(88699);let o=e=>{let{data:t}=e,[r,o]=(0,n.useState)([]),[d,c]=(0,n.useState)(1),x=Math.ceil(r.length/6),m=r.slice((d-1)*6,6*d);if((0,n.useEffect)(()=>{let e=Object.entries((0,i.DX)(t)).sort((e,t)=>t[1].length-e[1].length),r=e.reduce((e,t)=>{let[r,s]=t;return e+s.length},0);o(e.map((e,t)=>{let[,s]=e;return{index:t+1,label:Array.from(new Set(s.map(e=>e.isp))).join(", "),percentage:+(s.length/r*100).toFixed(0)}}))},[t]),0!==t.length)return(0,s.jsxs)("article",{className:"flex flex-col gap-5 rounded-small border-1 border-secondary bg-tertiary p-15",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("p",{className:"text-h6 text-tertiary-text",children:"Node centers"}),x>1&&(0,s.jsx)(l.Paginator,{pagination:{rows:r.length,pages:x,currPage:d,nextPage:d<x?d+1:void 0},className:"!min-w-7 flex !h-7 !w-7 !text-h7",iconClassName:"!h-2.5 !w-2.5 flex",setPage:e=>c(e)})]}),(0,s.jsx)("div",{className:"flex flex-col gap-5",children:m&&m.map(e=>(0,s.jsxs)("div",{className:"flex w-full items-center justify-between gap-5",children:[(0,s.jsxs)("div",{className:"flex w-full items-center gap-2.5 overflow-hidden",children:[(0,s.jsx)("div",{className:"flex h-5 w-5 flex-shrink-0 items-center justify-center rounded-full bg-secondary",children:(0,s.jsx)(a.FourConnectedCirclesIcon,{className:"h-2.5 w-2.5 text-secondary-text"})}),(0,s.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden",children:[(0,s.jsx)("p",{className:"truncate text-h6 text-primary-text",children:e.label}),(0,s.jsx)(l.CopyButton,{text:e.label,noLabel:!0,iconClassName:"!h-3 !w-3"})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,s.jsx)(l.BarChart,{value:e.percentage,max:100,className:"!h-[4px] w-[86px]",backgroundColor:"bg-primary-variant",progressColor:"bg-info-link",progressContainerClassName:"!h-[4px] !min-h-0"}),(0,s.jsxs)("p",{className:"min-w-[30px] text-h6 text-tertiary-text",children:[e.percentage,"%"]})]})]},e.index))})]})}},12074:(e,t,r)=>{"use strict";r.d(t,{ParametersPageProvider:()=>i,u:()=>l});var s=r(95155),n=r(12115);let a=(0,n.createContext)(null),l=()=>{let e=(0,n.useContext)(a);if(!e)throw Error("useChannelPage has to be used within <ChannelPageContext.Provider>");return e},i=e=>{let{parameters:t,validBinaryUrl:r,children:n}=e;return(0,s.jsx)(a.Provider,{value:{parameters:t,validBinaryUrl:r},children:n})}},15050:(e,t,r)=>{"use strict";r.d(t,{DistributionParameters:()=>m});var s=r(95155),n=r(52701);r(12115);var a=r(85007);let l=e=>{let{baseProposerReward:t}=e;return(0,s.jsx)(a.v,{widgetTitle:"Base Proposer Reward",widgetValue:t?t+"%":"â"})},i=e=>{let{bonusProposerReward:t}=e;return(0,s.jsx)(a.v,{widgetTitle:"Bonus Proposer Reward",widgetValue:t?t+"%":"â"})},o=e=>{let{communityTax:t}=e;return(0,s.jsx)(a.v,{widgetTitle:"Community Tax",widgetValue:t?t+"%":"â"})};var d=r(52596),c=r(95478);let x=e=>{let{parameters:t}=e;return(0,s.jsx)(a.v,{widgetTitle:"Address Enabled",renderWidgetValueElement:()=>{var e,r;return(0,s.jsx)(c.Badge,{className:(0,d.A)("!px-0 text-h4",(null==t||null==(e=t.distribution)?void 0:e.withdrawAddressEnabled)?"text-success":"text-error"),children:(null==t||null==(r=t.distribution)?void 0:r.withdrawAddressEnabled)?"True":"False"})}})},m=()=>{var e,t,r;let{parameters:a}=(0,n.uN)(),d=((null==a||null==(e=a.distribution)?void 0:e.communityTax)||0)/1e16,c=((null==a||null==(t=a.distribution)?void 0:t.baseProposerReward)||0)/1e16,m=((null==a||null==(r=a.distribution)?void 0:r.bonusProposerReward)||0)/1e16;return(0,s.jsxs)("div",{className:"flex w-full flex-col gap-2.5 lg:gap-5",children:[(0,s.jsx)("h4",{className:"text-h4 text-primary-text",children:"Distribution Parameters"}),(0,s.jsxs)("div",{className:"grid w-full flex-row gap-2.5 md:grid-cols-4 xl:gap-5",children:[(0,s.jsx)(x,{parameters:a}),(0,s.jsx)(o,{communityTax:d}),(0,s.jsx)(l,{baseProposerReward:c}),(0,s.jsx)(i,{bonusProposerReward:m})]})]})}},15972:(e,t,r)=>{"use strict";r.d(t,{NetworkPageContext:()=>a,NetworkPageProvider:()=>i,u:()=>l});var s=r(95155),n=r(12115);let a=(0,n.createContext)({}),l=()=>{let e=(0,n.useContext)(a);if(!e)throw Error("useNetworkPageContext has to be used within <NetworkPageProvider>");return e},i=e=>{let{children:t,mapData:r}=e;return(0,s.jsx)(a.Provider,{value:{mapData:r},children:t})}},19630:(e,t,r)=>{"use strict";r.d(t,{SlashingParameters:()=>u});var s=r(95155);r(12115);var n=r(49316),a=r(66012),l=r(52701),i=r(85007);let o=()=>{var e;let{parameters:t}=(0,l.uN)();return(0,s.jsx)(i.v,{widgetTitle:"Downtime Jail Duration",widgetValue:(null==t||null==(e=t.slashing)?void 0:e.downtimeJailDuration)?(0,n.convertSeconds)(t.slashing.downtimeJailDuration):"-",renderWidgetValueElement:()=>{var e;return(0,s.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,s.jsx)(a.ClockBellsIcon,{className:"h-5 w-5 text-tertiary-text "}),(0,s.jsx)("span",{className:"shrink-0 text-h4 font-medium text-primary-text",children:(null==t||null==(e=t.slashing)?void 0:e.downtimeJailDuration)?(0,n.convertSeconds)(t.slashing.downtimeJailDuration):"-"})]})}})},d=()=>{var e,t;let{parameters:r}=(0,l.uN)();return(0,s.jsx)(i.v,{widgetTitle:"Min Signed Per Window",chartValue:null==r||null==(e=r.slashing)?void 0:e.minSignedPerWindow,widgetValue:(null==r||null==(t=r.slashing)?void 0:t.minSignedPerWindow)?100*r.slashing.minSignedPerWindow+"%":"â"})},c=()=>{var e;let{parameters:t}=(0,l.uN)();return(0,s.jsx)(i.v,{widgetTitle:"Signed Block Window",widgetValue:(null==t||null==(e=t.slashing)?void 0:e.signedBlockWindow)?(0,n.formatNumber)(t.slashing.signedBlockWindow):"-"})},x=()=>{var e,t;let{parameters:r}=(0,l.uN)();return(0,s.jsx)(i.v,{widgetTitle:"Slash Fraction Downtime",widgetValue:(null==r||null==(e=r.slashing)?void 0:e.slashFractionDowntime)?(null==(t=r.slashing)?void 0:t.slashFractionDowntime)*100+"%":"â"})},m=()=>{var e;let{parameters:t}=(0,l.uN)();return(0,s.jsx)(i.v,{widgetTitle:"Slash Fraction Double Sign",widgetValue:(null==t||null==(e=t.slashing)?void 0:e.slashFractionDoubleSign)?100*t.slashing.slashFractionDoubleSign+"%":"â"})},u=()=>(0,s.jsxs)("div",{className:"flex w-full flex-col gap-2.5 lg:gap-5",children:[(0,s.jsx)("h4",{className:"text-h4 text-primary-text",children:"Slashing Parameters"}),(0,s.jsxs)("div",{className:"grid w-full flex-row gap-2.5 md:grid-cols-3 lg:grid-cols-4 xl:gap-5",children:[(0,s.jsx)(c,{}),(0,s.jsx)(o,{}),(0,s.jsx)(d,{}),(0,s.jsx)(m,{}),(0,s.jsx)(x,{})]})]})},34530:(e,t,r)=>{"use strict";r.d(t,{GovernanceParameters:()=>u});var s=r(95155);r(12115);var n=r(49316),a=r(66012),l=r(52701),i=r(85007);let o=()=>{var e,t;let{parameters:r}=(0,l.uN)();
1return(0,s.jsx)(i.v,{widgetTitle:"Max Deposit Period",widgetValue:(null==r||null==(e=r.governance)?void 0:e.maxDepositPeriod)?(0,n.convertSeconds)(null==r||null==(t=r.governance)?void 0:t.maxDepositPeriod):"-",renderWidgetValueElement:()=>{var e,t;return(0,s.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,s.jsx)(a.ClockBellsIcon,{className:"h-4 w-4 text-tertiary-text "}),(0,s.jsx)("span",{className:"text-h4 font-medium text-primary-text",children:(null==r||null==(e=r.governance)?void 0:e.maxDepositPeriod)?(0,n.convertSeconds)(null==r||null==(t=r.governance)?void 0:t.maxDepositPeriod):"-"})]})}})},d=()=>{var e,t;let{parameters:r}=(0,l.uN)();return(0,s.jsx)(i.v,{widgetTitle:"Quorum",widgetValue:(null==r||null==(e=r.governance)?void 0:e.quorum)?100*r.governance.quorum+"%":"â",chartValue:null==r||null==(t=r.governance)?void 0:t.quorum})},c=()=>{var e,t;let{parameters:r}=(0,l.uN)();return(0,s.jsx)(i.v,{widgetTitle:"Threshold",widgetValue:(null==r||null==(e=r.governance)?void 0:e.threshold)?(null==r?void 0:r.governance.threshold)*100+"%":"â",chartValue:null==r||null==(t=r.governance)?void 0:t.threshold})},x=()=>{var e,t;let{parameters:r}=(0,l.uN)();return(0,s.jsx)(i.v,{widgetTitle:"Veto threshold",widgetValue:(null==r||null==(e=r.governance)?void 0:e.vetoThreshold)?100*r.governance.vetoThreshold+"%":"â",chartValue:null==r||null==(t=r.governance)?void 0:t.vetoThreshold})},m=()=>{let{parameters:e}=(0,l.uN)();return(0,s.jsx)(i.v,{widgetTitle:"Voting Period",renderWidgetValueElement:()=>{var t,r;return(0,s.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,s.jsx)(a.ClockBellsIcon,{className:"h-4 w-4 text-tertiary-text "}),(0,s.jsxs)("span",{className:"text-h4 font-medium text-primary-text",children:[(null==e||null==(t=e.governance)?void 0:t.votingPeriod)?(0,n.convertSeconds)(null==e||null==(r=e.governance)?void 0:r.votingPeriod):"-"," "]})]})}})},u=()=>(0,s.jsxs)("div",{className:"flex w-full flex-col gap-2.5 lg:gap-5",children:[(0,s.jsx)("h4",{className:"text-h4 text-primary-text",children:"Governance Parameters"}),(0,s.jsxs)("div",{className:"grid w-full flex-row gap-2.5 md:grid-cols-3 lg:grid-cols-4 xl:gap-5",children:[(0,s.jsx)(o,{}),(0,s.jsx)(d,{}),(0,s.jsx)(c,{}),(0,s.jsx)(x,{}),(0,s.jsx)(m,{})]})]})},39368:(e,t,r)=>{"use strict";r.d(t,{NetworkDataTable:()=>f});var s=r(95155),n=r(12115),a=r(49316),l=r(66012),i=r(52596),o=r(95478),d=r(95395),c=function(e){return e.RPCS="RPCs",e.PEERS="Peers",e}({}),x=function(e){return e.COSMOS="Cosmos",e.EVM="EVM",e}({}),m=r(66766),u=r(6874),h=r.n(u),p=r(84541),g=r(15972),v=r(97155);let b=e=>{var t,r,n,c,x,u,b,f,j;let{mapData:w}=(0,g.u)(),y=null==(t=e.rpcIp)?void 0:t.split(":")[0],N=null==w?void 0:w.find(e=>e.ip===y),k=null==N?void 0:N.country,P=null==N?void 0:N.isp,C=null==(c=(0,p.A)("".concat((0,d.ZJ)(),"/api/v2/cosmos/validators?name=").concat(null==(x=e.noder)?void 0:x.operatorAddress),d.uB,{refreshInterval:a.DAY}))||null==(n=c.data)||null==(r=n.items)?void 0:r.at(0);return(0,s.jsxs)("li",{className:(0,i.A)("parent table-item-hover flex cursor-pointer flex-col items-start gap-2.5 border-b-1 border-primary pb-15 pt-2.5 max-lg:border-b max-lg:border-b-secondary max-lg:px-2.5 lg:flex-row lg:items-center lg:justify-between lg:px-5 lg:py-3.5 xl:px-10"),children:[(0,s.jsxs)("div",{className:(0,i.A)("flex shrink-0 items-center gap-2.5 max-lg:mb-1 lg:w-[25%]",e.peer&&"lg:w-[40%]"),children:[(0,s.jsxs)("div",{className:"relative",children:[C?(0,s.jsx)(l.SquareWithCircleIcon,{className:"h-8 w-8 shrink-0 text-info-link lg:h-12 lg:w-12"}):(null==(u=e.noder)?void 0:u.avatar)?(0,s.jsx)(m.default,{src:null==(b=e.noder)?void 0:b.avatar,alt:"icon",width:48,height:48,className:"h-8 w-8 shrink-0 lg:h-12 lg:w-12"}):(0,s.jsx)("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-primary lg:h-12 lg:w-12",children:(0,s.jsx)(l.FourConnectedCirclesIcon,{className:"h-4 w-4 shrink-0 text-secondary-text-variant lg:h-6 lg:w-6"})}),!e.peer&&e.tx_index&&"on"===e.tx_index&&(0,s.jsx)(l.OnOffIcon,{className:"absolute bottom-0 right-0 h-2.5 w-2.5 text-success lg:h-4 lg:w-4"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1 lg:max-w-[60%]",children:[C?(0,s.jsx)("div",{className:(0,i.A)("flex w-full items-center justify-between gap-1.5"),children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(h(),{href:"/".concat(v.ET.VALIDATORS,"/").concat(C.operatorAddress),className:"flex items-center",children:(0,s.jsx)("p",{className:" truncate text-h5 text-info-link hover:text-secondary-text lg:text-primary-text",children:null==(f=e.noder)?void 0:f.moniker})}),(0,s.jsxs)("div",{className:"group absolute right-[-20px] top-0",children:[(0,s.jsx)(l.InfoMark,{className:"h-3 w-3 cursor-pointer text-secondary-text"}),(0,s.jsx)("div",{className:"absolute left-[100%] top-[-20px] z-50 hidden -translate-x-1/2 justify-center whitespace-nowrap rounded-huge bg-secondary-variant px-4 py-0.5 font-normal group-hover:flex",children:(0,s.jsx)("p",{className:"text-h7 text-info-link hover:text-secondary-text lg:text-primary-text",children:"The validator node is open."})})]})]})}):(0,s.jsx)("div",{className:"overflow-hidden",children:(0,s.jsx)("p",{className:"truncate text-h5 text-primary-text hover:text-secondary-text",children:null==(j=e.noder)?void 0:j.moniker})}),!e.peer&&e.tx_index&&"on"===e.tx_index&&(0,s.jsx)("p",{className:"text-h6 text-success",children:"indexation on"}),!e.peer&&e.tx_index&&"off"===e.tx_index&&(0,s.jsx)("p",{className:"text-h6 text-secondary-text-variant",children:"indexation off"})]})]}),(0,s.jsxs)("div",{className:"flex w-full flex-row-reverse items-start justify-between gap-2 lg:w-[80%] lg:flex-row lg:items-center",children:[(0,s.jsx)("div",{className:"flex w-fit shrink-0 flex-wrap items-center justify-between gap-1.5 lg:w-[50%]\n ".concat(e.peer&&"lg:w-[80%]"),children:(0,s.jsxs)("div",{className:"flex w-full flex-col justify-between gap-2.5 lg:flex-row lg:justify-normal",children:[e.peer?(0,s.jsx)("p",{className:"flex text-h7 text-tertiary-text sm:text-h5 lg:hidden",children:"Data"}):(0,s.jsx)("p",{className:"flex text-h7 text-tertiary-text sm:text-h5 lg:hidden",children:"Status, Location"}),(0,s.jsxs)("div",{className:"flex w-full flex-col gap-1.5 overflow-hidden",children:[e.rpcIp&&(0,s.jsxs)("div",{className:"flex w-full items-center gap-2 rounded-full lg:gap-3",children:[(0,s.jsx)("p",{className:"w-8 text-h6 text-primary-text hover:text-secondary-text sm:text-h5 lg:w-12",children:"RPC"}),(0,s.jsxs)("div",{className:"flex w-auto shrink-0 items-center gap-2.5 lg:w-[6.5rem] xl:w-auto",children:[k&&(0,s.jsx)(o.CountryFlagDisplay,{country:k}),(0,s.jsx)("a",{href:"http://".concat(e.rpcIp),target:"_blank",rel:"noreferrer noopener",className:"self-center truncate text-h7 text-primary-text hover:text-secondary-text sm:text-h5",children:e.rpcIp.replace(/^https?:\/\//,"")})]}),(0,s.jsx)(o.CopyButton,{text:e.rpcIp,noLabel:!0})]}),e.grpcIp&&(0,s.jsxs)("div",{className:"flex w-full items-center gap-3 rounded-full",children:[(0,s.jsx)("p",{className:"w-8 text-h6 text-primary-text hover:text-secondary-text sm:text-h5 lg:w-12",children:"GRPC"}),(0,s.jsxs)("div",{className:"flex w-auto shrink-0 items-center gap-2.5 lg:w-[6.5rem] xl:w-auto",children:[k&&(0,s.jsx)(o.CountryFlagDisplay,{country:k}),(0,s.jsx)("p",{className:"self-center truncate text-h7 text-primary-text hover:text-secondary-text sm:text-h5",children:e.grpcIp})]}),(0,s.jsx)(o.CopyButton,{text:e.grpcIp,noLabel:!0})]}),e.apiIp&&(0,s.jsxs)("div",{className:"flex w-full items-center gap-3 rounded-full",children:[(0,s.jsx)("p",{className:"w-8 text-h6 text-primary-text hover:text-secondary-text sm:text-h5 lg:w-12",children:"REST"}),(0,s.jsxs)("div",{className:"flex w-auto shrink-0 items-center gap-2.5 lg:w-[6.5rem] xl:w-auto",children:[k&&(0,s.jsx)(o.CountryFlagDisplay,{country:k}),(0,s.jsx)("a",{href:"http://".concat(e.apiIp),target:"_blank",rel:"noreferrer noopener",className:"self-center truncate text-h7 text-primary-text hover:text-secondary-text sm:text-h5",children:e.apiIp})]}),(0,s.jsx)(o.CopyButton,{text:e.apiIp,noLabel:!0})]}),e.evmIp&&(0,s.jsxs)("div",{className:"flex w-full items-center gap-3 rounded-full",children:[(0,s.jsx)("p",{className:"text-h6 text-primary-text hover:text-secondary-text sm:text-h5",children:"EVM RPC"}),(0,s.jsxs)("div",{className:"flex w-auto shrink-0 items-center gap-2.5 lg:w-[6.5rem] xl:w-auto",children:[k&&(0,s.jsx)(o.CountryFlagDisplay,{country:k}),(0,s.jsx)("p",{className:"self-center truncate text-h7 text-primary-text hover:text-secondary-text sm:text-h5",children:e.evmIp})]}),(0,s.jsx)(o.CopyButton,{text:e.evmIp,noLabel:!0})]}),e.peer&&(0,s.jsxs)("div",{className:"flex w-full items-center gap-3 overflow-hidden rounded-full",children:[(0,s.jsx)("p",{className:"max-w-[90%] self-center truncate text-h5 text-primary-text hover:text-secondary-text",children:e.peer}),(0,s.jsx)(o.CopyButton,{text:e.peer,noLabel:!0})]})]})]})}),!e.peer&&(0,s.jsxs)("div",{className:"flex w-fit flex-col justify-between gap-2.5 truncate lg:w-[35%]",children:[(0,s.jsx)("p",{className:"flex text-h7 text-tertiary-text sm:text-h5 lg:hidden",children:"Data center"}),(0,s.jsx)("p",{className:"truncate text-h7 text-primary-text hover:text-secondary-text sm:text-h5",children:P||"-"})]})]}),!e.peer&&(0,s.jsxs)("div",{className:"flex shrink-0 flex-col items-center gap-2.5 lg:w-[15%] lg:justify-end ",children:[(0,s.jsx)("p",{className:"flex text-h6 text-tertiary-text sm:text-h5 lg:hidden",children:"Block history"}),e.uptime&&(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsx)(l.BlockIcon,{className:"h-3 w-3 shrink-0 text-info-link lg:h-4 lg:w-4"}),(0,s.jsx)(h(),{href:"/".concat(v.ET.BLOCKS,"/").concat(e.uptime),className:"whitespace-nowrap text-h7 text-info-link sm:text-h5",children:(0,a.formatNumber)(e.uptime)})]})||"-"]})]})},f=e=>{var t,r,m,u,h;let{networkData:p}=e,g=Object.values(c).map(e=>({tab:e})),v=[x.COSMOS].map(e=>({tab:e}));(0,d.if)()&&v.push({tab:x.EVM});
1let[f,j]=(0,n.useState)(c.RPCS.toLowerCase()),[w,y]=(0,n.useState)(x.COSMOS.toLowerCase()),[N,k]=(0,n.useState)(""),[P,C]=(0,n.useState)(""),[S,E]=(0,n.useState)(!1),A=f===c.PEERS.toLowerCase()?null==p?void 0:p.peers:null==p?void 0:p.rpcs,T=w===x.EVM.toLowerCase()?null==A?void 0:A.evm:null==A?void 0:A.cosmos,L=f!==c.PEERS.toLowerCase()?JSON.stringify(w===x.EVM.toLowerCase()?null==p||null==(t=p.rpcs)?void 0:t.evm:null==p||null==(r=p.rpcs)?void 0:r.cosmos):JSON.stringify(w===x.EVM.toLowerCase()?null==p||null==(m=p.peers)?void 0:m.evm:null==p||null==(h=p.peers)||null==(u=h.cosmos)?void 0:u.map(e=>e.peer).join(",")),F={sortIndexation:(e,t)=>{var r;return(null==(r=e.tx_index)?void 0:r.localeCompare(t.tx_index||""))||0},sortMinusIndexation:(e,t)=>{var r;return(null==(r=t.tx_index)?void 0:r.localeCompare(e.tx_index||""))||0},sortBlockHistory:(e,t)=>{var r;return(null==(r=e.uptime)?void 0:r.localeCompare(t.uptime||""))||0},sortMinusBlockHistory:(e,t)=>{var r;return(null==(r=t.uptime)?void 0:r.localeCompare(e.uptime||""))||0},getFunction:e=>"indexation"===e?F.sortIndexation:"-indexation"===e?F.sortMinusIndexation:"blockHistory"===e?F.sortBlockHistory:"-blockHistory"===e?F.sortMinusBlockHistory:e.startsWith("-")?F.sortMinusIndexation:F.sortIndexation},I=(0,n.useMemo)(()=>{let e=((e,t)=>t?(t=t.toLowerCase(),e.filter(e=>{var r,s;return null==(s=e.noder)||null==(r=s.moniker)?void 0:r.toLowerCase().includes(t.toLowerCase())})):e)(T||[],N);return P&&P.length>0?e.sort(F.getFunction(P)):e},[P,f,T,N]),B=e=>{e===P?C("-".concat(e)):C(e)};return(0,s.jsxs)("section",{className:"mt-5 flex flex-col gap-5 pb-10",children:[(0,s.jsxs)("div",{className:"flex w-full items-center justify-between gap-2.5",children:[(0,s.jsx)("h2",{className:"font-manrope text-h2 text-primary-text",children:"Locations"}),f!==c.PEERS.toLowerCase()&&(0,s.jsx)(o.SearchBar,{placeholder:"Search Node",events:{onChange:k},collapseInMobile:!0,maxLength:370})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,s.jsx)(o.Selector,{tabs:g,setTab:j,className:"w-fit gap-2.5",tabClassName:"!px-30 py-2.5 bg-primary text-secondary-text"}),(0,s.jsxs)("div",{className:"flex items-center gap-1 lg:gap-5",children:[(0,s.jsxs)(o.Button,{onClick:()=>{(0,a.copyToClipboard)(L),E(!0),setTimeout(()=>{E(!1)},1500)},variant:"hover-gradient",className:"group flex-nowrap gap-1 self-end bg-primary py-2.5 pl-15 pr-15 text-h6 !text-tertiary-text lg:pl-5",children:[(0,s.jsx)("span",{className:"hidden cursor-pointer transition-colors duration-200 ease-in-out group-hover:!text-white lg:flex",children:S?"All copied":"Copy all"}),S?(0,s.jsx)(l.TickInCircleIcon,{className:"h-4 w-4 animate-block-appearance text-success"}):(0,s.jsx)(l.CopyIcon,{className:"h-4 w-4 transition-colors duration-200 ease-in-out group-hover:!text-white"})]}),v.length>1&&(0,s.jsx)("div",{children:(0,s.jsx)(o.ToggleSelector,{tabs:v,setTab:y,className:"w-[95px] !py-2.5 lg:w-[149px] lg:gap-10"})})]})]}),(0,s.jsxs)(o.VerticalTable,{items:I,isLoaded:!0,Element:b,elementHeightRem:6,elementHeightMobileRem:6,minHeight:"30rem",thContainerClassname:"lg:px-10 justify-between",visibleElements:5,error:0===I.length?"No data":void 0,children:[f===c.RPCS.toLowerCase()&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{type:"button",onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&B("indexation")},onClick:()=>B("indexation"),className:"flex w-[21%] cursor-pointer items-center border-none bg-transparent pl-10 text-h6 text-tertiary-text",children:["Node"," ",(0,s.jsx)(l.ArrowDownIcon,{className:(0,i.A)("ml-2.5 h-[5px] w-2","indexation"!==P&&""!==P&&"rotate-180")})]}),(0,s.jsx)("p",{className:"w-[33%] pl-1 text-h6 text-tertiary-text",children:"Status, Location"}),(0,s.jsx)("p",{className:"w-[20%] pl-1 text-h6 text-tertiary-text",children:"Data center"}),(0,s.jsxs)("button",{type:"button",onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&B("blockHistory")},onClick:()=>B("blockHistory"),className:"flex w-[15%] shrink-0 cursor-pointer items-center whitespace-nowrap border-none bg-transparent text-h6 text-tertiary-text xl:w-[13%] xl:pl-1",children:["Block history"," ",(0,s.jsx)(l.ArrowDownIcon,{className:(0,i.A)("ml-2.5 h-[5px] w-2 shrink-0","blockHistory"!==P&&""!==P&&"rotate-180")}
1)]})]}),f===c.PEERS.toLowerCase()&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"w-[25%] pl-20 text-h6 text-tertiary-text",children:"Node"}),(0,s.jsx)("p",{className:"w-[60%] pl-1 text-h6 text-tertiary-text",children:"Data"})]})]})]})}},39949:(e,t,r)=>{"use strict";r.d(t,{ParametersCosmosOrEvmPrice:()=>p});var s=r(95155);r(12115);var n=r(49316),a=r(19169),l=r(95395),i=r(66012),o=r(4302),d=r(95478),c=r(85007),x=r(67078),m=r(49107);let u=e=>{let{data:t,type:r,isLoading:n,token:a,title:i}=e;return(0,s.jsx)(s.Fragment,{children:n?(0,s.jsx)(d.LoadingSkeleton,{containerClassName:"w-full",height:112,borderRadius:18}):(0,s.jsx)(c.v,{widgetTitle:i,renderWidgetValueElement:()=>(0,s.jsxs)(s.Fragment,{children:["evm"===r&&(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsx)("span",{className:"text-h4 text-primary-text",children:(0,s.jsx)(x.AmountValue,{value:(0,m.NJ)(String(t),1e9)})}),(0,s.jsx)("span",{className:"text-h4 text-secondary-text",children:"Gwei"})]}),"cosmos"===r&&(0,s.jsx)("span",{className:"text-h4 text-primary-text",children:(0,l.wz)(t,null==a?void 0:a.alias)})]})})})},h=e=>{var t,r,n;let{data:a,type:l,isLoading:d}=e,{token:c}=(0,o.WD)();return(0,s.jsxs)("div",{className:"flex w-full flex-col gap-2.5",children:[(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(i.GasIcon,{className:" h-5 w-5 text-icon"}),(0,s.jsx)("span",{className:"ml-2 text-h4 text-primary-text",children:"Gas Price"}),(0,s.jsx)("span",{className:"ml-5 rounded-full bg-[#FFB56B29] px-4 py-1 text-h6 text-attention",children:"evm"===l?"Evm":"Cosmos"})]}),(0,s.jsxs)("div",{className:"grid w-full flex-row gap-2.5 md:grid-cols-3 xl:gap-5",children:[(0,s.jsx)(u,{data:null!=(t=null==a?void 0:a.max)?t:"-",type:l,isLoading:d,token:c,title:"Fast"}),(0,s.jsx)(u,{data:null!=(r=null==a?void 0:a.avg)?r:"-",type:l,isLoading:d,token:c,title:"Middle"}),(0,s.jsx)(u,{data:null!=(n=null==a?void 0:a.min)?n:"-",type:l,isLoading:d,token:c,title:"Slow"})]})]})},p=()=>{let{data:e,isLoading:t}=(0,a.Ay)((0,l.if)()?"".concat((0,l.m6)(),"/transactions/evm/gas-tracker"):null,n.clientFetch,{refreshInterval:30*n.MINUTE}),{data:r,isLoading:i}=(0,a.Ay)("".concat((0,l.ZJ)(),"/api/v2/cosmos/transactions/gas-tracker"),n.clientFetch,{refreshInterval:30*n.MINUTE});return(0,s.jsxs)("div",{className:"flex w-full flex-col gap-5",children:[(0,l.if)()&&(0,s.jsx)(h,{data:e,type:"evm",isLoading:t}),Number(null==r?void 0:r.max)||Number(null==r?void 0:r.avg)||Number(null==r?void 0:r.min)?(0,s.jsx)(h,{data:r,type:"cosmos",isLoading:i}):null]})}},44700:(e,t,r)=>{"use strict";r.d(t,{MapWrapper:()=>i});var s=r(95155),n=r(55028),a=r(23402);let l=(0,n.default)(()=>Promise.resolve().then(r.bind(r,95478)).then(e=>({default:e.Map})),{loadableGenerated:{webpack:()=>[95478]},ssr:!1,loading:()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"flex h-[360px] w-full items-center justify-center lg:h-[558px]",children:(0,s.jsx)(a.QH,{className:"h-20 w-20 text-primary-variant lg:h-28 lg:w-28"})})})}),i=e=>{let{mapData:t}=e;return(0,s.jsx)("div",{className:"h-full min-h-[360px] w-full overflow-hidden rounded-[20px] border border-secondary",children:(0,s.jsx)(l,{points:t,className:"flex min-h-[360px] w-full animate-block-appearance pb-[88px] pl-[32px] pr-[15px] pt-[35px] lg:h-full lg:max-h-[721px] lg:min-h-[585px]",center:[40,0]})})}},51783:(e,t,r)=>{"use strict";r.d(t,{ParametersTokenomics:()=>m});var s=r(95155),n=r(4302);r(12115);var a=r(49316),l=r(95395),i=r(85007);let o=e=>{let{bondedRatio:t}=e;return(0,s.jsx)(i.v,{widgetTitle:"Bonded Ratio",widgetValue:0===t?"â":(null==t?void 0:t.toFixed(2))+"%",chartValue:t,chartMaxValue:100})},d=e=>{let{bondedAndSupply:t}=e;return(0,s.jsx)(i.v,{widgetTitle:"Bonded & Supply",widgetValue:t})},c=e=>{var t;let{tokenomics:r}=e;return(0,s.jsx)(i.v,{widgetTitle:"Inflation",widgetValue:(null==r?void 0:r.inflation)!==0&&(null==r?void 0:r.inflation)?(null==r||null==(t=r.inflation)?void 0:t.toFixed(2))+"%":"â",chartValue:null==r?void 0:r.inflation,chartMaxValue:100})},x=e=>{var t,r;let{tokenomics:n}=e,i=((null==n||null==(t=n.tokenomics)?void 0:t.bonded)||0)/(0,l.Lo)(),x=((null==n||null==(r=n.tokenomics)?void 0:r.supply)||0)/(0,l.Lo)(),m=0!==x?i/x*100:0,u="".concat((0,a.convertToMax)(i),"/").concat((0,a.convertToMax)(x));return(0,s.jsxs)("div",{className:"grid w-full flex-row gap-2.5 md:grid-cols-3 xl:gap-5",children:[(0,s.jsx)(c,{tokenomics:n}),(0,s.jsx)(d,{bondedAndSupply:u}),(0,s.jsx)(o,{bondedRatio:m})]})},m=()=>{let{tokenomics:e}=(0,n.WD)();return(0,s.jsxs)("div",{className:"flex w-full flex-col gap-5",children:[(0,s.jsx)("h4",{className:"mb-2.5 text-h4 text-primary-text",children:"Parameters"}),(0,s.jsx)(x,{tokenomics:e})]})}},52481:(e,t,r)=>{"use strict";r.d(t,{BinaryInformation:()=>m});var s=r(95155);r(12115);var n=r(66012),a=r(52701),l=r(85007);let i=()=>{let{parameters:e,validBinaryUrl:t}=(0,a.uN)();return(0,s.jsx)(l.v,{renderWidgetTitleElement:()=>(0,s.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,s.jsx)(n.PaperIcon,{className:"h-5 w-5 text-tertiary-text "}),(0,s.jsx)("span",{className:"text-h5 text-primary-text",children:"Binary Version"})]}),renderWidgetValueElement:()=>{var r,n,a,l;return t?(0,s.jsx)("a",{target:"_blank",rel:"noreferrer noopener",href:t,className:"text-info-link text-h4",children:null!=(a=null==(r=e.miscellaneous)?void 0:r.binaryVersion)?a:"â"}):(0,s.jsx)("span",{className:"text-h4 text-primary-text",children:null!=(l=null==(n=e.miscellaneous)?void 0:n.binaryVersion)?l:"â"})}})};var o=r(6874),d=r.n(o);let c=()=>{let{parameters:e}=(0,a.uN)();return(0,s.jsx)(l.v,{renderWidgetTitleElement:()=>(0,s.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,s.jsx)(n.CosmosSdkIcon,{className:"h-5 w-5"}),(0,s.jsx)("span",{className:"text-h5 text-primary-text",children:"Cosmos SDK Version"})]}),renderWidgetValueElement:()=>{var t,r,n;return e&&(0,s.jsx)(d(),{href:"https://github.com/cosmos/cosmos-sdk/releases/tag/".concat(null==(t=e.miscellaneous)?void 0:t.cosmosSdkVersion),className:"text-info-link text-h4",children:null!=(n=null==(r=e.miscellaneous)?void 0:r.cosmosSdkVersion)?n:"â"})}})},x=()=>{var e,t;let{parameters:r}=(0,a.uN)();return(0,s.jsx)(l.v,{renderWidgetTitleElement:()=>(0,s.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,s.jsx)(n.TendermintIcon,{className:"h-5 w-5"}),(0,s.jsx)("span",{className:"text-h5 text-primary-text",children:"Tendermint Version"})]}),widgetValue:null!=(t=null==r||null==(e=r.miscellaneous)?void 0:e.tendermintVersion)?t:"â"})},m=()=>(0,s.jsxs)("div",{className:"flex w-full flex-col gap-5",children:[(0,s.jsx)("h4",{className:"text-h4 text-primary-text",children:"Binary Information"}),(0,s.jsxs)("div",{className:"grid w-full flex-row gap-2.5 md:grid-cols-3 xl:gap-5",children:[(0,s.jsx)(c,{}),(0,s.jsx)(x,{}),(0,s.jsx)(i,{})]})]})},52701:(e,t,r)=>{"use strict";r.d(t,{uN:()=>s.u});var s=r(12074)},58224:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,6874,23)),Promise.resolve().then(r.t.bind(r,33063,23)),Promise.resolve().then(r.bind(r,62146)),Promise.resolve().then(r.bind(r,10255)),Promise.resolve().then(r.bind(r,30383)),Promise.resolve().then(r.t.bind(r,71300,23)),Promise.resolve().then(r.bind(r,44700)),Promise.resolve().then(r.bind(r,39368)),Promise.resolve().then(r.bind(r,73419)),Promise.resolve().then(r.bind(r,85182)),Promise.resolve().then(r.bind(r,9337)),Promise.resolve().then(r.bind(r,4571)),Promise.resolve().then(r.bind(r,64574)),Promise.resolve().then(r.bind(r,5248
11)),Promise.resolve().then(r.bind(r,15050)),Promise.resolve().then(r.bind(r,39949)),Promise.resolve().then(r.bind(r,34530)),Promise.resolve().then(r.bind(r,19630)),Promise.resolve().then(r.bind(r,92650)),Promise.resolve().then(r.bind(r,51783)),Promise.resolve().then(r.bind(r,9928)),Promise.resolve().then(r.bind(r,69786)),Promise.resolve().then(r.bind(r,15972)),Promise.resolve().then(r.bind(r,12074)),Promise.resolve().then(r.bind(r,64308)),Promise.resolve().then(r.bind(r,54369)),Promise.resolve().then(r.bind(r,19463)),Promise.resolve().then(r.bind(r,99384)),Promise.resolve().then(r.bind(r,70663)),Promise.resolve().then(r.bind(r,83728)),Promise.resolve().then(r.bind(r,59945)),Promise.resolve().then(r.bind(r,17843)),Promise.resolve().then(r.bind(r,17789)),Promise.resolve().then(r.bind(r,8122)),Promise.resolve().then(r.t.bind(r,42991,23)),Promise.resolve().then(r.bind(r,25548)),Promise.resolve().then(r.bind(r,52482)),Promise.resolve().then(r.bind(r,46491)),Promise.resolve().then(r.bind(r,83939)),Promise.resolve().then(r.bind(r,43674)),Promise.resolve().then(r.bind(r,21220)),Promise.resolve().then(r.bind(r,51547)),Promise.resolve().then(r.bind(r,20911)),Promise.resolve().then(r.bind(r,50978)),Promise.resolve().then(r.bind(r,80367)),Promise.resolve().then(r.bind(r,81270)),Promise.resolve().then(r.bind(r,46804)),Promise.resolve().then(r.bind(r,54901)),Promise.resolve().then(r.bind(r,77974)),Promise.resolve().then(r.bind(r,38306)),Promise.resolve().then(r.bind(r,89771)),Promise.resolve().then(r.bind(r,64923)),Promise.resolve().then(r.bind(r,65809)),Promise.resolve().then(r.bind(r,34211)),Promise.resolve().then(r.bind(r,52310)),Promise.resolve().then(r.bind(r,35936)),Promise.resolve().then(r.bind(r,4681)),Promise.resolve().then(r.bind(r,71770)),Promise.resolve().then(r.bind(r,32149)),Promise.resolve().then(r.bind(r,14902)),Promise.resolve().then(r.bind(r,69385)),Promise.resolve().then(r.bind(r,89024)),Promise.resolve().then(r.bind(r,13879)),Promise.resolve().then(r.bind(r,90125)),Promise.resolve().then(r.bind(r,5553)),Promise.resolve().then(r.bind(r,29773)),Promise.resolve().then(r.bind(r,27117)),Promise.resolve().then(r.bind(r,6092)),Promise.resolve().then(r.t.bind(r,49227,23)),Promise.resolve().then(r.bind(r,51072)),Promise.resolve().then(r.bind(r,10004)),Promise.resolve().then(r.bind(r,47029)),Promise.resolve().then(r.bind(r,67078)),Promise.resolve().then(r.bind(r,52565)),Promise.resolve().then(r.bind(r,64598)),Promise.resolve().then(r.bind(r,47410)),Promise.resolve().then(r.bind(r,59989)),Promise.resolve().then(r.bind(r,28781)),Promise.resolve().then(r.bind(r,52645)),Promise.resolve().then(r.bind(r,42983)),Promise.resolve().then(r.bind(r,55255)),Promise.resolve().then(r.bind(r,43541)),Promise.resolve().then(r.bind(r,95538)),Promise.resolve().then(r.bind(r,51587)),Promise.resolve().then(r.bind(r,89581)),Promise.resolve().then(r.bind(r,42813)),Promise.resolve().then(r.bind(r,18304))},64574:(e,t,r)=>{"use strict";r.d(t,{default:()=>k});var s=r(95155),n=r(12115),a=r(35695),l=r(52596),i=r(95478),o=r(55028);let d=["rest","evm_rpc","cosmos_rpc","graphql"],c={rest:{tab:"REST API",title:"REST API",description:"OpenAPI reference for the indexed Sei chain: blocks, transactions, validators, proposals, accounts, tokens, contracts and statistics. Every operation can be executed straight from this page."},evm_rpc:{tab:"EVM RPC",title:"EVM RPC",description:"Node-backed helpers for the Sei EVM: read contracts, resolve balances and allowances, prepare and broadcast transactions. Every operation is a POST with a JSON body."},cosmos_rpc:{tab:"Cosmos RPC",title:"Cosmos RPC",description:"Node-backed helpers for the Sei Cosmos layer: account and balance lookups, message preparation for send, staking and IBC, plus simulate and broadcast."},graphql:{tab:"GraphQL",title:"GraphQL API",description:"Run typed queries against the Sei index, edit variables, inspect the response and browse the published schema without leaving the explorer."}},x="/api/v2/evm/rpc",m="/api/v2/cosmos/rpc",u=["debug","views","query"],h=()=>"https://api-v2.seistream.app".replace(/\/+$/,""),p=/^(type|input|enum|interface|union|scalar)\s+([_A-Za-z][_0-9A-Za-z]*)\b/gm,g=(0,o.default)(()=>r.e(1364).then(r.bind(r,91364)),{loadableGenerated:{webpack:()=>[91364]},ssr:!1}),v=e=>{e.editor.defineTheme("seistream-dark",{base:"vs-dark",inherit:!0,rules:[],colors:{"editor.background":"#08080A","editor.foreground":"#F1F1F3","editorGutter.background":"#08080A","editor.lineHighlightBackgroun
1d":"#131316","editor.selectionBackground":"#3D372C","editor.inactiveSelectionBackground":"#262219","editorCursor.foreground":"#E8D5B7","editorLineNumber.foreground":"#55555C","editorLineNumber.activeForeground":"#F1F1F3","editorIndentGuide.background1":"#1A1A1E","editorIndentGuide.activeBackground1":"#2A2A31","scrollbarSlider.background":"#3A3A4266","scrollbarSlider.hoverBackground":"#4A4A5388","scrollbarSlider.activeBackground":"#5A5A6499"}}),e.editor.defineTheme("seistream-light",{base:"vs",inherit:!0,rules:[],colors:{"editor.background":"#FFFFFF","editor.foreground":"#18181B","editorGutter.background":"#FFFFFF","editor.lineHighlightBackground":"#F2F0EA","editor.selectionBackground":"#E4DAC5","editor.inactiveSelectionBackground":"#EFE9DB","editorCursor.foreground":"#8B6F47","editorLineNumber.foreground":"#A8A49B","editorLineNumber.activeForeground":"#18181B","editorIndentGuide.background1":"#E9E6DE","editorIndentGuide.activeBackground1":"#D6D0C2"}})},b=["type","input","enum","interface","union","scalar"],f={type:{label:"Object",className:"bg-container-info-link text-info-link"},input:{label:"Input",className:"bg-container-success text-success"},enum:{label:"Enum",className:"bg-container-attention text-attention"},interface:{label:"Interface",className:"bg-container-error text-error"},union:{label:"Union",className:"bg-container-info-link text-info-link"},scalar:{label:"Scalar",className:"bg-secondary text-secondary-text"}},j=e=>{let{endpoint:t,publicEndpoint:r,schemaUrl:a}=e,[o,d]=(0,n.useState)("query LatestActivity($limit: Int!) {\n chain {\n chainId\n latestHeight\n avgBlockTimeSec\n validatorsActive\n }\n blocks(limit: $limit) {\n height\n time\n hash\n txsCount\n proposer {\n moniker\n }\n }\n _meta {\n chainHead\n indexedHeight\n indexingLag\n syncStatus\n }\n}"),[c,x]=(0,n.useState)('{\n "limit": 3\n}'),[m,u]=(0,n.useState)("{}"),[h,j]=(0,n.useState)("variables"),[w,y]=(0,n.useState)(null),[N,k]=(0,n.useState)(""),[P,C]=(0,n.useState)(!1),[S,E]=(0,n.useState)(""),[A,T]=(0,n.useState)(""),[L,F]=(0,n.useState)(""),[I,B]=(0,n.useState)("Query"),[D,_]=(0,n.use
1State)("seistream-dark");(0,n.useEffect)(()=>{let e=document.documentElement,t=()=>_(e.classList.contains("dark")?"seistream-dark":"seistream-light");t();let r=new MutationObserver(t);return r.observe(e,{attributes:!0,attributeFilter:["class"]}),()=>r.disconnect()},[]),(0,n.useEffect)(()=>{let e=new AbortController;return E(""),T(""),fetch(a,{signal:e.signal}).then(async e=>{if(!e.ok)throw Error("Schema returned HTTP ".concat(e.status,"."));E(await e.text())}).catch(e=>{e instanceof DOMException&&"AbortError"===e.name||T(e instanceof Error?e.message:"Unable to load schema.")}),()=>e.abort()},[a]);let M=(0,n.useMemo)(()=>(e=>{let t=Array.from(e.matchAll(p));return t.map((r,s)=>{var n,a,l;let i=null!=(a=r.index)?a:0,o=null!=(l=null==(n=t[s+1])?void 0:n.index)?l:e.length,d=e.slice(i,o).trim(),c=d.indexOf("{"),x=d.lastIndexOf("}"),m=d.indexOf("\n"),u=c>=0?c:m>=0?m:d.length,h=d.slice(0,u).trim(),p=(c>=0&&x>c?d.slice(c+1,x):"").split("\n").map(e=>e.trim()).filter(e=>e&&!e.startsWith("#")&&!e.startsWith('"""')&&!(e.startsWith('"')&&e.endsWith('"')));return{kind:r[1],name:r[2],signature:h,lines:p,raw:d}})})(S),[S]),V=(0,n.useMemo)(()=>((e,t)=>{let r=t.trim().toLowerCase();return r?e.filter(e=>"".concat(e.kind," ").concat(e.name," ").concat(e.raw).toLowerCase().includes(r)):e})(M,L),[M,L]),O=(0,n.useMemo)(()=>L.trim()||!I?null:M.find(e=>e.name===I)||M.find(e=>"Query"===e.name)||M[0]||null,[M,L,I]),R=(0,n.useMemo)(()=>N||(w?"string"==typeof w.body?w.body:JSON.stringify(w.body,null,2):"// Run a query to see the server response."),[N,w]),W=async()=>{if(P)return;y(null),k("");let e={},r={},s=c.trim();if(s)try{let t=JSON.parse(s);if("object"!=typeof t||null===t||Array.isArray(t))throw Error();e=t}catch(e){k("Variables must be a valid JSON object.");return}let n=m.trim();if(n)try{let e=JSON.parse(n);if("object"!=typeof e||null===e||Array.isArray(e)||Object.values(e).some(e=>"string"!=typeof e))throw Error();r=e}catch(e){k("Headers must be a JSON object with string values.");return}C(!0);let a=performance.now();try{let s=await fetch(t,{method:"POST",headers:{accept:"application/graphql-response+json, application/json","content-type":"application/json",...r},body:JSON.stringify({query:o,variables:e})}),n=await s.text(),l=n;try{l=JSON.parse(n)}catch(e){}y({status:s.status,statusText:s.statusText,duration:Math.round(performance.now()-a),body:l})}catch(e){k(e instanceof Error?e.message:"The request failed.")}finally{C(!1)}},q=(0,n.useRef)(()=>{});return(0,n.useEffect)(()=>{q.current=()=>{W()}}),(0,s.jsxs)("div",{className:"overflow-hidden rounded-middle border border-[#966F22]/30 bg-[#0B0B0C] shadow-[0_22px_70px_rgba(0,0,0,0.3)]",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 border-b border-[#966F22]/25 bg-gradient-to-r from-[#600014]/35 via-[#131313] to-[#966F22]/10 px-4 py-3 lg:flex-row lg:items-center lg:justify-between",children:[(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"h-2.5 w-2.5 shrink-0 rounded-full bg-[#CDA34F] shadow-[0_0_14px_rgba(150,111,34,0.7)]"}),(0,s.jsx)("code",{className:"truncate font-jetbrains_mono text-[12px] text-secondary-text",children:r}),(0,s.jsx)(i.CopyButton,{text:r,noLabel:!0,iconClassName:"!h-4 !w-4"})]}),(0,s.jsxs)("button",{type:"button",onClick:()=>void W(),disabled:P,className:"flex min-w-[120px] items-center justify-center gap-2 rounded-small border border-[#D16A80]/45 bg-[#600014] px-4 py-2.5 text-h6 font-semibold text-white shadow-[0_8px_24px_rgba(96,0,20,0.35)] transition-colors hover:bg-[#7A1027] focus-visible:ring-2 focus-visible:ring-[#966F22]/60 disabled:cursor-wait disabled:opacity-70",children:[P&&(0,s.jsx)("span",{className:"h-3.5 w-3.5 animate-spin rounded-full border-2 border-info-link/40 border-t-info-link"}),P?"Runningâ¦":"Execute"]})]}),(0,s.jsx)("div",{className:"overflow-hidden",children:(0,s.jsxs)("div",{className:"grid min-w-0 grid-cols-1 overflow-hidden xl:h-[720px] xl:grid-cols-[minmax(280px,1fr)_minmax(280px,1fr)_minmax(250px,0.78fr)]",children:[(0,s.jsxs)("section",{className:"grid h-[540px] min-h-0 min-w-0 grid-rows-[minmax(0,1fr)_180px] overflow-hidden border-b border-secondary bg-[#090B0F] xl:h-auto xl:gr
1id-rows-[minmax(0,1fr)_220px] xl:border-b-0 xl:border-r",children:[(0,s.jsxs)("div",{className:"grid min-h-0 grid-rows-[40px_minmax(0,1fr)] overflow-hidden",children:[(0,s.jsxs)("div",{className:"flex h-10 items-center justify-between border-b border-white/10 bg-white/[0.035] px-3",children:[(0,s.jsx)("span",{className:"text-h7 font-medium uppercase tracking-[0.12em] text-white",children:"Query"}),(0,s.jsx)(i.CopyButton,{text:o,noLabel:!0,iconClassName:"!h-4 !w-4"})]}),(0,s.jsx)(g,{beforeMount:v,onMount:(e,t)=>{e.addCommand(t.KeyMod.CtrlCmd|t.KeyCode.Enter,()=>q.current())},height:"100%",value:o,onChange:e=>d(null!=e?e:""),language:"graphql",theme:D,options:{minimap:{enabled:!1},fontFamily:"var(--font-jetbrains-mono), monospace",fontSize:13,lineHeight:22,padding:{top:12},scrollBeyondLastLine:!1,wordWrap:"on",automaticLayout:!0,scrollbar:{alwaysConsumeMouseWheel:!1}}})]}),(0,s.jsxs)("div",{className:"grid min-h-0 grid-rows-[40px_minmax(0,1fr)] overflow-hidden border-t border-[#966F22]/25 bg-[#0D0C0A]",children:[(0,s.jsxs)("div",{className:"flex h-10 items-center justify-between border-b border-secondary px-3",children:[(0,s.jsx)("div",{className:"flex h-full items-center gap-4",role:"tablist","aria-label":"GraphQL request options",children:["variables","headers"].map(e=>(0,s.jsx)("button",{type:"button",role:"tab","aria-selected":h===e,onClick:()=>j(e),className:(0,l.A)("relative h-full text-h7 font-medium uppercase tracking-[0.12em] transition-colors focus-visible:text-info-link",h===e?"text-primary-text after:absolute after:inset-x-0 after:bottom-0 after:h-px after:bg-info-link":"text-tertiary-text hover:text-secondary-text"),children:e},e))}),(0,s.jsx)(i.CopyButton,{text:"variables"===h?c:m,noLabel:!0,iconClassName:"!h-4 !w-4"})]}),(0,s.jsx)(g,{beforeMount:v,height:"100%",value:"variables"===h?c:m,onChange:e=>"variables"===h?x(null!=e?e:""):u(null!=e?e:""),language:"json",theme:D,options:{minimap:{enabled:!1},fontFamily:"var(--font-jetbrains-mono), monospace",fontSize:13,lineHeight:22,padding:{top:10},scrollBeyondLastLine:!1,automaticLayout:!0,scrollbar:{alwaysConsumeMouseWheel:!1}}})]})]}),(0,s.jsxs)("section",{className:"grid h-[360px] min-h-0 min-w-0 grid-rows-[40px_minmax(0,1fr)] overflow-hidden border-b border-secondary bg-[#0B0B0C] xl:h-auto xl:border-b-0 xl:border-r",children:[(0,s.jsxs)("div",{className:"flex h-10 items-center justify-between border-b border-[#966F22]/25 bg-[#966F22]/[0.06] px-3",children:[(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,s.jsx)("span",{className:"shrink-0 text-h7 font-medium uppercase tracking-[0.12em] text-tertiary-text",children:(0,s.jsx)("span",{className:"text-[#CDA34F]",children:"Response"})}),(0,s.jsx)("span",{"aria-live":"polite",className:(0,l.A)("truncate text-h7",w&&w.status<400&&!N?"text-success":"text-error"),children:N?"Request error":w?"".concat(w.status," ").concat(w.statusText||""," \xb7 ").concat(w.duration," ms"):""})]}),(0,s.jsx)(i.CopyButton,{text:R,noLabel:!0,iconClassName:"!h-4 !w-4"})]}),(0,s.jsx)(g,{beforeMount:v,height:"100%",value:R,language:N||"string"==typeof(null==w?void 0:w.body)?"plaintext":"json",theme:D,options:{readOnly:!0,minimap:{enabled:!1},fontFamily:"var(--font-jetbrains-mono), monospace",fontSize:13,lineHeight:22,padding:{top:12},scrollBeyondLastLine:!1,wordWrap:"on",automaticLayout:!0,scrollbar:{alwaysConsumeMouseWheel:!1}}})]}),(0,s.jsxs)("aside",{className:"grid h-[420px] min-h-0 min-w-0 grid-rows-[auto_minmax(0,1fr)] overflow-hidden bg-[#100B0D] xl:h-auto",children:[(0,s.jsxs)("div",{className:"border-b border-[#600014]/60 bg-[#600014]/20 p-3",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,s.jsx)("p",{className:"text-h7 font-medium uppercase tracking-[0.12em] text-tertiary-text",children:"Schema documentation"}),M.length>0&&(0,s.jsxs)("span",{className:"rounded-full bg-secondary/10 px-2 py-1 font-jetbrains_mono text-[10px] text-secondary-text",children:[M.length," types"]})]}),(0,s.jsx)("input",{id:"graphql-schema-search",name:"graphql-schema-search","aria-label":"Search schema types and fields",value:L,onChange:e=>F(e.target.value),autoComplete:"off",spellCheck:!1,placeholder:"Search types or fieldsâ¦",className:"mt-3 w-full rounded-small border border-secondary bg-tertiary px-3 py-2.5 text-h6 text-primary-text outline-none focus-visible:border-info-link focus-visible:ring-2 focus-visible:ring-info-link/20"})]}),(0,s.jsx)("div",{className:"scrollbar min-h-0 overflow-y-auto overscroll-contain",children:A?(0,s.jsx)("div",{className:"m-3 rounded-small border border-error/30 bg-container-error p-3 text-h6 leading-5 text-error",children:A}):S?O?(0,s.jsxs)("div",{className:"p-3",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>B(null),className:"flex items-center gap-2 text-h6 font-medium text-info-link hover:text-primary-text",children:[(0,s.jsx)("span",{"aria-hidden":"true",children:"â"}),"All schema types"]}),(0,s.jsxs)("div",{className:"mt-4 flex items-start justify-between gap-3",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("span",{className:(0,l.A)("inline-flex rounded-xs px-2 py-1 text-[10px] font-semibold uppercase tracking-[0.08em]",f[O.kind].className),children:f[O.kind].label}),(0,s.jsx)("h3",{className:"mt-2 break-words font-jetbrains_mono text-[17px] font-semibold text-primary-text",children:O.name}),(0,s.jsx)("p",{className:"mt-1 text-h7 text-tertiary-text",children:O.lines.length?"".concat(O.lines.length," fields"):O.signature})]}),(0,s.jsx)(i.CopyButton,{text:O.raw,noLabel:!0,iconClassName:"!h-4 !w-4"})]}),O.lines.length>0?(0,s.jsx)("ul",{className:"mt-4 space-y-1.5",children:O.lines.map((e,t)=>{let r=(e=>{var t,r;let s=e.lastIndexOf(")"),n=e.indexOf(":",s>=0?s+1:0);return n<0?null:null!=(r=null==(t=e.slice(n+1).match(/[_A-Za-z][_0-9A-Za-z]*/))?void 0:t[0])?r:null})(e),n=M.find(e=>e.name===r);return(0,s.jsx)("li",{children:(0,s.jsxs)("button",{type:"button",disabled:!n,onClick:()=>n&&B(n.name),className:(0,l.A)("flex w-full items-start justify-between gap-2 rounded-small border border-secondary/50 bg-tertiary/60 px-3 py-2.5 text-left transition-colors",n&&"cursor-pointer hover:border-info-link hover:bg-tertiary focus-visible:border-info-link disabled:cursor-default"),children:[(0,s.jsx)("code",{className:"block min-w-0
1whitespace-pre-wrap break-words font-jetbrains_mono text-[11px] leading-5 text-secondary-text",children:e}),n&&(0,s.jsx)("span",{"aria-hidden":"true",className:"mt-0.5 shrink-0 text-[13px] text-info-link",children:"â"})]})},"".concat(e,"-").concat(t))})}):(0,s.jsx)("div",{className:"mt-4 rounded-small border border-secondary bg-tertiary/60 p-3",children:(0,s.jsx)("code",{className:"font-jetbrains_mono text-[11px] leading-5 text-secondary-text",children:O.raw})})]}):V.length>0?(0,s.jsx)("div",{className:"space-y-5 p-3",children:b.map(e=>{let t=V.filter(t=>t.kind===e);return t.length?(0,s.jsxs)("section",{children:[(0,s.jsxs)("div",{className:"mb-2 flex items-center justify-between",children:[(0,s.jsx)("span",{className:(0,l.A)("rounded-xs px-2 py-1 text-[10px] font-semibold uppercase tracking-[0.08em]",f[e].className),children:f[e].label}),(0,s.jsx)("span",{className:"font-jetbrains_mono text-[10px] text-tertiary-text",children:t.length})]}),(0,s.jsx)("div",{className:"space-y-1",children:t.map(e=>(0,s.jsxs)("button",{type:"button",onClick:()=>{B(e.name),F("")},className:"group flex w-full items-center justify-between gap-3 rounded-small border border-transparent px-3 py-2.5 text-left hover:border-secondary hover:bg-tertiary focus-visible:border-info-link",children:[(0,s.jsx)("code",{className:"min-w-0 break-words font-jetbrains_mono text-[12px] text-primary-text group-hover:text-info-link",children:e.name}),e.lines.length>0&&(0,s.jsx)("span",{className:"shrink-0 font-jetbrains_mono text-[10px] text-tertiary-text",children:e.lines.length})]},e.name))})]},e):null})}):(0,s.jsxs)("div",{className:"p-6 text-center",children:[(0,s.jsx)("p",{className:"text-h6 font-medium text-primary-text",children:"No schema matches"}),(0,s.jsx)("p",{className:"mt-1 text-h7 leading-5 text-tertiary-text",children:"Try a type name or field such as hash."})]}):(0,s.jsx)("div",{className:"space-y-2 p-3",children:[1,2,3,4].map(e=>(0,s.jsx)("div",{className:"h-12 animate-pulse rounded-small bg-secondary/10"},e))})})]})]})})]})};var w=r(3780);r(11757),r(81038);let y=e=>{let{spec:t,surface:r,error:a,onRetry:l}=e,i=(()=>{let[e,t]=(0,n.useState)("dark");return(0,n.useEffect)(()=>{let e=document.documentElement,r=()=>t(e.classList.contains("dark")?"dark":"light");r();let s=new MutationObserver(r);return s.observe(e,{attributes:!0,attributeFilter:["class"]}),()=>s.disconnect()},[]),e})();(0,n.useEffect)(()=>{let e=window.setTimeout(()=>{"#description/introduction"===window.location.hash&&(window.history.replaceState(null,"","".concat(window.location.pathname).concat(window.location.search)),window.scrollTo({top:0}))},120);return()=>window.clearTimeout(e)},[r]);let o=(0,n.useMemo)(()=>({content:null!=t?t:void 0,layout:"classic",theme:"none",forceDarkModeState:i,hideDarkModeToggle:!0,hideDownloadButton:!0,hideModels:!0,showSidebar:!0,operationTitleSource:"summary",withDefaultFonts:!1,persistAuth:!1,showDeveloperTools:"never",defaultHttpClient:{targetKey:"shell",clientKey:"curl"},agent:{disabled:!0}}),[t,i]);return a?(0,s.jsxs)("div",{className:"rounded-middle border border-error/30 bg-container-error p-5",children:[(0,s.jsx)("p",{className:"text-h5 font-medium text-error",children:"The API reference could not be loaded."}),(0,s.jsxs)("p",{className:"mt-1 text-h6 text-error",children:[a," Check the backend connection, then try again."]}),(0,s.jsx)("button",{type:"button",onClick:l,className:"mt-4 rounded-small border border-error/40 px-4 py-2 text-h6 font-medium text-error hover:bg-error/10 focus-visible:ring-2 focus-visible:ring-error/30",children:"Reload Reference"})]}):t?(0,s.jsx)("div",{className:"seistream-scalar","data-surface":r,children:(0,s.jsx)(w.B,{configuration:o},r)}):(0,s.jsx)("div",{"aria-live":"polite",className:"grid min-h-[520px] place-items-center rounded-middle border border-secondary",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"mx-auto block h-5 w-5 animate-spin rounded-full border-2 border-info-link/30 border-t-info-link"}),(0,s.jsx)("p",{className:"mt-3 text-h6 text-secondary-text",children:"Loading API referenceâ¦"})]})})},N={rest:{dot:"bg-white",active:"border-white/25 bg-white/[0.07]",eyebrow:"text-white"},evm_rpc:{dot:"bg-[#CCCCCC]",active:"border-white/25 bg-white/[0.07]",eyebrow:"text-white"},cosmos_rpc:{dot:"bg-[#966F22]",active:"border-[#966F22]/55 bg-[#966F22]/10",eyebrow:"text-[#CDA34F]"},graphql:{dot:"bg-[#8A1730]",active:"border-[#8A1730]/70 bg-[#600014]/25",eyebrow:"text-[#D16A80]"}};function k(){var e,t;let r=(0,a.useSearchParams)(),o=(0,a.usePathname)(),p=(0,a.useRouter)(),g=(e=r.get("api"),null!=(t=d.find(t=>
1t===e))?t:"rest"),[v,b]=(0,n.useState)({status:"loading"}),[f,w]=(0,n.useState)(0);(0,n.useEffect)(()=>{let e=new AbortController;return b({status:"loading"}),fetch("/api/api-json",{signal:e.signal}).then(async e=>{if(!e.ok)throw Error("OpenAPI document returned HTTP ".concat(e.status,"."));let t=await e.json();if(!(e=>{if("object"!=typeof e||null===e||!("paths"in e))return!1;let t=e.paths;return"object"==typeof t&&null!==t})(t))throw Error("The OpenAPI document is malformed.");b({status:"ready",spec:t})}).catch(e=>{e instanceof DOMException&&"AbortError"===e.name||b({status:"error",message:e instanceof Error?e.message:"Unable to load the OpenAPI document."})}),()=>e.abort()},[f]);let k="ready"===v.status?v.spec:null,P="graphql"===g?null:g,C=(0,n.useMemo)(()=>k&&P?((e,t)=>{var r;let s={},n=new Set;return Object.entries(e.paths).forEach(e=>{let[r,a]=e;if(!((e,t)=>{let r=t.startsWith(x),s=t.startsWith(m);return"evm_rpc"===e?r:"cosmos_rpc"===e?s:!r&&!s})(t,r))return;let l=Object.fromEntries(Object.entries(a).filter(e=>{var t,r;let[,s]=e;return!(null!=(r=s.tags)?r:[]).some(e=>u.includes(e.toLowerCase()))&&(null==(t=s.tags)||t.forEach(e=>n.add(e)),!0)}));Object.keys(l).length&&(s[r]=l)}),{...e,info:{...e.info,title:c[t].title,description:c[t].description},paths:s,tags:null==(r=e.tags)?void 0:r.filter(e=>n.has(e.name))}})(k,P):null,[k,P]),S=c[g],E=(e=>{switch(e){case"evm_rpc":return"".concat(h()).concat(x);case"cosmos_rpc":return"".concat(h()).concat(m);case"graphql":return"".concat(h()).concat("/graphql");default:return h()}})(g);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("header",{className:"relative overflow-hidden rounded-middle border border-secondary bg-tertiary px-5 py-5 sm:px-7 sm:py-6",children:[(0,s.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute -right-16 -top-24 h-56 w-56 rounded-full bg-[#600014]/35 blur-3xl"}),(0,s.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute -bottom-24 right-48 h-40 w-40 rounded-full bg-[#966F22]/10 blur-3xl"}),(0,s.jsx)("p",{className:"relative font-jetbrains_mono text-[11px] font-medium uppercase tracking-[0.16em] text-[#B98A31]",children:"Seistream developer tools"}),(0,s.jsx)("h1",{className:"relative mt-2 text-pretty font-manrope text-h2 text-primary-text",children:"Build, send, inspect."}),(0,s.jsx)("p",{className:"mt-2 max-w-[72ch] text-pretty text-h5 leading-6 text-secondary-text",children:"Test indexed REST data, native Sei RPC methods and typed GraphQL queries in one focused workspace."})]}),(0,s.jsx)("nav",{"aria-label":"API surfaces",className:"mt-5 grid grid-cols-2 gap-2 sm:grid-cols-4",children:d.map(e=>{let t=e===g;return(0,s.jsxs)("button",{type:"button","aria-current":t?"page":void 0,onClick:()=>(e=>{let t=new URLSearchParams(r.toString());t.set("api",e),t.delete("tag"),p.push("".concat(o,"?").concat(t.toString()),{scroll:!1})})(e),className:(0,l.A)("relative flex min-w-0 touch-manipulation items-center justify-center gap-2 whitespace-nowrap rounded-small border px-2 py-3 text-h6 transition-colors focus-visible:ring-2 focus-visible:ring-info-link/30 sm:px-3 sm:text-h5",t?(0,l.A)("font-medium text-primary-text",N[e].active):"border-secondary bg-tertiary/50 text-secondary-text hover:border-secondary-variant hover:bg-tertiary hover:text-primary-text"),children:[(0,s.jsx)("span",{"aria-hidden":"true",className:(0,l.A)("h-2 w-2 rounded-full shadow-[0_0_12px_currentColor]",N[e].dot)}),c[e].tab]},e)})}),(0,s.jsxs)("section",{className:"mt-6",children:[(0,s.jsxs)("div",{className:(0,l.A)("flex flex-col justify-between gap-4 lg:flex-row lg:items-end","graphql"===g?"mb-6":"mb-3"),children:["graphql"===g?(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:(0,l.A)("mb-1 font-jetbrains_mono text-[10px] font-semibold uppercase tracking-[0.14em]",N[g].eyebrow),children:"Interactive workspace"}),(0,s.jsx)("h2",{className:"text-pretty text-h3 text-primary-text",children:S.title}),(0,s.jsx)("p",{className:"mt-2 max-w-[72ch] text-pretty text-h5 leading-6 text-secondary-text",children:S.description})]}):(0,s.jsx)("p",{className:(0,l.A)("font-jetbrains_mono text-[10px] font-semibold uppercase tracking-[0.14em]",N[g].eyebrow),children:"Interactive OpenAPI workspace"}),(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-3 rounded-small border border-secondary-variant bg-background/70 px-3 py-2.5 shadow-[0_12px_30px_rgba(0,0,0,0.16)] lg:max-w-[560px]",children:[(0,s.jsx)("span",{className:"shrink-0 text-h7 uppercase tracking-[0.1em] text-tertiary-text",children:"Base URL"}),(0,s.jsx)("code",{translate:"no",className:"min-w-0 flex-1 truncate font-jetbrains_mono text-[12px] text-primary-text",children:E}),(0,s.jsx)(i.CopyButton,{text:E,noLabel:!0,iconClassName:"!h-4 !w-4"})]})]}
1),"graphql"===g?(0,s.jsx)(j,{endpoint:"/api/graphql",publicEndpoint:E,schemaUrl:"/api/graphql/schema.graphql"}):(0,s.jsx)(y,{spec:C,surface:g,error:"error"===v.status?v.message:"",onRetry:()=>w(e=>e+1)})]})]})}},73419:(e,t,r)=>{"use strict";r.d(t,{NetworkDataTitle:()=>l});var s=r(95155),n=r(12115),a=r(88699);let l=e=>{let{mapData:t}=e,[r,l]=(0,n.useState)(0);return(0,n.useEffect)(()=>{l(Object.keys((0,a.DX)(null!=t?t:[])).length)},[t]),(0,s.jsxs)("article",{className:"mt-5 flex items-center gap-15",children:[(0,s.jsx)("h1",{className:"font-manrope text-h2 text-primary-text",children:"Node Data center"}),(0,s.jsx)("p",{className:"text-info-link bg-container-info-link rounded-xs px-15 py-1.5 text-h5",children:null!=r?r:""})]})}},81038:()=>{},85007:(e,t,r)=>{"use strict";r.d(t,{v:()=>i});var s=r(95155);r(12115);var n=r(52596),a=r(95478),l=r(88829);let i=e=>{let{className:t,chartValue:r,chartMaxValue:i,widgetTitle:o,widgetValue:d,renderWidgetTitleElement:c,renderWidgetValueElement:x}=e;return(0,s.jsx)(l.x,{className:(0,n.A)("flex w-full flex-col justify-between gap-2.5 rounded-middle border-1 border-secondary bg-primary px-30 py-5",t),children:(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsxs)("div",{className:"flex w-full flex-col gap-5",children:[c?c():(0,s.jsx)("span",{className:"text-h5 text-secondary-text",children:o}),x?x():(0,s.jsx)("span",{className:"text-h4 text-primary-text",children:d})]}),r&&(0,s.jsx)(a.CircleChart,{value:null!=r?r:0,size:46,max:null!=i?i:1,showPercentage:!1})]})})}},85182:(e,t,r)=>{"use strict";r.d(t,{NetworkDataWidgets:()=>d});var s=r(95155);r(12115);var n=r(66012),a=r(19169),l=r(4302),i=r(95478),o=r(95395);function d(){var e,t,r,d,c;let{tokenomics:x}=(0,l.WD)(),m=(0,a.Ay)("".concat((0,o.ZJ)(),"/api/v2/cosmos/validators/statistics"),o.uB);return(0,s.jsxs)("section",{className:"flex w-full flex-col gap-5",children:[(0,s.jsxs)(i.Widget,{className:"flex h-[108px] w-full items-start justify-between rounded-small border-1 border-secondary bg-tertiary p-5",children:[(0,s.jsx)("h3",{className:"text-h5 text-primary-text",children:"Staked"}),m.isLoading&&(0,s.jsx)(i.LoadingSkeleton,{containerClassName:"w-20"}),!m.isLoading&&!!(null==m||null==(e=m.data)?void 0:e.totalStaked)&&(0,s.jsx)(i.TokenAmount,{amount:null==(r=m.data)||null==(t=r.totalStaked)?void 0:t.toString(),division:(0,o.ag)(),showDollars:!0,className:"flex-col !items-end text-h5 text-primary-text",textStatusClassName:"text-h3"}),!m.isLoading&&!(null==m||null==(d=m.data)?void 0:d.totalStaked)&&(0,s.jsx)("p",{className:"text-h5 text-primary-text",children:"-"})]}),(0,s.jsxs)(i.Widget,{className:"relative flex h-[108px] w-full flex-col justify-between rounded-small border-1 border-secondary bg-tertiary p-5",children:[(0,s.jsx)(n.CircleIcon,{className:"absolute right-6 top-5 h-2 w-2 text-success"}),(0,s.jsx)("h3",{className:"text-h5 text-tertiary-text",children:"APR Reward"}),(0,s.jsx)("p",{className:"text-h4 text-primary-text",children:(null==x?void 0:x.apr)&&(null==x||null==(c=x.apr)?void 0:c.toFixed(2))+"%"||"-"}),(0,s.jsx)(n.DatabaseIcon,{className:"absolute bottom-5 right-5 h-[44px] w-[52px] text-secondary"})]})]})}},88699:(e,t,r)=>{"use strict";r.d(t,{U:()=>n,DX:()=>s}),r(49316),r(95395);let s=e=>e.reduce((e,t)=>(t.as&&(e[t.as]||(e[t.as]=[]),e[t.as].push(t)),e),{}),n=e=>{if(e<=0)return"0 mins left";let t=Math.floor(e/86400),r=Math.floor(e%86400/3600),s=Math.floor(e%3600/60);return t>0?"".concat(t," day").concat(t>1?"s":""," left"):r>0?"".concat(r," hour").concat(r>1?"s":""," left"):s>0?"".concat(s," min").concat(s>1?"s":""," left"):"".concat(Math.ceil(e)," sec").concat(Math.ceil(e)>1?"s":""," left")}},92650:(e,t,r)=>{"use strict";r.d(t,{StakingParameters:()=>h});var s=r(95155);r(12115);var n=r(80091),a=r(52701),l=r(85007);let i=()=>{let{parameters:e}=(0,a.uN)();return(0,s.jsx)(l.v,{widgetTitle:"Bond Denom",renderWidgetValueElement:()=>{var t,r,a;return(0,s.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,s.jsx)("span",{className:"text-h4 text-primary-text",children:null!=(a=null==e||null==(r=e.staking)||null==(t=r.bondDenom)?void 0:t.toUpperCase())?a:"â"}
1),(0,s.jsx)(n.RedSeiLogo,{className:"h-4 w-4 rounded-full"})]})}})},o=()=>{var e,t;let{parameters:r}=(0,a.uN)();return(0,s.jsx)(l.v,{widgetTitle:"Historical Entries",widgetValue:(null==r||null==(e=r.staking)?void 0:e.maxEntries)?String(null==r||null==(t=r.staking)?void 0:t.maxEntries):"-"})};var d=r(66012);let c=()=>{let{parameters:e}=(0,a.uN)();return(0,s.jsx)(l.v,{widgetTitle:"Staking Parameters",renderWidgetValueElement:()=>{var t,r;return(0,s.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,s.jsx)(d.HumanIcon,{className:"h-5 w-5 text-tertiary-text "}),(0,s.jsx)("span",{className:"shrink-0 text-h4 font-medium text-primary-text",children:null!=(r=null==e||null==(t=e.staking)?void 0:t.maxValidators)?r:"â"})]})}})};var x=r(49316);let m=()=>{let{parameters:e}=(0,a.uN)();return(0,s.jsx)(l.v,{widgetTitle:"Unboding Time",renderWidgetValueElement:()=>{var t,r;return(0,s.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,s.jsx)(d.ClockBellsIcon,{className:"h-5 w-5 text-tertiary-text "}),(0,s.jsx)("span",{className:"shrink-0 text-h4 font-medium text-primary-text",children:(null==e||null==(t=e.staking)?void 0:t.unbondingTime)?(0,x.convertSeconds)(null==e||null==(r=e.staking)?void 0:r.unbondingTime):"â"})]})}})},u=()=>{var e,t;let{parameters:r}=(0,a.uN)();return(0,s.jsx)(l.v,{widgetTitle:"Max Entries",widgetValue:(null==r||null==(e=r.staking)?void 0:e.historicalEntries)?(0,x.formatNumber)(null==r||null==(t=r.staking)?void 0:t.historicalEntries):"â"})},h=()=>(0,s.jsxs)("div",{className:"flex w-full flex-col gap-2.5 lg:gap-5",children:[(0,s.jsx)("h4",{className:"text-h4 text-primary-text",children:"Slashing Parameters"}),(0,s.jsxs)("div",{className:"grid w-full flex-row gap-2.5 md:grid-cols-3 lg:grid-cols-4 xl:gap-5",children:[(0,s.jsx)(c,{}),(0,s.jsx)(m,{}),(0,s.jsx)(i,{}),(0,s.jsx)(o,{}),(0,s.jsx)(u,{})]})]})}},e=>{e.O(0,[3032,9158,6620,2711,134,5847,3051,8451,9690,9226,4390,9739,6079,7232,596,3154,4987,8834,4134,2437,7255,6640,1023,5062,5796,170,2831,8207,8441,2374,7358],()=>e(e.s=58224)),_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.