PageSourceSearch

https://solana.org/_next/static/chunks/7531.fc71841af9b8676d.js

js solana.org collected 2026-09-24 10:20:37 UTC 23,446 bytes, 5 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7531],{8765:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(6029);r(55729);var i=r(90636);let a=r(41735).Ay.div.withConfig({componentId:"sc-a0f8c18d-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;.text{margin-top:8px;}"]),s=({size:e,text:t,...r})=>(0,n.jsxs)(a,{...r,children:[(0,n.jsx)(i.A,{size:e}),(0,n.jsx)("span",{className:"text",children:t})]})},17094:e=>{"use strict";e.exports=function(e){if(e.length>=255)throw TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r<t.length;r++)t[r]=255;for(var n=0;n<e.length;n++){var i=e.charAt(n),a=i.charCodeAt(0);if(255!==t[a])throw TypeError(i+" is ambiguous");t[a]=n}var s=e.length,o=e.charAt(0),l=Math.log(s)/Math.log(256),d=Math.log(256)/Math.log(s);function c(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;for(var r=0,n=0,i=0;e[r]===o;)n++,r++;for(var a=(e.length-r)*l+1>>>0,d=new Uint8Array(a);e[r];){var c=e.charCodeAt(r);if(c>255)return;var u=t[c];if(255===u)return;for(var m=0,h=a-1;(0!==u||m<i)&&-1!==h;h--,m++)u+=s*d[h]>>>0,d[h]=u%256>>>0,u=u/256>>>0;if(0!==u)throw Error("Non-zero carry");i=m,r++}for(var g=a-i;g!==a&&0===d[g];)g++;for(var f=new Uint8Array(n+(a-g)),p=n;g!==a;)f[p++]=d[g++];return f}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,n=0,i=0,a=t.length;i!==a&&0===t[i];)i++,r++;for(var l=(a-i)*d+1>>>0,c=new Uint8Array(l);i!==a;){for(var u=t[i],m=0,h=l-1;(0!==u||m<n)&&-1!==h;h--,m++)u+=256*c[h]>>>0,c[h]=u%s>>>0,u=u/s>>>0;if(0!==u)throw Error("Non-zero carry");n=m,i++}for(var g=l-n;g!==l&&0===c[g];)g++;for(var f=o.repeat(r);g<l;++g)f+=e.charAt(c[g]);return f},decodeUnsafe:c,decode:function(e){var t=c(e);if(t)return t;throw Error("Non-base"+s+" character")}}}},37430:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(6029),i=r(55729),a=r(23767),s=r(86596),o=r(8765),l=r(96723);let d=({program:e,isReKYC:t,onComplete:d,onCancel:c,onError:u})=>{let[m,h]=(0,i.useState)(!0),[g,f]=(0,i.useState)(null),p=(0,i.useRef)(null);return((0,i.useEffect)(()=>{let n=!1;return(async()=>{try{let i=await (0,l.A)("/persona/init",{method:"POST",body:{program:e,isReKYC:t},withCredentials:!0});if(n)return;let{inquiryId:a,sessionToken:s}=i,o=(await r.e(5497).then(r.t.bind(r,55497,23))).default;if(n)return;let m=new o.Client({inquiryId:a,sessionToken:s,onReady:()=>{n||(h(!1),m.open())},onComplete:d,onCancel:c,onError:e=>{u(e?.message||"An error occurred during verification")}});p.current=m}catch(e){if(!n){let t=e instanceof Error?e.message:"Failed to initialize verification. Please try again.";f(t),h(!1),u(t),a.Cp(e instanceof Error?e:Error(t))}}})(),()=>{n=!0,p.current&&(p.current.destroy(),p.current=null)}},[]),g)?(0,n.jsxs)("div",{className:s["persona-kyc-container"],children:[(0,n.jsx)("div",{className:"text-danger",children:g}),(0,n.jsx)("button",{className:"special",onClick:()=>window.location.reload(),children:"Try Again"})]}):m?(0,n.jsx)(o.A,{size:48,text:"Please wait for the verification process to initialize..."}):null}},38956:(e,t,r)=>{"use strict";r.d(t,{i:()=>m});var n=r(6029),i=r(55729),a=r(41735),s=r(50190),o=r(3580);let l=a.Ay.div.withConfig({componentId:"sc-84e7115f-0"})([""]),d=a.Ay.div.withConfig({componentId:"sc-84e7115f-1"})(["display:flex;margin-bottom:16px;"]),c=a.Ay.div.withConfig({componentId:"sc-84e7115f-2"})(["flex:0 0 140px;"]),u=a.Ay.div.withConfig({componentId:"sc-84e7115f-3"})(["flex:1;font-weight:bold;"]),m=e=>{let{values:t,rekyc:r=!1}=e,{email:a,discordID:m,mbPK:h,mainnetPubkey:g}=t,{state:f}=(0,s.Ww)();return i.useEffect(()=>{f.clearData()},[]),(0,n.jsxs)(l,{children:[(0,n.jsx)("h4",{children:"Review your information"}),(0,n.jsxs)(d,{children:[(0,n.jsx)(c,{children:"Email:"}),(0,n.jsx)(u,{children:a})]}),(0,n.jsxs)(d,{children:[(0,n.jsx)(c,{children:"Discord ID:"}),(0,n.jsx)(u,{children:m})]}),(0,n.jsxs)(d,{children:[(0,n.jsx)(c,{children:"Mainnet key:"}),(0,n.jsx)(u,{children:h||g})]}),(0,n.jsxs)("p",{children:["If any of this information is incorrect"," ",(0,n.jsx)("a",{href:"https://docs.google.com/forms/d/e/1FAIpQLSe24zQ-3QipAqlqSVnoRs7Iv8eYwYFSVKPSbdYrNig41H5PKQ/viewform",target:"_blank",rel:"noreferrer",children:"let us know"}),". You should receive an email regarding your verification status in the next thirty minutes. You also need to fill out"," ",(0,n.jsx)("a",{href:o.SFDP_URLS.ecpqForm,target:"_blank",rel:"noopener noreferrer",children:"this form"}),"\xa0 to describe how you contribute to the Solana ecosystem."]}),!r&&(0,n.jsxs)("p",{children:["In the meatime, after you’ve started up your testnet validator, you can airdrop yourself some test SOL to get started. You can follow"," ",(0,n.jsx)("a",{href:"https://docs.solana.com/cli/transfer-tokens",target:"_blank",rel:"noreferrer",children:"these instructions"})," ","to learn how to do so."]})]})}},55753:(e,t,r)=>{"use strict";r.d(t,{X:()=>i});var n=r(98412);let i=e=>!!e&&n.m(e)},62384:(e,t,r)=>{"use strict";r.d(t,{r:()=>i});var n=r(96723);let i=async(e,t,r,n="delegation")=>a("/email/verification/resendForSignedMessage",{mainnetPubkey:e,signedMessage:t,foundationProgram:n,email:r});async function a(e,t){return(0,n.A)(e,{method:"POST",body:t,json:!1,errorMessage:"Failed to request new email verification code",withCredentials:!0})}},62473:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>Y});
1var n=r(6029),i=r(55729),a=r(41735),s=r(76319);let o=a.Ay.div.withConfig({componentId:"sc-8b217b88-0"})(["display:flex;flex-direction:row;margin-top:64px;.pill{width:14px;height:8px;margin:0 4px;border-radius:4px;&.complete{background-color:var(--primary);}&.incomplete{background-color:#e2e2ef;}}"]);function l({numberSteps:e,currentStepNumber:t}){let r=[];for(let i=1;i<=e;++i){let e;e=i<=t?"complete":"incomplete",r.push((0,n.jsx)("span",{className:`pill ${e}`},i+1))}return(0,n.jsx)(o,{children:r})}var d=r(37430);let c=["Sign Up for Solana Foundation Delegation Program","Contact information","Validate your email","Participation agreement","Identity verification","Thanks for applying!"];var u=r(37571),m=r(65966),h=r(96723),g=r(8765),f=r(50190),p=r(33601);let x="Could not initialize agreement form",y=a.Ay.div.withConfig({componentId:"sc-f054f610-0"})(["width:100%;.x-hellosign-embedded iframe{min-height:600px;",";",";}"],m.X.md`
2      min-height: ${m.L.md}px;
3    `,m.X.lg`
4      min-height: ${m.L.lg}px;
5    `),v=({setErrorMessage:e,goNext:t,handleClose:r,handleReturnToContactInformation:a})=>{let s=(0,i.useRef)(null),{state:o}=(0,f.Ww)(),{resetForm:l,userData:d}=o;(0,i.useEffect)(()=>{!async function(){try{let e=await (0,h.A)("/validators/signup-agreement-start",{method:"POST",errorMessage:x,body:{email:d.email,mainnetPubkey:d.mainnetPubkey,signedMessage:d.signedMessage,test_mode:p.env.NEXT_PUBLIC_TEST_MODE||0,foundationProgram:"delegation"},withCredentials:!0}),r=new window.HelloSign;r.on("sign",async e=>{(await (0,h.A)("/validators/signup-agreement-done",{method:"POST",json:!1,errorMessage:x,body:{mainnetPubkey:d.mainnetPubkey,signedMessage:d.signedMessage,hellosign_signature_id:e.signatureId,foundationProgram:"delegation"},withCredentials:!0})).ok?(r.close(),t()):console.info("there was an error signing....")}),r.open(e.signUrl,{clientId:"ebc8ae25ad6870d0892d8eecbc4b6ea2",container:s.current,allowCancel:!1,skipDomainVerification:!0}),m(!1)}catch(t){e(t.responseData?.message||t.message),b(t.responseData?.message||t.message),m(!1)}}()},[]);let[c,m]=(0,i.useState)(!0),[v,b]=(0,i.useState)(null);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.m,{children:(0,n.jsx)("script",{src:"https://cdn.hellosign.com/public/js/embedded/v2.10.0/embedded.production.min.js",defer:!0})}),c&&(0,n.jsx)(g.A,{text:"Please wait for the Participation Agreement to load..."}),!c&&(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{children:(0,n.jsx)("strong",{children:"Download Agreement"})}),(0,n.jsxs)("p",{children:["You may download the agreement"," ",(0,n.jsx)("a",{href:"/faq#legal_terms",target:"_blank",rel:"noopener noreferrer",children:"here"}),'. If you want to sign the document later, you may exit the signup by clicking "cancel" and return to where you left off by beginning the signup again with the same validator identity keys.']})]}),(0,n.jsx)(y,{ref:s,"data-testid":"hellosign-iframe"}),v&&(0,n.jsx)("div",{"data-testid":"error-message",className:"text-danger",children:v}),(0,n.jsx)("form",{children:(0,n.jsxs)("div",{className:"buttons responsive",children:[(0,n.jsx)("button",{type:"button",onClick:a,disabled:c,children:"Return to Contact information"}),(0,n.jsx)("div",{className:"inner_buttons",children:(0,n.jsx)("button",{type:"reset",onClick:()=>{e(null),b(null),l(),r()},children:"Cancel"})})]})})]})};var b=r(62384),j=r(85483),E=r(38956),w=r(98324),A=r(47623),S=r(98412),k=r(64994),N=r(90636),_=r(82203),C=r.n(_),P=r(55753),T=r(3580);let I=()=>(0,n.jsx)("a",{href:"https://docs.solana.com/running-validator/validator-start#generate-identity",target:"_blank",rel:"noopener noreferrer",children:"get a key →"}),D=A.object().shape({mbPK:A.string().default("").required("Mainnet key is required").test("valid-mainnet-key","Mainnet Beta pubkey is not valid",e=>!!e&&S.T(e)),tnPK:A.string().default("").required("Testnet pubkey is required").test("valid-testnet-key","Testnet pubkey is not valid",e=>!!e&&S.T(e)).notOneOf([(0,A.ref)("mbPK")],"The testnet identity key must be different from the mainnet identity key"),mainnetSig:A.string().default("").required("Mainnet validator identity key signature is required").test("valid-wallet-sig-format","Signature not verified",P.X),testnetSig:A.string().default("").required("Testnet Wallet address Signature is required").test("valid-wallet-sig-format","Signature not verified",P.X)}),R=({onRestore:e,onSuccess:t,handleClose:r})=>{let{state:a}=(0,f.Ww)(),{userData:s,resetForm:o,setUserData:l}=a,[d,c]=(0,i.useState)();async function u(r){let n;c("");try{n=await (0,h.A)("/validators/sign-message",{method:"POST",errorMessage:"Unable to check keys at this time",body:{mbpk:r.mbPK,tnpk:r.tnPK,mainnetSig:r.mainnetSig,testnetSig:r.testnetSig},withCredentials:!0})}catch(e){c(e.responseData?.message||e.message);return}!0===n.restore?e(n):n.message?c(n.message):(l({...s,...r,...n.userData}),t())}return(0,n.jsx)(w.l1,{initialValues:D.getDefault(),validationSchema:D,onSubmit:u,children:({errors:e,isSubmitting:t,isValid:i,dirty:a,touched:l})=>(0,n.jsxs)(w.lV,{children:[(0,n.jsxs)("p",{children:["Prove that you own your Testnet and Mainnet Beta validator identity keypairs by signing the string"," ",(0,n.jsx)("code",{"data-testid":"message-to-sign",children:s.messageToSign})," with their private keys."]}),(0,n.jsxs)("p",{children:["To sign the string, use the ",(0,n.jsx)("code",{children:"solana"})," CLI's sign-offchain-message functionality. The command will look like this, with \"",(0,n.jsx)("code",{children:"PATH_TO_KEYPAIR"}),'" replaced with the path to your validator identity keypair:']}),(0,n.jsx)("p",{children:(0,n.jsxs)("code",{children:["$ solana sign-offchain-message ",s.messageToSign," --keypair PATH_TO_KEYPAIR"]})}),(0,n.jsxs)("p",{children:["After completing this process, you will also need to fill out"," ",(0,n.jsx)("a",{href:T.SFDP_URLS.ecpqForm,target:"_blank",rel:"noopener noreferrer",children:"this form"})," ","to explain how you contribute to the Solana ecosystem. Please note that in order to receive a delegation, prospective participants must pass KYC/AML and meet the performance criteria outlined"," ",(0,n.jsx)(C(),{href:"/delegation-criteria",children:"here"}),"."]}),(0,n.jsx)("div",{className:"text-danger",role:"alert",children:d}),(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsx)("div",{className:"label-container",children:(0,n.jsxs)("label",{htmlFor:"mbpk",children:["Mainnet Beta validator identity pubkey ",(0,n.jsx)(I,{})]})}),(0,n.jsx)(w.D0,{id:"mbpk",name:"mbPK",placeholder:"Enter key",className:l.mbPK&&e.mbPK?"form-field-error":"","data-testid":"mainnet-pubkey"}),(0,n.jsx)(w.Kw,{name:"mbPK",children:e=>(0,n.jsx)(k.A,{msg:e})})]}),(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsx)("div",{className:"label-container",children:(0,n.jsxs)("label",{htmlFor:"walletsig",children:['"',s.messageToSign,'" signed with Mainnet validator identity key']})}),(0,n.jsx)(w.D0,{id:"mainnetsig",name:"mainnetSig",label:"Mainnet identity signature",className:l.mainnetSig&&e.mainnetSig?"form-field-error":"","data-testid":"mainnet-signature"}),(0,n.jsx)(w.Kw,{name:"mainnetSig",children:e=>(0,n.jsx)(k.A,{msg:e})})]}),(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsx)("div",{className:"label-container",children:(0,n.jsx)("label",{htmlFor:"mbpk",children:"Testnet validator identity pubkey"})}),(0,n.jsx)(w.D0,{id:"tnpk",name:"tnPK",placeholder:"Enter key",className:l.tnPK&&e.tnPK?"form-field-error":"","data-testid":"testnet-pubkey"}),(0,n.jsx)(w.Kw,{name:"tnPK",children:e=>(0,n.jsx)(k.A,{msg:e})})]}),(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsx)("div",{className:"label-container",children:(0,n.jsxs)("label",{htmlFor:"testnetsig",children:['"',s.messageToSign,'" signed with Testnet validator identity key']})}),(0,n.jsx)(w.D0,{id:"testnetsig",name:"testnetSig",label:"Testnet identity signature",className:l.testnetSig&&e.testnetSig?"form-field-error":"","data-testid":"testnet-signature"}),(0,n.jsx)(w.Kw,{name:"testnetSig",children:e=>(0,n.jsx)(k.A,{msg:e})})]}),(0,n.jsxs)("div",{className:"buttons",children:[(0,n.jsx)("button",{type:"reset",onClick:()=>{c(void 0),o(),r()},disabled:t,children:"Cancel"}),(0,n.jsxs)("button",{type:"submit",disabled:!(i&&a),children:[t&&(0,n.jsx)(N.A,{size:14,className:"mr-2"}),(0,n.jsx)("span",{children:"Next"})]})]})]})})},M=A.object().shape({emailVerificationCode:A.string().required().default("").length(6).label("Email verification code")}),V=({handleSendEmailVerification:e,handleVerifyEmail:t,handleGoBackEmailVerify:r,handleResetForm:i,email:a})=>(0,n.jsx)(w.l1,{initialValues:M.default(),validationSchema:M,onSubmit:t,children:({isSubmitting:t,isValid:s,dirty:o,touched:l,errors:d})=>(0,n.jsxs)(w.lV,{"data-testid":"email-verification",children:[(0,n.jsxs)("p",{children:["We’ve sent an email with your email verification code to ",(0,n.jsx)("i",{children:a}),"."]}),(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsx)("div",{className:"label-container",children:(0,n.jsx)("label",{htmlFor:"email-verification-code",children:"Email verification code"})}),(0,n.jsx)(w.D0,{id:"email-verification-code",name:"emailVerificationCode",placeholder:"Enter verification code",maxLength:"6",className:l.emailVerificationCode&&d.emailVerificationCode?"form-field-error":"","data-testid":"verification-code"}),(0,n.jsx)(w.Kw,{name:"emailVerificationCode",children:e=>(0,n.jsx)(k.A,{msg:e})})]}),(0,n.jsxs)("p",{children:["Didn't get an email or need a new verification code? ",(0,n.jsx)("a",{href:"#",onClick:e,children:"Resend"})," ","or"," ",(0,n.jsx)("a",{href:"#",onClick:r,children:"change your email address"}),"."]}),(0,n.jsxs)("div",{className:"buttons",children:[i&&(0,n.jsx)("button",{type:"reset",onClick:i,disabled:t,children:"Cancel"}),(0,n.jsxs)("button",{type:"submit",disabled:!(s&&o)||t,children:[(0,n.jsx)("span",{children:"Next"}),t&&(0,n.jsx)(N.A,{})]})]})]})}),L=()=>{let{state:e}=(0,i.useContext)(f.Z1),{userData:t,step:r,setStep:a,resetForm:s,handleClose:o,setUserData:u}=e,[m,p]=(0,i.useState)(null),[x,y]=(0,i.useState)(!0),w=(0,i.useCallback)(async()=>{try{let e=await (0,h.A)("/validators/restore-session",{method:"GET",withCredentials:!0}),r={...t,...e};u(r);let n=null;r.email?n=r.emailVerified?r.kycSuccessful?6:r.hellosignSignatureId?5:4:3:r.mbPK&&(n=2),n&&a(n)}catch(e){console.error(e)}y(!1)},[u,y,a]);(0,i.useEffect)(()=>{w()},[]);let A=async function(){u({...t,kycSuccessful:!0}),a(e=>e+1);try{await (0,h.A)("/logout?program=delegation",{method:"GET",withCredentials:!0,json:!1})}catch(e){console.error(e)}},S=(0,i.useCallback)(async()=>{try{await (0,b.r)(t.mainnetPubkey,t.signedMessage,t.email)}catch(e){e instanceof Error&&p(e.responseData?.message||e.message);return}p("Email verification code sent")},[t]),k=async e=>{let r;p(null);try{r=await (0,h.A)("/email/verification/verify",{method:"POST",errorMessage:"Failed to begin signup process",body:{email:t.email,emailVerificationCode:e.emailVerificationCode,mainnetPubkey:t.mainnetPubkey,signedMessage:t.signedMessage,foundationProgram:"delegation"},withCredentials:!0})}catch(e){p(e.responseData?.message||e.message);return}r.emailVerified?(u({...t,...e,emailVerified:r.emailVerified}),a(4)):p("Server returned 200 but didn't indicate whether email was verified")},N=(0,i.useCallback)(()=>{p(null),a(2)},[]),_=()=>{p(null),a(2)},C=()=>{p(null),s(),o()},P=c[r-1];return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"modal-form-content-wrapper","data-testid":"validator-form",children:[P&&(0,n.jsx)("h3",{children:P}),m&&(0,n.jsx)("div",{className:"text-danger",role:"alert",children:m}),x?(0,n.jsx)(g.A,{}):(()=>{switch(r){case 1:default:return(0,n.jsx)(R,{onRestore:()=>w(),onSuccess:()=>a(2),handleClose:o});case 2:return(0,n.jsx)(j.f,{onSuccess:()=>a(3),handleClose:o});case 3:return(0,n.jsx)(V,{handleSendEmailVerification:S,handleVerifyEmail:k,handleGoBackEmailVerify:N,handleResetForm:C,email:t.email});case 4:return(0,n.jsx)(v,{goNext:()=>a(5),setErrorMessage:p,handleReturnToContactInformation:_,handleClose:o});case 5:return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.A,{program:"DELEGATION",isReKYC:!1,onComplete:A,onCancel:()=>{p(null),o()},onError:e=>p(e)}),(0,n.jsx)("button",{onClick:()=>{p(null),o()},children:"Cancel"})]});case 6:return(0,n.jsx)(E.i,{values:t})}})(),(0,n.jsx)(l,{numberSteps:5,currentStepNumber:r})]})})},O=(0,i.memo)(function(){return(0,n.jsxs)("div",{style:{textAlign:"center"},children:[(0,n.jsx)("h2",{children:"Signups are temporarily disabled"}),(0,n.jsx)("br",{}),(0,n.jsxs)("h5",{children:["Signups are currently unavailable due to a routine upgrade. Apologies for the inconvenience; please try again later."," "]})]})});var U=r(33601);let F=a.Ay.div.withConfig({componentId:"sc-ceb32d75-0"})(["position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:flex;flex-direction:column;align-items:center;margin:0;padding:0;background-color:var(--bg-color);button.close-button{--size:32px;top:var(--size);right:var(--size);font-size:var(--size);}"]),K=a.Ay.div.withConfig({componentId:"sc-ceb32d75-1"})(["position:relative;background:none;width:100%;height:100%;padding-top:100px;display:flex;flex-direction:column;align-items:center;overflow-y:scroll;"]);function B(){let{state:e}=(0,i.useContext)(f.Z1),{handleClose:t}=e;return(0,s.wi)(t),(0,n.jsxs)(F,{children:[(0,n.jsx)("button",{className:"close-button",onClick:t,children:"\xd7"}),(0,n.jsx)(K,{children:U.env.NEXT_PUBLIC_DISABLE_SIGNUPS?(0,n.jsx)(O,{}):(0,n.jsx)(L,{})})]})}let Y=({foundationProgram:e,show:t,handleClose:r})=>((0,s.d6)(t),(0,n.jsx)(f.Ay,{foundationProgram:e,handleClose:r,children:(0,n.jsx)(B,{})}))},64994:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(6029);r(55729);let i=({msg:e})=>(0,n.jsx)("div",{className:"text-danger",role:"tooltip",children:e})},68981:(e,t,r)=>{e.exports=r(17094)("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},86596:e=>{e.exports={"persona-kyc-container":"PersonaKYC_persona-kyc-container__FwJ0t"}},90636:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(6029);r(55729);var i=r(47290);let a=e=>(0,n.jsx)(i.A,{...e,className:`${e.className} spinner`,"data-testid":"spinner"})},95795:(e,t,r)=>{"use strict";r.d(t,{H9:()=>x,Hk:()=>p,Jo:()=>o,MA:()=>l,OQ:()=>y,S9:()=>b,Tz:()=>a,XI:()=>g,bn:()=>u,c8:()=>c,cE:()=>f,gM:()=>d,lB:()=>s,pL:()=>h,qu:()=>v,yL:()=>i,z9:()=>m});var n=r(96723);r(3580);let i={"mainnet-beta":"Mainnet Beta",testnet:"Testnet"}
5,a=/^@?[^#@:`]{2,}#[0-9]{4}$|^(?!.*\.\.)[a-z0-9_.]{2,32}$/,s={NONE:"None",BONUS:"Bonus",BASELINE:"Baseline",NONE_HIGH_THIRD_PARTY_STAKE:"NoneHighThirdPartyStake",DELINQUENT:"Delinquent"};function o(e){return Math.max(...Object.keys(e.epochs).map(e=>parseInt(e,10)))}function l(e,t){return 100-100*(e=parseFloat(e))/(t=parseFloat(t))}function d(e){return"2"===e.sfdpVersion?(e.five_epoch_skip_rate||e.five_epoch_avg_skip_rate)+Number(e.config.max_skip_rate):e.max_skip_rate}function c(e){return isNaN(e)?"N/A":`${(Math.round(100*e)/100).toFixed(2)}%`}function u(e){return"number"==typeof e?.stats?.five_epoch_skip_rate?e.stats.five_epoch_skip_rate:"number"==typeof e?.stats?.five_epoch_average_skip_rate?e.stats.five_epoch_average_skip_rate:null}let m=40;async function h({searchTerm:e="",orderBy:t="name",orderDirection:r="asc",offset:i=0,limit:a=m,extract:s="data",kycStatusFilter:o="",kybStatusFilter:l="",flagged:d="",onboardingState:c="",errorMessage:u="Could not fetch validators"},g){let f;try{f=await (0,n.A)(g?"/admin/validators/list":"/validators/list",{params:{search_term:e,offset:i,limit:a,order_by:t,order:r,kycStatusFilter:o,kybStatusFilter:l,flagged:d,onboardingState:c},extract:s,errorMessage:u,withCredentials:!0})}catch(e){return{error:{message:e.responseData?.message||e.message}}}return f}async function g(e,t){let r,i=t?`/admin/validators/${e}`:`/validators/${e}`;try{r=await (0,n.A)(i,{params:{cacheStatus:t?"disable":"enable"},method:"GET",errorMessage:"Error: please try again later",withCredentials:!0})}catch(t){return{error:{message:t.response?.status===404?`Could not find validator with key: "${e}"`:t.responseData?.message||t.message}}}let a=r.mnStats||{epochs:{}},s=r.tnStats||{epochs:{}};return r.$mainnet={pk:r.mainnetBetaPubkey,currentEpoch:o(a),calculatedStats:r.mnCalculatedStats||{},stats:a},r.$testnet={pk:r.testnetPubkey,currentEpoch:o(s),stats:s,calculatedStats:r.tnCalculatedStats||{}},r}async function f(e,t){if("number"!=typeof e)throw Error("No record to update");try{return await (0,n.A)(`/admin/validators/${e}`,{method:"PUT",body:t,withCredentials:!0})}catch(e){throw Error(`Could not update record: ${e.responseData?.message||e.message||"Unknown error"}`,{cause:e})}}let p={APPROVED:"Approved",REFUSED:"Rejected",NEEDS_REVIEW:"Needs Review"};function x(e){if(!isNaN(e))return(1&e)>0}function y(e){return(2&e)>0?p.APPROVED:(4&e)>0?p.REFUSED:(1&e)>0?p.NEEDS_REVIEW:"Not flagged"}let v={MANUALLY_APPROVED:"Manually approved",MANUALLY_REJECTED:"Manually rejected",TRULIOO_VERIFIED:"Trulioo verified",PERSONA_VERIFIED:"Persona verified",NEEDS_REVIEW:"Needs review",ON_WATCHLIST:"On watchlist",NOT_A_BUSINESS:"Not a business",NOT_APPLICABLE:"N/A"};function b({truliooBusinessFound:e,truliooOnWatchlist:t,truliooManuallyApproved:r,isBusiness:n,personaIsBusiness:i,personaManualReviewStatus:a,personaStatus:s}){return i?"APPROVED"===a?v.MANUALLY_APPROVED:"REJECTED"===a?v.MANUALLY_REJECTED:("approved"===s||"completed"===s)&&null==a?v.PERSONA_VERIFIED:v.NEEDS_REVIEW:!1===e&&!1===t&&null===r?v.NEEDS_REVIEW:!0===t&&null===r?v.ON_WATCHLIST:!0===r?v.MANUALLY_APPROVED:!1===r?v.MANUALLY_REJECTED:!0===e&&!1===t?v.TRULIOO_VERIFIED:!1===n?v.NOT_A_BUSINESS:v.NOT_APPLICABLE}},98412:(e,t,r)=>{"use strict";r.d(t,{T:()=>a,m:()=>s});var n=r(68981),i=r.n(n);function a(e){try{return 32===i().decode(e).length}catch{return!1}}function s(e){try{return 64===i().decode(e).length}catch{return!1}}}}]);

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.