1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3253],{648:(e,r,a)=>{a.d(r,{B:()=>t});function t(e){let r={};for(let f of e){var a,t,n,l,s,o,i,c,d,u,p,m;if(!f.gameId)continue;let e={gameId:f.gameId,price:null!=(i=null==(a=f.odds)?void 0:a.price)?i:null,favAbbr:null!=(c=null==(t=f.odds)?void 0:t.favAbbr)?c:null,undAbbr:null!=(d=null==(n=f.odds)?void 0:n.undAbbr)?d:null,trend:null!=(u=null==(l=f.odds)?void 0:l.trend)?u:null,marketUrl:null!=(p=null==(s=f.odds)?void 0:s.marketUrl)?p:null,fetchedAt:null,matched:null!=f.odds,isFinal:null!=(m=null==(o=f.odds)?void 0:o.isFinal)&&m},x=r[f.gameId];(null==x||!x.matched||e.matched)&&(r[f.gameId]=e)}return r}},738:(e,r,a)=>{a.d(r,{C:()=>t});function t(e){try{let r=new URL(e);if("polymarket.com"!==r.hostname&&!r.hostname.endsWith(".polymarket.com"))return e;return r.searchParams.set("r","Worldbaseballnetwork"),r.toString()}catch(r){return e}}},855:(e,r,a)=>{a.d(r,{X:()=>g});var t=a(4853),n=a(6182),l=a(3105),s=a(2275),o=a(4143),i=a(2624),c=a(7681),d=a(738),u=a(9350),p=a(4348);function m(e){let{service:r,prefix:a,leagueAbbr:n,policy:l}=e,s=(0,t.jsxs)(t.Fragment,{children:[a," ",r.name,"\xa0â"]}),o={fontSize:"10px",fontFamily:"var(--font-display)",fontWeight:800,letterSpacing:"0.05em",textTransform:"uppercase",color:"var(--text-secondary)"};return r.url?(0,t.jsxs)("a",{href:r.url,target:"_blank",rel:"noopener noreferrer",onClick:e=>e.stopPropagation(),onClickCapture:()=>(0,p.sx)("watch_service_click",{service:(0,p.US)(r.name),league:(0,p.US)(n)},l),className:"hover:text-accent transition-colors inline-flex items-center gap-1",style:o,children:[(0,t.jsx)("span",{"aria-hidden":!0,style:{fontSize:"11px"},children:"\uD83D\uDCFA"}),s]}):(0,t.jsxs)("span",{className:"inline-flex items-center gap-1",style:o,children:[(0,t.jsx)("span",{"aria-hidden":!0,style:{fontSize:"11px"},children:"\uD83D\uDCFA"}),s]})}function f(e){let{leagueAbbr:r,homeAbbr:a,awayAbbr:n,policy:l}=e,s=(0,i.E)()(r),c=(null==r?void 0:r.toUpperCase())==="MLB",d=c?(0,o.Il)(a):null,u=c?(0,o.Il)(n):null,p=d&&u&&d.name===u.name;if(!s&&!d&&!u)return null;let f=!!(d||u);return(0,t.jsxs)("span",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[p?(0,t.jsx)(m,{service:d,prefix:"Local:",leagueAbbr:r,policy:l}):(0,t.jsxs)(t.Fragment,{children:[d&&(0,t.jsx)(m,{service:d,prefix:"".concat(a,":"),leagueAbbr:r,policy:l}),u&&(0,t.jsx)(m,{service:u,prefix:"".concat(n,":"),leagueAbbr:r,policy:l})]}),s&&(0,t.jsx)(m,{service:s,prefix:f?"Out-of-market:":"Watch on",leagueAbbr:r,policy:l})]})}function x(e){let{abbr:r}=e,{bg:a,textColor:n}=(0,s.Ll)(r);return(0,t.jsx)("div",{className:"w-7 h-7 rounded-full flex items-center justify-center shrink-0",style:{backgroundColor:a},children:(0,t.jsx)("span",{className:"font-display font-black leading-none",style:{fontSize:"10px",color:n},children:r.slice(0,3)})})}function b(e){let{price:r,trend:a,muted:n,marketUrl:l,leagueAbbr:s,policy:o}=e,i=(0,t.jsxs)("span",{className:"flex flex-col items-center leading-none",children:[(0,t.jsx)("span",{style:{fontSize:"7px",fontFamily:"var(--font-display)",fontWeight:900,letterSpacing:"0.08em",textTransform:"uppercase",color:n?"var(--text-muted)":"var(--text-secondary)",display:"block",marginBottom:"2px",lineHeight:1},children:"POLYMARKET"}),(0,t.jsxs)("span",{className:"flex items-center gap-0.5",children:[(0,t.jsxs)("span",{style:{fontSize:"0.75rem",fontFamily:"var(--font-display)",fontWeight:800,fontVariantNumeric:"tabular-nums",color:n?"var(--text-secondary)":"var(--accent)"},children:[r,"\xa2"]}),!n&&null!=a&&(0,t.jsx)("span",{style:{color:"up"===a?"var(--positive)":"var(--negative)",fontSize:"0.75rem"},children:"up"===a?"â":"â"})]})]}),c={background:"var(--bg)",border:"1px solid ".concat(n?"var(--border)":"var(--border-strong)"),padding:"5px 10px",borderRadius:"var(--r-sm)",display:"inline-flex",alignItems:"center",minHeight:"40px",cursor:l?"pointer":"default",transition:"border-color 160ms ease, transform 160ms ease"};return l?(0,t.jsx)("a",{href:(0,d.C)(l),target:"_blank",rel:"noopener noreferrer sponsored",onClick:e=>e.stopPropagation(),onClickCapture:()=>(0,p.sx)("odds_outbound_click",{market:"polymarket",league:(0,p.US)(s),surface:"game_card"},o),style:c,onMouseEnter:e=>{e.currentTarget.style.borderColor="var(--accent)",e.currentTarget.style.transform="translateY(-1px)"},onMouseLeave:e=>{e.currentTarget.style.borderColor=n?"var(--border)":"var(--border-strong)",e.currentTarget.style.transform="translateY(0)"},children:i}):(0,t.jsx)("span",{style:c,children:i})}function h(e){let r="G".concat(e.dhGame);if("final"===e.status){var a,t;return"".concat(r," Final ").concat(null!=(a=e.awayScore)?a:"â","-").concat(null!=(t=e.homeScore)?t:"â")}return"live"===e.status?e.inning?"".concat(r," LIVE \xb7 ").concat(e.inning):"".concat(r," LIVE"):"postponed"===e.status?"".concat(r," PPD"):"suspended"===e.status?"".concat(r," SUSP"):e.startTime?"".concat(r," ").concat(e.startTime," ET"):"".concat(r," Upcoming")}function g(e){var r,a,s,o,i,d,p,m,g,y,v,A;let{game:S,extraStyle:C,oddsMap:j,dhSibling:N}=e,F=(0,n.useRouter)(),L=(0,c.N)(),{policy:E}=(0,u.p)(),I=L(S.leagueAbbr),k="live"===S.status,T="final"===S.status,w="upcoming"===S.status,D="postponed"===S.status,B="suspended"===S.status,W=T&&(null!=(r=S.awayScore)?r:0)>(null!=(a=S.homeScore)?a:0),P=T&&(null!=(s=S.homeScore)?s:0)>(null!=(o=S.awayScore)?o:0),[z,U]=(0,l.useState)(null),G=j&&S.gameId?j[S.gameId]:z;(0,l.useEffect)(()=>
1{if(void 0!==j||!S.gameId)return;let e=!1,r=async()=>{try{let r=await fetch("/api/odds?gameId=".concat(S.gameId)),a=await r.json();e||U(a)}catch(e){}};r();let a=setInterval(r,k?6e4:3e5);return()=>{e=!0,clearInterval(a)}},[S.gameId,k,j]);let M=(null==G?void 0:G.matched)&&(null==G?void 0:G.price)!=null,R=(null!=(i=S.awayWinProb)?i:0)>=(null!=(d=S.homeWinProb)?d:0)?S.awayAbbr:S.homeAbbr,O=null!=(g=null==G?void 0:G.price)?g:Math.max(null!=(p=S.awayWinProb)?p:0,null!=(m=S.homeWinProb)?m:0),Y=null!=(y=null==G?void 0:G.favAbbr)?y:R,V=S.gameId?"/scores/".concat(S.gameId):"/";return(0,t.jsxs)("div",{role:"link",tabIndex:0,className:"relative flex flex-col p-5 cursor-pointer group/card",style:{scrollSnapAlign:"start",background:"var(--surface)",border:"1px solid var(--border)",borderRadius:"var(--r-md)",boxShadow:"var(--shadow-card)",transition:"all 280ms cubic-bezier(0.4, 0, 0.2, 1)",...C},onClick:e=>{e.target.closest("a")||F.push(V)},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&F.push(V)},onMouseEnter:e=>{e.currentTarget.style.boxShadow="var(--shadow-hover)",e.currentTarget.style.transform="translateY(-4px)"},onMouseLeave:e=>{e.currentTarget.style.boxShadow="var(--shadow-card)",e.currentTarget.style.transform="translateY(0)"},children:[(0,t.jsx)("a",{href:V,"aria-hidden":"true",tabIndex:-1,className:"absolute inset-0",style:{pointerEvents:"none",borderRadius:"inherit"}}),(0,t.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,t.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("span",{className:"uppercase",style:{fontSize:"0.6875rem",fontFamily:"var(--font-display)",fontWeight:900,letterSpacing:"0.09em",color:"var(--accent)"},children:S.subLeague?"".concat(S.leagueAbbr," \xb7 ").concat(S.subLeague):S.leagueAbbr}),S.dhGame&&(0,t.jsxs)("span",{className:"uppercase",style:{fontSize:"0.5625rem",fontFamily:"var(--font-display)",fontWeight:800,letterSpacing:"0.06em",color:"var(--text-secondary)",background:"var(--surface-raised)",border:"1px solid var(--border)",borderRadius:"999px",padding:"1px 7px",whiteSpace:"nowrap"},children:["Game ",S.dhGame]}),S.dhGame&&N&&(N.gameId?(0,t.jsx)("a",{href:"/scores/".concat(N.gameId),onClick:e=>{e.stopPropagation(),e.preventDefault(),F.push("/scores/".concat(N.gameId))},className:"uppercase hover:text-accent transition-colors",style:{fontSize:"0.5625rem",fontFamily:"var(--font-display)",fontWeight:800,letterSpacing:"0.06em",color:"live"===N.status?"var(--alert)":"var(--text-muted)",whiteSpace:"nowrap",fontVariantNumeric:"tabular-nums",textDecoration:"underline",textDecorationColor:"var(--border-strong)",textUnderlineOffset:"2px"},children:h(N)}):(0,t.jsx)("span",{className:"uppercase",style:{fontSize:"0.5625rem",fontFamily:"var(--font-display)",fontWeight:800,letterSpacing:"0.06em",color:"live"===N.status?"var(--alert)":"var(--text-muted)",whiteSpace:"nowrap",fontVariantNumeric:"tabular-nums"},children:h(N)})),I&&(0,t.jsxs)("span",{className:"truncate",style:{fontSize:"0.625rem",fontFamily:"var(--font-display)",fontWeight:700,letterSpacing:"0.04em",color:"var(--text-muted)",maxWidth:"9rem"},children:["Hosted in ",I]})]}),(0,t.jsxs)("span",{className:"flex items-center gap-1.5",style:{fontSize:"0.6875rem",fontFamily:"var(--font-display)",fontWeight:800},children:[k&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"live-dot"}),(0,t.jsx)("span",{style:{color:"var(--alert)"},children:S.inning?"LIVE \xb7 ".concat(S.inning):"LIVE"})]}),T&&(0,t.jsx)("span",{style:{color:"var(--text-secondary)"},children:"FINAL"}),w&&S.startTime&&(0,t.jsx)("span",{style:{color:"var(--text-secondary)"},children:"".concat(S.startTime," ET")}),B&&(0,t.jsx)("span",{className:"uppercase",title:"Suspended â will resume later",style:{color:"var(--text-secondary)",background:"var(--surface-raised)",border:"1px solid var(--border)",borderRadius:"999px",padding:"1px 8px",letterSpacing:"0.06em"},children:"SUSP"}),D&&(0,t.jsx)("span",{className:"uppercase",title:"Postponed",style:{color:"var(--text-secondary)",background:"var(--surface-raised)",border:"1px solid var(--border)",borderRadius:"999px",padding:"1px 8px",letterSpacing:"0.06em"},children:"PPD"})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(x,{abbr:S.awayAbbr}),(0,t.jsx)("span",{className:"font-display font-bold flex-1",style:{fontSize:"1rem",color:T&&!W?"var(--text-secondary)":"var(--text-primary)"},children:S.awayAbbr}),(k||T||B)&&(0,t.jsx)("span",{className:"font-display font-black tabular-nums",style:{fontSize:"1.25rem",fontVariantNumeric:"tabular-nums",color:T&&!W?"var(--text-secondary)":"var(--text-primary)"},children:null!=(v=S.awayScore)?v:"â"})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(x,{abbr:S.homeAbbr}),(0,t.jsx)("span",{className:"font-display font-bold flex-1",style:{fontSize:"1rem",color:T&&!P?"var(--text-secondary)":"var(--text-primary)"},children:S.homeAbbr}),(k||T||B)&&(0,t.jsx)("span",{className:"font-display font-black tabular-nums",style:{fontSize:"1.25rem",fontVariantNumeric:"tabular-nums",color:T&&!P?"var(--text-secondary)":"var(--text-primary)"},children:null!=(A=S.homeScore)?A:"â"})]})]}),(0,t.jsxs)("div",{className:"mt-auto pt-2.5 [margin-top:12px]",style:{borderTop:"1px solid var(--border)"},children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 min-h-[44px]",children:[k&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{style:{fontSize:"10px",fontFamily:"var(--font-display)",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--text-muted)"},children:"Live Odds"}),M&&(0,t.jsx)(b,{price:G.price,trend:G.trend,marketUrl:G.marketUrl,leagueAbbr:S.leagueAbbr,policy:E})]}),w&&(0,t.jsxs)(t.Fragment,{children:[O>0?(0,t.jsxs)("span",{style:{fontSize:"0.8125rem",fontFamily:"var(--font-display)",fontWeight:900,color:"var(--accent)",fontVariantNumeric:"tabular-nums"},children:[Y,"\xa0",O,"%"]}):(0,t.jsx)("span",{style:{fontSize:"10px",fontFamily:"var(--font-display)",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--text-muted)"},children:"Win Prob."}),M?(0,t.jsx)(b,{price:G.price,trend:G.trend,marketUrl:G.marketUrl,leagueAbbr:S.leagueAbbr,policy:E}):(0,t.jsx)("span",{style:{fontSize:"0.75rem",color:"var(--ink-500)"},children:"No market"})]}),B&&(0,t.jsx)("span",{style:{fontSize:"10px",fontFamily:"var(--font-display)",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--text-muted)"},children:"Suspended \xb7 Resumes later"}),D&&(0,t.jsx)("span",{style:{fontSize:"10px",fontFamily:"var(--font-display)",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--text-muted)"},children:"Postponed"}),T&&M&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{style:{fontSize:"10px",fontFamily:"var(--font-display)",fontWeight:900,textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--text-muted)"},children:"Closing Odds"}),(0,t.jsx)(b,{price:G.price,muted:!0,marketUrl:G.marketUrl,leagueAbbr:S.leagueAbbr,policy:E})]})]}),(k||w)&&(0,t.jsx)("div",{className:"pt-1.5",children:(0,t.jsx)(f,{leagueAbbr:S.leagueAbbr,homeAbbr:S.homeAbbr,awayAbbr:S.awayAbbr,policy:E})})]})]})}},2275:(e,r,a)=>{a.d(r,{Ll:()=>l});let t={NYY:"#0C2340",BOS:"#BD3039",LAD:"#005A9C",SF:"#FD5A1E",HOU:"#EB6E1F",TEX:"#003278",ATL:"#CE1141",NYM:"#002D72",MIN:"#002B5C",CLE:"#E31937",CHC:"#0E3386",MIL:"#FFC52F",CHW:"#27251F",DET:"#0C2340",KC:"#004687",TOR:"#134A8E",BAL:"#DF4601",TB:"#092C5C",NYY2:"#0C2340",OAK:"#003831",SEA:"#0C2C56",LAA:"#BA0021",ARI:"#A71930",COL:"#333366",SD:"#2F241D",STL:"#C41E3A",MIA:"#00A3E0",WAS:"#AB0003",PHI:"#E81828",PIT:"#27251F",CIN:"#C6011F",KIA:"#EA0029",SSG:"#CE0E2D",LG:"#C30452",DU:"#131230",NC:"#315288",KT:"#000000",YG:"#F97709",HT:"#FFDC00",SH:"#FF6600",YDB:"#003087",MEX:"#D6273B",MTY:"#1B458F",TIG:"#1A3A6B",NAV:"#006341",LIC:"#1E4A9C",AGU:"#FFB81C",EST:"#1A5490",GIG:"#CC0000",MAG:"#003F7D",CAR:"#D4002A",TOM:"#7C1E3F",NAR:"#F26722",CHA:"#0F2D52",CAÃ:"#00843D",YAQ:"#003087",VEN:"#5F259F",ALG:"#6CACE4",JAG:"#046A38",CAN:"#101820",CRI:"#F47B20",LEO:"#C8102E",SEN:"#1D428A",IND:"#1E5AA8",LTU:"#2E7D32"},n=new Set(["HT","MIL","AGU"]);function l(e){var r;return{bg:null!=(r=t[e])?r:"#2a2d35",textColor:n.has(e)?"#111418":"#ffffff"}}},5342:(e,r,a)=>{function t(e,r){var a;if(1!==e.dhGame&&2!==e.dhGame)return null;let t=1===e.dhGame?2:1;return null!=(a=r.find(r=>r.dhGame===t&&r.leagueAbbr===e.leagueAbbr&&r.awayAbbr===e.awayAbbr&&r.homeAbbr===e.homeAbbr&&r.gameDate===e.gameDate))?a:null}a.d(r,{A:()=>n,O:()=>t});let n=["ALL","MLB","KBO","NPB","LMB","MiLB","AFL","CCBL","DRAFT","LIDOM","LVBP","CPBL","CACG","LMP","LBPRC","LMBP","ELITE","ABL","SDC","SDA","WBC","WWC","U23","CLA","ASIA","GBL","EUC","EURO","PANAM","LPB","LLWS","NCAA"]}}]);
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.