1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,14001,e=>{"use strict";let t;var r=e.i(93558),s=e.i(446),i=e.i(47854),a=e.i(31616),n=e.i(10934),o=e.i(51498),u=e.i(519),l=e.i(23092),c=class extends n.Subscribable{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#r=(0,o.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#e;#s=void 0;#i=void 0;#a=void 0;#n;#o;#r;#t;#u;#l;#c;#h;#d;#p;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#s.addObserver(this),h(this.#s,this.options)?this.#m():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#s,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#s,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#v(),this.#s.removeObserver(this)}setOptions(e){let t=this.options,r=this.#s;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,u.resolveQueryBoolean)(this.options.enabled,this.#s))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#R(),this.#s.setOptions(this.options),t._defaulted&&!(0,u.shallowEqualObjects)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#s,observer:this});let s=this.hasListeners();s&&p(this.#s,r,this.options,t)&&this.#m(),this.updateResult(),s&&(this.#s!==r||(0,u.resolveQueryBoolean)(this.options.enabled,this.#s)!==(0,u.resolveQueryBoolean)(t.enabled,this.#s)||(0,u.resolveStaleTime)(this.options.staleTime,this.#s)!==(0,u.resolveStaleTime)(t.staleTime,this.#s))&&this.#g();let i=this.#Q();s&&(this.#s!==r||(0,u.resolveQueryBoolean)(this.options.enabled,this.#s)!==(0,u.resolveQueryBoolean)(t.enabled,this.#s)||i!==this.#p)&&this.#x(i)}getOptimisticResult(e){var t,r;let s=this.#e.getQueryCache().build(this.#e,e),i=this.createResult(s,e);return t=this,r=i,(0,u.shallowEqualObjects)(t.getCurrentResult(),r)||(this.#a=i,this.#o=this.options,this.#n=this.#s.state),i}getCurrentResult(){return this.#a}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#r.status||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#f.add(e)}getCurrentQuery(){return this.#s}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#m(e){this.#R();let t=this.#s.fetch(this.options,e);return e?.throwOnError||(t=t.catch(u.noop)),t}#g(){this.#b();let e=(0,u.resolveStaleTime)(this.options.staleTime,this.#s);if(s.environmentManager.isServer()||this.#a.isStale||!(0,u.isValidTimeout)(e))return;let t=(0,u.timeUntilStale)(this.#a.dataUpdatedAt,e);this.#h=l.timeoutManager.setTimeout(()=>{this.#a.isStale||this.updateResult()},t+1)}#Q(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#s):this.options.refetchInterval)??!1}#x(e){this.#v(),this.#p=e,!s.environmentManager.isServer()&&!1!==(0,u.resolveQueryBoolean)(this.options.enabled,this.#s)&&(0,u.isValidTimeout)(this.#p)&&0!==this.#p&&(this.#d=l.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||r.focusManager.isFocused())&&this.#m()},this.#p))}#y(){this.#g(),this.#x(this.#Q())}#b(){void 0!==this.#h&&(l.timeoutManager.clearTimeout(this.#h),this.#h=void 0)}#v(){void 0!==this.#d&&(l.timeoutManager.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let r,s=this.#s,i=this.options,n=this.#a,l=this.#n,c=this.#o,d=e!==s?e.state:this.#i,{state:m}=e,y={...m},b=!1;if(t._optimisticResults){let r=this.hasListeners(),n=!r&&h(e,t),o=r&&p(e,s,t,i);(n||o)&&(y={...y,...(0,a.fetchState)(m.data,e.options)}),"isRestoring"===t._optimisticResults&&(y.fetchStatus="idle")}let{error:v,errorUpdatedAt:R,status:g}=y;r=y.data;let Q=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===g){let e;n?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(e=n.data,Q=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#c?.state.data,this.#c):t.placeholderData,void 0!==e&&(g="success",r=(0,u.replaceData)(n?.data,e,t),b=!0)}if(t.select&&void 0!==r&&!Q)if(n&&r===l?.data&&t.select===this.#u)r=this.#l;else try{this.#u=t.select,r=t.select(r),r=(0,u.replaceData)(n?.data,r,t),this.#l=r,this.#t=null}catch(e){this.#t=e}this.#t&&(v=this.#t,r=this.#l,R=Date.now(),g="error");let x="fetching"===y.fetchStatus,T="pending"===g,S="error"===g,I=T&&x,O=void 0!==r,w={status:g,fetchStatus:y.fetchStatus,isPending:T,isSuccess:"success"===g,isError:S,isInitialLoading:I,isLoading:I,data:r,dataUpdatedAt:y.dataUpdatedAt,error:v,errorUpdatedAt:R,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdate
1Count:y.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:y.dataUpdateCount>d.dataUpdateCount||y.errorUpdateCount>d.errorUpdateCount,isFetching:x,isRefetching:x&&!T,isLoadingError:S&&!O,isPaused:"paused"===y.fetchStatus,isPlaceholderData:b,isRefetchError:S&&O,isStale:f(e,t),refetch:this.refetch,promise:this.#r,isEnabled:!1!==(0,u.resolveQueryBoolean)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==w.data,r="error"===w.status&&!t,i=e=>{r?e.reject(w.error):t&&e.resolve(w.data)},a=()=>{i(this.#r=w.promise=(0,o.pendingThenable)())},n=this.#r;switch(n.status){case"pending":e.queryHash===s.queryHash&&i(n);break;case"fulfilled":(r||w.data!==n.value)&&a();break;case"rejected":r&&w.error===n.reason||a()}}return w}updateResult(){let e=this.#a,t=this.createResult(this.#s,this.options);if(this.#n=this.#s.state,this.#o=this.options,void 0!==this.#n.data&&(this.#c=this.#s),(0,u.shallowEqualObjects)(t,e))return;this.#a=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#f.size)return!0;let s=new Set(r??this.#f);return this.options.throwOnError&&s.add("error"),Object.keys(this.#a).some(t=>this.#a[t]!==e[t]&&s.has(t))};this.#T({listeners:r()})}#R(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#s)return;let t=this.#s;this.#s=e,this.#i=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#T(e){i.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#a)}),this.#e.getQueryCache().notify({query:this.#s,type:"observerResultsUpdated"})})}};function h(e,t){return!1!==(0,u.resolveQueryBoolean)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==(0,u.resolveQueryBoolean)(t.retryOnMount,e))||void 0!==e.state.data&&d(e,t,t.refetchOnMount)}function d(e,t,r){if(!1!==(0,u.resolveQueryBoolean)(t.enabled,e)&&"static"!==(0,u.resolveStaleTime)(t.staleTime,e)){let s="function"==typeof r?r(e):r;return"always"===s||!1!==s&&f(e,t)}return!1}function p(e,t,r,s){return(e!==t||!1===(0,u.resolveQueryBoolean)(s.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&f(e,r)}function f(e,t){return!1!==(0,u.resolveQueryBoolean)(t.enabled,e)&&e.isStaleByTime((0,u.resolveStaleTime)(t.staleTime,e))}var m=e.i(71339),y=e.i(38181);e.i(32380);var b=m.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),v=m.createContext(!1);v.Provider;var R=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});e.s(["useQuery",0,function(e,t){return function(e,t,r){let a,n=m.useContext(v),o=m.useContext(b),l=(0,y.useQueryClient)(r),c=l.defaultQueryOptions(e);l.getDefaultOptions().queries?._experimental_beforeQuery?.(c);let h=l.getQueryCache().get(c.queryHash),d=!1!==e.subscribed;if(c._optimisticResults=n?"isRestoring":d?"optimistic":void 0,c.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=c.staleTime;c.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof c.gcTime&&(c.gcTime=Math.max(c.gcTime,1e3))}a=h?.state.error&&"function"==typeof c.throwOnError?(0,u.shouldThrowError)(c.throwOnError,[h.state.error,h]):c.throwOnError,(c.suspense||c.experimental_prefetchInRender||a)&&!o.isReset()&&(c.retryOnMount=!1),m.useEffect(()=>{o.clearReset()},[o]);let p=!l.getQueryCache().get(c.queryHash),[f]=m.useState(()=>new t(l,c)),g=f.getOptimisticResult(c),Q=!n&&d;if(m.useSyncExternalStore(m.useCallback(e=>{let t=Q?f.subscribe(i.notifyManager.batchCalls(e)):u.noop;return f.updateResult(),t},[f,Q]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),m.useEffect(()=>{f.setOptions(c)},[c,f]),c?.suspense&&g.isPending)throw R(c,f,o);if((({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(i&&void 0===e.data||(0,u.shouldThrowError)(r,[e.error,s])))({result:g,errorResetBoundary:o,throwOnError:c.throwOnError,query:h,suspense:c.suspense}))throw g.error;if(l.getDefaultOptions().queries?._experimental_afterQuery?.(c,g),c.experimental_prefetchInRender&&!s.environmentManager.isServer()&&g.isLoading&&g.isFetching&&!n){let e=p?R(c,f,o):h?.promise;e?.catch(u.noop).finally(()=>{f.updateResult()})}return c.notifyOnChangeProps?g:f.trackResult(g)}(e,c,t)}],14001)},51220,e=>{"use strict";var t=e.i(32380),r=e.i(76922),s=e.i(21923),i=e.i(33903),a=e.i(79053);e.s(["StatStrip",0,function(){let e=(0,s.useTranslations)("stats"),n=(0,s.useTranslations)("common"),o=(0,r.useLocale)(),{data:u,isLoading:l,isError:c}=(0,a.useValidatorSummary)();if(c)return(0,t.jsx)("p",{className:"rounded-box border border-base-300 bg-base-200 p-5 text-sm text-base-content/60",children:n("staleData")});let h=u?(0,a.formatMonthYear)((0,a.estimateEpochDate)(u.firstEpoch,u.currentEpoch),o):"";return(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:[(0,t.jsx)(i.StatTile,{label:e("stakeTitle"),value:u?(0,a.formatSol)(u.activatedStake,o):"â",desc:e("stakeDesc"),loading:l}),(0,t.jsx)(i.StatTile,{label:e("stakersTitle"),value:u?(0,a.formatCount)(u.stakerCount,o):"â",desc:e("stakersDesc"),loading:l}),(0,t.jsx)(i.StatTile,{label:e("epochsTitle"),value:u?(0,a.formatCount)(u.epochsValidated,o):"â",desc:e("epochsDesc",{first:u?.firstEpoch??"â"}),loading:l}),(0,t.jsx)(i.StatTile,{label:e("sinceTitle"),value:h||"â",desc:e("sinceDesc",{first:u?.firstEpoch??"â"}),loading:l})]})}])},79053,e=>{"use strict";var t=e.i(14001);async function r(e){let t=await fetch(e);if(!t.ok)throw Error(`${e} responded ${t.status}`);return await t.json()}e.s(["estimateEpochDate",0,function(e,t){return new Date(Date.now()-(t-e)*216e6)},"formatCount",0,function(e,t){return null===e?"â":new Intl.NumberFormat(t).format(e)},"formatMonthYear",0,function(e,t){return new Intl.DateTimeFormat(t,{month:"long",year:"numeric"}).format(e)},"formatPercent",0,function(e,t,r=2){return null===e||Number.isNaN(e)?"â":`${new Intl.NumberFormat(t,{minimumFractionDigits:r,maximumFractionDigits:r}).format(e)}%`},"formatSol",0,function(e,t){return e>=1e6?`${new Intl.NumberFormat(t,{maximumFractionDigits:2}).format(e/1e6)}M`:e>=1e4?`${new Intl.NumberFormat(t,{maximumFractionDigits:1}).format(e/1e3)}K`:new Intl.NumberFormat(t,{maximumFractionDigits:2}).format(e)},"useValidatorHistory",0,function(){return(0,t.useQuery)({queryKey:["validator","history"],queryFn:()=>r("/api/validator/history"),staleTime:3e5})},"useValidatorSummary",0,function(){return(0,t.useQuery)({queryKey:["validator","summary"],queryFn:()=>r("/api/validator/summary"),staleTime:3e5,refetchInterval:3e5})}])},33903,e=>{"use strict";var t=e.i(32380);e.s(["Card",0,function({children:e,className:r=""}){return(0,t.jsx)("div",{className:`rounded-box border border-base-300 bg-base-200 p-6 ${r}`,children:e})},"KeyValue",0,function({label:e,value:r,mono:s=!1}){return(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-4 border-b border-base-300 py-3 last:border-0",children:[(0,t.jsx)("span",{className:"text-sm text-base-content/60",children:e}),(0,t.jsx)("span",{className:`text-right font-semibold ${s?"font-mono text-xs break-all":"tabular"}`,children:r})]})},"SectionTitle",0,function({children:e}){return(0,t.jsx)("h2",{className:"mb-8 text-2xl font-semibold tracking-tight sm:text-3xl",children:e})},"StatTile",0,function({label:e,value:r,desc:s,loading:i=!1}){return(0,t.jsxs)("div",{className:"rounded-box border border-base-300 bg-base-200 p-5",children:[(0,t.jsx)("p",{className:"text-xs font-medium uppercase tracking-wider text-base-content/50",children:e}),i?(0,t.jsx)("div",{className:"mt-2 h-9 w-24 animate-pulse rounded bg-base-300"}
1):(0,t.jsx)("p",{className:"tabular mt-1 text-3xl font-bold text-accent",children:r}),s?(0,t.jsx)("p",{className:"mt-1 text-sm text-base-content/50",children:s}):null]})}])}]);
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.