@sensiblestats/widget-embed 0.31.1 → 0.31.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @sensiblestats/widget-embed
2
2
 
3
+ ## 0.31.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Add `greetingIsLead` to the club-fan dashboard payload type (consumed by widget-react's preview lead).
8
+
9
+ ## 0.31.3
10
+
11
+ ### Patch Changes
12
+
13
+ - Club match-preview tap: render the voiced lead at regular weight (not semibold) via a greetingIsLead flag, so it reads as a sentence rather than a heading.
14
+
15
+ ## 0.31.2
16
+
17
+ ### Patch Changes
18
+
19
+ - 2d55861: Betting cards: drop the league name from the header when a team pair fills it. The demoted competition now shows as its crest only, with the name kept in the meta title tooltip so it stays discoverable. Frees space in the tight header; the competition-as-hero case (no team pair) still shows the name.
20
+
3
21
  ## 0.31.1
4
22
 
5
23
  ### Patch Changes
@@ -34,7 +34,7 @@ Error generating stack: `+s.message+`
34
34
  `))+1))}let o="#".repeat(i),a=n.enter("headingAtx"),l=n.enter("phrasing");s.move(o+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
35
35
  `,...s.current()});return/^[\t ]/.test(u)&&(u=hr(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),l(),a(),u}Ip.peek=DE;function Ip(e){return e.value||""}function DE(){return"<"}Tp.peek=OE;function Tp(e,t,n,r){let i=Ui(n),s=i==='"'?"Quote":"Apostrophe",o=n.enter("image"),a=n.enter("label"),l=n.createTracker(r),u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${s}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),a()),u+=l.move(")"),o(),u}function OE(){return"!"}Np.peek=zE;function Np(e,t,n,r){let i=e.referenceType,s=n.enter("imageReference"),o=n.enter("label"),a=n.createTracker(r),l=a.move("!["),u=n.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),o();let c=n.stack;n.stack=[],o=n.enter("reference");let d=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return o(),n.stack=c,s(),i==="full"||!u||u!==d?l+=a.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function zE(){return"!"}Lp.peek=BE;function Lp(e,t,n){let r=e.value||"",i="`",s=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){let o=n.unsafe[s],a=n.compilePattern(o),l;if(o.atBreak)for(;l=a.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return i+r+i}function BE(){return"`"}function Mp(e,t){let n=Qr(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Pp.peek=FE;function Pp(e,t,n,r){let i=Ui(n),s=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r),a,l;if(Mp(e,n)){let c=n.stack;n.stack=[],a=n.enter("autolink");let d=o.move("<");return d+=o.move(n.containerPhrasing(e,{before:d,after:">",...o.current()})),d+=o.move(">"),a(),n.stack=c,d}a=n.enter("link"),l=n.enter("label");let u=o.move("[");return u+=o.move(n.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(n.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(l=n.enter("destinationRaw"),u+=o.move(n.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=n.enter(`title${s}`),u+=o.move(" "+i),u+=o.move(n.safe(e.title,{before:u,after:i,...o.current()})),u+=o.move(i),l()),u+=o.move(")"),a(),u}function FE(e,t,n){return Mp(e,n)?"<":"["}Rp.peek=UE;function Rp(e,t,n,r){let i=e.referenceType,s=n.enter("linkReference"),o=n.enter("label"),a=n.createTracker(r),l=a.move("["),u=n.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),o();let c=n.stack;n.stack=[],o=n.enter("reference");let d=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return o(),n.stack=c,s(),i==="full"||!u||u!==d?l+=a.move(d+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function UE(){return"["}function Hi(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function sv(e){let t=Hi(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function ov(e){let t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Pl(e){let t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function av(e,t,n,r){let i=n.enter("list"),s=n.bulletCurrent,o=e.ordered?ov(n):Hi(n),a=e.ordered?o==="."?")":".":sv(n),l=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let c=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),Pl(n)===o&&c){let d=-1;for(;++d<e.children.length;){let p=e.children[d];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(o=a),n.bulletCurrent=o;let u=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=s,i(),u}function lv(e){let t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function uv(e,t,n,r){let i=lv(n),s=n.bulletCurrent||Hi(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let o=s.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let a=n.createTracker(r);a.move(s+" ".repeat(o-s.length)),a.shift(o);let l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),c);return l(),u;function c(d,p,f){return p?(f?"":" ".repeat(o))+d:(f?s:s+" ".repeat(o-s.length))+d}}function cv(e,t,n,r){let i=n.enter("paragraph"),s=n.enter("phrasing"),o=n.containerPhrasing(e,r);return s(),i(),o}var Dp=mr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function dv(e,t,n,r){return(e.children.some(function(o){return Dp(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function pv(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Op.peek=QE;function Op(e,t,n,r){let i=pv(n),s=n.enter("strong"),o=n.createTracker(r),a=o.move(i+i),l=o.move(n.containerPhrasing(e,{after:i,before:a,...o.current()})),u=l.charCodeAt(0),c=Qi(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(l=hr(u)+l.slice(1));let d=l.charCodeAt(l.length-1),p=Qi(r.after.charCodeAt(0),d,i);p.inside&&(l=l.slice(0,-1)+hr(d));let f=o.move(i+i);return s(),n.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},a+l+f}function QE(e,t,n){return n.options.strong||"*"}function fv(e,t,n,r){return n.safe(e.value,r)}function mv(e){let t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function hv(e,t,n){let r=(Pl(n)+(n.options.ruleSpaces?" ":"")).repeat(mv(n));return n.options.ruleSpaces?r.slice(0,-1):r}var wo={blockquote:Kx,break:Sp,code:ev,definition:tv,emphasis:Ep,hardBreak:Sp,heading:iv,html:Ip,image:Tp,imageReference:Np,inlineCode:Lp,link:Pp,linkReference:Rp,list:av,listItem:uv,paragraph:cv,root:dv,strong:Op,text:fv,thematicBreak:hv};function Bp(){return{enter:{table:HE,tableData:gv,tableHeader:gv,tableRow:VE},exit:{codeText:WE,table:jE,tableData:zp,tableHeader:zp,tableRow:zp}}}function HE(e){let t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function jE(e){this.exit(e),this.data.inTable=void 0}function VE(e){this.enter({type:"tableRow",children:[]},e)}function zp(e){this.exit(e)}function gv(e){this.enter({type:"tableCell",children:[]},e)}function WE(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,_E));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function _E(e,t){return t==="|"?t:e}function Fp(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
36
36
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:o,tableCell:l,tableRow:a}};function o(f,h,y,A){return u(c(f,y,A),f.align)}function a(f,h,y,A){let m=d(f,y,A),g=u([m]);return g.slice(0,g.indexOf(`
37
- `))}function l(f,h,y,A){let m=y.enter("tableCell"),g=y.enter("phrasing"),w=y.containerPhrasing(f,{...A,before:s,after:s});return g(),m(),w}function u(f,h){return Jx(f,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function c(f,h,y){let A=f.children,m=-1,g=[],w=h.enter("table");for(;++m<A.length;)g[m]=d(A[m],h,y);return w(),g}function d(f,h,y){let A=f.children,m=-1,g=[],w=h.enter("tableRow");for(;++m<A.length;)g[m]=l(A[m],f,h,y);return w(),g}function p(f,h,y){let A=wo.inlineCode(f,h,y);return y.stack.includes("tableCell")&&(A=A.replace(/\|/g,"\\$&")),A}}function Up(){return{exit:{taskListCheckValueChecked:wv,taskListCheckValueUnchecked:wv,paragraph:XE}}}function Qp(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:JE}}}function wv(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function XE(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let n=this.stack[this.stack.length-1];n.type;let r=n.children[0];if(r&&r.type==="text"){let i=t.children,s=-1,o;for(;++s<i.length;){let a=i[s];if(a.type==="paragraph"){o=a;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function JE(e,t,n,r){let i=e.children[0],s=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);s&&a.move(o);let l=wo.listItem(e,t,n,{...r,...a.current()});return s&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+o}}function Hp(){return[xp(),kp(),Ap(),Bp(),Up()]}function jp(e){return{extensions:[vp(),bp(e),Cp(),Fp(e),Qp()]}}var KE={tokenize:$E,partial:!0},yv={tokenize:eI,partial:!0},xv={tokenize:tI,partial:!0},vv={tokenize:nI,partial:!0},qE={tokenize:rI,partial:!0},kv={name:"wwwAutolink",tokenize:GE,previous:Av},bv={name:"protocolAutolink",tokenize:ZE,previous:Cv},Mn={name:"emailAutolink",tokenize:YE,previous:Sv},fn={};function Wp(){return{text:fn}}var Yr=48;for(;Yr<123;)fn[Yr]=Mn,Yr++,Yr===58?Yr=65:Yr===91&&(Yr=97);fn[43]=Mn;fn[45]=Mn;fn[46]=Mn;fn[95]=Mn;fn[72]=[Mn,bv];fn[104]=[Mn,bv];fn[87]=[Mn,kv];fn[119]=[Mn,kv];function YE(e,t,n){let r=this,i,s;return o;function o(d){return!Vp(d)||!Sv.call(r,r.previous)||_p(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(d))}function a(d){return Vp(d)?(e.consume(d),a):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(qE,c,u)(d):d===45||d===95||Ne(d)?(s=!0,e.consume(d),l):c(d)}function u(d){return e.consume(d),i=!0,l}function c(d){return s&&i&&Qe(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function GE(e,t,n){let r=this;return i;function i(o){return o!==87&&o!==119||!Av.call(r,r.previous)||_p(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(KE,e.attempt(yv,e.attempt(xv,s),n),n)(o))}function s(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function ZE(e,t,n){let r=this,i="",s=!1;return o;function o(d){return(d===72||d===104)&&Cv.call(r,r.previous)&&!_p(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),a):n(d)}function a(d){if(Qe(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),a;if(d===58){let p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),s?u:(s=!0,l)):n(d)}function u(d){return d===null||Hr(d)||G(d)||dn(d)||jr(d)?n(d):e.attempt(yv,e.attempt(xv,c),n)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function $E(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),s):n(o)}function s(o){return o===null?n(o):t(o)}}function eI(e,t,n){let r,i,s;return o;function o(u){return u===46||u===95?e.check(vv,l,a)(u):u===null||G(u)||dn(u)||u!==45&&jr(u)?l(u):(s=!0,e.consume(u),o)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),o}function l(u){return i||r||!s?n(u):t(u)}}function tI(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(vv,t,s)(o):o===null||G(o)||dn(o)?t(o):(e.consume(o),i)}function s(o){return o===41&&r++,e.consume(o),i}}function nI(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),s):a===93?(e.consume(a),i):a===60||a===null||G(a)||dn(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||G(a)||dn(a)?t(a):r(a)}function s(a){return Qe(a)?o(a):n(a)}function o(a){return a===59?(e.consume(a),r):Qe(a)?(e.consume(a),o):n(a)}}function rI(e,t,n){return r;function r(s){return e.consume(s),i}function i(s){return Ne(s)?n(s):t(s)}}function Av(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||G(e)}function Cv(e){return!Qe(e)}function Sv(e){return!(e===47||Vp(e))}function Vp(e){return e===43||e===45||e===46||e===95||Ne(e)}function _p(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var iI={tokenize:dI,partial:!0};function Xp(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:lI,continuation:{tokenize:uI},exit:cI}},text:{91:{name:"gfmFootnoteCall",tokenize:aI},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:sI,resolveTo:oI}}}}function sI(e,t,n){let r=this,i=r.events.length,s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let l=r.events[i][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!o||!o._balanced)return n(l);let u=tt(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!s.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function oI(e,t){let n=e.length,r;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){r=e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;let o={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},l=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",s,t],["exit",s,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...l),e}function aI(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),s=0,o;return a;function a(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(s>999||d===93&&!o||d===null||d===91||G(d))return n(d);if(d===93){e.exit("chunkString");let p=e.exit("gfmFootnoteCallString");return i.includes(tt(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return G(d)||(o=!0),s++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),s++,u):u(d)}}function lI(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),s,o=0,a;return l;function l(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(h)}function c(h){if(o>999||h===93&&!a||h===null||h===91||G(h))return n(h);if(h===93){e.exit("chunkString");let y=e.exit("gfmFootnoteDefinitionLabelString");return s=tt(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return G(h)||(a=!0),o++,e.consume(h),h===92?d:c}function d(h){return h===91||h===92||h===93?(e.consume(h),o++,c):c(h)}function p(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(s)||i.push(s),H(e,f,"gfmFootnoteDefinitionWhitespace")):n(h)}function f(h){return t(h)}}function uI(e,t,n){return e.check(pn,t,e.attempt(iI,t,n))}function cI(e){e.exit("gfmFootnoteDefinition")}function dI(e,t,n){let r=this;return H(e,i,"gfmFootnoteDefinitionIndent",5);function i(s){let o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(s):n(s)}}function Jp(e){let n=(e||{}).singleTilde,r={name:"strikethrough",tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,a){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let u=l;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[l][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";let c={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[l][1].end)},d={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[l][1].start)},p=[["enter",c,a],["enter",o[u][1],a],["exit",o[u][1],a],["enter",d,a]],f=a.parser.constructs.insideSpan.null;f&&Pe(p,p.length,0,pr(f,o.slice(u+1,l),a)),Pe(p,p.length,0,[["exit",d,a],["enter",o[l][1],a],["exit",o[l][1],a],["exit",c,a]]),Pe(o,u-1,l-u+3,p),l=u+p.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function s(o,a,l){let u=this.previous,c=this.events,d=0;return p;function p(h){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(h):(o.enter("strikethroughSequenceTemporary"),f(h))}function f(h){let y=Ln(u);if(h===126)return d>1?l(h):(o.consume(h),d++,f);if(d<2&&!n)return l(h);let A=o.exit("strikethroughSequenceTemporary"),m=Ln(h);return A._open=!m||m===2&&!!y,A._close=!y||y===2&&!!m,a(h)}}}var Rl=class{constructor(){this.map=[]}add(t,n,r){pI(this,t,n,r)}consume(t){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let n=this.map.length,r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(let s of i)t.push(s);i=r.pop()}this.map.length=0}};function pI(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Ev(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Kp(){return{flow:{null:{name:"table",tokenize:fI,resolveAll:mI}}}}function fI(e,t,n){let r=this,i=0,s=0,o;return a;function a(k){let Y=r.events.length-1;for(;Y>-1;){let Q=r.events[Y][1].type;if(Q==="lineEnding"||Q==="linePrefix")Y--;else break}let K=Y>-1?r.events[Y][1].type:null,F=K==="tableHead"||K==="tableRow"?b:l;return F===b&&r.parser.lazy[r.now().line]?n(k):F(k)}function l(k){return e.enter("tableHead"),e.enter("tableRow"),u(k)}function u(k){return k===124||(o=!0,s+=1),c(k)}function c(k){return k===null?n(k):z(k)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),f):n(k):j(k)?H(e,c,"whitespace")(k):(s+=1,o&&(o=!1,i+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),o=!0,c):(e.enter("data"),d(k)))}function d(k){return k===null||k===124||G(k)?(e.exit("data"),c(k)):(e.consume(k),k===92?p:d)}function p(k){return k===92||k===124?(e.consume(k),d):d(k)}function f(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(k):(e.enter("tableDelimiterRow"),o=!1,j(k)?H(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):h(k))}function h(k){return k===45||k===58?A(k):k===124?(o=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),y):I(k)}function y(k){return j(k)?H(e,A,"whitespace")(k):A(k)}function A(k){return k===58?(s+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),m):k===45?(s+=1,m(k)):k===null||z(k)?C(k):I(k)}function m(k){return k===45?(e.enter("tableDelimiterFiller"),g(k)):I(k)}function g(k){return k===45?(e.consume(k),g):k===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(k))}function w(k){return j(k)?H(e,C,"whitespace")(k):C(k)}function C(k){return k===124?h(k):k===null||z(k)?!o||i!==s?I(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(k)):I(k)}function I(k){return n(k)}function b(k){return e.enter("tableRow"),L(k)}function L(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),L):k===null||z(k)?(e.exit("tableRow"),t(k)):j(k)?H(e,L,"whitespace")(k):(e.enter("data"),T(k))}function T(k){return k===null||k===124||G(k)?(e.exit("data"),L(k)):(e.consume(k),k===92?D:T)}function D(k){return k===92||k===124?(e.consume(k),T):T(k)}}function mI(e,t){let n=-1,r=!0,i=0,s=[0,0,0,0],o=[0,0,0,0],a=!1,l=0,u,c,d,p=new Rl;for(;++n<e.length;){let f=e[n],h=f[1];f[0]==="enter"?h.type==="tableHead"?(a=!1,l!==0&&(Iv(p,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(n,0,[["enter",u,t]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(r=!0,d=void 0,s=[0,0,0,0],o=[0,n+1,0,0],a&&(a=!1,c={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(n,0,[["enter",c,t]])),i=h.type==="tableDelimiterRow"?2:c?3:1):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],d=Dl(p,t,s,i,void 0,d),s=[0,0,0,0]),o[2]=n)):h.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(o[0]=o[1],d=Dl(p,t,s,i,void 0,d)),s=o,o=[s[1],n,0,0])):h.type==="tableHead"?(a=!0,l=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(l=n,s[1]!==0?(o[0]=o[1],d=Dl(p,t,s,i,n,d)):o[1]!==0&&(d=Dl(p,t,o,i,n,d)),i=0):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&Iv(p,t,l,u,c),p.consume(t.events),n=-1;++n<t.events.length;){let f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=Ev(t.events,n))}return e}function Dl(e,t,n,r,i,s){let o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(s.end=Object.assign({},ji(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));let l=ji(t.events,n[1]);if(s={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){let u=ji(t.events,n[2]),c=ji(t.events,n[3]),d={type:a,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){let p=t.events[n[2]],f=t.events[n[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){let h=n[2]+1,y=n[3]-n[2]-1;e.add(h,y,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(s.end=Object.assign({},ji(t.events,i)),e.add(i,0,[["exit",s,t]]),s=void 0),s}function Iv(e,t,n,r,i){let s=[],o=ji(t.events,n);i&&(i.end=Object.assign({},o),s.push(["exit",i,t])),r.end=Object.assign({},o),s.push(["exit",r,t]),e.add(n+1,0,s)}function ji(e,t){let n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}var hI={name:"tasklistCheck",tokenize:gI};function qp(){return{text:{91:hI}}}function gI(e,t,n){let r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),s)}function s(l){return G(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(l)}function a(l){return z(l)?t(l):j(l)?e.check({tokenize:wI},t,n)(l):n(l)}}function wI(e,t,n){return H(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Tv(e){return al([Wp(),Xp(),Jp(e),Kp(),qp()])}var yI={};function Ol(e){let t=this,n=e||yI,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Tv(n)),s.push(Hp()),o.push(jp(n))}var Pn=S(N(),1),xI={a:({children:e,href:t})=>(0,Pn.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"ss-w-md-link",children:e}),table:({children:e})=>(0,Pn.jsx)("div",{className:"ss-w-table-wrap",children:(0,Pn.jsx)("table",{className:"ss-w-md-table",children:e})}),ul:({children:e})=>(0,Pn.jsx)("ul",{className:"ss-w-md-ul",children:e}),ol:({children:e})=>(0,Pn.jsx)("ol",{className:"ss-w-md-ol",children:e}),code:({children:e})=>(0,Pn.jsx)("code",{className:"ss-w-md-code",children:e})};function Nv({text:e}){return(0,Pn.jsx)("div",{className:"ss-w-md",children:(0,Pn.jsx)(pp,{remarkPlugins:[Ol],components:xI,children:e})})}var Yp=S(de(),1),te=S(N(),1),Lv=3,vI=/^(\d+)-(\d+)-(\d+)$/;function kI(e){return e.split(/\s+/).slice(0,2).map(t=>{var n;return(n=t[0])!=null?n:""}).join("").toUpperCase()}function bI(e){return e.replace(/\d{4}/g,t=>t.slice(2))}function Pv({image:e,label:t}){return(0,te.jsx)("span",{className:"ss-w-ecard-crest",style:{backgroundImage:`url(${e})`},...t?{role:"img",title:t,"aria-label":t}:{"aria-hidden":"true"}})}function AI({w:e,d:t,l:n}){return e+t+n===0?null:(0,te.jsxs)("span",{className:"ss-w-form","aria-hidden":"true",children:[e>0?(0,te.jsx)("span",{className:"ss-w-form-w",style:{flexGrow:e}}):null,t>0?(0,te.jsx)("span",{className:"ss-w-form-d",style:{flexGrow:t}}):null,n>0?(0,te.jsx)("span",{className:"ss-w-form-l",style:{flexGrow:n}}):null]})}function CI({s:e}){let t=vI.exec(e.value);return t?(0,te.jsxs)("div",{className:"ss-w-ecard-cell",children:[(0,te.jsx)("span",{className:"ss-w-ecard-cval",children:(0,te.jsx)(AI,{w:Number(t[1]),d:Number(t[2]),l:Number(t[3])})}),(0,te.jsx)("span",{className:"ss-w-ecard-clabel",children:e.value})]}):(0,te.jsxs)("div",{className:"ss-w-ecard-cell",children:[(0,te.jsx)("span",{className:"ss-w-ecard-cval",children:e.value}),(0,te.jsx)("span",{className:"ss-w-ecard-clabel",children:e.label})]})}function SI({stats:e}){if(e.length===0)return null;let t=Math.min(e.length,4);return(0,te.jsx)("div",{className:"ss-w-ecard-strip",style:{gridTemplateColumns:`repeat(${t}, 1fr)`},children:e.map(n=>(0,te.jsx)(CI,{s:n},n.label+n.value))})}function Mv({c:e,showScopeCrest:t}){let n=e.scopes.length===1?e.scopes[0]:null;return(0,te.jsxs)("div",{className:"ss-w-ecard-hd",children:[(0,te.jsx)("span",{className:e.kind==="team"?"ss-w-thumb ss-w-team":"ss-w-thumb",style:e.image?{backgroundImage:`url(${e.image})`}:void 0,children:e.image?"":kI(e.name)}),(0,te.jsxs)("span",{className:"ss-w-ecard-idtext",children:[(0,te.jsx)("span",{className:"ss-w-nm",children:e.name}),e.sub?(0,te.jsx)("span",{className:"ss-w-sub",children:e.sub}):null]}),(0,te.jsxs)("span",{className:"ss-w-ecard-meta",children:[t&&(n!=null&&n.image)?(0,te.jsx)(Pv,{image:n.image,label:n.label}):null,e.season?(0,te.jsx)("span",{className:"ss-w-ecard-season",children:bI(e.season)}):null]})]})}function EI({scopes:e,active:t,onSelect:n}){return(0,te.jsx)("div",{className:"ss-w-ecard-scopes",role:"tablist",children:e.map((r,i)=>{var s;return(0,te.jsx)("button",{type:"button",role:"tab",className:"ss-w-ecard-scope","aria-selected":i===t,"aria-label":r.label,title:r.label,onClick:()=>n(i),children:r.image?(0,te.jsx)(Pv,{image:r.image}):r.label},String((s=r.competitionId)!=null?s:"all"))})})}function II({c:e}){let[t,n]=(0,Yp.useState)(0);if(!(e.scopes.length>0))return(0,te.jsx)("div",{className:"ss-w-ecard ss-w-ecard-bare","data-kind":e.kind,children:(0,te.jsx)(Mv,{c:e,showScopeCrest:!1})});let i=e.scopes.length>1,s=e.scopes[i&&e.scopes[t]?t:0];return(0,te.jsxs)("div",{className:"ss-w-ecard","data-kind":e.kind,children:[(0,te.jsx)(Mv,{c:e,showScopeCrest:!i}),i?(0,te.jsx)(EI,{scopes:e.scopes,active:t,onSelect:n}):null,(0,te.jsx)(SI,{stats:s.stats})]})}function Rv({cards:e,disabled:t,showLessLabel:n="Show less",showMoreLabel:r=i=>`Show ${i} more`}){let[i,s]=(0,Yp.useState)(!1);if(e.length===0)return null;let o=i?e:e.slice(0,Lv),a=e.length-Lv;return(0,te.jsxs)("div",{className:"ss-w-cards",children:[o.map(l=>(0,te.jsx)(II,{c:l},l.id)),a>0?(0,te.jsx)("button",{type:"button",className:"ss-w-cards-more",disabled:t,onClick:()=>s(l=>!l),children:i?n:r(a)}):null]})}var Zp=S(de(),1);var Vi=S(de(),1);var Dv=S(de(),1),Ov=S(N(),1),TI=4e3;function zl({toast:e,onDismiss:t}){return(0,Dv.useEffect)(()=>{if(!e)return;let n=setTimeout(t,TI);return()=>clearTimeout(n)},[e,t]),e?(0,Ov.jsx)("div",{className:`ss-w-toast ss-w-toast-${e.kind}`,role:"status","aria-live":"polite",children:e.text}):null}var Wi=S(N(),1);function LI(e){return Promise.race([e,new Promise((t,n)=>setTimeout(()=>n(new Error("add-to-slip timed out")),1e4))])}function yo({selection:e,shownOdds:t,marketName:n,slip:r,ui:i}){let[s,o]=(0,Vi.useState)(!1),[a,l]=(0,Vi.useState)(!1),[u,c]=(0,Vi.useState)(null),d=(0,Vi.useCallback)(()=>c(null),[]),p=r.onAddToSlip;return!i||!p||!e?null:(0,Wi.jsxs)("div",{className:"ss-w-slip",children:[(0,Wi.jsx)("button",{type:"button",className:"ss-w-slip-btn",disabled:s||a,onClick:async()=>{o(!0);try{let h=await LI(Promise.resolve(p(e)));if(h!=null&&!dd(h))throw new Error("malformed add-to-slip result");let y=h!=null?h:void 0;if(c(ow(y,t||e.oddsDecimal.toFixed(2),i)),l(sw(y)),qa(y)&&r.onMarketClicked)try{r.onMarketClicked(n)}catch{}}catch{c({kind:"error",text:i.slipFailed})}finally{o(!1)}},children:a?i.inSlip:i.addToSlip}),(0,Wi.jsx)(zl,{toast:u,onDismiss:d})]})}function zv({it:e,slip:t,ui:n}){var i;let r=e.addToSlipEnabled?ww(e,t.conversationId):null;return(0,Wi.jsx)(yo,{selection:r,shownOdds:(i=e.odds)!=null?i:"",marketName:e.market,slip:t,ui:n})}var xo=S(N(),1);function _i({previous:e,current:t,direction:n,ui:r}){var o,a,l,u;if(e===void 0||n===void 0)return null;let i=n==="shortened"?(o=r==null?void 0:r.oddsShortened)!=null?o:"shortened":(a=r==null?void 0:r.oddsDrifted)!=null?a:"drifted",s=(u=(l=r==null?void 0:r.oddsMoved)==null?void 0:l.call(r,e,t,i))!=null?u:`was ${e}, now ${t}, ${i}`;return(0,xo.jsxs)("span",{className:"ss-w-move",role:"img","aria-label":s,children:[(0,xo.jsx)("span",{className:"ss-w-move-prev","aria-hidden":"true",children:e}),(0,xo.jsx)("span",{className:"ss-w-move-arrow","aria-hidden":"true",children:n==="shortened"?"\u25BC":"\u25B2"})]})}var Bv=S(de(),1),Gp=S(N(),1);function MI(e){return(e!=null?e:"").trim().slice(0,1).toUpperCase()||"?"}function xe({url:e,name:t,kind:n}){let r=n==="comp"?"ss-w-bi-comp-logo":"ss-w-bi-crest",[i,s]=(0,Bv.useState)(!1);return e&&!i?(0,Gp.jsx)("img",{className:r,src:e,alt:"","aria-hidden":"true",onError:()=>s(!0)}):(0,Gp.jsx)("span",{className:`${r} ss-w-bi-crest-mono`,"aria-hidden":"true",children:MI(t)})}var Bl=S(de(),1);var Gr=S(N(),1);function $t({pin:e,monitor:t,ui:n}){let[r,i]=(0,Bl.useState)(null),s=(0,Bl.useCallback)(()=>i(null),[]);if(!t||!t.enabled)return null;let o=Iw(e),a=t.isPinned(o),l=e.kind==="match"?{pin:n.matchPinLabel,unpin:n.matchUnpinLabel}:{pin:n.pinLabel,unpin:n.unpinLabel},u=()=>{let c=t.togglePin({...e,key:o});c==="match_limit"?i({kind:"error",text:n.matchLimitToast}):c==="market_limit"&&i({kind:"error",text:n.marketLimitToast})};return(0,Gr.jsxs)("div",{className:"ss-w-pin-wrap",children:[(0,Gr.jsx)("button",{type:"button",className:"ss-w-pin","data-on":a||void 0,"aria-pressed":a,"aria-label":a?l.unpin:l.pin,onClick:u,children:(0,Gr.jsx)("svg",{viewBox:"0 0 16 16","aria-hidden":"true",children:(0,Gr.jsx)("path",{fill:"currentColor",d:"M9.5 1.5 14.5 6.5 13 8l-.5-.5-3 3 .3 2.2-1.4 1.4L5.6 11.3l-3.3 3.3-1-1 3.3-3.3L1.9 7.5l1.4-1.4 2.2.3 3-3L8 2.9z"})})}),(0,Gr.jsx)(zl,{toast:r,onDismiss:s})]})}var U=S(N(),1);function Fv({stats:e}){return(0,U.jsx)("div",{className:"ss-w-bi-rows",children:e.map(t=>(0,U.jsxs)("div",{className:"ss-w-bi-row",children:[(0,U.jsx)("span",{className:"ss-w-bi-row-lbl",children:t.label}),(0,U.jsx)("span",{className:"ss-w-bi-row-num",children:t.value})]},`${t.label}:${t.value}`))})}function PI({scopes:e}){var i,s;let[t,n]=(0,Zp.useState)(0),r=(s=(i=e[t])!=null?i:e[0])!=null?s:{key:"",label:"",stats:[]};return(0,U.jsxs)("div",{className:"ss-w-bi-scoped",children:[(0,U.jsx)("div",{className:"ss-w-bi-scopes",role:"group",children:e.map((o,a)=>(0,U.jsx)("button",{type:"button",className:"ss-w-bi-chip","aria-pressed":a===t,onClick:()=>n(a),children:o.label},o.key))}),(0,U.jsx)(Fv,{stats:r.stats},r.key)]})}function RI(e){return!!e.scopes&&e.scopes.length>=2||e.stats.length>0}function DI({it:e,ui:t}){var l,u,c,d;let[n,r]=(0,Zp.useState)(!1),i=!!e.scopes&&e.scopes.length>=2,s=RI(e),o=!!e.text;if(!o&&!s)return null;let a=s||((u=(l=e.text)==null?void 0:l.length)!=null?u:0)>90;return(0,U.jsxs)("div",{className:"ss-w-bi-reason",children:[(0,U.jsx)("span",{className:"ss-w-bi-chart","aria-hidden":"true"}),(0,U.jsxs)("div",{className:"ss-w-bi-reason-body",children:[o?(0,U.jsx)("p",{className:`ss-w-bi-text${n?"":" ss-w-bi-text-clamp"}`,children:e.text}):null,n&&s?i?(0,U.jsx)(PI,{scopes:e.scopes}):(0,U.jsx)(Fv,{stats:e.stats}):null]}),a?(0,U.jsx)("button",{type:"button",className:"ss-w-bi-expand","aria-expanded":n,"aria-label":n?(c=t==null?void 0:t.hideStats)!=null?c:"Hide stats":(d=t==null?void 0:t.showStats)!=null?d:"Show stats",onClick:()=>r(p=>!p),children:(0,U.jsx)("span",{className:`ss-w-bi-arrow${n?" ss-w-bi-arrow-open":""}`,"aria-hidden":"true"})}):null]})}function OI({it:e}){return e.homeTeamName&&e.awayTeamName?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(xe,{kind:"team",url:e.homeCrest,name:e.homeTeamName}),(0,U.jsx)("span",{className:"ss-w-bi-team",children:e.homeTeamName}),(0,U.jsx)("span",{className:"ss-w-bi-vs","aria-hidden":"true",children:"vs"}),(0,U.jsx)("span",{className:"ss-w-bi-team",children:e.awayTeamName}),(0,U.jsx)(xe,{kind:"team",url:e.awayCrest,name:e.awayTeamName})]}):e.fixture?(0,U.jsx)("span",{className:"ss-w-bi-fixture-txt",children:e.fixture}):e.competition?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(xe,{kind:"comp",url:e.competitionCrest,name:e.competition}),(0,U.jsx)("span",{className:"ss-w-bi-comp",children:e.competition})]}):null}function zI({it:e,ui:t,slip:n,monitor:r}){var d,p;let i=e.isLive||e.phase==="live",s=e.kickoffUtc&&(t!=null&&t.bettingKickoff)?t.bettingKickoff(e.kickoffUtc):void 0,a=!!e.homeTeamName&&!!e.awayTeamName||!!e.fixture,l=a&&!!e.competition,u=!!r&&e.pinEnabled,c=a||!!e.competition||i||!!s||u;return(0,U.jsxs)("div",{className:"ss-w-binsight",children:[c?(0,U.jsxs)("div",{className:"ss-w-bi-header",children:[(0,U.jsx)("span",{className:"ss-w-bi-header-left",children:(0,U.jsx)(OI,{it:e})}),(0,U.jsxs)("span",{className:"ss-w-bi-header-right",children:[i?(0,U.jsxs)("span",{className:"ss-w-bi-live",children:[(0,U.jsx)("span",{className:"ss-w-bi-live-dot","aria-hidden":"true"}),(d=t==null?void 0:t.liveLabel)!=null?d:"Live"]}):null,l?(0,U.jsxs)("span",{className:"ss-w-bi-comp-meta",children:[(0,U.jsx)(xe,{kind:"comp",url:e.competitionCrest,name:e.competition}),(0,U.jsx)("span",{className:"ss-w-bi-comp",children:e.competition})]}):null,s?(0,U.jsxs)("span",{className:"ss-w-bi-kick",children:[s.dayLabel," ",s.time]}):null,u&&t?(0,U.jsx)($t,{ui:t,monitor:r,pin:{kind:"match",matchId:e.matchId}}):null]})]}):null,(0,U.jsxs)("div",{className:"ss-w-bi-action-row",children:[(0,U.jsxs)("span",{className:"ss-w-bi-pick",children:[(0,U.jsx)("span",{className:"ss-w-bi-market",children:e.market}),e.selection?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("span",{className:"ss-w-bi-pick-dot","aria-hidden":"true",children:"\xB7"}),(0,U.jsx)("span",{className:"ss-w-bi-sel",children:e.selection})]}):null]}),e.odds?(0,U.jsxs)("span",{className:"ss-w-bi-odds",children:[(0,U.jsx)("b",{children:e.odds}),(0,U.jsx)(_i,{previous:e.previousOdds,current:e.odds,direction:e.movementDirection,ui:t}),e.bookmaker?(0,U.jsx)("span",{className:"ss-w-bi-book",children:e.bookmaker}):null]}):null,(0,U.jsx)(zv,{it:e,slip:n,ui:t}),u&&t?(0,U.jsx)($t,{ui:t,monitor:r,pin:{kind:"selection",matchId:e.matchId,marketDeveloperName:e.marketDeveloperName,selectionLabel:e.selectionLabel,line:e.line,matchOddsId:e.matchOddsId}}):null]}),e.isMarketFloor?(0,U.jsx)("span",{className:"ss-w-bi-floor",children:(p=t==null?void 0:t.marketFloorLabel)!=null?p:"Market price \xB7 not a value pick"}):null,(0,U.jsx)(DI,{it:e,ui:t}),e.disclaimer?(0,U.jsx)("p",{className:"ss-w-bi-disc",children:e.disclaimer}):null]})}function Uv({insights:e,ui:t,slip:n,monitor:r}){return!e||e.length===0?null:(0,U.jsx)("div",{className:"ss-w-binsights",children:e.map(i=>(0,U.jsx)(zI,{it:i,ui:t,slip:n,monitor:r},i.id))})}var Hv=S(de(),1);var q=S(N(),1);function Qv({vm:e,row:t,ui:n,slip:r,inSlipIds:i}){let s=e.addToSlipEnabled?yw(e,t,r.conversationId):null,o=!!i&&t.matchOddsId!=null&&!!i[t.matchOddsId];return(0,q.jsxs)("div",{className:"ss-w-mo-row",children:[(0,q.jsx)("span",{className:"ss-w-mo-sel",children:t.selection}),(0,q.jsx)(_i,{previous:t.previousOdds,current:t.odds,direction:t.movementDirection,ui:n}),(0,q.jsx)("span",{className:"ss-w-mo-price",children:t.odds}),o&&n?(0,q.jsxs)("span",{className:"ss-w-mon-inslip",children:["\u2713 ",n.inSlipLabel]}):null,(0,q.jsx)(yo,{selection:s,shownOdds:t.odds,marketName:e.market,slip:r,ui:n})]})}function BI({vm:e,ui:t,slip:n,monitor:r,inSlipIds:i}){var d,p,f;let[s,o]=(0,Hv.useState)(!1),a=e.kickoffUtc&&(t!=null&&t.bettingKickoff)?t.bettingKickoff(e.kickoffUtc):void 0,l=!!e.homeTeamName&&!!e.awayTeamName,u=!!r&&e.pinEnabled,c=!!e.competition||e.isLive||!!a||u;return(0,q.jsxs)("div",{className:"ss-w-mocard",children:[c?(0,q.jsxs)("div",{className:"ss-w-bi-header",children:[(0,q.jsx)("span",{className:"ss-w-bi-header-left",children:e.competition?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(xe,{kind:"comp",url:e.competitionCrest,name:e.competition}),(0,q.jsx)("span",{className:"ss-w-bi-comp",children:e.competition})]}):null}),(0,q.jsxs)("span",{className:"ss-w-bi-header-right",children:[e.isLive?(0,q.jsxs)("span",{className:"ss-w-bi-live",children:[(0,q.jsx)("span",{className:"ss-w-bi-live-dot","aria-hidden":"true"}),(d=t==null?void 0:t.liveLabel)!=null?d:"Live"]}):null,a?(0,q.jsxs)("span",{className:"ss-w-bi-kick",children:[a.dayLabel," ",a.time]}):null,u&&t?(0,q.jsx)($t,{ui:t,monitor:r,pin:{kind:"market",matchId:e.matchId,marketDeveloperName:e.marketDeveloperName,line:e.mainLine}}):null]})]}):null,l||e.fixture||e.market?(0,q.jsxs)("div",{className:"ss-w-mo-sub",children:[l?(0,q.jsxs)("div",{className:"ss-w-bi-fixture",children:[(0,q.jsx)(xe,{kind:"team",url:e.homeCrest,name:e.homeTeamName}),(0,q.jsx)("span",{className:"ss-w-bi-team",children:e.homeTeamName}),(0,q.jsx)("span",{className:"ss-w-bi-vs","aria-hidden":"true",children:"vs"}),(0,q.jsx)("span",{className:"ss-w-bi-team",children:e.awayTeamName}),(0,q.jsx)(xe,{kind:"team",url:e.awayCrest,name:e.awayTeamName})]}):e.fixture?(0,q.jsx)("span",{className:"ss-w-mo-teams",children:e.fixture}):null,e.market?(0,q.jsx)("span",{className:"ss-w-mo-market",children:e.market}):null]}):null,(0,q.jsxs)("div",{className:"ss-w-mo-rows",children:[e.mainRows.map(h=>(0,q.jsx)(Qv,{vm:e,row:h,ui:t,slip:n,inSlipIds:i},h.key)),s?e.moreRows.map(h=>(0,q.jsx)(Qv,{vm:e,row:h,ui:t,slip:n,inSlipIds:i},h.key)):null]}),e.moreRows.length>0?(0,q.jsxs)("button",{type:"button",className:"ss-w-mo-more","aria-expanded":s,onClick:()=>o(h=>!h),children:[(0,q.jsx)("span",{children:s?(p=t==null?void 0:t.hideLines)!=null?p:"Hide lines":`${(f=t==null?void 0:t.moreLines)!=null?f:"More lines"} (${e.moreRows.length})`}),(0,q.jsx)("span",{className:`ss-w-mo-more-chev${s?" ss-w-mo-more-chev-up":""}`,"aria-hidden":"true"})]}):null,e.bookmaker?(0,q.jsx)("div",{className:"ss-w-mo-foot",children:(0,q.jsx)("span",{children:e.bookmaker})}):null,e.disclaimer?(0,q.jsx)("p",{className:"ss-w-bi-disc",children:e.disclaimer}):null]})}function Xi({cards:e,ui:t,slip:n,monitor:r,inSlipIds:i}){return!e||e.length===0?null:(0,q.jsx)("div",{className:"ss-w-mocards",children:e.map(s=>(0,q.jsx)(BI,{vm:s,ui:t,slip:n,monitor:r,inSlipIds:i},s.id))})}var $=S(N(),1);function UI(e,t){var n,r;return e.direction==="shortened"?(n=t==null?void 0:t.oddsShortened)!=null?n:"shortened":e.direction==="drifted"?(r=t==null?void 0:t.oddsDrifted)!=null?r:"drifted":""}function QI({vm:e,ui:t,monitor:n}){var a,l,u,c,d,p;let r=UI(e,t),i=r?`, ${r}`:"",s=t!=null&&t.chartAria?t.chartAria(e.opening,e.current,r,e.windowHours):`Price movement over the last ${e.windowHours} hours: opened at ${e.opening}, currently ${e.current}${i}.`,o=!!n&&e.pinEnabled;return(0,$.jsxs)("div",{className:"ss-w-omcard",children:[(0,$.jsxs)("div",{className:"ss-w-om-head",children:[(0,$.jsx)("span",{className:"ss-w-om-market",children:e.market}),(0,$.jsx)("span",{className:"ss-w-om-tag",children:(a=t==null?void 0:t.priceMovement)!=null?a:"Price movement"}),o&&t?(0,$.jsx)($t,{ui:t,monitor:n,pin:{kind:"selection",matchId:e.matchId,marketDeveloperName:e.marketDeveloperName,selectionLabel:e.selectionLabel,line:e.line,withHistory:!0,matchOddsId:e.matchOddsId}}):null]}),e.fixture?(0,$.jsxs)("div",{className:"ss-w-om-fixture",children:[(0,$.jsx)("span",{children:e.fixture}),e.competition?(0,$.jsx)("span",{className:"ss-w-om-comp",children:e.competition}):null]}):null,(0,$.jsx)("div",{className:"ss-w-om-sel",children:e.selection}),(0,$.jsx)(_i,{previous:e.opening,current:e.current,direction:e.direction,ui:t}),e.geometry===null?(0,$.jsx)("div",{className:"ss-w-om-empty",children:e.observationCount===1?(l=t==null?void 0:t.singlePricePoint)!=null?l:"Only one price recorded so far for this selection.":(u=t==null?void 0:t.notEnoughHistory)!=null?u:"No price history recorded yet for this selection."}):(0,$.jsxs)("svg",{className:"ss-w-om-chart",viewBox:e.geometry.viewBox,width:"100%",role:"img","aria-label":s,children:[e.geometry.gridlines.map(f=>(0,$.jsxs)("g",{children:[(0,$.jsx)("line",{className:"ss-w-om-grid",x1:40,y1:f.y,x2:312,y2:f.y}),(0,$.jsx)("text",{className:"ss-w-om-ylab",x:34,y:f.y+3,textAnchor:"end",children:f.price.toFixed(2)})]},f.price)),(0,$.jsx)("path",{className:"ss-w-om-line",d:e.geometry.path,fill:"none"}),e.geometry.markers.map((f,h)=>(0,$.jsx)("circle",{className:"ss-w-om-dot",cx:f.x,cy:f.y,r:2.5},h)),t!=null&&t.chartTimeLabel?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)("text",{className:"ss-w-om-xlab",x:40,y:132,textAnchor:"start",children:t.chartTimeLabel(e.geometry.startMs)}),(0,$.jsx)("text",{className:"ss-w-om-xlab",x:312,y:132,textAnchor:"end",children:t.chartTimeLabel(e.geometry.endMs)})]}):(0,$.jsx)("text",{className:"ss-w-om-xlab",x:40,y:132,children:t!=null&&t.movementWindow?t.movementWindow(e.windowHours):`Last ${e.windowHours}h`})]}),(0,$.jsxs)("div",{className:"ss-w-om-foot",children:[(0,$.jsxs)("span",{children:[(c=t==null?void 0:t.openingLabel)!=null?c:"Opening"," ",(0,$.jsx)("b",{children:e.opening})]}),(0,$.jsxs)("span",{children:[(d=t==null?void 0:t.currentLabel)!=null?d:"Current"," ",(0,$.jsx)("b",{children:e.current})]})]}),e.bookmaker?(0,$.jsx)("div",{className:"ss-w-om-foot",children:(0,$.jsx)("span",{children:e.bookmaker})}):null,e.excludedCount>0?(0,$.jsx)("div",{className:"ss-w-om-excl",children:t!=null&&t.excludedSuspended?t.excludedSuspended(e.excludedCount):`${e.excludedCount} suspended price(s) excluded from this chart.`}):null,e.isSuspended?(0,$.jsx)("div",{className:"ss-w-om-susp",children:(p=t==null?void 0:t.selectionSuspended)!=null?p:"This selection is not currently available to bet."}):null,e.disclaimer?(0,$.jsx)("div",{className:"ss-w-om-disc",children:e.disclaimer}):null]})}function Fl({cards:e,ui:t,monitor:n}){return!e||e.length===0?null:(0,$.jsx)("div",{className:"ss-w-omcards",children:e.map(r=>(0,$.jsx)(QI,{vm:r,ui:t,monitor:n},r.id))})}var Rn=S(N(),1);function Ul({actions:e,loading:t,disabled:n,onAct:r}){return e.length===0&&!t?null:(0,Rn.jsxs)("div",{className:"ss-w-actions",children:[e.map((i,s)=>(0,Rn.jsx)("button",{type:"button",className:"ss-w-abtn",disabled:n,onClick:()=>r(i),children:i.label},`${i.label}-${s}`)),e.length===0&&t?(0,Rn.jsxs)(Rn.Fragment,{children:[(0,Rn.jsx)("span",{className:"ss-w-abtn-shimmer"}),(0,Rn.jsx)("span",{className:"ss-w-abtn-shimmer"})]}):null]})}var xt=S(N(),1),HI=3;function Vv({tile:e,onTap:t}){var s;let n=e.span==="full"?"ss-w-dash-tile--full":"ss-w-dash-tile--half",r=((s=e.imageUrls)!=null?s:[]).slice(0,HI),i=!!e.badgeText||r.length>0;return(0,xt.jsxs)("button",{type:"button",className:`ss-w-dash-tile ${n}`,onClick:t,children:[(0,xt.jsx)("span",{className:"ss-w-dash-tile-icon",children:(0,xt.jsx)(Fw,{name:e.icon})}),(0,xt.jsxs)("span",{className:"ss-w-dash-tile-body",children:[(0,xt.jsx)("span",{className:"ss-w-dash-tile-title",children:e.title}),e.subtitle?(0,xt.jsx)("span",{className:"ss-w-dash-tile-subtitle",children:e.subtitle}):null,i?(0,xt.jsxs)("span",{className:"ss-w-dash-tile-meta",children:[e.badgeText?(0,xt.jsx)("span",{className:"ss-w-dash-tile-badge",children:e.badgeText}):null,r.length>0?(0,xt.jsx)("span",{className:"ss-w-dash-tile-crests",children:r.map((o,a)=>(0,xt.jsx)("span",{className:"ss-w-dash-tile-crest",style:{backgroundImage:`url(${o})`},"aria-hidden":"true"},`${o}-${a}`))}):null]}):null]}),(0,xt.jsx)("span",{className:"ss-w-dash-tile-chevron",children:(0,xt.jsx)($a,{})})]})}var Dn=S(N(),1),$p={market:"ss-w-dash--market",goal:"ss-w-dash--goal",discovery:"ss-w-dash--discovery"};function jI(e){return Object.prototype.hasOwnProperty.call($p,e)?$p[e]:$p.goal}function Wv({dashboard:e,onTap:t}){return(0,Dn.jsxs)("div",{className:`ss-w-dash ${jI(e.layout)}`,children:[(0,Dn.jsxs)("div",{className:"ss-w-dash-head",children:[(0,Dn.jsx)("span",{className:"ss-w-dash-title",children:e.title}),e.subtitle?(0,Dn.jsx)("span",{className:"ss-w-dash-subtitle",children:e.subtitle}):null]}),(0,Dn.jsx)("div",{className:"ss-w-dash-grid",children:e.tiles.map((n,r)=>(0,Dn.jsx)(Vv,{tile:n,onTap:()=>t(n,r)},`${n.title}-${r}`))}),e.footerTip?(0,Dn.jsx)("span",{className:"ss-w-dash-foot",children:e.footerTip}):null]})}var V=S(N(),1);function VI(e){return e==="W"?"ss-w-fandash-teamform-cell--win":e==="L"?"ss-w-fandash-teamform-cell--loss":"ss-w-fandash-teamform-cell--draw"}function _v({m:e,subjectCrestUrl:t,subjectName:n}){var o;let r=(0,V.jsx)(xe,{url:t!=null?t:void 0,name:n,kind:"team"}),i=(0,V.jsx)(xe,{url:(o=e.opponentCrestUrl)!=null?o:void 0,kind:"team"}),s=e.teamIsHome?`${e.teamScore} - ${e.oppScore}`:`${e.oppScore} - ${e.teamScore}`;return(0,V.jsxs)("div",{className:`ss-w-fandash-teamform-cell ${VI(e.result)}`,children:[e.teamIsHome?r:i,(0,V.jsx)("span",{className:"ss-w-fandash-teamform-score",children:s}),e.teamIsHome?i:r]})}var WI=5;function _I(e){return Array.from({length:WI},(t,n)=>n).flatMap(t=>[(0,V.jsx)("span",{className:"ss-w-fandash-teamform-slot",children:e.homeForm[t]?(0,V.jsx)(_v,{m:e.homeForm[t],subjectCrestUrl:e.homeCrestUrl,subjectName:e.homeName}):null},`h-${t}`),(0,V.jsx)("span",{className:"ss-w-fandash-teamform-slot",children:e.awayForm[t]?(0,V.jsx)(_v,{m:e.awayForm[t],subjectCrestUrl:e.awayCrestUrl,subjectName:e.awayName}):null},`a-${t}`)])}function Xv({card:e}){var r,i,s,o;let{data:t}=e,n=t.h2H;return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-fixture",children:[(0,V.jsxs)("span",{className:"ss-w-fandash-eyebrow",children:[e.title," \xB7 ",t.competition]}),(0,V.jsxs)("div",{className:"ss-w-fandash-fixture-teams",children:[(0,V.jsxs)("span",{className:"ss-w-fandash-fixture-team",children:[(0,V.jsx)(xe,{url:(r=t.homeCrestUrl)!=null?r:void 0,name:t.homeName,kind:"team"}),(0,V.jsx)("span",{className:"ss-w-fandash-fixture-name",children:t.homeName})]}),(0,V.jsx)("span",{className:"ss-w-fandash-fixture-vs",children:"v"}),(0,V.jsxs)("span",{className:"ss-w-fandash-fixture-team ss-w-fandash-fixture-team--away",children:[(0,V.jsx)("span",{className:"ss-w-fandash-fixture-name",children:t.awayName}),(0,V.jsx)(xe,{url:(i=t.awayCrestUrl)!=null?i:void 0,name:t.awayName,kind:"team"})]})]}),(0,V.jsxs)("div",{className:"ss-w-fandash-fixture-meta",children:[(0,V.jsx)("span",{className:"ss-w-fandash-fixture-kickoff",children:t.kickoffLabel}),t.venue?(0,V.jsxs)("span",{className:"ss-w-fandash-fixture-venue",children:[" \xB7 ",t.venue]}):null]})]}),(0,V.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-lastfive",children:[(0,V.jsx)("span",{className:"ss-w-fandash-eyebrow",children:t.formLabel}),(0,V.jsxs)("div",{className:"ss-w-fandash-teamform-head",children:[(0,V.jsxs)("span",{className:"ss-w-fandash-teamform-head-team",children:[(0,V.jsx)(xe,{url:(s=t.homeCrestUrl)!=null?s:void 0,name:t.homeName,kind:"team"}),(0,V.jsx)("span",{className:"ss-w-fandash-teamform-head-name",children:t.homeName})]}),(0,V.jsxs)("span",{className:"ss-w-fandash-teamform-head-team",children:[(0,V.jsx)(xe,{url:(o=t.awayCrestUrl)!=null?o:void 0,name:t.awayName,kind:"team"}),(0,V.jsx)("span",{className:"ss-w-fandash-teamform-head-name",children:t.awayName})]})]}),(0,V.jsx)("div",{className:"ss-w-fandash-teamform-rows",children:_I(t)})]}),n||t.fact?(0,V.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-h2h",children:[n?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)("span",{className:"ss-w-fandash-eyebrow",children:n.label}),(0,V.jsxs)("div",{className:"ss-w-fandash-split",children:[(0,V.jsxs)("span",{className:"ss-w-fandash-split-cell",children:[(0,V.jsx)("span",{className:"ss-w-fandash-split-value",children:n.wins}),(0,V.jsx)("span",{className:"ss-w-fandash-split-label",children:n.homeWinsLabel})]}),(0,V.jsxs)("span",{className:"ss-w-fandash-split-cell",children:[(0,V.jsx)("span",{className:"ss-w-fandash-split-value",children:n.draws}),(0,V.jsx)("span",{className:"ss-w-fandash-split-label",children:n.drawsLabel})]}),(0,V.jsxs)("span",{className:"ss-w-fandash-split-cell",children:[(0,V.jsx)("span",{className:"ss-w-fandash-split-value",children:n.losses}),(0,V.jsx)("span",{className:"ss-w-fandash-split-label",children:n.awayWinsLabel})]})]})]}):null,t.fact?(0,V.jsx)("span",{className:"ss-w-fandash-fact",children:t.fact}):null]}):null]})}var Zr=S(de(),1),en=S(N(),1),XI=864e5;function JI(e,t,n){let r=Math.floor((e*1e3-t)/1e3);if(r<=0)return null;let i=Math.floor(r/86400),s=Math.floor(r%86400/3600),o=Math.floor(r%3600/60),a=r%60,l=c=>String(c).padStart(2,"0");if(i>0)return[{value:l(i),unit:"d"},{value:l(s),unit:"h"}];let u=[{value:l(s),unit:"h"},{value:l(o),unit:"m"}];return n&&u.push({value:l(a),unit:"s"}),u}function Jv({card:e}){var l;let{data:t}=e,n={d:t.daysUnit,h:t.hoursUnit,m:t.minutesUnit,s:t.secondsUnit},[r,i]=(0,Zr.useState)(()=>Date.now()),[s]=(0,Zr.useState)(()=>typeof window!="undefined"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches),o=t.kickoffUnix*1e3-r<XI;(0,Zr.useEffect)(()=>{if(s)return;let u=window.setInterval(()=>i(Date.now()),o?1e3:6e4);return()=>window.clearInterval(u)},[s,o]);let a=JI(t.kickoffUnix,r,o&&!s);return(0,en.jsx)("div",{className:"ss-w-fandash-card ss-w-fandash-countdown",children:(0,en.jsxs)("div",{className:"ss-w-fandash-countdown-top",children:[(0,en.jsx)("span",{className:"ss-w-fandash-eyebrow",children:(l=e.title)!=null?l:"Kick-off in"}),a?(0,en.jsx)("span",{className:"ss-w-fandash-countdown-clock",children:a.map((u,c)=>(0,en.jsxs)(Zr.Fragment,{children:[c>0?(0,en.jsx)("span",{className:"ss-w-fandash-countdown-colon",children:":"}):null,(0,en.jsxs)("span",{className:"ss-w-fandash-countdown-seg",children:[(0,en.jsx)("span",{className:"ss-w-fandash-countdown-value",children:u.value}),(0,en.jsx)("span",{className:"ss-w-fandash-countdown-unit",children:n[u.unit]})]})]},u.unit))}):null]})})}var Yv=S(de(),1);var ve=S(N(),1),ef=3;function Kv({name:e,crestUrl:t}){return(0,ve.jsxs)("span",{className:"ss-w-fandash-injuries-col-head",children:[(0,ve.jsx)(xe,{url:t!=null?t:void 0,name:e,kind:"team"}),(0,ve.jsx)("span",{className:"ss-w-fandash-injuries-col-head-name",children:e})]})}function qv({rows:e,emptyLabel:t,limit:n}){if(e.length===0)return(0,ve.jsx)("span",{className:"ss-w-fandash-injuries-empty",children:t});let r=n===void 0?e:e.slice(0,n);return(0,ve.jsx)("ul",{className:"ss-w-fandash-injury-list",children:r.map((i,s)=>(0,ve.jsxs)("li",{className:"ss-w-fandash-injury-row",children:[(0,ve.jsx)("span",{className:"ss-w-fandash-injury-name",children:i.playerName}),(0,ve.jsxs)("span",{className:"ss-w-fandash-injury-meta",children:[(0,ve.jsx)("span",{className:"ss-w-fandash-injury-status",children:i.status}),i.injuryType?(0,ve.jsx)("span",{className:"ss-w-fandash-injury-type",children:i.injuryType}):null,i.expectedReturnLabel?(0,ve.jsx)("span",{className:"ss-w-fandash-injury-return",children:i.expectedReturnLabel}):null]})]},`${i.playerName}-${s}`))})}function Gv({card:e,ui:t}){var u,c;let{data:n}=e,[r,i]=(0,Yv.useState)(!1),s=Math.max(0,n.ours.length-ef)+Math.max(0,n.theirs.length-ef),o=r?void 0:ef,a=(u=t==null?void 0:t.showMore)!=null?u:(d=>`Show ${d} more`),l=(c=t==null?void 0:t.showLess)!=null?c:"Show less";return(0,ve.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-injuries",children:[e.title?(0,ve.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,ve.jsxs)("div",{className:"ss-w-fandash-injuries-cols",children:[(0,ve.jsxs)("div",{className:"ss-w-fandash-injuries-col",children:[(0,ve.jsx)(Kv,{name:n.oursName,crestUrl:n.oursCrestUrl}),(0,ve.jsx)(qv,{rows:n.ours,emptyLabel:n.emptyLabel,limit:o})]}),(0,ve.jsx)("div",{className:"ss-w-fandash-injuries-divider"}),(0,ve.jsxs)("div",{className:"ss-w-fandash-injuries-col",children:[(0,ve.jsx)(Kv,{name:n.theirsName,crestUrl:n.theirsCrestUrl}),(0,ve.jsx)(qv,{rows:n.theirs,emptyLabel:n.emptyLabel,limit:o})]})]}),s>0?(0,ve.jsx)("button",{type:"button",className:"ss-w-fandash-injuries-more","aria-expanded":r,onClick:()=>i(d=>!d),children:r?l:a(s)}):null]})}var Ji=S(N(),1);function Zv({card:e}){return(0,Ji.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-reasons",children:[e.title?(0,Ji.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Ji.jsx)("ul",{className:"ss-w-fandash-reason-list",children:e.data.angles.map((t,n)=>(0,Ji.jsx)("li",{className:"ss-w-fandash-reason-item",children:t},`${t}-${n}`))})]})}var Ki=S(N(),1);function $v({card:e}){return(0,Ki.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-watch",children:[e.title?(0,Ki.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Ki.jsx)("span",{className:"ss-w-fandash-stations",children:e.data.stations.map((t,n)=>(0,Ki.jsx)("span",{className:"ss-w-fandash-station-chip",children:t},`${t}-${n}`))})]})}var tn=S(N(),1);function ek({card:e,onTap:t}){return(0,tn.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-congested",onClick:()=>t(e),children:[e.title?(0,tn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,tn.jsx)("div",{className:"ss-w-fandash-congested-grid",children:e.data.entries.map((n,r)=>(0,tn.jsxs)("span",{className:"ss-w-fandash-congested-cell",children:[(0,tn.jsx)("span",{className:"ss-w-fandash-congested-day",children:n.dayLabel}),(0,tn.jsx)("span",{className:"ss-w-fandash-congested-opponent",children:n.opponent}),(0,tn.jsx)("span",{className:"ss-w-fandash-congested-comp",children:n.competition}),(0,tn.jsx)("span",{className:"ss-w-fandash-congested-time",children:n.timeLabel})]},`${n.opponent}-${r}`))}),(0,tn.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var qe=S(N(),1);function tk({rows:e}){return e.length===0?(0,qe.jsx)("span",{className:"ss-w-fandash-transfers-empty",children:"None"}):(0,qe.jsx)("ul",{className:"ss-w-fandash-transfer-list",children:e.map((t,n)=>(0,qe.jsxs)("li",{className:"ss-w-fandash-transfer-row",children:[(0,qe.jsx)("span",{className:"ss-w-fandash-transfer-name",children:t.playerName}),(0,qe.jsx)("span",{className:"ss-w-fandash-transfer-club",children:t.otherClub}),t.type?(0,qe.jsx)("span",{className:"ss-w-fandash-transfer-type",children:t.type}):null]},`${t.playerName}-${n}`))})}function nk({card:e}){let{data:t}=e;return(0,qe.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-transfers",children:[e.title?(0,qe.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,qe.jsxs)("div",{className:"ss-w-fandash-transfers-cols",children:[(0,qe.jsxs)("div",{className:"ss-w-fandash-transfers-col",children:[(0,qe.jsx)("span",{className:"ss-w-fandash-transfers-col-head",children:"In"}),(0,qe.jsx)(tk,{rows:t.in})]}),(0,qe.jsxs)("div",{className:"ss-w-fandash-transfers-col",children:[(0,qe.jsx)("span",{className:"ss-w-fandash-transfers-col-head",children:"Out"}),(0,qe.jsx)(tk,{rows:t.out})]})]})]})}var On=S(N(),1);function rk({card:e}){return(0,On.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-links",children:[e.title?(0,On.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,On.jsx)("div",{className:"ss-w-fandash-link-grid",children:e.data.links.map((t,n)=>(0,On.jsxs)("a",{className:"ss-w-fandash-link-tile",href:t.url,target:"_blank",rel:"noopener noreferrer",children:[(0,On.jsx)("span",{className:"ss-w-fandash-link-label",children:t.label}),(0,On.jsx)("span",{className:"ss-w-fandash-link-chevron",children:(0,On.jsx)($a,{})})]},`${t.url}-${n}`))})]})}var sk=S(de(),1),ze=S(N(),1);function KI(e){return e.trim().slice(0,3).toUpperCase()}function ik({url:e,name:t,side:n}){let[r,i]=(0,sk.useState)(!1),s=`ss-w-fandash-postmatch-crest ss-w-fandash-postmatch-crest--${n}`;return e&&!r?(0,ze.jsx)("img",{className:s,src:e,alt:"","aria-hidden":"true",onError:()=>i(!0)}):(0,ze.jsx)("span",{className:`${s} ss-w-fandash-postmatch-crest--fallback`,"aria-hidden":"true",children:KI(t)})}function ok({card:e}){let{data:t}=e,n=t.homeScore>=t.awayScore,r=t.awayScore>=t.homeScore;return(0,ze.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-postmatch-result",children:[(0,ze.jsxs)("div",{className:"ss-w-fandash-postmatch-top",children:[e.title?(0,ze.jsx)("span",{className:"ss-w-fandash-postmatch-pill",children:e.title}):null,(0,ze.jsx)("span",{className:`ss-w-fandash-postmatch-tag ss-w-fandash-postmatch-tag--${t.outcome}`,children:t.resultLabel})]}),(0,ze.jsxs)("div",{className:"ss-w-fandash-postmatch-main",children:[(0,ze.jsxs)("div",{className:"ss-w-fandash-postmatch-side ss-w-fandash-postmatch-side--home",children:[(0,ze.jsx)(ik,{url:t.homeCrestUrl,name:t.homeName,side:"home"}),(0,ze.jsx)("span",{className:"ss-w-fandash-postmatch-team-name",children:t.homeName})]}),(0,ze.jsxs)("div",{className:"ss-w-fandash-postmatch-score-main",children:[(0,ze.jsx)("span",{className:`ss-w-fandash-postmatch-score-value ss-w-fandash-postmatch-score-value--${n?"win":"lose"}`,children:t.homeScore}),(0,ze.jsx)("span",{className:"ss-w-fandash-postmatch-score-sep",children:"\u2013"}),(0,ze.jsx)("span",{className:`ss-w-fandash-postmatch-score-value ss-w-fandash-postmatch-score-value--${r?"win":"lose"}`,children:t.awayScore})]}),(0,ze.jsxs)("div",{className:"ss-w-fandash-postmatch-side ss-w-fandash-postmatch-side--away",children:[(0,ze.jsx)(ik,{url:t.awayCrestUrl,name:t.awayName,side:"away"}),(0,ze.jsx)("span",{className:"ss-w-fandash-postmatch-team-name",children:t.awayName})]})]}),(0,ze.jsxs)("div",{className:"ss-w-fandash-postmatch-meta",children:[t.kickoffLabel,t.competition?` \xB7 ${t.competition}`:""]})]})}var zn=S(N(),1);function ak({card:e,onTap:t}){return(0,zn.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-postmatch-goals",onClick:()=>t(e),children:[e.title?(0,zn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,zn.jsx)("ul",{className:"ss-w-fandash-postmatch-goal-list",children:e.data.goals.map((n,r)=>(0,zn.jsxs)("li",{className:n.scoredByClub?"ss-w-fandash-postmatch-goal ss-w-fandash-postmatch-goal--club":"ss-w-fandash-postmatch-goal",children:[(0,zn.jsx)("span",{className:"ss-w-fandash-postmatch-goal-ball"}),(0,zn.jsx)("span",{children:n.text})]},`${n.text}-${r}`))}),(0,zn.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var He=S(N(),1);function qI(e,t){let n=e+t;if(n<=0)return{home:"50%",away:"50%"};let r=Math.round(e/n*1e3)/10;return{home:`${r}%`,away:`${Math.round((100-r)*10)/10}%`}}function lk({card:e,onTap:t}){let{data:n}=e;return(0,He.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-postmatch-stats",onClick:()=>t(e),children:[e.title?(0,He.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,He.jsx)("div",{className:"ss-w-fandash-postmatch-stat-rows",children:n.rows.map((r,i)=>{let s=n.clubIsHome?r.clubValue:r.oppValue,o=n.clubIsHome?r.oppValue:r.clubValue,a=n.clubIsHome?r.clubNum:r.oppNum,l=n.clubIsHome?r.oppNum:r.clubNum,{home:u,away:c}=qI(a,l);return(0,He.jsxs)("div",{className:"ss-w-fandash-postmatch-stat",children:[(0,He.jsxs)("div",{className:"ss-w-fandash-postmatch-stat-row",children:[(0,He.jsx)("span",{className:"ss-w-fandash-postmatch-stat-value ss-w-fandash-postmatch-stat-value--home",children:s}),(0,He.jsx)("span",{className:"ss-w-fandash-postmatch-stat-label",children:r.label}),(0,He.jsx)("span",{className:"ss-w-fandash-postmatch-stat-value ss-w-fandash-postmatch-stat-value--away",children:o})]}),(0,He.jsxs)("div",{className:"ss-w-fandash-postmatch-stat-bar",children:[(0,He.jsx)("span",{className:"ss-w-fandash-postmatch-stat-bar-home",style:{width:u}}),(0,He.jsx)("span",{className:"ss-w-fandash-postmatch-stat-bar-away",style:{width:c}})]})]},`${r.label}-${i}`)})}),n.rows.length>0?(0,He.jsxs)("div",{className:"ss-w-fandash-postmatch-legend",children:[(0,He.jsxs)("span",{className:"ss-w-fandash-postmatch-legend-item",children:[(0,He.jsx)("i",{className:"ss-w-fandash-postmatch-legend-swatch ss-w-fandash-postmatch-legend-swatch--home"}),n.homeName]}),(0,He.jsxs)("span",{className:"ss-w-fandash-postmatch-legend-item",children:[(0,He.jsx)("i",{className:"ss-w-fandash-postmatch-legend-swatch ss-w-fandash-postmatch-legend-swatch--away"}),n.awayName]})]}):null,(0,He.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var Bn=S(N(),1);function YI(e){let t=e.trim().split(/\s+/).filter(Boolean);if(t.length===0)return"?";let n=t[0].charAt(0),r=t[t.length-1].charAt(0);return(t.length>1?`${n}${r}`:n).toUpperCase()}function uk({card:e,onTap:t}){let{data:n}=e;return(0,Bn.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-postmatch-performer",onClick:()=>t(e),children:[e.title?(0,Bn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Bn.jsxs)("div",{className:"ss-w-fandash-postmatch-perf-row",children:[(0,Bn.jsx)("span",{className:"ss-w-fandash-postmatch-perf-avatar","aria-hidden":"true",children:YI(n.playerName)}),(0,Bn.jsx)("span",{className:"ss-w-fandash-postmatch-perf-name",children:n.playerName}),(0,Bn.jsx)("span",{className:"ss-w-fandash-postmatch-perf-rating",children:n.ratingLabel})]}),(0,Bn.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var qi=S(N(),1);function ck({card:e}){let{data:t}=e;return(0,qi.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-postmatch-next",children:[e.title?(0,qi.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,qi.jsx)("div",{className:"ss-w-fandash-postmatch-next-row",children:(0,qi.jsx)("span",{className:"ss-w-fandash-postmatch-next-when",children:t.whenLabel})})]})}var gr=S(N(),1);function dk({card:e,onTap:t}){let{data:n}=e;return(0,gr.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-resting-next",onClick:()=>t(e),children:[e.title?(0,gr.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,gr.jsxs)("div",{className:"ss-w-fandash-resting-next-row",children:[(0,gr.jsx)("span",{className:"ss-w-fandash-resting-next-when",children:n.whenLabel}),n.competition?(0,gr.jsx)("span",{className:"ss-w-fandash-resting-next-competition",children:n.competition}):null]}),(0,gr.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var wr=S(N(),1);function pk({card:e,onTap:t}){let{data:n}=e;return(0,wr.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-resting-standings",onClick:()=>t(e),children:[e.title?(0,wr.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,wr.jsxs)("div",{className:"ss-w-fandash-resting-standings-row",children:[(0,wr.jsx)("span",{className:"ss-w-fandash-resting-standings-position",children:n.positionLabel}),(0,wr.jsx)("span",{className:"ss-w-fandash-resting-standings-record",children:n.recordLabel})]}),(0,wr.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var Fn=S(N(),1);function fk({card:e,onTap:t}){let{data:n}=e;return(0,Fn.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-resting-season",onClick:()=>t(e),children:[e.title?(0,Fn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Fn.jsxs)("div",{className:"ss-w-fandash-resting-season-rows",children:[n.scorerLabel?(0,Fn.jsx)("span",{className:"ss-w-fandash-resting-season-row",children:n.scorerLabel}):null,n.playerLabel?(0,Fn.jsx)("span",{className:"ss-w-fandash-resting-season-row",children:n.playerLabel}):null,(0,Fn.jsx)("span",{className:"ss-w-fandash-resting-season-row",children:n.tallyLabel})]}),(0,Fn.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var Yi=S(N(),1);function GI(e){let t=e.toUpperCase();return t==="W"?"ss-w-fandash-form-pill--win":t==="L"?"ss-w-fandash-form-pill--loss":"ss-w-fandash-form-pill--draw"}function mk({card:e}){let{data:t}=e;return(0,Yi.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-resting-form",children:[e.title?(0,Yi.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Yi.jsx)("span",{className:"ss-w-fandash-form",children:t.letters.map((n,r)=>(0,Yi.jsx)("span",{className:`ss-w-fandash-form-pill ${GI(n)}`,children:n},`${n}-${r}`))})]})}var Hl=S(de(),1);var Ql=S(de(),1),hk=6e4,ZI=15;function tf(e,t,n){if(!t)return e;let r=Math.floor((Date.now()-n)/hk);return e+Math.min(Math.max(0,r),ZI)}function gk(e,t,n){let[r,i]=(0,Ql.useState)(()=>tf(e,t,n));return(0,Ql.useEffect)(()=>{if(i(tf(e,t,n)),!t)return;let s=window.setInterval(()=>{i(tf(e,t,n))},hk);return()=>window.clearInterval(s)},[e,t,n]),r}var ke=S(N(),1);function $I(e){return e.trim().slice(0,3).toUpperCase()}function wk({url:e,name:t,side:n}){let[r,i]=(0,Hl.useState)(!1),s=`ss-w-fandash-live-crest ss-w-fandash-live-crest--${n}`;return e&&!r?(0,ke.jsx)("img",{className:s,src:e,alt:"","aria-hidden":"true",onError:()=>i(!0)}):(0,ke.jsx)("span",{className:`${s} ss-w-fandash-live-crest--fallback`,"aria-hidden":"true",children:$I(t)})}function eT(e){if(!e||e.length===0)return null;let t=e.filter(n=>n.type==="goal"&&n.player);return t.length===0?null:t.slice().sort((n,r)=>n.minute-r.minute).map(n=>`${n.player} ${n.minuteLabel}`).join(", ")}function yk({card:e,goalEvents:t}){let{data:n}=e,r=`${n.minute}:${n.homeScore}:${n.awayScore}`,i=(0,Hl.useRef)(null);(!i.current||i.current.key!==r)&&(i.current={key:r,receivedAtMs:Date.now()});let s=gk(n.minute,n.clockRunning,i.current.receivedAtMs),o=n.minuteLabel.replace(/^\d+/,""),a=eT(t);return(0,ke.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-live-score",children:[e.title?(0,ke.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,ke.jsxs)("div",{className:"ss-w-fandash-live-top",children:[(0,ke.jsxs)("span",{className:"ss-w-fandash-live-pill",children:[(0,ke.jsx)("span",{className:"ss-w-fandash-live-dot","aria-hidden":"true"}),n.statusLabel]}),(0,ke.jsx)("span",{className:"ss-w-fandash-live-minute",children:`${s}${o}`}),n.competition?(0,ke.jsx)("span",{className:"ss-w-fandash-live-competition",children:n.competition}):null]}),(0,ke.jsxs)("div",{className:"ss-w-fandash-live-main",children:[(0,ke.jsxs)("div",{className:"ss-w-fandash-live-side ss-w-fandash-live-side--home",children:[(0,ke.jsx)(wk,{url:n.homeCrestUrl,name:n.homeName,side:"home"}),(0,ke.jsx)("span",{className:"ss-w-fandash-live-team-name",children:n.homeName})]}),(0,ke.jsxs)("div",{className:"ss-w-fandash-live-score-main",children:[(0,ke.jsx)("span",{className:"ss-w-fandash-live-score-value",children:n.homeScore}),(0,ke.jsx)("span",{className:"ss-w-fandash-live-score-sep",children:"\u2013"}),(0,ke.jsx)("span",{className:"ss-w-fandash-live-score-value",children:n.awayScore})]}),(0,ke.jsxs)("div",{className:"ss-w-fandash-live-side ss-w-fandash-live-side--away",children:[(0,ke.jsx)(wk,{url:n.awayCrestUrl,name:n.awayName,side:"away"}),(0,ke.jsx)("span",{className:"ss-w-fandash-live-team-name",children:n.awayName})]})]}),a?(0,ke.jsxs)("div",{className:"ss-w-fandash-live-scorers",children:[(0,ke.jsx)("span",{className:"ss-w-fandash-live-scorers-icon","aria-hidden":"true",children:"\u26BD"}),a]}):null]})}var vk=S(de(),1),Se=S(N(),1),xk=3;function tT({type:e}){return e==="goal"?(0,Se.jsx)("span",{className:"ss-w-fandash-live-tl-ico ss-w-fandash-live-tl-ico--goal","aria-hidden":"true",children:(0,Se.jsx)("span",{className:"ss-w-fandash-live-tl-ball"})}):e==="yellow"||e==="red"?(0,Se.jsx)("span",{className:"ss-w-fandash-live-tl-ico","aria-hidden":"true",children:(0,Se.jsx)("span",{className:`ss-w-fandash-live-tl-card ss-w-fandash-live-tl-card--${e}`})}):e==="sub"?(0,Se.jsx)("span",{className:"ss-w-fandash-live-tl-ico","aria-hidden":"true",children:(0,Se.jsx)("span",{className:"ss-w-fandash-live-tl-subarrows",children:"\u21C5"})}):(0,Se.jsx)("span",{className:"ss-w-fandash-live-tl-ico","aria-hidden":"true",children:(0,Se.jsx)("span",{className:"ss-w-fandash-live-tl-dot"})})}function nT({e}){var t,n;return e.type==="sub"?(0,Se.jsxs)("span",{className:"ss-w-fandash-live-tl-who",children:[(t=e.player)!=null?t:e.text,e.playerOff?(0,Se.jsxs)("span",{className:"ss-w-fandash-live-tl-off",children:[" for ",e.playerOff]}):null]}):(0,Se.jsx)("span",{className:"ss-w-fandash-live-tl-who",children:(n=e.player)!=null?n:e.text})}function rT({e}){let t=["ss-w-fandash-live-tl-ev",e.side==="home"?"ss-w-fandash-live-tl-ev--home":"ss-w-fandash-live-tl-ev--away",e.type==="goal"?"ss-w-fandash-live-tl-ev--goal":""].filter(Boolean).join(" ");return(0,Se.jsxs)("div",{className:t,children:[(0,Se.jsxs)("span",{className:"ss-w-fandash-live-tl-txt",children:[(0,Se.jsx)(nT,{e}),(0,Se.jsx)(tT,{type:e.type})]}),(0,Se.jsx)("span",{className:"ss-w-fandash-live-tl-badge",children:e.minuteLabel})]})}function kk({card:e,ui:t}){var c,d;let[n,r]=(0,vk.useState)(!1),i=e.data.events;if(!i||i.length===0)return null;let s=[...i].sort((p,f)=>f.minute-p.minute),o=s.length-xk,a=n?s:s.slice(0,xk),l=(c=t==null?void 0:t.showMore)!=null?c:(p=>`Show ${p} more`),u=(d=t==null?void 0:t.showLess)!=null?d:"Show less";return(0,Se.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-live-timeline",children:[e.title?(0,Se.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Se.jsx)("div",{className:"ss-w-fandash-live-tl",children:a.map((p,f)=>(0,Se.jsx)(rT,{e:p},`${p.minute}-${p.side}-${p.type}-${f}`))}),o>0?(0,Se.jsx)("button",{type:"button",className:"ss-w-fandash-live-tl-more","aria-expanded":n,onClick:()=>r(p=>!p),children:n?u:l(o)}):null]})}var bk=S(de(),1),rt=S(N(),1),Gi=270,nf=56,yr=nf/2,iT=.26;function sT(e){var u,c;let t=e.length-1,n=d=>t===0?0:d/t*Gi,r=d=>yr-d*iT,i=e.map((d,p)=>`${n(p).toFixed(1)},${r(d.value).toFixed(1)}`),s=`M0,${yr} L${i.join(" L")} L${Gi},${yr} Z`,o=`M${i.join(" L")}`,a=(c=(u=e[t])==null?void 0:u.value)!=null?c:0;return{area:s,line:o,lastLeftPct:t===0?0:100,lastTopPx:r(a)}}function jl({points:e,caption:t,clubIsHome:n}){if(e.length===0)return null;let{area:r,line:i,lastLeftPct:s,lastTopPx:o}=sT(e),a=(0,bk.useId)(),l=`${a}-top`,u=`${a}-bottom`,c=n?"ss-w-fandash-live-mom-home":"ss-w-fandash-live-mom-away",d=n?"ss-w-fandash-live-mom-away":"ss-w-fandash-live-mom-home";return(0,rt.jsxs)("div",{className:"ss-w-fandash-live-mom",children:[t?(0,rt.jsx)("span",{className:"ss-w-fandash-live-mom-caption",children:t}):null,(0,rt.jsxs)("div",{className:"ss-w-fandash-live-mom-plot",children:[(0,rt.jsxs)("svg",{className:"ss-w-fandash-live-mom-svg",viewBox:`0 0 ${Gi} ${nf}`,preserveAspectRatio:"none",role:"img","aria-label":t!=null?t:"Momentum",children:[(0,rt.jsxs)("defs",{children:[(0,rt.jsx)("clipPath",{id:l,children:(0,rt.jsx)("rect",{x:0,y:0,width:Gi,height:yr})}),(0,rt.jsx)("clipPath",{id:u,children:(0,rt.jsx)("rect",{x:0,y:yr,width:Gi,height:nf-yr})})]}),(0,rt.jsx)("path",{d:r,className:c,clipPath:`url(#${l})`}),(0,rt.jsx)("path",{d:r,className:d,clipPath:`url(#${u})`}),(0,rt.jsx)("line",{x1:0,y1:yr,x2:Gi,y2:yr,className:"ss-w-fandash-live-mom-base"}),(0,rt.jsx)("path",{d:i,className:"ss-w-fandash-live-mom-line",vectorEffect:"non-scaling-stroke"})]}),(0,rt.jsx)("span",{className:"ss-w-fandash-live-mom-now",style:{left:`clamp(4px, ${s}%, calc(100% - 4px))`,top:`${o}px`},"aria-hidden":"true"})]})]})}var Be=S(N(),1);function oT(e,t){let n=e+t;if(n<=0)return{home:"50%",away:"50%"};let r=Math.round(e/n*1e3)/10;return{home:`${r}%`,away:`${Math.round((100-r)*10)/10}%`}}function Ak({card:e}){let{data:t}=e;return(0,Be.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-live-stats",children:[e.title?(0,Be.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Be.jsx)("div",{className:"ss-w-fandash-live-stat-rows",children:t.rows.map((n,r)=>{let i=t.clubIsHome?n.clubValue:n.oppValue,s=t.clubIsHome?n.oppValue:n.clubValue,o=t.clubIsHome?n.clubNum:n.oppNum,a=t.clubIsHome?n.oppNum:n.clubNum,{home:l,away:u}=oT(o,a);return(0,Be.jsxs)("div",{className:"ss-w-fandash-live-stat",children:[(0,Be.jsxs)("div",{className:"ss-w-fandash-live-stat-row",children:[(0,Be.jsx)("span",{className:"ss-w-fandash-live-stat-value ss-w-fandash-live-stat-value--home",children:i}),(0,Be.jsx)("span",{className:"ss-w-fandash-live-stat-label",children:n.label}),(0,Be.jsx)("span",{className:"ss-w-fandash-live-stat-value ss-w-fandash-live-stat-value--away",children:s})]}),(0,Be.jsxs)("div",{className:"ss-w-fandash-live-bar",children:[(0,Be.jsx)("span",{className:"ss-w-fandash-live-bar-home",style:{width:l}}),(0,Be.jsx)("span",{className:"ss-w-fandash-live-bar-away",style:{width:u}})]})]},`${n.label}-${r}`)})}),t.momentum.length>0?(0,Be.jsx)(jl,{points:t.momentum,caption:t.momentumLabel,clubIsHome:t.clubIsHome}):t.momentumLabel?(0,Be.jsx)("span",{className:"ss-w-fandash-live-momentum",children:t.momentumLabel}):null,t.rows.length>0?(0,Be.jsxs)("div",{className:"ss-w-fandash-live-legend",children:[(0,Be.jsxs)("span",{className:"ss-w-fandash-live-legend-item",children:[(0,Be.jsx)("i",{className:"ss-w-fandash-live-legend-swatch ss-w-fandash-live-legend-swatch--home"}),t.homeName]}),(0,Be.jsxs)("span",{className:"ss-w-fandash-live-legend-item",children:[(0,Be.jsx)("i",{className:"ss-w-fandash-live-legend-swatch ss-w-fandash-live-legend-swatch--away"}),t.awayName]})]}):null]})}var me=S(N(),1);function Ck({dashboard:e,onTap:t,ui:n}){let r=[...e.cards.filter(o=>o.cardType==="countdown"),...e.cards.filter(o=>o.cardType!=="countdown")],i=e.cards.find(o=>o.cardType==="liveTimeline"),s=i==null?void 0:i.data.events.filter(o=>o.type==="goal");return(0,me.jsxs)("div",{className:"ss-w-fandash",children:[e.greeting?(0,me.jsx)("span",{className:"ss-w-fandash-greeting",children:e.greeting}):null,(0,me.jsx)("div",{className:"ss-w-fandash-cards",children:r.map((o,a)=>(0,me.jsx)(aT,{card:o,onTap:t,ui:n,goalEvents:s},`${o.cardType}-${a}`))})]})}function aT({card:e,onTap:t,ui:n,goalEvents:r}){switch(e.cardType){case"fixture":return(0,me.jsx)(Xv,{card:e});case"countdown":return(0,me.jsx)(Jv,{card:e});case"injuries":return(0,me.jsx)(Gv,{card:e,ui:n});case"reasonToBet":return(0,me.jsx)(Zv,{card:e});case"whereToWatch":return(0,me.jsx)($v,{card:e});case"congestedWeek":return(0,me.jsx)(ek,{card:e,onTap:t});case"transfers":return(0,me.jsx)(nk,{card:e});case"links":return(0,me.jsx)(rk,{card:e});case"postMatchResult":return(0,me.jsx)(ok,{card:e});case"postMatchGoals":return(0,me.jsx)(ak,{card:e,onTap:t});case"postMatchStats":return(0,me.jsx)(lk,{card:e,onTap:t});case"postMatchTopPerformer":return(0,me.jsx)(uk,{card:e,onTap:t});case"postMatchNext":return(0,me.jsx)(ck,{card:e});case"restingNext":return(0,me.jsx)(dk,{card:e,onTap:t});case"restingStandings":return(0,me.jsx)(pk,{card:e,onTap:t});case"restingSeason":return(0,me.jsx)(fk,{card:e,onTap:t});case"restingForm":return(0,me.jsx)(mk,{card:e});case"liveScore":return(0,me.jsx)(yk,{card:e,goalEvents:r});case"liveTimeline":return(0,me.jsx)(kk,{card:e,ui:n});case"liveStats":return(0,me.jsx)(Ak,{card:e});default:return null}}var Tt=S(N(),1);function Sk({message:e,disabled:t,onAct:n,onTap:r,ui:i,slip:s,monitor:o}){if(e.role==="user")return(0,Tt.jsx)("div",{className:"ss-w-msg ss-w-user","data-msg-id":e.id,children:(0,Tt.jsx)("div",{className:"ss-w-bubble",children:e.text})});let a=l=>{n({message:l.actionLabel,actionRef:l.actionRef,label:l.actionLabel||l.title||""})};return(0,Tt.jsxs)("div",{className:"ss-w-msg ss-w-bot","data-msg-id":e.id,children:[e.text&&!e.greetingDashboard&&!e.clubFanDashboard?(0,Tt.jsx)(Nv,{text:e.text}):null,e.greetingDashboard&&!e.clubFanDashboard?(0,Tt.jsx)(Wv,{dashboard:e.greetingDashboard,onTap:r}):null,e.clubFanDashboard?(0,Tt.jsx)(Ck,{dashboard:e.clubFanDashboard,onTap:a,ui:i}):null,(0,Tt.jsx)(Rv,{cards:e.cards,disabled:t,showLessLabel:i==null?void 0:i.showLess,showMoreLabel:i==null?void 0:i.showMore}),(0,Tt.jsx)(Uv,{insights:e.insights,ui:i,slip:s,monitor:o}),(0,Tt.jsx)(Xi,{cards:e.marketOdds,ui:i,slip:s,monitor:o}),(0,Tt.jsx)(Fl,{cards:e.oddsMovement,ui:i,monitor:o}),(0,Tt.jsx)(Ul,{actions:e.actions,loading:!1,disabled:t,onAct:n})]})}var rf=S(N(),1);function Ek({chips:e,onPick:t}){return e.length===0?null:(0,rf.jsx)("div",{className:"ss-w-chips",children:e.map((n,r)=>(0,rf.jsx)("button",{type:"button",className:"ss-w-chip",onClick:()=>t(n.text),children:n.text},`${n.text}-${r}`))})}function Ik(e,t=48){return e.scrollHeight-e.scrollTop-e.clientHeight<=t}var nn=S(N(),1);function lT(e){let t=e[e.length-1];if(!t||t.role!=="assistant")return null;let n=e[e.length-2];return{turnId:t.id,anchorId:n&&n.role==="user"?n.id:t.id}}function Tk({controller:e,ui:t,slip:n,onDashboardTap:r,monitor:i}){let{state:s,send:o}=e,a=(0,$r.useRef)(null),l=(0,$r.useRef)(null),u=(0,$r.useRef)(!0),c=(0,$r.useRef)(null);(0,$r.useEffect)(()=>{var y,A;let f=lT(s.messages),h=a.current;if(f&&f.turnId!==c.current){c.current=f.turnId,l.current&&h&&(l.current.style.height=`${h.clientHeight}px`),u.current=!1,(y=h==null?void 0:h.querySelector(`[data-msg-id="${f.anchorId}"]`))==null||y.scrollIntoView({block:"start"});return}!s.isStreaming&&l.current&&(l.current.style.height=""),u.current&&((A=l.current)==null||A.scrollIntoView({block:"end"}))},[s.messages,s.status,s.isStreaming]);let d=s.messages.some(f=>f.role==="user"),p=s.messages.some(f=>f.role==="assistant"&&(f.greetingDashboard||f.clubFanDashboard));return(0,nn.jsxs)("div",{className:"ss-w-list","aria-live":"polite",ref:a,onScroll:()=>{a.current&&(u.current=Ik(a.current))},children:[s.messages.map(f=>(0,nn.jsx)(Sk,{message:f,disabled:s.isStreaming,onAct:h=>o(h.message,{actionId:h.actionId,actionRef:h.actionRef,displayText:h.label}),onTap:(h,y)=>{o(h.actionValue,{displayText:h.title}),f.role==="assistant"&&f.greetingDashboard&&(r==null||r(h,y,f.greetingDashboard.layout))},ui:t,slip:n,monitor:i},f.id)),s.isStreaming&&s.actionsLoading?(0,nn.jsx)(Ul,{actions:[],loading:!0,onAct:()=>{}}):null,s.status?(0,nn.jsx)("div",{className:"ss-w-status",children:s.status}):null,s.error?(0,nn.jsxs)("div",{className:"ss-w-error",role:"alert",children:[(0,nn.jsx)("span",{children:"message"in s.error?s.error.message:t.somethingWentWrong}),(0,nn.jsx)("button",{type:"button",className:"ss-w-retry",onClick:()=>e.retry(),children:t.retry})]}):null,!d&&!p?(0,nn.jsx)(Ek,{chips:s.starters,onPick:f=>o(f)}):null,(0,nn.jsx)("div",{ref:l,className:"ss-w-turn-spacer","aria-hidden":"true"})]})}var Nk=S(de(),1);var xr=S(N(),1);function Lk({placeholder:e,streaming:t,onSend:n,onStop:r,stopLabel:i="Stop response",sendLabel:s="Send message"}){let[o,a]=(0,Nk.useState)(""),l=()=>{let c=o.trim();c&&(n(c),a(""))};return(0,xr.jsxs)("div",{className:"ss-w-input",children:[(0,xr.jsx)("textarea",{className:"ss-w-textarea",rows:1,placeholder:e,value:o,disabled:t,onChange:c=>a(c.target.value),onKeyDown:c=>{c.key==="Enter"&&!c.shiftKey&&(c.preventDefault(),l())}}),t?(0,xr.jsx)("button",{type:"button",className:"ss-w-send ss-w-stop","aria-label":i,onClick:r,children:(0,xr.jsx)("span",{className:"ss-w-stop-glyph"})}):(0,xr.jsx)("button",{type:"button",className:"ss-w-send","aria-label":s,onClick:l,children:(0,xr.jsx)(zw,{})})]})}var Zi=S(N(),1),uT=[{tab:"chat",labelKey:"tabChat"},{tab:"matches",labelKey:"tabMatches"},{tab:"odds",labelKey:"tabOdds"}];function Mk({monitor:e,ui:t,matchCount:n,oddsCount:r}){if(e.pins.length===0)return null;let i={chat:0,matches:n,odds:r},s={chat:e.chatDot&&e.activeTab!=="chat",matches:e.matchesDot&&e.activeTab!=="matches",odds:e.oddsDot&&e.activeTab!=="odds"};return(0,Zi.jsx)("div",{className:"ss-w-tabs",role:"tablist",children:uT.map(({tab:o,labelKey:a})=>{let l=e.activeTab===o,u=i[o];return(0,Zi.jsxs)("button",{type:"button",role:"tab","aria-selected":l,"data-on":l?"":void 0,className:"ss-w-tab",onClick:()=>e.setActiveTab(o),children:[t[a],u>0&&(0,Zi.jsx)("span",{className:"ss-w-tab-count",children:u}),s[o]&&(0,Zi.jsx)("span",{className:"ss-w-tab-dot","aria-hidden":"true"})]},o)})})}var _=S(N(),1);function cT(e,t,n){let r=e.market;if(!r||!r.addToSlipEnabled||typeof r.matchOddsId!="number"||typeof r.price!="number")return null;let i={matchOddsId:r.matchOddsId,matchId:t,oddsDecimal:r.price};return n!==void 0&&(i.conversationId=n),i}function sf(e,t){let n=e.market;return n?t.some(r=>r.marketDeveloperName===n.marketDeveloperName||n.matchOddsId!=null&&r.matchOddsId===n.matchOddsId):!1}function dT(e){return new Date(e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function Pk({match:e,promotedPins:t,monitor:n,ui:r,slip:i}){var d,p,f,h;let s=e.phase==="live",o=e.events.filter(y=>y.type==="goal"),a=e.statRows.filter(y=>sf(y,t)),l=e.statRows.filter(y=>!sf(y,t)),u=[...a,...l],c=e.phase==="preMatch"&&e.kickoffUtc?r.bettingKickoff(e.kickoffUtc):void 0;return(0,_.jsxs)("div",{className:"ss-w-mon",children:[(0,_.jsxs)("div",{className:"ss-w-mon-top",children:[s&&(0,_.jsxs)("span",{className:"ss-w-fandash-live-pill",children:[(0,_.jsx)("span",{className:"ss-w-fandash-live-dot","aria-hidden":"true"}),r.liveLabel]}),e.phase==="fullTime"&&(0,_.jsx)("span",{className:"ss-w-mon-pill",children:r.fullTimeLabel}),c&&(0,_.jsxs)("span",{className:"ss-w-mon-pill",children:[c.dayLabel," \xB7 ",c.time]}),s&&e.minuteLabel&&(0,_.jsx)("span",{className:"ss-w-mon-min",children:e.minuteLabel}),e.competitionName&&(0,_.jsx)("span",{className:"ss-w-mon-comp",children:e.competitionName}),(0,_.jsx)($t,{ui:r,monitor:n,pin:{kind:"match",matchId:e.matchId}})]}),(0,_.jsxs)("div",{className:"ss-w-mon-main",children:[(0,_.jsxs)("span",{className:"ss-w-mon-side",children:[(0,_.jsx)(xe,{kind:"team",url:(d=e.homeCrestUrl)!=null?d:void 0,name:(p=e.homeTeamName)!=null?p:void 0}),(0,_.jsx)("span",{className:"ss-w-mon-name",children:e.homeTeamName})]}),e.phase==="preMatch"?(0,_.jsx)("span",{className:"ss-w-mon-vs",children:"vs"}):(0,_.jsxs)("span",{className:"ss-w-mon-score",children:[e.homeScore,(0,_.jsx)("i",{children:"\u2013"}),e.awayScore]}),(0,_.jsxs)("span",{className:"ss-w-mon-side ss-w-mon-side--away",children:[(0,_.jsx)(xe,{kind:"team",url:(f=e.awayCrestUrl)!=null?f:void 0,name:(h=e.awayTeamName)!=null?h:void 0}),(0,_.jsx)("span",{className:"ss-w-mon-name",children:e.awayTeamName})]})]}),o.length>0&&(0,_.jsx)("div",{className:"ss-w-mon-scorers",children:o.map(y=>{var A;return`${(A=y.player)!=null?A:""} ${y.minuteLabel}`}).join(", ")}),(0,_.jsx)("div",{className:"ss-w-mon-stats",children:u.map(y=>{let A=y.homeNum+y.awayNum,m=A>0?y.homeNum/A*75:0,g=A>0?y.awayNum/A*75:0,w=sf(y,t),C=cT(y,e.matchId,i.conversationId);return(0,_.jsxs)("div",{className:w?"ss-w-mon-stat ss-w-mon-pstrip":"ss-w-mon-stat",children:[(0,_.jsxs)("div",{className:"ss-w-mon-stat-row",children:[(0,_.jsx)("span",{className:"ss-w-mon-stat-v ss-w-mon-stat-v--home",children:y.homeValue}),(0,_.jsx)("span",{className:"ss-w-mon-stat-l",children:y.label}),(0,_.jsx)("span",{className:"ss-w-mon-stat-v ss-w-mon-stat-v--away",children:y.awayValue})]}),(0,_.jsxs)("div",{className:"ss-w-mon-bar",children:[(0,_.jsx)("b",{className:"ss-w-mon-bar-home",style:{width:`${m}%`}}),(0,_.jsx)("i",{className:"ss-w-mon-bar-away",style:{width:`${g}%`}})]}),y.market&&(0,_.jsxs)("div",{className:w?"ss-w-mon-stat-mkt ss-w-mon-mkt":"ss-w-mon-stat-mkt",children:[(0,_.jsxs)("span",{children:[y.market.marketLabel," \xB7 ",y.market.selectionLabel]}),(0,_.jsxs)("span",{className:"ss-w-mon-stat-mkt-right",children:[y.market.isSuspended?(0,_.jsx)("span",{className:"ss-w-mon-susp",children:r.suspendedLabel}):typeof y.market.price=="number"&&(0,_.jsx)("span",{className:"ss-w-mon-price",children:y.market.price.toFixed(2)}),(0,_.jsx)(yo,{selection:C,shownOdds:typeof y.market.price=="number"?y.market.price.toFixed(2):"",marketName:y.market.marketLabel,slip:i,ui:r})]})]})]},y.label)})}),e.status==="stale"&&(0,_.jsx)("span",{className:"ss-w-mon-asof",children:r.asOf(dT(e.asOfUtc))}),e.momentum.length>0&&(0,_.jsxs)("div",{className:"ss-w-mon-mom",children:[(0,_.jsxs)("div",{className:"ss-w-mon-stat-row",children:[(0,_.jsx)("span",{className:"ss-w-mon-stat-v ss-w-mon-stat-v--home",children:typeof e.momentumHomePct=="number"?`${e.momentumHomePct}%`:""}),(0,_.jsx)("span",{className:"ss-w-mon-stat-l",children:r.momentumLabel}),(0,_.jsx)("span",{className:"ss-w-mon-stat-v ss-w-mon-stat-v--away",children:typeof e.momentumHomePct=="number"?`${100-e.momentumHomePct}%`:""})]}),(0,_.jsx)(jl,{points:e.momentum,clubIsHome:!0})]}),e.mainMarket&&e.phase!=="fullTime"&&(0,_.jsx)(Xi,{cards:[Pi(e.mainMarket)],ui:r,slip:i}),e.phase==="fullTime"&&(0,_.jsx)("div",{className:"ss-w-mon-grace",children:r.graceNote})]})}var ce=S(N(),1);function pT({m:e,monitor:t,ui:n}){var i,s,o,a;let r=e.kickoffUtc?n.bettingKickoff(e.kickoffUtc):void 0;return(0,ce.jsxs)("div",{className:"ss-w-mk-ctx",children:[(0,ce.jsxs)("span",{className:"ss-w-mk-ctx-side",children:[(0,ce.jsx)(xe,{kind:"team",url:(i=e.homeCrestUrl)!=null?i:void 0,name:(s=e.homeTeamName)!=null?s:void 0}),(0,ce.jsx)("span",{className:"ss-w-mon-name",children:e.homeTeamName})]}),e.phase==="preMatch"?r&&(0,ce.jsxs)("span",{className:"ss-w-mon-pill",children:[r.dayLabel," ",r.time]}):typeof e.homeScore=="number"&&(0,ce.jsxs)("b",{children:[e.homeScore,"\u2013",e.awayScore]}),(0,ce.jsxs)("span",{className:"ss-w-mk-ctx-side",children:[(0,ce.jsx)("span",{className:"ss-w-mon-name",children:e.awayTeamName}),(0,ce.jsx)(xe,{kind:"team",url:(o=e.awayCrestUrl)!=null?o:void 0,name:(a=e.awayTeamName)!=null?a:void 0})]}),e.minuteLabel&&(0,ce.jsx)("span",{className:"ss-w-mon-min",children:e.minuteLabel}),(0,ce.jsxs)("span",{className:"ss-w-mk-ctx-right",children:[e.isSuspended&&!e.isSettled&&(0,ce.jsx)("span",{className:"ss-w-mon-susp",children:n.suspendedLabel}),e.isSettled&&(0,ce.jsx)("span",{className:"ss-w-mon-pill",children:n.fullTimeLabel}),e.status==="stale"&&(0,ce.jsx)("span",{className:"ss-w-mon-asof",children:n.asOf(new Date(e.asOfUtc).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}))}),(()=>{let l=t.pins.find(u=>u.key===e.key);return l?(0,ce.jsx)($t,{ui:n,monitor:t,pin:l}):null})()]})]})}function Rk({monitor:e,ui:t,slip:n}){var i,s;let r=((s=(i=e.snapshot)==null?void 0:i.matches)!=null?s:[]).filter(o=>e.pins.some(a=>a.kind==="match"&&a.matchId===o.matchId));return r.length===0?(0,ce.jsx)("div",{className:"ss-w-mon-empty",children:t.emptyMatchesTab}):(0,ce.jsx)("div",{className:"ss-w-mon-list",children:r.map(o=>(0,ce.jsx)(Pk,{match:o,promotedPins:e.pins.filter(a=>a.kind!=="match"&&a.matchId===o.matchId),monitor:e,ui:t,slip:n},o.matchId))})}function fT(e,t){let n=e.mainRows[0];if(t===void 0||!n||n.oddsDecimal===void 0||n.oddsDecimal===t)return e;let r={...n,previousOdds:t.toFixed(2),movementDirection:n.oddsDecimal<t?"shortened":"drifted"};return{...e,mainRows:[r,...e.mainRows.slice(1)]}}function Dk({monitor:e,ui:t,slip:n}){var i,s;let r=((s=(i=e.snapshot)==null?void 0:i.markets)!=null?s:[]).filter(o=>e.pins.some(a=>a.key===o.key));return r.length===0?(0,ce.jsx)("div",{className:"ss-w-mon-empty",children:t.emptyOddsTab}):(0,ce.jsx)("div",{className:"ss-w-mon-list",children:r.map(o=>(0,ce.jsxs)("div",{className:"ss-w-mon-oddspin","data-settled":o.isSettled||void 0,children:[(0,ce.jsx)(pT,{m:o,monitor:e,ui:t}),o.card&&(0,ce.jsx)(Xi,{cards:[fT(Pi(o.card),e.lastViewedPrices[o.key])],ui:t,slip:n,inSlipIds:e.inSlip}),o.history&&(0,ce.jsx)(Fl,{cards:[Ya(o.history)],ui:t}),!o.card&&!o.history&&(0,ce.jsx)("div",{className:"ss-w-mon-empty-card",children:t.oddsUnavailable})]},o.key))})}var mn=S(N(),1),mT="(max-width: 639px)";function hT(){let[e,t]=(0,$i.useState)(!1);return(0,$i.useEffect)(()=>{if(typeof window=="undefined"||typeof window.matchMedia!="function")return;let n=window.matchMedia(mT),r=()=>t(n.matches);return r(),n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[]),e}function Ok({controller:e,ui:t,slip:n,onDashboardTap:r,monitor:i}){let{state:s,close:o,stop:a,send:l}=e,u=hT();(0,$i.useEffect)(()=>{let d=p=>{p.key==="Escape"&&o()};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[o]);let c=d=>{i==null||i.setActiveTab("chat"),l(d)};return(0,$i.useEffect)(()=>{i&&i.activeTab!=="chat"&&s.isStreaming&&i.markChatActivity()},[i,s.isStreaming,s.messages.length]),(0,mn.jsxs)("div",{className:"ss-w-panel",role:"dialog","aria-modal":u,"aria-label":t.chatDialogLabel,children:[(0,mn.jsx)(Hw,{onClose:o,closeLabel:t.closeChat}),i&&(0,mn.jsx)(Mk,{monitor:i,ui:t,matchCount:i.pins.filter(d=>d.kind==="match").length,oddsCount:i.pins.filter(d=>d.kind!=="match").length}),(0,mn.jsx)("div",{style:!i||i.activeTab==="chat"?{display:"contents"}:{position:"absolute",inset:0,visibility:"hidden",display:"flex",flexDirection:"column"},children:(0,mn.jsx)(Tk,{controller:e,ui:t,slip:n,onDashboardTap:r,monitor:i})}),i&&i.activeTab==="matches"&&(0,mn.jsx)(Rk,{monitor:i,ui:t,slip:n}),i&&i.activeTab==="odds"&&(0,mn.jsx)(Dk,{monitor:i,ui:t,slip:n}),(0,mn.jsx)(Lk,{placeholder:t.placeholder,streaming:s.isStreaming,onSend:c,onStop:a,stopLabel:t.stopResponse,sendLabel:t.sendMessage})]})}var zk=`.ss-w-root { all: revert; }
37
+ `))}function l(f,h,y,A){let m=y.enter("tableCell"),g=y.enter("phrasing"),w=y.containerPhrasing(f,{...A,before:s,after:s});return g(),m(),w}function u(f,h){return Jx(f,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function c(f,h,y){let A=f.children,m=-1,g=[],w=h.enter("table");for(;++m<A.length;)g[m]=d(A[m],h,y);return w(),g}function d(f,h,y){let A=f.children,m=-1,g=[],w=h.enter("tableRow");for(;++m<A.length;)g[m]=l(A[m],f,h,y);return w(),g}function p(f,h,y){let A=wo.inlineCode(f,h,y);return y.stack.includes("tableCell")&&(A=A.replace(/\|/g,"\\$&")),A}}function Up(){return{exit:{taskListCheckValueChecked:wv,taskListCheckValueUnchecked:wv,paragraph:XE}}}function Qp(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:JE}}}function wv(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function XE(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let n=this.stack[this.stack.length-1];n.type;let r=n.children[0];if(r&&r.type==="text"){let i=t.children,s=-1,o;for(;++s<i.length;){let a=i[s];if(a.type==="paragraph"){o=a;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function JE(e,t,n,r){let i=e.children[0],s=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);s&&a.move(o);let l=wo.listItem(e,t,n,{...r,...a.current()});return s&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+o}}function Hp(){return[xp(),kp(),Ap(),Bp(),Up()]}function jp(e){return{extensions:[vp(),bp(e),Cp(),Fp(e),Qp()]}}var KE={tokenize:$E,partial:!0},yv={tokenize:eI,partial:!0},xv={tokenize:tI,partial:!0},vv={tokenize:nI,partial:!0},qE={tokenize:rI,partial:!0},kv={name:"wwwAutolink",tokenize:GE,previous:Av},bv={name:"protocolAutolink",tokenize:ZE,previous:Cv},Mn={name:"emailAutolink",tokenize:YE,previous:Sv},fn={};function Wp(){return{text:fn}}var Yr=48;for(;Yr<123;)fn[Yr]=Mn,Yr++,Yr===58?Yr=65:Yr===91&&(Yr=97);fn[43]=Mn;fn[45]=Mn;fn[46]=Mn;fn[95]=Mn;fn[72]=[Mn,bv];fn[104]=[Mn,bv];fn[87]=[Mn,kv];fn[119]=[Mn,kv];function YE(e,t,n){let r=this,i,s;return o;function o(d){return!Vp(d)||!Sv.call(r,r.previous)||_p(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(d))}function a(d){return Vp(d)?(e.consume(d),a):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(qE,c,u)(d):d===45||d===95||Ne(d)?(s=!0,e.consume(d),l):c(d)}function u(d){return e.consume(d),i=!0,l}function c(d){return s&&i&&Qe(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function GE(e,t,n){let r=this;return i;function i(o){return o!==87&&o!==119||!Av.call(r,r.previous)||_p(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(KE,e.attempt(yv,e.attempt(xv,s),n),n)(o))}function s(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function ZE(e,t,n){let r=this,i="",s=!1;return o;function o(d){return(d===72||d===104)&&Cv.call(r,r.previous)&&!_p(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),a):n(d)}function a(d){if(Qe(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),a;if(d===58){let p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),s?u:(s=!0,l)):n(d)}function u(d){return d===null||Hr(d)||G(d)||dn(d)||jr(d)?n(d):e.attempt(yv,e.attempt(xv,c),n)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function $E(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),s):n(o)}function s(o){return o===null?n(o):t(o)}}function eI(e,t,n){let r,i,s;return o;function o(u){return u===46||u===95?e.check(vv,l,a)(u):u===null||G(u)||dn(u)||u!==45&&jr(u)?l(u):(s=!0,e.consume(u),o)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),o}function l(u){return i||r||!s?n(u):t(u)}}function tI(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(vv,t,s)(o):o===null||G(o)||dn(o)?t(o):(e.consume(o),i)}function s(o){return o===41&&r++,e.consume(o),i}}function nI(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),s):a===93?(e.consume(a),i):a===60||a===null||G(a)||dn(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||G(a)||dn(a)?t(a):r(a)}function s(a){return Qe(a)?o(a):n(a)}function o(a){return a===59?(e.consume(a),r):Qe(a)?(e.consume(a),o):n(a)}}function rI(e,t,n){return r;function r(s){return e.consume(s),i}function i(s){return Ne(s)?n(s):t(s)}}function Av(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||G(e)}function Cv(e){return!Qe(e)}function Sv(e){return!(e===47||Vp(e))}function Vp(e){return e===43||e===45||e===46||e===95||Ne(e)}function _p(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var iI={tokenize:dI,partial:!0};function Xp(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:lI,continuation:{tokenize:uI},exit:cI}},text:{91:{name:"gfmFootnoteCall",tokenize:aI},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:sI,resolveTo:oI}}}}function sI(e,t,n){let r=this,i=r.events.length,s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let l=r.events[i][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!o||!o._balanced)return n(l);let u=tt(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!s.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function oI(e,t){let n=e.length,r;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){r=e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;let o={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},l=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",s,t],["exit",s,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...l),e}function aI(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),s=0,o;return a;function a(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(s>999||d===93&&!o||d===null||d===91||G(d))return n(d);if(d===93){e.exit("chunkString");let p=e.exit("gfmFootnoteCallString");return i.includes(tt(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return G(d)||(o=!0),s++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),s++,u):u(d)}}function lI(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),s,o=0,a;return l;function l(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(h)}function c(h){if(o>999||h===93&&!a||h===null||h===91||G(h))return n(h);if(h===93){e.exit("chunkString");let y=e.exit("gfmFootnoteDefinitionLabelString");return s=tt(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return G(h)||(a=!0),o++,e.consume(h),h===92?d:c}function d(h){return h===91||h===92||h===93?(e.consume(h),o++,c):c(h)}function p(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(s)||i.push(s),H(e,f,"gfmFootnoteDefinitionWhitespace")):n(h)}function f(h){return t(h)}}function uI(e,t,n){return e.check(pn,t,e.attempt(iI,t,n))}function cI(e){e.exit("gfmFootnoteDefinition")}function dI(e,t,n){let r=this;return H(e,i,"gfmFootnoteDefinitionIndent",5);function i(s){let o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(s):n(s)}}function Jp(e){let n=(e||{}).singleTilde,r={name:"strikethrough",tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,a){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let u=l;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[l][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";let c={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[l][1].end)},d={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[l][1].start)},p=[["enter",c,a],["enter",o[u][1],a],["exit",o[u][1],a],["enter",d,a]],f=a.parser.constructs.insideSpan.null;f&&Pe(p,p.length,0,pr(f,o.slice(u+1,l),a)),Pe(p,p.length,0,[["exit",d,a],["enter",o[l][1],a],["exit",o[l][1],a],["exit",c,a]]),Pe(o,u-1,l-u+3,p),l=u+p.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function s(o,a,l){let u=this.previous,c=this.events,d=0;return p;function p(h){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(h):(o.enter("strikethroughSequenceTemporary"),f(h))}function f(h){let y=Ln(u);if(h===126)return d>1?l(h):(o.consume(h),d++,f);if(d<2&&!n)return l(h);let A=o.exit("strikethroughSequenceTemporary"),m=Ln(h);return A._open=!m||m===2&&!!y,A._close=!y||y===2&&!!m,a(h)}}}var Rl=class{constructor(){this.map=[]}add(t,n,r){pI(this,t,n,r)}consume(t){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let n=this.map.length,r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(let s of i)t.push(s);i=r.pop()}this.map.length=0}};function pI(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Ev(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Kp(){return{flow:{null:{name:"table",tokenize:fI,resolveAll:mI}}}}function fI(e,t,n){let r=this,i=0,s=0,o;return a;function a(k){let Y=r.events.length-1;for(;Y>-1;){let Q=r.events[Y][1].type;if(Q==="lineEnding"||Q==="linePrefix")Y--;else break}let K=Y>-1?r.events[Y][1].type:null,F=K==="tableHead"||K==="tableRow"?b:l;return F===b&&r.parser.lazy[r.now().line]?n(k):F(k)}function l(k){return e.enter("tableHead"),e.enter("tableRow"),u(k)}function u(k){return k===124||(o=!0,s+=1),c(k)}function c(k){return k===null?n(k):z(k)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),f):n(k):j(k)?H(e,c,"whitespace")(k):(s+=1,o&&(o=!1,i+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),o=!0,c):(e.enter("data"),d(k)))}function d(k){return k===null||k===124||G(k)?(e.exit("data"),c(k)):(e.consume(k),k===92?p:d)}function p(k){return k===92||k===124?(e.consume(k),d):d(k)}function f(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(k):(e.enter("tableDelimiterRow"),o=!1,j(k)?H(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):h(k))}function h(k){return k===45||k===58?A(k):k===124?(o=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),y):I(k)}function y(k){return j(k)?H(e,A,"whitespace")(k):A(k)}function A(k){return k===58?(s+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),m):k===45?(s+=1,m(k)):k===null||z(k)?C(k):I(k)}function m(k){return k===45?(e.enter("tableDelimiterFiller"),g(k)):I(k)}function g(k){return k===45?(e.consume(k),g):k===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(k))}function w(k){return j(k)?H(e,C,"whitespace")(k):C(k)}function C(k){return k===124?h(k):k===null||z(k)?!o||i!==s?I(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(k)):I(k)}function I(k){return n(k)}function b(k){return e.enter("tableRow"),L(k)}function L(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),L):k===null||z(k)?(e.exit("tableRow"),t(k)):j(k)?H(e,L,"whitespace")(k):(e.enter("data"),T(k))}function T(k){return k===null||k===124||G(k)?(e.exit("data"),L(k)):(e.consume(k),k===92?D:T)}function D(k){return k===92||k===124?(e.consume(k),T):T(k)}}function mI(e,t){let n=-1,r=!0,i=0,s=[0,0,0,0],o=[0,0,0,0],a=!1,l=0,u,c,d,p=new Rl;for(;++n<e.length;){let f=e[n],h=f[1];f[0]==="enter"?h.type==="tableHead"?(a=!1,l!==0&&(Iv(p,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(n,0,[["enter",u,t]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(r=!0,d=void 0,s=[0,0,0,0],o=[0,n+1,0,0],a&&(a=!1,c={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(n,0,[["enter",c,t]])),i=h.type==="tableDelimiterRow"?2:c?3:1):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],d=Dl(p,t,s,i,void 0,d),s=[0,0,0,0]),o[2]=n)):h.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(o[0]=o[1],d=Dl(p,t,s,i,void 0,d)),s=o,o=[s[1],n,0,0])):h.type==="tableHead"?(a=!0,l=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(l=n,s[1]!==0?(o[0]=o[1],d=Dl(p,t,s,i,n,d)):o[1]!==0&&(d=Dl(p,t,o,i,n,d)),i=0):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&Iv(p,t,l,u,c),p.consume(t.events),n=-1;++n<t.events.length;){let f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=Ev(t.events,n))}return e}function Dl(e,t,n,r,i,s){let o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(s.end=Object.assign({},ji(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));let l=ji(t.events,n[1]);if(s={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){let u=ji(t.events,n[2]),c=ji(t.events,n[3]),d={type:a,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){let p=t.events[n[2]],f=t.events[n[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){let h=n[2]+1,y=n[3]-n[2]-1;e.add(h,y,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(s.end=Object.assign({},ji(t.events,i)),e.add(i,0,[["exit",s,t]]),s=void 0),s}function Iv(e,t,n,r,i){let s=[],o=ji(t.events,n);i&&(i.end=Object.assign({},o),s.push(["exit",i,t])),r.end=Object.assign({},o),s.push(["exit",r,t]),e.add(n+1,0,s)}function ji(e,t){let n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}var hI={name:"tasklistCheck",tokenize:gI};function qp(){return{text:{91:hI}}}function gI(e,t,n){let r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),s)}function s(l){return G(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(l)}function a(l){return z(l)?t(l):j(l)?e.check({tokenize:wI},t,n)(l):n(l)}}function wI(e,t,n){return H(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Tv(e){return al([Wp(),Xp(),Jp(e),Kp(),qp()])}var yI={};function Ol(e){let t=this,n=e||yI,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Tv(n)),s.push(Hp()),o.push(jp(n))}var Pn=S(N(),1),xI={a:({children:e,href:t})=>(0,Pn.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:"ss-w-md-link",children:e}),table:({children:e})=>(0,Pn.jsx)("div",{className:"ss-w-table-wrap",children:(0,Pn.jsx)("table",{className:"ss-w-md-table",children:e})}),ul:({children:e})=>(0,Pn.jsx)("ul",{className:"ss-w-md-ul",children:e}),ol:({children:e})=>(0,Pn.jsx)("ol",{className:"ss-w-md-ol",children:e}),code:({children:e})=>(0,Pn.jsx)("code",{className:"ss-w-md-code",children:e})};function Nv({text:e}){return(0,Pn.jsx)("div",{className:"ss-w-md",children:(0,Pn.jsx)(pp,{remarkPlugins:[Ol],components:xI,children:e})})}var Yp=S(de(),1),te=S(N(),1),Lv=3,vI=/^(\d+)-(\d+)-(\d+)$/;function kI(e){return e.split(/\s+/).slice(0,2).map(t=>{var n;return(n=t[0])!=null?n:""}).join("").toUpperCase()}function bI(e){return e.replace(/\d{4}/g,t=>t.slice(2))}function Pv({image:e,label:t}){return(0,te.jsx)("span",{className:"ss-w-ecard-crest",style:{backgroundImage:`url(${e})`},...t?{role:"img",title:t,"aria-label":t}:{"aria-hidden":"true"}})}function AI({w:e,d:t,l:n}){return e+t+n===0?null:(0,te.jsxs)("span",{className:"ss-w-form","aria-hidden":"true",children:[e>0?(0,te.jsx)("span",{className:"ss-w-form-w",style:{flexGrow:e}}):null,t>0?(0,te.jsx)("span",{className:"ss-w-form-d",style:{flexGrow:t}}):null,n>0?(0,te.jsx)("span",{className:"ss-w-form-l",style:{flexGrow:n}}):null]})}function CI({s:e}){let t=vI.exec(e.value);return t?(0,te.jsxs)("div",{className:"ss-w-ecard-cell",children:[(0,te.jsx)("span",{className:"ss-w-ecard-cval",children:(0,te.jsx)(AI,{w:Number(t[1]),d:Number(t[2]),l:Number(t[3])})}),(0,te.jsx)("span",{className:"ss-w-ecard-clabel",children:e.value})]}):(0,te.jsxs)("div",{className:"ss-w-ecard-cell",children:[(0,te.jsx)("span",{className:"ss-w-ecard-cval",children:e.value}),(0,te.jsx)("span",{className:"ss-w-ecard-clabel",children:e.label})]})}function SI({stats:e}){if(e.length===0)return null;let t=Math.min(e.length,4);return(0,te.jsx)("div",{className:"ss-w-ecard-strip",style:{gridTemplateColumns:`repeat(${t}, 1fr)`},children:e.map(n=>(0,te.jsx)(CI,{s:n},n.label+n.value))})}function Mv({c:e,showScopeCrest:t}){let n=e.scopes.length===1?e.scopes[0]:null;return(0,te.jsxs)("div",{className:"ss-w-ecard-hd",children:[(0,te.jsx)("span",{className:e.kind==="team"?"ss-w-thumb ss-w-team":"ss-w-thumb",style:e.image?{backgroundImage:`url(${e.image})`}:void 0,children:e.image?"":kI(e.name)}),(0,te.jsxs)("span",{className:"ss-w-ecard-idtext",children:[(0,te.jsx)("span",{className:"ss-w-nm",children:e.name}),e.sub?(0,te.jsx)("span",{className:"ss-w-sub",children:e.sub}):null]}),(0,te.jsxs)("span",{className:"ss-w-ecard-meta",children:[t&&(n!=null&&n.image)?(0,te.jsx)(Pv,{image:n.image,label:n.label}):null,e.season?(0,te.jsx)("span",{className:"ss-w-ecard-season",children:bI(e.season)}):null]})]})}function EI({scopes:e,active:t,onSelect:n}){return(0,te.jsx)("div",{className:"ss-w-ecard-scopes",role:"tablist",children:e.map((r,i)=>{var s;return(0,te.jsx)("button",{type:"button",role:"tab",className:"ss-w-ecard-scope","aria-selected":i===t,"aria-label":r.label,title:r.label,onClick:()=>n(i),children:r.image?(0,te.jsx)(Pv,{image:r.image}):r.label},String((s=r.competitionId)!=null?s:"all"))})})}function II({c:e}){let[t,n]=(0,Yp.useState)(0);if(!(e.scopes.length>0))return(0,te.jsx)("div",{className:"ss-w-ecard ss-w-ecard-bare","data-kind":e.kind,children:(0,te.jsx)(Mv,{c:e,showScopeCrest:!1})});let i=e.scopes.length>1,s=e.scopes[i&&e.scopes[t]?t:0];return(0,te.jsxs)("div",{className:"ss-w-ecard","data-kind":e.kind,children:[(0,te.jsx)(Mv,{c:e,showScopeCrest:!i}),i?(0,te.jsx)(EI,{scopes:e.scopes,active:t,onSelect:n}):null,(0,te.jsx)(SI,{stats:s.stats})]})}function Rv({cards:e,disabled:t,showLessLabel:n="Show less",showMoreLabel:r=i=>`Show ${i} more`}){let[i,s]=(0,Yp.useState)(!1);if(e.length===0)return null;let o=i?e:e.slice(0,Lv),a=e.length-Lv;return(0,te.jsxs)("div",{className:"ss-w-cards",children:[o.map(l=>(0,te.jsx)(II,{c:l},l.id)),a>0?(0,te.jsx)("button",{type:"button",className:"ss-w-cards-more",disabled:t,onClick:()=>s(l=>!l),children:i?n:r(a)}):null]})}var Zp=S(de(),1);var Vi=S(de(),1);var Dv=S(de(),1),Ov=S(N(),1),TI=4e3;function zl({toast:e,onDismiss:t}){return(0,Dv.useEffect)(()=>{if(!e)return;let n=setTimeout(t,TI);return()=>clearTimeout(n)},[e,t]),e?(0,Ov.jsx)("div",{className:`ss-w-toast ss-w-toast-${e.kind}`,role:"status","aria-live":"polite",children:e.text}):null}var Wi=S(N(),1);function LI(e){return Promise.race([e,new Promise((t,n)=>setTimeout(()=>n(new Error("add-to-slip timed out")),1e4))])}function yo({selection:e,shownOdds:t,marketName:n,slip:r,ui:i}){let[s,o]=(0,Vi.useState)(!1),[a,l]=(0,Vi.useState)(!1),[u,c]=(0,Vi.useState)(null),d=(0,Vi.useCallback)(()=>c(null),[]),p=r.onAddToSlip;return!i||!p||!e?null:(0,Wi.jsxs)("div",{className:"ss-w-slip",children:[(0,Wi.jsx)("button",{type:"button",className:"ss-w-slip-btn",disabled:s||a,onClick:async()=>{o(!0);try{let h=await LI(Promise.resolve(p(e)));if(h!=null&&!dd(h))throw new Error("malformed add-to-slip result");let y=h!=null?h:void 0;if(c(ow(y,t||e.oddsDecimal.toFixed(2),i)),l(sw(y)),qa(y)&&r.onMarketClicked)try{r.onMarketClicked(n)}catch{}}catch{c({kind:"error",text:i.slipFailed})}finally{o(!1)}},children:a?i.inSlip:i.addToSlip}),(0,Wi.jsx)(zl,{toast:u,onDismiss:d})]})}function zv({it:e,slip:t,ui:n}){var i;let r=e.addToSlipEnabled?ww(e,t.conversationId):null;return(0,Wi.jsx)(yo,{selection:r,shownOdds:(i=e.odds)!=null?i:"",marketName:e.market,slip:t,ui:n})}var xo=S(N(),1);function _i({previous:e,current:t,direction:n,ui:r}){var o,a,l,u;if(e===void 0||n===void 0)return null;let i=n==="shortened"?(o=r==null?void 0:r.oddsShortened)!=null?o:"shortened":(a=r==null?void 0:r.oddsDrifted)!=null?a:"drifted",s=(u=(l=r==null?void 0:r.oddsMoved)==null?void 0:l.call(r,e,t,i))!=null?u:`was ${e}, now ${t}, ${i}`;return(0,xo.jsxs)("span",{className:"ss-w-move",role:"img","aria-label":s,children:[(0,xo.jsx)("span",{className:"ss-w-move-prev","aria-hidden":"true",children:e}),(0,xo.jsx)("span",{className:"ss-w-move-arrow","aria-hidden":"true",children:n==="shortened"?"\u25BC":"\u25B2"})]})}var Bv=S(de(),1),Gp=S(N(),1);function MI(e){return(e!=null?e:"").trim().slice(0,1).toUpperCase()||"?"}function xe({url:e,name:t,kind:n}){let r=n==="comp"?"ss-w-bi-comp-logo":"ss-w-bi-crest",[i,s]=(0,Bv.useState)(!1);return e&&!i?(0,Gp.jsx)("img",{className:r,src:e,alt:"","aria-hidden":"true",onError:()=>s(!0)}):(0,Gp.jsx)("span",{className:`${r} ss-w-bi-crest-mono`,"aria-hidden":"true",children:MI(t)})}var Bl=S(de(),1);var Gr=S(N(),1);function $t({pin:e,monitor:t,ui:n}){let[r,i]=(0,Bl.useState)(null),s=(0,Bl.useCallback)(()=>i(null),[]);if(!t||!t.enabled)return null;let o=Iw(e),a=t.isPinned(o),l=e.kind==="match"?{pin:n.matchPinLabel,unpin:n.matchUnpinLabel}:{pin:n.pinLabel,unpin:n.unpinLabel},u=()=>{let c=t.togglePin({...e,key:o});c==="match_limit"?i({kind:"error",text:n.matchLimitToast}):c==="market_limit"&&i({kind:"error",text:n.marketLimitToast})};return(0,Gr.jsxs)("div",{className:"ss-w-pin-wrap",children:[(0,Gr.jsx)("button",{type:"button",className:"ss-w-pin","data-on":a||void 0,"aria-pressed":a,"aria-label":a?l.unpin:l.pin,onClick:u,children:(0,Gr.jsx)("svg",{viewBox:"0 0 16 16","aria-hidden":"true",children:(0,Gr.jsx)("path",{fill:"currentColor",d:"M9.5 1.5 14.5 6.5 13 8l-.5-.5-3 3 .3 2.2-1.4 1.4L5.6 11.3l-3.3 3.3-1-1 3.3-3.3L1.9 7.5l1.4-1.4 2.2.3 3-3L8 2.9z"})})}),(0,Gr.jsx)(zl,{toast:r,onDismiss:s})]})}var U=S(N(),1);function Fv({stats:e}){return(0,U.jsx)("div",{className:"ss-w-bi-rows",children:e.map(t=>(0,U.jsxs)("div",{className:"ss-w-bi-row",children:[(0,U.jsx)("span",{className:"ss-w-bi-row-lbl",children:t.label}),(0,U.jsx)("span",{className:"ss-w-bi-row-num",children:t.value})]},`${t.label}:${t.value}`))})}function PI({scopes:e}){var i,s;let[t,n]=(0,Zp.useState)(0),r=(s=(i=e[t])!=null?i:e[0])!=null?s:{key:"",label:"",stats:[]};return(0,U.jsxs)("div",{className:"ss-w-bi-scoped",children:[(0,U.jsx)("div",{className:"ss-w-bi-scopes",role:"group",children:e.map((o,a)=>(0,U.jsx)("button",{type:"button",className:"ss-w-bi-chip","aria-pressed":a===t,onClick:()=>n(a),children:o.label},o.key))}),(0,U.jsx)(Fv,{stats:r.stats},r.key)]})}function RI(e){return!!e.scopes&&e.scopes.length>=2||e.stats.length>0}function DI({it:e,ui:t}){var l,u,c,d;let[n,r]=(0,Zp.useState)(!1),i=!!e.scopes&&e.scopes.length>=2,s=RI(e),o=!!e.text;if(!o&&!s)return null;let a=s||((u=(l=e.text)==null?void 0:l.length)!=null?u:0)>90;return(0,U.jsxs)("div",{className:"ss-w-bi-reason",children:[(0,U.jsx)("span",{className:"ss-w-bi-chart","aria-hidden":"true"}),(0,U.jsxs)("div",{className:"ss-w-bi-reason-body",children:[o?(0,U.jsx)("p",{className:`ss-w-bi-text${n?"":" ss-w-bi-text-clamp"}`,children:e.text}):null,n&&s?i?(0,U.jsx)(PI,{scopes:e.scopes}):(0,U.jsx)(Fv,{stats:e.stats}):null]}),a?(0,U.jsx)("button",{type:"button",className:"ss-w-bi-expand","aria-expanded":n,"aria-label":n?(c=t==null?void 0:t.hideStats)!=null?c:"Hide stats":(d=t==null?void 0:t.showStats)!=null?d:"Show stats",onClick:()=>r(p=>!p),children:(0,U.jsx)("span",{className:`ss-w-bi-arrow${n?" ss-w-bi-arrow-open":""}`,"aria-hidden":"true"})}):null]})}function OI({it:e}){return e.homeTeamName&&e.awayTeamName?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(xe,{kind:"team",url:e.homeCrest,name:e.homeTeamName}),(0,U.jsx)("span",{className:"ss-w-bi-team",children:e.homeTeamName}),(0,U.jsx)("span",{className:"ss-w-bi-vs","aria-hidden":"true",children:"vs"}),(0,U.jsx)("span",{className:"ss-w-bi-team",children:e.awayTeamName}),(0,U.jsx)(xe,{kind:"team",url:e.awayCrest,name:e.awayTeamName})]}):e.fixture?(0,U.jsx)("span",{className:"ss-w-bi-fixture-txt",children:e.fixture}):e.competition?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(xe,{kind:"comp",url:e.competitionCrest,name:e.competition}),(0,U.jsx)("span",{className:"ss-w-bi-comp",children:e.competition})]}):null}function zI({it:e,ui:t,slip:n,monitor:r}){var d,p;let i=e.isLive||e.phase==="live",s=e.kickoffUtc&&(t!=null&&t.bettingKickoff)?t.bettingKickoff(e.kickoffUtc):void 0,a=!!e.homeTeamName&&!!e.awayTeamName||!!e.fixture,l=a&&!!e.competition,u=!!r&&e.pinEnabled,c=a||!!e.competition||i||!!s||u;return(0,U.jsxs)("div",{className:"ss-w-binsight",children:[c?(0,U.jsxs)("div",{className:"ss-w-bi-header",children:[(0,U.jsx)("span",{className:"ss-w-bi-header-left",children:(0,U.jsx)(OI,{it:e})}),(0,U.jsxs)("span",{className:"ss-w-bi-header-right",children:[i?(0,U.jsxs)("span",{className:"ss-w-bi-live",children:[(0,U.jsx)("span",{className:"ss-w-bi-live-dot","aria-hidden":"true"}),(d=t==null?void 0:t.liveLabel)!=null?d:"Live"]}):null,l?(0,U.jsx)("span",{className:"ss-w-bi-comp-meta",title:e.competition,children:(0,U.jsx)(xe,{kind:"comp",url:e.competitionCrest,name:e.competition})}):null,s?(0,U.jsxs)("span",{className:"ss-w-bi-kick",children:[s.dayLabel," ",s.time]}):null,u&&t?(0,U.jsx)($t,{ui:t,monitor:r,pin:{kind:"match",matchId:e.matchId}}):null]})]}):null,(0,U.jsxs)("div",{className:"ss-w-bi-action-row",children:[(0,U.jsxs)("span",{className:"ss-w-bi-pick",children:[(0,U.jsx)("span",{className:"ss-w-bi-market",children:e.market}),e.selection?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("span",{className:"ss-w-bi-pick-dot","aria-hidden":"true",children:"\xB7"}),(0,U.jsx)("span",{className:"ss-w-bi-sel",children:e.selection})]}):null]}),e.odds?(0,U.jsxs)("span",{className:"ss-w-bi-odds",children:[(0,U.jsx)("b",{children:e.odds}),(0,U.jsx)(_i,{previous:e.previousOdds,current:e.odds,direction:e.movementDirection,ui:t}),e.bookmaker?(0,U.jsx)("span",{className:"ss-w-bi-book",children:e.bookmaker}):null]}):null,(0,U.jsx)(zv,{it:e,slip:n,ui:t}),u&&t?(0,U.jsx)($t,{ui:t,monitor:r,pin:{kind:"selection",matchId:e.matchId,marketDeveloperName:e.marketDeveloperName,selectionLabel:e.selectionLabel,line:e.line,matchOddsId:e.matchOddsId}}):null]}),e.isMarketFloor?(0,U.jsx)("span",{className:"ss-w-bi-floor",children:(p=t==null?void 0:t.marketFloorLabel)!=null?p:"Market price \xB7 not a value pick"}):null,(0,U.jsx)(DI,{it:e,ui:t}),e.disclaimer?(0,U.jsx)("p",{className:"ss-w-bi-disc",children:e.disclaimer}):null]})}function Uv({insights:e,ui:t,slip:n,monitor:r}){return!e||e.length===0?null:(0,U.jsx)("div",{className:"ss-w-binsights",children:e.map(i=>(0,U.jsx)(zI,{it:i,ui:t,slip:n,monitor:r},i.id))})}var Hv=S(de(),1);var q=S(N(),1);function Qv({vm:e,row:t,ui:n,slip:r,inSlipIds:i}){let s=e.addToSlipEnabled?yw(e,t,r.conversationId):null,o=!!i&&t.matchOddsId!=null&&!!i[t.matchOddsId];return(0,q.jsxs)("div",{className:"ss-w-mo-row",children:[(0,q.jsx)("span",{className:"ss-w-mo-sel",children:t.selection}),(0,q.jsx)(_i,{previous:t.previousOdds,current:t.odds,direction:t.movementDirection,ui:n}),(0,q.jsx)("span",{className:"ss-w-mo-price",children:t.odds}),o&&n?(0,q.jsxs)("span",{className:"ss-w-mon-inslip",children:["\u2713 ",n.inSlipLabel]}):null,(0,q.jsx)(yo,{selection:s,shownOdds:t.odds,marketName:e.market,slip:r,ui:n})]})}function BI({vm:e,ui:t,slip:n,monitor:r,inSlipIds:i}){var d,p,f;let[s,o]=(0,Hv.useState)(!1),a=e.kickoffUtc&&(t!=null&&t.bettingKickoff)?t.bettingKickoff(e.kickoffUtc):void 0,l=!!e.homeTeamName&&!!e.awayTeamName,u=!!r&&e.pinEnabled,c=!!e.competition||e.isLive||!!a||u;return(0,q.jsxs)("div",{className:"ss-w-mocard",children:[c?(0,q.jsxs)("div",{className:"ss-w-bi-header",children:[(0,q.jsx)("span",{className:"ss-w-bi-header-left",children:e.competition?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(xe,{kind:"comp",url:e.competitionCrest,name:e.competition}),(0,q.jsx)("span",{className:"ss-w-bi-comp",children:e.competition})]}):null}),(0,q.jsxs)("span",{className:"ss-w-bi-header-right",children:[e.isLive?(0,q.jsxs)("span",{className:"ss-w-bi-live",children:[(0,q.jsx)("span",{className:"ss-w-bi-live-dot","aria-hidden":"true"}),(d=t==null?void 0:t.liveLabel)!=null?d:"Live"]}):null,a?(0,q.jsxs)("span",{className:"ss-w-bi-kick",children:[a.dayLabel," ",a.time]}):null,u&&t?(0,q.jsx)($t,{ui:t,monitor:r,pin:{kind:"market",matchId:e.matchId,marketDeveloperName:e.marketDeveloperName,line:e.mainLine}}):null]})]}):null,l||e.fixture||e.market?(0,q.jsxs)("div",{className:"ss-w-mo-sub",children:[l?(0,q.jsxs)("div",{className:"ss-w-bi-fixture",children:[(0,q.jsx)(xe,{kind:"team",url:e.homeCrest,name:e.homeTeamName}),(0,q.jsx)("span",{className:"ss-w-bi-team",children:e.homeTeamName}),(0,q.jsx)("span",{className:"ss-w-bi-vs","aria-hidden":"true",children:"vs"}),(0,q.jsx)("span",{className:"ss-w-bi-team",children:e.awayTeamName}),(0,q.jsx)(xe,{kind:"team",url:e.awayCrest,name:e.awayTeamName})]}):e.fixture?(0,q.jsx)("span",{className:"ss-w-mo-teams",children:e.fixture}):null,e.market?(0,q.jsx)("span",{className:"ss-w-mo-market",children:e.market}):null]}):null,(0,q.jsxs)("div",{className:"ss-w-mo-rows",children:[e.mainRows.map(h=>(0,q.jsx)(Qv,{vm:e,row:h,ui:t,slip:n,inSlipIds:i},h.key)),s?e.moreRows.map(h=>(0,q.jsx)(Qv,{vm:e,row:h,ui:t,slip:n,inSlipIds:i},h.key)):null]}),e.moreRows.length>0?(0,q.jsxs)("button",{type:"button",className:"ss-w-mo-more","aria-expanded":s,onClick:()=>o(h=>!h),children:[(0,q.jsx)("span",{children:s?(p=t==null?void 0:t.hideLines)!=null?p:"Hide lines":`${(f=t==null?void 0:t.moreLines)!=null?f:"More lines"} (${e.moreRows.length})`}),(0,q.jsx)("span",{className:`ss-w-mo-more-chev${s?" ss-w-mo-more-chev-up":""}`,"aria-hidden":"true"})]}):null,e.bookmaker?(0,q.jsx)("div",{className:"ss-w-mo-foot",children:(0,q.jsx)("span",{children:e.bookmaker})}):null,e.disclaimer?(0,q.jsx)("p",{className:"ss-w-bi-disc",children:e.disclaimer}):null]})}function Xi({cards:e,ui:t,slip:n,monitor:r,inSlipIds:i}){return!e||e.length===0?null:(0,q.jsx)("div",{className:"ss-w-mocards",children:e.map(s=>(0,q.jsx)(BI,{vm:s,ui:t,slip:n,monitor:r,inSlipIds:i},s.id))})}var $=S(N(),1);function UI(e,t){var n,r;return e.direction==="shortened"?(n=t==null?void 0:t.oddsShortened)!=null?n:"shortened":e.direction==="drifted"?(r=t==null?void 0:t.oddsDrifted)!=null?r:"drifted":""}function QI({vm:e,ui:t,monitor:n}){var a,l,u,c,d,p;let r=UI(e,t),i=r?`, ${r}`:"",s=t!=null&&t.chartAria?t.chartAria(e.opening,e.current,r,e.windowHours):`Price movement over the last ${e.windowHours} hours: opened at ${e.opening}, currently ${e.current}${i}.`,o=!!n&&e.pinEnabled;return(0,$.jsxs)("div",{className:"ss-w-omcard",children:[(0,$.jsxs)("div",{className:"ss-w-om-head",children:[(0,$.jsx)("span",{className:"ss-w-om-market",children:e.market}),(0,$.jsx)("span",{className:"ss-w-om-tag",children:(a=t==null?void 0:t.priceMovement)!=null?a:"Price movement"}),o&&t?(0,$.jsx)($t,{ui:t,monitor:n,pin:{kind:"selection",matchId:e.matchId,marketDeveloperName:e.marketDeveloperName,selectionLabel:e.selectionLabel,line:e.line,withHistory:!0,matchOddsId:e.matchOddsId}}):null]}),e.fixture?(0,$.jsxs)("div",{className:"ss-w-om-fixture",children:[(0,$.jsx)("span",{children:e.fixture}),e.competition?(0,$.jsx)("span",{className:"ss-w-om-comp",children:e.competition}):null]}):null,(0,$.jsx)("div",{className:"ss-w-om-sel",children:e.selection}),(0,$.jsx)(_i,{previous:e.opening,current:e.current,direction:e.direction,ui:t}),e.geometry===null?(0,$.jsx)("div",{className:"ss-w-om-empty",children:e.observationCount===1?(l=t==null?void 0:t.singlePricePoint)!=null?l:"Only one price recorded so far for this selection.":(u=t==null?void 0:t.notEnoughHistory)!=null?u:"No price history recorded yet for this selection."}):(0,$.jsxs)("svg",{className:"ss-w-om-chart",viewBox:e.geometry.viewBox,width:"100%",role:"img","aria-label":s,children:[e.geometry.gridlines.map(f=>(0,$.jsxs)("g",{children:[(0,$.jsx)("line",{className:"ss-w-om-grid",x1:40,y1:f.y,x2:312,y2:f.y}),(0,$.jsx)("text",{className:"ss-w-om-ylab",x:34,y:f.y+3,textAnchor:"end",children:f.price.toFixed(2)})]},f.price)),(0,$.jsx)("path",{className:"ss-w-om-line",d:e.geometry.path,fill:"none"}),e.geometry.markers.map((f,h)=>(0,$.jsx)("circle",{className:"ss-w-om-dot",cx:f.x,cy:f.y,r:2.5},h)),t!=null&&t.chartTimeLabel?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)("text",{className:"ss-w-om-xlab",x:40,y:132,textAnchor:"start",children:t.chartTimeLabel(e.geometry.startMs)}),(0,$.jsx)("text",{className:"ss-w-om-xlab",x:312,y:132,textAnchor:"end",children:t.chartTimeLabel(e.geometry.endMs)})]}):(0,$.jsx)("text",{className:"ss-w-om-xlab",x:40,y:132,children:t!=null&&t.movementWindow?t.movementWindow(e.windowHours):`Last ${e.windowHours}h`})]}),(0,$.jsxs)("div",{className:"ss-w-om-foot",children:[(0,$.jsxs)("span",{children:[(c=t==null?void 0:t.openingLabel)!=null?c:"Opening"," ",(0,$.jsx)("b",{children:e.opening})]}),(0,$.jsxs)("span",{children:[(d=t==null?void 0:t.currentLabel)!=null?d:"Current"," ",(0,$.jsx)("b",{children:e.current})]})]}),e.bookmaker?(0,$.jsx)("div",{className:"ss-w-om-foot",children:(0,$.jsx)("span",{children:e.bookmaker})}):null,e.excludedCount>0?(0,$.jsx)("div",{className:"ss-w-om-excl",children:t!=null&&t.excludedSuspended?t.excludedSuspended(e.excludedCount):`${e.excludedCount} suspended price(s) excluded from this chart.`}):null,e.isSuspended?(0,$.jsx)("div",{className:"ss-w-om-susp",children:(p=t==null?void 0:t.selectionSuspended)!=null?p:"This selection is not currently available to bet."}):null,e.disclaimer?(0,$.jsx)("div",{className:"ss-w-om-disc",children:e.disclaimer}):null]})}function Fl({cards:e,ui:t,monitor:n}){return!e||e.length===0?null:(0,$.jsx)("div",{className:"ss-w-omcards",children:e.map(r=>(0,$.jsx)(QI,{vm:r,ui:t,monitor:n},r.id))})}var Rn=S(N(),1);function Ul({actions:e,loading:t,disabled:n,onAct:r}){return e.length===0&&!t?null:(0,Rn.jsxs)("div",{className:"ss-w-actions",children:[e.map((i,s)=>(0,Rn.jsx)("button",{type:"button",className:"ss-w-abtn",disabled:n,onClick:()=>r(i),children:i.label},`${i.label}-${s}`)),e.length===0&&t?(0,Rn.jsxs)(Rn.Fragment,{children:[(0,Rn.jsx)("span",{className:"ss-w-abtn-shimmer"}),(0,Rn.jsx)("span",{className:"ss-w-abtn-shimmer"})]}):null]})}var xt=S(N(),1),HI=3;function Vv({tile:e,onTap:t}){var s;let n=e.span==="full"?"ss-w-dash-tile--full":"ss-w-dash-tile--half",r=((s=e.imageUrls)!=null?s:[]).slice(0,HI),i=!!e.badgeText||r.length>0;return(0,xt.jsxs)("button",{type:"button",className:`ss-w-dash-tile ${n}`,onClick:t,children:[(0,xt.jsx)("span",{className:"ss-w-dash-tile-icon",children:(0,xt.jsx)(Fw,{name:e.icon})}),(0,xt.jsxs)("span",{className:"ss-w-dash-tile-body",children:[(0,xt.jsx)("span",{className:"ss-w-dash-tile-title",children:e.title}),e.subtitle?(0,xt.jsx)("span",{className:"ss-w-dash-tile-subtitle",children:e.subtitle}):null,i?(0,xt.jsxs)("span",{className:"ss-w-dash-tile-meta",children:[e.badgeText?(0,xt.jsx)("span",{className:"ss-w-dash-tile-badge",children:e.badgeText}):null,r.length>0?(0,xt.jsx)("span",{className:"ss-w-dash-tile-crests",children:r.map((o,a)=>(0,xt.jsx)("span",{className:"ss-w-dash-tile-crest",style:{backgroundImage:`url(${o})`},"aria-hidden":"true"},`${o}-${a}`))}):null]}):null]}),(0,xt.jsx)("span",{className:"ss-w-dash-tile-chevron",children:(0,xt.jsx)($a,{})})]})}var Dn=S(N(),1),$p={market:"ss-w-dash--market",goal:"ss-w-dash--goal",discovery:"ss-w-dash--discovery"};function jI(e){return Object.prototype.hasOwnProperty.call($p,e)?$p[e]:$p.goal}function Wv({dashboard:e,onTap:t}){return(0,Dn.jsxs)("div",{className:`ss-w-dash ${jI(e.layout)}`,children:[(0,Dn.jsxs)("div",{className:"ss-w-dash-head",children:[(0,Dn.jsx)("span",{className:"ss-w-dash-title",children:e.title}),e.subtitle?(0,Dn.jsx)("span",{className:"ss-w-dash-subtitle",children:e.subtitle}):null]}),(0,Dn.jsx)("div",{className:"ss-w-dash-grid",children:e.tiles.map((n,r)=>(0,Dn.jsx)(Vv,{tile:n,onTap:()=>t(n,r)},`${n.title}-${r}`))}),e.footerTip?(0,Dn.jsx)("span",{className:"ss-w-dash-foot",children:e.footerTip}):null]})}var V=S(N(),1);function VI(e){return e==="W"?"ss-w-fandash-teamform-cell--win":e==="L"?"ss-w-fandash-teamform-cell--loss":"ss-w-fandash-teamform-cell--draw"}function _v({m:e,subjectCrestUrl:t,subjectName:n}){var o;let r=(0,V.jsx)(xe,{url:t!=null?t:void 0,name:n,kind:"team"}),i=(0,V.jsx)(xe,{url:(o=e.opponentCrestUrl)!=null?o:void 0,kind:"team"}),s=e.teamIsHome?`${e.teamScore} - ${e.oppScore}`:`${e.oppScore} - ${e.teamScore}`;return(0,V.jsxs)("div",{className:`ss-w-fandash-teamform-cell ${VI(e.result)}`,children:[e.teamIsHome?r:i,(0,V.jsx)("span",{className:"ss-w-fandash-teamform-score",children:s}),e.teamIsHome?i:r]})}var WI=5;function _I(e){return Array.from({length:WI},(t,n)=>n).flatMap(t=>[(0,V.jsx)("span",{className:"ss-w-fandash-teamform-slot",children:e.homeForm[t]?(0,V.jsx)(_v,{m:e.homeForm[t],subjectCrestUrl:e.homeCrestUrl,subjectName:e.homeName}):null},`h-${t}`),(0,V.jsx)("span",{className:"ss-w-fandash-teamform-slot",children:e.awayForm[t]?(0,V.jsx)(_v,{m:e.awayForm[t],subjectCrestUrl:e.awayCrestUrl,subjectName:e.awayName}):null},`a-${t}`)])}function Xv({card:e}){var r,i,s,o;let{data:t}=e,n=t.h2H;return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-fixture",children:[(0,V.jsxs)("span",{className:"ss-w-fandash-eyebrow",children:[e.title," \xB7 ",t.competition]}),(0,V.jsxs)("div",{className:"ss-w-fandash-fixture-teams",children:[(0,V.jsxs)("span",{className:"ss-w-fandash-fixture-team",children:[(0,V.jsx)(xe,{url:(r=t.homeCrestUrl)!=null?r:void 0,name:t.homeName,kind:"team"}),(0,V.jsx)("span",{className:"ss-w-fandash-fixture-name",children:t.homeName})]}),(0,V.jsx)("span",{className:"ss-w-fandash-fixture-vs",children:"v"}),(0,V.jsxs)("span",{className:"ss-w-fandash-fixture-team ss-w-fandash-fixture-team--away",children:[(0,V.jsx)("span",{className:"ss-w-fandash-fixture-name",children:t.awayName}),(0,V.jsx)(xe,{url:(i=t.awayCrestUrl)!=null?i:void 0,name:t.awayName,kind:"team"})]})]}),(0,V.jsxs)("div",{className:"ss-w-fandash-fixture-meta",children:[(0,V.jsx)("span",{className:"ss-w-fandash-fixture-kickoff",children:t.kickoffLabel}),t.venue?(0,V.jsxs)("span",{className:"ss-w-fandash-fixture-venue",children:[" \xB7 ",t.venue]}):null]})]}),(0,V.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-lastfive",children:[(0,V.jsx)("span",{className:"ss-w-fandash-eyebrow",children:t.formLabel}),(0,V.jsxs)("div",{className:"ss-w-fandash-teamform-head",children:[(0,V.jsxs)("span",{className:"ss-w-fandash-teamform-head-team",children:[(0,V.jsx)(xe,{url:(s=t.homeCrestUrl)!=null?s:void 0,name:t.homeName,kind:"team"}),(0,V.jsx)("span",{className:"ss-w-fandash-teamform-head-name",children:t.homeName})]}),(0,V.jsxs)("span",{className:"ss-w-fandash-teamform-head-team",children:[(0,V.jsx)(xe,{url:(o=t.awayCrestUrl)!=null?o:void 0,name:t.awayName,kind:"team"}),(0,V.jsx)("span",{className:"ss-w-fandash-teamform-head-name",children:t.awayName})]})]}),(0,V.jsx)("div",{className:"ss-w-fandash-teamform-rows",children:_I(t)})]}),n||t.fact?(0,V.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-h2h",children:[n?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)("span",{className:"ss-w-fandash-eyebrow",children:n.label}),(0,V.jsxs)("div",{className:"ss-w-fandash-split",children:[(0,V.jsxs)("span",{className:"ss-w-fandash-split-cell",children:[(0,V.jsx)("span",{className:"ss-w-fandash-split-value",children:n.wins}),(0,V.jsx)("span",{className:"ss-w-fandash-split-label",children:n.homeWinsLabel})]}),(0,V.jsxs)("span",{className:"ss-w-fandash-split-cell",children:[(0,V.jsx)("span",{className:"ss-w-fandash-split-value",children:n.draws}),(0,V.jsx)("span",{className:"ss-w-fandash-split-label",children:n.drawsLabel})]}),(0,V.jsxs)("span",{className:"ss-w-fandash-split-cell",children:[(0,V.jsx)("span",{className:"ss-w-fandash-split-value",children:n.losses}),(0,V.jsx)("span",{className:"ss-w-fandash-split-label",children:n.awayWinsLabel})]})]})]}):null,t.fact?(0,V.jsx)("span",{className:"ss-w-fandash-fact",children:t.fact}):null]}):null]})}var Zr=S(de(),1),en=S(N(),1),XI=864e5;function JI(e,t,n){let r=Math.floor((e*1e3-t)/1e3);if(r<=0)return null;let i=Math.floor(r/86400),s=Math.floor(r%86400/3600),o=Math.floor(r%3600/60),a=r%60,l=c=>String(c).padStart(2,"0");if(i>0)return[{value:l(i),unit:"d"},{value:l(s),unit:"h"}];let u=[{value:l(s),unit:"h"},{value:l(o),unit:"m"}];return n&&u.push({value:l(a),unit:"s"}),u}function Jv({card:e}){var l;let{data:t}=e,n={d:t.daysUnit,h:t.hoursUnit,m:t.minutesUnit,s:t.secondsUnit},[r,i]=(0,Zr.useState)(()=>Date.now()),[s]=(0,Zr.useState)(()=>typeof window!="undefined"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches),o=t.kickoffUnix*1e3-r<XI;(0,Zr.useEffect)(()=>{if(s)return;let u=window.setInterval(()=>i(Date.now()),o?1e3:6e4);return()=>window.clearInterval(u)},[s,o]);let a=JI(t.kickoffUnix,r,o&&!s);return(0,en.jsx)("div",{className:"ss-w-fandash-card ss-w-fandash-countdown",children:(0,en.jsxs)("div",{className:"ss-w-fandash-countdown-top",children:[(0,en.jsx)("span",{className:"ss-w-fandash-eyebrow",children:(l=e.title)!=null?l:"Kick-off in"}),a?(0,en.jsx)("span",{className:"ss-w-fandash-countdown-clock",children:a.map((u,c)=>(0,en.jsxs)(Zr.Fragment,{children:[c>0?(0,en.jsx)("span",{className:"ss-w-fandash-countdown-colon",children:":"}):null,(0,en.jsxs)("span",{className:"ss-w-fandash-countdown-seg",children:[(0,en.jsx)("span",{className:"ss-w-fandash-countdown-value",children:u.value}),(0,en.jsx)("span",{className:"ss-w-fandash-countdown-unit",children:n[u.unit]})]})]},u.unit))}):null]})})}var Yv=S(de(),1);var ve=S(N(),1),ef=3;function Kv({name:e,crestUrl:t}){return(0,ve.jsxs)("span",{className:"ss-w-fandash-injuries-col-head",children:[(0,ve.jsx)(xe,{url:t!=null?t:void 0,name:e,kind:"team"}),(0,ve.jsx)("span",{className:"ss-w-fandash-injuries-col-head-name",children:e})]})}function qv({rows:e,emptyLabel:t,limit:n}){if(e.length===0)return(0,ve.jsx)("span",{className:"ss-w-fandash-injuries-empty",children:t});let r=n===void 0?e:e.slice(0,n);return(0,ve.jsx)("ul",{className:"ss-w-fandash-injury-list",children:r.map((i,s)=>(0,ve.jsxs)("li",{className:"ss-w-fandash-injury-row",children:[(0,ve.jsx)("span",{className:"ss-w-fandash-injury-name",children:i.playerName}),(0,ve.jsxs)("span",{className:"ss-w-fandash-injury-meta",children:[(0,ve.jsx)("span",{className:"ss-w-fandash-injury-status",children:i.status}),i.injuryType?(0,ve.jsx)("span",{className:"ss-w-fandash-injury-type",children:i.injuryType}):null,i.expectedReturnLabel?(0,ve.jsx)("span",{className:"ss-w-fandash-injury-return",children:i.expectedReturnLabel}):null]})]},`${i.playerName}-${s}`))})}function Gv({card:e,ui:t}){var u,c;let{data:n}=e,[r,i]=(0,Yv.useState)(!1),s=Math.max(0,n.ours.length-ef)+Math.max(0,n.theirs.length-ef),o=r?void 0:ef,a=(u=t==null?void 0:t.showMore)!=null?u:(d=>`Show ${d} more`),l=(c=t==null?void 0:t.showLess)!=null?c:"Show less";return(0,ve.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-injuries",children:[e.title?(0,ve.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,ve.jsxs)("div",{className:"ss-w-fandash-injuries-cols",children:[(0,ve.jsxs)("div",{className:"ss-w-fandash-injuries-col",children:[(0,ve.jsx)(Kv,{name:n.oursName,crestUrl:n.oursCrestUrl}),(0,ve.jsx)(qv,{rows:n.ours,emptyLabel:n.emptyLabel,limit:o})]}),(0,ve.jsx)("div",{className:"ss-w-fandash-injuries-divider"}),(0,ve.jsxs)("div",{className:"ss-w-fandash-injuries-col",children:[(0,ve.jsx)(Kv,{name:n.theirsName,crestUrl:n.theirsCrestUrl}),(0,ve.jsx)(qv,{rows:n.theirs,emptyLabel:n.emptyLabel,limit:o})]})]}),s>0?(0,ve.jsx)("button",{type:"button",className:"ss-w-fandash-injuries-more","aria-expanded":r,onClick:()=>i(d=>!d),children:r?l:a(s)}):null]})}var Ji=S(N(),1);function Zv({card:e}){return(0,Ji.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-reasons",children:[e.title?(0,Ji.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Ji.jsx)("ul",{className:"ss-w-fandash-reason-list",children:e.data.angles.map((t,n)=>(0,Ji.jsx)("li",{className:"ss-w-fandash-reason-item",children:t},`${t}-${n}`))})]})}var Ki=S(N(),1);function $v({card:e}){return(0,Ki.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-watch",children:[e.title?(0,Ki.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Ki.jsx)("span",{className:"ss-w-fandash-stations",children:e.data.stations.map((t,n)=>(0,Ki.jsx)("span",{className:"ss-w-fandash-station-chip",children:t},`${t}-${n}`))})]})}var tn=S(N(),1);function ek({card:e,onTap:t}){return(0,tn.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-congested",onClick:()=>t(e),children:[e.title?(0,tn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,tn.jsx)("div",{className:"ss-w-fandash-congested-grid",children:e.data.entries.map((n,r)=>(0,tn.jsxs)("span",{className:"ss-w-fandash-congested-cell",children:[(0,tn.jsx)("span",{className:"ss-w-fandash-congested-day",children:n.dayLabel}),(0,tn.jsx)("span",{className:"ss-w-fandash-congested-opponent",children:n.opponent}),(0,tn.jsx)("span",{className:"ss-w-fandash-congested-comp",children:n.competition}),(0,tn.jsx)("span",{className:"ss-w-fandash-congested-time",children:n.timeLabel})]},`${n.opponent}-${r}`))}),(0,tn.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var qe=S(N(),1);function tk({rows:e}){return e.length===0?(0,qe.jsx)("span",{className:"ss-w-fandash-transfers-empty",children:"None"}):(0,qe.jsx)("ul",{className:"ss-w-fandash-transfer-list",children:e.map((t,n)=>(0,qe.jsxs)("li",{className:"ss-w-fandash-transfer-row",children:[(0,qe.jsx)("span",{className:"ss-w-fandash-transfer-name",children:t.playerName}),(0,qe.jsx)("span",{className:"ss-w-fandash-transfer-club",children:t.otherClub}),t.type?(0,qe.jsx)("span",{className:"ss-w-fandash-transfer-type",children:t.type}):null]},`${t.playerName}-${n}`))})}function nk({card:e}){let{data:t}=e;return(0,qe.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-transfers",children:[e.title?(0,qe.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,qe.jsxs)("div",{className:"ss-w-fandash-transfers-cols",children:[(0,qe.jsxs)("div",{className:"ss-w-fandash-transfers-col",children:[(0,qe.jsx)("span",{className:"ss-w-fandash-transfers-col-head",children:"In"}),(0,qe.jsx)(tk,{rows:t.in})]}),(0,qe.jsxs)("div",{className:"ss-w-fandash-transfers-col",children:[(0,qe.jsx)("span",{className:"ss-w-fandash-transfers-col-head",children:"Out"}),(0,qe.jsx)(tk,{rows:t.out})]})]})]})}var On=S(N(),1);function rk({card:e}){return(0,On.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-links",children:[e.title?(0,On.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,On.jsx)("div",{className:"ss-w-fandash-link-grid",children:e.data.links.map((t,n)=>(0,On.jsxs)("a",{className:"ss-w-fandash-link-tile",href:t.url,target:"_blank",rel:"noopener noreferrer",children:[(0,On.jsx)("span",{className:"ss-w-fandash-link-label",children:t.label}),(0,On.jsx)("span",{className:"ss-w-fandash-link-chevron",children:(0,On.jsx)($a,{})})]},`${t.url}-${n}`))})]})}var sk=S(de(),1),ze=S(N(),1);function KI(e){return e.trim().slice(0,3).toUpperCase()}function ik({url:e,name:t,side:n}){let[r,i]=(0,sk.useState)(!1),s=`ss-w-fandash-postmatch-crest ss-w-fandash-postmatch-crest--${n}`;return e&&!r?(0,ze.jsx)("img",{className:s,src:e,alt:"","aria-hidden":"true",onError:()=>i(!0)}):(0,ze.jsx)("span",{className:`${s} ss-w-fandash-postmatch-crest--fallback`,"aria-hidden":"true",children:KI(t)})}function ok({card:e}){let{data:t}=e,n=t.homeScore>=t.awayScore,r=t.awayScore>=t.homeScore;return(0,ze.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-postmatch-result",children:[(0,ze.jsxs)("div",{className:"ss-w-fandash-postmatch-top",children:[e.title?(0,ze.jsx)("span",{className:"ss-w-fandash-postmatch-pill",children:e.title}):null,(0,ze.jsx)("span",{className:`ss-w-fandash-postmatch-tag ss-w-fandash-postmatch-tag--${t.outcome}`,children:t.resultLabel})]}),(0,ze.jsxs)("div",{className:"ss-w-fandash-postmatch-main",children:[(0,ze.jsxs)("div",{className:"ss-w-fandash-postmatch-side ss-w-fandash-postmatch-side--home",children:[(0,ze.jsx)(ik,{url:t.homeCrestUrl,name:t.homeName,side:"home"}),(0,ze.jsx)("span",{className:"ss-w-fandash-postmatch-team-name",children:t.homeName})]}),(0,ze.jsxs)("div",{className:"ss-w-fandash-postmatch-score-main",children:[(0,ze.jsx)("span",{className:`ss-w-fandash-postmatch-score-value ss-w-fandash-postmatch-score-value--${n?"win":"lose"}`,children:t.homeScore}),(0,ze.jsx)("span",{className:"ss-w-fandash-postmatch-score-sep",children:"\u2013"}),(0,ze.jsx)("span",{className:`ss-w-fandash-postmatch-score-value ss-w-fandash-postmatch-score-value--${r?"win":"lose"}`,children:t.awayScore})]}),(0,ze.jsxs)("div",{className:"ss-w-fandash-postmatch-side ss-w-fandash-postmatch-side--away",children:[(0,ze.jsx)(ik,{url:t.awayCrestUrl,name:t.awayName,side:"away"}),(0,ze.jsx)("span",{className:"ss-w-fandash-postmatch-team-name",children:t.awayName})]})]}),(0,ze.jsxs)("div",{className:"ss-w-fandash-postmatch-meta",children:[t.kickoffLabel,t.competition?` \xB7 ${t.competition}`:""]})]})}var zn=S(N(),1);function ak({card:e,onTap:t}){return(0,zn.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-postmatch-goals",onClick:()=>t(e),children:[e.title?(0,zn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,zn.jsx)("ul",{className:"ss-w-fandash-postmatch-goal-list",children:e.data.goals.map((n,r)=>(0,zn.jsxs)("li",{className:n.scoredByClub?"ss-w-fandash-postmatch-goal ss-w-fandash-postmatch-goal--club":"ss-w-fandash-postmatch-goal",children:[(0,zn.jsx)("span",{className:"ss-w-fandash-postmatch-goal-ball"}),(0,zn.jsx)("span",{children:n.text})]},`${n.text}-${r}`))}),(0,zn.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var He=S(N(),1);function qI(e,t){let n=e+t;if(n<=0)return{home:"50%",away:"50%"};let r=Math.round(e/n*1e3)/10;return{home:`${r}%`,away:`${Math.round((100-r)*10)/10}%`}}function lk({card:e,onTap:t}){let{data:n}=e;return(0,He.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-postmatch-stats",onClick:()=>t(e),children:[e.title?(0,He.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,He.jsx)("div",{className:"ss-w-fandash-postmatch-stat-rows",children:n.rows.map((r,i)=>{let s=n.clubIsHome?r.clubValue:r.oppValue,o=n.clubIsHome?r.oppValue:r.clubValue,a=n.clubIsHome?r.clubNum:r.oppNum,l=n.clubIsHome?r.oppNum:r.clubNum,{home:u,away:c}=qI(a,l);return(0,He.jsxs)("div",{className:"ss-w-fandash-postmatch-stat",children:[(0,He.jsxs)("div",{className:"ss-w-fandash-postmatch-stat-row",children:[(0,He.jsx)("span",{className:"ss-w-fandash-postmatch-stat-value ss-w-fandash-postmatch-stat-value--home",children:s}),(0,He.jsx)("span",{className:"ss-w-fandash-postmatch-stat-label",children:r.label}),(0,He.jsx)("span",{className:"ss-w-fandash-postmatch-stat-value ss-w-fandash-postmatch-stat-value--away",children:o})]}),(0,He.jsxs)("div",{className:"ss-w-fandash-postmatch-stat-bar",children:[(0,He.jsx)("span",{className:"ss-w-fandash-postmatch-stat-bar-home",style:{width:u}}),(0,He.jsx)("span",{className:"ss-w-fandash-postmatch-stat-bar-away",style:{width:c}})]})]},`${r.label}-${i}`)})}),n.rows.length>0?(0,He.jsxs)("div",{className:"ss-w-fandash-postmatch-legend",children:[(0,He.jsxs)("span",{className:"ss-w-fandash-postmatch-legend-item",children:[(0,He.jsx)("i",{className:"ss-w-fandash-postmatch-legend-swatch ss-w-fandash-postmatch-legend-swatch--home"}),n.homeName]}),(0,He.jsxs)("span",{className:"ss-w-fandash-postmatch-legend-item",children:[(0,He.jsx)("i",{className:"ss-w-fandash-postmatch-legend-swatch ss-w-fandash-postmatch-legend-swatch--away"}),n.awayName]})]}):null,(0,He.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var Bn=S(N(),1);function YI(e){let t=e.trim().split(/\s+/).filter(Boolean);if(t.length===0)return"?";let n=t[0].charAt(0),r=t[t.length-1].charAt(0);return(t.length>1?`${n}${r}`:n).toUpperCase()}function uk({card:e,onTap:t}){let{data:n}=e;return(0,Bn.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-postmatch-performer",onClick:()=>t(e),children:[e.title?(0,Bn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Bn.jsxs)("div",{className:"ss-w-fandash-postmatch-perf-row",children:[(0,Bn.jsx)("span",{className:"ss-w-fandash-postmatch-perf-avatar","aria-hidden":"true",children:YI(n.playerName)}),(0,Bn.jsx)("span",{className:"ss-w-fandash-postmatch-perf-name",children:n.playerName}),(0,Bn.jsx)("span",{className:"ss-w-fandash-postmatch-perf-rating",children:n.ratingLabel})]}),(0,Bn.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var qi=S(N(),1);function ck({card:e}){let{data:t}=e;return(0,qi.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-postmatch-next",children:[e.title?(0,qi.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,qi.jsx)("div",{className:"ss-w-fandash-postmatch-next-row",children:(0,qi.jsx)("span",{className:"ss-w-fandash-postmatch-next-when",children:t.whenLabel})})]})}var gr=S(N(),1);function dk({card:e,onTap:t}){let{data:n}=e;return(0,gr.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-resting-next",onClick:()=>t(e),children:[e.title?(0,gr.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,gr.jsxs)("div",{className:"ss-w-fandash-resting-next-row",children:[(0,gr.jsx)("span",{className:"ss-w-fandash-resting-next-when",children:n.whenLabel}),n.competition?(0,gr.jsx)("span",{className:"ss-w-fandash-resting-next-competition",children:n.competition}):null]}),(0,gr.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var wr=S(N(),1);function pk({card:e,onTap:t}){let{data:n}=e;return(0,wr.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-resting-standings",onClick:()=>t(e),children:[e.title?(0,wr.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,wr.jsxs)("div",{className:"ss-w-fandash-resting-standings-row",children:[(0,wr.jsx)("span",{className:"ss-w-fandash-resting-standings-position",children:n.positionLabel}),(0,wr.jsx)("span",{className:"ss-w-fandash-resting-standings-record",children:n.recordLabel})]}),(0,wr.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var Fn=S(N(),1);function fk({card:e,onTap:t}){let{data:n}=e;return(0,Fn.jsxs)("button",{type:"button",className:"ss-w-fandash-card ss-w-fandash-card--tap ss-w-fandash-resting-season",onClick:()=>t(e),children:[e.title?(0,Fn.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Fn.jsxs)("div",{className:"ss-w-fandash-resting-season-rows",children:[n.scorerLabel?(0,Fn.jsx)("span",{className:"ss-w-fandash-resting-season-row",children:n.scorerLabel}):null,n.playerLabel?(0,Fn.jsx)("span",{className:"ss-w-fandash-resting-season-row",children:n.playerLabel}):null,(0,Fn.jsx)("span",{className:"ss-w-fandash-resting-season-row",children:n.tallyLabel})]}),(0,Fn.jsx)("span",{className:"ss-w-fandash-card-cta",children:e.actionLabel})]})}var Yi=S(N(),1);function GI(e){let t=e.toUpperCase();return t==="W"?"ss-w-fandash-form-pill--win":t==="L"?"ss-w-fandash-form-pill--loss":"ss-w-fandash-form-pill--draw"}function mk({card:e}){let{data:t}=e;return(0,Yi.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-resting-form",children:[e.title?(0,Yi.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Yi.jsx)("span",{className:"ss-w-fandash-form",children:t.letters.map((n,r)=>(0,Yi.jsx)("span",{className:`ss-w-fandash-form-pill ${GI(n)}`,children:n},`${n}-${r}`))})]})}var Hl=S(de(),1);var Ql=S(de(),1),hk=6e4,ZI=15;function tf(e,t,n){if(!t)return e;let r=Math.floor((Date.now()-n)/hk);return e+Math.min(Math.max(0,r),ZI)}function gk(e,t,n){let[r,i]=(0,Ql.useState)(()=>tf(e,t,n));return(0,Ql.useEffect)(()=>{if(i(tf(e,t,n)),!t)return;let s=window.setInterval(()=>{i(tf(e,t,n))},hk);return()=>window.clearInterval(s)},[e,t,n]),r}var ke=S(N(),1);function $I(e){return e.trim().slice(0,3).toUpperCase()}function wk({url:e,name:t,side:n}){let[r,i]=(0,Hl.useState)(!1),s=`ss-w-fandash-live-crest ss-w-fandash-live-crest--${n}`;return e&&!r?(0,ke.jsx)("img",{className:s,src:e,alt:"","aria-hidden":"true",onError:()=>i(!0)}):(0,ke.jsx)("span",{className:`${s} ss-w-fandash-live-crest--fallback`,"aria-hidden":"true",children:$I(t)})}function eT(e){if(!e||e.length===0)return null;let t=e.filter(n=>n.type==="goal"&&n.player);return t.length===0?null:t.slice().sort((n,r)=>n.minute-r.minute).map(n=>`${n.player} ${n.minuteLabel}`).join(", ")}function yk({card:e,goalEvents:t}){let{data:n}=e,r=`${n.minute}:${n.homeScore}:${n.awayScore}`,i=(0,Hl.useRef)(null);(!i.current||i.current.key!==r)&&(i.current={key:r,receivedAtMs:Date.now()});let s=gk(n.minute,n.clockRunning,i.current.receivedAtMs),o=n.minuteLabel.replace(/^\d+/,""),a=eT(t);return(0,ke.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-live-score",children:[e.title?(0,ke.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,ke.jsxs)("div",{className:"ss-w-fandash-live-top",children:[(0,ke.jsxs)("span",{className:"ss-w-fandash-live-pill",children:[(0,ke.jsx)("span",{className:"ss-w-fandash-live-dot","aria-hidden":"true"}),n.statusLabel]}),(0,ke.jsx)("span",{className:"ss-w-fandash-live-minute",children:`${s}${o}`}),n.competition?(0,ke.jsx)("span",{className:"ss-w-fandash-live-competition",children:n.competition}):null]}),(0,ke.jsxs)("div",{className:"ss-w-fandash-live-main",children:[(0,ke.jsxs)("div",{className:"ss-w-fandash-live-side ss-w-fandash-live-side--home",children:[(0,ke.jsx)(wk,{url:n.homeCrestUrl,name:n.homeName,side:"home"}),(0,ke.jsx)("span",{className:"ss-w-fandash-live-team-name",children:n.homeName})]}),(0,ke.jsxs)("div",{className:"ss-w-fandash-live-score-main",children:[(0,ke.jsx)("span",{className:"ss-w-fandash-live-score-value",children:n.homeScore}),(0,ke.jsx)("span",{className:"ss-w-fandash-live-score-sep",children:"\u2013"}),(0,ke.jsx)("span",{className:"ss-w-fandash-live-score-value",children:n.awayScore})]}),(0,ke.jsxs)("div",{className:"ss-w-fandash-live-side ss-w-fandash-live-side--away",children:[(0,ke.jsx)(wk,{url:n.awayCrestUrl,name:n.awayName,side:"away"}),(0,ke.jsx)("span",{className:"ss-w-fandash-live-team-name",children:n.awayName})]})]}),a?(0,ke.jsxs)("div",{className:"ss-w-fandash-live-scorers",children:[(0,ke.jsx)("span",{className:"ss-w-fandash-live-scorers-icon","aria-hidden":"true",children:"\u26BD"}),a]}):null]})}var vk=S(de(),1),Se=S(N(),1),xk=3;function tT({type:e}){return e==="goal"?(0,Se.jsx)("span",{className:"ss-w-fandash-live-tl-ico ss-w-fandash-live-tl-ico--goal","aria-hidden":"true",children:(0,Se.jsx)("span",{className:"ss-w-fandash-live-tl-ball"})}):e==="yellow"||e==="red"?(0,Se.jsx)("span",{className:"ss-w-fandash-live-tl-ico","aria-hidden":"true",children:(0,Se.jsx)("span",{className:`ss-w-fandash-live-tl-card ss-w-fandash-live-tl-card--${e}`})}):e==="sub"?(0,Se.jsx)("span",{className:"ss-w-fandash-live-tl-ico","aria-hidden":"true",children:(0,Se.jsx)("span",{className:"ss-w-fandash-live-tl-subarrows",children:"\u21C5"})}):(0,Se.jsx)("span",{className:"ss-w-fandash-live-tl-ico","aria-hidden":"true",children:(0,Se.jsx)("span",{className:"ss-w-fandash-live-tl-dot"})})}function nT({e}){var t,n;return e.type==="sub"?(0,Se.jsxs)("span",{className:"ss-w-fandash-live-tl-who",children:[(t=e.player)!=null?t:e.text,e.playerOff?(0,Se.jsxs)("span",{className:"ss-w-fandash-live-tl-off",children:[" for ",e.playerOff]}):null]}):(0,Se.jsx)("span",{className:"ss-w-fandash-live-tl-who",children:(n=e.player)!=null?n:e.text})}function rT({e}){let t=["ss-w-fandash-live-tl-ev",e.side==="home"?"ss-w-fandash-live-tl-ev--home":"ss-w-fandash-live-tl-ev--away",e.type==="goal"?"ss-w-fandash-live-tl-ev--goal":""].filter(Boolean).join(" ");return(0,Se.jsxs)("div",{className:t,children:[(0,Se.jsxs)("span",{className:"ss-w-fandash-live-tl-txt",children:[(0,Se.jsx)(nT,{e}),(0,Se.jsx)(tT,{type:e.type})]}),(0,Se.jsx)("span",{className:"ss-w-fandash-live-tl-badge",children:e.minuteLabel})]})}function kk({card:e,ui:t}){var c,d;let[n,r]=(0,vk.useState)(!1),i=e.data.events;if(!i||i.length===0)return null;let s=[...i].sort((p,f)=>f.minute-p.minute),o=s.length-xk,a=n?s:s.slice(0,xk),l=(c=t==null?void 0:t.showMore)!=null?c:(p=>`Show ${p} more`),u=(d=t==null?void 0:t.showLess)!=null?d:"Show less";return(0,Se.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-live-timeline",children:[e.title?(0,Se.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Se.jsx)("div",{className:"ss-w-fandash-live-tl",children:a.map((p,f)=>(0,Se.jsx)(rT,{e:p},`${p.minute}-${p.side}-${p.type}-${f}`))}),o>0?(0,Se.jsx)("button",{type:"button",className:"ss-w-fandash-live-tl-more","aria-expanded":n,onClick:()=>r(p=>!p),children:n?u:l(o)}):null]})}var bk=S(de(),1),rt=S(N(),1),Gi=270,nf=56,yr=nf/2,iT=.26;function sT(e){var u,c;let t=e.length-1,n=d=>t===0?0:d/t*Gi,r=d=>yr-d*iT,i=e.map((d,p)=>`${n(p).toFixed(1)},${r(d.value).toFixed(1)}`),s=`M0,${yr} L${i.join(" L")} L${Gi},${yr} Z`,o=`M${i.join(" L")}`,a=(c=(u=e[t])==null?void 0:u.value)!=null?c:0;return{area:s,line:o,lastLeftPct:t===0?0:100,lastTopPx:r(a)}}function jl({points:e,caption:t,clubIsHome:n}){if(e.length===0)return null;let{area:r,line:i,lastLeftPct:s,lastTopPx:o}=sT(e),a=(0,bk.useId)(),l=`${a}-top`,u=`${a}-bottom`,c=n?"ss-w-fandash-live-mom-home":"ss-w-fandash-live-mom-away",d=n?"ss-w-fandash-live-mom-away":"ss-w-fandash-live-mom-home";return(0,rt.jsxs)("div",{className:"ss-w-fandash-live-mom",children:[t?(0,rt.jsx)("span",{className:"ss-w-fandash-live-mom-caption",children:t}):null,(0,rt.jsxs)("div",{className:"ss-w-fandash-live-mom-plot",children:[(0,rt.jsxs)("svg",{className:"ss-w-fandash-live-mom-svg",viewBox:`0 0 ${Gi} ${nf}`,preserveAspectRatio:"none",role:"img","aria-label":t!=null?t:"Momentum",children:[(0,rt.jsxs)("defs",{children:[(0,rt.jsx)("clipPath",{id:l,children:(0,rt.jsx)("rect",{x:0,y:0,width:Gi,height:yr})}),(0,rt.jsx)("clipPath",{id:u,children:(0,rt.jsx)("rect",{x:0,y:yr,width:Gi,height:nf-yr})})]}),(0,rt.jsx)("path",{d:r,className:c,clipPath:`url(#${l})`}),(0,rt.jsx)("path",{d:r,className:d,clipPath:`url(#${u})`}),(0,rt.jsx)("line",{x1:0,y1:yr,x2:Gi,y2:yr,className:"ss-w-fandash-live-mom-base"}),(0,rt.jsx)("path",{d:i,className:"ss-w-fandash-live-mom-line",vectorEffect:"non-scaling-stroke"})]}),(0,rt.jsx)("span",{className:"ss-w-fandash-live-mom-now",style:{left:`clamp(4px, ${s}%, calc(100% - 4px))`,top:`${o}px`},"aria-hidden":"true"})]})]})}var Be=S(N(),1);function oT(e,t){let n=e+t;if(n<=0)return{home:"50%",away:"50%"};let r=Math.round(e/n*1e3)/10;return{home:`${r}%`,away:`${Math.round((100-r)*10)/10}%`}}function Ak({card:e}){let{data:t}=e;return(0,Be.jsxs)("div",{className:"ss-w-fandash-card ss-w-fandash-live-stats",children:[e.title?(0,Be.jsx)("span",{className:"ss-w-fandash-eyebrow",children:e.title}):null,(0,Be.jsx)("div",{className:"ss-w-fandash-live-stat-rows",children:t.rows.map((n,r)=>{let i=t.clubIsHome?n.clubValue:n.oppValue,s=t.clubIsHome?n.oppValue:n.clubValue,o=t.clubIsHome?n.clubNum:n.oppNum,a=t.clubIsHome?n.oppNum:n.clubNum,{home:l,away:u}=oT(o,a);return(0,Be.jsxs)("div",{className:"ss-w-fandash-live-stat",children:[(0,Be.jsxs)("div",{className:"ss-w-fandash-live-stat-row",children:[(0,Be.jsx)("span",{className:"ss-w-fandash-live-stat-value ss-w-fandash-live-stat-value--home",children:i}),(0,Be.jsx)("span",{className:"ss-w-fandash-live-stat-label",children:n.label}),(0,Be.jsx)("span",{className:"ss-w-fandash-live-stat-value ss-w-fandash-live-stat-value--away",children:s})]}),(0,Be.jsxs)("div",{className:"ss-w-fandash-live-bar",children:[(0,Be.jsx)("span",{className:"ss-w-fandash-live-bar-home",style:{width:l}}),(0,Be.jsx)("span",{className:"ss-w-fandash-live-bar-away",style:{width:u}})]})]},`${n.label}-${r}`)})}),t.momentum.length>0?(0,Be.jsx)(jl,{points:t.momentum,caption:t.momentumLabel,clubIsHome:t.clubIsHome}):t.momentumLabel?(0,Be.jsx)("span",{className:"ss-w-fandash-live-momentum",children:t.momentumLabel}):null,t.rows.length>0?(0,Be.jsxs)("div",{className:"ss-w-fandash-live-legend",children:[(0,Be.jsxs)("span",{className:"ss-w-fandash-live-legend-item",children:[(0,Be.jsx)("i",{className:"ss-w-fandash-live-legend-swatch ss-w-fandash-live-legend-swatch--home"}),t.homeName]}),(0,Be.jsxs)("span",{className:"ss-w-fandash-live-legend-item",children:[(0,Be.jsx)("i",{className:"ss-w-fandash-live-legend-swatch ss-w-fandash-live-legend-swatch--away"}),t.awayName]})]}):null]})}var me=S(N(),1);function Ck({dashboard:e,onTap:t,ui:n}){let r=[...e.cards.filter(o=>o.cardType==="countdown"),...e.cards.filter(o=>o.cardType!=="countdown")],i=e.cards.find(o=>o.cardType==="liveTimeline"),s=i==null?void 0:i.data.events.filter(o=>o.type==="goal");return(0,me.jsxs)("div",{className:"ss-w-fandash",children:[e.greeting?(0,me.jsx)("span",{className:e.greetingIsLead?"ss-w-fandash-greeting ss-w-fandash-greeting--lead":"ss-w-fandash-greeting",children:e.greeting}):null,(0,me.jsx)("div",{className:"ss-w-fandash-cards",children:r.map((o,a)=>(0,me.jsx)(aT,{card:o,onTap:t,ui:n,goalEvents:s},`${o.cardType}-${a}`))})]})}function aT({card:e,onTap:t,ui:n,goalEvents:r}){switch(e.cardType){case"fixture":return(0,me.jsx)(Xv,{card:e});case"countdown":return(0,me.jsx)(Jv,{card:e});case"injuries":return(0,me.jsx)(Gv,{card:e,ui:n});case"reasonToBet":return(0,me.jsx)(Zv,{card:e});case"whereToWatch":return(0,me.jsx)($v,{card:e});case"congestedWeek":return(0,me.jsx)(ek,{card:e,onTap:t});case"transfers":return(0,me.jsx)(nk,{card:e});case"links":return(0,me.jsx)(rk,{card:e});case"postMatchResult":return(0,me.jsx)(ok,{card:e});case"postMatchGoals":return(0,me.jsx)(ak,{card:e,onTap:t});case"postMatchStats":return(0,me.jsx)(lk,{card:e,onTap:t});case"postMatchTopPerformer":return(0,me.jsx)(uk,{card:e,onTap:t});case"postMatchNext":return(0,me.jsx)(ck,{card:e});case"restingNext":return(0,me.jsx)(dk,{card:e,onTap:t});case"restingStandings":return(0,me.jsx)(pk,{card:e,onTap:t});case"restingSeason":return(0,me.jsx)(fk,{card:e,onTap:t});case"restingForm":return(0,me.jsx)(mk,{card:e});case"liveScore":return(0,me.jsx)(yk,{card:e,goalEvents:r});case"liveTimeline":return(0,me.jsx)(kk,{card:e,ui:n});case"liveStats":return(0,me.jsx)(Ak,{card:e});default:return null}}var Tt=S(N(),1);function Sk({message:e,disabled:t,onAct:n,onTap:r,ui:i,slip:s,monitor:o}){if(e.role==="user")return(0,Tt.jsx)("div",{className:"ss-w-msg ss-w-user","data-msg-id":e.id,children:(0,Tt.jsx)("div",{className:"ss-w-bubble",children:e.text})});let a=l=>{n({message:l.actionLabel,actionRef:l.actionRef,label:l.actionLabel||l.title||""})};return(0,Tt.jsxs)("div",{className:"ss-w-msg ss-w-bot","data-msg-id":e.id,children:[e.text&&!e.greetingDashboard&&!e.clubFanDashboard?(0,Tt.jsx)(Nv,{text:e.text}):null,e.greetingDashboard&&!e.clubFanDashboard?(0,Tt.jsx)(Wv,{dashboard:e.greetingDashboard,onTap:r}):null,e.clubFanDashboard?(0,Tt.jsx)(Ck,{dashboard:e.clubFanDashboard,onTap:a,ui:i}):null,(0,Tt.jsx)(Rv,{cards:e.cards,disabled:t,showLessLabel:i==null?void 0:i.showLess,showMoreLabel:i==null?void 0:i.showMore}),(0,Tt.jsx)(Uv,{insights:e.insights,ui:i,slip:s,monitor:o}),(0,Tt.jsx)(Xi,{cards:e.marketOdds,ui:i,slip:s,monitor:o}),(0,Tt.jsx)(Fl,{cards:e.oddsMovement,ui:i,monitor:o}),(0,Tt.jsx)(Ul,{actions:e.actions,loading:!1,disabled:t,onAct:n})]})}var rf=S(N(),1);function Ek({chips:e,onPick:t}){return e.length===0?null:(0,rf.jsx)("div",{className:"ss-w-chips",children:e.map((n,r)=>(0,rf.jsx)("button",{type:"button",className:"ss-w-chip",onClick:()=>t(n.text),children:n.text},`${n.text}-${r}`))})}function Ik(e,t=48){return e.scrollHeight-e.scrollTop-e.clientHeight<=t}var nn=S(N(),1);function lT(e){let t=e[e.length-1];if(!t||t.role!=="assistant")return null;let n=e[e.length-2];return{turnId:t.id,anchorId:n&&n.role==="user"?n.id:t.id}}function Tk({controller:e,ui:t,slip:n,onDashboardTap:r,monitor:i}){let{state:s,send:o}=e,a=(0,$r.useRef)(null),l=(0,$r.useRef)(null),u=(0,$r.useRef)(!0),c=(0,$r.useRef)(null);(0,$r.useEffect)(()=>{var y,A;let f=lT(s.messages),h=a.current;if(f&&f.turnId!==c.current){c.current=f.turnId,l.current&&h&&(l.current.style.height=`${h.clientHeight}px`),u.current=!1,(y=h==null?void 0:h.querySelector(`[data-msg-id="${f.anchorId}"]`))==null||y.scrollIntoView({block:"start"});return}!s.isStreaming&&l.current&&(l.current.style.height=""),u.current&&((A=l.current)==null||A.scrollIntoView({block:"end"}))},[s.messages,s.status,s.isStreaming]);let d=s.messages.some(f=>f.role==="user"),p=s.messages.some(f=>f.role==="assistant"&&(f.greetingDashboard||f.clubFanDashboard));return(0,nn.jsxs)("div",{className:"ss-w-list","aria-live":"polite",ref:a,onScroll:()=>{a.current&&(u.current=Ik(a.current))},children:[s.messages.map(f=>(0,nn.jsx)(Sk,{message:f,disabled:s.isStreaming,onAct:h=>o(h.message,{actionId:h.actionId,actionRef:h.actionRef,displayText:h.label}),onTap:(h,y)=>{o(h.actionValue,{displayText:h.title}),f.role==="assistant"&&f.greetingDashboard&&(r==null||r(h,y,f.greetingDashboard.layout))},ui:t,slip:n,monitor:i},f.id)),s.isStreaming&&s.actionsLoading?(0,nn.jsx)(Ul,{actions:[],loading:!0,onAct:()=>{}}):null,s.status?(0,nn.jsx)("div",{className:"ss-w-status",children:s.status}):null,s.error?(0,nn.jsxs)("div",{className:"ss-w-error",role:"alert",children:[(0,nn.jsx)("span",{children:"message"in s.error?s.error.message:t.somethingWentWrong}),(0,nn.jsx)("button",{type:"button",className:"ss-w-retry",onClick:()=>e.retry(),children:t.retry})]}):null,!d&&!p?(0,nn.jsx)(Ek,{chips:s.starters,onPick:f=>o(f)}):null,(0,nn.jsx)("div",{ref:l,className:"ss-w-turn-spacer","aria-hidden":"true"})]})}var Nk=S(de(),1);var xr=S(N(),1);function Lk({placeholder:e,streaming:t,onSend:n,onStop:r,stopLabel:i="Stop response",sendLabel:s="Send message"}){let[o,a]=(0,Nk.useState)(""),l=()=>{let c=o.trim();c&&(n(c),a(""))};return(0,xr.jsxs)("div",{className:"ss-w-input",children:[(0,xr.jsx)("textarea",{className:"ss-w-textarea",rows:1,placeholder:e,value:o,disabled:t,onChange:c=>a(c.target.value),onKeyDown:c=>{c.key==="Enter"&&!c.shiftKey&&(c.preventDefault(),l())}}),t?(0,xr.jsx)("button",{type:"button",className:"ss-w-send ss-w-stop","aria-label":i,onClick:r,children:(0,xr.jsx)("span",{className:"ss-w-stop-glyph"})}):(0,xr.jsx)("button",{type:"button",className:"ss-w-send","aria-label":s,onClick:l,children:(0,xr.jsx)(zw,{})})]})}var Zi=S(N(),1),uT=[{tab:"chat",labelKey:"tabChat"},{tab:"matches",labelKey:"tabMatches"},{tab:"odds",labelKey:"tabOdds"}];function Mk({monitor:e,ui:t,matchCount:n,oddsCount:r}){if(e.pins.length===0)return null;let i={chat:0,matches:n,odds:r},s={chat:e.chatDot&&e.activeTab!=="chat",matches:e.matchesDot&&e.activeTab!=="matches",odds:e.oddsDot&&e.activeTab!=="odds"};return(0,Zi.jsx)("div",{className:"ss-w-tabs",role:"tablist",children:uT.map(({tab:o,labelKey:a})=>{let l=e.activeTab===o,u=i[o];return(0,Zi.jsxs)("button",{type:"button",role:"tab","aria-selected":l,"data-on":l?"":void 0,className:"ss-w-tab",onClick:()=>e.setActiveTab(o),children:[t[a],u>0&&(0,Zi.jsx)("span",{className:"ss-w-tab-count",children:u}),s[o]&&(0,Zi.jsx)("span",{className:"ss-w-tab-dot","aria-hidden":"true"})]},o)})})}var _=S(N(),1);function cT(e,t,n){let r=e.market;if(!r||!r.addToSlipEnabled||typeof r.matchOddsId!="number"||typeof r.price!="number")return null;let i={matchOddsId:r.matchOddsId,matchId:t,oddsDecimal:r.price};return n!==void 0&&(i.conversationId=n),i}function sf(e,t){let n=e.market;return n?t.some(r=>r.marketDeveloperName===n.marketDeveloperName||n.matchOddsId!=null&&r.matchOddsId===n.matchOddsId):!1}function dT(e){return new Date(e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function Pk({match:e,promotedPins:t,monitor:n,ui:r,slip:i}){var d,p,f,h;let s=e.phase==="live",o=e.events.filter(y=>y.type==="goal"),a=e.statRows.filter(y=>sf(y,t)),l=e.statRows.filter(y=>!sf(y,t)),u=[...a,...l],c=e.phase==="preMatch"&&e.kickoffUtc?r.bettingKickoff(e.kickoffUtc):void 0;return(0,_.jsxs)("div",{className:"ss-w-mon",children:[(0,_.jsxs)("div",{className:"ss-w-mon-top",children:[s&&(0,_.jsxs)("span",{className:"ss-w-fandash-live-pill",children:[(0,_.jsx)("span",{className:"ss-w-fandash-live-dot","aria-hidden":"true"}),r.liveLabel]}),e.phase==="fullTime"&&(0,_.jsx)("span",{className:"ss-w-mon-pill",children:r.fullTimeLabel}),c&&(0,_.jsxs)("span",{className:"ss-w-mon-pill",children:[c.dayLabel," \xB7 ",c.time]}),s&&e.minuteLabel&&(0,_.jsx)("span",{className:"ss-w-mon-min",children:e.minuteLabel}),e.competitionName&&(0,_.jsx)("span",{className:"ss-w-mon-comp",children:e.competitionName}),(0,_.jsx)($t,{ui:r,monitor:n,pin:{kind:"match",matchId:e.matchId}})]}),(0,_.jsxs)("div",{className:"ss-w-mon-main",children:[(0,_.jsxs)("span",{className:"ss-w-mon-side",children:[(0,_.jsx)(xe,{kind:"team",url:(d=e.homeCrestUrl)!=null?d:void 0,name:(p=e.homeTeamName)!=null?p:void 0}),(0,_.jsx)("span",{className:"ss-w-mon-name",children:e.homeTeamName})]}),e.phase==="preMatch"?(0,_.jsx)("span",{className:"ss-w-mon-vs",children:"vs"}):(0,_.jsxs)("span",{className:"ss-w-mon-score",children:[e.homeScore,(0,_.jsx)("i",{children:"\u2013"}),e.awayScore]}),(0,_.jsxs)("span",{className:"ss-w-mon-side ss-w-mon-side--away",children:[(0,_.jsx)(xe,{kind:"team",url:(f=e.awayCrestUrl)!=null?f:void 0,name:(h=e.awayTeamName)!=null?h:void 0}),(0,_.jsx)("span",{className:"ss-w-mon-name",children:e.awayTeamName})]})]}),o.length>0&&(0,_.jsx)("div",{className:"ss-w-mon-scorers",children:o.map(y=>{var A;return`${(A=y.player)!=null?A:""} ${y.minuteLabel}`}).join(", ")}),(0,_.jsx)("div",{className:"ss-w-mon-stats",children:u.map(y=>{let A=y.homeNum+y.awayNum,m=A>0?y.homeNum/A*75:0,g=A>0?y.awayNum/A*75:0,w=sf(y,t),C=cT(y,e.matchId,i.conversationId);return(0,_.jsxs)("div",{className:w?"ss-w-mon-stat ss-w-mon-pstrip":"ss-w-mon-stat",children:[(0,_.jsxs)("div",{className:"ss-w-mon-stat-row",children:[(0,_.jsx)("span",{className:"ss-w-mon-stat-v ss-w-mon-stat-v--home",children:y.homeValue}),(0,_.jsx)("span",{className:"ss-w-mon-stat-l",children:y.label}),(0,_.jsx)("span",{className:"ss-w-mon-stat-v ss-w-mon-stat-v--away",children:y.awayValue})]}),(0,_.jsxs)("div",{className:"ss-w-mon-bar",children:[(0,_.jsx)("b",{className:"ss-w-mon-bar-home",style:{width:`${m}%`}}),(0,_.jsx)("i",{className:"ss-w-mon-bar-away",style:{width:`${g}%`}})]}),y.market&&(0,_.jsxs)("div",{className:w?"ss-w-mon-stat-mkt ss-w-mon-mkt":"ss-w-mon-stat-mkt",children:[(0,_.jsxs)("span",{children:[y.market.marketLabel," \xB7 ",y.market.selectionLabel]}),(0,_.jsxs)("span",{className:"ss-w-mon-stat-mkt-right",children:[y.market.isSuspended?(0,_.jsx)("span",{className:"ss-w-mon-susp",children:r.suspendedLabel}):typeof y.market.price=="number"&&(0,_.jsx)("span",{className:"ss-w-mon-price",children:y.market.price.toFixed(2)}),(0,_.jsx)(yo,{selection:C,shownOdds:typeof y.market.price=="number"?y.market.price.toFixed(2):"",marketName:y.market.marketLabel,slip:i,ui:r})]})]})]},y.label)})}),e.status==="stale"&&(0,_.jsx)("span",{className:"ss-w-mon-asof",children:r.asOf(dT(e.asOfUtc))}),e.momentum.length>0&&(0,_.jsxs)("div",{className:"ss-w-mon-mom",children:[(0,_.jsxs)("div",{className:"ss-w-mon-stat-row",children:[(0,_.jsx)("span",{className:"ss-w-mon-stat-v ss-w-mon-stat-v--home",children:typeof e.momentumHomePct=="number"?`${e.momentumHomePct}%`:""}),(0,_.jsx)("span",{className:"ss-w-mon-stat-l",children:r.momentumLabel}),(0,_.jsx)("span",{className:"ss-w-mon-stat-v ss-w-mon-stat-v--away",children:typeof e.momentumHomePct=="number"?`${100-e.momentumHomePct}%`:""})]}),(0,_.jsx)(jl,{points:e.momentum,clubIsHome:!0})]}),e.mainMarket&&e.phase!=="fullTime"&&(0,_.jsx)(Xi,{cards:[Pi(e.mainMarket)],ui:r,slip:i}),e.phase==="fullTime"&&(0,_.jsx)("div",{className:"ss-w-mon-grace",children:r.graceNote})]})}var ce=S(N(),1);function pT({m:e,monitor:t,ui:n}){var i,s,o,a;let r=e.kickoffUtc?n.bettingKickoff(e.kickoffUtc):void 0;return(0,ce.jsxs)("div",{className:"ss-w-mk-ctx",children:[(0,ce.jsxs)("span",{className:"ss-w-mk-ctx-side",children:[(0,ce.jsx)(xe,{kind:"team",url:(i=e.homeCrestUrl)!=null?i:void 0,name:(s=e.homeTeamName)!=null?s:void 0}),(0,ce.jsx)("span",{className:"ss-w-mon-name",children:e.homeTeamName})]}),e.phase==="preMatch"?r&&(0,ce.jsxs)("span",{className:"ss-w-mon-pill",children:[r.dayLabel," ",r.time]}):typeof e.homeScore=="number"&&(0,ce.jsxs)("b",{children:[e.homeScore,"\u2013",e.awayScore]}),(0,ce.jsxs)("span",{className:"ss-w-mk-ctx-side",children:[(0,ce.jsx)("span",{className:"ss-w-mon-name",children:e.awayTeamName}),(0,ce.jsx)(xe,{kind:"team",url:(o=e.awayCrestUrl)!=null?o:void 0,name:(a=e.awayTeamName)!=null?a:void 0})]}),e.minuteLabel&&(0,ce.jsx)("span",{className:"ss-w-mon-min",children:e.minuteLabel}),(0,ce.jsxs)("span",{className:"ss-w-mk-ctx-right",children:[e.isSuspended&&!e.isSettled&&(0,ce.jsx)("span",{className:"ss-w-mon-susp",children:n.suspendedLabel}),e.isSettled&&(0,ce.jsx)("span",{className:"ss-w-mon-pill",children:n.fullTimeLabel}),e.status==="stale"&&(0,ce.jsx)("span",{className:"ss-w-mon-asof",children:n.asOf(new Date(e.asOfUtc).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}))}),(()=>{let l=t.pins.find(u=>u.key===e.key);return l?(0,ce.jsx)($t,{ui:n,monitor:t,pin:l}):null})()]})]})}function Rk({monitor:e,ui:t,slip:n}){var i,s;let r=((s=(i=e.snapshot)==null?void 0:i.matches)!=null?s:[]).filter(o=>e.pins.some(a=>a.kind==="match"&&a.matchId===o.matchId));return r.length===0?(0,ce.jsx)("div",{className:"ss-w-mon-empty",children:t.emptyMatchesTab}):(0,ce.jsx)("div",{className:"ss-w-mon-list",children:r.map(o=>(0,ce.jsx)(Pk,{match:o,promotedPins:e.pins.filter(a=>a.kind!=="match"&&a.matchId===o.matchId),monitor:e,ui:t,slip:n},o.matchId))})}function fT(e,t){let n=e.mainRows[0];if(t===void 0||!n||n.oddsDecimal===void 0||n.oddsDecimal===t)return e;let r={...n,previousOdds:t.toFixed(2),movementDirection:n.oddsDecimal<t?"shortened":"drifted"};return{...e,mainRows:[r,...e.mainRows.slice(1)]}}function Dk({monitor:e,ui:t,slip:n}){var i,s;let r=((s=(i=e.snapshot)==null?void 0:i.markets)!=null?s:[]).filter(o=>e.pins.some(a=>a.key===o.key));return r.length===0?(0,ce.jsx)("div",{className:"ss-w-mon-empty",children:t.emptyOddsTab}):(0,ce.jsx)("div",{className:"ss-w-mon-list",children:r.map(o=>(0,ce.jsxs)("div",{className:"ss-w-mon-oddspin","data-settled":o.isSettled||void 0,children:[(0,ce.jsx)(pT,{m:o,monitor:e,ui:t}),o.card&&(0,ce.jsx)(Xi,{cards:[fT(Pi(o.card),e.lastViewedPrices[o.key])],ui:t,slip:n,inSlipIds:e.inSlip}),o.history&&(0,ce.jsx)(Fl,{cards:[Ya(o.history)],ui:t}),!o.card&&!o.history&&(0,ce.jsx)("div",{className:"ss-w-mon-empty-card",children:t.oddsUnavailable})]},o.key))})}var mn=S(N(),1),mT="(max-width: 639px)";function hT(){let[e,t]=(0,$i.useState)(!1);return(0,$i.useEffect)(()=>{if(typeof window=="undefined"||typeof window.matchMedia!="function")return;let n=window.matchMedia(mT),r=()=>t(n.matches);return r(),n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[]),e}function Ok({controller:e,ui:t,slip:n,onDashboardTap:r,monitor:i}){let{state:s,close:o,stop:a,send:l}=e,u=hT();(0,$i.useEffect)(()=>{let d=p=>{p.key==="Escape"&&o()};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[o]);let c=d=>{i==null||i.setActiveTab("chat"),l(d)};return(0,$i.useEffect)(()=>{i&&i.activeTab!=="chat"&&s.isStreaming&&i.markChatActivity()},[i,s.isStreaming,s.messages.length]),(0,mn.jsxs)("div",{className:"ss-w-panel",role:"dialog","aria-modal":u,"aria-label":t.chatDialogLabel,children:[(0,mn.jsx)(Hw,{onClose:o,closeLabel:t.closeChat}),i&&(0,mn.jsx)(Mk,{monitor:i,ui:t,matchCount:i.pins.filter(d=>d.kind==="match").length,oddsCount:i.pins.filter(d=>d.kind!=="match").length}),(0,mn.jsx)("div",{style:!i||i.activeTab==="chat"?{display:"contents"}:{position:"absolute",inset:0,visibility:"hidden",display:"flex",flexDirection:"column"},children:(0,mn.jsx)(Tk,{controller:e,ui:t,slip:n,onDashboardTap:r,monitor:i})}),i&&i.activeTab==="matches"&&(0,mn.jsx)(Rk,{monitor:i,ui:t,slip:n}),i&&i.activeTab==="odds"&&(0,mn.jsx)(Dk,{monitor:i,ui:t,slip:n}),(0,mn.jsx)(Lk,{placeholder:t.placeholder,streaming:s.isStreaming,onSend:c,onStop:a,stopLabel:t.stopResponse,sendLabel:t.sendMessage})]})}var zk=`.ss-w-root { all: revert; }
38
38
  .ss-w-root, .ss-w-root * { box-sizing: border-box; margin: 0; padding: 0; }
39
39
  .ss-w-root {
40
40
  --ss-w-accent: #17936a;
@@ -412,6 +412,7 @@ Error generating stack: `+s.message+`
412
412
  /* club fan pre-match dashboard */
413
413
  .ss-w-fandash { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
414
414
  .ss-w-fandash-greeting { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ss-w-ink); }
415
+ .ss-w-fandash-greeting--lead { font-weight: 400; }
415
416
  .ss-w-fandash-cards { display: flex; flex-direction: column; gap: 8px; }
416
417
 
417
418
  /* Shared card chrome -- a plain <div> for [data] cards, a <button> for [prefill] cards. Both