PageSourceSearch

https://sg-platform.cbssports.com/widgets/scripts/sg.version.min.js

js cbssports.com collected 2026-09-24 06:42:34 UTC 341,947 bytes, 495 lines download raw bytes

1(()=>{"use strict";function e(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)e[o]=i[o]}return e}var t=function t(i,o){function n(t,n,a){if("undefined"!=typeof document){"number"==typeof(a=e({},o,a)).expires&&(a.expires=new Date(Date.now()+864e5*a.expires)),a.expires&&(a.expires=a.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var r="";for(var s in a)a[s]&&(r+="; "+s,!0!==a[s]&&(r+="="+a[s].split(";")[0]));return document.cookie=t+"="+i.write(n,t)+r}}return Object.create({set:n,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],o={},n=0;n<t.length;n++){var a=t[n].split("="),r=a.slice(1).join("=");try{var s=decodeURIComponent(a[0]);if(o[s]=i.read(r,s),e===s)break}catch(e){}}return e?o[e]:o}},remove:function(t,i){n(t,"",e({},i,{expires:-1}))},withAttributes:function(i){return t(this.converter,e({},this.attributes,i))},withConverter:function(i){return t(e({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(i)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const i=()=>{const e=t.get("_lr_geo_location_state");if("string"==typeof e&&e)return e;try{const e=JSON.parse(t.get("fly_geo")||"");return"string"==typeof(null==e?void 0:e.region)?e.region:""}catch(e){return""}};class o{constructor(){this.storageName="sg_config",this.config={},this.config=this.readStorage(this.storageName)}setItem(e,t){this.config[e]=t,this.writeStorage(this.storageName,this.config)}getItem(e){return this.config[e]}removeItem(e){delete this.config[e],this.writeStorage(this.storageName,this.config)}clear(){this.config={},this.writeStorage(this.storageName,this.config)}readStorage(e){const t=localStorage.getItem(e);try{return t?JSON.parse(t):{}}catch(e){}return{}}writeStorage(e,t){localStorage.setItem(e,JSON.stringify(t))}}o.version="1.0.0";const n=new o,a=new class{constructor(){this.apiUrl="https://slc.cbssports.com"}generateUId(){return`${Date.now().toString(36)}${Math.random().toString(36).slice(2,7)}`.toLowerCase()}generateVUId(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(e=>(+e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+e/4).toString(16)))}sendVisitRequest(e){return function(e,t,i,o){return new(i||(i=Promise))((function(t,n){function a(e){try{s(o.next(e))}catch(e){n(e)}}function r(e){try{s(o.throw(e))}catch(e){n(e)}}function s(e){var o;e.done?t(e.value):(o=e.value,o instanceof i?o:new i((function(e){e(o)}))).then(a,r)}s((o=o.apply(e,[])).next())}))}(this,0,void 0,(function*(){try{const t=new URLSearchParams;for(const[i,o]of Object.entries(e))null!=o&&t.set(i,"object"==typeof o?JSON.stringify(o):String(o));const o=i();o&&t.set("location",o),n.setItem("location",o);const a=`${this.apiUrl}/visit/new-visit/cbs?${t.toString()}`,r=yield fetch(a,{method:"GET",headers:{Accept:"application/json, text/plain, */*"}});if(r.ok)return yield r.json()}catch(e){}return null}))}},r=30/1440,s="cbs-widgets-initialized",l="cbs-widgets-test-version",d=9999999,c=6e4,p="sweetspot-markets",u="sidelines";var h;!function(e){e.DRAFTKINGS="draftkings",e.FANDUEL="fanduel",e.BETMGM="betmgm",e.CAESARS="caesars",e.KALSHI="kalshi",e.POLYMARKET="polymarket"}(h||(h={}));const g="is-init",m="is-sorted",b="data-config",v="data-instance-id",f="impression-dispatched",y=e=>{let t;return t=(e=Number(e))>0?e/100+1:100/Math.abs(e)+1,parseFloat(t.toFixed(2))},w=e=>(e=Number(e))>=2?Math.round(100*(e-1)):Math.round(-100/(e-1)),C=(...e)=>{if(0===e.length)return 0;const t=e.map((e=>e>0?100/(e+100):-e/(100-e))).reduce(((e,t)=>e*t),1);if(0===t)return 1/0;let i;return i=.5===t?100:t<.5?Math.round(100*(1-t)/t):Math.round(-100*t/(1-t)),i},x=e=>{if(e=Number(e),isNaN(e))return 0;const t=(e=>e>0?100/(e+100):Math.abs(e)/(Math.abs(e)+100))(e);return Math.round(100*t)},I=new class{constructor(){this.generateKalshiClickoutUrl=(e,t)=>
1{const i=new URL(t);return i.searchParams.set("sub1","{sessionId}"),i.searchParams.set("referral","cbssports"),(null==e?void 0:e.utmParams)&&Object.entries(e.utmParams).forEach((([e,t])=>{i.searchParams.set(e,t)})),i.toString()},this.apiUrl="https://slc.cbssports.com"}getClickoutUrl({op:e,dl:t,clickoutElement:o},n){const a=re(),r=ae(),s=`${window.__window_vguid||""}-${n}`,l={op:e,type:"sport",dl:"string"==typeof t?t:JSON.stringify(t),clickoutElement:o,s_c:a,vid:r,utm_referrer:document.referrer,st:i(),sid:s,pt:"cbs-general"},d=new URLSearchParams(l),c=new URLSearchParams({sourceUrl:window.location.href}).toString();return`${this.apiUrl}/clickout/redirect?${d.toString()}&${c}`}getKalshiDeepLink({instanceId:e,widgetConfig:t,eventLink:o,clickoutElement:n}){const a=re(),r=ae(),s=`${window.__window_vguid||""}-${e}`,l=this.generateKalshiClickoutUrl(t,o),d="string"==typeof l?l:JSON.stringify(l),c=new URLSearchParams({op:"kalshi",type:"sport",d,clickoutElement:n,pt:"cbs-general",s_c:a,vid:r,utm_referrer:document.referrer,st:i(),sid:s}),p=new URLSearchParams({sourceUrl:window.location.href}).toString(),u=`${this.apiUrl}/clickout/clickoutPublisherDirectLink?${c.toString()}&${p}`;return decodeURIComponent(u)}},k=()=>Math.floor(65535*Math.random()).toString(16).padStart(4,"0"),T={best:{label:"Best Odds *"},mgm:{label:"BetMGM"},[h.BETMGM]:{label:"BetMGM"},[h.DRAFTKINGS]:{label:"DraftKings"},[h.FANDUEL]:{label:"FanDuel"},[h.CAESARS]:{label:"Caesars"}},O=e=>{var t;const i=e.toLowerCase();return(null===(t=T[i])||void 0===t?void 0:t.label)||e},A=[[["nfl235"],[{marketName:"1st Quarter Betting",betslipTextStructure:"[t_abbr] To Win\n1st Quarter 3-Way Bet"},{marketName:"2nd Quarter Betting",betslipTextStructure:"[t_abbr] To Win\n2nd Quarter 3-Way Bet"},{marketName:"3rd Quarter Betting",betslipTextStructure:"[t_abbr] To Win\n3rd Quarter 3-Way Bet"},{marketName:"4th Quarter Betting",betslipTextStructure:"[t_abbr] To Win\n4th Quarter 3-Way Bet"}]],[["nba303"],[{marketName:"4th Quarter Spread",betslipTextStructure:"[t_abbr] [Line]\n4th Quarter Spread"},{marketName:"3rd Quarter Spread",betslipTextStructure:"[t_abbr] [Line]\n3rd Quarter Spread"},{marketName:"2nd Quarter Spread",betslipTextStructure:"[t_abbr] [Line]\n2nd Quarter Spread"},{marketName:"1st Quarter Spread",betslipTextStructure:"[t_abbr] [Line]\n1st Quarter Spread"}]],[["nba236"],[{marketName:"1st Quarter Total Points",betslipTextStructure:"[O/U] [Line]\n1st Quarter Total"},{marketName:"2nd Quarter Total Points",betslipTextStructure:"[O/U] [Line]\n2nd Quarter Total"}]],[["ncaaf917"],[{marketName:"Total Carries",betslipTextStructure:"[O/U] [Line]\n[p_name] Carries"}]],[["ncaaf235"],[{marketName:"4th Quarter Betting",betslipTextStructure:"[t_abbr] To Win\n4th Quarter 3-Way Bet"},{marketName:"3rd Quarter Betting",betslipTextStructure:"[t_abbr] To Win\n3rd Quarter 3-Way Bet"},{marketName:"2nd Quarter Betting",betslipTextStructure:"[t_abbr] To Win\n2nd Quarter 3-Way Bet"},{marketName:"1st Quarter Betting",betslipTextStructure:"[t_abbr] To Win\n1st Quarter 3-Way Bet"}]],[["ncaaf68","ncaab68"],[{marketName:"1st Half Standard",betslipTextStructure:"[O/U] [Line]\n1st Half Total"}]],[["ncaab227"],[{marketName:"Single Game Team Totals",betslipTextStructure:"[O/U] [Line]\n[t_abbr] Total Points"}]],[["ncaab228"],[{marketName:"Single Game Team Totals",betslipTextStructure:"[O/U] [Line]\n[t_abbr] Total Points"}]],[["ncaab921"],[{marketName:"Total Points",betslipTextStructure:"[O/U] [Line]\n[p_name] Points"}]],[["nfl223"],[{marketName:"spread",betslipTextStructure:"[t_abbr] [Line] \n[b_type]"}]],[["nfl219"],[{marketName:"2way",betslipTextStructure:"[t_abbr]\nMoneyline"}]],[["nfl225"],[{marketName:"total",betslipTextStructure:"[O/U] [Line]\nTotal"}]],[["nfl919","ncaaf919"],[{marketName:"Total Receiving Yards",betslipTextStructure:"[O/U] [Line]\n[p_name] Receiving YDs"}]],[["nfl918","ncaaf918"],[{marketName:"Total Rushing Yards",betslipTextStructure:"[O/U] [Line]\n[p_name] Rush YDs"}]],[["nfl914","ncaaf914"],[{marketName:"Total Passing Yards",betslipTextStructure:"[O/U] [Line]\n[p_name] Passing YDs"}]],[["nfl920","ncaaf920"],[{marketName:"Total Receptions",betslipTextStructure:"[O/U] [
1Line]\n[p_name] Receptions"}]],[["nfl64"],[{marketName:"1st Half Money Line",betslipTextStructure:"[t_abbr]\n1st Half Moneyline"}]],[["nfl66"],[{marketName:"1st Half Spread",betslipTextStructure:"[t_abbr] [Line]\n1st Half Spread"}]],[["nfl68"],[{marketName:"1st Half Standard",betslipTextStructure:"[O/U] [Line]\n1st Half Total"}]],[["nfl302","ncaaf302"],[{marketName:"1st Quarter Money Line",betslipTextStructure:"[t_abbr]\n1st Quarter Moneyline"}]],[["nfl303"],[{marketName:"1st Quarter Spread",betslipTextStructure:"[t_abbr] [Line]\n1st Quarter Spread"}]],[["nfl236"],[{marketName:"1st Quarter Total Points",betslipTextStructure:"[O/U] [Line]\n1st Quarter Total"}]],[["nfl6002","ncaaf6002"],[{marketName:"Longest Passing Completion",betslipTextStructure:"[O/U] [Line]\n[p_name] Longest Pass"}]],[["nfl6004","ncaaf6004"],[{marketName:"Longest Reception",betslipTextStructure:"[O/U] [Line]\n[p_name] Longest Reception"}]],[["nfl228","nfl227","ncaaf227","ncaaf228"],[{marketName:"Single Game Team Totals",betslipTextStructure:"[O/U] [Line]\n[t_abbr] Total Points"}]],[["nfl6008","nfl6007"],[{marketName:"Total Kicking Points",betslipTextStructure:"[O/U] [Line]\n[p_name] Kicking Points"}]],[["nfl6009"],[{marketName:"Total Made Field Goals",betslipTextStructure:"[O/U] [Line]\n[p_name] Field Goals Made"}]],[["nfl6001","ncaaf6001"],[{marketName:"Total Passing Attempts",betslipTextStructure:"[O/U] [Line]\n[p_name] Pass Attempts"}]],[["nfl915"],[{marketName:"Total Passing Completions",betslipTextStructure:"[O/U] [Line]\n[p_name] Completions"}]],[["nfl916","ncaaf916"],[{marketName:"Total Passing Touchdowns",betslipTextStructure:"[O/U] [Line]\n[p_name] Passing TDs"}]],[["nfl6005","ncaaf6005"],[{marketName:"Total Rushing + Receiving Yards",betslipTextStructure:"[O/U] [Line]\n[p_name] Rush + Receiving YDs"}]],[["nfl917"],[{marketName:"Total Carries",betslipTextStructure:"[O/U] [Line]\n[p_name] Rush Attempts"}]],[["nfl6000","ncaaf6000"],[{marketName:"Total Passing Interceptions",betslipTextStructure:"[O/U] [Line]\n[p_name] Interceptions"}]],[["nfl6003"],[{marketName:"Total Passing Plus Rushing Yards",betslipTextStructure:"[O/U] [Line]\n[p_name] Pass + Rush YDs"}]],[["nfl6006","ncaaf6006"],[{marketName:"Longest Rush",betslipTextStructure:"[O/U] [Line]\n[p_name] Longest Rush"}]],[["nfl6011"],[{marketName:"Total Tackles",betslipTextStructure:"[O/U] [Line]\n[p_name] Tackles"}]],[["nfl6013"],[{marketName:"Total Sacks",betslipTextStructure:"[O/U] [Line]\n[p_name] Sacks"}]],[["nfl6012"],[{marketName:"Total Tackles Plus Assists",betslipTextStructure:"[O/U] [Line]\n[p_name] Tackles + Assists"}]],[["nfl1","ncaaf60","ncaaf1"],[{marketName:"3way",betslipTextStructure:"[t_abbr] To Win\n3-Way Bet"}]],[["nfl6023","ncaaf47","ncaaf6023","ncaab47"],[{marketName:"Double Result",betslipTextStructure:"[t_abbr]/[t_abbr]\nDouble Result"}]],[["nfl6024"],[{marketName:"1st Team Touchdown",betslipTextStructure:"[t_abbr]\n1st Team Touchdown"}]],[["nfl83","ncaaf83"],[{marketName:"2nd Half Betting",betslipTextStructure:"[t_abbr] To Win\n2nd Half 3-Way Bet"}]],[["nfl6014","ncaaf6014"],[{marketName:"First Touchdown Scorer",betslipTextStructure:"[p_name]\nFirst Touchdown Scorer"}]],[["nfl6029"],[{marketName:"Total 1st Half Touchdowns",betslipTextStructure:"[O/U] [Line]\n1st Half Total Touchdowns"}]],[["nfl232","nba232","ncaab232"],[{marketName:"2nd Half Total Points (Inc. OT)",betslipTextStructure:"[O/U] [Line]\n2nd Half Total"}]],[["nfl231","nba231","ncaaf231","ncaab231"],[{marketName:"2nd Half Spread (Inc. OT)",betslipTextStructure:"[t_abbr] [Line]\n2nd Half Spread"}]],[["nfl69","nba69","ncaaf69","ncaab69"],[{marketName:"1st half - home total points",betslipTextStructure:"[h_abbr] [O/U] [Line]\n1st Half Home Team Total"}]],[["nfl70","nba70","ncaab70"],[{marketName:"1st half - away total points",betslipTextStructure:"[a_abbr] [O/U] [Line]\n1st Half Away Team Total"}]],[["nfl60","nba60"],[{marketName:"1st Half Betting",betslipTextStructure:"[t_abbr] To Win\n1st Half 3-Way Bet"}]],[["nfl6015","ncaaf6015"],[{marketName:"Last Touchdown Scorer",betslipTextStructure:"[p_name]\nLast Touchdown Scorer"}]],[["nfl6030"],[{marketName:"Total 2nd Half Touchdowns",betslipTextStructure:"[O/U] [
1Line]\n2nd Half Total Touchdowns"}]],[["nfl6010"],[{marketName:"Total Assists",betslipTextStructure:"[O/U] [Line]\n[p_name] Assisted Tackles"}]],[["nba8001"],[{marketName:"Total Blocks",betslipTextStructure:"[O/U] [Line]\n[p_name] Blocks"}]],[["nba8002"],[{marketName:"Total Turnovers",betslipTextStructure:"[O/U] [Line]\n[p_name] Turnovers"}]],[["nba924","ncaab924"],[{marketName:"Total 3pt Field Goals",betslipTextStructure:"[O/U] [Line]\n[p_name] 3-Pointers Made"}]],[["nba8007"],[{marketName:"Total Blocks + Steals",betslipTextStructure:"[O/U] [Line]\n[p_name] Blocks + Steals"}]],[["nba8000"],[{marketName:"Total Steals",betslipTextStructure:"[O/U] [Line]\n[p_name] Steals"}]],[["nba8005"],[{marketName:"Total Rebounds + Assists",betslipTextStructure:"[O/U] [Line]\n[p_name] Rebounds + Assists"}]],[["nba8004"],[{marketName:"Total Points + Assists",betslipTextStructure:"[O/U] [Line]\n[p_name] Points + Assists"}]],[["nba8003"],[{marketName:"Total Points + Rebounds",betslipTextStructure:"[O/U] [Line]\n[p_name] Points + Rebounds"}
1]],[["nba8006"],[{marketName:"Total Points + Assists + Rebounds",betslipTextStructure:"[O/U] [Line]\n[p_name] PTS + REB + AST"}]],[["nba922","ncaab922"],[{marketName:"Total Assists",betslipTextStructure:"[O/U] [Line]\n[p_name] Assists"}]],[["nba923","ncaab923"],[{marketName:"Total Rebounds",betslipTextStructure:"[O/U] [Line]\n[p_name] Rebounds"}]],[["nba921"],[{marketName:"Total Points",betslipTextStructure:"[O/U] [Line]\n[p_name] Points"}]],[["nba227","nba228"],[{marketName:"Single Game Team Totals",betslipTextStructure:"[O/U] [Line]\n[t_abbr] Total Points"}]],[["nba302"],[{marketName:"1st Quarter Money Line",betslipTextStructure:"[t_abbr]\n1st Quarter Moneyline"}]],[["nba68"],[{marketName:"1st Half Standard",betslipTextStructure:"[O/U] [Line]\n1st Half Total"}]],[["nba66","ncaaf66","ncaab66"],[{marketName:"1st Half Spread",betslipTextStructure:"[t_abbr] [Line]\n1st Half Spread"}]],[["nba64","ncaaf64","ncaab64"],[{marketName:"1st Half Money Line",betslipTextStructure:"[t_abbr]\n1st Half Moneyline"}]],[["nba235"],[{marketName:"2nd Quarter Money Line",betslipTextStructure:"[t_abbr]\n2nd Quarter Moneyline"}]],[["nba225","ncaaf225","ncaab225"],[{marketName:"total",betslipTextStructure:"[O/U] [Line]\nTotal"}]],[["nba1"],[{marketName:"3way",betslipTextStructure:"[t_abbr] To Win\n3-Way Bet"}]],[["nba219","mlb251","nhl219","ncaaf219","ncaab219"],[{marketName:"2way",betslipTextStructure:"[t_abbr]\nMoneyline"}]],[["nba223","ncaaf223","ncaab223"],[{marketName:"spread",betslipTextStructure:"[t_abbr] [Line] \nSpread"}]],[["mlb9028"],[{marketName:"to hit a home run",betslipTextStructure:"[p_name] \nTo Record a Stolen Base"}]],[["mlb9024"],[{marketName:"to hit a home run",betslipTextStructure:"[p_name] \nTo Record an RBI"}]],[["mlb9020"],[{marketName:"to hit a home run",betslipTextStructure:"[p_name] \nTo Record a Hit"}]],[["mlb9017"],[{marketName:"to hit a home run",betslipTextStructure:"[p_name] \nTo Record a Run"}]],[["mlb9013"],[{marketName:"to hit a home run",betslipTextStructure:"[p_name] \nTo Hit a Home Run"}]],[["mlb9007"],[{marketName:"Total Power Play Points",betslipTextStructure:"[O/U] [Line]\n[p_name] Stolen Bases"}]],[["mlb9003"],[{marketName:"Total Power Play Points",betslipTextStructure:"[O/U] [Line]\n[p_name] Home Runs"}]],[["mlb9002"],[{marketName:"Total Power Play Points",betslipTextStructure:"[O/U] [Line]\n[p_name] RBIs"}]],[["mlb9001"],[{marketName:"Total Power Play Points",betslipTextStructure:"[O/U] [Line]\n[p_name] Runs"}]],[["mlb9000"],[{marketName:"Total Power Play Points",betslipTextStructure:"[O/U] [Line]\n[p_name] Hits"}]],[["mlb926"],[{marketName:"Total Power Play Points",betslipTextStructure:"[O/U] [Line]\n[p_name] Total Bases"}]],[["mlb9010"],[{marketName:"Total Power Play Points",betslipTextStructure:"[O/U] [Line]\n[p_name] Hits Allowed"}]],[["mlb9008"],[{marketName:"Total Power Play Points",betslipTextStructure:"[O/U] [Line]\n[p_name] Pitcher Outs"}]],[["mlb928"],[{marketName:"Total Power Play Points",betslipTextStructure:"[O/U] [Line]\n[p_name] Earned Runs"}]],[["mlb925"],[{marketName:"Total Power Play Points",betslipTextStructure:"[O/U] [Line]\n[p_name] Strikeouts"}]],[["mlb9009"],[{marketName:"Total Power Play Points",betslipTextStructure:"[O/U] [Line]\n[p_name] Strikeouts"}]],[["mlb9006"],[{marketName:"Total Power Play Points",betslipTextStructure:"[O/U] [Line]\n[p_name] Triples"}]],[["mlb9005"],[{marketName:"Total Power Play Points",betslipTextStructure:"[O/U] [Line]\n[p_name] Doubles"}]],[["mlb9004"],[{marketName:"Total Power Play Points",betslipTextStructure:"[O/U] [Line]\n[p_name] Singles"}]],[["nhl7000"],[{marketName:"Total Power Play Points",betslipTextStructure:"[O/U] [Line]\n[p_name] Shots"}]],[["nhl7001"],[{marketName:"Total Power Play Points",betslipTextStructure:"[O/U] [Line]\n[p_name] Assists"}]],[["nhl7002"],[{marketName:"Total Power Play Points",betslipTextStructure:"[O/U] [Line]\n[p_name] Points"}]],[["nhl7003"],[{marketName:"Total Power Play Points",betslipTextStructure:"[O/U] [Line]\n[p_name] Power Play Points"}]],[["mlb1124"],[{marketName:"innings 1 to 5 - 2way",betslipTextStructure:"[t_abbr]\nFirst 5 Innings Moneyline"}]],[["mlb275"],[{marketName:"First 5 RunLine",betslipTextStructure:"[t_abbr] [Line]\nFirst 5 Innings Run Line"}]],[["mlb276"],[{marketName:"First 5 Total",betslipTextStructure:"[O/U] [
1Line]\nFirst 5 Innings Total Runs"}]],[["mlb9035"],[{marketName:"Anytime Touchdown Scorer",betslipTextStructure:"[p_name]\nTo Hit a Triple"}]],[["mlb9034"],[{marketName:"Anytime Touchdown Scorer",betslipTextStructure:"[p_name]\nTo Hit a Double"}]],[["mlb9033"],[{marketName:"Anytime Touchdown Scorer",betslipTextStructure:"[p_name]\nTo Hit a Single"}]],[["mlb9032"],[{marketName:"Anytime Touchdown Scorer",betslipTextStructure:"[p_name]\nTo Record 5 or More Total Bases"}]],[["mlb9031"],[{marketName:"Anytime Touchdown Scorer",betslipTextStructure:"[p_name]\nTo Record 4 or More Total Bases"}]],[["mlb9030"],[{marketName:"Anytime Touchdown Scorer",betslipTextStructure:"[p_name]\nTo Record 3 or More Total Bases"}]],[["mlb9029"],[{marketName:"Anytime Touchdown Scorer",betslipTextStructure:"[p_name]\nTo Record 2 or More Total Bases"}]],[["mlb9027"],[{marketName:"Anytime Touchdown Scorer",betslipTextStructure:"[p_name]\nTo Record 4 or More RBIs"}]],[["mlb9026"],[{marketName:"Anytime Touchdown Scorer",betslipTextStructure:"[p_name]\nTo Record 3 or More RBIs"}]],[["mlb9025"],[{marketName:"Anytime Touchdown Scorer",betslipTextStructure:"[p_name]\nTo Record 2 or More RBIs"}]],[["mlb9023"],[{marketName:"Anytime Touchdown Scorer",betslipTextStructure:"[p_name]\nTo Record 4 or More Hits"}]],[["mlb9022"],[{marketName:"Anytime Touchdown Scorer",betslipTextStructure:"[p_name]\nTo Record 3 or More Hits"}]],[["mlb9021"],[{marketName:"Anytime Touchdown Scorer",betslipTextStructure:"[p_name]\nTo Record 2 or More Hits"}]],[["mlb9019"],[{marketName:"Anytime Touchdown Scorer",betslipTextStructure:"[p_name]\nTo Record 3 or More Runs"}]],[["mlb9018"],[{marketName:"Anytime Touchdown Scorer",betslipTextStructure:"[p_name]\nTo Record 2 or More Runs"}]],[["mlb9015"],[{marketName:"Anytime Touchdown Scorer",betslipTextStructure:"[p_name]\nTo Record 2 or More Home Runs"}]],[["mlb9014"],[{marketName:"Anytime Touchdown Scorer",betslipTextStructure:"[p_name]\nTo Hit First Home Run"}]],[["ncaaf6017"],[{marketName:"Anytime Touchdown Scorer",betslipTextStructure:"[p_name]\nTo Score 2+ Touchdowns"}]],[["ncaaf6021"],[{marketName:"Anytime Touchdown Scorer",betslipTextStructure:"[p_name]\nTo Throw Interception"}]],[["ncaaf6018"],[{marketName:"Anytime Touchdown Scorer",betslipTextStructure:"[p_name]\nTo Score 3+ Touchdowns"}]],[["ncaaf6016","nfl6016"],[{marketName:"Anytime Touchdown Scorer",betslipTextStructure:"[p_name]\nAnytime Touchdown Scorer"}]],[["nhl235"],[{marketName:"1st Period Betting",betslipTextStructure:"[t_abbr]\n1st Period 3-Way"}]],[["mlb274"],[{marketName:"1st Period Betting",betslipTextStructure:"[t_abbr]\nFirst 5 Innings Three Way"}]],[["mlb258"],[{marketName:"total",betslipTextStructure:"[O/U] [Line]\nTotal Runs"}]],[["mlb256"],[{marketName:"RunLine",betslipTextStructure:"[t_abbr] [Line]\nRun Line"}]],[["nhl40"],[{marketName:"Last Goalscorer",betslipTextStructure:"[p_name] \nAnytime Goalscorer"}]],[["nhl38"],[{marketName:"Last Goalscorer",betslipTextStructure:"[p_name] \nFirst Goalscorer"}]],[["nhl39"],[{marketName:"Last Goalscorer",betslipTextStructure:"[p_name] \nLast Goalscorer"}]],[["nhl223"],[{marketName:"Spread",betslipTextStructure:"[t_abbr] [Line] \nPuck Line"}]],[["nhl225"],[{marketName:"Total",betslipTextStructure:"[O/U] [Line]\nTotal"}]],[["nhl227","nhl228"],[{marketName:"Single Game Team Totals",betslipTextStructure:"[O/U] [Line]\n[t_abbr] Total"}]],[["nhl236"],[{marketName:"1st Period Total Goals",betslipTextStructure:"[O/U] [Line]\n1st Period Total"}]],[["nhl303"],[{marketName:"1st Period Spread",betslipTextStructure:"[t_abbr] [Line] \n1st Period Puck Line"}]],[["nhl60"],[{marketName:"1st period 3way",betslipTextStructure:"[t_abbr]\n1st Period 3-Way"}]],[["ncaaf70"],[{marketName:"1st half - away total points",betslipTextStructure:"[t_abbr] [O/U] [Line]\n1st Half Home Team Total"}]],[["ncaaf232"],[{marketName:"2nd Half Total Points (Inc. OT)",betslipTextStructure:"[O/U] [Line]\n2nd Half Total"}]],[["ncaaf6031"],[{marketName:"Winning Margin",betslipTextStructure:"[t_abbr] To Win\nWinning Margin"}]],[["ncaaf220","ncaab220"],[{marketName:"Will There Be Overtime?",betslipTextStructure:"[Yes/No]\nWill There Be Overtime?"}]],[["ncaaf915"],[{marketName:"Total Passing Completions",betslipTextStructure:"[O/U] [
1Line]\n[p_name] Pass Completions"}]],[["ncaaf6025"],[{marketName:"1st Scoring Play",betslipTextStructure:"[t_abbr] To Win\n1st Scoring Play"}]],[["ncaaf6032"],[{marketName:"1st Half Winning Margin",betslipTextStructure:"[t_abbr] To Win\n1st Half Winning Margin"}]],[["ncaaf6024"],[{marketName:"1st Team Touchdown",betslipTextStructure:"[t_abbr]\nFirst Touchdown"}]],[["ncaaf236"],[{marketName:"1st Quarter Total Points",betslipTextStructure:"[O/U] [Line]\n1st Quarter Total"}]],[["ncaaf303"],[{marketName:"1st Quarter Spread",betslipTextStructure:"[t_abbr] [Line]\n1st Quarter Spread"}]],[["ncaab74"],[{marketName:"1st half odd/even",betslipTextStructure:"To Win\n1st Half Odd/Even"}]],[["nhl410"],[{marketName:"",betslipTextStructure:"[t_abbr] [Line]\nSpread"}]],[["nhl412"],[{marketName:"",betslipTextStructure:"[O/U] [Line]\nTotal"}]],[["nhl406"],[{marketName:"",betslipTextStructure:"[t_abbr]\nMoneyline"}]]],S=(e,t,i)=>{const o=`${e}${Number(t.replace("sr:market:",""))}`,n=A;if(!n||0===n.length)return"";const a=null==n?void 0:n.find((e=>e[0].includes(o)));if(!a)return"";const r=a[1];if(1===r.length)return r[0].betslipTextStructure;const s=r.find((e=>e.marketName.toLowerCase()===i.toLowerCase()));return s?s.betslipTextStructure:""},E=e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase();var N,M;!function(e){e.KALSHI_FUTURES="kalshi-futures",e.BETSLIP="betslip",e.SIX_PACK="six-pack",e.WORLD_CUP="world-cup",e.SNIPPET="snippet",e.BRANDED_PICK_SNIPPET="branded-pick-snippet",e.PARLAY="parlay",e.PARLAY_BRANDED="parlay-branded",e.SNIPPET_BUTTON="snippet-button",e.GAME_ODDS_PICK="game-odds-pick",e.PICK_OF_THE_DAY="pick-of-the-day",e.FREE_EXPERT_PICK_OF_THE_DAY="free-expert-pick-of-the-day",e.PROP_PICKS_CAROUSEL="prop-picks-carousel",e.PROPS_TABLE="props-table"}(N||(N={})),function(e){e.IMPRESSION="impression",e.VIEWED="viewed",e.CBS_ADD="addedToBetslip",e.CBS_REMOVE="removedFromBetslip",e.EXIT_CLICK="exitClick",e.ERROR="error",e.INVALID_ITEM="invalidItem",e.EXPANDED="expanded",e.MINIMIZED="minimized",e.REMOVE_ALL="removeAll",e.REMOVE_ITEM="removeItem",e.OPENED_ANALYSIS="openedAnalysis",e.CHANGE_BOOK="changeBook",e.CHANGE_WAGER="changeWager",e.SG_ADD="add_to_betslip",e.SG_REMOVE="remove_bet",e.SG_CLICK_OUT="clickout",e.SG_CLICK_PROMOTION="click_promotion"}(M||(M={}));const L=e=>{const[t,...i]=e.split("/");return{widget:t,path:i.join("/")}},D=new class{transformBetsToWidgetData(e,t,i,o,n){return e.map(((e,a)=>{var r,s,l,d,c,p,u,h,g,m,b,v;const f=null===(s=null===(r=null==i?void 0:i.bets)||void 0===r?void 0:r[a])||void 0===s?void 0:s.position,y=(null===(c=null===(d=null===(l=null==i?void 0:i.bets)||void 0===l?void 0:l[a])||void 0===d?void 0:d.selection)||void 0===c?void 0:c.label)||"",w=this.getMarketForWidgetData(e,t,o),C={position:f||a+1,gameId:null!==(p=e.game.id)&&void 0!==p?p:e.gameId,league:e.game.leagueName,market:n?Object.assign(Object.assign({},w),{label:n}):w,selection:this.getSelectionForWidgetData(e,y,o)},x=null===(h=null===(u=null==i?void 0:i.bets)||void 0===u?void 0:u[a])||void 0===h?void 0:h.rowIndex;void 0!==x&&(C.rowIndex=x);const I=null===(m=null===(g=null==i?void 0:i.bets)||void 0===g?void 0:g[a])||void 0===m?void 0:m.type;I&&(C.type=I);const k=null===(v=null===(b=null==i?void 0:i.bets)||void 0===b?void 0:b[a])||void 0===v?void 0:v.expertLabel;return k&&(C.expertLabel=k),C}))}getMarketForWidgetData(e,t,i){return{id:[N.SIX_PACK,N.WORLD_CUP,N.BETSLIP].includes(t)?e.bet.market.id:e.bet.market.id.split(":")[2],label:e.bet.market.name||this.getLabelForMarket(e,e.game),operator:i&&"best"!==i?i:e.bet.operator}}getSelectionForWidgetData({bet:e,game:t,offers:i},o,n){var a,r,s,l,d,c,p;let u;switch(e.position){case t.homeTeam.abbr:u="home";break;case t.awayTeam.abbr:u="away";break;default:u=e.position}o=o||this.getLabelForSelection(e,t),"draw"===(null===(a=e.position)||void 0===a?void 0:a.toLowerCase())&&(o="DRAW");const h={label:o,side:u,odds:null!==(s=null!==(r=e.configOdds)&&void 0!==r?r:e.altOdds)&&void 0!==s?s:e.odds};return"total"!==e.market.type.toLowerCase()&&(h.entity=this.getEntityForSelection(e.entity)),e.line&&(h.line=e.line),n&&"best"!==n&&(h.odds=null!==(d=null===(l=null==i?void 0:i[n])||void 0===l?void 0:l.odds)&&void 0!==d?d:h.odds,h.line&&(h.line=null!==(p=null===(c=null==i?void 0:i[n])||void 0===c?void 0:c.line)&&void 0!==p?p:h.line)),h}getLabelForMarket({bet:e,dataId:t},{leagueName:i}){var o,n;const{widget:a}=L(t);if(a===N.SIX_PACK)return null!==(o=e.market.name)&&void 0!==o?o:e.market.type;const{id:r,name:s}=e.market;return r&&s?(null===(n=S(i,r,s).split("\n"))||void 0===n?void 0:n[1]).replace("[b_type]",E(e.market.type)).replace("[p_name] ","").replace("[t_abbr] ",""):""}getLabelForSelection({position:e,entity:t},{awayTeam:i,homeTeam:o}){if("team"===t.type){const t=(null==i?void 0:i.name)||i.abbr,n=(null==o?void 0:o.name)||o.abbr;switch(e){case"over":return t;case"under":return n;default:return"home"===e||e===o.abbr?n:t}}return`${t.text1} ${t.text2}`}getEntityForSelection({id:e,type:t}){const i={type:t};return e&&(i.id=e),i}},_={},j=new class{getWidgetDataByInstanceId(e){if(e&&_[e])return null==_?void 0:_[e]}setWidgetDataByInstanceId(e,t){const i=e||t.name;_[i]||(_[i]=t)}hasInstance(e){return!!e&&!!this.getWidgetDataByInstanceId(e)}getAllWidgets(){return Object.assign({},_)}},$=new class{getPayloadForParlayAction(e,t,i,o,n){let a=[];switch(t&&(a=D.transformBetsToWidgetData(t,"parlay-picks",null==o?void 0:o.meta,n)),e){case M.CBS_ADD:return i&&(i.bets=a),{bet:a};case M.CBS_REMOVE:return{bet:a};default:return{}}}getPayloadForSnippetAction(e,t,i){var o,n;let a={};switch((null==i?void 0:i.betData)&&(a=D.transformBetsToWidgetData([i.betData],"pick-snippet",null===(o=null==i?void 0:i.dataConfig)||void 0===o?void 0:o.meta,null===(n=ie.selectedOperator)||void 0===n?void 0:n.operator)[0]),e){case M.CBS_ADD:return t&&a&&(t.bets=[a]),{bet:a};case M.CBS_REMOVE:return{bet:a};case M.EXIT_CLICK:return{userFlow:(null==i?void 0:i.userFlow)||N.SNIPPET,link:(null==i?void 0:i.link)||""};default:return{}}}getPayloadForPickOfTheDayAction(e,t,i){var o;let n={};switch(t&&(n=D.transformBetsToWidgetData([t],"pick-of-the-day",void 0,null===(o=ie.selectedOperator)||void 0===o?void 0:o.operator)[0]),e){case M.CBS_ADD:return i&&n&&(i.bets=[n]),{bet:n};case M.CBS_REMOVE:return{bet:n};default:return{}}}getPayloadForPropsTableAction(e,t,i){var o;let n={};switch(t&&(n=D.transformBetsToWidgetData([t],"props-table",void 0,null===(o=ie.selectedOperator)||void 0===o?void 0:o.operator)[0]),e){case M.CBS_ADD:return i&&n&&(i.bets=[n]),{bet:n};case M.CBS_REMOVE:return{bet:n};default:return{}}}getPayloadForGeneralAction(e,t,i,o,n){var a;let r={};switch(i&&(r=D.transformBetsToWidgetData([i],t,void 0,null===(a=ie.selectedOperator)||void 0===a?void 0:a.operator)[0],n&&Object.assign(r,n)),e){case M.CBS_ADD:if(o&&r)if(o.bets.length>1){const e=o.bets.findIndex((e=>e.position===r.position));-1!==e&&(o.bets[e]=r)}else o.bets=[r];return{bet:r};case M.CBS_REMOVE:if(o&&r)if(o.bets.length>1){const e=o.bets.findIndex((e=>e.position===r.position));-1!==e&&(o.bets[e]=r)}else o.bets=[r];return{bet:r};
1case M.OPENED_ANALYSIS:if(o&&r)if(o.bets.length>1){const e=o.bets.findIndex((e=>e.position===r.position));-1!==e&&(o.bets[e]=r)}else o.bets=[r];return{bet:r};default:return{}}}getPayloadForSixPackAction(e,t,i,o,n){var a;let r=[];if(t&&(r=D.transformBetsToWidgetData(t,N.SIX_PACK,void 0,o)),1===r.length&&i){const e=null===(a=null==i?void 0:i.bets.find((({selection:e,market:t})=>t.id===r[0].market.id&&e.side===r[0].selection.side)))||void 0===a?void 0:a.position;e&&(r[0].position=e)}switch(e){case M.CBS_ADD:case M.CBS_REMOVE:return{bet:r[0]};case M.CHANGE_BOOK:return i&&(i.bets=r),{bets:r};case M.EXIT_CLICK:return{userFlow:"6pack",link:n};default:return{}}}getPayloadForWorldCupAction(e,t,i,o,n){var a;let r=[];if(t&&(r=D.transformBetsToWidgetData(t,N.WORLD_CUP,void 0,o)),1===r.length&&i){const e=null===(a=null==i?void 0:i.bets.find((({selection:e,market:t})=>t.id===r[0].market.id&&e.side===r[0].selection.side)))||void 0===a?void 0:a.position;e&&(r[0].position=e)}switch(e){case M.CBS_ADD:case M.CBS_REMOVE:return{bet:r[0]};case M.CHANGE_BOOK:return i&&(i.bets=r),{bets:r};case M.EXIT_CLICK:return{userFlow:"3pack",link:n};default:return{}}}getPayloadForBetslipAction(e,t,i,o,a,r,s,l){var d;let c=[];switch(i&&(c=D.transformBetsToWidgetData(i,"betslip",void 0,null===(d=ie.selectedOperator)||void 0===d?void 0:d.operator)),e){case M.CHANGE_BOOK:return o&&(t.promotion={operator:o.operatorName||"",title:o.promo_text,subtitle:o.promo_sub_text,ctaText:"Claim Offer"}),{};case M.CHANGE_WAGER:const e=Number(n.getItem("wagerValue"));return e&&(t.wager=e),{wager:e};case M.REMOVE_ITEM:case M.REMOVE_ALL:return{bets:c};case M.EXIT_CLICK:return a?{userFlow:s,link:a}:{};case M.INVALID_ITEM:return{bet:null==c?void 0:c[0],status:r||"expired"};case M.ERROR:return t.isAllowedForBetting=!1,{error:l};default:return{}}}getGeneralWidgetData({name:e,instanceId:t,version:i,bets:o,isAllowedForBetting:n,configMetaData:a,marketName:r}){const s=D.transformBetsToWidgetData(o,e,a,void 0,r);new URL(window.location.href).searchParams.has("sg-tester")&&(i="sg-tester "+i);const l={name:e,instanceId:t,version:i,src:u,bets:s,isAllowedForBetting:n||!1},d=null==a?void 0:a.promotion;d&&(l.promotion=d);const c=null==a?void 0:a.source;return c&&(l.source=c),l}},P=new class{trackError(e,t,i={}){this.trackEvent("widget_error",e,Object.assign({message:t},i))}trackPageView(e={}){this.track("page_view",e)}track(e,t={},i=!0){var o;let n=Object.assign({event:e},t);t.widgetData&&"isAllowedForBetting"in t.widgetData&&(n.isAllowedForBetting=t.widgetData.isAllowedForBetting),t.widgetData&&(n.widgetData=JSON.stringify(t.widgetData)),e===M.SG_CLICK_OUT?(n.bets=JSON.stringify(t.bets),n.data=JSON.stringify(t.data)):(t.bets&&"string"!=typeof t.bets&&(n.bets=JSON.stringify(t.bets)),t.data&&"string"!=typeof t.data&&(n.data=JSON.stringify(t.data))),i&&(n=Object.assign(Object.assign({},this.getBasePayload()),n)),(null===(o=null==n?void 0:n.message)||void 0===o?void 0:o.includes("Failed to load widget data"))||fetch("https://slc.cbssports.com/events",{method:"POST",headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json"},body:JSON.stringify(null!=n?n:{})}).catch(console.error)}trackEvent(e,t,i={},o=!1){var n;const{gameId:a,type:r}=t.dataset,s=Object.assign({gameId:a,widgetType:r},i);(null===(n=i.bets)||void 0===n?void 0:n.length)>0&&delete s.gameId,t.instanceId&&!o&&(s.sid=`${window.__window_vguid||""}-${t.instanceId}`,s.widgetId=t.instanceId),this.track(e,s)}getBasePayload(){return{userId:re(),vuid:ae(),timestamp:Date.now(),referer:window.location.href||""}}};var U=function(e,t){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(i[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(i[o[n]]=e[o[n]])}return i};const z=new class{get widgetBetType(){const e=ie.betslipType;return"one bet"===e?"single":e}saveAndDispatchImpression(e,t){j.setWidgetDataByInstanceId(e||t.name,t),this.dispatchCustomEvent({action:M.IMPRESSION,payload:{},widgetData:t})}buildGeneral(e,t){return $.getGeneralWidgetData(Object.assign(Object.assign({},t),{name:e}))}dispatchImpressionSnippetWidget(e,t=!1,i,o){if(j.hasInstance(e.instanceId))return;
1const n=this.buildGeneral(t?"branded-pick-snippet":"pick-snippet",Object.assign({},e)),a=Object.assign(Object.assign(Object.assign({},n),t?{promotion:n.promotion?n.promotion:{operator:i,ctaText:o||"Bet this Pick"}}:{}),{ctaText:e.instanceId?"Bet this Pick":""});o&&(a.ctaText=o),this.saveAndDispatchImpression(e.instanceId,a)}dispatchImpressionPickOfTheDayWidget(e){if(j.hasInstance(e.instanceId))return;const t=this.buildGeneral(N.PICK_OF_THE_DAY,Object.assign({},e)),i=Object.assign(Object.assign({},t),{ctaText:e.instanceId?"Bet this Pick":""});this.saveAndDispatchImpression(e.instanceId,i)}dispatchImpressionPropsTableWidget(e,t){if(e.getAttribute(f))return;const i=k();e.setAttribute(f,i);const o=this.buildGeneral("props-table",Object.assign({},t));this.saveAndDispatchImpression(`${t.instanceId}_${i}`,o),j.setWidgetDataByInstanceId(t.instanceId,o)}dispatchImpressionExpertWidget(e){if(j.hasInstance(e.instanceId))return;const t=this.buildGeneral("expert-picks",Object.assign({},e));this.saveAndDispatchImpression(e.instanceId,t)}dispatchImpressionOddsPicksWidget(e){if(j.hasInstance(e.instanceId))return;const t=this.buildGeneral("odds-picks",Object.assign({},e));this.saveAndDispatchImpression(e.instanceId,t)}dispatchImpressionBetsCarouselWidget(e,t="expert-picks-carousel"){if(j.hasInstance(e.instanceId))return;const i=this.buildGeneral(t,Object.assign({},e));this.saveAndDispatchImpression(e.instanceId,i)}dispatchImpressionParlayWidget(e){if(j.hasInstance(e.instanceId))return;const t=!!n.getItem("legal"),i=this.buildGeneral("parlay-picks",Object.assign(Object.assign({},e),{isAllowedForBetting:t?e.isAllowedForBetting:t})),o=Object.assign(Object.assign({},i),{wager:e.wager,betType:N.PARLAY});this.saveAndDispatchImpression(e.instanceId,o)}dispatchImpressionParlayBrandingWidget(e,t,i){var o,a,r,s,l;if(j.hasInstance(t.instanceId))return;const d=!!n.getItem("legal"),c=this.buildGeneral("branded-parlay-picks",Object.assign(Object.assign({},t),{isAllowedForBetting:d?t.isAllowedForBetting:d})),p=null===(l=null===(s=null===(r=null===(a=null===(o=null==e?void 0:e.shadowRoot)||void 0===o?void 0:o.querySelector("sportsline-pick-snippet-parlay-card"))||void 0===a?void 0:a.shadowRoot)||void 0===r?void 0:r.querySelector(".sportsline-pick-snippet-parlay-card__header-brand"))||void 0===s?void 0:s.querySelector(".sportsline-pick-snippet-parlay-card__header-brand__slogan"))||void 0===l?void 0:l.innerText,u=Object.assign(Object.assign({},c),{wager:t.wager,betType:"branded-parlay"});u.promotion||(u.promotion={operator:i||"",title:p||""}),this.saveAndDispatchImpression(t.instanceId,u)}dispatchImpressionSixPackWidget(e){if(j.hasInstance(e.instanceId))return;const t=this.buildGeneral(N.SIX_PACK,Object.assign(Object.assign({},e),{isAllowedForBetting:!!n.getItem("legal")}));this.saveAndDispatchImpression(e.instanceId,Object.assign({operators:e.operators||[]},t))}dispatchImpressionWorldCupWidget(e){if(j.hasInstance(e.instanceId))return;const t=this.buildGeneral(N.WORLD_CUP,Object.assign(Object.assign({},e),{isAllowedForBetting:!!n.getItem("legal")}));this.saveAndDispatchImpression(e.instanceId,t)}dispatchImpressionBetslipWidget({instanceId:e,version:t,operatorOffer:i}){var o;if(j.hasInstance(e))return;const a={name:N.BETSLIP,instanceId:e,version:t,src:u,betType:"",promotion:void 0,bets:[],operators:[],wager:n.getItem("wagerValue")?Number(n.getItem("wagerValue")):0,isAllowedForBetting:!0};"promotion"in a&&(i?a.promotion={operator:i.operatorName||"",title:i.promo_text,subtitle:i.promo_sub_text,ctaText:"Claim Offer"}:delete a.promotion);const r=ie.get();0!==r.length&&(a.bets=D.transformBetsToWidgetData(r,"betslip",void 0,null===(o=ie.selectedOperator)||void 0===o?void 0:o.operator),a.operators=ie.getOperators().filter((e=>e.bets.length>0)).map((e=>({operator:O(e.operator),availableLegs:e.bets.length,combinedOdds:e.odds})))),a.betType=this.widgetBetType,this.saveAndDispatchImpression(e,a)}dispatchImpressionKalshiFuturesWidget(e){if(j.hasInstance(e.instanceId))return;const{data:t}=e,i=U(e,["data"]),{bets:o,isAllowedForBetting:a,widgetData:r}=t,s=!!n.getItem("legal");this.saveAndDispatchImpression(e.instanceId,Object.assign(Object.assign({name:N.KALSHI_FUTURES},Object.assign(Object.assign({},i),{isAllowedForBetting:s?a:s,data:r})),{src:u,bets:o||[]}))}dispatchSnippetWidgetAction(e,t,i){const o=j.getWidgetDataByInstanceId(t||"pick-snippet");if(!o)return;const n={action:e,payload:$.getPayloadForSnippetAction(e,o,i),widgetData:o};this.dispatchCustomEvent(n)}dispatchPickOfTheDayWidgetAction(e,t,i,o,n){var a,r,s,l;const d=j.getWidgetDataByInstanceId(t||"pick-of-the-day");if(!d)return;const c=null===(r=null===(a=null==n?void 0:n.meta)||void 0===a?void 0:a.bets)||void 0===r?void 0:r[0],p=(null==c?void 0:c.position)||0,u=null===(s=null==c?void 0:c.selection)||void 0===s?void 0:s.label,h=null==c?void 0:c.rowIndex,g=null==c?void 0:c.type,m=null==c?void 0:c.expertLabel,b={};p&&(b.position=p),h&&(b.rowIndex=h),m&&(b.expertLabel=m),g&&(b.type=g),(null==o?void 0:o.source)&&(d.source=o.source);const v=$.getPayloadForPickOfTheDayAction(e,i,d);u&&(null===(l=null==v?void 0:v.bet)||void 0===l?void 0:l.selection)&&(v.bet.selection.label=u),p&&(null==v?void 0:v.bet)&&(v.bet.position=p),h&&(null==v?void 0:v.bet)&&(v.bet.rowIndex=h),m&&(null==v?void 0:v.bet)&&(v.bet.expertLabel=m);const f=Object.assign({action:e,payload:v,widgetData:d},o);this.dispatchCustomEvent(f)}
1dispatchPropsTableWidgetAction(e,t,i,o,n){var a;let r=j.getWidgetDataByInstanceId(t||"props-table");if(!r&&(r=j.getWidgetDataByInstanceId(t.split("_")[0]),!r))return;const s=$.getPayloadForPropsTableAction(e,i,r);"number"==typeof(null==n?void 0:n.position)&&(null==s?void 0:s.bet)&&(s.bet.position=n.position),"number"==typeof(null==n?void 0:n.rowIndex)&&(null==s?void 0:s.bet)&&(s.bet.rowIndex=n.rowIndex),(null==n?void 0:n.label)&&(null===(a=null==s?void 0:s.bet)||void 0===a?void 0:a.selection)&&(s.bet.selection.label=n.label),(null==n?void 0:n.type)&&(null==s?void 0:s.bet)&&(s.bet.type=n.type);const l={action:e,payload:Object.assign(Object.assign({},s),o),widgetData:r};this.dispatchCustomEvent(l)}dispatchGeneralWidgetAction(e,t,i,o,n,a){var r,s,l,d;const c=j.getWidgetDataByInstanceId(t||i);if(!c)return;const p=null===(s=null===(r=null==a?void 0:a.meta)||void 0===r?void 0:r.bets)||void 0===s?void 0:s[0],u=(null==p?void 0:p.position)||0,h=null===(l=null==p?void 0:p.selection)||void 0===l?void 0:l.label,g=null==p?void 0:p.rowIndex,m=null==p?void 0:p.type,b=null==p?void 0:p.expertLabel,v={};u&&(v.position=u),g&&(v.rowIndex=g),b&&(v.expertLabel=b),m&&(v.type=m),(null==n?void 0:n.source)&&(c.source=n.source);const f=$.getPayloadForGeneralAction(e,i,o,c,v);h&&(null===(d=null==f?void 0:f.bet)||void 0===d?void 0:d.selection)&&(f.bet.selection.label=h),u&&(null==f?void 0:f.bet)&&(f.bet.position=u),g&&(null==f?void 0:f.bet)&&(f.bet.rowIndex=g),b&&(null==f?void 0:f.bet)&&(f.bet.expertLabel=b);const y={action:e,payload:Object.assign(Object.assign({},f),n),widgetData:c};this.dispatchCustomEvent(y)}dispatchParlayWidgetAction(e,t,i,o,n){const a=j.getWidgetDataByInstanceId(t||"parlay-picks");if(!a)return;const r={action:e,payload:$.getPayloadForParlayAction(e,i,a,o,n),widgetData:a};this.dispatchCustomEvent(r)}dispatchParlayBrandingWidgetAction(e,t,i){const o=j.getWidgetDataByInstanceId(t||"branded-parlay-picks");if(!o)return;const n={action:e,payload:i||{},widgetData:o};this.dispatchCustomEvent(n)}dispatchSixPackWidgetAction(e,t,i){var o,n,a,r,s;const l=j.getWidgetDataByInstanceId(t);if(!l)return;const d=Object.assign({},l);d.name===N.SIX_PACK&&(d.bets=[{gameId:null===(o=d.bets[0])||void 0===o?void 0:o.gameId,league:null===(n=d.bets[0])||void 0===n?void 0:n.league}]);const c={action:e,payload:$.getPayloadForSixPackAction(e,null===(a=null==i?void 0:i.betData)||void 0===a?void 0:a.bets,d,null===(r=null==i?void 0:i.betData)||void 0===r?void 0:r.forceOperatorUpdate,null==i?void 0:i.clickOutLink),widgetData:Object.assign(Object.assign({},l),{operators:null===(s=null==i?void 0:i.betData)||void 0===s?void 0:s.operators})};this.dispatchCustomEvent(c)}dispatchWorldCupWidgetAction(e,t,i){var o,n,a;const r=j.getWidgetDataByInstanceId(t);if(!r)return;const s={action:e,payload:$.getPayloadForWorldCupAction(e,null===(o=null==i?void 0:i.betData)||void 0===o?void 0:o.bets,r,null===(n=null==i?void 0:i.betData)||void 0===n?void 0:n.forceOperatorUpdate,null==i?void 0:i.clickOutLink),widgetData:Object.assign(Object.assign({},r),{operators:null===(a=null==i?void 0:i.betData)||void 0===a?void 0:a.operators})};this.dispatchCustomEvent(s)}dispatchKalshiFuturesWidgetAction(e,t,i){var o;const n=j.getWidgetDataByInstanceId(t);if(!n)return;const a={action:e,payload:{link:null==i?void 0:i.clickOutLink,userFlow:"clickout"===(null==i?void 0:i.type)?"kalshi-futures":"promo"},widgetData:Object.assign(Object.assign({},n),{betType:null==i?void 0:i.type,bets:null===(o=null==i?void 0:i.betData)||void 0===o?void 0:o.markets,isAllowedForBetting:null==i?void 0:i.isAllowedForBetting})};this.dispatchCustomEvent(a)}dispatchBetslipWidgetAction(e,t,{bets:i,offer:o,clickOutLink:n,status:a,userFlow:r,error:s}={}){var l;const d=j.getWidgetDataByInstanceId(t);if(!d)return;const c=ie.get(),p=null===(l=ie.selectedOperator)||void 0===l?void 0:l.operator;d.bets=D.transformBetsToWidgetData(c,"betslip",void 0,p),d.betType=this.widgetBetType;const u=ie.getOperators().filter((e=>e.bets.length>0));d.operators=u.map((e=>({operator:O(e.operator),availableLegs:e.bets.length,combinedOdds:e.odds})));const h={action:e,payload:$.getPayloadForBetslipAction(e,d,i,o,n,a,r,s),widgetData:d};this.dispatchCustomEvent(h)}dispatchSnippetWidgetError(e,t,i,o=!1,n){const a=Object.assign({name:o?"branded-pick-snippet"
1:"pick-snippet",instanceId:e,version:i,src:u,bets:[],isAllowedForBetting:!1,ctaText:"Bet this Pick"},n?{promotion:{operator:n}}:{});this.dispatchCustomEvent({action:M.ERROR,payload:{error:t},widgetData:a})}dispatchPickOfTheDayWidgetError(e,t,i){const o={name:N.PICK_OF_THE_DAY,instanceId:e,version:i,src:u,bets:[],isAllowedForBetting:!1,ctaText:"Bet this Pick"};this.dispatchCustomEvent({action:M.ERROR,payload:{error:t},widgetData:o})}dispatchGeneralWidgetError(e,t,i,o){const n={name:e,instanceId:t,version:o,src:u,bets:[],isAllowedForBetting:!1};this.dispatchCustomEvent({action:M.ERROR,payload:{error:i},widgetData:n})}dispatchParlayWidgetError(e,t,i,o){let n=[];o&&(n=D.transformBetsToWidgetData(o,"parlay-picks"));const a={name:"parlay-picks",instanceId:e,version:i,src:u,bets:n,isAllowedForBetting:!1,ctaText:"Bet this Pick"};this.dispatchCustomEvent({action:M.ERROR,payload:{error:t},widgetData:a})}dispatchParlayBrandingWidgetError(e,t,i,o,n){var a,r,s,l,d;const c=null===(d=null===(l=null===(s=null===(r=null===(a=null==o?void 0:o.shadowRoot)||void 0===a?void 0:a.querySelector("sportsline-pick-snippet-parlay-card"))||void 0===r?void 0:r.shadowRoot)||void 0===s?void 0:s.querySelector(".sportsline-pick-snippet-parlay-card__header-brand"))||void 0===l?void 0:l.querySelector(".sportsline-pick-snippet-parlay-card__header-brand__slogan"))||void 0===d?void 0:d.innerText,p={name:"branded-parlay-picks",instanceId:e,version:i,src:u,bets:[],ref:o,isAllowedForBetting:!1,ctaText:`Bet at ${n}`,promotion:{operator:n||"",title:c||""}};this.dispatchCustomEvent({action:M.ERROR,payload:{error:t},widgetData:p})}dispatchSixPackWidgetError(e,t,i){const o={name:N.SIX_PACK,instanceId:e,version:i,src:u,bets:[],isAllowedForBetting:!1};this.dispatchCustomEvent({action:M.ERROR,payload:{error:t},widgetData:o})}dispatchWorldCupWidgetError(e,t,i){const o={name:N.SIX_PACK,instanceId:e,version:i,src:u,bets:[],isAllowedForBetting:!1};this.dispatchCustomEvent({action:M.ERROR,payload:{error:t},widgetData:o})}dispatchCustomEvent(e){var t,i,o,n;const a=Object.assign(Object.assign({},e),{widgetData:Object.assign({},e.widgetData)});delete a.widgetData.operators;const r=new CustomEvent("martech-tracking-framework-event",{detail:a});e.action,e.widgetData.name,a.widgetData.instanceId,(null===(n=null===(o=null===(i=null===(t=r.detail)||void 0===t?void 0:t.payload)||void 0===i?void 0:i.error)||void 0===o?void 0:o.message)||void 0===n?void 0:n.includes("Failed to load widget data"))||window.dispatchEvent(r);const s=[M.IMPRESSION,M.VIEWED,M.INVALID_ITEM,M.OPENED_ANALYSIS],{action:l,payload:d,widgetData:c}=e;if(s.includes(l)&&d&&c){const e=U(c,[]);let t=e;switch(null==c?void 0:c.name){case N.SIX_PACK:t=Object.assign(Object.assign({},e),{bets:[e.bets.map((e=>({gameId:e.gameId,league:e.league})))[0]]});break;case"pick-snippet":{const i=e,{ctaText:o}=i,n=U(i,["ctaText"]);t=Object.assign({},n);break}case"parlay-picks":{const i=e,{wager:o}=i,n=U(i,["wager"]);t=Object.assign(Object.assign({},n),{bets:n.bets.map((e=>{const{market:t,selection:i}=e,o=U(e,["market","selection"]),{entity:n}=i,a=U(i,["entity"]),r=Object.assign(Object.assign({},o),{label:t.label,selection:a});return(null==n?void 0:n.id)&&(r.id=n.id),r}))});break}}P.track(l===M.EXIT_CLICK?M.SG_CLICK_OUT:l,{action:l,payload:d,widgetData:t})}}},R=e=>{setTimeout(e,0)},B=new class{getExclusiveOperator(e,t){var i;const o=n.getItem("exclusive")||null;if(o&&(null==o?void 0:o[e]))return"all"in(null==o?void 0:o[e])?o[e].all:(null===(i=null==o?void 0:o[e])||void 0===i?void 0:i[t])||void 0}},W={},H=[],V=(e,t)=>{let i=e.dataset.instanceId;return!i&&t&&(i=t,e.setAttribute(v,t)),i||(i=k(),e.setAttribute(v,i)),i},F=e=>{const t=[];return(null==e?void 0:e.gameId)||t.push("gameId is missing"),(null==e?void 0:e.marketId)||t.push("marketId is missing"),(null==e?void 0:e.marketName)||t.push("marketName is missing"),t.join(" | ")},G=(e,t="parlay")=>{var i,o,n,a;let r=[];if(e.type!==t&&r.push(`Invalid config type, expected "${t}"`),null===(i=e.markets)||void 0===i?void 0:i.length)for(let t=0;t<e.markets.length;t++)(null===(o=e.markets[t])||void 0===o?void 0:o.gameId)||r.push(`gameId is missing in market [${t}]`),(null===(n=e.markets[t])||void 0===n?void 0:n.marketId)||r.push(`marketId is missing in market [${t}]`),(null===(a=e.markets[t])||void 0===a?void 0:a.marketName)||r.push(`marketName is missing in market [${t}]`);else r.push("markets is missing or empty");return r.join(" | ")},Y=({gameId:e,marketId:t,entityId:i,pick:o})=>(o=null==o?void 0:o.toLowerCase())&&i?`${e}_${i}_${t}`:`${e}_${t}`,K=(e,t,i)=>{if(i===N.PROPS_TABLE){const i=t.getAttribute(f);if(!i)return;e=`${e}_${i}`}if(!t)return;if(W[e]||H.includes(e))return;W[e]=!0;let o=!1;const n=()=>
1{if(!o){switch(o=!0,i){case"pick-snippet":case"branded-pick-snippet":z.dispatchSnippetWidgetAction(M.VIEWED,e);break;case"pick-of-the-day":z.dispatchPickOfTheDayWidgetAction(M.VIEWED,e);break;case"props-table":z.dispatchPropsTableWidgetAction(M.VIEWED,e);break;case"parlay-picks":z.dispatchParlayWidgetAction(M.VIEWED,e);break;case"branded-parlay-picks":z.dispatchParlayBrandingWidgetAction(M.VIEWED,e);break;default:z.dispatchGeneralWidgetAction(M.VIEWED,e,i)}H.push(e),a.disconnect(),window.removeEventListener("scroll",r,!0)}};let a={};"IntersectionObserver"in window&&(a=new IntersectionObserver((([e])=>{e.isIntersecting&&e.intersectionRatio>=.5&&n()}),{threshold:.5}),a.observe(t));const r=()=>{const e=t.getBoundingClientRect();Math.max(0,Math.min(e.bottom,window.innerHeight)-Math.max(e.top,0))/e.height>=.5&&n()};a||window.addEventListener("scroll",r,!0)},Q=(e,t,i,o,n)=>{var a,r,s;const l=V(e,o),d={instanceId:l,version:i,bets:(null==n?void 0:n.bets)||[],isAllowedForBetting:null!==(a=null==n?void 0:n.isAllowedForBetting)&&void 0!==a&&a,configMetaData:null==n?void 0:n.configMetaData,marketName:null==n?void 0:n.marketName};let c=e;switch(t){case"pick-snippet":z.dispatchImpressionSnippetWidget(d);break;case"branded-pick-snippet":z.dispatchImpressionSnippetWidget(d,!0,null==n?void 0:n.operator,null==n?void 0:n.ctaText);break;case"pick-of-the-day":z.dispatchImpressionPickOfTheDayWidget(d);break;case"props-table":z.dispatchImpressionPropsTableWidget(e,d);break;case"expert-picks":z.dispatchImpressionExpertWidget(d);break;case"odds-picks":z.dispatchImpressionOddsPicksWidget(d);break;case"parlay-picks":z.dispatchImpressionParlayWidget(Object.assign(Object.assign({},d),{wager:null!==(r=null==n?void 0:n.wager)&&void 0!==r?r:0}));break;case"branded-parlay-picks":z.dispatchImpressionParlayBrandingWidget(e,Object.assign(Object.assign({},d),{wager:null!==(s=null==n?void 0:n.wager)&&void 0!==s?s:0}),null==n?void 0:n.operator);break;case"expert-picks-carousel":z.dispatchImpressionBetsCarouselWidget(d),c=e.parentElement||e;break;case"prop-picks-carousel":z.dispatchImpressionBetsCarouselWidget(d,"prop-picks-carousel"),c=e.parentElement||e}K(l,c,t)},Z=(e,t,i)=>{var o;const n=B.getExclusiveOperator(t,i);if(n){const t=null===(o=e.books)||void 0===o?void 0:o.filter((e=>e.operator_name.toLowerCase()===n.toLowerCase()));return Object.assign(Object.assign({},e),{books:t||[]})}return e},q=(e,t,i,o,n,a)=>{var r,s,l,d;if(!e||!t)return null;let c=(null===(r=t.pick)||void 0===r?void 0:r.toLowerCase())||"";c="yes"===c?"over":c;const u=["spread","moneyline"],h=(i=>{return i?u.includes(e.market_type)?"draw"===i?"draw":i===e.home_team_abbr?"home":"away":i:(o=t.entityId||"")?e.away_sr_id===o?e.away_team_abbr:e.home_team_abbr:c||"away";var o})(c);if(!(()=>{const i=["over","under",e.home_team_abbr,e.away_team_abbr,"yes","draw"];return c&&i.includes(c.toLowerCase())||!(!t.entityId||![e.away_sr_id,e.home_sr_id].includes(t.entityId))})())return null;const g={};if(null===(s=e.books)||void 0===s||s.forEach((e=>{var t;const i=e.operator_name;null===(t=e.offers)||void 0===t||t.forEach((e=>{e.position.toLowerCase()===h.toLowerCase()&&(g[i]={line:e.line,odds:e.odds,deep_link:JSON.parse(e.deep_link)})}))})),!Object.keys(g).length)return null;let m=null===(l=t.operatorName)||void 0===l?void 0:l.toLowerCase();"mgm"===m&&(m="betmgm");const b=m||Object.entries(g).sort((([e],[t])=>e.localeCompare(t,void 0,{sensitivity:"base"}))).sort((([,e],[,t])=>t.odds-e.odds))[0][0],v=g[b];if(!v)return null;const{line:f,odds:y,deep_link:w}=v,C=`${e.league_name}@${e.away_team_abbr}@${e.home_team_abbr}@${e.start_time}`.toUpperCase(),x={leagueName:e.league_name,startTime:e.start_time,homeTeam:{abbr:e.home_team_abbr,name:e.home_team_name},awayTeam:{abbr:e.away_team_abbr,name:e.away_team_name},status:"scheduled",id:t.gameId,selectedTeamAbbr:["total","team_prop"].includes(e.market_type)?t.entityId===e.away_sr_id?e.away_team_abbr:e.home_team_abbr:""},I={type:e.market_type,id:t.marketId,name:t.marketName},k={color:t.backgroundColor,text1:"",text2:"",action:"",id:t.entityId||"",type:"draw"===h?"outcome":(null===(d=t.entityType)||void 0===d?void 0:d.toLowerCase())||("prop"===i?"player":"team")},T=Object.assign({operator:b,market:I,position:h,line:null!==o?o:f||null,odds:y,configOdds:t.odds,deepLink:w,entity:k,widgetType:a||t.type||""},null!==f?{altLine:f}:{});
1"prop"===i&&(T.entity.text1=e.first_name||"",T.entity.text2=e.last_name||"",T.entity.action=e.action_type||t.marketName);const O=h===e.home_team_abbr?"home":h===e.away_team_abbr?"away":h;return{offerId:ie.generateOfferId(e.id,O),gameKey:C,gameId:x.id||"",dataId:`${p}/${n}`,game:x,bet:T,offers:g,originalData:e}},J=(e,t="Bet this Pick",i=!0)=>{const o=document.createElement("div");Object.assign(o.style,{boxSizing:"border-box",minWidth:"114px",padding:"8px 12px",display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"8px",background:"#004ACE",border:"none",fontFamily:'"TT Norms", Helvetica, Arial, sans-serif',fontWeight:"500",fontSize:"16px",lineHeight:"120%",textAlign:"center",color:"#FFF",cursor:"pointer",transition:"background 0.2s ease-in-out"}),o.addEventListener("mouseenter",(()=>{o.style.background="#003BBE"})),o.addEventListener("mouseleave",(()=>{o.style.background="#004ACE"}));const n=document.createElement("span");if(n.innerHTML=t,o.appendChild(n),i){const t=document.createElement("span");t.innerHTML='<svg width="19" height="19" viewBox="0 0 19 19" fill="none" xmlns="http://www.w3.org/2000/svg">\n        <g clip-path="url(#clip0_3622_3329)">\n          <path d="M7.93922 11.12L6.00422 9.185C5.83922 9.02 5.62922 8.9375 5.37422 8.9375C5.11922 8.9375 4.90922 9.02 4.74422 9.185C4.57922 9.35 4.49672 9.56 4.49672 9.815C4.49672 10.07 4.57922 10.28 4.74422 10.445L7.30922 13.01C7.48922 13.19 7.69922 13.28 7.93922 13.28C8.17922 13.28 8.38922 13.19 8.56922 13.01L13.6542 7.925C13.8192 7.76 13.9017 7.55 13.9017 7.295C13.9017 7.04 13.8192 6.83 13.6542 6.665C13.4892 6.5 13.2792 6.4175 13.0242 6.4175C12.7692 6.4175 12.5592 6.5 12.3942 6.665L7.93922 11.12ZM9.19922 18.5C7.95422 18.5 6.78422 18.2638 5.68922 17.7913C4.59422 17.3188 3.64172 16.6775 2.83172 15.8675C2.02172 15.0575 1.38047 14.105 0.907969 13.01C0.435469 11.915 0.199219 10.745 0.199219 9.5C0.199219 8.255 0.435469 7.085 0.907969 5.99C1.38047 4.895 2.02172 3.9425 2.83172 3.1325C3.64172 2.3225 4.59422 1.68125 5.68922 1.20875C6.78422 0.73625 7.95422 0.5 9.19922 0.5C10.4442 0.5 11.6142 0.73625 12.7092 1.20875C13.8042 1.68125 14.7567 2.3225 15.5667 3.1325C16.3767 3.9425 17.018 4.895 17.4905 5.99C17.963 7.085 18.1992 8.255 18.1992 9.5C18.1992 10.745 17.963 11.915 17.4905 13.01C17.018 14.105 16.3767 15.0575 15.5667 15.8675C14.7567 16.6775 13.8042 17.3188 12.7092 17.7913C11.6142 18.2638 10.4442 18.5 9.19922 18.5ZM9.19922 16.7C11.2092 16.7 12.9117 16.0025 14.3067 14.6075C15.7017 13.2125 16.3992 11.51 16.3992 9.5C16.3992 7.49 15.7017 5.7875 14.3067 4.3925C12.9117 2.9975 11.2092 2.3 9.19922 2.3C7.18922 2.3 5.48672 2.9975 4.09172 4.3925C2.69672 5.7875 1.99922 7.49 1.99922 9.5C1.99922 11.51 2.69672 13.2125 4.09172 14.6075C5.48672 16.0025 7.18922 16.7 9.19922 16.7Z" fill="white"/>\n        </g>\n        <defs>\n          <clipPath id="clip0_3622_3329">\n            <rect width="18" height="18" fill="white" transform="translate(0.199219 0.5)"/>\n          </clipPath>\n        </defs>\n      </svg>',o.appendChild(t),"object"==typeof e&&Array.isArray(e)?ie.subscribe((()=>{const i=e.every((e=>ie.has(e.offerId)));i?(n.style.display="none",t.style.display="flex",o.style.opacity="1",o.style.pointerEvents="auto",o.style.background="#004ACE"):(n.style.display="block",t.style.display="none",o.style.opacity="1",o.style.pointerEvents="auto",o.style.background="#004ACE")})):ie.subscribe((()=>{ie.has(e.offerId)?(n.style.display="none",t.style.display="flex"):(n.style.display="block",t.style.display="none")}))}return o};function X(e,t,i={},o){var n,a,r,s,l,d;if(!e||!e.game||!e.bet)return{};const c=e.bet.position.toUpperCase(),p=o||(null===(n=ie.selectedOperator)||void 0===n?void 0:n.operator),u=p&&"best"!==p;let h="OVER"===c?e.game.awayTeam.abbr||"":"UNDER"===c?e.game.homeTeam.abbr||"":c;h=(null===(a=e.game)||void 0===a?void 0:a.selectedTeamAbbr)||h;const g=e.game.leagueName||"",m=u?p:O(e.bet.operator.toLowerCase()),b=u?null===(r=e.offers[p])||void 0===r?void 0:r.odds:e.bet.odds,v=u?null===(s=e.offers[p])||void 0===s?void 0:s.line:e.bet.line,f=b||0,y=v;let w;switch(e.bet.market.type){case"spread":w=`${c}_${v}`;break;case"total":case"team_prop":w=`${c.toLowerCase()}_${v}`;break;case"moneyline":w=`${c}_to_win`;break;default:w=`${e.bet.entity.text1.toLowerCase()}_${e.bet.entity.text2.toLowerCase()}_${c.toLowerCase()}_${v}`}const C={betKey:w,league:g,gameId:e.game.id||e.gameId||""};return t===M.SG_ADD?Object.assign(Object.assign(Object.assign(Object.assign({},C),{betType:e.bet.market.type,operatorName:m,odds:f,line:y}),"prop"===e.bet.market.type?{selectedPlayer:`${null===(l=e.bet.entity)||void 0===l?void 0:l.text1} ${null===(d=e.bet.entity)||void 0===d?void 0:d.text2}`}:{selectedTeam:h}),i):Object.assign(Object.assign(Object.assign({},C),{betActionType:e.bet.market.type,betEntityName:h}),i)}var ee=function(e,t){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(i[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(i[o[n]]=e[o[n]])}return i};class te{constructor(){this.storageName="betslip",this.betslip=[],this.id="",this.subscribers=new Set,this.maxSizeSubs=new Set,this.isMaxSizeReached=!1,this._instanceId=k(),this._selectedOperator=null,n.getItem("legal")||this.clearStorage(),this.betslip=this.readStorage();const e=()=>{this.betslip=this.readStorage();for(const e of this.subscribers)e(this.betslip)};window.addEventListener("focus",e),document.addEventListener("visibilitychange",(()=>{document.hidden||e()}))}get instanceId(){return this._instanceId}get selectedOperator(){return this._selectedOperator}set selectedOperator(e){this._selectedOperator=e;for(const e of this.subscribers)e(this.betslip)}get betslipType(){const e=[...new Set(this.betslip.map((e=>e.gameKey)))];return 0===e.length?"":1===this.betslip.length?"one bet":e.length===this.betslip.length?"parlay":"straight"}getOperators(){var e;const t=[];for(const i of this.betslip){const o=i.offers,{best:n}=o,a=ee(o,["best"]);for(const[o,n]of Object.entries(a)){let a=t.find((e=>e.operator===o));a||(a={operator:o,bets:[],odds:0,deepLink:""},t.push(a)),a.bets.push(Object.assign(Object.assign({},i.bet),{offerId:i.offerId,line:null!==(e=n.line)&&void 0!==e?e:0,odds:n.odds,deepLink:n.deep_link})),a.deepLink=I.getClickoutUrl({op:o,clickoutElement:"betslip",dl:a.bets.map((e=>e.deepLink))},this._instanceId),a.odds=C(...a.bets.map((e=>e.altOdds||e.odds)))}}return t.sort(((e,t)=>e.operator.localeCompare(t.operator,void 0,{sensitivity:"base"}))).sort(((e,t)=>e.odds<t.odds?1:e.odds>t.odds?-1:0)).sort(((e,t)=>t.bets.length-e.bets.length))}has(e){return this.betslip.some((t=>t.offerId===e))}get(e){const t=this.removeExpiredBets(this.betslip);if(!e)return t;if("string"==typeof e)return t.find((t=>t.offerId===e));const i=Array.isArray(e)?e:[e];return t.filter((e=>i.includes(e.offerId)))}add(e,t){if((new Date).getTime()>=new Date(e.game.startTime).getTime())return void e.offerId;const[i,o]=e.offerId.split("@"),n=this.betslip.filter((e=>
1{const[t,o]=e.offerId.split("@");return!(t===i)}));if([e,...n].length>6)return void(this.isMaxSizeReached||this.showMaxSizeNotify());const a=n.length;this.betslip=[e,...n],this.writeStorage(this.betslip);for(const t of this.subscribers)t(this.betslip,"add",e);R((()=>{if(t&&0===a){const e=O(t),i=ie.getOperators().filter((e=>e.bets.length>0)),o=i.find((t=>t.operator.toLowerCase()===(null==e?void 0:e.toLowerCase())));o&&(this.selectedOperator=o)}})),this.isMaxSizeReached&&this.hideMaxSizeNotify()}update(e){const t=this.betslip.findIndex((t=>t.offerId===e.offerId));if(-1===t)return void e.dataId;const i=this.betslip;this.betslip=this.removeExpiredBets([...this.betslip.slice(0,t),e,...this.betslip.slice(t+1)]),this.writeStorage(this.betslip),i.filter((e=>!this.betslip.some((t=>t.offerId===e.offerId)))).forEach((e=>{z.dispatchBetslipWidgetAction(M.INVALID_ITEM,this.instanceId,{bets:[e],status:"expired"})}));for(const t of this.subscribers)t(this.betslip,"update",e)}updateByDataId(e,t){const i=this.get().filter((t=>t.dataId===e));i.forEach((e=>{var i,o,n,a;if(JSON.stringify(e.originalData)!==JSON.stringify(t)){let r=Object.assign({},e);const s=L(e.dataId).widget;if(s===N.SIX_PACK){const i=e.bet,o=t.game_odds[i.operator][i.market.type][i.position],{line:n,odds:a}=i,{line:s,odds:l,deep_link:d}=o;let c=Object.assign(Object.assign({},i),{deepLink:d});(null!=s?s:0)!==(null!=n?n:0)?c=Object.assign(Object.assign({},c),{altLine:s,odds:l}):delete c.altLine,r=Object.assign(Object.assign({},e),{bet:c,originalData:t});const p=t.game_odds,{best:u}=p,h=ee(p,["best"]);r.offers=Object.entries(h).reduce(((e,t)=>{var o;const[n,a]=t;if(!a)return e;const r=a[i.market.type];return r&&r[i.position]?Object.assign(Object.assign({},e),{[n]:Object.assign(Object.assign({},r[i.position]),{line:null!==(o=r[i.position].line)&&void 0!==o?o:0})}):e}),{}),r.game.startTime=t.meta.start_time}else if(s===p){const s=Z(t,t.league_name,e.bet.widgetType||""),l={};null===(i=s.books)||void 0===i||i.forEach((t=>{var i;const o=t.operator_name;l[o]||(l[o]={}),null===(i=t.offers)||void 0===i||i.forEach((t=>{t.position===e.bet.position&&(l[o]={line:t.line,odds:t.odds,deep_link:JSON.parse(t.deep_link)})}))})),r.offers=l,r.game.startTime=t.start_time,r.bet.altLine=null!==(n=null===(o=l[e.bet.operator])||void 0===o?void 0:o.line)&&void 0!==n?n:0,r.bet.odds=(null===(a=l[e.bet.operator])||void 0===a?void 0:a.odds)||r.bet.odds}this.update(r)}}))}remove(e){if(!e)return;const t=(Array.isArray(e),this.get(e));this.betslip=Array.isArray(e)?this.betslip.filter((t=>!e.includes(t.offerId))):this.betslip.filter((t=>e!==t.offerId)),this.writeStorage(this.betslip),this.isMaxSizeReached&&this.hideMaxSizeNotify(),0===this.betslip.length&&(this.selectedOperator=null);for(const e of this.subscribers)e(this.betslip,"remove",t)}removeAll(e=!0){const t=this.betslip;this.betslip=[],this.clearStorage(e),this.selectedOperator=null;for(const e of this.subscribers)e(this.betslip,"removeall",t)}removeByDataId(e){const t=this.get().filter((t=>t.dataId===e)).map((e=>e.offerId));this.remove(t)}get length(){return this.betslip.length}subscribe(e){return this.subscribers.add(e),e(this.betslip),()=>this.subscribers.delete(e)}maxSizeSub(e){return this.maxSizeSubs.add(e),e(this.isMaxSizeReached),()=>this.maxSizeSubs.delete(e)}readStorage(){const e=n.getItem(this.storageName);return this.id=(null==e?void 0:e.id)||"",(null==e?void 0:e.version)===te.version&&Array.isArray(null==e?void 0:e.data)?this.removeExpiredBets(e.data):[]}writeStorage(e){0===e.length?this.id="":this.id||(this.id="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})));const t=this.removeExpiredBets(e);n.setItem(this.storageName,{version:te.version,id:this.id,data:t})}clearStorage(e=!0){n.removeItem(this.storageName),e&&(this.id="")}removeExpiredBets(e){const t=(new Date).getTime();return e.filter((e=>{const i=new Date(e.game.startTime).getTime();return t<i}))}showMaxSizeNotify(){this.isMaxSizeReached=!0;for(const e of this.maxSizeSubs)e(this.isMaxSizeReached)}hideMaxSizeNotify(){this.isMaxSizeReached=!1;for(const e of this.maxSizeSubs)e(this.isMaxSizeReached)}generateOfferId(e,t){return`${e}@${t}`}}te.version="1.2.4";const ie=new te;let oe="",ne="";const ae=()=>oe,re=()=>ne,se=globalThis,le=se.ShadowRoot&&(void 0===se.ShadyCSS||se.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,de=Symbol(),ce=new WeakMap;class pe{constructor(e,t,i){if(this._$cssResult$=!0,i!==de)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(le&&void 0===e){const i=void 0!==t&&1===t.length;i&&(e=ce.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&ce.set(t,e))}return e}toString(){return this.cssText}}const ue=e=>new pe("string"==typeof e?e:e+"",void 0,de),he=(e,t)=>{if(le)e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(const i of t){const t=document.createElement("style"),o=se.litNonce;void 0!==o&&t.setAttribute("nonce",o),t.textContent=i.cssText,e.appendChild(t)}},ge=le?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return ue(t)})(e):e,{is:me,defineProperty:be,getOwnPropertyDescriptor:ve,getOwnPropertyNames:fe,getOwnPropertySymbols:ye,getPrototypeOf:we}=Object,Ce=globalThis,xe=Ce.trustedTypes,Ie=xe?xe.emptyScript:"",ke=Ce.reactiveElementPolyfillSupport,Te=(e,t)=>
vendor: 6,310 bytes, line 1
1e,Oe={toAttribute(e,t){switch(t){case Boolean:e=e?Ie:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},Ae=(e,t)=>!me(e,t),Se={attribute:!0,type:String,converter:Oe,reflect:!1,useDefault:!1,hasChanged:Ae};Symbol.metadata??=Symbol("metadata"),Ce.litPropertyMetadata??=new WeakMap;class Ee extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Se){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(e,i,t);void 0!==o&&be(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){const{get:o,set:n}=ve(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:o,set(t){const a=o?.call(this);n?.call(this,t),this.requestUpdate(e,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Se}static _$Ei(){if(this.hasOwnProperty(Te("elementProperties")))return;const e=we(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Te("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Te("properties"))){const e=this.properties,t=[...fe(e),...ye(e)];for(const i of t)this.createProperty(i,e[i])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,i]of t)this.elementProperties.set(e,i)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const i=this._$Eu(e,t);void 0!==i&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(ge(e))}else void 0!==e&&t.push(ge(e));return t}static _$Eu(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return he(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){const i=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,i);if(void 0!==o&&!0===i.reflect){const n=(void 0!==i.converter?.toAttribute?i.converter:Oe).toAttribute(t,i.type);this._$Em=e,null==n?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null}}_$AK(e,t){const i=this.constructor,o=i._$Eh.get(e);if(void 0!==o&&this._$Em!==o){const e=i.getPropertyOptions(o),n="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:Oe;this._$Em=o;const a=n.fromAttribute(t,e.type);this[o]=a??this._$Ej?.get(o)??a,this._$Em=null}}requestUpdate(e,t,i){if(void 0!==e){const o=this.constructor,n=this[e];if(i??=o.getPropertyOptions(e),!((i.hasChanged??Ae)(n,t)||i.useDefault&&i.reflect&&n===this._$Ej?.get(e)&&!this.hasAttribute(o._$Eu(e,i))))return;this.C(e,t,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:o,wrapped:n},a){i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==n||void 0!==a)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),!0===o&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,i]of e){const{wrapped:e}=i,o=this[t];!0!==e||this._$AL.has(t)||void 0===o||this.C(t,void 0,i,o)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((e=>e.hostUpdate?.())),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((e=>this._$ET(e,this[e]))),this._$EM()}updated(e){}firstUpdated(e){}}Ee.elementStyles=[],Ee.shadowRootOptions={mode:"open"},Ee[Te("elementProperties")]=new Map,Ee[Te("finalized")]=new Map,ke?.({ReactiveElement:Ee}),(Ce.reactiveElementVersions??=[]).push("2.1.1");const Ne=globalThis,Me=Ne.trustedTypes,Le=Me?Me.createPolicy("lit-html",{createHTML:e=>e}):void 0,De="$lit$",_e=`lit$${Math.random().toFixed(9).slice(2)}$`,je="?"+_e,$e=`<${je}>`,Pe=document,Ue=()=>Pe.createComment(""),ze=e=>null===e||"object"!=typeof e&&"function"!=typeof e,Re=Array.isArray,Be="[ \t\n\f\r]",We=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,He=/-->/g,Ve=/>/g,Fe=RegExp(`>|${Be}(?:([^\\s"'>=/]+)(${Be}*=${Be}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Ge=/'/g,Ye=/"/g,Ke=/^(?:script|style|textarea|title)$/i,Qe=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}
vendor: 5,765 bytes, line 1
1),Ze=Qe(1),qe=(Qe(2),Qe(3),Symbol.for("lit-noChange")),Je=Symbol.for("lit-nothing"),Xe=new WeakMap,et=Pe.createTreeWalker(Pe,129);function tt(e,t){if(!Re(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Le?Le.createHTML(t):t}const it=(e,t)=>{const i=e.length-1,o=[];let n,a=2===t?"<svg>":3===t?"<math>":"",r=We;for(let t=0;t<i;t++){const i=e[t];let s,l,d=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===We?"!--"===l[1]?r=He:void 0!==l[1]?r=Ve:void 0!==l[2]?(Ke.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=Fe):void 0!==l[3]&&(r=Fe):r===Fe?">"===l[0]?(r=n??We,d=-1):void 0===l[1]?d=-2:(d=r.lastIndex-l[2].length,s=l[1],r=void 0===l[3]?Fe:'"'===l[3]?Ye:Ge):r===Ye||r===Ge?r=Fe:r===He||r===Ve?r=We:(r=Fe,n=void 0);const p=r===Fe&&e[t+1].startsWith("/>")?" ":"";a+=r===We?i+$e:d>=0?(o.push(s),i.slice(0,d)+De+i.slice(d)+_e+p):i+_e+(-2===d?t:p)}return[tt(e,a+(e[i]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),o]};class ot{constructor({strings:e,_$litType$:t},i){let o;this.parts=[];let n=0,a=0;const r=e.length-1,s=this.parts,[l,d]=it(e,t);if(this.el=ot.createElement(l,i),et.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(o=et.nextNode())&&s.length<r;){if(1===o.nodeType){if(o.hasAttributes())for(const e of o.getAttributeNames())if(e.endsWith(De)){const t=d[a++],i=o.getAttribute(e).split(_e),r=/([.?@])?(.*)/.exec(t);s.push({type:1,index:n,name:r[2],strings:i,ctor:"."===r[1]?lt:"?"===r[1]?dt:"@"===r[1]?ct:st}),o.removeAttribute(e)}else e.startsWith(_e)&&(s.push({type:6,index:n}),o.removeAttribute(e));if(Ke.test(o.tagName)){const e=o.textContent.split(_e),t=e.length-1;if(t>0){o.textContent=Me?Me.emptyScript:"";for(let i=0;i<t;i++)o.append(e[i],Ue()),et.nextNode(),s.push({type:2,index:++n});o.append(e[t],Ue())}}}else if(8===o.nodeType)if(o.data===je)s.push({type:2,index:n});else{let e=-1;for(;-1!==(e=o.data.indexOf(_e,e+1));)s.push({type:7,index:n}),e+=_e.length-1}n++}}static createElement(e,t){const i=Pe.createElement("template");return i.innerHTML=e,i}}function nt(e,t,i=e,o){if(t===qe)return t;let n=void 0!==o?i._$Co?.[o]:i._$Cl;const a=ze(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),void 0===a?n=void 0:(n=new a(e),n._$AT(e,i,o)),void 0!==o?(i._$Co??=[])[o]=n:i._$Cl=n),void 0!==n&&(t=nt(e,n._$AS(e,t.values),n,o)),t}class at{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:i}=this._$AD,o=(e?.creationScope??Pe).importNode(t,!0);et.currentNode=o;let n=et.nextNode(),a=0,r=0,s=i[0];for(;void 0!==s;){if(a===s.index){let t;2===s.type?t=new rt(n,n.nextSibling,this,e):1===s.type?t=new s.ctor(n,s.name,s.strings,this,e):6===s.type&&(t=new pt(n,this,e)),this._$AV.push(t),s=i[++r]}a!==s?.index&&(n=et.nextNode(),a++)}return et.currentNode=Pe,o}p(e){let t=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class rt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,i,o){this.type=2,this._$AH=Je,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=nt(this,e,t),ze(e)?e===Je||null==e||""===e?(this._$AH!==Je&&this._$AR(),this._$AH=Je):e!==this._$AH&&e!==qe&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>Re(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Je&&ze(this._$AH)?this._$AA.nextSibling.data=e:this.T(Pe.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:i}=e,o="number"==typeof i?this._$AC(e):(void 0===i.el&&(i.el=ot.createElement(tt(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(t);else{const e=new at(o,this),i=e.u(this.options);e.p(t),this.T(i),this._$AH=e}}_$AC(e){let t=Xe.get(e.strings);return void 0===t&&Xe.set(e.strings,t=new ot(e)),t}k(e){Re(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,o=0;for(const n of e)o===t.length?t.push(i=new rt(this.O(Ue()),this.O(Ue()),this,this.options)):i=t[o],i._$AI(n),o++;o<t.length&&(this._$AR(i&&i._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class st{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,o,n){this.type=1,this._$AH=Je,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Je}_$AI(e,t=this,i,o){const n=this.strings;let a=!1;if(void 0===n)e=nt(this,e,t,0),a=!ze(e)||e!==this._$AH&&e!==qe,a&&(this._$AH=e);else{const o=e;let r,s;for(e=n[0],r=0;r<n.length-1;r++)s=nt(this,o[i+r],t,r),s===qe&&(s=this._$AH[r]),a||=!ze(s)||s!==this._$AH[r],s===Je?e=Je:e!==Je&&(e+=(s??"")+n[r+1]),this._$AH[r]=s}a&&!o&&this.j(e)}j(e){e===Je?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class lt extends st{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Je?void 0:e}}class dt extends st{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Je)}}class ct extends st{constructor(e,t,i,o,n){super(e,t,i,o,n),this.type=5}
1_$AI(e,t=this){if((e=nt(this,e,t,0)??Je)===qe)return;const i=this._$AH,o=e===Je&&i!==Je||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==Je&&(i===Je||o);o&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class pt{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){nt(this,e)}}const ut=Ne.litHtmlPolyfillSupport;ut?.(ot,rt),(Ne.litHtmlVersions??=[]).push("3.3.1");const ht=globalThis;class gt extends Ee{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,i)=>{const o=i?.renderBefore??t;let n=o._$litPart$;if(void 0===n){const e=i?.renderBefore??null;o._$litPart$=n=new rt(t.insertBefore(Ue(),e),e,void 0,i??{})}return n._$AI(e),n})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return qe}}gt._$litElement$=!0,gt.finalized=!0,ht.litElementHydrateSupport?.({LitElement:gt});const mt=ht.litElementPolyfillSupport;mt?.({LitElement:gt}),(ht.litElementVersions??=[]).push("4.2.1");class bt extends gt{static register(){const e=this.tagName;if(!e)throw new Error("Missing static tagName");this.components.length&&this.components.forEach((e=>e.register())),customElements.get(e)||customElements.define(e,this)}}bt.components=[];class vt extends HTMLElement{static register(){const e=this.tagName;if(!e)throw new Error("Missing static tagName");this.components.length&&this.components.forEach((e=>e.register())),customElements.get(e)||customElements.define(e,this)}}vt.components=[];const ft={attribute:!0,type:String,converter:Oe,reflect:!1,hasChanged:Ae},yt=(e=ft,t,i)=>{const{kind:o,metadata:n}=i;let a=globalThis.litPropertyMetadata.get(n);if(void 0===a&&globalThis.litPropertyMetadata.set(n,a=new Map),"setter"===o&&((e=Object.create(e)).wrapped=!0),a.set(i.name,e),"accessor"===o){const{name:o}=i;return{set(i){const n=t.get.call(this);t.set.call(this,i),this.requestUpdate(o,n,e)},init(t){return void 0!==t&&this.C(o,void 0,e,t),t}}}if("setter"===o){const{name:o}=i;return function(i){const n=this[o];t.call(this,i),this.requestUpdate(o,n,e)}}throw Error("Unsupported decorator location: "+o)};function wt(e){return(t,i)=>"object"==typeof i?yt(e,t,i):((e,t,i)=>{const o=t.hasOwnProperty(i);return t.constructor.createProperty(i,e),o?Object.getOwnPropertyDescriptor(t,i):void 0})(e,t,i)}function Ct(e){return wt({...e,state:!0,attribute:!1})}const xt=(e,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,i),i);function It(e,t){return(i,o,n)=>{const a=t=>t.renderRoot?.querySelector(e)??null;if(t){const{get:e,set:t}="object"==typeof o?i:n??(()=>{const e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return xt(i,o,{get(){let i=e.call(this);return void 0===i&&(i=a(this),(null!==i||this.hasUpdated)&&t.call(this,i)),i}})}return xt(i,o,{get(){return a(this)}})}}const kt=e=>(...t)=>({_$litDirective$:e,values:t});class Tt{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const Ot=kt(class extends Tt{constructor(e){if(super(e),1!==e.type||"class"!==e.name||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){if(void 0===this.st){this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!this.nt?.has(e)&&this.st.add(e);return this.render(t)}const i=e.element.classList;for(const e of this.st)e in t||(i.remove(e),this.st.delete(e));for(const e in t){const o=!!t[e];o===this.st.has(e)||this.nt?.has(e)||(o?(i.add(e),this.st.add(e)):(i.remove(e),this.st.delete(e)))}return qe}});var At=function(e,t,i,o){var n,a=arguments.length,r=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(a<3?n(r):a>3?n(t,i,r):n(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class St extends bt{disconnectedCallback(){clearTimeout(this.blinkTimer)}render(){var e,t,i,o,n,a;return this.props?(this.highlight&&(this.blinkTimer=setTimeout((()=>{this.highlight=!1}),1e3)),Ze`
2      <div
3        id="root"
4        target="_blank"
5        class=${Ot({highlight:this.highlight})}
6        ?disabled=${this.disabled}
7        ?aria-disabled=${this.disabled}
8        tabindex=${this.disabled?"-1":"0"}
9        ?selected=${this.selected}
10      >
11        ${(null===(e=this.props)||void 0===e?void 0:e.line)?Ze`<div class="text">${null===(t=this.props)||void 0===t?void 0:t.line}</div>`:Je}
12        ${(null===(i=this.props)||void 0===i?void 0:i.odds)?Ze`<div class="text">${null===(o=this.props)||void 0===o?void 0:o.odds}</div>`:Je}
13        ${this.selected?Ze`<div class="selected-mark"></div>`:(null===(n=this.props)||void 0===n?void 0:n.isShowOperatorIcon)&&(null===(a=this.props)||void 0===a?void 0:a.operatorIcon)?Ze`<div
14                class="icon icon-operator"
15                style="background-image: url(${this.props.operatorIcon})"
16              ></div>`:Je}
17      </div>
18    `):Je}}St.tagName="sg-button-odds",St.styles=[ue(':host{display:inline-flex;vertical-align:top;position:relative;box-sizing:border-box}:host>*{box-sizing:border-box}:host([selected]) #root{border-color:#004ace}:host(.compact[selected]) #root .text{display:none}:host([disabled]) #root,:host([disabled]:hover) #root{cursor:not-allowed;pointer-events:none;border-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0)}
18:host(:hover) #root{background-color:#f5f8ff;border-color:#004ace}:host(.compact[selected]:hover) #root::before{content:""}:host([selected]:hover) #root::before{content:"Remove";position:absolute;top:1px;left:1px;right:1px;bottom:1px;background-color:#f5f8ff;display:flex;align-items:center;justify-content:center;border-radius:inherit}:host([selected]:hover) #root .selected-mark{background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTUuNCA5LjlIMTIuNkMxMi44NTUgOS45IDEzLjA2ODggOS44MTM3NSAxMy4yNDEzIDkuNjQxMjVDMTMuNDEzOCA5LjQ2ODc1IDEzLjUgOS4yNTUgMTMuNSA5QzEzLjUgOC43NDUgMTMuNDEzOCA4LjUzMTI1IDEzLjI0MTMgOC4zNTg3NUMxMy4wNjg4IDguMTg2MjUgMTIuODU1IDguMSAxMi42IDguMUg1LjRDNS4xNDUgOC4xIDQuOTMxMjUgOC4xODYyNSA0Ljc1ODc1IDguMzU4NzVDNC41ODYyNSA4LjUzMTI1IDQuNSA4Ljc0NSA0LjUgOUM0LjUgOS4yNTUgNC41ODYyNSA5LjQ2ODc1IDQuNzU4NzUgOS42NDEyNUM0LjkzMTI1IDkuODEzNzUgNS4xNDUgOS45IDUuNCA5LjlaTTkgMThDNy43NTUgMTggNi41ODUgMTcuNzYzOCA1LjQ5IDE3LjI5MTNDNC4zOTUgMTYuODE4OCAzLjQ0MjUgMTYuMTc3NSAyLjYzMjUgMTUuMzY3NUMxLjgyMjUgMTQuNTU3NSAxLjE4MTI1IDEzLjYwNSAwLjcwODc1IDEyLjUxQzAuMjM2MjUgMTEuNDE1IDAgMTAuMjQ1IDAgOUMwIDcuNzU1IDAuMjM2MjUgNi41ODUgMC43MDg3NSA1LjQ5QzEuMTgxMjUgNC4zOTUgMS44MjI1IDMuNDQyNSAyLjYzMjUgMi42MzI1QzMuNDQyNSAxLjgyMjUgNC4zOTUgMS4xODEyNSA1LjQ5IDAuNzA4NzVDNi41ODUgMC4yMzYyNSA3Ljc1NSAwIDkgMEMxMC4yNDUgMCAxMS40MTUgMC4yMzYyNSAxMi41MSAwLjcwODc1QzEzLjYwNSAxLjE4MTI1IDE0LjU1NzUgMS44MjI1IDE1LjM2NzUgMi42MzI1QzE2LjE3NzUgMy40NDI1IDE2LjgxODggNC4zOTUgMTcuMjkxMyA1LjQ5QzE3Ljc2MzggNi41ODUgMTggNy43NTUgMTggOUMxOCAxMC4yNDUgMTcuNzYzOCAxMS40MTUgMTcuMjkxMyAxMi41MUMxNi44MTg4IDEzLjYwNSAxNi4xNzc1IDE0LjU1NzUgMTUuMzY3NSAxNS4zNjc1QzE0LjU1NzUgMTYuMTc3NSAxMy42MDUgMTYuODE4OCAxMi41MSAxNy4yOTEzQzExLjQxNSAxNy43NjM4IDEwLjI0NSAxOCA5IDE4Wk05IDE2LjJDMTEuMDEgMTYuMiAxMi43MTI1IDE1LjUwMjUgMTQuMTA3NSAxNC4xMDc1QzE1LjUwMjUgMTIuNzEyNSAxNi4yIDExLjAxIDE2LjIgOUMxNi4yIDYuOTkgMTUuNTAyNSA1LjI4NzUgMTQuMTA3NSAzLjg5MjVDMTIuNzEyNSAyLjQ5NzUgMTEuMDEgMS44IDkgMS44QzYuOTkgMS44IDUuMjg3NSAyLjQ5NzUgMy44OTI1IDMuODkyNUMyLjQ5NzUgNS4yODc1IDEuOCA2Ljk5IDEuOCA5QzEuOCAxMS4wMSAyLjQ5NzUgMTIuNzEyNSAzLjg5MjUgMTQuMTA3NUM1LjI4NzUgMTUuNTAyNSA2Ljk5IDE2LjIgOSAxNi4yWiIgZmlsbD0iIzAwNEFDRSIvPgo8L3N2Zz4K")}#root{display:flex;flex:1;gap:6px;align-items:center;justify-content:center;max-width:100%;color:var(--text-color-primary, #181818);text-decoration:none;border:1px solid #dcdcdc;background-color:#fff;border-radius:8px;padding:15px 30px;font-size:16px;line-height:1;cursor:pointer}#root .text{white-space:nowrap}#root .text:nth-child(1){font-weight:700}#root .text:nth-child(2){font-size:14px;font-weight:500}#root.highlight{animation:highlight 1s linear}@keyframes highlight{0%{border-color:#dcdcdc}20%{border-color:#ebaa17}80%{border-color:#ebaa17}100%{border-color:#dcdcdc}}.icon{position:absolute;top:50%;right:8px;margin-top:-10px;width:20px;height:20px;min-width:20px;min-height:20px;border-radius:4px;background:no-repeat center/contain}.selected-mark{position:absolute;top:50%;right:9px;margin-top:-9px;width:18px;height:18px;background:no-repeat center/contain;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgICAgICAgICAgICA8cGF0aCBkPSJNNy43NCAxMC42Mkw1LjgwNSA4LjY4NUM1LjY0IDguNTIgNS40MyA4LjQzNzUgNS4xNzUgOC40Mzc1QzQuOTIgOC40Mzc1IDQuNzEgOC41MiA0LjU0NSA4LjY4NUM0LjM4IDguODUgNC4yOTc1IDkuMDYgNC4yOTc1IDkuMzE1QzQuMjk3NSA5LjU3IDQuMzggOS43OCA0LjU0NSA5Ljk0NUw3LjExIDEyLjUxQzcuMjkgMTIuNjkgNy41IDEyLjc4IDcuNzQgMTIuNzhDNy45OCAxMi43OCA4LjE5IDEyLjY5IDguMzcgMTIuNTFMMTMuNDU1IDcuNDI1QzEzLjYyIDcuMjYgMTMuNzAyNSA3LjA1IDEzLjcwMjUgNi43OTVDMTMuNzAyNSA2LjU0IDEzLjYyIDYuMzMgMTMuNDU1IDYuMTY1QzEzLjI5IDYgMTMuMDggNS45MTc1IDEyLjgyNSA1LjkxNzVDMTIuNTcgNS45MTc1IDEyLjM2IDYgMTIuMTk1IDYuMTY1TDcuNzQgMTAuNjJaTTkgMThDNy43NTUgMTggNi41ODUgMTcuNzYzOCA1LjQ5IDE3LjI5MTNDNC4zOTUgMTYuODE4OCAzLjQ0MjUgMTYuMTc3NSAyLjYzMjUgMTUuMzY3NUMxLjgyMjUgMTQuNTU3NSAxLjE4MTI1IDEzLjYwNSAwLjcwODc1IDEyLjUxQzAuMjM2MjUgMTEuNDE1IDAgMTAuMjQ1IDAgOUMwIDcuNzU1IDAuMjM2MjUgNi41ODUgMC43MDg3NSA1LjQ5QzEuMTgxMjUgNC4zOTUgMS44MjI1IDMuNDQyNSAyLjYzMjUgMi42MzI1QzMuNDQyNSAxLjgyMjUgNC4zOTUgMS4xODEyNSA1LjQ5IDAuNzA4NzVDNi41ODUgMC4y
18MzYyNSA3Ljc1NSAwIDkgMEMxMC4yNDUgMCAxMS40MTUgMC4yMzYyNSAxMi41MSAwLjcwODc1QzEzLjYwNSAxLjE4MTI1IDE0LjU1NzUgMS44MjI1IDE1LjM2NzUgMi42MzI1QzE2LjE3NzUgMy40NDI1IDE2LjgxODggNC4zOTUgMTcuMjkxMyA1LjQ5QzE3Ljc2MzggNi41ODUgMTggNy43NTUgMTggOUMxOCAxMC4yNDUgMTcuNzYzOCAxMS40MTUgMTcuMjkxMyAxMi41MUMxNi44MTg4IDEzLjYwNSAxNi4xNzc1IDE0LjU1NzUgMTUuMzY3NSAxNS4zNjc1QzE0LjU1NzUgMTYuMTc3NSAxMy42MDUgMTYuODE4OCAxMi41MSAxNy4yOTEzQzExLjQxNSAxNy43NjM4IDEwLjI0NSAxOCA5IDE4WiIgZmlsbD0iIzAwNEFDRSIvPgogICAgICAgICAgICA8L3N2Zz4=")}:host(.compact) #root{padding:5px;font-size:14px;flex-direction:column}:host(.compact) #root .text:nth-child(2){font-size:12px}:host(.compact) #root .icon{right:4px;bottom:4px;top:auto;margin-top:0;width:14px;height:14px;min-width:14px;min-height:14px}:host(.compact) #root .selected-mark{left:50%;margin-left:-9px}')],At([wt({type:String,attribute:"disabled",reflect:!0})],St.prototype,"disabled",void 0),At([wt({type:String,attribute:"selected",reflect:!0})],St.prototype,"selected",void 0),At([wt({type:String,attribute:"data-props",converter:e=>{if(e)try{return JSON.parse(e)}catch(e){return null}return null}})],St.prototype,"props",void 0),At([wt({type:Boolean,attribute:"highlight",reflect:!0})],St.prototype,"highlight",void 0);class Et extends bt{render(){return Ze`
19      <svg
20        width="20"
21        height="20"
22        viewBox="0 0 20 20"
23        fill="none"
24        xmlns="http://www.w3.org/2000/svg"
25      >
26        <path
27          d="M10.0117 15.8334C9.7728 15.8334 9.54885 15.7963 9.33983 15.7223C9.1308 15.6482 8.93671 15.5223 8.75755 15.3445L0.471276 7.12296C0.142811 6.79706 -0.0139565 6.38969 0.00097371 5.90084C0.0159039 5.41199 0.187601 5.00462 0.516066 4.67872C0.844531 4.35282 1.26258 4.18987 1.7702 4.18987C2.27783 4.18987 2.69588 4.35282 3.02434 4.67872L10.0117 11.6115L17.0438 4.63428C17.3723 4.30838 17.7829 4.15284 18.2756 4.16765C18.7683 4.18247 19.1788 4.35282 19.5073 4.67872C19.8358 5.00462 20 5.4194 20 5.92306C20 6.42673 19.8358 6.84151 19.5073 7.1674L11.2658 15.3445C11.0867 15.5223 10.8926 15.6482 10.6835 15.7223C10.4745 15.7963 10.2506 15.8334 10.0117 15.8334Z"
28        />
29      </svg>
30    `}}Et.tagName="sg-icon-opener",Et.styles=[ue(":host{--size: 14px;display:inline-block;width:var(--size, 14px);height:var(--size, 14px);min-width:var(--size, 14px);min-height:var(--size, 14px)}svg{display:block;width:100%;height:100%}svg path{fill:currentColor}")];class Nt extends vt{constructor(){super(...arguments),this._value="",this._options=[],this._preset=!1,this.openedClass="is-opened",this.rootElement=null,this.valueElement=null,this.valueIconElement=null,this.optionsElement=null,this.onClick=e=>this.handleClick(e),this.onFocusOut=()=>this.handleFocusOut()}get value(){return this._value}set value(e){this._value=e,this.render()}get options(){return this._options}set options(e){this._options=e,this.render()}get preset(){return this._preset}set preset(e){this._preset=e,this.render()}connectedCallback(){this.shadowRoot||(this.init(),this.render())}disconnectedCallback(){this.rootElement.removeEventListener("click",this.onClick),this.rootElement.removeEventListener("focusout",this.onFocusOut)}init(){this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML='\n      <style>:host{display:inline-block;box-sizing:border-box}:host>*{box-sizing:border-box}:host([position=right]) #options{left:auto;right:0}:host(.compact) #options{padding:4px 0}:host(.compact) #options .option{border-width:3px 4px 4px}:host(.compact) #options .icon{display:none}:host([preset]) #opener{cursor:default}:host([preset]) #opener sg-icon-opener{display:none}#root{position:relative;z-index:2}#root.is-opened sg-icon-opener{transform:rotate(180deg)}#root.is-opened #options{visibility:visible}#opener{cursor:pointer;user-select:none;border:1px solid #dcdcdc;border-radius:8px;background-color:#fff;padding:8px 12px;min-height:17px;display:flex;align-items:center}#value{white-space:nowrap;max-width:100%;width:100%;overflow:hidden;text-overflow:ellipsis;padding-left:4px;padding-right:8px;line-height:1.3;font-size:14px}#icon-value{display:none;width:18px;height:18px;min-width:18px;background-position:center;background-size:contain;background-repeat:no-repeat}#options{position:absolute;top:100%;left:0;min-width:100%;overflow-x:hidden;overflow-y:auto;padding:7px 0 5px;max-height:var(--options-max-height, 400px);border-radius:8px;background-color:#fff;box-shadow:0px 2px 8px rgba(0,0,0,.1);visibility:hidden}#options .option{cursor:pointer;user-select:none;padding:4px 4px 4px 14px;border:4px solid #fff;border-radius:8px;display:flex;align-items:center;gap:8px;font-size:14px;line-height:20px}#options .option.selected,#options .option:hover{background-color:#f5f8ff;color:#0036b5}#options .option .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#options .icon{width:20px;height:20px;background-position:center;background-size:contain;background-repeat:no-repeat}</style>\n      <div id="root" tabindex="0">\n        <div id="opener">\n          <div id="icon-value"></div>\n          <div id="value">&nbsp;</div>\n          <sg-icon-opener size="14"></sg-icon-opener>\n        </div>\n        <div id="options"></div>\n      </div>\n    ',this.rootElement=this.shadowRoot.getElementById("root"),this.valueElement=this.shadowRoot.getElementById("value"),this.valueIconElement=this.shadowRoot.getElementById("icon-value"),this.optionsElement=this.shadowRoot.getElementById("options"),this.preset?this.shadowRoot.host.setAttribute("preset",""):this.shadowRoot.host.removeAttribute("preset"),this.rootElement.addEventListener("click",this.onClick),this.rootElement.addEventListener("focusout",this.onFocusOut)}render(){this.renderLabel(),this.renderOptions()}renderLabel(){var e,t,i;this.preset?this.shadowRoot.host.setAttribute("preset",""):this.shadowRoot.host.removeAttribute("preset");const o=this.options.find((e=>e.value===this.value));if(this.value){const e=null==o?void 0:o.label;this.valueElement.textContent=e||" "}else this.valueElement.textContent=(null===(e=this.options[0])||void 0===e?void 0:e.label)||" ";null===(t=this.optionsElement.querySelector(".selected"))||void 0===t||t.classList.remove("selected"),null===(i=this.optionsElement.querySelector(`[data-value="${this.value}"]`))||void 0===i||i.classList.add("selected"),(null==o?void 0:o.valueIcon)?(this.valueIconElement.style.backgroundImage=`url(${null==o?void 0:o.valueIcon})`,this.valueIconElement.style.display="block"):(this.valueIconElement.style.backgroundImage="",this.valueIconElement.style.display="")}renderOptions(){this.optionsElement.innerHTML=this.options.map((e=>`\n          <div class="option ${this.value===e.value?" selected":""}" data-value="${e.value}">\n            ${e.optionIcon?`<div class="icon" style="background-image:url(${e.optionIcon})"></div>`:""}\n            <div class="label">${e.label}</div>\n          </div>\n        `)).join("")}handleClick(e){var t;if(this.preset)return;const i=e.target;let o;if(o=i.closest("#opener"))this.toggle();else if(o=i.closest(".option")){e.preventDefault(),e.stopPropagation();const i=(null===(t=o.dataset)||void 0===t?void 0:t.value)||"";this.close(),this.value!==i&&(this.value=i,this.dispatchEvent(new CustomEvent("change",{detail:{value:i},bubbles:!0,composed:!1})))}}handleFocusOut(){this.close()}toggle(){this.rootElement.classList.contains(this.openedClass)?this.close():this.open()}open(){this.rootElement.classList.add(this.openedClass)}close(){this.rootElement.classList.remove(this.openedClass)}get isOpened(){return this.rootElement.classList.contains(this.openedClass)}}function Mt(e,t="long"){const i=new Date(e);if(Number.isNaN(i.getTime()))throw new Error("Invalid date string");const o="en-US";if("long"===t||"short"===t){const e=new Intl.DateTimeFormat(o,{weekday:t,hour:"numeric",minute:"2-digit",hour12:!0}).formatToParts(i),n=Object.fromEntries(e.filter((e=>"literal"!==e.type)).map((e=>[e.type,e.value])));return`${n.weekday} ${n.hour}:${n.minute}${n.dayPeriod.toLowerCase()}`}const n=new Intl.DateTimeFormat(o,{weekday:"short",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}).formatToParts(i),a=Object.fromEntries(n.filter((e=>"literal"!==e.type)).map((e=>[e.type,e.value])));return`${a.weekday} ${a.month} ${a.day}, ${a.hour}:${a.minute}${a.dayPeriod.toLowerCase()}`}Nt.tagName="sg-dropdown",Nt.components=[Et];const Lt=e=>{if("string"==typeof e&&!e.trim())return"";const t=Number(e);return t!=t?`${e}`:t>0?`+${t}`:`${t}`},Dt='.exclusive-operator-wrapper[data-operator=fanduel]{border-radius:16px;border:1px solid #1493ff;background:linear-gradient(270deg, rgba(0, 0, 0, 0) 0.7%, rgba(0, 0, 0, 0.3) 99.3%),#1493ff;box-shadow:0 2px 8px 0 rgba(0,0,0,.1)}.exclusive-operator-wrapper[data-operator=fanduel] .exclusive-operator-label{display:flex;align-items:center;gap:8px;padding:12px 16px;min-height:51px}.exclusive-operator-wrapper[data-operator=fanduel] .exclusive-operator-label .logo{height:28px}.exclusive-operator-wrapper[data-operator=fanduel] .exclusive-operator-label .logo svg{display:block;width:auto;height:100%}.exclusive-operator-wrapper[data-operator=fanduel] .exclusive-operator-label .text{color:#fff;font:700 18px/21px "TT Norms",Helvetica,Arial,sans-serif;letter-spacing:.9px;text-transform:uppercase}.exclusive-operator-wrapper[data-operator=fanduel] .exclusive-operator-label .text::before{content:"";background:hsla(0,0%,100%,.3);width:1px;height:21px;
30display:inline-block;vertical-align:top;margin:0 12px 0 3px}.exclusive-operator-wrapper[data-operator=fanduel] .main{background:#fff;border-radius:0 0 15px 15px;padding:12px 15px 12px}.exclusive-operator-wrapper[data-operator=fanduel] .main .header{margin-bottom:5px}@container (max-width: 580px){.exclusive-operator-wrapper[data-operator=fanduel]{border-radius:8px}.exclusive-operator-wrapper[data-operator=fanduel] .main{border-radius:0 0 7px 7px;padding:20px 12px 12px}.exclusive-operator-wrapper[data-operator=fanduel] .exclusive-operator-label{padding:9px 16px;min-height:43px}.exclusive-operator-wrapper[data-operator=fanduel] .exclusive-operator-label .logo{height:24px}.exclusive-operator-wrapper[data-operator=fanduel] .exclusive-operator-label .text{font-size:12px}}',_t=()=>"1"===new URL(window.location.href).searchParams.get("sg_debug");var jt=function(e,t,i,o){return new(i||(i=Promise))((function(n,a){function r(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,s)}l((o=o.apply(e,t||[])).next())}))};function $t(e){return!!e&&"function"==typeof e.then}function Pt(e){if(!e)return!0;const t=Object.keys(e);if(!t.length)return!0;const i=t.every((t=>{const i=e[t];if(!i)return!0;const o=Object.keys(i).every((e=>!i[e]));return o}));return i}function Ut(e){return`sg-liveOdds/${e}${_t()?"_simulator":""}`}const zt=new class{constructor(){this.cache={},this.subscribers={},this.ws=null,this.connectPromise=null,this.reconnectTimer=null,this.reconnectAttempt=0,this.activeWsGameIds=new Set,this.nullOddsGraceByGameId={},this.nullOddsCountByGameId={},this.NULL_ODDS_GRACE_MS=144e5}fetchEventData(e){return jt(this,arguments,void 0,(function*(e,t=!1){return!t&&this.cache[e]?$t(this.cache[e])?yield this.cache[e]:this.cache[e]:(this.cache[e]=new Promise(((t,i)=>jt(this,void 0,void 0,(function*(){const o=`https://sg-platform.cbssports.com/widgets/${e}.json`;let n,a;{const e=yield fetch(o,{method:"GET",headers:{"Content-Type":"application/json"}});if(null==e?void 0:e.ok)try{n=yield e.json()}catch(t){a=new Error(`The server returned invalid or incomplete JSON | ${t.message} | url: ${e.url}`)}else a=new Error(`Failed to load widget data | status: ${e.status} | url: ${e.url}`)}if(a||n||(a=new Error(`Failed to load widget data | url: ${o}`)),a){if(this.subscribers[e])for(const t of this.subscribers[e])(null==t?void 0:t.error)&&t.error(a);return i(a)}if(this.subscribers[e])for(const t of this.subscribers[e])(null==t?void 0:t.success)&&t.success(n);this.cache[e]=n,t(n)})))),yield this.cache[e])}))}subscribeWebSocket(e){return jt(this,void 0,void 0,(function*(){var t;const i=(null===(t=this.ws)||void 0===t?void 0:t.readyState)===WebSocket.OPEN;this.activeWsGameIds.add(e),yield this.ensureWsConnected(),i&&this.sendSubscribe(e)}))}unsubscribeWebSocket(e){var t,i;this.activeWsGameIds.delete(e),this.clearNullOddsGrace(e),null===(t=this.ws)||void 0===t||t.send(JSON.stringify({cmd:"unsubscribe",topic:Ut(e)})),0===this.activeWsGameIds.size&&(this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),null===(i=this.ws)||void 0===i||i.close())}ensureWsConnected(){return this.ws&&this.ws.readyState===WebSocket.OPEN?Promise.resolve():(this.connectPromise||(this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.connectPromise=new Promise((e=>{const t=new WebSocket("wss://torq.cbssports.com/torq/handler/websocket");this.ws=t,t.onopen=()=>{this.reconnectAttempt=0,this.connectPromise=null,t.send(JSON.stringify({cmd:"login",access_token:"e7e66e3f407091b2f2f7aa81d0783636ee1e886b"}))},t.onmessage=t=>{let i;try{i=JSON.parse(t.data)}catch(e){}if("ok"===(null==i?void 0:i.authorized)){for(const e of this.activeWsGameIds)this.sendSubscribe(e);e()}"setState"!==(null==i?void 0:i.eventType)&&"update"!==(null==i?void 0:i.eventType)||this.updateFromWs(i.eventType,i.topic,i.body.game_odds)},t.onclose=()=>{this.ws=null,this.connectPromise=null,this.activeWsGameIds.size>0&&this.scheduleReconnect()},t.onerror=e=>{}}))),this.connectPromise)}updateFromWs(e,t,i){const o=t.split("/").pop().replace("_simulator",""),n=Object.keys(this.cache).find((e=>e.includes(o)));
30if(n&&this.cache[n]){if("setState"===e){const e=Object.keys(i).reduce(((e,t)=>{const o=Object.assign({},i[t]);return o.moneyline||(o.moneyline=null),o.spread||(o.spread=null),o.total||(o.total=null),Object.assign(Object.assign({},e),{[t]:o})}),{}),t=Object.keys(e);for(const i of t)Pt(e[i])&&delete e[i];this.handleNullOddsSignal(o,e),this.cache[n]=Object.assign(Object.assign({},this.cache[n]),{meta:Object.assign({_$src:"ws"},this.cache[n].meta),game_odds:e})}else{const e=[...new Set([...Object.keys(this.cache[n].game_odds),...Object.keys(i)])],t=e.reduce(((e,t)=>{var o;const a=null!==(o=this.cache[n].game_odds[t])&&void 0!==o?o:{},r=i[t];if(r){const i=Array.from(new Set([...Object.keys(a),...Object.keys(r)]));return Object.assign(Object.assign({},e),{[t]:i.reduce(((e,t)=>{const i=a[t],o=r[t];return o?Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),o)}):i?Object.assign(Object.assign({},e),{[t]:i}):e}),{})})}return Object.assign(Object.assign({},e),{[t]:this.cache[n].game_odds[t]})}),{});for(const i of e)Pt(t[i])&&delete t[i];this.handleNullOddsSignal(o,t),this.cache[n]=Object.assign(Object.assign({},this.cache[n]),{meta:Object.assign({},this.cache[n].meta),game_odds:t})}if(this.subscribers[n])for(const e of this.subscribers[n])(null==e?void 0:e.success)&&e.success(this.cache[n])}}subscribe(e,t,i){this.subscribers[e]||(this.subscribers[e]=new Set);const o={success:t,error:i};return this.subscribers[e].add(o),this.cache[e]&&($t(this.cache[e])?this.cache[e].then((e=>t(e))).catch((e=>null==i?void 0:i(e))):t(this.cache[e])),()=>this.unsubscribe(e,o)}unsubscribe(e,t){if(this.subscribers[e]&&(this.subscribers[e].delete(t),0===this.subscribers[e].size&&(delete this.subscribers[e],e.startsWith("six-pack/")))){const t=e.split("/").pop();t&&this.unsubscribeWebSocket(t)}}sendSubscribe(e){var t;null===(t=this.ws)||void 0===t||t.send(JSON.stringify({cmd:"subscribe",topic:Ut(e)}))}scheduleReconnect(){if(this.reconnectTimer)return;const e=Math.min(this.reconnectAttempt+1,6);this.reconnectAttempt=e;const t=Math.min(1e3*Math.pow(2,e-1),3e4);this.reconnectTimer=setTimeout((()=>{this.reconnectTimer=null,this.ensureWsConnected()}),t)}clearNullOddsGrace(e){const t=this.nullOddsGraceByGameId[e];t&&clearTimeout(t),delete this.nullOddsGraceByGameId[e],delete this.nullOddsCountByGameId[e]}handleNullOddsSignal(e,t){Object.keys(t).length>0?this.clearNullOddsGrace(e):(this.nullOddsCountByGameId[e]=(this.nullOddsCountByGameId[e]||0)+1,1!==this.nullOddsCountByGameId[e]?this.unsubscribeWebSocket(e):this.nullOddsGraceByGameId[e]=setTimeout((()=>{this.unsubscribeWebSocket(e)}),this.NULL_ODDS_GRACE_MS))}},Rt=new class{constructor(){this.DELTA_LAST_UPDATE=Math.min(1e4,c),this.isInit=!1,this.lastCheck=0,this.checkingTimeout=null,this.checkingPaths={},this.timers={},this.tick=this.tick.bind(this),this.focusHandler=this.focusHandler.bind(this),this.visibilityChangeHandler=this.visibilityChangeHandler.bind(this)}init(){this.isInit||(this.isInit=!0,window.addEventListener("focus",this.focusHandler),document.addEventListener("visibilitychange",this.visibilityChangeHandler),document.hidden||this.resume())}add(e){return this.checkingPaths[e]?this.checkingPaths[e].length+=1:(this.checkingPaths[e]={length:1,lastCheck:Date.now()},this.fetchData(e,!1)),()=>this.remove(e)}remove(e,t=!1){this.timers[e]&&(clearTimeout(this.timers[e]),delete this.timers[e]),this.checkingPaths[e]&&(t?this.checkingPaths[e].length=0:this.checkingPaths[e].length-=1,this.checkingPaths[e].length<=0&&delete this.checkingPaths[e])}fetchData(e){return function(e,t,i,o){return new(i||(i=Promise))((function(n,a){function r(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,s)}l((o=o.apply(e,t||[])).next())}))}(this,arguments,void 0,(function*(e,t=!0){try{const i=yield zt.fetchEventData(e,t);if(ie.updateByDataId(e,i),e.startsWith("six-pack/")){const t=new Date(i.meta.start_time).getTime()-Date.now();if(t<=0){if(this.remove(e,!0),"closed"!==i.meta.status){const t=e.split("/").pop();zt.subscribeWebSocket(t)}}else this.timers[e]&&clearTimeout(this.timers[e]),this.timers[e]=setTimeout((()=>{this.fetchData(e,!1)}),Math.min(t,2147483647))}}catch(t){ie.removeByDataId(e)}}))}tick(){this.lastCheck=Date.now();for(const[e,t]of Object.entries(this.checkingPaths))this.lastCheck-t.lastCheck>this.DELTA_LAST_UPDATE&&(t.lastCheck=this.lastCheck,this.fetchData(e));this.scheduleNextCheck(c)}pause(){this.checkingTimeout&&clearInterval(this.checkingTimeout)}resume(){this.scheduleNextCheck(this.getDelayFromLastCheck())}scheduleNextCheck(e){this.checkingTimeout&&clearTimeout(this.checkingTimeout),this.checkingTimeout=setTimeout(this.tick,e)}getDelayFromLastCheck(){if(!this.lastCheck)return 0;const e=Date.now()-this.lastCheck;return Math.max(c-e,0)}focusHandler(){this.resume()}visibilityChangeHandler(){document.hidden?this.pause():this.resume()}};function Bt(e,t=300){let i,o=!0;return(...n)=>{if(o)return e(...n),void(o=!1);clearTimeout(i),i=setTimeout((()=>e(...n)),t)}}Rt.init();class Wt extends Tt{constructor(e){if(super(e),this.it=Je,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Je||null==e)return this._t=void 0,this.it=e;if(e===qe)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}Wt.directiveName="unsafeHTML",Wt.resultType=1;const Ht=kt(Wt);var Vt=function(e,t,i,o){var n,a=arguments.length,r=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(a<3?n(r):a>3?n(t,i,r):n(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Ft extends bt{constructor(){super(),this.text="",this.speed=30,this.calcSpeedDebounced=Bt((()=>this.calcSpeed()),300),this.calcSpeed=()=>{const e=this.trackEl,t=this.contentEl;if(!e||!t)return;const i=t.offsetWidth;if(e.style.width=`${i}px`,i>this.offsetWidth){const e=i/this.speed;this.style.setProperty("--speed",`${e}s`),this.classList.add("animate")}else this.classList.remove("animate")},this.resizeObserver=new ResizeObserver((e=>{this.calcSpeedDebounced()}))}connectedCallback(){super.connectedCallback(),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect()}firstUpdated(){this.calcSpeed()}updated(e){e.has("text")&&this.calcSpeed()}render(){return Ze`
31      <div class="track">
32        <div class="content">${Ht(this.text)}</div>
33        <div class="content" aria-hidden="true">${Ht(this.text)}</div>
34      </div>
35    `}}Ft.tagName="sg-marquee",Ft.styles=[ue(":host{display:block;overflow:hidden;position:relative;width:100%;-webkit-text-size-adjust:100%;--speed: 30s}:host(.animate) .track{animation:scroll-left var(--speed) linear infinite}:host(.animate) .content[aria-hidden]{display:inline-flex}.track{display:flex;white-space:nowrap;width:max-content;will-change:transform;backface-visibility:hidden;transform:translateZ(0)}:host(:hover) .track{animation-play-state:paused}.content{display:inline-flex;align-items:center;flex:0 0 auto;padding-right:.2rem}.content[aria-hidden]{display:none}.content a{color:inherit;text-decoration:underline;margin:0 4px}.content .link-text{text-decoration:underline;margin:0 4px}@keyframes scroll-left{0%{transform:translateX(0%)}100%{transform:translateX(-100%)}}")],Vt([wt({type:String})],Ft.prototype,"text",void 0),Vt([wt({type:Number})],Ft.prototype,"speed",void 0),Vt([It(".track")],Ft.prototype,"trackEl",void 0),Vt([It(".content")],Ft.prototype,"contentEl",void 0);const Gt=e=>{const t=(e,t)=>e===t?0:e>=0&&t>=0?e>t?-1:1:e<0&&t<0?Math.abs(e)<Math.abs(t)?-1:1:e>=0?-1:1,i=(e,t)=>{const i=e.localeCompare(t);return 0===i?0:i>0?-1:1},o=(e,o)=>{if(o&&e.some((e=>e.line===o)))return[...e].filter((e=>e.line===o)).sort(((e,i)=>t(e.odds,i.odds)));const n=e.reduce(((e,t)=>{var i;const o=String(null!==(i=t.line)&&void 0!==i?i:"null");return e[o]=(e[o]||0)+1,e}),{});if(1===Object.keys(n).length)return[...e].sort(((e,t)=>i(e.operator,t.operator))).sort(((e,i)=>t(e.odds,i.odds)));const a=Math.max(...Object.values(n)),r=1===Object.values(n).filter((e=>e===a)).length;return r?[...e].sort(((e,t)=>i(e.operator,t.operator))).sort(((e,i)=>t(e.odds,i.odds))).sort(((e,t)=>{var i,o;const a=String(null!==(i=e.line)&&void 0!==i?i:"null"),r=String(null!==(o=t.line)&&void 0!==o?o:"null"),s=(n[r]||0)-(n[a]||0);return 0!==s?s:0})):[...e].sort(((e,t)=>i(e.operator,t.operator))).sort(((e,i)=>t(e.odds,i.odds)))},n=(e=>{var t,i,n,a;const r=Object.entries(e).reduce(((e,[t,i])=>{var o,n,a,r,s,l,d;return{spread:{away:(null===(o=null==i?void 0:i.spread)||void 0===o?void 0:o.away)?[...e.spread.away,Object.assign({operator:t},i.spread.away)]:e.spread.away,home:(null===(n=null==i?void 0:i.spread)||void 0===n?void 0:n.home)?[...e.spread.home,Object.assign({operator:t},i.spread.home)]:e.spread.home},total:{over:(null===(a=null==i?void 0:i.total)||void 0===a?void 0:a.over)?[...e.total.over,Object.assign({operator:t},i.total.over)]:e.total.over,under:(null===(r=null==i?void 0:i.total)||void 0===r?void 0:r.under)?[...e.total.under,Object.assign({operator:t},i.total.under)]:e.total.under},moneyline:{away:(null===(s=null==i?void 0:i.moneyline)||void 0===s?void 0:s.away)?[...e.moneyline.away,Object.assign({operator:t},i.moneyline.away)]:e.moneyline.away,home:(null===(l=null==i?void 0:i.moneyline)||void 0===l?void 0:l.home)?[...e.moneyline.home,Object.assign({operator:t},i.moneyline.home)]:e.moneyline.home,draw:(null===(d=null==i?void 0:i.moneyline)||void 0===d?void 0:d.draw)?[...e.moneyline.draw,Object.assign({operator:t},i.moneyline.draw)]:e.moneyline.draw}}}),{spread:{away:[],home:[]},total:{over:[],under:[]},moneyline:{away:[],home:[],draw:[]}});r.spread.away=o(r.spread.away),r.spread.home=o(r.spread.home,(null===(t=r.spread.away[0])||void 0===t?void 0:t.line)?0-(null===(i=r.spread.away[0])||void 0===i?void 0:i.line):void 0),r.total.over=o(r.total.over),r.total.under=o(r.total.under,null!==(a=null===(n=r.total.over[0])||void 0===n?void 0:n.line)&&void 0!==a?a:void 0),r.moneyline.away=o(r.moneyline.away),r.moneyline.home=o(r.moneyline.home),r.moneyline.draw=o(r.moneyline.draw);const s={};return r.spread.away[0]&&(s.spread=Object.assign(Object.assign({},s.spread||{}),{away:r.spread.away[0]})),r.spread.home[0]&&(s.spread=Object.assign(Object.assign({},s.spread||{}),{home:r.spread.home[0]})),r.total.over[0]&&(s.total=Object.assign(Object.assign({},s.total||{}),{over:r.total.over[0]})),r.total.under[0]&&(s.total=Object.assign(Object.assign({},s.total||{}),{under:r.total.under[0]})),r.moneyline.away[0]&&(s.moneyline=Object.assign(Object.assign({},s.moneyline||{}),{away:r.moneyline.away[0]})),r.moneyline.home[0]&&(s.moneyline=Object.assign(Object.assign({},s.moneyline||{}),{home:r.moneyline.home[0]})),r.moneyline.draw[0]&&(s.moneyline=Object.assign(Object.assign({},s.moneyline||{}),{draw:r.moneyline.draw[0]})),s})(e);return n},Yt=e=>e===h.DRAFTKINGS?"GAMBLING PROBLEM? CALL 1-800-GAMBLER, (800) 327-5050 or visit gamblinghelplinema.org (MA). Call 877-8-HOPENY/text HOPENY (467369) (NY). Please Gamble Responsibly. 888-789-7777/visit ccpg.org (CT), or visit www.mdgamblinghelp.org (MD). 21+ and present in most states. (18+ DC/KY/NH
35/WY). Void in ONT. Eligibility restrictions apply. Terms: draftkings.com/sportsbook. On behalf of Boot Hill Casino & Resort (KS). Fees may apply in IL. Odds and lines subject to change. Sponsored by DK.":e===h.KALSHI||e===h.POLYMARKET?Kt(e):`${n.getItem("disclaimer")||""} (*) The “Best Odds” feature only compares odds from the sportsbooks listed in the dropdown filter. We do not necessarily feature and compare all providers available in your location.`,Kt=e=>{var t;return(null===(t=(n.getItem("legalityByOperator")||{})[e])||void 0===t?void 0:t.disclaimer)||""},Qt={betmgm:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABMCAYAAADHl1ErAAAIQUlEQVR4Ae2cTWhUVxTH74xS0ah0kZiCoCbZ6CIqFsQUhUpjRTdJVhVTKoFGN6FVurHQUG0KdeMXDZQ2C+lHpKULk42iSWhBUREsqVnETeIHCCZmUWpiUTTT+7szd7zz8j4zdz7E94chM/Pue5P7n3PO/Z9z7ryEcODCzx3vplKJJpESzUKk1ojXECkhhpOJxLB4seDorrZTd81jCf3k3JmDby5a8OJLkUodFDGykMSd+k8S19J26h9eK8Ig643k8z/ki40ixhxgcc9mF26HtCRvYFkxWd6Am8V4H88vnDm4JpV8fkfECEQiKbYnRYa5GMGYnRXNydlUKnbFkEiIRFMyjl1RkFqTFDEiISYsImLCIiImLCJiwiIiJiwiFop5Yve+bvEq4/yPHWI+mDdhoGLJIlG3ulJMPHosJqb+9R1bXblcVFctEzMzT8XY/SnP406M3ZsSM0+einJBXoRVVy4Txw63qAn19t0QfRf/Dhx76/YDcfibc65j2vduE3WrKnPeg1zGlwtpecWwcTmZts9+EtNPnon9crKtLZs9x05MPVZ/sSSAdTbv3CCOfd4izhzfJx8fuZ4HgYxhfDkg76CPK3Z0/qosobV5s1i/bqXveCyt4e1a0d21R5EMISPS6gav3BaT8lqaWBOM2d+6TZQD8nJJDdzlZM+gImGvJO3W6FyXq1jyRvZ55ye7FTG4Gi7qBAQ17dwoGreuzb63Qz6H0N5zN0QpYU1W4J6QsH7tyqzbmahbXZV9jjVhlW5kAaz1hPwCTvYM5VhcGAsuNAqiw/RqB3Gsoju2rctaCyRBRpggPnBlVFmhSdqhjxtLGs+suCRQsqAyTRQu5zUpLJDFIaxrESMhrbvrA3VNPuNDef73vZdFKZCXhWkdhpswIfN9P+BarIxurusGSOs6fT77uun9DaHPtY28CCM4f/vVHqWvorqJ0mVSLrBihgGu3Hfppc471P6eKAVKlkte+2tc9F8cVu4bNpDjxjqe4dqlWABKRljDplpRUbFIrZgVi8NZJwvFD0bs2rIpnHXaREEIQxZ4SQYTxDJWzyap+BGmYdway9RWhjYr9oppbZUEkJTWTulEHLfZK1c0/vpBuZd80Ib/RbpdkOTAlTXBxMDBy6OiWLBmYf0yIJ9VMSZNFqtn
35ddVyMSRdjsT8urQM3M+PDFa/379r981JwYC8jkbQl2EbeVvYiBKiQ2qSkEEgRlxqTWYCV3ooH3Wr/N2oPoAEPgdrhqyGTTWimMibMCanKw38834xBRKrRS6RpFTEpUlJ5Ap5nL9Xb44rydEjA7xb7UyfB2FKC0p54zXONqwG/fkE4Fo5WYI/STuALII5ZLT7VCjuGATVGHlqoZG3heFmbu4XFVwD4pplHNPE+6n5sXuPss9rHUXHQiJvwgZlgjwy+kA0ygS7XlUqcskj3kSxPHMs1+K120IxI4uWGm9Z+MLCwoqsIABr3cUEmQBVWAg80Lo1Oy4qecAr0TZ7CCuKmFfmTZjTbSBl7P5TpZNwLw0kRX0mSHsB96YQqYHVIjUgx69fUEzxmjdhS41KqoaTLDSYm7uaIE8kVer8NF2N1QXGmsyiMHB5roazFT+jIO9VsmZV7gqlA7cGk5rOxBtKNEgIc+Ic5/0tUrETvNF0KeN6X8tjumFSDrDgki8DM+6JG5lgUYBEiIAsHkCVsmUmoDXXkExvdPlm0ohPuCPnNG5dN6foWGzrAlZ0GGkQQOWbkyBu6Rh35/6jnHNwtwFJEkSjqcxal1OE9sv4pUSvR3APaiLbhBXCdJnFmdJgXfo9PyV+7ea48APnQmy9Uf8yA/2TIjZ5rRDmVWahzY9lBFUftJt6gfMfOgK82SF/6NLLLBSsEKbLLCZwuaUZEicsTAi3NV2SFVVj/F5x8kiQF2HThuUQ2M1mLW6ij0cJzqo1FyLVMdMhZ3wsJPLeW6FXLrUFwCgZ4ya6DIMFetW4TFfGShm3xaUx4gzsOjamhXLxLCxvWUFxkGDsLOTpuEVRcb2UDa2ZaoRTGrC9gMUB2aDjXUfnb3M+B8szSdOfNxKiFG4TVmIYwtMrTpl5JqShucxYRKYAWUycBgfyYr/MP90khP4SzHh59WZxf/VjhTC9GcWE6Wo9RvKMZdD0Rbmj27DQ/kvDqniIO0Jqg0s3iOPjGdczjwetsLZhrQmiG606LVpqEEaMwXr0liXIZKuTF04YjRQNzknLlOXZfRpBPYJCwGrFtden4wOZQdagdycS05ygo8S1zcWjFFufrLbZmBBlGK8VEcvp7qrKyozBTPcH+XFdqn2vXiYSQjU9pAub1lXMlEjDeiNXW9EKF+3ljHWMZesT7urX+CWhR5zSjdIo1cY664TpjXVegBhNakPIVj/jsFrTMkthXaAgWwWCJtOfqZ6GaV6wGS9dqViWufbjkm7bLNhmlMkAKwuTX7Ii6vabBu5bKusCBSNsOmC5R6j6jUFGfCHL1WYeimYrtu5ywjphTBRxGlRBMIWo2zUOtOb+yIG+QKl3UAOrsgK8k0lbgnI83O1s3w3X97EskyyE73EpScoB1glT+/RVjPKOMzsydf9bo7mkum1kKbefzlglDFdCZwUFdNr8zt8bqdxTtoucOakuT5cLrCv9MDsP3WJX2HNLjXkTNt/fG77qiH+RGxExYRERExYRMWERERMWETFhESEJS9wVMcJiOJkSqX4RIxQSicRwMjkr+kSMcHix4GhyV1v3nzKFOy1i+AKOuKerCvrPZhce4dabIoYrMrclPcJzRRj3J+U+pbGlzQWc6Hu48jrhHJC5TSkWt+H1vT9i4i6LIfGdkGUe+R8B0+1UbkRLDQAAAABJRU5ErkJggg==",draftkings:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABMCAYAAADHl1ErAAAHL0lEQVR4Ae2cT0wUVxzHfzPFGlaqjUsDiUKwhEI9gGATW/FQkkLsoQG8kWhipYeaaNKD2KPLUbRJjT30IiG1SW8FTBpNOdQDaD0IC4cGahCytokYMZbCkgLd6fu+5W1ml5lhZufPTuP7JMjuzAjsd37/39tVKIfPbh//MKVp7RpRB2laFb2axBVS4ilV6R34+M68/oQiHpwe7HhT3Zm8pGn0BUkyKIrydeqf4t6BzqGX/Dn+gVjK68lf2MNDJDEirq1FWiCaimewLJJiWXFI3bkKjUg5fft4lZJKzZFkW7SU2qKqKe0SSWyhqFqHqpEmXdE2WjtimBTMPlUqSRwhBXOIFMwhUjCHSMEcIgVzSGgEKy0uo76W76ix7AMKM6ERrL3mFBft/OEY1e6tp7ASGsGikbLM4+6GCxQp2kVhJJQxDJbWvL+NwkhoBFtMPs16XueTWzbvb6Uz9RcoX4ooJEy/mMqyqtpoPU8CsLbnqws0vThFtx7d5I/zpZsJBcFuTF2lfAmFheFFNJYdzToW2VHCxQL43pRz3imtBzr473meXKCxP0YoXwpqYQjs596Lbet+yfUV6nvQY9u68HPFDcD/mWHW21p1gj+ffjFJbiioYF0Hz1qKBWsYmR9kFvEzJTdWyC6N5Ue5+2V+DhNNWOutR9+TGwoq2DCLSWwox0qKcmYVJcwS4hlLABAJgjkFLte8r43qoumbIcRCnHQTA0FBBcMff2Pqq6xjjWXNmRdYufttXvlPLNwnp8CF22tO8hsQ2ZGu6WCpbgl9Lwm3FQI6ZZi5X+Lv2czzGZZp3RI6wZAd9UCsi+9fMRXNqo1CHBMx0gt3BKESDKIYtURCNL04uK7r4Of0JTuOPtToepQRgplFd9lREJrCFdRGza0FIkCcxNIsTwaVu6sz4iJW8RqLWRCO4Vwu0x64I8hbMNxtZCG8gNygjBfXeqAzUxbYJddSjDASQ/xOq1iHWswLXFkYUnd7Tbp1QYmAdI6s1t3Qw+90umywB6wk3+C+HdMeiQXyFgx3DKn7HJtfIf0jwKK61rcwZkEW13/E0j3iCoI8Cs06H2dgT5ZmyStcWRgEiY2e5cG3taozWyyLnq2CudUxFnOO6YKyn3gVv4AnWfKH377d4n4Tz+4ZXosYhNoqSBY9KCcEnmVJFInJjWXqejctBiwOLoqkgIIxub5MlXuq+fGgSYTFJXMZmRui5NoKHzEDkbncjmaMQDhIf2UPHkuLy6nyjepMO+RlwAee12Fjf6bjlhDNCxJLj3ljnvjrMU82dip2ZF2UKatry+QlvhSubkXD/Gv82RhNPL3PMykKVZQpKGxR30WZ1SIWws0h4Mjc4BYRkXAg2LhJLM0X5dOf2jTyCUw5RUyzA9xn+PebXAQIhGzaxEoOxMLtarRRJpB+hI3Kv25vg6txtBG+CgaEa5gBaxqZ/5FbCYBI7e+cymp9ELQxdUB8shw4MrGuP+zldZdYC/Aa33tJZE9uKQaBf3zhHvVPXuUuB3fDIq5R8z3BrhvenJTiPNzS6CbwfvNIH11+cNHTYlVPINOKfjYkRCGrB7XbN8waxOj5LZNJRS64HuJd/rXH8Dw6h/OH/du2G4hgCM5oo4Q4o2zymc/oWQ/inNkENb0Q7E8XEdg8jI+jJ0UAVsgLrETHYMAPAh0gIhYhayFwo/90u38C9ZlZYMfoyY/9GYEPEFEf4Qtu42TpzAzUaaUm+zBK2WpUwuPgX7ARtVcp3+rnFPtgYf/7HYio44IkcMHgihUGY+aVPN1zdcPbXnE7AothGOuggheBGK6E6l5kumSeTXJxUYnpudUN760vEMGM2iNYGjIlcFOTiTGOEQkfqn3fXRLCWPWSENNN+q+NNhge93oOJvBdsIo91Zbn0cqYvWg7mC27ebGPwgjfXXKXhfWgRcL4Go1yNI8lNrQ/ZtY5s+iPhRVs5Rsu06/buWMlWO5+C36MCWXm6rgRfox2gO8uabbEFdFlt9rNVsmM5n2tWzadnGGLxUZDRUxF3G6as8J3wcSG3lywmKsXAW6J3lAPilJYIrKomG/xbZ5sbtZk8o4R9Kp+WRfwfeIK+G6aI1dYb7fVIjDbGrPhQunB4Qk+PDSLWxDLzYZfOwQiGLASDcCSYEWYnYlhI99JHUl3BlajaVji9YcxzzacWBGYYCBdk5309F0ePHlM+uuGegIVTCCEw35Wq0rdjHRsm+StVRBWpacggukR+8zgduLNDPrsB3GwBQFtziJb5R5na5VPNjfVFYKC70CEhQRtJW6Q78h1iBTMIVIwh0jBHCIFc4gUzCEqW4SeJ4lNlLhKmjZMElsoRHFVS702RBJb4GNK1YFP7tyllHaNJJZoKeUaPtOVB31tYz3GvsVJYkacNopjeMAFG+i8+1JbW2uRlrYVWJb4DFc837JRi39M6b+pGDuDta9X8/MRFWWeNBpmYg3xkKXjP/YIDrWA0bQXAAAAAElFTkSuQmCC",fanduel:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABMCAYAAADHl1ErAAAF7klEQVR4Ae2cPWwcVRDHZ8+BFBEOhSNFICwnFQhHZ1HQBCRMaOIGU5EqdDEURrggDUjYEpUpILhApkFQORWmwKYggARJEQnJEbZIhS0bokhxYS64gJyzvN/tbXy+r31fe3dS3k+y7/a8vt3777yZefNmL5I6Bubil6JIXpX7Mh5HMiQPIZHIivq10tcnM7ffijbq/pYw9EX8+D935QP
351yjsSeIAynk+O3JOZjalop7LNL8Ta3ZUf41hGJNAAFnekLKOIVuAFLCuI1ZpYZGT3ETX6FNHxz+KhclnWJaDDaGFvL1EukI0amuMFzE0CeqjsoSDBd2mj/PxQQQJGBMEMCYIZEgQzJAhmSBDMkCCYIYekx3iqf//54GMiW3dFNksiwwMif/+ntkvSVTou2NHDIqefVMIoMZ49prYfFTk1kLzef7hx//NLIheKIhPF/ddWtxMReVzb3t/uBJEqGMaSI1jM2IlEnBeeOGhBWbz/cyLku89n77taFW75D5Grfylr/FdyIRfBsKCzJxOhTASqZfZ6UqzTEasZS0q4yzeTR594G5L4GER6s9h8aJnA8LqmrGTxNbFm7GTyg8+7ekvko+t+hq2zhWFNWAGPvhj/WmTujL11tmLhprtw1oLhqL8c8/+hGIqD6j3PPS25wTEQzgbrPCwPsbjyOO08xYKLln4RrH2YT7GIaORbXPlN9fjcV8nr5GFApCQN4Zj4Sp4Per5YulgLxoc8auHcccK/KCe8dicJ/whUqksB0u12SSqB5VQ10OA/EdLkHGyxFqykKRjCIsx3aqh9u94ojsvxeV9+AOs7rfK8c89kByBmDLZYC4ZlZA1Lhtj8DX8itQOrWSglkZB0pJ1oLkmttdPH52TBiXVCrHqyLJ8ZgS3Wgq3eyd6nG44ZsbL8mUseZi+YxlXymczqouP81xwszNqH6Qg2XK1C1PsMXksn5Fztz2+IN4iaWaSBwgantALRsq7o2ROJI0YkyjRYXa3lvbEkXsmyahexwGnyzcGzBJsYaR/qf3MYHvUM9mefz6rj8ZxK1MsapRM+QCuxGI4+K6gXitn7LDuWe5wEcy3U6aQmJuAX28EFch2Szosg+CdbVj0ORybsWYn0tVvijLNgLibusw6vU4GYXxFnnAWrnc+Z8qenIaljXZyjD4v2si658LsYwwfwFSF1rMvmHJvhpaa/vK5f7sHncfKuzjeF5bcs69osufnaWrxYGGLpZutpuccH5F061mVbjm6Gt1aBWc3FhYmivznmp2eyV6h8Whd47a14+4refqwIuVYyLmquVPm0LvAqmG7ExOdgHbZQmtZZ4K34S4/WBd67dyav6GX/pnX4FCyTFassGIqznq0LvAvG3JCeCB1MBUOsxXG9FSuGYh6dPrn0hzEMdKKmSUuBiVh5DMWU3BrqdKLm8LFEiKwAYCIWx3xP08JtyE0w/Nj4YnvRWKilTwExWomGg9cVKz1mngsvubZs4kOoqLYKAvgw9mFo/vB6Y4sA2yyZ6a6yc6y8OxRz73FlwtsqCFRaAPqTfXg+90qSLvD8wxeTbV0/N/m9vxlEO3LvQEzBWhCgHvwNjXMIZAsXZN7jQko7OtZFTdTCCuqh6W3J4W5N3rNTYkFH284RbXThoE/Dj5UsJuS8B2LllT60ouN9+vir0cv70RN/xVKcSeWW/6VLsdNiQVdubCCSEf5Tq2IZjg+vM6Wi6Mj/+lwPMKFrd4JsVa2EKUxadciaHeCrXl7o7s0NHYuS7Ug7C+mc/vV8Y+WWIUjpqBNpQxY9ca/RVrW3tVnlFqvC5/WCWNATFlYL1oWVpQlvt3xVK3pOMCC770Yjng49eftfr4oF4X5JQ4JghgTBDAmCGRIEMyQIZkgQzJBCFMmGBLTgq/0K92P5RgJ6REowpdqiBLTouyczhe3J6Cc1mbwkgbYow7p0eyraqDj9vbJMC1/2GmhK9WtJp3leEWxnKtopl2U0WFojWFb6Ha7V7YMc/zge2jsk03EkxYf1+xErmYMKhsqAFnFZtX/7H/89Gio3zEQcAAAAAElFTkSuQmCC",caesars:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAABMCAYAAADHl1ErAAAGjElEQVR4Ae2cT0hcRxzHf+8llrTNultaSM3BeIqkEGurhyQ0wRxaLdUk0JRG8ZBAq5cSCkoDG2jWgpZKhYYaqJ56SEwCPbRVSEkLEZVYittuFFr0UvWg9hDQ6MFqu6+/76xvWa1/9s3s+kacD6hv3JUdvzvzm9+/txatYX9paZlD8bNO3DnHwwLahVgWxfh7LCcn3jT7c2x81WPuRaisOLT8xL7mkPMhGZJYtvVFzj8sXCw2K8b4JsSatx44DhWT4X9gxeX865yGaDZ+IVaWEWtDoM3yXvsarq19x4oL7CXrTzJsiW07p217OaGcYWucuH3OtsgxWzFN+EA8axvb5YkCmwyeMIJ5xAjmESOYR4xgHjGCeWQvZYGTJaV0qrSEig4fpqOHC8XvDh08SNlkYmqK5hbmaZJ/Phodo4FolPqiQ5RprGdefcWhDFFbdYbCdXVJcebm58U/Mss/J6enKFsE9wcoGAhQiL/w2rgGeO2Wzg662d1NmSIjgmGiX0UiVFV2WojU3tVFt3q6xYT9oIhX9cmSEvqgpobyWcCb3d/TR21tYm6qKAsGse51dopJ3mCh8I7OZmBimQArLVxXL4QbHhulCl79qqLtycnLi5AC18NX6fUTJ6ilo4M+bv+SFpeWSBf+5rn8NPhQXL9TXk6FBQX0zf37pIKSYLBZV+vrxcqCWLrSzwcAVhvmC1s6PDZGsihtyd+7e0TK9nhNtTbbcCMg2B88X8zzpapKkkXaD4PrgBMJBl53sYB7GGHOp3jusigIViJ+DvwapZ0CTm7gzl0GecHYMcW79mh0lHYKwrnlORcVFpIs0p5+iJ3FielpkgFuyKE8Nc8fxhtuglcg2lGOQGSRFgxGdFLSMZ2bX6AJR82plY0cZjl8ciMBGaQFg/Hsl4zVenp7KT8vj1SQFWxyalrJ6Gcl+N4KGN3aqipSAaJnMkZMF18Eu9L2Od3if/atsjI6w18V9XUitKrk62BgPz+W8JdaGxtomDMPEMcd9w9FxXgii8H8Zvgi2L2OTnFSvclCIQ2DMbZ4Rd37HJvm0p2VQNkNmN1xXQQlVEscGvDWj1dfoO3GF8H6ognfjUt8ImeG0AWnV5DFSjw+hCJgkmF2XbDCIOoIC4Vxf9Qf/8+3LVnJqaAOTgkh29Hd+0Bss9aGBjFu5kA+lBugz3iMlYVYFWNkHjC+wisOf+MHvggGDvEp6SYaERRTyhnQ2tiYvIaAa8ewc37hm2A3bncJxzfk0SeCO9E3lPnUc7r4JhiA/UJ6yAv1EX97Z3ytGiE7i0xouiCy8MP3SsX3MtuFFcO+FXgO/DW/8V0wuBMIojeLS4VY/By/iiqpaFHIFQUKXj3rbTcYeGR0vWzdbOKr0U8FqwcGHT5XMBBIZkN0EcpFu1aBoxwy/cChz112TosK5fNW2UI7wQZSUkYjCtWdbKHNlnTB1nx35eTUMf2t3QoLsyOL7YhtiYq1bmi3wuaeJDpwkKxwMtYmkzm0EwwxJphbWBBNJLqhnWAoELvZCay0bPR4qaCdDUOOzCWsQSi0Fm0EQ5qnI9K0qlMRqy1VQB3QQjAUQJCnX6+ShOQiml4y1fIZUqhJAmkbBn9JtXot2iu5gg7vvr3r9qbPfU3UEoeSry1LLmdrVf5eyegHc3NJFqwqVIO8kbBp1Vxuk3Vq0eKAE1gWacEQtqh0wSCoVunTkgWrelghgpC2YXiHgytdyzsFrGrMuU+hRCctmFsXrK1UK/lvJ8meNgXBlFo20QKJd+wIb61MtHRnE5yOD/lgQYvpET9aNkEzuwIQzGvlxw8Q1MN8NHPhRQWlLmoYbiT54CtZFvlWvt8KiNVw8ZKITVv4TVZBuU//x8FB0ad//o1yUc7/ZWRE9MfrALbhJ5cvC7FG+M29GA4r30egLBjEwc0CB55/gd57+7wQzv39X48fkx9g6yGX9nXLp6J5Dn0YKOfN6nDrTCriRgcuh+WvuBruTVnuTVrZxL0pK5+jDzf8QbajWcebs9aCoBlHOL5CKxWg7bj9D8ApRe8Y7Gm/7rf/7QbMHbkeMYJ5xAjmESOYR4xgHjGCeQSCjZMhPSyK2RZZ35EhLSzHYsHs+LdkSIuceLxpz9LUzPhTeQef4/ExMmyIRc71+d9id4TRZ+UiiQ97NayH+FjSOEVwvQffFmdmFp898OLduGU/TWalrQIri8W6tOqDb1PZV1xcYFtWxLLp5V38+YjjOAxh3xeGYr2pD/wHG9rExYjwBv4AAAAASUVORK5CYII="},Zt='<svg\n  width="107"\n  height="28"\n  viewBox="0 0 107 28"\n  fill="none"\n  xmlns="http://www.w3.org/2000/svg"\n>\n  <path\n    d="M6.09963 10.7367C6.20554 10.6925 6.31095 10.6479 6.4162 10.6033C6.65254 10.5032 6.88803 10.4034 7.12635 10.3104C7.82927 10.0362 8.54546 9.8047 9.27715 9.61802C9.90557 9.45779 10.5392 9.32182 11.1801 9.22406C11.2336 9.21581 11.28
3569 9.20696 11.3403 9.19811L11.3407 9.19804L11.3415 9.19793C11.5204 9.16828 11.6994 9.13863 11.8808 9.13072C12.1043 9.12043 12.1965 9.22406 12.1604 9.44382C12.018 10.3074 11.9022 11.1747 11.8196 12.0464C11.7628 12.6484 11.7222 13.2518 11.6876 13.856C11.6721 14.1294 11.5998 14.222 11.3276 14.2742C10.4912 14.4337 9.68134 14.6814 8.88991 14.9901C8.69581 15.0657 8.50432 15.1486 8.31325 15.2314L8.20691 15.2774C8.0948 15.326 8.09406 15.3304 8.16044 15.445C8.37361 15.8103 8.59562 16.1705 8.8287 16.524C9.6216 17.7235 10.506 18.8502 11.5076 19.8851C11.5976 19.9777 11.6883 20.0703 11.779 20.1622C11.9369 20.3217 12.0342 20.5106 12.0719 20.7325C12.209 21.5425 12.3529 22.3517 12.5432 23.1514C12.7571 24.054 12.999 24.9492 13.2808 25.8334C13.4696 26.4265 13.6717 27.0145 13.8952 27.5951C13.9143 27.6444 13.9328 27.6944 13.9438 27.7458C13.9792 27.906 13.8863 28.0089 13.7211 27.9994C13.6532 27.9957 13.5987 27.9656 13.5419 27.9318C12.9503 27.5775 12.3765 27.1968 11.8166 26.7955C10.8969 26.1369 10.0184 25.4277 9.18569 24.6618C8.3441 23.8886 7.54972 23.0705 6.80698 22.2018C5.85328 21.0868 4.99104 19.9057 4.22248 18.6569C3.3241 17.198 2.5607 15.6721 1.93892 14.075C1.53546 13.0394 1.19175 11.9862 0.90999 10.9123C0.65036 9.92377 0.444574 8.92345 0.297058 7.91211C0.164292 7.00513 0.0713562 6.09374 0.0359521 5.17794L0.0288702 4.9929C0.019292 4.74365 0.00971023 4.49432 0.00202389 4.2445C-0.000926447 4.14528 -0.0038767 4.04532 0.0182508 3.9461C0.0543925 3.78073 0.145853 3.66239 0.294845 3.57934C1.65643 2.82377 3.06964 2.18212 4.53817 1.65954C5.35984 1.36702 6.19183 1.10904 7.03636 0.894418C7.83591 0.691561 8.64209 0.51737 9.45785 0.388011C10.174 0.274823 10.8925 0.177068 11.6153 0.113123C12.6383 0.0227197 13.6636 -0.0132934 14.6903 0.00434637C14.706 0.00483637 14.7217 0.00467304 14.7375 0.00450971C14.7453 0.00442804 14.7532 0.00434637 14.7611 0.00434637C15.0355 0.0102263 15.1424 0.181479 15.0222 0.429171C14.4933 1.51181 14.036 2.62459 13.6355 3.76015C13.5227 4.08134 13.4179 4.40473 13.3139 4.7296C13.2453 4.94495 13.1627 5.02212 12.937 5.03241C12.4775 5.05373 12.0195 5.09636 11.5622 5.14413C11.2104 5.18088 10.8607 5.2316 10.5119 5.28598C9.865 5.38668 9.22478 5.51604 8.58898 5.67185C7.48334 5.9438 6.40278 6.29145 5.34804 6.71995C5.24699 6.76111 5.23224 6.81477 5.24477 6.90664C5.30378 7.34322 5.37606 7.7776 5.46015 8.20978C5.61356 8.99916 5.80018 9.78118 6.03325 10.5522C6.03597 10.5633 6.03847 10.5745 6.04096 10.5856C6.05265 10.6381 6.06439 10.6907 6.09963 10.7367Z"\n    fill="white"\n  />\n  <path\n    d="M28.2808 4.76816C28.2579 5.45023 28.1982 6.12936 28.1296 6.80703C28.0499 7.59567 27.9268 8.37843 27.777 9.15752C27.5919 10.1211 27.3581 11.0729 27.0712 12.01C26.5895 13.5844 25.9781 15.1087 25.2302 16.578C24.3613 18.2846 23.3331 19.8899 22.1397 21.3892C21.1417 22.6431 20.0464 23.8
35066 18.8486 24.8738C17.9517 25.6735 17.0112 26.4173 16.0185 27.0964L16.0014 27.1082C15.9535 27.1413 15.906 27.1741 15.8473 27.1846C15.7264 27.2067 15.6187 27.1552 15.5612 27.0295C15.5071 26.9106 15.4631 26.787 15.419 26.6635L15.4033 26.6194C15.0795 25.7124 14.7852 24.7959 14.5359 23.8661C14.4223 23.4413 14.3176 23.0143 14.2188 22.5851C14.1634 22.3455 14.2283 22.1757 14.4268 22.0191C15.553 21.1327 16.5849 20.1464 17.5261 19.0659C18.3625 18.106 19.1171 17.0873 19.786 16.0054C20.4484 14.9345 21.0193 13.8166 21.5002 12.6524C21.9538 11.5536 22.3196 10.4283 22.6014 9.27512C22.7836 8.52764 22.923 7.77133 23.0314 7.00988C23.065 6.77437 23.0639 6.77393 22.8448 6.68508L22.8374 6.68208C21.9686 6.33002 21.0798 6.03749 20.174 5.79641C19.3767 5.584 18.5705 5.41348 17.754 5.29C17.2583 5.21504 16.7619 5.15183 16.2626 5.10993C16.1044 5.09659 15.946 5.085 15.7875 5.07341C15.6755 5.06522 15.5634 5.05702 15.4513 5.04819C15.2012 5.02835 15.1039 4.8887 15.1857 4.65277C15.4527 3.88176 15.7456 3.11958 16.0657 2.36915C16.34 1.72604 16.6358 1.09321 16.9522 0.46994C17.0821 0.214164 17.1897 0.161244 17.4752 0.195788C18.1191 0.273697 18.7601 0.366307 19.3973 0.483905C20.6387 0.712487 21.8594 1.02559 23.058 1.42028C24.0596 1.75029 25.0406 2.13322 25.9987 2.57569C26.6566 2.87924 27.302 3.20631 27.9386 3.55102C28.1797 3.68185 28.2882 3.86633 28.2815 4.13387C28.278 4.27876 28.279 4.42365 28.2799 4.5683C28.2804 4.63498 28.2808 4.70161 28.2808 4.76816Z"\n    fill="white"\n  />\n  <path\n    d="M58.3741 9.71913C58.3183 9.67786 58.2955 9.63712 58.2741 9.59872L58.269 9.58964C58.2669 9.58598 58.2649 9.58235 58.2628 9.57874C58.0525 9.22521 57.8431 8.87168 57.6343 8.51742C57.4508 8.20607 57.2672 7.89476 57.0836 7.58345L57.0716 7.56311L57.0697 7.55999C56.3954 6.41664 55.721 5.27324 55.0498 4.12806C54.9621 3.97812 54.8536 3.91565 54.6788 3.91712C54.1701 3.92199 53.6619 3.92128 53.1534 3.92056C52.9718 3.92031 52.7901 3.92006 52.6084 3.92006L52.5941 3.91996L52.5831 3.91982C52.5621 3.91952 52.541 3.91921 52.5199 3.92079C52.3916 3.93034 52.3451 3.97665 52.3348 4.10821C52.3327 4.13291 52.3332 4.1576 52.3337 4.18229C52.3339 4.19288 52.3341 4.20346 52.3341 4.21405V13.2919C52.3341 13.2976 52.334 13.3034 52.334 13.3091L52.3337 13.3273C52.3331 13.3627 52.3326 13.3983 52.337 13.433C52.3503 13.5359 52.3916 13.5764 52.4956 13.5881C52.5319 13.5921 52.5682 13.5917 52.6045 13.5913C52.6154 13.5912 52.6263 13.5911 52.6372 13.5911H54.2296C54.5616 13.5911 54.5682 13.5852 54.5682 13.2581C54.5682 11.4949 54.5682 9.73236 54.5689 7.96985C54.5689 7.95721 54.5685 7.94443 54.568 7.93136C54.566 7.87682 54.5638 7.81731 54.5948 7.742C54.7194 7.95295 54.8286 8.13816 54.9377 8.32338C55.1515 8.68552 55.3654 9.04759 55.5793 9.40965L55.5803 9.41147L55.5811 9.41282L55.5832 9.41637L55.5836 9.41702L55.5845 9.41853C56.3577 10.7274 57.131 12.0365 57.8991 13.3485C58.0002 13.5212 58.116 13.5977 58.3196 13.5947C58.8058 13.5878 59.2924 13.589 59.7792 13.5902H59.7802C59.9657 13.5906 60.1513 13.5911 60.3368 13.5911C60.3782 13.5911 60.4195 13.5903 60.4608 13.5866C60.55 13.5786 60.5994 13.5278 60.6053 13.4389C60.6075 13.408 60.6073 13.3772 60.607 13.3463C60.6069 13.336 60.6068 13.3257 60.6068 13.3154V4.20229C60.6068 4.16113 60.6068 4.11997 60.6061 4.07881C60.6039 3.98768 60.5493 3.9399 60.4652 3.92447C60.4342 3.91875 60.4019 3.91926 60.3696 3.91977C60.3604 3.91991 60.3512 3.92006 60.342 3.92006H58.6434L58.6367 3.92003C58.6301 3.91999 58.6234 3.91988 58.6167 3.91978C58.59 3.91937 58.5632 3.91895 58.5371 3.92226C58.4383 3.93476 58.3889 3.98179 58.3771 4.07955C58.3722 4.118 58.3729 4.15725 58.3736 4.19642L58.3738 4.20899C58.374 4.21877 58.3741 4.22855 58.3741 4.23831V9.71913Z"\n    fill="white"\n  />\n  <path\n    d="M62.5176 10.4144C62.5173 9.89179 62.517 9.3691 62.5186 8.84603C62.5201 8.46163 62.6093 8.09855 62.8254 7.77736C63.1669 7.26948 63.6545 7.01003 64.2644 6.97769C64.3766 6.97181 64.4887 6.97401 64.6008 6.97769C64.7328 6.9821 64.7763 7.02693 64.7852 7.1607C64.7872 7.19364 64.7868 7.22658 64.7863 7.25952L64.7861 7.27898C64.786 7.28659 64.7859 7.2942 64.7859 7.30182V11.2502C64.7859 11.2733 64.7855 11.2937 64.7851 11.3118C64.7823 11.4483 64.7823 11.4498 64.9888 11.4472C65.1459 11.4454 65.303 11.4469 65.4601 11.4483C65.7573 11.4511 66.0543 11.4539 66.3511 11.4347C67.6876 11.3479 68.7209 10.3248 68.819 8.99597C68.8684 8.3286 68.7261 7.70974 68.3285 7.16438C67.8041 6.44409 67.0769 6.08688 66.1932 6.07439C65.4129 6.06312 64.6322 6.06577 63.8517 6.06841H63.8505C63.5107 6.06956 63.171 6.07071 62.8313 6.07071L62.8181 6.07078L62.8083 6.0709L62.7909 6.07119C62.7571 6.07179 62.7234 6.07239 62.6897 6.06924C62.5702 6.05822 62.526 6.01044 62.5178 5.8899C62.5169 5.87819 62.5172 5.86648 62.5175 5.85477L62.5178 5.84485L62.5178 5.83698C62.5178 5.65111 62.5178 5.46516 62.5177 5.27918C62.5175 4.90703 62.5174 4.53461 62.5178 4.16268C62.5178 3.96717 62.5599 3.92307 62.7546 3.92307C63.0946 3.92285 63.4347 3.92133 63.7748 3.9198H63.776C64.6033 3.91609 65.431 3.91238 66.2581 3.92748C67.4892 3.94953 68.5948 4.33981 69.5256 5.163C70.2182 5.77598 70.6844 6.53375 70.9226 7.42456C71.2265 8.55792 71.1594 9.67216 70.6903 10.7511C70.2389 11.7875 69.4917 12.5526 68.479 13.0597C67.7547 13.4221 66.9839 13.5897 66.1755 13.5904C65.4207 13.5909 64.6656 13.5907 63.9105 13.5906C63.5331 13.5905 63.1555 13.5904 62.7782 13.5904L62.7627 13.5904C62.7266 13.5905 62.6904 13.5906 62.6543 13.5867C62.5724 13.5779 62.5274 13.5287 62.5201 13.4485C62.5167 13.4138 62.5172 13.3783 62.5176 13.3428C62.5177 13.331 62.5178 13.3192 62.5178 13.3074V11.0495C62.5178 10.8395 62.5177 10.6295 62.5176 10.4194V10.4144Z"\n    fill="white"\n  />\n  <path\n    d="M82.6601 4.22191V8.75166C82.6601 9.15423 82.6603 9.55686 82.6605 9.95944V9.96106C82.6611 11.0675 82.6617 12.174 82.6579 13.2777C82.6565 13.5866 82.7358 13.5864 82.9409 13.5857L82.9706 13.5857C84.5637 13.5846 86.1569 
3513.5847 87.75 13.5849L89.3411 13.585C89.3535 13.585 89.3659 13.5851 89.3783 13.5853C89.4072 13.5858 89.4361 13.5863 89.465 13.5842C89.5882 13.5761 89.631 13.5372 89.6465 13.413C89.6511 13.376 89.6507 13.339 89.6504 13.3021C89.6503 13.292 89.6502 13.2819 89.6502 13.2718V11.7563L89.6503 11.7331C89.6505 11.6942 89.6507 11.6545 89.6458 11.6159C89.6295 11.4932 89.5853 11.4535 89.4628 11.4454C89.4298 11.4433 89.3968 11.4438 89.3637 11.4443C89.3495 11.4445 89.3354 11.4447 89.3212 11.4447H85.1627C85.1503 11.4447 85.1379 11.4445 85.1255 11.4443C85.0966 11.4438 85.0677 11.4433 85.0388 11.4454C84.954 11.452 84.9259 11.4145 84.9274 11.3315C84.9306 11.185 84.93 11.0382 84.9294 10.8913L84.9291 10.8185L84.9289 10.7497L84.9289 10.7148C84.9289 10.6394 84.9291 10.564 84.9292 10.4887V10.4879C84.9297 10.2876 84.9301 10.0871 84.9274 9.88648C84.9267 9.80269 84.9577 9.76815 85.041 9.77476C85.0696 9.77731 85.0982 9.77668 85.1268 9.77606C85.1395 9.77578 85.1522 9.7755 85.1649 9.7755H88.5799C88.6417 9.7755 88.7034 9.77578 88.7651 9.77606C88.904 9.77668 89.0429 9.77731 89.1818 9.77476C89.3352 9.77256 89.3802 9.72699 89.3839 9.57264C89.3865 9.45944 89.3858 9.3459 89.3852 9.23224V9.23148C89.3849 9.18084 89.3847 9.13012 89.3847 9.07946C89.3847 8.96532 89.3848 8.85124 89.3849 8.73718C89.3852 8.4517 89.3855 8.16639 89.3839 7.88069C89.3824 7.70503 89.3367 7.66093 89.1656 7.65579C89.1381 7.6553 89.1105 7.65546 89.083 7.65562L89.0705 7.6557L89.0417 7.65579H85.7144C85.6471 7.65579 85.5799 7.65559 85.5126 7.65539C85.3557 7.65493 85.1987 7.65446 85.0418 7.65652C84.9628 7.65799 84.9252 7.63962 84.9259 7.54921C84.9296 7.09058 84.9282 6.63268 84.9267 6.17405C84.9267 6.10202 84.9459 6.06159 85.0263 6.06821C85.0549 6.07075 85.0835 6.07013 85.112 6.0695C85.1248 6.06922 85.1375 6.06894 85.1502 6.06894C85.62 6.06894 86.0898 6.06902 86.5597 6.0691C87.4996 6.06927 88.4398 6.06943 89.3795 6.06894C89.6037 6.06894 89.6472 6.02705 89.6494 5.80067C89.6515 5.61587 89.651 5.43143 89.6506 5.24684V5.24605C89.6504 5.16672 89.6502 5.08704 89.6502 5.00762C89.6499 4.9116 89.6502 4.81567 89.6504 4.71977C89.6509 4.52788 89.6514 4.33611 89.648 4.144C89.645 3.97128 89.5949 3.92718 89.423 3.92204C89.4033 3.92155 89.3837 3.92171 89.364 3.92187C89.3542 3.92195 89.3443 3.92204 89.3345 3.92204H82.964C82.9502 3.92204 82.9364 3.92169 82.9226 3.92134C82.8831 3.92036 82.8436 3.91937 82.8054 3.92645C82.7228 3.94188 82.6675 3.99186 82.6616 4.08079C82.6594 4.11608 82.6596 4.15138 82.6599 4.18667L82.66 4.2042L82.6601 4.22191Z"\n    fill="white"\n  />\n  <path\n    fill-rule="evenodd"\n    clip-rule="evenodd"\n    d="M46.4733 3.92191C46.6091 3.92191 46.7447 3.92183 46.8804 3.92175H46.8812C47.152 3.92159 47.423 3.92142 47.694 3.92191C47.9072 3.92265 47.9463 3.94543 48.02 4.14535C48.2767 4.84506 48.5312 5.54551 48.7856 6.24595C48.9523 6.70339 49.1188 7.16101 49.2852 7.61862L49.2867 7.62266C49.4528 8.07913 49.6188 8.53559 49.7851 8.99188C49.9592 9.47022 50.1332 9.94855 50.3072 10.4268C50.5445 11.0788 50.7816 11.7307 51.019 12.3824C51.0803 12.5505 51.1424 12.7183 51.2046 12.8861C51.2525 13.0156 51.3005 13.1451 51.348 13.2747L51.3523 13.2861L51.3587 13.3027C51.3743 13.3429 51.3901 13.3836 51.3967 13.4253C51.4114 13.5135 51.3657 13.5716 51.275 13.5848C51.2394 13.5899 51.203 13.5894 51.1667 13.5888C51.1556 13.5887 51.1445 13.5885 51.1334 13.5885H49.3115C49.0504 13.5885 49.0342 13.5775 48.9464 13.3246C48.7598 12.7874 48.5739 12.2494 48.3888 11.7113L48.3876 11.7078C48.3372 11.5628 48.3367 11.5614 48.183 11.5614H44.7333C44.5755 11.5614 44.5748 11.5621 44.5246 11.7091C44.4298 11.9837 44.3352 12.2582 44.2406 12.5327C44.146 12.8072 44.0514 13.0817 43.9567 13.3562C43.8859 13.562 43.8497 13.5878 43.6218 13.5878C43.2132 13.5883 42.8042 13.5881 42.3953 13.5879C42.191 13.5879 41.9865 13.5878 41.7823 13.5878L41.7646 13.5879C41.7469 13.588 41.7292 13.5881 41.7115 13.587C41.5625 13.5782 41.5116 13.5099 41.5603 13.3665C41.635 13.1477 41.7145 12.93 41.794 12.7124L42.0055 12.1315C42.4619 10.8778 42.9185 9.62374 43.3762 8.37081C43.8876 6.96895 44.4004 5.5671 44.9132 4.16524L44.9137 4.16381L44.917 4.15491C44.9922 3.94911 45.0306 3.92118 45.2526 3.92118C45.4562 3.92118 45.6596 3.92136 45.863 3.92155C46.0663 3.92173 46.2697 3.92191 46.4733 3.92191ZM46.449 6.14379C46.0647 7.25142 45.6878 8.33847 45.3079 9.43434H47.5893C47.5561 9.27852 46.5345 6.32386 46.449 6.14379Z"\n    fill="white"\n  />\n  <path\n    d="M72.4916 4.21265L72.4918 7.821C72.4921 8.4866 72.4923 9.15231 72.4901 9.81843C72.4894 10.2271 72.5418 10.6269 72.659 11.0179C73.0529 12.3321 73.9225 13.1795 75.2295 13.5764C76.106
355 13.8425 76.9975 13.841 77.8848 13.6117C78.6091 13.4243 79.2368 13.0678 79.7443 12.5144C80.4022 11.797 80.726 10.9363 80.7371 9.97865C80.7533 8.55098 80.7509 7.12252 80.7484 5.69414C80.7475 5.1775 80.7466 4.66088 80.7466 4.1443C80.7474 3.96423 80.7009 3.92307 80.5099 3.92233C80.1032 3.92123 79.6962 3.92137 79.289 3.92151L78.882 3.9216C78.859 3.9216 78.8359 3.9212 78.8129 3.9208C78.759 3.91988 78.7051 3.91895 78.6519 3.92307C78.5339 3.93189 78.4859 3.98334 78.4786 4.10241C78.4765 4.13534 78.477 4.16828 78.4774 4.20122L78.4777 4.21971L78.4778 4.22985L78.4778 4.24352V9.65526L78.4775 9.70032V9.70072C78.4771 9.76797 78.4768 9.83573 78.4719 9.90221C78.4432 10.3035 78.3281 10.6754 78.0618 10.9871C77.648 11.4722 77.1059 11.6574 76.4841 11.6236C75.9686 11.5956 75.5209 11.4045 75.1823 11.0032C74.8895 10.6563 74.7619 10.2477 74.7619 9.79785V4.20972C74.7619 3.95541 74.7287 3.9216 74.4801 3.9216C73.9085 3.92086 73.3361 3.92086 72.7638 3.9216C72.7559 3.9216 72.748 3.92154 72.7401 3.92148C72.7007 3.92117 72.661 3.92086 72.6229 3.92821C72.5462 3.94291 72.4953 3.98701 72.4931 4.07154C72.4923 4.11858 72.4916 4.16561 72.4916 4.21265Z"\n    fill="white"\n  />\n  <path\n    d="M35.0844 8.75374V4.20562C35.0851 3.95572 35.1191 3.92118 35.3691 3.92118H42.5193C42.7125 3.92559 42.7663 3.99762 42.7037 4.17549C42.6463 4.33959 42.5866 4.50236 42.5269 4.66552L42.5267 4.66601L42.4757 4.80537C42.4164 4.9678 42.3566 5.13022 42.2969 5.29265C42.2371 5.45509 42.1774 5.61753 42.118 5.77997C42.0147 6.06294 42.0074 6.06882 41.6961 6.06882L40.6651 6.06873C39.6343 6.06859 38.6033 6.06845 37.5723 6.06956C37.5427 6.06956 37.5172 6.06885 37.4952 6.06824C37.4347 6.066
3558 37.4007 6.06564 37.3815 6.082C37.3568 6.10312 37.3568 6.15304 37.3569 6.26736L37.3569 7.8056C37.3569 7.85264 37.3576 7.89968 37.3591 7.94672C37.3606 7.9967 37.3894 8.02022 37.438 8.02095C37.4852 8.02169 37.5325 8.02169 37.5797 8.02169H40.9069C40.9216 8.02169 40.9364 8.02151 40.9512 8.02132C40.9956 8.02077 41.0402 8.02022 41.0839 8.02463C41.2226 8.03933 41.2691 8.11063 41.2211 8.24366C41.102 8.57359 40.9814 8.90289 40.8608 9.23197L40.8606 9.23233C40.7975 9.40457 40.7344 9.57674 40.6716 9.74892C40.6458 9.82021 40.62 9.89224 40.5956 9.96427C40.5573 10.0782 40.4754 10.1348 40.3589 10.1436C40.3134 10.1468 40.2678 10.1467 40.2223 10.1466L40.1996 10.1465H37.5981L37.5735 10.1465L37.5627 10.1464C37.5391 10.1462 37.5155 10.1461 37.4919 10.1465C37.3608 10.1502 37.3576 10.1503 37.3576 10.2877C37.3569 11.0102 37.3569 11.7334 37.3569 12.4559C37.3569 12.5415 37.357 12.6271 37.3572 12.7127V12.7135C37.3574 12.9272 37.3577 13.1408 37.3562 13.3548C37.3554 13.5496 37.3208 13.5856 37.1319 13.5863C36.5242 13.5878 35.9164 13.5878 35.3094 13.5863C35.1257 13.5856 35.0859 13.5444 35.0844 13.3533C35.0828 13.1813 35.0831 13.0092 35.0834 12.8374V12.8368C35.0835 12.7681 35.0837 12.6994 35.0837 12.6308C35.0844 11.3394 35.0844 10.0466 35.0844 8.75374Z"\n    fill="white"\n  />\n  <path\n    d="M93.8054 11.2484V7.74105C93.8054 6.57168 93.8054 5.40231 93.8039 4.2322L93.804 4.20599C93.8042 4.16217 93.8044 4.11766 93.7995 4.07418C93.7892 3.98819 93.7368 3.93674 93.6505 3.92498C93.615 3.91992 93.5785 3.92045 93.5422 3.92098C93.5311 3.92114 93.52 3.9213 93.5089 3.9213H91.8279C91.5476 3.9213 91.5336 3.93527 91.5336 4.20648V13.302C91.5336 13.5798 91.5425 13.5886 91.8228 13.5886H98.1225L98.1338 13.5887L98.145 13.5888L98.1611 13.589C98.1954 13.5894 98.2298 13.5898 98.2641 13.5872C98.3696 13.5783 98.4146 13.5379 98.4278 13.4387C98.4323 13.4084 98.4317 13.3772 98.4312 13.3462C98.431 13.3358 98.4308 13.3255 98.4308 13.3152V11.7291C98.4308 11.4719 98.4064 11.4483 98.1468 11.4476L93.9962 11.4476C93.8876 11.4476 93.8397 11.4476 93.819 11.424C93.8027 11.4053 93.8034 11.3718 93.8046 11.3118C93.805 11.2933 93.8054 11.2723 93.8054 11.2484Z"\n    fill="white"\n  />\n  <path\n    fill-rule="evenodd"\n    clip-rule="evenodd"\n    d="M81.3546 20.328C81.401 20.3705 81.4556 20.3902 81.5093 20.4096C81.5392 20.4204 81.5688 20.4311 81.5965 20.4456C82.0169 20.6646 82.2854 21.0064 82.416 21.4569C82.5443 21.9016 82.5546 22.3499 82.427 22.7953C82.2404 23.4487 81.7934 23.8501 81.1599 24.0603C80.839 24.1668 80.5071 24.2161 80.1685 24.2161H77.1614C77.157 24.2161 77.1526 24.216 77.1482 24.216L77.1322 24.2156C77.1126 24.2151 77.0926 24.2146 77.0729 24.2161C76.9925 24.2227 76.949 24.1948 76.9571 24.1073C76.9597 24.0834 76.959 24.0587 76.9584 24.0341C76.9581 24.0232 76.9578 24.0123 76.9578 24.0015V17.1117C76.96 16.9588 76.9601 16.9573 77.1135 16.9573C77.3427 16.95
3575 77.5719 16.9575 77.8011 16.9575C78.6038 16.9576 79.4064 16.9576 80.2091 16.9639C80.589 16.9669 80.9614 17.036 81.3074 17.1991C81.8982 17.4777 82.205 17.9554 82.2611 18.5971C82.2832 18.8499 82.2729 19.1005 82.2087 19.349C82.118 19.7018 81.9115 19.9693 81.612 20.17C81.5539 20.2096 81.4933 20.2455 81.4314 20.2821L81.3947 20.3039C81.3814 20.3118 81.368 20.3198 81.3546 20.328ZM79.2628 23.0908V23.0871C79.3563 23.0871 79.45 23.0873 79.5436 23.0875C79.7623 23.088 79.9811 23.0885 80.1995 23.0864C80.395 23.0842 80.5868 23.0496 80.7697 22.9791C81.0485 22.8718 81.224 22.6733 81.2875 22.3801C81.331 22.1765 81.3302 21.9714 81.2941 21.7678C81.2307 21.4128 81.0101 21.1945 80.6694 21.0997C80.4946 21.0512 80.3131 21.0203 80.1287 21.0203C79.5099 21.0196 78.8911 21.0196 78.2722 21.0203C78.1372 21.0203 78.1343 21.0233 78.1336 21.1563C78.1321 21.7553 78.1321 22.3536 78.1336 22.9526C78.1336 23.0879 78.1372 23.0901 78.2722 23.0908C78.4923 23.0918 78.712 23.0915 78.9318 23.0911H78.9322L79.0625 23.091C79.1292 23.0909 79.196 23.0908 79.2628 23.0908ZM79.1883 18.0863V18.0818C79.088 18.0818 78.9877 18.0818 78.8875 18.0817C78.6871 18.0815 78.4868 18.0814 78.2862 18.0818C78.1358 18.0826 78.1343 18.0841 78.1336 18.2399C78.1328 18.7566 78.1328 19.2733 78.1336 19.79C78.1336 19.9487 78.1358 19.9495 78.3039 19.9495C78.5312 19.9498 78.7587 19.9497 78.9862 19.9496C79.2894 19.9495 79.5926 19.9494 79.8956 19.9502C80.0918 19.9509 80.2843 19.9237 80.4724 19.876C80.794 19.7936 81.0404 19.5526 81.0714 19.1762C81.0817 19.0462 81.0795 18.9183 81.0632 18.7904C81.0278 18.5126 80.8825 18.3119 80.6229 18.1994C80.4363 18.1186 80.2386 18.0885 80.0365 18.0863C79.8487 18.0848 79.6608 18.0853 79.4728 18.0858H79.4718C79.3775 18.086 79.2828 18.0863 79.1883 18.0863Z"\n    fill="white"\n  />\n  <path\n    fill-rule="evenodd"\n    clip-rule="evenodd"\n    d="M84.3529 22.9112C85.1097 23.8718 86.1261 24.3106 87.3364 24.3342C87.5872 24.3364 87.8314 24.3128 88.0762 24.268C88.9768 24.1026 89.7329 23.683 90.2956 22.9656C91.1431 21.8866 91.3312 20.6732 90.93 19.373C90.6961 18.6152 90.2411 18.0037 89.5942 17.5384C89.0203 17.1261 88.3779 16.9034 87.6743 16.8468C86.8762 16.7829 86.1194 16.9284 85.4283 17.3304C84.302 17.9853 83.6979 18.9812 83.588 20.2675C83.5054 21.2398 83.7429 22.1365 84.3529 22.9112ZM87.3881 23.2042L87.3875 23.2042L87.3602 23.2039L87.3493 23.2038L87.335 23.2037C86.2625 23.1721 85.4571 22.7069 85.0035 21.7257C84.7033 21.0781 84.6885 20.3968 84.9017 19.7155C85.1023 19.0753 85.4977 18.5865 86.0899 18.269C87.3305 17.6038 89.0712 17.978 89.6982 19.4869C90.1016 20.4578 90.0095 21.4133 89.3545 22.2652C88.892 22.8671 88.254 23.1648 87.4943 23.2037C87.4589 23.2052 87.4235 23.2047 87.3881 23.2042Z"\n    fill="white"\n  />\n  <path\n    fill-rule="evenodd"\n    clip-rule="evenodd"\n    d="M96.0582 24.3336C95.0433 24.3263 94.1523 24.0007 93.4118 23.2987C92.8984 22.8122 92.5599 22.219 92.3998 21.5348C92.1549 20.4889 92.2818 19.4908 92.8512 18.5683C93.3845 17.7047 94.1648 17.1689 95.151 16.9381C96.0929 16.7176 97.0053 16.822 97.8661 17.2667C98.6368 17.665 99.1908 18.2751 99.5323 19.0696C99.8295 19.762 99.9187 20.4881 99.7845 21.2261C99.5411 22.566 98.7961 23.5251 97.526 24.0573C97.0584 24.2528 96.5679 24.3432 96.0582 24.3336ZM96.0479 23.2098C96.264 23.2098 96.4727 23.19 96.6815 23.1385C97.5695 22.9195 98.1626 22.3749 98.476 21.5267C98.6553 21.0416 98.673 20.5389 98.5815 20.0339C98.4834 19.4937 98.2393 19.0218 97.8343 18.647C97.1889 18.0494 96.4182 17.8525 95.5604 18.0031C94.5396 18.1825 93.7658 18.9395 93.5475 19.956C93.4184 20.558 93.4487 21.1526 93.7083 21.7134C94.1671 22.7019 94.9718 23.1723 96.0479 23.2098Z"\n    fill="white"\n  />\n  <path\n    fill-rule="evenodd"\n    clip-rule="evenodd"\n    d="M49.4671 23.2961C50.201 24.0039 51.0964 24.3273 52.3237 24.3383C52.5362 24.3464 52.9485 24.278 53.3475 24.1442C54.3344 23.8135 55.0683 23.1873 55.5189 22.2487C55.9467 21.3572 56.0131 20.4274 55.7343 19.4859C55.4024 18.3672 54.6884 17.5705 53.602 17.1214C52.8445 16.8083 52.0597 16.7517 51.2601 16.9266C50.316 17.1332 49.5556 17.6249 49.0039 18.4179C48.5134 19.1228 48.3135 19.9122 48.3496 20.767C48.3909 21.757 48.7538 22.6081 49.4671 23.2961ZM54.1928 22.1826C53.7642 22.7875 52.9861 23.2292 52.1187 23.2086C51.1731 23.1924 50.4163 22.8169 49.9155 22.0032C49.3151 21.0242 49.4213 19.6931 50.1427 18.8509C50.7165 18.1798 51.4644 17.9034 52.3341 17.9659C53.0975 18.021 53.7214 18.3591 54.181 18.9751C54.4576 19.3455 54.6169 19.7666 54.6692 20.2253C54.7504 20.9345 54.611 21.5938 54.1928 22.1826Z"\n    fill="white"\n  />\n  <path\n    fill-rule="evenodd"\n    clip-rule="evenodd"\n    d="M61.0137 21.4515C61.7365 22.3718 62.446 23.2751 63.1549 24.1776C63.1151 24.2214 63.0753 24.2184 63.0388 24.2156C63.0293 24.2149 63.02 24.2142 63.011 24.2144C62.8737 24.2152 62.7364 24.2148 62.5991 24.2145C62.3588 24.2138 62.1187 24.2132 61.8788 24.2188C61.763 24.221 61.6959 24.1791 61.6295 24.0924C61.1569 23.4733 60.682 22.8564 60.207 22.2394L60.2028 22.2339C60.0662 22.0564 59.9295 21.879 59.793 21.7014L59.7739 21.677C59.7477 21.6434 59.7216 21.6099 59.6978 21.575C59.6653 21.5265 59.6226 21.5074 59.5636 21.5081C59.2567 21.5103 58.9499 21.5103 58.6438 21.5081C58.57 21.5074 58.5324 21.5302 58.5383 21.6081C58.5403 21.6355 58.5396 21.663 58.539 21.6904C58.5387 21.7041 58.5383 21.7179 58.5383 21.7316V23.9873C58.5383 24.001 58.5381 24.0147 58.5378 24.0284C58.5373 24.0559 58.5368 24.0833 58.5383 24.1107C58.542 24.1835 58.5147 24.2181 58.4365 24.2173C58.1061 24.2151 57.7757 24.2151 57.446 24.2173C57.367 24.2181 57.3412 24.182 57.3464 24.11C57.3479 24.0866 57.3474 24.0631 57.3469 24.0397C57.3466 24.0279 57.3464 24.0159 57.3464 24.0042V17.1129C57.3486 16.9601 57.3486 16.9578 57.502 16.9586C57.7268 16.9587 57.9516 16.9587 58.1764 16.9587H58.1812C58.9515 16.9586 59.7221 16.9585 60.4922 16.9659C60.8956 16.9696 61.2866 17.0534 61.6539 17.2327C62.2056 17.5017 62.5618 17.9309 62.7315 18.5145C62.865 18.9754 62.8716 19.4414 62.7573 19.9073C62.5884 20.5923 62.1628 21.0517 61.5093 21.3082C61.3581 21.367 61.2003 21.4119 61.0137 21.4515ZM58.5383 20.2778L58.5382 20.3135C58.5379 20.3932 58.5377 20.4332 58.5576 20.453C58.5776 20.473 58.6177 20.4728 58.6979 20.4726L58.7271 20.4725C58.8621 20.4725 58.997 20.4723 59.1319 20.4721C59.4687 20.4715 59.8055 20.4709 60.1426 20.474C60.3506 20.4762 60.5556 20.4542 60.7562 20.4071C61.0019 20.3498 61.2261 20.241 61.3832 20.0374C61.6937 19.6354 61.7048 19.1944 61.5263 18.7387C61.4584 18.5645 61.3345 18.4307 61.1781 18.3271C60.9244 18.1581 60.6397 18.0912 60.341 18.0875C59.9057 18.0823 59.4699 18.0821 59.0344 18.0819C58.9157 18.0818 58.7971 18.0818 58.6785 18.0816C58.5428 18.0816 58.5398 18.0846 58.5398 18.2161C58.538 18.4979 58.5381 18.7796 58.5383 19.0617L58.5383 20.2778Z"\n    fill="white"\n  />\n  <path\n    d="M34.7226 21.962C34.6798 21.96 34.6345 21.9579 34.5838 21.9894C34.6156 22.168 34.6613 22.3473 34.7247 22.523C34.9135 23.0683 35.2432 23.5064 35.7293 23.8232C36.1151 24.0753 36.5429 24.2186 36.998 24.2833C37.6485 24.3759 38.2924 24.3582 38.9194 24.1444C39.3568 23.9952 39.7455 23.7644 40.0272 23.3903C40.4417 22.839 40.5103 22.2187 40.3606 21.5645C40.2787 21.2059 40.067 20.928 39.772 20.7127C39.6002 20.5877 39.4128 20.4893 39.2159 20.4077C38.6763 20.1843 38.1094 20.0578 37.5424 19.9313L37.4168 19.9032L37.3461 19.8873L37.2963 19.876C36.9677 19.8013 36.639 19.7267 36.3363 19.5727C36.0133 19.4081 35.8953 19.1486 35.9771 18.7973C36.0597 18.4394 36.2921 18.2159 36.6233 18.0822C37.0415 17.9139 37.4766 17.9124 37.9126 17.9734C38.4621 18.0506 38.8899 18.3078 39.1045 18.8436C39.1399 18.9311 39.1982 18.934 39.2719 18.934C39.4506 18.9332 39.6294 18.9333 39.8081 18.9334C39.9421 18.9335 40.0761 18.9336 40.2101 18.9333C40.2158 18.9333 40.2214 18.9334 40.2271 18.9336C40.2564 18.9343 40.2861 18.935 40.3127 18.9171C40.3311 18.8833 40.3237 18.848 40.3156 18.8142C40.1415 18.0535 39.7337 17.4596 39.0071 17.1443C38.0261 16.7188 37.023 16.6982 36.0369 17.134C35.303 17.4582 34.859 18.0219 34.7852 18.8341C34.7107 19.6528 35.033 20.221 35.7116 20.5833C35.9676 20.72 36.239 20.8178 36.5156 20.9016C36.8219 20.9944 37.1343 21.0628 37.4466 21.1311C37.5946 21.1635 37.7425 21.1959 37.8897 21.2309L37.9263 21.2396C38.2298 21.3115 38.5332 21.3834 38.8154 21.5219C39.0093 21.6167 39.1679 21.752 39.2137 21.9666C39.2808 22.2804 39.2255 22.5737 38.9968 22.8192C38.8559 22.9706 38.6796 23.0639 38.4864 23.1235C38.0313 23.2631 37.5666 23.2558 37.1027 23.1845C36.9463 23.1609 36.7922 23.1161 36.6454 23.0514C36.225 22.8662 35.9609 22.5458 35.8193 22.1165C35.7684 21.9622 35.7677 21.9622 35.6024 21.9622L35.3902 21.9621C35.1777 21.9619 34.9652 21.9618 34.7528 21.9
35629C34.7428 21.9629 34.7327 21.9624 34.7226 21.962Z"\n    fill="white"\n  />\n  <path\n    d="M69.7099 21.9902C69.7507 21.9585 69.7906 21.9604 69.829 21.9622C69.8378 21.9626 69.8466 21.963 69.8552 21.963C69.9516 21.9628 70.0479 21.9631 70.1442 21.9635C70.3487 21.9643 70.5532 21.9651 70.7573 21.9601C70.8657 21.9571 70.9085 21.9954 70.9402 22.096C71.0487 22.4488 71.2456 22.7414 71.5642 22.9435C71.7663 23.0714 71.9913 23.1471 72.2244 23.1838C72.6876 23.2573 73.1515 23.2617 73.6081 23.1258C74.0816 22.9854 74.3678 22.6304 74.367 22.182C74.3663 21.8822 74.2299 21.6698 73.9628 21.5338C73.6768 21.3881 73.3676 21.3145 73.0588 21.2411L73.0224 21.2324C72.8721 21.1967 72.7211 21.1639 72.5701 21.1311C72.2551 21.0627 71.9402 20.9944 71.6321 20.8995C71.2544 20.7834 70.8849 20.6466 70.5618 20.4092C70.1901 20.1358 69.9777 19.7713 69.9216 19.3163C69.8044 18.3608 70.2624 17.5457 71.1386 17.14C71.6926 16.8835 72.2753 16.8027 72.8793 16.8416C73.3189 16.8703 73.7423 16.9585 74.1436 17.1444C74.8443 17.47 75.3407 18.1396 75.4506 18.9121C75.4204 18.9398 75.3841 18.937 75.3488 18.9343C75.3383 18.9335 75.3279 18.9327 75.3178 18.9327C75.1614 18.9334 75.005 18.9334 74.8487 18.9334C74.6924 18.9334 74.5363 18.9334 74.3803 18.9341C74.3198 18.9341 74.2689 18.9341 74.2402 18.8614C74.0189 18.305 73.5764 18.0411 73.0062 17.9683C72.6005 17.9169 72.1941 17.9191 71.801 18.0624C71.6955 18.1006 71.5952 18.1499 71.5023 18.2138C71.2493 18.3888 71.1091 18.6284 71.0855 18.9349C71.0634 19.2237 71.1859 19.4317 71.4425 19.5655C71.7014 19.7 71.9802 19.7742 72.2612 19.8404C72.4086 19.8752 72.5565 19.9079 72.7044 19.9407C73.0221 20.0111 73.3398 20.0816 73.6523 20.1718C74.0602 20.2894 74.4622 20.4239 74.8199 20.6606C75.2861 20.9693 75.5273 21.4022 75.5442 21.9593C75.5531 22.2475 75.5494 22.5348 75.4565 22.8134C75.2662 23.383 74.8774 23.7711 74.342 24.0225C73.9038 24.2283 73.4399 24.3216 72.956 24.3326C72.4685 24.3436 71.9891 24.301 71.5266 24.1445C70.4837 23.7924 69.8995 23.0545 69.7099 21.9902Z"\n    fill="white"\n  />\n  <path\n    fill-rule="evenodd"\n    clip-rule="evenodd"\n    d="M41.8321 17.1902V20.5741C41.8321 20.8943 41.832 21.2146 41.8318 21.535C41.8315 22.3365 41.8312 23.1381 41.8328 23.9388C41.8328 23.9784 41.8321 24.0123 41.8316 24.0415C41.8298 24.1297 41.8289 24.1736 41.8505 24.1952C41.8719 24.2166 41.9154 24.216 42.002 24.2149C42.0338 24.2145 42.0716 24.214 42.1161 24.2145C42.3691 24.2174 42.6228 24.2159 42.8765 24.2145C43.0092 24.2137 43.0093 24.2115 43.0122 24.075C43.0127 24.0516 43.0126 24.028 43.0124 24.0046C43.0123 23.9991 43.0123 23.9932 43.0123 23.9877C43.0122 23.9815 43.0122 23.9752 43.0122 23.969C43.0122 23.7419 43.0121 23.5148 43.0121 23.2877C43.0119 22.8334 43.0117 22.3792 43.0122 21.925C43.0122 21.7618 43.0137 21.7603 43.1745 21.7603H43.1767C43.7188 21.7596 44.2602 21.7589 44.8023 21.7603C45.2198 21.7618 45.6262 21.7008 46.0098 21.5354C46.5268 21.3127 46.9155 20.9526 47.1515 20.4359C47.3632 19.9728 47.4134 19.487 47.3551 18.9894C47.2769 18.3272 46.9863 17.7818 46.4243 17.3996C45.9817 17.099 45.4802 16.9719 44.9535 16.9653C44.246 16.9563 43.5381 16.9568 42.8304 16.9572C42.5473 16.9574 42.2641 16.9576 41.9811 16.9572C41.9782 16.9572 41.9754 16.9572 41.9725 16.9573C41.9695 16.9573 41.9664 16.9574 41.9634 16.9575C41.9516 16.9578 41.9398 16.9582 41.928 16.9572C41.8623 16.9528 41.8291 16.9807 41.8321 17.0491C41.8336 17.0804 41.8331 17.1118 41.8326 17.1431L41.8326 17.1436C41.8323 17.1592 41.8321 17.1747 41.8321 17.1902ZM43.0122 19.5385C43.0122 19.4758 43.0122 19.413 43.0122 19.3503C43.0127 19.101 43.0126 18.8514 43.0124 18.6017V18.5985C43.0123 18.5313 43.0123 18.4642 43.0123 18.397C43.0122 18.3387 43.0122 18.2804 43.0122 18.2221C43.0122 18.0854 43.0144 18.0824 43.1457 18.0824C43.7233 18.0824 44.3015 18.0832 44.8798 18.0869C45.0885 18.0883 45.2891 18.1324 45.4809 18.2155C45.8718 18.3845 46.0909 18.6903 46.1514 19.1004C46.1853 19.3312 46.1824 19.5664 46.1086 19.7979C45.9655 20.2485 45.6447 20.4903 45.1999 20.5902C45.0679 20.6196 44.9322 20.6321 44.7957 20.6321C44.4859 20.6313 44.1759 20.6314 43.8658 20.6315C43.6332 20.6316 43.4005 20.6317 43.1679 20.6314C43.0137 20.6307 43.0122 20.6292 43.0122 20.4785C43.0117 20.2277 43.0119 19.97
3571 43.0121 19.7265C43.0121 19.6638 43.0121 19.6012 43.0122 19.5385Z"\n    fill="white"\n  />\n  <path\n    d="M107 24.2158C106.875 24.2158 106.752 24.2156 106.629 24.2154H106.629C106.295 24.2148 105.968 24.2143 105.64 24.218C105.549 24.2188 105.5 24.1732 105.449 24.1144C105.067 23.683 104.685 23.2523 104.301 22.8216C103.727 22.1755 103.152 21.5302 102.577 20.8849C102.572 20.8797 102.568 20.8742 102.563 20.8687C102.546 20.8467 102.528 20.8236 102.488 20.8136C102.463 20.8568 102.466 20.9047 102.469 20.9515C102.47 20.966 102.47 20.9803 102.47 20.9944C102.469 21.7356 102.47 22.4768 102.47 23.2181L102.47 23.9557C102.47 23.9674 102.47 23.9792 102.47 23.9909C102.47 24.0145 102.47 24.038 102.47 24.0615C102.468 24.2144 102.468 24.2158 102.313 24.2158C102.205 24.2161 102.098 24.2159 101.99 24.2157C101.797 24.2153 101.603 24.2149 101.41 24.2173C101.321 24.218 101.274 24.1945 101.285 24.099C101.286 24.0887 101.287 24.0783 101.287 24.0677C101.287 24.0576 101.287 24.0475 101.286 24.0374L101.286 24.0264C101.286 24.0212 101.286 24.016 101.286 24.0108V17.1717C101.286 17.151 101.286 17.1322 101.286 17.1153C101.285 17.0355 101.285 16.9957 101.304 16.976C101.324 16.9564 101.364 16.9566 101.443 16.957C101.461 16.9571 101.483 16.9572 101.506 16.9571C101.68 16.9566 101.853 16.9568 102.026 16.9569C102.112 16.957 102.199 16.9571 102.285 16.9571C102.299 16.9571 102.312 16.957 102.324 16.9569C102.393 16.9565 102.429 16.9562 102.448 16.9743C102.47 16.9943 102.47 17.0369 102.47 17.1268V20.2131C102.475 20.2149 102.481 20.2165 102.486 20.2182C102.49 20.2193 102.494 20.2204 102.498 20.2216C102.5 20.2222 102.502 20.2228 102.504 20.2234C102.546 20.1755 102.589 20.1276 102.632 20.0797C102.672 20.0342 102.713 19.9887 102.754 19.9432C102.837 19.8496 102.92 19.756 103.004 19.6626C103.774 18.7975 104.544 17.9324 105.312 17.0651C105.38 16.9887 105.45 16.9541 105.554 16.9556C105.865 16.9599 106.176 16.9591 106.487 16.9584C106.606 16.9581 106.725 16.9578 106.844 16.9578C106.865 17.0096 106.837 17.0348 106.81 17.0585C106.805 17.0627 106.8 17.0668 106.796 17.071C106.794 17.0734 106.791 17.0758 106.789 17.0784C106.391 17.5264 105.993 17.9742 105.595 18.4219C105.052 19.0333 104.508 19.6446 103.966 20.2565C103.947 20.2769 103.926 20.2966 103.904 20.3163C103.848 20.3674 103.791 20.4193 103.787 20.4887C103.783 20.5602 103.841 20.6114 103.897 20.6617C103.919 20.6812 103.941 20.7006 103.959 20.721C104.542 21.3827 105.126 22.0437 105.709 22.7047L105.723 22.7208C106.116 23.1652 106.508 23.6095 106.9 24.0541C106.907 24.0616 106.914 24.0688 106.921 24.0763C106.953 24.1099 106.989 24.1467 107 24.2158Z"\n    fill="white"\n  />\n  <path\n    d="M65.7735 18.2948V21.5207C65.7735 21.8024 65.7734 22.0842 65.7734 22.366C65.7732 22.9298 65.773 23.4938 65.7735 24.0579C65.7735 24.2137 65.775 24.2152 65.9255 24.2159C66.2139 24.2174 66.503 24.2174 66.7921 24.2159C66.9477 24.2152 66.9478 24.2137 66.95 24.0616C66.9505 24.0381 66.9503 24.0145 66.9501 23.991C66.9501 23.9792 66.95 23.9675 66.95 23.9557V18.3169C66.95 18.3012 66.9502 18.2855 66.9505 18.2698C66.951 18.2385 66.9515 18.2071 66.95 18.1757C66.9463 18.1081 66.9758 18.078 67.0437 18.0817C67.0712 18.0831 67.0987 18.0826 67.1263 18.0822C67.14 18.0819 67.1538 18.0817 67.1676 18.0817C67.3722 18.0817 67.5767 18.0818 67.7811 18.0818C68.19 18.082 68.5988 18.0822 69.0079 18.0817C69.1738 18.0817 69.1745 18.0809 69.1753 17.9222C69.1758 17.7458 69.1756 17.5698 69.1754 17.3936C69.1754 17.3055 69.1753 17.2174 69.1753 17.1291C69.1753 17.0357 69.1773 16.9931 69.157 16.9737C69.1365 16.9542 69.0933 16.9582 69.0027 16.9579H64.7564C64.6443 16.9579 64.5322 16.9578 64.4202 16.9577C64.1962 16.9575 63.9723 16.9574 63.7481 16.9579C63.6559 16.9579 63.6115 16.9527 63.5901 16.9724C63.5697 16.9912 63.5704 17.0329 63.5704 17.124C63.5704 17.2122 63.5703 17.3004 63.5702 17.3885C63.57 17.5646 63.5699 17.7407 63.5704 17.917C63.5711 18.0802 63.5718 18.0817 63.7326 18.0817H65.5722C65.6135 18.0817 65.6548 18.0831 65.6961 18.0824C65.7455 18.0809 65.7735 18.1008 65.7728 18.1537C65.7724 18.1819 65.7727 18.2101 65.7731 18.2384C65.7733 18.2572 65.7735 18.276 65.7735 18.2948Z"\n    fill="white"\n  />\n</svg>';
35var qt=function(e,t,i,o){return new(i||(i=Promise))((function(n,a){function r(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,s)}l((o=o.apply(e,t||[])).next())}))},Jt=function(e,t){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(i[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(i[o[n]]=e[o[n]])}return i};class Xt extends vt{get exclusiveOperator(){var e;return null===(e=this._exclusiveOperator)||void 0===e?void 0:e.toLowerCase()}set exclusiveOperator(e){var t;this._exclusiveOperator=(null===(t=null==e?void 0:e.trim())||void 0===t?void 0:t.toLowerCase())||""}get exclusiveOperatorData(){var e,t;if(this.exclusiveOperator&&(null===(e=this.data)||void 0===e?void 0:e.game_odds[this.exclusiveOperator]))return Object.assign({operator:this.exclusiveOperator},null===(t=this.data)||void 0===t?void 0:t.game_odds[this.exclusiveOperator])}get dataFilePath(){var e;return[h.POLYMARKET,h.KALSHI].includes(null===(e=this.dataConfig)||void 0===e?void 0:e.operator)?`predictions/${this.dataset.gameId}_sixpack`:`${Xt.widgetName}/${this.dataset.gameId}`}get gameId(){return this.dataset.gameId||""}get dataConfig(){if(this.dataset.config)try{return JSON.parse(this.dataset.config)}catch(e){this.dataset.config}return{}}get isGameStarted(){var e;return(null===(e=this.data)||void 0===e?void 0:e.meta.start_time)&&new Date(this.data.meta.start_time).getTime()<=(new Date).getTime()}get isGameOver(){var e;return this.isGameStarted&&this.isGameStarted&&Object.values((null===(e=this.data)||void 0===e?void 0:e.game_odds)||{}).map((e=>e?Object.values(e).map((e=>e?Object.values(e).flat():null)).flat():null)).flat().every((e=>!Boolean(e)))}get isGameLive(){return this.isGameStarted&&!this.isGameOver}constructor(){super(),this.data=null,this.operators=void 0,this._exclusiveOperator="",this.compactWidth=580,this.isCompact=void 0,this.resizeObserverDebounced=Bt((e=>{var t;const i=e.at(-1).contentRect.width;this.isCompact=i<=this.compactWidth,null===(t=this.rootElement)||void 0===t||t.classList.toggle("compact",this.isCompact),Xt.components.forEach((e=>{var t;Array.from((null===(t=this.rootElement)||void 0===t?void 0:t.querySelectorAll(e.tagName))||[]).forEach((e=>e.classList.toggle("compact",this.isCompact)))}))}),300),this.resizeObserver=new ResizeObserver((e=>{this.resizeObserverDebounced(e)})),this.rootElement=null,this.dropdownElement=null,this.exclusiveOperatorLabel=null,this.dropdownValue="best",this.tableElement=null,this.statusMarkerElement=null,this.widgetTitle=null,this.isTrackedViewed=!1,this.connectedTime=0,this.renderCount=0,this.renderByChangeDropdown=!1,this.clearAutoUpdateInterval=null,this.betsData=[],this.diffOdds=[],this.diffBtns={curr:[],new:[]},this.onChange=e=>this.changeHandler(e),this.onClick=e=>this.clickHandler(e),this.instanceId=k()}connectedCallback(){return qt(this,void 0,void 0,(function*(){this.shadowRoot||(this.init(),this.addEventListeners(),this.resizeObserver.observe(this),this.dataHubSubscription=zt.subscribe(this.dataFilePath,(e=>{if(Xt.validate(e)&&(this.dataset.gameId,this.remove()),JSON.stringify(this.data)!==JSON.stringify(e)){this.checkDiffBtns(this.data,e);const t=e.game_odds,{best:i}=t,o=Jt(t,["best"]);this.data=Object.assign(Object.assign({},e),{game_odds:Object.assign({best:Gt(o)},o)}),this.render();const n=this.data.game_odds[this.dropdownValue],a=[this.convertData(n,"spread","away"),this.convertData(n,"total","over"),this.convertData(n,"moneyline","away"),this.convertData(n,"spread","home"),this.convertData(n,"total","under"),this.convertData(n,"moneyline","home")];this.betsData=a.map((e=>this.transformBetData(this.data,(null==e?void 0:e.offerId)||""))).filter((e=>!!e)),this.operators=Object.keys(this.data.game_odds||{}).filter((e=>"best"!==e));const r=this.dataConfig;r&&r.instanceId&&(this.instanceId=r.instanceId),z.dispatchImpressionSixPackWidget({instanceId:this.instanceId,version:Xt.ver
35sion,bets:this.betsData,operators:this.operators}),this.isTrackedViewed||this.trackViewedOnce()}}),(e=>{this.remove()})),this.clearAutoUpdateInterval=Rt.add(this.dataFilePath))}))}disconnectedCallback(){var e,t,i,o;null===(e=this.dataHubSubscription)||void 0===e||e.call(this),null===(t=this.rootElement)||void 0===t||t.removeEventListener("click",this.onClick),null===(i=this.dropdownElement)||void 0===i||i.removeEventListener("change",this.onChange),this.resizeObserver.unobserve(this),null===(o=this.clearAutoUpdateInterval)||void 0===o||o.call(this)}init(){var e,t;this.attachShadow({mode:"open"}),this.connectedTime=Date.now();let i="";this.isLegalOperator()&&(i=`<sg-marquee text="${Yt((null===(e=this.exclusiveOperator)||void 0===e?void 0:e.toLowerCase())||(null===(t=this.dataConfig)||void 0===t?void 0:t.operator))}"></sg-marquee>`);const o=[h.FANDUEL].includes(this.exclusiveOperator);var n;this.shadowRoot.innerHTML=`\n      <style>:host *{box-sizing:border-box}:host{display:block;--text-color-title: #202121;--text-color-primary: #181818;--text-color-secondary: #5f5f5f;--text-color-tertiary: #767676;display:block;container-type:inline-size;font:500 14px/1.2 "TT Norms",Helvetica,Arial,sans-serif;font-variation-settings:"slnt" 0,"wdth" 100,"ital" 0}#root{padding:12px 0;background:#fff;color:var(--text-color-primary)}#root.hidden{display:none}#root.c-pointer{cursor:pointer}.header{display:flex;justify-content:space-between;align-items:center;color:var(--text-color-title);margin-bottom:21px}.header h1{margin:0;font-size:20px;line-height:1.3;letter-spacing:-0.7px}.header .header-title{display:flex;justify-content:space-between;align-items:center;gap:16px}#status-marker{display:none;color:#fff;background-color:#e10500;padding:4px 8px;border-radius:6px;font-size:12px;font-weight:700}sg-dropdown{--options-max-height: 200px;min-width:130px}#exclusive-operator-label{box-sizing:border-box;height:32px;display:flex;align-items:center;gap:4px;color:#767676;background-color:#b9b9b9;padding:2px 10px;border-radius:4px;margin-bottom:9px;text-transform:uppercase}#exclusive-operator-label.label-draftkings{color:#61b546;background-color:rgba(97,181,70,.1019607843)}#exclusive-operator-label.label-fanduel{text-transform:none;background-color:rgba(0,0,0,0);color:var(--text-color-primary);padding:0}#exclusive-operator-label.label-fanduel .text{font-family:"TT Norms",Helvetica,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:500;line-height:120%}#exclusive-operator-label.label-betmgm{color:#b6a06c;background-color:rgba(182,160,108,.1019607843)}#exclusive-operator-label.label-caesars{color:#0a3331;background-color:rgba(10,51,49,.1019607843)}#exclusive-operator-label.label-kalshi,#exclusive-operator-label.label-polymarket{background-color:rgba(0,0,0,0);padding:0;height:auto}#exclusive-operator-label .logo{width:16px;height:16px;background-position:center;background-size:contain}#exclusive-operator-label .logo.op-draftkings{margin-bottom:4px}#exclusive-operator-label .text{padding-top:2px;font-size:12px;line-height:1.2;font-weight:700}#exclusive-operator-label .text::after{content:attr(data-text)}#exclusive-operator-label .text.text-fanduel{padding-top:9px}.grid-parent{display:grid;grid-template-columns:minmax(70px, 135px) repeat(3, minmax(90px, 1fr));grid-template-rows:20px repeat(2, 1fr);gap:8px;align-items:center}.grid-parent-item{text-align:center;height:100%}.grid-parent-item.th{color:var(--text-color-secondary)}.grid-parent sg-button-odds{width:100%;min-width:58px;min-height:48px}.grid-vth{grid-row:span 3/span 3;display:grid;grid-template-rows:20px repeat(2, 1fr);gap:8px;align-self:start;height:100%}.grid-vth-item{position:relative;display:flex;align-items:center;justify-content:flex-start;gap:8px}.grid-vth-item .team-logo{width:36px;height:36px;object-fit:contain;object-position:center}.grid-vth-item.date{font-weight:700;align-self:center;word-spacing:2px;white-space:nowrap}.grid-vth-item.date::after{content:attr(data-date-long)}.team{line-height:1;display:flex;height:100%;flex-direction:column;justify-content:center}.at{position:absolute;bottom:94%;left:0;color:var(--text-color-tertiary)}.team-abbr{font-size:20px;font-weight:700;padding-top:1px}.team-info{color:var(--text-color-tertiary)}.unavailable{box-sizing:border-box;color:#ababab;border:1px solid #dcdcdc;padding:10px;border-radius:8px;text-align:center;font-size:16px;min-height:48px;height:100%;display:flex;justify-content:center;align-items:center;cursor:default}.trade-container{padding-top:12px;padding-bottom:0;display:grid;grid-template-columns:minmax(70px, 135px) repeat(1, minmax(280px, 1fr));grid-template-rows:36px repeat(1, 1fr);gap:8px;align-items:center}.vol-text{color:#607280;font-size:12px;line-height:1.2;font-weight:500}.trade-btn .btn{text-align:center;height:36px;padding-top:9px;border-radius:8px;font-size:16px;line-height:1.2;background-color:#ccc}.trade-container.operator-kalshi .btn{background-color:#09c285;color:#fff}.trade-container.operator-polymarket .btn{background-color:#2e5cff;color:#fff}sg-marquee{margin-top:10px;color:var(--text-color-tertiary);font-size:14px}#root.compact{font-size:12px}#root.compact .header{margin-bottom:10px}#root.compact .header h1{font-size:16px;letter-spacing:0}#root.compact .team-abbr{font-size:16px;padding-top:2px;padding-bottom:2px}#root.compact .grid-parent,#root.compact .grid-vth{grid-template-rows:18px repeat(2, 1fr);gap:5px 6px}#root.compact .grid-parent{grid-template-columns:minmax(65px, 135px) repeat(3, minmax(73px, 1fr))}#root.compact .grid-vth-item.date::after{content:attr(data-date-short)}#root.compact .grid-vth-item .team-logo{width:30px;height:30px}#root.compact .trade-container{display:flex;flex-direction:column;align-items:stretch;gap:5px}#root.compact sg-dropdown{min-width:120px;--options-max-height: 180px}#root.compact #exclusive-operator-label{text-transform:none;color:var(--text-color-secondary) !important;background-color:rgba(0,0,0,0) !important;padding:0;margin-bottom:0;height:auto}#root.compact #exclusive-operator-label.label-fanduel{color:var(--text-color-primary) !important}#root.compact #exclusive-operator-label .logo{display:none}#root.compact #exclusive-operator-label .text{font-size:14px;font-weight:500}#root.compact #exclusive-operator-label .text::after{content:attr(data-text-compat)}#root.compact #exclusive-operator-label .text.text-fanduel{padding-top:0px}#root.compact .exclusive-operator-wrapper[data-operator=fanduel] .header{margin-bottom:16px}</style>\n      <style>${Dt}</style>\n      <div id="root" class="hidden">\n        ${o&&this.isLegalOperator()?`\n              <div class="exclusive-operator-wrapper" data-operator="${this.exclusiveOperator}">\n              <div class="exclusive-operator-label">\n                <div class="logo">${n=this.exclusiveOperator,n===h.FANDUEL?Zt:""}</div>\n                <div class="text">Play Your Game</div>\n              </div>\n            `:""}\n        <div class="main">\n          <div class="header">\n            <div class="header-title">\n              <h1 id="widget-title">Game Odds</h1>\n              <div id="status-marker"></div>\n            </div>\n            <sg-dropdown position="right"></sg-dropdown>\n            <div id="exclusive-operator-label" style="display: none;"></div>\n          </div>\n        <div id="table"></div>\n        ${i}\n        </div>\n\n        ${this.exclusiveOperator?"</div>":""}\n      </div>\n    `,this.rootElement=this.shadowRoot.getElementById("root"),this.dropdownElement=this.shadowRoot.querySelector("sg-dropdown"),this.exclusiveOperatorLabel=this.shadowRoot.getElementById("exclusive-operator-label"),this.tableElement=this.shadowRoot.getElementById("table"),this.statusMarkerElement=this.shadowRoot.getElementById("status-marker"),this.widgetTitle=this.shadowRoot.getElementById("widget-title")}render(){return qt(this,void 0,void 0,(function*(){var e,t;if(!this.data)return z.dispatchSixPackWidgetError(this.instanceId,`data is undefined for ${this.dataset.gameId}`,Xt.version),void this.rootElement.classList.add("hidden");if(this.isGameStarted&&this.connectedTime>new Date(this.data.meta.start_time).getTime()&&"ws"!==(null===(e=this.data)||void 0===e?void 0:e.meta)._$src)return void this.rootElement.classList.add("hidden");if(this.isGameOver)return void this.rootElement.classList.add("hidden");this.statusMarkerElement.style.display=this.isGameLive?"block":"none",this.statusMarkerElement.textContent=this.isGameLive?"LIVE":"",this.rootElement.classList.remove("hidden"),void 0===this.isCompact&&(this.isCompact=this.rootElement.clientWidth<=this.compactWidth);const i=null===(t=this.dataConfig)||void 0===t?void 0:t.operator;if([h.KALSHI,h.POLYMARKET].includes(i)){if(!this.data.game_odds[i])return void this.rootElement.classList.add("hidden");this.isLegalOperator()&&this.rootElement.classList.add("c-pointer"),i===h.KALSHI&&(this.widgetTitle.innerText=`${this.data.meta.away_team.name} vs ${this.data.meta.home_team.name}`)}this.renderDropdown(),this.renderTable(),this.renderCount++}))}renderDropdown(){var e,t;if(!this.isLegalOperator())return this.dropdownElement.style.display="none",void(this.exclusiveOperatorLabel.style.display="none");if(this.exclusiveOperator){if(this.dropdownElement.style.display="none",this.exclusiveOperatorData){const e=this.exclusiveOperator.toLowerCase();this.dropdownElement.style.display="none",this.exclusiveOperatorLabel.classList.value=`label-${e}`,this.exclusiveOperatorLabel.innerHTML="fanduel"===e?'\n            <div class="text text-fanduel">In Partnership with FanDuel</div>\n          ':`\n            <div\n              class="text"\n              data-text="Odds provided exclusively by ${O(e)}"\n              data-text-compat="Odds by ${O(e)}"\n            ></div>\n            <div\n              class="logo op-${e}"\n              style="background-image: url(https://sg-platform.cbssports.com/widgets/assets/operators/default/${e}.png)"\n            ></div>\n          `,this.exclusiveOperatorLabel.style.display=""}return void(this.dropdownValue=this.exclusiveOperator)}if(null===(e=this.dataConfig)||void 0===e?void 0:e.operator){const e=this.dataConfig.operator.toLowerCase();return this.dropdownElement.style.display="none",(null===(t=this.data)||void 0===t?void 0:t.game_odds[e])&&(this.dropdownElement.style.display="none",this.exclusiveOperatorLabel.classList.value=`label-${e}`,e===h.KALSHI?this.exclusiveOperatorLabel.innerHTML='<svg width="41" height="12" viewBox="0 0 41 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M13.5758 3.08979C11.1867 3.08979 9.73704 4.16875 9.62156 6.04896H12.1095C12.2084 5.32959 12.6696 4.95354 13.4768 4.95354C14.2841 4.95354 14.729 5.31313 14.7126 5.88542C14.696 6.32687 14.416 6.52311 13.7076 6.62124L12.6862 6.75207C10.3797 7.02998 9.29214 7.89648 9.29214 9.44957C9.29214 11.0027 10.3795 12 12.1917 12C13.345 12 14.2182 11.5913 14.762 10.8065V11.82H17.3321V6.26145C17.3321 4.16875 16.0636 3.08979 13.5758 3.08979ZM13.0322 10.2179C12.2909 10.2179 11.8789 9.89103 11.8789 9.28603C11.8789 8.71375 12.2413 8.43584 13.2464 8.28876L13.7076 8.22334C14.1157 8.16637 14.4515 8.08535 14.729 7.97156V8.82834C14.729 9.64582 14.0372 10.2179 13.0322 10.2179ZM18.2383 0.179791H20.8744V11.82H18.2383V0.179791Z
35M5.58743 5.60857L9.53947 11.82H6.11246L2.88323 6.47437V11.82H0V0.179791H2.88323V5.26205L6.34322 0.179791H9.42419L5.58743 5.60857ZM38.0254 1.38958C38.0254 0.637497 38.6844 0 39.5083 0C40.3321 0 40.9911 0.637497 40.9911 1.38958C40.9911 2.14167 40.3321 2.77916 39.5083 2.77916C38.6844 2.77916 38.0254 2.15791 38.0254 1.38958ZM28.931 9.1552C28.931 11.0679 27.5307 11.9998 25.2076 11.9998C22.8845 11.9998 21.4512 10.9863 21.3689 9.13874H23.8072C23.9061 9.84165 24.2355 10.2341 25.1912 10.2341C26.015 10.2341 26.4104 9.90727 26.4104 9.41665C26.4104 8.92603 25.9325 8.68083 24.7299 8.50126C22.4398 8.19064 21.5173 7.52023 21.5173 5.80375C21.5173 3.98917 23.1813 3.08979 25.043 3.08979C27.0364 3.08979 28.4864 3.79271 28.6841 5.77104H26.2951C26.1799 5.14979 25.8173 4.83916 25.0593 4.83916C24.351 4.83916 23.9555 5.16604 23.9555 5.6075C23.9555 6.09791 24.351 6.2777 25.5206 6.44124C27.7778 6.75186 28.931 7.32393 28.931 9.1552ZM38.1902 3.26958H40.8263V11.82H38.1902V3.26958ZM37.2841 6.14708V11.82H34.6479V6.60478C34.6479 5.68917 34.269 5.21521 33.4452 5.21521C32.6213 5.21521 32.0448 5.73834 32.0448 6.76832V11.82H29.4087V0.179791H32.0448V4.5431C32.4595 3.72602 33.3324 3.08979 34.5984 3.08979C36.1802 3.08979 37.2838 4.08708 37.2838 6.14687L37.2841 6.14708Z" fill="#09C285"/>\n</svg>':e===h.POLYMARKET&&(this.exclusiveOperatorLabel.innerHTML='<svg width="117" height="24" viewBox="0 0 117 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M50.8276 18.1593V4.99934H48.6454V18.1593H50.8276ZM29.4059 13.5503V18.1597H27.1363V5.68528H32.0349C32.9989 5.68528 33.8328 5.85517 34.5368 6.19507C35.2408 6.53485 35.7769 7.00603 36.145 7.60875C36.513 8.21122 36.697 8.89818 36.697 9.66926C36.697 10.4746 36.5144 11.1685 36.1493 11.7511C35.7841 12.3336 35.2526 12.7793 34.5544 13.0877C33.8562 13.3962 33.0165 13.5503 32.0349 13.5503H29.4059ZM29.4058 11.7682H32.0349C32.847 11.7682 33.4472 11.5826 33.8358 11.2114C34.2242 10.8401 34.4185 10.3317 34.4185 9.68626C34.4185 9.28653 34.3338 8.91953 34.1644 8.58538C33.995 8.25123 33.732 7.98279 33.3756 7.78005C33.0193 7.57718 32.5724 7.47581 32.0349 7.47581H29.4058V11.7682ZM42.3294 18.3315C43.235 18.3315 44.0208 18.1287 44.6867 17.7232C45.3528 17.3176 45.8626 16.7579 46.216 16.0439C46.5694 15.33 46.7461 14.5217 46.7461 13.6192V13.4394C46.7461 12.5369 46.5694 11.7287 46.216 11.0147C45.8626 10.3007 45.3514 9.73957 44.6825 9.33115C44.0134 8.92273 43.2233 8.71858 42.3119 8.71858C41.4122 8.71858 40.6293 8.92273 39.9633 9.33115C39.2973 9.73957 38.7876 10.3007 38.4341 11.0147C38.0807 11.7287 37.9039 12.5369 37.9039 13.4394V13.6192C37.9039 14.5217 38.0807 15.33 38.4341 16.0439C38.7876 16.7579 39.2987 17.3176 39.9677 17.7232C40.6366 18.1287 41.4239 18.3315 42.3294 18.3315ZM40.6469 15.7786C41.0208 16.3383 41.5816 16.6181 42.3295 16.6181C42.826 16.6181 43.2423 16.4853 43.5782 16.2197C43.9142 15.9542 44.1625 15.5958 44.3232 15.1445C44.4838 14.6933 44.5641 14.185 44.5641 13.6195V13.4396C44.5641 12.8797 44.4838 12.3729 44.3232 11.9188C44.1625 11.4646 43.9128 11.1035 43.5739 10.8349C43.235 10.5665 42.8144 10.4323 42.3119 10.4323C41.8153 10.4323 41.4005 10.5665 41.0676 10.8349C40.7346 11.1035 40.4876 11.4646 40.327 11.9188C40.1663 12.3729 40.0859 12.8797 40.0859 13.4396V13.6195C40.0859 14.4991 40.273 15.2188 40.6469 15.7786ZM55.8861 21.2128C55.4391 21.6726 54.8008 21.9024 53.9711 21.9024C53.6849 21.9024 53.3374 21.851 52.9284 21.7483V20.1118L53.3315 20.129C53.8514 20.129 54.2472 20.039 54.519 19.859C54.7906 19.6792 55.0053 19.3636 55.1631 18.9123L55.461 18.1241L52.1309 8.88821H54.4883L56.46 15.1083L58.3704 8.88821H60.6927L56.9157 19.5635C56.6762 20.2032 56.333 20.753 55.8861 21.2128ZM64.0643 18.1602V11.4603C64.4149 10.792 65.0078 10.4578 65.8433 10.4578C66.3925 10.4578 66.8084 10.5893 67.092 10.852C67.3755 11.1146 67.5173 11.5573 67.5173 12.1799V18.1602H69.6992V11.9829L69.6904 11.7859C69.8187 11.3803 70.0366 11.0576 70.3432 10.8177C70.65 10.5778 71.0313 10.4578 71.4872 10.4578C72.0418 10.4578 72.4581 10.5821 72.7358 10.8305C73.0134 11.079 73.1522 11.5203 73.1522 12.1543V18.1602H75.3342V12.1629C75.3342 10.969 75.0685 10.0965 74.5364 9.54539C74.0051 8.99418 73.2365 8.71858 72.2321 8.71858C71.5947 8.71858 71.0313 8.84283 70.5402 9.09134C70.0501 9.33971 69.6434 9.68677 69.3225 10.1323C69.083 9.65251 68.7411 9.29689 68.2972 9.06564C67.8531 8.83427 67.333 8.71858 66.7372 8.71858C66.1529 8.71858 65.6315 8.81714 65.1729 9.01413C64.7142 9.21124 64.3244 9.49541 64.0031 9.86663L63.9328 8.88987H61.8822V18.1602H64.0643ZM81.8165 18.0488C81.4016 18.2373 80.9315 18.3315 80.4053 18.3315C79.786 18.3315 79.2316 18.2116 78.7406 17.9716C78.2496 17.7318 77.8668 17.4005 77.5929 16.9779C77.3183 16.5551 77.1811 16.081 77.1811 15.5556C77.1811 14.5675 77.5563 13.8106 78.307 13.2851C79.0577 12.7597 80.1226 12.497 81.5009 12.497H82.8156V11.8972C82.8156 11.406 82.6783 11.0218 82.4038 10.7448C82.1291 10.4678 81.7232 10.3292 81.1852 10.3292C80.8643 10.3292 80.5808 10.3836 80.3352 10.4921C80.0897 10.6006 79.9001 10.7492 79.7658 10.9376C79.6315 11.1261 79.5643 11.3375 79.5643 11.5716H77.3824C77.3824 11.0746 77.5443 10.6078 77.8682 10.1709C78.1928 9.73394 78.654 9.38253 79.2532 9.1169C79.8517 8.8514 80.5367 8.71858 81.3082 8.71858C82.0329 8.71858 82.6724 8.83861 83.2276 9.07843C83.7827 9.31836 84.2162 9.67821 84.5289 10.158C84.8416 10.6377 84.9975 11.2232 84.9975 11.9144V16.0011C84.9975 16.8465 85.1177 17.5176 85.3572 18.0144V18.1602H83.1312C83.0372 17.9602 82.9559 17.6717 82.8858 17.2949C82.5873 17.609 82.2314 17.8603 81.8165 18.0488ZM80.8263 16.6261C80.3651 16.6261 80.0055 16.5074 79.7487 16.2706C79.4913 16.0335 79.363 15.7264 79.363 15.3494C79.363 14.8639 79.5584 14.4869 79.9502 14.2185C80.3413 13.9501 80.9173 13.8158 81.6762 13.8158H82.8156V15.5465C82.6522 15.8435 82.3932 16.0977 82.0403 
3516.3091C81.6867 16.5204 81.2822 16.6261 80.8263 16.6261ZM89.3682 11.8457V18.1602H87.1863V8.88987H89.2629L89.3241 9.93515C89.5636 9.5468 89.8622 9.24691 90.2181 9.0356C90.5748 8.8243 90.9868 8.71858 91.4538 8.71858C91.577 8.71858 91.715 8.72996 91.8703 8.75284C92.0247 8.77572 92.1403 8.80142 92.2165 8.82992L92.1985 10.8434C91.9067 10.7976 91.6173 10.7747 91.3314 10.7747C90.3555 10.7747 89.7009 11.1318 89.3682 11.8457ZM95.7102 18.1593V15.1519L96.6661 14.201L99.4264 18.1593H101.95L98.0683 12.7445L101.582 8.88898H98.9533L96.3595 11.7592L95.7102 12.5474V4.99934H93.5372V18.1593H95.7102ZM109.344 17.8346C108.731 18.1658 107.988 18.3315 107.118 18.3315C106.195 18.3315 105.389 18.1359 104.699 17.7446C104.01 17.3534 103.481 16.8178 103.113 16.1381C102.745 15.4585 102.561 14.696 102.561 13.8506V13.4993C102.561 12.5455 102.748 11.7073 103.122 10.9848C103.496 10.2623 104.01 9.7039 104.664 9.3098C105.318 8.9157 106.055 8.71858 106.873 8.71858C107.767 8.71858 108.518 8.90994 109.125 9.29267C109.732 9.67527 110.186 10.2108 110.488 10.8991C110.788 11.5874 110.939 12.3855 110.939 13.2938V14.1933H104.761C104.801 14.6673 104.927 15.0872 105.138 15.4527C105.348 15.8183 105.633 16.1039 105.992 16.3096C106.351 16.5152 106.771 16.618 107.25 16.618C108.231 16.618 109.02 16.241 109.616 15.4871L110.782 16.5923C110.437 17.0892 109.958 17.5034 109.344 17.8346ZM108.783 12.6513H104.804C104.904 11.9487 105.129 11.4034 105.48 11.0149C105.83 10.6265 106.292 10.4323 106.864 10.4323C107.506 10.4323 107.98 10.6251 108.284 11.0107C108.588 11.3961 108.754 11.8888 108.783 12.4886V12.6513ZM117 18.1258C116.58 18.2628 116.108 18.3313 115.581 18.3313C114.809 18.3313 114.202 18.1228 113.759 17.7059C113.314 17.2889 113.092 16.6235 113.092 15.7097V10.4662H111.55V8.88975H113.092V6.62791H115.274V8.88975H116.94V10.4662H115.274V15.5639C115.274 15.9524 115.356 16.2166 115.519 16.3565C115.684 16.4965 115.929 16.5664 116.255 16.5664C116.489 16.5664 116.738 16.5379 117 16.4807V18.1258Z" fill="#2E5CFF"/>\n<path d="M17.5152 20.7558C17.5152 21.6845 17.5152 22.1487 17.21 22.3788C16.905 22.6091 16.456 22.4837 15.5577 22.2327L1.12468 18.2011C0.583527 18.05 0.312952 17.9744 0.156412 17.7689C2.90861e-07 17.5635 0 17.2836 0 16.7242V7.27575C0 6.71637 2.90861e-07 6.43654 0.156412 6.23112C0.312952 6.02557 0.583527 5.95002 1.12468 5.79892L15.5577 1.76726C16.456 1.51633 16.905 1.39093 17.21 1.62115C17.5152 1.85125 17.5152 2.31553 17.5152 3.24422V20.7558ZM3.59952 16.8867L15.5502 20.2253V13.5484L3.59952 16.8867ZM1.96478 15.3378L13.9131 12L1.96478 8.66221V15.3378ZM3.59939 7.11328L15.5502 10.4517V3.77472L3.59939 7.11328Z" fill="#2E5CFF"/>\n</svg>'),this.exclusiveOperatorLabel.style.display=""),void(this.dropdownValue=this.dataConfig.operator)}this.dropdownElement.style.display="",this.exclusiveOperatorLabel.style.display="none";let i=Object.entries(this.data.game_odds).filter((([e,t])=>Boolean(t))).map((([e])=>{let t=O(e.toLowerCase()),i=`https://sg-platform.cbssports.com/widgets/assets/operators/default/${e}.png`,o=i;return"best"===e&&(i="https://sg-platform.cbssports.com/widgets/assets/best-odds.svg",o=""),{label:t,value:e,optionIcon:i,valueIcon:o}}));this.dropdownValue&&i.some((e=>e.value===this.dropdownValue))||(this.dropdownValue=i[0].value),this.dropdownElement.value=this.dropdownValue,this.dropdownElement.options=i}renderTable(){var e,t,i;const o=this.data,n=(null===(e=this.dataConfig)||void 0===e?void 0:e.operator)||"",a=[h.KALSHI,h.POLYMARKET].includes(n),r=this.exclusiveOperator?o.game_odds[this.exclusiveOperator]:n?o.game_odds[n]:o.game_odds[this.dropdownValue],s=[],l=Boolean(!this.isLegalOperator()||this.exclusiveOperator&&!this.exclusiveOperatorData),d="best"===this.dropdownValue||Boolean(this.exclusiveOperator&&this.exclusiveOperatorData);if(s.push(this.convertData(r,"spread","away",!l&&d)),s.push(this.convertData(r,"total","over",!l&&d)),s.push(this.convertData(r,"moneyline","away",!l&&d)),s.push(this.convertData(r,"spread","home",!l&&d)),s.push(this.convertData(r,"total","under",!l&&d)),s.push(this.convertData(r,"moneyline","home",!l&&d)),0===(null===(t=null==s?void 0:s.filter((e=>null!==e)))||void 0===t?void 0:t.length))return void(null===(i=this.rootElement)||void 0===i||i.classList.add("hidden"));this.diffBtns.new=s.map((e=>(null==e?void 0:e.btnId)||null));const c=s.map(((e,t)=>{var i,o;const n=null==e?void 0:e.offerId.split("@")[0];let a;this.data&&"marketIds"in this.data&&(a=null===(o=null===(i=Object.entries(this.data.marketIds))||void 0===i?void 0:i.find((([e,t])=>`${t}`==`${n}`)))||void 0===o?void 0:o[0]);const r=null==e?void 0:e.offerId.split("@")[1],s=this.renderCount>0&&!this.renderByChangeDropdown&&((null==e?void 0:e.btnId)&&this.diffOdds.includes(e.btnId)||this.diffBtns.curr[t]!==this.diffBtns.new[t]);return`\n        <div class="grid-parent-item">\n          ${e?`<sg-button-odds\n              class="${this.isCompact?"compact":""}"\n              ${s?"highlight":""}\n              data-props='${JSON.stringify(e.data)}'\n              data-offer-id="${e.offerId}"\n              ${l?"disabled":""}\n              data-testid="sixpack-bet-button"\n              data-bet-type="${a}"\n              data-side="${r}"\n            ></sg-button-odds>
35`:'<div class="unavailable">---</div>'}\n        </div>\n      `})).join("");this.diffOdds=[],this.diffBtns.curr=s.map((e=>(null==e?void 0:e.btnId)||"")),this.renderByChangeDropdown=!1;const p="no-heading"!==this.getAttribute("data-variant");this.tableElement.innerHTML=`\n      <div class="grid-parent">\n        <div class="grid-vth">\n          <div\n            class="grid-vth-item date"\n            data-date-long="${p?Mt(o.meta.start_time):""}"\n            data-date-short="${p?Mt(o.meta.start_time,"short"):""}"\n          ></div>\n          <div class="grid-vth-item">\n            <div class="team">\n              <div class="team-abbr">${o.meta.away_team.name}</div>\n              ${a?"":`<div class="team-info">${o.meta.away_team.record.total_wins}-${o.meta.away_team.record.total_losses}</div>`}\n            </div>\n          </div>\n          <div class="grid-vth-item">\n            <div class="at">@</div>\n            <div class="team">\n              <div class="team-abbr">${o.meta.home_team.name}</div>\n              ${a?"":`<div class="team-info">${o.meta.home_team.record.total_wins}-${o.meta.home_team.record.total_losses}</div>`}\n            </div>\n          </div>\n        </div>\n\n        <div class="grid-parent-item th">\n          ${n?"Margin":"Spread"}\n        </div>\n        <div class="grid-parent-item th">\n          ${n?"Total points":"Total"}\n        </div>\n        <div class="grid-parent-item th">\n          ${n?"Winner":"Moneyline"}\n        </div>\n\n        ${c}\n      </div>\n      ${n&&this.isLegalOperator()?`\n        <div class="trade-container operator-${n}">\n          <div class="trade-vol">\n            ${(null==o?void 0:o.meta.volume)?`${this.formatVolume(null==o?void 0:o.meta.volume)} <span class="vol-text">vol</span>`:""}\n          </div>\n          <div class="trade-btn">\n            <div class="btn">Trade Now</div>\n          </div>\n        </div>\n      `:""}\n    `}checkDiffBtns(e,t){var i,o;const n=null==e?void 0:e.game_odds,a=null==t?void 0:t.game_odds;if(!n||!a)return void(this.diffOdds=[]);const r=[],s=Object.keys(Object.assign(Object.assign({},n),a)).filter((e=>"best"!==e.toLowerCase()));for(const e of s){const t=Object.keys(Object.assign(Object.assign({},n[e]||{}),a[e]||{}));for(const s of t){const t=null===(i=n[e])||void 0===i?void 0:i[s],l=null===(o=a[e])||void 0===o?void 0:o[s],d=Object.keys(Object.assign(Object.assign({},t||{}),l||{}));for(const i of d)if(t&&l){const o=t[i],n=l[i];(null==o?void 0:o.line)===(null==n?void 0:n.line)&&(null==o?void 0:o.odds)===(null==n?void 0:n.odds)||r.push(`${e}.${s}.${i}`)}else(t&&!l||!t&&l)&&r.push(`${e}.${s}.${i}`)}}this.diffOdds=r}convertData(e,t,i,o=!0){var n,a;if(!e||!e[t]||!e[t][i])return null;const r=null===(n=this.dataConfig)||void 0===n?void 0:n.operator,s=[h.KALSHI,h.POLYMARKET].includes(r),l=e[t][i],d=l.operator||this.dropdownValue,c={over:s?"> ":"O ",under:s?"< ":"U "}[i]||"";return{offerId:`${null===(a=this.data)||void 0===a?void 0:a.marketIds[t]}@${i}`,btnId:`${d}.${t}.${i}`,data:{line:`${c||""}${c?l.line||"":Lt(l.line||"")}`,odds:s?`${x(l.odds)}%`:Lt(l.odds||""),operatorIcon:Qt[d]||(d?`https://sg-platform.cbssports.com/widgets/assets/operators/square/${d}.png`:""),isShowOperatorIcon:o}}}changeHandler(e){const t=e;this.dropdownValue=t.detail.value,this.renderTable();const i=this.data;if(i){const e=i.game_odds[t.detail.value],o=[this.convertData(e,"spread","away"),this.convertData(e,"total","over"),this.convertData(e,"moneyline","away"),this.convertData(e,"spread","home"),this.convertData(e,"total","under"),this.convertData(e,"moneyline","home")];this.betsData=o.map((e=>this.transformBetData(i,(null==e?void 0:e.offerId)||""))).filter((e=>
35!!e)),z.dispatchSixPackWidgetAction(M.CHANGE_BOOK,this.instanceId,{betData:{bets:this.betsData,forceOperatorUpdate:this.dropdownValue,operators:this.operators}})}}clickHandler(e){var t;let i;const o=null===(t=this.dataConfig)||void 0===t?void 0:t.operator;if(![h.KALSHI,h.POLYMARKET].includes(o)||this.isLegalOperator()){if(o===h.KALSHI){e.preventDefault();const t=I.getKalshiDeepLink({instanceId:this.instanceId,widgetConfig:this.dataConfig,eventLink:this.data.meta.event_link||"",clickoutElement:"kalshi_sixpack"});return z.dispatchSixPackWidgetAction(M.EXIT_CLICK,this.instanceId,{clickOutLink:t}),void(t?(this.exitClickSnippet(o,o),window.open(t,"_blank")):z.dispatchSixPackWidgetError(this.instanceId,"No deep link provided",Xt.version))}if(i=e.target.closest(St.tagName))if(e.preventDefault(),i.hasAttribute("disabled"))P.trackEvent("widget_clickout_attempt",this,{operators:this.operators});else{const e=i.getAttribute("data-offer-id"),t=this.transformBetData(this.data,e),o=I.getClickoutUrl({op:t.bet.operator,clickoutElement:"6pack",dl:t.bet.deepLink},this.instanceId);z.dispatchSixPackWidgetAction(M.EXIT_CLICK,this.instanceId,{clickOutLink:o||""}),o?(this.exitClickSnippet(t,t.bet.operator),window.open(o,"_blank")):z.dispatchSixPackWidgetError(this.instanceId,"No deep link provided",Xt.version)}else(i=e.target.closest(Nt.tagName))&&(this.renderByChangeDropdown=!0,P.trackEvent("widget_engagement",this,{action:"dropdown "+(i.isOpened?"open":"close"),operators:this.operators}))}else P.trackEvent("widget_clickout_attempt",this,{operators:o})}exitClickSnippet(e,t){let i="";"object"==typeof e?i=X(e,M.SG_ADD,{},t).betKey:"string"==typeof e&&(i=e);const o={widgetType:Xt.widgetName,widgetId:this.instanceId,bets:this.betsData.map(((e,t)=>Object.assign({position:t+1},X(e,M.SG_ADD,{},e.bet.operator)))),data:{betKey:i}};P.trackEvent(M.SG_CLICK_OUT,this,o)}transformBetData(e,t){var i,o;const[n,a]=t.split("@"),r=Object.entries(e.marketIds).find((([e,t])=>`${t}`==`${n}`));if(!r)return null;const s=r[0],l=((e,t)=>{try{if(t===N.SIX_PACK)return`${e.meta.league_name}@${e.meta.away_team.name}@${e.meta.home_team.name}@${e.meta.start_time}`.toUpperCase()}catch(e){}return""})(e,Xt.widgetName),d=e.game_odds[this.dropdownValue][s][a],c=d.operator||this.dropdownValue,p=e.meta,u=this.dataFilePath,h=e.game_odds,{best:g}=h,m=Jt(h,["best"]),b=Object.entries(m).reduce(((e,t)=>{var i;const[o,n]=t;if(!n)return e;const r=n[s];return r&&r[a]?Object.assign(Object.assign({},e),{[o]:Object.assign(Object.assign({},r[a]),{line:null!==(i=r[a].line)&&void 0!==i?i:0})}):e}),{}),v=this.dataConfig;return{offerId:`${null===(i=e.marketIds)||void 0===i?void 0:i[s]}@${a}`,gameKey:l,gameId:this.dataset.gameId,dataId:u,game:{leagueName:p.league_name,startTime:p.start_time,homeTeam:{abbr:p.home_team.name},awayTeam:{abbr:p.away_team.name},status:p.status},bet:{operator:c,market:{type:s,id:String(e.marketIds[s])},position:a,line:null!==(o=d.line)&&void 0!==o?o:0,odds:d.odds,deepLink:d.deep_link,entity:{text1:"",text2:"",action:"",color:"",awayBgColor:v.awayTeamColor,homeBgColor:v.homeTeamColor,awayTeamLogoUrl:v.awayTeamLogoUrl,homeTeamLogoUrl:v.homeTeamLogoUrl,overUnderColor:v.overUnderColor,type:"team"}},offers:b,originalData:e}}addEventListeners(){var e;this.rootElement.addEventListener("click",this.onClick),null===(e=this.dropdownElement)||void 0===e||e.addEventListener("change",this.onChange)}trackViewedOnce(){const e=this;if(!e||!this.instanceId||this.isTrackedViewed)return;this.isTrackedViewed=!0;let t=!1;const i=()=>{t||(t=!0,z.dispatchSixPackWidgetAction(M.VIEWED,this.instanceId,{betData:{operators:this.operators}}),o.disconnect(),window.removeEventListener("scroll",n,!0))};let o={};"IntersectionObserver"in window&&(o=new IntersectionObserver((([e])=>{e.isIntersecting&&e.intersectionRatio>=.5&&i()}),{threshold:.5}),o.observe(e));const n=()=>{const t=e.getBoundingClientRect();Math.max(0,Math.min(t.bottom,window.innerHeight)-Math.max(t.top,0))/t.height>=.5&&i()};o||window.addEventListener("scroll",n,!0)}formatVolume(e){return`$${Math.round(e).toLocaleString("en-US").replace(/,/g," ")}`}isLegalOperator(){var e,t;const i=null===(e=this.dataConfig)||void 0===e?void 0:e.operator;if(i&&[h.KALSHI,h.POLYMARKET].includes(i)){const e=n.getItem("legalityByOperator");if(e){const o=null===(t=e[i])||void 0===t?void 0:t.legal;if("boolean"==typeof o)return o}}return Boolean(n.getItem("legal"))}static create(e,t){this.register();const i=document.createElement(this.tagName);return e&&Object.entries(e).forEach((([e,t])=>{i.dataset[e]=t})),t&&(i.exclusiveOperator=t),i}static validate(e){return""}}Xt.version="2.2.0",Xt.tagName=`sg-${N.SIX_PACK}`,Xt.widgetName=N.SIX_PACK,Xt.components=[St,Nt,Ft];const ei=e=>e instanceof Error?{name:e.name,message:e.message,stack:e.stack}:{message:String(e)},ti=e=>{const t=e.dataset.config;if(t)try{return JSON.parse(t)}catch(e){}return null};
35var ii=function(e,t,i,o){return new(i||(i=Promise))((function(n,a){function r(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,s)}l((o=o.apply(e,t||[])).next())}))},oi=function(e,t,i,o){var n,a=arguments.length,r=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(a<3?n(r):a>3?n(t,i,r):n(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class ni extends bt{constructor(){super(...arguments),this.view="normal"}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}render(){const e=this.operator&&Qt[this.operator];return Ze`
36      ${e?Ze`<div class="icon-container">
37            <div class="icon" style="background-image: url(${e})"></div>
38          </div>`:Je}
39      <div class="content">
40        ${this.line?Ze`<div class="text">${this.line}</div>`:Je}
41        ${this.odds?Ze`<div class="text">${this.odds}</div>`:Je}
42      </div>
43    `}}ni.tagName="sg-button-bet",ni.styles=[ue(':host *{box-sizing:border-box}:host{--text-color-primary: #181818;container-type:inline-size;display:flex;flex-direction:row-reverse;justify-content:space-between;padding:12px 8px;align-items:center;height:48px;min-width:60px;border:1px solid #dcdcdc;border-radius:8px;cursor:pointer;background-color:#fff;gap:6px;color:var(--text-color-primary);font-size:16px;line-height:1}:host(:hover){background-color:#f5f8ff;border-color:#004ace}:host(.highlight){animation:highlight 1s linear}:host([disabled]){cursor:default;border-color:rgba(0,0,0,0);background-color:rgba(0,0,0,0)}.content{display:flex;flex:1;gap:6px;justify-content:center;align-items:flex-end;height:100%}:host([view=compact]) .content{flex-direction:column;align-items:center}.icon-container+.content::before{content:"";display:block;flex:0 0 20px}.text{white-space:nowrap;font-weight:700}.text+.text{font-size:14px;font-weight:500;padding-bottom:1px}.icon{width:20px;height:20px;min-width:20px;min-height:20px;border-radius:4px;background:no-repeat center/contain}:host([view=compact]){gap:0;font-size:14px;align-items:flex-end;justify-content:space-between;padding:3px}:host([view=compact]) .icon-container{width:1px;height:1px;display:flex;align-items:flex-end;justify-content:flex-end}:host([view=compact]) .icon-container+.content::before{display:none}:host([view=compact]) .icon{width:14px;height:14px;min-width:14px;min-height:14px}:host([view=compact]) .text+.text{font-size:12px;padding-bottom:0}:host(.compact) #root{padding:5px;font-size:14px;flex-direction:column}:host(.compact) #root .text:nth-child(2){font-size:12px}:host(.compact) #root .icon{right:4px;bottom:4px;top:auto;margin-top:0;width:14px;height:14px;min-width:14px;min-height:14px}:host(.compact) #root .selected-mark{left:50%;margin-left:-9px}@keyframes highlight{0%{border-color:#dcdcdc}20%{border-color:#ebaa17}80%{border-color:#ebaa17}100%{border-color:#dcdcdc}}')],oi([wt({type:String,attribute:"line",reflect:!0})],ni.prototype,"line",void 0),oi([wt({type:String,attribute:"odds",reflect:!0})],ni.prototype,"odds",void 0),oi([wt({type:String,attribute:"operator",reflect:!0})],ni.prototype,"operator",void 0),oi([wt({type:Boolean,attribute:"disabled",reflect:!0})],ni.prototype,"disabled",void 0),oi([wt({type:String,attribute:"view",reflect:!0})],ni.prototype,"view",void 0);var ai=function(e,t,i,o){var n,a=arguments.length,r=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(a<3?n(r):a>3?n(t,i,r):n(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class ri extends bt{constructor(){super(...arguments),this.gameId=void 0,this.instanceId=void 0,this.exclusiveOperator=void 0,this.dataConfig=void 0,this.data=void 0,this.operator="best",this.isCompact=!0,this.highlights0=!1,this.highlights1=!1,this.highlights2=!1,this.highlights=[{isHighlighted:!1,timer:null,btn:null},{isHighlighted:!1,timer:null,btn:null},{isHighlighted:!1,timer:null,btn:null}],this.operators=[],this.compactWidth=580,this.resizeObserver=new ResizeObserver((e=>{const t=e.at(-1).contentRect.width;this.isCompact=t<=this.compactWidth})),this.betsData=[],this.originalData=void 0,this.animatedButton={0:{timer:null,clearTimer:()=>{clearTimeout(this.animatedButton[0].timer),this.animatedButton[0].timer=null}}},this.isTrackImpression=!1,this.isTrackedViewed=!1,this.clearAutoUpdateInterval=null}get isGameStarted(){var e;return(null===(e=this.data)||void 0===e?void 0:e.meta.start_time)&&new Date(this.data.meta.start_time).getTime()<=(new Date).getTime()}get isGameOver(){var e;return this.isGameStarted&&this.isGameStarted&&Object.values((null===(e=this.data)||void 0===e?void 0:e.game_odds)||{}).map((e=>e?Object.values(e).map((e=>e?Object.values(e).flat():null)).flat():null)).flat().every((e=>!Boolean(e)))}get isGameLive(){return this.isGameStarted&&!this.isGameOver}connectedCallback(){super.connectedCallback(),this.resizeObserver.observe(this),this.instanceId||(this.instanceId=k()),this.operator=this.exclusiveOperator||"best";const e=`six-pack/${this.gameId}`;this.dataHubSubscription=zt.subscribe(e,(e=>{if(ri.validate(e))return this.dataset.gameId,void this.remove();this.originalData=Object.assign({},e);const t=e.game_odds,{best:i}=t,o=function(e,t){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(i[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(i[o[n]]=e[o[n]])}return i}(t,["best"]);this.data=Object.assign(Object.assign({},e),{game_odds:Object.assign({best:Gt(o)},Object.keys(o).reduce(((e,t)=>{var i;const n=null!==(i=o[t])&&void 0!==i?i:{};return Object.assign(Object.assign({},e),{[t]:Object.keys(n).reduce(((e,i)=>{var o;const a=null!==(o=n[i])&&void 0!==o?o:{};return Object.assign(Object.assign({},e),{[i]:Object.keys(a).reduce(((e,i)=>Object.assign(Object.assign({},e),{[i]:Object.assign(Object.assign({},a[i]),{operator:t})})),{})})}),{})})}),{}))}),this.operators=Object.keys(this.data.game_odds||{}).filter((e=>"best"!==e)),this.trackImpression(),this.trackViewedOnce()}),(e=>{this.remove()}
43)),this.clearAutoUpdateInterval=Rt.add(e)}disconnectedCallback(){var e,t;super.disconnectedCallback(),this.resizeObserver.unobserve(this),null===(e=this.dataHubSubscription)||void 0===e||e.call(this),null===(t=this.clearAutoUpdateInterval)||void 0===t||t.call(this)}render(){if(this.isGameOver)return Je;const e=!!n.getItem("legal"),t=this.renderTableContent();return t===Je?Je:[h.FANDUEL,h.DRAFTKINGS,h.BETMGM,h.CAESARS].includes(this.exclusiveOperator)&&e?this.wrapExclusiveOperator(t,this.exclusiveOperator):Ze`<div class="main">${t}</div>`}renderTableContent(){var e,t,i,o;const a=null===(i=null===(t=null===(e=this.data)||void 0===e?void 0:e.game_odds)||void 0===t?void 0:t[this.operator])||void 0===i?void 0:i.moneyline;if(!this.data||!a)return z.dispatchWorldCupWidgetError(this.instanceId,`data is undefined for ${this.gameId}`,ri.version),Je;const r=!n.getItem("legal");let s="";r||(s=Yt(null===(o=this.exclusiveOperator)||void 0===o?void 0:o.toLowerCase()));const l=[a.home||null,a.draw||null,a.away||null].map((e=>e&&(e.line||e.odds)?e:null));return 0===l.filter(Boolean).length?Je:(l.forEach(((e,t)=>{((e,t)=>{if(!e||!t)return!1;if(!e&&t||e&&!t)return!0;for(const i of["line","odds","operator"])if(e[i]!==t[i])return!0;return!1})(this.highlights[t].btn,e)&&(clearTimeout(this.highlights[t].timer),this.highlights[t].timer=setTimeout((()=>{this[`highlights${t}`]=!1}),1e3),this[`highlights${t}`]=!0),this.highlights[t].btn=e})),Ze`
44      ${this.isGameLive&&!this.exclusiveOperator?Ze`<div class="live">Live</div>`:Je}
45      <div class="table">
46        <div class="cell">
47          <div
48            class="date"
49            data-date-full="${Mt(this.data.meta.start_time,"full")}"
50            data-date-short="${Mt(this.data.meta.start_time,"short")}"
51          ></div>
52        </div>
53        <div class="cell">
54          <div
55            class="side"
56            data-side-short="${this.data.meta.home_team.name}"
57            data-side-full="${this.data.meta.home_team.full_name}"
58          ></div>
59        </div>
60        <div class="cell">
61          <div class="side side-draw">Draw</div>
62        </div>
63        <div class="cell">
64          <div
65            class="side"
66            data-side-short="${this.data.meta.away_team.name}"
67            data-side-full="${this.data.meta.away_team.full_name}"
68          ></div>
69        </div>
70
71        <div class="cell">
72          <div class="teams">
73            <div
74              class="team"
75              data-team-full="${this.data.meta.home_team.full_name}"
76              data-team-short="${this.data.meta.home_team.name}"
77            >
78            </div>
79            <div
80              class="team"
81              data-team-full="${this.data.meta.away_team.full_name}"
82              data-team-short="${this.data.meta.away_team.name}"
83            >
84            </div>
85          </div>
86        </div>
87
88        ${l.map(((e,t)=>Ze`
89            <div class="cell">
90              ${e?Ze`
91                    <sg-button-bet
92                      class=${Ot({highlighted:this[`highlights${t}`]})}
93                      view="${this.isCompact?"compact":"normal"}"
94                      line="${e.line?Lt(e.line):""}"
95                      odds="${e.odds?Lt(e.odds):""}"
96                      operator="${r?"":e.operator}"
97                      ?disabled=${r}
98                      @click=${()=>this.handleBtnClick(e,r)}
99                    ></sg-button-bet>
100                  `:Ze`<div class="unavailable">---</div>`}
101            </div>
102          `))}
103      </div>
104      ${s?Ze`<sg-marquee text="${s}"></sg-marquee>`:Je}
105    `)}wrapExclusiveOperator(e,t){return t===h.FANDUEL?Ze`
106        <div class="exclusive-operator-wrapper" data-operator="${t}">
107          <div class="exclusive-operator-label">
108            <div class="logo">${(e=>e===h.FANDUEL?Ze`${Ht(Zt)}`:Je)(t)}</div>
109            <div class="text">Play Your Game</div>
110          </div>
111          <div class="main">
112            <div class="operator-label-wrapper">
113              <div>${this.isGameLive?Ze`<div class="live">Live</div>`:Je}</div>
114              <div class="operator-label label-${t}">
115                <div class="text">In Partnership with FanDuel</div>
116              </div>
117            </div>
118            ${e}
119          </div>
120        </div>
121      `:Ze`
122      <div class="exclusive-operator-wrapper" data-operator="${t}">
123        <div class="main">
124          <div class="operator-label-wrapper">
125            <div class="operator-label label-${t}">
126              <div
127                class="text"
128                data-text="Odds provided exclusively by ${O(t)}"
129                data-text-compat="Odds by ${O(t)}"
130              ></div>
131              <div
132                class="logo op-${t}"
133                style="background-image: url(${"https://sg-platform.cbssports.com"}/widgets/assets/operators/default/${t}.png)"
134              ></div>
135            </div>
136          </div>
137          ${e}
138        </div>
139      </div>
140    `}trackImpression(){var e,t,i;if(this.isTrackImpression)return;this.isTrackImpression=!0;const o=(e,t)=>{var i;return e?{offerId:`${null===(i=this.data)||void 0===i?void 0:i.marketIds.moneyline}@${t}`,btnId:`${e.operator}.moneyline.${t}`,operator:e.operator,side:t,bet:e,data:{line:"",odds:`${Lt(e.odds||"")}`}}:null},n=null===(i=null===(t=null===(e=this.data)||void 0===e?void 0:e.game_odds)||void 0===t?void 0:t[this.operator])||void 0===i?void 0:i.moneyline,a=[(null==n?void 0:n.home)||null,(null==n?void 0:n.draw)||null,(null==n?void 0:n.away)||null],r=[o(a[0],"home"),o(a[1],"draw"),o(a[2],"away")];this.betsData=r.reduce(((e,t)=>{var i,o,n,a,r,s,l,d,c,p,u,h,g,m,b,v,f;if(!t)return e;try{const y=null!==(i=t.operator)&&void 0!==i?i:"";e.push({offerId:t.offerId,gameKey:`${null===(o=this.data)||void 0===o?void 0:o.meta.league_name}@${null===(n=this.data)||void 0===n?void 0:n.meta.away_team.name}@${null===(a=this.data)||void 0===a?void 0:a.meta.home_team.name}@${null===(r=this.data)||void 0===r?void 0:r.meta.start_time}`,gameId:this.gameId,dataId:`${ri.widgetName}/${this.gameId}`,game:{leagueName:null!==(l=null===(s=this.data)||void 0===s?void 0:s.meta.league_name)&&void 0!==l?l:"",startTime:null!==(c=null===(d=this.data)||void 0===d?void 0:d.meta.start_time)&&void 0!==c?c:"",homeTeam:{abbr:null!==(u=null===(p=this.data)||void 0===p?void 0:p.meta.home_team.name)&&void 0!==u?u:""},awayTeam:{abbr:null!==(g=null===(h=this.data)||void 0===h?void 0:h.meta.away_team.name)&&void 0!==g?g:""},status:null!==(b=null===(m=this.data)||void 0===m?void 0:m.meta.status)&&void 0!==b?b:""},bet:{operator:y,market:{type:"moneyline",id:null===(v=this.data)||void 0===v?void 0:v.marketIds.moneyline},position:t.side,line:null!==(f=t.bet.line)&&void 0!==f?f:0,odds:t.bet.odds,deepLink:t.bet.deep_link,entity:{text1:"",text2:"",action:"",color:"",type:"draw"===t.side?"outcome":"team"}},offers:{[y]:t.bet},originalData:this.originalData})}catch(e){}return e}),[]),z.dispatchImpressionWorldCupWidget({instanceId:this.instanceId,version:ri.version,bets:this.betsData,operators:[...new Set(a.map((e=>
140null==e?void 0:e.operator)).filter(Boolean))]})}trackViewedOnce(){const e=this;if(!this.instanceId||this.isTrackedViewed)return;this.isTrackedViewed=!0;let t=!1;const i=()=>{t||(t=!0,z.dispatchWorldCupWidgetAction(M.VIEWED,this.instanceId,{betData:{operators:this.operators}}),o.disconnect(),window.removeEventListener("scroll",n,!0))};let o={};"IntersectionObserver"in window&&(o=new IntersectionObserver((([e])=>{e.isIntersecting&&e.intersectionRatio>=.5&&i()}),{threshold:.5}),o.observe(e));const n=()=>{const t=e.getBoundingClientRect();Math.max(0,Math.min(t.bottom,window.innerHeight)-Math.max(t.top,0))/t.height>=.5&&i()};o||window.addEventListener("scroll",n,!0)}handleBtnClick(e,t){var i;if(t)return void P.trackEvent("widget_clickout_attempt",this,{operators:[null!==(i=e.operator)&&void 0!==i?i:""]});const o=I.getClickoutUrl({op:e.operator,clickoutElement:"world-cup",dl:e.deep_link},this.instanceId);z.dispatchWorldCupWidgetAction(M.EXIT_CLICK,this.instanceId,{clickOutLink:o||""}),o?(this.exitClickSnippet(e),window.open(o,"_blank")):z.dispatchWorldCupWidgetError(this.instanceId,"No deep link provided",ri.version)}exitClickSnippet(e){const{betKey:t}=X(e,M.SG_ADD,{},e.operator),i={widgetType:ri.widgetName,widgetId:this.instanceId,bets:this.betsData.map(((e,t)=>Object.assign({position:t+1},X(e,M.SG_ADD,{},e.bet.operator)))),data:{betKey:t}};P.trackEvent(M.SG_CLICK_OUT,this,i)}static create(e,t){var i;this.register();const o=document.createElement(this.tagName);if(null==e?void 0:e.config)try{const t=JSON.parse(e.config);o.dataConfig=t}catch(t){null==e||e.config}return o.instanceId=(null===(i=o.dataConfig)||void 0===i?void 0:i.instanceId)||k(),(null==e?void 0:e.gameId)&&(o.gameId=e.gameId),t&&(o.exclusiveOperator=t),o}static validate(e){return""}}ri.styles=[ue(':host *{box-sizing:border-box}:host{--text-color-primary: #181818;--text-color-secondary: #5f5f5f;--text-color-tertiary: #767676;display:block;container-type:inline-size;font:500 14px/1.5 "TT Norms",Helvetica,Arial,sans-serif;font-variation-settings:"slnt" 0,"wdth" 100,"ital" 0;color:var(--text-color-primary)}.table{display:grid;grid-template-columns:minmax(230px, 1fr) repeat(3, minmax(80px, 160px));grid-template-rows:20px repeat(1, 1fr);align-items:center;gap:8px}@container (max-width: 580px){.table{grid-template-columns:minmax(87px, 1fr) repeat(3, minmax(60px, 140px));gap:6px}}.date{font-size:16px;font-weight:700;white-space:nowrap}.date::after{content:attr(data-date-full)}@container (max-width: 580px){.date{font-size:12px}.date::after{content:attr(data-date-short)}}.live{display:inline-block;vertical-align:middle;color:#fff;background-color:#e10500;padding:4px 8px;margin-bottom:6px;border-radius:6px;font-size:12px;font-weight:700}.side{text-align:center;color:var(--text-color-secondary);font-size:14px;font-weight:500}.side::before{content:attr(data-side-full)}@container (max-width: 580px){.side{font-size:12px}.side::before{content:attr(data-side-short)}.side.side-draw{text-transform:uppercase}}.team{color:var(--text-color-primary);font-size:20px;font-weight:700;white-space:nowrap}.team::before{content:attr(data-team-full)}@container (max-width: 580px){.team{font-size:16px}.team::before{content:attr(data-team-short)}}sg-button-odds{width:100%}.unavailable{box-sizing:border-box;color:#ababab;border:1px solid #dcdcdc;padding:10px;border-radius:8px;text-align:center;font-size:16px;min-height:48px;height:100%;display:flex;justify-content:center;align-items:center;cursor:default}.operator-label-wrapper{display:flex;justify-content:space-between}.operator-label{box-sizing:border-box;height:32px;display:flex;align-items:center;gap:4px;color:#767676;background-color:#b9b9b9;padding:2px 10px;border-radius:4px;margin-bottom:9px;text-transform:uppercase}.operator-label.label-draftkings{color:#61b546;background-color:rgba(97,181,70,.1019607843)}.operator-label.label-fanduel{text-transform:none;background-color:rgba(0,0,0,0);color:var(--text-color-primary);padding:0}.operator-label.label-fanduel .text{font-family:"TT Norms",Helvetica,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:500;line-height:120%}.operator-label.label-betmgm{color:#b6a06c;background-color:rgba(182,160,108,.1019607843)}.operator-label.label-caesars{color:#0a3331;background-color:rgba(10,51,49,.1019607843)}.operator-label .logo{width:16px;height:16px;background-position:center;background-size:contain}.operator-label .logo.op-draftkings{margin-bottom:4px}.operator-label .text{padding-top:2px;font-size:12px;line-height:1.2;font-weight:700}.operator-label .text::after{content:attr(data-text)}sg-marquee{margin-top:3px;color:var(--text-color-tertiary);font-size:14px;font-weight:500}@container (max-width: 580px){.operator-label{text-transform:none;background-color:rgba(0,0,0,0) !important;padding:0;margin-bottom:10px;height:auto}.operator-label .logo{display:none}.operator-label .text{font-size:14px;font-weight:500}.operator-label .text::after{content:attr(data-text-compat)}sg-marquee{margin-top:10px}}sg-button-bet{transition:border-color 1s linear}sg-button-bet.highlighted{border-color:#ebaa17}'),ue(Dt)],ri.version="1.0.0",ri.tagName=`sg-${N.WORLD_CUP}`,ri.widgetName=N.WORLD_CUP,ri.components=[ni,Ft],ai([wt({type:String,attribute:"data-game-id",reflect:!0})],ri.prototype,"gameId",void 0),ai([wt({type:String,attribute:"data-instance-id",reflect:!0})],ri.prototype,"instanceId",void 0),ai([wt({type:String,attribute:"data-exclusive-operator",reflect:!0})],ri.prototype,"exclusiveOperator",void 0),ai([wt({type:Object,attribute:"data-config",reflect:!0})],ri.prototype,"dataConfig",void 0),ai([Ct()],ri.prototype,"data",void 0),ai([Ct()],ri.prototype,"operator",void 0),ai([Ct()],ri.prototype,"isCompact",void 0),ai([Ct()],ri.prototype,"highlights0",void 0),ai([Ct()],ri.prototype,"highlights1",void 0),ai([Ct()],ri.prototype,"highlights2",void 0);
140var si=function(e,t,i,o){return new(i||(i=Promise))((function(n,a){function r(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,s)}l((o=o.apply(e,t||[])).next())}))};const li=new class{constructor(){this.dispatched=new Set}markOnce(e){return!this.dispatched.has(e)&&(this.dispatched.add(e),!0)}},di=new WeakMap;function ci(e,t){if(!e.length)return Promise.resolve([]);const{widgetVersion:i,impressionType:o,readableWidgetType:a,clickElementKey:r,dataHubPrefix:s,reportError:l,reportAction:d,getHost:c,getRenderContainer:u,beforeFetch:h,allowRender:m,renderButton:b,syncSelectedState:v,buildClickout:f,clearContainer:y,setButtonEnabled:w,replaceClickHandler:C,buildImpressionMeta:x}=t;return Promise.all(e.map((e=>function(e,t,i,o){return new(i||(i=Promise))((function(t,n){function a(e){try{s(o.next(e))}catch(e){n(e)}}function r(e){try{s(o.throw(e))}catch(e){n(e)}}function s(e){var o;e.done?t(e.value):(o=e.value,o instanceof i?o:new i((function(e){e(o)}))).then(a,r)}s((o=o.apply(e,[])).next())}))}(this,0,void 0,(function*(){var t,I;const k=c(e);if(!k)return;if(k.hasAttribute(g))return;k.setAttribute(g,"");let T=null!==(t=null==x?void 0:x({host:k,holder:e}))&&void 0!==t?t:{};const O=e.dataset.config;if(!O)return Q(k,o,i,void 0,T),void l(k.dataset.instanceId,new Error("Widget config is missing in data-config"));let A;try{A=JSON.parse(O)}catch(e){return Q(k,o,i,void 0,T),void l(k.dataset.instanceId,e)}const S=V(k,A.instanceId),E=F(A);if(T=null!==(I=null==x?void 0:x({host:k,holder:e,config:A}))&&void 0!==I?I:{},E)return Q(k,o,i,S,T),void l(S,new Error(E));null==h||h(k,e,A);const N=Y(A),L=`${null!=s?s:p}/${N}`;try{yield zt.fetchEventData(L)}catch(t){Q(k,o,i,S,T),l(S,t),P.trackError(e,`Error fetching widget data - ${t.name}: ${t.message}`,{gameId:A.gameId,widgetType:a})}const D=A.line?Number(A.line):null;let _;const j=(t,n,a=!1)=>{var r;li.markOnce(t)&&(T=null!==(r=null==x?void 0:x({host:k,holder:e,config:A,bet:n}))&&void 0!==r?r:{},Q(k,o,i,t,Object.assign({bets:[n],isAllowedForBetting:a},T)))};zt.subscribe(L,(t=>{if(!t)return;const s=Z(t,t.league_name,A.type),c=q(s,A,null==s?void 0:s.market_type,D,N,a);if(k.setAttribute(g,"success"),!c)return void Q(k,o,i,S,T);if(!n.getItem("legal"))return void j(S,c,!1);if(m&&!m({host:k,holder:e,config:A,raw:s,bet:c}))return void j(S,c,!1);const p=!(new Date(c.game.startTime)>new Date),h=u(e,k);if(!1!==y&&(h.innerHTML=""),p)return j(S,c),void(null==_||_());const x=b({host:k,holder:e,config:A,bet:c});null==w||w(x,!0),A.directClickout||null==v||v(x,c,A);const I=()=>{if(A.directClickout){const e=S,t=null==f?void 0:f({bet:c,config:A,instanceId:e});if(!(null==t?void 0:t.url))return void l(e,new Error(`No deep link provided for ${A.type}`));if(d(M.EXIT_CLICK,e,c,{clickOutLink:t.url},A),t.payload)P.trackEvent(M.SG_CLICK_OUT,k,t.payload);else{const t=X(c,M.SG_ADD,{},c.bet.operator);P.trackEvent(M.SG_CLICK_OUT,k,{widgetType:A.type,widgetId:e,bets:[t],data:{betKey:t.betKey}})}window.open(t.url,"_blank")}else{if(ie.has(c.offerId)){const e=S,t=ie.get(c.offerId)||c,i=M.SG_REMOVE,o={widgetType:a,widgetId:e},n=X(t,i,Object.assign(Object.assign({},o),{clickElement:r}));return P.trackEvent(i,x,n,!0),d(M.CBS_REMOVE,e,t,void 0,A),void ie.remove(c.offerId)}ie.add(c,A.operatorName),R((()=>{const e=S,t=ie.get(c.offerId)||c,i=M.SG_ADD,o={widgetType:a,widgetId:e},n=X(t,i,Object.assign({},o));P.trackEvent(i,x,n,!1),d(M.CBS_ADD,e,t,void 0,A)}))}};if(C){const e=di.get(x);e&&x.removeEventListener("click",e)}di.set(x,I),x.addEventListener("click",I),!1!==y?h.appendChild(x):h.contains(x)||h.appendChild(x),j(S,c,!0)})),_=Rt.add(L)})))))}const pi="1.1.1",ui=e=>ci(e,{widgetVersion:pi,impressionType:"pick-snippet",readableWidgetType:N.SNIPPET,clickElementKey:N.SNIPPET,reportError:(e,t)=>{z.dispatchSnippetWidgetError(e,ei(t),pi)},reportAction:(e,t,i,o,n)=>{switch(e){case M.EXIT_CLICK:z.dispatchSnippetWidgetAction(e,t,o);break;case M.CBS_ADD:case M.CBS_REMOVE:z.dispatchSnippetWidgetAction(e,t,{betData:i,dataConfig:n})}},getHost:e=>e.closest("sportsline-pick-snippet"),getRenderContainer:e=>e,renderButton:({bet:e,config:t})=>{var i,o;return J(e,(null===(o=null===(i=null==t?void 0:t.meta)||void 0===i?void 0:i.promotion)||void 0===o?void 0:o.ctaText)||t.buttonText,!t.directClickout)},buildClickout:({bet:e,config:t,instanceId:i})=>{const o=I.getClickoutUrl({op:e.bet.operator,clickoutElement:t.type,dl:e.bet.deepLink},i);if(!o)return null;const n=X(e,M.SG_ADD,{},e.bet.operator);return{url:o,payload:{widgetType:t.type,widgetId:i,bets:[n],data:{betKey:n.betKey}}}},buildImpressionMeta:({config:e})=>({configMetaData:null==e?void 0:e.meta,marketName:(null==e?void 0:e.marketName)||void 0})}),hi="1.2.0",gi=e=>{return e.length?Promise.all(e.map((e=>
140function(e,t,i,o){return new(i||(i=Promise))((function(e,t){function n(e){try{r(o.next(e))}catch(e){t(e)}}function a(e){try{r(o.throw(e))}catch(e){t(e)}}function r(t){var o;t.done?e(t.value):(o=t.value,o instanceof i?o:new i((function(e){e(o)}))).then(n,a)}r((o=o.apply(undefined,[])).next())}))}(0,0,void 0,(function*(){var i,o,a,r,s,l,d,c;const u=e;e=u.closest("sportsline-pick-snippet-parlay");const h=null==u?void 0:u.dataset.config;let m=null,b=!1;if(h)try{m=JSON.parse(h),b=m.type===N.PARLAY,V(e,null==m?void 0:m.instanceId)}catch(e){}let v=0;const f=null===(i=null==m?void 0:m.meta)||void 0===i?void 0:i.wager;if(void 0===f){const t=null===(o=null==e?void 0:e.querySelector("sportsline-pick-snippet-parlay-card"))||void 0===o?void 0:o.querySelectorAll(".sportsline-pick-snippet-parlay-card__info");if(t&&t.length>0){const e=null===(r=null===(a=Array.from(t))||void 0===a?void 0:a.filter((e=>{var t;return"wager"===(null===(t=e.innerText.split(" "))||void 0===t?void 0:t[0].toLowerCase())})))||void 0===r?void 0:r[0];v=Number(e.innerText.split(" ")[1].toLowerCase().split("$")[1])}}else v=Number(f)||0;if(!b)return;if(!h)return;let y;e.setAttribute(g,"");try{y=JSON.parse(h)}catch(t){return Q(e,"parlay-picks",hi,"",{wager:v}),void z.dispatchSnippetWidgetError(e.dataset.instanceId,ei(t),hi)}const w=G(y);if(w)return Q(e,"parlay-picks",hi,"",{wager:v}),void z.dispatchSnippetWidgetError(e.dataset.instanceId,ei(new Error(w)),hi);const C=[],x=[],I=new Set,k=new Set,T=()=>{var i,o;if(C.length!==y.markets.length)return;const a=C.some((e=>new Date(e.game.startTime)<=new Date));u.innerHTML="";const r=V(e),s=e=>{li.markOnce(r)&&z.dispatchImpressionParlayWidget({instanceId:r,version:hi,bets:C,wager:v,isAllowedForBetting:e,configMetaData:null==m?void 0:m.meta})};if(a)x.forEach((e=>e())),s(!1),K(r,e,"parlay-picks");else{if(n.getItem("legal")){const n=J(C,null===(o=null===(i=null==y?void 0:y.meta)||void 0===i?void 0:i.promotion)||void 0===o?void 0:o.ctaText);!function(e,i,o,n){o.addEventListener("click",(()=>{const a=e.every((e=>ie.has(e.offerId)));a?(3===ie.get().length?ie.removeAll():e.forEach((e=>{ie.remove(e.offerId)})),t(M.SG_REMOVE,e,i,o,n)):(ie.removeAll(!1),[...e].reverse().forEach((e=>{ie.add(e,"")})),R((()=>{t(M.SG_ADD,e,i,o,n)})))}))}(C,m,n,e),u.appendChild(n)}s(!0),K(r,e,"parlay-picks")}},O=new Set,A=[];for(const t of y.markets){if(!t.gameId||!t.marketId||!t.marketName)return Q(e,"parlay-picks",hi,"",{wager:v}),null;const i=Y(t),o=()=>{if(Array.from(k).length===y.markets.length)if(Array.from(O).length>0){let t=[];C.length>0&&(t=C),Q(e,"parlay-picks",hi,"",{bets:t,wager:v}),z.dispatchParlayWidgetError(e.dataset.instanceId,ei(Array.from(A)[0]||new Error("Failed to load widget data")),hi,t)}else T()};try{yield zt.fetchEventData(`${p}/${i}`)}catch(e){O.add(i),k.add(i),P.trackError(u,`Error fetching widget data - ${e.name}: ${e.message}`,{gameId:t.gameId,widgetType:"Parlay Snippet"}),o()}let n="";if(t.line)n=t.line;else{const t=null===(c=null===(d=null===(l=null===(s=null==e?void 0:e.shadowRoot)||void 0===s?void 0:s.querySelector("sportsline-pick-snippet-card"))||void 0===l?void 0:l.shadowRoot)||void 0===d?void 0:d.querySelector(".sportsline-pick-snippet-card__pick-label"))||void 0===c?void 0:c.innerHTML;if(t){const e=t.split("<span")[0].match(/[+-]?\d+(\.\d+)?/);n=e?e[0]:""}}const a=""===n?null:Number(n);zt.subscribe(`${p}/${i}`,(e=>{var n,r;if(!e)return;e=Z(e,e.league_name,y.type);const s=q(e,t,null==e?void 0:e.market_type,a,i,"Parlay Snippet");if(s){const e=(null===(r=null===(n=s.bet)||void 0===n?void 0:n.entity)||void 0===r?void 0:r.id)||"",t=C.findIndex((t=>{var i,o;return t.game.id===s.game.id&&t.bet.market.id===s.bet.market.id&&t.bet.position===s.bet.position&&((null===(o=null===(i=t.bet)||void 0===i?void 0:i.entity)||void 0===o?void 0:o.id)||"")===e}));t>=0?C[t]=s:C.push(s)}else O.add(i);I.has(i)||(I.add(i),k.add(i)),o()}));const r=Rt.add(`${p}/${i}`);x.push(r)}Array.from(O).length>0?Q(e,"parlay-picks",hi,"",{wager:v}):u.setAttribute(g,"success")}))))):Promise.resolve([]);function t(e,t,i,o,n){var a;const r=V(n),s={eventName:e,widgetType:"Parlay Snippet",widgetId:r,bets:t.map((t=>function(e,t){return X(e,t)}(t,e)))};P.trackEvent(e,o,s),e===M.SG_ADD?R((()=>{var e;z.dispatchParlayWidgetAction(M.CBS_ADD,r,t,i||void 0,(null===(e=ie.selectedOperator)||void 0===e?void 0:e.operator)||"")})):z.dispatchParlayWidgetAction(M.CBS_REMOVE,r,t,i||void 0,(null===(a=ie.selectedOperator)||void 0===a?void 0:a.operator)||"")}};function mi(e,t){const{widgetKey:i,impressionType:o,readableWidgetType:n,clickElementKey:a,widgetVersion:r="
1401.0.0",dataHubPrefix:s=p,hideIfOperatorMissing:l=!1}=t;return ci(e,{widgetVersion:r,impressionType:o,readableWidgetType:n,clickElementKey:a,dataHubPrefix:s,getHost:e=>e,getRenderContainer:e=>e,renderButton:({holder:e})=>e,allowRender:({holder:e,config:t,raw:i})=>{if(!l||!t.operatorName)return!0;const o=t.operatorName.toLowerCase();if(!(i.books||[]).some((e=>((e,t)=>{const i=(e||"").toLowerCase(),o=(t||"").toLowerCase();return i===o||"mgm"===i&&"betmgm"===o||"betmgm"===i&&"mgm"===o})(e.operator_name,o)))){const i=e;return i.disabled=!0,i.setAttribute("data-hidden-operator",t.operatorName),i.remove(),!1}return!0},clearContainer:!1,replaceClickHandler:!0,setButtonEnabled:(e,t)=>{e.disabled=!t},syncSelectedState:(e,t)=>{const i=e,o=()=>{ie.has(t.offerId)?i.setAttribute("data-selected","true"):i.removeAttribute("data-selected")};o(),i.hasAttribute("data-selected-init")||(i.setAttribute("data-selected-init","true"),ie.subscribe(o))},reportError:(e,t)=>{z.dispatchGeneralWidgetError(i,e,ei(t),r)},reportAction:(e,t,o,n,a)=>{z.dispatchGeneralWidgetAction(e,t,i,o,n,a)},buildImpressionMeta:({config:e})=>({configMetaData:null==e?void 0:e.meta}),buildClickout:({bet:e,config:t,instanceId:i})=>{const o=I.getClickoutUrl({op:e.bet.operator,clickoutElement:t.type,dl:e.bet.deepLink},i);if(!o)return null;const n=X(e,M.SG_ADD,{},e.bet.operator);return{url:o,payload:{widgetType:t.type,widgetId:i,bets:[n],data:{betKey:n.betKey}}}}})}let bi=null;const vi=e=>{bi||(bi=n.getItem("brandedDisclaimers"));const t=bi;switch((e||"").trim().toLowerCase()){case h.FANDUEL:return(null==t?void 0:t.fanduel)||"";case"mgm":case h.BETMGM:return(null==t?void 0:t.betmgm)||"";case h.CAESARS:return(null==t?void 0:t.caesars)||"";case h.DRAFTKINGS:return(null==t?void 0:t.draftkings)||"";default:return""}},fi={display:"block",containerType:"inline-size",color:"#767676",fontSize:"12px",lineHeight:"1.2",marginTop:"-5px"},yi="1.0.2",wi=e=>{const t={widgetVersion:yi,impressionType:N.BRANDED_PICK_SNIPPET,readableWidgetType:N.SNIPPET,clickElementKey:"snippet-branded",reportError:(e,t,i,o)=>{z.dispatchSnippetWidgetError(e,ei(t),yi,!0,o)},reportAction:(e,t,i,o)=>{e===M.EXIT_CLICK&&z.dispatchSnippetWidgetAction(M.EXIT_CLICK,t,{link:(null==o?void 0:o.clickOutLink)||"",userFlow:N.BRANDED_PICK_SNIPPET})},getHost:e=>e.closest("sportsline-pick-snippet"),getRenderContainer:e=>e,clearContainer:!0,replaceClickHandler:!0,buildImpressionMeta:({config:e})=>({operator:null==e?void 0:e.operatorName,ctaText:null==e?void 0:e.buttonText,configMetaData:null==e?void 0:e.meta,marketName:(null==e?void 0:e.marketName)||void 0}),beforeFetch:(e,t,i)=>{var o,a;if(i.directClickout=!0,n.getItem("legal")&&!e.hasAttribute("data-disclaimer-init")){e.setAttribute("data-disclaimer-init","true");const t=null===(a=null===(o=e.shadowRoot)||void 0===o?void 0:o.querySelector("sportsline-pick-snippet-card"))||void 0===a?void 0:a.querySelector("sg-disclaimer");if(t){const e=vi(O(i.operatorName||""));if(e){Ft.register();const i=document.createElement(Ft.tagName);i.text=e,Object.assign(t.style,Object.assign(Object.assign({},fi),{padding:"var(--padding-inline, 0)",paddingBottom:"0px",paddingRight:"0px"})),t.appendChild(i)}}}},allowRender:({holder:e,config:t,raw:i,bet:o})=>{var n;const a=B.getExclusiveOperator(i.league_name,t.type);if(a&&a.toLowerCase()!==(null===(n=t.operatorName)||void 0===n?void 0:n.toLowerCase()))return!1;const r=O(t.operatorName||"").toLowerCase();if(!t.operatorName||!Object.keys(o.offers).includes(r)){const i=e.closest("sportsline-pick-snippet"),o=V(i,t.instanceId);return z.dispatchSnippetWidgetError(o,{message:`missing the operator: "${t.operatorName}"`},yi,!0,t.operatorName),P.trackError(e,`missing the operator: "${t.operatorName}"`,{gameId:t.gameId,widgetType:"branded-snippet"}),!1}return!0},renderButton:({bet:e,config:t})=>{var i,o;return J(e,(null===(o=null===(i=null==t?void 0:t.meta)||void 0===i?void 0:i.promotion)||void 0===o?void 0:o.ctaText)||t.buttonText,!1)},buildClickout:({bet:e,config:t,instanceId:i})=>{const o=O(t.operatorName||"").toLowerCase(),n=I.getClickoutUrl({op:o,clickoutElement:"snippet-branded",dl:[e].filter((e=>{var t;return null===(t=e.offers[o])||void 0===t?void 0:t.deep_link})).map((e=>{var t;return null===(t=e.offers[o])||void 0===t?void 0:t.deep_link}))},i);if(!n)return null;const a=X(e,M.SG_ADD,{},o);return{url:n,payload:{widgetType:"branded_snippet",widgetId:i,bets:[a],data:{betKey:a.betKey}}}}};return ci(e,t)};class Ci extends bt{render(){return Ze`
141      <svg
142        width="13"
143        height="14"
144        viewBox="0 0 13 14"
145        fill="none"
146        xmlns="http://www.w3.org/2000/svg"
147      >
148        <path
149          d="M11.8945 2.98655L6.99677 0.187844C6.78405 0.0650253 6.54273 0.000366211 6.2971 0.000366211C6.05146 0.000366211 5.81015 0.0650253 5.59742 0.187844L0.699681 2.98655C0.486477 3.10964 0.30952 3.28681 0.186673 3.50015C0.0638257 3.7135 -0.000564079 3.95547 3.72296e-06 4.20166V9.79908C-0.000564079 10.0453 0.0638257 10.2872 0.186673 10.5006C0.30952 10.7139 0.486477 10.8911 0.699681 11.0142L5.59742 13.8129C5.81015 13.9357 6.05146 14.0004 6.2971 14.0004C6.54273 14.0004 6.78405 13.9357 6.99677 13.8129L11.8945 11.0142C12.1077 10.8911 12.2847 10.7139 12.4075 10.5006C12.5304 10.2872 12.5948 10.0453 12.5942 9.79908V4.20166C12.5948 3.95547 12.5304 3.7135 12.4075 3.50015C12.2847 3.28681 12.1077 3.10964 11.8945 2.98655ZM11.1948 9.79908L6.2971 12.5978L1.39936 9.79908V4.20166L6.2971 1.40295L11.1948 4.20166V9.79908Z"
150        />
151        <path
152          d="M6.29538 10.2655C6.6818 10.2655 6.99506 9.95225 6.99506 9.56583C6.99506 9.17941 6.6818 8.86615 6.29538 8.86615C5.90896 8.86615 5.5957 9.17941 5.5957 9.56583C5.5957 9.95225 5.90896 10.2655 6.29538 10.2655Z"
153        />
154        <path d="M6.99506 3.73523H5.5957V7.23361H6.99506V3.73523Z" />
155      </svg>
156    `}}Ci.tagName="sg-icon-attention",Ci.styles=[ue(":host{--size: 14px;display:inline-block;width:var(--size, 14px);height:var(--size, 14px);min-width:var(--size, 14px);min-height:var(--size, 14px)}svg{display:block;width:100%;height:100%}svg path{fill:currentColor}")];const xi=e=>e?e[0].toUpperCase()+e.slice(1).toLowerCase():"";var Ii=function(e,t,i,o){var n,a=arguments.length,r=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(a<3?n(r):a>3?n(t,i,r):n(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class ki extends bt{constructor(){super(...arguments),this.offerId="",this.operator="",this.disabledMessage=""}render(){var e;const t=ie.get(this.offerId);if(!t)return"";(null===(e=this.shadowRoot)||void 0===e?void 0:e.host).style.setProperty("--color-mark",(e=>{const t="#999",i=L(e.dataId).widget,o=e.bet.market.type,n=e.bet.position,a=e.bet.entity;let r;if(i===N.SIX_PACK)switch(n){case"away":r=null==a?void 0:a.awayBgColor;break;case"home":r=null==a?void 0:a.homeBgColor;break;default:r=null==a?void 0:a.overUnderColor,"total"!==o||r||(r=t)}else i===p&&(r="total"===o?t:null==a?void 0:a.color);return r||"#00000000"})(t));const{heading:i,subheading:o,detail:n,description:a,odds:r}=this.rootHtmlText(t,this.operator);return Ze`
157      <div id="root">
158        <div class="color-mark"></div>
159        <div class="main">
160          <div class="heading">${Ze`${Ht(i)}`}</div>
161          <div class="subheading">${o} <span class="detail">${n}</span></div>
162          <div class="description">${a}</div>
163          ${this.hasAttribute("disabled")&&this.disabledMessage?Ze`<div class="attention">
164                <sg-icon-attention></sg-icon-attention>
165                ${this.disabledMessage}
166              </div> `:Je}
167        </div>
168        <div class="side">
169          <div class="odds">${this.hasAttribute("disabled")?"":r}</div>
170          <div
171            class="icon-cancel"
172            role="button"
173            tabindex="0"
174            aria-label="Cancel"
175            @click="${this.pickCancel}"
176          ></div>
177        </div>
178      </div>
179    `}rootHtmlText(e,t){const i=e.game.awayTeam.abbr+" @ "+e.game.homeTeam.abbr+" • "+Mt(e.game.startTime,"short"),o=e.offers[t],n=e.bet.altOdds?e.bet.altOdds:o?o.odds:e.bet.odds,a={heading:"",subheading:"",detail:"",description:i,odds:Lt(n)};if(L(e.dataId).widget===N.SIX_PACK)a.heading=this.renderHeading(e,t),a.subheading=xi(e.bet.market.type);else{const i=e.bet.operator===t?e.bet.altLine:null==o?void 0:o.line,n=((e,t)=>{const{id:i,name:o}=e.bet.market;if(!i||!o)return[];const n=S(e.game.leagueName,i,o);if(!n)return[];const a=n.split("\n").map((i=>((e,{bet:t,game:i},o)=>{var n,a,r;const s=t.position,l=s.toUpperCase(),d=E(s),c=((e,t)=>{if(!e&&!t)return"Unknown Player";if(!e)return t;if(!t)return e;const i=`${e} ${t}`;if(i.length<=22)return i;const o=i.split(" ");if(3===o.length){const[e,t,i]=o;return`${e[0]}.${t[0]}. ${i}`}if(4===o.length){const[e,t,i,n]=o;return`${e[0]}.${t[0]}. ${i} ${n}`}return`${e[0]}. ${t}`})((null===(n=t.entity)||void 0===n?void 0:n.text1)||"",(null===(a=t.entity)||void 0===a?void 0:a.text2)||""),p=E(t.market.type),u=i.homeTeam.abbr,h=i.awayTeam.abbr,g=(m=null===(r=t.entity)||void 0===r?void 0:r.action)?`<span class="detail">${m=m.split(" ").map((e=>E(e))).join(" ")}</span>`:"";var m;return e.replace(/\[t_abbr]/g,l).replace(/\[O\/U]/g,d).replace(/\[Line]/g,o).replace(/\[p_name]/g,c).replace(/\[b_type]/g,p).replace(/\[h_abbr]/g,u).replace(/\[a_abbr]/g,h).replace(/\[a_type]/g,g)})(i,e,t)));return a||[]})(e,this.renderLine(e.bet.line,i,["over","under"].includes(e.bet.position)));
179if(!n||0===n.length)return e.offerId,a;const[r,s]=n;a.heading=r,a.subheading=s}return a}renderHeading({bet:e,game:t,offers:i},o){const n=i[o],a=e.operator===o?e.altLine:null==n?void 0:n.line;if("total"===e.market.type)return xi(e.position)+" "+this.renderLine(e.line,a,["over","under"].includes(e.position));const r="away"===e.position?t.awayTeam.abbr:t.homeTeam.abbr;return"moneyline"===e.market.type?r:r+" "+this.renderLine(e.line,a,["over","under"].includes(e.position))}renderLine(e,t,i=!1){const o=i?`${e}`:Lt(e||"");return t&&e!==t?`\n        <span class="line text-s">${o}</span>\n        <span class="line">${i?`${t}`:Lt(t)}</span>\n        <span class="update attention">\n          <sg-icon-attention></sg-icon-attention>\n          updated line\n        </span>\n      `:o}pickCancel(){this.dispatchEvent(new CustomEvent("pick-cancel",{bubbles:!0,composed:!1,detail:{id:this.offerId}}))}}ki.tagName="sg-pick",ki.components=[Ci],ki.styles=[ue(':host{--text-color-primary: #202121;--text-color-secondary: #181818;--text-color-tertiary: #767676;--color-mark: lightgrey;display:block}:host([disabled]){--text-color-primary: #ababab;--text-color-secondary: #ababab;--text-color-tertiary: #ababab;--color-mark: #999}:host([disabled]) .update{color:var(--text-color-secondary)}#root{padding:16px 12px 16px 0;display:flex;align-items:stretch;color:var(--text-color-primary);font-size:12px;line-height:1.2}@media screen and (max-width: 500px){#root{padding-top:12px;padding-bottom:11px}}.color-mark{width:6px;overflow:hidden}.color-mark:before{content:"";display:block;width:200%;height:100%;background-color:var(--color-mark, lightgrey);border-radius:6px;margin-left:-100%}.main{flex:1;padding-left:18px}.side{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;padding-top:6px}.heading{font-size:16px;font-weight:700;color:var(--text-color-primary);padding-bottom:3px;display:flex;align-items:center;gap:4px}.text-s{text-decoration:line-through}.attention{color:#d9690d;text-transform:uppercase;font-size:14px;line-height:1.2;font-weight:700;display:inline-flex;gap:4px}.line+.update{margin-left:4px}.description+.attention{margin-top:5px}.subheading{font-weight:700;color:var(--text-color-secondary);padding-bottom:2px}.detail{color:var(--text-color-tertiary)}.description{color:var(--color-text-tertiary)}.odds{font-size:14px;font-weight:700;color:var(--text-color-secondary)}.icon-cancel{--size: 18px;box-sizing:border-box;color:#4d80dd;width:var(--size);height:var(--size);border-radius:50%;border:calc(var(--size)/10) solid currentColor;display:flex;justify-content:center;align-items:center;cursor:pointer}.icon-cancel::before{content:"";display:block;width:60%;height:calc(var(--size)/10);border-radius:calc(var(--size)/10);background:currentColor}')],Ii([wt({type:String})],ki.prototype,"offerId",void 0),Ii([wt({type:String})],ki.prototype,"operator",void 0),Ii([wt({type:String})],ki.prototype,"disabledMessage",void 0),Ii([wt({type:Number})],ki.prototype,"altLine",void 0);class Ti extends bt{render(){return Ze`
180      <svg
181        width="1878"
182        height="2048"
183        viewBox="0 0 1878 2048"
184        fill="none"
185        xmlns="http://www.w3.org/2000/svg"
186      >
187        <path
188          d="M1877.43 384.074V469.168C1877.43 481.57 1873.42 492.064 1865.6 500.076C1857.58 508.09 1847.47 511.906 1835.07 511.906H1707.05V1775.93C1707.05 1849.76 1686.25 1913.49 1644.47 1967.29C1602.49 2021.1 1552.31 2048 1493.55 2048H384.07C325.496 2048 275.126 2022.05 233.342 1969.96C191.558 1918.07 170.762 1855.11 170.762 1781.27V511.904H42.738C30.336 511.904 20.034 507.898 12.02 500.074C4.006 492.06 0 481.566 0 469.166V384.072C0 371.67 4.006 361.368 12.02 353.164C20.034 345.342 30.336 341.334 42.738 341.334H454.666L548.156 118.484C561.32 85.858 585.552 57.62 620.086 34.724C654.81 11.446 689.918 0 725.406 0H1152.02C1187.7 0 1222.62 11.448 1257.53 34.724C1292.26 57.62 1316.3 85.858 1329.46 118.484L1422.76 341.334H1834.88C1847.28 341.334 1857.4 345.34 1865.41 353.164C1873.61 361.368 1877.43 371.48 1877.43 384.072L1877.43 384.074ZM1536.1 1776.12V511.906H341.334V1775.93C341.334 1795.58 344.386 1813.51 350.682 1829.92C356.788 1846.71 363.466 1858.35 370.144 1865.98C376.822 1873.42 381.4 1877.43 384.072 1877.43H1493.36C1496.03 1877.43 1500.8 1873.42 1507.48 1865.98C1514.15 1858.35 1520.64 1846.71 1526.94 1830.11C1533.04 1813.7 1536.1 1795.58 1536.1 1776.12V1776.12ZM682.666 810.692V1578.64C682.666 1591.05 678.66 1601.16 670.836 1609.36C662.822 1617.57 652.52 1621.38 639.928 1621.38H554.834C542.432 1621.38 531.938 1617.38 523.926 1609.55C516.104 1601.35 512.096 1591.24 512.096 1578.64V810.692C512.096 798.29 516.102 787.988 523.926 779.974C531.94 771.96 542.242 768.144 554.834 768.144H639.928C652.33 768.144 662.824 772.15 670.836 779.974C678.658 787.988 682.666 798.29 682.666 810.692ZM639.928 341.336H1237.31L1173.58 185.266C1167.1 177.252 1159.66 172.292 1150.88 170.574H728.076C719.3 172.292 711.668 177.252 705.562 185.266L639.928 341.336ZM1024.19 810.692V1578.64C1024.19 1591.05 1020.18 1601.16 1012.17 1609.36C1004.16 1617.57 994.044 1621.38 981.452 1621.38H896.166C883.764 1621.38 873.27 1617.38 865.448 1609.55C857.434 1601.35 853.428 1591.24 853.428 1578.64V810.692C853.428 798.29 857.434 787.988 865.448 779.974C873.27 771.96 883.574 768.144 896.166 768.144H981.452C993.854 768.144 1004.16 772.15 1012.17 779.974C1020.18 787.988 1024.19 798.29 1024.19 810.692ZM1365.71 810.692V1578.64C1365.71 1591.05 1361.71 1601.16 1353.69 1609.36C1345.68 1617.38 1335.38 1621.19 1323.17 1621.19H1237.5C1225.29 1621.19 1214.98 1617.19 1206.97 1609.36C1198.96 1601.35 1194.76 1591.24 1194.76 1578.64V810.692C1194.76 798.29 1198.77 787.988 1206.78 779.974C1214.79 771.96 1225.1 768.144 1237.31 768.144H1322.78C1334.99 768.144 1345.3 772.15 1353.31 779.974C1361.52 787.988 1365.71 798.29 1365.71 810.692Z"
189          fill="#004ACE"
190          fill-opacity="0.7"
191        />
192      </svg>
193    `}}Ti.tagName="sg-icon-trash",Ti.styles=[ue(":host{--size: 16px;display:inline-block;width:var(--size, 16px);height:var(--size, 16px);min-width:var(--size, 16px);min-height:var(--size, 16px)}svg{display:block;width:100%;height:100%}svg path{fill:currentColor}")];const Oi=(e,t=1e3,i=2)=>{if(null==e)return"";const o=(e/1e3).toFixed(i),n=o.split(".")[0].length,a=/\.?0+$/;return e>=t&&n<=3?`${o.replace(a,"")}K`:n>=4?`${(e/1e6).toFixed(i).replace(a,"")}M`:parseInt(e.toString(),10)===e?e.toString():i?e.toFixed(i).replace(a,""):e.toString()};var Ai=function(e,t,i,o){var n,a=arguments.length,r=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(a<3?n(r):a>3?n(t,i,r):n(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Si extends bt{constructor(){super(...arguments),this.defaultWager=100,this.betslipType="",this.odds=0,this.operatorPayout="0",this.previousWager="",this._wager
193="0",this._payout=""}get wager(){return this._wager}set wager(e){this._wager=e;const t=n.getItem("wagerValue");this.dispatchEvent(new CustomEvent("wager-changed",{detail:{wager:e},bubbles:!0,composed:!1})),n.setItem("wagerValue",e),t!==e&&z.dispatchBetslipWidgetAction(M.CHANGE_WAGER,ie.instanceId)}get payout(){return this._payout}set payout(e){this._payout=this.getPayoutValidValue(+e),n.setItem("wagerPayout",e)}firstUpdated(e){this.wager=n.getItem("wagerValue")||`${this.defaultWager}`}updated(e){if(e.has("odds")){const e=Number(this.wager)*y(this.odds);this.payout=e}}render(){return Ze`
194      <div class="cell wager">
195        <div class="label">${"straight"===this.betslipType?"WAGER ALL":"WAGER"}</div>
196        <div class="input-wrapper">
197          <input
198            type="number"
199            class="value"
200            .value="${this.wager}"
201            @input=${this.inputHandler}
202            @blur="${this.blurHandler}"
203          />
204        </div>
205      </div>
206      <div class="cell odds">
207        <div class="label">${"parlay"===this.betslipType?"PARLAY ODDS":"ODDS"}</div>
208        <div class="value">${Lt(this.odds)?Lt(this.odds):"---"}</div>
209      </div>
210      <div class="cell payout">
211        <div class="label">TOTAL PAYOUT</div>
212        <div class="value">
213          ${"straight"===this.betslipType?this.getPayoutValidValue(+this.operatorPayout):this.payout}
214        </div>
215      </div>
216    `}inputHandler(e){const t=e.target;if(t.value.startsWith("-")||t.value.startsWith("0"))return this.wager=this.previousWager,void(t.value=this.wager);let i=this.getNumericValue(t.value);+i>d&&(i="9999999"),this.previousWager=i,this.wager=i,t.value=this.wager;const o=Number(this.wager)*y(this.odds);this.payout=o}blurHandler(e){const t=e.target;let i=+this.getNumericValue(t.value);(!i||i<1)&&(i=this.defaultWager),i>d&&(i=d),this.wager=`${i}`,t.value=`${i}`;const o=i*y(this.odds);this.payout=o}getNumericValue(e){return e.replace(/\D/g,"").slice(0,7)}getPayoutValidValue(e){return isNaN(e)?"$":`$${Oi(e,1e3,1)}`}}Si.tagName="sg-betslip-calculator",Si.styles=[ue(':host{display:flex;justify-content:space-between;width:100%;gap:8px;padding-top:8px}input[type=number],input[type=text],button{font:500 14px/1.2 "TT Norms",Helvetica,Arial,sans-serif;font-variation-settings:"slnt" 0,"wdth" 100,"ital" 0;-webkit-appearance:none;appearance:none}.cell{border:1px solid #dcdcdc;border-radius:8px;padding:9px 10px 3px;flex:1}@media screen and (max-width: 500px){.cell{padding-top:7px;padding-bottom:4px}}.cell.wager{border-color:#93b2eb;background-color:#f5f8ff}.cell .label{color:#5f5f5f;font-size:12px;line-height:1.2;font-weight:500}.cell .value{font-size:20px;line-height:1.2;font-weight:700;color:#181818;padding-top:6px}@media screen and (max-width: 500px){.cell .value{font-size:16px;padding-top:5px}}.cell input::-webkit-outer-spin-button,.cell input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.cell input[type=number]{-moz-appearance:textfield}.cell .input-wrapper{position:relative;width:100%}.cell .input-wrapper::after{content:"$";position:absolute;top:6px;left:1px;pointer-events:none;font-size:20px;line-height:1.2;font-weight:700;color:#181818}@media screen and (max-width: 500px){.cell .input-wrapper::after{font-size:16px}}.cell input.value{width:calc(100% - 16px);padding:5px 0 0 12px;position:relative;border:none;background:rgba(0,0,0,0);outline:none}')],Ai([wt({type:String})],Si.prototype,"betslipType",void 0),Ai([wt({type:Number})],Si.prototype,"odds",void 0),Ai([wt({type:String})],Si.prototype,"operatorPayout",void 0),Ai([Ct()],Si.prototype,"previousWager",void 0),Ai([Ct()],Si.prototype,"_wager",void 0),Ai([Ct()],Si.prototype,"_payout",void 0);class Ei extends bt{constructor(){super(...arguments),this.isShown=!0}connectedCallback(){super.connectedCallback(),ie.maxSizeSub((e=>this.isShown=e))}render(){return this.isShown?Ze`
217          <div class="betslip-size-max-inner">
218            <div class="betslip-size-max">
219              <p>
220                <svg
221                  width="36"
222                  height="37"
223                  viewBox="0 0 36 37"
224                  fill="none"
225                  xmlns="http://www.w3.org/2000/svg"
226                >
227                  <path
228                    d="M1.73356 35C1.41203 35 1.11973 34.916 0.856661 34.7479C0.593592 34.5799 0.388983 34.3583 0.242833 34.0833C0.0966835 33.8083 0.0163013 33.5104 0.00168634 33.1896C-0.0129286 32.8688 0.0674536 32.5556 0.242833 32.25L16.4654 2.91667C16.6408 2.61111 16.8673 2.38194 17.145 2.22917C17.4227 2.07639 17.7077 2 18 2C18.2923 2 18.5773 2.07639 18.855 2.22917C19.1327 2.38194 19.3592 2.61111 19.5346 2.91667L35.7572 32.25C35.9325 32.5556 36.0129 32.8688 35.9983 33.1896C35.9837 33.5104 35.9033 33.8083 35.7572 34.0833C35.611 34.3583 35.4064 34.5799 35.1433 34.7479C34.8803 34.916 34.588 35 34.2664 35H1.73356ZM4.75885 31.3333H31.2411L18 7.5L4.75885 31.3333ZM18 29.5C18.4969 29.5 18.9134 29.3243 19.2496 28.9729C19.5857 28.6215 19.7538 28.1861 19.7538 27.6667C19.7538 27.1472 19.5857 26.7118 19.2496 26.3604C18.9134 26.009 18.4969 25.8333 18 25.8333C17.5031 25.8333 17.0866 26.009 16.7504 26.3604C16.4143 26.7118 16.2462 27.1472 16.2462 27.6667C16.2462 28.1861 16.4143 28.6215 16.7504 28.9729C17.0866 29.3243 17.5031 29.5 18 29.5ZM18 24C18.4969 24 18.9134 23.8243 19.2496 23.4729C19.5857 23.1215 19.7538 22.6861 19.7538 22.1667V16.6667C19.7538 16.1472 19.5857 15.7118 19.2496 15.3604C18.9134 15.009 18.4969 14.8333 18 14.8333C17.5031 14.8333 17.0866 15.009 16.7504 15.3604C16.4143 15.7118 16.2462 16.1472 16.2462 16.6667V22.1667C16.2462 22.6861 16.4143 23.1215 16.7504 23.4729C17.0866 23.8243 17.5031 24 18 24Z"
229                    fill="#D9690D"
230                  />
231                </svg>
232
233                <b>Betslip Restriction</b>
234                <span
235                  >You can only add up to ${6} different bets to your betslip at one
236                  time</span
237                >
238              </p>
239              <button type="button" @click="${()=>ie.hideMaxSizeNotify()}">
240                Okay
241              </button>
242            </div>
243          </div>
244        `:Je}}Ei.tagName="sg-betslip-size-max",Ei.styles=[ue(".betslip-size-max-inner{width:100%;height:100%;position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.4);border-radius:10px}.betslip-size-max{width:270px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#dedede;border-radius:16px}.betslip-size-max p{margin:19px 0 16px;padding-inline:8px;display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center}.betslip-size-max p b{font-size:17px;line-height:21px}.betslip-size-max p span{font-size:13px;line-height:17px}.betslip-size-max button{width:100%;padding:10px 0;background:rgba(0,0,0,0);border:none;border-top:1px #a4a4a7 solid;cursor:pointer;color:#007aff;font-size:17px;line-height:22px}")],function(e,t,i,o){var n,a=arguments.length,r=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(a<3?n(r):a>3?n(t,i,r):n(t,i))||r);a>3&&r&&Object.defineProperty(t,i,r)}([Ct()],Ei.prototype,"isShown",void 0);class Ni extends bt{constructor(){super(...arguments),this.type=""}render(){switch(this.type){case"parlay":return Ze`
245          <div class="ballon">
246            <svg
247              width="8"
248              height="8"
249              viewBox="0 0 8 8"
250              fill="none"
251              xmlns="http://www.w3.org/2000/svg"
252            >
253              <path
254                d="M4.32227 2.88767C4.4907 2.9719 4.65083 3.08972 4.79395 3.22459C4.937 3.35942 5.04663 3.5279 5.13086 3.69627C5.17299 3.79764 5.21587 3.89894 5.24121 3.99998C5.28333 4.15169 5.2998 4.31213 5.2998 4.46385C5.29976 4.64081 5.27112 4.8175 5.21777 4.98728L5.15625 5.15428C5.09734 5.28918 5.0215 5.41506 4.92871 5.53318C4.88659 5.59208 4.83681 5.65145 4.78613 5.70213L3 7.48826C2.30917 8.17085 1.19629 8.17085 0.513672 7.48826C0.168256 7.15136 0.000105416 6.69642 0 6.24998C0 5.79497 0.168361 5.34843 0.513672 5.00291L2.29199 3.22459C2.35067 3.17442 2.40129 3.12402 2.45996 3.08201C2.36761 3.46946 2.3926 3.87378 2.52734 4.24412L1.1377 5.63474C0.800788 5.97173 0.800822 6.52723 1.1377 6.86424C1.30621 7.03275 1.53372 7.11717 1.75293 7.11717C1.97205 7.1171 2.19972 7.03268 2.36816 6.86424L4.1709 5.09471C4.35596 4.90946 4.43963 4.66493 4.42285 4.42088C4.41462 4.31136 4.38975 4.21033 4.34766 4.10935C4.30555 4.0166 4.24653 3.93208 4.1709 3.85642C4.09528 3.78047 4.01068 3.72178 3.91797 3.67967C3.87586 3.49445 3.9263 3.28377 4.06934 3.1406L4.32227 2.88767ZM5.00488 0.511698C5.69564 -0.170582 6.80766 -0.170549 7.49023 0.511698C7.79266 0.806619 7.96011 1.19208 7.99707 1.58299L8.00488 1.75096C8.0048 2.2057 7.83574 2.65254 7.49023 2.99803L5.7041 4.78416C5.64543 4.83433 5.5948 4.88473 5.53613 4.92674C5.62854 4.5391 5.60269 4.13415 5.46777 3.76365L6.86719 2.36619C7.20422 2.02917 7.20422 1.47274 6.86719 1.13572C6.69868 0.967273 6.47112 0.882791 6.25195 0.882791C6.03283 0.882856 5.80517 0.967277 5.63672 1.13572L3.83398 2.90525C3.6488 3.09051 3.56429 3.33496 3.58105 3.57908C3.58928 3.68865 3.61512 3.7896 3.65723 3.8906C3.69934 3.98339 3.75832 4.06785 3.83398 4.14353C3.90965 4.21954 3.99413 4.27817 4.08691 4.32029C4.12901 4.50542 4.07843 4.7162 3.93555 4.85935L3.68262 5.11228C3.5141 5.02803 3.35313 4.91853 3.20996 4.77537C3.06693 4.64048 2.95725 4.47208 2.87305 4.30369C2.83092 4.20231 2.78901 4.10102 2.76367 3.99998C2.7216 3.84843 2.70511 3.68865 2.70508 3.53709C2.70508 3.30111 2.75484 3.06488 2.84766 2.84568C2.90654 2.71081 2.98244 2.58455 3.0752 2.46678C3.11732 2.40787 3.16806 2.34851 3.21875 2.29783L5.00488 0.511698Z"
255                fill="white"
256              />
257            </svg>
258            PARLAY
259          </div>
260        `;case"straight":return Ze`<div class="ballon">STRAIGHT</div>`;default:return"Your Bet"}}}Ni.tagName="sg-bet-type-label",Ni.styles=[ue(":host{box-sizing:border-box}*{box-sizing:border-box}.ballon{display:flex;font-size:12px;font-weight:700;line-height:1.2;letter-spacing:1.12px;text-transform:uppercase;color:#fff;background-color:#4a7edd;border-radius:20px;height:29px;padding:3px 12px 1px;align-items:center}svg{margin-right:4px}")],function(e,t,i,o){var n,a=arguments.length,r=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(a<3?n(r):a>3?n(t,i,r):n(t,i))||r);a>3&&r&&Object.defineProperty(t,i,r)}([wt({type:String})],Ni.prototype,"type",void 0);var Mi=function(e,t,i,o){var n,a=arguments.length,r=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(a<3?n(r):a>3?n(t,i,r):n(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};class Li extends bt{constructor(){super(...arguments),this.bets=[],this.selectedOperator=null,this.html=Je,this.selectManual="",this.isClosed=!0,this.focusHandlerTimeout=null,this.focusHandler=()=>this.requestUpdate(),this.wager=0}connectedCallback(){super.connectedCallback(),this.betslipSubscription=ie.subscribe(((e,t,i)=>{var o,n,a,r,s,l,d,c,p;if(void 0===t)e.forEach((e=>{const{widget:t,path:i}=L(e.dataId);Rt.add(`${t}/${i}`)})),0===e.length&&(this.isClosed=!0),null===(n=null===(o=this.shadowRoot)||void 0===o?void 0:o.host)||void 0===n||n.classList.toggle("hidden",0===e.length),(null===(a=ie.selectedOperator)||void 0===a?void 0:a.operator)!==(null===(r=this.selectedOperator)||void 0===r?void 0:r.operator)&&this.selectOperatorHandler((null===(s=ie.selectedOperator)||void 0===s?void 0:s.operator)||"");else if("add"===t){const{widget:t,path:o}=L(i.dataId);Rt.add(`${t}/${o}`),this.isClosed=!1,1===e.length&&R((()=>{var e,t;null===(t=null===(e=this.shadowRoot)||void 0===e?void 0:e.host)||void 0===t||t.classList.remove("hidden","is-closed")}))}
260else"remove"===t?((Array.isArray(i)?i:[i]).forEach((e=>{const{widget:t,path:i}=L(e.dataId);Rt.remove(`${t}/${i}`)})),0===e.length&&(null===(d=null===(l=this.shadowRoot)||void 0===l?void 0:l.host)||void 0===d||d.classList.add("hidden"))):"removeall"===t&&(i.forEach((e=>{const{widget:t,path:i}=L(e.dataId);Rt.remove(`${t}/${i}`)})),null===(p=null===(c=this.shadowRoot)||void 0===c?void 0:c.host)||void 0===p||p.classList.add("hidden"));this.bets=e})),this.betslipMaxSizeSubscription=ie.maxSizeSub((e=>{e&&(this.isClosed=!1,this.requestUpdate())})),this.focusHandlerTimeout=setTimeout((()=>{window.addEventListener("focus",this.focusHandler)}),100)}disconnectedCallback(){var e,t;null===(e=this.betslipSubscription)||void 0===e||e.call(this),null===(t=this.betslipMaxSizeSubscription)||void 0===t||t.call(this),clearTimeout(this.focusHandlerTimeout),window.removeEventListener("focus",this.focusHandler)}firstUpdated(e){var t,i,o,n;null===(i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host)||void 0===i||i.classList.toggle("is-closed",this.isClosed),null===(n=null===(o=this.shadowRoot)||void 0===o?void 0:o.host)||void 0===n||n.classList.toggle("hidden",0===this.bets.length)}render(){var e,t,i,o,a;if(0===this.bets.length)return this.html;const r=ie.getOperators().filter((e=>e.bets.length>0));if(this.selectedOperator=null,ie.selectedOperator=this.selectedOperator,this.selectManual&&(this.selectedOperator=r.find((e=>e.operator===this.selectManual)),ie.selectedOperator=this.selectedOperator),!this.selectedOperator){const e=r[0],t=r.filter((t=>t.odds===e.odds));if(t.length>1&&e.bets.every((t=>t.operator===e.bets[0].operator))){const t=null==r?void 0:r.findIndex((t=>t.operator===e.bets[0].operator));this.selectedOperator=r[t]||r[0],ie.selectedOperator=this.selectedOperator}this.selectedOperator||(this.selectedOperator=r[0],ie.selectedOperator=this.selectedOperator)}0===this.bets.length&&(this.selectManual="",this.isClosed=!0),r.length||(this.selectedOperator=null,ie.selectedOperator=this.selectedOperator);const s=e=>{var t;if(!this.selectedOperator)return!1;const i=(null===(t=this.selectedOperator)||void 0===t?void 0:t.bets.map((e=>e.offerId)))||[];return i.includes(e)},l=e=>!!e&&e.bets.some((e=>{const t=this.bets.find((t=>t.offerId===e.offerId));return((null==t?void 0:t.bet.line)||0)!==(e.line||0)})),d=e=>this.selectedOperator&&(e.bet.altLine||e.bet.line)||0,c=e=>{if(!e)return 0;if("straight"===ie.betslipType){const t=e.bets.reduce(((e,t)=>e+y(t.altOdds||t.odds)),0);return w(t)}return e.odds},p=(e,t)=>e?parseFloat(e.bets.reduce(((e,i)=>e+t*y(i.altOdds||i.odds)),0).toFixed(1)):0,u=n.getItem("betslipOffers"),h=u?u[(null===(e=this.selectedOperator)||void 0===e?void 0:e.operator)||""]:"",g=n.getItem("disclaimer")||"",m=this.bets.reduce(((e,t)=>{const i=e.findIndex((e=>e[0].gameKey!==t.gameKey));var o,n,a;return-1===i||ie.betslipType!==N.PARLAY?e=[...e,[t]]:(o=e,n=i,a=[...e[i],t],e=[...o.slice(0,n),a,...o.slice(n+1)]),e}),[]);return null===(i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host)||void 0===i||i.classList.toggle("is-closed",this.isClosed),R((()=>{this.impressionEvent()})),this.html=Ze`
261      <div id="btn-open" class="c-pointer" @click="${this.toggleBetslip}">
262        <div id="btn-open-qty">${this.bets.length}</div>
263        <div class="txt">Betslip</div>
264      </div>
265      <div id="root" class="hidden-scrollbar">
266        <div class="header c-pointer" @click="${this.toggleBetslip}">
267          <div class="qty">${this.bets.length}</div>
268          <div class="title">Betslip</div>
269          <sg-icon-opener></sg-icon-opener>
270        </div>
271
272        <div class="scroll-container hidden-scrollbar">
273          <div class="u-bet">
274            <div class="u-bet__header">
275              <sg-bet-type-label type="${ie.betslipType}"></sg-bet-type-label>
276              <div class="u-bet__clear" @click="${this.clearAllBetslip}">
277                <div class="txt">${this.bets.length>1?"Clear All":"Clear"}</div>
278                <sg-icon-trash></sg-icon-trash>
279              </div>
280            </div>
281
282            ${m.map((e=>Ze`
283                <div class="pick-list">
284                  ${e.map((e=>{var t,i;return Ze`
285                      <sg-pick
286                        offerId="${e.offerId}"
287                        operator="${(null===(t=this.selectedOperator)||void 0===t?void 0:t.operator)||""}"
288                        .altLine="${d(e)}"
289                        disabledMessage="${s(e.offerId)?"":`BET UNAVAILABLE AT ${null===(i=this.selectedOperator)||void 0===i?void 0:i.operator.toUpperCase()}`}"
290                        ?disabled="${!s(e.offerId)}"
291                        @pick-cancel="${this.pickCancelHandler}"
292                      ></sg-pick>
293                    `}))}
294                </div>
295              `))}
296
297            <div class="u-bet__footer">
298              <sg-betslip-calculator
299                betslipType="${ie.betslipType}"
300                odds="${c(this.selectedOperator)}"
301                operatorPayout="${p(this.selectedOperator,this.wager)}"
302                @wager-changed="${this.changeWagerHandler}"
303              ></sg-betslip-calculator>
304            </div>
305          </div>
306
307          <div class="operators">
308            <div class="operator__title">
309              ${r.length>1?"Compare Odds":"Current Odds"}
310            </div>
311            ${r.map((e=>{var t;return Ze`
312                <div
313                  class="operator ${e.operator===(null===(t=this.selectedOperator)||void 0===t?void 0:t.operator)?"selected":""}"
314                  data-operator-id="${e.operator}"
315                  @click="${()=>this.selectOperatorHandler(e.operator)}"
316                >
317                  <div
318                    class="logo"
319                    style="background-image: url(${"https://sg-platform.cbssports.com"}/widgets/assets/operators/square/${e.operator}.png)"
320                  ></div>
321                  <div class="name">${O(e.operator)}</div>
322                  ${l(e)?Ze`
323                      <div class="attention">
324                        <sg-icon-attention></sg-icon-attention>
325                        updated line
326                      </div>
327                    `:Je}
328                  ${this.bets.length>1?Ze`
329                      <div
330                        class="qty-available ${e.bets.length<this.bets.length?"mark-text":""}"
331                      >
332                        ${e.bets.length}/${this.bets.length}
333                      </div>
334                    `:Je}
335                  <div class="odds">
336                    ${"straight"===ie.betslipType?`$${Oi(p(e,this.wager),1e3,1)}`:Lt(c(e))}
337                  </div>
338                </div>
339              `}))}
340          </div>
341        </div>
342
343        <div class="footer">
344          <div class="cta">
345            <button type="button" class="btn btn-primary" @click="${this.clickoutHandler}">
346              Bet at ${O((null===(o=this.selectedOperator)||void 0===o?void 0:o.operator)||"")}
347            </button>
348          </div>
349
350          ${h?Ze`
351              <div class="offer">
352                <div class="flex">
353                  <div
354                    class="upper-text"
355                    style="background-color:${h.upper_text_background_color}"
356                  >
357                    <div
358                      class="logo"
359                      style="background-image: url(${"https://sg-platform.cbssports.com"}/widgets/assets/operators/default/${null===(a=this.selectedOperator)||void 0===a?void 0:a.operator}.png)"
360                    ></div>
361                    <div class="text" style="color:${h.upper_text_font_color}">
362                      ${h.upper_text}
363                    </div>
364                  </div>
365                </div>
366
367                <div class="offer__content">
368                  <div class="offer__main">
369                    <div class="offer__title">${h.promo_text}</div>
370                    <div class="info">${h.promo_sub_text}</div>
371                  </div>
372                  <div class="offer__cta">
373                    <button
374                      type="button"
375                      class="btn btn-secondary btn_offer__cta"
376                      @click="${this.offerClickoutHandler}"
377                    >
378                      Claim Offer
379                    </button>
380                  </div>
381                </div>
382                <sg-marquee class="offer__disclaimer" .text="${h.disclaimer}">
383                </sg-marquee>
384              </div>
385            `:Je}
386          ${g?Ze`
387            <div id="disclaimer">${g}</div>`:Je}
388        </div>
389        <sg-betslip-size-max></sg-betslip-size-max>
390      </div>
391    `}isEnabledForOperator(e){var t;if(!this.selectedOperator)return!1;const i=(null===(t=this.selectedOperator)||void 0===t?void 0:t.bets.map((e=>e.offerId)))||[];return i.includes(e)}impressionEvent(){var e,t;const i=ie.instanceId,o=n.getItem("betslipOffers"),a=o?o[(null===(e=this.selectedOperator)||void 0===e?void 0:e.operator)||""]:"";a&&(a.operatorName=(null===(t=this.selectedOperator)||void 0===t?void 0:t.operator)||""),z.dispatchImpressionBetslipWidget({instanceId:i,version:"1.0.0",operatorOffer:a})}changeWagerHandler(e){this.wager=+e.detail.wager||0}toggleBetslip(){var e,t;this.isClosed=!this.isClosed,null===(t=null===(e=this.shadowRoot)||void 0===e?void 0:e.host)||void 0===t||t.classList.toggle("is-closed",this.isClosed),this.isClosed?(P.trackEvent("minimize_betslip",this),z.dispatchBetslipWidgetAction(M.MINIMIZED,ie.instanceId)):(P.trackEvent("expand_betslip",this),z.dispatchBetslipWidgetAction(M.EXPANDED,ie.instanceId))}clearAllBetslip(){P.trackEvent("remove_all",this,{betsAmount:this.bets.length,betslipType:ie.betslipType}),z.dispatchBetslipWidgetAction(M.REMOVE_ALL,ie.instanceId,{bets:this.bets}),ie.removeAll()}clickoutHandler(){var e,t;const i=this.bets.length,o=n.getItem("wagerPayout"),a=Number(o),r=Number.isInteger(a)?a:Math.round(100*a)/100,s=n.getItem("wagerValue"),l=ie.getOperators().filter((e=>e.bets.length>0)).find((e=>{var t;return e.operator===(null===(t=this.selectedOperator)||void 0===t?void 0:t.operator)}));if(!l)return;const d=(e=>e.bets.some((e=>{const t=this.bets.find((t=>t.offerId===e.offerId));return(null===(null==t?void 0:t.bet.line)?0:null==t?void 0:t.bet.line)!==e.line})))(l),c=(null===(e=this.selectedOperator)||void 0===e?void 0:e.deepLink)||"",p=this.bets.map((e=>X(e,M.SG_ADD,{},l.operator))),u={operatorName:O((null===(t=this.selectedOperator)||void 0===t?void 0:t.operator)||""),widgetType:N.BETSLIP,widgetId:ie.instanceId,bets:p,data:{deepLink:c,betsAmount:i,betslipType:"straight"===ie.betslipType?ie.betslipType:"parlay",totalPayout:r,wagerAmount:s,alteredLine:d||!1}};
391P.trackEvent(M.SG_CLICK_OUT,this,u),z.dispatchBetslipWidgetAction(c?M.EXIT_CLICK:M.ERROR,ie.instanceId,{clickOutLink:c,userFlow:"betslip",error:c?"":"No deep link provided"}),ie.removeAll(),c&&window.open(c,"_blank")}offerClickoutHandler(){var e,t;const i=n.getItem("betslipOffers"),o=i?i[(null===(e=this.selectedOperator)||void 0===e?void 0:e.operator)||""]:"";if(o){const e=`${window.__window_vguid||""}-${ie.instanceId}`,i=`${o.cta_link}&s_c=${re()}&vid=${ae()}&sid=${e}&sourceUrl=${encodeURIComponent(window.location.href)}`;P.trackEvent("click_promotion",this,{deepLink:i,operatorName:O((null===(t=this.selectedOperator)||void 0===t?void 0:t.operator)||""),promoTitle:o.promo_text}),i?(window.open(i,"_blank"),z.dispatchBetslipWidgetAction(M.EXIT_CLICK,ie.instanceId,{clickOutLink:i,userFlow:"promo"})):z.dispatchBetslipWidgetAction(M.ERROR,ie.instanceId,{error:"No claim offer link provided"})}ie.removeAll()}selectOperatorHandler(e){var t,i;const o=ie.getOperators().filter((e=>e.bets.length>0));if(this.selectManual=e||"",this.selectedOperator&&e){const a=O(e),r=O(this.selectedOperator.operator);if(this.selectedOperator=o.find((t=>t.operator===e)),ie.selectedOperator=this.selectedOperator,a!==r){P.trackEvent("switch_operator",this,{operatorName:a,prevOperatorName:r});const e=n.getItem("betslipOffers"),o=e?e[(null===(t=this.selectedOperator)||void 0===t?void 0:t.operator)||""]:"";o&&(o.operatorName=(null===(i=this.selectedOperator)||void 0===i?void 0:i.operator)||""),z.dispatchBetslipWidgetAction(M.CHA
391NGE_BOOK,ie.instanceId,{offer:o}),ie.get().forEach((e=>{this.isEnabledForOperator(e.offerId)||z.dispatchBetslipWidgetAction(M.INVALID_ITEM,ie.instanceId,{bets:[e],status:"unavailable"})}))}}}pickCancelHandler(e){var t,i;const o=ie.get(e.detail.id);if(o){const e=o.bet.position.toUpperCase();let n,a;switch(e){case"OVER":n=o.game.awayTeam.abbr||"";break;case"UNDER":n=o.game.homeTeam.abbr||"";break;default:n=e}switch(o.bet.market.type){case"spread":a=`${e}_${(null===(t=o.bet)||void 0===t?void 0:t.altLine)||o.bet.line}`;break;case"total":a=`${e.toLowerCase()}_${o.bet.odds}`;break;case"moneyline":a=`${e}_to_win`;break;default:a=n}const{widget:r,path:s}=L(o.dataId),l=r===p;P.trackEvent(M.SG_REMOVE,this,{betKey:a,league:o.game.leagueName,betActionType:o.bet.market.type,betEntityName:n,gameId:l?(null===(i=o.game)||void 0===i?void 0:i.id)||"":s,widgetType:l?o.bet.widgetType:r,clickElement:"betslip"})}ie.remove(e.detail.id),o&&z.dispatchBetslipWidgetAction(M.REMOVE_ITEM,ie.instanceId,{bets:[o]})}}Li.tagName=`sg-${N.BETSLIP}`,Li.components=[Et,ki,Ti,Si,Ei,Ni,Ft],Li.styles=[ue('*{box-sizing:border-box}:host{--main-width: 434px;-webkit-text-size-adjust:100%;position:fixed;bottom:20px;right:20px;z-index:10000000;box-sizing:border-box;font:500 14px/1.2 "TT Norms",Helvetica,Arial,sans-serif;font-variation-settings:"slnt" 0,"wdth" 100,"ital" 0}@media screen and (max-width: 500px){:host{--main-width: 100dvw;bottom:0;right:0}}:host(.is-closed) #root{transform:translate3d(0, 10px, 0);visibility:hidden;opacity:0}:host(.is-closed) #btn-open{opacity:1;visibility:visible}:host(.hidden) #root{transform:translate3d(0, 0.25rem, 0);visibility:hidden;opacity:0}:host(.hidden) #btn-open{visibility:hidden;opacity:0}input[type=number],input[type=text],button{font:500 14px/1.2 "TT Norms",Helvetica,Arial,sans-serif;font-variation-settings:"slnt" 0,"wdth" 100,"ital" 0;-webkit-appearance:none;appearance:none}#btn-open{position:absolute;bottom:0;right:0;opacity:0;visibility:hidden;transition:opacity .3s ease-out,visibility .3s ease-out;will-change:opacity,visibility;display:inline-flex;padding:16px 14px;align-items:center;gap:4px;border-radius:16px;background:#004ace;color:#fff;font-size:16px;line-height:1.2;font-weight:700}#btn-open .txt{padding-top:1px}@media screen and (max-width: 500px){#btn-open{bottom:20px;right:20px}}#root{position:absolute;bottom:0;right:0;display:flex;flex-direction:column;background-color:#fff;border-radius:8px;box-shadow:0 10px 24px rgba(0,0,0,.1);max-height:calc(100dvh - 40px);width:var(--main-width);transition:transform .3s ease-out,opacity .3s ease-out,visibility .3s ease-out;will-change:transform,opacity,visibility}#root>.scroll-container{flex:1}@media screen and (max-width: 500px){#root{border-radius:0;box-shadow:none;max-height:calc(100dvh - 65px)}}.hidden-scrollbar{overflow-x:hidden;overflow-y:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior:none}.hidden-scrollbar::-webkit-scrollbar{display:none}#btn-open-qty,.header .qty{width:24px;height:24px;padding-top:3px;border-radius:12px;background-color:#5781d6;text-align:center;color:#fff;font-size:16px;line-height:1.2;font-weight:700}.c-pointer{cursor:pointer;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.header{display:flex;justify-content:space-between;align-items:center;gap:4px;margin:27px 24px 19px}.title{font-size:32px;line-height:1;letter-spacing:-0.6px;font-weight:bold;color:#202121;flex:1;padding-top:1px}@media screen and (max-width: 500px){.title{font-size:24px}}sg-icon-opener{--size: 20px;--color: #181818}.u-bet{background-color:#f5f8ff;border-radius:8px;padding:18px 12px 12px;margin:8px 12px}@media screen and (max-width: 500px){.u-bet{margin-top:1px;padding-top:13px}}.u-bet__header{display:flex;justify-content:space-between;align-items:center;gap:5px;padding:0 1px 12px;color:#767676;font-size:16px;font-weight:500;line-height:1}@media screen and (max-width: 500px){.u-bet__header{padding-bottom:11px}}.u-bet__clear{font-size:12px;line-height:1.2;color:#4a7edd;display:flex;align-items:center;gap:4px;margin:-1px 12px 0 0;cursor:pointer;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.u-bet__clear .txt{padding-top:2px}.pick-list{box-shadow:0 2px 8px rgba(0,0,0,.1);border-radius:8px;background:#fff;margin-bottom:4px}.pick-list sg-pick+sg-pick{border-top:1px solid #dfe2e8}.operators{padding:23px 12px 12px;background-color:#fff}.operators.hidden{display:none}.operators .operator__title{color:#767676;font-size:16px;line-height:1.2;font-weight:500;padding:0 13px 10px}@media screen and (max-width: 500px){.operators{padding-top:17px}}.operator{padding:11px 22px 11px 12px;display:flex;justify-content:space-between;align-items:center;gap:12px;color:#767676;font-size:16px;line-height:1.2;font-weight:500;border-radius:8px;border:1px solid rgba(0,0,0,0);cursor:pointer;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}@media screen and (max-width: 500px){.operator{font-size:14px}}.operator:hover{background:#f5f8ff}.operator.selected{border-color:#004ace;background-color:#fff;color:#202121}.operator.selected .odds{color:#181818}.operator .logo{width:38px;height:38px;border-radius:4px;background-position:center;background-size:contain;background-repeat:no-repeat}@media screen and (max-width: 500px){.operator .logo{width:32px;height:32px}}.operator .name{flex:1}.operator .qty-available{font-size:14px;min-width:22px;font-weight:700}.operator .odds{font-weight:700;min-width:40px;text-align:right}.operator .mark-text{color:#d9690d}.operator .attention{color:#d9690d;text-transform:uppercase;font-size:14px;line-height:1.2;font-weight:700;display:inline-flex;gap:4px}.footer{padding:24px 24px 11px;box-shadow:0 -2px 8px rgba(0,0,0,.1)}@media screen and (max-width: 500px){.footer{padding-bottom:12px;margin-bottom:-1px}}.btn{display:inline-block;vertical-align:top;text-decoration:none;cursor:pointer;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.btn-primary{background-color:#004ace;color:#fff;border-radius:8px;padding:15px 10px 14px;font-size:16px;line-height:1.2;font-weight:500;text-align:center;border:none;transition:background-color .3s ease-in-out;will-change:background-color}.btn-primary:hover{background-color:#00259e}@media screen and (max-width: 500px){.btn-primary{font-size:14px;padding:8px 10px}}.btn-secondary{border:1px solid #99b7eb;background:#fff;color:#004ace;border-radius:8px;font-size:12px;line-height:1.2;font-weight:500;padding:8px 5px;text-align:center;transition:background-color .3s ease-in-out,color .3s ease-in-out,border-color .3s ease-in-out;will-change:background-color,color,border-color}.btn-secondary:hover{background-color:#0036b5;border-color:#0036b5;color:#fff}.cta{margin-bottom:15px}.cta .btn{width:100%}.offer{border:1px solid #99b7eb;border-radius:8px;margin-bottom:16px;padding:10px 12px 7px}
391.offer .flex{display:flex}.offer .upper-text{display:flex;align-items:center;gap:6px;color:#767676;background-color:#b9b9b9;padding:4px 6px 3px;text-transform:uppercase;border-radius:4px;margin-bottom:9px}.offer .upper-text .logo{width:16px;height:16px;background-position:center;background-size:contain}.offer .upper-text .text{padding-top:2px;font-size:12px;line-height:1.2;font-weight:700}.offer__content{flex:1;padding-bottom:9px;display:flex;justify-content:space-between;gap:5px}.offer__content .info{font-size:14px;line-height:1;font-weight:500;color:#767676}.offer__main{padding-top:1px}.offer__title{font-size:20px;line-height:1;font-weight:900;color:#202121;margin-bottom:4px}@media screen and (max-width: 500px){.offer__title{font-size:14px}}.offer__cta{width:76px}.offer__cta .btn{width:max-content;padding:9px 7px 7px;white-space:nowrap}.offer__disclaimer{color:#ababab;font-size:13px;font-style:normal;font-weight:500;line-height:1.2}#disclaimer{font-size:14px;line-height:1.2;font-weight:500;color:#767676;max-height:50px;overflow-x:hidden;overflow-y:auto;scrollbar-width:none}#disclaimer::-webkit-scrollbar{display:none}')],Mi([Ct()],Li.prototype,"bets",void 0),Mi([Ct()],Li.prototype,"selectedOperator",void 0),Mi([Ct()],Li.prototype,"wager",void 0);const Di=e=>mi(e,{widgetKey:"odds-picks",impressionType:"odds-picks",readableWidgetType:"Odds Page",clickElementKey:"odds-picks",widgetVersion:"1.1.3",hideIfOperatorMissing:!0}),_i="1.2.0";function ji(e=document,t){const i=e.querySelector(t);if(i)return i;const o=e.querySelectorAll("*");for(const e of Array.from(o)){const i=e.shadowRoot;if(i){const e=ji(i,t);if(e)return e}}return null}const $i=new WeakMap,{widgetKey:Pi,readableWidgetType:Ui,widgetVersion:zi}={widgetKey:"expert-picks-carousel",impressionType:"expert-picks-carousel",readableWidgetType:"Pick Carousel",clickElementKey:"expert-picks-carousel",widgetVersion:"1.3.0"},Ri=e=>{var t;const i=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:"";return i&&i===N.PROP_PICKS_CAROUSEL?N.PROP_PICKS_CAROUSEL:"expert-picks-carousel"},Bi=()=>{const e=Array.from(document.querySelectorAll("cbssports-carousel"));return e.length?(e.forEach((e=>{if(e.hasAttribute(g))return;e.setAttribute(g,"");const t=Array.from(e.querySelectorAll(".cbs-widget"));if(!t.length)return;const i={},o={},n={};t.forEach(((e,a)=>function(e,t,i,o){return new(i||(i=Promise))((function(e,t){function n(e){try{r(o.next(e))}catch(e){t(e)}}function a(e){try{r(o.throw(e))}catch(e){t(e)}}function r(t){var o;t.done?e(t.value):(o=t.value,o instanceof i?o:new i((function(e){e(o)}))).then(n,a)}r((o=o.apply(undefined,[])).next())}))}(0,0,void 0,(function*(){e.disabled=!0;const r=e.dataset.config;let s=null;if(!r){Q(e,Ri(),zi);const t="Widget config is missing in dataset-config attribute";return z.dispatchGeneralWidgetError(Pi,e.dataset.instanceId,ei(new Error(t)),zi),void(i[`undefined_${a}`]=null)}try{s=JSON.parse(r)}catch(t){const o=V(e);return Q(e,Ri(),zi,o),z.dispatchGeneralWidgetError(Pi,e.dataset.instanceId,ei(t),zi),P.trackError(e,`Error parse data-config - ${t.name}: ${t.message}`,{widgetType:Ui}),void(i[`undefined_${a}`]=null)}const l=F(s);if(l)return Q(e,Ri(s),zi,s.instanceId,{configMetaData:null==s?void 0:s.meta}),z.dispatchGeneralWidgetError(Pi,e.dataset.instanceId,ei(new Error(l)),zi),P.trackError(e,`Error validate data-config - ${l}`,{gameId:s.gameId,widgetType:Ui}),void(i[`undefined_${a}`]=null);const d=V(e,s.instanceId);o[d]=s;const c=Y(s),u=`${p}/${c}`;try{yield zt.fetchEventData(u),n[d]=Rt.add(u)}catch(t){return Q(e,Ri(s),zi,s.instanceId,{configMetaData:null==s?void 0:s.meta}),z.dispatchGeneralWidgetError(Pi,e.dataset.instanceId,ei(t),zi),P.trackError(e,`Error fetching widget data - ${t.name}: ${t.message}`,{gameId:s.gameId,widgetType:Ui}),void(i[`undefined_${a}`]=null)}zt.subscribe(u,(e=>{var a;if(!e)return;(e=Z(e,e.league_name,s.type))&&e.id?i[d]=q(e,s,null==e?void 0:e.market_type,s.line,c,Ui):i[d]=null;const r=i[d];if((null===(a=null==r?void 0:r.game)||void 0===a?void 0:a.startTime)&&new Date(r.game.startTime)<=new Date){const e=n[u];"function"==typeof e&&e(),delete n[u]}Wi(i,t,o)}))}))))}
391)),Promise.resolve([])):Promise.resolve([])},Wi=(e,t,i)=>{if(Object.keys(e).length!==t.length)return;const o=t.map((t=>{var o;const n=V(t);return{btn:t,id:n,betData:null!==(o=e[n])&&void 0!==o?o:null,config:i[n]}})),a=o.filter((e=>e.betData&&e.config)),r=a.map((e=>e.betData)),s=a.map((e=>{var t,i;return(null===(i=null===(t=e.config.meta)||void 0===t?void 0:t.bets)||void 0===i?void 0:i[0])||{}}));o.forEach(((e,t)=>{const{btn:i,betData:o,config:a}=e;if(!o||!a)return;const l=!!n.getItem("legal"),d=!(new Date(o.game.startTime)>new Date);((e,t,i)=>{const o=V(e);li.markOnce(o)&&Q(e,Ri(t),zi,t.instanceId,{isAllowedForBetting:i,bets:r,configMetaData:Object.assign(Object.assign({},null==t?void 0:t.meta),{bets:s})})})(i,a,l&&!d),l&&!d&&Hi(o,i,a,t+1)})),document.body.addEventListener("click",(()=>{R((()=>{const i=ji(document,"cbssports-modal");if(!i)return;const o=i.querySelector(".cbs-widget")||ji(i,"sg-bet-button");if(!o)return;const a=o.dataset.config;if(!a)return;let r;try{r=JSON.parse(a)}catch(e){return}const s=V(o,null==r?void 0:r.instanceId),l=e[s];if(!l)return;if(!(new Date(l.game.startTime)>new Date))return;const d=t.findIndex((e=>V(e)===s));if(-1!==d){if("success"!==i.getAttribute(g)){const e=null==r?void 0:r.meta,t=null==e?void 0:e.promotion,o=(null==e?void 0:e.source)||"modal";z.dispatchGeneralWidgetAction(M.OPENED_ANALYSIS,s,"expert-picks-carousel",l,{source:o,promotion:t},r),i.setAttribute(g,"success")}n.getItem("legal")&&"SG-BET-BUTTON"!==o.tagName&&Hi(l,o,r,d+1,!0)}}))}))},Hi=(e,t,i,o,n=!1)=>{t.disabled=!1;const a=$i.get(t);a&&t.removeEventListener("click",a);const r=Vi(e,t,i,o,n);t.addEventListener("click",r),$i.set(t,r);let s=!1;try{s=JSON.parse(t.dataset.config).directClickout}catch(e){}s||ie.subscribe((()=>{ie.has(e.offerId)?t.setAttribute("data-selected","true"):t.removeAttribute("data-selected")}))},Vi=(e,t,i,o,n=!1)=>()=>{var a;let r=!1;try{r=JSON.parse(t.dataset.config).directClickout}catch(e){}if(r){const o=V(t),r=I.getClickoutUrl({op:e.bet.operator,clickoutElement:i.type,dl:e.bet.deepLink},o);if(z.dispatchGeneralWidgetAction(M.EXIT_CLICK,o,Pi,e,{clickOutLink:r||"",source:(null===(a=i.meta)||void 0===a?void 0:a.source)||(n?"modal":"inline")}),r){const n=X(e,M.SG_ADD,{},e.bet.operator),a={widgetType:i.type,widgetId:o,bets:[n],data:{betKey:n.betKey}};P.trackEvent(M.SG_CLICK_OUT,t,a),window.open(r,"_blank")}else z.dispatchGeneralWidgetError(Pi,o,ei(new Error(`No deep link provided for ${i.type}`)),zi)}else ie.has(e.offerId)?(Fi(M.SG_REMOVE,e.offerId,t,o,n,i),ie.remove(e.offerId)):(ie.add(e,null==i?void 0:i.operatorName),R((()=>{Fi(M.SG_ADD,e.offerId,t,o,n,i)})))},Fi=(e,t,i,o,n=!1,a)=>{var r,s,l,d;const c=V(i),p=ie.get(t),u={widgetType:Ui,widgetId:c},h=X(p,e,e===M.SG_REMOVE?Object.assign(Object.assign({},u),{clickElement:Ri(a)}):Object.assign({},u));P.trackEvent(e,i,h,e===M.SG_REMOVE);const g=null==a?void 0:a.meta,m=null==g?void 0:g.source,b=(null===(r=null==g?void 0:g.bets)||void 0===r?void 0:r.length)?g.bets:void 0,v={source:m||(n?"modal":"inline"),promotion:null==g?void 0:g.promotion};let f;b&&(o=(null===(s=b[0])||void 0===s?void 0:s.position)||o,f=null===(d=null===(l=b[0])||void 0===l?void 0:l.selection)||void 0===d?void 0:d.label),e===M.SG_ADD?z.dispatchGeneralWidgetAction(M.CBS_ADD,c,Pi,p,v,a):z.dispatchGeneralWidgetAction(M.CBS_REMOVE,c,Pi,p,v,a)};class Gi extends bt{constructor(){super(...arguments),this.selected=!1}render(){return this.selected?Ze`
392        <span class="selected-text">Remove</span>
393        <span class="selected-icon"></span>
394      `:Ze`Bet this Pick`}}Gi.tagName="sg-button-pick",Gi.styles=[ue(':host{box-sizing:border-box;min-width:114px;padding:8px 12px;display:flex;justify-content:center;align-items:center;border-radius:8px;background-color:#004ace;border:none;font-weight:500;font-size:16px;line-height:120%;text-align:center;color:#fff;cursor:pointer;transition:background-color .2s ease-in-out;gap:4px}:host(:hover){background-color:#003bbe}:host(:hover) .selected-text{display:block}:host(:hover) .selected-icon{background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAxOCAxOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTUuNCA5LjlIMTIuNkMxMi44NTUgOS45IDEzLjA2ODggOS44MTM3NSAxMy4yNDEzIDkuNjQxMjVDMTMuNDEzOCA5LjQ2ODc1IDEzLjUgOS4yNTUgMTMuNSA5QzEzLjUgOC43NDUgMTMuNDEzOCA4LjUzMTI1IDEzLjI0MTMgOC4zNTg3NUMxMy4wNjg4IDguMTg2MjUgMTIuODU1IDguMSAxMi42IDguMUg1LjRDNS4xNDUgOC4xIDQuOTMxMjUgOC4xODYyNSA0Ljc1ODc1IDguMzU4NzVDNC41ODYyNSA4LjUzMTI1IDQuNSA4Ljc0NSA0LjUgOUM0LjUgOS4yNTUgNC41ODYyNSA5LjQ2ODc1IDQuNzU4NzUgOS42NDEyNUM0LjkzMTI1IDkuODEzNzUgNS4xNDUgOS45IDUuNCA5LjlaTTkgMThDNy43NTUgMTggNi41ODUgMTcuNzYzOCA1LjQ5IDE3LjI5MTNDNC4zOTUgMTYuODE4OCAzLjQ0MjUgMTYuMTc3NSAyLjYzMjUgMTUuMzY3NUMxLjgyMjUgMTQuNTU3NSAxLjE4MTI1IDEzLjYwNSAwLjcwODc1IDEyLjUxQzAuMjM2MjUgMTEuNDE1IDAgMTAuMjQ1IDAgOUMwIDcuNzU1IDAuMjM2MjUgNi41ODUgMC43MDg3NSA1LjQ5QzEuMTgxMjUgNC4zOTUgMS44MjI1IDMuNDQyNSAyLjYzMjUgMi42MzI1QzMuNDQyNSAxLjgyMjUgNC4zOTUgMS4xODEyNSA1LjQ5IDAuNzA4NzVDNi41ODUgMC4y
394MzYyNSA3Ljc1NSAwIDkgMEMxMC4yNDUgMCAxMS40MTUgMC4yMzYyNSAxMi41MSAwLjcwODc1QzEzLjYwNSAxLjE4MTI1IDE0LjU1NzUgMS44MjI1IDE1LjM2NzUgMi42MzI1QzE2LjE3NzUgMy40NDI1IDE2LjgxODggNC4zOTUgMTcuMjkxMyA1LjQ5QzE3Ljc2MzggNi41ODUgMTggNy43NTUgMTggOUMxOCAxMC4yNDUgMTcuNzYzOCAxMS40MTUgMTcuMjkxMyAxMi41MUMxNi44MTg4IDEzLjYwNSAxNi4xNzc1IDE0LjU1NzUgMTUuMzY3NSAxNS4zNjc1QzE0LjU1NzUgMTYuMTc3NSAxMy42MDUgMTYuODE4OCAxMi41MSAxNy4yOTEzQzExLjQxNSAxNy43NjM4IDEwLjI0NSAxOCA5IDE4Wk05IDE2LjJDMTEuMDEgMTYuMiAxMi43MTI1IDE1LjUwMjUgMTQuMTA3NSAxNC4xMDc1QzE1LjUwMjUgMTIuNzEyNSAxNi4yIDExLjAxIDE2LjIgOUMxNi4yIDYuOTkgMTUuNTAyNSA1LjI4NzUgMTQuMTA3NSAzLjg5MjVDMTIuNzEyNSAyLjQ5NzUgMTEuMDEgMS44IDkgMS44QzYuOTkgMS44IDUuMjg3NSAyLjQ5NzUgMy44OTI1IDMuODkyNUMyLjQ5NzUgNS4yODc1IDEuOCA2Ljk5IDEuOCA5QzEuOCAxMS4wMSAyLjQ5NzUgMTIuNzEyNSAzLjg5MjUgMTQuMTA3NUM1LjI4NzUgMTUuNTAyNSA2Ljk5IDE2LjIgOSAxNi4yWiIgZmlsbD0iI2FiYWJhYiIvPgo8L3N2Zz4K")}.selected-text{display:none}.selected-icon{width:19px;height:19px;background:no-repeat center/contain;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMTkiIHZpZXdCb3g9IjAgMCAxOSAxOSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgICAgICA8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfMzYyMl8zMzI5KSI+CiAgICAgICAgICA8cGF0aCBkPSJNNy45MzkyMiAxMS4xMkw2LjAwNDIyIDkuMTg1QzUuODM5MjIgOS4wMiA1LjYyOTIyIDguOTM3NSA1LjM3NDIyIDguOTM3NUM1LjExOTIyIDguOTM3NSA0LjkwOTIyIDkuMDIgNC43NDQyMiA5LjE4NUM0LjU3OTIyIDkuMzUgNC40OTY3MiA5LjU2IDQuNDk2NzIgOS44MTVDNC40OTY3MiAxMC4wNyA0LjU3OTIyIDEwLjI4IDQuNzQ0MjIgMTAuNDQ1TDcuMzA5MjIgMTMuMDFDNy40ODkyMiAxMy4xOSA3LjY5OTIyIDEzLjI4IDcuOTM5MjIgMTMuMjhDOC4xNzkyMiAxMy4yOCA4LjM4OTIyIDEzLjE5IDguNTY5MjIgMTMuMDFMMTMuNjU0MiA3LjkyNUMxMy44MTkyIDcuNzYgMTMuOTAxNyA3LjU1IDEzLjkwMTcgNy4yOTVDMTMuOTAxNyA3LjA0IDEzLjgxOTIgNi44MyAxMy42NTQyIDYuNjY1QzEzLjQ4OTIgNi41IDEzLjI3OTIgNi40MTc1IDEzLjAyNDIgNi40MTc1QzEyLjc2OTIgNi40MTc1IDEyLjU1OTIgNi41IDEyLjM5NDIgNi42NjVMNy45MzkyMiAxMS4xMlpNOS4xOTkyMiAxOC41QzcuOTU0MjIgMTguNSA2Ljc4NDIyIDE4LjI2MzggNS42ODkyMiAxNy43OTEzQzQuNTk0MjIgMTcuMzE4OCAzLjY0MTcyIDE2LjY3NzUgMi44MzE3MiAxNS44Njc1QzIuMDIxNzIgMTUuMDU3NSAxLjM4MDQ3IDE0LjEwNSAwLjkwNzk2OSAxMy4wMUMwLjQzNTQ2OSAxMS45MTUgMC4xOTkyMTkgMTAuNzQ1IDAuMTk5MjE5IDkuNUMwLjE5OTIxOSA4LjI1NSAwLjQzNTQ2OSA3LjA4NSAwLjkwNzk2OSA1Ljk5QzEuMzgwNDcgNC44OTUgMi4wMjE3MiAzLjk0MjUgMi44MzE3MiAzLjEzMjVDMy42NDE3MiAyLjMyMjUgNC41OTQyMiAxLjY4MTI1IDUuNjg5MjIgMS4yMDg3NUM2Ljc4NDIyIDAuNzM2MjUgNy45NTQyMiAwLjUgOS4xOTkyMiAwLjVDMTAuNDQ0MiAwLjUgMTEuNjE0MiAwLjczNjI1IDEyLjcwOTIgMS4yMDg3NUMxMy44MDQyIDEuNjgxMjUgMTQuNzU2NyAyLjMyMjUgMTUuNTY2NyAzLjEzMjVDMTYuMzc2NyAzLjk0MjUgMTcuMDE4IDQuODk1IDE3LjQ5MDUgNS45OUMxNy45NjMgNy4wODUgMTguMTk5MiA4LjI1NSAxOC4xOTkyIDkuNUMxOC4xOTkyIDEwLjc0NSAxNy45NjMgMTEuOTE1IDE3LjQ5MDUgMTMuMDFDMTcuMDE4IDE0LjEwNSAxNi4zNzY3IDE1LjA1NzUgMTUuNTY2NyAxNS44Njc1QzE0Ljc1NjcgMTYuNjc3NSAxMy44MDQyIDE3LjMxODggMTIuNzA5MiAxNy43OTEzQzExLjYxNDIgMTguMjYzOCAxMC40NDQyIDE4LjUgOS4xOTkyMiAxOC41Wk05LjE5OTIyIDE2LjdDMTEuMjA5MiAxNi43IDEyLjkxMTcgMTYuMDAyNSAxNC4zMDY3IDE0LjYwNzVDMTUuNzAxNyAxMy4yMTI1IDE2LjM5OTIgMTEuNTEgMTYuMzk5MiA5LjVDMTYuMzk5MiA3LjQ5IDE1LjcwMTcgNS43ODc1IDE0LjMwNjcgNC4zOTI1QzEyLjkxMTcgMi45OTc1IDExLjIwOTIgMi4zIDkuMTk5MjIgMi4zQzcuMTg5MjIgMi4zIDUuNDg2NzIgMi45OTc1IDQuMDkxNzIgNC4zOTI1QzIuNjk2NzIgNS43ODc1IDEuOTk5MjIgNy40OSAxLjk5OTIyIDkuNUMxLjk5OTIyIDExLjUxIDIuNjk2NzIgMTMuMjEyNSA0LjA5MTcyIDE0LjYwNzVDNS40ODY3MiAxNi4wMDI1IDcuMTg5MjIgMTYuNyA5LjE5OTIyIDE2LjdaIiBmaWxsPSJ3aGl0ZSIvPgogICAgICAgIDwvZz4KICAgICAgICA8ZGVmcz4KICAgICAgICAgIDxjbGlwUGF0aCBpZD0iY2xpcDBfMzYyMl8zMzI5Ij4KICAgICAgICAgICAgPHJlY3Qgd2lkdGg9IjE4IiBoZWlnaHQ9IjE4IiBmaWxsPSJ3aGl0ZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4xOTkyMTkgMC41KSIvPgogICAgICAgICAgPC9jbGlwUGF0aD4KICAgICAgICA8L2RlZnM+CiAgICAgIDwvc3ZnPg==")}')],function(e,t,i,o){var n,a=arguments.length,r=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(a<3?n(r):a>3?n(t,i,r):n(t,i))||r);a>3&&r&&Object.defineProperty(t,i,r)}([wt({type:Boolean})],Gi.prototype,"selected",void 0);const Yi="1.2.0",Ki=new WeakMap,Qi=e=>e.length?ci(e,{widgetVersion:Yi,impressionType:N.PICK_OF_THE_DAY,readableWidgetType:N.PICK_OF_THE_DAY,clickElementKey:N.PICK_OF_THE_DAY,getHost:e=>e,getRenderContainer:e=>e,reportError:(e,t)=>
394{z.dispatchPickOfTheDayWidgetError(e,ei(t),Yi)},reportAction:(e,t,i,o,n)=>{z.dispatchPickOfTheDayWidgetAction(e,t,i,o,n)},renderButton:()=>(Gi.register(),new Gi),syncSelectedState:(e,t)=>{if(Ki.has(e))return;const i=ie.subscribe((()=>{e.selected=ie.has(t.offerId)}));"function"==typeof i?Ki.set(e,i):Ki.set(e,(()=>{})),e.selected=ie.has(t.offerId)},buildClickout:({bet:e,config:t,instanceId:i})=>{const o=I.getClickoutUrl({op:e.bet.operator,clickoutElement:t.type,dl:e.bet.deepLink},i);if(!o)return null;const n=X(e,M.SG_ADD,{},e.bet.operator);return{url:o,payload:{widgetType:t.type,widgetId:i,bets:[n],data:{betKey:n.betKey}}}},buildImpressionMeta:({config:e})=>({configMetaData:null==e?void 0:e.meta}),clearContainer:!0,replaceClickHandler:!0}):Promise.resolve([]),Zi=e=>e instanceof ShadowRoot,qi=new WeakMap;class Ji extends HTMLElement{constructor(){super(),this.slotChangedSignal=new AbortController,this.fileName="",this.widgetKey="props-table",this.impressionType="props-table",this.readableWidgetType="Props Table",this.clickElementKey="props-table",this.widgetVersion="1.1.1",this.dataHubPrefix=p,this.dispatchedImpression=[],this.widgetType="props-table",this.isModal=!1,this.slotChanged=()=>{const e=this.shadowRoot.querySelector("slot");if(!this.hasAttribute(b))return;const t=e.assignedElements({flatten:!0})[0];t&&t instanceof HTMLElement&&(this.button=t)},this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML="<slot></slot>"}connectedCallback(){const e=this.shadowRoot.querySelector("slot");this.dataConfig(this[b]),e.addEventListener("slotchange",this.slotChanged,{signal:this.slotChangedSignal.signal}),this.init()}disconnectedCallback(){var e;this.slotChangedSignal.abort(),null===(e=this.stopUpdateInterval)||void 0===e||e.call(this)}isElementAWebComponent(e){return e.tagName.includes("-")}changeElState(e,t=!1){if(this.isElementAWebComponent(e))this.button.disabled=t;else{if(t)return void this.button.setAttribute("disabled","true");this.button.removeAttribute("disabled")}}dataConfig(e){try{const t="string"==typeof e?JSON.parse(e):e;this.setAttribute(b,JSON.stringify(t)),this.config=t}catch(e){}}init(){return function(e,t,i,o){return new(i||(i=Promise))((function(t,n){function a(e){try{s(o.next(e))}catch(e){n(e)}}function r(e){try{s(o.throw(e))}catch(e){n(e)}}function s(e){var o;e.done?t(e.value):(o=e.value,o instanceof i?o:new i((function(e){e(o)}))).then(a,r)}s((o=o.apply(e,[])).next())}))}(this,0,void 0,(function*(){var e,t,i;const o=this.getAttribute(b),a=null!==(()=>{let e=this;for(;e;)if(Zi(e))e=e.host;else if(e instanceof HTMLElement){if(e.matches("cbssports-modal"))return e;e=e.parentNode}else e=e.parentNode;return null})();if(this.isModal=a,!o)return void(a||Q(this,this.impressionType,this.widgetVersion));try{this.config=JSON.parse(o)}catch(e){return a||Q(this,this.impressionType,this.widgetVersion),void z.dispatchGeneralWidgetError(this.widgetType||this.widgetKey,this.dataset.instanceId,ei(e),this.widgetVersion)}const r=F(this.config);if(r)return a||Q(this,this.impressionType,this.widgetVersion,this.config.instanceId,{configMetaData:null===(e=this.config)||void 0===e?void 0:e.meta}),z.dispatchGeneralWidgetError(this.widgetType||this.widgetKey,this.dataset.instanceId,ei(new Error(r)),this.widgetVersion),null;this.widgetType=this.config.type,this.fileName=Y(this.config);try{yield zt.fetchEventData(`${this.dataHubPrefix}/${this.fileName}`)}catch(e){a||Q(this,this.widgetType,this.widgetVersion,this.config.instanceId,{configMetaData:null===(t=this.config)||void 0===t?void 0:t.meta}),z.dispatchGeneralWidgetError(this.widgetType||this.widgetKey,this.dataset.instanceId,ei(e),this.widgetVersion),P.trackError(this,`Error fetching widget data - ${e.name}: ${e.message}`,{gameId:this.config.gameId,widgetType:this.readableWidgetType})}const s=null!==(i=this.config.line)&&void 0!==i?i:0,l=0===s?null:s;zt.subscribe(`${this.dataHubPrefix}/${this.fileName}`,(e=>{var t,i,o;if(!e)return;e=Z(e,e.league_name,this.config.type);const r=q(e,this.config,null==e?void 0:e.market_type,l,this.fileName,this.readableWidgetType);if(!r)return void(a||Q(this,this.widgetType,this.widgetVersion,this.config.instanceId,{configMetaData:null===(t=this.config)||void 0===t?void 0:t.meta}));const s=!!n.getItem("legal");if(!s&&(this.changeElState(this.button,!0),!a))return void Q(this,this.widgetType,this.widgetVersion,this.config.instanceId,{bets:[r],configMetaData:null===(i=this.config)||void 0===i?void 0:i.meta});const d=!(new Date(r.game.startTime)>new Date),c=this.button;c&&this.changeElState(c,!0);const p=V(this,this.config.instanceId);d?(this.tryToDispatchImpression(p,r),null===(o=this.stopUpdateInterval)||void 0===o||o.call(this)):s&&(this.activateButton(r,c),this.tryToDispatchImpression(p,r,!0))}
394)),this.stopUpdateInterval=Rt.add(`${this.dataHubPrefix}/${this.fileName}`)}))}tryToDispatchImpression(e,t,i=!1){var o;this.isModal||this.dispatchedImpression.includes(e)||(this.dispatchedImpression.push(e),Q(this,this.widgetType,this.widgetVersion,e,{bets:[t],isAllowedForBetting:i,configMetaData:null===(o=this.config)||void 0===o?void 0:o.meta}))}activateButton(e,t){if(!t)return;this.changeElState(t);const i=qi.get(t);i&&t.removeEventListener("click",i);const o=this.cbsClickHandlerFactory(e);t.addEventListener("click",o),qi.set(t,o),ie.subscribe((()=>{ie.has(e.offerId)?t.setAttribute("data-selected","true"):t.removeAttribute("data-selected")}))}cbsClickHandlerFactory(e){return()=>{var t;if(this.config.directClickout){const t=V(this),i=I.getClickoutUrl({op:e.bet.operator,clickoutElement:this.config.type,dl:e.bet.deepLink},t);if(i){const o=X(e,M.SG_ADD,{},e.bet.operator),n={widgetType:this.config.type,widgetId:t,bets:[o],data:{betKey:o.betKey}};P.trackEvent(M.SG_CLICK_OUT,this,n),window.open(i,"_blank")}else z.dispatchGeneralWidgetError(this.widgetType||this.widgetKey,this.dataset.instanceId,ei(new Error(`No deep link provided for ${this.config.type}`)),this.widgetVersion)}else ie.has(e.offerId)?(this.toggleBetEvent(M.SG_REMOVE,e.offerId),ie.remove(e.offerId)):(ie.add(e,null===(t=this.config)||void 0===t?void 0:t.operatorName),R((()=>{this.toggleBetEvent(M.SG_ADD,e.offerId)})))}}toggleBetEvent(e,t){var i,o,n;const a=V(this),r=ie.get(t),s={widgetType:this.widgetType,widgetId:a},l=X(r,e,e===M.SG_REMOVE?Object.assign(Object.assign({},s),{clickElement:this.widgetType}):Object.assign({},s));P.trackEvent(e,this,l,e===M.SG_REMOVE);const d=null===(i=this.config)||void 0===i?void 0:i.meta,c=null==d?void 0:d.source,p=null===(o=null==d?void 0:d.bets)||void 0===o?void 0:o[0],u=null==p?void 0:p.position,h=null==p?void 0:p.rowIndex,g=null==p?void 0:p.type,m=null===(n=null==p?void 0:p.selection)||void 0===n?void 0:n.label,b={source:c||(this.isModal?"modal":"inline")};(null==d?void 0:d.promotion)&&(b.promotion=d.promotion);const v=`${a}_${this.getAttribute(f)}`;e===M.SG_ADD?"prop-picks-carousel"===this.widgetType?z.dispatchGeneralWidgetAction(M.CBS_ADD,a,this.widgetType,r,b,Object.assign({},this.config)):z.dispatchPropsTableWidgetAction(M.CBS_ADD,v,r,b,{position:u,label:m,rowIndex:h,type:g}):"prop-picks-carousel"===this.widgetType?z.dispatchGeneralWidgetAction(M.CBS_REMOVE,a,this.widgetType,r,b,Object.assign({},this.config)):z.dispatchPropsTableWidgetAction(M.CBS_REMOVE,v,r,b,{position:u,label:m,rowIndex:h,type:g})}}let Xi=!1;var eo=function(e,t,i,o){var n,a=arguments.length,r=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(r=(a<3?n(r):a>3?n(t,i,r):n(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r};const to=["#09c285","#e10500","#f2b705","#1592ff","#8c52ff"],io=Ze`
395  <svg
396    width="41"
397    height="12"
398    viewBox="0 0 78 20"
399    fill="none"
400    xmlns="http://www.w3.org/2000/svg"
401    aria-label="Kalshi"
402  >
403    <path d="M40.1043 0H36.0332V19.9986H40.1043V0Z" fill="currentColor" fill-opacity="0.9"></path>
404    <path
405      d="M0.416887 0.0221237H4.73849V8.99348L12.818 0.0221237H18.0582L10.6468 8.24586L18.5384 20H13.3608L7.59868 11.5686L4.73849 14.7459V20H0.416887V0.0221237Z"
406      fill="currentColor"
407    ></path>
408    <path
409      fill-rule="evenodd"
410      clip-rule="evenodd"
411      d="M34.4675 19.8117H32.4007C30.5426 19.8117 29.624 19.0017 29.6658 17.4027C29.1229 18.2334 28.4549 18.8771 27.6824 19.3132C26.8891 19.7494 25.9496 19.9778 24.8222 19.9778C23.1729 19.9778 21.8368 19.604 20.8138 18.8564C19.8117 18.088 19.3106 17.0289 19.3106 15.6582C19.3106 14.1007 19.8952 12.8962 21.0434 12.0656C22.2126 11.2141 23.9036 10.778 26.1166 10.778H29.0603V10.0719C29.0603 9.40737 28.8098 8.8882 28.3087 8.49362C27.8077 8.09905 27.1396 7.89138 26.2836 7.89138C25.532 7.89138 24.9266 8.05752 24.4464 8.36902C23.9662 8.70129 23.674 9.1374 23.5905 9.67734H19.6446C19.7699 8.18212 20.4589 7.01916 21.6697 6.18848C22.8806 5.3578 24.4882 4.92169 26.4924 4.92169C28.5801 4.92169 30.2086 5.37857 31.3359 6.29232C32.4842 7.20607 33.0688 8.53516 33.0688 10.2588V15.4298C33.0688 15.7828 33.1523 16.0321 33.2984 16.1774C33.4445 16.302 33.6951 16.3851 34.0291 16.3851H34.4675V19.8117ZM26.0749 13.4569C25.2398 13.4569 24.5717 13.6231 24.0915 13.9761C23.6322 14.3084 23.4026 14.7653 23.4026 15.3675C23.4026 15.8867 23.5905 16.2813 23.9871 16.5928C24.3838 16.9043 24.9266 17.0496 25.5947 17.0496C26.6594 17.0496 27.4945 16.7589 28.1 16.1567C28.7054 15.5544 29.0394 14.7445 29.0603 13.7269V13.4569H26.0749Z"
412      fill="currentColor"
413    ></path>
414    <path
415      d="M45.5115 14.9314C45.5741 15.5752 45.8873 16.0944 46.4718 16.5097C47.0564 16.9043 47.7871 17.112 48.6848 17.112C49.5408 17.112 50.2297 16.9874 50.7308 16.7174C51.2318 16.4266 51.4824 16.0321 51.4824 15.5129C51.4824 15.1391 51.3571 14.8483 51.1275 14.6614C50.8978 14.4745 50.5638 14.3292 50.1462 14.2669C49.7287 14.163 49.0397 14.0592 48.0794 13.9554C46.7641 13.7892 45.6785 13.5608 44.8225 13.2908C43.9665 13.0208 43.2567 12.6055 42.7557 12.024C42.2337 11.4426 41.9832 10.6949 41.9832 9.73966C41.9832 8.78438 42.2337 7.9537 42.7557 7.22685C43.2985 6.47924 44.0501 5.91853 45.0104 5.50319C45.9708 5.10861 47.0773 4.90094 48.3299 4.90094C50.355 4.92171 51.9625 5.35782 53.1943 6.1885C54.4469 7.01918 55.115 8.18213 55.2194 9.67736H51.3571C51.2945 9.11665 51.0022 8.68054 50.4594 8.327
4155C49.9374 7.97446 49.2694 7.78756 48.4343 7.78756C47.6618 7.78756 47.0355 7.93293 46.5553 8.22367C46.096 8.5144 45.8664 8.88821 45.8664 9.36585C45.8664 9.71889 45.9916 9.9681 46.2422 10.1342C46.4927 10.3004 46.8267 10.425 47.2234 10.508C47.6201 10.5911 48.309 10.6742 49.2485 10.7572C51.2527 10.9857 52.7768 11.4218 53.8206 12.0448C54.9062 12.647 55.4282 13.7062 55.4282 15.2222C55.4282 16.1774 55.1359 17.0081 54.5722 17.735C54.0085 18.4618 53.2361 19.0225 52.2131 19.4171C51.211 19.7909 50.0418 19.9986 48.7266 19.9986C46.6806 19.9986 44.9895 19.5417 43.716 18.6487C42.4216 17.735 41.7535 16.4889 41.67 14.9314H45.5115Z"
416      fill="currentColor"
417    ></path>
418    <path
419      d="M69.7503 6.72852C68.623 5.6694 67.2033 5.12946 65.4496 5.12946C63.6333 5.12946 62.1719 5.794 61.0654 7.12309V0H56.9943V19.9986H61.0654V12.4602C61.0654 11.1934 61.3368 10.2174 61.9213 9.5113C62.5059 8.80522 63.3201 8.45218 64.364 8.45218C65.3661 8.45218 66.1177 8.78445 66.6187 9.42823C67.1198 10.0512 67.3703 10.965 67.3703 12.1902V19.9986H71.4414V12.0241C71.4414 9.55283 70.8777 7.78763 69.7503 6.72852Z"
420      fill="currentColor"
421    ></path>
422    <path
423      d="M73.0068 5.29551H77.0779V19.9778H73.0068V5.29551Z"
424      fill="currentColor"
425      fill-opacity="0.9"
426    ></path>
427    <path
428      d="M76.473 0.581477C76.0972 0.20767 75.617 0 75.0324 0C74.4688 0 73.9677 0.20767 73.571 0.581477C73.1952 0.955283 72.9865 1.41216 72.9865 1.97287C72.9865 2.53358 73.1952 3.01122 73.571 3.38503C73.9677 3.75883 74.4688 3.9665 75.0324 3.9665C75.5961 3.9665 76.0972 3.7796 76.473 3.38503C76.8488 2.99045 77.0575 2.53358 77.0575 1.97287C77.0575 1.41216 76.8488 0.934516 76.473 0.581477Z"
429      fill="currentColor"
430    ></path>
431  </svg>
432`;class oo extends bt{constructor(){super(...arguments),this.instanceId=void 0,this.config=void 0,this.data=void 0}get markets(){var e,t,i,o;return(null===(e=this.data)||void 0===e?void 0:e.markets.slice(0,Number(Math.max(null!==(i=null===(t=this.config)||void 0===t?void 0:t.contenders)&&void 0!==i?i:null===(o=this.data)||void 0===o?void 0:o.markets.length,2))))||[]}render(){var e,t,i,o;return this.data?Ze`
433      <div id="root" @click=${this.clickoutHandler}>
434        <header>
435          <div class="event-logo">
436            <img
437              src=${"https://sg-platform.cbssports.com/"+this.data.event_logo}
438              alt=${this.data.event_title}
439            />
440          </div>
441          <h2 class="event-title">${this.data.event_title}</h2>
442          ${(null===(e=this.config)||void 0===e?void 0:e.isAllowedForBetting)?Ze`<div class="operator-logo">${io}</div>`:Je}
443        </header>
444
445        <main>
446          ${this.markets.map(((e,t)=>{var i;return Ze`
447              <div class="market-item" style=${`--accent-color: ${this.getAccentColor(t)}`}>
448                <span class="market-item-accent"></span>
449                ${(null===(i=this.data)||void 0===i?void 0:i.is_market_img)?Ze`<div class="market-item-logo">
450                      ${e.img?Ze`<img
451                            src=${"https://sg-platform.cbssports.com/"+e.img}
452                            alt=${e.name}
453                          />`:Je}
454                    </div>`:Je}
455                <div class="market-item-name">${e.name}</div>
456                <div class="market-item-probability">
457                  ${this.calcMarketProbability(e.odds)}
458                </div>
459              </div>
460            `}))}
461        </main>
462
463        ${(null===(t=this.config)||void 0===t?void 0:t.isAllowedForBetting)?Ze` <footer class="${Ot({"has-promo":Boolean(null===(i=this.config)||void 0===i?void 0:i.promo)})}">
464                ${(null===(o=this.config)||void 0===o?void 0:o.promo)?Ze`
465                      <div class="volume">
466                        <span class="volume-value">${this.formatVolume(this.data.volume)}</span>
467                        <span class="volume-label">vol</span>
468                      </div>
469                      <div class="promo">
470                        <div class="promo-title">KALSHI NEW CUSTOMER OFFER</div>
471                        <div class="promo-bonus">$55 BONUS</div>
472                        <div class="promo-description">IN CREDITS WHEN YOU TRADE $25</div>
473                      </div>
474                      <div class="trade-button-container">
475                        <div class="trade-button">Trade Now</div>
476                      </div>
477                    `:Ze`
478                      <div class="cell-side cell-side-left">
479                        <span class="volume-value">${this.formatVolume(this.data.volume)}</span>
480                        <span class="volume-label">vol</span>
481                      </div>
482                      <div class="cell-center trade-button-container">
483                        <div class="trade-button">Trade Now</div>
484                      </div>
485                      <div class="cell-side"></div>
486                    `}
487              </footer>
488
489              <div class="disclaimer">
490                <sg-marquee
491                  text='18+. Void where prohibited. Must be located in the U.S. Restrictions and eligibility requirements apply. New customers only. Must use an eligible promo code at sign-up. Trade $25 within 30 days of account opening to qualify. Reward is a variable Bonus Credit of up to $500; amount varies and the top tier is not guaranteed. Bonus Credit expires after 7 days, is non-withdrawable, and must be used to trade before any resulting funds can be withdrawn. Event contract trading involves significant risk, including the risk of loss, and is not appropriate for everyone. Please carefully consider if it is appropriate for you in light of your personal financial circumstances. See <span class="link-text">kalshi.com/tc/500</span> and <span class="link-text">kalshi.com/regulatory</span> for additional terms and information. Offer subject to expiration. Kalshi products are not available in all jurisdictions. Sports event contracts currently unavailable in MI and NV.'
492                ></sg-marquee>
493              </div>`:Je}
494      </div>
495    `:Je}setData(e){this.data=e}getInfo(){return{version:oo.version,markets:this.markets}}formatVolume(e){return`$${Math.round(e).toLocaleString("en-US").replace(/,/g,",")}`}calcMarketProbability(e){return`${Math.round(1/e*100)}%`}formatOdds(e){var t;if("american"===(null===(t=this.config)||void 0===t?void 0:t.oddsFormat)){const t=w(e);return`${t>0?"+":""}${t}`}return`x${e}`}getAccentColor(e){var t;return null!==(t=to[e])&&void 0!==t?t:"#cccccc"}clickoutHandler(e){const t=e.target,i=e=>{this.dispatchEvent(new CustomEvent("widgetClick",{detail:{type:e,markets:this.markets}}))};if(t.closest(".promo"))i("click_promotion");else{if(t.closest("sg-marquee")){const t=e.composedPath().find((e=>e instanceof HTMLAnchorElement));if(null==t?void 0:t.href)return}i("clickout")}}static create(e,t,i){this.register();const o=document.createElement(this.tagName);return o.instanceId=e,o.data=i,o.config=t,o}static validate(e){return e?null:"No data provided"}}oo.styles=[ue(':host *{box-sizing:border-box}:host{--border-color: #dcdcdc;--bg-header-color: #f2f2f2;--bg-color: #fff;--text-color-title: #202121;--text-color-market-name: #192332;--text-color-market-odds: #607280;--text-color-market-probability: #181818;--border-color-market: #f5f6f7;--text-color-disclaimer: #607280;--text-color-primary: #181818;--text-color-volume-value: #202121;--text-color-volume-label: #607280;--text-color-trade-button: #ffffff;--bg-trade-button: #06c284;--brand-green: #09c285;--bg-promo: #f2f6fe;--bg-promo-title: rgba(9, 194, 133, 0.10);--text-color-promo-title: #09C285;--text-color-promo: #181818;display:block;container-type:inline-size;font:500 14px/1.2 "TT Norms",Helvetica,Arial,sans-serif;font-variation-settings:"slnt" 0,"wdth" 100,"ital" 0;color:var(--text-color-primary);cursor:default}:host([data-theme=dark]){--border-color: #484848;--bg-header-color: #212121;--bg-color: #212121;--text-color-title: #ffffff;--text-color-market-name: #ffffff;--text-color-market-odds: #c8c8c8;--text-color-market-probability: #ffffff;--border-color-market: #494949;--text-color-disclaimer: #8f8f8f;--text-color-primary: #ffffff;--text-color-volume-value: #8f8f8f;--text-color-volume-label: #8f8f8f;--text-color-trade-button: #212121;--bg-trade-button: #06c284;--brand-green: #09c285;--button-text: #ffffff;--bg-promo: #2b2b2b;--bg-promo-title: rgba(9, 194, 133, 0.10);--text-color-promo-title: #09C285;--text-color-promo: #ffffff}#root{border:1px solid var(--border-color);border-radius:8px;overflow:hidden}header{padding:12px 16px;display:flex;align-items:center;gap:10px;background-color:var(--bg-header-color)}.event-logo{flex:0 0 auto;width:48px;height:48px;border-radius:50%;overflow:hidden}.event-logo img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}.event-title{flex:1 1 auto;min-width:0;margin:0;font-size:20px;font-weight:700;line-height:1.2;color:var(--text-color-title)}.operator-logo{flex:0 0 auto;display:flex;align-items:center;color:var(--brand-green)}.operator-logo svg{display:block}main{background-color:var(--bg-color)}.market-item{position:relative;display:flex;align-items:center;gap:8px;padding:8px 16px;border-bottom:1px solid var(--border-color-market)}.market-item-accent{position:absolute;
495left:0;top:8px;bottom:8px;width:5px;border-radius:0 4px 4px 0;background:var(--accent-color, transparent)}.market-item-logo{flex:0 0 auto;width:32px;height:32px}.market-item-logo img{width:100%;height:100%;object-fit:contain;object-position:center;display:block}.market-item-name{flex:1 1 auto;min-width:0;font-size:16px;font-weight:600;color:var(--text-color-market-name);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:.05em;padding-top:1px}.market-item-probability{flex:0 0 auto;min-width:40px;text-align:right;font-size:14px;font-weight:500;color:var(--text-color-market-probability)}footer{display:flex;justify-content:center;align-items:center;gap:24px;align-self:stretch;padding:12px 16px;background-color:var(--bg-color)}footer.has-promo{flex-direction:column;gap:11px;padding-top:1px;padding-bottom:7px}.cell-side{flex:0 0 auto;min-width:20%}.cell-side.cell-side-left{text-align:right}.cell-side.cell-side-right{text-align:left}.cell-center{flex:1 1 auto}.volume{width:100%}footer.has-promo .volume{padding-bottom:1px}.volume-value{color:var(--text-color-volume-value);font-size:14px;font-weight:500;line-height:1.2}.volume-label{color:var(--text-color-volume-label);font-size:12px;font-weight:500;line-height:1.8;padding-left:1px}.promo{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1 1 auto;gap:3px;width:100%;background-color:var(--bg-promo);color:var(--text-color-promo);padding:12px 16px 11px;border-radius:8px;line-height:1.2;font-weight:500;font-size:16px;cursor:pointer}.promo-title{background-color:var(--bg-promo-title);color:var(--text-color-promo-title);padding:4px 8px 3px;border-radius:4px;font-size:12px;margin-bottom:1px}.promo-bonus{font-size:20px;font-weight:700}.trade-button-container{width:100%}.trade-button{flex:1 1 auto;display:flex;align-items:center;justify-content:center;height:36px;padding:0;border-radius:8px;background:var(--bg-trade-button);color:var(--text-color-trade-button);font-size:16px;font-weight:500;line-height:1.2;text-decoration:none;cursor:pointer;transition:opacity .15s ease;opacity:1}.trade-button:hover{opacity:.8}.disclaimer{display:block;background-color:var(--bg-color);padding:12px 16px 10px}.disclaimer sg-marquee{color:var(--text-color-disclaimer);font-size:10px;font-weight:400;line-height:1.3}footer+.disclaimer{padding-top:0}@container (max-width: 500px){header{padding-bottom:14px}.event-logo{width:32px;height:32px}.event-title{font-size:13px;white-space:normal}.market-item-logo{width:24px;height:24px}.market-item-name{font-size:14px}footer{flex-direction:column;align-items:stretch;gap:8px;padding-top:5px;padding-bottom:11px}footer.has-promo{gap:8px;padding-top:5px;padding-bottom:11px}.volume{justify-content:flex-start}.cell-side.cell-side-left{text-align:left}.volume-value{font-size:12px;line-height:1.8}.volume-label{font-size:12px;line-height:1.8}.trade-button{width:100%}.promo{align-items:flex-start;padding:12px 10px}.promo-bonus{font-size:16px}.promo-description{font-size:12px}}')],oo.version="1.0.0",oo.tagName="sg-kalshi-futures",oo.widgetName="kalshi-futures",oo.components=[Ft],eo([wt({type:String,attribute:"data-instance-id",reflect:!0})],oo.prototype,"instanceId",void 0),eo([wt({type:Object,attribute:"data-config",reflect:!0})],oo.prototype,"config",void 0),eo([Ct()],oo.prototype,"data",void 0);var no=function(e,t,i,o){return new(i||(i=Promise))((function(n,a){function r(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,s)}l((o=o.apply(e,t||[])).next())}))};const ao=e=>e.toLowerCase().replace(/ /g,"_");let ro=!1,so=null;const lo=e=>{if(!ro){ro=!0;const e={referer:window.location.href};P.trackPageView(e)}};function co(){return function(e,t,i,o){return new(i||(i=Promise))((function(t,n){function a(e){try{s(o.next(e))}catch(e){n(e)}}function r(e){try{s(o.throw(e))}catch(e){n(e)}}function s(e){var o;e.done?t(e.value):(o=e.value,o instanceof i?o:new i((function(e){e(o)}))).then(a,r)}s((o=o.apply(e,[])).next())}))}(this,0,void 0,(function*(){if(yield function(){customElements.get("sg-bet-button")||customElements.define("sg-bet-button",Ji);const e=Array.from(document.querySelectorAll("sg-bet-button"));return e.length?Promise.all(e.map((e=>e.init()))):Promise.resolve([])}(),!document.querySelector(Li.tagName)){Li.register();const e=document.createElement(Li.tagName);document.body.appendChild(e)}const e=Array.from(document.querySelectorAll(".cbs-widget")).filter((e=>!e.hasAttribute(g)));if(so||(so=e,so.length||lo()),!e.length)return;const t=Array.from(document.querySelectorAll(".cbs-widget[data-config]")).filter((e=>!e.hasAttribute(m)&&(e.setAttribute(m,""),!0))),i={[N.SNIPPET]:[],[N.BRANDED_PICK_SNIPPET]:[],[N.PARLAY]:[],[N.PARLAY_BRANDED]:[],[N.SNIPPET_BUTTON]:[],[N.GAME_ODDS_PICK]:[],[N.PICK_OF_THE_DAY]:[],[N.FREE_EXPERT_PICK_OF_THE_DAY]:[]};var o,a;t.length&&t.forEach((e=>{let t=!1;e||(t=!0);const o=e.dataset.config;let n;o||(t=!0);try{n=JSON.parse(o||"{}")}catch(e){t=!0}const a=null==n?void 0:n.type;t||a&&i[a]&&i[a].push(e)})),yield Promise.all([ii(void 0,void 0,void 0,(function*(){const e=Array.from(document.querySelectorAll('.cbs-widget[data-type="six-pack"]')).filter((e=>!e.hasAttribute(g)));yield Promise.all(e.map((e=>ii(void 0,void 0,void 0,(function*(){if(e.setAttribute(g,""),e.dataset.gameId)try{let t=`six-pack/${e.dataset.gameId}`;const i=ti(e);[h.POLYMARKET,h.KALSHI].includes(null==i?void 0:i.operator)&&(t=`predictions/${e.dataset.gameId}_sixpack`);const o=yield zt.fetchEventData(t);
495if("closed"===o.meta.status)return;const n=Xt.validate(o);if(n)P.trackError(e,n);else{const t=B.getExclusiveOperator(o.meta.league_name,N.SIX_PACK),i=Xt.create(Object.assign({isDataLoaded:"true"},e.dataset),t);e.appendChild(i),e.setAttribute(g,"success")}}catch(t){const i=t.message;P.trackError(e,i)}else z.dispatchSnippetWidgetError(k(),ei(new Error("Game ID is required for six-pack")),Xt.version)})))))})),si(void 0,void 0,void 0,(function*(){const e=Array.from(document.querySelectorAll('.cbs-widget[data-type="world-cup"]')).filter((e=>!e.hasAttribute(g)));yield Promise.all(e.map((e=>si(void 0,void 0,void 0,(function*(){if(e.setAttribute(g,""),e.dataset.gameId)try{const t=yield zt.fetchEventData(`six-pack/${e.dataset.gameId}`);if("closed"===t.meta.status)return;const i=ri.validate(t);if(i)P.trackError(e,i);else{const i=B.getExclusiveOperator(t.meta.league_name,N.WORLD_CUP),o=ri.create(Object.assign({isDataLoaded:"true"},e.dataset),i);e.appendChild(o),e.setAttribute(g,"success")}}catch(t){const i=t.message;P.trackError(e,i)}else z.dispatchSnippetWidgetError(k(),ei(new Error("Game ID is required for world-cup")),ri.version)})))))})),ui(i[N.SNIPPET]),wi(i[N.BRANDED_PICK_SNIPPET]),gi(i[N.PARLAY]),(a=i[N.PARLAY_BRANDED],a.length?Promise.all(a.map((e=>function(e,t,i,o){return new(i||(i=Promise))((function(e,t){function n(e){try{r(o.next(e))}catch(e){t(e)}}function a(e){try{r(o.throw(e))}catch(e){t(e)}}function r(t){var o;t.done?e(t.value):(o=t.value,o instanceof i?o:new i((function(e){e(o)}))).then(n,a)}r((o=o.apply(void 0,[])).next())}))}(0,0,void 0,(function*(){var t,i,o,a,r,s,l,d,c,u,h;const m=e;e=m.closest("sportsline-pick-snippet-parlay");const b=null==m?void 0:m.dataset.config;let v=null,f=!1;const y=(null===(t=null==e?void 0:e.querySelector("sportsline-pick-snippet-parlay-card"))||void 0===t?void 0:t.querySelector(".sportsline-pick-snippet-parlay-card__info"))||(null===(a=null===(o=null===(i=null==e?void 0:e.shadowRoot)||void 0===i?void 0:i.querySelector("sportsline-pick-snippet-parlay-card"))||void 0===o?void 0:o.shadowRoot)||void 0===a?void 0:a.querySelector(".sportsline-pick-snippet-parlay-card__footer"));let w,C=0;if(y)try{C=Number(y.innerText.split("\n")[0].toLowerCase().split(" ")[1].replace("$",""))}catch(e){}if(b)try{v=JSON.parse(b),f=v.type===N.PARLAY_BRANDED,(null===(r=null==v?void 0:v.meta)||void 0===r?void 0:r.wager)&&(C=Number(v.meta.wager)||C),V(e,v.instanceId)}catch(t){return Q(e,"branded-parlay-picks",_i,"",{wager:C}),void z.dispatchParlayBrandingWidgetError(e.dataset.instanceId,ei(t),_i,e,"")}if(!f)return;if(!b){const t="Widget config is missing in dataset-config attribute";return Q(e,"branded-parlay-picks",_i,"",{wager:C}),void z.dispatchParlayBrandingWidgetError(e.dataset.instanceId,ei(new Error(t)),_i,e,"")}e.setAttribute(g,"");try{w=JSON.parse(b)}catch(t){return Q(e,"branded-parlay-picks",_i,"",{wager:C}),void z.dispatchParlayBrandingWidgetError(e.dataset.instanceId,ei(t),_i,e,"")}const x=G(w,N.PARLAY_BRANDED);if(x)return Q(e,"branded-parlay-picks",_i,"",{wager:C,operator:null==w?void 0:w.operatorName}),void z.dispatchParlayBrandingWidgetError(e.dataset.instanceId,ei(new Error(x)),_i,e,w.operatorName);const k=[],T=[],A=new Set;let S=0;const E=()=>{var t,i;if(0===k.length)return;const o=!k.every((e=>new Date(e.game.startTime)<=new Date)),a=Date.now(),r=k.filter((e=>new Date(e.game.startTime).getTime()>a));m.innerHTML="";const s=V(e),l=!!n.getItem("legal"),d=t=>{li.markOnce(s)&&z.dispatchImpressionParlayBrandingWidget(e,{instanceId:s,version:_i,bets:k,wager:C,isAllowedForBetting:!!t&&l&&r.length>0,configMetaData:null==v?void 0:v.meta},null==w?void 0:w.operatorName)};if(o){if(l&&r.length>0){if(!r.some((e=>{const t=O(w.operatorName||"").toLowerCase();return!!e.offers[t]})))return Q(e,"branded-parlay-picks",_i,s,{bets:k,wager:C,isAllowedForBetting:!1,operator:null==w?void 0:w.operatorName}),K(s,e,"branded-parlay-picks"),z.dispatchParlayBrandingWidgetError(s,{message:`missing the operator: "${w.operatorName}"`},_i,e,w.operatorName),void P.trackError(m,`missing the operator: "${w.operatorName}"`,{widgetType:"branded_parlay"});const o=J(r,(null===(i=null===(t=null==w?void 0:w.meta)||void 0===t?void 0:t.promotion)||void 0===i?void 0:i.ctaText)||`Bet at ${w.operatorName}`,!1);!function(e,t,i,o,n){e.addEventListener("click",(()=>{const a=t.operatorName||"",r=O(a).toLowerCase(),s=V(o),l=I.getClickoutUrl({op:r,clickoutElement:N.PARLAY_BRANDED,dl:i.filter((e=>{var t;return null===(t=e.offers[r])||void 0===t?void 0:t.deep_link})).map((e=>{var t;return null===(t=e.offers[r])||void 0===t?void 0:t.deep_link}))},s);l?(z.dispatchParlayBrandingWidgetAction(M.EXIT_CLICK,s,{link:l,userFlow:"branded-parlay"}),function(e,t,i,o){const n=V(i),a={operatorName:o,widgetType:"branded_parlay",widgetId:n,bets:e.map((e=>function(e,t){return X(e,M.SG_ADD,{},t)}(e,o))),data:{}};P.trackEvent(M.SG_CLICK_OUT,t,a)}(i,e,o,r),window.open(l,"_blank")):z.dispatchParlayBrandingWidgetError(s,{message:"No deep link provided"},_i,o,n)}))}(o,w,r,e,w.operatorName),m.appendChild(o)}d(!0),K(s,e,"branded-parlay-picks")}else T.forEach((e=>e())),d(!1),K(s,e,"branded-parlay-picks")};if(n.getItem("legal")){let t="";const i=null===(l=null===(s=e.shadowRoot)||void 0===s?void 0:s.querySelector("sportsline-pick-snippet-parlay-card"))||void 0===l?void 0:l.querySelector("sg-disclaimer");if(i&&(t=vi(w.operatorName)),t){Ft.register();const e=document.createElement(Ft.tagName);e.text=t,Object.assign(i.style,Object.assign(Object.assign({},fi),{padding:"var(--sportsline-pick-snippet-parlay-card-footer-padding, 0)",paddingBottom:"8px",paddingTop:"0"})),i.appendChild(e)}}const L=[],D=[];for(const t of w.markets){if(!t.gameId||!t.marketId||!t.marketName)return Q(e,"branded-parlay-picks",_i,"",{wager:C,operator:null==w?void 0:w.operatorName}),null;const i=Y(t),o=()=>{var t;const i=w.markets.length;if(S===i)if(L.length===i){let t=[];k.length>
4950&&(t=k),Q(e,"branded-parlay-picks",_i,"",{bets:t,wager:C,operator:null==w?void 0:w.operatorName}),z.dispatchParlayBrandingWidgetError(e.dataset.instanceId,ei(D[0]||new Error("Failed to load widget data")),_i,e,"")}else{const i=B.getExclusiveOperator(null===(t=k[0])||void 0===t?void 0:t.game.leagueName,N.PARLAY_BRANDED);if(i&&i.toLowerCase()!==w.operatorName.toLowerCase()){let t=[];k.length>0&&(t=k),Q(e,"branded-parlay-picks",_i,"",{bets:t,wager:C,operator:null==w?void 0:w.operatorName})}else E()}};try{yield zt.fetchEventData(`${p}/${i}`)}catch(e){L.push(i),D.push(e),S++,P.trackError(m,`Error fetching widget data - ${e.name}: ${e.message}`,{gameId:t.gameId,widgetType:"branded_parlay"}),o()}let n="";if(t.line)n=t.line;else{const t=null===(h=null===(u=null===(c=null===(d=null==e?void 0:e.shadowRoot)||void 0===d?void 0:d.querySelector("sportsline-pick-snippet-card"))||void 0===c?void 0:c.shadowRoot)||void 0===u?void 0:u.querySelector(".sportsline-pick-snippet-card__pick-label"))||void 0===h?void 0:h.innerHTML;if(t){const e=t.split("<span")[0].match(/[+-]?\d+(\.\d+)?/);n=e?e[0]:""}}const a=""===n?null:Number(n);zt.subscribe(`${p}/${i}`,(e=>{var n,r,s;const l=q(Object.assign(Object.assign({},e),{books:null===(n=e.books)||void 0===n?void 0:n.filter((e=>e.operator_name.toLowerCase()===w.operatorName.toLowerCase()))}),t,null==e?void 0:e.market_type,a,i,"branded_parlay");if(l){const e=(null===(s=null===(r=l.bet)||void 0===r?void 0:r.entity)||void 0===s?void 0:s.id)||"",t=k.findIndex((t=>{var i,o;return t.game.id===l.game.id&&t.bet.market.id===l.bet.market.id&&t.bet.position===l.bet.position&&((null===(o=null===(i=t.bet)||void 0===i?void 0:i.entity)||void 0===o?void 0:o.id)||"")===e}));t>=0?k[t]=l:k.push(l)}else L.push(i);A.has(i)||(A.add(i),S++),o()}));const r=Rt.add(`${p}/${i}`);T.push(r)}L.length>0?Q(e,"branded-parlay-picks",_i,"",{wager:C,operator:null==w?void 0:w.operatorName}):m.setAttribute(g,"success")}))))):Promise.resolve([])),(o=i[N.SNIPPET_BUTTON],mi(o,{widgetKey:"expert-picks",impressionType:"expert-picks",readableWidgetType:"Expert Picks",clickElementKey:"expert-picks",widgetVersion:"1.1.1"})),Di(i[N.GAME_ODDS_PICK]),Qi(i[N.PICK_OF_THE_DAY]),Bi(),no(void 0,void 0,void 0,(function*(){const e=Array.from(document.querySelectorAll(".cbs-widget[data-config]")).filter((e=>{if(e.hasAttribute(g))return!1;const t=ti(e);return"kalshi-futures"===(null==t?void 0:t.type)}));if(!e.length)return Promise.resolve();const t=!!n.getItem("legal");yield Promise.all(e.map((e=>no(void 0,void 0,void 0,(function*(){e.setAttribute(g,"");const i=ti(e);if(!i.gameId)return;const o=`predictions/last-price_${i.gameId}`,n=Boolean(i.preview);try{let a=null;if(a=n?(()=>{const e=localStorage.getItem("kalshi-futures-preview-data");if(e){if("string"==typeof e)try{return JSON.parse(e)}catch(e){}return e}return null})():yield(e=>no(void 0,void 0,void 0,(function*(){const t=yield zt.fetchEventData(e);return t?new Date>new Date(t.event_close_date)?null:t:null})))(o),!a)return;if(oo.validate(a))return i.gameId,void e.setAttribute(g,"error");const r=V(e),s=oo.create(r,Object.assign(Object.assign({},i),{isAllowedForBetting:n?i.legal:t}),a);if(e.appendChild(s),e.setAttribute(g,"success"),!n){const{markets:i}=s.getInfo();z.dispatchImpressionKalshiFuturesWidget({instanceId:r,version:"1.0.0",data:{widgetData:a,isAllowedForBetting:t,bets:i.map((e=>Object.assign(Object.assign({},e),{market:{label:e.name,operator:a.operator_name}})))}}),K(r,e,"kalshi-futures"),Rt.add(o),zt.subscribe(o,(e=>{new Date>new Date(e.event_close_date)?s.remove():s.setData(e)}))}const l=(e,o,l)=>{!n&&t&&(z.dispatchKalshiFuturesWidgetAction(M.EXIT_CLICK,r,{betData:Object.assign({},l),type:o,clickOutLink:e||"",isAllowedForBetting:t}),e&&("clickout"===o&&P.trackEvent(M.SG_CLICK_OUT,s,{widgetType:oo.widgetName,widgetId:r,bets:l.markets.map((e=>({betKey:ao(a.event_title)+"_"+ao(e.name)+"_"+e.odds,league:"nfl",gameId:a.event_id,operatorName:a.operator_name,odds:e.odds,line:null,selectedPlayer:e.name}))),isAllowedForBetting:t,data:{gameId:a.event_id,fileName:a.file_name,deepLink:e}}),"click_promotion"===o&&P.trackEvent(M.SG_CLICK_PROMOTION,s,{widgetType:oo.widgetName,widgetId:r,isAllowedForBetting:t,deepLink:e,operatorName:a.operator_name,promoTitle:"KALSHI NEW CUSTOMER OFFER $15 BONUS AFTER YOUR FIRST $15 IN TRADES"}
495))),(e&&n?i.legal:t)&&window.open(e,"_blank")};s.addEventListener("widgetClick",(e=>{const{type:t,markets:o}=e.detail;let n="",s={};"clickout"!==t&&"click_promotion"!==t||(n=I.getKalshiDeepLink({instanceId:r,widgetConfig:i,eventLink:a.event_link||"",clickoutElement:(null==i?void 0:i.promo)?"kalshi_futures_promo":"kalshi_futures"}),s={markets:o}),l(n,t,s)}))}catch(e){}})))))}))]),(()=>{if(Xi)return;Xi=!0;const e="cbssports-player-prop-projection-analysis-modal";document.addEventListener("click",(t=>function(e,t,i,o){return new(i||(i=Promise))((function(e,t){function n(e){try{r(o.next(e))}catch(e){t(e)}}function a(e){try{r(o.throw(e))}catch(e){t(e)}}function r(t){var o;t.done?e(t.value):(o=t.value,o instanceof i?o:new i((function(e){e(o)}))).then(n,a)}r((o=o.apply(void 0,[])).next())}))}(0,0,void 0,(function*(){var i;yield new Promise((e=>setTimeout(e,0)));const o=document.querySelector(e),n=!!(null===(i=t.target)||void 0===i?void 0:i.closest(e));if(!o||n)return;const a=ji(o.shadowRoot||o,".cbs-widget")||ji(o.shadowRoot||o,"sg-bet-button");if(!a)return;const r=a.dataset.config;if(!r)return;let s;try{s=JSON.parse(r)}catch(e){return}const l=V(a,null==s?void 0:s.instanceId),d=Y(s),c=`${p}/${d}`,u=yield zt.fetchEventData(c);let h=null;if((null==u?void 0:u.id)&&(h=q(u,s,null==u?void 0:u.market_type,s.line,d,"")),!h)return;if(new Date(h.game.startTime)<=new Date)return;const m=ji(document,`.cbs-widget[data-instance-id="${l}"], sg-bet-button[data-instance-id="${l}"]`).getAttribute(f);if(m&&"success"!==o.getAttribute(g)){const e=`${l}_${m}`;if("SG-BET-BUTTON"===a.tagName){const t=null==s?void 0:s.meta,i=null==t?void 0:t.promotion,o=(null==t?void 0:t.source)||"modal";z.dispatchGeneralWidgetAction(M.OPENED_ANALYSIS,e,"expert-picks-carousel",h,{source:o,promotion:i},s)}else z.dispatchGeneralWidgetAction(M.OPENED_ANALYSIS,e,"expert-picks-carousel",h);o.setAttribute(g,"success")}}))))})(),lo()}))}class po{constructor(){this.eventTracker=new Map,this.eventNamesTracker=new Map,this.allEvents=[],this.unmappedEvents=0,this.eventListener=null,this.isInitialized=!1,this.instanceIdSet=new Set,this.duplicateInstanceIds=new Set}isDebugModeEnabled(){return"undefined"!=typeof window&&_t()}initialize(){!this.isInitialized&&this.isDebugModeEnabled()&&(this.setupEventTracking(),this.checkDuplicateInstanceIds(),this.isInitialized=!0)}checkDuplicateInstanceIds(){Array.from(document.querySelectorAll('.cbs-widget[data-config], sg-bet-button[data-config], sg-bet-button[data-instance-id], [data-type="sg-bet-button"][data-config]')).forEach((e=>{const t=this.getWidgetConfig(e),i=(null==t?void 0:t.instanceId)||e.instanceId||e.dataset.instanceId;i&&(this.instanceIdSet.has(i)?this.duplicateInstanceIds.add(i):this.instanceIdSet.add(i))}))}setupEventTracking(){this.eventListener=e=>{var t,i,o,n,a;const r=e.detail,s={timestamp:Date.now(),action:(null==r?void 0:r.action)||"unknown",instanceId:null===(t=null==r?void 0:r.widgetData)||void 0===t?void 0:t.instanceId,widgetType:null===(i=null==r?void 0:r.widgetData)||void 0===i?void 0:i.name,payload:(null==r?void 0:r.payload)||{},widgetData:null==r?void 0:r.widgetData,detail:r};if(this.allEvents.push(s),null===(o=null==r?void 0:r.widgetData)||void 0===o?void 0:o.instanceId){const e=r.widgetData.instanceId,t=(null==r?void 0:r.action)||"unknown",i=this.eventTracker.get(e)||0;this.eventTracker.set(e,i+1);const o=this.eventNamesTracker.get(e)||[];o.includes(t)||this.eventNamesTracker.set(e,[...o,t])}else this.unmappedEvents++,this.isDebugModeEnabled()&&window.console.warn("⚠ Event fired but no matching instanceId:",{action:null==r?void 0:r.action,widgetType:null===(n=null==r?void 0:r.widgetData)||void 0===n?void 0:n.name,hasWidgetData:!!(null==r?void 0:r.widgetData),widgetDataInstanceId:null===(a=null==r?void 0:r.widgetData)||void 0===a?void 0:a.instanceId})},window.addEventListener("martech-tracking-framework-event",this.eventListener)}cleanup(){this.eventListener&&(window.removeEventListener("martech-tracking-framework-event",this.eventListener),this.eventListener=null),this.eventTracker.clear(),this.eventNamesTracker.clear(),this.allEvents=[],this.unmappedEvents=0,this.instanceIdSet.clear(),this.duplicateInstanceIds.clear(),this.isInitialized=!1}getWidgetConfig(e){try{const t=e.dataset.config;if(t)return JSON.parse(t)}catch(e){}}extractWidgetInfo(e,t){var i,o;const n=this.getWidgetConfig(e),a=(null==n?void 0:n.instanceId)||e.instanceId||e.dataset.instanceId||(null==t?void 0:t.instanceId)||"",r=this.eventTracker.get(a)||0,s=this.eventNamesTracker.get(a)||[];let l=(null==n?void 0:n.gameId)||"",d=(null==n?void 0:n.marketId)||"",c=(null==n?void 0:n.operatorName)||"";if(t&&t.bets&&t.bets.length>0){const e=t.bets[0];l||(l=String(e.gameId||"")),!d&&(null===(i=e.market)||void 0===i?void 0:i.id)&&(d=String(e.market.id)),!c&&(null===(o=e.market)||void 0===o?void 0:o.operator)&&(c=e.market.operator)}l||(l=e.dataset.gameId||""),d||(d=e.dataset.marketId||""),c||(c=e.dataset.operator||"");let p=(null==n?void 0:n.type)||e.dataset.type||(null==t?void 0:t.name)||"unknown";return"unknown"===p&&"SG-BET-BUTTON"===e.tagName&&(p=(null==n?void 0:n.type)||N.PROPS_TABLE),{instanceId:a,type:p,gameId:l,marketId:d,operatorName:c,eventCount:r,hasJson:!!t,widgetData:t,config:n,element:e,eventNames:s}}collectWidgets(){const e=[...Array.from(document.querySelectorAll(".cbs-widget[data-config]")),...Array.from(document.querySelectorAll('sg-bet-button[data-config], sg-bet-button[data-instance-id], [data-type="sg-bet-button"][data-config]'))],t=j.getAllWidgets(),i=new Map;return e.forEach((e=>{const o=this.getWidgetConfig(e);let n=(null==o?void 0:o.instanceId)||e.instanceId||e.dataset.instanceId||"";if(!n){const i=(null==o?void 0:o.gameId)||e.dataset.gameId;let a=(null==o?void 0:o.type)||e.dataset.type;a||"SG-BET-BUTTON"!==e.tagName||(a=N.PROPS_TABLE);const r=Object.entries(t).find((([t,o])=>{var n,r;const s="SG-BET-BUTTON"!==e.tagName||a?a:N.PROPS_TABLE;return!(o.name!==s||i&&(null===(r=null===(n=o.bets)||void 0===n?void 0:n[0])||void 0===r?void 0:r.gameId)&&String(o.bets[0].gameId)!==String(i))}));r&&(n=r[0])}if(n){const o=t[n],a=this.extractWidgetInfo(e,o);i.set(n,a)}else{const t=this.extractWidgetInfo(e);if(t.instanceId||"unknown"!==t.type){const e=t.instanceId||`dom-${i.size}`;i.set(e,t)}}})),Object.entries(t).forEach((([e,t])=>{var o,n,a,r,s,l,d,c;if(!i.has(e)){const p=Array.from(document.querySelectorAll('.cbs-widget, sg-bet-button, [data-type="sg-bet-button"]')).find((t=>{const i=this.getWidgetConfig(t);return((null==i?void 0:i.instanceId)||t.instanceId||t.dataset.instanceId)===e})),u={instanceId:e,type:t.name||"unknown",gameId:(null===(n=null===(o=t.bets)||void 0===o?void 0:o[0])||void 0===n?void 0:n.gameId)?String(t.bets[0].gameId):"",marketId:(null===(s=null===(r=null===(a=t.bets)||void 0===a?void 0:a[0])||void 0===r?void 0:r.market)||void 0===s?void 0:s.id)?String(t.bets[0].market.id):"",operatorName:(null===(c=null===(d=null===(l=t.bets)||void 0===l?void 0:l[0])||void 0===d?void 0:d.market)||void 0===c?void 0:c.operator)||"",eventCount:this.eventTracker.get(e)||0,hasJson:!0,widgetData:t,config:p?this.getWidgetConfig(p):void 0,element:p||void 0,eventNames:this.eventNamesTracker.get(e)||[]};i.set(e,u)}})),Array.from(i.values())}formatMarketType(e,t,i){var o;if(null==i?void 0:i.marketType){const e=i.marketType.toUpperCase();if("SPREAD"===e||e.includes("SPREAD"))return"SPREAD_FULL";if("MONEYLINE"===e||e.includes("MONEYLINE"))return"MONEYLINE_FULL";if("TOTAL"===e||e.includes("TOTAL"))return"TOTAL_FULL";if("STANDARD"===e){const e=(null===(o=i.marketName)||void 0===o?void 0:o.toUpperCase())||"";if(e.includes("SPREAD"))return"SPREAD_FULL";if(e.includes("MONEYLINE"))return"MONEYLINE_FULL";if(e.includes("TOTAL"))return"TOTAL_FULL"}}if(e){const t=e.toUpperCase();if(t.includes("SPREAD"))return"SPREAD_FULL";if(t.includes("MONEYLINE"))return"MONEYLINE_FULL";if(t.includes("TOTAL"))return"TOTAL_FULL";if(t.includes("OVER")||t.includes("UNDER"))return"TOTAL_FULL"}return t&&t.includes("market")?t.split(":").pop()||t:e||t||"N/A"}getAvailableOperators(e,t){const i=[];return e&&"operators"in e&&Array.isArray(e.operators)?e.operators.map((e=>"string"==typeof e?e.toLowerCase():"object"==typeof e&&e.operator?e.operator.toLowerCase():"")):((null==e?void 0:e.bets)&&e.bets.forEac
495h((e=>{var t;(null===(t=e.market)||void 0===t?void 0:t.operator)&&!i.includes(e.market.operator.toLowerCase())&&i.push(e.market.operator.toLowerCase())})),(null==t?void 0:t.operatorName)&&!i.includes(t.operatorName.toLowerCase())&&i.push(t.operatorName.toLowerCase()),i.sort())}getTeamsFromWidgetData(e){var t,i;if(!(null==e?void 0:e.bets)||0===e.bets.length)return{};const o=e.bets[0],n={};if(null===(t=o.selection)||void 0===t?void 0:t.label){const e=o.selection.label.match(/\b([A-Z]{2,4})\b/g);e&&e.length>=2&&(n.away=e[0],n.home=e[1])}if(null===(i=o.market)||void 0===i?void 0:i.label){const e=o.market.label.match(/\b([A-Z]{2,4})\b/g);e&&(!n.away&&e[0]&&(n.away=e[0]),!n.home&&e[1]&&(n.home=e[1]))}return n}getStartTimeFromWidgetData(e){return null}formatSelectedOffer(e,t){var i,o;if(!(null==e?void 0:e.bets)||0===e.bets.length)return"N/A";const n=e.bets[0],a=(null===(i=n.market)||void 0===i?void 0:i.operator)||(null==t?void 0:t.operatorName)||"N/A",r=n.selection,s=(null==r?void 0:r.label)||"",l=null==r?void 0:r.odds,d=null!==(o=null==r?void 0:r.line)&&void 0!==o?o:null==t?void 0:t.line;let c=[a];if(s)c.push(s);else if(null!=d){const e=d>0?`+${d}`:String(d);c.push(e)}if(void 0!==l){const e=l>0?`+${l}`:String(l);c.push(`odds ${e}`)}return c.join(" | ")}printWidgetGroup(e){var t,i,o,n;const a=`▶ Widget – instanceId: ${e.instanceId.length>=4?e.instanceId.substring(0,4):e.instanceId||"N/A"} | ${e.type} | ${e.operatorName||"N/A"}`;if(window.console.groupCollapsed(a),window.console.log("Data Config (from HTML):"),e.config){const o={instanceId:e.config.instanceId,type:e.config.type,gameId:e.config.gameId?e.config.gameId.length>20?`${e.config.gameId.substring(0,20)}...`:e.config.gameId:"N/A",marketId:e.config.marketId,line:(null===(t=e.config.line)||void 0===t?void 0:t.toString())||"N/A",odds:(null===(i=e.config.odds)||void 0===i?void 0:i.toString())||"N/A",operatorName:e.config.operatorName||"N/A"};window.console.log(o)}else window.console.log("N/A");if(window.console.log(""),window.console.log("HTML Element:"),e.element?(window.console.log(e.element),window.console.log("Element details:",{tagName:e.element.tagName,className:e.element.className,id:e.element.id||"N/A",dataset:Object.assign({},e.element.dataset)})):window.console.log("⚠ Element not found in DOM"),window.console.log(""),window.console.log("Events:"),e.eventNames.length>0)e.eventNames.forEach((e=>{window.console.log(`✔ ${e}`)}));else{window.console.log("⚠ No events fired for this widget");const t=Array.from(this.eventTracker.keys()),i=this.allEvents.filter((t=>{var i,o,n;if(t.instanceId===e.instanceId)return!0;if(t.widgetType===e.type&&e.gameId){const a=null===(n=null===(o=null===(i=t.widgetData)||void 0===i?void 0:i.bets)||void 0===o?void 0:o[0])||void 0===n?void 0:n.gameId;if(a&&String(a)===e.gameId)return!0}return!1}));i.length>0&&(window.console.log(`   Found ${i.length} events that might match this widget:`),i.forEach((e=>{window.console.log(`   - ${e.action} (instanceId: ${e.instanceId||"N/A"}, widgetType: ${e.widgetType||"N/A"})`)}))),t.length>0&&(window.console.log(`   Available instanceIds with events: ${t.join(", ")}`),window.console.log(`   This widget instanceId: "${e.instanceId}"`))}if(window.console.log(""),window.console.log("JSON Summary:"),e.widgetData){const t=null===(o=e.widgetData.bets)||void 0===o?void 0:o[0],i=(null==t?void 0:t.league)||"N/A",a=(null===(n=null==t?void 0:t.market)||void 0===n?void 0:n.label)||"",r=this.formatMarketType(a,e.marketId,e.config),s=this.getTeamsFromWidgetData(e.widgetData),l=this.getAvailableOperators(e.widgetData,e.config),d=this.formatSelectedOffer(e.widgetData,e.config),c=this.getStartTimeFromWidgetData(e.widgetData);window.console.log(`League: ${i}`),c&&window.console.log(`Start time: ${c}`);let p=r;if(r&&"N/A"!==r&&r.includes("_")){const e=r.toLowerCase().replace("_full","").replace(/_/g,"");p=`${r} (${e})`}if(window.console.log(`Market: ${p}`),s.home||s.away)window.console.log("Teams:"),s.away&&window.console.log(`- Away: ${s.away}`),s.home&&window.console.log(`- Home: ${s.home}`);else{const t=this.formatTeamsString(e.widgetData);"N/A"!==t&&window.console.log(`Teams: ${t}`)}window.console.log("Books found:"),l.length>0?l.forEach((e=>{window.console.log(`- ${e}`)})):window.console.log("- N/A"),"N/A"!==d&&(window.console.log("Selected offer:"),window.console.log(`- ${d}`))}else window.console.log(`⚠ No matching JSON found for gameId: ${e.gameId},  marketId: ${e.marketId}`);this.duplicateInstanceIds.has(e.instanceId)&&window.console.warn(`⚠ Duplicate instanceId found in DOM: ${e.instanceId}`),0===e.eventCount&&window.console.warn("⚠ Widget found but no events fired"),window.console.groupEnd()}formatTeamsString(e){var t,i;if(!(null==e?void 0:e.bets)||0===e.bets.length)return"N/A";const o=e.bets[0],n=[];if(null===(t=o.selection)||void 0===t?void 0:t.label){const e=o.selection.label.match(/\b([A-Z]{2,4})\b/g);e&&n.push(...e)}if(null===(i=o.market)||void 0===i?void 0:i.label){const e=o.market.label.match(/\b([A-Z]{2,4})\b/g);e&&e.forEach((e=>{n.includes(e)||n.push(e)}))}return n.length>=2?`${n[0]} vs ${n[1]}`:1===n.length?n[0]:"N/A"}report(e){if(!this.isDebugModeEnabled())return void window.console.warn("Debug mode is not enabled. Add ?sg_debug=1 to the URL to enable debug output.");window.console.log("BUILD_VERSION: ",(()=>{const e=new Date("2026-09-23T07:23:16.694Z");return`${e.getFullYear()}${String(e.getMonth()+1).padStart(2,"0")}${String(e.getDate()).padStart(2,"0")}-${String(e.getHours()).padStart(2,"0")}${String(e.getMinutes()).padStart(2,"0")}`})()),this.initialize();let t=this.collectWidgets();if(null==e?void 0:e.instanceId)return t=t.filter((t=>t.instanceId===e.instanceId)),0===t.length?void window.console.error(`Widget with instanceId "${e.instanceId}" not found`):void this.printSingleWidgetReport(t[0]);(null==e?void 0:e.type)&&(t=t.filter((t=>t.type===e.type))),(null==e?void 0:e.gameId)&&(t=t.filter((t=>t.gameId===e.gameId)));const i=t.length,o=t.filter((e=>e.eventCount>0)).length,n=t.filter((e=>0===e.eventCount)).length,a=t.filter((e=>e.hasJson)).length,r=t.filter((e=>!e.hasJson)).length,s=this.unmappedEvents;if((null==e?void 0:e.type)||(null==e?void 0:e.gameId)){let t="";if(e.type&&(t=`type=${e.type}`),e.gameId){const i=e.gameId.length>20?`${e.gameId.substring(0,20)}...`:e.gameId;t=t?`${t}, gameId=${i}`:`gameId=${i}`}window.console.log(`SG DEBUG REPORT – Filter: ${t}`),window.console.log(`Widgets matched: ${i}`)}else window.console.log("SG DEBUG REPORT"),window.console.log("========================="),window.console.log(`Widgets detected: ${i}`),window.console.log(`Widgets with events: ${o}`),window.console.log(`Widgets missing events: ${n}`),window.console.log(`Widgets with JSON: ${a}`),window.console.log(`Widgets missing JSON: ${r}`),window.console.log(`Unmapped events: ${s}`);if(window.console.log(""),window.console.log("[Table]"),t.length>0){const i=t.map((t=>{const i={instanceId:t.instanceId.length>=4?t.instanceId.substring(0,4):t.instanceId||"N/A"};if((null==e?void 0:e.type)||(i.type=t.type||"N/A"),!(null==e?void 0:e.gameId)){const e=t.gameId?t.gameId.includes("-")?t.gameId.split("-")[0]:t.gameId.substring(0,8):"N/A";i.gameId=e}return i.marketId=t.marketId||"N/A",i.operatorName=t.operatorName||"N/A",i.events=t.eventCount,i.JSON=t.hasJson?"yes":"no",i}));window.console.table(i)}else window.console.log("No widgets found");t.forEach((e=>{this.printWidgetGroup(e)})),this.duplicateInstanceIds.size>0&&this.duplicateInstanceIds.forEach((e=>{window.console.warn(`⚠ Duplicate instanceId found in DOM: ${e}`)})),this.printAllEvents()}printAllEvents(){if(0===this.allEvents.length)return window.console.log(""),void window.console.log("No events collected yet.");window.console.log(""),window.console.log("═══════════════════════════════════════════════════════════"),window.console.log(`ALL COLLECTED EVENTS (${this.allEvents.length} total)`),window.console.log("═══════════════════════════════════════════════════════════");const e=new Map,t=[];
495this.allEvents.forEach((i=>{i.instanceId?(e.has(i.instanceId)||e.set(i.instanceId,[]),e.get(i.instanceId).push(i)):t.push(i)})),e.forEach(((e,t)=>{const i=t.length>=4?t.substring(0,4):t;window.console.groupCollapsed(`📦 instanceId: ${i} (${e.length} events)`),e.forEach(((e,t)=>{var i;const o=new Date(e.timestamp).toLocaleTimeString();window.console.log(`[${t+1}] ${o} | ${e.action} | ${e.widgetType||"N/A"}`),window.console.log("   Payload:",e.payload),e.widgetData&&window.console.log("   Widget Data:",{name:e.widgetData.name,instanceId:e.widgetData.instanceId,version:e.widgetData.version,betsCount:(null===(i=e.widgetData.bets)||void 0===i?void 0:i.length)||0})})),window.console.groupEnd()})),t.length>0&&(window.console.groupCollapsed(`⚠ Events without instanceId (${t.length})`),t.forEach(((e,t)=>{const i=new Date(e.timestamp).toLocaleTimeString();window.console.log(`[${t+1}] ${i} | ${e.action} | ${e.widgetType||"N/A"}`),window.console.log("   Payload:",e.payload),e.widgetData&&window.console.log("   Widget Data:",{name:e.widgetData.name,instanceId:e.widgetData.instanceId||"MISSING",version:e.widgetData.version})})),window.console.groupEnd()),window.console.log(""),window.console.log("Event Summary:");const i=new Map;this.allEvents.forEach((e=>{const t=`${e.action}${e.instanceId?` (${e.instanceId.substring(0,4)})`:" (no instanceId)"}`;i.set(t,(i.get(t)||0)+1)}));const o=Array.from(i.entries()).map((([e,t])=>({Event:e,Count:t})));window.console.table(o)}getAllEvents(){return[...this.allEvents]}printSingleWidgetReport(e){var t,i,o,n;if(window.console.log(`Widget Debug Report – instanceId: ${e.instanceId}`),window.console.log("-------------------------------------"),window.console.log(`Type: ${e.type}`),window.console.log(`Game ID: ${e.gameId||"N/A"}`),window.console.log(`Market ID: ${e.marketId||"N/A"}`),window.console.log(`Operator: ${e.operatorName||"N/A"}`),window.console.log(""),window.console.log("Data Config:"),e.config){const o={type:e.config.type,marketType:e.config.marketType||"N/A",gameId:e.config.gameId?e.config.gameId.length>20?`${e.config.gameId.substring(0,20)}...`:e.config.gameId:"N/A",marketId:e.config.marketId,line:(null===(t=e.config.line)||void 0===t?void 0:t.toString())||"N/A",odds:(null===(i=e.config.odds)||void 0===i?void 0:i.toString())||"N/A",operatorName:e.config.operatorName||"N/A",instanceId:e.config.instanceId};window.console.log(o)}else window.console.log("N/A");if(window.console.log(""),window.console.log("HTML Element:"),e.element?(window.console.log(e.element),window.console.log("Element details:",{tagName:e.element.tagName,className:e.element.className,id:e.element.id||"N/A",dataset:Object.assign({},e.element.dataset)})):window.console.log("⚠ Element not found in DOM"),window.console.log(""),window.console.log("Events:"),e.eventNames.length>0?e.eventNames.forEach((e=>{window.console.log(e)})):window.console.log("No events tracked"),window.console.log(""),window.console.log("JSON Summary:"),e.widgetData){const t=null===(o=e.widgetData.bets)||void 0===o?void 0:o[0],i=(null==t?void 0:t.league)||"N/A",a=(null===(n=null==t?void 0:t.market)||void 0===n?void 0:n.label)||"",r=this.formatMarketType(a,e.marketId,e.config),s=this.formatTeamsString(e.widgetData),l=this.getAvailableOperators(e.widgetData,e.config),d=this.formatSelectedOffer(e.widgetData,e.config);window.console.log(`League: ${i}`),window.console.log(`Market: ${r}`),window.console.log(`Teams: ${s}`),window.console.log(`Available operators: ${l.join(", ")||"N/A"}`),"N/A"!==d&&(window.console.log("Selected offer:"),window.console.log(`- ${d}`))}else window.console.log("No JSON data available")}}let uo=null;function ho(){return uo||(uo=new po),uo}"undefined"!=typeof window&&_t()&&ho().initialize(),"undefined"!=typeof window&&(window.SG=window.SG||{},window.SG.debug,window.SG.debug={report:e=>{ho().report(e)},getEvents:()=>ho().getAllEvents(),cleanup:()=>{uo&&(uo.cleanup(),uo=null)}});
495{const e="true"===new URLSearchParams(window.location.search).get("sg-tester"),o=document.getElementById(l);if(e&&!o){const e=document.createElement("meta");e.id=l,document.head.appendChild(e);const t=document.createElement("script");t.src="https://sg-platform.cbssports.com/widgets/scripts/sg.version.min.js",t.defer=!0,document.body.appendChild(t)}else(e=>{if(e&&window.console.log("%c[Widget] Test version loaded for sg-tester","color: green; font-size: 20px; font-weight: bold;"),document.getElementById(s))return;const o=document.createElement("meta");o.id=s,document.head.appendChild(o);const l=()=>function(e,t,i,o){return new(i||(i=Promise))((function(e,t){function n(e){try{r(o.next(e))}catch(e){t(e)}}function a(e){try{r(o.throw(e))}catch(e){t(e)}}function r(t){var o;t.done?e(t.value):(o=t.value,o instanceof i?o:new i((function(e){e(o)}))).then(n,a)}r((o=o.apply(undefined,[])).next())}))}(0,0,void 0,(function*(){try{yield function(){return function(e,t,i,o){return new(i||(i=Promise))((function(t,n){function a(e){try{s(o.next(e))}catch(e){n(e)}}function r(e){try{s(o.throw(e))}catch(e){n(e)}}function s(e){var o;e.done?t(e.value):(o=e.value,o instanceof i?o:new i((function(e){e(o)}))).then(a,r)}s((o=o.apply(e,[])).next())}))}(this,0,void 0,(function*(){if(oe=t.get("visitId")||"",ne=t.get("userId")||"",oe&&ne)return;ne||(ne=a.generateUId(),t.set("userId",ne,{expires:400,domain:".cbssports.com",secure:!0,sameSite:"Lax"}));const e=a.generateVUId();try{const t=window.__window_vguid||"",o=Object.assign(Object.assign({userId:ne,vuid:e,referer:window.location.href,visit_url:window.location.host,utm_referrer:document.referrer,device:navigator.userAgent},function(){const e=new URLSearchParams(window.location.search),t={};return["gclid","utm_source","utm_medium","utm_campaign","utm_term","utm_content","account","kwid","gbraid","fbclid"].forEach((i=>{const o=e.get(i);null!==o&&(t[i]=o)})),t}()),{sid:t,location:i()}),r=yield a.sendVisitRequest(o);r&&(n.setItem("disclaimer",r.disclaimer||""),n.setItem("legal","boolean"==typeof r.legal?r.legal:"true"===r.legal),n.setItem("brandedDisclaimers",r.brandedDisclaimers),n.setItem("betslipOffers",r.betslip||{}),n.setItem("exclusive",r.exclusive||null),n.setItem("legalityByOperator",r.legalityByOperator||null),oe=null==r?void 0:r.sessionMetaDataId),n.getItem("legal")||ie.removeAll()}catch(e){}oe||(oe=e),t.set("visitId",oe,{expires:r,domain:".cbssports.com",secure:!0,sameSite:"Lax"})}))}()}catch(e){}co(),new MutationObserver((e=>{for(const t of e)"childList"===t.type&&co()})).observe(document.body,{childList:!0,subtree:!0,attributes:!1,characterData:!1})}));"loading"!==document.readyState?l():document.addEventListener("DOMContentLoaded",l,{once:!0})})(!!o)}})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.