PageSourceSearch

https://fantasyhoff.com/assets/index-Hx-p8ka4.js

js fantasyhoff.com collected 2026-10-02 01:28:45 UTC 219,618 bytes, 10 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LeagueLinkGate-kHBYkvcg.js","assets/vendor-react-Ci8XvypC.js","assets/vendor-router-DC2shrY2.js","assets/vendor-react-dom-yPwZA2yX.js","assets/vendor-icons-CfgbQDMF.js","assets/vendor-query-BWIl-I-M.js","assets/LeagueLinkGate-Bn7VUc3A.css","assets/Museum-mN4uBFAP.js","assets/Onboarding-DGbd6Iqa.js","assets/useCbs-B4JLOwVH.js","assets/league-sKPj0q0z.css","assets/useLeagueData-XJOiDMMS.js","assets/useInSeason-CZPa-LqX.js","assets/useStats-DoBG0vBn.js","assets/ArchiveSyncBanner-iYQMVRp0.js","assets/ArchiveSyncBanner-BYxQPl94.css","assets/InviteLeagueDialog-CAVsjxsa.js","assets/InviteLeagueDialog-MMsr4TbL.css","assets/Paywall-CXefLKpU.js","assets/OfferPrice-Db303-Lh.js","assets/Paywall-BkrGCpdR.css","assets/archiveSync-DXYFUS-p.js","assets/useLeagueNewsletter-_4kCOx95.js","assets/Standings-C8j7JhhB.js","assets/LeaguePageHeader-C9YPti-2.js","assets/LeaguePageHeader-yNWrrTGb.css","assets/LeagueFilterBar-vCWjYba9.js","assets/LeagueFilterBar-B5n2nVnk.css","assets/pfRates-DRzJtW1v.js","assets/Standings-BTc2Ke4M.css","assets/RecordsV2-DPyVXupV.js","assets/HofSelect-BeRW1KPs.js","assets/HofSelect-CU4tfXJY.css","assets/RecordsV2-9eYZr99P.css","assets/HallOfFame-rI9AWetp.js","assets/useLeagueMembers-BvfignJ9.js","assets/HallOfFame-lW8L5srN.css","assets/DraftGrade-CKQrniDj.js","assets/InfoTip-B9uKFkAb.js","assets/archiveLimit-CzZwZ8mn.js","assets/DraftGrade-DqkNmaLp.css","assets/DraftGradeCurrent-Ctm1J4qn.js","assets/cheatsheet-DsZQ4AbY.js","assets/DraftGradeCurrent-2B3rle-w.css","assets/CheatSheet-BFnuqWuz.js","assets/CheatSheet-DkFwiog3.css","assets/Rivalry-BUP524d3.js","assets/LeagueSummaryCard-BhLByCsq.js","assets/LeagueSummaryCard-DrQcnkBV.css","assets/Rivalry-B0DUbsuV.css","assets/Historian-B1ErptM9.js","assets/LeagueBotUnlock-zrQdO64l.js","assets/LeagueBotUnlock-D7mhqYHI.css","assets/historian-i0ygWVLv.js","assets/historian-BIxUlGiV.css","assets/useHistorian-DwxObrDm.js","assets/Timeline-aK61IC5F.js","assets/Timeline-DZII4H1V.css","assets/LeagueNewsletter-MCGEWN3h.js","assets/index-CU3YYEgg.js","assets/LeagueNewsletter-CSRrBaCh.css","assets/Transactions-CpVjjOEa.js","assets/PointsLoadingNotice-eNiE43iT.js","assets/PointsLoadingNotice-BBihurdQ.css","assets/Transactions-b4F8QhVG.css","assets/WeeklyProps-_7ZcXGAm.js","assets/useCompetitionShare-DY5YVZhO.js","assets/useCompetitionShare-Elcpp069.css","assets/InSeasonHeader-DH_-IPP9.js","assets/in-season-DbSa0dzX.css","assets/TradeCourt-CY0Dhuee.js","assets/TradeCourt-TQtObDaM.css","assets/PowerRankings-D0wbQbbJ.js","assets/MatchupHype-D6g44TeT.js","assets/MatchupHype-Bqmhbb-7.css","assets/FirstRunTour-BpD9V4Bb.js","assets/FirstRunTour-C4_sX4RR.css","assets/DraftGraderLanding-DZfLD7xp.js","assets/DraftGraderLanding-DctW8vYH.css","assets/NewsletterLanding-B6Fom1tz.js","assets/NewsletterLanding-D05EVCz_.css","assets/AddLeague-DkuPfa0a.js","assets/DesktopHandoffCard-fRAsb98h.js","assets/ingestionStatus-C2Gwq0ZF.js","assets/FranchiseRuns-DJao9euw.js","assets/AddLeague-dBK_jIue.css","assets/LeagueReveal-UGXx8qkR.js","assets/ownerTeams-Culkj4cf.js","assets/LeagueReveal-DITFB_iU.css","assets/RevealDocent-DoIXSd_v.js","assets/RevealDocent-B07hSwDp.css","assets/LeagueDetail-Cc6f9hBp.js","assets/Upgrade-D9TpxErE.js","assets/Upgrade-BpkBCnvA.css","assets/NewsletterStart-VzuHLdjH.js","assets/DraftGraderStart-K5XKoUfX.js","assets/Recap-BKW8GhST.js","assets/Recap-CqrO97N6.css","assets/PropsLayoutLab-Bb4hw8WO.js","assets/PropsLayoutLab-HRoi7nkO.css","assets/InSeasonConceptLab-CKUrMhni.js","assets/in-season-concept-lab-onMS-gy9.css","assets/InSeasonProductLab-D2_wTpwM.js","assets/InSeasonProductLab-CVLZc5ni.css","assets/ManagerProfile-QPpNjFb0.js","assets/profiles-CEiYvJY0.css","assets/HistorianDock-DkFQOD6p.js","assets/PlayerProfile-CoHqiZHf.js","assets/AdminShared-BvRdp25b.js","assets/AdminShared-B1rUlNPe.css","assets/Overview-Bp3ELpFP.js","assets/SettingsShell-DEprddGX.js","assets/SettingsShell-BOqC6U32.css","assets/Users-G0xDkpmc.js","assets/UserDetail-Bk71z2TF.js","assets/Leagues-Cfbvqn0h.js","assets/Ingestion-Da3b-Jrd.js","assets/Ingestion-DnDirxyl.css","assets/Scoring-B-3TXDqn.js","assets/Revenue-DyS9BB-J.js","assets/Funnel-B6VyrHYb.js","assets/MagicLinks-C
1FZzt-p_.js","assets/Lifecycle-CE07r-Ig.js","assets/Newsletter-LFp_RhUR.js","assets/Newsletter-1QiGXfvC.css","assets/Deliverability-D64zo5fE.js","assets/AiConversations-DD-yF8pm.js","assets/LeagueDetail-qYbLTE_w.js","assets/Profile-Dbdt9BKg.js","assets/AccountTabs-EUl79gsc.js","assets/Integrations-BY6lPCBp.js","assets/Billing-eK-NcnoL.js","assets/Billing-C2gaHZxr.css","assets/General-BavDOESU.js","assets/LeagueSettingsTabs-BQPk0Hyq.js","assets/Seasons-DE4pcd7M.js","assets/Teams-DeOrizbn.js","assets/Teams-DILPmC-x.css"])))=>i.map(i=>d[i]);
2import{j as t,a as u}from"./vendor-react-Ci8XvypC.js";import{r as Fs,c as Ds}from"./vendor-react-dom-yPwZA2yX.js";import{u as L,a as S,b as _,q as De,Q as Ms,c as Us}from"./vendor-query-BWIl-I-M.js";import{m as qs,u as wt,a as me,L as I,b as ke,c as we,N as ae,B as zs,R as Hs,d as g,O as In}from"./vendor-router-DC2shrY2.js";import{T as Bs,C as Pe,a as On,A as je,S as St,b as We,H as Be,U as Nt,c as Qe,X as Ye,d as Me,E as Ks,e as Fn,f as Vs,M as Js,g as Te,B as ot,h as Qt,G as Gs,i as Yt,j as Ws,k as Qs,R as Ys,l as Zt,L as Zs,m as Xs,N as ea,n as lt,P as ta,o as na,p as ct,q as sa,r as aa,s as ia,t as ra,u as oa,v as la,w as ca,x as da,K as ua}from"./vendor-icons-CfgbQDMF.js";const ma=(function(){const n=typeof document<"u"&&document.createElement("link").relList;return n&&n.supports&&n.supports("modulepreload")?"modulepreload":"preload"})(),ha=function(e){return"/"+e},Xt={},k=function(n,s,a){let i=Promise.resolve();if(s&&s.length>0){let c=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),m=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=c(s.map(p=>{if(p=ha(p),p in Xt)return;Xt[p]=!0;const y=p.endsWith(".css"),d=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${d}`))return;const h=document.createElement("link");if(h.rel=y?"stylesheet":ma,y||(h.as="script"),h.crossOrigin="",h.href=p,m&&h.setAttribute("nonce",m),document.head.appendChild(h),y)return new Promise((N,x)=>{h.addEventListener("load",N),h.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${p}`)))})}))}function r(c){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=c,window.dispatchEvent(l),!l.defaultPrevented)throw c}return i.then(c=>{for(const l of c||[])l.status==="rejected"&&r(l.reason);return n().catch(r)})};function en(){return typeof navigator>"u"?"0":/Android|iPhone|iPad|iPod|Mobile/i.test(navigator.userAgent)||/Macintosh/i.test(navigator.userAgent)&&navigator.maxTouchPoints>1?"1":"0"}const pa="jkoinlgknbaanjbociollkmnpjmaahod";function fa(){if(typeof navigator>"u")return!0;const e=navigator.userAgent,n=/Mobi|Android|iPhone|iPad|iPod/i.test(e);return/Chrome\/|Chromium\/|Edg\//.test(e)&&!n}function ga(){var e;return((e=window.chrome)==null?void 0:e.runtime)??null}function ge(e,n=1600){return new Promise((s,a)=>{const i=ga();if(!(i!=null&&i.sendMessage)){a(new Error("Fantasy Hall of Fame League Importer is not installed."));return}let r=!1;const c=window.setTimeout(()=>{r||(r=!0,a(new Error("Fantasy Hall of Fame League Importer did not respond.")))},n);try{i.sendMessage(pa,e,l=>{var y;if(r)return;if(r=!0,window.clearTimeout(c),(y=i.lastError)==null?void 0:y.message){a(new Error("Fantasy Hall of Fame League Importer is not installed."));return}if(!l||typeof l!="object"){a(new Error("Fantasy Hall of Fame League Importer returned no response."));return}const p=l;if(p.ok===!1){a(new Error(p.error||"Fantasy Hall of Fame League Importer could not connect."));return}s(l)})}catch{window.clearTimeout(c),r=!0,a(new Error("Fantasy Hall of Fame League Importer is not installed."))}})}function Dn(){return ge({type:"FH_IMPORTER_PING"})}async function ya(e){await ge({type:"FH_EXTENSION_LINK",...e},3e3)}async function xa(e){await ge({type:"FH_EXTENSION_UNLINK",userId:e},3e3)}async function Zl(){var a;const e=await ge({type:"FH_IMPORTER_CONNECT",provider:"espn"}),{swid:n,espnS2:s}=((a=e.artifact)==null?void 0:a.payload)??{};
2if(typeof n!="string"||n.length<10||typeof s!="string"||s.length<50)throw new Error("The ESPN session returned by the extension is incomplete.");return{swid:n,espnS2:s}}const Ve=new Map;async function Mn(e){const n=new TextEncoder().encode(JSON.stringify(e));return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",n)),s=>s.toString(16).padStart(2,"0")).join("")}async function kt(e,n){const s=await ge({type:"FH_IMPORTER_CONNECT",provider:e,handoffId:n,part:"transport-meta"},1e4);if(s.artifact)return s.artifact;if(!Number.isInteger(s.transportParts)||s.transportParts<1||s.transportParts>2048)throw new Error("Invalid import manifest");Ve.set(n,new Set((s.acknowledged??[]).filter(i=>/^[0-9a-f]{64}$/.test(i))));const a=[];for(let i=0;i<s.transportParts;i++){const r=await ge({type:"FH_IMPORTER_CONNECT",provider:e,handoffId:n,part:"transport-data",index:i},1e4);if(r.index!==i||typeof r.data!="string"||r.data.length>256*1024)throw new Error("Invalid import part");a.push(r.data)}return JSON.parse(a.join(""))}async function Xl(e,n){try{const s=await Mn(n);await ge({type:"FH_IMPORTER_PART_CONSUMED",handoffId:e,contentSha256:s},3e3);const a=Ve.get(e)??new Set;a.add(s),Ve.set(e,a)}catch{}}async function Un(e,n){const s=Ve.get(e);if(!(s!=null&&s.size))return n;const a=[];for(const i of n)s.has(await Mn(i))||a.push(i);return a}function ja(e,n){var i,r,c;const s=e&&typeof e=="object"?e.evidenceArchive:void 0;if(!s||!((i=s.records)!=null&&i.length)&&!((r=s.omitted)!=null&&r.length))return!1;const a=n&&typeof n=="object"?n.evidenceRetention:void 0;return s.chunk&&(((c=a==null?void 0:a.chunk)==null?void 0:c.setSha256)!==s.chunk.setSha256||a.chunk.index!==s.chunk.index)?!0:(a==null?void 0:a.status)==="retained"?!1:(a==null?void 0:a.status)==="partial"?(a.omittedRecords??0)>0:!0}async function ec(e){var c,l,m,p,y;if(!/^[0-9a-f-]{36}$/i.test(e))throw new Error("The CBS export link is incomplete. Export the league again.");const n={artifact:await kt("cbs",e)};if(((c=n.artifact)==null?void 0:c.kind)!=="browser-export"||((l=n.artifact)==null?void 0:l.provider)!=="cbs"||!n.artifact.payload)throw new Error("The CBS export returned by the extension is incomplete.");const s=n.artifact.payload,a=s.seasons,i=[];Array.isArray(a)?i.push(...a):i.push(s);const r=s.history;if(r!=null&&r.evidenceArchive&&i[0]&&typeof i[0]=="object"){const d=i[0],h=d.evidenceArchive,N=r.evidenceArchive,x=!!r.evidenceArchive.chunk;if(x&&((m=h==null?void 0:h.records)!=null&&m.length||(p=h==null?void 0:h.omitted)!=null&&p.length)){const j=d.league,C=r.evidenceSeason??(j==null?void 0:j.season);if(!C)throw new Error("CBS evidence is missing its season binding. The export is kept for retry.");i.push({kind:"cbs-evidence",leagueId:r.leagueId,host:r.host,season:C,evidenceArchive:h})}i[0]={...d,evidenceArchive:{...N,scope:"league",records:[...!x&&Array.isArray(h==null?void 0:h.records)?h.records:[],...Array.isArray(N.records)?N.records:[]],omitted:[...!x&&Array.isArray(h==null?void 0:h.omitted)?h.omitted:[],...Array.isArray(N.omitted)?N.omitted:[]]}}}if(r&&Array.isArray(r.seasons))for(const d of r.seasons){if(!d||typeof d!="object")continue;const{evidenceChunks:h,...N}=d;i.push({kind:"cbs-history",leagueId:r.leagueId,host:r.host,overview:r.overview??null,...N})}if(r){const d=Array.isArray(a)?a[0]:void 0,h=r.evidenceSeason??((y=d==null?void 0:d.league)==null?void 0:y.season),N=(x,j,C)=>{if(Array.isArray(x)){if(x.length&&!/^(19|20)\d{2}$/.test(String(j)))throw new Error("CBS source chunks are missing their season binding. The export is kept for retry.");for(const O of x){if(!O||typeof O!="object")throw new Error("Invalid CBS source chunk. The export is kept for retry.");i.push({kind:"cbs-evidence",leagueId:r.leagueId,host:r.host,season:String(j),evidenceArchive:{...O,...C?{scope:C}:{}}})}}};N(r.evidenceChunks,h,"league");for(const x of r.seasons??[])if(x&&typeof x=="object"){const j=x;N(j.evidenceChunks,j.season)}}if(!i.length)throw new Error("The CBS export returned by the extension is incomplete.");return Un(e,i)}async function va(e){if(!/^[0-9a-f-]{36}$/i.test(e))throw new Error("The CBS export link is incomplete.");const n=await kt("cbs",e);if((n==null?void 0:n.kind)!=="browser-export"||n.provider!=="cbs"||!n.payload)throw new Error("The CBS recovery exp
2ort is incomplete.");const s=JSON.stringify({format:"fantasy-hoff-cbs-recovery-v1",savedAt:new Date().toISOString(),artifact:n});if(new TextEncoder().encode(s).byteLength>512*1024*1024)throw new Error("This recovery archive exceeds the browser download limit.");return{filename:`fantasy-hoff-cbs-recovery-${e}.json`,content:s}}async function tc(e){const n=await va(e),s=URL.createObjectURL(new Blob([n.content],{type:"application/json"})),a=document.createElement("a");a.href=s,a.download=n.filename,document.body.appendChild(a);try{a.click()}finally{a.remove(),setTimeout(()=>URL.revokeObjectURL(s),6e4)}}async function ba(e){await ge({type:"FH_IMPORTER_CONSUMED",handoffId:e},3e3).catch(()=>{})}async function nc(e,n){var i,r,c,l,m,p,y;if(!/^[0-9a-f-]{36}$/i.test(e))throw new Error("The Yahoo import link is incomplete. Run the import again.");try{const d=await kt("yahoo",e),h=(i=d==null?void 0:d.payload)==null?void 0:i.seasons;if((d==null?void 0:d.provider)==="yahoo"&&Array.isArray(h))return Un(e,h)}catch{}const s=await ge({type:"FH_IMPORTER_CONNECT",provider:"yahoo",handoffId:e,part:"meta"},75e3);if(typeof s.totalParts!="number"){const d=(r=s.artifact)==null?void 0:r.payload;if(((c=s.artifact)==null?void 0:c.kind)==="browser-export"&&((l=s.artifact)==null?void 0:l.provider)==="yahoo"&&Array.isArray(d==null?void 0:d.seasons)&&d.seasons.length>0)return d.seasons;throw new Error("The Yahoo history returned by the extension is incomplete.")}if(s.totalParts<1)throw new Error("The Yahoo history returned by the extension is incomplete.");const a=[];for(let d=0;d<s.totalParts;d++){let h,N=null;for(let x=0;x<2&&!h;x++)try{h=(y=(p=(m=(await ge({type:"FH_IMPORTER_CONNECT",provider:"yahoo",handoffId:e,part:d},3e4)).artifact)==null?void 0:m.payload)==null?void 0:p.seasons)==null?void 0:y[0]}catch(j){N=j}if(!h)throw N instanceof Error?N:new Error("The Yahoo history returned by the extension is incomplete.");a.push(h),n==null||n(d+1,s.totalParts)}return a}const sc=ba;class ue extends Error{constructor(n,s,a){super(s),this.status=n,this.body=a}}function wa(e){if(!(e instanceof ue)||e.status!==409)return null;const n=e.body;if(!n||typeof n!="object"||!("status"in n))return null;const s=n.status;return s==="stale"||s==="conflict"||s==="ineligible"?n:null}function ac(e){return e instanceof ue&&e.status===409&&e.body!=null&&typeof e.body=="object"&&"code"in e.body&&e.body.code==="CAPTURE_ONLY"}function qn(e){return e instanceof ue&&e.status===503&&e.body!=null&&typeof e.body=="object"&&"code"in e.body&&e.body.code==="league_data_updating"}async function tn(e,n,s){const a=JSON.stringify(s),i=new TextEncoder().encode(a);if(i.length<=1024*1024)return o(n,{method:"POST",body:a});if(i.length>64*1024*1024)throw new Error("This season exceeds the 64 MB import limit.");const r=Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",i)),d=>d.toString(16).padStart(2,"0")).join(""),c=`fh-import:${e}:${r}`;let l=null;try{l=sessionStorage.getItem(c)}catch{}l??(l=crypto.randomUUID());try{sessionStorage.setItem(c,l)}catch{}const m=256*1024,p=Math.ceil(i.length/m);for(let d=0;d<p;d++){let h="";for(const N of i.subarray(d*m,(d+1)*m))h+=String.fromCharCode(N);await o("/api/browser-import/parts",{method:"POST",body:JSON.stringify({uploadId:l,provider:e,index:d,count:p,data:btoa(h)})})}const y=await o(n,{method:"POST",body:JSON.stringify({uploadId:l})});if(e!=="cbs"||!ja(s,y))try{sessionStorage.removeItem(c)}catch{}return y}async function o(e,n={}){const s=await fetch(e,{credentials:"same-origin",headers:{Accept:"application/json",...n.body?{"Content-Type":"application/json"}:{},...n.headers??{}},...n}),a=await s.text(),i=a?dt(a):null;if(!s.ok){const r=i&&typeof i=="object"&&"error"in i&&typeof i.error=="string"?i.error:`Request failed (${s.status})`;throw new ue(s.status,r,i)}return i}function dt(e){try{return JSON.parse(e)}catch{return null}}const Ie=new Map;function Sa(e){const n=Ie.get(e);if(n)return n;const s=o(`/api/leagues/${e}/home`);return Ie.set(e,s),s.finally(()=>{Ie.get(e)===s&&Ie.delete(e)}).catch(()=>{}),s}async function Na(e){await Promise.resolve();const n=Ie.get(e);if(n)try{return(await n).detail}catch{}return o(`/api/leagues/${e}`)}function ic(e){return{provider:"yahoo",providerLeagueKey:e.leagueKey,providerLeagueId:e.leagueId,providerGameKey:e.gameKey,season:e.season,name:e.name,url:e.url,logoUrl:e.logoUrl,draftStatus:e.draftStatus,numTeams:e.numTeams,scoringType:e.scoringType,leagueType:e.leagueType,currentWeek:e.currentWeek,startWeek:e.startWeek,endWeek:e.endWee
2k,gameName:e.gameName}}function nn(e){const{chainStart:n,limitedHistory:s,gameName:a,...i}=e;return i}const f={competition:e=>o(`/api/leagues/${e}/competition`),reconnectStatus:()=>o("/api/auth/reconnect-status"),wizardAssignment:e=>o("/api/onboarding/wizard-assignment",{method:"POST",body:JSON.stringify({preview:e})}),wizardExposure:()=>o("/api/onboarding/wizard-exposure",{method:"POST",body:"{}"}),me:()=>o("/api/auth/me"),stopImpersonating:()=>o("/api/auth/stop-impersonating",{method:"POST"}),updateMe:e=>o("/api/auth/me",{method:"PATCH",body:JSON.stringify(e)}),newsletterPreferences:()=>o("/api/newsletter/preferences"),unsubscribeNewsletter:()=>o("/api/newsletter/preferences/unsubscribe",{method:"POST"}),resubscribeNewsletter:e=>o("/api/newsletter/preferences/resubscribe",{method:"POST",body:JSON.stringify(e)}),requestMagicLink:(e,n,s)=>o("/api/auth/request-link",{method:"POST",body:JSON.stringify({email:e,...n?{next:n}:{},...s!=null&&s.attribution?{attribution:s.attribution}:{},...s!=null&&s.firstAttribution?{firstAttribution:s.firstAttribution}:{},...s!=null&&s.visitorId?{visitorId:s.visitorId}:{}}
2)}),signInDeliveryState:e=>o(`/api/auth/link-status/${encodeURIComponent(e)}`),verifyLoginCode:e=>o("/api/auth/verify-code",{method:"POST",body:JSON.stringify(e)}),startCheckout:(e,n)=>o("/api/billing/checkout",{method:"POST",body:JSON.stringify({leagueId:e,...n})}),confirmCheckout:(e,n)=>o(`/api/billing/session?sessionId=${encodeURIComponent(e)}&leagueId=${encodeURIComponent(n)}`),openBillingPortal:e=>o("/api/billing/portal",{method:"POST",body:JSON.stringify({leagueId:e})}),cancelTrial:e=>o("/api/billing/trial-cancel",{method:"POST",body:JSON.stringify(e)}),resumeTrial:e=>o("/api/billing/trial-resume",{method:"POST",body:JSON.stringify({leagueId:e})}),deleteAccount:()=>o("/api/auth/me",{method:"DELETE"}),logout:()=>o("/api/auth/logout",{method:"POST"}),linkExtension:e=>o("/api/extension/link",{method:"POST",body:JSON.stringify({installId:e})}),unlinkExtension:e=>o("/api/extension/unlink",{method:"POST",body:JSON.stringify({installId:e})}),listNotifications:()=>o("/api/notifications"),markNotificationsRead:()=>o("/api/notifications/read",{method:"POST"}),yahooStatus:()=>o("/api/yahoo/status"),yahooDisconnect:()=>o("/api/yahoo/disconnect",{method:"POST"}),yahooSeasonLeagues:()=>o("/api/yahoo/season-leagues"),yahooLeagueTeams:e=>o(`/api/yahoo/league-teams?leagueKey=${encodeURIComponent(e)}`),yahooTeamsPreview:e=>o(`/api/yahoo/leagues/${encodeURIComponent(e)}/teams-preview`),espnBrowserAvailability:()=>o("/api/espn/browser-login/availability?surface=wizard",{headers:{"X-ESPN-Mobile":en()}}),espnBrowserStart:e=>o("/api/espn/browser-login/start",{method:"POST",headers:{"Content-Type":"application/json","X-ESPN-Browser-Login":"1","X-ESPN-Mobile":en()},body:JSON.stringify({returnPath:e})}),espnBrowserComplete:e=>o("/api/espn/browser-login/complete",{method:"POST",headers:{"Content-Type":"application/json","X-ESPN-Browser-Login":"1"},body:JSON.stringify({proof:e})}),espnStatus:()=>o("/api/espn/status"),espnConnect:e=>o("/api/espn/connect",{method:"POST",body:JSON.stringify(e)}),espnDisconnect:()=>o("/api/espn/disconnect",{method:"POST"}),requestDesktopHandoff:e=>o("/api/onboarding/desktop-handoff",{method:"POST",body:JSON.stringify({provider:e})}),espnDiscover:e=>o(`/api/espn/discover${e?`?league=${encodeURIComponent(e)}`:""}`),espnLeagueTeams:(e,n)=>o(`/api/espn/league-teams?leagueId=${encodeURIComponent(e)}&season=${encodeURIComponent(n)}`),cbsStatus:()=>o("/api/cbs/status"),cbsConnect:e=>tn("cbs","/api/cbs/connect",e),cbsDisconnect:()=>o("/api/cbs/disconnect",{method:"POST"}),yahooWebImport:e=>tn("yahoo","/api/yahoo-web/import",{schemaVersion:1,seasons:e}),cbsDiscover:()=>o("/api/cbs/discover"),cbsLeagueTeams:(e,n)=>o(`/api/cbs/league-teams?leagueId=${encodeURIComponent(e)}&season=${encodeURIComponent(n)}`),mflStatus:()=>o("/api/mfl/status"),mflConnect:(e,n)=>o("/api/mfl/connect",{method:"POST",body:JSON.stringify({username:e,password:n})}),mflAccess:e=>o("/api/mfl/access",{method:"POST",body:JSON.stringify(e)}),mflDisconnect:()=>o("/api/mfl/disconnect",{method:"POST"}),mflDiscover:(e,n)=>{const s=new URLSearchParams;e&&s.set("league",e),n&&s.set("year",n);const a=s.toString();return o(`/api/mfl/discover${a?`?${a}`:""}`)},mflHistoryPage:(e,n)=>o("/api/mfl/discover-history",{method:"POST",body:JSON.stringify(e),signal:n}),mflLeagueTeams:(e,n)=>o(`/api/mfl/league-teams?leagueId=${encodeURIComponent(e)}&season=${encodeURIComponent(n)}`),fleaflickerDiscover:e=>o(`/api/fleaflicker/discover?query=${encodeURIComponent(e)}`),fleaflickerLeagueTeams:(e,n)=>o(`/api/fleaflicker/league-teams?leagueId=${encodeURIComponent(e)}&season=${encodeURIComponent(n)}`),sleeperDiscover:e=>{const n=new URLSearchParams;return e.username&&n.set("username",e.username),e.league&&n.set("league",e.league),o(`/api/sleeper/discover?${n}`)},sleeperLeagueTeams:e=>o(`/api/sleeper/league-teams?leagueId=${encodeURIComponent(e)}`),listLeagues:()=>o("/api/leagues"),createLeague:e=>o("/api/leagues",{method:"POST",body:JSON.stringify({name:e.name,seasons:e.seasons.map(nn)})}),getLeague:Na,getMuseumHome:Sa,getMuseumValueTeaser:e=>o(`/api/leagues/${e}/home/value-teaser`),updateLeague:(e,n)=>o(`/api/leagues/${e}`,{method:"PATCH",body:JSON.stringify(n)}),seasonData:e=>o(`/api/leagues/${e}/season-data`),seasonReplacements:e=>o(`/api/leagues/${e}/season-replacements`),retrySeasonReplacement:(e,n)=>o(`/api/leagues/${e}/season-replacements/${n}/retry`,{method:"POST"}),rollbackSeasonReplacement:(e,n)=>o(`/api/leagues/${e}/season-replacements/${n}/rollback`,{method:"POST"}),addLeagueSeasons:(e,n,s=!1)=>o(`/api/leagues/${e}/seasons`,{method:"POST",body:JSON.stringify({seasons:n.map(nn),replace:s})}),deleteLeagueSeason:(e,n)=>o(`/api/leagues/${e}/seasons/${n}`,{method:"DELETE"}),importSeasonWithMyAccount:(e,n)=>o(`/api/leagues/${e}/seasons/${n}/import-with-my-account`,{method:"POST"}),checkMflSeasonLink:(e,n)=>o(`/api/leagues/${e}/seasons/${n}/mfl-link-check`,{method:"POST"}),createManualSeason:(e,n)=>o(`/api/leagues/${e}/manual-seasons`,{method:"POST",body:JSON.stringify(n)}),deleteManualSeason:(e,n)=>o(`/api/leagues/${e}/manual-seasons/${n}`,{method:"DELETE"}),getSeasonResultOverride:(e,n)=>o(`/api/leagues/${e}/seasons/${n}/result-override`),saveSeasonResultOverride:(e,n,s)=>o(`/api/leagues/${e}/seasons/${n}/result-override`,{method:"PUT",body:JSON.stringify(s)}),restoreSeasonResult:(e,n,s)=>o(`/api/leagues/${e}/seasons/${n}/result-override`,{method:"DELETE",body:JSON.stringify({reason:(s==null?void 0:s.trim())||void 0})}),listManualImports:(e,n)=>o(`/api/leagues/${e}/manual-seasons/${n}/imports`),previewManualImport:(e,n,s)=>o(`/api/leagues/${e}/manual-seasons/${n}/imports/preview`,{method:"POST",body:JSON.stringify(s)}),commitManualImport:(e,n,s)=>o(`/api/leagues/${e}/manual-seasons/${n}/imports/commit`,{method:"POST",body:JSON.stringify(s)}),rollbackManualImport:(e,n,s,a)=>o(`/api/leagues/${e}/manual-seasons/${n}/imports/${s}/rollback`,{method:"POST",body:JSON.stringify({reason:a})}),deleteLeague:e=>o(`/api/leagues/${e}`,{method:"DELETE"}),checkRollover:e=>o(`/api/leagues/${e}/rollover/check`,{method:"POST"}),transferLeagueOwnership:(e,n)=>o(`/api/leagues/${e}/transfer-ownership`,{method:"POST",body:JSON.stringify({memberId:n})}),listLeagueMembers:e=>o(`/api/leagues/${e}/members`),inviteLeagueMember:(e,n)=>o(`/api/leagues/${e}/members`,{method:"POST",body:JSON.stringify(n)}),updateLeagueMember:(e,n,s)=>o(`/api/leagues/${e}/members/${n}`,{method:"PATCH",body:JSON.stringify(s)}),deleteLeagueMember:(e,n)=>o(`/api/leagues/${e}/members/${n}`,{method:"DELETE"}
2),resendLeagueInvite:(e,n)=>o(`/api/leagues/${e}/members/${n}/resend`,{method:"POST"}),getInviteLink:e=>o(`/api/leagues/${e}/invite-link`),rotateInviteLink:e=>o(`/api/leagues/${e}/invite-link/rotate`,{method:"POST"}),leagueNewsletter:e=>o(`/api/newsletter/leagues/${encodeURIComponent(e)}`),leagueNewsletterLatest:e=>o(`/api/newsletter/leagues/${encodeURIComponent(e)}/latest`),leagueNewsletterIssue:(e,n)=>o(`/api/newsletter/leagues/${encodeURIComponent(e)}/issues/${encodeURIComponent(n)}`),subscribeLeagueNewsletter:e=>o(`/api/newsletter/leagues/${encodeURIComponent(e)}/email`,{method:"POST",body:JSON.stringify({on:!0})}),registerShareLink:(e,n,s)=>o(`/api/leagues/${e}/share-links`,{method:"POST",body:JSON.stringify({code:n,target:s})}),joinLeague:e=>o("/api/leagues/join",{method:"POST",body:JSON.stringify({...e.token?{token:e.token}:{},...e.leagueId?{leagueId:e.leagueId}:{},...e.inviteAttribution?{inviteAttribution:e.inviteAttribution}:{},...e.ownerId?{ownerId:e.ownerId}:{},...e.destination?{destination:e.destination}:{}})}),leagueLinkPreview:e=>o(`/api/leagues/${e}/link-preview`),leagueJoinTeams:e=>o(`/api/leagues/${e}/join-teams`),joinLeaguePreview:e=>o(`/api/leagues/join/${encodeURIComponent(e)}/preview`),claimOwner:(e,n,s)=>o(`/api/leagues/${e}/owners/${n}/claim`,{method:"POST",body:JSON.stringify({...s?{inviteAttribution:s}:{}})}),unclaimOwner:(e,n)=>o(`/api/leagues/${e}/owners/${n}/claim`,{method:"DELETE"}),autoClaimSuggested:e=>o(`/api/leagues/${e}/claim/suggested`,{method:"POST"}),listLeagueMessages:(e,n=25)=>o(`/api/leagues/${e}/messages?limit=${n}`),addLeagueMessage:(e,n)=>o(`/api/leagues/${e}/messages`,{method:"POST",body:JSON.stringify({body:n})}),deleteLeagueMessage:(e,n)=>o(`/api/leagues/${e}/messages/${n}`,{method:"DELETE"}),getTimelineMilestones:e=>o(`/api/leagues/${e}/timeline-milestones`),addTimelineMilestone:(e,n)=>o(`/api/leagues/${e}/timeline-milestones`,{method:"POST",body:JSON.stringify(n)}),deleteTimelineMilestone:(e,n)=>o(`/api/leagues/${e}/timeline-milestones/${n}`,{method:"DELETE"}),createOwner:(e,n)=>o(`/api/leagues/${e}/owners`,{method:"POST",body:JSON.stringify(n)}),updateOwner:(e,n,s)=>o(`/api/leagues/${e}/owners/${n}`,{method:"PATCH",body:JSON.stringify(s)}),nameLogoSuggestions:e=>o(`/api/leagues/${e}/name-logo-suggestions`),applyNameLogoDecisions:(e,n)=>o(`/api/leagues/${e}/name-logo-suggestions/apply`,{method:"POST",body:JSON.stringify({decisions:n})}),franchiseRuns:e=>o(`/api/leagues/${e}/franchise-runs`),applyFranchiseRuns:(e,n)=>o(`/api/leagues/${e}/franchise-runs/apply`,{method:"POST",body:JSON.stringify({runs:n})}),mergeOwners:(e,n,s,a=!1)=>o(`/api/leagues/${e}/owners/${n}/merge`,{method:"POST",body:JSON.stringify({sourceOwnerId:s,...a?{onboarding:!0}:{}})}),deleteOwner:(e,n)=>o(`/api/leagues/${e}/owners/${n}`,{method:"DELETE"}),setTeamOwner:(e,n,s)=>o(`/api/leagues/${e}/teams/${n}/owner`,{method:"PUT",body:JSON.stringify({ownerId:s})}),getIngestionStatus:e=>o(`/api/leagues/${e}/ingestion`),getWizardTicker:e=>o(`/api/leagues/${e}/wizard-ticker`),getWizardSuperlatives:e=>o(`/api/leagues/${e}/wizard-superlatives`),runIngestion:e=>o(`/api/leagues/${e}/ingestion/run`,{method:"POST"}),getChampions:e=>o(`/api/leagues/${e}/champions`),getRecords:e=>o(`/api/leagues/${e}/records`),getManagerLore:e=>o(`/api/leagues/${e}/manager-lore`),getAwards:e=>o(`/api/leagues/${e}/awards`),getHistorianMeta:e=>o(`/api/leagues/${e}/historian`),getHistorianFacts:e=>o(`/api/leagues/${e}/historian/facts`),warmHistorian:e=>o(`/api/leagues/${e}/historian/warm`,{method:"POST"}),sendHistorianFeedback:(e,n)=>o(`/api/leagues/${e}/historian/feedback`,{method:"POST",body:JSON.stringify(n)}),createHistorianTake:(e,n)=>o(`/api/leagues/${e}/historian/take`,{method:"POST",body:JSON.stringify(n)}),getStats:(e,n)=>o(`/api/leagues/${e}/stats${sn(n)}`),getTransactionStats:(e,n)=>o(`/api/leagues/${e}/transactions${sn(n)}`),getValueStats:e=>o(`/api/leagues/${e}/value`),getTransactionFeed:(e,n={})=>{var i;const s=new URLSearchParams;n.season&&s.set("season",n.season),(i=n.seasons)!=null&&i.length&&s.set("seasons",n.seasons.join(",")),n.type&&n.type!=="all"&&s.set("type",n.type),n.manager&&s.set("manager",n.manager),n.limit!=null&&s.set("limit",String(n.limit)),n.offset!=null&&s.set("offset",String(n.offset));const a=s.toString();return o(`/api/leagues/${e}/transactions/feed${a?`?${a}`:""}`)},searchPlayers:(e,n)=>o(`/api/leagues/${e}/players/search?q=${encodeURIComponent(n)}`),getPlayerHistory:(e,n)=>o(`/api/leagues/${e}/players/${encodeURIComponent(n)}/history`),getPlayerProfile:(e,n)=>o(`/api/leagues/${e}/players/${encodeURIComponent(n)}/profile`),getRivalry:(e,n,s)=>o(`/api/leagues/${e}/rivalry?a=${encodeURIComponent(n)}&b=${encodeURIComponent(s)}`),getManagerProfile:(e,n)=>o(`/api/leagues/${e}/managers/${encodeURIComponent(n)}`),setTransactionVote:(e,n,s)=>o(`/api/leagues/${e}/transactions/${n}/vote`,{method:"PUT",body:JSON.stringify({choice:s}
2)}),listTransactionComments:(e,n)=>o(`/api/leagues/${e}/transactions/${n}/comments`),addTransactionComment:(e,n,s)=>o(`/api/leagues/${e}/transactions/${n}/comments`,{method:"POST",body:JSON.stringify({body:s})}),deleteTransactionComment:(e,n,s)=>o(`/api/leagues/${e}/transactions/${n}/comments/${s}`,{method:"DELETE"}),getControversialTransactions:(e,n=10)=>o(`/api/leagues/${e}/transactions/controversial?limit=${n}`),getPropsBoard:(e,n)=>o(`/api/leagues/${e}/in-season/props${n?`?week=${n}`:""}`),voteOnProp:(e,n,s)=>o(`/api/leagues/${e}/in-season/props/${n}/vote`,{method:"PUT",body:JSON.stringify({optionKey:s})}),getTradeAutopsies:(e,n,s=0)=>o(`/api/leagues/${e}/in-season/trade-autopsies?season=${encodeURIComponent(n)}&offset=${s}`),getTradeCourt:e=>o(`/api/leagues/${e}/in-season/trade-court`),voteInTradeCourt:(e,n,s)=>o(`/api/leagues/${e}/in-season/trade-court/${n}/vote`,{method:"PUT",body:JSON.stringify({verdict:s})}),getPowerRankings:e=>o(`/api/leagues/${e}/in-season/power-rankings`),getMatchupHype:(e,n)=>o(`/api/leagues/${e}/in-season/matchups${n?`?week=${n}`:""}`),getDraftIntelligence:e=>o(`/api/leagues/${e}/draft-intelligence`),refreshDraftAdp:e=>o(`/api/leagues/${e}/draft-intelligence/adp/refresh`,{method:"POST"}),getCheatSheet:e=>o(`/api/leagues/${e}/cheat-sheet`),refreshCheatSheet:e=>o(`/api/leagues/${e}/cheat-sheet/refresh`,{method:"POST"}),getDraftGrades:e=>o(`/api/leagues/${e}/draft-grades`),getMockDraft:e=>o(`/api/leagues/${e}/mock-draft`),refreshDraftGradesAdp:e=>o(`/api/leagues/${e}/draft-grades/adp/refresh`,{method:"POST"}),getTimeline:e=>o(`/api/leagues/${e}/timeline`),refreshTimelineSettings:e=>o(`/api/leagues/${e}/timeline/settings-refresh`,{method:"POST"}),getPlayerBackfillStatus:e=>o(`/api/leagues/${e}/players/backfill`),runPlayerBackfill:e=>o(`/api/leagues/${e}/players/backfill`,{method:"POST"}),adminOverview:()=>o("/api/admin/overview"),adminIngestionBacklog:()=>o("/api/admin/ingestion/backlog"),adminIngestion:()=>o("/api/admin/ingestion"),adminIngestionLeague:e=>o(`/api/admin/ingestion/league/${encodeURIComponent(e)}`),adminIngestionEfficiency:()=>o("/api/admin/ingestion-efficiency"),adminStatsDerive:()=>o("/api/admin/stats-derive"),adminProviderRequests:e=>o(`/api/admin/provider-requests${e?`?leagues=${encodeURIComponent(String(e))}`:""}`),adminScoring:()=>o("/api/admin/scoring"),adminDeliverability:()=>o("/api/admin/deliverability"),adminDeliverabilityLift:e=>o("/api/admin/deliverability/lift",{method:"POST",body:JSON.stringify({email:e})}),adminLeagueCbsReadiness:e=>o(`/api/admin/leagues/${encodeURIComponent(e)}/cbs-readiness`),adminRevenue:()=>o("/api/admin/revenue"),adminUpdateRevenueDailySpend:(e,n)=>o(`/api/admin/revenue/daily/${encodeURIComponent(e)}`,{method:"PUT",body:JSON.stringify({adSpend:n})}),adminFunnel:(e=30)=>o(`/api/admin/funnel?days=${e}`),adminEspnExperiment:(e=30)=>o(`/api/admin/experiments/espn-mobile?days=${e}`),adminAdLandingExperiment:(e=30)=>o(`/api/admin/experiments/ad-landing?days=${e}`),adminUsers:(e={})=>o(`/api/admin/users?${new URLSearchParams(Object.entries(e).filter(([,n])=>n!==void 0&&n!=="").map(([n,s])=>[n,String(s)]))}`),adminUser:e=>o(`/api/admin/users/${e}`),adminMagicLinks:(e={})=>o(`/api/admin/magic-links?${new URLSearchParams(Object.entries(e).filter(([,n])=>n!==void 0&&n!=="").map(([n,s])=>[n,String(s)]))}`),adminLifecycle:()=>o("/api/admin/lifecycle"),adminUpdateLifecycleSettings:e=>o("/api/admin/lifecycle/settings",{method:"PATCH",body:JSON.stringify(e)}),adminUpdateLifecycleCampaign:(e,n)=>o(`/api/admin/lifecycle/campaigns/${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify(n)}),adminRunLifecycle:(e=!1)=>o("/api/admin/lifecycle/run",{method:"POST",body:JSON.stringify({dryRun:e})}),adminRemoveLifecycleSuppression:e=>o(`/api/admin/lifecycle/suppressions/${encodeURIComponent(e)}`,{method:"DELETE"}),adminRetryLifecycleDelivery:e=>o(`/api/admin/lifecycle/deliveries/${encodeURIComponent(e)}/retry`,{method:"POST"}),adminLifecycleCandidates:e=>o(`/api/admin/lifecycle/candidates?${new URLSearchParams({campaignKey:e,limit:"50"})}`),adminSendLifecycleTest:e=>o("/api/admin/lifecycle/test-send",{method:"POST",body:JSON.stringify(e)}),adminGenerateLifecycleAnecdote:e=>o("/api/admin/lifecycle/anecdotes/generate",{method:"POST",body:JSON.stringify(e)}),adminReviewLifecycleAnecdote:e=>o("/api/admin/lifecycle/anecdotes/review",{method:"POST",body:JSON.stringify(e)}),adminNewsletter:()=>o("/api/admin/newsletter"),adminNewsletterDelivery:()=>o("/api/admin/newsletter/delivery"),adminUpdateNewsletterSettings:e=>o("/api/admin/newsletter/settings",{method:"PATCH",body:JSON.stringify(e)}),adminRunNewsletterSweep:e=>o("/api/admin/newsletter/run",{method:"POST",body:JSON.stringify({dryRun:e})}),adminNewsletterBackfill:(e=!1)=>o("/api/admin/newsletter/backfill",{method:"POST",body:JSON.stringify({dryRun:e})}),adminPregenerateNewsletterPreviews:e=>o("/api/admin/newsletter/previews/generate",{method:"POST",body:JSON.stringify(e?{limit:e}:{})}),adminSendNewsletterProof:e=>o(`/api/admin/newsletter/editions/${encodeURIComponent(e)}/proof`,{method:"POST"}),adminArchiveNewsletterCampaign:(e,n)=>o(`/api/admin/newsletter/campaigns/${encodeURIComponent(e)}/archive`,{method:"POST",body:JSON.stringify({archived:n})}),adminNewsletterCampaignContent:e=>o(`/api/admin/newsletter/campaigns/${encodeURIComponent(e)}/content`),adminPreviewNewsletterEdition:e=>o(`/api/admin/newsletter/editions/${encodeURIComponent(e)}/preview`),adminPreviewNewsletterContent:e=>o("/api/admin/newsletter/content-preview",{method:"POST",body:JSON.stringify(e)}),adminCreateNewsletterBlock:e=>o("/api/admin/newsletter/blocks",{method:"POST",body:JSON.stringify(e)}),adminUpdateNewsletterBlock:(e,n)=>o(`/api/admin/newsletter/blocks/${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify(n)}),adminDeleteNewsletterBlock:e=>o(`/api/admin/newsletter/blocks/${encodeURIComponent(e)}`,{method:"DELETE"}),adminSeedNewsletterCampaigns:e=>o("/api/admin/newsletter/campaigns/seed",{method:"POST",body:JSON.stringify({season:e})}),adminCreateNewsletterCampaign:e=>o("/api/admin/newsletter/campaigns",{method:"POST",body:JSON.stringify(e)}),adminSetNewsletterCampaignSite:(e,n)=>o(`/api/admin/newsletter/campaigns/${encodeURIComponent(e)}/site`,{method:"POST",body:JSON.stringify({show:n})}),adminSetNewsletterSiteIssue:(e,n,s)=>o("/api/admin/newsletter/site-issues",{method:"POST",body:JSON.stringify({leagueId:e,editionKey:n,hidden:s})}),adminUpdateNewsletterCampaign:(e,n)=>o(`/api/admin/newsletter/campaigns/${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify(n)}),adminApproveNewsletterCampaign:e=>o(`/api/admin/newsletter/campaigns/${encodeURIComponent(e)}/approve`,{method:"POST"}),adminRevertNewsletterCampaign:e=>o(`/api/admin/newsletter/campaigns/${encodeURIComponent(e)}/revert`,{method:"POST"}),adminTestNewsletterCampaign:(e,n)=>o(`/api/admin/newsletter/campaigns/${encodeURIComponent(e)}/test`,{method:"POST",body:JSON.stringify({leagueId:n})}),newsletterSubscribe:e=>o("/api/newsletter/subscribe",{method:"POST",body:JSON.stringify({email:e})}),adminUpdateUser:(e,n)=>o(`/api/admin/users/${e}`,{method:"PATCH",body:JSON.stringify(n)}),adminSetUserEmailed:(e,n)=>o(`/api/admin/users/${e}/emailed`,{method:"POST",body:JSON.stringify({emailed:n})}),adminRevokeSessions:e=>o(`/api/admin/users/${e}/revoke-sessions`,{method:"POST"}),adminLoginLink:e=>o(`/api/admin/users/${e}/login-link`,{method:"POST"}),adminImpersonate:e=>o(`/api/admin/users/${e}/impersonate`,{method:"POST"}),adminDeleteUser:e=>o(`/api/admin/users/${e}`,{method:"DELETE"}),adminLeagues:(e={})=>o(`/api/admin/leagues?${new URLSearchParams(Object.entries(e).filter(([,n])=>n!==void 0&&n!=="").map(([n,s])=>[n,String(s)]))}`),adminLeague:e=>o(`/api/admin/leagues/${e}`),adminDeleteLeague:e=>o(`/api/admin/leagues/${e}`,{method:"DELETE"}),adminSetLeaguePlan:(e,n)=>o(`/api/admin/leagues/${e}/plan`,{method:"POST",body:JSON.stringify(n)}),adminAiSpend:()=>o("/api/admin/ai-spend"),adminHistorianFeedback:()=>o("/api/admin/historian-feedback"),adminHistorianConversations:(e={})=>o(`/api/admin/historian-conversations?${new URLSearchParams(Object.entries(e).filter(([,n])=>n!==void 0&&n!=="").map(([n,s])=>[n,String(s)]))}`),adminSubscriptionAction:(e,n)=>o(`/api/admin/leagues/${e}/subscription`,{method:"POST",body:JSON.stringify({mode:n})})};async function rc(e,n,s){const a=await fetch(`/api/leagues/${e}/historian/chat`,{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json",Accept:"text/event-stream"},body:JSON.stringify(n),signal:s.signal});if(!a.ok||!a.body){const p=await a.text().catch(()=>
2""),y=p?dt(p):null,d=y&&typeof y=="object"&&"error"in y&&typeof y.error=="string"?y.error:`Request failed (${a.status})`;throw new ue(a.status,d,y)}const i=a.body.getReader(),r=new TextDecoder;let c="",l=!1;const m=p=>{var N;let y="message";const d=[];for(const x of p.split(/\r?\n/))x.startsWith("event:")?y=x.slice(6).trim():x.startsWith("data:")&&d.push(x.slice(5).trimStart());if(d.length===0)return;const h=dt(d.join(`
3`));if(y==="delta"){const x=h==null?void 0:h.text;typeof x=="string"&&s.onDelta(x)}else if(y==="error"){const x=(h==null?void 0:h.message)??"The Historian is unavailable right now.";throw new ue(500,x,h)}else if(y==="done"){l=!0;const x=h==null?void 0:h.text;typeof x=="string"&&((N=s.onComplete)==null||N.call(s,x))}};try{for(;;){const{value:p,done:y}=await i.read();if(y)break;c+=r.decode(p,{stream:!0});let d;for(;(d=/\r?\n\r?\n/.exec(c))!==null;){const h=c.slice(0,d.index);c=c.slice(d.index+d[0].length),h.trim()&&m(h)}}if(c+=r.decode(),c.trim()&&m(c),!l)throw new ue(502,"LeagueBot's connection closed before the answer finished. Try again.",null)}finally{i.cancel().catch(()=>{})}}function sn(e){const n=typeof e=="string"?{season:e}:e??{};return n.seasons&&n.seasons.length>0?`?seasons=${n.seasons.map(s=>encodeURIComponent(s)).join(",")}`:n.season?`?season=${encodeURIComponent(n.season)}`:""}const ka=[{pattern:"/museum/:leagueId",page:"home",label:"League home"},{pattern:"/league/:leagueId",page:"league",label:"League home"},{pattern:"/standings/:leagueId",page:"standings",label:"Standings"},{pattern:"/transactions/:leagueId",page:"transactions",label:"Transactions"},{pattern:"/hall-of-fame/:leagueId",page:"awards",label:"Awards"},{pattern:"/records/:leagueId",page:"records",label:"Record Book"},{pattern:"/timeline/:leagueId",page:"timeline",label:"Timeline"},{pattern:"/rivalry/:leagueId",page:"rivalry",label:"Rivalry"},{pattern:"/recap/:leagueId/:season",page:"recap",label:"Season Recap"},{pattern:"/historian/:leagueId",page:"leaguebot",label:"LeagueBot"},{pattern:"/draft-history/:leagueId",page:"draft-history",label:"Draft History"},{pattern:"/draft-grade/:leagueId",page:"draft-grade",label:"Draft Grade"},{pattern:"/cheat-sheet/:leagueId",page:"cheat-sheet",label:"Cheat Sheet"},{pattern:"/props/:leagueId",page:"props",label:"Weekly Props"},{pattern:"/trade-court/:leagueId",page:"trade-court",label:"Trade Court"},{pattern:"/power-rankings/:leagueId",page:"power-rankings",label:"Power Rankings"},{pattern:"/matchups/:leagueId",page:"matchups",label:"Matchup Hype"},{pattern:"/managers/:groupId/:leagueId",page:"manager",label:"Manager profile"},{pattern:"/players/:playerKey/:leagueId",page:"player",label:"Player page"},{pattern:"/newsletter/:leagueId",page:"newsletter",label:"Newsletter"},{pattern:"/newsletter/:leagueId/:issueKey",page:"newsletter",label:"Newsletter"}],Ea=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function zn(e){for(const n of ka){const s=qs(n.pattern,e),a=s==null?void 0:s.params.leagueId;if(a&&Ea.test(a))return{leagueId:a,page:n.page,label:n.label}}return null}function oc(e,n,s=""){const a=new URLSearchParams(n);if(e.page==="props")return"This week's props are open.";if(e.page==="newsletter"){const i=s.match(/\/\d{4}-w(\d{2})$/);return i?`Week ${Number(i[1])} of the league newsletter is waiting.`:s.match(/\/\d{4}-preseason$/)?"The league's Rundown is waiting.":"The league newsletter is waiting."}return e.page==="trade-court"&&a.get("trade")?"A trade is waiting for your ruling.":null}function le({label:e="Loading…"}){return t.jsx("div",{role:"status","aria-live":"polite",className:"ui-screen",children:t.jsx("span",{className:"ui-screen-label",children:e})})}const Ta=u.lazy(()=>k(()=>import("./LeagueLinkGate-kHBYkvcg.js"),__vite__mapDeps([0,1,2,3,4,5,6])).then(e=>({default:e.LeagueLinkGate}))),Hn=u.createContext(void 0),lc=()=>u.useContext(Hn);function Ca({leagueId:e,season:n,children:s,scope:a="history"}){var N,x;const[i]=wt(),{pathname:r}=me(),c=L({queryKey:["leagues",e,"competition"],queryFn:()=>f.competition(e),enabled:!!e,staleTime:6e4});if(!e)return t.jsx(t.Fragment,{children:s});if(c.isPending)return t.jsx(le,{});const l=zn(r);if(c.isError&&(l==null?void 0:l.leagueId)===e&&c.error instanceof ue&&(c.error.status===403||c.error.status===404))return t.jsx(u.Suspense,{fallback:t.jsx(le,{}),children:t.jsx(Ta,{page:l})});if(c.isError)return t.jsxs("main",{className:"hofPage",children:[t.jsx("h1",{children:"League format unavailable"}),t.jsx("p",{children:"We couldn't verify this season's format."}),t.jsx("button",{onClick:()=>void c.refetch(),children:"Try again"})]});const m=((N=c.data)==null?void 0:N.seasons)??[],p=m.filter(j=>j.support==="supported"),y=m.filter(j=>j.support==="capture_only"),d=n??i.get("season");return y.length>0&&(!p.length||y.some(j=>j.season===d)||a==="current"&&((x=m[0])==null?void 0:x.support)==="capture_only")?t.jsxs("main",{className:"hofPage",children:[t.jsx("h1",{children:"Your league data is being saved"}),t.jsx("p",{children:"This season uses a format we don't yet support across the site. Its available scores, standings and league settings are retained for future support."}),t.jsx("p",{children:"No upgrade is needed for a capture-only archive."}),p.length>0&&t.jsx("p",{children:t.jsx(I,{to:`/standings/${e}`,children:"View supported history"})}),t.jsx("p",{children:t.jsx(I,{to:`/settings/seasons/${e}`,children:"Manage seasons"})})]}):t.jsxs(Hn.Provider,{value:m,children:[y.length>0&&t.jsxs("aside",{role:"note",children:[y.map(j=>j.season).join(", ")," saved for future format support. Statistics include supported head-to-head seasons."]}),s]})}const Bn="hof_utm",ut="hof_utm",mt="hof_utm_first",Kn=720*60*60*1e3;function X(e,n=200){if(typeof e!="string")return null;const s=e.trim().slice(0,n);return s===""?null:s}function La(){try{if(!document.referrer)return null;const e=new URL(document.referrer);return e.hostname===window.location.hostname?null:e.hostname.toLowerCase().replace(/^www\./,"").slice(0,200)}catch{return null}}function Ra(e){return e.explicitSource?{source:e.explicitSource,medium:e.explicitMedium??"unknown"}:e.redditClickId?{source:"reddit",medium:e.explicitMedium??"paid_social"}:e.metaClickId?{source:"meta",medium:e.explicitMedium??"paid_social"}:e.googleClickId?{source:"google",medium:e.explicitMedium??"cpc"}:e.referrerHost?{source:e.referrerHost,medium:e.explicitMedium??"referral"}:e.hasUtmSignal?{source:"unknown",medium:e.explicitMedium??"unknown"}:{source:"direct",medium:e.explicitMedium??"direct"}}
3function Pa(){var h,N;const e=new URLSearchParams(window.location.search),n=((h=X(e.get("utm_source")))==null?void 0:h.toLowerCase())??null,s=((N=X(e.get("utm_medium")))==null?void 0:N.toLowerCase())??null,a=X(e.get("utm_campaign")),i=X(e.get("utm_content")),r=X(e.get("utm_term")),c=X(e.get("rdt_cid"),500),l=X(e.get("fbclid"),500),m=X(e.get("gclid"),500),p=La(),d=Ra({explicitSource:n,explicitMedium:s,referrerHost:p,redditClickId:c,metaClickId:l,googleClickId:m,hasUtmSignal:!!(n||s||a||i||r)});return{touch:{utmSource:d.source,utmMedium:d.medium,utmCampaign:a,utmContent:i,utmTerm:r,landingPath:X(window.location.pathname,300),referrerHost:p,redditClickId:c,metaClickId:l,googleClickId:m,capturedAt:new Date().toISOString()},hasCampaignSignal:!!(n||s||a||i||r||c||l||m||p)}}function an(e){return JSON.stringify({s:e.utmSource,m:e.utmMedium,c:e.utmCampaign,co:e.utmContent,te:e.utmTerm,lp:e.landingPath,rh:e.referrerHost,ri:e.redditClickId,mi:e.metaClickId,gi:e.googleClickId,t:e.capturedAt?new Date(e.capturedAt).getTime():Date.now()})}function Vn(e){try{const n=JSON.parse(e);if(typeof n.t=="number"&&Date.now()-n.t>Kn)return null;const s={utmSource:X(n.s),utmMedium:X(n.m),utmCampaign:X(n.c),utmContent:X(n.co),utmTerm:X(n.te),landingPath:X(n.lp,300),referrerHost:X(n.rh),redditClickId:X(n.ri,500),metaClickId:X(n.mi,500),googleClickId:X(n.gi,500),capturedAt:typeof n.t=="number"?new Date(n.t).toISOString():null};return s.utmSource||s.landingPath?s:null}catch{return null}}function Je(e){try{const n=window.localStorage.getItem(e);if(!n)return null;const s=Vn(n);return s||window.localStorage.removeItem(e),s}catch{return null}}function _a(){var e;try{const n=`${Bn}=`,s=(e=document.cookie.split(";").map(a=>a.trim()).find(a=>a.startsWith(n)))==null?void 0:e.slice(n.length);return s?Vn(decodeURIComponent(s)):null}catch{return null}}function Aa(){try{const{touch:e,hasCampaignSignal:n}=Pa(),s=an(e),a=Je(ut)??_a();try{Je(mt)||window.localStorage.setItem(mt,s),(n||!a)&&window.localStorage.setItem(ut,s)}catch{}const r=an((n?e:a)??e);document.cookie=`${Bn}=${encodeURIComponent(r)}; path=/; max-age=${Kn/1e3}; SameSite=Lax`}catch{}}function $a(){return Je(ut)}function Ia(){return Je(mt)}const rn="hof_visitor_id",Oa=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;let it=null;function on(){try{if(crypto!=null&&crypto.randomUUID)return crypto.randomUUID()}catch{}const e=new Uint8Array(16);try{crypto.getRandomValues(e)}catch{for(let s=0;s<e.length;s++)e[s]=Math.floor(Math.random()*256)}e[6]=e[6]&15|64,e[8]=e[8]&63|128;const n=[...e].map(s=>s.toString(16).padStart(2,"0"));return[n.slice(0,4).join(""),n.slice(4,6).join(""),n.slice(6,8).join(""),n.slice(8,10).join(""),n.slice(10).join("")].join("-")}function Ue(){try{const e=window.localStorage.getItem(rn);if(e&&Oa.test(e))return e;const n=on();return window.localStorage.setItem(rn,n),it=n,n}catch{return it??(it=on()),it}}const Et="fh:last-sign-in-email";function cc(){try{const e=window.localStorage.getItem(Et);return e&&e.includes("@")?e:null}catch{return null}}function Jn(e){try{const n=e.trim().toLowerCase();n.includes("@")&&window.localStorage.setItem(Et,n)}catch{}}function dc(){try{window.localStorage.removeItem(Et)}catch{}}const Fa=336*60*60*1e3,Gn=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;let xe=null,Ke=0;function Da(e,n=Date.now){if(!fa())return Promise.resolve("missing");const s=Ke;if((xe==null?void 0:xe.userId)===e.id)return xe.promise;const a=(async()=>{let i;try{i=await Dn()}catch{return"missing"}if((i.protocol??1)<2||!Gn.test(i.installId??""))return"unsupported";const r=i.link;if(r!=null&&r.declined&&!r.linked)return"declined";if(r!=null&&r.linked&&r.userId===e.id&&typeof r.linkedAt=="number"&&n()-r.linkedAt<Fa)return"current";try{if(s!==Ke)return"failed";const c=await f.linkExtension(i.installId);return s!==Ke||c.user.id!==e.id?"failed":(await ya(c),"linked")}catch{return"failed"}})().finally(()=>{(xe==null?void 0:xe.promise)===a&&(xe=null)});return xe={userId:e.id,promise:a},a}async function Ma(e){Ke+=1;const n=(async()=>{var a;const s=await Dn();(s.protocol??1)<2||!Gn.test(s.installId??"")||!((a=s.link)!=null&&a.linked)||s.link.userId!==e.id||(await f.unlinkExtension(s.installId).catch(()=>{}
3),await xa(e.id).catch(()=>{}))})().catch(()=>{});await Promise.race([n,new Promise(s=>setTimeout(s,2500))])}function ye(){return L({queryKey:["auth","me"],queryFn:()=>f.me(),staleTime:300*1e3})}function Ze(){return S({mutationFn:e=>f.requestMagicLink(e.email,e.next,{attribution:$a(),firstAttribution:Ia(),visitorId:Ue()})})}function Wn(){const e=_();return S({mutationFn:n=>f.verifyLoginCode(n),onSuccess:(n,s)=>{Jn(n.user.email??s.email),e.setQueryData(["auth","me"],{user:n.user}),e.invalidateQueries({queryKey:["leagues"]})}})}function uc(){const e=_();return S({mutationFn:n=>f.updateMe(n),onSuccess:n=>{e.setQueryData(["auth","me"],n)}})}function mc(){return L({queryKey:["newsletter-preferences"],queryFn:()=>f.newsletterPreferences(),staleTime:300*1e3})}function hc(){const e=_();return S({mutationFn:()=>f.unsubscribeNewsletter(),onSuccess:n=>e.setQueryData(["newsletter-preferences"],n)})}function pc(){const e=_();return S({mutationFn:n=>f.resubscribeNewsletter(n),onSuccess:n=>{e.setQueryData(["newsletter-preferences"],{status:n.status,fingerprint:n.fingerprint})}})}function Ua(){const e=_();return S({mutationFn:async()=>{var s;const n=(s=e.getQueryData(["auth","me"]))==null?void 0:s.user;return n&&await Ma(n),f.logout()},onSuccess:()=>{e.clear()}})}function qa(){var s,a,i,r;const e=ye(),{data:n}=L({queryKey:["auth","reconnect-status",(a=(s=e.data)==null?void 0:s.user)==null?void 0:a.id],queryFn:f.reconnectStatus,enabled:!!((i=e.data)!=null&&i.user),staleTime:0,refetchInterval:3e4});return!((r=e.data)!=null&&r.user)||!(n!=null&&n.providers.length)?null:t.jsxs("aside",{className:"hof-reconnect-banner",role:"status","aria-label":"Connection needs attention",children:[t.jsx(Bs,{size:20,"aria-hidden":"true"}),t.jsxs("div",{className:"hof-reconnect-banner-copy",children:[t.jsx("strong",{children:"Your league connection needs attention."}),t.jsx("span",{children:"Check access to resume updates. Your imported history is safe."})]}),t.jsx("div",{className:"hof-reconnect-banner-actions",children:n.providers.map(c=>t.jsx(I,{to:`/add-league?provider=${c}&intent=reconnect`,children:c==="yahoo"?"Reconnect Yahoo":c==="mfl"?"Reconnect MFL":"Check ESPN connection"},c))})]})}const Z={museum:()=>k(()=>import("./Museum-mN4uBFAP.js"),__vite__mapDeps([7,1,5,3,8,9,2,4,10,11,12,13,14,15,16,17,18,19,20,21,22])).then(e=>({default:e.Museum})),standings:()=>k(()=>import("./Standings-C8j7JhhB.js"),__vite__mapDeps([23,1,18,3,5,4,19,2,20,24,25,14,15,21,26,27,13,28,29])).then(e=>({default:e.Standings})),records:()=>k(()=>import("./RecordsV2-DPyVXupV.js"),__vite__mapDeps([30,1,31,3,4,32,24,25,5,18,19,2,20,33])).then(e=>({default:e.RecordsV2})),"hall-of-fame":()=>k(()=>import("./HallOfFame-rI9AWetp.js"),__vite__mapDeps([34,1,24,25,35,5,3,11,4,2,36])).then(e=>({default:e.HallOfFame})),"draft-history":()=>k(()=>import("./DraftGrade-CKQrniDj.js"),__vite__mapDeps([37,1,24,25,26,27,18,3,5,4,19,2,20,38,31,32,13,39,11,40])).then(e=>({default:e.DraftHistory})),"draft-grade":()=>k(()=>import("./DraftGradeCurrent-Ctm1J4qn.js"),__vite__mapDeps([41,1,24,25,26,27,18,3,5,4,19,2,20,13,42,43])).then(e=>({default:e.DraftGrade})),"cheat-sheet":()=>k(()=>import("./CheatSheet-BFnuqWuz.js"),__vite__mapDeps([44,1,5,3,24,25,26,27,18,4,19,2,20,13,42,45])).then(e=>({default:e.CheatSheet})),rivalry:()=>k(()=>import("./Rivalry-BUP524d3.js"),__vite__mapDeps([46,1,14,4,15,47,48,31,3,32,18,5,19,2,20,21,13,49])).then(e=>({default:e.Rivalry})),historian:()=>k(()=>import("./Historian-B1ErptM9.js"),__vite__mapDeps([50,1,51,4,2,3,52,53,54,18,5,19,20,55])).then(e=>({default:e.Historian})),timeline:()=>k(()=>import("./Timeline-aK61IC5F.js"),__vite__mapDeps([56,1,24,25,47,48,38,3,4,13,5,2,57])).then(e=>({default:e.Timeline})),newsletter:()=>k(()=>import("./LeagueNewsletter-MCGEWN3h.js"),__vite__mapDeps([58,1,5,3,22,24,25,59,2,4,60])).then(e=>({default:e.LeagueNewsletter})),transactions:()=>k(()=>import("./Transactions-CpVjjOEa.js"),__vite__mapDeps([61,1,5,3,14,4,15,62,21,63,38,26,27,18,19,2,20,35,13,64])).then(e=>({default:e.Transactions})),props:()=>k(()=>import("./WeeklyProps-_7ZcXGAm.js"),__vite__mapDeps([65,1,26,27,66,3,4,67,12,5,68,24,25,2,69])).then(e=>({default:e.WeeklyProps})),"trade-court":()=>k(()=>
3import("./TradeCourt-CY0Dhuee.js"),__vite__mapDeps([70,1,5,3,18,4,19,2,20,26,27,12,66,67,68,24,25,71,69])).then(e=>({default:e.TradeCourt})),"power-rankings":()=>k(()=>import("./PowerRankings-D0wbQbbJ.js"),__vite__mapDeps([72,1,26,27,12,5,3,18,4,19,2,20,35,68,24,25,69])).then(e=>({default:e.PowerRankings})),matchups:()=>k(()=>import("./MatchupHype-D6g44TeT.js"),__vite__mapDeps([73,1,26,27,12,5,3,18,4,19,2,20,35,68,24,25,74,69])).then(e=>({default:e.MatchupHype}))};function za(e){return Object.prototype.hasOwnProperty.call(Z,e)}function Ha(){try{return!!localStorage.getItem("hof:leagueId")}catch{return!1}}function Ba(){const e=navigator.connection;return!(e!=null&&e.saveData)&&!/(^|-)2g$/.test((e==null?void 0:e.effectiveType)??"")}const rt=new Set;function Qn(e){u.useEffect(()=>{!za(e)||rt.has(e)||!Ha()||!Ba()||(rt.add(e),Z[e]().catch(()=>rt.delete(e)))},[e])}function Ka(e){const n=Va(e);return((e==null?void 0:e.seasons)??[]).filter(s=>s.hasGames||n.has(s.id)).map(s=>s.season).sort((s,a)=>Number(a)-Number(s))}function Va(e){const n=Math.max(...((e==null?void 0:e.seasons)??[]).map(a=>Number(a.season)||0)),s=new Set(((e==null?void 0:e.seasons)??[]).filter(a=>(Number(a.season)||0)<n).map(a=>a.id));return new Set(((e==null?void 0:e.seasonTeams)??[]).filter(a=>(a.wins??0)+(a.losses??0)+(a.ties??0)>0||Number(a.pointsFor??0)!==0||Number(a.pointsAgainst??0)!==0||a.finalRank!=null&&s.has(a.leagueSeasonId)).map(a=>a.leagueSeasonId))}
3function fc(e,n){return e.length>n?e.slice(0,n):null}const Ja=2025,Ga=(e,n=1)=>Math.max(0,Math.min(n,Number.isFinite(e)?e:0)),oe=e=>Math.max(0,Number.isFinite(e)?e:0),Ne=e=>Math.round(e*10)/10,J=e=>`${Math.round(e*100)}%`,Q=(e,n,s=`${n}s`)=>`${e} ${e===1?n:s}`;function Wa(e,n=Ja){return[...new Set(Ka(e).filter(s=>/^\d{4}$/.test(s)&&Number(s)<=n))].sort()}function ln(e,n){var E,b;const s=oe(e.wins),a=oe(e.losses),i=oe(e.ties),r=s+a+i,c=e.medianRecord,l=c?oe(c.wins)+oe(c.losses)+oe(c.ties):0,m=c?oe(c.wins)+oe(c.ties)/2:0,p=oe(n==null?void 0:n.championships),y=oe(e.seasons),d=Math.min(y,oe((E=e.legacyPlayoffs)==null?void 0:E.seasons)),h=Math.min(d,oe((b=e.legacyPlayoffs)==null?void 0:b.appearances)),N=d-h,x=r?(s+i/2)/r:null,j=l?m/l:null,C={championships:40*(1-Math.pow(.6,p)),median:25*(m+7)/(l+14),wins:15*(s+i/2+7)/(r+14),playoffs:20-20*(N+1)/(d+2)},O=[{key:"championships",label:"Championship pedigree",points:Ne(C.championships),maximum:40,explanation:`${Q(p,"title")}. First ring earns 16 points; each extra ring earns 60% of the previous ring's credit.`},{key:"median",label:"Beat the field",points:Ne(C.median),maximum:25,explanation:l?`${J(j)} vs the weekly median across ${Q(l,"week")}. Smoothed with a neutral 7–7 record.`:"No weekly median results available. Neutral credit; no losses invented."},{key:"wins",label:"Win consistently",points:Ne(C.wins),maximum:15,explanation:r?`${J(x)} regular-season wins across ${Q(r,"game")}. Smoothed with a neutral 7–7 record; ties count as half a win.`:"No regular-season results available. Neutral credit until results arrive."},{key:"playoffs",label:"Make the postseason",points:Ne(C.playoffs),maximum:20,explanation:d?`${Q(N,"miss","misses")} in ${Q(d,"verified season")}. 20 points less a ${Ne(20-C.playoffs).toFixed(1)}-point deduction, with one appearance and one miss added for balance.`:"No verified completed playoff opportunities. Neutral 10/20; missing history is not a missed playoff."}],A=Ne(Ga(O.reduce((v,R)=>v+R.points,0),100));return{groupId:e.groupId,name:e.name,score:A,seasons:y,championships:p,runnerUps:oe(n==null?void 0:n.runnerUps),winRate:x,medianRate:j,medianGames:l,games:r,playoffSeasons:d,playoffAppearances:h,missedPlayoffs:N,components:O,limited:y<3||r===0||l<r||d<y}}function Qa(e){let n=0;for(const s of e)n=Math.imul(n,31)+s.charCodeAt(0)>>>0;return n}function ve(e,n){return e[n%e.length]}function Ya(e){const n=Qa(e.groupId),s=e.championships>0?ve([`${Q(e.championships,"championship")} in ${Q(e.seasons,"season")}: the strongest part of this case hangs from the rafters.`,`The trophy cabinet does the talking. ${Q(e.championships,"ring")} contributes ${e.components[0].points.toFixed(1)} points to this résumé.`,`There is winning, and then there is finishing the job. ${Q(e.championships,"title")} gives this career its backbone.`,`${Q(e.championships,"title")} is the headline. The remaining score asks whether the weekly results live up to the hardware.`,`The archive has ${Q(e.championships,"championship")} next to this name. That earns ${e.components[0].points.toFixed(1)} points before the weekly record enters the conversation.`],n):ve([`Still waiting for the signature season: no championship credit yet across ${Q(e.seasons,"season")}.`,"The empty space in the trophy cabinet is the biggest ceiling on this score. A first title would add 16 championship points.","No ring on the résumé yet. This ranking has to make its entire case through the week-to-week record.",`${Q(e.seasons,"season")} in the archive, no championship on the shelf. The defining chapter is still unwritten.`,"The title column is blank. Consistency can build a case, but the index reserves its largest reward for championships."],n),a=e.medianGames===e.games&&e.winRate!==null&&e.medianRate!==null?e.winRate-e.medianRate:0,i=e.medianRate===null?"Weekly scoring history is missing, so the luck check stays neutral. This résumé is less complete than the number alone suggests.":e.medianGames<e.games?`The available weekly sample beats the median ${J(e.medianRate)} of the time, but covers only ${e.medianGames} of ${e.games} regular-season games. That is not enough coverage to compare schedule luck across the whole career.`:a>.08?ve([`The schedule deserves some credit: ${J(e.winRate)} actual wins versus ${J(e.medianRate)} against the median. The field-based score tempers the headline record.`,`The record runs ahead of the scoring: ${J(e.winRate)} wins, ${J(e.medianRate)} vs median. The index puts more weight on beating the field than drawing the right opponent.`,`Some favourable matchups may be doing the heavy lifting. The ${J(e.medianRate)} median record is less convincing than the ${J(e.winRate)} win rate.`],n>>>2):a<-.08?ve([`Better than the record suggests: ${J(e.medianRate)} vs median against ${J(e.winRate)} actual wins. Beating the field still counts when the schedule refuses to cooperate.`,`A tougher draw than the standings admit. The ${J(e.medianRate)} median record gives this career credit the ${J(e.winRate)} win rate misses.`,`The weekly output makes the stronger case: ${J(e.medianRate)} vs median, ${J(e.winRate)} in actual matchups. The index recognises that gap.`],n>>>2):e.medianRate>=.55?ve([`${J(e.medianRate)} against the weekly median: there is substance behind the résumé, not just a helpful schedule.`,`A ${J(e.medianRate)} median record means this team usually beat the middle of the field. The results have a weekly foundation.`,`The scoring holds up under inspection. ${J(e.medianRate)} vs median backs the case beyond head-to-head wins.`],n>>>2):ve([`${J(e.medianRate)} vs the weekly median leaves room to improve. More weeks above the field would move this score without needing a kinder schedule.`,`The weekly scoring is the next frontier: ${J(e.medianRate)} against the median. That limits the claim to sustained dominance.`,`The field sets a harder test than the trophy shelf: a ${J(e.medianRate)} median record keeps the overall score grounded.`],n>>>2),r=e.playoffSeasons?e.missedPlayoffs===0?ve([`An invitation every time: ${e.playoffAppearances} playoff trips in ${e.playoffSeasons} verified seasons. Small samples are still tempered in the score.`,`No verified missed postseasons. Showing up in all ${e.playoffSeasons} recorded opportunities gives this résumé a reliable floor.`,`The playoff door has stayed open: ${e.playoffAppearances} appearances from ${e.playoffSeasons} verified opportunities. That consistency earns its own credit.`],n>>>4):ve([`${Q(e.missedPlayoffs,"missed postseason")} in ${e.playoffSeasons} verified opportunities costs points. The next step is making the bracket more reliably.`,`The gaps matter too: ${e.playoffAppearances} playoff trips and ${Q(e.missedPlayoffs,"miss")}. The index rewards showing up, not just the best season.`,`${e.playoffAppearances} of ${e.playoffSeasons} verified seasons ended with a playoff berth. The ${Q(e.missedPlayoffs,"miss")} explains the postseason deduction.`,`Not every season made it to the big stage. ${Q(e.missedPlayoffs,"miss")} lowers the consistency credit, even when the career has other highlights.`],n>>>4):"Postseason history is incomplete or no completed bracket is recorded. No missed-playoff penalty is inferred from that absence.";return[s,i,r]}const Za=["Tom Brady","Jerry Rice","Jim Brown"],Xa=["JaMarcus Russell","Ryan Leaf","Akili Smith"],ei=[["Joe Montana","Peyton Manning","John Elway","Terry Bradshaw","Emmitt Smith","Walter Payton","Lawrence Taylor","Reggie White","Ronnie Lott","Ray Lewis","Troy Aikman","Roger Staubach","Bart Starr","Franco Harris","Mel Blount","Jack Lambert","Mike Singletary","Rod Woodson"],["Drew Brees","Steve Young","Brett Favre","Kurt Warner","Eli Manning","Len Dawson","Joe Theismann","Phil Simms","Joe Namath","Jim McMahon","Doug Williams","Nick Foles","Trent Dilfer","Brad Johnson","Mark Rypien","Jeff Hostetler","Jim Plunkett","Ken Stabler"],["Dan Marino","Jim Kelly","Philip Rivers","Dan Fouts","Warren Moon","Donovan McNabb","Tony Romo","Matt Ryan","Boomer Esiason","Steve McNair","Rich Gannon","Randall Cunningham","Ken Anderson","Fran Tarkenton","Daryle Lamonica","John Hadl","Sonny Jurgensen","Roman Gabriel"],["Alex Smith","Matt Hasselbeck","Carson Palmer","Drew Bledsoe","Jeff Garcia","Chad Pennington","Jake Delhomme","Kerry Collins","Jake Plummer","Jim Everett","Dave Krieg","Trent Green","Neil O'Donnell","Brian Sipe","Steve Grogan","Craig Morton","Chris Chandler","Steve DeBerg"],["Ryan Fitzpatrick","Vinny Testaverde","Jay Cutler","Jeff George","Aaron Brooks","Marc Bulger","Jon Kitna","Kyle Orton","Jason Campbell","Josh McCown","Matt Schaub","Gus Frerotte","Steve Beuerlein","Scott Mitchell","Bobby Hebert","Erik Kramer","David Garrard","Chad Henne"],["Joey Harrington","David Carr","Tim Couch","Heath Shuler","Rick Mirer","Christian Ponder","Blaine Gabbert","J.P. Losman","Kyle Boller","Brady Quinn","Matt Leinart","Vince Young","Mark Sanchez","Trent Edwards","Jimmy Clausen","Brandon Weeden","DeShone Kizer","Josh Rosen"]];function Yn(e,n,s){if(n===0)return{label:"The GOAT",tier:-1};if(n===s-1)return{label:"The league’s worst",tier:6};const a=n/(s-1);return a<=.2?{label:"The chasing pack",tier:e.championships>=2?0:e.championships?1:2}:a<=.4?{label:"In contention",tier:e.championships?1:2}:a<=.65?{label:"Middle of the pack",tier:3}:a<=.85?{label:"Underachiever",tier:4}:{label:"On the ropes",tier:5}}function ti(e){const n=new Set;return e.map((s,a)=>{const{tier:i}=Yn(s,a,e.length),r=i===-1?`The league's top résumé: ${Q(s.championships,"title")} and ${s.score.toFixed(1)} legacy points. The GOAT comparison belongs here alone.`:i===6?`Last in this league at ${s.score.toFixed(1)} points. The comparison is about the weakest overall résumé, not a claim about talent.`:`${a+1} of ${e.length} in this league: ${Q(s.championships,"title")}, ${s.winRate===null?"unverified":J(s.winRate)} wins${s.medianRate===null?"":` and ${J(s.medianRate)} vs median`}. ${i<=2?"A challenger’s résumé, below the league's GOAT.":i===3?"A middle-of-the-pack career, not an all-time great.":"An uneven résumé with more to prove than to celebrate."}`;return(i===-1?Za:i===6?Xa:ei.map((l,m)=>({names:l,distance:Math.abs(m-i),pool:m})).sort((l,m)=>l.distance-m.distance||l.pool-m.pool).flatMap(({names:l})=>l)).filter(l=>!n.has(l)).slice(0,3).map((l,m)=>{n.add(l);const p=[r,`${Q(s.championships,"title")} in ${Q(s.seasons,"season")}. ${i===-1?"The defining career in this league’s archive.":i===6?"The overall record still puts this franchise last.":"The comparison reflects this franchise’s place in the league, not ring-for-ring equivalence."}`,`${s.medianRate===null?"Weekly median history is incomplete":`${J(s.medianRate)} against the weekly median`}${s.playoffSeasons?`; ${s.playoffAppearances} playoff trips in ${s.playoffSeasons} verified seasons`:""}. ${i===-1?"The strongest combined case in this league.":i>=4?"The weekly foundation needs work.":"Weekly substance matters alongside the trophy shelf."}`];return{name:l,reason:p[m]}})})}function gc(e,n,s={}){const a=new Map(e.trophies.map(m=>[m.groupId,m])),i=new Map((n==null?void 0:n.trophies.map(m=>[m.groupId,m]))??[]),r=new Map((n==null?void 0:n.standings.map(m=>[m.groupId,ln(m,i.get(m.groupId))]))??[]),c=e.standings.filter(m=>{var p;return!((p=s.hidden)!=null&&p.has(m.groupId))&&!/^[-\s]*hidden[-\s]*$/i.test(m.name)&&m.seasons>0}).map(m=>ln(m,a.get(m.groupId))).sort((m,p)=>p.score-m.score||p.championships-m.championships||(p.medianRate??.5)-(m.medianRate??.5)||m.name.localeCompare(p.name)||m.groupId.localeCompare(p.groupId)),l=ti(c);return c.map((m,p)=>{const y=r.get(m.groupId),d=s.comparisonAvailable!==!1,h=d&&y?Ne(m.score-y.score):null,N=Yn(m,p,c.length);return{...m,rank:p+1,previousScore:d?(y==null?void 0:y.score)??null:null,delta:h,movement:d?y?h>0?"up":h<0?"down":"unchanged":"new":"unavailable",archetype:N.label,bullets:Ya(m),comparisons:l[p]}})}const qe={staleTime:300*1e3,gcTime:1800*1e3},ni=e=>De({queryKey:["leagues",e,"champions"],queryFn:()=>f.getChampions(e),...qe}),si=e=>De({queryKey:["leagues",e,"awards"],queryFn:()=>f.getAwards(e),...qe}),ai=e=>De({queryKey:["leagues",e,"timeline"],queryFn:()=>f.getTimeline(e),...qe}),cn=(e,n={},s="all-time")=>De({queryKey:["leagues",e,"stats",s],queryFn:()=>f.getStats(e,n),...qe}),yc=(e,n={},s="all-time")=>De({queryKey:["leagues",e,"transactions",s],queryFn:()=>f.getTransactionStats(e,n),...qe});function ii(e,n){const s=new URL(n),a=new URL(e,s);if(a.origin!==s.origin||a.pathname===s.pathname)return null;
3const i=a.pathname.split("/").filter(Boolean);if(i.length!==2||!Object.prototype.hasOwnProperty.call(Z,i[0]))return null;try{return{page:i[0],leagueId:decodeURIComponent(i[1])}}catch{return null}}function ri({page:e,leagueId:n},s){Z[e]().catch(()=>{});const a=i=>void s.prefetchQuery({...i,retry:!1});switch(e){case"standings":{const i=s.getQueryData(["leagues",n]),r=Wa(i);r.length&&a(cn(n,{seasons:r},`seasons:${r.join(",")}`));break}case"rivalry":a(cn(n));break;case"hall-of-fame":a(ni(n)),a(si(n));break;case"timeline":a(ai(n));break}}function oi(e){let n;const s=()=>{clearTimeout(n),n=void 0},a=c=>c instanceof Element?c.closest("a[href]"):null,i=c=>{const l=a(c.target);if(!l||l.hasAttribute("download")||l.target==="_blank"||c instanceof MouseEvent&&l.contains(c.relatedTarget))return;s();const m=navigator.connection;if(m!=null&&m.saveData||/(^|-)2g$/.test((m==null?void 0:m.effectiveType)??""))return;const p=ii(l.href,window.location.href);p&&(c.type==="pointerover"?n=setTimeout(()=>e(p),100):e(p))},r=c=>{const l=a(c.target);l&&c instanceof MouseEvent&&!l.contains(c.relatedTarget)&&s()};return document.addEventListener("pointerover",i),document.addEventListener("pointerout",r),document.addEventListener("focusin",i),document.addEventListener("pointerdown",i),()=>{s(),document.removeEventListener("pointerover",i),document.removeEventListener("pointerout",r),document.removeEventListener("focusin",i),document.removeEventListener("pointerdown",i)}}function li(){const e=_();return u.useEffect(()=>oi(n=>ri(n,e)),[e]),null}function Tt(e,n){try{fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n),credentials:"include",keepalive:!0}).catch(()=>{})}catch{}}function $(e,n){Tt("/api/analytics",{event:e,path:window.location.pathname,props:n,visitorId:Ue()})}const ci=new Set(["lifecycle","newsletter"]);function di(e){var i,r;const n=new URLSearchParams(e),s=n.get("utm_source")??"";if(!ci.has(s)||n.get("utm_medium")!=="email")return;const a={utmSource:s,utmMedium:"email",utmCampaign:((i=n.get("utm_campaign"))==null?void 0:i.slice(0,200))??"",utmContent:((r=n.get("utm_content"))==null?void 0:r.slice(0,200))??""};return a.utmCampaign&&a.utmContent?a:void 0}function ui(e,n=""){Tt("/api/analytics",{event:"pageview",path:e,props:di(n),visitorId:Ue()})}let dn=!1;function mi(e,n){return e.includes("window.webkit.messageHandlers")&&(n==null?void 0:n.includes("sendDataToNative"))===!0&&n.includes("sendPageHideMessage")}function hi(e){return/https:\/\/scripts\.clarity\.ms\//i.test(e??"")?!/https:\/\/(?:[a-z0-9-]+\.)*fantasyhoff\.com\//i.test(e??""):!1}function pi(e,n="none"){var r;let s=typeof e;try{if(typeof e=="object"&&e!==null){const c=(r=e.constructor)==null?void 0:r.name;c&&c!=="Object"&&(s=`${s} (${c})`)}}catch{}let a="";try{const c=e==null?void 0:e.stack;typeof c=="string"&&c&&(a=`
4stack: ${c.slice(0,2e3)}`)}catch{}const i=typeof window>"u"?"":window.location.pathname;return`reason type: ${s}
5route: ${i}
6last click: ${n}${a}`}function fi(){if(dn)return;dn=!0;const e=new Set,n=(a,i)=>{if(mi(a,i)||hi(i))return;const r=a.slice(0,120);e.has(r)||e.size>20||(e.add(r),Tt("/api/analytics/client-errors",{message:a.slice(0,500),stack:i==null?void 0:i.slice(0,4e3),path:window.location.pathname,visitorId:Ue()}))};let s=null;document.addEventListener("click",a=>{const i=a.target instanceof Element?a.target:null,r=(i==null?void 0:i.closest("button, a, input, select, textarea, label, [role='button']"))??i;if(!r)return;const c=r.id?`#${r.id}`:"",l=(r.getAttribute("class")??"").split(/\s+/).filter(Boolean).slice(0,3).map(m=>`.${m}`).join("");s={control:`${r.tagName.toLowerCase()}${c}${l}`.slice(0,120),at:Date.now()}},{capture:!0,passive:!0}),window.addEventListener("error",a=>{var i;a.filename&&!a.filename.startsWith(window.location.origin)||a.message!=="Script error."&&n(a.message||"Unknown error",(i=a.error)==null?void 0:i.stack)}),window.addEventListener("unhandledrejection",a=>{const i=a.reason;if(i instanceof Error){n(i.message,i.stack);return}const r=s?`${s.control} ${Math.round((Date.now()-s.at)/1e3)}s before`:"none";let c="unstringifiable";try{c=String(i).slice(0,300)}catch{}n(`Unhandled rejection: ${c}`,pi(i,r))})}const gi="a2_jcjsb9drfcwq";function Ct(...e){var n;try{(n=window.rdt)==null||n.call(window,...e)}catch{}}function yi(){try{const e=new URLSearchParams(window.location.search).get("rdt_cid");if(!e||!/^[\w.-]{4,256}$/.test(e))return;document.cookie=`rdt_cid=${encodeURIComponent(e)}; path=/; max-age=${720*60*60}; SameSite=Lax`}catch{}}function Zn(){try{if(crypto!=null&&crypto.randomUUID)return crypto.randomUUID()}catch{}return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`}function Xe(e,n){Ct("track",e,{conversionId:Zn(),...n})}
6function xi(e,n){Ct("track","Custom",{conversionId:Zn(),...n,customEventName:e})}function xc(e){Xe("Lead",{conversionId:e})}function ji(e){Xe("Lead",e)}function jc(e){xi("StartTrial",{conversionId:e,itemCount:1})}async function vi(e){try{if(!(crypto!=null&&crypto.subtle))return null;const n=new TextEncoder().encode(e.trim().toLowerCase()),s=await crypto.subtle.digest("SHA-256",n);return[...new Uint8Array(s)].map(a=>a.toString(16).padStart(2,"0")).join("")}catch{return null}}let un=null;async function bi(e){if(!window.rdt||un===e.id)return;un=e.id;const n=await vi(e.email);Ct("init",gi,{...n?{email:n}:{},externalId:e.id})}function wi(e){if(!window.rdt||!e.createdAt)return;const n=Date.now()-new Date(e.createdAt).getTime();if(n>=0&&n<900*1e3){try{const s=`hof:rdt-signup:${e.id}`;if(localStorage.getItem(s))return;localStorage.setItem(s,"1")}catch{}Xe("SignUp",{conversionId:e.id})}}const Si="493074540259884";function Lt(...e){var n;try{(n=window.fbq)==null||n.call(window,...e)}catch{}}function Xn(){try{if(crypto!=null&&crypto.randomUUID)return crypto.randomUUID()}catch{}return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`}function Rt(e,n={}){const s=n.eventId??Xn(),a={...n.value!=null?{value:n.value}:{},...n.currency?{currency:n.currency}:{},...n.contentName?{content_name:n.contentName}:{},...n.numItems!=null?{num_items:n.numItems}:{}};Lt("track",e,a,{eventID:s})}function es(e,n={}){const s=n.eventId??Xn(),a={...n.contentName?{content_name:n.contentName}:{}};Lt("trackCustom",e,a,{eventID:s})}async function mn(e){try{if(!(crypto!=null&&crypto.subtle))return null;const n=new TextEncoder().encode(e.trim().toLowerCase()),s=await crypto.subtle.digest("SHA-256",n);return[...new Uint8Array(s)].map(a=>a.toString(16).padStart(2,"0")).join("")}catch{return null}}let hn=null;async function Ni(e){if(!window.fbq||hn===e.id)return;hn=e.id;const[n,s]=await Promise.all([mn(e.email),mn(e.id)]);!n&&!s||Lt("init",Si,{...n?{em:n}:{},...s?{external_id:s}:{}})}function ki(e,n={}){if(!window.fbq||!e.createdAt)return;const s=Date.now()-new Date(e.createdAt).getTime();if(s>=0&&s<900*1e3){try{const a=`hof:meta-registration:${e.id}`;if(localStorage.getItem(a))return;localStorage.setItem(a,"1")}catch{}Rt("CompleteRegistration",{eventId:e.id,...n})}}function vc(e){Rt("Lead",{eventId:e})}function Ei(e={}){es("LedgerSubscribe",{contentName:"League Ledger",...e})}function bc(e,n={}){try{const s=`hof:meta-draft-grader-entry:${e}`;if(localStorage.getItem(s))return!1;localStorage.setItem(s,"1")}catch{}return es("DraftGraderEntry",{eventId:e,...n}),!0}const Ti="/assets/icon-Dw98AtdE.svg",Ci="/assets/wordmark-slab-CBZwM19s.png",Li="/assets/wordmark-slab-reversed-CfOYFd-s.png";function ht({size:e=40}){return t.jsx("img",{src:Ti,width:e,height:e,alt:"","aria-hidden":"true",draggable:!1})}function Le({height:e=40,reversed:n=!1}){return t.jsxs("span",{className:"hof-brand-lockup","aria-label":"Fantasy Hall of Fame",children:[t.jsx(ht,{size:e}),t.jsx("img",{src:n?Li:Ci,height:e,width:Math.round(e*(1470/553)),alt:"","aria-hidden":"true",draggable:!1})]})}const Pt="https://chromewebstore.google.com/detail/fantasy-hall-of-fame-leag/jkoinlgknbaanjbociollkmnpjmaahod",ts=29,Ri=`$${ts}`,wc="30% off";function Sc(e){return`$${Number.isInteger(e)?e:e.toFixed(2)}`}const pt=["gmail.com","yahoo.com","hotmail.com","outlook.com","icloud.com","aol.com","comcast.net","live.com","msn.com","me.com","att.net","sbcglobal.net","verizon.net","ymail.com","protonmail.com"].map(ns),ft=new Set([...pt.map(e=>e.domain),"googlemail.com","mac.com","rocketmail.com","proton.me","pm.me","mail.com","email.com","gmx.com","gmx.net","aim.com","cox.net","charter.net","bellsouth.net","earthlink.net","optonline.net","frontier.com","windstream.net","roadrunner.com","rr.com","juno.com","mchsi.com","centurylink.net","fastmail.com","zoho.com","yandex.com","hey.com","wahoo.com"]),Pi=[...ft].map(ns),_i={com:["con","cmo","ocm","cm","co","om","comm","coom","cpm","vom","xom","cim","c0m","clm","cok","comn","come","coml","ccom"],net:["ner","nte","nett","neet","met","bet","nt","ne","nwt","het"]},Ai={gnail:"gmail",gamil:"gmail",gmial:"gmail",gmai:"gmail",gmaill:"gmail",gmailll:"gmail",yaho:"yahoo",yahooo:"yahoo",yahoooo:"yahoo",hotmial:"hotmail",hotmal:"hotmail",outlok:"outlook",iclod:"icloud",icoud:"icloud",icould:"icloud",aoll:"aol",aool:"aol"};function ns(e){const n=e.lastIndexOf(".");return{domain:e,base:e.slice(0,n),tld:e.slice(n+1)}}function $i(e){return e.length>=8?2:e.length>=5?1:0}function Ii(e,n){const s=e.length+1,a=n.length+1,i=Array.from({length:s},()=>new Array(a).fill(0));for(let r=0;r<s;r++)i[r][0]=r;for(let r=0;r<a;r++)i[0][r]=r;for(let r=1;r<s;r++)for(let c=1;c<a;
6c++){const l=e[r-1]===n[c-1]?0:1;i[r][c]=Math.min(i[r-1][c]+1,i[r][c-1]+1,i[r-1][c-1]+l),r>1&&c>1&&e[r-1]===n[c-2]&&e[r-2]===n[c-1]&&(i[r][c]=Math.min(i[r][c],i[r-2][c-2]+1))}return i[e.length][n.length]}function pn(e,n){return n===e||(_i[e]??[]).includes(n)}function Oi(e){if(ft.has(e))return null;const n=e.replace(/\.+$/,"");if(n!==e)return ft.has(n)?n:null;const s=e.lastIndexOf(".");if(s===-1){const l=pt.find(m=>m.base+m.tld===e);return(l==null?void 0:l.domain)??null}const a=e.slice(0,s),i=e.slice(s+1);if(!a||a.includes("."))return null;const r=Pi.find(l=>l.base===a&&pn(l.tld,i));if(r)return r.domain;let c=null;for(const l of pt){if(!pn(l.tld,i))continue;const m=Ai[a]===l.base?0:Ii(a,l.base);m>$i(l.base)||(!c||m<c.distance)&&(c={domain:l.domain,distance:m})}return(c==null?void 0:c.domain)??null}function Fi(e){const n=(e??"").trim(),s=n.lastIndexOf("@");if(s<=0||n.indexOf("@")!==s)return null;const a=n.slice(0,s),i=n.slice(s+1).toLowerCase();if(!i||/\s/.test(i)||/\s/.test(a))return null;const r=Oi(i);return!r||r===i?null:`${a}@${r}`}const Di=900;function et({email:e,onFix:n,className:s}){const a=Fi(e),i=a!==null&&a.toLowerCase().startsWith(e.trim().toLowerCase()),[r,c]=u.useState(null);u.useEffect(()=>{if(!i)return;const p=window.setTimeout(()=>c(e),Di);return()=>window.clearTimeout(p)},[e,i]);const l=a&&(!i||r===e)?a:null,m=l?l.slice(l.lastIndexOf("@")+1):null;return u.useEffect(()=>{m&&$("sign_in_typo_suggested",{suggested:m})},[m]),l?t.jsxs("p",{className:`email-typo-hint${s?` ${s}`:""}`,role:"status",children:["Did you mean"," ",t.jsx("button",{type:"button","aria-label":`Use ${l}`,onClick:p=>{var d;const y=(d=p.currentTarget.form)==null?void 0:d.querySelector('[type="submit"]');$("sign_in_typo_fixed",{suggested:m}),n(l),y==null||y.focus()},children:l}),"?"]}):null}function Oe(e,n,s=Date.now()){return n!=null&&n.undeliverable?{email:e,undeliverable:!0}:{email:e,sent:!0,sentAt:s,...n!=null&&n.deliveryId?{deliveryId:n.deliveryId}:{}}}const gt=[{id:"yahoo",name:"Yahoo",mark:"Y!",note:"One-click sign in"},{id:"sleeper",name:"Sleeper",mark:"S",note:"Username or URL"},{id:"espn",name:"ESPN",mark:"E",note:"Secure import"},{id:"cbs",name:"CBS",mark:"CBS",note:"Chrome extension"},{id:"mfl",name:"MFL",mark:"MFL",note:"League link or sign in"},{id:"fleaflicker",name:"Fleaflicker",mark:"FF",note:"League link or email"}];function Mi({provider:e,onProviderChange:n}={}){var x;const s=Ze(),a=ke(),i=u.useRef(null),[r,c]=u.useState(null),l=e!==void 0?e:r,[m,p]=u.useState(""),y=(x=gt.find(j=>j.id===l))==null?void 0:x.name,d=l?`/add-league?provider=${encodeURIComponent(l)}`:"/add-league",h=j=>{n?n(j):(c(j),$("homepage_platform_selected",{provider:j})),s.reset(),window.requestAnimationFrame(()=>{var C;return(C=i.current)==null?void 0:C.focus()})},N=async j=>{if(j==null||j.preventDefault(),!(!l||!m.trim()||s.isPending))try{const C=await s.mutateAsync({email:m.trim(),next:d});$("homepage_signup_submitted",{provider:l}),a(`/login?next=${encodeURIComponent(d)}`,{state:Oe(m.trim(),C)})}catch(C){console.error(C)}};return t.jsxs("div",{className:"hh-start",id:"start",children:[t.jsxs("div",{className:"hh-start-head",children:[t.jsxs("div",{children:[t.jsx("span",{children:"Start here"}),t.jsx("strong",{children:"Where does your league live now?"})]}),t.jsx("span",{className:"hh-free-tag",children:"2-minute setup"})]}),t.jsx("div",{className:"hh-platforms",role:"group","aria-label":"Fantasy platform",children:gt.map(j=>t.jsxs("button",{type:"button",className:l===j.id?"is-selected":"","aria-pressed":l===j.id,onClick:()=>h(j.id),children:[t.jsxs("span",{className:`hh-platform-mark is-${j.id}`,children:[t.jsx("img",{src:`/api/email-assets/provider/${j.id}`,alt:"",loading:"lazy",onError:C=>{C.currentTarget.remove()}}),j.mark]}),t.jsxs("span",{children:[t.jsx("strong",{children:j.name}),t.jsx("small",{children:j.note})]}),t.jsx(Pe,{className:"hh-platform-check",size:14})]},j.id))}),l==="cbs"&&t.jsxs("p",{className:"hh-extension-note",children:[t.jsx(On,{size:14}),t.jsxs("span",{children:["CBS imports one season at a time through our free, read-only"," ",t.jsx("a",{href:Pt,target:"_blank",rel:"noopener noreferrer",onClick:()=>$("extension_store_clicked",{provider:"cbs",placement:"homepage-platform-note"}),children:"Chrome extension"}),"."]})]}),l&&t.jsxs("form",{className:"hh-email-form",onSubmit:N,children:[t.jsxs("div",{children:[t.jsx("label",{htmlFor:"home-email",children:"Email address"}),t.jsx("input",{ref:i,id:"home-email",type:"email",name:"email",inputMode:"email",autoComplete:"email",required:!0,value:m,placeholder:"[email protected]",onChange:j=>p(j.target.value)})]}),t.jsxs("button",{type:"submit",disabled:s.isPending,children:[s.isPending?"Sending…":`Continue with ${y}`,t.jsx(je,{size:15})]}),t.jsx(et,{email:m,onFix:p}),s.isError&&t.jsx("p",{className:"hh-form-error",role:"alert",children:"We couldn't send the link. Check the address and try again."})]}),!l&&t.jsxs("p",{className:"hh-start-note",children:["Choose a platform to continue. Already have a Hall?"," ",t.jsx(I,{to:"/login",children:"Sign in"}),"."]})]})}
6function Ui({adMode:e}){return t.jsxs(t.Fragment,{children:[t.jsxs("section",{className:"hh-hero","aria-labelledby":"hh-title",children:[t.jsx("div",{className:"hh-hero-lines","aria-hidden":"true"}),t.jsxs("div",{className:"hh-hero-inner",children:[t.jsxs("div",{className:"hh-hero-copy",children:[t.jsxs("p",{className:"hh-kicker",children:[t.jsx(St,{size:13})," The permanent home for your league"]}),t.jsx("h1",{id:"hh-title",children:e?t.jsxs(t.Fragment,{children:["Your league belongs",t.jsx("span",{children:"in a museum."})]}):t.jsxs(t.Fragment,{children:["Your fantasy league has a history.",t.jsx("span",{children:"Give it a Hall of Fame."})]})}),t.jsx("p",{className:"hh-hero-dek",children:e?"Every season you've ever played — champions, records, rivalries, receipts — restored in about two minutes. Full access free for 7 days, for your whole league.":"Connect your league and turn every season into one living museum of champions, records, rivalries, draft habits, and stories worth bringing back to the group chat."}),t.jsx(Mi,{})]}),t.jsx(qi,{})]})]}),t.jsxs("section",{className:"hh-assurance","aria-label":"Import assurances",children:[t.jsxs("span",{children:[t.jsx(We,{size:16})," Read-only connection"]}),t.jsxs("span",{children:[t.jsx(Pe,{size:16})," Free to start · 7-day Elite trial, then ",Ri,"/yr"]}),t.jsxs("span",{children:[t.jsx(Be,{size:16})," Multiple seasons at once"]}),t.jsxs("span",{children:[t.jsx(Nt,{size:16})," One museum for the whole league"]})]})]})}function qi(){return t.jsx("div",{className:"hh-museum-wrap",role:"img","aria-label":"The Fantasy Hall of Fame app: a green sidebar with Now, Draft kit, and Hall of Fame sections beside a scoreboard-style league home celebrating a three-time champion, with all-time standings and draft grades",children:t.jsxs("div",{className:"hh-museum hh-appshot","aria-hidden":"true",children:[t.jsxs("div",{className:"hh-as-chrome",children:[t.jsx("i",{}),t.jsx("i",{}),t.jsx("i",{}),t.jsx("span",{children:"fantasyhoff.com/museum"})]}),t.jsxs("div",{className:"hh-as-body",children:[t.jsxs("div",{className:"hh-as-rail",children:[t.jsxs("div",{className:"hh-as-brand",children:[t.jsx("span",{className:"tile",children:"FH"}),t.jsxs("b",{children:["The Backyard 12",t.jsx("small",{children:"11 seasons"})]})]}),t.jsx("p",{className:"hh-as-ghead",children:"Now"}),t.jsx("span",{className:"hh-as-item on",children:"Home"}),t.jsx("span",{className:"hh-as-item",children:"Standings"}),t.jsx("span",{className:"hh-as-item",children:"Transactions"}),t.jsxs("p",{className:"hh-as-ghead",children:["Draft kit ",t.jsx("i",{className:"hh-as-moment",children:"Draft SZN"})]}),t.jsx("span",{className:"hh-as-item",children:"Draft History"}),t.jsxs("span",{className:"hh-as-item live",children:["Cheat Sheet",t.jsx("i",{})]}),t.jsx("span",{className:"hh-as-item",children:"2026 Draft Grade"}),t.jsx("p",{className:"hh-as-ghead",children:"Hall of Fame"}),t.jsx("span",{className:"hh-as-item",children:"Awards"}),t.jsx("span",{className:"hh-as-item",children:"Record Book"}),t.jsx("span",{className:"hh-as-item",children:"Rivalry"}),t.jsxs("div",{className:"hh-as-fill",children:[t.jsxs("p",{children:["Fill the Hall",t.jsx("b",{children:"9/12"})]}),t.jsx("i",{children:t.jsx("span",{style:{width:"75%"}})})]})]}),t.jsxs("div",{className:"hh-as-main",children:[t.jsxs("div",{className:"hh-as-top",children:[t.jsx("span",{children:"Home · The Backyard 12"}),t.jsx("b",{children:"Draft in 26d"})]}),t.jsxs("div",{className:"hh-as-jumbo",children:[t.jsx("p",{className:"kick",children:"11 seasons · 2015–2025 · 824 matchups"}),t.jsxs("span",{className:"chip",children:[t.jsx(Qe,{size:11})," 3× champion"]}),t.jsx("h4",{children:"Run CMC"}),t.jsx("p",{className:"sub",children:"3 titles · 28 weekly highs · 14–13 vs Mahomes Alone"})]}),t.jsxs("div",{className:"hh-as-cards",children:[t.jsxs("div",{className:"hh-as-card",children:[t.jsx("p",{children:"All-time standings"}),t.jsxs("div",{className:"row",children:[t.jsx("span",{children:"1"}),t.jsx("strong",{children:"Run CMC"}),t.jsx("em",{children:"147–98"})]}),t.jsxs("div",{className:"row",children:[t.jsx("span",{children:"2"}),t.jsx("strong",{children:"Mahomes Alone"}),t.jsx("em",{children:"139–106"})]}),t.jsxs("div",{className:"row",children:[t.jsx("span",{children:"3"}),t.jsx("strong",{children:"Kelce Grammer"}),t.jsx("em",{children:"128–117"})]}),t.jsxs("div",{className:"row",children:[t.jsx("span",{children:"4"}),t.jsx("strong",{children:"The Goon Squad"}
6),t.jsx("em",{children:"121–124"})]}),t.jsxs("div",{className:"row",children:[t.jsx("span",{children:"5"}),t.jsx("strong",{children:"Fourth & Long"}),t.jsx("em",{children:"118–127"})]})]}),t.jsxs("div",{className:"hh-as-card",children:[t.jsx("p",{children:"Draft grades"}),t.jsxs("div",{className:"row",children:[t.jsx("span",{className:"grade",children:"A−"}),t.jsx("strong",{children:"Run CMC"}),t.jsx("em",{children:"best: Puka"})]}),t.jsxs("div",{className:"row",children:[t.jsx("span",{className:"grade",children:"B+"}),t.jsx("strong",{children:"Mahomes Alone"}),t.jsx("em",{children:"steal, R9"})]}),t.jsxs("div",{className:"row",children:[t.jsx("span",{className:"grade",children:"B"}),t.jsx("strong",{children:"Kelce Grammer"}),t.jsx("em",{children:"2 reaches"})]}),t.jsxs("div",{className:"row",children:[t.jsx("span",{className:"grade",children:"B−"}),t.jsx("strong",{children:"The Goon Squad"}),t.jsx("em",{children:"reach, R2"})]}),t.jsxs("div",{className:"row",children:[t.jsx("span",{className:"grade",children:"C+"}),t.jsx("strong",{children:"Fourth & Long"}),t.jsx("em",{children:"late QB run"})]})]})]}),t.jsxs("div",{className:"hh-as-strip",children:[t.jsx("span",{children:'"Was the 2019 title rigged?"'}),t.jsx("b",{children:"Ask the Historian →"})]})]})]})]})})}const ss=["espn","sleeper","yahoo","cbs"],fn=["mfl","fleaflicker"];function tt(e){return gt.find(n=>n.id===e)}function zi({id:e}){const n=tt(e);return t.jsxs("span",{className:`adl-mark is-${e}`,"aria-hidden":"true",children:[t.jsx("img",{src:`/api/email-assets/provider/${e}`,alt:"",loading:"lazy",onError:s=>{s.currentTarget.remove()}}),n.mark]})}function yt({ids:e,selected:n,onPick:s,detailed:a=!1}){return t.jsx("div",{className:`adl-keys${a?" is-detailed":""}`,role:"group","aria-label":"Fantasy platform",children:e.map(i=>{const r=tt(i),c=n===i;return t.jsxs("button",{type:"button",className:`adl-key${c?" is-selected":""}`,"aria-pressed":c,onClick:()=>s(i),children:[t.jsx(zi,{id:i}),a?t.jsxs("span",{className:"adl-key-text",children:[t.jsx("strong",{children:r.name}),t.jsx("small",{children:r.note})]}):t.jsx("span",{className:"adl-key-text",children:r.name})]},i)})})}function gn({title:e,tag:n,onPick:s,onMore:a}){return t.jsxs("div",{className:"adl-start",children:[t.jsxs("div",{className:"adl-start-head",children:[t.jsx("strong",{children:e}),t.jsx("span",{className:"adl-free",children:n})]}),t.jsx(yt,{ids:ss,onPick:s}),t.jsxs("p",{className:"adl-more",children:["On MFL or Fleaflicker?"," ",t.jsx("button",{type:"button",onClick:a,children:"Start here"})]})]})}function as({items:e,dark:n=!1}){return t.jsx("div",{className:`adl-trust${n?" is-dark":""}`,children:e.map(s=>t.jsxs("span",{children:[t.jsx(Pe,{size:14,"aria-hidden":"true"}),s]},s))})}function Hi({items:e}){return t.jsx("dl",{className:"adl-faq",children:e.map(n=>t.jsxs("div",{children:[t.jsx("dt",{children:n.q}),t.jsx("dd",{children:n.a})]},n.q))})}function Bi(){return t.jsxs("header",{className:"adl-top",children:[t.jsx(I,{to:"/",className:"adl-brand","aria-label":"Fantasy Hall of Fame home",children:t.jsx(Le,{height:30,reversed:!0})}),t.jsx(I,{to:"/login",className:"adl-signin",children:"Sign in"})]})}function Ki(){return t.jsxs("footer",{className:"adl-foot",children:[t.jsx(Le,{height:22,reversed:!0}),t.jsxs("span",{children:[t.jsx("a",{href:"/privacy",children:"Privacy"})," · ",t.jsx("a",{href:"/terms",children:"Terms"})]})]})}function ze({tone:e="paper",cta:n=!1,kicker:s,title:a,children:i}){return t.jsxs("section",{className:`adl-sec is-${e}${n?" is-cta":""}`,children:[e==="green"&&t.jsx("span",{className:"adl-rings","aria-hidden":"true"}),s&&t.jsx("p",{className:"adl-skick",children:s}),a&&t.jsx("h2",{className:"adl-h2",children:a}),i]})}function is(e,n){const s=encodeURIComponent(n);return e==="museum"?`/add-league?provider=${s}`:`/newsletter/start?provider=${s}`}function Vi(e){const n=Ze(),s=ke();return{submit:async(i,r)=>{const c=r.trim();if(!c||n.isPending)return;const l=is(e,i);if(e==="ledger")try{await f.newsletterSubscribe(c)}catch{}try{const m=await n.mutateAsync({email:c,next:l});e==="museum"?$("homepage_signup_submitted",{provider:i,surface:"reveal-sheet",landingVariant:"reveal"}):($("newsletter_signup_submitted",{placement:"sheet",provider:i,landingVariant:"showcase"}),Ei(),ji()),s(`/login?next=${encodeURIComponent(l)}`,{state:Oe(c,m)})}catch(m){console.error(m)}},request:n}}function Ji({flow:e,request:n,onClose:s,signedInEmail:a=null}){return n?Fs.createPortal(t.jsx(Gi,{flow:e,sheet:n,onClose:s,signedInEmail:a},`${n.source}:${n.card??""}:${n.provider??""}`),document.body):null}function Gi({flow:e,sheet:n,onClose:s,signedInEmail:a}){const{submit:i,request:r}=Vi(e),c=ke(),[l,m]=u.useState(n.provider??null),[p,y]=u.useState(!!n.showMore||(n.provider?fn.includes(n.provider):!1)),[d,h]=u.useState(""),N=u.useRef(null),x=u.useRef(null),j=u.useRef(null),C=u.useRef(s);C.current=s;const O=u.useId(),A=u.useId(),E=u.useId(),b=e,v=T=>{$("ad_landing_sheet_closed",{family:b,reason:T,provider:l,hadEmail:d.trim().length>0}),C.current()},R=u.useRef(v);R.current=v,u.useEffect(()=>{var z,re;$("ad_landing_sheet_opened",{family:b,source:n.source,card:n.card,provider:n.provider??null});const T=N.current,q=document.activeElement instanceof HTMLElement?document.activeElement:null;
6n.provider&&!a?(z=j.current)==null||z.focus():(re=x.current)==null||re.focus();const ce=()=>Array.from((T==null?void 0:T.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex="-1"])'))??[]),de=P=>{if(P.key==="Escape"&&(P.preventDefault(),R.current("escape")),P.key==="Tab"){const G=ce(),V=G[0],he=G[G.length-1];P.shiftKey&&(document.activeElement===V||!(T!=null&&T.contains(document.activeElement)))?(P.preventDefault(),he==null||he.focus()):!P.shiftKey&&(document.activeElement===he||!(T!=null&&T.contains(document.activeElement)))&&(P.preventDefault(),V==null||V.focus())}},ee=P=>{var G;P.target instanceof Node&&!(T!=null&&T.contains(P.target))&&((G=x.current)==null||G.focus())};window.addEventListener("keydown",de),document.addEventListener("focusin",ee);const D=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{window.removeEventListener("keydown",de),document.removeEventListener("focusin",ee),document.body.style.overflow=D,q!=null&&q.isConnected&&q.focus()}},[]);const F=T=>{m(T),r.reset(),$(e==="museum"?"homepage_platform_selected":"newsletter_platform_selected",{provider:T,surface:e==="museum"?"reveal-sheet":"showcase-sheet"}),a||window.requestAnimationFrame(()=>{var q;return(q=j.current)==null?void 0:q.focus()})},ie=async T=>{if(T==null||T.preventDefault(),!!l){if(a){f.newsletterSubscribe(a).catch(()=>{}),$("newsletter_cta",{kind:"signed-in-sheet",provider:l}),c(is(e,l));return}await i(l,d)}},W=l?tt(l).name:null,Y=e==="ledger"?"Get my league's issue":n.cta??`Continue with ${W}`;return t.jsxs("div",{className:"adl-sheet-layer ui-root",children:[t.jsx("div",{className:"adl-dim","aria-hidden":"true",onMouseDown:()=>v("backdrop")}),t.jsxs("div",{ref:N,className:"adl-sheet",role:"dialog","aria-modal":"true","aria-labelledby":O,"aria-describedby":A,children:[t.jsx("span",{className:"adl-grab","aria-hidden":"true"}),t.jsx("button",{ref:x,type:"button",className:"adl-close","aria-label":"Close",onClick:()=>v("close"),children:t.jsx(Ye,{size:20,"aria-hidden":"true"})}),t.jsx("p",{className:"adl-skick",children:n.eyebrow}),t.jsx("h2",{id:O,className:"adl-h2 adl-sheet-title",children:n.title}),t.jsx("p",{id:A,className:"adl-body",children:n.body}),t.jsx(yt,{ids:ss,selected:l,onPick:F}),p?t.jsx(yt,{ids:fn,selected:l,onPick:F}):t.jsxs("p",{className:"adl-more",children:["On MFL or Fleaflicker?"," ",t.jsx("button",{type:"button",onClick:()=>y(!0),children:"Show them"})]}),l==="cbs"&&t.jsxs("p",{className:"adl-note",children:[t.jsx(On,{size:14,"aria-hidden":"true"}),t.jsxs("span",{children:["CBS imports one season at a time through our free, read-only"," ",t.jsx("a",{href:Pt,target:"_blank",rel:"noopener noreferrer",onClick:()=>$("extension_store_clicked",{provider:"cbs",placement:`${e}-landing-sheet`}),children:"Chrome extension"}),"."]})]}),l?t.jsxs("form",{className:"adl-form",onSubmit:ie,children:[!a&&t.jsxs("div",{className:"adl-field",children:[t.jsx("label",{htmlFor:E,children:"Email"}),t.jsx("input",{ref:j,id:E,type:"email",name:"email",inputMode:"email",autoComplete:"email",required:!0,value:d,placeholder:"[email protected]",onChange:T=>h(T.target.value)}),t.jsx(et,{email:d,onFix:h}),t.jsx("small",{children:"We’ll send a one-tap sign-in link. No password."})]}),t.jsxs("button",{type:"submit",className:"adl-cta",disabled:r.isPending,children:[r.isPending?"Sending…":a?"Continue":Y,t.jsx(je,{size:16,"aria-hidden":"true"})]}),r.isError&&t.jsx("p",{className:"adl-error",role:"alert",children:"We couldn’t send the link. Check the address and try again."})]}):t.jsx("p",{className:"adl-hint",children:"Pick your app and we’ll take it from there."}),t.jsx(as,{dark:!0,items:e==="ledger"?["Free for the whole league","Read-only"]:["Free to start","Read-only","No card needed"]}),!a&&t.jsxs("p",{className:"adl-signin-note",children:["Already have a Hall? ",t.jsx(I,{to:"/login",children:"Sign in"})]})]})]})}const rs=[{id:"rank-1",tag:"The Dynasty",name:"Run CMC",titles:3,score:"94.2"},{id:"rank-2",tag:"The Contender",name:"Kelce Grammer",titles:1,score:"88.7"},{id:"rank-3",tag:"The Grinder",name:"Mahomes Alone",titles:1,score:"81.5"}],Wi=[{value:"11",label:"Longest win streak"},{value:"98.2",label:"Biggest blowout"},{value:"0.14",label:"Closest game"}],Qi=[{name:"Gridiron Gang",wins:2.2},{name:"Kelce Grammer",wins:1.1},{name:"Sunday Scaries",wins:.3},{name:"Run CMC",wins:-.6},{name:"Mahomes Alone",wins:-1.4},{name:"Fourth & Long",wins:-2.9}],Yi=3,Zi=[{year:2021,name:"The Goon Squad"},{year:2022,name:"Run CMC"},{year:2023,name:"Kelce Grammer"},{year:2024,name:"Run CMC"},{year:2025,name:"Run CMC"}],Xi=[{q:"Is it free?",a:"Free to start. Champions, standings and your league timeline are free. Records, luck, trade grades and LeagueBot are Elite: free for 7 days, then $29 a year for the whole league."},{q:"Can it change anything in my league?",a:"No. It only reads your league. Nothing gets posted or edited."},{q:"Does the whole league get to see it?",a:"Yes. Share one link and everyone walks into the same Hall."}
6],Ae="We'll pull every season your league has played and rank every manager in about 2 minutes.";function er(e){return e>0?`+${e.toFixed(1)}`:`−${Math.abs(e).toFixed(1)}`}function tr({onRank:e,onYou:n}){return t.jsxs("div",{className:"adl-board",children:[t.jsxs("div",{className:"adl-board-head",children:[t.jsx("span",{children:"All-time rankings"}),t.jsx("span",{children:"Your league"})]}),rs.map((s,a)=>t.jsxs("button",{type:"button",className:`adl-board-row${a===0?" is-top":""}`,"aria-label":`Reveal your league's number ${a+1} manager`,onClick:()=>e(a),children:[t.jsx("span",{className:"adl-board-rank",children:String(a+1).padStart(2,"0")}),t.jsxs("span",{className:"adl-board-who",children:[t.jsx("small",{children:s.tag}),t.jsx("b",{className:"adl-blur",children:s.name})]}),t.jsxs("span",{className:"adl-board-titles","aria-hidden":"true",children:[t.jsx(Me,{size:14}),s.titles]}),t.jsxs("span",{className:"adl-board-score","aria-hidden":"true",children:[t.jsx("b",{className:"adl-blur",children:s.score}),t.jsx("small",{children:"Legacy"})]})]},s.id)),t.jsxs("button",{type:"button",className:"adl-board-row is-you","aria-label":"Reveal where you rank",onClick:n,children:[t.jsx("span",{className:"adl-board-rank",children:"?"}),t.jsxs("span",{className:"adl-board-who",children:[t.jsx("small",{children:"You"}),t.jsx("b",{children:"Where do you rank?"})]}),t.jsxs("span",{className:"adl-reveal-tap",children:[t.jsx(Ks,{size:13,"aria-hidden":"true"}),"Reveal"]})]})]})}function nr(){return t.jsxs("div",{className:"adl-rec",children:[t.jsxs("div",{className:"adl-rec-main",children:[t.jsx("small",{children:"League record · Most points, one week"}),t.jsx("strong",{children:"214.7"}),t.jsx("span",{children:"Mahomes Alone · 2021, Week 7"}),t.jsx("em",{children:"Old record: 198.2, set in 2016"})]}),t.jsx("ul",{className:"adl-rec-list",children:Wi.map(e=>t.jsxs("li",{children:[t.jsx("b",{children:e.value}),t.jsx("span",{children:e.label})]},e.label))})]})}function sr(){return t.jsxs("div",{className:"adl-luck",children:[t.jsxs("div",{className:"adl-luck-head",children:[t.jsx("b",{children:"Luck, in wins"}),t.jsx("small",{children:"2025 season"})]}),t.jsxs("div",{className:"adl-luck-axis","aria-hidden":"true",children:[t.jsx("span",{children:"Robbed"}),t.jsx("span",{children:"Lucky"})]}),t.jsx("ul",{children:Qi.map(e=>t.jsxs("li",{children:[t.jsx("span",{className:"adl-luck-name",children:e.name}),t.jsx("span",{className:"adl-luck-track",children:t.jsx("i",{className:e.wins<0?"is-neg":"is-pos",style:{width:`${Math.abs(e.wins)/Yi*50}%`}})}),t.jsx("b",{className:e.wins<0?"is-neg":"is-pos",children:er(e.wins)})]},e.name))})]})}function ar(){return t.jsxs("div",{className:"adl-shelf",children:[t.jsxs("div",{className:"adl-shelf-head",children:[t.jsx("b",{children:"Champions"}),t.jsx("small",{children:"2021 to 2025"})]}),t.jsx("div",{className:"adl-shelf-row",children:Zi.map(e=>t.jsxs("div",{className:`adl-trophy${e.name==="Run CMC"?" is-leader":""}`,children:[t.jsx(Me,{size:30,strokeWidth:1.6,"aria-hidden":"true"}),t.jsx("b",{children:e.year}),t.jsx("small",{children:e.name})]},e.year))}),t.jsxs("p",{className:"adl-shelf-note",children:[t.jsx(Qe,{size:15,"aria-hidden":"true"}),"Run CMC has 3. Nobody else has more than 1."]})]})}const ir=[{id:"records",name:"The record book",caption:"Every high, low and streak from every season, on one page. See if your name's on it.",art:t.jsx(nr,{})},{id:"luck",name:"The luck audit",caption:"Expected wins against actual wins, for every team in every season. Proof you got robbed, or proof you didn't.",art:t.jsx(sr,{})},{id:"champions",name:"The trophy wall",caption:"Every champion and the record that won it. Count the rings.",art:t.jsx(ar,{})}];function rr(){const[e,n]=u.useState(null),s=l=>{const m=rs[l].id;$("ad_landing_card_tapped",{family:"museum",card:m}),n({source:"reveal-card",card:m,eyebrow:`Your league's all-time #${l+1}`,title:"Connect your league to see who it is.",body:Ae,cta:"Show me the rankings"})},a=()=>{$("ad_landing_card_tapped",{family:"museum",card:"you"}),n({source:"reveal-card",card:"you",eyebrow:"Where do you rank?",title:"Connect your league to see where you rank.",body:Ae,cta:"Show me where I rank"})},i=l=>{const m=`feature-${l.id}`;$("ad_landing_card_tapped",{family:"museum",card:m}),n({source:"feature",card:m,eyebrow:l.name,title:"See it for your league.",body:Ae,cta:`See my league's ${l.name.replace(/^The /,"")}`})},r=(l,m)=>{$("homepage_platform_selected",{provider:l,surface:m}),n({source:m,provider:l,eyebrow:`${tt(l).name} · free to start`,title:"Connect your league.",body:Ae})},c=l=>n({source:l,showMore:!0,eyebrow:"Build your league's Hall",title:"Connect your league.",body:Ae});return t.jsxs("main",{className:"hofPage adl",children:[t.jsx(Bi,{}),t.jsxs("section",{className:"adl-hero","aria-labelledby":"adl-reveal-title",children:[t.jsx("span",{className:"adl-rings","aria-hidden":"true"}),t.jsxs("div",{className:"adl-hero-grid",children:[t.jsxs("div",{className:"adl-hero-copy",children:[t.jsx("p",{className:"adl-kick",children:"All-time rankings for your league"}),t.jsxs("h1",{id:"adl-reveal-title",className:"adl-h1",children:["Prove you’re the best in your league.",t.jsx("span",{children:"Or find out who is."})]}),t.jsx("p",{className:"adl-dek",children:"Every manager, ranked on every season y
6our league has played. Titles, wins, points, even luck."})]}),t.jsx("div",{className:"adl-hero-art",children:t.jsx(tr,{onRank:s,onYou:a})}),t.jsx("div",{className:"adl-hero-start",children:t.jsx(gn,{title:"Connect your league",tag:"Free to start",onPick:l=>r(l,"reveal-hero"),onMore:()=>c("reveal-hero-more")})})]})]}),t.jsx(ze,{tone:"white",kicker:"The receipts",title:t.jsxs(t.Fragment,{children:["Three more ways ",t.jsx("span",{children:"to win the argument."})]}),children:t.jsx("div",{className:"adl-feats",children:ir.map(l=>t.jsxs("article",{className:`adl-feat is-${l.id}`,children:[t.jsxs("div",{className:"adl-feat-text",children:[t.jsx("h3",{children:l.name}),t.jsx("p",{children:l.caption}),t.jsxs("button",{type:"button",onClick:()=>i(l),children:["See yours",t.jsx(je,{size:15,"aria-hidden":"true"})]})]}),t.jsx("div",{className:"adl-feat-art",children:l.art})]},l.id))})}),t.jsx(ze,{tone:"green",kicker:"Already inside",children:t.jsxs("div",{className:"adl-stats",children:[t.jsxs("div",{children:[t.jsx("strong",{children:"11,000+"}),t.jsx("span",{children:"leagues with a Hall"})]}),t.jsxs("div",{children:[t.jsx("strong",{children:"78,000+"}),t.jsx("span",{children:"seasons imported"})]}),t.jsxs("div",{children:[t.jsx("strong",{children:"6 million"}),t.jsx("span",{children:"matchups on record"})]}),t.jsxs("div",{children:[t.jsx("strong",{children:"1993"}),t.jsx("span",{children:"oldest season inside"})]})]})}),t.jsx(ze,{tone:"white",kicker:"Questions",children:t.jsx(Hi,{items:Xi})}),t.jsxs(ze,{tone:"green",cta:!0,kicker:"Your Hall is waiting",title:t.jsxs(t.Fragment,{children:["Find out where you rank. ",t.jsx("span",{children:"It takes about 2 minutes."})]}),children:[t.jsx(gn,{title:"Where does your league live?",tag:"Free to start",onPick:l=>r(l,"reveal-bottom"),onMore:()=>c("reveal-bottom-more")}),t.jsx(as,{items:["Read-only","No card needed"]})]}),t.jsx(Ki,{}),t.jsx(Ji,{flow:"museum",request:e,onClose:()=>n(null)})]})}function or(){if(typeof navigator>"u")return!1;const e=navigator.userAgent;return/iPhone|iPod/.test(e)||/Android.+Mobile/.test(e)}const os={museum:{experiment:"ad-landing-museum-2026-09",treatment:"reveal",percent:50,active:!1},ledger:{experiment:"ad-landing-ledger-2026-09",treatment:"showcase",percent:50,active:!1}},lr=new Set(["museum"]);function cr(e){return e?e.startsWith("ledger")?"ledger":lr.has(e)?"museum":null:null}function dr(e,n){let s=2166136261;const a=`${e}:${n}`;for(let i=0;i<a.length;i++)s^=a.charCodeAt(i),s=Math.imul(s,16777619)>>>0;return s/4294967296}function ur(e){try{const n=new URLSearchParams(e).get("landing");return n==="reveal"||n==="showcase"||n==="standard"?n:null}catch{return null}}function mr(e){const n=os[e.family],s=n.treatment;if(e.preview==="standard"||e.preview===s)return{variant:e.preview,mode:"preview"};if(!(e.active??n.active))return{variant:"standard",mode:"ineligible"};if(!(e.isPhone&&cr(e.freshSlug)===e.family))return{variant:"standard",mode:"ineligible"};const i=e.percent??n.percent;return{variant:dr(n.experiment,e.visitorId)<i/100?s:"standard",mode:"experiment"}}function Nc(){if(typeof document>"u")return null;const e=document.cookie.match(/(?:^|; )hof_tour=([^;]+)/);if(!e)return null;try{const n=decodeURIComponent(e[1]).trim().toLowerCase();return/^[a-z0-9][a-z0-9-]{0,39}$/.test(n)?n:null}catch{return null}}function hr(e){return e.mode==="ineligible"?null:{landingVariant:e.variant,landingMode:e.mode}}function pr(){return Ue()}const fr=u.lazy(()=>k(()=>import("./FirstRunTour-BpD9V4Bb.js"),__vite__mapDeps([75,1,2,3,5,4,76])).then(e=>({default:e.FirstRunTour}))),gr=[{label:"Connect",note:"Choose your platform"},{label:"Select",note:"Pick league seasons"},{label:"Settings",note:"Name your museum"},{label:"Managers",note:"Match owners across years"},{label:"Import",note:"Watch your history arrive"}],yr=[{q:"Will this change anything in my fantasy league?",a:"No. Imports are read-only. Fantasy Hall of Fame cannot change lineups, rosters, settings, waivers, or anything else on your fantasy platform."},{q:"How do ESPN and CBS connect?",a:"Use the free Fantasy Hall of Fame League Importer for Chrome. It imports the ESPN and CBS leagues you pick 
6while you're signed in to them. Your password is never collected, and CBS leagues can stay updated every day."},{q:"Do I need a spreadsheet or old login details for every season?",a:"No spreadsheet. Connect the account that can see the league and choose the seasons we find. The setup flow helps you match the same managers when names or platforms changed."},{q:"What if our league moved to a different platform?",a:"You can add another platform era to the same Hall of Fame, then match owners so one manager keeps one career across Yahoo, ESPN, Sleeper, CBS, MyFantasyLeague, and Fleaflicker seasons."},{q:"Does everyone in the league need to set it up?",a:"No. One person imports the league and can invite the rest afterward. Members enter the same shared museum instead of rebuilding their own copy."},{q:"Do we get draft tools?",a:"Yes. The free Draft Grader regrades every pick your league has ever made, the Cheat Sheet calibrates auction values and rankings to your league's real prices and scoring, and the on-the-clock mock room drafts against your leaguemates' actual habits — not a generic lobby."},{q:"Is it free?",a:"Importing and the core museum are free — no credit card required. The optional Elite trial opens everything for the whole league for 7 days; it takes a card and becomes $29/year after the trial unless you cancel. If it lapses, your league keeps the free view and nothing is deleted."}];function xr(){try{const e=new URLSearchParams(window.location.search),n=Object.fromEntries(["utm_source","utm_medium","utm_campaign","utm_content","utm_term"].map(s=>{var a;return[s,((a=e.get(s))==null?void 0:a.trim().slice(0,200))??""]}).filter(([,s])=>!!s));return Object.keys(n).length>0?n:void 0}catch{return}}function ls(e){const n=document.cookie.match(new RegExp(`(?:^|; )${e}=([^;]+)`));if(!n)return null;try{const s=decodeURIComponent(n[1]).trim().toLowerCase();return/^[a-z0-9][a-z0-9-]{0,39}$/.test(s)?s:null}catch{return null}}const jr=()=>ls("hof_entry"),vr=()=>ls("hof_tour"),yn=new Set(["tour"]);function br(){const e=u.useMemo(jr,[]),n=u.useMemo(vr,[]),s=u.useMemo(or,[]),a=!!(n&&s&&yn.has(n)),i=u.useMemo(()=>mr({family:"museum",freshSlug:n,isPhone:s,visitorId:pr(),preview:ur(window.location.search)}),[n,s]),r=!a&&i.variant==="reveal",c=e!==null;return u.useEffect(()=>{const l=hr(i);$("homepage_viewed",{...xr(),isPhone:s,...e?{adMode:!0,entrySlug:e}:{},...n&&yn.has(n)?{variant:a?"tour":"standard"}:{},...l??{}}),l&&$("ad_landing_exposed",{experiment:os.museum.experiment,family:"museum",slug:n,signedIn:!1,...l});const m=document.title;return document.title="Fantasy Hall of Fame — your league history, finally in one place",()=>{document.title=m}},[]),a?t.jsx(u.Suspense,{fallback:t.jsx(le,{}),children:t.jsx(fr,{})}):r?t.jsx(rr,{}):t.jsxs("main",{className:"hofPage hof-home-v2",children:[t.jsx("header",{className:"hh-topbar",children:t.jsxs("div",{className:"hh-topbar-inner",children:[t.jsx(I,{className:"hh-brand",to:"/","aria-label":"Fantasy Hall of Fame home",children:t.jsx(Le,{height:34,reversed:!0})}),!c&&t.jsxs("div",{className:"hh-nav-actions",children:[t.jsx(I,{className:"hh-signin",to:"/login",children:"Sign in"}),t.jsxs("a",{className:"hh-nav-cta",href:"#start",onClick:()=>$("homepage_cta",{placement:"nav"}),children:["Build your Hall",t.jsx(je,{size:14})]})]})]})}),t.jsx(Ui,{adMode:c}),t.jsxs("section",{className:"hh-story",id:"inside","aria-labelledby":"hh-story-title",children:[t.jsxs("div",{className:"hh-section-head",children:[t.jsxs("div",{children:[t.jsx("p",{className:"hh-section-kicker",children:"One import. The whole mythology."}),t.jsx("h2",{id:"hh-story-title",children:"This is what your league was building all along."})]}),t.jsx("p",{children:"Fantasy apps show this week. Fantasy Hall of Fame connects the years so the people, grudges, breakthroughs, and terrible decisions finally tell one story."})]}),t.jsxs("div",{className:"hh-exhibit-grid",children:[t.jsx(He,{className:"hh-exhibit-hall",eyebrow:"The Hall",title:"Champions get banners. Careers get context.",text:"Walk every season, championship, playoff run, and all-time standing from one museum entrance.",icon:t.jsx(Me,{size:18}),children:t.jsx(wr,{})}),t.jsx(He,{className:"hh-exhibit-rivalry",eyebrow:"Rivalries",title:"Settle what the group chat cannot.",text:"Head-to-head history, streaks, heartbreaks, and the matchup nobody is allowed to call random anymore.",icon:t.jsx(Fn,{size:18}),children:t.jsx(Sr,{})}),t.jsx(He,{className:"hh-exhibit-draft",eyebrow:"Draft intelligence",title:"See how your room actually drafts.",text:"Grade every pick your league has ever made, expose each manager's tendencies, then hit the on-the-clock mock room that drafts like your leaguemates—not a generic lobby.",icon:t.jsx(Vs,{size:18}),action:t.jsxs(t.Fragment,{children:[t.jsxs(I,{to:"/draft-grader",onClick:()=>$("homepage_draft_grader_clicked"),children:["Explore the free Draft Grader ",t.jsx(je,{size:13})]}),t.jsxs("a",{href:"#start",onClick:()=>$("homepage_cta",{placement:"draft-mock"}),children:["Mock-draft your room ",t.jsx(je,{size:13})]})]}),children:t.jsx(Nr,{})}),t.jsx(He,{className:"hh-exhibit-historian",eyebrow:"Ask the Historian",title:"Your league finally knows how to answer back.",text:"Ask plain-language questions about old seasons, managers, players, records, and turning points.",icon:t.jsx(Js,{size:18}),children:t.jsx(kr,{})})]})]}),!c&&t.jsx("section",{className:"hh-process",id:"how-it-works","aria-labelledby":"hh-process-title",children:t.jsxs("div",{className:"hh-process-inner",children:[t.jsxs("div",{className:"hh-process-copy",children:[t.jsx("p",{className:"hh-section-kicker light",children:"A guided first import"}),t.jsx("h2",{id:"hh-process-title",children:"Five short stops. Then the doors open."}),t.jsx("p",{children:"The commissioner flow stays focused and reversible: connect the source, choose what belongs, match the people, and let the import do the heavy lifting."}),t.jsxs("ul",{children:[t.jsxs("li",{children:[t.jsx(We,{size:15})," Nothing is written back to your platform"]}),t.jsxs("li",{children:[t.jsx(Nt,{size:15})," Invite the league after the museum is ready"]}),t.jsxs("li",{children:[t.jsx(St,{size:15})," Polish names and manager matches as data lands"]})]})]}),t.jsxs("div",{className:"hh-rail","aria-label":"Five-step setup preview",children:[t.jsxs("div",{className:"hh-rail-top",children:[t.jsx("span",{children:"League setup"}),t.jsx("b",{children:"About 2 minutes to start"})]}),t.jsx("div",{className:"hh-rail-steps",children:gr.map((l,m)=>t.jsxs("div",{className:"hh-rail-step",children:[t.jsx("span",{className:"hh-rail-number",children:m+1}),t.jsxs("div",{children:[t.jsx("strong",{children:l.label}),t.jsx("small",{children:l.note})]}),m===0?t.jsx("span",{className:"hh-rail-status",children:"Start here"}):t.jsx(Te,{className:"hh-rail-chevron",size:15})]},l.label))})]})]})}),!c&&t.jsxs("section",{className:"hh-eras","aria-labelledby":"hh-eras-title",children:[t.jsxs("div",{className:"hh-eras-copy",children:[t.jsx("p",{className:"hh-section-kicker",children:"Your history survives a platform move"}),t.jsx("h2",{id:"hh-eras-title",children:"Six platforms. One league identity."}),t.jsx("p",{children:"Add each era to the same museum and match owners across seasons. A move from MyFantasyLeague or Fleaflicker to Yahoo, ESPN, Sleeper, or CBS doesn't have to reset the record book, or anyone's bragging rights."}),t.jsxs("a",{href:"#start",className:"hh-text-link",onClick:()=>$("homepage_cta",{placement:"eras"}),children:["Restore your league history ",t.jsx(je,{size:14})]})]}),t.jsx(Er,{})]}),!c&&t.jsxs("section",{className:"hh-final","aria-labelledby":"hh-final-title",children:[t.jsxs("div",{className:"hh-final-crest","aria-hidden":"true",children:[t.jsx(Qe,{size:29}),t.jsx("span",{children:"FH"})]}),t.jsx("p",{className:"hh-section-kicker light",children:"The seasons already happened"}),t.jsx("h2",{id:"hh-final-title",children:"Now give them somewhere to live."}
6),t.jsx("p",{children:"The import is free. Connect one platform, open the doors, and give the whole league 7 days of everything."}),t.jsxs("a",{className:"hh-final-cta",href:"#start",onClick:()=>$("homepage_cta",{placement:"final"}),children:["Build my league's Hall of Fame ",t.jsx(je,{size:15})]}),t.jsx("span",{children:"Free to start · Read-only import · Invite everyone later"})]}),t.jsxs("section",{className:"hh-faq","aria-labelledby":"hh-faq-title",children:[t.jsxs("div",{className:"hh-faq-heading",children:[t.jsx("p",{className:"hh-section-kicker",children:"Before you connect"}),t.jsx("h2",{id:"hh-faq-title",children:"Good questions, answered."})]}),t.jsx("div",{className:"hh-faq-list",children:yr.map(l=>t.jsxs("details",{children:[t.jsx("summary",{children:l.q}),t.jsx("p",{children:l.a})]},l.q))})]}),t.jsxs("footer",{className:"hh-footer",children:[t.jsx(I,{to:"/","aria-label":"Fantasy Hall of Fame home",children:t.jsx(Le,{height:30,reversed:!0})}),t.jsx("p",{children:"Your league. Immortalized."}),t.jsxs("nav",{"aria-label":"Footer navigation",children:[t.jsx(I,{to:"/draft-grader",children:"Draft Grader"}),t.jsx(I,{to:"/newsletter",children:"The League Ledger"}),t.jsx("a",{href:"/guides/",children:"League guides"}),t.jsx("a",{href:Pt,target:"_blank",rel:"noopener noreferrer",onClick:()=>$("extension_store_clicked",{provider:"cbs",placement:"homepage-footer"}),children:"Chrome extension"}),t.jsx(I,{to:"/login",children:"Sign in"}),t.jsx("a",{href:"/privacy",children:"Privacy"}),t.jsx("a",{href:"/terms",children:"Terms"})]})]})]})}function He({className:e,eyebrow:n,title:s,text:a,icon:i,children:r,action:c}){return t.jsxs("article",{className:`hh-exhibit ${e}`,children:[t.jsxs("div",{className:"hh-exhibit-copy",children:[t.jsxs("p",{children:[t.jsx("span",{children:i}),n]}),t.jsx("h3",{children:s}),t.jsx("div",{className:"hh-exhibit-text",children:a}),c&&t.jsx("div",{className:"hh-exhibit-action",children:c})]}),t.jsx("div",{className:"hh-exhibit-art","aria-hidden":"true",children:r})]})}function wr(){return t.jsxs("div",{className:"hh-banner-art",children:[t.jsxs("div",{className:"hh-banner-year",children:[t.jsx("span",{children:"2019"}),t.jsx("b",{children:"MA"}),t.jsx("small",{children:"Champion"})]}),t.jsxs("div",{className:"hh-banner-year featured",children:[t.jsx(Qe,{size:16}),t.jsx("span",{children:"2022"}),t.jsx("b",{children:"RC"}),t.jsx("small",{children:"Champion"})]}),t.jsxs("div",{className:"hh-banner-year",children:[t.jsx("span",{children:"2025"}),t.jsx("b",{children:"KG"}),t.jsx("small",{children:"Champion"})]}),t.jsxs("div",{className:"hh-pedestal",children:[t.jsx(Me,{size:25}),t.jsx("span",{children:"11 seasons"})]})]})}function Sr(){return t.jsxs("div",{className:"hh-rivalry-art",children:[t.jsxs("div",{className:"hh-rivalry-team",children:[t.jsx("span",{children:"RC"}),t.jsx("strong",{children:"Run CMC"}),t.jsx("small",{children:"14 wins"})]}),t.jsxs("div",{className:"hh-rivalry-score",children:[t.jsx("small",{children:"All-time"}),t.jsxs("b",{children:["14",t.jsx("span",{children:"–"}),"13"]}),t.jsx("em",{children:"1 tie"})]}),t.jsxs("div",{className:"hh-rivalry-team right",children:[t.jsx("span",{children:"MA"}),t.jsx("strong",{children:"Mahomes Alone"}),t.jsx("small",{children:"13 wins"})]}),t.jsxs("div",{className:"hh-rivalry-streak",children:[t.jsx("i",{}),t.jsx("span",{children:"Current streak: RC · 3"})]})]})}function Nr(){return t.jsxs("div",{className:"hh-draft-art",children:[t.jsxs("div",{className:"hh-draft-top",children:[t.jsx("span",{children:"League draft DNA"}),t.jsx("b",{children:"Live model"})]}),t.jsxs("div",{className:"hh-draft-manager",children:[t.jsx("span",{children:"01"}),t.jsx("strong",{children:"Run CMC"}),t.jsx("em",{children:"A−"})]}),t.jsxs("div",{className:"hh-draft-manager",children:[t.jsx("span",{children:"02"}),t.jsx("strong",{children:"Mahomes Alone"}),t.jsx("em",{children:"B+"})]}),t.jsxs("div",{className:"hh-draft-manager",children:[t.jsx("span",{children:"03"}),t.jsx("strong",{children:"Kelce Grammer"}),t.jsx("em",{children:"B"})]}),t.jsxs("div",{className:"hh-draft-tags",children:[t.jsx("span",{children:"Best pick · Puka"}),t.jsx("span",{children:"Mock your room →"})]})]})}function kr(){return t.jsxs("div",{className:"hh-historian-art",children:[t.jsxs("div",{className:"hh-historian-book",children:[t.jsx(ot,{size:23}),t.jsx("span",{children:"The Historian"})]}),t.jsx("div",{className:"hh-question",children:"Who owned the most dominant season?"}),t.jsxs("div",{className:"hh-answer",children:[t.jsx(St,{size:13}),t.jsxs("p",{children:[t.jsx("strong",{children:"Mahomes Alone, 2019."})," A 12–1 regular season, then two playoff wins by 31.7 combined points."]})]}),t.jsxs("div",{className:"hh-source-chips",children:[t.jsx("span",{children:"2019 standings"}),t.jsx("span",{children:"2 playoff matchups"})]})]})}function Er(){return t.jsxs("div",{className:"hh-era-art","aria-label":"Example of one league across six platforms",children:[t.jsxs("div",{className:"hh-era-card is-fleaflicker",children:[t.jsx("span",{children:t.jsx("img",{src:"/api/email-assets/provider/fleaflicker",alt:"",loading:"lazy"})}),t.jsxs("div",{children:[t.jsx("small",{children:"Origins"}),t.jsx("strong",{children:"Fleaflicker"}),t.jsx("em",{children:"2006–2008"})]})]}),t.jsx(Te,{size:18}),t.jsxs("div",{className:"hh-era-card is-mfl",children:[t.jsx("span",{children:t.jsx("img",{src:"/api/email-assets/provider/mfl",alt:"",loading:"lazy"})}),t.jsxs("div",{children:[t.jsx("small",{children:"Era two"}),t.jsx("strong",{children:"MFL"}),t.jsx("em",{children:"2009–2013"})]})]}),t.jsx(Te,{size:18}),t.jsxs("div",{className:"hh-era-card is-yahoo",children:[t.jsx("span",{children:t.jsx("img",{src:"/api/email-assets/provider/yahoo",alt:"",loading:"lazy"})}),t.jsxs("div",{children:[t.jsx("small",{children:"Era three"}),t.jsx("strong",{children:"Yahoo"}),t.jsx("em",{children:"2014–2018"})]})]}),t.jsx(Te,{size:18}),t.jsxs("div",{className:"hh-era-card is-espn",children:[t.jsx("span",{children:t.jsx("img",{src:"/api/email-assets/provider/espn",alt:"",loading:"lazy"})}),t.jsxs("div",{children:[t.jsx("small",{children:"Era four"}),t.jsx("strong",{children:"ESPN"}),t.jsx("em",{children:"2019–2022"})]})]}),t.jsx(Te,{size:18}),t.jsxs("div",{className:"hh-era-card is-sleeper",children:[t.jsx("span",{children:t.jsx("img",{src:"/api/email-assets/provider/sleeper",alt:"",loading:"lazy"})}),t.jsxs("div",{children:[t.jsx("small",{children:"Current"}),t.jsx("strong",{children:"Sleeper"}),t.jsx("em",{children:"2023–2025"})]})]}),t.jsx(Te,{size:18}),t.jsxs("div",{className:"hh-era-card is-cbs",children:[t.jsx("span",{children:t.jsx("img",{src:"/api/email-assets/provider/cbs",alt:"",loading:"lazy"})}),t.jsxs("div",{children:[t.jsx("small",{children:"Imported"}),t.jsx("strong",{children:"CBS"}),t.jsx("em",{children:"2026"})]})]}),t.jsxs("div",{className:"hh-era-spine",children:[t.jsx("i",{}),t.jsx("span",{children:"One record book · manager identities matched"}),t.jsx("i",{})]})]})}const Tr="/assets/logo-vector-DrtUe56Z.svg",Cr="data:image/svg+xml,%3csvg%20width='100'%20height='28'%20viewBox='0%200%20100%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_275_6860)'%3e%3cpath%20d='M0%206.75H5.94891L9.41293%2015.6131L12.9221%206.75H18.7152L9.99309%2027.7308H4.16402L6.55233%2022.1711L0%206.75Z'%20fill='%237D2EFF'/%3e%3cpath%20d='M24.7492%206.39746C20.2792%206.39746%2017.4531%2010.4064%2017.4531%2014.3984C17.4531%2018.8902%2020.5513%2022.4522%2024.6639%2022.4522C27.7317%2022.4522%2028.8885%2020.5835%2028.8885%2020.5835V22.0392H34.0775V6.75063H28.8885V8.14075C28.8885%208.14075%2027.5978%206.39746%2024.7484%206.39746H24.7492ZM25.8531%2011.3115C27.9164%2011.3115%2028.9801%2012.9434%2028.9801%2014.4167C28.9801%2016.0028%2027.8403%2017.5586%2025.8531%2017.5586C24.2071%2017.5586%2022.719%2016.2129%2022.719%2014.4844C22.719%2012.7559%2023.9159%2011.3122%2025.8531%2011.3122V11.3115Z'%20fill='%237D2EFF'/%3e%3cpath%20d='M35.8652%2022.0396V0H41.2925V8.19411C41.2925%208.19411%2042.5818%206.40006%2045.2817%206.40006C48.585%206.40006%2050.5186%208.86097%2050.5186%2012.3772V22.0404H45.1308V13.7003C45.1308%2012.5104%2044.5641%2011.3614%2043.2797%2011.3614C41.9953%2011.3614%2041.2918%2012.528%2041.2918%2013.7003V22.0404H35.8659L35.8652%2022.0396Z'%20fill='%237D2EFF'/%3e%3cpath%20d='M54.6585%208.05899C51.6809%2010.3754%2051.6055%2013.9529%2051.6055%2014.4633C51.6055%2019.2089%2055.2965%2022.4544%2059.7925%2022.4544C64.2886%2022.4544%2067.9634%2019.3576%2067.9634%2014.5436C67.9634%209.2764%2063.9714%206.40099%2059.7735%206.40099C59.0157%206.38619%2056.7374%206.44258%2054.6585%208.05969V8.05899ZM59.8214%2011.3574C61.6296%2011.3574%2062.8801%2012.8631%2062.8801%2014.4696C62.8801%2015.8393%2061.7142%2017.5283%2059.8214%2017.5283C58.0866%2017.5283%2056.7846%2016.1361%2056.7846%2014.4541C56.7846%2012.7722%2057.8674%2011.3574%2059.8214%2011.3574Z'%20fill='%237D2EFF'/%3e%3cpath%20d='M71.8902%208.05969C68.9133%2010.3761%2068.8379%2013.9529%2068.8379%2014.4633C68.8379%2019.2089%2072.5289%2022.4544%2077.025%2022.4544C81.521%2022.4544%2085.1965%2019.3576%2085.1965%2014.5436C85.1965%209.2764%2081.2045%206.40099%2077.0059%206.40099C76.2481%206.38619%2073.9698%206.44258%2071.8902%208.0604V8.05969ZM77.0538%2011.3574C78.862%2011.3574%2080.1125%2012.8631%2080.1125%2014.4696C80.1125%2015.8393%2078.9466%2017.5283%2077.0538%2017.5283C75.319%2017.5283%2074.017%2016.1361%2074.017%2014.4541C74.017%2012.7722%2075.1005%2011.3574%2077.0538%2011.3574Z'%20fill='%237D2EFF'/%3e%3cpath%20d='M89.4793%2022.3649C91.4693%2022.3649%2093.0829%2020.7513%2093.0829%2018.7606C93.0829%2016.7698%2091.4693%2015.1562%2089.4793%2015.1562C87.4893%2015.1562%2085.875%2016.7698%2085.875%2018.7606C85.875%2020.7513%2087.4886%2022.3649%2089.4793%2022.3649Z'%20fill='%237D2EFF'/%3e%3cpath%20d='M94.2655%2013.8328H87.7773L93.5359%200H100L94.2655%2013.8328Z'%20fill='%237D2EFF'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_275_6860'%3e%3crect%20width='100'%20height='27.7313'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Lr="/assets/sleeper-DB5bjBGM.png",Rr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAK4AAAAuCAYAAACxvCI2AAAABGdBTUEAALGPC/xhBQAACJFJREFUeAHtnVuoVUUYxz9P2tVEu1qZe87JDKKgKwQlPSaEUVEWJNVD9VRQEEQUUQ8lFEV0eYiil6AoJCgxwqIiqR4iyIKIIM9sTVPz0sXykh77zXKvdcZ11j7b+dbaa4+2BhbzzeWb7z//+dasWbNmnzNFCsIakRf2i9xXUKTKmiJCc5WElSMiCydrqS0ya5/ITdS5EqOXEp/GNYtrGtf/NexhDLbCxxbibyHhI+LlwyK/FxFS9fgX2eiRt8Phpc5qrs+PF3ljtshmX4fyiQHg79PJRRNLBpsD2Fdx3HuKUPwqcupOkacoWwL2Y4vqNHnjDMDldlJLh0WeRR4bLxFh/N+Dw+v8vAHL/2L/Ocb+MbDucViGugBqdckfdLYtAjAqcg1O+yNk38XVOG0RSbk8eJrF9fSoyFvE+aeRyVUfdNLhewisH4P1GAem0HEpNK4wtgCudh4Ts8Mipgv3hDgpX9akezMAb4tHmcn8muS1/HQsMrgWgPVlh4eZ9+BAwUwcwT1GogtTRa6C0S9SYD+LzKUDq+nQzDSviVUM7DlaZORskfUxj7/rGeO9Dz84r2jGNaqu16AEWOuboRNPNk7rM6KWj2YReWNH26hbqUGR8T5qr8idRY7bqsG+xsSeOSK8gx0ILBFOpxO3pOkmLs3Agk4LsY5/1kHG/eIixzVZjbiEdcywrGKycDVS/qUiK2yEYAaYF5JgOnHM0fwJjotnxArc5pi8PJdukuUYYOmYzAymXDP913br3AmOi9koHxWAtT4lPC5G/HQjl2MAPv/stBDl+Pu9A+s/ExwXBzF+pYhkm8NicukmWYIBxn2DU494/P3ebZ/guJTGese1feSHCcE+5Nhl2wFoYgfK2NtkXeMDZT9vvp+ORT5r/FGWQOKt7NxYsB0JOHgz+9v1A17nHQb94UNpExoGGgYaBhoGGgYaBhoGGgYaBhoGGgYaBgbOADsL44HTVl+Tumw8Jw6JPbvHh0WeSNFwTuErNqGvSNO9YjpJ9eDQTWc/BX/T5hbi78D2GQeA3zxD5LduFuD1O8ou7FY+6Hx2kk7mZNg2cH4Dlku64ZmEx6UjIo900+uW38vfJrOX38c13YwMOL/t28dhTvHTvWTqT1FcQ+gUXUdhbwZljJVczyfy5/85cBzwqdHuh9hbvTAOsHyHc1pnH0eZFCd9LuQRvbVK/GYyvcnsZY67UeQEGglyiMmMVlxm/fYgarqfjkCehgM/DNEr14kc5+PhjnO/d5vh50Umjzo8/KBrOvhPVmKzoXol/c1mjru7x90WCqzi+gcRA8FbKm6/kubAtYBzra/4jeHQLT8dm8wk8JPDtKvEp376bUP7VcbfnL3McUmYUON11IfYfQD7xbdFnvXTkcm3tUXO9zAZT45OZNw/cKC44VoacIzFfi66HBbK+Btf99ZmjrsvUselg+shZq9PC+kVfjomGbxDgL3Dw9Ty5KhEeBzjp9/LHShkowS3eTiZsMO0tf4Gzk2syXdmjlsCeBjiwNrgsnkVQL9NXpTLBYcVzBenmFkqmFSOLeYme9HbDdHitJp+lfC3xF7muBiPdWZo54kBqDvWdi+dh/sog39QKVZePxkRedBjT4vTem2EiKXs+Y5rQqzWWNcW2Rpm1sVrl1D2R1H5IPPAlfzRCoehxMzSl
6y6AZxfXM/ws+gZifwlmNAbpq9XooWM0eqm97FgjGaqG6PwYujwR+xNof7Rby+ew8b+BLSjOuN1NvYXUmwcWt6Xn35BF6lTrGVwdmg3/XRtKyRHBjoVWT0sFFWijEl5pxznndjozSryKjw0vzcm97DrzlBsXK0JboVPaXuK4bu+RKcL9ja3gADHX8sj5MFixIoUzD6x1l9KcuyoNa0Uu4G37+9BGcYLk71K4vdG/lH+opE5eufmP5+Y/NbSfrj5fY2yoXhl/S+0lMxO3ZCvUuFc/GLinG7Wo3SKiU8ksVGZvFMdN2qiDICatWse/Cn9LH6lGSxBTdm0EazFq9XAeFS+Qap1NHF+l73R5pNfJa904S9sr67ib3Z6aI/oIDUbZL+v0cHztTLaZJRBHIOoJ2j1V0P2mxGmUPcvsJWtc7V4jA7OBb86qtfGhAOcNZ/c53q4Bx69OhOSDzgIcSjvaOniO6ndtrHHXdGwajW14tRq9EjqqG0yLs4S/Zbykuwoq4AzQRTjXphKETaoKMW9Q4fa0Ei86r2FzcZqOOP6pg03FK7q2zr7Bs4FXTbAaJXRK85IsFRxwJYB+q9mcAZNLR5eEy20j4zezCi9OZGvumAonGFU4S/hbZq/sGhfs/QsFA6i9U/sHMtcymH9Is5C1eG3aRk2xFmdbic8o9TJ7Q6MHDj+frmyor2rpnp0zso61LY4QJU6fBGYT9z8WErxEqvW/32+/7X7IZcaf8bChmKqyN5WF8lyMw3d8gcdBdoeV3Purs3OrnLEyeBmMrN/9Bo7ztbhU488Lkg3FV8bffHtDIDahxuuoD64xttrWerZanhylCOZNHBNc0QFntCA5b2q1ugo9Na9s77RD7cGRCdVJ6/v2onVcZoENdJI9/CyYTIpXeHT2+DkFrUNke5V1dFPrSOhtZR20IxRjVfbcy5kJNV5TfZuzo3WEXDN9S747LPJ62jqPRJPKITEDa0PqV1DXaNpgYrEaPXSMRi9vbwiCo3SI/ABqHUFDUqgOWJeNiNxKDMwsaHm1WQs1CNrxz4/PoUKtyl7MM247R4bWEXLNVJdk8DZy3YHT3kzsL2uEtFFasko9rZpRKlqlXiX2pjqCmYZjDNYHFRHOP8HyKdiWDYu8g8zhqsKgutEYC1vYWp8yS/Da1kCqyp775Hs/066beaMK7GUm20oeqF444aQvwf3lmjHwbMOAZadjDTFZPUMvvIUNcCrsy8KC/mU+wOAHc1cCZ932+sdc03LDQCgD/wGOGt4BT7aSoAAAAABJRU5ErkJggg==",Pr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20223%2024'%20width='223'%20height='24'%3e%3cg%3e%3cpath%20fill='%23163c76'%20d='M24%2011.986c0%203.326-1.171%206.158-3.514%208.501s-5.165%203.514-8.472%203.514c-3.307%200-6.134-1.171-8.486-3.514s-3.528-5.174-3.528-8.501c0-3.307%201.176-6.13%203.528-8.472s5.179-3.514%208.486-3.514c3.302%200%206.13%201.171%208.472%203.514s3.514%205.165%203.514%208.472zM23.275%2012c-0.941-2.074-2.4-3.763-4.368-5.064-2.074-1.402-4.378-2.107-6.912-2.107s-4.848%200.701-6.941%202.107c-1.949%201.301-3.394%202.986-4.334%205.064%200.941%202.074%202.386%203.773%204.334%205.093%202.093%201.382%204.411%202.074%206.941%202.074s4.838-0.691%206.912-2.074c1.973-1.32%203.427-3.019%204.368-5.093zM18.384%2011.986c0%201.757-0.624%203.259-1.867%204.502s-2.746%201.867-4.502%201.867c-1.757%200-3.259-0.624-4.502-1.867s-1.867-2.746-1.867-4.502c0-1.757%200.624-3.25%201.867-4.488%201.243-1.234%202.746-1.853%204.502-1.853s3.259%200.619%204.502%201.853c1.243%201.234%201.867%202.731%201.867%204.488z'%3e%3c/path%3e%3c/g%3e%3cg%20transform='translate(32%200)'%3e%3cpath%20fill='%23163c76'%20d='M12.555%2023.877c6.508%200%209.762-4.556%209.762-4.556l-3.254-3.254c0%200-2.278%203.254-6.508%203.254-4.068%200-7.322-3.254-7.322-7.322s3.254-7.322%207.322-7.322c4.068%200%206.345%203.254%206.345%203.254l3.254-3.254c0%200-3.254-4.556-9.599-4.556-6.996%200-12.365%205.369-12.365%2011.877s5.369%2011.877%2012.365%2011.877z'%3e%3c/path%3e%3cpath%20fill='%23163c76'%20d='M24.924%2023.389h10.25c4.881%200%207.81-2.929%207.81-6.508%200-4.393-4.23-5.532-4.23-5.532s3.091-1.139%203.091-4.718c0-3.254-2.766-6.020-7.322-6.020h-9.599v22.778zM29.805%2019.159v-5.532h5.044c1.952%200%203.091%201.139%203.091%202.766s-1.139%202.766-3.091%202.766h-5.044zM29.805%209.397v-4.556h4.393c1.627%200%202.603%200.976%202.603%202.278s-0.976%202.278-2.603%202.278h-4.393z'%3e%3c/path%3e%3cpath%20fill='%23163c76'%20d='M52.923%2023.877c5.369%200%208.623-3.254%208.623-6.996%200-7.972-11.389-6.183-11.389-10.088%200-1.302%200.976-2.278%203.417-2.278%202.603%200%204.23%201.952%204.23%201.952l3.254-3.254c0%200-2.603-3.091-7.647-3.091-5.206%200-8.298%203.091-8.298%206.671%200%207.972%2011.389%206.183%2011.389%2010.088%200%201.464-1.139%202.603-3.742%202.603-3.417%200-5.369-2.441-5.369-2.441l-3.254%203.254c0%200%202.929%203.579%208.786%203.579z'%3e%3c/path%3e%3cpath%20fill='%23163c76'%20d='M76.838%2023.877c5.369%200%208.623-3.254%208.623-6.996%200-7.972-11.389-6.183-11.389-10.088%200-1.302%200.976-2.278%203.417-2.278%202.603%200%204.23%201.952%204.23%201.952l3.254-3.254c0%200-2.603-3.091-7.647-3.091-5.207%200-8.298%203.091-8.298%206.671%200%207.972%2011.389%206.183%2011.389%2010.088%200%201.464-1.139%202.603-3.742%202.603-3.417%200-5.369-2.441-5.369-2.441l-3.254%203.254c0%200%202.929%203.579%208.786%203.579z'%3e%3c/path%3e%3cpath%20fill='%23163c76'%20d='M88.388%2023.389h4.881v-7.484h4.718c4.881%200%208.135-3.254%208.135-7.647s-3.254-7.647-8.135-7.647h-9.599v22.778zM93.27%2011.349v-6.183h4.556c1.952%200%203.254%201.302%203.254%203.091s-1.302%203.091-3.254%203.091h-4.556z'%3e%3c/path%3e%3cpath%20fill='%23163c76'%20d='M120.431%2023.877c6.996%200%2012.365-5.369%2012.365-11.877s-5.369-11.877-12.365-11.877c-6.996%200-12.365%205.369-12.365%2011.877s5.369%2011.877%2012.365%2011.877zM120.431%2019.322c-4.068%200-7.322-3.254-7.322-7.322s3.254-7.322%207.322-7.322c4.068%200%207.322%203.254%207.322%207.322s-3.254%207.322-7.322%207.322z'%3e%3c/path%3e%3cpath%20fill='%23163c76'%20d='M136.2%2023.389h4.881v-7.484h4.556l4.068%207.484h5.369l-4.718-8.461c0%200%203.905-1.464%203.905-6.671%200-4.556-3.091-7.647-7.972-7.647h-10.088v22.778zM141.081%2011.349v-6.183h5.044c1.79%200%203.091%201.302%203.091%203.091s-1.302%203.091-3.091%203.091h-5.044z'%3e%3c/path%3e%3cpath%20fill='%23163c76'%20d='M161.762%2023.389h4.881v-18.223h6.508v-4.556
6h-17.897v4.556h6.508v18.223z'%3e%3c/path%3e%3cpath%20fill='%23163c76'%20d='M182.258%2023.877c5.369%200%208.623-3.254%208.623-6.996%200-7.972-11.389-6.183-11.389-10.088%200-1.302%200.976-2.278%203.417-2.278%202.603%200%204.23%201.952%204.23%201.952l3.254-3.254c0%200-2.603-3.091-7.647-3.091-5.207%200-8.298%203.091-8.298%206.671%200%207.972%2011.389%206.183%2011.389%2010.088%200%201.464-1.139%202.603-3.742%202.603-3.417%200-5.369-2.441-5.369-2.441l-3.254%203.254c0%200%202.929%203.579%208.786%203.579z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",_r=Tr,kc={yahoo:Cr,sleeper:Lr,espn:Rr,cbs:Pr,mfl:"/providers/mfl.png",fleaflicker:"/providers/fleaflicker.svg"},Ar=4e3,$r=30;function xn(e,n){return e==="delivered"||e==="bounced"?!1:n<$r?Ar:!1}function cs(e){var s;const n=L({queryKey:["auth","link-status",e],queryFn:()=>f.signInDeliveryState(e),enabled:!!e,staleTime:0,retry:!1,refetchInterval:a=>{var i;return xn((i=a.state.data)==null?void 0:i.state,a.state.dataUpdateCount+a.state.errorUpdateCount)},refetchOnWindowFocus:a=>{var i;return xn((i=a.state.data)==null?void 0:i.state,a.state.dataUpdateCount+a.state.errorUpdateCount)!==!1}});return e?((s=n.data)==null?void 0:s.state)??"pending":"pending"}const jn=new Set;function Ir({league:e,userId:n,trialEligible:s}){const a=`hof:mobile-elite-dismissed:${n}:${e.id}`,[i,r]=u.useState(()=>{if(jn.has(a))return!0;try{return sessionStorage.getItem(a)==="1"}catch{return!1}}),c=e.plan==="free"&&!i;if(u.useLayoutEffect(()=>{if(!c)return;const m=document.documentElement;return m.style.setProperty("--hof-mobile-elite-height","calc(64px + env(safe-area-inset-top))"),()=>{m.style.removeProperty("--hof-mobile-elite-height")}},[c]),!c)return null;const l=()=>{jn.add(a),r(!0);try{sessionStorage.setItem(a,"1")}catch{}};return t.jsx("div",{className:"hof-mobile-elite-slot",children:t.jsxs("aside",{className:"hof-mobile-elite-banner","aria-label":s?"Try Elite free":"Upgrade to Elite",children:[t.jsxs(I,{to:`/upgrade/${e.id}?from=mobile-banner`,className:"hof-mobile-elite-link",children:[t.jsxs("span",{className:"hof-mobile-elite-copy",children:[t.jsx("strong",{children:s?"7 days free with Elite.":"Unlock Elite."}),t.jsx("span",{children:"Your league. All access."})]}),t.jsxs("span",{className:"hof-mobile-elite-cta",children:[s?"Start trial":"Go Elite",t.jsx(je,{size:14,"aria-hidden":"true"})]})]}),t.jsx("button",{type:"button","aria-label":"Dismiss Elite banner",onClick:l,children:t.jsx(Ye,{size:17,"aria-hidden":"true"})})]})})}function Ec(){return L({queryKey:["admin","overview"],queryFn:()=>f.adminOverview(),staleTime:60*1e3})}function Tc(){return L({queryKey:["admin","ingestion"],queryFn:()=>f.adminIngestion(),refetchInterval:3e4})}function Cc(e){return L({queryKey:["admin","ingestion","league",e],queryFn:()=>f.adminIngestionLeague(e),enabled:!!e,refetchInterval:3e4})}function Lc(){return L({queryKey:["admin","ingestion-backlog"],queryFn:()=>f.adminIngestionBacklog(),staleTime:60*1e3})}function Rc(){return L({queryKey:["admin","revenue"],queryFn:()=>f.adminRevenue(),staleTime:60*1e3})}function Pc(){const e=_();return S({mutationFn:n=>f.adminUpdateRevenueDailySpend(n.date,n.adSpend),onSuccess:n=>{e.setQueryData(["admin","revenue"],s=>s&&{...s,acquisition:{...s.acquisition,days:s.acquisition.days.map(a=>a.date===n.date?(()=>{const i=r=>r>0?Math.round(n.adSpend/r*100)/100:null;return{...a,adSpend:n.adSpend,hasManualSpend:!0,spendUpdatedAt:n.updatedAt,costPerRegistration:i(a.registrations),costPerLeague:i(a.leaguesCreated),costPerTrial:i(a.trialsStarted),costPerPurchase:i(a.purchases),roas:n.adSpend>0?a.estimatedRevenue/n.adSpend:null,roi:n.adSpend>0?(a.estimatedRevenue-n.adSpend)/n.adSpend:null}})():a)}}),e.invalidateQueries({queryKey:["admin","revenue"]})}})}function _c(e){return L({queryKey:["admin","funnel",e],queryFn:()=>f.adminFunnel(e),staleTime:60*1e3})}function Ac(){return L({queryKey:["admin","historian-feedback"],queryFn:()=>f.adminHistorianFeedback(),staleTime:60*1e3})}function $c(){return L({queryKey:["admin","ai-spend"],queryFn:()=>f.adminAiSpend(),staleTime:3e4})}function Ic(e){return L({queryKey:["admin","historian-conversations",e.q??"",e.status??"all",e.feedback??"all",e.offset??0],queryFn:()=>f.adminHistorianConversations(e),placeholderData:n=>n,staleTime:30*1e3})}function Oc(e){return L({queryKey:["admin","users",e.q??"",e.lifecycle??"all",e.offset??0],queryFn:()=>f.adminUsers(e),placeholderData:n=>n})}function Fc(e){return L({queryKey:["admin","magic-links",e.q??"",e.offset??0],queryFn:()=>f.adminMagicLinks(e),placeholderData:n=>n})}function Dc(){return L({queryKey:["admin","lifecycle"],queryFn:()=>f.adminLifecycle(),staleTime:30*1e3})}function Mc(e){return L({queryKey:["admin","lifecycle","candidates",e],queryFn:()=>f.adminLifecycleCandidates(e),enabled:!!e,staleTime:15*1e3})}function Uc(e){return L({queryKey:["admin","user",e],queryFn:()=>f.adminUser(e),enabled:!!e})}function qc(e){const{enabled:n,...s}=e;return L({queryKey:["admin","leagues",s.q??"",s.plan??"all",s.offset??0],queryFn:()=>f.adminLeagues(s),placeholderData:a=>a,enabled:n??!0})}function zc(){return L({queryKey:["admin","scoring"],queryFn:()=>f.adminScoring(),staleTime:60*1e3})}function Hc(e,n=!0){return L({queryKey:["admin","league",e,"cbs-readiness"],queryFn:()=>f.adminLeagueCbsReadiness(e),enabled:!!e&&n,staleTime:60*1e3})}function Bc(e){return L({queryKey:["admin","league",e],queryFn:()=>f.adminLeague(e),enabled:!!e})}function K(){const e=_();return()=>e.invalidateQueries({queryKey:["admin"]})}function Kc(){const e=K();return S({mutationFn:n=>f.adminUpdateLifecycleSettings(n),onSuccess:e})}function Vc(){const e=K();return S({mutationFn:n=>{const{key:s,...a}=n;return f.adminUpdateLifecycleCampaign(s,a)},onSuccess:e})}
6function Jc(){const e=K();return S({mutationFn:n=>f.adminRunLifecycle(n),onSuccess:e})}function Gc(){const e=K();return S({mutationFn:n=>f.adminRetryLifecycleDelivery(n),onSuccess:e})}function Wc(){const e=K();return S({mutationFn:n=>f.adminRemoveLifecycleSuppression(n),onSuccess:e})}function Qc(){const e=K();return S({mutationFn:n=>f.adminSendLifecycleTest(n),onSuccess:e})}function Yc(){const e=K();return S({mutationFn:n=>f.adminGenerateLifecycleAnecdote(n),onSuccess:e})}function Zc(){const e=K();return S({mutationFn:n=>f.adminReviewLifecycleAnecdote(n),onSuccess:e})}function Xc(e){const n=K();return S({mutationFn:s=>f.adminUpdateUser(e,s),onSuccess:n})}function ed(){const e=K();return S({mutationFn:n=>f.adminSetUserEmailed(n.id,n.emailed),onSuccess:e})}function td(e){const n=K();return S({mutationFn:()=>f.adminRevokeSessions(e),onSuccess:n})}function nd(e){return S({mutationFn:()=>f.adminLoginLink(e)})}function sd(){const e=_();return S({mutationFn:n=>f.adminImpersonate(n),onSuccess:()=>e.clear()})}function Or(){const e=_();return S({mutationFn:()=>f.stopImpersonating(),onSuccess:()=>e.clear()})}function ad(){const e=K();return S({mutationFn:n=>f.adminDeleteUser(n),onSuccess:e})}function id(e){const n=_(),s=K();return S({mutationFn:()=>f.adminDeleteLeague(e),onSuccess:()=>(n.removeQueries({queryKey:["admin","league",e]}),s())})}function rd(e){const n=K();return S({mutationFn:s=>f.adminSetLeaguePlan(e,s),onSuccess:n})}function od(e){const n=K();return S({mutationFn:s=>f.adminSubscriptionAction(e,s),onSuccess:n})}function ld(){return L({queryKey:["admin","newsletter"],queryFn:()=>f.adminNewsletter(),staleTime:30*1e3})}function cd(){return L({queryKey:["admin","newsletter","delivery"],queryFn:()=>f.adminNewsletterDelivery(),refetchInterval:3e4})}function dd(){const e=K();return S({mutationFn:n=>f.adminUpdateNewsletterSettings(n),onSuccess:e})}function ud(){const e=K();return S({mutationFn:n=>f.adminRunNewsletterSweep(n),onSuccess:e})}function md(){const e=K();return S({mutationFn:n=>f.adminNewsletterBackfill(n),onSuccess:n=>{n.dryRun||e()}})}function hd(){const e=K();return S({mutationFn:n=>f.adminPregenerateNewsletterPreviews(n),onSuccess:e})}function pd(){return S({mutationFn:e=>f.adminSendNewsletterProof(e)})}function fd(){const e=K();return S({mutationFn:n=>f.adminCreateNewsletterBlock(n),onSuccess:e})}function gd(){const e=K();return S({mutationFn:n=>f.adminUpdateNewsletterBlock(n.id,n.input),onSuccess:e})}function yd(){const e=K();return S({mutationFn:n=>f.adminDeleteNewsletterBlock(n),onSuccess:e})}function xd(){const e=K();return S({mutationFn:n=>f.adminCreateNewsletterCampaign(n),onSuccess:e})}function jd(){const e=K();return S({mutationFn:n=>f.adminUpdateNewsletterCampaign(n.id,n.input),onSuccess:e})}function vd(){const e=K();return S({mutationFn:n=>f.adminApproveNewsletterCampaign(n),onSuccess:e})}function bd(){const e=K();return S({mutationFn:n=>f.adminRevertNewsletterCampaign(n),onSuccess:e})}function wd(){const e=K();return S({mutationFn:n=>f.adminTestNewsletterCampaign(n.id,n.leagueId),onSuccess:e})}function Sd(e=30){return L({queryKey:["admin","ad-landing-experiment",e],queryFn:()=>f.adminAdLandingExperiment(e),staleTime:3e4})}function Nd(e=30){return L({queryKey:["admin","espn-mobile-experiment",e],queryFn:()=>f.adminEspnExperiment(e),staleTime:3e4})}const Fr=300*1e3,nt=e=>["leagues",e,"museum-home"];function Dr(e,n=!0){const s=_();return L({queryKey:nt(e),queryFn:async()=>{const a=await f.getMuseumHome(e);return s.setQueryData(["leagues",e],a.detail),s.setQueryData(["leagues",e,"stats","all-time"],a.stats),s.setQueryData(["leagues",e,"champions"],a.champions),s.setQueryData(["leagues",e,"ingestion"],a.ingestion),a},enabled:!!e&&n,staleTime:Fr})}function Mr(e=!0){return L({queryKey:["leagues"],queryFn:()=>f.listLeagues(),enabled:e})}function ds(e){return L({queryKey:["leagues",e],queryFn:()=>f.getLeague(e),enabled:!!e,staleTime:300*1e3})}function kd(e){var a,i,r,c,l,m,p,y,d,h,N,x,j,C;const n=ds(e),s=(a=n.data)==null?void 0:a.plan;return{plan:s,isElite:s==="elite",isFree:s==="free",isLoading:n.isLoading,planMeta:(i=n.data)==null?void 0:i.planMeta,trialEligible:((c=(r=n.data)==null?void 0:r.planMeta)==null?void 0:c.trialEligible)===!0,priceUsd:((m=(l=n.data)==null?void 0:l.planMeta)==null?void 0:m.annualPriceUsd)??ts,extraLeague:((y=(p=n.data)==null?void 0:p.planMeta)==null?void 0:y.extraLeague)??null,trialEndsAt:((h=(d=n.data)==null?void 0:d.planMeta)==null?void 0:h.trialEndsAt)??null,leagueName:(N=n.data)==null?void 0:N.league.name,seasonCount:((x=n.data)==null?void 0:x.seasons.length)??0,managerCount:(j=n.data)==null?void 0:j.owners.filter(O=>!O.hidden&&!/^[-\s]*hidden[-\s]*$/i.test(O.name)).length,accessRole:(C=n.data)==null?void 0:C.accessRole}}function vn(){if(!(typeof window>"u"))return localStorage.getItem("hof:leagueId")??void 0}function _t(e=!0){var y;const n=we(),s=n.leagueId??n.id,a=Mr(e),i=((y=a.data)==null?void 0:y.leagues)??[],[r,c]=u.useState(vn);u.useEffect(()=>{const d=()=>c(vn());return window.addEventListener("storage",d),window.addEventListener("hof:leagueId",d),()=>{window.removeEventListener("storage",d),window.removeEventListener("hof:leagueId",d)}},[]);const l=u.useCallback(d=>{localStorage.setItem("hof:leagueId",d),c(d),window.dispatchEvent(new Event("hof:leagueId"))},[]);u.useEffect(()=>{if(s)try{localStorage.setItem("hof:leagueId",s),c(s)}catch{}},[s]);const m=s??r,p=i.find(d=>
6d.id===m)??(s?void 0:i[0]);return{active:p,leagueId:s??(p==null?void 0:p.id),list:i,leagues:a,isLoading:a.isLoading,setActiveLeagueId:l}}function Ed(){const e=_();return S({mutationFn:n=>f.createLeague(n),onSuccess:()=>{e.invalidateQueries({queryKey:["leagues"]})}})}function Td(e){const n=_();return S({mutationFn:s=>f.updateLeague(e,s),onSuccess:()=>{n.invalidateQueries({queryKey:["leagues"]}),n.invalidateQueries({queryKey:["leagues",e]}),n.invalidateQueries({queryKey:nt(e)}),n.invalidateQueries({queryKey:["stats",e]}),n.invalidateQueries({queryKey:["leagues",e,"records"]})}})}function Cd(e){const n=_();return S({mutationFn:s=>f.addLeagueSeasons(e,s.seasons,s.replace),onSuccess:()=>{n.invalidateQueries({queryKey:["leagues"]}),n.invalidateQueries({queryKey:["leagues",e]}),n.invalidateQueries({queryKey:["leagues",e,"ingestion"]})}})}function Ld(){const e=_();return S({mutationFn:n=>f.deleteLeague(n),onSuccess:()=>{e.invalidateQueries({queryKey:["leagues"]})}})}function Rd(e){const n=_();return S({mutationFn:s=>f.deleteLeagueSeason(e,s),onSuccess:()=>{n.invalidateQueries({queryKey:["leagues"]}),n.invalidateQueries({queryKey:["leagues",e]}),n.invalidateQueries({queryKey:["stats",e]})}})}function Pd(e){const n=_();return S({mutationFn:s=>f.transferLeagueOwnership(e,s),onSuccess:()=>{n.invalidateQueries({queryKey:["leagues"]}),n.invalidateQueries({queryKey:["leagues",e]}),n.invalidateQueries({queryKey:["leagues",e,"members"]})}})}function _d(e){return L({queryKey:["leagues",e,"members"],queryFn:()=>f.listLeagueMembers(e),enabled:!!e})}function Ad(e){const n=_();return S({mutationFn:s=>f.inviteLeagueMember(e,s),onSuccess:()=>{n.invalidateQueries({queryKey:["leagues",e,"members"]}),n.invalidateQueries({queryKey:["leagues",e]})}})}function $d(e){const n=_();return S({mutationFn:s=>f.updateLeagueMember(e,s.memberId,{role:s.role,ownerId:s.ownerId}),onSuccess:()=>{n.invalidateQueries({queryKey:["leagues",e,"members"]}),n.invalidateQueries({queryKey:["leagues",e]})}})}function Id(e){const n=_();return S({mutationFn:s=>f.deleteLeagueMember(e,s),onSuccess:()=>{n.invalidateQueries({queryKey:["leagues",e,"members"]}),n.invalidateQueries({queryKey:["leagues",e]})}})}function Od(e){return S({mutationFn:n=>f.resendLeagueInvite(e,n)})}function Ur(e,n=!0){return L({queryKey:["leagues",e,"invite-link"],queryFn:()=>f.getInviteLink(e),enabled:!!e&&n})}function Fd(e){const n=_();return S({mutationFn:()=>f.rotateInviteLink(e),onSuccess:s=>{n.setQueryData(["leagues",e,"invite-link"],s)}})}function qr(){const e=_();return S({mutationFn:n=>f.joinLeague(n),onSuccess:n=>{n.status==="ready"&&e.invalidateQueries({queryKey:["leagues"]})}})}function zr(e){return L({queryKey:["join-preview",e],queryFn:()=>f.joinLeaguePreview(e),enabled:!!e,retry:!1})}function Dd(e){return L({queryKey:["league-link-preview",e],queryFn:()=>f.leagueLinkPreview(e),enabled:!!e,retry:!1,staleTime:5*6e4})}function Md(e,n){return L({queryKey:["league-join-teams",e],queryFn:()=>f.leagueJoinTeams(e),enabled:!!e&&n,retry:!1})}function Ud(e){const n=_();return S({mutationFn:s=>f.claimOwner(e,s.ownerId,s.inviteAttribution),onSuccess:()=>n.invalidateQueries({queryKey:["leagues",e]})})}function qd(e){const n=_();return S({mutationFn:s=>f.unclaimOwner(e,s),onSuccess:()=>{n.invalidateQueries({queryKey:["leagues",e]})}})}function zd(e){const n=_();return S({mutationFn:()=>f.autoClaimSuggested(e),onSuccess:s=>{if(!(!s.ok||!("applied"in s)||!s.applied))return n.invalidateQueries({queryKey:["leagues",e]})}})}function Hd(e){return L({queryKey:["leagues",e,"timeline-milestones"],queryFn:()=>f.getTimelineMilestones(e),enabled:!!e,staleTime:60*1e3})}function Bd(e){const n=_();return S({mutationFn:s=>f.addTimelineMilestone(e,s),onSuccess:()=>{n.invalidateQueries({queryKey:["leagues",e,"timeline-milestones"]}),n.invalidateQueries({queryKey:["leagues",e,"timeline"]}),n.invalidateQueries({queryKey:nt(e)})}})}function Kd(e){const n=_();return S({mutationFn:s=>f.deleteTimelineMilestone(e,s),onSuccess:()=>{n.invalidateQueries({queryKey:["leagues",e,"timeline-milestones"]}),n.invalidateQueries({queryKey:["leagues",e,"timeline"]}),n.invalidateQueries({queryKey:nt(e)})}})}const ne=e=>["leagues",e];function Vd(e){const n=_();return S({mutationFn:s=>f.createOwner(e,s),onSuccess:async({owner:s})=>{await n.cancelQueries({queryKey:ne(e)}),n.setQueryData(ne(e),a=>{if(!a||a.owners.some(r=>r.id===s.id))return a;
6const i={...s,identities:s.identities??[],claimedByEmail:s.claimedByEmail??null,isClaimed:s.isClaimed??!1,managerUserIds:s.managerUserIds??[],managerEmails:s.managerEmails??[]};return{...a,owners:[...a.owners,i]}})},onSettled:()=>n.invalidateQueries({queryKey:ne(e)})})}function Jd(e){const n=_();return S({mutationFn:s=>f.updateOwner(e,s.ownerId,{name:s.name,note:s.note,hidden:s.hidden}),onMutate:async s=>{await n.cancelQueries({queryKey:ne(e)});const a=n.getQueryData(ne(e));return a?(n.setQueryData(ne(e),{...a,owners:a.owners.map(i=>i.id===s.ownerId?{...i,name:s.name??i.name,note:s.note??i.note,hidden:s.hidden??i.hidden}:i)}),{previous:a}):{previous:a}},onError:(s,a,i)=>{i!=null&&i.previous&&n.setQueryData(ne(e),i.previous)},onSettled:()=>{n.invalidateQueries({queryKey:ne(e)})}})}function Gd(e,n){return L({queryKey:["leagues",e,"name-logo-suggestions"],queryFn:()=>f.nameLogoSuggestions(e),enabled:!!e&&n,staleTime:300*1e3})}function Wd(e){const n=_();return S({mutationFn:s=>f.applyNameLogoDecisions(e,s),onSettled:s=>{n.invalidateQueries({queryKey:["leagues",e,"name-logo-suggestions"]}),s!=null&&s.results.some(a=>a.status==="applied")&&(n.invalidateQueries({queryKey:["leagues",e]}),n.invalidateQueries({queryKey:["leagues",e,"stats"]}))}})}function Qd(e,n){return L({queryKey:["leagues",e,"franchise-runs"],queryFn:()=>f.franchiseRuns(e),enabled:!!e&&n,staleTime:300*1e3})}function Yd(e){const n=_();return S({mutationFn:async s=>{try{return await f.applyFranchiseRuns(e,s)}catch(a){const i=wa(a);if(i)return i;throw a}},onSettled:s=>{n.invalidateQueries({queryKey:["leagues",e,"franchise-runs"]}),(s==null?void 0:s.status)==="applied"&&(n.invalidateQueries({queryKey:["leagues",e]}),n.invalidateQueries({queryKey:["leagues",e,"stats"]}))}})}function Zd(e){const n=_();return S({mutationFn:s=>f.mergeOwners(e,s.targetOwnerId,s.sourceOwnerId),onSuccess:()=>{n.invalidateQueries({queryKey:["leagues",e]}),n.invalidateQueries({queryKey:["leagues",e,"stats"]})}})}function Xd(e){const n=_();return S({mutationFn:s=>f.deleteOwner(e,s),onMutate:async s=>{await n.cancelQueries({queryKey:ne(e)});const a=n.getQueryData(ne(e));return a?(n.setQueryData(ne(e),{...a,owners:a.owners.filter(i=>i.id!==s),seasonTeams:a.seasonTeams.map(i=>i.ownerId===s?{...i,ownerId:null}:i)}),{previous:a}):{previous:a}},onError:(s,a,i)=>{i!=null&&i.previous&&n.setQueryData(ne(e),i.previous)},onSettled:()=>{n.invalidateQueries({queryKey:ne(e)})}})}function eu(e){const n=_();return S({mutationFn:s=>f.setTeamOwner(e,s.teamId,s.ownerId),onMutate:async s=>{await n.cancelQueries({queryKey:ne(e)});const a=n.getQueryData(ne(e));return a?(n.setQueryData(ne(e),{...a,seasonTeams:a.seasonTeams.map(i=>i.id===s.teamId?{...i,ownerId:s.ownerId}:i)}),{previous:a}):{previous:a}},onError:(s,a,i)=>{i!=null&&i.previous&&n.setQueryData(ne(e),i.previous)},onSettled:()=>{n.invalidateQueries({queryKey:ne(e)}),n.invalidateQueries({queryKey:["leagues",e,"stats"]})}})}const Hr=new Set(["general","seasons","teams","members","danger"]);function U(e){return encodeURIComponent(e)}function be(e){return e?`/museum/${U(e)}`:"/museum"}function tu(e,n){const s=`/reveal/${U(e)}`;return n?`${s}?source=${n}`:s}function us(e){return e?`/standings/${U(e)}`:"/standings"}function st(e){return e?`/hall-of-fame/${U(e)}`:"/hall-of-fame"}function xt(e){return e?`/records/${U(e)}`:"/records"}function Br(e){return e?`/draft-intelligence/${U(e)}`:"/draft-intelligence"}function at(e){return e?`/draft-history/${U(e)}`:"/draft-history"}function ms(e){return e?`/transactions/${U(e)}`:"/transactions"}function At(e){return e?`/props/${U(e)}`:"/props"}function $t(e){return e?`/trade-court/${U(e)}`:"/trade-court"}function hs(e){return e?`/power-rankings/${U(e)}`:"/power-rankings"}function ps(e){return e?`/matchups/${U(e)}`:"/matchups"}function fs(e){return e?`/draft-grade/${U(e)}`:"/draft-grade"}function gs(e){return e?`/cheat-sheet/${U(e)}`:"/cheat-sheet"}function ys(e){return e?`/rivalry/${U(e)}`:"/rivalry"}function Kr(e){return e?`/historian/${U(e)}`:"/historian"}function xs(e){return e?`/timeline/${U(e)}`:"/timeline"}function js(e,n){const s=`/newsletter/${U(e)}`;return n?`${s}/${U(n)}`:s}function vs(e){return e?`/league/${U(e)}`:"/museum"}function nu(e,n){return n?`/recap/${U(n)}/${U(e)}`:st()}function Vr(e,n){const s=U(e);return n?`/managers/${s}/${U(n)}`:`/managers/${s}`}function Jr(e,n){const s=U(e);return n?`/players/${s}/${U(n)}`:`/players/${s}`}function Re(e="seasons",n){return n?`/settings/${e}/${U(n)}`:"/settings"}
6function Gr(e,n){const s=e.split("/").filter(Boolean),a=U(n),i=s[0];if(i==="museum"||i==="standings"||i==="hall-of-fame"||i==="records"||i==="rivalry"||i==="transactions"||i==="draft-intelligence"||i==="draft-history"||i==="draft-grade"||i==="cheat-sheet"||i==="historian"||i==="timeline"||i==="props"||i==="trade-court"||i==="power-rankings"||i==="matchups")return`/${i}/${a}`;if(i==="newsletter"&&s[1])return js(n);if(i==="managers"&&s[1])return`/managers/${s[1]}/${a}`;if(i==="recap")return st(n);if(i==="players"&&s[1])return`/players/${s[1]}/${a}`;if(i==="settings"){const r=Hr.has(s[1])?s[1]:"seasons";return Re(r,n)}return i==="league"||i==="leagues"?vs(n):be(n)}function Wr(e=new Date){const n=e.getMonth(),s=e.getDate();return n===6&&s>=15||n===7||n===8&&s<=10?"draft":n>=8&&n<=11||n===0&&s<=15?"season":"offseason"}const bn="ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz23456789";function Qr(){const e=crypto.getRandomValues(new Uint8Array(8));return Array.from(e,n=>bn[n%bn.length]).join("")}function Yr(e){let n;try{n=new URL(e,window.location.origin)}catch{return null}const s=a=>a.replace(/^www\./,"");return s(n.host)!==s(window.location.host)?null:`${n.pathname}${n.search}${n.hash}`}const Zr=e=>new Promise(n=>setTimeout(n,e));async function Xr(e,n,s){for(let a=0;a<4;a+=1)try{await f.registerShareLink(e,n,s);return}catch(i){const r=i instanceof ue?i.status:null;if(r===400||r===403||r===404||r===409||a===3){$("short_link_register_failed",{leagueId:e,status:r});return}await Zr(1e3*2**a)}}function eo(e,n){const s=Yr(n);if(!s||s==="/")return n;const a=Qr();return Xr(e,a,s),`${window.location.origin}/i/${a}`}const su="activation-v2",jt="invite-v2",wn="trial-v1",Sn=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,Nn=/^[a-z0-9][a-z0-9-]{0,63}$/,Ce={shareId:"share_id",leagueId:"share_league",shareSurface:"share_surface",shareMethod:"share_method",journeyVersion:"journey_version"};function bs(){if(typeof crypto.randomUUID=="function")return crypto.randomUUID();const e=crypto.getRandomValues(new Uint8Array(16));e[6]=e[6]&15|64,e[8]=e[8]&63|128;const n=Array.from(e,s=>s.toString(16).padStart(2,"0"));return[n.slice(0,4).join(""),n.slice(4,6).join(""),n.slice(6,8).join(""),n.slice(8,10).join(""),n.slice(10,16).join("")].join("-")}function kn(e,n,s=bs()){return{shareId:s,leagueId:e.leagueId,shareSurface:e.surface,shareMethod:n,journeyVersion:e.journeyVersion??jt}}function to(e,n){const s=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),a=new URL(e,"https://internal.invalid");for(const[i,r]of Object.entries(Ce))a.searchParams.set(r,n[i]);return s?a.toString():`${a.pathname}${a.search}${a.hash}`}function no(e,n){const s=typeof e=="string"?new URLSearchParams(e.startsWith("?")?e.slice(1):e):e,a={shareId:s.get(Ce.shareId)??"",leagueId:s.get(Ce.leagueId)??"",shareSurface:s.get(Ce.shareSurface)??"",shareMethod:s.get(Ce.shareMethod)??"",journeyVersion:s.get(Ce.journeyVersion)??""};return!Sn.test(a.shareId)||!Sn.test(a.leagueId)||n!=null&&a.leagueId!==n||!Nn.test(a.shareSurface)||!["native","clipboard","prompt"].includes(a.shareMethod)||!Nn.test(a.journeyVersion)?null:a}function vt(e){return e?{shareId:e.shareId,leagueId:e.leagueId,shareSurface:e.shareSurface,shareMethod:e.shareMethod,journeyVersion:e.journeyVersion}:{}}function au(e){return e?{shareId:e.shareId,shareSurface:e.shareSurface,shareMethod:e.shareMethod,inviteJourneyVersion:e.journeyVersion}:{}}const bt="hof:postUpgradeShare";function It(e){return`hof:postUpgradeShare:${e}`}function iu(e){try{sessionStorage.setItem(It(e),"1"),window.dispatchEvent(new Event(bt))}catch{}}function so(e){try{return sessionStorage.getItem(It(e))==="1"}catch{return!1}}function En(e){try{sessionStorage.removeItem(It(e))}catch{}}function ao(e){return window.addEventListener(bt,e),()=>window.removeEventListener(bt,e)}async function io(e){const n=e.inviteAttribution?bs():null,s=i=>!e.inviteAttribution||!n?e.url:eo(e.inviteAttribution.leagueId,to(e.url,kn(e.inviteAttribution,i,n))),a=i=>{const r=e.inviteAttribution&&n?kn(e.inviteAttribution,i,n):null;$(e.event,{...e.props,method:i,...vt(r)})};if(!e.copyOnly&&typeof navigator.share=="function")try{return await navigator.share({title:e.title,text:e.text,url:s("native")}
6),a("native"),"native"}catch(i){if(i instanceof DOMException&&i.name==="AbortError")return null}try{const i=[e.text.trim(),s("clipboard")].filter(Boolean).join(`
7
8`);return await navigator.clipboard.writeText(i),a("clipboard"),"clipboard"}catch{const i=[e.text.trim(),s("prompt")].filter(Boolean).join(`
9
10`);return window.prompt("Copy this message:",i)==null?null:(a("prompt"),"prompt")}}function ru(e){const n=e.seasons>0?`${e.seasons} season${e.seasons===1?"":"s"}, `:"";return`${e.leagueName}'s Hall of Fame is up: ${n}every champion and record. Claim your team:`}const ro=2;function ws(e){var r;const n=new Set;if(!((r=e==null?void 0:e.league)!=null&&r.activeMembersOnly))return n;const s=new Set([...e.seasons??[]].map(c=>c.season).sort((c,l)=>Number(l)-Number(c)).slice(0,ro)),a=new Map((e.seasons??[]).map(c=>[c.id,c.season])),i=new Set;for(const c of e.seasonTeams??[]){const l=a.get(c.leagueSeasonId);c.ownerId&&l&&s.has(l)&&i.add(c.ownerId)}if(i.size===0)return n;for(const c of e.owners??[])i.has(c.id)||n.add(`owner:${c.id}`);return n}function Ss(e){return new Set([...((e==null?void 0:e.owners)??[]).filter(n=>n.hidden&&(e==null?void 0:e.league.excludeHiddenMembers)!==!1).map(n=>`owner:${n.id}`),...ws(e)])}function ou(e){const n=Ss(e);return new Set(((e==null?void 0:e.owners)??[]).filter(s=>n.has(`owner:${s.id}`)).map(s=>(s.name??"").trim().toLowerCase()).filter(s=>s.length>0))}function lu(e){return ws(e).size}const Tn="(min-width: 1000px)",Cn="hof-rail-collapsed";function oo(){const[e,n]=u.useState(()=>typeof window<"u"&&window.matchMedia(Tn).matches);return u.useEffect(()=>{const s=window.matchMedia(Tn),a=()=>n(s.matches);return s.addEventListener("change",a),window.addEventListener("resize",a),()=>{s.removeEventListener("change",a),window.removeEventListener("resize",a)}},[]),e}function Ns({navLinks:e,brandHref:n="/",trailing:s,hideRail:a=!1,signInHref:i="/login"}){var Dt,Mt,Ut,qt,zt,Ht,Bt,Kt,Vt,Jt,Gt,Wt;const r=ye(),c=me(),[l,m]=u.useState(null),p=!!((Dt=r.data)!=null&&Dt.user);u.useEffect(()=>{m(null)},[c.pathname]),u.useEffect(()=>{if(!l)return;const w=H=>{H.key==="Escape"&&m(null)};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[l]);const y=r.isLoading,{active:d}=_t(p),h=d==null?void 0:d.id,[N,x]=u.useState(!1),j=Ur(h,p&&N);u.useEffect(()=>{const w=()=>x(!!(h&&so(h)));return w(),ao(w)},[h]);const C=()=>{h&&(En(h),$("post_upgrade_share_dismissed",{leagueId:h,journeyVersion:wn}),x(!1))},O=async()=>{var H;!h||!d||!((H=j.data)!=null&&H.url)||!await io({title:`${d.name} Fantasy Hall of Fame`,text:`${d.name}'s full Fantasy Hall of Fame is unlocked for the whole league. Claim your franchise and bring the receipts.`,url:j.data.url,event:"post_upgrade_hall_shared",props:{leagueId:h,surface:"post-upgrade",journeyVersion:wn},inviteAttribution:{leagueId:h,surface:"post-upgrade"}})||(En(h),x(!1))},A=Wr(),E=c.pathname,b=((Ut=(Mt=r.data)==null?void 0:Mt.features)==null?void 0:Ut.inSeasonAccess)===!0,v=((zt=(qt=r.data)==null?void 0:qt.features)==null?void 0:zt.inSeasonLaunched)===!0,R={label:"Draft kit",items:[{href:at(h),label:"Draft History",icon:t.jsx(Be,{size:15}),active:E.startsWith("/draft-history")||E.startsWith("/draft-intelligence")},{href:gs(h),label:"Cheat Sheet",icon:t.jsx(Qt,{size:15}),active:E.startsWith("/cheat-sheet"),live:A==="draft"},{href:fs(h),label:"2026 Draft Grade",icon:t.jsx(Gs,{size:15}),active:/^\/draft-grade(\/|$)/.test(E)}]},F={label:"In Season",items:[{href:At(h),label:"Weekly Props",icon:t.jsx(Yt,{size:15}),active:E.startsWith("/props"),live:v},{href:$t(h),label:"Trade Court",icon:t.jsx(Ws,{size:15}),active:E.startsWith("/trade-court")},{href:hs(h),label:"Power Rankings",icon:t.jsx(Qs,{size:15}),active:E.startsWith("/power-rankings")},{href:ps(h),label:"Matchup Hype",icon:t.jsx(Ys,{size:15}),active:E.startsWith("/matchups")}]},ie=[{label:"Now",items:[{href:be(h),label:"Home",icon:t.jsx(Zt,{size:15}),active:E.startsWith("/museum")},{href:us(h),label:"Standings",icon:t.jsx(Zs,{size:15}),active:E.startsWith("/standings")},{href:ms(h),label:"Transactions",icon:t.jsx(Xs,{size:15}),active:E.startsWith("/transactions")},...h?[{href:js(h),label:"Newsletter",icon:t.jsx(ea,{size:15}),active:E.startsWith("/newsletter/")}]:[]]},...b?[F]:[],{label:"Hall of Fame",items:[{href:st(h),label:"Awards",icon:t.jsx(Me,{size:15}),active:E.startsWith("/hall-of-fame")},{href:xt(h),label:"Record Book",icon:t.jsx(ot,{size:15}),active:E.startsWith("/records")},{href:xs(h),label:"Timeline",icon:t.jsx(Be,{size:15}),active:E.startsWith("/timeline")},{href:ys(h),label:"Rivalry",icon:t.jsx(Fn,{size:15}),active:E.startsWith("/rivalry")}]},R],W=e==null,Y=W?ie:e.length===0?[]:e.every(w=>{var H;return!((H=w.children)!=null&&H.length)})?[{label:"Menu",items:e}]:e.map(w=>{var H;
10return(H=w.children)!=null&&H.length?{label:w.label,items:w.children}:{label:w.label,items:[w]}}),q=Y.flatMap(w=>w.items).length>0,ce=ie.find(w=>w.label==="Hall of Fame").items,de=W?[{label:"League",icon:t.jsx(Zt,{size:19}),items:ie[0].items},...b?[{label:"Season",icon:t.jsx(Yt,{size:19}),items:F.items}]:[],{label:"Records",icon:t.jsx(ot,{size:19}),items:ce.filter(w=>w.label==="Record Book")},{label:"History",icon:t.jsx(Be,{size:19}),items:ce.filter(w=>w.label!=="Record Book")},{label:"Draft",icon:t.jsx(Qt,{size:19}),items:[R.items[1],R.items[2],R.items[0]]}]:Y.map(w=>{var H;return{...w,icon:(H=w.items[0])==null?void 0:H.icon}}),ee=de.find(w=>w.label===l),D=oo(),[z,re]=u.useState(()=>{try{return localStorage.getItem(Cn)==="1"}catch{return!1}}),P=()=>re(w=>{const H=!w;try{localStorage.setItem(Cn,H?"1":"0")}catch{}return H}),G=!!(q&&D&&W&&p&&(d!=null&&d.accessRole)&&((d==null?void 0:d.seasonCount)??0)>0),V=c.pathname.startsWith("/museum/"),he=q&&!D&&W&&p&&!V&&(d==null?void 0:d.plan)==="free",M=G||he,te=Dr(h,M&&V),As=ds(M&&!V?h:void 0),pe=V?(Ht=te.data)==null?void 0:Ht.detail:As.data,$s=Ss(pe),Ft=((pe==null?void 0:pe.owners)??[]).filter(w=>!$s.has(`owner:${w.id}`)&&!/^[-\s]*hidden[-\s]*$/i.test(w.name)),Ee=Ft.filter(w=>w.isClaimed).length,Se=Ft.length,Is=G&&Se>0&&Ee<Se;return u.useEffect(()=>{const w=document.documentElement;return w.classList.toggle("hof-rail",q&&D),w.classList.toggle("hof-rail-collapsed",q&&D&&z),w.classList.toggle("hof-tabs",q&&!D
10),()=>{w.classList.remove("hof-rail","hof-rail-collapsed","hof-tabs")}},[q,D,z]),t.jsxs(t.Fragment,{children:[he&&d&&((Bt=r.data)==null?void 0:Bt.user)&&t.jsx(Ir,{league:{...d,plan:pe==null?void 0:pe.plan},userId:r.data.user.id,trialEligible:((Kt=pe==null?void 0:pe.planMeta)==null?void 0:Kt.trialEligible)===!0},`${r.data.user.id}:${d.id}`),((Vt=r.data)==null?void 0:Vt.impersonating)&&r.data.user&&t.jsx(lo,{email:r.data.user.email}),N&&d&&t.jsxs("div",{className:"hof-post-upgrade",role:"status",children:[t.jsxs("div",{children:[t.jsx("span",{children:"Elite unlocked"}),t.jsx("strong",{children:"The whole Hall is open. Bring the league through."})]}),t.jsxs("button",{type:"button",className:"hof-post-upgrade-share",disabled:!((Jt=j.data)!=null&&Jt.url),onClick:O,children:[t.jsx(lt,{size:14}),"Share the unlocked Hall"]}),t.jsx("button",{type:"button",className:"hof-post-upgrade-close","aria-label":"Dismiss upgrade celebration",onClick:C,children:t.jsx(Ye,{size:15})})]}),(()=>{var H;if(q&&!D)return null;const w=a?null:t.jsxs(t.Fragment,{children:[s,(H=r.data)!=null&&H.user?t.jsx(Rn,{email:r.data.user.email}):y?t.jsx("span",{className:"hof-avatar","aria-hidden":"true",children:t.jsx("span",{className:"disc",style:{opacity:.4}})}):t.jsx(I,{to:i,className:"ui-btn ui-btn--gold",children:"Sign in"})]});return q&&D?t.jsxs("aside",{className:"hof-rail",children:[t.jsxs("div",{className:"hof-rail-head",children:[t.jsx(I,{to:p||y?y&&!p?"/":be(h):n,className:"hof-rail-brand","aria-label":d?`${d.name} home`:"Fantasy Hall of Fame home",children:t.jsx(ht,{size:30})}),t.jsxs("span",{className:"hof-rail-wordmark","aria-hidden":"true",children:["Fantasy",t.jsx("br",{}),"Hall of Fame"]}),t.jsx("button",{type:"button",className:"hof-rail-collapse",onClick:P,"aria-label":z?"Expand navigation":"Collapse navigation",children:z?t.jsx(ta,{size:16}):t.jsx(na,{size:16})})]}),d&&t.jsxs(I,{to:be(h),className:"hof-rail-league",children:[t.jsx("span",{className:"nm",children:d.name}),t.jsxs("span",{className:"meta",children:[d.seasonCount," season",d.seasonCount===1?"":"s"]})]}),t.jsx("nav",{className:"hof-rail-nav","aria-label":"Primary",children:Y.map(_e=>t.jsxs("div",{className:"hof-rail-group",children:[t.jsxs("div",{className:"hof-rail-ghead",children:[t.jsx("span",{className:"txt",children:_e.label}),_e.moment&&t.jsx("span",{className:"hof-rail-moment",children:_e.moment})]}),_e.items.map(Os=>Ln(Os))]},_e.label))}),t.jsxs("div",{className:"hof-rail-foot",children:[Is&&h&&t.jsxs("div",{className:"hof-rail-fill",children:[t.jsxs(I,{to:Re("teams",h)+"#invite-manager",className:"hof-rail-fill-top",title:"Invite league members",children:[t.jsx("span",{className:"txt",children:"Fill the Hall"}),t.jsxs("strong",{children:[Ee,"/",Se]})]}),t.jsx("div",{className:"hof-rail-fill-track",role:"img","aria-label":`${Ee} of ${Se} franchises claimed`,children:t.jsx("span",{style:{width:`${Math.min(100,Ee/Se*100)}%`}})}),t.jsxs("p",{className:"hof-rail-fill-sub",children:[Se-Ee," franchise",Se-Ee===1?"":"s"," still waiting"]}),t.jsxs(I,{to:Re("teams",h)+"#invite-manager",className:"hof-rail-fill-share",children:[t.jsx(lt,{size:13})," Invite league members"]})]}),t.jsx("div",{className:"hof-rail-actions",children:w})]})]}):t.jsxs("header",{className:"hof-header",children:[p||y?t.jsx(I,{to:y&&!p?"/":be(h),className:"hof-brand","aria-label":d?`${d.name} home`:"League home",children:t.jsx(ht,{size:36})}):t.jsx(I,{to:n,className:"hof-brand","aria-label":"Fantasy Hall of Fame home",children:t.jsx(Le,{height:46,reversed:!0})}),t.jsx("div",{"aria-hidden":"true"}),t.jsx("div",{className:"hof-header-actions",children:w})]})})(),q&&!D&&t.jsxs(t.Fragment,{children:[t.jsxs("nav",{className:"hof-tabbar","aria-label":"Primary",children:[de.map(w=>W&&w.label==="Records"?t.jsxs(I,{to:xt(h),className:"hof-tab"+(w.items.some(H=>H.active)?" is-active":""),"aria-current":w.items.some(H=>H.active)?"page":void 0,onClick:()=>m(null),children:[w.icon,t.jsx("span",{children:w.label})]},w.label):t.jsxs("button",{type:"button",className:"hof-tab"+(w.items.some(H=>H.active)?" is-active":"")+(l===w.label?" is-open":""),"aria-expanded":l===w.label,"aria-controls":l===w.label?"mobile-bucket-options":void 0,onClick:()=>m(H=>H===w.label?null:w.label),children:[w.icon,t.jsx("span",{children:w.label})]},w.label)),W&&!a&&((Gt=r.data)==null?void 0:Gt.user)&&t.jsxs("button",{id:"mobile-settings-tab",type:"button",className:"hof-tab hof-tab-settings"+(/^\/(settings|account|admin)(\/|$)/.test(E)?" is-active":"")+(l==="Settings"?" is-open":""),"aria-expanded":l==="Settings","aria-controls":l==="Settings"?"mobile-settings-menu":void 0,onClick:()=>m(w=>w==="Settings"?null:"Settings"),children:[t.jsx(ct,{size:19,"aria-hidden":"true"}),t.jsx("span",{children:"Settings"})]})]}),(ee||l==="Settings")&&t.jsxs(t.Fragment,{children:[t.jsx("button",{type:"button",className:"hof-more-backdrop","aria-label":"Close menu",onClick:()=>m(null)}),l==="Settings"&&((Wt=r.data)!=null&&Wt.user)?t.jsx(Rn,{email:r.data.user.email,mobile:!0,onClose:()=>m(null)}):ee&&t.jsx("div",{className:"hof-more-sheet",id:"mobile-bucket-options",role:"region","aria-label":`${ee.label} options`,children:t.jsxs("div",{className:"hof-more-group",children:[t.jsx("span",{className:"hof-more-ghead",children:ee.label}),t.jsx("div",{className:"hof-more-grid",children:ee.items.map(w=>
10Ln(w,()=>m(null)))})]})})]})]})]})}function Ln(e,n){const s=e.href??"/",a=t.jsxs(t.Fragment,{children:[e.icon,t.jsx("span",{className:"lbl",children:e.label}),e.live&&t.jsx("i",{className:"hof-live-dot","aria-hidden":"true"})]});return s.startsWith("/")&&!s.includes("#")?t.jsx(I,{to:s,className:e.active?"is-active":void 0,"aria-current":e.active?"page":void 0,onClick:n,children:a},s+e.label):t.jsx("a",{href:s,className:e.active?"is-active":void 0,"aria-current":e.active?"page":void 0,onClick:n,children:a},s+e.label)}function lo({email:e}){const n=Or(),s=async()=>{try{await n.mutateAsync()}catch{}window.location.assign("/admin/users")};return t.jsxs("div",{className:"hof-impersonation-banner",role:"status",children:[t.jsx(We,{size:14,"aria-hidden":"true"}),t.jsxs("span",{children:["Admin view — signed in as ",t.jsx("strong",{children:e})]}),t.jsx("button",{type:"button",onClick:s,disabled:n.isPending,children:n.isPending?"Returning…":"Return to my account"})]})}function Rn({email:e,mobile:n=!1,onClose:s}){var A,E;const[a,i]=u.useState(!1),r=u.useRef(null),c=Ua(),m=!!((E=(A=ye().data)==null?void 0:A.user)!=null&&E.isAdmin),p=ke(),y=me(),{active:d,list:h,setActiveLeagueId:N}=_t(),x=()=>{i(!1),s==null||s()};u.useEffect(()=>{var b,v;if(n)return(v=(b=r.current)==null?void 0:b.querySelector("button"))==null||v.focus(),()=>{var R;return(R=document.getElementById("mobile-settings-tab"))==null?void 0:R.focus()}},[n]);const j=b=>{try{N(b)}catch{}x(),p(Gr(y.pathname,b))};u.useEffect(()=>{if(!a)return;const b=R=>{var F;(F=r.current)!=null&&F.contains(R.target)||i(!1)},v=R=>{R.key==="Escape"&&i(!1)};return document.addEventListener("mousedown",b),document.addEventListener("keydown",v),()=>{document.removeEventListener("mousedown",b),document.removeEventListener("keydown",v)}},[a]);const C=async()=>{x();try{await c.mutateAsync()}catch{}p("/login")},O=(e??"?").split("@")[0].slice(0,2).toUpperCase();return t.jsxs("div",{className:n?"hof-mobile-settings":"hof-user-menu",id:n?"mobile-settings-menu":void 0,role:n?"region":void 0,"aria-label":n?"Settings":void 0,ref:r,children:[n?t.jsxs("div",{className:"hof-mobile-settings-head",children:[t.jsxs("strong",{children:[t.jsx(ct,{size:17,"aria-hidden":"true"})," Settings"]}),t.jsx("button",{type:"button","aria-label":"Close settings",onClick:x,children:t.jsx(Ye,{size:18})})]}):t.jsxs("button",{type:"button",className:"hof-avatar",onClick:()=>i(b=>!b),"aria-haspopup":"menu","aria-expanded":a,"aria-label":a?"Close account menu":"Open account menu",children:[t.jsx("span",{className:"disc",children:O}),t.jsx(sa,{size:14,style:{transform:a?"rotate(180deg)":"rotate(0)",transition:"transform 0.15s"}})]}),(n||a)&&t.jsxs("div",{className:"hof-user-popover hof-command-card",role:"menu",children:[t.jsxs("div",{className:"cc-col cc-leagues",children:[t.jsx("p",{className:"hof-brand-popover-eyebrow",children:"Your leagues"}),h.length>0?t.jsx("ul",{className:"hof-brand-popover-list",children:h.map(b=>{const v=b.id===(d==null?void 0:d.id);return t.jsx("li",{children:t.jsxs("button",{type:"button",className:"hof-brand-popover-item"+(v?" is-active":""),onClick:()=>j(b.id),role:"menuitemradio","aria-checked":v,children:[t.jsx("span",{className:"name",children:b.name}),t.jsxs("span",{className:"meta",children:[b.seasonCount," season",b.seasonCount===1?"":"s",b.accessRole&&b.accessRole!=="owner"?` · ${b.accessRole}`:""]}),b.plan&&t.jsx("span",{className:`cc-plan is-${b.plan}`,children:b.plan==="elite"?"Elite":"Free"}),v&&t.jsx(Pe,{size:14,className:"check","aria-hidden":"true"})]})},b.id)})}):t.jsx("p",{className:"cc-empty",children:"No leagues yet."}),t.jsx("div",{className:"hof-brand-popover-divider"}),t.jsxs(I,{to:"/add-league",className:"hof-brand-popover-action",role:"menuitem",onClick:x,children:[t.jsx(aa,{size:14}),"Add a league"]})]}),t.jsxs("div",{className:"cc-col cc-account",children:[d&&t.jsxs(t.Fragment,{children:[t.jsxs("p",{className:"hof-brand-popover-eyebrow",children:["Manage ",d.name]}),t.jsxs(I,{to:Re("teams",d.id)+"#invite-manager",className:"hof-user-item",role:"menuitem",onClick:x,children:[t.jsx(lt,{size:15})," Invite league members"]}),[{tab:"seasons",label:"Seasons",icon:t.jsx(ia,{size:15})},{tab:"teams",label:"Teams & managers",icon:t.jsx(Nt,{size:15})},{tab:"general",label:"League details",icon:t.jsx(ct,{size:15})}].map(({tab:b,label:v,icon:R})=>t.jsxs(I,{to:Re(b,d.id),className:"hof-user-item",role:"menuitem",onClick:x,children:[R,v]},b)),t.jsx("div",{className:"hof-brand-popover-divider"})]}),t.jsx("p",{className:"hof-brand-popover-eyebrow",children:"Account"}),(d==null?void 0:d.plan)==="free"&&t.jsxs(I,{to:`/upgrade/${d.id}`,className:"hof-user-item cc-unlock",role:"menuitem",onClick:x,children:[t.jsx(ra,{size:15}),"Unlock Elite"]}),t.jsxs(I,{to:"/account/profile",className:"hof-user-item",role:"menuitem",onClick:x,children:[t.jsx(oa,{size:15}),"My profile"]}),t.jsxs(I,{to:"/account/billing",className:"hof-user-item",role:"menuitem",onClick:x,children:[t.jsx(la,{size:15}),"Billing"]}),m&&t.jsxs(I,{to:"/admin",className:"hof-user-item",role:"menuitem",onClick:x,children:[t.jsx(We,{size:15}),"Master admin"]})]}),t.jsxs("div",{className:"cc-foot",children:[t.jsx("span",{className:"disc","aria-hidden":"true",children:O}),t.jsx("span",{className:"email",title:e,children:e}),t.jsxs("button",{type:"button",className:"hof-user-item danger cc-signout",role:"menuitem",onClick:C,disabled:c.isPending,children:[t.jsx(ca,{size:15}),c.isPending?"Signing out…":"Sign out"]})]})]})]})}const co="[email protected]";function uo(e){const[n,s,...a]=(e??"").trim().toLowerCase().split("@");return!n||!s||a.length>0?!1:/^(outlook|hotmail|live|msn)\.(com|[a-z]{2}|co\.[a-z]{2}|com\.[a-z]{2})$/.test(s)}function mo(e){var s;const n=((s=e.split("@")[1])==null?void 0:s.toLowerCase())??"";return n==="gmail.com"||n==="googlemail.com"?{label:"Open Gmail",url:"https://mail.google.com/mail/u/0/"}:["outlook.com","hotmail.com","live.com","msn.com"].includes(n)?{label:"Open Outlook",url:"https://outlook.live.com/mail/0/"}:["yahoo.com","ymail.com","rocketmail.com"].includes(n)?{label:"Open Yahoo Mail",url:"https://mail.yahoo.com/"}:["icloud.com","me.com","mac.com"].includes(n)?{label:"Open iCloud Mail",url:"https://www.icloud.com/mail"}:null}function Fe({step:e}){return t.jsxs("ol",{className:"sbli-rail",children:[t.jsxs("li",{className:e===1?"is-on":"is-done",children:[t.jsx("span",{"aria-hidden":"true",children:e===1?"1":"✓"}),"Email",e===2&&t.jsx("span",{className:"visually-hidden",children:" — done"})]}),t.jsxs("li",{className:e===2?"is-on":"","aria-current":e===2?"step":void 0,children:[t.jsx("span",{"aria-hidden":"true",children:"2"}),"Code"]})]})}
10function ks({email:e,onChangeEmail:n,codeRejected:s=!1}){const a=uo(e);return t.jsxs("ul",{className:"sbli-todo",children:[t.jsxs("li",{children:[t.jsx("span",{className:"sbli-todo-mark is-done","aria-hidden":"true",children:"✓"}),t.jsx("div",{className:"sbli-todo-text",children:t.jsxs("b",{children:["Code sent to ",t.jsx("span",{className:"sbli-todo-email",children:e})]})}),t.jsx("button",{type:"button",className:"sbli-todo-act",onClick:n,"aria-label":"Change email address",children:"Change"})]}),t.jsxs("li",{children:[t.jsx("span",{className:"sbli-todo-mark","aria-hidden":"true"}),t.jsx("div",{className:"sbli-todo-text",children:a?t.jsxs(t.Fragment,{children:[t.jsx("b",{children:"Open it, or look in Junk"}),t.jsxs("small",{children:["Outlook and Hotmail file new senders there. Save"," ",t.jsx("code",{children:co})," so the next one lands in your inbox."]})]}):t.jsxs(t.Fragment,{children:[t.jsx("b",{children:"Open it, or check Spam"}),t.jsx("small",{children:"First emails from a new sender sometimes land there."})]})})]}),t.jsxs("li",{children:[t.jsx("span",{className:"sbli-todo-mark","aria-hidden":"true"}),t.jsxs("div",{className:"sbli-todo-text",children:[t.jsx("b",{children:s?"Try the code again":"Type the code, or tap Sign in"}),t.jsx("small",{children:s?"Use the newest email. Codes last 15 minutes.":"Either one works. The link signs you in on whichever device you open it."})]})]})]})}function Es({email:e,onEdit:n}){return u.useEffect(()=>{$("sign_in_bounce_shown")},[]),t.jsxs("div",{className:"sbli-bounce",children:[t.jsxs("p",{className:"sbli-error",role:"alert",children:["We couldn’t deliver to"," ",t.jsx("b",{className:"sbli-todo-email",children:e}),". Check the spelling and try again."]}),t.jsx("button",{type:"button",className:"sbli-btn primary",onClick:n,children:"Edit address"})]})}function Ts(){return t.jsx("div",{className:"sbli-error",role:"alert",children:"Mail to that address bounced, so we can’t send a code to it. Check the spelling, or use a different address."})}function ho(){var V,he;const e=me(),n=ke(),s=e.state??{},a=!!(s.sent&&s.email),[i,r]=u.useState(s.email??""),[c,l]=u.useState(a),[m,p]=u.useState(!!s.undeliverable),[y,d]=u.useState(a?s.deliveryId??null:null),[h,N]=u.useState(""),x=u.useRef(null),j=u.useRef(c);u.useEffect(()=>{var M;j.current&&!c&&((M=x.current)==null||M.focus()),j.current=c},[c]);const[C]=wt(),O=ye(),A=Ze(),E=Wn(),b=cs(c?y:null),v=c&&b==="bounced",[R,F]=u.useState(()=>a?s.sentAt?Math.max(0,60-Math.floor((Date.now()-s.sentAt)/1e3)):60:0);u.useEffect(()=>{if(R<=0)return;const M=setTimeout(()=>F(te=>te-1),1e3);return()=>clearTimeout(M)},[R]);const ie=!!((V=O.data)!=null&&V.user),W=O.refetch;u.useEffect(()=>{if(!c||ie||v)return;const M=window.setInterval(()=>void W(),4e3),te=()=>void W();return window.addEventListener("focus",te),document.addEventListener("visibilitychange",te),()=>{window.clearInterval(M),window.removeEventListener("focus",te),document.removeEventListener("visibilitychange",te)}},[c,ie,v,W]);const Y=C.get("next"),T=Y&&/^\/(?!\/)[^\u0000-\u001f\u007f\\]*$/.test(Y)?Y:void 0,q=(T==null?void 0:T.split("?")[0])==="/wizard-v2"||!!(T!=null&&T.startsWith("/add-league?")&&new URLSearchParams(T.split("?")[1]).get("wizard")==="v2");if(O.isLoading)return t.jsx(le,{});if((he=O.data)!=null&&he.user)return t.jsx(ae,{to:T??"/museum",replace:!0});const ce=async M=>{if(M.preventDefault(),!!i.trim())try{const te=await A.mutateAsync({email:i.trim(),next:T});if(te!=null&&te.undeliverable){p(!0);return}p(!1),l(!0),d((te==null?void 0:te.deliveryId)??null),N(""),E.reset(),F(60),n(`${e.pathname}${e.search}`,{replace:!0,state:Oe(i.trim(),te)})}catch(te){console.error(te)}},de=async()=>{if(!(!i.trim()||R>0))try{const M=await A.mutateAsync({email:i.trim(),next:T});if(M!=null&&M.undeliverable){ee();return}d((M==null?void 0:M.deliveryId)??null),N(""),E.reset(),F(60),n(`${e.pathname}${e.search}`,{replace:!0,state:Oe(i.trim(),M)})}catch(M){console.error(M)}},ee=()=>{l(!1),p(!0),d(null),N(""),E.reset(),n(`${e.pathname}${e.search}`,{replace:!0,state:Oe(i.trim(),{undeliverable:!0})})},D=()=>{l(!1),r(""),N(""),d(null),p(!1),E.reset(),n(`${e.pathname}${e.search}`,{replace:!0,state:null})},z=async M=>{if(M.preventDefault(),!(h.length!==6||E.isPending))try{await E.mutateAsync({email:i.trim(),code:h,next:T})}catch{}},re=C.get("error"),P=re==="expired_or_invalid"?"That link expired or has already been used. Request a new one.":re==="missing_token"?"Missing token in the link.":null,G=c?mo(i):null;return t.jsxs("main",{className:`hofPage hof-sb-login${q?" priority-signin":""}`,children:[q?t.jsx("header",{className:"ps-signin-brand",children:t.jsx("a",{href:"/",children:t.jsx("img",{src:_r,alt:"Fantasy Hall of Fame"})})}
10):t.jsx(Ns,{navLinks:[],hideRail:!0,trailing:t.jsx("span",{className:"sbli-nav-status",role:"status",children:c?"Code sent":"Sign-in"})}),t.jsx("section",{className:"sbli-wrap",children:t.jsx("div",{className:`sbli-card${c?" is-check":""}`,children:t.jsx("div",{className:"sbli-body",children:v?t.jsxs(t.Fragment,{children:[t.jsx(Fe,{step:1}),t.jsx("h1",{className:"sbli-verify-title",children:"Check your address"}),t.jsx(Es,{email:i,onEdit:ee})]}):c?t.jsxs(t.Fragment,{children:[t.jsx(Fe,{step:2}),t.jsx("h1",{className:"sbli-verify-title",children:"Enter your code"}),E.isError&&t.jsx("div",{className:"sbli-error sbli-error-lead",role:"alert",children:E.error.message||"That code did not work. Check the newest email and try again."}),t.jsx(ks,{email:i,onChangeEmail:D,codeRejected:E.isError}),t.jsxs("form",{className:"sbli-form sbli-code-form",onSubmit:z,children:[t.jsx("label",{htmlFor:"login-code",className:"visually-hidden",children:"Six-digit code"}),t.jsx("input",{id:"login-code",className:"sbli-code-input",type:"text",inputMode:"numeric",pattern:"[0-9]*",autoComplete:"one-time-code",maxLength:6,autoFocus:!0,value:h,onChange:M=>{N(M.target.value.replace(/\D/g,"").slice(0,6)),E.isError&&E.reset()},placeholder:"000000"}),t.jsx("button",{type:"submit",className:"sbli-btn primary",disabled:h.length!==6||E.isPending,children:E.isPending?"Verifying…":"Verify and sign in"})]}),A.isError&&t.jsx("div",{className:"sbli-error sbli-error-resend",role:"alert",children:"Could not resend the email. Try again in a moment."}),t.jsxs("div",{className:"sbli-verify-actions",children:[G&&t.jsxs("a",{className:"sbli-verify-link",href:G.url,target:"_blank",rel:"noopener noreferrer",children:[G.label," →"]}),t.jsx("button",{type:"button",className:"sbli-verify-link",disabled:R>0||A.isPending,onClick:de,children:R>0?`Resend in ${R}s`:"Resend email"})]})]}):t.jsxs(t.Fragment,{children:[t.jsx(Fe,{step:1}),t.jsx("p",{className:"sbli-eyebrow",children:"Email sign-in"}),t.jsx("h1",{children:q?"Save your league’s place.":"One code. One inbox. You're in."}),t.jsx("p",{className:"sbli-lede",children:"No password. We email a six digit code and link."}),P&&t.jsx("div",{className:"sbli-error",style:{marginBottom:14},children:P}),t.jsxs("form",{className:"sbli-form",onSubmit:ce,children:[t.jsx("label",{htmlFor:"email",children:"Email"}),t.jsx("input",{id:"email",ref:x,type:"email",autoComplete:"email",required:!0,value:i,onChange:M=>{r(M.target.value),p(!1)},placeholder:"[email protected]"}),t.jsx(et,{email:i,onFix:M=>{r(M),p(!1)}}),t.jsx("button",{type:"submit",className:"sbli-btn primary",disabled:A.isPending,children:A.isPending?"Sending...":"Send sign-in code"}),m&&!A.isError&&t.jsx(Ts,{}),A.isError&&t.jsxs("div",{className:"sbli-error",children:["Could not send link:"," ",A.error.message||"unknown error"]})]}),t.jsxs("p",{className:"sbli-after",children:[t.jsx("b",{children:"New here?"})," Same box. The code creates your free account."]}),t.jsxs("p",{className:"sbli-footnote",children:["By continuing you agree to the ",t.jsx("a",{href:"/terms",children:"Terms"})," and"," ",t.jsx("a",{href:"/privacy",children:"Privacy Policy"}),"."]})]})})})}),t.jsxs("footer",{className:"hjb-colophon",children:[t.jsx("span",{children:"Fantasy Hall of Fame"}),t.jsx("span",{className:"sep",children:"·"}),t.jsxs("span",{children:["Imports from Yahoo, Sleeper, ESPN, CBS, MFL, and Fleaflicker ·"," ",new Date().getFullYear()]}),t.jsx("span",{className:"sep",children:"·"}),t.jsx("a",{href:"/privacy",children:"Privacy"}),t.jsx("span",{className:"sep",children:"·"}),t.jsx("a",{href:"/terms",children:"Terms"})]})]})}const po=24;function Cs({managers:e,loading:n,teamId:s,onPick:a,error:i,presetTeamId:r,children:c,title:l="Which team is yours?"}){const[m,p]=u.useState(""),y=e.reduce((v,R)=>R.lastSeason&&(!v||R.lastSeason>v)?R.lastSeason:v,null),d=v=>!!(v.lastSeason&&y&&v.lastSeason<y),h=r?e.find(v=>v.id===r&&!v.claimed):void 0,N=e.find(v=>v.id===s),[x,j]=u.useState(!!(N&&d(N))),C=m.trim().toLowerCase(),O=e.filter(v=>!d(v)),A=e.filter(d),E=C?e.filter(v=>v.name.toLowerCase().includes(C)||(v.teamName??"").toLowerCase().includes(C)):x?[...O,...A]:O,b=e.filter(v=>!v.claimed);return t.jsxs("div",{className:"jc-panel",children:[t.jsxs("div",{className:"jc-step-head",children:[t.jsx("h2",{children:l}),h&&t.jsxs("p",{className:"jc-muted",children:["Your commissioner saved ",h.name," for you. Not you? Tap your name."]})]}),i&&t.jsx("div",{className:"sbli-error",role:"alert",children:i}),e.length>po&&t.jsxs("label",{className:"jc-search",children:[t.jsx(da,{size:16,"aria-hidden":"true"}),t.jsx("span",{className:"visually-hidden",children:"Find your name"}),t.jsx("input",{id:"join-team-search",type:"search",value:m,onChange:v=>p(v.target.value),placeholder:"Find your name"})]}),n?t.jsx("p",{className:"jc-muted",children:"Loading the league's teams…"}):t.jsxs("div",{className:"jc-chips",role:"radiogroup","aria-label":"Your team",children:[E.map(v=>{const R=v.id===s,F=d(v)?v.lastSeason:null,ie=[v.name,v.teamName,v.claimed?"claimed":null,F?`last played ${F}
10`:null].filter(Boolean).join(", ");return t.jsxs("button",{type:"button",role:"radio","aria-checked":R,"aria-label":ie,title:v.teamName??void 0,disabled:v.claimed,className:`jc-chip${R?" is-selected":""}`,onClick:()=>a(v.id),children:[R&&t.jsx(Pe,{size:13,strokeWidth:3,"aria-hidden":"true"}),v.name,v.claimed?t.jsx("small",{children:"claimed"}):F?t.jsx("small",{children:F}):null]},v.id)}),!C&&A.length>0&&t.jsx("button",{type:"button",className:"jc-chip jc-chip-more","aria-expanded":x,onClick:()=>j(v=>!v),children:x?"Hide past managers":`+ ${A.length} past manager${A.length===1?"":"s"}`}),C&&E.length===0&&t.jsxs("p",{className:"jc-muted",children:['No manager matches "',m.trim(),'".']})]}),!n&&e.length>0&&b.length===0&&t.jsx("p",{className:"jc-note",children:"Every team here already has a manager. If one of them is yours, ask your commissioner to add you to it from league settings."}),c]})}const Ls="go",$e="team",fo=/^[A-Za-z0-9_-]{1,80}$/;function go(e){if(e==="props")return{kind:"props"};if(e!=null&&e.startsWith("trade:")){const n=e.slice(6);if(fo.test(n))return{kind:"trade",tradeId:n}}return{kind:"home"}}function Rs(e){return e.kind==="props"?"props":e.kind==="trade"?`trade:${e.tradeId}`:null}function yo(e,n){return n.kind==="props"?At(e):n.kind==="trade"?`${$t(e)}?trade=${encodeURIComponent(n.tradeId)}`:be(e)}function cu(e,n){const s=Rs(n);if(!s)return e;const a=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),i=new URL(e,"https://internal.invalid");return i.searchParams.set(Ls,s),a?i.toString():`${i.pathname}${i.search}${i.hash}`}function xo(){var T,q,ce,de,ee;const{token:e}=we(),n=ye(),s=qr(),a=zr(e),i=ke(),r=me(),c=u.useMemo(()=>
10new URLSearchParams(r.search),[r.search]),l=u.useMemo(()=>go(c.get(Ls)),[c]),m=u.useMemo(()=>{var D;return no(r.search,(D=a.data)==null?void 0:D.leagueId)},[r.search,(T=a.data)==null?void 0:T.leagueId]),[p,y]=u.useState(c.get($e)),[d,h]=u.useState(!1),[N,x]=u.useState(null),[j,C]=u.useState(!1),O=u.useRef(!1),A=u.useRef(!1),E=!!((q=n.data)!=null&&q.user),b=a.data,v=(b==null?void 0:b.managers)??[],R=D=>{const z=D.joined?{joined:{leagueName:D.name,teamName:D.claimedName}}:null;i(yo(D.leagueId,l),{replace:!0,state:z})},F=D=>{e&&(x(null),s.mutate({token:e,inviteAttribution:m,ownerId:D,destination:Rs(l)},{onSuccess:z=>{z.status==="ready"?R(z):h(!0)},onError:z=>{var P;const re=z instanceof ue?(P=z.body)==null?void 0:P.code:void 0;if(re==="team-taken"||re==="team-unknown"){y(null),h(!0),x(z.message),a.refetch();return}z instanceof ue&&z.status===404&&C(!0)}}))};if(u.useEffect(()=>{!E||!e||O.current||(O.current=!0,F(p))},[E,e]),u.useEffect(()=>{!b||A.current||(A.current=!0,$("invite_link_opened",{leagueId:b.leagueId,signedIn:E,seasons:b.seasonCount,managers:b.managerCount,managersInside:Math.min(b.managerCount,1+b.acceptedMemberCount),franchisesClaimed:b.claimedManagerCount,destination:l.kind,journeyVersion:(m==null?void 0:m.journeyVersion)??jt,...vt(m)}))},[b,E,m,l.kind]),n.isLoading)return t.jsx(le,{});const ie=j||a.isError,W={destination:l.kind,journeyVersion:(m==null?void 0:m.journeyVersion)??jt,...vt(m)};let Y;return ie?Y=t.jsxs("div",{className:"jc-panel jc-center",children:[t.jsx("p",{className:"jc-eyebrow",children:"Invite link"}),t.jsx("h2",{children:"That link didn't work."}),t.jsx("p",{className:"jc-muted",children:"It may have been replaced by the commissioner. Ask them for a fresh one."}),t.jsx(I,{className:"sbli-btn",to:"/",children:"Back to home"})]}):E&&!d&&s.isError?Y=t.jsxs("div",{className:"jc-panel jc-center",children:[t.jsx("h2",{children:"We couldn't add you yet."}),t.jsx("p",{className:"jc-muted",children:s.error.message||"Something went wrong joining."}),t.jsx("button",{type:"button",className:"sbli-btn primary jc-cta",onClick:()=>F(p),children:"Try again"})]}):E&&!d?Y=t.jsxs("div",{className:"jc-panel jc-center",role:"status",children:[t.jsx("span",{className:"jc-spinner","aria-hidden":"true"}),t.jsx("p",{className:"jc-muted",children:b?`Taking you into ${b.name}…`:"Checking your invite…"})]}):E?Y=t.jsxs(Cs,{managers:v,loading:a.isLoading,teamId:p,onPick:y,error:N,presetTeamId:c.get($e),children:[t.jsxs("p",{className:"jc-signed-in",children:["Signed in as ",t.jsx("strong",{children:(de=(ce=n.data)==null?void 0:ce.user)==null?void 0:de.email})]}),t.jsx("button",{type:"button",className:"sbli-btn primary jc-cta",disabled:!p||s.isPending,onClick:()=>F(p),children:s.isPending?"Joining…":p?`Join as ${((ee=v.find(D=>D.id===p))==null?void 0:ee.name)??"this team"}`:"Pick your team to join"})]}):Y=t.jsx(vo,{leagueId:(b==null?void 0:b.leagueId)??null,leagueName:(b==null?void 0:b.name)??null,managers:v,loading:a.isLoading,teamId:p,onPick:y,presetTeamId:c.get($e),trackingProps:W,nextFor:D=>
10{const z=new URLSearchParams(r.search);D?z.set($e,D):z.delete($e);const re=z.toString();return`/join/${e??""}${re?`?${re}`:""}`}}),t.jsxs("main",{className:"hofPage hof-sb-login jc-page",children:[t.jsx(Ns,{navLinks:[],hideRail:!0}),t.jsx(jo,{league:b,loading:a.isLoading,dead:ie,destination:l}),t.jsx("section",{className:"jc-body",children:t.jsx("div",{className:"jc-inner",children:Y})}),t.jsxs("footer",{className:"hjb-colophon",children:[t.jsx("span",{children:"Fantasy Hall of Fame"}),t.jsx("span",{className:"sep",children:"·"}),t.jsxs("span",{children:["Imports from Yahoo, Sleeper, ESPN, CBS, MFL, and Fleaflicker ·"," ",new Date().getFullYear()]})]})]})}function jo({league:e,loading:n,dead:s,destination:a}){const i=e?[e.seasonCount>0?`${e.seasonCount} season${e.seasonCount===1?"":"s"}`:null,e.managerCount>0?`${e.managerCount} manager${e.managerCount===1?"":"s"}`:null,e.firstSeason?`since ${e.firstSeason}`:null].filter(Boolean).join(" · "):null,r=a.kind==="props"?"This week's props are open.":a.kind==="trade"?"A trade is waiting for your ruling.":i;return t.jsx("section",{className:"jc-welcome","aria-label":"Your invitation",children:t.jsx("div",{className:"jc-inner",children:s?t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"jc-kicker",children:"Invite link"}),t.jsx("h1",{children:"No entry"})]}):t.jsxs(t.Fragment,{children:[t.jsx("p",{className:"jc-kicker",children:"Welcome to"}),t.jsx("h1",{children:(e==null?void 0:e.name)??(n?"Reading your invite…":"Your league")}),r&&t.jsx("p",{className:"jc-resume",children:r})]})})})}function vo({leagueId:e,leagueName:n,managers:s,loading:a,teamId:i,onPick:r,presetTeamId:c,trackingProps:l,nextFor:m}){const p=Ze(),y=Wn(),[d,h]=u.useState(""),[N,x]=u.useState(!1),[j,C]=u.useState(""),[O,A]=u.useState(!1),[E,b]=u.useState(null),v=cs(N?E:null),R=N&&v==="bounced",[F,ie]=u.useState(!1),[W,Y]=u.useState(0),T=s.find(P=>P.id===i&&!P.claimed),q=m(F?null:(T==null?void 0:T.id)??null);u.useEffect(()=>{if(W<=0)return;const P=setTimeout(()=>Y(G=>G-1),1e3);return()=>clearTimeout(P)},[W]);const ce=async(P,G="initial")=>{if(P==null||P.preventDefault(),!(!d.trim()||p.isPending||W>0)&&!(!F&&!T))try{const V=await p.mutateAsync({email:d.trim(),next:q});if($("invite_auth_requested",{leagueId:e,method:"email-code",reason:G,teamPicked:!!T&&!F,...l}),V!=null&&V.undeliverable){x(!1),b(null),A(!0);return}A(!1),b((V==null?void 0:V.deliveryId)??null),x(!0),C(""),y.reset(),Y(60)}catch(V){console.error(V)}},de=async P=>{if(P.preventDefault(),!(j.length!==6||y.isPending)){$("invite_auth_code_submitted",{leagueId:e,...l});try{await y.mutateAsync({email:d.trim(),code:j,next:q}),$("invite_auth_code_verified",{leagueId:e,...l})}catch{$("invite_auth_code_failed",{leagueId:e,...l})}}},ee=()=>{x(!1),C(""),b(null),Y(0),p.reset(),y.reset()},D=()=>{ee(),A(!0)},z=t.jsxs("div",{className:"sbli-league-row",children:[t.jsx(ua,{size:16,"aria-hidden":"true"}),t.jsxs("div",{children:[t.jsx("strong",{children:n??"Your league"}),T&&!F&&t.jsxs("span",{children:["Joining as ",T.name]})]})]});if(R)return t.jsxs("div",{className:"jc-panel",children:[z,t.jsx(Fe,{step:1}),t.jsx("h2",{className:"sbli-verify-title",children:"Check your address"}),t.jsx(Es,{email:d,onEdit:D})]});if(N)return t.jsxs("div",{className:"jc-panel",children:[z,t.jsx(Fe,{step:2}),t.jsx("h2",{className:"sbli-verify-title",children:"Enter your code"}),y.isError&&t.jsx("div",{className:"sbli-error sbli-error-lead",role:"alert",children:y.error.message||"That code did not work. Check the newest email and try again."}),t.jsx(ks,{email:d,onChangeEmail:ee,codeRejected:y.isError}),t.jsxs("form",{className:"sbli-form sbli-code-form",onSubmit:de,children:[t.jsx("label",{htmlFor:"join-code",className:"visually-hidden",children:"Six-digit code"}),t.jsx("input",{id:"join-code",className:"sbli-code-input",type:"text",inputMode:"numeric",pattern:"[0-9]*",autoComplete:"one-time-code",maxLength:6,autoFocus:!0,value:j,onChange:P=>{C(P.target.value.replace(/\D/g,"").slice(0,6)),y.isError&&y.reset()},placeholder:"000000"}),t.jsx("button",{type:"submit",className:"sbli-btn primary",disabled:j.length!==6||y.isPending,children:y.isPending?"Verifying…":`Verify and join${n?` ${n}`:""}`})]}),p.isError&&t.jsx("div",{className:"sbli-error sbli-error-resend",role:"alert",children:"Could not resend the email. Try again in a moment."}),t.jsxs("div",{className:"sbli-verify-actions",children:[t.jsx("button",{type:"button",className:"sbli-verify-link",disabled:W>0||p.isPending,onClick:()=>ce(void 0,"resend"),children:W>0?`Resend in ${W}s`:"Resend email"}),T&&!F&&t.jsx("button",{type:"button",className:"sbli-verify-link",onClick:ee,children:"Change team"})]})]});const re=t.jsxs("form",{className:"sbli-form jc-email",onSubmit:ce,children:[t.jsx("label",{htmlFor:"join-email",children:"Your email"}),t.jsx("input",{id:"join-email",type:"email",autoComplete:"email",required:!0,value:d,onChange:P=>{h(P.target.value),A(!1)},placeholder:"[email protected]"}),t.jsx(et,{email:d,onFix:P=>{h(P),A(!1)}}),t.jsx("button",{type:"submit",className:"sbli-btn primary jc-cta",disabled:p.isPending||!F&&!T,children:p.isPending?"Sending…":!F&&!T?"Pick your team first":"Email me a six-digit code"}),O&&!p.isError&&t.jsx(Ts,{}),p.isError&&t.jsxs("div",{className:"sbli-error",role:"alert",children:["Could not send the code:"," ",p.error.message||"unknown error"]}),t.jsxs("p",{className:"jc-fine",children:["No password. We'll email you a six-digit code. By continuing you agree to the ",t.jsx("a",{href:"/terms",children:"Terms"})," and ",t.jsx("a",{href:"/privacy",children:"Privacy Policy"}),"."]})]});return F?t.jsxs("div",{className:"jc-panel",children:[t.jsxs("div",{className:"jc-step-head",children:[t.jsx("h2",{children:"Welcome back"}),t.jsx("p",{className:"jc-muted",children:"Sign in with the email you use here and we'll take you in."})]}),re,t.jsx("button",{type:"button",className:"jc-text-btn",onClick:()=>ie(!1),children:"New to this league? Pick your team"})]}):t.jsxs(Cs,{managers:s,loading:a,teamId:i,onPick:P=>{r(P),requestAnimationFrame(()=>{var G,V;return(V=(G=document.getElementById("join-email"))==null?void 0:G.scrollIntoView)==null?void 0:V.call(G,{block:"nearest",behavior:"smooth"})})},presetTeamId:c,children:[re,t.jsx("button",{type:"button",className:"jc-text-btn",onClick:()=>ie(!0),children:"Already in this league? Sign in"})]})}function bo({message:e="Something went wrong loading your leagues.",onRetry:n}){return t.jsx("div",{role:"alert",className:"ui-screen",children:t.jsxs("div",{className:"ui-screen-inner",children:[t.jsx("span",{className:"ui-screen-label",children:e}),n&&t.jsx("button",{type:"button",className:"ui-screen-action",onClick:n,children:"Try again"})]})})}function wo(){var r;const e=me(),n=ke(),s=(r=e.state)==null?void 0:r.joined,[a,i]=u.useState(null);return u.useEffect(()=>{s&&(i(s),n(`${e.pathname}${e.search}${e.hash}`,{replace:!0,state:null}))},[s,e.pathname,e.search,e.hash,n]),u.useEffect(()=>{if(!a)return;const c=window.setTimeout(()=>i(null),6e3);return()=>window.clearTimeout(c)},[a]),a?t.jsxs("div",{className:"joined-toast",role:"status",children:[t.jsx("span",{className:"joined-toast__check","aria-hidden":"true",children:t.jsx(Pe,{size:14,strokeWidth:3})}),t.jsx("span",{children:a.teamName?t.jsxs(t.Fragment,{children:["You're in as ",t.jsx("strong",{children:a.teamName}),". Welcome to"," ",a.leagueName,"."]}):t.jsxs(t.Fragment,{children:["Welcome to ",a.leagueName,"."]})}),t.jsx("button",{type:"button",className:"joined-toast__close","aria-label":"Dismiss",onClick:()=>i(null),children:"×"})]}):null}const Ot="hof:chunk-recovery-at",Ge="_fh_refresh",Ps=6e4,So=e=>window.location.replace(e);function No(){let e=0;try{e=Number(window.sessionStorage.getItem(Ot))||0}catch{}try{const n=Number.parseInt(new URL(window.location.href).searchParams.get(Ge)??"",36);return Math.max(e,Number.isFinite(n)?n:0)}catch{return e}}function ko(e){try{window.sessionStorage.setItem(Ot,String(e))}catch{}}function Eo(){try{window.sessionStorage.removeItem(Ot)}catch{}}function Pn(e){const n=e instanceof Error?e.message:String(e??"");return/(?:failed to fetch dynamically imported module|importing a module script failed|chunkloaderror|loading chunk .+ failed|unable to preload css)/i.test(n)}function To(e,n){const s=new URL(e);return s.searchParams.set(Ge,n.toString(36)),s.toString()}function _n(e={}){var a;const n=((a=e.now)==null?void 0:a.call(e))??Date.now(),s=No();return!e.force&&s>0&&n-s<Ps?!1:(ko(n),(e.navigate??So)(To(window.location.href,n)),!0)}function Co(){try{const e=new URL(window.location.href);if(!e.searchParams.has(Ge))return;e.searchParams.delete(Ge),window.history.replaceState(window.history.state,"",`${e.pathname}${e.search}${e.hash}`)}catch{}}function Lo(){const e=window.setTimeout(()=>{Eo(),Co()},Ps);return()=>{window.clearTimeout(e)}}class _s extends u.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromError(n){return{error:n}}componentDidCatch(n,s){Pn(n)&&_n()||console.error("UI error:",n,s)}
10render(){if(!this.state.error)return this.props.children;const n=Pn(this.state.error),s=n?"The playbook changed mid-drive.":"The app fumbled the handoff.",a=n?"We shipped an update while this tab was still in the huddle. One fresh snap should put the newest version back on the field.":"No trophies, standings, or embarrassing draft picks were harmed. Run the play again, or head back to the clubhouse.";return t.jsxs("section",{className:"fh-error-page",role:"alert",children:[t.jsx("div",{className:"fh-error-yard-lines","aria-hidden":"true"}),t.jsxs("header",{className:"fh-error-header",children:[t.jsx("a",{href:"/",className:"fh-error-brand",children:t.jsx(Le,{height:38,reversed:!0})}),t.jsx("span",{className:"fh-error-timeout",children:"Official timeout"})]}),t.jsxs("div",{className:"fh-error-card",children:[t.jsxs("div",{className:"fh-error-play","aria-hidden":"true",children:[t.jsxs("div",{className:"fh-error-scoreboard",children:[t.jsxs("span",{children:["Down",t.jsx("strong",{children:"4"})]}),t.jsxs("span",{children:["To go",t.jsx("strong",{children:"Long"})]}),t.jsxs("span",{children:["Quarter",t.jsx("strong",{children:"OT"})]})]}),t.jsxs("svg",{className:"fh-error-diagram",viewBox:"0 0 560 310",focusable:"false",children:[t.jsx("path",{className:"yard",d:"M55 30v250M165 30v250M275 30v250M385 30v250M495 30v250"}),t.jsx("path",{className:"hash",d:"M40 108h480M40 202h480"}),t.jsxs("g",{className:"offense",children:[t.jsx("circle",{cx:"118",cy:"155",r:"15"}),t.jsx("circle",{cx:"168",cy:"155",r:"15"}),t.jsx("circle",{cx:"218",cy:"155",r:"15"}),t.jsx("circle",{cx:"268",cy:"155",r:"15"}),t.jsx("circle",{cx:"318",cy:"155",r:"15"})]}),t.jsx("g",{className:"defense",children:t.jsx("path",{d:"M133 92l24 24m0-24l-24 24M238 83l24 24m0-24l-24 24M343 92l24 24m0-24l-24 24"})}),t.jsx("path",{className:"route route-one",d:"M118 137V70c0-19 15-34 34-34h78"}),t.jsx("path",{className:"route route-two",d:"M318 173v55c0 23 18 41 41 41h94"}),t.jsx("path",{className:"route-broken",d:"M268 173v32c0 25 20 45 45 45h28"}),t.jsx("path",{className:"route-cross",d:"M326 240l28 28m0-28l-28 28"}),t.jsxs("g",{className:"flag",children:[t.jsx("path",{d:"M438 72l38 17-20 23-38-17z"}),t.jsx("path",{d:"M423 96l-15 70"})]})]}),t.jsx("span",{className:"fh-error-review-stamp",children:"Play under review"})]}),t.jsxs("div",{className:"fh-error-copy",children:[t.jsxs("p",{className:"fh-error-eyebrow",children:[t.jsx("span",{"aria-hidden":"true"})," Flag on the play"]}),t.jsx("h1",{children:s}),t.jsx("p",{className:"fh-error-message",children:a}),t.jsxs("div",{className:"fh-error-actions",children:[t.jsxs("button",{type:"button",className:"fh-error-primary",onClick:()=>_n({force:!0}),children:[t.jsx("span",{"aria-hidden":"true",children:"↻"})," Run it back"]}),t.jsx("a",{className:"fh-error-secondary",href:"/",children:"Back to the clubhouse"})]}),t.jsxs("details",{className:"fh-error-details",children:[t.jsx("summary",{children:"Booth review"}),t.jsx("code",{children:this.state.error.message||String(this.state.error)})]})]})]}),t.jsx("p",{className:"fh-error-footnote",children:"Your league history is safe. Your waiver decisions remain questionable."})]})}}const Ro=u.lazy(()=>k(()=>import("./DraftGraderLanding-DZfLD7xp.js"),__vite__mapDeps([77,1,2,3,4,5,78])).then(e=>({default:e.DraftGraderLanding}))),Po=u.lazy(()=>k(()=>import("./NewsletterLanding-B6Fom1tz.js"),__vite__mapDeps([79,1,4,2,3,5,80])).then(e=>({default:e.NewsletterLanding}))),_o=u.lazy(Z.museum),Ao=u.lazy(()=>k(()=>import("./Onboarding-DGbd6Iqa.js").then(e=>e.a),__vite__mapDeps([8,1,9,5,3,2,4,10])).then(e=>({default:e.Onboarding}))),$o=u.lazy(()=>k(()=>import("./AddLeague-DkuPfa0a.js"),__vite__mapDeps([81,1,5,3,9,11,19,82,4,35,83,39,2,84,85,10])).then(e=>({default:e.WizardV2Entry}))),Io=u.lazy(()=>k(()=>import("./AddLeague-DkuPfa0a.js"),__vite__mapDeps([81,1,5,3,9,11,19,82,4,35,83,39,2,84,85,10])).then(e=>({default:e.AddLeague}))),Oo=u.lazy(()=>k(()=>import("./LeagueReveal-UGXx8qkR.js"),__vite__mapDeps([86,1,51,4,2,3,52,11,5,55,13,87,88])).then(e=>({default:e.LeagueReveal}))),Fo=u.lazy(()=>k(()=>import("./RevealDocent-DoIXSd_v.js"),__vite__mapDeps([89,1,51,4,2,3,52,5,11,35,55,13,90])).then(e=>({default:e.RevealDocent})));function Do(){const[e]=wt();return e.get("classic")==="1"?t.jsx(Oo,{}):t.jsx(Fo,{})}const Mo=u.lazy(()=>k(()=>import("./LeagueDetail-Cc6f9hBp.js"),__vite__mapDeps([91,1,35,5,3,11,13,83,2,4,10])).then(e=>({default:e.LeagueDetail}))),Uo=u.lazy(Z.standings),qo=u.lazy(Z.records),An=u.lazy(()=>k(()=>import("./Upgrade-D9TpxErE.js"),__vite__mapDeps([92,1,18,3,5,4,19,2,20,93])).then(e=>({default:e.Upgrade}))),zo=u.lazy(Z["draft-history"]),Ho=u.lazy(Z["draft-grade"]),Bo=u.lazy(Z["cheat-sheet"]),Ko=u.lazy(()=>k(()=>import("./NewsletterStart-VzuHLdjH.js"),__vite__mapDeps([94,1,2,3,5,4])).then(e=>({default:e.NewsletterStart}))),Vo=u.lazy(()=>k(()=>import("./DraftGraderStart-K5XKoUfX.js"),__vite__mapDeps([95,1,2,3,5,4])).then(e=>({default:e.DraftGraderStart}))),Jo=u.lazy(Z["hall-of-fame"]),Go=u.lazy(()=>k(()=>import("./Recap-BKW8GhST.js"),__vite__mapDeps([96,1,18,3,5,4,19,2,20,11,13,97])).then(e=>({default:e.Recap}))),Wo=u.lazy(Z.rivalry),Qo=u.lazy(Z.historian),Yo=u.lazy(Z.timeline),$n=u.lazy(Z.newsletter),Zo=u.lazy(Z.transactions),Xo=u.lazy(Z.props),el=u.lazy(()=>k(()=>import("./PropsLayoutLab-Bb4hw8WO.js"),__vite__mapDeps([98,1,12,5,3,68,24,25,26,27,2,4,99])).then(e=>({default:e.PropsLayoutLab}))),tl=u.lazy(()=>k(()=>import("./InSeasonConceptLab-CKUrMhni.js"),__vite__mapDeps([100,
101,35,5,3,12,68,24,25,26,27,2,4,101])).then(e=>({default:e.InSeasonConceptLab}))),nl=u.lazy(()=>k(()=>import("./InSeasonProductLab-D2_wTpwM.js"),__vite__mapDeps([102,1,35,5,3,12,68,24,25,26,27,2,4,103,101])).then(e=>({default:e.InSeasonProductLab}))),sl=u.lazy(Z["trade-court"]),al=u.lazy(Z["power-rankings"]),il=u.lazy(Z.matchups),rl=u.lazy(()=>k(()=>import("./ManagerProfile-QPpNjFb0.js"),__vite__mapDeps([104,1,38,3,4,62,21,63,18,5,19,2,20,13,28,105])).then(e=>({default:e.ManagerProfile}))),ol=u.lazy(()=>k(()=>import("./LeagueLinkGate-kHBYkvcg.js"),__vite__mapDeps([0,1,2,3,4,5,6])).then(e=>({default:e.LeagueLinkGate}))),ll=u.lazy(()=>k(()=>import("./HistorianDock-DkFQOD6p.js"),__vite__mapDeps([106,1,51,4,2,3,52,53,54,18,5,19,20,55])).then(e=>({default:e.HistorianDock}))),cl=u.lazy(()=>k(()=>import("./PlayerProfile-CoHqiZHf.js"),__vite__mapDeps([107,1,18,3,5,4,19,2,20,13,105])).then(e=>({default:e.PlayerProfile}))),dl=u.lazy(()=>k(()=>import("./AdminShared-BvRdp25b.js"),__vite__mapDeps([108,1,59,3,2,4,5,109])).then(e=>({default:e.AdminGate}))),ul=u.lazy(()=>k(()=>import("./Overview-Bp3ELpFP.js"),__vite__mapDeps([110,1,111,59,3,2,112,108,4,5,109])).then(e=>({default:e.AdminOverview}))),ml=u.lazy(()=>k(()=>import("./Users-G0xDkpmc.js"),__vite__mapDeps([113,1,111,59,3,2,112,108,4,5,109])).then(e=>({default:e.AdminUsers}))),hl=u.lazy(()=>k(()=>import("./UserDetail-Bk71z2TF.js"),__vite__mapDeps([114,1,111,59,3,2,112,108,4,5,109])).then(e=>({default:e.AdminUserDetail}))),pl=u.lazy(()=>k(()=>import("./Leagues-Cfbvqn0h.js"),__vite__mapDeps([115,1,111,59,3,2,112,108,4,5,109])).then(e=>({default:e.AdminLeagues}))),fl=u.lazy(()=>k(()=>import("./Ingestion-Da3b-Jrd.js"),__vite__mapDeps([116,1,5,3,111,59,2,112,108,4,109,117])).then(e=>({default:e.AdminIngestion}))),gl=u.lazy(()=>k(()=>import("./Scoring-B-3TXDqn.js"),__vite__mapDeps([118,1,111,59,3,2,112,108,4,5,109])).then(e=>({default:e.AdminScoring}))),yl=u.lazy(()=>k(()=>import("./Revenue-DyS9BB-J.js"),__vite__mapDeps([119,1,111,59,3,2,112,108,4,5,109])).then(e=>({default:e.AdminRevenue}))),xl=u.lazy(()=>k(()=>import("./Funnel-B6VyrHYb.js"),__vite__mapDeps([120,1,111,59,3,2,112,108,4,5,109])).then(e=>({default:e.AdminFunnelView}))),jl=u.lazy(()=>k(()=>
10import("./MagicLinks-CFZzt-p_.js"),__vite__mapDeps([121,1,111,59,3,2,112,108,4,5,109])).then(e=>({default:e.AdminMagicLinks}))),vl=u.lazy(()=>k(()=>import("./Lifecycle-CE07r-Ig.js"),__vite__mapDeps([122,1,59,3,111,2,112,108,4,5,109])).then(e=>({default:e.AdminLifecycle}))),bl=u.lazy(()=>k(()=>import("./Newsletter-LFp_RhUR.js"),__vite__mapDeps([123,1,5,3,59,111,2,112,108,4,109,124])).then(e=>({default:e.AdminNewsletter}))),wl=u.lazy(()=>k(()=>import("./Deliverability-D64zo5fE.js"),__vite__mapDeps([125,1,5,3,111,59,2,112,108,4,109])).then(e=>({default:e.AdminDeliverability}))),Sl=u.lazy(()=>k(()=>import("./AiConversations-DD-yF8pm.js"),__vite__mapDeps([126,1,111,59,3,2,112,108,4,5,109])).then(e=>({default:e.AdminAiConversations}))),Nl=u.lazy(()=>k(()=>import("./LeagueDetail-qYbLTE_w.js"),__vite__mapDeps([127,1,111,59,3,2,112,108,4,5,109])).then(e=>({default:e.AdminLeagueDetail}))),kl=u.lazy(()=>k(()=>import("./Profile-Dbdt9BKg.js"),__vite__mapDeps([128,1,111,59,3,2,112,129,4,5])).then(e=>({default:e.Profile}))),El=u.lazy(()=>k(()=>import("./Integrations-BY6lPCBp.js"),__vite__mapDeps([130,1,82,5,3,4,2,9,111,59,112])).then(e=>({default:e.Integrations}))),Tl=u.lazy(()=>k(()=>import("./Billing-eK-NcnoL.js"),__vite__mapDeps([131,1,111,59,3,2,112,129,4,18,5,19,20,55,13,132])).then(e=>({default:e.Billing}))),Cl=u.lazy(()=>k(()=>import("./General-BavDOESU.js"),__vite__mapDeps([133,1,111,59,3,2,112,4,18,5,19,20,134])).then(e=>({default:e.LeagueGeneral}))),Ll=u.lazy(()=>k(()=>import("./Seasons-DE4pcd7M.js"),__vite__mapDeps([135,1,5,3,4,130,82,2,9,111,59,112,11,13,134,83,39])).then(e=>({default:e.LeagueSeasons}))),Rl=u.lazy(()=>k(()=>import("./Teams-DeOrizbn.js"),__vite__mapDeps([136,1,13,5,3,16,4,2,17,111,59,112,87,84,35,134,137])).then(e=>({default:e.LeagueTeams})));function Pl(){var i,r,c;const e=ye(),{pathname:n,search:s}=me(),a=(r=(i=e.data)==null?void 0:i.user)==null?void 0:r.email;if(u.useEffect(()=>{a&&Jn(a)},[a]),e.isLoading)return t.jsx(le,{});if(!((c=e.data)!=null&&c.user)){const l=zn(n);return l?t.jsx(u.Suspense,{fallback:t.jsx(le,{}),children:t.jsx(ol,{page:l})}):n.startsWith("/draft-grader/start")?t.jsx(ae,{to:`/draft-grader${s}`,replace:!0}):n.startsWith("/newsletter/start")?t.jsx(ae,{to:`/newsletter${s}`,replace:!0}):t.jsx(ae,{to:`/login?next=${encodeURIComponent(`${n}${s}`)}`,replace:!0})}return t.jsxs(_s,{children:[t.jsx(li,{}),t.jsx(wo,{}),n!=="/add-league"&&t.jsx(qa,{}),t.jsx(u.Suspense,{fallback:t.jsx(le,{}),children:t.jsx(In,{})}),t.jsx(u.Suspense,{fallback:null,children:t.jsx(ll,{})})]})}function _l(){var n;const e=ye();return Qn("museum"),e.isLoading?t.jsx(le,{}):(n=e.data)!=null&&n.user?t.jsx(ae,{to:"/museum",replace:!0}):t.jsx(br,{})}function se({page:e}){const{leagueId:n,isLoading:s,leagues:a}=_t(),i=we(),{search:r}=me();if(Qn(e),s)return t.jsx(le,{});if(a.isError)return t.jsx(bo,{onRetry:()=>a.refetch()});if(!n)return t.jsx(ae,{to:"/onboarding",replace:!0});const c={museum:be,standings:us,"hall-of-fame":st,records:xt,rivalry:ys,transactions:ms,"draft-intelligence":Br,"draft
10-history":at,"draft-grade":fs,"cheat-sheet":gs,historian:Kr,timeline:xs,props:At,"trade-court":$t,"power-rankings":hs,matchups:ps},l=e==="manager"&&i.groupId?Vr(i.groupId,n):e==="player"&&i.playerKey?Jr(i.playerKey,n):(c[e]??be)(n);return t.jsx(ae,{to:`${l}${r}`,replace:!0})}function Al(){var n,s;const e=ye();return e.isLoading?t.jsx(le,{}):(s=(n=e.data)==null?void 0:n.features)!=null&&s.inSeasonAccess?t.jsx(In,{}):t.jsx(ae,{to:"/museum",replace:!0})}function $l(){const e=we();return t.jsx(ae,{to:at(e.leagueId),replace:!0})}function Il(){const{leagueId:e}=we();return t.jsx(ae,{to:at(e),replace:!0})}function B({view:e,scope:n="history"}){const s=we(),a=[s.leagueId,s.groupId,s.playerKey,s.season].filter(Boolean).join(":");return t.jsx(Ca,{leagueId:s.leagueId,season:s.season,scope:n,children:t.jsx(e,{},a)})}function fe({tab:e}){const{id:n,leagueId:s}=we(),a=s??n??"";return t.jsx(ae,{to:Re(e==="members"?"teams":e==="danger"?"general":e??"seasons",a)+(e==="members"?"#invite-manager":e==="danger"?"#league-administration":""),replace:!0})}function Ol(){const{id:e}=we();return t.jsx(ae,{to:vs(e??""),replace:!0})}function Fl(){const{search:e}=me();return t.jsx(ae,{to:`/add-league${e}`,replace:!0})}function Dl(){const{pathname:e,search:n}=me(),s=u.useRef(!0);return u.useEffect(()=>{if(ui(e,n),s.current){s.current=!1;return}Xe("PageVisit"),Rt("PageView")},[e,n]),null}function Ml(){var i;const n=(i=ye().data)==null?void 0:i.user,{pathname:s,search:a}=me();return u.useEffect(()=>{if(!n)return;const r=s==="/draft-grader/start"||s.startsWith("/draft-grade")||s==="/add-league"&&new URLSearchParams(a).get("intent")==="draft-grade";bi(n),wi(n),Ni(n).then(()=>ki(n,{...r?{contentName:"Draft Grader"}:{}}))},[s,a,n]),null}function Ul(){var s,a;const n=(a=(s=ye().data)==null?void 0:s.user)==null?void 0:a.id;return u.useEffect(()=>{if(!n)return;let i=0,r;const c=()=>{document.visibilityState!=="visible"||Date.now()-i<3e4||(i=Date.now(),Da({id:n}).then(l=>{l==="failed"&&(r=setTimeout(c,31e3))}))};return c(),document.addEventListener("visibilitychange",c),()=>{clearTimeout(r),document.removeEventListener("visibilitychange",c)}},[n]),null}function ql(){return t.jsxs(zs,{children:[t.jsx(Dl,{}),t.jsx(Ml,{}),t.jsx(Ul,{}),t.jsxs(Hs,{children:[t.jsx(g,{path:"/",element:t.jsx(_l,{})}),t.jsx(g,{path:"/login",element:t.jsx(ho,{})}),t.jsx(g,{path:"/join/:token",element:t.jsx(xo,{})}),t.jsx(g,{path:"/draft-grader",element:t.jsx(u.Suspense,{fallback:t.jsx(le,{}),children:t.jsx(Ro,{})})}),t.jsx(g,{path:"/newsletter",element:t.jsx(u.Suspense,{fallback:t.jsx(le,{}),children:t.jsx(Po,{})})}),t.jsxs(g,{element:t.jsx(Pl,{}),children:[t.jsx(g,{path:"/onboarding",element:t.jsx(Ao,{})}),t.jsx(g,{path:"/reveal/:leagueId",element:t.jsx(B,{view:Do})}),t.jsx(g,{path:"/museum",element:t.jsx(se,{page:"museum"})}),t.jsx(g,{path:"/museum/:leagueId",element:t.jsx(B,{view:_o})}),t.jsx(g,{path:"/standings",element:t.jsx(se,{page:"standings"})}),t.jsx(g,{path:"/standings/:leagueId",element:t.jsx(B,{view:Uo})}),t.jsx(g,{path:"/records",element:t.jsx(se,{page:"records"})}),t.jsx(g,{path:"/records/:leagueId",element:t.jsx(B,{view:qo})}),t.jsx(g,{path:"/upgrade",element:t.jsx(B,{view:An})}),t.jsx(g,{path:"/upgrade/:leagueId",element:t.jsx(B,{view:An})}),t.jsx(g,{path:"/draft-grader/start",element:t.jsx(Vo,{})}),t.jsx(g,{path:"/newsletter/start",element:t.jsx(Ko,{})}),t.jsx(g,{path:"/draft-history",element:t.jsx(se,{page:"draft-history"})}),t.jsx(g,{path:"/draft-history/:leagueId",element:t.jsx(B,{view:zo})}),t.jsx(g,{path:"/draft-grade",element:t.jsx(se,{page:"draft-grade"})}),t.jsx(g,{path:"/draft-grade/:leagueId",element:t.jsx(B,{view:Ho})}),t.jsx(g,{path:"/mock-draft",element:t.jsx(ae,{to:"/draft-history",replace:!0})}),t.jsx(g,{path:"/mock-draft/:leagueId",element:t.jsx($l,{})}),t.jsx(g,{path:"/draft-intelligence",element:t.jsx(ae,{to:"/draft-history",replace:!0})}),t.jsx(g,{path:"/draft-intelligence/:leagueId",element:t.jsx(Il,{})}),t.jsx(g,{path:"/cheat-sheet",element:t.jsx(se,{page:"cheat-sheet"})}),t.jsx(g,{path:"/cheat-sheet/:leagueId",element:t.jsx(B,{view:Bo})}),t.jsx(g,{path:"/hall-of-fame",element:t.jsx(se,{page:"hall-of-fame"})}),t.jsx(g,{path:"/hall-of-fame/:leagueId",element:t.jsx(B,{view:Jo})}),t.jsx(g,{path:"/recap/:leagueId/:season",element:t.jsx(B,{view:Go})}),t.jsx(g,{path:"/rivalry",element:t.jsx(se,{page:"rivalry"})}),t.jsx(g,{path:"/rivalry/:leagueId",element:t.jsx(B,{view:Wo})}),t.jsx(g,{path:"/historian",element:t.jsx(se,{page:"historian"})}),t.jsx(g,{path:"/historian/:leagueId",element:t.jsx(B,{view:Qo})}),t.jsx(g,{path:"/timeline",element:t.jsx(se,{page:"timeline"})}),t.jsx(g,{path:"/timeline/:leagueId",element:t.jsx(B,{view:Yo})}),t.jsx(g,{path:"/newsletter/:leagueId",element:t.jsx(B,{view:$n})}),t.jsx(g,{path:"/newsletter/:leagueId/:issueKey",element:t.jsx(B,{view:$n})}),t.jsx(g,{path:"/transactions",element:t.jsx(se,{page:"transactions"})}),t.jsx(g,{path:"/transactions/:leagueId",element:t.jsx(B,{view:Zo})}),t.jsxs(g,{element:t.jsx(Al,{}),children:[t.jsx(g,{path:"/props",element:t.jsx(se,{page:"props"})}),t.jsx(g,{path:"/props/:leagueId",element:t.jsx(B,{view:Xo,scope:"current"})}),t.jsx(g,{path:"/props-layouts/:leagueId",element:t.jsx(B,{view:el,scope:"current"})}),t.jsx(g,{path:"/in-season-layouts/:leagueId",element:t.jsx(B,{view:tl,scope:"current"})}),t.jsx(g,{path:"/in-season-products/:leagueId",element:t.jsx(B,{view:nl,scope:"current"})}),t.jsx(g,{path:"/trade-court",element:t.jsx(se,{page:"trade-court"})}),t.jsx(g,{path:"/trade-court/:leagueId",element:t.jsx(B,{view:sl,scope:"current"})}),t.jsx(g,{path:"/power-rankings",element:t.jsx(se,{page:"power-rankings"})}),t.jsx(g,{path:"/power-rankings/:leagueId",element:t.jsx(B,{view:al,scope:"current"})}),t.jsx(g,{path:"/matchups",element:t.jsx(se,{page:"matchups"})}),t.jsx(g,{path:"/matchups/:leagueId",element:t.jsx(B,{view:il,scope:"current"})})]}),t.jsx(g,{path:"/managers/:groupId",element:t.jsx(se,{page:"manager"})}),t.jsx(g,{path:"/managers/:groupId/:leagueId",element:t.jsx(B,{view:rl})}),t.jsx(g,{path:"/players/:playerKey",element:t.jsx(se,{page:"player"})}),t.jsx(g,{path:"/players/:playerKey/:leagueId",element:t.jsx(B,{view:cl})}),t.jsx(g,{path:"/add-league",element:t.jsx(Io,{})}),t.jsx(g,{path:"/wizard-v2",element:t.jsx($o,{})}),t.jsx(g,{path:"/import",element:t.jsx(Fl,{})}),t.jsxs(g,{element:t.jsx(dl,{}),children:[t.jsx(g,{path:"/admin",element:t.jsx(ul,{})}),t.jsx(g,{path:"/admin/users",element:t.jsx(ml,{})}),t.jsx(g,{path:"/admin/users/:userId",element:t.jsx(hl,{})}),t.jsx(g,{path:"/admin/leagues",element:t.jsx(pl,{})}),t.jsx(g,{path:"/admin/ingestion",element:t.jsx(fl,{})}),t.jsx(g,{path:"/admin/scoring",element:t.jsx(gl,{})}),t.jsx(g,{path:"/admin/revenue",element:t.jsx(yl,{})}),t.jsx(g,{path:"/admin/funnel",element:t.jsx(xl,{})}),t.jsx(g,{path:"/admin/lifecycle",element:t.jsx(vl,{})}),t.jsx(g,{path:"/admin/newsletter",element:t.jsx(bl,{})}),t.jsx(g,{path:"/admin/deliverability",element:t.jsx(wl,{})}),t.jsx(g,{path:"/admin/ai-conversations",element:t.jsx(Sl,{})}),t.jsx(g,{path:"/admin/magic-links",element:t.jsx(jl,{})}),t.jsx(g,{path:"/admin/leagues/:leagueId",element:t.jsx(Nl,{})})]}),t.jsx(g,{path:"/account",element:t.jsx(ae,{to:"/account/profile",replace:!0})}),t.jsx(g,{path:"/account/profile",element:t.jsx(kl,{})}),t.jsx(g,{path:"/account/integrations",element:t.jsx(El,{})}),t.jsx(g,{path:"/account/billing",element:t.jsx(Tl,{})}),t.jsx(g,{path:"/settings",element:t.jsx(ae,{to:"/account/profile",replace:!0})}),t.jsx(g,{path:"/league/:leagueId",element:t.jsx(B,{view:Mo})}),t.jsx(g,{path:"/leagues/:id",element:t.jsx(Ol,{})}),t.jsx(g,{path:"/settings/:leagueId",element:t.jsx(fe,{})}),t.jsx(g,{path:"/settings/general/:leagueId",element:t.jsx(Cl,{})}),t.jsx(g,{path:"/settings/seasons/:leagueId",element:t.jsx(Ll,{})}),t.jsx(g,{path:"/settings/teams/:leagueId",element:t.jsx(Rl,{})}),t.jsx(g,{path:"/settings/members/:leagueId",element:t.jsx(fe,{tab:"members"})}),t.jsx(g,{path:"/settings/danger/:leagueId",element:t.jsx(fe,{tab:"danger"})}
10),t.jsx(g,{path:"/leagues/:id/settings",element:t.jsx(fe,{})}),t.jsx(g,{path:"/leagues/:id/settings/general",element:t.jsx(fe,{tab:"general"})}),t.jsx(g,{path:"/leagues/:id/settings/seasons",element:t.jsx(fe,{tab:"seasons"})}),t.jsx(g,{path:"/leagues/:id/settings/teams",element:t.jsx(fe,{tab:"teams"})}),t.jsx(g,{path:"/leagues/:id/settings/members",element:t.jsx(fe,{tab:"members"})}),t.jsx(g,{path:"/leagues/:id/settings/danger",element:t.jsx(fe,{tab:"danger"})}),t.jsx(g,{path:"/leagues/:id/manage",element:t.jsx(fe,{tab:"teams"})})]}),t.jsx(g,{path:"*",element:t.jsxs("main",{className:"ui-screen",children:[t.jsx("title",{children:"Page not found · Fantasy HofF"}),t.jsx("meta",{name:"robots",content:"noindex"}),t.jsxs("div",{className:"ui-screen-inner",children:[t.jsx("p",{className:"ui-screen-label",children:"404 · Fantasy HofF"}),t.jsx("h1",{className:"ui-screen-title",children:"Page not found"}),t.jsx("p",{className:"ui-screen-note",children:"This link may be outdated, or the address may be incorrect."}),t.jsx("a",{className:"ui-screen-action",href:"/",children:"Return to Fantasy HofF"})]})]})})]})]})}const zl=6,Hl=5e3;function Bl(e,n){return qn(n)?e<zl:n instanceof ue&&n.status>=400&&n.status<500?!1:e<2}function Kl(e,n){return qn(n)?Hl:Math.min(1e3*2**e,3e4)}const Vl=new Ms({defaultOptions:{queries:{staleTime:30*1e3,refetchOnWindowFocus:!1,retry:Bl,retryDelay:Kl},mutations:{retry:!1}}});Lo();fi();yi();Aa();Ds.createRoot(document.getElementById("root")).render(t.jsx(_s,{children:t.jsx(Us,{client:Vl,children:t.jsx(ql,{})})}));export{be as $,os as A,Le as B,Ji as C,ic as D,et as E,Pt as F,ue as G,Td as H,lu as I,Ur as J,_t as K,Ud as L,zd as M,ec as N,ja as O,Bi as P,Xl as Q,ba as R,gn as S,as as T,nc as U,sc as V,kc as W,Zl as X,io as Y,ru as Z,tu as _,Ze as a,qc as a$,at as a0,Jd as a1,Re as a2,Ad as a3,_d as a4,ts as a5,Sc as a6,wc as a7,_r as a8,kn as a9,us as aA,Jr as aB,Dd as aC,cc as aD,oc as aE,Md as aF,qr as aG,Ua as aH,Cs as aI,dc as aJ,Wn as aK,cs as aL,Fe as aM,Es as aN,ks as aO,Ts as aP,Kr as aQ,Ec as aR,Ac as aS,Oc as aT,ed as aU,Uc as aV,Xc as aW,sd as aX,nd as aY,td as aZ,ad as a_,bs as aa,eo as ab,to as ac,vt as ad,xc as ae,vc as af,le as ag,no as ah,au as ai,xt as aj,ms as ak,xs as al,su as am,Ns as an,kd as ao,wn as ap,Xe as aq,bo as ar,bc as as,Ss as at,Vr as au,st as av,At as aw,$t as ax,hs as ay,ps as az,ze as b,$d as b$,Tc as b0,Cc as b1,Lc as b2,zc as b3,Rc as b4,Pc as b5,Sd as b6,_c as b7,Nd as b8,Fc as b9,ni as bA,si as bB,nt as bC,Ri as bD,Qd as bE,Yd as bF,rc as bG,Vl as bH,cn as bI,yc as bJ,ai as bK,Ic as bL,$c as bM,Bc as bN,rd as bO,od as bP,Hc as bQ,id as bR,mc as bS,pc as bT,hc as bU,Ld as bV,Pd as bW,Hd as bX,Bd as bY,Kd as bZ,Rd as b_,Dc as ba,Kc as bb,Vc as bc,Jc as bd,Gc as be,Wc as bf,Yc as bg,Zc as bh,Qc as bi,Mc as bj,fd as bk,gd as bl,yd as bm,cd as bn,ld as bo,dd as bp,ud as bq,md as br,hd as bs,xd as bt,pd as bu,jd as bv,vd as bw,bd as bx,wd as by,uc as bz,Hi as c,Id as c0,Od as c1,Fd as c2,Vd as c3,qd as c4,Gd as c5,Wd as c6,Xd as c7,eu as c8,Zd as c9,ou as ca,ac as cb,js as cc,iu as cd,jc as ce,Dr as cf,lc as cg,Wa as ch,Ja as ci,gc as cj,Ka as ck,fc as cl,qn as cm,nu as cn,fs as co,cu as cp,Mi as cq,gt as cr,Ki as d,ur as e,pr as f,Nc as g,hr as h,ht as i,or as j,f as k,Oe as l,Rt as m,Ei as n,ji as o,tt as p,Dn as q,mr as r,fa as s,$ as t,ye as u,tc as v,Ed as w,Mr as x,ds as y,Cd as z};

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.