@golstats/gsc-game-data 1.0.344 → 1.0.345
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FilterConditions-c34af6ee-986c8d04.js → FilterConditions-c34af6ee-d05d1b19.js} +1 -1
- package/dist/{FilterConditions-cd420512-BgpF42_s-62dc2438.js → FilterConditions-cd420512-BgpF42_s-e0d385b5.js} +1 -1
- package/dist/{FilterField-5aa4eb4f-9c93659c.js → FilterField-5aa4eb4f-6c28998a.js} +1 -1
- package/dist/{FilterField-a29b1541-10XNy6VQ-fc6ef847.js → FilterField-a29b1541-10XNy6VQ-ed01dc90.js} +1 -1
- package/dist/{FilterSubcategories-1f65c851-DigSKAC7-402d29b6.js → FilterSubcategories-1f65c851-DigSKAC7-4e669eb5.js} +1 -1
- package/dist/{FilterSubcategories-e1dbb023-4ffa1862.js → FilterSubcategories-e1dbb023-be6ba331.js} +1 -1
- package/dist/gsc-game-data.js +1 -1
- package/dist/gsc-game-data.umd.cjs +2 -2
- package/dist/{index-474c57e4.js → index-bebecc09.js} +24 -12
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Bd,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(Bd=typeof globalThis<"u"?globalThis:Bd||self,t(Bd.GSCGameData={},Bd.Vue))})(this,function(Bd,t){"use strict";var Ejt=Object.defineProperty;var Ajt=(Bd,t,ay)=>t in Bd?Ejt(Bd,t,{enumerable:!0,configurable:!0,writable:!0,value:ay}):Bd[t]=ay;var gu=(Bd,t,ay)=>(Ajt(Bd,typeof t!="symbol"?t+"":t,ay),ay);const ay="",Mjt="",Ijt="",Pjt="",Bjt="",Ljt="",zjt="",Ojt="",Fjt="",KG=(e,s)=>{const o=e.__vccOpts||e;for(const[O,W]of s)o[O]=W;return o},J5={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},JT=()=>{t.useCssVars(e=>({"9d01acb4":e.height,"14e95081":e.borderWidthBtn,"38fec285":e.borderType,34353510:e.borderColor,"20d20dc6":e.borderRadius,17130967:e.width,"4ccb7d36":e.backgroundColor,"5d1e86a2":e.cursorType,ce65d4a2:e.fontSize,fe4ac47a:e.fontStyle,f98e44dc:e.fontFamily,"93b87770":e.marginLeftStat,c7f7beba:e.fontSizeStat}))},KT=J5.setup;J5.setup=KT?(e,s)=>(JT(),KT(e,s)):JT;const QG=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),eH=["src"],tH={key:1,class:"text"},nH=["src"],aH={class:"stats"},rH=QG(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),iH={class:"numstats"},oH={class:"leyend"};function sH(e,s,o,O,W,_){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",W.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([_.customStyle,W.status&&o.typeOnOff&&_.customActive]),onClick:s[0]||(s[0]=(...g)=>_.btnClick&&_.btnClick(...g))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,eH)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",tH,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,nH)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:s[1]||(s[1]=(...g)=>_.btnClick&&_.btnClick(...g))},[t.createElementVNode("div",aH,[rH,t.createElementVNode("div",iH,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",oH,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const lH=KG(J5,[["render",sH],["__scopeId","data-v-f3ee6b2b"]]),cH={class:"gsc-dropdown__main-container__item-selected"},uH=["height","width"],dH=["stroke"],hH={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pH=["fill"],fH={class:"gsc-dropdown__items-container"},mH=["onClick"],gH={key:0,class:"gsc-dropdown__items-footer"},yH={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(s=>s in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1},iconType:{type:Number,default:1,validator:function(e){return[1,2].includes(e)}}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:s}){const o=e,O=t.ref({}),W=t.ref(null),_=t.ref(o.isMultipleOption?-1:0),g=t.ref(!1);t.watch(()=>o.items,(b,u)=>{if(!o.modelValue&&(!o.onlyFirstTime||!u||!u.length)&&b&&b.length){if(o.defaultItemByProp){const r=o.items.findIndex(i=>i[o.defaultItemByProp.propName]===o.defaultItemByProp.value);r!==-1?(_.value=r,O.value=b[r]):(_.value=0,O.value=b[0])}else O.value=b[o.defaultItemByIndex];s("input",O.value)}},{immediate:!0}),t.watch(()=>o.modelValue,b=>{if(b){const u=o.items.findIndex(r=>typeof b=="object"?JSON.stringify(r)===JSON.stringify(b):r===b);u!==-1&&(_.value=u,O.value=o.items[u],s("update:modelValue",O.value))}},{immediate:!0});const a=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-container-padding":o.listContainerPadding,"--list-item-padding":o.listItemPadding,"--list-item-margin":o.listItemMargin,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-border-radius":o.listItemBorderRadius,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--list-margin-top":o.listMarginTop,"--list-left":o.listAlignment==="left"?"0":"auto","--list-right":o.listAlignment==="right"?"0":"auto","--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),v=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function h(){o.isDisabled||(g.value=!g.value)}function n(b){W.value&&!W.value.contains(b.target)&&(g.value=!1)}function x(b,u){o.isMultipleOption?_.value=-1:(_.value=u,g.value=!1),O.value=b,s("input",O.value),s("update:modelValue",O.value)}function y(){g.value=!1,s("click-ready")}return t.onMounted(()=>{document.addEventListener("click",n)}),t.onBeforeMount(()=>{document.removeEventListener("click",n)}),(b,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:W,class:"gsc-dropdown",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:h},[t.createElementVNode("div",cH,[t.renderSlot(b.$slots,"default",{selectedItem:O.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":g.value}]),style:t.normalizeStyle(v.value)},[e.iconType===1?(t.openBlock(),t.createElementBlock("svg",{key:0,height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,dH)],8,uH)):(t.openBlock(),t.createElementBlock("svg",hH,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:e.arrowColor},null,8,pH)]))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",fH,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(r,i)=>(t.openBlock(),t.createElementBlock("div",null,[t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:i===_.value}]),key:i,onClick:d=>x(r,i)},[t.renderSlot(b.$slots,"availableItem",{item:r})],10,mH)),[[t.vShow,!r.isHidden]])]))),256))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",gH,[t.createVNode(t.unref(lH),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:y})])):t.createCommentVNode("",!0)])],512),[[t.vShow,g.value]])]),_:3})],4))}},vH=(e,s)=>{const o=e.__vccOpts||e;for(const[O,W]of s)o[O]=W;return o},_H={class:"tournament-select__selected-tournament"},bH={class:"tournament-select__selected-tournament__logo"},xH=["src"],wH={class:"tournament-select__selected-tournament__name"},kH="https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments",SH={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"},fontFamily:{type:String,default:"Poppins-Light"},logosUrl:{type:String,default:"https://golstatsimages.blob.core.windows.net/todoelfut/"},logoFileType:{type:String,default:"png"},height:{type:String,default:"40px"},width:{type:String,default:"179px"},borderRadius:{type:Number,default:8},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},backgroundColor:{type:String,default:"#0d1d29"},color:{type:String,default:"white"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(s=>s in e)},currentSeasonId:{type:Number,default:0},tournamentsIdsToInclude:{type:Set,default:()=>new Set},isClubesActive:{type:Boolean,default:!0},routeName:{type:String,default:""},avoidTournamentFilter:{type:Boolean,default:!1},areFemaleVisible:{type:Boolean,default:!0}},emits:["input","change-tournaments"],setup(e,{emit:s}){const o=e,O=new Set(["tops","table","dataia"]),W=t.ref([]),_=t.computed(()=>{const r={};return o.fontFamily&&(r["font-family"]=`${o.fontFamily}`),r}),g=t.computed(()=>W.value.filter(r=>!r.isHidden)),a=t.computed(()=>g.value.find(r=>r.seasonsIds.has(o.currentSeasonId))||g.value[0]),v=t.computed(()=>o.areFemaleVisible?W.value:W.value.filter(r=>!r.is_female));t.watch(()=>o.isClubesActive,()=>{h()},{immediate:!0}),t.watch(()=>o.routeName,()=>{h()},{immediate:!0}),t.watch(()=>o.apiUrl,()=>{n()});function h(){W.value.forEach(r=>{r.isHidden=!o.isClubesActive&&r.isClub||o.isClubesActive&&!r.isClub||o.routeName&&r.tournament_type===4&&O.has(o.routeName)})}async function n(){try{if(o.items&&o.items.length)W.value=[...o.items];else{const r=await y();s("change-tournaments",r),W.value=r.sort((i,d)=>i.tournament.order-d.tournament.order).reduce((i,d)=>{if(o.tournamentsIdsToInclude&&o.tournamentsIdsToInclude.size&&!o.tournamentsIdsToInclude.has(d.id))return i;const l={...d.tournament,seasons:d.seasons,seasonsIds:d.seasons.reduce((p,m)=>(p.add(m.id),p),new Set),isClub:d.tournament.international_tournament===0,isFriendlies:d.tournament.tournament_type===3};return l.isHidden=!o.avoidTournamentFilter&&(!o.isClubesActive&&l.isClub||o.isClubesActive&&!l.isClub),i.push(l),i},[])}}catch(r){throw new Error(r)}}function x(r){const i=new XMLHttpRequest,d=`${o.logosUrl}${r}.${o.logoFileType}`;return i.open("HEAD",d,!1),i.send(),i.status!==404}async function y(){try{return(await fetch(o.apiUrl||kH)).json()}catch(r){return Promise.reject(r)}}function b(r){s("input",r)}function u(r){s("input",r)}return t.onMounted(()=>{n()}),(r,i)=>(t.openBlock(),t.createElementBlock("div",{class:"tournament-select",style:t.normalizeStyle(_.value)},[t.createVNode(t.unref(yH),t.mergeProps(o,{"model-value":a.value,items:v.value,onInput:b,"onUpdate:modelValue":u}),{default:t.withCtx(({selectedItem:d})=>[t.createElementVNode("div",_H,[t.createElementVNode("div",bH,[x(d.id)?(t.openBlock(),t.createElementBlock("img",{key:0,src:`${o.logosUrl}${d.id}.${o.logoFileType}`,alt:""},null,8,xH)):t.createCommentVNode("",!0)]),t.createElementVNode("div",wH,t.toDisplayString(d.name),1)])]),availableItem:t.withCtx(({item:d})=>[t.createElementVNode("div",null,t.toDisplayString(d.name),1)]),_:1},16,["model-value","items"])],4))}},QT=vH(SH,[["__scopeId","data-v-4b6be41f"]]),TH=(e,s)=>{const o=e.__vccOpts||e;for(const[O,W]of s)o[O]=W;return o},K5={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},eC=()=>{t.useCssVars(e=>({"9d01acb4":e.height,"14e95081":e.borderWidthBtn,"38fec285":e.borderType,34353510:e.borderColor,"20d20dc6":e.borderRadius,17130967:e.width,"4ccb7d36":e.backgroundColor,"5d1e86a2":e.cursorType,ce65d4a2:e.fontSize,fe4ac47a:e.fontStyle,f98e44dc:e.fontFamily,"93b87770":e.marginLeftStat,c7f7beba:e.fontSizeStat}))},tC=K5.setup;K5.setup=tC?(e,s)=>(eC(),tC(e,s)):eC;const CH=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),EH=["src"],AH={key:1,class:"text"},MH=["src"],IH={class:"stats"},PH=CH(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),BH={class:"numstats"},LH={class:"leyend"};function zH(e,s,o,O,W,_){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",W.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([_.customStyle,W.status&&o.typeOnOff&&_.customActive]),onClick:s[0]||(s[0]=(...g)=>_.btnClick&&_.btnClick(...g))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,EH)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",AH,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,MH)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:s[1]||(s[1]=(...g)=>_.btnClick&&_.btnClick(...g))},[t.createElementVNode("div",IH,[PH,t.createElementVNode("div",BH,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",LH,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const OH=TH(K5,[["render",zH],["__scopeId","data-v-f3ee6b2b"]]),FH={class:"gsc-dropdown__main-container__item-selected"},NH=["height","width"],DH=["stroke"],RH={class:"gsc-dropdown__items-container"},VH=["onClick"],jH={key:0,class:"gsc-dropdown__items-footer"},$H={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(s=>s in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:s}){const o=e,O=t.ref({}),W=t.ref(null),_=t.ref(o.isMultipleOption?-1:0),g=t.ref(!1);t.watch(()=>o.items,(b,u)=>{if(!o.modelValue&&(!o.onlyFirstTime||!u||!u.length)&&b&&b.length){if(o.defaultItemByProp){const r=o.items.findIndex(i=>i[o.defaultItemByProp.propName]===o.defaultItemByProp.value);r!==-1?(_.value=r,O.value=b[r]):(_.value=0,O.value=b[0])}else O.value=b[o.defaultItemByIndex];s("input",O.value)}},{immediate:!0}),t.watch(()=>o.modelValue,b=>{if(b){const u=o.items.findIndex(r=>typeof b=="object"?JSON.stringify(r)===JSON.stringify(b):r===b);u!==-1&&(_.value=u,O.value=o.items[u],s("update:modelValue",O.value))}},{immediate:!0});const a=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-container-padding":o.listContainerPadding,"--list-item-padding":o.listItemPadding,"--list-item-margin":o.listItemMargin,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-border-radius":o.listItemBorderRadius,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--list-margin-top":o.listMarginTop,"--list-left":o.listAlignment==="left"?"0":"auto","--list-right":o.listAlignment==="right"?"0":"auto","--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),v=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function h(){o.isDisabled||(g.value=!g.value)}function n(b){W.value&&!W.value.contains(b.target)&&(g.value=!1)}function x(b,u){o.isMultipleOption?_.value=-1:(_.value=u,g.value=!1),O.value=b,s("input",O.value),s("update:modelValue",O.value)}function y(){g.value=!1,s("click-ready")}return t.onMounted(()=>{document.addEventListener("click",n)}),t.onBeforeMount(()=>{document.removeEventListener("click",n)}),(b,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:W,class:"gsc-dropdown",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:h},[t.createElementVNode("div",FH,[t.renderSlot(b.$slots,"default",{selectedItem:O.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":g.value}]),style:t.normalizeStyle(v.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,DH)],8,NH))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",RH,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(r,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:i===_.value}]),key:i,onClick:d=>x(r,i)},[t.renderSlot(b.$slots,"availableItem",{item:r})],10,VH))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",jH,[t.createVNode(t.unref(OH),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:y})])):t.createCommentVNode("",!0)])],512),[[t.vShow,g.value]])]),_:3})],4))}},UH=(e,s)=>{const o=e.__vccOpts||e;for(const[O,W]of s)o[O]=W;return o},GH={class:"season-name"},HH={class:"items-list-season"},WH={__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:s}){const o=e,O=t.computed(()=>o.seasons.find(g=>g.id===o.currentSeasonId));function W(g){s("input",g)}function _(g){s("input",g)}return(g,a)=>(t.openBlock(),t.createBlock(t.unref($H),{items:e.seasons,"model-value":O.value,height:"40px",width:"179px","background-color":"#0d1d29",color:"white","border-color":"rgba(255, 255, 255, 0.2)","font-family":"Poppins-Regular","border-radius":8,onInput:_,"onUpdate:modelValue":W},{default:t.withCtx(({selectedItem:v})=>[t.createElementVNode("div",GH,[t.createElementVNode("span",null,t.toDisplayString(v.name),1)])]),availableItem:t.withCtx(({item:v})=>[t.createElementVNode("span",HH,t.toDisplayString(v.name),1)]),_:1},8,["items","model-value"]))}},nC=UH(WH,[["__scopeId","data-v-d23e9ee2"]]);function aC(e,s){return function(){return e.apply(s,arguments)}}const{toString:qH}=Object.prototype,{getPrototypeOf:Q5}=Object,{iterator:M_,toStringTag:rC}=Symbol,I_=(e=>s=>{const o=qH.call(s);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),af=e=>(e=e.toLowerCase(),s=>I_(s)===e),P_=e=>s=>typeof s===e,{isArray:ry}=Array,vv=P_("undefined");function YH(e){return e!==null&&!vv(e)&&e.constructor!==null&&!vv(e.constructor)&&Zh(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const iC=af("ArrayBuffer");function ZH(e){let s;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?s=ArrayBuffer.isView(e):s=e&&e.buffer&&iC(e.buffer),s}const XH=P_("string"),Zh=P_("function"),oC=P_("number"),B_=e=>e!==null&&typeof e=="object",JH=e=>e===!0||e===!1,L_=e=>{if(I_(e)!=="object")return!1;const s=Q5(e);return(s===null||s===Object.prototype||Object.getPrototypeOf(s)===null)&&!(rC in e)&&!(M_ in e)},KH=af("Date"),QH=af("File"),eW=af("Blob"),tW=af("FileList"),nW=e=>B_(e)&&Zh(e.pipe),aW=e=>{let s;return e&&(typeof FormData=="function"&&e instanceof FormData||Zh(e.append)&&((s=I_(e))==="formdata"||s==="object"&&Zh(e.toString)&&e.toString()==="[object FormData]"))},rW=af("URLSearchParams"),[iW,oW,sW,lW]=["ReadableStream","Request","Response","Headers"].map(af),cW=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _v(e,s,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let O,W;if(typeof e!="object"&&(e=[e]),ry(e))for(O=0,W=e.length;O<W;O++)s.call(null,e[O],O,e);else{const _=o?Object.getOwnPropertyNames(e):Object.keys(e),g=_.length;let a;for(O=0;O<g;O++)a=_[O],s.call(null,e[a],a,e)}}function sC(e,s){s=s.toLowerCase();const o=Object.keys(e);let O=o.length,W;for(;O-- >0;)if(W=o[O],s===W.toLowerCase())return W;return null}const vg=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),lC=e=>!vv(e)&&e!==vg;function e4(){const{caseless:e}=lC(this)&&this||{},s={},o=(O,W)=>{const _=e&&sC(s,W)||W;L_(s[_])&&L_(O)?s[_]=e4(s[_],O):L_(O)?s[_]=e4({},O):ry(O)?s[_]=O.slice():s[_]=O};for(let O=0,W=arguments.length;O<W;O++)arguments[O]&&_v(arguments[O],o);return s}const uW=(e,s,o,{allOwnKeys:O}={})=>(_v(s,(W,_)=>{o&&Zh(W)?e[_]=aC(W,o):e[_]=W},{allOwnKeys:O}),e),dW=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),hW=(e,s,o,O)=>{e.prototype=Object.create(s.prototype,O),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:s.prototype}),o&&Object.assign(e.prototype,o)},pW=(e,s,o,O)=>{let W,_,g;const a={};if(s=s||{},e==null)return s;do{for(W=Object.getOwnPropertyNames(e),_=W.length;_-- >0;)g=W[_],(!O||O(g,e,s))&&!a[g]&&(s[g]=e[g],a[g]=!0);e=o!==!1&&Q5(e)}while(e&&(!o||o(e,s))&&e!==Object.prototype);return s},fW=(e,s,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=s.length;const O=e.indexOf(s,o);return O!==-1&&O===o},mW=e=>{if(!e)return null;if(ry(e))return e;let s=e.length;if(!oC(s))return null;const o=new Array(s);for(;s-- >0;)o[s]=e[s];return o},gW=(e=>s=>e&&s instanceof e)(typeof Uint8Array<"u"&&Q5(Uint8Array)),yW=(e,s)=>{const o=(e&&e[M_]).call(e);let O;for(;(O=o.next())&&!O.done;){const W=O.value;s.call(e,W[0],W[1])}},vW=(e,s)=>{let o;const O=[];for(;(o=e.exec(s))!==null;)O.push(o);return O},_W=af("HTMLFormElement"),bW=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,o,O){return o.toUpperCase()+O}),cC=(({hasOwnProperty:e})=>(s,o)=>e.call(s,o))(Object.prototype),xW=af("RegExp"),uC=(e,s)=>{const o=Object.getOwnPropertyDescriptors(e),O={};_v(o,(W,_)=>{let g;(g=s(W,_,e))!==!1&&(O[_]=g||W)}),Object.defineProperties(e,O)},wW=e=>{uC(e,(s,o)=>{if(Zh(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const O=e[o];if(Zh(O)){if(s.enumerable=!1,"writable"in s){s.writable=!1;return}s.set||(s.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},kW=(e,s)=>{const o={},O=W=>{W.forEach(_=>{o[_]=!0})};return ry(e)?O(e):O(String(e).split(s)),o},SW=()=>{},TW=(e,s)=>e!=null&&Number.isFinite(e=+e)?e:s;function CW(e){return!!(e&&Zh(e.append)&&e[rC]==="FormData"&&e[M_])}const EW=e=>{const s=new Array(10),o=(O,W)=>{if(B_(O)){if(s.indexOf(O)>=0)return;if(!("toJSON"in O)){s[W]=O;const _=ry(O)?[]:{};return _v(O,(g,a)=>{const v=o(g,W+1);!vv(v)&&(_[a]=v)}),s[W]=void 0,_}}return O};return o(e,0)},AW=af("AsyncFunction"),MW=e=>e&&(B_(e)||Zh(e))&&Zh(e.then)&&Zh(e.catch),dC=((e,s)=>e?setImmediate:s?((o,O)=>(vg.addEventListener("message",({source:W,data:_})=>{W===vg&&_===o&&O.length&&O.shift()()},!1),W=>{O.push(W),vg.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",Zh(vg.postMessage)),IW=typeof queueMicrotask<"u"?queueMicrotask.bind(vg):typeof process<"u"&&process.nextTick||dC,PW=e=>e!=null&&Zh(e[M_]),Cr={isArray:ry,isArrayBuffer:iC,isBuffer:YH,isFormData:aW,isArrayBufferView:ZH,isString:XH,isNumber:oC,isBoolean:JH,isObject:B_,isPlainObject:L_,isReadableStream:iW,isRequest:oW,isResponse:sW,isHeaders:lW,isUndefined:vv,isDate:KH,isFile:QH,isBlob:eW,isRegExp:xW,isFunction:Zh,isStream:nW,isURLSearchParams:rW,isTypedArray:gW,isFileList:tW,forEach:_v,merge:e4,extend:uW,trim:cW,stripBOM:dW,inherits:hW,toFlatObject:pW,kindOf:I_,kindOfTest:af,endsWith:fW,toArray:mW,forEachEntry:yW,matchAll:vW,isHTMLForm:_W,hasOwnProperty:cC,hasOwnProp:cC,reduceDescriptors:uC,freezeMethods:wW,toObjectSet:kW,toCamelCase:bW,noop:SW,toFiniteNumber:TW,findKey:sC,global:vg,isContextDefined:lC,isSpecCompliantForm:CW,toJSONObject:EW,isAsyncFn:AW,isThenable:MW,setImmediate:dC,asap:IW,isIterable:PW};function ll(e,s,o,O,W){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",s&&(this.code=s),o&&(this.config=o),O&&(this.request=O),W&&(this.response=W,this.status=W.status?W.status:null)}Cr.inherits(ll,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Cr.toJSONObject(this.config),code:this.code,status:this.status}}});const hC=ll.prototype,pC={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{pC[e]={value:e}}),Object.defineProperties(ll,pC),Object.defineProperty(hC,"isAxiosError",{value:!0}),ll.from=(e,s,o,O,W,_)=>{const g=Object.create(hC);return Cr.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),ll.call(g,e.message,s,o,O,W),g.cause=e,g.name=e.name,_&&Object.assign(g,_),g};const BW=null;function t4(e){return Cr.isPlainObject(e)||Cr.isArray(e)}function fC(e){return Cr.endsWith(e,"[]")?e.slice(0,-2):e}function mC(e,s,o){return e?e.concat(s).map(function(O,W){return O=fC(O),!o&&W?"["+O+"]":O}).join(o?".":""):s}function LW(e){return Cr.isArray(e)&&!e.some(t4)}const zW=Cr.toFlatObject(Cr,{},null,function(e){return/^is[A-Z]/.test(e)});function z_(e,s,o){if(!Cr.isObject(e))throw new TypeError("target must be an object");s=s||new FormData,o=Cr.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,u){return!Cr.isUndefined(u[b])});const O=o.metaTokens,W=o.visitor||h,_=o.dots,g=o.indexes,a=(o.Blob||typeof Blob<"u"&&Blob)&&Cr.isSpecCompliantForm(s);if(!Cr.isFunction(W))throw new TypeError("visitor must be a function");function v(b){if(b===null)return"";if(Cr.isDate(b))return b.toISOString();if(Cr.isBoolean(b))return b.toString();if(!a&&Cr.isBlob(b))throw new ll("Blob is not supported. Use a Buffer instead.");return Cr.isArrayBuffer(b)||Cr.isTypedArray(b)?a&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function h(b,u,r){let i=b;if(b&&!r&&typeof b=="object"){if(Cr.endsWith(u,"{}"))u=O?u:u.slice(0,-2),b=JSON.stringify(b);else if(Cr.isArray(b)&&LW(b)||(Cr.isFileList(b)||Cr.endsWith(u,"[]"))&&(i=Cr.toArray(b)))return u=fC(u),i.forEach(function(d,l){!(Cr.isUndefined(d)||d===null)&&s.append(g===!0?mC([u],l,_):g===null?u:u+"[]",v(d))}),!1}return t4(b)?!0:(s.append(mC(r,u,_),v(b)),!1)}const n=[],x=Object.assign(zW,{defaultVisitor:h,convertValue:v,isVisitable:t4});function y(b,u){if(!Cr.isUndefined(b)){if(n.indexOf(b)!==-1)throw Error("Circular reference detected in "+u.join("."));n.push(b),Cr.forEach(b,function(r,i){(!(Cr.isUndefined(r)||r===null)&&W.call(s,r,Cr.isString(i)?i.trim():i,u,x))===!0&&y(r,u?u.concat(i):[i])}),n.pop()}}if(!Cr.isObject(e))throw new TypeError("data must be an object");return y(e),s}function gC(e){const s={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return s[o]})}function n4(e,s){this._pairs=[],e&&z_(e,this,s)}const yC=n4.prototype;yC.append=function(e,s){this._pairs.push([e,s])},yC.toString=function(e){const s=e?function(o){return e.call(this,o,gC)}:gC;return this._pairs.map(function(o){return s(o[0])+"="+s(o[1])},"").join("&")};function OW(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vC(e,s,o){if(!s)return e;const O=o&&o.encode||OW;Cr.isFunction(o)&&(o={serialize:o});const W=o&&o.serialize;let _;if(W?_=W(s,o):_=Cr.isURLSearchParams(s)?s.toString():new n4(s,o).toString(O),_){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+_}return e}const _C=class{constructor(){this.handlers=[]}use(s,o,O){return this.handlers.push({fulfilled:s,rejected:o,synchronous:O?O.synchronous:!1,runWhen:O?O.runWhen:null}),this.handlers.length-1}eject(s){this.handlers[s]&&(this.handlers[s]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(s){Cr.forEach(this.handlers,function(o){o!==null&&s(o)})}},bC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},FW=typeof URLSearchParams<"u"?URLSearchParams:n4,NW=typeof FormData<"u"?FormData:null,DW=typeof Blob<"u"?Blob:null,RW={isBrowser:!0,classes:{URLSearchParams:FW,FormData:NW,Blob:DW},protocols:["http","https","file","blob","url","data"]},a4=typeof window<"u"&&typeof document<"u",r4=typeof navigator=="object"&&navigator||void 0,VW=a4&&(!r4||["ReactNative","NativeScript","NS"].indexOf(r4.product)<0),jW=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),$W=a4&&window.location.href||"http://localhost",UW=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:a4,hasStandardBrowserEnv:VW,hasStandardBrowserWebWorkerEnv:jW,navigator:r4,origin:$W},Symbol.toStringTag,{value:"Module"})),oh={...UW,...RW};function GW(e,s){return z_(e,new oh.classes.URLSearchParams,Object.assign({visitor:function(o,O,W,_){return oh.isNode&&Cr.isBuffer(o)?(this.append(O,o.toString("base64")),!1):_.defaultVisitor.apply(this,arguments)}},s))}function HW(e){return Cr.matchAll(/\w+|\[(\w*)]/g,e).map(s=>s[0]==="[]"?"":s[1]||s[0])}function WW(e){const s={},o=Object.keys(e);let O;const W=o.length;let _;for(O=0;O<W;O++)_=o[O],s[_]=e[_];return s}function xC(e){function s(o,O,W,_){let g=o[_++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),v=_>=o.length;return g=!g&&Cr.isArray(W)?W.length:g,v?(Cr.hasOwnProp(W,g)?W[g]=[W[g],O]:W[g]=O,!a):((!W[g]||!Cr.isObject(W[g]))&&(W[g]=[]),s(o,O,W[g],_)&&Cr.isArray(W[g])&&(W[g]=WW(W[g])),!a)}if(Cr.isFormData(e)&&Cr.isFunction(e.entries)){const o={};return Cr.forEachEntry(e,(O,W)=>{s(HW(O),W,o,0)}),o}return null}function qW(e,s,o){if(Cr.isString(e))try{return(s||JSON.parse)(e),Cr.trim(e)}catch(O){if(O.name!=="SyntaxError")throw O}return(o||JSON.stringify)(e)}const i4={transitional:bC,adapter:["xhr","http","fetch"],transformRequest:[function(e,s){const o=s.getContentType()||"",O=o.indexOf("application/json")>-1,W=Cr.isObject(e);if(W&&Cr.isHTMLForm(e)&&(e=new FormData(e)),Cr.isFormData(e))return O?JSON.stringify(xC(e)):e;if(Cr.isArrayBuffer(e)||Cr.isBuffer(e)||Cr.isStream(e)||Cr.isFile(e)||Cr.isBlob(e)||Cr.isReadableStream(e))return e;if(Cr.isArrayBufferView(e))return e.buffer;if(Cr.isURLSearchParams(e))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let _;if(W){if(o.indexOf("application/x-www-form-urlencoded")>-1)return GW(e,this.formSerializer).toString();if((_=Cr.isFileList(e))||o.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return z_(_?{"files[]":e}:e,g&&new g,this.formSerializer)}}return W||O?(s.setContentType("application/json",!1),qW(e)):e}],transformResponse:[function(e){const s=this.transitional||i4.transitional,o=s&&s.forcedJSONParsing,O=this.responseType==="json";if(Cr.isResponse(e)||Cr.isReadableStream(e))return e;if(e&&Cr.isString(e)&&(o&&!this.responseType||O)){const W=!(s&&s.silentJSONParsing)&&O;try{return JSON.parse(e)}catch(_){if(W)throw _.name==="SyntaxError"?ll.from(_,ll.ERR_BAD_RESPONSE,this,null,this.response):_}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:oh.classes.FormData,Blob:oh.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Cr.forEach(["delete","get","head","post","put","patch"],e=>{i4.headers[e]={}});const o4=i4,YW=Cr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ZW=e=>{const s={};let o,O,W;return e&&e.split(`
|
|
1
|
+
(function(Bd,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(Bd=typeof globalThis<"u"?globalThis:Bd||self,t(Bd.GSCGameData={},Bd.Vue))})(this,function(Bd,t){"use strict";var Ejt=Object.defineProperty;var Ajt=(Bd,t,ay)=>t in Bd?Ejt(Bd,t,{enumerable:!0,configurable:!0,writable:!0,value:ay}):Bd[t]=ay;var gu=(Bd,t,ay)=>(Ajt(Bd,typeof t!="symbol"?t+"":t,ay),ay);const ay="",Mjt="",Ijt="",Pjt="",Bjt="",Ljt="",zjt="",Ojt="",Fjt="",KG=(e,s)=>{const o=e.__vccOpts||e;for(const[O,W]of s)o[O]=W;return o},J5={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},JT=()=>{t.useCssVars(e=>({"9d01acb4":e.height,"14e95081":e.borderWidthBtn,"38fec285":e.borderType,34353510:e.borderColor,"20d20dc6":e.borderRadius,17130967:e.width,"4ccb7d36":e.backgroundColor,"5d1e86a2":e.cursorType,ce65d4a2:e.fontSize,fe4ac47a:e.fontStyle,f98e44dc:e.fontFamily,"93b87770":e.marginLeftStat,c7f7beba:e.fontSizeStat}))},KT=J5.setup;J5.setup=KT?(e,s)=>(JT(),KT(e,s)):JT;const QG=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),eH=["src"],tH={key:1,class:"text"},nH=["src"],aH={class:"stats"},rH=QG(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),iH={class:"numstats"},oH={class:"leyend"};function sH(e,s,o,O,W,_){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",W.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([_.customStyle,W.status&&o.typeOnOff&&_.customActive]),onClick:s[0]||(s[0]=(...g)=>_.btnClick&&_.btnClick(...g))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,eH)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",tH,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,nH)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:s[1]||(s[1]=(...g)=>_.btnClick&&_.btnClick(...g))},[t.createElementVNode("div",aH,[rH,t.createElementVNode("div",iH,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",oH,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const lH=KG(J5,[["render",sH],["__scopeId","data-v-f3ee6b2b"]]),cH={class:"gsc-dropdown__main-container__item-selected"},uH=["height","width"],dH=["stroke"],hH={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pH=["fill"],fH={class:"gsc-dropdown__items-container"},mH=["onClick"],gH={key:0,class:"gsc-dropdown__items-footer"},yH={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(s=>s in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1},iconType:{type:Number,default:1,validator:function(e){return[1,2].includes(e)}}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:s}){const o=e,O=t.ref({}),W=t.ref(null),_=t.ref(o.isMultipleOption?-1:0),g=t.ref(!1);t.watch(()=>o.items,(b,u)=>{if(!o.modelValue&&(!o.onlyFirstTime||!u||!u.length)&&b&&b.length){if(o.defaultItemByProp){const r=o.items.findIndex(i=>i[o.defaultItemByProp.propName]===o.defaultItemByProp.value);r!==-1?(_.value=r,O.value=b[r]):(_.value=0,O.value=b[0])}else O.value=b[o.defaultItemByIndex];s("input",O.value)}},{immediate:!0}),t.watch(()=>o.modelValue,b=>{if(b){const u=o.items.findIndex(r=>typeof b=="object"?JSON.stringify(r)===JSON.stringify(b):r===b);u!==-1&&(_.value=u,O.value=o.items[u],s("update:modelValue",O.value))}},{immediate:!0});const a=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-container-padding":o.listContainerPadding,"--list-item-padding":o.listItemPadding,"--list-item-margin":o.listItemMargin,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-border-radius":o.listItemBorderRadius,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--list-margin-top":o.listMarginTop,"--list-left":o.listAlignment==="left"?"0":"auto","--list-right":o.listAlignment==="right"?"0":"auto","--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),v=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function h(){o.isDisabled||(g.value=!g.value)}function n(b){W.value&&!W.value.contains(b.target)&&(g.value=!1)}function x(b,u){o.isMultipleOption?_.value=-1:(_.value=u,g.value=!1),O.value=b,s("input",O.value),s("update:modelValue",O.value)}function y(){g.value=!1,s("click-ready")}return t.onMounted(()=>{document.addEventListener("click",n)}),t.onBeforeMount(()=>{document.removeEventListener("click",n)}),(b,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:W,class:"gsc-dropdown",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:h},[t.createElementVNode("div",cH,[t.renderSlot(b.$slots,"default",{selectedItem:O.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":g.value}]),style:t.normalizeStyle(v.value)},[e.iconType===1?(t.openBlock(),t.createElementBlock("svg",{key:0,height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,dH)],8,uH)):(t.openBlock(),t.createElementBlock("svg",hH,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:e.arrowColor},null,8,pH)]))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",fH,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(r,i)=>(t.openBlock(),t.createElementBlock("div",null,[t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:i===_.value}]),key:i,onClick:d=>x(r,i)},[t.renderSlot(b.$slots,"availableItem",{item:r})],10,mH)),[[t.vShow,!r.isHidden]])]))),256))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",gH,[t.createVNode(t.unref(lH),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:y})])):t.createCommentVNode("",!0)])],512),[[t.vShow,g.value]])]),_:3})],4))}},vH=(e,s)=>{const o=e.__vccOpts||e;for(const[O,W]of s)o[O]=W;return o},_H={class:"tournament-select__selected-tournament"},bH={class:"tournament-select__selected-tournament__logo"},xH=["src"],wH={class:"tournament-select__selected-tournament__name"},kH="https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments",SH={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments"},fontFamily:{type:String,default:"Poppins-Light"},logosUrl:{type:String,default:"https://golstatsimages.blob.core.windows.net/todoelfut/"},logoFileType:{type:String,default:"png"},listHeight:{type:String,default:"fit-content"},height:{type:String,default:"40px"},width:{type:String,default:"179px"},borderRadius:{type:Number,default:8},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},backgroundColor:{type:String,default:"#0d1d29"},color:{type:String,default:"white"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(s=>s in e)},currentSeasonId:{type:Number,default:0},tournamentsIdsToInclude:{type:Set,default:()=>new Set},isClubesActive:{type:Boolean,default:!0},routeName:{type:String,default:""},avoidTournamentFilter:{type:Boolean,default:!1},areFemaleVisible:{type:Boolean,default:!0}},emits:["input","change-tournaments"],setup(e,{emit:s}){const o=e,O=new Set(["tops","table","dataia"]),W=t.ref([]),_=t.computed(()=>{const r={};return o.fontFamily&&(r["font-family"]=`${o.fontFamily}`),r}),g=t.computed(()=>W.value.filter(r=>!r.isHidden)),a=t.computed(()=>g.value.find(r=>r.seasonsIds.has(o.currentSeasonId))||g.value[0]),v=t.computed(()=>o.areFemaleVisible?W.value:W.value.filter(r=>!r.is_female));t.watch(()=>o.isClubesActive,()=>{h()},{immediate:!0}),t.watch(()=>o.routeName,()=>{h()},{immediate:!0}),t.watch(()=>o.apiUrl,()=>{n()});function h(){W.value.forEach(r=>{r.isHidden=!o.isClubesActive&&r.isClub||o.isClubesActive&&!r.isClub||o.routeName&&r.tournament_type===4&&O.has(o.routeName)})}async function n(){try{if(o.items&&o.items.length)W.value=[...o.items];else{const r=await y();s("change-tournaments",r),W.value=r.sort((i,d)=>i.tournament.order-d.tournament.order).reduce((i,d)=>{if(o.tournamentsIdsToInclude&&o.tournamentsIdsToInclude.size&&!o.tournamentsIdsToInclude.has(d.id))return i;const l={...d.tournament,seasons:d.seasons,seasonsIds:d.seasons.reduce((p,m)=>(p.add(m.id),p),new Set),isClub:d.tournament.international_tournament===0,isFriendlies:d.tournament.tournament_type===3};return l.isHidden=!o.avoidTournamentFilter&&(!o.isClubesActive&&l.isClub||o.isClubesActive&&!l.isClub),i.push(l),i},[])}}catch(r){throw new Error(r)}}function x(r){const i=new XMLHttpRequest,d=`${o.logosUrl}${r}.${o.logoFileType}`;return i.open("HEAD",d,!1),i.send(),i.status!==404}async function y(){try{return(await fetch(o.apiUrl||kH)).json()}catch(r){return Promise.reject(r)}}function b(r){s("input",r)}function u(r){s("input",r)}return t.onMounted(()=>{n()}),(r,i)=>(t.openBlock(),t.createElementBlock("div",{class:"tournament-select",style:t.normalizeStyle(_.value)},[t.createVNode(t.unref(yH),t.mergeProps(o,{"list-height":o.listHeight,"model-value":a.value,items:v.value,onInput:b,"onUpdate:modelValue":u}),{default:t.withCtx(({selectedItem:d})=>[t.createElementVNode("div",_H,[t.createElementVNode("div",bH,[x(d.id)?(t.openBlock(),t.createElementBlock("img",{key:0,src:`${o.logosUrl}${d.id}.${o.logoFileType}`,alt:""},null,8,xH)):t.createCommentVNode("",!0)]),t.createElementVNode("div",wH,t.toDisplayString(d.name),1)])]),availableItem:t.withCtx(({item:d})=>[t.createElementVNode("div",null,t.toDisplayString(d.name),1)]),_:1},16,["list-height","model-value","items"])],4))}},QT=vH(SH,[["__scopeId","data-v-eb785f35"]]),TH=(e,s)=>{const o=e.__vccOpts||e;for(const[O,W]of s)o[O]=W;return o},K5={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},eC=()=>{t.useCssVars(e=>({"9d01acb4":e.height,"14e95081":e.borderWidthBtn,"38fec285":e.borderType,34353510:e.borderColor,"20d20dc6":e.borderRadius,17130967:e.width,"4ccb7d36":e.backgroundColor,"5d1e86a2":e.cursorType,ce65d4a2:e.fontSize,fe4ac47a:e.fontStyle,f98e44dc:e.fontFamily,"93b87770":e.marginLeftStat,c7f7beba:e.fontSizeStat}))},tC=K5.setup;K5.setup=tC?(e,s)=>(eC(),tC(e,s)):eC;const CH=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),EH=["src"],AH={key:1,class:"text"},MH=["src"],IH={class:"stats"},PH=CH(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),BH={class:"numstats"},LH={class:"leyend"};function zH(e,s,o,O,W,_){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",W.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([_.customStyle,W.status&&o.typeOnOff&&_.customActive]),onClick:s[0]||(s[0]=(...g)=>_.btnClick&&_.btnClick(...g))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,EH)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",AH,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,MH)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:s[1]||(s[1]=(...g)=>_.btnClick&&_.btnClick(...g))},[t.createElementVNode("div",IH,[PH,t.createElementVNode("div",BH,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",LH,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const OH=TH(K5,[["render",zH],["__scopeId","data-v-f3ee6b2b"]]),FH={class:"gsc-dropdown__main-container__item-selected"},NH=["height","width"],DH=["stroke"],RH={class:"gsc-dropdown__items-container"},VH=["onClick"],jH={key:0,class:"gsc-dropdown__items-footer"},$H={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(s=>s in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:s}){const o=e,O=t.ref({}),W=t.ref(null),_=t.ref(o.isMultipleOption?-1:0),g=t.ref(!1);t.watch(()=>o.items,(b,u)=>{if(!o.modelValue&&(!o.onlyFirstTime||!u||!u.length)&&b&&b.length){if(o.defaultItemByProp){const r=o.items.findIndex(i=>i[o.defaultItemByProp.propName]===o.defaultItemByProp.value);r!==-1?(_.value=r,O.value=b[r]):(_.value=0,O.value=b[0])}else O.value=b[o.defaultItemByIndex];s("input",O.value)}},{immediate:!0}),t.watch(()=>o.modelValue,b=>{if(b){const u=o.items.findIndex(r=>typeof b=="object"?JSON.stringify(r)===JSON.stringify(b):r===b);u!==-1&&(_.value=u,O.value=o.items[u],s("update:modelValue",O.value))}},{immediate:!0});const a=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-container-padding":o.listContainerPadding,"--list-item-padding":o.listItemPadding,"--list-item-margin":o.listItemMargin,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-border-radius":o.listItemBorderRadius,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--list-margin-top":o.listMarginTop,"--list-left":o.listAlignment==="left"?"0":"auto","--list-right":o.listAlignment==="right"?"0":"auto","--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),v=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function h(){o.isDisabled||(g.value=!g.value)}function n(b){W.value&&!W.value.contains(b.target)&&(g.value=!1)}function x(b,u){o.isMultipleOption?_.value=-1:(_.value=u,g.value=!1),O.value=b,s("input",O.value),s("update:modelValue",O.value)}function y(){g.value=!1,s("click-ready")}return t.onMounted(()=>{document.addEventListener("click",n)}),t.onBeforeMount(()=>{document.removeEventListener("click",n)}),(b,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:W,class:"gsc-dropdown",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:h},[t.createElementVNode("div",FH,[t.renderSlot(b.$slots,"default",{selectedItem:O.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":g.value}]),style:t.normalizeStyle(v.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,DH)],8,NH))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",RH,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(r,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:i===_.value}]),key:i,onClick:d=>x(r,i)},[t.renderSlot(b.$slots,"availableItem",{item:r})],10,VH))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",jH,[t.createVNode(t.unref(OH),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:y})])):t.createCommentVNode("",!0)])],512),[[t.vShow,g.value]])]),_:3})],4))}},UH=(e,s)=>{const o=e.__vccOpts||e;for(const[O,W]of s)o[O]=W;return o},GH={class:"season-name"},HH={class:"items-list-season"},WH={__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},listHeight:{type:String,default:"fit-content"},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:s}){const o=e,O=t.computed(()=>o.seasons.find(g=>g.id===o.currentSeasonId));function W(g){s("input",g)}function _(g){s("input",g)}return(g,a)=>(t.openBlock(),t.createBlock(t.unref($H),{items:e.seasons,"model-value":O.value,height:"40px",width:"179px","background-color":"#0d1d29",color:"white","list-height":o.listHeight,"border-color":"rgba(255, 255, 255, 0.2)","font-family":"Poppins-Regular","border-radius":8,onInput:_,"onUpdate:modelValue":W},{default:t.withCtx(({selectedItem:v})=>[t.createElementVNode("div",GH,[t.createElementVNode("span",null,t.toDisplayString(v.name),1)])]),availableItem:t.withCtx(({item:v})=>[t.createElementVNode("span",HH,t.toDisplayString(v.name),1)]),_:1},8,["items","model-value","list-height"]))}},nC=UH(WH,[["__scopeId","data-v-748c2f60"]]);function aC(e,s){return function(){return e.apply(s,arguments)}}const{toString:qH}=Object.prototype,{getPrototypeOf:Q5}=Object,{iterator:M_,toStringTag:rC}=Symbol,I_=(e=>s=>{const o=qH.call(s);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),af=e=>(e=e.toLowerCase(),s=>I_(s)===e),P_=e=>s=>typeof s===e,{isArray:ry}=Array,vv=P_("undefined");function YH(e){return e!==null&&!vv(e)&&e.constructor!==null&&!vv(e.constructor)&&Zh(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const iC=af("ArrayBuffer");function ZH(e){let s;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?s=ArrayBuffer.isView(e):s=e&&e.buffer&&iC(e.buffer),s}const XH=P_("string"),Zh=P_("function"),oC=P_("number"),B_=e=>e!==null&&typeof e=="object",JH=e=>e===!0||e===!1,L_=e=>{if(I_(e)!=="object")return!1;const s=Q5(e);return(s===null||s===Object.prototype||Object.getPrototypeOf(s)===null)&&!(rC in e)&&!(M_ in e)},KH=af("Date"),QH=af("File"),eW=af("Blob"),tW=af("FileList"),nW=e=>B_(e)&&Zh(e.pipe),aW=e=>{let s;return e&&(typeof FormData=="function"&&e instanceof FormData||Zh(e.append)&&((s=I_(e))==="formdata"||s==="object"&&Zh(e.toString)&&e.toString()==="[object FormData]"))},rW=af("URLSearchParams"),[iW,oW,sW,lW]=["ReadableStream","Request","Response","Headers"].map(af),cW=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _v(e,s,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let O,W;if(typeof e!="object"&&(e=[e]),ry(e))for(O=0,W=e.length;O<W;O++)s.call(null,e[O],O,e);else{const _=o?Object.getOwnPropertyNames(e):Object.keys(e),g=_.length;let a;for(O=0;O<g;O++)a=_[O],s.call(null,e[a],a,e)}}function sC(e,s){s=s.toLowerCase();const o=Object.keys(e);let O=o.length,W;for(;O-- >0;)if(W=o[O],s===W.toLowerCase())return W;return null}const vg=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),lC=e=>!vv(e)&&e!==vg;function e4(){const{caseless:e}=lC(this)&&this||{},s={},o=(O,W)=>{const _=e&&sC(s,W)||W;L_(s[_])&&L_(O)?s[_]=e4(s[_],O):L_(O)?s[_]=e4({},O):ry(O)?s[_]=O.slice():s[_]=O};for(let O=0,W=arguments.length;O<W;O++)arguments[O]&&_v(arguments[O],o);return s}const uW=(e,s,o,{allOwnKeys:O}={})=>(_v(s,(W,_)=>{o&&Zh(W)?e[_]=aC(W,o):e[_]=W},{allOwnKeys:O}),e),dW=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),hW=(e,s,o,O)=>{e.prototype=Object.create(s.prototype,O),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:s.prototype}),o&&Object.assign(e.prototype,o)},pW=(e,s,o,O)=>{let W,_,g;const a={};if(s=s||{},e==null)return s;do{for(W=Object.getOwnPropertyNames(e),_=W.length;_-- >0;)g=W[_],(!O||O(g,e,s))&&!a[g]&&(s[g]=e[g],a[g]=!0);e=o!==!1&&Q5(e)}while(e&&(!o||o(e,s))&&e!==Object.prototype);return s},fW=(e,s,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=s.length;const O=e.indexOf(s,o);return O!==-1&&O===o},mW=e=>{if(!e)return null;if(ry(e))return e;let s=e.length;if(!oC(s))return null;const o=new Array(s);for(;s-- >0;)o[s]=e[s];return o},gW=(e=>s=>e&&s instanceof e)(typeof Uint8Array<"u"&&Q5(Uint8Array)),yW=(e,s)=>{const o=(e&&e[M_]).call(e);let O;for(;(O=o.next())&&!O.done;){const W=O.value;s.call(e,W[0],W[1])}},vW=(e,s)=>{let o;const O=[];for(;(o=e.exec(s))!==null;)O.push(o);return O},_W=af("HTMLFormElement"),bW=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,o,O){return o.toUpperCase()+O}),cC=(({hasOwnProperty:e})=>(s,o)=>e.call(s,o))(Object.prototype),xW=af("RegExp"),uC=(e,s)=>{const o=Object.getOwnPropertyDescriptors(e),O={};_v(o,(W,_)=>{let g;(g=s(W,_,e))!==!1&&(O[_]=g||W)}),Object.defineProperties(e,O)},wW=e=>{uC(e,(s,o)=>{if(Zh(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const O=e[o];if(Zh(O)){if(s.enumerable=!1,"writable"in s){s.writable=!1;return}s.set||(s.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},kW=(e,s)=>{const o={},O=W=>{W.forEach(_=>{o[_]=!0})};return ry(e)?O(e):O(String(e).split(s)),o},SW=()=>{},TW=(e,s)=>e!=null&&Number.isFinite(e=+e)?e:s;function CW(e){return!!(e&&Zh(e.append)&&e[rC]==="FormData"&&e[M_])}const EW=e=>{const s=new Array(10),o=(O,W)=>{if(B_(O)){if(s.indexOf(O)>=0)return;if(!("toJSON"in O)){s[W]=O;const _=ry(O)?[]:{};return _v(O,(g,a)=>{const v=o(g,W+1);!vv(v)&&(_[a]=v)}),s[W]=void 0,_}}return O};return o(e,0)},AW=af("AsyncFunction"),MW=e=>e&&(B_(e)||Zh(e))&&Zh(e.then)&&Zh(e.catch),dC=((e,s)=>e?setImmediate:s?((o,O)=>(vg.addEventListener("message",({source:W,data:_})=>{W===vg&&_===o&&O.length&&O.shift()()},!1),W=>{O.push(W),vg.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",Zh(vg.postMessage)),IW=typeof queueMicrotask<"u"?queueMicrotask.bind(vg):typeof process<"u"&&process.nextTick||dC,PW=e=>e!=null&&Zh(e[M_]),Cr={isArray:ry,isArrayBuffer:iC,isBuffer:YH,isFormData:aW,isArrayBufferView:ZH,isString:XH,isNumber:oC,isBoolean:JH,isObject:B_,isPlainObject:L_,isReadableStream:iW,isRequest:oW,isResponse:sW,isHeaders:lW,isUndefined:vv,isDate:KH,isFile:QH,isBlob:eW,isRegExp:xW,isFunction:Zh,isStream:nW,isURLSearchParams:rW,isTypedArray:gW,isFileList:tW,forEach:_v,merge:e4,extend:uW,trim:cW,stripBOM:dW,inherits:hW,toFlatObject:pW,kindOf:I_,kindOfTest:af,endsWith:fW,toArray:mW,forEachEntry:yW,matchAll:vW,isHTMLForm:_W,hasOwnProperty:cC,hasOwnProp:cC,reduceDescriptors:uC,freezeMethods:wW,toObjectSet:kW,toCamelCase:bW,noop:SW,toFiniteNumber:TW,findKey:sC,global:vg,isContextDefined:lC,isSpecCompliantForm:CW,toJSONObject:EW,isAsyncFn:AW,isThenable:MW,setImmediate:dC,asap:IW,isIterable:PW};function ll(e,s,o,O,W){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",s&&(this.code=s),o&&(this.config=o),O&&(this.request=O),W&&(this.response=W,this.status=W.status?W.status:null)}Cr.inherits(ll,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Cr.toJSONObject(this.config),code:this.code,status:this.status}}});const hC=ll.prototype,pC={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{pC[e]={value:e}}),Object.defineProperties(ll,pC),Object.defineProperty(hC,"isAxiosError",{value:!0}),ll.from=(e,s,o,O,W,_)=>{const g=Object.create(hC);return Cr.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),ll.call(g,e.message,s,o,O,W),g.cause=e,g.name=e.name,_&&Object.assign(g,_),g};const BW=null;function t4(e){return Cr.isPlainObject(e)||Cr.isArray(e)}function fC(e){return Cr.endsWith(e,"[]")?e.slice(0,-2):e}function mC(e,s,o){return e?e.concat(s).map(function(O,W){return O=fC(O),!o&&W?"["+O+"]":O}).join(o?".":""):s}function LW(e){return Cr.isArray(e)&&!e.some(t4)}const zW=Cr.toFlatObject(Cr,{},null,function(e){return/^is[A-Z]/.test(e)});function z_(e,s,o){if(!Cr.isObject(e))throw new TypeError("target must be an object");s=s||new FormData,o=Cr.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,u){return!Cr.isUndefined(u[b])});const O=o.metaTokens,W=o.visitor||h,_=o.dots,g=o.indexes,a=(o.Blob||typeof Blob<"u"&&Blob)&&Cr.isSpecCompliantForm(s);if(!Cr.isFunction(W))throw new TypeError("visitor must be a function");function v(b){if(b===null)return"";if(Cr.isDate(b))return b.toISOString();if(Cr.isBoolean(b))return b.toString();if(!a&&Cr.isBlob(b))throw new ll("Blob is not supported. Use a Buffer instead.");return Cr.isArrayBuffer(b)||Cr.isTypedArray(b)?a&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function h(b,u,r){let i=b;if(b&&!r&&typeof b=="object"){if(Cr.endsWith(u,"{}"))u=O?u:u.slice(0,-2),b=JSON.stringify(b);else if(Cr.isArray(b)&&LW(b)||(Cr.isFileList(b)||Cr.endsWith(u,"[]"))&&(i=Cr.toArray(b)))return u=fC(u),i.forEach(function(d,l){!(Cr.isUndefined(d)||d===null)&&s.append(g===!0?mC([u],l,_):g===null?u:u+"[]",v(d))}),!1}return t4(b)?!0:(s.append(mC(r,u,_),v(b)),!1)}const n=[],x=Object.assign(zW,{defaultVisitor:h,convertValue:v,isVisitable:t4});function y(b,u){if(!Cr.isUndefined(b)){if(n.indexOf(b)!==-1)throw Error("Circular reference detected in "+u.join("."));n.push(b),Cr.forEach(b,function(r,i){(!(Cr.isUndefined(r)||r===null)&&W.call(s,r,Cr.isString(i)?i.trim():i,u,x))===!0&&y(r,u?u.concat(i):[i])}),n.pop()}}if(!Cr.isObject(e))throw new TypeError("data must be an object");return y(e),s}function gC(e){const s={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return s[o]})}function n4(e,s){this._pairs=[],e&&z_(e,this,s)}const yC=n4.prototype;yC.append=function(e,s){this._pairs.push([e,s])},yC.toString=function(e){const s=e?function(o){return e.call(this,o,gC)}:gC;return this._pairs.map(function(o){return s(o[0])+"="+s(o[1])},"").join("&")};function OW(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vC(e,s,o){if(!s)return e;const O=o&&o.encode||OW;Cr.isFunction(o)&&(o={serialize:o});const W=o&&o.serialize;let _;if(W?_=W(s,o):_=Cr.isURLSearchParams(s)?s.toString():new n4(s,o).toString(O),_){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+_}return e}const _C=class{constructor(){this.handlers=[]}use(s,o,O){return this.handlers.push({fulfilled:s,rejected:o,synchronous:O?O.synchronous:!1,runWhen:O?O.runWhen:null}),this.handlers.length-1}eject(s){this.handlers[s]&&(this.handlers[s]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(s){Cr.forEach(this.handlers,function(o){o!==null&&s(o)})}},bC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},FW=typeof URLSearchParams<"u"?URLSearchParams:n4,NW=typeof FormData<"u"?FormData:null,DW=typeof Blob<"u"?Blob:null,RW={isBrowser:!0,classes:{URLSearchParams:FW,FormData:NW,Blob:DW},protocols:["http","https","file","blob","url","data"]},a4=typeof window<"u"&&typeof document<"u",r4=typeof navigator=="object"&&navigator||void 0,VW=a4&&(!r4||["ReactNative","NativeScript","NS"].indexOf(r4.product)<0),jW=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),$W=a4&&window.location.href||"http://localhost",UW=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:a4,hasStandardBrowserEnv:VW,hasStandardBrowserWebWorkerEnv:jW,navigator:r4,origin:$W},Symbol.toStringTag,{value:"Module"})),oh={...UW,...RW};function GW(e,s){return z_(e,new oh.classes.URLSearchParams,Object.assign({visitor:function(o,O,W,_){return oh.isNode&&Cr.isBuffer(o)?(this.append(O,o.toString("base64")),!1):_.defaultVisitor.apply(this,arguments)}},s))}function HW(e){return Cr.matchAll(/\w+|\[(\w*)]/g,e).map(s=>s[0]==="[]"?"":s[1]||s[0])}function WW(e){const s={},o=Object.keys(e);let O;const W=o.length;let _;for(O=0;O<W;O++)_=o[O],s[_]=e[_];return s}function xC(e){function s(o,O,W,_){let g=o[_++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),v=_>=o.length;return g=!g&&Cr.isArray(W)?W.length:g,v?(Cr.hasOwnProp(W,g)?W[g]=[W[g],O]:W[g]=O,!a):((!W[g]||!Cr.isObject(W[g]))&&(W[g]=[]),s(o,O,W[g],_)&&Cr.isArray(W[g])&&(W[g]=WW(W[g])),!a)}if(Cr.isFormData(e)&&Cr.isFunction(e.entries)){const o={};return Cr.forEachEntry(e,(O,W)=>{s(HW(O),W,o,0)}),o}return null}function qW(e,s,o){if(Cr.isString(e))try{return(s||JSON.parse)(e),Cr.trim(e)}catch(O){if(O.name!=="SyntaxError")throw O}return(o||JSON.stringify)(e)}const i4={transitional:bC,adapter:["xhr","http","fetch"],transformRequest:[function(e,s){const o=s.getContentType()||"",O=o.indexOf("application/json")>-1,W=Cr.isObject(e);if(W&&Cr.isHTMLForm(e)&&(e=new FormData(e)),Cr.isFormData(e))return O?JSON.stringify(xC(e)):e;if(Cr.isArrayBuffer(e)||Cr.isBuffer(e)||Cr.isStream(e)||Cr.isFile(e)||Cr.isBlob(e)||Cr.isReadableStream(e))return e;if(Cr.isArrayBufferView(e))return e.buffer;if(Cr.isURLSearchParams(e))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let _;if(W){if(o.indexOf("application/x-www-form-urlencoded")>-1)return GW(e,this.formSerializer).toString();if((_=Cr.isFileList(e))||o.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return z_(_?{"files[]":e}:e,g&&new g,this.formSerializer)}}return W||O?(s.setContentType("application/json",!1),qW(e)):e}],transformResponse:[function(e){const s=this.transitional||i4.transitional,o=s&&s.forcedJSONParsing,O=this.responseType==="json";if(Cr.isResponse(e)||Cr.isReadableStream(e))return e;if(e&&Cr.isString(e)&&(o&&!this.responseType||O)){const W=!(s&&s.silentJSONParsing)&&O;try{return JSON.parse(e)}catch(_){if(W)throw _.name==="SyntaxError"?ll.from(_,ll.ERR_BAD_RESPONSE,this,null,this.response):_}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:oh.classes.FormData,Blob:oh.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Cr.forEach(["delete","get","head","post","put","patch"],e=>{i4.headers[e]={}});const o4=i4,YW=Cr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ZW=e=>{const s={};let o,O,W;return e&&e.split(`
|
|
2
2
|
`).forEach(function(_){W=_.indexOf(":"),o=_.substring(0,W).trim().toLowerCase(),O=_.substring(W+1).trim(),!(!o||s[o]&&YW[o])&&(o==="set-cookie"?s[o]?s[o].push(O):s[o]=[O]:s[o]=s[o]?s[o]+", "+O:O)}),s},wC=Symbol("internals");function bv(e){return e&&String(e).trim().toLowerCase()}function O_(e){return e===!1||e==null?e:Cr.isArray(e)?e.map(O_):String(e)}function XW(e){const s=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let O;for(;O=o.exec(e);)s[O[1]]=O[2];return s}const JW=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function s4(e,s,o,O,W){if(Cr.isFunction(O))return O.call(this,s,o);if(W&&(s=o),!!Cr.isString(s)){if(Cr.isString(O))return s.indexOf(O)!==-1;if(Cr.isRegExp(O))return O.test(s)}}function KW(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(s,o,O)=>o.toUpperCase()+O)}function QW(e,s){const o=Cr.toCamelCase(" "+s);["get","set","has"].forEach(O=>{Object.defineProperty(e,O+o,{value:function(W,_,g){return this[O].call(this,s,W,_,g)},configurable:!0})})}let F_=class{constructor(s){s&&this.set(s)}set(s,o,O){const W=this;function _(a,v,h){const n=bv(v);if(!n)throw new Error("header name must be a non-empty string");const x=Cr.findKey(W,n);(!x||W[x]===void 0||h===!0||h===void 0&&W[x]!==!1)&&(W[x||v]=O_(a))}const g=(a,v)=>Cr.forEach(a,(h,n)=>_(h,n,v));if(Cr.isPlainObject(s)||s instanceof this.constructor)g(s,o);else if(Cr.isString(s)&&(s=s.trim())&&!JW(s))g(ZW(s),o);else if(Cr.isObject(s)&&Cr.isIterable(s)){let a={},v,h;for(const n of s){if(!Cr.isArray(n))throw TypeError("Object iterator must return a key-value pair");a[h=n[0]]=(v=a[h])?Cr.isArray(v)?[...v,n[1]]:[v,n[1]]:n[1]}g(a,o)}else s!=null&&_(o,s,O);return this}get(s,o){if(s=bv(s),s){const O=Cr.findKey(this,s);if(O){const W=this[O];if(!o)return W;if(o===!0)return XW(W);if(Cr.isFunction(o))return o.call(this,W,O);if(Cr.isRegExp(o))return o.exec(W);throw new TypeError("parser must be boolean|regexp|function")}}}has(s,o){if(s=bv(s),s){const O=Cr.findKey(this,s);return!!(O&&this[O]!==void 0&&(!o||s4(this,this[O],O,o)))}return!1}delete(s,o){const O=this;let W=!1;function _(g){if(g=bv(g),g){const a=Cr.findKey(O,g);a&&(!o||s4(O,O[a],a,o))&&(delete O[a],W=!0)}}return Cr.isArray(s)?s.forEach(_):_(s),W}clear(s){const o=Object.keys(this);let O=o.length,W=!1;for(;O--;){const _=o[O];(!s||s4(this,this[_],_,s,!0))&&(delete this[_],W=!0)}return W}normalize(s){const o=this,O={};return Cr.forEach(this,(W,_)=>{const g=Cr.findKey(O,_);if(g){o[g]=O_(W),delete o[_];return}const a=s?KW(_):String(_).trim();a!==_&&delete o[_],o[a]=O_(W),O[a]=!0}),this}concat(...s){return this.constructor.concat(this,...s)}toJSON(s){const o=Object.create(null);return Cr.forEach(this,(O,W)=>{O!=null&&O!==!1&&(o[W]=s&&Cr.isArray(O)?O.join(", "):O)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([s,o])=>s+": "+o).join(`
|
|
3
3
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(s){return s instanceof this?s:new this(s)}static concat(s,...o){const O=new this(s);return o.forEach(W=>O.set(W)),O}static accessor(s){const o=(this[wC]=this[wC]={accessors:{}}).accessors,O=this.prototype;function W(_){const g=bv(_);o[g]||(QW(O,_),o[g]=!0)}return Cr.isArray(s)?s.forEach(W):W(s),this}};F_.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Cr.reduceDescriptors(F_.prototype,({value:e},s)=>{let o=s[0].toUpperCase()+s.slice(1);return{get:()=>e,set(O){this[o]=O}}}),Cr.freezeMethods(F_);const rf=F_;function l4(e,s){const o=this||o4,O=s||o,W=rf.from(O.headers);let _=O.data;return Cr.forEach(e,function(g){_=g.call(o,_,W.normalize(),s?s.status:void 0)}),W.normalize(),_}function kC(e){return!!(e&&e.__CANCEL__)}function iy(e,s,o){ll.call(this,e??"canceled",ll.ERR_CANCELED,s,o),this.name="CanceledError"}Cr.inherits(iy,ll,{__CANCEL__:!0});function SC(e,s,o){const O=o.config.validateStatus;!o.status||!O||O(o.status)?e(o):s(new ll("Request failed with status code "+o.status,[ll.ERR_BAD_REQUEST,ll.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function eq(e){const s=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return s&&s[1]||""}function tq(e,s){e=e||10;const o=new Array(e),O=new Array(e);let W=0,_=0,g;return s=s!==void 0?s:1e3,function(a){const v=Date.now(),h=O[_];g||(g=v),o[W]=a,O[W]=v;let n=_,x=0;for(;n!==W;)x+=o[n++],n=n%e;if(W=(W+1)%e,W===_&&(_=(_+1)%e),v-g<s)return;const y=h&&v-h;return y?Math.round(x*1e3/y):void 0}}function nq(e,s){let o=0,O=1e3/s,W,_;const g=(a,v=Date.now())=>{o=v,W=null,_&&(clearTimeout(_),_=null),e.apply(null,a)};return[(...a)=>{const v=Date.now(),h=v-o;h>=O?g(a,v):(W=a,_||(_=setTimeout(()=>{_=null,g(W)},O-h)))},()=>W&&g(W)]}const N_=(e,s,o=3)=>{let O=0;const W=tq(50,250);return nq(_=>{const g=_.loaded,a=_.lengthComputable?_.total:void 0,v=g-O,h=W(v),n=g<=a;O=g;const x={loaded:g,total:a,progress:a?g/a:void 0,bytes:v,rate:h||void 0,estimated:h&&a&&n?(a-g)/h:void 0,event:_,lengthComputable:a!=null,[s?"download":"upload"]:!0};e(x)},o)},TC=(e,s)=>{const o=e!=null;return[O=>s[0]({lengthComputable:o,total:e,loaded:O}),s[1]]},CC=e=>(...s)=>Cr.asap(()=>e(...s)),aq=oh.hasStandardBrowserEnv?((e,s)=>o=>(o=new URL(o,oh.origin),e.protocol===o.protocol&&e.host===o.host&&(s||e.port===o.port)))(new URL(oh.origin),oh.navigator&&/(msie|trident)/i.test(oh.navigator.userAgent)):()=>!0,rq=oh.hasStandardBrowserEnv?{write(e,s,o,O,W,_){const g=[e+"="+encodeURIComponent(s)];Cr.isNumber(o)&&g.push("expires="+new Date(o).toGMTString()),Cr.isString(O)&&g.push("path="+O),Cr.isString(W)&&g.push("domain="+W),_===!0&&g.push("secure"),document.cookie=g.join("; ")},read(e){const s=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function iq(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function oq(e,s){return s?e.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):e}function EC(e,s,o){let O=!iq(s);return e&&(O||o==!1)?oq(e,s):s}const AC=e=>e instanceof rf?{...e}:e;function _g(e,s){s=s||{};const o={};function O(h,n,x,y){return Cr.isPlainObject(h)&&Cr.isPlainObject(n)?Cr.merge.call({caseless:y},h,n):Cr.isPlainObject(n)?Cr.merge({},n):Cr.isArray(n)?n.slice():n}function W(h,n,x,y){if(Cr.isUndefined(n)){if(!Cr.isUndefined(h))return O(void 0,h,x,y)}else return O(h,n,x,y)}function _(h,n){if(!Cr.isUndefined(n))return O(void 0,n)}function g(h,n){if(Cr.isUndefined(n)){if(!Cr.isUndefined(h))return O(void 0,h)}else return O(void 0,n)}function a(h,n,x){if(x in s)return O(h,n);if(x in e)return O(void 0,h)}const v={url:_,method:_,data:_,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:a,headers:(h,n,x)=>W(AC(h),AC(n),x,!0)};return Cr.forEach(Object.keys(Object.assign({},e,s)),function(h){const n=v[h]||W,x=n(e[h],s[h],h);Cr.isUndefined(x)&&n!==a||(o[h]=x)}),o}const MC=e=>{const s=_g({},e);let{data:o,withXSRFToken:O,xsrfHeaderName:W,xsrfCookieName:_,headers:g,auth:a}=s;s.headers=g=rf.from(g),s.url=vC(EC(s.baseURL,s.url,s.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&g.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let v;if(Cr.isFormData(o)){if(oh.hasStandardBrowserEnv||oh.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if((v=g.getContentType())!==!1){const[h,...n]=v?v.split(";").map(x=>x.trim()).filter(Boolean):[];g.setContentType([h||"multipart/form-data",...n].join("; "))}}if(oh.hasStandardBrowserEnv&&(O&&Cr.isFunction(O)&&(O=O(s)),O||O!==!1&&aq(s.url))){const h=W&&_&&rq.read(_);h&&g.set(W,h)}return s},sq=typeof XMLHttpRequest<"u",lq=sq&&function(e){return new Promise(function(s,o){const O=MC(e);let W=O.data;const _=rf.from(O.headers).normalize();let{responseType:g,onUploadProgress:a,onDownloadProgress:v}=O,h,n,x,y,b;function u(){y&&y(),b&&b(),O.cancelToken&&O.cancelToken.unsubscribe(h),O.signal&&O.signal.removeEventListener("abort",h)}let r=new XMLHttpRequest;r.open(O.method.toUpperCase(),O.url,!0),r.timeout=O.timeout;function i(){if(!r)return;const l=rf.from("getAllResponseHeaders"in r&&r.getAllResponseHeaders()),p={data:!g||g==="text"||g==="json"?r.responseText:r.response,status:r.status,statusText:r.statusText,headers:l,config:e,request:r};SC(function(m){s(m),u()},function(m){o(m),u()},p),r=null}"onloadend"in r?r.onloadend=i:r.onreadystatechange=function(){!r||r.readyState!==4||r.status===0&&!(r.responseURL&&r.responseURL.indexOf("file:")===0)||setTimeout(i)},r.onabort=function(){r&&(o(new ll("Request aborted",ll.ECONNABORTED,e,r)),r=null)},r.onerror=function(){o(new ll("Network Error",ll.ERR_NETWORK,e,r)),r=null},r.ontimeout=function(){let l=O.timeout?"timeout of "+O.timeout+"ms exceeded":"timeout exceeded";const p=O.transitional||bC;O.timeoutErrorMessage&&(l=O.timeoutErrorMessage),o(new ll(l,p.clarifyTimeoutError?ll.ETIMEDOUT:ll.ECONNABORTED,e,r)),r=null},W===void 0&&_.setContentType(null),"setRequestHeader"in r&&Cr.forEach(_.toJSON(),function(l,p){r.setRequestHeader(p,l)}),Cr.isUndefined(O.withCredentials)||(r.withCredentials=!!O.withCredentials),g&&g!=="json"&&(r.responseType=O.responseType),v&&([x,b]=N_(v,!0),r.addEventListener("progress",x)),a&&r.upload&&([n,y]=N_(a),r.upload.addEventListener("progress",n),r.upload.addEventListener("loadend",y)),(O.cancelToken||O.signal)&&(h=l=>{r&&(o(!l||l.type?new iy(null,e,r):l),r.abort(),r=null)},O.cancelToken&&O.cancelToken.subscribe(h),O.signal&&(O.signal.aborted?h():O.signal.addEventListener("abort",h)));const d=eq(O.url);if(d&&oh.protocols.indexOf(d)===-1){o(new ll("Unsupported protocol "+d+":",ll.ERR_BAD_REQUEST,e));return}r.send(W||null)})},cq=(e,s)=>{const{length:o}=e=e?e.filter(Boolean):[];if(s||o){let O=new AbortController,W;const _=function(h){if(!W){W=!0,a();const n=h instanceof Error?h:this.reason;O.abort(n instanceof ll?n:new iy(n instanceof Error?n.message:n))}};let g=s&&setTimeout(()=>{g=null,_(new ll(`timeout ${s} of ms exceeded`,ll.ETIMEDOUT))},s);const a=()=>{e&&(g&&clearTimeout(g),g=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(_):h.removeEventListener("abort",_)}),e=null)};e.forEach(h=>h.addEventListener("abort",_));const{signal:v}=O;return v.unsubscribe=()=>Cr.asap(a),v}},uq=cq,dq=function*(e,s){let o=e.byteLength;if(!s||o<s){yield e;return}let O=0,W;for(;O<o;)W=O+s,yield e.slice(O,W),O=W},hq=async function*(e,s){for await(const o of pq(e))yield*dq(o,s)},pq=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const s=e.getReader();try{for(;;){const{done:o,value:O}=await s.read();if(o)break;yield O}}finally{await s.cancel()}},IC=(e,s,o,O)=>{const W=hq(e,s);let _=0,g,a=v=>{g||(g=!0,O&&O(v))};return new ReadableStream({async pull(v){try{const{done:h,value:n}=await W.next();if(h){a(),v.close();return}let x=n.byteLength;if(o){let y=_+=x;o(y)}v.enqueue(new Uint8Array(n))}catch(h){throw a(h),h}},cancel(v){return a(v),W.return()}},{highWaterMark:2})},D_=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",PC=D_&&typeof ReadableStream=="function",fq=D_&&(typeof TextEncoder=="function"?(e=>s=>e.encode(s))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),BC=(e,...s)=>{try{return!!e(...s)}catch{return!1}},mq=PC&&BC(()=>{let e=!1;const s=new Request(oh.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!s}),LC=64*1024,c4=PC&&BC(()=>Cr.isReadableStream(new Response("").body)),R_={stream:c4&&(e=>e.body)};D_&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(s=>{!R_[s]&&(R_[s]=Cr.isFunction(e[s])?o=>o[s]():(o,O)=>{throw new ll(`Response type '${s}' is not supported`,ll.ERR_NOT_SUPPORT,O)})})})(new Response);const gq=async e=>{if(e==null)return 0;if(Cr.isBlob(e))return e.size;if(Cr.isSpecCompliantForm(e))return(await new Request(oh.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Cr.isArrayBufferView(e)||Cr.isArrayBuffer(e))return e.byteLength;if(Cr.isURLSearchParams(e)&&(e=e+""),Cr.isString(e))return(await fq(e)).byteLength},yq=async(e,s)=>Cr.toFiniteNumber(e.getContentLength())??gq(s),vq=D_&&(async e=>{let{url:s,method:o,data:O,signal:W,cancelToken:_,timeout:g,onDownloadProgress:a,onUploadProgress:v,responseType:h,headers:n,withCredentials:x="same-origin",fetchOptions:y}=MC(e);h=h?(h+"").toLowerCase():"text";let b=uq([W,_&&_.toAbortSignal()],g),u;const r=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let i;try{if(v&&mq&&o!=="get"&&o!=="head"&&(i=await yq(n,O))!==0){let w=new Request(s,{method:"POST",body:O,duplex:"half"}),T;if(Cr.isFormData(O)&&(T=w.headers.get("content-type"))&&n.setContentType(T),w.body){const[A,C]=TC(i,N_(CC(v)));O=IC(w.body,LC,A,C)}}Cr.isString(x)||(x=x?"include":"omit");const d="credentials"in Request.prototype;u=new Request(s,{...y,signal:b,method:o.toUpperCase(),headers:n.normalize().toJSON(),body:O,duplex:"half",credentials:d?x:void 0});let l=await fetch(u,y);const p=c4&&(h==="stream"||h==="response");if(c4&&(a||p&&r)){const w={};["status","statusText","headers"].forEach(P=>{w[P]=l[P]});const T=Cr.toFiniteNumber(l.headers.get("content-length")),[A,C]=a&&TC(T,N_(CC(a),!0))||[];l=new Response(IC(l.body,LC,A,()=>{C&&C(),r&&r()}),w)}h=h||"text";let m=await R_[Cr.findKey(R_,h)||"text"](l,e);return!p&&r&&r(),await new Promise((w,T)=>{SC(w,T,{data:m,headers:rf.from(l.headers),status:l.status,statusText:l.statusText,config:e,request:u})})}catch(d){throw r&&r(),d&&d.name==="TypeError"&&/Load failed|fetch/i.test(d.message)?Object.assign(new ll("Network Error",ll.ERR_NETWORK,e,u),{cause:d.cause||d}):ll.from(d,d&&d.code,e,u)}}),u4={http:BW,xhr:lq,fetch:vq};Cr.forEach(u4,(e,s)=>{if(e){try{Object.defineProperty(e,"name",{value:s})}catch{}Object.defineProperty(e,"adapterName",{value:s})}});const zC=e=>`- ${e}`,_q=e=>Cr.isFunction(e)||e===null||e===!1,OC={getAdapter:e=>{e=Cr.isArray(e)?e:[e];const{length:s}=e;let o,O;const W={};for(let _=0;_<s;_++){o=e[_];let g;if(O=o,!_q(o)&&(O=u4[(g=String(o)).toLowerCase()],O===void 0))throw new ll(`Unknown adapter '${g}'`);if(O)break;W[g||"#"+_]=O}if(!O){const _=Object.entries(W).map(([a,v])=>`adapter ${a} `+(v===!1?"is not supported by the environment":"is not available in the build"));let g=s?_.length>1?`since :
|
|
4
4
|
`+_.map(zC).join(`
|
|
@@ -8180,4 +8180,4 @@ uniform ${Fe} ${Ge} u_${at};
|
|
|
8180
8180
|
* vuex v4.0.2
|
|
8181
8181
|
* (c) 2021 Evan You
|
|
8182
8182
|
* @license MIT
|
|
8183
|
-
*/var QNt="store";function g1(e,s){Object.keys(e).forEach(function(o){return s(e[o],o)})}function dG(e){return e!==null&&typeof e=="object"}function eDt(e){return e&&typeof e.then=="function"}function Nf(e,s){if(!e)throw new Error("[vuex] "+s)}function tDt(e,s){return function(){return e(s)}}function hG(e,s,o){return s.indexOf(e)<0&&(o&&o.prepend?s.unshift(e):s.push(e)),function(){var O=s.indexOf(e);O>-1&&s.splice(O,1)}}function pG(e,s){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var o=e.state;G5(e,o,[],e._modules.root,!0),IT(e,o,s)}function IT(e,s,o){var O=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var W=e._wrappedGetters,_={};g1(W,function(g,a){_[a]=tDt(g,e),Object.defineProperty(e.getters,a,{get:function(){return _[a]()},enumerable:!0})}),e._state=t.reactive({data:s}),e.strict&&oDt(e),O&&o&&e._withCommit(function(){O.data=null})}function G5(e,s,o,O,W){var _=!o.length,g=e._modules.getNamespace(o);if(O.namespaced&&(e._modulesNamespaceMap[g]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+g+" for the namespaced module "+o.join("/")),e._modulesNamespaceMap[g]=O),!_&&!W){var a=PT(s,o.slice(0,-1)),v=o[o.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&v in a&&console.warn('[vuex] state field "'+v+'" was overridden by a module with the same name at "'+o.join(".")+'"'),a[v]=O.state})}var h=O.context=nDt(e,g,o);O.forEachMutation(function(n,x){var y=g+x;aDt(e,y,n,h)}),O.forEachAction(function(n,x){var y=n.root?x:g+x,b=n.handler||n;rDt(e,y,b,h)}),O.forEachGetter(function(n,x){var y=g+x;iDt(e,y,n,h)}),O.forEachChild(function(n,x){G5(e,s,o.concat(x),n,W)})}function nDt(e,s,o){var O=s==="",W={dispatch:O?e.dispatch:function(_,g,a){var v=H5(_,g,a),h=v.payload,n=v.options,x=v.type;if((!n||!n.root)&&(x=s+x,process.env.NODE_ENV!=="production"&&!e._actions[x])){console.error("[vuex] unknown local action type: "+v.type+", global type: "+x);return}return e.dispatch(x,h)},commit:O?e.commit:function(_,g,a){var v=H5(_,g,a),h=v.payload,n=v.options,x=v.type;if((!n||!n.root)&&(x=s+x,process.env.NODE_ENV!=="production"&&!e._mutations[x])){console.error("[vuex] unknown local mutation type: "+v.type+", global type: "+x);return}e.commit(x,h,n)}};return Object.defineProperties(W,{getters:{get:O?function(){return e.getters}:function(){return fG(e,s)}},state:{get:function(){return PT(e.state,o)}}}),W}function fG(e,s){if(!e._makeLocalGettersCache[s]){var o={},O=s.length;Object.keys(e.getters).forEach(function(W){if(W.slice(0,O)===s){var _=W.slice(O);Object.defineProperty(o,_,{get:function(){return e.getters[W]},enumerable:!0})}}),e._makeLocalGettersCache[s]=o}return e._makeLocalGettersCache[s]}function aDt(e,s,o,O){var W=e._mutations[s]||(e._mutations[s]=[]);W.push(function(_){o.call(e,O.state,_)})}function rDt(e,s,o,O){var W=e._actions[s]||(e._actions[s]=[]);W.push(function(_){var g=o.call(e,{dispatch:O.dispatch,commit:O.commit,getters:O.getters,state:O.state,rootGetters:e.getters,rootState:e.state},_);return eDt(g)||(g=Promise.resolve(g)),e._devtoolHook?g.catch(function(a){throw e._devtoolHook.emit("vuex:error",a),a}):g})}function iDt(e,s,o,O){if(e._wrappedGetters[s]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+s);return}e._wrappedGetters[s]=function(W){return o(O.state,O.getters,W.state,W.getters)}}function oDt(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&Nf(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function PT(e,s){return s.reduce(function(o,O){return o[O]},e)}function H5(e,s,o){return dG(e)&&e.type&&(o=s,s=e,e=e.type),process.env.NODE_ENV!=="production"&&Nf(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:s,options:o}}var sDt="vuex bindings",mG="vuex:mutations",BT="vuex:actions",yv="vuex",lDt=0;function cDt(e,s){KNt({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[sDt]},function(o){o.addTimelineLayer({id:mG,label:"Vuex Mutations",color:gG}),o.addTimelineLayer({id:BT,label:"Vuex Actions",color:gG}),o.addInspector({id:yv,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),o.on.getInspectorTree(function(O){if(O.app===e&&O.inspectorId===yv)if(O.filter){var W=[];bG(W,s._modules.root,O.filter,""),O.rootNodes=W}else O.rootNodes=[_G(s._modules.root,"")]}),o.on.getInspectorState(function(O){if(O.app===e&&O.inspectorId===yv){var W=O.nodeId;fG(s,W),O.state=hDt(fDt(s._modules,W),W==="root"?s.getters:s._makeLocalGettersCache,W)}}),o.on.editInspectorState(function(O){if(O.app===e&&O.inspectorId===yv){var W=O.nodeId,_=O.path;W!=="root"&&(_=W.split("/").filter(Boolean).concat(_)),s._withCommit(function(){O.set(s._state.data,_,O.state.value)})}}),s.subscribe(function(O,W){var _={};O.payload&&(_.payload=O.payload),_.state=W,o.notifyComponentUpdate(),o.sendInspectorTree(yv),o.sendInspectorState(yv),o.addTimelineEvent({layerId:mG,event:{time:Date.now(),title:O.type,data:_}})}),s.subscribeAction({before:function(O,W){var _={};O.payload&&(_.payload=O.payload),O._id=lDt++,O._time=Date.now(),_.state=W,o.addTimelineEvent({layerId:BT,event:{time:O._time,title:O.type,groupId:O._id,subtitle:"start",data:_}})},after:function(O,W){var _={},g=Date.now()-O._time;_.duration={_custom:{type:"duration",display:g+"ms",tooltip:"Action duration",value:g}},O.payload&&(_.payload=O.payload),_.state=W,o.addTimelineEvent({layerId:BT,event:{time:Date.now(),title:O.type,groupId:O._id,subtitle:"end",data:_}})}})})}var gG=8702998,uDt=6710886,dDt=16777215,yG={label:"namespaced",textColor:dDt,backgroundColor:uDt};function vG(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function _G(e,s){return{id:s||"root",label:vG(s),tags:e.namespaced?[yG]:[],children:Object.keys(e._children).map(function(o){return _G(e._children[o],s+o+"/")})}}function bG(e,s,o,O){O.includes(o)&&e.push({id:O||"root",label:O.endsWith("/")?O.slice(0,O.length-1):O||"Root",tags:s.namespaced?[yG]:[]}),Object.keys(s._children).forEach(function(W){bG(e,s._children[W],o,O+W+"/")})}function hDt(e,s,o){s=o==="root"?s:s[o];var O=Object.keys(s),W={state:Object.keys(e.state).map(function(g){return{key:g,editable:!0,value:e.state[g]}})};if(O.length){var _=pDt(s);W.getters=Object.keys(_).map(function(g){return{key:g.endsWith("/")?vG(g):g,editable:!1,value:LT(function(){return _[g]})}})}return W}function pDt(e){var s={};return Object.keys(e).forEach(function(o){var O=o.split("/");if(O.length>1){var W=s,_=O.pop();O.forEach(function(g){W[g]||(W[g]={_custom:{value:{},display:g,tooltip:"Module",abstract:!0}}),W=W[g]._custom.value}),W[_]=LT(function(){return e[o]})}else s[o]=LT(function(){return e[o]})}),s}function fDt(e,s){var o=s.split("/").filter(function(O){return O});return o.reduce(function(O,W,_){var g=O[W];if(!g)throw new Error('Missing module "'+W+'" for path "'+s+'".');return _===o.length-1?g:g._children},s==="root"?e:e.root._children)}function LT(e){try{return e()}catch(s){return s}}var Df=function(e,s){this.runtime=s,this._children=Object.create(null),this._rawModule=e;var o=e.state;this.state=(typeof o=="function"?o():o)||{}},xG={namespaced:{configurable:!0}};xG.namespaced.get=function(){return!!this._rawModule.namespaced},Df.prototype.addChild=function(e,s){this._children[e]=s},Df.prototype.removeChild=function(e){delete this._children[e]},Df.prototype.getChild=function(e){return this._children[e]},Df.prototype.hasChild=function(e){return e in this._children},Df.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},Df.prototype.forEachChild=function(e){g1(this._children,e)},Df.prototype.forEachGetter=function(e){this._rawModule.getters&&g1(this._rawModule.getters,e)},Df.prototype.forEachAction=function(e){this._rawModule.actions&&g1(this._rawModule.actions,e)},Df.prototype.forEachMutation=function(e){this._rawModule.mutations&&g1(this._rawModule.mutations,e)},Object.defineProperties(Df.prototype,xG);var y1=function(e){this.register([],e,!1)};y1.prototype.get=function(e){return e.reduce(function(s,o){return s.getChild(o)},this.root)},y1.prototype.getNamespace=function(e){var s=this.root;return e.reduce(function(o,O){return s=s.getChild(O),o+(s.namespaced?O+"/":"")},"")},y1.prototype.update=function(e){wG([],this.root,e)},y1.prototype.register=function(e,s,o){var O=this;o===void 0&&(o=!0),process.env.NODE_ENV!=="production"&&TG(e,s);var W=new Df(s,o);if(e.length===0)this.root=W;else{var _=this.get(e.slice(0,-1));_.addChild(e[e.length-1],W)}s.modules&&g1(s.modules,function(g,a){O.register(e.concat(a),g,o)})},y1.prototype.unregister=function(e){var s=this.get(e.slice(0,-1)),o=e[e.length-1],O=s.getChild(o);if(!O){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+o+"', which is not registered");return}O.runtime&&s.removeChild(o)},y1.prototype.isRegistered=function(e){var s=this.get(e.slice(0,-1)),o=e[e.length-1];return s?s.hasChild(o):!1};function wG(e,s,o){if(process.env.NODE_ENV!=="production"&&TG(e,o),s.update(o),o.modules)for(var O in o.modules){if(!s.getChild(O)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+O+"' on hot reloading, manual reload is needed");return}wG(e.concat(O),s.getChild(O),o.modules[O])}}var kG={assert:function(e){return typeof e=="function"},expected:"function"},mDt={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},SG={getters:kG,mutations:kG,actions:mDt};function TG(e,s){Object.keys(SG).forEach(function(o){if(s[o]){var O=SG[o];g1(s[o],function(W,_){Nf(O.assert(W),gDt(e,o,_,W,O.expected))})}})}function gDt(e,s,o,O,W){var _=s+" should be "+W+' but "'+s+"."+o+'"';return e.length>0&&(_+=' in module "'+e.join(".")+'"'),_+=" is "+JSON.stringify(O)+".",_}var kp=function e(s){var o=this;s===void 0&&(s={}),process.env.NODE_ENV!=="production"&&(Nf(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),Nf(this instanceof e,"store must be called with the new operator."));var O=s.plugins;O===void 0&&(O=[]);var W=s.strict;W===void 0&&(W=!1);var _=s.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new y1(s),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=_;var g=this,a=this,v=a.dispatch,h=a.commit;this.dispatch=function(x,y){return v.call(g,x,y)},this.commit=function(x,y,b){return h.call(g,x,y,b)},this.strict=W;var n=this._modules.root.state;G5(this,n,[],this._modules.root),IT(this,n),O.forEach(function(x){return x(o)})},zT={state:{configurable:!0}};kp.prototype.install=function(e,s){e.provide(s||QNt,this),e.config.globalProperties.$store=this;var o=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;o&&cDt(e,this)},zT.state.get=function(){return this._state.data},zT.state.set=function(e){process.env.NODE_ENV!=="production"&&Nf(!1,"use store.replaceState() to explicit replace store state.")},kp.prototype.commit=function(e,s,o){var O=this,W=H5(e,s,o),_=W.type,g=W.payload,a=W.options,v={type:_,payload:g},h=this._mutations[_];if(!h){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+_);return}this._withCommit(function(){h.forEach(function(n){n(g)})}),this._subscribers.slice().forEach(function(n){return n(v,O.state)}),process.env.NODE_ENV!=="production"&&a&&a.silent&&console.warn("[vuex] mutation type: "+_+". Silent option has been removed. Use the filter functionality in the vue-devtools")},kp.prototype.dispatch=function(e,s){var o=this,O=H5(e,s),W=O.type,_=O.payload,g={type:W,payload:_},a=this._actions[W];if(!a){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+W);return}try{this._actionSubscribers.slice().filter(function(h){return h.before}).forEach(function(h){return h.before(g,o.state)})}catch(h){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(h))}var v=a.length>1?Promise.all(a.map(function(h){return h(_)})):a[0](_);return new Promise(function(h,n){v.then(function(x){try{o._actionSubscribers.filter(function(y){return y.after}).forEach(function(y){return y.after(g,o.state)})}catch(y){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(y))}h(x)},function(x){try{o._actionSubscribers.filter(function(y){return y.error}).forEach(function(y){return y.error(g,o.state,x)})}catch(y){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(y))}n(x)})})},kp.prototype.subscribe=function(e,s){return hG(e,this._subscribers,s)},kp.prototype.subscribeAction=function(e,s){var o=typeof e=="function"?{before:e}:e;return hG(o,this._actionSubscribers,s)},kp.prototype.watch=function(e,s,o){var O=this;return process.env.NODE_ENV!=="production"&&Nf(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(O.state,O.getters)},s,Object.assign({},o))},kp.prototype.replaceState=function(e){var s=this;this._withCommit(function(){s._state.data=e})},kp.prototype.registerModule=function(e,s,o){o===void 0&&(o={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(Nf(Array.isArray(e),"module path must be a string or an Array."),Nf(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,s),G5(this,this.state,e,this._modules.get(e),o.preserveState),IT(this,this.state)},kp.prototype.unregisterModule=function(e){var s=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&Nf(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var o=PT(s.state,e.slice(0,-1));delete o[e[e.length-1]]}),pG(this)},kp.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&Nf(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},kp.prototype.hotUpdate=function(e){this._modules.update(e),pG(this,!0)},kp.prototype._withCommit=function(e){var s=this._committing;this._committing=!0,e(),this._committing=s},Object.defineProperties(kp.prototype,zT);var yDt=_Dt(function(e,s){var o={};return process.env.NODE_ENV!=="production"&&!CG(s)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),vDt(s).forEach(function(O){var W=O.key,_=O.val;o[W]=function(){for(var g=[],a=arguments.length;a--;)g[a]=arguments[a];var v=this.$store.commit;if(e){var h=bDt(this.$store,"mapMutations",e);if(!h)return;v=h.context.commit}return typeof _=="function"?_.apply(this,[v].concat(g)):v.apply(this.$store,[_].concat(g))}}),o});function vDt(e){return CG(e)?Array.isArray(e)?e.map(function(s){return{key:s,val:s}}):Object.keys(e).map(function(s){return{key:s,val:e[s]}}):[]}function CG(e){return Array.isArray(e)||dG(e)}function _Dt(e){return function(s,o){return typeof s!="string"?(o=s,s=""):s.charAt(s.length-1)!=="/"&&(s+="/"),e(s,o)}}function bDt(e,s,o){var O=e._modulesNamespaceMap[o];return process.env.NODE_ENV!=="production"&&!O&&console.error("[vuex] module namespace not found in "+s+"(): "+o),O}const xDt="/icn-play.svg",wDt="/icn-tiros-de-esquina.svg",kDt="/icn-tiro-a-porteria.svg",SDt="/icn-cambio.svg",TDt="/icn-falta.svg",CDt="/atajada.svg",EDt="/fuera-de-lugar.svg",OT="/gol.svg",ADt="/var.png",MDt="/tiempo-agregado.svg",IDt="/jugada-peligrosa.svg",PDt="/penal-marcado.svg",BDt="/penal-fallado.svg",LDt="/inicia-el-partido.svg",zDt="/fin-del-partido.svg",ODt="/icn-tarjeta-amarilla.svg",FDt="/icn-tarjeta-roja.svg",NDt=[1,2,3,4,6],DDt={name:"TimeLineEvent",props:{gameEvent:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},width:{type:Number,default:352},timeLineWidth:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!0}},data(){return{lastHeight:0,gameEventKey:0}},computed:{nameClasses(){const e=[],s=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return AT.GOAL_IDS.includes(s)?(e.push("is-main-event"),e.push("goal")):AT.YELLOW_CARD_IDS.includes(s)?(e.push("is-main-event"),e.push("yellow-card")):AT.RED_CARD_IDS.includes(s)?(e.push("is-main-event"),e.push("red-card")):this.gameEvent.video_link!=="-"&&(e.push("is-main-event"),e.push("normal-video")),this.gameEvent.teamType===1?e.push("time-line-event--home-team"):e.push("time-line-event--away-team"),e},srcImgPlayers(){let e=null;return this.gameEvent.player_id&&this.gameEvent.player_id!=="-"&&(e=this.gameEvent.player_id.split("@"),e=e.map(s=>GNt(s))),e},teamTypeClasses(){const e=`time-line-event--${this.gameEvent.teamType===1?"home":"away"}-team`;return[e,`${e}-desktop`]},teamTypeClasses2(){return[`time-line-event--info--${this.gameEvent.teamType===1?"home":"away"}-team`]},minuteClasses(){const e=[`time-line-event__minute--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`];return e.push("time-line-event__minute--desktop"),e},playerName(){return this.gameEvent.category_id===28||NDt.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...yDt("general",["setVideoModalVisibility","setVideoSrc"]),thumbnailClick(e){e!=="-"&&this.$emit("thumbnail-click",e)},showVideoTimeline(e){this.setVideoSrc(e),this.setVideoModalVisibility(!0)},getIconClasses(){return["time-line-event__icon--desktop",`time-line-event__icon--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`]},emitHeight(){setTimeout(()=>{this.$refs.timeLineEvent&&this.$refs.timeLineEvent.clientHeight&&this.$refs.timeLineEvent.clientHeight!==this.lastHeight&&(this.lastHeight=this.$refs.timeLineEvent.clientHeight,this.$emit("event-height",this.lastHeight))},500)}},mounted(){if(this.emitHeight(),this.gameEvent.event_type_id===3){const[e,s]=this.gameEvent.player_id.split("@");this.$emit("player-changed",{playerOut:Number(e),playerIn:Number(s),teamId:this.gameEvent.team_id})}}},RDt=e=>(t.pushScopeId("data-v-f8c0f071"),e=e(),t.popScopeId(),e),VDt={class:"time-line-event__details"},jDt={width:"127",preload:"metadata",style:{"border-radius":"8px"}},$Dt=["src"],UDt=RDt(()=>t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient"},[t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient__button-play"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})])])],-1)),GDt={class:"time-line-event__details__info"},HDt={key:0,class:"time-line-event__details__info__header__players"},WDt={class:"time-line-event__details__info__header__players__div-img"},qDt=["src"],YDt={class:"time-line-event__details__info__body"},ZDt={class:"time-line-event__details__info__body__comment"},XDt={class:"time-line-event__minute__container"},JDt={class:"time-line-event__minute__container__text"},KDt={class:"time-line-event__minute__container__icon-container"},QDt={class:"time-line-event__minute__container__icon-container__icon"},eRt={key:0,src:wDt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},tRt={key:1,src:kDt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},nRt={key:2,src:SDt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},aRt={key:3,src:TDt,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},rRt={key:4,src:CDt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},iRt={key:5,src:EDt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},oRt={key:6,src:OT,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},sRt={key:7,src:OT,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},lRt={key:8,src:OT,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},cRt={key:9,src:ADt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},uRt={key:10,src:MDt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},dRt={key:11,src:IDt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},hRt={key:12,src:PDt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},pRt={key:13,src:BDt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},fRt={key:14,src:LDt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},mRt={key:15,src:zDt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},gRt={key:16,src:ODt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},yRt={key:17,src:FDt,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},vRt={key:18,src:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %23fff; %7D .cls-2 %7B fill: %23172531; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Cg id='Oval'%3E%3Ccircle class='cls-2' cx='24' cy='24' r='24'/%3E%3C/g%3E%3Cg id='Group-19'%3E%3Cg id='Path-16'%3E%3Cpath class='cls-1' d='M32.85,36.6H15.15c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h17.69c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z'/%3E%3C/g%3E%3C/g%3E%3Cg id='Rectangle'%3E%3Cg id='path-1'%3E%3Cpath class='cls-1' d='M38.02,32.62H9.98V13.43h28.04v19.19Zm-26.54-1.5h25.04V14.93H11.48V31.12Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",alt:"Event icon"};function _Rt(e,s,o,O,W,_){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",_.teamTypeClasses]),style:t.normalizeStyle({width:`${o.width}px`}),key:W.gameEventKey},[t.createElementVNode("div",VDt,[o.canPlayVideos&&o.gameEvent.video_link!=="-"&&o.timeLineWidth>700?(t.openBlock(),t.createElementBlock("div",{key:0,class:"time-line-event__details__video-thumbnail",onClick:s[0]||(s[0]=g=>_.thumbnailClick(o.gameEvent.video_link,o.gameEvent.event_type_name))},[t.createElementVNode("video",jDt,[t.createElementVNode("source",{src:o.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,$Dt)]),UDt])):t.createCommentVNode("",!0),t.createElementVNode("div",GDt,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",_.teamTypeClasses2])},[o.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",HDt,[_.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(_.srcImgPlayers,(g,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":a===1}]),key:a},[t.createElementVNode("div",WDt,[t.createElementVNode("img",{src:g,alt:""},null,8,qDt)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",_.nameClasses]),onClick:s[1]||(s[1]=g=>_.thumbnailClick(o.gameEvent.video_link,o.gameEvent.event_type_name))},[o.canPlayVideos&&o.gameEvent.video_link!=="-"?(t.openBlock(),t.createElementBlock("img",{key:0,src:xDt,class:t.normalizeClass(`time-line-event__details__info__header__event-play ${[1,2].includes(o.gameEvent.event_type_id)?`time-line-event__details__info__header__event-play__${o.gameEvent.event_type_name}`:o.gameEvent.video_link!=="-"?"time-line-event__details__info__header__event-play__normal-video":""}`)},null,2)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(o.gameEvent.category_id?o.gameEvent.event_type_id===5?o.gameEvent.category_name:o.gameEvent.event_type_name==="Gol"?`${[13,16].includes(o.gameEvent.category_id)?"Autogol":"Gol"} de `+o.gameEvent.team_name:o.gameEvent.event_type_name:o.gameEvent.comments),1)],2)],2),t.createElementVNode("div",YDt,[t.createElementVNode("div",ZDt,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",_.minuteClasses])},[t.createElementVNode("div",XDt,[t.createElementVNode("div",JDt,t.toDisplayString(o.gameEvent.minute)+"'",1),t.createElementVNode("div",KDt,[t.createElementVNode("div",QDt,[o.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",eRt)):o.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",tRt)):o.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",nRt)):o.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",aRt)):o.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",rRt)):o.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",iRt)):o.gameEvent.category_id==6&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==5&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==1&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==2&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==3&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==7&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==12&&o.gameEvent.event_type_id==1?(t.openBlock(),t.createElementBlock("img",oRt)):o.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",sRt)):o.gameEvent.category_id==13||o.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",lRt)):o.gameEvent.category_id==30||o.gameEvent.category_id==31||o.gameEvent.category_id==32||o.gameEvent.category_id==33||o.gameEvent.category_id==34||o.gameEvent.category_id==35||o.gameEvent.category_id==36||o.gameEvent.category_id==37||o.gameEvent.category_id==38||o.gameEvent.category_id==39||o.gameEvent.category_id==40?(t.openBlock(),t.createElementBlock("img",cRt)):o.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",uRt)):o.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",dRt)):o.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",hRt)):o.gameEvent.category_id==15||o.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",pRt)):o.gameEvent.category_id==0&&o.gameEvent.game_status_id==16||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==18||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==20||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==22?(t.openBlock(),t.createElementBlock("img",fRt)):o.gameEvent.category_id==0&&o.gameEvent.game_status_id==13||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==17||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==19||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==21||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==23?(t.openBlock(),t.createElementBlock("img",mRt)):o.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",gRt)):o.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",yRt)):(t.openBlock(),t.createElementBlock("img",vRt))])])])],2)],6)}const bRt=c_(DDt,[["render",_Rt],["__scopeId","data-v-f8c0f071"]]),xRt={"1-1":"gol","1-2":"gol","1-3":"gol","1-4":"gol","1-5":"gol","1-6":"gol","1-7":"gol","1-12":"gol","1-13":"gol","1-16":"gol","2-8":"amonestacion","2-9":"expulsion","3-10":"cambio_de_jugador","3-11":"cambio_de_jugador","4-14":"gol","4-15":"penal_fallado","5-17":"fuera_de_lugar","5-18":"tiro_de_esquina","5-20":"tiro_a_gol","5-21":"falta_cometida","5-22":"penal_marcado","5-23":"penal_fallado","5-24":"","5-25":"","5-26":"jugada_peligro_dentro_area","5-27":"atajada","5-28":"tiempo_agregado","5-29":"presion_para_anotar","7-30":"revision_var","7-31":"revision_var","7-32":"revision_var","7-33":"revision_var","7-34":"revision_var"},wRt={3:{name:"Inicia Primer Tiempo",weight:1,playTimer:1,abbreviation:"1T:"},4:{name:"Final Primer Tiempo",weight:2,playTimer:0,abbreviation:"1T:"},5:{name:"Inicia Segundo Tiempo",weight:3,playTimer:1,abbreviation:"2T:"},8:{name:"Final Segundo Tiempo",weight:4,playTimer:0,abbreviation:"2T:"},9:{name:"Inicia Primer Tiempo Extra",weight:5,playTimer:1,abbreviation:"1T extra:"},12:{name:"Final Primer Tiempo Extra",weight:6,playTimer:0,abbreviation:"1T extra:"},10:{name:"Inicia Segundo Tiempo Extra",weight:7,playTimer:1,abbreviation:"2T extra:"},13:{name:"Final Segundo Tiempo Extra",weight:8,playTimer:0,abbreviation:"2T extra:"},11:{name:"Inicia Tanda de Penales",weight:9,playTimer:1,abbreviation:"Penales:"},15:{name:"Final Tanda de Penales",weight:10,playTimer:0,abbreviation:"Penales:"},6:{name:"Marcador Final",weight:11,playTimer:0,abbreviation:"Final"}};let W5=null;const kRt={name:"TimeLine",components:{Tooltip:VNt,TimeLineEvent:bRt},mixins:[$Nt],props:{gameData:{type:Object,required:!0},timeLinePeriod:{type:String,default:"all"},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},data(){return{gameEvents:[],gameEventsByPeriod:{firstHalf:[],secondHalf:[]},dataVideo:{visible:!1,link:""},gameEventsQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",transitionName:"",subscriptionInfo:{gameId:0,isSubscribed:!1},areGameEventsFilled:!1,timeLineWidth:812,eventContainerWidth:0,channelName:"",timeLineStatus:"awaiting",timeLeft:"",lastMinute:0,timeLineStatuses:[],currentStatus:{abbreviation:""},timer:"00:00"}},computed:{isMobile(){return this.timeLineWidth<580},gameEventWidth(){return this.timeLineWidth/2-30},gameEventsToShow(){return this.timeLinePeriod==="all"?this.gameEvents:this.gameEventsByPeriod[this.timeLinePeriod]}},watch:{gameData:{deep:!0,immediate:!0,handler(e){e&&e.id&&(this.gameDateTime=new Date(this.gameData.dateTimeUTC),this.gameEventsQueue=[],this.timeLineStatuses=[],this.transitionName="",this.checkTimeLeft(),e.status!==1&&this.socket&&this.socket.connected?this.subscribeToMXMChannel():this.timeLineStatus="finished",this.fillGameEvents(e.id))}},"socket.connected":{immediate:!0,handler(e){e&&this.gameData.id&&this.gameData.status!==1&&this.subscribeToMXMChannel()}},gameEvents(e){e.length&&this.gameData.status!==1&&(this.timeLineStatus="live")}},methods:{async fillGameEvents(e){try{const s=await this.fetchGameEvents(e);s?(this.gameEvents=[...s],this.checkGameEventsQueue(),this.sortGameEvents(),setTimeout(()=>{this.transitionName="list"},500)):this.gameEvents=[],this.gameData.status===1?this.lastMinute=`${this.gameEvents[this.gameEvents.length-1].minute}'`:this.checkTimeLineStatus()}catch(s){throw new Error(s)}},getGameEventClassAndSetIcon(e,s){return e.icon=s===0?"inicio_del_partido":xRt[`${e.event_type_id}-${e.category_id}`],e.team_id===this.gameData.homeTeam.team_id||!e.team_id?(e.teamType=1,["home-team-event"]):(e.teamType=2,["away-team-event"])},getEventContainerClass(){return this.isMobile,["time-line-event__container--desktop"]},async fetchGameEvents(e){try{const{data:{plays:s}}=await sG.get(`${this.gameEventsUrl}${e}`);return s}catch(s){throw new Error(s)}},subscribeToMXMChannel(){this.channelName=`mxm.game.${this.gameData.id}`,this.socket.emit("subscribe",{channel:this.channelName}),this.isSubscribed=!0},checkGameEventsQueue(){this.gameEventsQueue.length&&this.gameEvents.push(...this.gameEventsQueue),this.areGameEventsFilled=!0},setUpResizeObserver(){if(window.ResizeObserver)W5=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),W5.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,s){const o=this.$refs[`gameEventDiv${s}`][0],O=this.$refs[`gameEventLine${s}`]?this.$refs[`gameEventLine${s}`][0]:null,W=e+12;o&&(o.style.height=`${W}px`),O&&(O.style.height=`${W}px`)},sortGameEvents(){this.gameEvents.sort((e,s)=>this.getMatchLapseMinutes(e.match_lapse)+Number(e.minute)-(this.getMatchLapseMinutes(s.match_lapse)+Number(s.minute))),this.gameEventsByPeriod={firstHalf:[],secondHalf:[]},this.gameEvents.forEach(e=>{this.gameEventsByPeriod[e.match_lapse===1?"firstHalf":"secondHalf"].push(e)})},getMatchLapseMinutes(e){let s=0;switch(e){case 1:s=0;break;case 2:s=45;break;case 3:s=90;break;case 4:s=105;break;case 5:s=120;break}return s},addGameEventFromChannel(e){this.areGameEventsFilled?(this.gameEvents.push(e),this.sortGameEvents()):this.gameEventsQueue.push(e)},deleteGameEventFromChannel(e){const s=this.gameEvents.findIndex(o=>o.play_id===e.play_id);s&&this.gameEvents.splice(s,1)},checkTimeLineStatus(){this.gameEvents.forEach(s=>{const o=wRt[s.game_status];o&&this.timeLineStatuses.push({...o,gameEvent:s})}),this.timeLineStatuses.sort((s,o)=>o.weight-s.weight);const e=this.timeLineStatuses[0];e&&(this.currentStatus=e,e.playTimer&&this.startTimer())},startTimer(){},getTeamLogoSrc(e="homeTeam"){const s=this.gameData[e].team_id;return UNt(s)},thumbnailClick(e){this.canPlayVideos&&(this.dataVideo.link=e,this.dataVideo.visible=!0)}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){W5&&W5.unobserve(this.$refs.timeLine)},sockets:{new_mxm([e,s]){this.channelName===e&&this.addGameEventFromChannel(s)},update_mxm([e,s]){this.channelName===e&&(this.deleteGameEventFromChannel(s),this.addGameEventFromChannel(s))},delete_mxm([e,s]){this.channelName===e&&this.deleteGameEventFromChannel(s)}}},EG=e=>(t.pushScopeId("data-v-2574e576"),e=e(),t.popScopeId(),e),SRt={ref:"timeLine",class:"time-line"},TRt={class:"time-line__header"},CRt={class:"time-line__header__dot"},ERt={class:"time-line__header__dot__home-team team-logo"},ARt=["src"],MRt={class:"time-line__header__dot__away-team team-logo"},IRt=["src"],PRt={key:1,class:"start-line"},BRt=EG(()=>t.createElementVNode("div",null,null,-1)),LRt=EG(()=>t.createElementVNode("div",null,null,-1)),zRt=[BRt,LRt],ORt={key:1,class:"noEventText"},FRt={class:"tooltip-data"},NRt=["src"];function DRt(e,s,o,O,W,_){const g=t.resolveComponent("TimeLineEvent"),a=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",SRt,[t.createElementVNode("div",TRt,[t.createElementVNode("div",CRt,[t.createElementVNode("div",ERt,[t.createElementVNode("img",{src:_.getTeamLogoSrc("homeTeam"),alt:""},null,8,ARt)]),t.createElementVNode("div",MRt,[t.createElementVNode("img",{src:_.getTeamLogoSrc("awayTeam"),alt:""},null,8,IRt)])])]),(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events",key:`tlk-${W.gameEvents.length}`},[o.gameData.status!==4||o.gameData.is_live?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:0,name:W.transitionName,tag:"div"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_.gameEventsToShow,(v,h)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:v.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${h}`,class:t.normalizeClass(_.getGameEventClassAndSetIcon(v,h))},[t.createElementVNode("div",{class:t.normalizeClass(_.getEventContainerClass(v))},[t.createVNode(g,{"game-event":v,"is-mobile":_.isMobile,"time-line-width":W.timeLineWidth,width:_.gameEventWidth,"can-play-videos":o.canPlayVideos,onEventHeight:n=>_.updateContainerHeight(n,h),onPlayerChanged:s[0]||(s[0]=n=>e.$emit("player-changed",n)),onThumbnailClick:_.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","can-play-videos","onEventHeight","onThumbnailClick"])],2),h>0?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:`gameEventLine${h}`,class:"line"},null,512)):t.createCommentVNode("",!0),o.gameData.status===1&&h===_.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",PRt,zRt)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",ORt,"Aún no comienza el partido"))]))],512),t.createVNode(a,{data:W.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",FRt,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:W.dataVideo.link,format:"video/mp4"},null,8,NRt)])])]),_:1},8,["data"])],64)}const RRt=c_(kRt,[["render",DRt],["__scopeId","data-v-2574e576"]]),VRt={class:"game-time-line__options"},jRt={class:"game-time-line__timeline"},$Rt={__name:"GSC-GameTimeLine",props:{game:{type:Object,default:()=>({id:79601,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,homeTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/18.png",team_id:18,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/1.png",team_id:1,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},setup(e){sG.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const s=t.ref({width:"103px",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"}),o=t.ref({width:"auto",height:"30px",padding:"0px 20px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"});let O=null;const W=t.ref(["Todo","1er tiempo","2do tiempo"]),_=t.ref("Todo"),g=t.ref({}),a=t.ref(null),v=t.ref(0),h=t.computed(()=>{let u="all";return _.value==="1er tiempo"||_.value==="1er"?u="firstHalf":(_.value==="2do tiempo"||_.value==="2do")&&(u="secondHalf"),u}),n=t.computed(()=>v.value<500);function x(u){_.value=u}function y(u){g.value=u}function b(){if(window.ResizeObserver)O=new ResizeObserver(()=>{v.value=a.value.clientWidth}),O.observe(a.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{b()}),t.onBeforeUnmount(()=>{O&&O.unobserve(a.value)}),(u,r)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:a,class:"game-time-line"},[t.createElementVNode("div",VRt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value,i=>(t.openBlock(),t.createElementBlock("div",{key:i,class:"game-time-line__options__option"},[t.createVNode(rFt,t.mergeProps(v.value<390?o.value:s.value,{text:i=="Todo"?i:v.value<390?i.substring(0,3):i,"is-active":_.value===i,onClick:d=>x(i)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",jRt,[t.createVNode(RRt,{"game-data":e.game,"time-line-period":h.value,"is-mobile":n.value,socket:e.socket,"can-play-videos":e.canPlayVideos,onGameEventsByPeriodFilled:y},null,8,["game-data","time-line-period","is-mobile","socket","can-play-videos"])])],512))}},URt=c_($Rt,[["__scopeId","data-v-3596be52"]]),hKt="",AG=e=>(t.pushScopeId("data-v-d108ad3e"),e=e(),t.popScopeId(),e),GRt={class:"game-data__header"},HRt={class:"game-data__header__tournament-season-dropdown"},WRt={class:"game-data__header__teams-carousel"},qRt={class:"game-data__body"},YRt={key:0,class:"no-stats-container"},ZRt=[AG(()=>t.createElementVNode("div",{class:"no-stats-content"},[t.createElementVNode("h2",{class:"no-stats-title"}," Este partido se publicará en un plazo de hasta 72 horas después de finalizada la jornada. ")],-1))],XRt={key:1,class:"no-stats-container-mobile"},JRt=[AG(()=>t.createElementVNode("div",{class:"no-stats-content"},[t.createElementVNode("h2",{class:"no-stats-title"}," Este partido se publicará en un plazo de hasta 72 horas después de finalizada la jornada. ")],-1))],KRt={class:"game-data__body__menu"},QRt={class:"game-data__body__menu__contmenuswitch"};vu.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const eVt=t.defineComponent({name:"GSC-GameData",components:{StatisticsMain:Fle,GSCGameTimeLine:URt,GscSwitchComponent:O7,GSCLineupsMain:w3e,GSCPositining:j2t,GSCDatosGSMain:bCe,GSCVideoGame:KRe,ModalEvents:YO,GSCTacticaFijaMain:nFt,GSCProminentMain:xlt,GSCComparative:tht}}),tVt=Ji(Object.assign(eVt,{props:{tournamentsApiUrl:{type:String,default:""},areFemaleTournamentsVisible:{type:Boolean,default:!0},currentSeasonId:{type:Number,default:0},isClubes:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},socket:{type:Object,default:()=>null},isSynchronization:{type:Boolean,default:!1},isTeamGamePerPage:{type:Boolean,default:!1},clientPrivilegesBySeasons:{type:Object,default:()=>null},areTournamentAndSeasonSelectsVisible:{type:Boolean,default:!0},disabledSectionsIds:{type:Array,default:()=>[]},tournamentsIdsToInclude:{type:Set,default:()=>new Set},volumetricFieldIntervalMinutes:{type:Number,default:2},chalkboardIntervalMinutes:{type:Number,default:2},gameEventsIntervalMinutes:{type:Number,default:1}},emits:["openmedia","change-season-id","onOpenProfile","openProfileTeam","openProfilePlayer"],setup(e,{emit:s}){const o=e,O=x4();let W=null;zd.on("socket-connected",()=>{O.commit("nextGeneral/updateIsSocketConnected",o.socket.connected)});const _=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),g=t.ref({season:[]}),a=t.ref({}),v=t.ref(!1),h=t.ref({}),n=t.ref(1),x=t.ref(0),y=3e4,b=3e4,u=3e4,r=3e4,i=3e4,d=3e4,l=3e4,p=3e4,m=6e4,w=t.ref(null),T=t.ref(null),A=t.ref(null),C=t.ref([]),P=t.ref(null),B=t.ref(!0),E=t.ref(new Set([1,2])),I=t.ref({}),M=t.ref({minute:"",recent_lapse:0,score:{}}),S=t.ref(0),L=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),k=t.ref(o.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:o.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:4},{componentName:"GSCComparative",name:o.isWidget?"Destacados":"Comparativa",id:3},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),z=t.ref(o.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:o.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:o.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),N=t.ref(o.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:o.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:o.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);t.ref(o.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:o.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:o.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);const V=t.ref(0);let $=null;const G=t.ref(null),U=t.ref(0),J=t.ref(z.value[0]),ae=t.ref([]);let Y=t.ref("");const te={seasonAndPrivileges:null,canPrivilegesTeamPlayVideos:!1,homeTeamDetails:{canPlayVideos:!1,team:{}},awayTeamDetails:{canPlayVideos:!1,team:{}}},ee=t.computed(()=>{const Ke=[];return a.value&&a.value.id&&(Ke.push({id:a.value.id,name:a.value.name,type:a.value.type}),a.value.related_seasons&&a.value.related_seasons.forEach(dt=>{Ke.push({id:dt.id,type:dt.type})})),Ke}),X=t.computed(()=>{if(o.clientPrivilegesBySeasons){const Ke=o.clientPrivilegesBySeasons.seasonsAndPrivileges.get(a.value.id);if(Ke)return Ke.teamId}return 0});function K(){v.value=!1}function ce(Ke){const dt=Ke.split(",");return!(dt.length<2||dt[1].split(" ").length<2)}function de(Ke){w.value=Ke}function he(Ke){C.value.push(Ke)}function pe(Ke){P.value=Ke}function re(Ke){A.value=Ke}function le(Ke){T.value=Ke}function se(Ke){if(!ce(Ke))return"";const dt=_e(Ke);return`${me(Ke)}. ${dt}`}function me(Ke){return Ke.split(",")[1].split(" ")[1][0]}function _e(Ke){const dt=Ke.split(",")[0].split(" ");return dt[0].length<=3&&dt.length>1?`${dt[0]} ${dt[1]}`:dt[0]}async function ye(Ke){try{const dt=vu.create({headers:{Authorization:`${_.value}`}});I.value={};const vt=await dt.get("https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/"+Ke.game_id);if(I.value[Ke.home_team.team_id]=[],I.value[Ke.home_team.team_id].team={name:Ke.home_team.acronym,logo:Ke.home_team.logo},I.value[Ke.home_team.team_id].goals=[],I.value[Ke.home_team.team_id].red=[],I.value[Ke.home_team.team_id].yellow=[],I.value[Ke.visiting_team.team_id]=[],I.value[Ke.visiting_team.team_id].team={name:Ke.visiting_team.acronym,logo:Ke.visiting_team.logo},I.value[Ke.visiting_team.team_id].goals=[],I.value[Ke.visiting_team.team_id].red=[],I.value[Ke.visiting_team.team_id].yellow=[],vt.data.minute!=null&&(M.value={minute:vt.data.minute,recent_lapse:vt.data.recent_lapse,score:vt.data.score}),vt.data.plays)for(let _t=0;_t<vt.data.plays.length;_t++)vt.data.plays[_t].category_name=="Roja"&&vt.data.plays[_t].status==1&&(Ke.home_team.team_id==vt.data.plays[_t].team_id?(se(vt.data.plays[_t].player_name)in I.value[Ke.home_team.team_id].red||(I.value[Ke.home_team.team_id].red[se(vt.data.plays[_t].player_name)]={},I.value[Ke.home_team.team_id].red[se(vt.data.plays[_t].player_name)].event=[],I.value[Ke.home_team.team_id].red[se(vt.data.plays[_t].player_name)].name=se(vt.data.plays[_t].player_name)),I.value[Ke.home_team.team_id].red[se(vt.data.plays[_t].player_name)].event.push(vt.data.plays[_t].minute)):(se(vt.data.plays[_t].player_name)in I.value[Ke.visiting_team.team_id].red||(I.value[Ke.visiting_team.team_id].red[se(vt.data.plays[_t].player_name)]={},I.value[Ke.visiting_team.team_id].red[se(vt.data.plays[_t].player_name)].event=[],I.value[Ke.visiting_team.team_id].red[se(vt.data.plays[_t].player_name)].name=se(vt.data.plays[_t].player_name)),I.value[Ke.visiting_team.team_id].red[se(vt.data.plays[_t].player_name)].event.push(vt.data.plays[_t].minute))),vt.data.plays[_t].category_name=="Amarilla"&&vt.data.plays[_t].status==1&&(Ke.home_team.team_id==vt.data.plays[_t].team_id?(se(vt.data.plays[_t].player_name)in I.value[Ke.home_team.team_id].yellow||(I.value[Ke.home_team.team_id].yellow[se(vt.data.plays[_t].player_name)]={},I.value[Ke.home_team.team_id].yellow[se(vt.data.plays[_t].player_name)].event=[],I.value[Ke.home_team.team_id].yellow[se(vt.data.plays[_t].player_name)].name=se(vt.data.plays[_t].player_name)),I.value[Ke.home_team.team_id].yellow[se(vt.data.plays[_t].player_name)].event.push(vt.data.plays[_t].minute)):(se(vt.data.plays[_t].player_name)in I.value[Ke.visiting_team.team_id].yellow||(I.value[Ke.visiting_team.team_id].yellow[se(vt.data.plays[_t].player_name)]={},I.value[Ke.visiting_team.team_id].yellow[se(vt.data.plays[_t].player_name)].event=[],I.value[Ke.visiting_team.team_id].yellow[se(vt.data.plays[_t].player_name)].name=se(vt.data.plays[_t].player_name)),I.value[Ke.visiting_team.team_id].yellow[se(vt.data.plays[_t].player_name)].event.push(vt.data.plays[_t].minute))),vt.data.plays[_t].event_type_name=="Gol"&&vt.data.plays[_t].status==1&&(Ke.home_team.team_id==vt.data.plays[_t].team_id?vt.data.plays[_t].category_name=="Autogol"?(se(vt.data.plays[_t].player_name)in I.value[Ke.visiting_team.team_id].goals||(I.value[Ke.visiting_team.team_id].goals[se(vt.data.plays[_t].player_name)]={},I.value[Ke.visiting_team.team_id].goals[se(vt.data.plays[_t].player_name)].event=[],I.value[Ke.visiting_team.team_id].goals[se(vt.data.plays[_t].player_name)].name=se(vt.data.plays[_t].player_name)),I.value[Ke.visiting_team.team_id].goals[se(vt.data.plays[_t].player_name)].event.push(vt.data.plays[_t].minute)):(se(vt.data.plays[_t].player_name)in I.value[Ke.home_team.team_id].goals||(I.value[Ke.home_team.team_id].goals[se(vt.data.plays[_t].player_name)]={},I.value[Ke.home_team.team_id].goals[se(vt.data.plays[_t].player_name)].event=[],I.value[Ke.home_team.team_id].goals[se(vt.data.plays[_t].player_name)].name=se(vt.data.plays[_t].player_name)),I.value[Ke.home_team.team_id].goals[se(vt.data.plays[_t].player_name)].event.push(vt.data.plays[_t].minute)):vt.data.plays[_t].category_name=="Autogol"?(se(vt.data.plays[_t].player_name)in I.value[Ke.home_team.team_id].goals||(I.value[Ke.home_team.team_id].goals[se(vt.data.plays[_t].player_name)]={},I.value[Ke.home_team.team_id].goals[se(vt.data.plays[_t].player_name)].event=[],I.value[Ke.home_team.team_id].goals[se(vt.data.plays[_t].player_name)].name=se(vt.data.plays[_t].player_name)),I.value[Ke.home_team.team_id].goals[se(vt.data.plays[_t].player_name)].event.push(vt.data.plays[_t].minute)):(se(vt.data.plays[_t].player_name)in I.value[Ke.visiting_team.team_id].goals||(I.value[Ke.visiting_team.team_id].goals[se(vt.data.plays[_t].player_name)]={},I.value[Ke.visiting_team.team_id].goals[se(vt.data.plays[_t].player_name)].event=[],I.value[Ke.visiting_team.team_id].goals[se(vt.data.plays[_t].player_name)].name=se(vt.data.plays[_t].player_name)),I.value[Ke.visiting_team.team_id].goals[se(vt.data.plays[_t].player_name)].event.push(vt.data.plays[_t].minute)))}catch(dt){return Promise.reject(dt)}}function xe(Ke){v.value=!0,Ke.is_live!=1&&Ke.game_status!=0&&(Ke.game_status==4||Object.keys(Ke.minutes).length>0)?(S.value=1,I.value={plays:Ke.minutes,home_team:Ke.home_team,visiting_team:Ke.visiting_team}):(S.value=0,ye(Ke))}function Ee(){$=new ResizeObserver(Ke=>{for(const dt of Ke)U.value=dt.contentRect.width}),$.observe(G.value)}const Ce=t.computed(()=>{let Ke={};return h.value&&h.value.game_id&&(Ke={gameId:h.value.game_id,id:h.value.game_id,seasonId:h.value.season_id,regularSeasonId:h.value.regularSeasonId,matchday_name:h.value.matchday_name,status:h.value.game_status,score:h.value.score,game_status:h.value.game_status,dateTimeUTC:h.value.date_time_utc,homeTeam:h.value.home_team,awayTeam:h.value.visiting_team,is_live:h.value.is_live,minutes:h.value.minutes}),Ke});t.watch(()=>h.value.game_id,Pe,{immediate:!0}),t.watch(()=>h.value.is_live,Le,{immediate:!0}),t.watch(()=>O.state.nextGeneral.gameForAnalysis,()=>{O.commit("nextGeneral/updateIsSocketConnected",o.socket.connected)},{deep:!0,immediate:!0});function Te(Ke){n.value=Ke.is_captured,x.value=Ke.is_female,B.value=Ke.is_captured!==0,g.value.id!==Ke.id&&(g.value=Ke,O.commit("gameGlobal/setTournamentType",Ke.tournament_type))}function Pe(Ke,dt){O.commit("nextGeneral/updateShowLiveData",!0);const vt=x.value?"Destacados":"Destacadas";z.value.forEach(_t=>{_t.name===vt&&(_t.name=x.value?"Destacadas":"Destacados")}),ye({game_id:h.value.game_id,home_team:h.value.home_team,visiting_team:h.value.visiting_team}),Ie(),V.value+=1}function Le(Ke,dt){if(Ie(),O.state.nextGeneral.gameForAnalysis.is_live!==Ke&&O.commit("nextGeneral/updateGameForAnalysis",{...O.state.nextGeneral.gameForAnalysis,is_live:h.value.is_live,game_status:h.value.game_status}),Ke){const vt=n6();vt.disconnected?a6():vt.connected&&QE(`game.${h.value.game_id}.v2`),Ve(),W=setInterval(()=>{S.value=0,ye({game_id:h.value.game_id,home_team:h.value.home_team,visiting_team:h.value.visiting_team})},6e4)}else Ve(),r6();Ke!==dt&&(V.value+=1)}function Ve(){W&&clearInterval(W)}function Ie(){z.value=[],h.value.is_live||h.value.game_status===4?z.value=[...k.value]:z.value=[...N.value],o.isWidget||((a.value.is_tactic_available===0||h.value.is_live||h.value.game_status===0)&&z.value.pop(),h.value.has_tracking===1&&!(h.value.is_live||h.value.game_status===4)&&z.value.push({componentName:"GSCPositining",name:"Posicionamiento",id:8})),J.value=z.value[0]}function De(Ke){Ke.gameSeasonId=h.value.season_id,Ke.gameRegularSeasonId=h.value.regularSeasonId,!(!Ke.auxwidget&&Xe.value&&!Xe.value.canPrivilegesTeamPlayVideos)&&((h.value.is_live||h.value.game_status===0||h.value.game_status===1)&&(Ke.gameIdsToFilter=[h.value.game_id]),Ke.isLiveAccumulated&&(Ke.gameIdsToFilter=null),(h.value.is_live||h.value.game_status===0)&&!Ke.isLiveAccumulated&&(Ke.liveGameConfig={gameId:h.value.game_id}),s("openmedia",Ke))}function Be(Ke){s("onOpenProfile",Ke)}function ge(Ke){s("openProfileTeam",Ke)}function Me(Ke){s("openProfilePlayer",Ke)}function we(Ke){Re(Ke),Ke=="Estadísticas"&&(Y.value="Comparativa")}function $e(){Y.value=""}function Oe(Ke){a.value.id!==Ke.id&&(a.value=Ke,s("change-season-id",Ke.id))}const je=t.computed(()=>z.value.reduce((Ke,dt)=>(o.disabledSectionsIds.includes(dt.id)||Xe.value&&!Xe.value.isVideoTabVisible&&dt.id===2||o.clientPrivilegesBySeasons&&dt.id===7||(B.value||dt.id!==5&&dt.id!==6)&&Ke.push(dt.name),Ke),[]));function We(Ke){if(h.value.is_live||h.value.game_status===1||h.value.game_status===0){const dt=Ke.playingAs.has(h.value.playingAs);return o.clientPrivilegesBySeasons.canPlayVideos&&dt}else{const dt=ke.value.filter(vt=>Ke.playingAs.has(vt.playingAs));return o.clientPrivilegesBySeasons.canPlayVideos&&dt.length>0}}const Xe=t.computed(()=>{if(o.clientPrivilegesBySeasons){if(a.value&&h.value&&h.value.game_id){const Ke=o.clientPrivilegesBySeasons.seasonsAndPrivileges.get(a.value.id);if(Ke)if(Ne(Ke.playingAs),(h.value.is_live||h.value.game_status===1||h.value.game_status===0)&&O.state.nextGeneral.showLiveData){const dt=Ke.playingAs.has(h.value.playingAs);return{seasonAndPrivileges:Ke,canPrivilegesTeamPlayVideos:o.clientPrivilegesBySeasons.canPlayVideos&&dt,isPrivilegesTeamOnly:!1,isPrivilegesTeamHome:h.value.home_team.team_id===Ke.teamId,homeTeamDetails:{canPlayVideos:dt,team:h.value.home_team},awayTeamDetails:{canPlayVideos:dt,team:h.value.visiting_team},isVideoTabVisible:We(Ke)}}else{const dt=h.value.home_team.team_id===Ke.teamId,vt=ke.value.filter(Rt=>Ke.playingAs.has(Rt.playingAs));return{seasonAndPrivileges:Ke,canPrivilegesTeamPlayVideos:o.clientPrivilegesBySeasons.canPlayVideos&&vt.length>0,isPrivilegesTeamOnly:!0,isPrivilegesTeamHome:dt,homeTeamDetails:{canPlayVideos:o.clientPrivilegesBySeasons.canPlayVideos&&dt&&vt.length>0,team:h.value.home_team},awayTeamDetails:{canPlayVideos:o.clientPrivilegesBySeasons.canPlayVideos&&!dt&&vt.length>0,team:h.value.visiting_team},isVideoTabVisible:We(Ke)}}Ne(new Set)}return te}return null}),ke=t.computed(()=>{if(o.clientPrivilegesBySeasons){if(a.value){const Ke=o.clientPrivilegesBySeasons.seasonsAndPrivileges.get(a.value.id);if(Ke)return ae.value.filter(dt=>dt.game_status===1&&Ke.playingAs.has(dt.playingAs))}return[]}return[]});t.watch(je,()=>{Xe.value&&!Xe.value.canPrivilegesTeamPlayVideos&&(J.value.id===2||J.value.id===7||J.value.id===8)&&Re("Resumen")},{deep:!0,immediate:!0});function Ne(Ke){E.value=Ke}function Re(Ke){if(O.commit("nextGeneral/updateShowLiveData",!0),w.value!=null&&(clearInterval(w.value),w.value=null),T.value!=null&&(clearInterval(T.value),T.value=null),A.value!=null&&(clearInterval(A.value),A.value=null),P.value!=null&&(clearInterval(P.value),P.value=null),C.value.length>0){for(let dt of C.value)clearInterval(dt);C.value=[]}o.isWidget?J.value=z.value.find(dt=>dt.name===Ke)||z.value[1]:J.value=z.value.find(dt=>dt.name===Ke)||z.value[0]}t.onMounted(()=>{Ee(),t.nextTick(()=>{o.isSynchronization&&Re("Táctica Fija")})}),t.onBeforeUnmount(()=>{if($&&$.disconnect(),w.value!=null&&(clearInterval(w.value),w.value=null),T.value!=null&&(clearInterval(T.value),T.value=null),A.value!=null&&(clearInterval(A.value),A.value=null),P.value!=null&&(clearInterval(P.value),P.value=null),C.value.length>0){for(let Ke of C.value)clearInterval(Ke);C.value=[]}i6()});function He(Ke){if(Ke.playingAs||(Ke.playingAs=X.value?Ke.home_team.team_id===X.value?1:2:0),w.value!=null&&(clearInterval(w.value),w.value=null),T.value!=null&&(clearInterval(T.value),T.value=null),A.value!=null&&(clearInterval(A.value),A.value=null),P.value!=null&&(clearInterval(P.value),P.value=null),C.value.length>0){for(let dt of C.value)clearInterval(dt);C.value=[]}h.value=Ke,Ke.is_live&&Ke.game_status===4?a6():r6()}function tt(Ke){ae.value=Ke.map(dt=>{const vt={...dt};return X.value&&(vt.playingAs=vt.home_team.team_id===X.value?1:2),vt})}return(Ke,dt)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:G},[t.createElementVNode("div",GRt,[t.withDirectives(t.createElementVNode("div",HRt,[t.createVNode(t.unref(QT),{"current-season-id":e.currentSeasonId,"tournaments-ids-to-include":e.tournamentsIdsToInclude,"api-url":e.tournamentsApiUrl,"are-female-visible":e.areFemaleTournamentsVisible,"is-clubes-active":e.isClubes,onInput:Te,onChangeTournaments:Te},null,8,["current-season-id","tournaments-ids-to-include","api-url","are-female-visible","is-clubes-active"]),t.createVNode(t.unref(nC),{"current-season-id":e.currentSeasonId,seasons:g.value.seasons,onInput:Oe},null,8,["current-season-id","seasons"])],512),[[t.vShow,e.areTournamentAndSeasonSelectsVisible]]),t.createElementVNode("div",WRt,[t.createVNode(t.unref(cK),{"plays-live":I.value,"info-live":M.value,token:L.value,is_captured:n.value,"await-for-seasons":"",seasons:ee.value,"is-pagination-visible":!1,"are-games-carousel-type":"","default-game-id":e.defaultGameId,"sort-calendar":e.sortCalendar,"is-team-game-per-page":e.isTeamGamePerPage,"client-privileges-team-id":X.value,"only-games-team-id":X.value,"tournament-type":t.unref(O).state.gameGlobal.tournamentType,onChangeGameCarousel:He,onOpenModalEvent:xe,onChangeGamesByClientPrivileges:tt},null,8,["plays-live","info-live","token","is_captured","seasons","default-game-id","sort-calendar","is-team-game-per-page","client-privileges-team-id","only-games-team-id","tournament-type"])])]),v.value?(t.openBlock(),t.createBlock(YO,{key:0,width:U.value,onCloseModalEventsLive:K,plays:I.value,game:h.value,type:S.value},null,8,["width","plays","game","type"])):t.createCommentVNode("",!0),t.createElementVNode("div",qRt,[h.value&&"live_stats"in h.value&&h.value.live_stats==0&&h.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[U.value>500?(t.openBlock(),t.createElementBlock("div",YRt,ZRt)):(t.openBlock(),t.createElementBlock("div",XRt,JRt))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",KRt,[t.createElementVNode("div",QRt,[t.createVNode(t.unref(O7),{type:2,buttons:je.value,"font-family":"Poppins-Regular","font-size":"16px",width:U.value<400||U.value<700?"max-content":U.value<840||U.value<1050?"155px":"165px","selected-option":J.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:Re},null,8,["buttons","width","selected-option"])])]),Ce.value&&Ce.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(J.value.componentName),{key:V.value,game:Ce.value,"is-widget":e.isWidget,"team-widget":e.teamWidget,onIntervalidpossesion:le,onIntervalidhighlive:re,onIntervalidtops:he,onIntervalidgs:pe,subsection:t.unref(Y),seasonSelected:a.value,tournamentSelected:g.value,showLineups:B.value,socket:e.socket,"time-live-prominent-data":y,"time-live-highlights-prominent-and-video":b,"time-live-possesion":u,"time-live-video-goals":r,"time-live-video-best-plays":i,"time-live-video-this-game":d,"time-live-video-specific-plays":l,"time-live-comparative-best-players":p,"time-live-comparative-avanced":m,is_captured:n.value,"is-tactic-visible":!!a.value.show_tactic,"is-synchronization":e.isSynchronization,"can-play-videos":Xe.value?Xe.value.canPrivilegesTeamPlayVideos:!0,"video-privileges-playing-as":E.value,"client-privileges-team-id":X.value,"play-videos-privileges":Xe.value,token:L.value,"game-events-interval-minutes":e.gameEventsIntervalMinutes,"volumetric-field-interval-minutes":e.volumetricFieldIntervalMinutes,"chalkboard-interval-minutes":e.chalkboardIntervalMinutes,onResetSubsection:$e,onOpenmedia:De,onOnOpenProfile:Be,onOpenProfileTeam:ge,onOpenProfilePlayer:Me,onChangeToTab:we,onOpenMediaPlayer:De,onIntervalid:de},null,40,["game","is-widget","team-widget","subsection","seasonSelected","tournamentSelected","showLineups","socket","is_captured","is-tactic-visible","is-synchronization","can-play-videos","video-privileges-playing-as","client-privileges-team-id","play-videos-privileges","token","game-events-interval-minutes","volumetric-field-interval-minutes","chalkboard-interval-minutes"])):t.createCommentVNode("",!0)],64))])],512))}}),[["__scopeId","data-v-d108ad3e"]]);async function Th({url:e,options:s={},retries:o=3}){return await vu.get(e,s).then(O=>O).catch(O=>o>0?Th({url:e,options:s,retries:o-1}):O)}async function MG({seasonId:e},s=!0){try{return(await(await fetch(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`)).json()).data}catch(o){if(s)return MG({seasonId:e},!1);throw new Error(o)}}async function nVt({seasonId:e}){try{return(await Th({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(s){return Promise.reject(s)}}async function aVt({seasonId:e}){try{return(await Th({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(s){return Promise.reject(s)}}function rVt(e,s,o,O,W,_,g=!1){const a=o.map(v=>v===1?2:v===2?1:3);return e.filter(v=>{const h=_&&v[W.teamId]?v[W.teamId]!==_:!1,n=s===1?2:1;return(g||O.includes(v[W.gameId]))&&(!s||(h?n:s)===v[W.playingAs])&&(o.includes(v[W.matchResult])&&v[W.teamId]===_||a.includes(v[W.matchResult])&&v[W.teamId]!==_)})}function IG(e,s,o,O,W){return s.length===2&&o.length===3&&O.length===6?e:e.filter(_=>s.includes(_[W.playingAs])&&o.includes(_[W.matchResult])&&O.includes(_[W.section]))}async function PG({seasonId:e}){try{const s=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await Th({url:s})).data}catch(s){return Promise.reject(s)}}async function iVt({seasonId:e,gameId:s}){try{const o=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${s}`,{data:O}=await Th({url:o});return O}catch(o){return Promise.reject(o)}}async function oVt({gameId:e}){try{const s=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await Th({url:s})).data.data}catch(s){return Promise.reject(s)}}async function sVt({gameId:e}){try{const s=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await Th({url:s})).data.data||[]}catch(s){return Promise.reject(s)}}const lVt=["categoryId","matchLapse","section","matchResult","playingAs","total"];let FT=null;function BG(){return FT||(FT=yy(lVt)),FT}async function cVt(e){try{const s=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await Th({url:s})).data}catch(s){return Promise.reject(s)}}async function LG({seasonId:e,teamId:s}){try{return await Th({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${s}`})}catch(o){return Promise.reject(o)}}async function uVt(e){try{const s=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await Th({url:s})}catch(s){return Promise.reject(s)}}async function dVt(e){try{return await Th({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(s){return Promise.reject(s)}}const hVt={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,s,o,O){return rVt(e.seasonPlays,O["filterGeneral/getPlayingAs"],O["filterGeneral/getResults"],O["filterGeneral/getSelectedGamesIds"],BG(),O["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const s=e.currentSeasonGames.reduce((o,O)=>{const W={...O};return W.home_team=e.currentSeasonTeams.find(_=>_.team_id===O.home_team),W.visiting_team=e.currentSeasonTeams.find(_=>_.team_id===O.visiting_team),o[O.matchday_abbreviation]?o[O.matchday_abbreviation][O.game_status===3?"canceled":O.date]?o[O.matchday_abbreviation][O.game_status===3?"canceled":O.date].push(W):o[O.matchday_abbreviation][O.game_status===3?"canceled":O.date]=[W]:o[O.matchday_abbreviation]={[O.game_status===3?"canceled":O.date]:[W]},o},{});for(let[o,O]of Object.entries(s))s[o]=Object.entries(O).map(([W,_])=>({date:W,games:_})),s[o].sort((W,_)=>W.date<_.date?-1:W.date>_.date?1:0);return s},matchdaysDates(e,s){let o=[];if(s.nextGamesSchedule){let O=Object.keys(s.nextGamesSchedule);for(let W of O){let _=Number(W.replace("M","")),g=s.nextGamesSchedule[W].map(a=>({matchday:_,date:new Date(a.date)}));o=o.concat(g)}}return o},closestMatchDay(e,s){let o=new Date,O=0,W=-new Date(0,0,0).valueOf(),_=s.matchdaysDates,g=_.length;for(let a=0;a<_.length;a++)O=Math.abs(_[a].date-o),O<W&&(g=a,W=O);return _[g]?_[g].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,s){e.booleanIsLiveGamesModalOpen=s},setBooleanAreLiveGames(e,s){e.booleanAreLiveGames=s},updateSeasonPlays(e,s){e.seasonPlays=s},updateCurrentSeasonTeams(e,s){e.currentSeasonTeams=s},updateCurrentSeasonGames(e,s){e.currentSeasonGames=s},updateSelectedRound(e,s){e.selectedRound=s}},actions:{async getSeasonPlays({commit:e,rootGetters:s},o=!1){try{const O=await MG({seasonId:s["filterGeneral/getSeasonId"]});if(o)return O;e("updateSeasonPlays",O)}catch(O){return Promise.reject(O)}},async getCurrentSeasonGames({commit:e,rootGetters:s}){try{const o=await PG({seasonId:s["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",o)}catch(o){return Promise.reject(o)}},async getCurrentSeasonTeams({commit:e,rootGetters:s}){try{const o=await cVt({seasonId:s["loginGeneral/seasonId"]});e("updateCurrentSeasonTeams",o.teams)}catch(o){return Promise.reject(o)}},async isDataFilled({state:e,dispatch:s,commit:o}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return o("setIsSectionLoading",!1,{root:!0}),!0;const O=[void 0,void 0];return e.currentSeasonGames.length===0&&(O[0]=s("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(O[1]=s("getCurrentSeasonTeams")),await Promise.all(O),!1}catch(O){throw new Error(O)}}}}};async function pVt({filter:e}){try{const s=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:o}=await Th({url:s});return o}catch(s){return Promise.reject(s)}}const fVt=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let NT=null;function mVt(){return NT||(NT=yy(fVt)),NT}class q5{constructor(){gu(this,"maximumLiveSection",1);gu(this,"accomplished",{totalPostGame:0,avgPostGame:0,avgPreGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{},arrayRankings:[]});gu(this,"received",{totalPostGame:0,avgPostGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{}})}setMaximumLiveSection(s){s>this.maximumLiveSection&&(this.maximumLiveSection=s)}getZeroTotalsTrendSections(){return[0,0,0,0,0,0]}resetTotals(){this.accomplished.totalPostGame=0,this.accomplished.avgPostGame=0,this.received.totalPostGame=0,this.received.avgPostGame=0,this.accomplished.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections()}resetTotalsLive(){this.accomplished.totalLive=0,this.received.totalLive=0,this.accomplished.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections()}increaseAccomplishedByOne(s,o,O){O&&(this.setMaximumLiveSection(s),this.accomplished.totalLive+=o,this.accomplished.totalsLiveTrendLive.sections[s-1]+=o,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,s,o)),this.accomplished.totalPostGame+=o,this.accomplished.avgPostGameTrendLive.sections[s-1]+=o,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,s,o)}increaseReceivedByOne(s,o,O){O&&(this.setMaximumLiveSection(s),this.received.totalLive+=o,this.received.totalsLiveTrendLive.sections[s-1]+=o,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,s,o)),this.received.totalPostGame+=o,this.received.avgPostGameTrendLive.sections[s-1]+=o,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,s,o)}increaseTrendLiveAccumulatedByOne(s,o,O){for(let W=o-1;W<s.accumulated.length;W++)s.accumulated[W]+=O}decreaseAccomplishedLiveByOne(s,o){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=o),this.accomplished.totalsLiveTrendLive.sections[s-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[s-1]-=o,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,s,o))}decreaseReceivedLiveByOne(s,o){this.received.totalLive>0&&(this.received.totalLive-=o),this.received.totalsLiveTrendLive.sections[s-1]>0&&(this.received.totalsLiveTrendLive.sections[s-1]-=o,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,s,o))}decreaseTotalsLiveTrendLiveAccumulatedByOne(s,o,O){for(let W=s.accumulated.length-1;W>=o-1;W--)s.accumulated[W]-=O}calculateAvg(s){s&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/s,this.received.avgPostGame=this.received.totalPostGame/s,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,s),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,s),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,s),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,s))}getAvgPostGameTrendLiveAvg(s,o){return s.map(O=>O/o)}calculateRanking(s,o,O,W,_,g,a,v){let h=[];W===3&&s&&s.length&&(O.playingAs.length!==2||O.matchResult.length!==3)?h=Array.from(s.reduce((x,y)=>{const b=y[o.playingAs]===1,u=b?"1":"2",r=x.get(y[o.gameId]);if(r)r[u]?r[u].arrayPlays.push(y):r[u]={numberTeamId:y[o.teamId],arrayPlays:[y]};else{const i={numberMatchResult:y[o.matchResult]};b&&(i[1]={numberTeamId:y[o.teamId],arrayPlays:[y]}),x.set(y[o.gameId],i)}return x},new Map).values()).reduce((x,y)=>{const b=O.playingAs.length===2?"both":O.playingAs[0].toString();return(b==="both"&&(y[1].numberTeamId===O.teamId||y[2].numberTeamId===O.teamId)||b!=="both"&&y[b].numberTeamId===O.teamId)&&O.matchResult.includes(y.numberMatchResult)&&x.push(...y[1].arrayPlays,...y[2].arrayPlays),x},[]).filter(x=>O.sections.includes(x[o.section])):(h=s?[...s]:[],a&&s&&(h=s.filter(n=>O.playingAs.includes(n[o.playingAs])&&O.matchResult.includes(n[o.matchResult])&&O.sections.includes(n[o.section])))),this.setTeamRanking(h,W,o,O.teamId,g,"accomplished",v)}setTeamRanking(s,o,O,W,_,g,a){let v=null,h=null;o===3&&(v=new Map,h={},s.forEach(y=>{const b=v.get(y[O.gameId]);b?b[y[O.teamId.toString()]]?b[y[O.teamId.toString()]]+=y[O.total]:b[y[O.teamId.toString()]]=y[O.total]:v.set(y[O.gameId],{[y[O.teamId.toString()]]:y[O.total]})}),Array.from(v.values()).forEach(y=>{const[b,u]=Object.keys(y).map(i=>i),r=y[b]+y[u];this.addPassesAvgByTeam(h,b,r?y[b]/r:0),this.addPassesAvgByTeam(h,u,r?y[u]/r:0)}));const n=_.sort((y,b)=>y.team_id-b.team_id).map(y=>{if(o===3){const b=h[y.team_id.toString()];return{teamId:y.team_id,points:b?b.numberTotalPassesAvg/b.numberGamesCount:0,total:b?b.numberTotalPassesAvg:0}}else{const b=s.reduce((u,r)=>r[O.teamId]===y.team_id&&o===r[O.categoryId]?u+r[O.total]:u,0);return{teamId:y.team_id,points:y[`${a}FilterGames`]?b/y[`${a}FilterGames`]:0,total:b}}}).sort((y,b)=>b.points-y.points);this.accomplished.arrayRankings=n;const x=n.findIndex(y=>y.teamId===W);o===3&&(this.accomplished.avgPreGame=n[x].points),this[g].ranking=x+1,this[g].leader=n[0]}addPassesAvgByTeam(s,o,O){s[o]?(s[o].numberGamesCount+=1,s[o].numberTotalPassesAvg+=O):s[o]={numberGamesCount:1,numberTotalPassesAvg:O}}}class rc{constructor(s,o,O,W,_,g,a,v,h,n,x=!0){gu(this,"id","");gu(this,"generalId",0);gu(this,"name","");gu(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});gu(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});gu(this,"accomplishedCategoryIds",[]);gu(this,"receivedCategoryIds",[]);gu(this,"generalCategoriesIds",{accomplished:0,received:0});gu(this,"specialMention","");gu(this,"homeTeam",new q5);gu(this,"visitingTeam",new q5);gu(this,"isLeagueDataCalculated",!1);gu(this,"leagueAccomplishedMax",0);gu(this,"leagueReceivedMax",0);gu(this,"leagueAccomplishedAvg",0);gu(this,"leagueReceivedAvg",0);gu(this,"leagueAccomplishedAccumulator",0);gu(this,"leagueReceivedAccumulator",0);gu(this,"homeTeamType","homeTeam");gu(this,"visitingTeamType","visitingTeam");gu(this,"betOnly",!1);gu(this,"isPercent",!1);this.id=`${O.accomplished}-${O.received}`,this.accomplishedCategoryIds=s||[],this.receivedCategoryIds=o||[],this.generalCategoriesIds=O||{accomplished:0,received:0},this.name=W,this.names["0-0"]=W||"",this.names["1-1"]=_||"",this.names["0-1"]=g||"",this.names["1-0"]=a||"",this.generalId=v||0,this.betOnly=h||!1,this.isPercent=n||!1,this.isVisible=x}addLeaguePlays(s,o,O){s.length===0||!O||this.isLeagueDataCalculated||(s.forEach(W=>{this.isAccomplishedLeaguePlay(W[o.categoryId])&&(this.leagueAccomplishedAccumulator+=W[o.total]),this.isReceivedLeaguePlay(W[o.categoryId])&&(this.leagueReceivedAccumulator+=W[o.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*O)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*O)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(s,o,O){let W="-";for(const[_,g]of Object.entries(this.generalCategoriesIds))s===g&&(W=`${_==="accomplished"?"0":"1"}${W}`),o===g&&(W=`${W}${_==="accomplished"?"0":"1"}`);W.length===3&&(this.mentions[W]=O)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(s,o,O,W,_){!O||!_||s!==this.homeTeamType&&s!==this.visitingTeamType||(O.forEach(g=>{this.isAccomplishedPlay(g[W.categoryId])?this[s].increaseAccomplishedByOne(g[W.section],g[W.total]):this.isReceivedPlay(g[W.categoryId])&&this[s].increaseReceivedByOne(g[W.section],g[W.total])}),this[s].calculateAvg(_))}addLivePlay(s,o,O,W,_=!1,g=!1){(s===this.homeTeamType||s===this.visitingTeamType)&&O[W.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[s].increaseAccomplishedByOne(O[W.section],O[W.total],!0)}subtractLivePlay(s,o,O,W,_){(s===this.homeTeamType||s===this.visitingTeamType)&&(this.isAccomplishedPlay(O[W.categoryId])&&!_?this[s].decreaseAccomplishedLiveByOne(O[W.section],O[W.total]):this.isReceivedPlay(O[W.categoryId])&&_&&this[s].decreaseReceivedLiveByOne(O[W.section],O[W.total]))}isAccomplishedLeaguePlay(s){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(O=>s===O||`${s}_r`===O)}isReceivedLeaguePlay(s){return!!this.receivedCategoryIds.find(o=>s===o)}isAccomplishedPlay(s){return this.generalCategoriesIds.accomplished===s}isReceivedPlay(s){return this.generalCategoriesIds.received===s}calcRankingLeague(s,o,O,W,_,g=!1){this[this.homeTeamType].calculateRanking(s,o,O,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,_,g,this.homeTeamType),this[this.visitingTeamType].calculateRanking(s,o,W,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,_,g,this.visitingTeamType)}resetData(){this.homeTeam=new q5,this.visitingTeam=new q5,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(s){return this.generalCategoriesIds.accomplished===s||this.generalCategoriesIds.received===s}}const gVt={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new rc([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new rc([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new rc([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0,!1),yellowCards:new rc([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new rc([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new rc([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new rc([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new rc([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new rc([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new rc([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new rc([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new rc([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new rc([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new rc([208],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new rc([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new rc([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new rc([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new rc([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new rc([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new rc([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new rc([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new rc([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new rc([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new rc([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new rc([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new rc([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new rc([495],null,{accomplished:27,received:0},"Balones perdidos sin disputa","","","",1)}},stoppedBall:{name:"Balón parado",priority:5,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{freeKick44:new rc([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new rc([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new rc([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new rc([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new rc([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new rc([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new rc([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new rc([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new rc([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new rc([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new rc([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},yVt=[{parentAnalysis:[1,2,3],value:0,text:"Realizado",block:1},{parentAnalysis:[1,2,3],value:1,text:"Recibido",block:1},{parentAnalysis:[1],value:0,text:"Posesión",block:2},{parentAnalysis:[1,2],value:0,text:"Origen de gol realizado",block:3},{parentAnalysis:[1,2],value:1,text:"Origen de gol recibido",block:3}],vVt=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let DT=null;function _Vt(){return DT||(DT=yy(vVt)),DT}const bVt=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let RT=null;function xVt(){return RT||(RT=yy(bVt)),RT}function Y5(e,s,o){return[o.get(e[s.categoryId])||[],e[s.teamId],e[s.matchResult],e[s.playingAs],e[s.matchLapse],e[s.section],e[s.total]]}function zG(e){return[[1,1,e.local.win],[1,2,e.local.lose],[1,3,e.local.draw],[2,1,e.visit.win],[2,2,e.visit.lose],[2,3,e.visit.draw]]}function VT(e,s,o){let O=[...s];return e[o.categoryId]===2&&(O[0]=14),e[o.categoryId]===20&&(O[0]=15),[14,15].includes(O[0])?O:null}const wVt=n6(),kVt=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],SVt={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:BG(),indexesTSP:mVt(),indexesLS:_Vt(),indexesTLP:xVt(),nextGamesDataStructure:gVt,currentSeasonGames:[],currentSeasonTeams:[],gameForAnalysis:{},showPostMatch:!1,homeResultGame:null,awayResultGame:null,selectedAnalysis:{},selectedStatisticTypeBlock:1,gameId:null,game:{},games:[],homeTeamPlays:[],visitingTeamPlays:[],currentSeasonPlays:[],livePlays:new Map,totalSeasonFinishedGames:0,totalHomeTeamFinishedGames:0,totalVisitingTeamFinishedGames:0,homeGames:[],homeTeamInfo:{},awayTeamInfo:{},visitingGames:[],idAssetSelected:1,isLive:!1,menuOptionActive:"",showLiveData:!0,showAdvanceFilter:!1,homeTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},visitingTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},oldSeasonId:0,statistics:[],isRankingCalculating:!0,categoriesMap:new Map,defaultFilter:null,filterAux:null,betSubcategories:[],betDescription:{},regularSeasonName:"",betSubcategoriesObjects:[],currentTournamentName:"",toBackRouteName:"home"},getters:{betSubcategoriesIds(e){return e.betSubcategories.map(s=>s.id)},showPostMatchData:e=>e.showPostMatch,getHomeResultGame:e=>e.homeResultGame,getAwayResultGame:e=>e.awayResultGame,getSeasonId:e=>e.seasonId,getGameForAnalysis:e=>e.gameForAnalysis,isLive:e=>e.isLive,showLive:e=>e.gameForAnalysis.game_status===4&&e.gameForAnalysis.is_live,menuOptionActive:e=>e.menuOptionActive,showLiveData:e=>e.showLiveData,showAdvanceFilter:e=>e.showAdvanceFilter,idAssetSelected:e=>e.idAssetSelected,gameId:e=>e.gameId,game:e=>e.game,homeTeam(e){return e.homeTeamInfo},visitingTeam(e){return e.awayTeamInfo},rankingData(e){return e.statistics},homeTeamStatisticsType(e){return e.homeTeamFilter.statistics?"received":"accomplished"},visitingTeamStatisticsType(e){return e.visitingTeamFilter.statistics?"received":"accomplished"},subcategoryName(e){return`${e.homeTeamFilter.statistics}-${e.visitingTeamFilter.statistics}`},statisticsTypes(e){return yVt.filter(s=>s.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return IG(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return IG(e.visitingTeamPlays,e.visitingTeamFilter.playingAs,e.visitingTeamFilter.matchResult,e.visitingTeamFilter.sections,e.indexesTSP)},currentSeasonTeamsIds(e){return e.currentSeasonTeams.map(s=>s.team_id)},canFilledStructure(e){return e.homeTeamFilter.requiresPlaysFiltering||e.visitingTeamFilter.requiresPlaysFiltering},totalFilteredHomeGames(e){return e.homeGames.filter(s=>e.homeTeamFilter.playingAs.includes(s[0])).filter(s=>e.homeTeamFilter.matchResult.includes(s[1])).reduce((s,o)=>s+o[2],0)},totalFilteredVisitingGames(e){return e.visitingGames.filter(s=>e.visitingTeamFilter.playingAs.includes(s[0])).filter(s=>e.visitingTeamFilter.matchResult.includes(s[1])).reduce((s,o)=>s+o[2],0)},filledDataStructure(e,s){if(e.currentSeasonPlays)for(const o of Object.values(e.nextGamesDataStructure))for(const O of Object.values(o.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&O.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&O.visitingTeam.resetTotals(),O.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),O.addTeamPlays(O.homeTeamType,e.gameForAnalysis.home_team,s.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:s.totalFilteredHomeGames),O.addTeamPlays(O.visitingTeamType,e.gameForAnalysis.visiting_team,s.visitingTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:s.totalFilteredVisitingGames);return e.nextGamesDataStructure},arrayFilledDataSortedByPriority(e,s){return Object.values(s.filledDataStructure).sort((o,O)=>o.priority-O.priority)},statisticData(e,s){for(const o of Object.values(s.filledDataStructure))if(o.parentInfo.parentAnalysis.includes(e.selectedAnalysis.id)&&o.parentInfo.analysisTypeBlocks.includes(e.selectedStatisticTypeBlock))return o.subcategories;return{}},accomplished(e){return e.homeTeamFilter.statistics===0}},mutations:{updateGameForAnalysisByProps(e,s){for(const[o,O]of Object.entries(s))e.gameForAnalysis[o]=O},setCurrentTournamentName(e,s){e.currentTournamentName=s},setBetSubcategoriesObjects(e,s){e.betSubcategoriesObjects=s},setRegularSeasonName(e,s){e.regularSeasonName=s},setBetSubcategories(e,s){e.betSubcategories=s},setBetDescription(e,s){e.betDescription=s},setSeasonId(e,s){e.seasonId=Number(s)},setHome(e,s){e.homeTeamInfo=s},setAway(e,s){e.awayTeamInfo=s},setMenuOptionActive(e,s){e.menuOptionActive=s},setPastSeasonId(e,s){e.pastSeasonId=s},setUsePastSeasonId(e,s){e.usePastSeasonId=s,s&&(e.oldSeasonId=e.pastSeasonId)},updateShowPostMatchData(e,s){e.showPostMatch=s},setHomeResultGame(e,s){e.homeResultGame=s},setAwayResultGame(e,s){e.awayResultGame=s},updateIsSocketConnected(e,s){e.isSocketConnected=s,s&&e.gameForAnalysis.is_live&&e.gameForAnalysis.game_status===4&&QE(`game.${e.gameForAnalysis.game_id}.v2`)},updateCurrentSeasonTeams(e,s){e.currentSeasonTeams=s,e.currentSeasonTeams.forEach(o=>{o.playedGames=e.currentSeasonGames.reduce((O,W)=>{if(W.game_status===1&&(W.home_team===o.team_id||W.visiting_team===o.team_id)){const _=W.score[0]-W.score[1],g=W.home_team===o.team_id;O.push({playingAs:g?1:2,matchResult:_===0?3:g?_>0?1:2:_<0?1:2})}return O},[])})},updateCurrentSeasonGames(e,s){e.currentSeasonGames=s},updateGameId(e,s){e.gameId=s},updateGameForAnalysis(e,s){e.gameForAnalysis=s,e.isLive=!!s.is_live,e.homeTeamFilter.teamId=e.gameForAnalysis.home_team,e.visitingTeamFilter.teamId=e.gameForAnalysis.visiting_team},updateSelectedAnalysis(e,s){e.selectedAnalysis=s},updateShowLiveData(e,s){e.showLiveData=s},toggleAdvanceFilter(e){e.showAdvanceFilter=!e.showAdvanceFilter},updateIdAssetSelected(e,s){e.idAssetSelected=s},updateStats(e,s){e.currentSeasonPlays=s},updateFilterAux(e){e.filterAux||(e.filterAux={homeTeamFilter:{...e.homeTeamFilter},visitingTeamFilter:{...e.visitingTeamFilter}})},updateFilters(e,{filters:s,needsFormat:o=!1}){if(o){if(!s||!s.local||!s.local.statistics||!s.visit||!s.visit.statistics)return;e.homeTeamFilter=rA(e.homeTeamFilter,s.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=rA(e.visitingTeamFilter,s.visit,e.gameForAnalysis.visiting_team),e.selectedStatisticTypeBlock!==s.local.statistics.block&&(e.selectedStatisticTypeBlock=s.local.statistics.block)}else e.homeTeamFilter={...s.homeTeamFilter,statistics:0},e.visitingTeamFilter={...s.visitingTeamFilter,statistics:0}},updateFinishedGames(e,s){e.totalSeasonFinishedGames=s},updateHomeTeamPlays(e,s){e.homeTeamPlays=s},updateVisitingTeamPlays(e,s){e.visitingTeamPlays=s},addSpecialMentions(e,s){const o=Object.values(e.nextGamesDataStructure);o.forEach(O=>{for(const W of Object.values(O.subcategories))W.resetMentions()}),o.forEach(O=>{for(const W of s)for(const _ of Object.values(O.subcategories))_.addSpecialMention(W[0],W[1],W[2])})},setDefaultFilter(e,s){e.defaultFilter={homeTeamFilter:{...s.homeTeamFilter,teamId:e.gameForAnalysis.home_team},visitingTeamFilter:{...s.awayTeamFilter,teamId:e.gameForAnalysis.visiting_team}}},addLiveGamePlay(e,s){if(!e.livePlays.has(s[e.indexesTLP.playId])){e.livePlays.set(s[e.indexesTLP.playId],s);const O=Y5(s,e.indexesTLP,e.categoriesMap);for(const W of Object.values(e.nextGamesDataStructure))for(const _ of Object.values(W.subcategories))_.addLivePlay(e.gameForAnalysis.home_team===O[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",O[e.indexesTSP.teamId],O,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,s){const o=!!s[e.indexesTLP.length],O=e.livePlays.get(s[e.indexesTLP.playId]);if(Tte(O,s))return;let W="";const _=e.gameForAnalysis.home_team===s[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";O&&(W=e.gameForAnalysis.home_team===O[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const g=Y5(O,e.indexesTLP,e.categoriesMap),a=VT(O,g,e.indexesTLP),v=Y5(s,e.indexesTLP,e.categoriesMap),h=VT(s,v,e.indexesTLP);for(const n of Object.values(e.nextGamesDataStructure))for(const x of Object.values(n.subcategories))O&&(x.subtractLivePlay(W,g[e.indexesTSP.teamId],g,e.indexesTSP,o),a&&x.subtractLivePlay(W,a[e.indexesTSP.teamId],a,e.indexesTSP,o)),x.addLivePlay(_,v[e.indexesTSP.teamId],v,e.indexesTSP,e.isLive,o),h&&x.addLivePlay(_,h[e.indexesTSP.teamId],h,e.indexesTSP,e.isLive,o);e.livePlays.set(s[e.indexesTLP.playId],s)},deleteLiveGamePlay(e,s){const o=!!s[e.indexesTLP.length],O=e.livePlays.get(s[e.indexesTLP.playId]);let W="";if(O){W=e.gameForAnalysis.home_team===O[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(O[e.indexesTLP.playId]);const _=Y5(O,e.indexesTLP,e.categoriesMap),g=VT(s,_,e.indexesTLP);for(const a of Object.values(e.nextGamesDataStructure))for(const v of Object.values(a.subcategories))v.subtractLivePlay(W,_[e.indexesTSP.teamId],_,e.indexesTSP,o),g&&v.subtractLivePlay(W,g[e.indexesTSP.teamId],g,e.indexesTSP,o)}},clearLiveTotals(e){for(const s of Object.values(e.nextGamesDataStructure))for(const o of Object.values(s.subcategories))o.homeTeam.resetTotalsLive(),o.visitingTeam.resetTotalsLive()},updateSeasonStatistics(e,s){e.statistics=s},updateOldSeasonId(e,s){e.oldSeasonId=s},addRankingInSubcategories(e,{getters:s,isPremiumAccount:o}){if(!(e.homeTeamFilter.teamId&&e.visitingTeamFilter.teamId))return;e.isRankingCalculating=!1,e.currentSeasonTeams.forEach(_=>{_.homeTeamFilterGames=_.playedGames.filter(g=>e.homeTeamFilter.playingAs.includes(g.playingAs)&&e.homeTeamFilter.matchResult.includes(g.matchResult)).length,_.visitingTeamFilterGames=_.playedGames.filter(g=>e.visitingTeamFilter.playingAs.includes(g.playingAs)&&e.visitingTeamFilter.matchResult.includes(g.matchResult)).length});const O=[],W=new Map;for(const _ of Object.values(e.nextGamesDataStructure))for(const g of Object.values(_.subcategories))O.push(g);s.rankingData.forEach(_=>{for(const g of O)if(g.isInGeneralCategory(_[e.indexesLS.categoryId])){W.has(g.id)?W.get(g.id).push(_):W.set(g.id,[_]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,s){e.homeGames=zG(s)},setVisitingGames(e,s){e.visitingGames=zG(s)},generateCategoriesMap(e){for(const s of Object.values(e.nextGamesDataStructure))for(const o of Object.values(s.subcategories))o.accomplishedCategoryIds.forEach(O=>{const W=e.categoriesMap.get(O);W?W.push(o.generalCategoriesIds.accomplished):e.categoriesMap.set(O,[o.generalCategoriesIds.accomplished])})},resetNextGamesDataStructure(e){for(const s of Object.values(e.nextGamesDataStructure))for(const o of Object.values(s.subcategories))o.resetData()}},actions:{turnOnOffDefaultFilters({state:e,commit:s},{command:o}){o==="on"?s("updateFilters",{filters:e.defaultFilter,needsFormat:!1}):s("updateFilters",{filters:e.filterAux,needsFormat:!1})},async setAndGetStatsPostMatch({commit:e},s){try{const g=await dVt({gameId:s.gameId});if(g){var o=[],O=[],W={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}},_={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}};Object.keys(g.data).length!==0&&(o=g.data.data.filter(a=>a[1]==s.homeTeam),O=g.data.data.filter(a=>a[1]==s.awayTeam),W=g.data.games,_=g.data.games),e("updateHomeTeamPlays",o),e("updateVisitingTeamPlays",O),e("setHomeGames",W),e("setVisitingGames",_)}else e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[])}catch(g){return Promise.reject(g)}},async fillStatisticDataPostMatch({commit:e,dispatch:s},o){e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("setIsSectionLoading",!0,{root:!0});try{let O=[];e("updateGameForAnalysis",o.gameInfo),O.push(s("setAndGetStatsPostMatch",{gameId:o.game,homeTeam:o.homeTeam,awayTeam:o.awayTeam})),await Promise.all(O)}catch(O){throw new Error(O)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:s,commit:o},{gameId:O,isTeamsAnalysis:W,currentSeasonId:_,isLoginChanged:g=!1,defaultFilter:a=null,gameInfo:v=null,isCupGame:h=!1}){try{let n={},x=e.seasonId!==Number(_);const y=[];o("setIsSectionLoading",!0,{root:!0}),o("setUsePastSeasonId",!1),x&&o("setSeasonId",_),o("updateGameId",Number(O)),e.oldSeasonId!==e.seasonId&&o("resetNextGamesDataStructure");const b=await s("getCurrentSeasonGames",Number(O));if(o("leagueGeneral/updateCurrentSeasonGames",b,{root:!0}),n=b.find(u=>u.game_id===Number(O)),!n&&v&&(n=v),n&&o("updateGameForAnalysis",n),n.game_status!==1&&((g||e.categoriesMap.size===0)&&o("generateCategoriesMap"),h||await s("checkTeamsData",{gameId:O,isFromBet:!!a}),(g||e.oldSeasonId!==e.seasonId||e.statistics.length===0)&&y.push(s("getSeasonStatistics"))),e.usePastSeasonId){const u=await s("getCurrentSeasonGamesLast");o("leagueGeneral/updateCurrentSeasonGames",u,{root:!0})}(g||e.currentSeasonTeams.length===0||!e.currentSeasonTeams.find(u=>n.home_team===u.team_id))&&y.push(s("getCurrentSeasonTeams")),o("setHomeResultGame",n.score[0]),o("setAwayResultGame",n.score[1]),W?n.game_status!==1?(await s("fillStatisticData",{gameId:O,gameinfo:n,promises:y,defaultFilter:a}),o("updateShowPostMatchData",!1)):(o("updateStats",[]),o("updateShowPostMatchData",!0),y.push(s("fillStatisticDataPostMatch",{game:O,homeTeam:n.home_team,awayTeam:n.visiting_team,gameInfo:n})),await Promise.all(y)):o("setIsSectionLoading",!1,{root:!0})}catch(n){return Promise.reject(n)}},async fillStatisticData({commit:e,dispatch:s,getters:o,rootGetters:O,state:W},{gameId:_,gameinfo:g,promises:a=[],defaultFilter:v=null}){let h=null;try{e("setIsSectionLoading",!0,{root:!0}),e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("updateGameForAnalysis",g),(g.is_live||g.game_status===0)&&a.push(s("getCurrentLiveGamePlays",_)),a.push(s("getSpecialMentionsByGame",_)),a.push(s("getHomeTeamPlays")),a.push(s("getVisitingTeamPlays")),a.push(s("getCurrentSeasonPlays")),v&&a.push(pVt(v)),h=await Promise.all(a)}catch(n){throw new Error(n)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:o,isPremiumAccount:O["loginGeneral/getPremiumAccount"]}),v){const[n]=h.pop();n&&(e("setBetSubcategories",n.categories),e("setBetDescription",n.sectionDescription),e("setDefaultFilter",n.params),e("updateFilterAux"),e("updateFilters",{filters:W.defaultFilter,needsFormat:!1}),s("updateRankingInSubcategories"))}},100),e("setIsSectionLoading",!1,{root:!0})}},async checkTeamsData({state:e,dispatch:s,rootState:o,commit:O},{gameId:W,isFromBet:_}){try{const g=Number(W);if(e.pastSeasonId){O("setPastSeasonId",e.pastSeasonId,{root:!0});const a=o.leagueGeneral.currentSeasonGames.find(v=>v.game_id===g);a&&O("updateGameForAnalysis",a),await Promise.all([s("getHomeTeamPlays"),s("getVisitingTeamPlays")]),O("setUsePastSeasonId",_||(!e.homeTeamPlays||e.homeTeamPlays.length===0)&&(!e.visitingTeamPlays||e.visitingTeamPlays.length===0))}else O("setUsePastSeasonId",!1)}catch(g){throw new Error(g)}},async getSpecialMentionsByGame({commit:e},s){try{const o=await sVt({gameId:s});e("addSpecialMentions",o)}catch(o){return Promise.reject(o)}},async getCurrentSeasonGames({commit:e,state:s},o){try{const{teams:O,games:W,past_season_id:_,tournament_id:g}=await iVt({seasonId:s.usePastSeasonId?s.pastSeasonId:s.seasonId,gameId:o}),a=kVt.find(v=>v.id===g);return a&&e("setCurrentTournamentName",a.name),e("setHome",O[0]),e("setAway",O[1]),s.usePastSeasonId||e("setPastSeasonId",_),await e("updateCurrentSeasonGames",W),W&&Array.isArray(W)&&e("updateFinishedGames",W.reduce((v,h)=>(h.game_status===1&&(v+=1),v),0)),W}catch(O){return Promise.reject(O)}},async getCurrentSeasonGamesLast({commit:e,state:s}){try{const{games:o,past_season_id:O}=await PG({seasonId:s.usePastSeasonId?s.pastSeasonId:s.seasonId});return s.usePastSeasonId||e("setPastSeasonId",O),await e("updateCurrentSeasonGames",o),o&&Array.isArray(o)&&e("updateFinishedGames",o.reduce((W,_)=>(_.game_status===1&&(W+=1),W),0)),o}catch(o){return Promise.reject(o)}},async getCurrentSeasonTeams({commit:e,state:s}){try{const o=await uVt({seasonId:s.usePastSeasonId?s.pastSeasonId:s.seasonId});e("updateCurrentSeasonTeams",o.data.teams)}catch{}},async getSeasonStatistics({commit:e,state:s}){try{const o=s.usePastSeasonId?s.pastSeasonId:s.seasonId,O=await aVt({seasonId:o});e("updateSeasonStatistics",O),e("updateOldSeasonId",o)}catch(o){return Promise.reject(o)}},updateRankingInSubcategories({state:e,commit:s,getters:o,rootGetters:O}){e.currentSeasonGames.length>0&&s("addRankingInSubcategories",{getters:o,isPremiumAccount:O["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:s}){try{const o=await LG({seasonId:s.usePastSeasonId?s.pastSeasonId:s.seasonId,teamId:s.gameForAnalysis.home_team});o.data&&(e("updateHomeTeamPlays",o.data.data),e("setHomeGames",o.data.games))}catch(o){return Promise.reject(o)}},async getVisitingTeamPlays({commit:e,state:s}){try{const o=await LG({seasonId:s.usePastSeasonId?s.pastSeasonId:s.seasonId,teamId:s.gameForAnalysis.visiting_team});o.data&&(e("updateVisitingTeamPlays",o.data.data),e("setVisitingGames",o.data.games))}catch(o){return Promise.reject(o)}},async getCurrentSeasonPlays({commit:e,state:s}){try{const o=await nVt({seasonId:s.usePastSeasonId?s.pastSeasonId:s.seasonId});e("updateStats",o)}catch(o){return Promise.reject(new Error(o))}},async getCurrentLiveGamePlays({state:e,commit:s},o){try{const O=await oVt({gameId:o});e.livePlays=new Map,O.forEach(W=>{e.gameForAnalysis.game_id===W[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===W[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===W[e.indexesTLP.teamId])&&s("addLiveGamePlay",W)})}catch(O){throw new Error(O)}},socket_new({state:e,commit:s},o){const O=o[1];(e.gameForAnalysis.home_team===O[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===O[e.indexesTLP.teamId])&&s("addLiveGamePlay",O)},socket_update({state:e,commit:s},o){const O=o[1];e.gameForAnalysis.game_id===O[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===O[e.indexesTLP.teamId]||e.gameForAnalysis.visitingTeam===O[e.indexesTLP.teamId])&&s("updateLiveGamePlay",O)},socket_delete({state:e,commit:s},o){const O=o[1];e.gameForAnalysis.game_id===O[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===O[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===O[e.indexesTLP.teamId])&&s("deleteLiveGamePlay",O)},exitChannel({state:e,getters:s,rootState:o,rootGetters:O,commit:W}){const _=O["loginGeneral/getPremiumAccount"];s.isLive&&_&&(W("updateShowLiveData",!0),W("clearLiveTotals"),e.livePlays.clear(),wVt.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const o of Object.values(e.nextGamesDataStructure))for(const O of Object.values(o.subcategories))O.homeTeam.resetTotals(),O.visitingTeam.resetTotals(),O.homeTeam.resetTotalsLive(),O.visitingTeam.resetTotalsLive(),O.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(o=>{for(const O of Object.values(o.subcategories))O.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const o of Object.values(e.nextGamesDataStructure))for(const O of Object.values(o.subcategories))O.homeTeam.resetTotals(),O.visitingTeam.resetTotals(),O.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(o=>{for(const O of Object.values(o.subcategories))O.resetMentions()}),e.currentSeasonGames=[],e.currentSeasonTeams=[],e.gameForAnalysis={},e.homeTeamPlays=[],e.visitingTeamPlays=[],e.currentSeasonPlays=null,e.totalSeasonFinishedGames=0,e.totalHomeTeamFinishedGames=0,e.totalVisitingTeamFinishedGames=0,e.homeGames=[],e.showPostMatch=!1,e.homeResultGame=null,e.awayResultGame=null,e.visitingGames=[],e.idAssetSelected=1,e.showAdvanceFilter=!1,e.selectedAnalysis={},e.homeTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.visitingTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.isRankingCalculating=!0}}}};async function TVt(){try{const{data:e}=await Th({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return e}catch(e){throw new Error(e)}}const CVt={gameGlobal:{namespaced:!0,state:{videoSrc:null,isVideoModalVisible:!1,tournaments:[],seccionBetsGolTipster:1,tournamentSelected:{},tournamentType:0,sectionAnalytics:"Banner_Home",previewSectionAnalytics:"",sectionRef:"",booleanIsStatisticModalOpen:!1},getters:{getTournamentType:e=>e.tournamentType,getSectionAnalytics(e){return e.sectionAnalytics},getPreviewSectionAnalytics(e){return e.previewSectionAnalytics},getSeccionBetsGolTipster(e){return e.seccionBetsGolTipster}},mutations:{setBooleanIsStatisticModalOpen(e,s){e.booleanIsStatisticModalOpen=s},setTournamentType(e,s){e.tournamentType=s},setSectionRef(e,s){e.sectionRef=s},setSectionAnalytics(e,s){e.sectionAnalytics=s},setSeccionBetsGolTipster(e,s){e.seccionBetsGolTipster=s},setPreviewSectionAnalytics(e,s){e.previewSectionAnalytics=s},setVideoSrc(e,s){e.videoSrc=s},setVideoModalVisibility(e,s){e.isVideoModalVisible=s},setSelectedTournament(e,s){e.selectedTournament=s},setTournaments(e,s){e.tournaments=s.map(o=>({...o.tournament,seasons:o.seasons})),e.tournamentSelected=e.tournaments[0]},setTournamentSelected(e,s){e.tournamentSelected=s}},actions:{async fetchTournaments({state:e,commit:s}){try{if(e.tournaments.length===0){const o=await TVt();s("setTournaments",o)}}catch(o){throw new Error(o)}}}}};async function EVt({seasonId:e,localTeamId:s,visitingTeamId:o}){try{const O=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${s}/${o}`;return(await Th({url:O})).data}catch(O){return Promise.reject(O)}}async function AVt({seasonId:e,localTeamId:s,visitingTeamId:o}){try{const O=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${s}/${o}`;return(await Th({url:O})).data}catch(O){return Promise.reject(O)}}const OG=(e,s)=>{let o={};return e.forEach((O,W)=>{W==3&&(s[0]==35||s[0]==54)&&(s[W]==2?s[W]=1:s[W]=2),W==2&&(s[0]==35||s[0]==54)&&(s[W]==1?s[W]=2:s[W]==2&&(s[W]=1)),o[O]=s[W]}),o},FG=(e,s)=>e.filter(O=>{const W=s.playingAs.includes(O.playing_as),_=s.matchResult.includes(O.match_result),g=s.sections.includes(O.section);return W&&_&&g});(function(){function e(s,o,O){return typeof O>"u"||+O==0?Math[s](o):(o=+o,O=+O,isNaN(o)||!(typeof O=="number"&&O%1===0)?NaN:(o=o.toString().split("e"),o=Math[s](+(o[0]+"e"+(o[1]?+o[1]-O:-O))),o=o.toString().split("e"),+(o[0]+"e"+(o[1]?+o[1]+O:O))))}Math.ceil10||(Math.ceil10=function(s,o){return e("ceil",s,o)})})();function NG(e,s){let o=s*-1;return Math.ceil10(e,o)}const MVt={...CVt,...hVt,...SVt,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{playsLocal:(e,s,o)=>{const O=e.xGLocalPlays,W="homeTeamFilter",_=o.nextGeneral[W];return FG(O,_)||[]},playsAway:(e,s,o)=>{const O=e.xGVisitingPlays,W="visitingTeamFilter",_=o.nextGeneral[W];return FG(O,_)},goalsQtyLocal:(e,s)=>{const o=Mm.find(O=>O.name==="Goles");return s.playsLocal.filter(O=>o.categories.includes(O.category_id)).length},goalsQtyAway:(e,s)=>{const o=Mm.find(O=>O.name==="Goles");return s.playsAway.filter(O=>o.categories.includes(O.category_id)).length},shotsOnGoalQtyLocal:(e,s)=>s.playsLocal.filter(o=>o.category_id===510).length,shotsOnGoalQtyAway:(e,s)=>s.playsAway.filter(o=>o.category_id===510).length,headQtyLocal:(e,s)=>{const o=Mm.find(O=>O.name==="Remates con cabeza");return s.playsLocal.filter(O=>o.categories.includes(O.category_id)).length},headQtyAway:(e,s)=>{const o=Mm.find(O=>O.name==="Remates con cabeza");return s.playsAway.filter(O=>o.categories.includes(O.category_id)).length},penaltiesQtyLocal:(e,s)=>{const o=Mm.find(O=>O.name==="Penales");return s.playsLocal.filter(O=>o.categories.includes(O.category_id)).length},penaltiesQtyAway:(e,s)=>{const o=Mm.find(O=>O.name==="Penales");return s.playsAway.filter(O=>o.categories.includes(O.category_id)).length},xGLocal:(e,s)=>{const o=new Set;let O=s.playsLocal.reduce((W,_)=>(o.has(_.moment_of_play)||(o.add(_.moment_of_play),W+=_.xG2),W),0);return NG(O,2)},xGAway:(e,s)=>{const o=new Set;let O=s.playsAway.reduce((W,_)=>(o.has(_.moment_of_play)||(o.add(_.moment_of_play),W+=_.xG2),W),0);return NG(O,2)}},mutations:{setTeamSelected(e,s){e.teamSelected=s},setPlays(e,s){const o=s.local_team.map(u=>OG(s.data_headers,u)),O=[],W=[],_=[],g=[],a=new Set;o.forEach(u=>{lM.has(u.category_id)?a.has(u.moment_of_play)||(a.add(u.moment_of_play),O.push(u)):cM.has(u.category_id)?W.push(u):uM.has(u.category_id)?_.push(u):dM.has(u.category_id)&&g.push(u)}),e.xGLocalPlays=[...W,...O,..._,...g];const v=s.visiting_team.map(u=>OG(s.data_headers,u)),h=new Set,n=[],x=[],y=[],b=[];v.forEach(u=>{lM.has(u.category_id)?h.has(u.moment_of_play)||(h.add(u.moment_of_play),n.push(u)):cM.has(u.category_id)?x.push(u):uM.has(u.category_id)?y.push(u):dM.has(u.category_id)&&b.push(u)}),e.xGVisitingPlays=[...x,...n,...y,...b]},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:e},{seasonId:s,localTeamId:o,visitingTeamId:O,postMatch:W=!1}){try{let _={};W?_=await AVt({seasonId:s,localTeamId:o,visitingTeamId:O}):_=await EVt({seasonId:s,localTeamId:o,visitingTeamId:O}),e("setPlays",_)}catch(_){return Promise.reject(_)}}}}}};function IVt(e){for(const[s,o]of Object.entries(MVt))e.hasModule(s)||e.registerModule(s,o)}const PVt={class:"subcategory-group"},BVt={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(s,o)=>(t.openBlock(),t.createElementBlock("div",PVt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,O=>(t.openBlock(),t.createBlock(t.unref(Gl),{key:O.id,modelValue:O.isSelected,"onUpdate:modelValue":W=>O.isSelected=W,label:O.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},LVt=gc(BVt,[["__scopeId","data-v-ae6f3d72"]]),zVt={class:"filter-subcategories"},OVt=Object.freeze(Object.defineProperty({__proto__:null,default:gc({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(s,o)=>(t.openBlock(),t.createElementBlock("div",zVt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,O=>(t.openBlock(),t.createElementBlock("div",{key:O.id,class:"filter-subcategories__group"},[t.createVNode(LVt,{subcategoryGroup:O},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Z5=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),FVt={class:"details__header"},NVt=Z5(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),DVt={class:"details__header__checkbox"},RVt={class:"details__body"},VVt={class:"details__body__playing-as"},jVt=["onClick"],$Vt={class:"details__header"},UVt=Z5(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),GVt={class:"details__header__checkbox"},HVt={class:"details__body"},WVt=Z5(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),qVt={class:"details__body__game-section"},YVt=["onClick"],ZVt={class:"details__body"},XVt=Z5(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),JVt={class:"details__body__game-section"},KVt=["onClick"],QVt=Object.freeze(Object.defineProperty({__proto__:null,default:gc({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const s=e;t.useCssVars(n=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const o=t.computed(()=>s.playingAs.every(n=>n.isSelected)),O=t.computed(()=>s.gameSections.every(n=>n.isSelected)),W=t.computed(()=>s.gameSections.reduce((n,x)=>(x.value<=3?n.firstHalf.push(x):n.secondHalf.push(x),n),{firstHalf:[],secondHalf:[]})),_=t.computed(()=>({"--border-radius-first-button":`${s.buttonsBorderRadius} 0 0 ${s.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${s.buttonsBorderRadius} ${s.buttonsBorderRadius} 0`}));function g(n){n?s.playingAs.forEach(x=>{x.isSelected=!0}):s.playingAs.forEach((x,y)=>{x.isSelected=y===0})}function a(n){s.playingAs.filter(x=>x.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function v(n){s.gameSections.filter(x=>x.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function h(n){n?s.gameSections.forEach(x=>{x.isSelected=!0}):s.gameSections.forEach((x,y)=>{x.isSelected=y===0})}return(n,x)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(_.value)},[t.createElementVNode("div",FVt,[NVt,t.createElementVNode("div",DVt,[t.createVNode(t.unref(Gl),{label:"Todos","model-value":o.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",RVt,[t.createElementVNode("div",VVt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playingAs,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${b}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>a(y)},t.toDisplayString(y.name),11,jVt))),128))])]),t.createElementVNode("div",$Vt,[UVt,t.createElementVNode("div",GVt,[t.createVNode(t.unref(Gl),{label:"Todos","model-value":O.value,"onUpdate:modelValue":h},null,8,["model-value"])])]),t.createElementVNode("div",HVt,[WVt,t.createElementVNode("div",qVt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value.firstHalf,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${b}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>v(y)},t.toDisplayString(y.text),11,YVt))),128))])]),t.createElementVNode("div",ZVt,[XVt,t.createElementVNode("div",JVt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value.secondHalf,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${b}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>v(y)},t.toDisplayString(y.text),11,KVt))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),ejt={class:"filter-field"},tjt=Object.freeze(Object.defineProperty({__proto__:null,default:gc({__name:"FilterField",setup(e){const s=t.ref(Array.from({length:16},(O,W)=>W+1));function o(){}return(O,W)=>(t.openBlock(),t.createElementBlock("div",ejt,[t.createVNode(t.unref(mN),{width:"100%","background-color":"#2E3B46",value:s.value,"onUpdate:modelValue":o},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),njt={class:"subcategory-group"},ajt={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(s,o)=>(t.openBlock(),t.createElementBlock("div",njt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,O=>(t.openBlock(),t.createBlock(t.unref(Hl),{key:O.id,modelValue:O.isSelected,"onUpdate:modelValue":W=>O.isSelected=W,label:O.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},rjt=_c(ajt,[["__scopeId","data-v-ae6f3d72"]]),ijt={class:"filter-subcategories"},ojt=Object.freeze(Object.defineProperty({__proto__:null,default:_c({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(s,o)=>(t.openBlock(),t.createElementBlock("div",ijt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,O=>(t.openBlock(),t.createElementBlock("div",{key:O.id,class:"filter-subcategories__group"},[t.createVNode(rjt,{subcategoryGroup:O},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),X5=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),sjt={class:"details__header"},ljt=X5(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),cjt={class:"details__header__checkbox"},ujt={class:"details__body"},djt={class:"details__body__playing-as"},hjt=["onClick"],pjt={class:"details__header"},fjt=X5(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),mjt={class:"details__header__checkbox"},gjt={class:"details__body"},yjt=X5(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),vjt={class:"details__body__game-section"},_jt=["onClick"],bjt={class:"details__body"},xjt=X5(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),wjt={class:"details__body__game-section"},kjt=["onClick"],Sjt=Object.freeze(Object.defineProperty({__proto__:null,default:_c({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const s=e;t.useCssVars(n=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const o=t.computed(()=>s.playingAs.every(n=>n.isSelected)),O=t.computed(()=>s.gameSections.every(n=>n.isSelected)),W=t.computed(()=>s.gameSections.reduce((n,x)=>(x.value<=3?n.firstHalf.push(x):n.secondHalf.push(x),n),{firstHalf:[],secondHalf:[]})),_=t.computed(()=>({"--border-radius-first-button":`${s.buttonsBorderRadius} 0 0 ${s.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${s.buttonsBorderRadius} ${s.buttonsBorderRadius} 0`}));function g(n){n?s.playingAs.forEach(x=>{x.isSelected=!0}):s.playingAs.forEach((x,y)=>{x.isSelected=y===0})}function a(n){s.playingAs.filter(x=>x.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function v(n){s.gameSections.filter(x=>x.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function h(n){n?s.gameSections.forEach(x=>{x.isSelected=!0}):s.gameSections.forEach((x,y)=>{x.isSelected=y===0})}return(n,x)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(_.value)},[t.createElementVNode("div",sjt,[ljt,t.createElementVNode("div",cjt,[t.createVNode(t.unref(Hl),{label:"Todos","model-value":o.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",ujt,[t.createElementVNode("div",djt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playingAs,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${b}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>a(y)},t.toDisplayString(y.name),11,hjt))),128))])]),t.createElementVNode("div",pjt,[fjt,t.createElementVNode("div",mjt,[t.createVNode(t.unref(Hl),{label:"Todos","model-value":O.value,"onUpdate:modelValue":h},null,8,["model-value"])])]),t.createElementVNode("div",gjt,[yjt,t.createElementVNode("div",vjt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value.firstHalf,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${b}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>v(y)},t.toDisplayString(y.text),11,_jt))),128))])]),t.createElementVNode("div",bjt,[xjt,t.createElementVNode("div",wjt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value.secondHalf,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${b}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>v(y)},t.toDisplayString(y.text),11,kjt))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),Tjt={class:"filter-field"},Cjt=Object.freeze(Object.defineProperty({__proto__:null,default:_c({__name:"FilterField",setup(e){const s=t.ref(Array.from({length:16},(O,W)=>W+1));function o(){}return(O,W)=>(t.openBlock(),t.createElementBlock("div",Tjt,[t.createVNode(t.unref(Zj),{width:"100%","background-color":"#2E3B46",value:s.value,"onUpdate:modelValue":o},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));Bd.GSCGameData=tVt,Bd.connectSocket=a6,Bd.disconnectSocket=r6,Bd.getSocket=n6,Bd.registerStoreModules=IVt,Object.defineProperty(Bd,Symbol.toStringTag,{value:"Module"})});
|
|
8183
|
+
*/var QNt="store";function g1(e,s){Object.keys(e).forEach(function(o){return s(e[o],o)})}function dG(e){return e!==null&&typeof e=="object"}function eDt(e){return e&&typeof e.then=="function"}function Nf(e,s){if(!e)throw new Error("[vuex] "+s)}function tDt(e,s){return function(){return e(s)}}function hG(e,s,o){return s.indexOf(e)<0&&(o&&o.prepend?s.unshift(e):s.push(e)),function(){var O=s.indexOf(e);O>-1&&s.splice(O,1)}}function pG(e,s){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var o=e.state;G5(e,o,[],e._modules.root,!0),IT(e,o,s)}function IT(e,s,o){var O=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var W=e._wrappedGetters,_={};g1(W,function(g,a){_[a]=tDt(g,e),Object.defineProperty(e.getters,a,{get:function(){return _[a]()},enumerable:!0})}),e._state=t.reactive({data:s}),e.strict&&oDt(e),O&&o&&e._withCommit(function(){O.data=null})}function G5(e,s,o,O,W){var _=!o.length,g=e._modules.getNamespace(o);if(O.namespaced&&(e._modulesNamespaceMap[g]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+g+" for the namespaced module "+o.join("/")),e._modulesNamespaceMap[g]=O),!_&&!W){var a=PT(s,o.slice(0,-1)),v=o[o.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&v in a&&console.warn('[vuex] state field "'+v+'" was overridden by a module with the same name at "'+o.join(".")+'"'),a[v]=O.state})}var h=O.context=nDt(e,g,o);O.forEachMutation(function(n,x){var y=g+x;aDt(e,y,n,h)}),O.forEachAction(function(n,x){var y=n.root?x:g+x,b=n.handler||n;rDt(e,y,b,h)}),O.forEachGetter(function(n,x){var y=g+x;iDt(e,y,n,h)}),O.forEachChild(function(n,x){G5(e,s,o.concat(x),n,W)})}function nDt(e,s,o){var O=s==="",W={dispatch:O?e.dispatch:function(_,g,a){var v=H5(_,g,a),h=v.payload,n=v.options,x=v.type;if((!n||!n.root)&&(x=s+x,process.env.NODE_ENV!=="production"&&!e._actions[x])){console.error("[vuex] unknown local action type: "+v.type+", global type: "+x);return}return e.dispatch(x,h)},commit:O?e.commit:function(_,g,a){var v=H5(_,g,a),h=v.payload,n=v.options,x=v.type;if((!n||!n.root)&&(x=s+x,process.env.NODE_ENV!=="production"&&!e._mutations[x])){console.error("[vuex] unknown local mutation type: "+v.type+", global type: "+x);return}e.commit(x,h,n)}};return Object.defineProperties(W,{getters:{get:O?function(){return e.getters}:function(){return fG(e,s)}},state:{get:function(){return PT(e.state,o)}}}),W}function fG(e,s){if(!e._makeLocalGettersCache[s]){var o={},O=s.length;Object.keys(e.getters).forEach(function(W){if(W.slice(0,O)===s){var _=W.slice(O);Object.defineProperty(o,_,{get:function(){return e.getters[W]},enumerable:!0})}}),e._makeLocalGettersCache[s]=o}return e._makeLocalGettersCache[s]}function aDt(e,s,o,O){var W=e._mutations[s]||(e._mutations[s]=[]);W.push(function(_){o.call(e,O.state,_)})}function rDt(e,s,o,O){var W=e._actions[s]||(e._actions[s]=[]);W.push(function(_){var g=o.call(e,{dispatch:O.dispatch,commit:O.commit,getters:O.getters,state:O.state,rootGetters:e.getters,rootState:e.state},_);return eDt(g)||(g=Promise.resolve(g)),e._devtoolHook?g.catch(function(a){throw e._devtoolHook.emit("vuex:error",a),a}):g})}function iDt(e,s,o,O){if(e._wrappedGetters[s]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+s);return}e._wrappedGetters[s]=function(W){return o(O.state,O.getters,W.state,W.getters)}}function oDt(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&Nf(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function PT(e,s){return s.reduce(function(o,O){return o[O]},e)}function H5(e,s,o){return dG(e)&&e.type&&(o=s,s=e,e=e.type),process.env.NODE_ENV!=="production"&&Nf(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:s,options:o}}var sDt="vuex bindings",mG="vuex:mutations",BT="vuex:actions",yv="vuex",lDt=0;function cDt(e,s){KNt({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[sDt]},function(o){o.addTimelineLayer({id:mG,label:"Vuex Mutations",color:gG}),o.addTimelineLayer({id:BT,label:"Vuex Actions",color:gG}),o.addInspector({id:yv,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),o.on.getInspectorTree(function(O){if(O.app===e&&O.inspectorId===yv)if(O.filter){var W=[];bG(W,s._modules.root,O.filter,""),O.rootNodes=W}else O.rootNodes=[_G(s._modules.root,"")]}),o.on.getInspectorState(function(O){if(O.app===e&&O.inspectorId===yv){var W=O.nodeId;fG(s,W),O.state=hDt(fDt(s._modules,W),W==="root"?s.getters:s._makeLocalGettersCache,W)}}),o.on.editInspectorState(function(O){if(O.app===e&&O.inspectorId===yv){var W=O.nodeId,_=O.path;W!=="root"&&(_=W.split("/").filter(Boolean).concat(_)),s._withCommit(function(){O.set(s._state.data,_,O.state.value)})}}),s.subscribe(function(O,W){var _={};O.payload&&(_.payload=O.payload),_.state=W,o.notifyComponentUpdate(),o.sendInspectorTree(yv),o.sendInspectorState(yv),o.addTimelineEvent({layerId:mG,event:{time:Date.now(),title:O.type,data:_}})}),s.subscribeAction({before:function(O,W){var _={};O.payload&&(_.payload=O.payload),O._id=lDt++,O._time=Date.now(),_.state=W,o.addTimelineEvent({layerId:BT,event:{time:O._time,title:O.type,groupId:O._id,subtitle:"start",data:_}})},after:function(O,W){var _={},g=Date.now()-O._time;_.duration={_custom:{type:"duration",display:g+"ms",tooltip:"Action duration",value:g}},O.payload&&(_.payload=O.payload),_.state=W,o.addTimelineEvent({layerId:BT,event:{time:Date.now(),title:O.type,groupId:O._id,subtitle:"end",data:_}})}})})}var gG=8702998,uDt=6710886,dDt=16777215,yG={label:"namespaced",textColor:dDt,backgroundColor:uDt};function vG(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function _G(e,s){return{id:s||"root",label:vG(s),tags:e.namespaced?[yG]:[],children:Object.keys(e._children).map(function(o){return _G(e._children[o],s+o+"/")})}}function bG(e,s,o,O){O.includes(o)&&e.push({id:O||"root",label:O.endsWith("/")?O.slice(0,O.length-1):O||"Root",tags:s.namespaced?[yG]:[]}),Object.keys(s._children).forEach(function(W){bG(e,s._children[W],o,O+W+"/")})}function hDt(e,s,o){s=o==="root"?s:s[o];var O=Object.keys(s),W={state:Object.keys(e.state).map(function(g){return{key:g,editable:!0,value:e.state[g]}})};if(O.length){var _=pDt(s);W.getters=Object.keys(_).map(function(g){return{key:g.endsWith("/")?vG(g):g,editable:!1,value:LT(function(){return _[g]})}})}return W}function pDt(e){var s={};return Object.keys(e).forEach(function(o){var O=o.split("/");if(O.length>1){var W=s,_=O.pop();O.forEach(function(g){W[g]||(W[g]={_custom:{value:{},display:g,tooltip:"Module",abstract:!0}}),W=W[g]._custom.value}),W[_]=LT(function(){return e[o]})}else s[o]=LT(function(){return e[o]})}),s}function fDt(e,s){var o=s.split("/").filter(function(O){return O});return o.reduce(function(O,W,_){var g=O[W];if(!g)throw new Error('Missing module "'+W+'" for path "'+s+'".');return _===o.length-1?g:g._children},s==="root"?e:e.root._children)}function LT(e){try{return e()}catch(s){return s}}var Df=function(e,s){this.runtime=s,this._children=Object.create(null),this._rawModule=e;var o=e.state;this.state=(typeof o=="function"?o():o)||{}},xG={namespaced:{configurable:!0}};xG.namespaced.get=function(){return!!this._rawModule.namespaced},Df.prototype.addChild=function(e,s){this._children[e]=s},Df.prototype.removeChild=function(e){delete this._children[e]},Df.prototype.getChild=function(e){return this._children[e]},Df.prototype.hasChild=function(e){return e in this._children},Df.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},Df.prototype.forEachChild=function(e){g1(this._children,e)},Df.prototype.forEachGetter=function(e){this._rawModule.getters&&g1(this._rawModule.getters,e)},Df.prototype.forEachAction=function(e){this._rawModule.actions&&g1(this._rawModule.actions,e)},Df.prototype.forEachMutation=function(e){this._rawModule.mutations&&g1(this._rawModule.mutations,e)},Object.defineProperties(Df.prototype,xG);var y1=function(e){this.register([],e,!1)};y1.prototype.get=function(e){return e.reduce(function(s,o){return s.getChild(o)},this.root)},y1.prototype.getNamespace=function(e){var s=this.root;return e.reduce(function(o,O){return s=s.getChild(O),o+(s.namespaced?O+"/":"")},"")},y1.prototype.update=function(e){wG([],this.root,e)},y1.prototype.register=function(e,s,o){var O=this;o===void 0&&(o=!0),process.env.NODE_ENV!=="production"&&TG(e,s);var W=new Df(s,o);if(e.length===0)this.root=W;else{var _=this.get(e.slice(0,-1));_.addChild(e[e.length-1],W)}s.modules&&g1(s.modules,function(g,a){O.register(e.concat(a),g,o)})},y1.prototype.unregister=function(e){var s=this.get(e.slice(0,-1)),o=e[e.length-1],O=s.getChild(o);if(!O){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+o+"', which is not registered");return}O.runtime&&s.removeChild(o)},y1.prototype.isRegistered=function(e){var s=this.get(e.slice(0,-1)),o=e[e.length-1];return s?s.hasChild(o):!1};function wG(e,s,o){if(process.env.NODE_ENV!=="production"&&TG(e,o),s.update(o),o.modules)for(var O in o.modules){if(!s.getChild(O)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+O+"' on hot reloading, manual reload is needed");return}wG(e.concat(O),s.getChild(O),o.modules[O])}}var kG={assert:function(e){return typeof e=="function"},expected:"function"},mDt={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},SG={getters:kG,mutations:kG,actions:mDt};function TG(e,s){Object.keys(SG).forEach(function(o){if(s[o]){var O=SG[o];g1(s[o],function(W,_){Nf(O.assert(W),gDt(e,o,_,W,O.expected))})}})}function gDt(e,s,o,O,W){var _=s+" should be "+W+' but "'+s+"."+o+'"';return e.length>0&&(_+=' in module "'+e.join(".")+'"'),_+=" is "+JSON.stringify(O)+".",_}var kp=function e(s){var o=this;s===void 0&&(s={}),process.env.NODE_ENV!=="production"&&(Nf(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),Nf(this instanceof e,"store must be called with the new operator."));var O=s.plugins;O===void 0&&(O=[]);var W=s.strict;W===void 0&&(W=!1);var _=s.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new y1(s),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=_;var g=this,a=this,v=a.dispatch,h=a.commit;this.dispatch=function(x,y){return v.call(g,x,y)},this.commit=function(x,y,b){return h.call(g,x,y,b)},this.strict=W;var n=this._modules.root.state;G5(this,n,[],this._modules.root),IT(this,n),O.forEach(function(x){return x(o)})},zT={state:{configurable:!0}};kp.prototype.install=function(e,s){e.provide(s||QNt,this),e.config.globalProperties.$store=this;var o=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;o&&cDt(e,this)},zT.state.get=function(){return this._state.data},zT.state.set=function(e){process.env.NODE_ENV!=="production"&&Nf(!1,"use store.replaceState() to explicit replace store state.")},kp.prototype.commit=function(e,s,o){var O=this,W=H5(e,s,o),_=W.type,g=W.payload,a=W.options,v={type:_,payload:g},h=this._mutations[_];if(!h){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+_);return}this._withCommit(function(){h.forEach(function(n){n(g)})}),this._subscribers.slice().forEach(function(n){return n(v,O.state)}),process.env.NODE_ENV!=="production"&&a&&a.silent&&console.warn("[vuex] mutation type: "+_+". Silent option has been removed. Use the filter functionality in the vue-devtools")},kp.prototype.dispatch=function(e,s){var o=this,O=H5(e,s),W=O.type,_=O.payload,g={type:W,payload:_},a=this._actions[W];if(!a){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+W);return}try{this._actionSubscribers.slice().filter(function(h){return h.before}).forEach(function(h){return h.before(g,o.state)})}catch(h){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(h))}var v=a.length>1?Promise.all(a.map(function(h){return h(_)})):a[0](_);return new Promise(function(h,n){v.then(function(x){try{o._actionSubscribers.filter(function(y){return y.after}).forEach(function(y){return y.after(g,o.state)})}catch(y){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(y))}h(x)},function(x){try{o._actionSubscribers.filter(function(y){return y.error}).forEach(function(y){return y.error(g,o.state,x)})}catch(y){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(y))}n(x)})})},kp.prototype.subscribe=function(e,s){return hG(e,this._subscribers,s)},kp.prototype.subscribeAction=function(e,s){var o=typeof e=="function"?{before:e}:e;return hG(o,this._actionSubscribers,s)},kp.prototype.watch=function(e,s,o){var O=this;return process.env.NODE_ENV!=="production"&&Nf(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(O.state,O.getters)},s,Object.assign({},o))},kp.prototype.replaceState=function(e){var s=this;this._withCommit(function(){s._state.data=e})},kp.prototype.registerModule=function(e,s,o){o===void 0&&(o={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(Nf(Array.isArray(e),"module path must be a string or an Array."),Nf(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,s),G5(this,this.state,e,this._modules.get(e),o.preserveState),IT(this,this.state)},kp.prototype.unregisterModule=function(e){var s=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&Nf(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var o=PT(s.state,e.slice(0,-1));delete o[e[e.length-1]]}),pG(this)},kp.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&Nf(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},kp.prototype.hotUpdate=function(e){this._modules.update(e),pG(this,!0)},kp.prototype._withCommit=function(e){var s=this._committing;this._committing=!0,e(),this._committing=s},Object.defineProperties(kp.prototype,zT);var yDt=_Dt(function(e,s){var o={};return process.env.NODE_ENV!=="production"&&!CG(s)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),vDt(s).forEach(function(O){var W=O.key,_=O.val;o[W]=function(){for(var g=[],a=arguments.length;a--;)g[a]=arguments[a];var v=this.$store.commit;if(e){var h=bDt(this.$store,"mapMutations",e);if(!h)return;v=h.context.commit}return typeof _=="function"?_.apply(this,[v].concat(g)):v.apply(this.$store,[_].concat(g))}}),o});function vDt(e){return CG(e)?Array.isArray(e)?e.map(function(s){return{key:s,val:s}}):Object.keys(e).map(function(s){return{key:s,val:e[s]}}):[]}function CG(e){return Array.isArray(e)||dG(e)}function _Dt(e){return function(s,o){return typeof s!="string"?(o=s,s=""):s.charAt(s.length-1)!=="/"&&(s+="/"),e(s,o)}}function bDt(e,s,o){var O=e._modulesNamespaceMap[o];return process.env.NODE_ENV!=="production"&&!O&&console.error("[vuex] module namespace not found in "+s+"(): "+o),O}const xDt="/icn-play.svg",wDt="/icn-tiros-de-esquina.svg",kDt="/icn-tiro-a-porteria.svg",SDt="/icn-cambio.svg",TDt="/icn-falta.svg",CDt="/atajada.svg",EDt="/fuera-de-lugar.svg",OT="/gol.svg",ADt="/var.png",MDt="/tiempo-agregado.svg",IDt="/jugada-peligrosa.svg",PDt="/penal-marcado.svg",BDt="/penal-fallado.svg",LDt="/inicia-el-partido.svg",zDt="/fin-del-partido.svg",ODt="/icn-tarjeta-amarilla.svg",FDt="/icn-tarjeta-roja.svg",NDt=[1,2,3,4,6],DDt={name:"TimeLineEvent",props:{gameEvent:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},width:{type:Number,default:352},timeLineWidth:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!0}},data(){return{lastHeight:0,gameEventKey:0}},computed:{nameClasses(){const e=[],s=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return AT.GOAL_IDS.includes(s)?(e.push("is-main-event"),e.push("goal")):AT.YELLOW_CARD_IDS.includes(s)?(e.push("is-main-event"),e.push("yellow-card")):AT.RED_CARD_IDS.includes(s)?(e.push("is-main-event"),e.push("red-card")):this.gameEvent.video_link!=="-"&&(e.push("is-main-event"),e.push("normal-video")),this.gameEvent.teamType===1?e.push("time-line-event--home-team"):e.push("time-line-event--away-team"),e},srcImgPlayers(){let e=null;return this.gameEvent.player_id&&this.gameEvent.player_id!=="-"&&(e=this.gameEvent.player_id.split("@"),e=e.map(s=>GNt(s))),e},teamTypeClasses(){const e=`time-line-event--${this.gameEvent.teamType===1?"home":"away"}-team`;return[e,`${e}-desktop`]},teamTypeClasses2(){return[`time-line-event--info--${this.gameEvent.teamType===1?"home":"away"}-team`]},minuteClasses(){const e=[`time-line-event__minute--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`];return e.push("time-line-event__minute--desktop"),e},playerName(){return this.gameEvent.category_id===28||NDt.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...yDt("general",["setVideoModalVisibility","setVideoSrc"]),thumbnailClick(e){e!=="-"&&this.$emit("thumbnail-click",e)},showVideoTimeline(e){this.setVideoSrc(e),this.setVideoModalVisibility(!0)},getIconClasses(){return["time-line-event__icon--desktop",`time-line-event__icon--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`]},emitHeight(){setTimeout(()=>{this.$refs.timeLineEvent&&this.$refs.timeLineEvent.clientHeight&&this.$refs.timeLineEvent.clientHeight!==this.lastHeight&&(this.lastHeight=this.$refs.timeLineEvent.clientHeight,this.$emit("event-height",this.lastHeight))},500)}},mounted(){if(this.emitHeight(),this.gameEvent.event_type_id===3){const[e,s]=this.gameEvent.player_id.split("@");this.$emit("player-changed",{playerOut:Number(e),playerIn:Number(s),teamId:this.gameEvent.team_id})}}},RDt=e=>(t.pushScopeId("data-v-f8c0f071"),e=e(),t.popScopeId(),e),VDt={class:"time-line-event__details"},jDt={width:"127",preload:"metadata",style:{"border-radius":"8px"}},$Dt=["src"],UDt=RDt(()=>t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient"},[t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient__button-play"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})])])],-1)),GDt={class:"time-line-event__details__info"},HDt={key:0,class:"time-line-event__details__info__header__players"},WDt={class:"time-line-event__details__info__header__players__div-img"},qDt=["src"],YDt={class:"time-line-event__details__info__body"},ZDt={class:"time-line-event__details__info__body__comment"},XDt={class:"time-line-event__minute__container"},JDt={class:"time-line-event__minute__container__text"},KDt={class:"time-line-event__minute__container__icon-container"},QDt={class:"time-line-event__minute__container__icon-container__icon"},eRt={key:0,src:wDt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},tRt={key:1,src:kDt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},nRt={key:2,src:SDt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},aRt={key:3,src:TDt,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},rRt={key:4,src:CDt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},iRt={key:5,src:EDt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},oRt={key:6,src:OT,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},sRt={key:7,src:OT,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},lRt={key:8,src:OT,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},cRt={key:9,src:ADt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},uRt={key:10,src:MDt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},dRt={key:11,src:IDt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},hRt={key:12,src:PDt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},pRt={key:13,src:BDt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},fRt={key:14,src:LDt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},mRt={key:15,src:zDt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},gRt={key:16,src:ODt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},yRt={key:17,src:FDt,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},vRt={key:18,src:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %23fff; %7D .cls-2 %7B fill: %23172531; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Cg id='Oval'%3E%3Ccircle class='cls-2' cx='24' cy='24' r='24'/%3E%3C/g%3E%3Cg id='Group-19'%3E%3Cg id='Path-16'%3E%3Cpath class='cls-1' d='M32.85,36.6H15.15c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h17.69c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z'/%3E%3C/g%3E%3C/g%3E%3Cg id='Rectangle'%3E%3Cg id='path-1'%3E%3Cpath class='cls-1' d='M38.02,32.62H9.98V13.43h28.04v19.19Zm-26.54-1.5h25.04V14.93H11.48V31.12Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",alt:"Event icon"};function _Rt(e,s,o,O,W,_){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",_.teamTypeClasses]),style:t.normalizeStyle({width:`${o.width}px`}),key:W.gameEventKey},[t.createElementVNode("div",VDt,[o.canPlayVideos&&o.gameEvent.video_link!=="-"&&o.timeLineWidth>700?(t.openBlock(),t.createElementBlock("div",{key:0,class:"time-line-event__details__video-thumbnail",onClick:s[0]||(s[0]=g=>_.thumbnailClick(o.gameEvent.video_link,o.gameEvent.event_type_name))},[t.createElementVNode("video",jDt,[t.createElementVNode("source",{src:o.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,$Dt)]),UDt])):t.createCommentVNode("",!0),t.createElementVNode("div",GDt,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",_.teamTypeClasses2])},[o.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",HDt,[_.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(_.srcImgPlayers,(g,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":a===1}]),key:a},[t.createElementVNode("div",WDt,[t.createElementVNode("img",{src:g,alt:""},null,8,qDt)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",_.nameClasses]),onClick:s[1]||(s[1]=g=>_.thumbnailClick(o.gameEvent.video_link,o.gameEvent.event_type_name))},[o.canPlayVideos&&o.gameEvent.video_link!=="-"?(t.openBlock(),t.createElementBlock("img",{key:0,src:xDt,class:t.normalizeClass(`time-line-event__details__info__header__event-play ${[1,2].includes(o.gameEvent.event_type_id)?`time-line-event__details__info__header__event-play__${o.gameEvent.event_type_name}`:o.gameEvent.video_link!=="-"?"time-line-event__details__info__header__event-play__normal-video":""}`)},null,2)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(o.gameEvent.category_id?o.gameEvent.event_type_id===5?o.gameEvent.category_name:o.gameEvent.event_type_name==="Gol"?`${[13,16].includes(o.gameEvent.category_id)?"Autogol":"Gol"} de `+o.gameEvent.team_name:o.gameEvent.event_type_name:o.gameEvent.comments),1)],2)],2),t.createElementVNode("div",YDt,[t.createElementVNode("div",ZDt,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",_.minuteClasses])},[t.createElementVNode("div",XDt,[t.createElementVNode("div",JDt,t.toDisplayString(o.gameEvent.minute)+"'",1),t.createElementVNode("div",KDt,[t.createElementVNode("div",QDt,[o.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",eRt)):o.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",tRt)):o.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",nRt)):o.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",aRt)):o.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",rRt)):o.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",iRt)):o.gameEvent.category_id==6&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==5&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==1&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==2&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==3&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==7&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==12&&o.gameEvent.event_type_id==1?(t.openBlock(),t.createElementBlock("img",oRt)):o.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",sRt)):o.gameEvent.category_id==13||o.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",lRt)):o.gameEvent.category_id==30||o.gameEvent.category_id==31||o.gameEvent.category_id==32||o.gameEvent.category_id==33||o.gameEvent.category_id==34||o.gameEvent.category_id==35||o.gameEvent.category_id==36||o.gameEvent.category_id==37||o.gameEvent.category_id==38||o.gameEvent.category_id==39||o.gameEvent.category_id==40?(t.openBlock(),t.createElementBlock("img",cRt)):o.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",uRt)):o.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",dRt)):o.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",hRt)):o.gameEvent.category_id==15||o.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",pRt)):o.gameEvent.category_id==0&&o.gameEvent.game_status_id==16||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==18||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==20||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==22?(t.openBlock(),t.createElementBlock("img",fRt)):o.gameEvent.category_id==0&&o.gameEvent.game_status_id==13||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==17||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==19||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==21||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==23?(t.openBlock(),t.createElementBlock("img",mRt)):o.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",gRt)):o.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",yRt)):(t.openBlock(),t.createElementBlock("img",vRt))])])])],2)],6)}const bRt=c_(DDt,[["render",_Rt],["__scopeId","data-v-f8c0f071"]]),xRt={"1-1":"gol","1-2":"gol","1-3":"gol","1-4":"gol","1-5":"gol","1-6":"gol","1-7":"gol","1-12":"gol","1-13":"gol","1-16":"gol","2-8":"amonestacion","2-9":"expulsion","3-10":"cambio_de_jugador","3-11":"cambio_de_jugador","4-14":"gol","4-15":"penal_fallado","5-17":"fuera_de_lugar","5-18":"tiro_de_esquina","5-20":"tiro_a_gol","5-21":"falta_cometida","5-22":"penal_marcado","5-23":"penal_fallado","5-24":"","5-25":"","5-26":"jugada_peligro_dentro_area","5-27":"atajada","5-28":"tiempo_agregado","5-29":"presion_para_anotar","7-30":"revision_var","7-31":"revision_var","7-32":"revision_var","7-33":"revision_var","7-34":"revision_var"},wRt={3:{name:"Inicia Primer Tiempo",weight:1,playTimer:1,abbreviation:"1T:"},4:{name:"Final Primer Tiempo",weight:2,playTimer:0,abbreviation:"1T:"},5:{name:"Inicia Segundo Tiempo",weight:3,playTimer:1,abbreviation:"2T:"},8:{name:"Final Segundo Tiempo",weight:4,playTimer:0,abbreviation:"2T:"},9:{name:"Inicia Primer Tiempo Extra",weight:5,playTimer:1,abbreviation:"1T extra:"},12:{name:"Final Primer Tiempo Extra",weight:6,playTimer:0,abbreviation:"1T extra:"},10:{name:"Inicia Segundo Tiempo Extra",weight:7,playTimer:1,abbreviation:"2T extra:"},13:{name:"Final Segundo Tiempo Extra",weight:8,playTimer:0,abbreviation:"2T extra:"},11:{name:"Inicia Tanda de Penales",weight:9,playTimer:1,abbreviation:"Penales:"},15:{name:"Final Tanda de Penales",weight:10,playTimer:0,abbreviation:"Penales:"},6:{name:"Marcador Final",weight:11,playTimer:0,abbreviation:"Final"}};let W5=null;const kRt={name:"TimeLine",components:{Tooltip:VNt,TimeLineEvent:bRt},mixins:[$Nt],props:{gameData:{type:Object,required:!0},timeLinePeriod:{type:String,default:"all"},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},data(){return{gameEvents:[],gameEventsByPeriod:{firstHalf:[],secondHalf:[]},dataVideo:{visible:!1,link:""},gameEventsQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",transitionName:"",subscriptionInfo:{gameId:0,isSubscribed:!1},areGameEventsFilled:!1,timeLineWidth:812,eventContainerWidth:0,channelName:"",timeLineStatus:"awaiting",timeLeft:"",lastMinute:0,timeLineStatuses:[],currentStatus:{abbreviation:""},timer:"00:00"}},computed:{isMobile(){return this.timeLineWidth<580},gameEventWidth(){return this.timeLineWidth/2-30},gameEventsToShow(){return this.timeLinePeriod==="all"?this.gameEvents:this.gameEventsByPeriod[this.timeLinePeriod]}},watch:{gameData:{deep:!0,immediate:!0,handler(e){e&&e.id&&(this.gameDateTime=new Date(this.gameData.dateTimeUTC),this.gameEventsQueue=[],this.timeLineStatuses=[],this.transitionName="",this.checkTimeLeft(),e.status!==1&&this.socket&&this.socket.connected?this.subscribeToMXMChannel():this.timeLineStatus="finished",this.fillGameEvents(e.id))}},"socket.connected":{immediate:!0,handler(e){e&&this.gameData.id&&this.gameData.status!==1&&this.subscribeToMXMChannel()}},gameEvents(e){e.length&&this.gameData.status!==1&&(this.timeLineStatus="live")}},methods:{async fillGameEvents(e){try{const s=await this.fetchGameEvents(e);s?(this.gameEvents=[...s],this.checkGameEventsQueue(),this.sortGameEvents(),setTimeout(()=>{this.transitionName="list"},500)):this.gameEvents=[],this.gameData.status===1?this.lastMinute=`${this.gameEvents[this.gameEvents.length-1].minute}'`:this.checkTimeLineStatus()}catch(s){throw new Error(s)}},getGameEventClassAndSetIcon(e,s){return e.icon=s===0?"inicio_del_partido":xRt[`${e.event_type_id}-${e.category_id}`],e.team_id===this.gameData.homeTeam.team_id||!e.team_id?(e.teamType=1,["home-team-event"]):(e.teamType=2,["away-team-event"])},getEventContainerClass(){return this.isMobile,["time-line-event__container--desktop"]},async fetchGameEvents(e){try{const{data:{plays:s}}=await sG.get(`${this.gameEventsUrl}${e}`);return s}catch(s){throw new Error(s)}},subscribeToMXMChannel(){this.channelName=`mxm.game.${this.gameData.id}`,this.socket.emit("subscribe",{channel:this.channelName}),this.isSubscribed=!0},checkGameEventsQueue(){this.gameEventsQueue.length&&this.gameEvents.push(...this.gameEventsQueue),this.areGameEventsFilled=!0},setUpResizeObserver(){if(window.ResizeObserver)W5=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),W5.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,s){const o=this.$refs[`gameEventDiv${s}`][0],O=this.$refs[`gameEventLine${s}`]?this.$refs[`gameEventLine${s}`][0]:null,W=e+12;o&&(o.style.height=`${W}px`),O&&(O.style.height=`${W}px`)},sortGameEvents(){this.gameEvents.sort((e,s)=>this.getMatchLapseMinutes(e.match_lapse)+Number(e.minute)-(this.getMatchLapseMinutes(s.match_lapse)+Number(s.minute))),this.gameEventsByPeriod={firstHalf:[],secondHalf:[]},this.gameEvents.forEach(e=>{this.gameEventsByPeriod[e.match_lapse===1?"firstHalf":"secondHalf"].push(e)})},getMatchLapseMinutes(e){let s=0;switch(e){case 1:s=0;break;case 2:s=45;break;case 3:s=90;break;case 4:s=105;break;case 5:s=120;break}return s},addGameEventFromChannel(e){this.areGameEventsFilled?(this.gameEvents.push(e),this.sortGameEvents()):this.gameEventsQueue.push(e)},deleteGameEventFromChannel(e){const s=this.gameEvents.findIndex(o=>o.play_id===e.play_id);s&&this.gameEvents.splice(s,1)},checkTimeLineStatus(){this.gameEvents.forEach(s=>{const o=wRt[s.game_status];o&&this.timeLineStatuses.push({...o,gameEvent:s})}),this.timeLineStatuses.sort((s,o)=>o.weight-s.weight);const e=this.timeLineStatuses[0];e&&(this.currentStatus=e,e.playTimer&&this.startTimer())},startTimer(){},getTeamLogoSrc(e="homeTeam"){const s=this.gameData[e].team_id;return UNt(s)},thumbnailClick(e){this.canPlayVideos&&(this.dataVideo.link=e,this.dataVideo.visible=!0)}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){W5&&W5.unobserve(this.$refs.timeLine)},sockets:{new_mxm([e,s]){this.channelName===e&&this.addGameEventFromChannel(s)},update_mxm([e,s]){this.channelName===e&&(this.deleteGameEventFromChannel(s),this.addGameEventFromChannel(s))},delete_mxm([e,s]){this.channelName===e&&this.deleteGameEventFromChannel(s)}}},EG=e=>(t.pushScopeId("data-v-2574e576"),e=e(),t.popScopeId(),e),SRt={ref:"timeLine",class:"time-line"},TRt={class:"time-line__header"},CRt={class:"time-line__header__dot"},ERt={class:"time-line__header__dot__home-team team-logo"},ARt=["src"],MRt={class:"time-line__header__dot__away-team team-logo"},IRt=["src"],PRt={key:1,class:"start-line"},BRt=EG(()=>t.createElementVNode("div",null,null,-1)),LRt=EG(()=>t.createElementVNode("div",null,null,-1)),zRt=[BRt,LRt],ORt={key:1,class:"noEventText"},FRt={class:"tooltip-data"},NRt=["src"];function DRt(e,s,o,O,W,_){const g=t.resolveComponent("TimeLineEvent"),a=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",SRt,[t.createElementVNode("div",TRt,[t.createElementVNode("div",CRt,[t.createElementVNode("div",ERt,[t.createElementVNode("img",{src:_.getTeamLogoSrc("homeTeam"),alt:""},null,8,ARt)]),t.createElementVNode("div",MRt,[t.createElementVNode("img",{src:_.getTeamLogoSrc("awayTeam"),alt:""},null,8,IRt)])])]),(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events",key:`tlk-${W.gameEvents.length}`},[o.gameData.status!==4||o.gameData.is_live?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:0,name:W.transitionName,tag:"div"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_.gameEventsToShow,(v,h)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:v.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${h}`,class:t.normalizeClass(_.getGameEventClassAndSetIcon(v,h))},[t.createElementVNode("div",{class:t.normalizeClass(_.getEventContainerClass(v))},[t.createVNode(g,{"game-event":v,"is-mobile":_.isMobile,"time-line-width":W.timeLineWidth,width:_.gameEventWidth,"can-play-videos":o.canPlayVideos,onEventHeight:n=>_.updateContainerHeight(n,h),onPlayerChanged:s[0]||(s[0]=n=>e.$emit("player-changed",n)),onThumbnailClick:_.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","can-play-videos","onEventHeight","onThumbnailClick"])],2),h>0?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:`gameEventLine${h}`,class:"line"},null,512)):t.createCommentVNode("",!0),o.gameData.status===1&&h===_.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",PRt,zRt)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",ORt,"Aún no comienza el partido"))]))],512),t.createVNode(a,{data:W.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",FRt,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:W.dataVideo.link,format:"video/mp4"},null,8,NRt)])])]),_:1},8,["data"])],64)}const RRt=c_(kRt,[["render",DRt],["__scopeId","data-v-2574e576"]]),VRt={class:"game-time-line__options"},jRt={class:"game-time-line__timeline"},$Rt={__name:"GSC-GameTimeLine",props:{game:{type:Object,default:()=>({id:79601,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,homeTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/18.png",team_id:18,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/1.png",team_id:1,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},setup(e){sG.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const s=t.ref({width:"103px",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"}),o=t.ref({width:"auto",height:"30px",padding:"0px 20px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"});let O=null;const W=t.ref(["Todo","1er tiempo","2do tiempo"]),_=t.ref("Todo"),g=t.ref({}),a=t.ref(null),v=t.ref(0),h=t.computed(()=>{let u="all";return _.value==="1er tiempo"||_.value==="1er"?u="firstHalf":(_.value==="2do tiempo"||_.value==="2do")&&(u="secondHalf"),u}),n=t.computed(()=>v.value<500);function x(u){_.value=u}function y(u){g.value=u}function b(){if(window.ResizeObserver)O=new ResizeObserver(()=>{v.value=a.value.clientWidth}),O.observe(a.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{b()}),t.onBeforeUnmount(()=>{O&&O.unobserve(a.value)}),(u,r)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:a,class:"game-time-line"},[t.createElementVNode("div",VRt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value,i=>(t.openBlock(),t.createElementBlock("div",{key:i,class:"game-time-line__options__option"},[t.createVNode(rFt,t.mergeProps(v.value<390?o.value:s.value,{text:i=="Todo"?i:v.value<390?i.substring(0,3):i,"is-active":_.value===i,onClick:d=>x(i)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",jRt,[t.createVNode(RRt,{"game-data":e.game,"time-line-period":h.value,"is-mobile":n.value,socket:e.socket,"can-play-videos":e.canPlayVideos,onGameEventsByPeriodFilled:y},null,8,["game-data","time-line-period","is-mobile","socket","can-play-videos"])])],512))}},URt=c_($Rt,[["__scopeId","data-v-3596be52"]]),hKt="",AG=e=>(t.pushScopeId("data-v-d01068c0"),e=e(),t.popScopeId(),e),GRt={class:"game-data__header"},HRt={class:"game-data__header__tournament-season-dropdown"},WRt={class:"game-data__header__teams-carousel"},qRt={class:"game-data__body"},YRt={key:0,class:"no-stats-container"},ZRt=[AG(()=>t.createElementVNode("div",{class:"no-stats-content"},[t.createElementVNode("h2",{class:"no-stats-title"}," Este partido se publicará en un plazo de hasta 72 horas después de finalizada la jornada. ")],-1))],XRt={key:1,class:"no-stats-container-mobile"},JRt=[AG(()=>t.createElementVNode("div",{class:"no-stats-content"},[t.createElementVNode("h2",{class:"no-stats-title"}," Este partido se publicará en un plazo de hasta 72 horas después de finalizada la jornada. ")],-1))],KRt={class:"game-data__body__menu"},QRt={class:"game-data__body__menu__contmenuswitch"};vu.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const eVt=t.defineComponent({name:"GSC-GameData",components:{StatisticsMain:Fle,GSCGameTimeLine:URt,GscSwitchComponent:O7,GSCLineupsMain:w3e,GSCPositining:j2t,GSCDatosGSMain:bCe,GSCVideoGame:KRe,ModalEvents:YO,GSCTacticaFijaMain:nFt,GSCProminentMain:xlt,GSCComparative:tht}}),tVt=Ji(Object.assign(eVt,{props:{tournamentsApiUrl:{type:String,default:""},areFemaleTournamentsVisible:{type:Boolean,default:!0},currentSeasonId:{type:Number,default:0},isClubes:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},socket:{type:Object,default:()=>null},isSynchronization:{type:Boolean,default:!1},isTeamGamePerPage:{type:Boolean,default:!1},clientPrivilegesBySeasons:{type:Object,default:()=>null},areTournamentAndSeasonSelectsVisible:{type:Boolean,default:!0},disabledSectionsIds:{type:Array,default:()=>[]},tournamentsIdsToInclude:{type:Set,default:()=>new Set},volumetricFieldIntervalMinutes:{type:Number,default:2},chalkboardIntervalMinutes:{type:Number,default:2},gameEventsIntervalMinutes:{type:Number,default:1}},emits:["openmedia","change-season-id","onOpenProfile","openProfileTeam","openProfilePlayer"],setup(e,{emit:s}){const o=e,O=x4();let W=null;zd.on("socket-connected",()=>{O.commit("nextGeneral/updateIsSocketConnected",o.socket.connected)});const _=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),g=t.ref({season:[]}),a=t.ref({}),v=t.ref(!1),h=t.ref({}),n=t.ref(1),x=t.ref(0),y=3e4,b=3e4,u=3e4,r=3e4,i=3e4,d=3e4,l=3e4,p=3e4,m=6e4,w=t.ref(null),T=t.ref(null),A=t.ref(null),C=t.ref([]),P=t.ref(null),B=t.ref(!0),E=t.ref(new Set([1,2])),I=t.ref({}),M=t.ref({minute:"",recent_lapse:0,score:{}}),S=t.ref(0),L=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),k=t.ref(o.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:o.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:4},{componentName:"GSCComparative",name:o.isWidget?"Destacados":"Comparativa",id:3},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),z=t.ref(o.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:o.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:o.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),N=t.ref(o.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:o.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:o.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);t.ref(o.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:o.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:o.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);const V=t.ref(0);let $=null;const G=t.ref(null),U=t.ref(0),J=t.ref(z.value[0]),ae=t.ref([]);let Y=t.ref("");const te={seasonAndPrivileges:null,canPrivilegesTeamPlayVideos:!1,homeTeamDetails:{canPlayVideos:!1,team:{}},awayTeamDetails:{canPlayVideos:!1,team:{}}},ee=t.computed(()=>{const Ke=[];return a.value&&a.value.id&&(Ke.push({id:a.value.id,name:a.value.name,type:a.value.type}),a.value.related_seasons&&a.value.related_seasons.forEach(dt=>{Ke.push({id:dt.id,type:dt.type})})),Ke}),X=t.computed(()=>{if(o.clientPrivilegesBySeasons){const Ke=o.clientPrivilegesBySeasons.seasonsAndPrivileges.get(a.value.id);if(Ke)return Ke.teamId}return 0});function K(){v.value=!1}function ce(Ke){const dt=Ke.split(",");return!(dt.length<2||dt[1].split(" ").length<2)}function de(Ke){w.value=Ke}function he(Ke){C.value.push(Ke)}function pe(Ke){P.value=Ke}function re(Ke){A.value=Ke}function le(Ke){T.value=Ke}function se(Ke){if(!ce(Ke))return"";const dt=_e(Ke);return`${me(Ke)}. ${dt}`}function me(Ke){return Ke.split(",")[1].split(" ")[1][0]}function _e(Ke){const dt=Ke.split(",")[0].split(" ");return dt[0].length<=3&&dt.length>1?`${dt[0]} ${dt[1]}`:dt[0]}async function ye(Ke){try{const dt=vu.create({headers:{Authorization:`${_.value}`}});I.value={};const vt=await dt.get("https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/"+Ke.game_id);if(I.value[Ke.home_team.team_id]=[],I.value[Ke.home_team.team_id].team={name:Ke.home_team.acronym,logo:Ke.home_team.logo},I.value[Ke.home_team.team_id].goals=[],I.value[Ke.home_team.team_id].red=[],I.value[Ke.home_team.team_id].yellow=[],I.value[Ke.visiting_team.team_id]=[],I.value[Ke.visiting_team.team_id].team={name:Ke.visiting_team.acronym,logo:Ke.visiting_team.logo},I.value[Ke.visiting_team.team_id].goals=[],I.value[Ke.visiting_team.team_id].red=[],I.value[Ke.visiting_team.team_id].yellow=[],vt.data.minute!=null&&(M.value={minute:vt.data.minute,recent_lapse:vt.data.recent_lapse,score:vt.data.score}),vt.data.plays)for(let _t=0;_t<vt.data.plays.length;_t++)vt.data.plays[_t].category_name=="Roja"&&vt.data.plays[_t].status==1&&(Ke.home_team.team_id==vt.data.plays[_t].team_id?(se(vt.data.plays[_t].player_name)in I.value[Ke.home_team.team_id].red||(I.value[Ke.home_team.team_id].red[se(vt.data.plays[_t].player_name)]={},I.value[Ke.home_team.team_id].red[se(vt.data.plays[_t].player_name)].event=[],I.value[Ke.home_team.team_id].red[se(vt.data.plays[_t].player_name)].name=se(vt.data.plays[_t].player_name)),I.value[Ke.home_team.team_id].red[se(vt.data.plays[_t].player_name)].event.push(vt.data.plays[_t].minute)):(se(vt.data.plays[_t].player_name)in I.value[Ke.visiting_team.team_id].red||(I.value[Ke.visiting_team.team_id].red[se(vt.data.plays[_t].player_name)]={},I.value[Ke.visiting_team.team_id].red[se(vt.data.plays[_t].player_name)].event=[],I.value[Ke.visiting_team.team_id].red[se(vt.data.plays[_t].player_name)].name=se(vt.data.plays[_t].player_name)),I.value[Ke.visiting_team.team_id].red[se(vt.data.plays[_t].player_name)].event.push(vt.data.plays[_t].minute))),vt.data.plays[_t].category_name=="Amarilla"&&vt.data.plays[_t].status==1&&(Ke.home_team.team_id==vt.data.plays[_t].team_id?(se(vt.data.plays[_t].player_name)in I.value[Ke.home_team.team_id].yellow||(I.value[Ke.home_team.team_id].yellow[se(vt.data.plays[_t].player_name)]={},I.value[Ke.home_team.team_id].yellow[se(vt.data.plays[_t].player_name)].event=[],I.value[Ke.home_team.team_id].yellow[se(vt.data.plays[_t].player_name)].name=se(vt.data.plays[_t].player_name)),I.value[Ke.home_team.team_id].yellow[se(vt.data.plays[_t].player_name)].event.push(vt.data.plays[_t].minute)):(se(vt.data.plays[_t].player_name)in I.value[Ke.visiting_team.team_id].yellow||(I.value[Ke.visiting_team.team_id].yellow[se(vt.data.plays[_t].player_name)]={},I.value[Ke.visiting_team.team_id].yellow[se(vt.data.plays[_t].player_name)].event=[],I.value[Ke.visiting_team.team_id].yellow[se(vt.data.plays[_t].player_name)].name=se(vt.data.plays[_t].player_name)),I.value[Ke.visiting_team.team_id].yellow[se(vt.data.plays[_t].player_name)].event.push(vt.data.plays[_t].minute))),vt.data.plays[_t].event_type_name=="Gol"&&vt.data.plays[_t].status==1&&(Ke.home_team.team_id==vt.data.plays[_t].team_id?vt.data.plays[_t].category_name=="Autogol"?(se(vt.data.plays[_t].player_name)in I.value[Ke.visiting_team.team_id].goals||(I.value[Ke.visiting_team.team_id].goals[se(vt.data.plays[_t].player_name)]={},I.value[Ke.visiting_team.team_id].goals[se(vt.data.plays[_t].player_name)].event=[],I.value[Ke.visiting_team.team_id].goals[se(vt.data.plays[_t].player_name)].name=se(vt.data.plays[_t].player_name)),I.value[Ke.visiting_team.team_id].goals[se(vt.data.plays[_t].player_name)].event.push(vt.data.plays[_t].minute)):(se(vt.data.plays[_t].player_name)in I.value[Ke.home_team.team_id].goals||(I.value[Ke.home_team.team_id].goals[se(vt.data.plays[_t].player_name)]={},I.value[Ke.home_team.team_id].goals[se(vt.data.plays[_t].player_name)].event=[],I.value[Ke.home_team.team_id].goals[se(vt.data.plays[_t].player_name)].name=se(vt.data.plays[_t].player_name)),I.value[Ke.home_team.team_id].goals[se(vt.data.plays[_t].player_name)].event.push(vt.data.plays[_t].minute)):vt.data.plays[_t].category_name=="Autogol"?(se(vt.data.plays[_t].player_name)in I.value[Ke.home_team.team_id].goals||(I.value[Ke.home_team.team_id].goals[se(vt.data.plays[_t].player_name)]={},I.value[Ke.home_team.team_id].goals[se(vt.data.plays[_t].player_name)].event=[],I.value[Ke.home_team.team_id].goals[se(vt.data.plays[_t].player_name)].name=se(vt.data.plays[_t].player_name)),I.value[Ke.home_team.team_id].goals[se(vt.data.plays[_t].player_name)].event.push(vt.data.plays[_t].minute)):(se(vt.data.plays[_t].player_name)in I.value[Ke.visiting_team.team_id].goals||(I.value[Ke.visiting_team.team_id].goals[se(vt.data.plays[_t].player_name)]={},I.value[Ke.visiting_team.team_id].goals[se(vt.data.plays[_t].player_name)].event=[],I.value[Ke.visiting_team.team_id].goals[se(vt.data.plays[_t].player_name)].name=se(vt.data.plays[_t].player_name)),I.value[Ke.visiting_team.team_id].goals[se(vt.data.plays[_t].player_name)].event.push(vt.data.plays[_t].minute)))}catch(dt){return Promise.reject(dt)}}function xe(Ke){v.value=!0,Ke.is_live!=1&&Ke.game_status!=0&&(Ke.game_status==4||Object.keys(Ke.minutes).length>0)?(S.value=1,I.value={plays:Ke.minutes,home_team:Ke.home_team,visiting_team:Ke.visiting_team}):(S.value=0,ye(Ke))}function Ee(){$=new ResizeObserver(Ke=>{for(const dt of Ke)U.value=dt.contentRect.width}),$.observe(G.value)}const Ce=t.computed(()=>{let Ke={};return h.value&&h.value.game_id&&(Ke={gameId:h.value.game_id,id:h.value.game_id,seasonId:h.value.season_id,regularSeasonId:h.value.regularSeasonId,matchday_name:h.value.matchday_name,status:h.value.game_status,score:h.value.score,game_status:h.value.game_status,dateTimeUTC:h.value.date_time_utc,homeTeam:h.value.home_team,awayTeam:h.value.visiting_team,is_live:h.value.is_live,minutes:h.value.minutes}),Ke});t.watch(()=>h.value.game_id,Pe,{immediate:!0}),t.watch(()=>h.value.is_live,Le,{immediate:!0}),t.watch(()=>O.state.nextGeneral.gameForAnalysis,()=>{O.commit("nextGeneral/updateIsSocketConnected",o.socket.connected)},{deep:!0,immediate:!0});function Te(Ke){n.value=Ke.is_captured,x.value=Ke.is_female,B.value=Ke.is_captured!==0,g.value.id!==Ke.id&&(g.value=Ke,O.commit("gameGlobal/setTournamentType",Ke.tournament_type))}function Pe(Ke,dt){O.commit("nextGeneral/updateShowLiveData",!0);const vt=x.value?"Destacados":"Destacadas";z.value.forEach(_t=>{_t.name===vt&&(_t.name=x.value?"Destacadas":"Destacados")}),ye({game_id:h.value.game_id,home_team:h.value.home_team,visiting_team:h.value.visiting_team}),Ie(),V.value+=1}function Le(Ke,dt){if(Ie(),O.state.nextGeneral.gameForAnalysis.is_live!==Ke&&O.commit("nextGeneral/updateGameForAnalysis",{...O.state.nextGeneral.gameForAnalysis,is_live:h.value.is_live,game_status:h.value.game_status}),Ke){const vt=n6();vt.disconnected?a6():vt.connected&&QE(`game.${h.value.game_id}.v2`),Ve(),W=setInterval(()=>{S.value=0,ye({game_id:h.value.game_id,home_team:h.value.home_team,visiting_team:h.value.visiting_team})},6e4)}else Ve(),r6();Ke!==dt&&(V.value+=1)}function Ve(){W&&clearInterval(W)}function Ie(){z.value=[],h.value.is_live||h.value.game_status===4?z.value=[...k.value]:z.value=[...N.value],o.isWidget||((a.value.is_tactic_available===0||h.value.is_live||h.value.game_status===0)&&z.value.pop(),h.value.has_tracking===1&&!(h.value.is_live||h.value.game_status===4)&&z.value.push({componentName:"GSCPositining",name:"Posicionamiento",id:8})),J.value=z.value[0]}function De(Ke){Ke.gameSeasonId=h.value.season_id,Ke.gameRegularSeasonId=h.value.regularSeasonId,!(!Ke.auxwidget&&Xe.value&&!Xe.value.canPrivilegesTeamPlayVideos)&&((h.value.is_live||h.value.game_status===0||h.value.game_status===1)&&(Ke.gameIdsToFilter=[h.value.game_id]),Ke.isLiveAccumulated&&(Ke.gameIdsToFilter=null),(h.value.is_live||h.value.game_status===0)&&!Ke.isLiveAccumulated&&(Ke.liveGameConfig={gameId:h.value.game_id}),s("openmedia",Ke))}function Be(Ke){s("onOpenProfile",Ke)}function ge(Ke){s("openProfileTeam",Ke)}function Me(Ke){s("openProfilePlayer",Ke)}function we(Ke){Re(Ke),Ke=="Estadísticas"&&(Y.value="Comparativa")}function $e(){Y.value=""}function Oe(Ke){a.value.id!==Ke.id&&(a.value=Ke,s("change-season-id",Ke.id))}const je=t.computed(()=>z.value.reduce((Ke,dt)=>(o.disabledSectionsIds.includes(dt.id)||Xe.value&&!Xe.value.isVideoTabVisible&&dt.id===2||o.clientPrivilegesBySeasons&&dt.id===7||(B.value||dt.id!==5&&dt.id!==6)&&Ke.push(dt.name),Ke),[]));function We(Ke){if(h.value.is_live||h.value.game_status===1||h.value.game_status===0){const dt=Ke.playingAs.has(h.value.playingAs);return o.clientPrivilegesBySeasons.canPlayVideos&&dt}else{const dt=ke.value.filter(vt=>Ke.playingAs.has(vt.playingAs));return o.clientPrivilegesBySeasons.canPlayVideos&&dt.length>0}}const Xe=t.computed(()=>{if(o.clientPrivilegesBySeasons){if(a.value&&h.value&&h.value.game_id){const Ke=o.clientPrivilegesBySeasons.seasonsAndPrivileges.get(a.value.id);if(Ke)if(Ne(Ke.playingAs),(h.value.is_live||h.value.game_status===1||h.value.game_status===0)&&O.state.nextGeneral.showLiveData){const dt=Ke.playingAs.has(h.value.playingAs);return{seasonAndPrivileges:Ke,canPrivilegesTeamPlayVideos:o.clientPrivilegesBySeasons.canPlayVideos&&dt,isPrivilegesTeamOnly:!1,isPrivilegesTeamHome:h.value.home_team.team_id===Ke.teamId,homeTeamDetails:{canPlayVideos:dt,team:h.value.home_team},awayTeamDetails:{canPlayVideos:dt,team:h.value.visiting_team},isVideoTabVisible:We(Ke)}}else{const dt=h.value.home_team.team_id===Ke.teamId,vt=ke.value.filter(Rt=>Ke.playingAs.has(Rt.playingAs));return{seasonAndPrivileges:Ke,canPrivilegesTeamPlayVideos:o.clientPrivilegesBySeasons.canPlayVideos&&vt.length>0,isPrivilegesTeamOnly:!0,isPrivilegesTeamHome:dt,homeTeamDetails:{canPlayVideos:o.clientPrivilegesBySeasons.canPlayVideos&&dt&&vt.length>0,team:h.value.home_team},awayTeamDetails:{canPlayVideos:o.clientPrivilegesBySeasons.canPlayVideos&&!dt&&vt.length>0,team:h.value.visiting_team},isVideoTabVisible:We(Ke)}}Ne(new Set)}return te}return null}),ke=t.computed(()=>{if(o.clientPrivilegesBySeasons){if(a.value){const Ke=o.clientPrivilegesBySeasons.seasonsAndPrivileges.get(a.value.id);if(Ke)return ae.value.filter(dt=>dt.game_status===1&&Ke.playingAs.has(dt.playingAs))}return[]}return[]});t.watch(je,()=>{Xe.value&&!Xe.value.canPrivilegesTeamPlayVideos&&(J.value.id===2||J.value.id===7||J.value.id===8)&&Re("Resumen")},{deep:!0,immediate:!0});function Ne(Ke){E.value=Ke}function Re(Ke){if(O.commit("nextGeneral/updateShowLiveData",!0),w.value!=null&&(clearInterval(w.value),w.value=null),T.value!=null&&(clearInterval(T.value),T.value=null),A.value!=null&&(clearInterval(A.value),A.value=null),P.value!=null&&(clearInterval(P.value),P.value=null),C.value.length>0){for(let dt of C.value)clearInterval(dt);C.value=[]}o.isWidget?J.value=z.value.find(dt=>dt.name===Ke)||z.value[1]:J.value=z.value.find(dt=>dt.name===Ke)||z.value[0]}t.onMounted(()=>{Ee(),t.nextTick(()=>{o.isSynchronization&&Re("Táctica Fija")})}),t.onBeforeUnmount(()=>{if($&&$.disconnect(),w.value!=null&&(clearInterval(w.value),w.value=null),T.value!=null&&(clearInterval(T.value),T.value=null),A.value!=null&&(clearInterval(A.value),A.value=null),P.value!=null&&(clearInterval(P.value),P.value=null),C.value.length>0){for(let Ke of C.value)clearInterval(Ke);C.value=[]}i6()});function He(Ke){if(Ke.playingAs||(Ke.playingAs=X.value?Ke.home_team.team_id===X.value?1:2:0),w.value!=null&&(clearInterval(w.value),w.value=null),T.value!=null&&(clearInterval(T.value),T.value=null),A.value!=null&&(clearInterval(A.value),A.value=null),P.value!=null&&(clearInterval(P.value),P.value=null),C.value.length>0){for(let dt of C.value)clearInterval(dt);C.value=[]}h.value=Ke,Ke.is_live&&Ke.game_status===4?a6():r6()}function tt(Ke){ae.value=Ke.map(dt=>{const vt={...dt};return X.value&&(vt.playingAs=vt.home_team.team_id===X.value?1:2),vt})}return(Ke,dt)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:G},[t.createElementVNode("div",GRt,[t.withDirectives(t.createElementVNode("div",HRt,[t.createVNode(t.unref(QT),{"current-season-id":e.currentSeasonId,"tournaments-ids-to-include":e.tournamentsIdsToInclude,"api-url":e.tournamentsApiUrl,"list-height":"370px","are-female-visible":e.areFemaleTournamentsVisible,"is-clubes-active":e.isClubes,onInput:Te,onChangeTournaments:Te},null,8,["current-season-id","tournaments-ids-to-include","api-url","are-female-visible","is-clubes-active"]),t.createVNode(t.unref(nC),{"current-season-id":e.currentSeasonId,"list-height":"370px",seasons:g.value.seasons,onInput:Oe},null,8,["current-season-id","seasons"])],512),[[t.vShow,e.areTournamentAndSeasonSelectsVisible]]),t.createElementVNode("div",WRt,[t.createVNode(t.unref(cK),{"plays-live":I.value,"info-live":M.value,token:L.value,is_captured:n.value,"await-for-seasons":"",seasons:ee.value,"is-pagination-visible":!1,"are-games-carousel-type":"","default-game-id":e.defaultGameId,"sort-calendar":e.sortCalendar,"is-team-game-per-page":e.isTeamGamePerPage,"client-privileges-team-id":X.value,"only-games-team-id":X.value,"tournament-type":t.unref(O).state.gameGlobal.tournamentType,onChangeGameCarousel:He,onOpenModalEvent:xe,onChangeGamesByClientPrivileges:tt},null,8,["plays-live","info-live","token","is_captured","seasons","default-game-id","sort-calendar","is-team-game-per-page","client-privileges-team-id","only-games-team-id","tournament-type"])])]),v.value?(t.openBlock(),t.createBlock(YO,{key:0,width:U.value,onCloseModalEventsLive:K,plays:I.value,game:h.value,type:S.value},null,8,["width","plays","game","type"])):t.createCommentVNode("",!0),t.createElementVNode("div",qRt,[h.value&&"live_stats"in h.value&&h.value.live_stats==0&&h.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[U.value>500?(t.openBlock(),t.createElementBlock("div",YRt,ZRt)):(t.openBlock(),t.createElementBlock("div",XRt,JRt))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",KRt,[t.createElementVNode("div",QRt,[t.createVNode(t.unref(O7),{type:2,buttons:je.value,"font-family":"Poppins-Regular","font-size":"16px",width:U.value<400||U.value<700?"max-content":U.value<840||U.value<1050?"155px":"165px","selected-option":J.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:Re},null,8,["buttons","width","selected-option"])])]),Ce.value&&Ce.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(J.value.componentName),{key:V.value,game:Ce.value,"is-widget":e.isWidget,"team-widget":e.teamWidget,onIntervalidpossesion:le,onIntervalidhighlive:re,onIntervalidtops:he,onIntervalidgs:pe,subsection:t.unref(Y),seasonSelected:a.value,tournamentSelected:g.value,showLineups:B.value,socket:e.socket,"time-live-prominent-data":y,"time-live-highlights-prominent-and-video":b,"time-live-possesion":u,"time-live-video-goals":r,"time-live-video-best-plays":i,"time-live-video-this-game":d,"time-live-video-specific-plays":l,"time-live-comparative-best-players":p,"time-live-comparative-avanced":m,is_captured:n.value,"is-tactic-visible":!!a.value.show_tactic,"is-synchronization":e.isSynchronization,"can-play-videos":Xe.value?Xe.value.canPrivilegesTeamPlayVideos:!0,"video-privileges-playing-as":E.value,"client-privileges-team-id":X.value,"play-videos-privileges":Xe.value,token:L.value,"game-events-interval-minutes":e.gameEventsIntervalMinutes,"volumetric-field-interval-minutes":e.volumetricFieldIntervalMinutes,"chalkboard-interval-minutes":e.chalkboardIntervalMinutes,onResetSubsection:$e,onOpenmedia:De,onOnOpenProfile:Be,onOpenProfileTeam:ge,onOpenProfilePlayer:Me,onChangeToTab:we,onOpenMediaPlayer:De,onIntervalid:de},null,40,["game","is-widget","team-widget","subsection","seasonSelected","tournamentSelected","showLineups","socket","is_captured","is-tactic-visible","is-synchronization","can-play-videos","video-privileges-playing-as","client-privileges-team-id","play-videos-privileges","token","game-events-interval-minutes","volumetric-field-interval-minutes","chalkboard-interval-minutes"])):t.createCommentVNode("",!0)],64))])],512))}}),[["__scopeId","data-v-d01068c0"]]);async function Th({url:e,options:s={},retries:o=3}){return await vu.get(e,s).then(O=>O).catch(O=>o>0?Th({url:e,options:s,retries:o-1}):O)}async function MG({seasonId:e},s=!0){try{return(await(await fetch(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`)).json()).data}catch(o){if(s)return MG({seasonId:e},!1);throw new Error(o)}}async function nVt({seasonId:e}){try{return(await Th({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(s){return Promise.reject(s)}}async function aVt({seasonId:e}){try{return(await Th({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(s){return Promise.reject(s)}}function rVt(e,s,o,O,W,_,g=!1){const a=o.map(v=>v===1?2:v===2?1:3);return e.filter(v=>{const h=_&&v[W.teamId]?v[W.teamId]!==_:!1,n=s===1?2:1;return(g||O.includes(v[W.gameId]))&&(!s||(h?n:s)===v[W.playingAs])&&(o.includes(v[W.matchResult])&&v[W.teamId]===_||a.includes(v[W.matchResult])&&v[W.teamId]!==_)})}function IG(e,s,o,O,W){return s.length===2&&o.length===3&&O.length===6?e:e.filter(_=>s.includes(_[W.playingAs])&&o.includes(_[W.matchResult])&&O.includes(_[W.section]))}async function PG({seasonId:e}){try{const s=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await Th({url:s})).data}catch(s){return Promise.reject(s)}}async function iVt({seasonId:e,gameId:s}){try{const o=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${s}`,{data:O}=await Th({url:o});return O}catch(o){return Promise.reject(o)}}async function oVt({gameId:e}){try{const s=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await Th({url:s})).data.data}catch(s){return Promise.reject(s)}}async function sVt({gameId:e}){try{const s=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await Th({url:s})).data.data||[]}catch(s){return Promise.reject(s)}}const lVt=["categoryId","matchLapse","section","matchResult","playingAs","total"];let FT=null;function BG(){return FT||(FT=yy(lVt)),FT}async function cVt(e){try{const s=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await Th({url:s})).data}catch(s){return Promise.reject(s)}}async function LG({seasonId:e,teamId:s}){try{return await Th({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${s}`})}catch(o){return Promise.reject(o)}}async function uVt(e){try{const s=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await Th({url:s})}catch(s){return Promise.reject(s)}}async function dVt(e){try{return await Th({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(s){return Promise.reject(s)}}const hVt={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,s,o,O){return rVt(e.seasonPlays,O["filterGeneral/getPlayingAs"],O["filterGeneral/getResults"],O["filterGeneral/getSelectedGamesIds"],BG(),O["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const s=e.currentSeasonGames.reduce((o,O)=>{const W={...O};return W.home_team=e.currentSeasonTeams.find(_=>_.team_id===O.home_team),W.visiting_team=e.currentSeasonTeams.find(_=>_.team_id===O.visiting_team),o[O.matchday_abbreviation]?o[O.matchday_abbreviation][O.game_status===3?"canceled":O.date]?o[O.matchday_abbreviation][O.game_status===3?"canceled":O.date].push(W):o[O.matchday_abbreviation][O.game_status===3?"canceled":O.date]=[W]:o[O.matchday_abbreviation]={[O.game_status===3?"canceled":O.date]:[W]},o},{});for(let[o,O]of Object.entries(s))s[o]=Object.entries(O).map(([W,_])=>({date:W,games:_})),s[o].sort((W,_)=>W.date<_.date?-1:W.date>_.date?1:0);return s},matchdaysDates(e,s){let o=[];if(s.nextGamesSchedule){let O=Object.keys(s.nextGamesSchedule);for(let W of O){let _=Number(W.replace("M","")),g=s.nextGamesSchedule[W].map(a=>({matchday:_,date:new Date(a.date)}));o=o.concat(g)}}return o},closestMatchDay(e,s){let o=new Date,O=0,W=-new Date(0,0,0).valueOf(),_=s.matchdaysDates,g=_.length;for(let a=0;a<_.length;a++)O=Math.abs(_[a].date-o),O<W&&(g=a,W=O);return _[g]?_[g].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,s){e.booleanIsLiveGamesModalOpen=s},setBooleanAreLiveGames(e,s){e.booleanAreLiveGames=s},updateSeasonPlays(e,s){e.seasonPlays=s},updateCurrentSeasonTeams(e,s){e.currentSeasonTeams=s},updateCurrentSeasonGames(e,s){e.currentSeasonGames=s},updateSelectedRound(e,s){e.selectedRound=s}},actions:{async getSeasonPlays({commit:e,rootGetters:s},o=!1){try{const O=await MG({seasonId:s["filterGeneral/getSeasonId"]});if(o)return O;e("updateSeasonPlays",O)}catch(O){return Promise.reject(O)}},async getCurrentSeasonGames({commit:e,rootGetters:s}){try{const o=await PG({seasonId:s["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",o)}catch(o){return Promise.reject(o)}},async getCurrentSeasonTeams({commit:e,rootGetters:s}){try{const o=await cVt({seasonId:s["loginGeneral/seasonId"]});e("updateCurrentSeasonTeams",o.teams)}catch(o){return Promise.reject(o)}},async isDataFilled({state:e,dispatch:s,commit:o}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return o("setIsSectionLoading",!1,{root:!0}),!0;const O=[void 0,void 0];return e.currentSeasonGames.length===0&&(O[0]=s("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(O[1]=s("getCurrentSeasonTeams")),await Promise.all(O),!1}catch(O){throw new Error(O)}}}}};async function pVt({filter:e}){try{const s=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:o}=await Th({url:s});return o}catch(s){return Promise.reject(s)}}const fVt=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let NT=null;function mVt(){return NT||(NT=yy(fVt)),NT}class q5{constructor(){gu(this,"maximumLiveSection",1);gu(this,"accomplished",{totalPostGame:0,avgPostGame:0,avgPreGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{},arrayRankings:[]});gu(this,"received",{totalPostGame:0,avgPostGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{}})}setMaximumLiveSection(s){s>this.maximumLiveSection&&(this.maximumLiveSection=s)}getZeroTotalsTrendSections(){return[0,0,0,0,0,0]}resetTotals(){this.accomplished.totalPostGame=0,this.accomplished.avgPostGame=0,this.received.totalPostGame=0,this.received.avgPostGame=0,this.accomplished.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections()}resetTotalsLive(){this.accomplished.totalLive=0,this.received.totalLive=0,this.accomplished.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections()}increaseAccomplishedByOne(s,o,O){O&&(this.setMaximumLiveSection(s),this.accomplished.totalLive+=o,this.accomplished.totalsLiveTrendLive.sections[s-1]+=o,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,s,o)),this.accomplished.totalPostGame+=o,this.accomplished.avgPostGameTrendLive.sections[s-1]+=o,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,s,o)}increaseReceivedByOne(s,o,O){O&&(this.setMaximumLiveSection(s),this.received.totalLive+=o,this.received.totalsLiveTrendLive.sections[s-1]+=o,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,s,o)),this.received.totalPostGame+=o,this.received.avgPostGameTrendLive.sections[s-1]+=o,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,s,o)}increaseTrendLiveAccumulatedByOne(s,o,O){for(let W=o-1;W<s.accumulated.length;W++)s.accumulated[W]+=O}decreaseAccomplishedLiveByOne(s,o){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=o),this.accomplished.totalsLiveTrendLive.sections[s-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[s-1]-=o,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,s,o))}decreaseReceivedLiveByOne(s,o){this.received.totalLive>0&&(this.received.totalLive-=o),this.received.totalsLiveTrendLive.sections[s-1]>0&&(this.received.totalsLiveTrendLive.sections[s-1]-=o,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,s,o))}decreaseTotalsLiveTrendLiveAccumulatedByOne(s,o,O){for(let W=s.accumulated.length-1;W>=o-1;W--)s.accumulated[W]-=O}calculateAvg(s){s&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/s,this.received.avgPostGame=this.received.totalPostGame/s,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,s),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,s),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,s),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,s))}getAvgPostGameTrendLiveAvg(s,o){return s.map(O=>O/o)}calculateRanking(s,o,O,W,_,g,a,v){let h=[];W===3&&s&&s.length&&(O.playingAs.length!==2||O.matchResult.length!==3)?h=Array.from(s.reduce((x,y)=>{const b=y[o.playingAs]===1,u=b?"1":"2",r=x.get(y[o.gameId]);if(r)r[u]?r[u].arrayPlays.push(y):r[u]={numberTeamId:y[o.teamId],arrayPlays:[y]};else{const i={numberMatchResult:y[o.matchResult]};b&&(i[1]={numberTeamId:y[o.teamId],arrayPlays:[y]}),x.set(y[o.gameId],i)}return x},new Map).values()).reduce((x,y)=>{const b=O.playingAs.length===2?"both":O.playingAs[0].toString();return(b==="both"&&(y[1].numberTeamId===O.teamId||y[2].numberTeamId===O.teamId)||b!=="both"&&y[b].numberTeamId===O.teamId)&&O.matchResult.includes(y.numberMatchResult)&&x.push(...y[1].arrayPlays,...y[2].arrayPlays),x},[]).filter(x=>O.sections.includes(x[o.section])):(h=s?[...s]:[],a&&s&&(h=s.filter(n=>O.playingAs.includes(n[o.playingAs])&&O.matchResult.includes(n[o.matchResult])&&O.sections.includes(n[o.section])))),this.setTeamRanking(h,W,o,O.teamId,g,"accomplished",v)}setTeamRanking(s,o,O,W,_,g,a){let v=null,h=null;o===3&&(v=new Map,h={},s.forEach(y=>{const b=v.get(y[O.gameId]);b?b[y[O.teamId.toString()]]?b[y[O.teamId.toString()]]+=y[O.total]:b[y[O.teamId.toString()]]=y[O.total]:v.set(y[O.gameId],{[y[O.teamId.toString()]]:y[O.total]})}),Array.from(v.values()).forEach(y=>{const[b,u]=Object.keys(y).map(i=>i),r=y[b]+y[u];this.addPassesAvgByTeam(h,b,r?y[b]/r:0),this.addPassesAvgByTeam(h,u,r?y[u]/r:0)}));const n=_.sort((y,b)=>y.team_id-b.team_id).map(y=>{if(o===3){const b=h[y.team_id.toString()];return{teamId:y.team_id,points:b?b.numberTotalPassesAvg/b.numberGamesCount:0,total:b?b.numberTotalPassesAvg:0}}else{const b=s.reduce((u,r)=>r[O.teamId]===y.team_id&&o===r[O.categoryId]?u+r[O.total]:u,0);return{teamId:y.team_id,points:y[`${a}FilterGames`]?b/y[`${a}FilterGames`]:0,total:b}}}).sort((y,b)=>b.points-y.points);this.accomplished.arrayRankings=n;const x=n.findIndex(y=>y.teamId===W);o===3&&(this.accomplished.avgPreGame=n[x].points),this[g].ranking=x+1,this[g].leader=n[0]}addPassesAvgByTeam(s,o,O){s[o]?(s[o].numberGamesCount+=1,s[o].numberTotalPassesAvg+=O):s[o]={numberGamesCount:1,numberTotalPassesAvg:O}}}class rc{constructor(s,o,O,W,_,g,a,v,h,n,x=!0){gu(this,"id","");gu(this,"generalId",0);gu(this,"name","");gu(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});gu(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});gu(this,"accomplishedCategoryIds",[]);gu(this,"receivedCategoryIds",[]);gu(this,"generalCategoriesIds",{accomplished:0,received:0});gu(this,"specialMention","");gu(this,"homeTeam",new q5);gu(this,"visitingTeam",new q5);gu(this,"isLeagueDataCalculated",!1);gu(this,"leagueAccomplishedMax",0);gu(this,"leagueReceivedMax",0);gu(this,"leagueAccomplishedAvg",0);gu(this,"leagueReceivedAvg",0);gu(this,"leagueAccomplishedAccumulator",0);gu(this,"leagueReceivedAccumulator",0);gu(this,"homeTeamType","homeTeam");gu(this,"visitingTeamType","visitingTeam");gu(this,"betOnly",!1);gu(this,"isPercent",!1);this.id=`${O.accomplished}-${O.received}`,this.accomplishedCategoryIds=s||[],this.receivedCategoryIds=o||[],this.generalCategoriesIds=O||{accomplished:0,received:0},this.name=W,this.names["0-0"]=W||"",this.names["1-1"]=_||"",this.names["0-1"]=g||"",this.names["1-0"]=a||"",this.generalId=v||0,this.betOnly=h||!1,this.isPercent=n||!1,this.isVisible=x}addLeaguePlays(s,o,O){s.length===0||!O||this.isLeagueDataCalculated||(s.forEach(W=>{this.isAccomplishedLeaguePlay(W[o.categoryId])&&(this.leagueAccomplishedAccumulator+=W[o.total]),this.isReceivedLeaguePlay(W[o.categoryId])&&(this.leagueReceivedAccumulator+=W[o.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*O)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*O)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(s,o,O){let W="-";for(const[_,g]of Object.entries(this.generalCategoriesIds))s===g&&(W=`${_==="accomplished"?"0":"1"}${W}`),o===g&&(W=`${W}${_==="accomplished"?"0":"1"}`);W.length===3&&(this.mentions[W]=O)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(s,o,O,W,_){!O||!_||s!==this.homeTeamType&&s!==this.visitingTeamType||(O.forEach(g=>{this.isAccomplishedPlay(g[W.categoryId])?this[s].increaseAccomplishedByOne(g[W.section],g[W.total]):this.isReceivedPlay(g[W.categoryId])&&this[s].increaseReceivedByOne(g[W.section],g[W.total])}),this[s].calculateAvg(_))}addLivePlay(s,o,O,W,_=!1,g=!1){(s===this.homeTeamType||s===this.visitingTeamType)&&O[W.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[s].increaseAccomplishedByOne(O[W.section],O[W.total],!0)}subtractLivePlay(s,o,O,W,_){(s===this.homeTeamType||s===this.visitingTeamType)&&(this.isAccomplishedPlay(O[W.categoryId])&&!_?this[s].decreaseAccomplishedLiveByOne(O[W.section],O[W.total]):this.isReceivedPlay(O[W.categoryId])&&_&&this[s].decreaseReceivedLiveByOne(O[W.section],O[W.total]))}isAccomplishedLeaguePlay(s){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(O=>s===O||`${s}_r`===O)}isReceivedLeaguePlay(s){return!!this.receivedCategoryIds.find(o=>s===o)}isAccomplishedPlay(s){return this.generalCategoriesIds.accomplished===s}isReceivedPlay(s){return this.generalCategoriesIds.received===s}calcRankingLeague(s,o,O,W,_,g=!1){this[this.homeTeamType].calculateRanking(s,o,O,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,_,g,this.homeTeamType),this[this.visitingTeamType].calculateRanking(s,o,W,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,_,g,this.visitingTeamType)}resetData(){this.homeTeam=new q5,this.visitingTeam=new q5,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(s){return this.generalCategoriesIds.accomplished===s||this.generalCategoriesIds.received===s}}const gVt={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new rc([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new rc([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new rc([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0,!1),yellowCards:new rc([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new rc([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new rc([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new rc([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new rc([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new rc([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new rc([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new rc([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new rc([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new rc([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new rc([208],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new rc([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new rc([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new rc([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new rc([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new rc([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new rc([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new rc([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new rc([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new rc([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new rc([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new rc([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new rc([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new rc([495],null,{accomplished:27,received:0},"Balones perdidos sin disputa","","","",1)}},stoppedBall:{name:"Balón parado",priority:5,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{freeKick44:new rc([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new rc([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new rc([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new rc([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new rc([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new rc([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new rc([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new rc([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new rc([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new rc([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new rc([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},yVt=[{parentAnalysis:[1,2,3],value:0,text:"Realizado",block:1},{parentAnalysis:[1,2,3],value:1,text:"Recibido",block:1},{parentAnalysis:[1],value:0,text:"Posesión",block:2},{parentAnalysis:[1,2],value:0,text:"Origen de gol realizado",block:3},{parentAnalysis:[1,2],value:1,text:"Origen de gol recibido",block:3}],vVt=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let DT=null;function _Vt(){return DT||(DT=yy(vVt)),DT}const bVt=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let RT=null;function xVt(){return RT||(RT=yy(bVt)),RT}function Y5(e,s,o){return[o.get(e[s.categoryId])||[],e[s.teamId],e[s.matchResult],e[s.playingAs],e[s.matchLapse],e[s.section],e[s.total]]}function zG(e){return[[1,1,e.local.win],[1,2,e.local.lose],[1,3,e.local.draw],[2,1,e.visit.win],[2,2,e.visit.lose],[2,3,e.visit.draw]]}function VT(e,s,o){let O=[...s];return e[o.categoryId]===2&&(O[0]=14),e[o.categoryId]===20&&(O[0]=15),[14,15].includes(O[0])?O:null}const wVt=n6(),kVt=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],SVt={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:BG(),indexesTSP:mVt(),indexesLS:_Vt(),indexesTLP:xVt(),nextGamesDataStructure:gVt,currentSeasonGames:[],currentSeasonTeams:[],gameForAnalysis:{},showPostMatch:!1,homeResultGame:null,awayResultGame:null,selectedAnalysis:{},selectedStatisticTypeBlock:1,gameId:null,game:{},games:[],homeTeamPlays:[],visitingTeamPlays:[],currentSeasonPlays:[],livePlays:new Map,totalSeasonFinishedGames:0,totalHomeTeamFinishedGames:0,totalVisitingTeamFinishedGames:0,homeGames:[],homeTeamInfo:{},awayTeamInfo:{},visitingGames:[],idAssetSelected:1,isLive:!1,menuOptionActive:"",showLiveData:!0,showAdvanceFilter:!1,homeTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},visitingTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},oldSeasonId:0,statistics:[],isRankingCalculating:!0,categoriesMap:new Map,defaultFilter:null,filterAux:null,betSubcategories:[],betDescription:{},regularSeasonName:"",betSubcategoriesObjects:[],currentTournamentName:"",toBackRouteName:"home"},getters:{betSubcategoriesIds(e){return e.betSubcategories.map(s=>s.id)},showPostMatchData:e=>e.showPostMatch,getHomeResultGame:e=>e.homeResultGame,getAwayResultGame:e=>e.awayResultGame,getSeasonId:e=>e.seasonId,getGameForAnalysis:e=>e.gameForAnalysis,isLive:e=>e.isLive,showLive:e=>e.gameForAnalysis.game_status===4&&e.gameForAnalysis.is_live,menuOptionActive:e=>e.menuOptionActive,showLiveData:e=>e.showLiveData,showAdvanceFilter:e=>e.showAdvanceFilter,idAssetSelected:e=>e.idAssetSelected,gameId:e=>e.gameId,game:e=>e.game,homeTeam(e){return e.homeTeamInfo},visitingTeam(e){return e.awayTeamInfo},rankingData(e){return e.statistics},homeTeamStatisticsType(e){return e.homeTeamFilter.statistics?"received":"accomplished"},visitingTeamStatisticsType(e){return e.visitingTeamFilter.statistics?"received":"accomplished"},subcategoryName(e){return`${e.homeTeamFilter.statistics}-${e.visitingTeamFilter.statistics}`},statisticsTypes(e){return yVt.filter(s=>s.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return IG(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return IG(e.visitingTeamPlays,e.visitingTeamFilter.playingAs,e.visitingTeamFilter.matchResult,e.visitingTeamFilter.sections,e.indexesTSP)},currentSeasonTeamsIds(e){return e.currentSeasonTeams.map(s=>s.team_id)},canFilledStructure(e){return e.homeTeamFilter.requiresPlaysFiltering||e.visitingTeamFilter.requiresPlaysFiltering},totalFilteredHomeGames(e){return e.homeGames.filter(s=>e.homeTeamFilter.playingAs.includes(s[0])).filter(s=>e.homeTeamFilter.matchResult.includes(s[1])).reduce((s,o)=>s+o[2],0)},totalFilteredVisitingGames(e){return e.visitingGames.filter(s=>e.visitingTeamFilter.playingAs.includes(s[0])).filter(s=>e.visitingTeamFilter.matchResult.includes(s[1])).reduce((s,o)=>s+o[2],0)},filledDataStructure(e,s){if(e.currentSeasonPlays)for(const o of Object.values(e.nextGamesDataStructure))for(const O of Object.values(o.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&O.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&O.visitingTeam.resetTotals(),O.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),O.addTeamPlays(O.homeTeamType,e.gameForAnalysis.home_team,s.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:s.totalFilteredHomeGames),O.addTeamPlays(O.visitingTeamType,e.gameForAnalysis.visiting_team,s.visitingTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:s.totalFilteredVisitingGames);return e.nextGamesDataStructure},arrayFilledDataSortedByPriority(e,s){return Object.values(s.filledDataStructure).sort((o,O)=>o.priority-O.priority)},statisticData(e,s){for(const o of Object.values(s.filledDataStructure))if(o.parentInfo.parentAnalysis.includes(e.selectedAnalysis.id)&&o.parentInfo.analysisTypeBlocks.includes(e.selectedStatisticTypeBlock))return o.subcategories;return{}},accomplished(e){return e.homeTeamFilter.statistics===0}},mutations:{updateGameForAnalysisByProps(e,s){for(const[o,O]of Object.entries(s))e.gameForAnalysis[o]=O},setCurrentTournamentName(e,s){e.currentTournamentName=s},setBetSubcategoriesObjects(e,s){e.betSubcategoriesObjects=s},setRegularSeasonName(e,s){e.regularSeasonName=s},setBetSubcategories(e,s){e.betSubcategories=s},setBetDescription(e,s){e.betDescription=s},setSeasonId(e,s){e.seasonId=Number(s)},setHome(e,s){e.homeTeamInfo=s},setAway(e,s){e.awayTeamInfo=s},setMenuOptionActive(e,s){e.menuOptionActive=s},setPastSeasonId(e,s){e.pastSeasonId=s},setUsePastSeasonId(e,s){e.usePastSeasonId=s,s&&(e.oldSeasonId=e.pastSeasonId)},updateShowPostMatchData(e,s){e.showPostMatch=s},setHomeResultGame(e,s){e.homeResultGame=s},setAwayResultGame(e,s){e.awayResultGame=s},updateIsSocketConnected(e,s){e.isSocketConnected=s,s&&e.gameForAnalysis.is_live&&e.gameForAnalysis.game_status===4&&QE(`game.${e.gameForAnalysis.game_id}.v2`)},updateCurrentSeasonTeams(e,s){e.currentSeasonTeams=s,e.currentSeasonTeams.forEach(o=>{o.playedGames=e.currentSeasonGames.reduce((O,W)=>{if(W.game_status===1&&(W.home_team===o.team_id||W.visiting_team===o.team_id)){const _=W.score[0]-W.score[1],g=W.home_team===o.team_id;O.push({playingAs:g?1:2,matchResult:_===0?3:g?_>0?1:2:_<0?1:2})}return O},[])})},updateCurrentSeasonGames(e,s){e.currentSeasonGames=s},updateGameId(e,s){e.gameId=s},updateGameForAnalysis(e,s){e.gameForAnalysis=s,e.isLive=!!s.is_live,e.homeTeamFilter.teamId=e.gameForAnalysis.home_team,e.visitingTeamFilter.teamId=e.gameForAnalysis.visiting_team},updateSelectedAnalysis(e,s){e.selectedAnalysis=s},updateShowLiveData(e,s){e.showLiveData=s},toggleAdvanceFilter(e){e.showAdvanceFilter=!e.showAdvanceFilter},updateIdAssetSelected(e,s){e.idAssetSelected=s},updateStats(e,s){e.currentSeasonPlays=s},updateFilterAux(e){e.filterAux||(e.filterAux={homeTeamFilter:{...e.homeTeamFilter},visitingTeamFilter:{...e.visitingTeamFilter}})},updateFilters(e,{filters:s,needsFormat:o=!1}){if(o){if(!s||!s.local||!s.local.statistics||!s.visit||!s.visit.statistics)return;e.homeTeamFilter=rA(e.homeTeamFilter,s.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=rA(e.visitingTeamFilter,s.visit,e.gameForAnalysis.visiting_team),e.selectedStatisticTypeBlock!==s.local.statistics.block&&(e.selectedStatisticTypeBlock=s.local.statistics.block)}else e.homeTeamFilter={...s.homeTeamFilter,statistics:0},e.visitingTeamFilter={...s.visitingTeamFilter,statistics:0}},updateFinishedGames(e,s){e.totalSeasonFinishedGames=s},updateHomeTeamPlays(e,s){e.homeTeamPlays=s},updateVisitingTeamPlays(e,s){e.visitingTeamPlays=s},addSpecialMentions(e,s){const o=Object.values(e.nextGamesDataStructure);o.forEach(O=>{for(const W of Object.values(O.subcategories))W.resetMentions()}),o.forEach(O=>{for(const W of s)for(const _ of Object.values(O.subcategories))_.addSpecialMention(W[0],W[1],W[2])})},setDefaultFilter(e,s){e.defaultFilter={homeTeamFilter:{...s.homeTeamFilter,teamId:e.gameForAnalysis.home_team},visitingTeamFilter:{...s.awayTeamFilter,teamId:e.gameForAnalysis.visiting_team}}},addLiveGamePlay(e,s){if(!e.livePlays.has(s[e.indexesTLP.playId])){e.livePlays.set(s[e.indexesTLP.playId],s);const O=Y5(s,e.indexesTLP,e.categoriesMap);for(const W of Object.values(e.nextGamesDataStructure))for(const _ of Object.values(W.subcategories))_.addLivePlay(e.gameForAnalysis.home_team===O[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",O[e.indexesTSP.teamId],O,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,s){const o=!!s[e.indexesTLP.length],O=e.livePlays.get(s[e.indexesTLP.playId]);if(Tte(O,s))return;let W="";const _=e.gameForAnalysis.home_team===s[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";O&&(W=e.gameForAnalysis.home_team===O[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const g=Y5(O,e.indexesTLP,e.categoriesMap),a=VT(O,g,e.indexesTLP),v=Y5(s,e.indexesTLP,e.categoriesMap),h=VT(s,v,e.indexesTLP);for(const n of Object.values(e.nextGamesDataStructure))for(const x of Object.values(n.subcategories))O&&(x.subtractLivePlay(W,g[e.indexesTSP.teamId],g,e.indexesTSP,o),a&&x.subtractLivePlay(W,a[e.indexesTSP.teamId],a,e.indexesTSP,o)),x.addLivePlay(_,v[e.indexesTSP.teamId],v,e.indexesTSP,e.isLive,o),h&&x.addLivePlay(_,h[e.indexesTSP.teamId],h,e.indexesTSP,e.isLive,o);e.livePlays.set(s[e.indexesTLP.playId],s)},deleteLiveGamePlay(e,s){const o=!!s[e.indexesTLP.length],O=e.livePlays.get(s[e.indexesTLP.playId]);let W="";if(O){W=e.gameForAnalysis.home_team===O[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(O[e.indexesTLP.playId]);const _=Y5(O,e.indexesTLP,e.categoriesMap),g=VT(s,_,e.indexesTLP);for(const a of Object.values(e.nextGamesDataStructure))for(const v of Object.values(a.subcategories))v.subtractLivePlay(W,_[e.indexesTSP.teamId],_,e.indexesTSP,o),g&&v.subtractLivePlay(W,g[e.indexesTSP.teamId],g,e.indexesTSP,o)}},clearLiveTotals(e){for(const s of Object.values(e.nextGamesDataStructure))for(const o of Object.values(s.subcategories))o.homeTeam.resetTotalsLive(),o.visitingTeam.resetTotalsLive()},updateSeasonStatistics(e,s){e.statistics=s},updateOldSeasonId(e,s){e.oldSeasonId=s},addRankingInSubcategories(e,{getters:s,isPremiumAccount:o}){if(!(e.homeTeamFilter.teamId&&e.visitingTeamFilter.teamId))return;e.isRankingCalculating=!1,e.currentSeasonTeams.forEach(_=>{_.homeTeamFilterGames=_.playedGames.filter(g=>e.homeTeamFilter.playingAs.includes(g.playingAs)&&e.homeTeamFilter.matchResult.includes(g.matchResult)).length,_.visitingTeamFilterGames=_.playedGames.filter(g=>e.visitingTeamFilter.playingAs.includes(g.playingAs)&&e.visitingTeamFilter.matchResult.includes(g.matchResult)).length});const O=[],W=new Map;for(const _ of Object.values(e.nextGamesDataStructure))for(const g of Object.values(_.subcategories))O.push(g);s.rankingData.forEach(_=>{for(const g of O)if(g.isInGeneralCategory(_[e.indexesLS.categoryId])){W.has(g.id)?W.get(g.id).push(_):W.set(g.id,[_]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,s){e.homeGames=zG(s)},setVisitingGames(e,s){e.visitingGames=zG(s)},generateCategoriesMap(e){for(const s of Object.values(e.nextGamesDataStructure))for(const o of Object.values(s.subcategories))o.accomplishedCategoryIds.forEach(O=>{const W=e.categoriesMap.get(O);W?W.push(o.generalCategoriesIds.accomplished):e.categoriesMap.set(O,[o.generalCategoriesIds.accomplished])})},resetNextGamesDataStructure(e){for(const s of Object.values(e.nextGamesDataStructure))for(const o of Object.values(s.subcategories))o.resetData()}},actions:{turnOnOffDefaultFilters({state:e,commit:s},{command:o}){o==="on"?s("updateFilters",{filters:e.defaultFilter,needsFormat:!1}):s("updateFilters",{filters:e.filterAux,needsFormat:!1})},async setAndGetStatsPostMatch({commit:e},s){try{const g=await dVt({gameId:s.gameId});if(g){var o=[],O=[],W={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}},_={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}};Object.keys(g.data).length!==0&&(o=g.data.data.filter(a=>a[1]==s.homeTeam),O=g.data.data.filter(a=>a[1]==s.awayTeam),W=g.data.games,_=g.data.games),e("updateHomeTeamPlays",o),e("updateVisitingTeamPlays",O),e("setHomeGames",W),e("setVisitingGames",_)}else e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[])}catch(g){return Promise.reject(g)}},async fillStatisticDataPostMatch({commit:e,dispatch:s},o){e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("setIsSectionLoading",!0,{root:!0});try{let O=[];e("updateGameForAnalysis",o.gameInfo),O.push(s("setAndGetStatsPostMatch",{gameId:o.game,homeTeam:o.homeTeam,awayTeam:o.awayTeam})),await Promise.all(O)}catch(O){throw new Error(O)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:s,commit:o},{gameId:O,isTeamsAnalysis:W,currentSeasonId:_,isLoginChanged:g=!1,defaultFilter:a=null,gameInfo:v=null,isCupGame:h=!1}){try{let n={},x=e.seasonId!==Number(_);const y=[];o("setIsSectionLoading",!0,{root:!0}),o("setUsePastSeasonId",!1),x&&o("setSeasonId",_),o("updateGameId",Number(O)),e.oldSeasonId!==e.seasonId&&o("resetNextGamesDataStructure");const b=await s("getCurrentSeasonGames",Number(O));if(o("leagueGeneral/updateCurrentSeasonGames",b,{root:!0}),n=b.find(u=>u.game_id===Number(O)),!n&&v&&(n=v),n&&o("updateGameForAnalysis",n),n.game_status!==1&&((g||e.categoriesMap.size===0)&&o("generateCategoriesMap"),h||await s("checkTeamsData",{gameId:O,isFromBet:!!a}),(g||e.oldSeasonId!==e.seasonId||e.statistics.length===0)&&y.push(s("getSeasonStatistics"))),e.usePastSeasonId){const u=await s("getCurrentSeasonGamesLast");o("leagueGeneral/updateCurrentSeasonGames",u,{root:!0})}(g||e.currentSeasonTeams.length===0||!e.currentSeasonTeams.find(u=>n.home_team===u.team_id))&&y.push(s("getCurrentSeasonTeams")),o("setHomeResultGame",n.score[0]),o("setAwayResultGame",n.score[1]),W?n.game_status!==1?(await s("fillStatisticData",{gameId:O,gameinfo:n,promises:y,defaultFilter:a}),o("updateShowPostMatchData",!1)):(o("updateStats",[]),o("updateShowPostMatchData",!0),y.push(s("fillStatisticDataPostMatch",{game:O,homeTeam:n.home_team,awayTeam:n.visiting_team,gameInfo:n})),await Promise.all(y)):o("setIsSectionLoading",!1,{root:!0})}catch(n){return Promise.reject(n)}},async fillStatisticData({commit:e,dispatch:s,getters:o,rootGetters:O,state:W},{gameId:_,gameinfo:g,promises:a=[],defaultFilter:v=null}){let h=null;try{e("setIsSectionLoading",!0,{root:!0}),e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("updateGameForAnalysis",g),(g.is_live||g.game_status===0)&&a.push(s("getCurrentLiveGamePlays",_)),a.push(s("getSpecialMentionsByGame",_)),a.push(s("getHomeTeamPlays")),a.push(s("getVisitingTeamPlays")),a.push(s("getCurrentSeasonPlays")),v&&a.push(pVt(v)),h=await Promise.all(a)}catch(n){throw new Error(n)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:o,isPremiumAccount:O["loginGeneral/getPremiumAccount"]}),v){const[n]=h.pop();n&&(e("setBetSubcategories",n.categories),e("setBetDescription",n.sectionDescription),e("setDefaultFilter",n.params),e("updateFilterAux"),e("updateFilters",{filters:W.defaultFilter,needsFormat:!1}),s("updateRankingInSubcategories"))}},100),e("setIsSectionLoading",!1,{root:!0})}},async checkTeamsData({state:e,dispatch:s,rootState:o,commit:O},{gameId:W,isFromBet:_}){try{const g=Number(W);if(e.pastSeasonId){O("setPastSeasonId",e.pastSeasonId,{root:!0});const a=o.leagueGeneral.currentSeasonGames.find(v=>v.game_id===g);a&&O("updateGameForAnalysis",a),await Promise.all([s("getHomeTeamPlays"),s("getVisitingTeamPlays")]),O("setUsePastSeasonId",_||(!e.homeTeamPlays||e.homeTeamPlays.length===0)&&(!e.visitingTeamPlays||e.visitingTeamPlays.length===0))}else O("setUsePastSeasonId",!1)}catch(g){throw new Error(g)}},async getSpecialMentionsByGame({commit:e},s){try{const o=await sVt({gameId:s});e("addSpecialMentions",o)}catch(o){return Promise.reject(o)}},async getCurrentSeasonGames({commit:e,state:s},o){try{const{teams:O,games:W,past_season_id:_,tournament_id:g}=await iVt({seasonId:s.usePastSeasonId?s.pastSeasonId:s.seasonId,gameId:o}),a=kVt.find(v=>v.id===g);return a&&e("setCurrentTournamentName",a.name),e("setHome",O[0]),e("setAway",O[1]),s.usePastSeasonId||e("setPastSeasonId",_),await e("updateCurrentSeasonGames",W),W&&Array.isArray(W)&&e("updateFinishedGames",W.reduce((v,h)=>(h.game_status===1&&(v+=1),v),0)),W}catch(O){return Promise.reject(O)}},async getCurrentSeasonGamesLast({commit:e,state:s}){try{const{games:o,past_season_id:O}=await PG({seasonId:s.usePastSeasonId?s.pastSeasonId:s.seasonId});return s.usePastSeasonId||e("setPastSeasonId",O),await e("updateCurrentSeasonGames",o),o&&Array.isArray(o)&&e("updateFinishedGames",o.reduce((W,_)=>(_.game_status===1&&(W+=1),W),0)),o}catch(o){return Promise.reject(o)}},async getCurrentSeasonTeams({commit:e,state:s}){try{const o=await uVt({seasonId:s.usePastSeasonId?s.pastSeasonId:s.seasonId});e("updateCurrentSeasonTeams",o.data.teams)}catch{}},async getSeasonStatistics({commit:e,state:s}){try{const o=s.usePastSeasonId?s.pastSeasonId:s.seasonId,O=await aVt({seasonId:o});e("updateSeasonStatistics",O),e("updateOldSeasonId",o)}catch(o){return Promise.reject(o)}},updateRankingInSubcategories({state:e,commit:s,getters:o,rootGetters:O}){e.currentSeasonGames.length>0&&s("addRankingInSubcategories",{getters:o,isPremiumAccount:O["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:s}){try{const o=await LG({seasonId:s.usePastSeasonId?s.pastSeasonId:s.seasonId,teamId:s.gameForAnalysis.home_team});o.data&&(e("updateHomeTeamPlays",o.data.data),e("setHomeGames",o.data.games))}catch(o){return Promise.reject(o)}},async getVisitingTeamPlays({commit:e,state:s}){try{const o=await LG({seasonId:s.usePastSeasonId?s.pastSeasonId:s.seasonId,teamId:s.gameForAnalysis.visiting_team});o.data&&(e("updateVisitingTeamPlays",o.data.data),e("setVisitingGames",o.data.games))}catch(o){return Promise.reject(o)}},async getCurrentSeasonPlays({commit:e,state:s}){try{const o=await nVt({seasonId:s.usePastSeasonId?s.pastSeasonId:s.seasonId});e("updateStats",o)}catch(o){return Promise.reject(new Error(o))}},async getCurrentLiveGamePlays({state:e,commit:s},o){try{const O=await oVt({gameId:o});e.livePlays=new Map,O.forEach(W=>{e.gameForAnalysis.game_id===W[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===W[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===W[e.indexesTLP.teamId])&&s("addLiveGamePlay",W)})}catch(O){throw new Error(O)}},socket_new({state:e,commit:s},o){const O=o[1];(e.gameForAnalysis.home_team===O[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===O[e.indexesTLP.teamId])&&s("addLiveGamePlay",O)},socket_update({state:e,commit:s},o){const O=o[1];e.gameForAnalysis.game_id===O[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===O[e.indexesTLP.teamId]||e.gameForAnalysis.visitingTeam===O[e.indexesTLP.teamId])&&s("updateLiveGamePlay",O)},socket_delete({state:e,commit:s},o){const O=o[1];e.gameForAnalysis.game_id===O[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===O[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===O[e.indexesTLP.teamId])&&s("deleteLiveGamePlay",O)},exitChannel({state:e,getters:s,rootState:o,rootGetters:O,commit:W}){const _=O["loginGeneral/getPremiumAccount"];s.isLive&&_&&(W("updateShowLiveData",!0),W("clearLiveTotals"),e.livePlays.clear(),wVt.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const o of Object.values(e.nextGamesDataStructure))for(const O of Object.values(o.subcategories))O.homeTeam.resetTotals(),O.visitingTeam.resetTotals(),O.homeTeam.resetTotalsLive(),O.visitingTeam.resetTotalsLive(),O.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(o=>{for(const O of Object.values(o.subcategories))O.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const o of Object.values(e.nextGamesDataStructure))for(const O of Object.values(o.subcategories))O.homeTeam.resetTotals(),O.visitingTeam.resetTotals(),O.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(o=>{for(const O of Object.values(o.subcategories))O.resetMentions()}),e.currentSeasonGames=[],e.currentSeasonTeams=[],e.gameForAnalysis={},e.homeTeamPlays=[],e.visitingTeamPlays=[],e.currentSeasonPlays=null,e.totalSeasonFinishedGames=0,e.totalHomeTeamFinishedGames=0,e.totalVisitingTeamFinishedGames=0,e.homeGames=[],e.showPostMatch=!1,e.homeResultGame=null,e.awayResultGame=null,e.visitingGames=[],e.idAssetSelected=1,e.showAdvanceFilter=!1,e.selectedAnalysis={},e.homeTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.visitingTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.isRankingCalculating=!0}}}};async function TVt(){try{const{data:e}=await Th({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return e}catch(e){throw new Error(e)}}const CVt={gameGlobal:{namespaced:!0,state:{videoSrc:null,isVideoModalVisible:!1,tournaments:[],seccionBetsGolTipster:1,tournamentSelected:{},tournamentType:0,sectionAnalytics:"Banner_Home",previewSectionAnalytics:"",sectionRef:"",booleanIsStatisticModalOpen:!1},getters:{getTournamentType:e=>e.tournamentType,getSectionAnalytics(e){return e.sectionAnalytics},getPreviewSectionAnalytics(e){return e.previewSectionAnalytics},getSeccionBetsGolTipster(e){return e.seccionBetsGolTipster}},mutations:{setBooleanIsStatisticModalOpen(e,s){e.booleanIsStatisticModalOpen=s},setTournamentType(e,s){e.tournamentType=s},setSectionRef(e,s){e.sectionRef=s},setSectionAnalytics(e,s){e.sectionAnalytics=s},setSeccionBetsGolTipster(e,s){e.seccionBetsGolTipster=s},setPreviewSectionAnalytics(e,s){e.previewSectionAnalytics=s},setVideoSrc(e,s){e.videoSrc=s},setVideoModalVisibility(e,s){e.isVideoModalVisible=s},setSelectedTournament(e,s){e.selectedTournament=s},setTournaments(e,s){e.tournaments=s.map(o=>({...o.tournament,seasons:o.seasons})),e.tournamentSelected=e.tournaments[0]},setTournamentSelected(e,s){e.tournamentSelected=s}},actions:{async fetchTournaments({state:e,commit:s}){try{if(e.tournaments.length===0){const o=await TVt();s("setTournaments",o)}}catch(o){throw new Error(o)}}}}};async function EVt({seasonId:e,localTeamId:s,visitingTeamId:o}){try{const O=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${s}/${o}`;return(await Th({url:O})).data}catch(O){return Promise.reject(O)}}async function AVt({seasonId:e,localTeamId:s,visitingTeamId:o}){try{const O=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${s}/${o}`;return(await Th({url:O})).data}catch(O){return Promise.reject(O)}}const OG=(e,s)=>{let o={};return e.forEach((O,W)=>{W==3&&(s[0]==35||s[0]==54)&&(s[W]==2?s[W]=1:s[W]=2),W==2&&(s[0]==35||s[0]==54)&&(s[W]==1?s[W]=2:s[W]==2&&(s[W]=1)),o[O]=s[W]}),o},FG=(e,s)=>e.filter(O=>{const W=s.playingAs.includes(O.playing_as),_=s.matchResult.includes(O.match_result),g=s.sections.includes(O.section);return W&&_&&g});(function(){function e(s,o,O){return typeof O>"u"||+O==0?Math[s](o):(o=+o,O=+O,isNaN(o)||!(typeof O=="number"&&O%1===0)?NaN:(o=o.toString().split("e"),o=Math[s](+(o[0]+"e"+(o[1]?+o[1]-O:-O))),o=o.toString().split("e"),+(o[0]+"e"+(o[1]?+o[1]+O:O))))}Math.ceil10||(Math.ceil10=function(s,o){return e("ceil",s,o)})})();function NG(e,s){let o=s*-1;return Math.ceil10(e,o)}const MVt={...CVt,...hVt,...SVt,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{playsLocal:(e,s,o)=>{const O=e.xGLocalPlays,W="homeTeamFilter",_=o.nextGeneral[W];return FG(O,_)||[]},playsAway:(e,s,o)=>{const O=e.xGVisitingPlays,W="visitingTeamFilter",_=o.nextGeneral[W];return FG(O,_)},goalsQtyLocal:(e,s)=>{const o=Mm.find(O=>O.name==="Goles");return s.playsLocal.filter(O=>o.categories.includes(O.category_id)).length},goalsQtyAway:(e,s)=>{const o=Mm.find(O=>O.name==="Goles");return s.playsAway.filter(O=>o.categories.includes(O.category_id)).length},shotsOnGoalQtyLocal:(e,s)=>s.playsLocal.filter(o=>o.category_id===510).length,shotsOnGoalQtyAway:(e,s)=>s.playsAway.filter(o=>o.category_id===510).length,headQtyLocal:(e,s)=>{const o=Mm.find(O=>O.name==="Remates con cabeza");return s.playsLocal.filter(O=>o.categories.includes(O.category_id)).length},headQtyAway:(e,s)=>{const o=Mm.find(O=>O.name==="Remates con cabeza");return s.playsAway.filter(O=>o.categories.includes(O.category_id)).length},penaltiesQtyLocal:(e,s)=>{const o=Mm.find(O=>O.name==="Penales");return s.playsLocal.filter(O=>o.categories.includes(O.category_id)).length},penaltiesQtyAway:(e,s)=>{const o=Mm.find(O=>O.name==="Penales");return s.playsAway.filter(O=>o.categories.includes(O.category_id)).length},xGLocal:(e,s)=>{const o=new Set;let O=s.playsLocal.reduce((W,_)=>(o.has(_.moment_of_play)||(o.add(_.moment_of_play),W+=_.xG2),W),0);return NG(O,2)},xGAway:(e,s)=>{const o=new Set;let O=s.playsAway.reduce((W,_)=>(o.has(_.moment_of_play)||(o.add(_.moment_of_play),W+=_.xG2),W),0);return NG(O,2)}},mutations:{setTeamSelected(e,s){e.teamSelected=s},setPlays(e,s){const o=s.local_team.map(u=>OG(s.data_headers,u)),O=[],W=[],_=[],g=[],a=new Set;o.forEach(u=>{lM.has(u.category_id)?a.has(u.moment_of_play)||(a.add(u.moment_of_play),O.push(u)):cM.has(u.category_id)?W.push(u):uM.has(u.category_id)?_.push(u):dM.has(u.category_id)&&g.push(u)}),e.xGLocalPlays=[...W,...O,..._,...g];const v=s.visiting_team.map(u=>OG(s.data_headers,u)),h=new Set,n=[],x=[],y=[],b=[];v.forEach(u=>{lM.has(u.category_id)?h.has(u.moment_of_play)||(h.add(u.moment_of_play),n.push(u)):cM.has(u.category_id)?x.push(u):uM.has(u.category_id)?y.push(u):dM.has(u.category_id)&&b.push(u)}),e.xGVisitingPlays=[...x,...n,...y,...b]},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:e},{seasonId:s,localTeamId:o,visitingTeamId:O,postMatch:W=!1}){try{let _={};W?_=await AVt({seasonId:s,localTeamId:o,visitingTeamId:O}):_=await EVt({seasonId:s,localTeamId:o,visitingTeamId:O}),e("setPlays",_)}catch(_){return Promise.reject(_)}}}}}};function IVt(e){for(const[s,o]of Object.entries(MVt))e.hasModule(s)||e.registerModule(s,o)}const PVt={class:"subcategory-group"},BVt={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(s,o)=>(t.openBlock(),t.createElementBlock("div",PVt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,O=>(t.openBlock(),t.createBlock(t.unref(Gl),{key:O.id,modelValue:O.isSelected,"onUpdate:modelValue":W=>O.isSelected=W,label:O.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},LVt=gc(BVt,[["__scopeId","data-v-ae6f3d72"]]),zVt={class:"filter-subcategories"},OVt=Object.freeze(Object.defineProperty({__proto__:null,default:gc({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(s,o)=>(t.openBlock(),t.createElementBlock("div",zVt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,O=>(t.openBlock(),t.createElementBlock("div",{key:O.id,class:"filter-subcategories__group"},[t.createVNode(LVt,{subcategoryGroup:O},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Z5=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),FVt={class:"details__header"},NVt=Z5(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),DVt={class:"details__header__checkbox"},RVt={class:"details__body"},VVt={class:"details__body__playing-as"},jVt=["onClick"],$Vt={class:"details__header"},UVt=Z5(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),GVt={class:"details__header__checkbox"},HVt={class:"details__body"},WVt=Z5(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),qVt={class:"details__body__game-section"},YVt=["onClick"],ZVt={class:"details__body"},XVt=Z5(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),JVt={class:"details__body__game-section"},KVt=["onClick"],QVt=Object.freeze(Object.defineProperty({__proto__:null,default:gc({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const s=e;t.useCssVars(n=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const o=t.computed(()=>s.playingAs.every(n=>n.isSelected)),O=t.computed(()=>s.gameSections.every(n=>n.isSelected)),W=t.computed(()=>s.gameSections.reduce((n,x)=>(x.value<=3?n.firstHalf.push(x):n.secondHalf.push(x),n),{firstHalf:[],secondHalf:[]})),_=t.computed(()=>({"--border-radius-first-button":`${s.buttonsBorderRadius} 0 0 ${s.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${s.buttonsBorderRadius} ${s.buttonsBorderRadius} 0`}));function g(n){n?s.playingAs.forEach(x=>{x.isSelected=!0}):s.playingAs.forEach((x,y)=>{x.isSelected=y===0})}function a(n){s.playingAs.filter(x=>x.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function v(n){s.gameSections.filter(x=>x.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function h(n){n?s.gameSections.forEach(x=>{x.isSelected=!0}):s.gameSections.forEach((x,y)=>{x.isSelected=y===0})}return(n,x)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(_.value)},[t.createElementVNode("div",FVt,[NVt,t.createElementVNode("div",DVt,[t.createVNode(t.unref(Gl),{label:"Todos","model-value":o.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",RVt,[t.createElementVNode("div",VVt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playingAs,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${b}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>a(y)},t.toDisplayString(y.name),11,jVt))),128))])]),t.createElementVNode("div",$Vt,[UVt,t.createElementVNode("div",GVt,[t.createVNode(t.unref(Gl),{label:"Todos","model-value":O.value,"onUpdate:modelValue":h},null,8,["model-value"])])]),t.createElementVNode("div",HVt,[WVt,t.createElementVNode("div",qVt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value.firstHalf,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${b}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>v(y)},t.toDisplayString(y.text),11,YVt))),128))])]),t.createElementVNode("div",ZVt,[XVt,t.createElementVNode("div",JVt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value.secondHalf,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${b}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>v(y)},t.toDisplayString(y.text),11,KVt))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),ejt={class:"filter-field"},tjt=Object.freeze(Object.defineProperty({__proto__:null,default:gc({__name:"FilterField",setup(e){const s=t.ref(Array.from({length:16},(O,W)=>W+1));function o(){}return(O,W)=>(t.openBlock(),t.createElementBlock("div",ejt,[t.createVNode(t.unref(mN),{width:"100%","background-color":"#2E3B46",value:s.value,"onUpdate:modelValue":o},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),njt={class:"subcategory-group"},ajt={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(s,o)=>(t.openBlock(),t.createElementBlock("div",njt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,O=>(t.openBlock(),t.createBlock(t.unref(Hl),{key:O.id,modelValue:O.isSelected,"onUpdate:modelValue":W=>O.isSelected=W,label:O.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},rjt=_c(ajt,[["__scopeId","data-v-ae6f3d72"]]),ijt={class:"filter-subcategories"},ojt=Object.freeze(Object.defineProperty({__proto__:null,default:_c({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(s,o)=>(t.openBlock(),t.createElementBlock("div",ijt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,O=>(t.openBlock(),t.createElementBlock("div",{key:O.id,class:"filter-subcategories__group"},[t.createVNode(rjt,{subcategoryGroup:O},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),X5=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),sjt={class:"details__header"},ljt=X5(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),cjt={class:"details__header__checkbox"},ujt={class:"details__body"},djt={class:"details__body__playing-as"},hjt=["onClick"],pjt={class:"details__header"},fjt=X5(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),mjt={class:"details__header__checkbox"},gjt={class:"details__body"},yjt=X5(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),vjt={class:"details__body__game-section"},_jt=["onClick"],bjt={class:"details__body"},xjt=X5(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),wjt={class:"details__body__game-section"},kjt=["onClick"],Sjt=Object.freeze(Object.defineProperty({__proto__:null,default:_c({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const s=e;t.useCssVars(n=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const o=t.computed(()=>s.playingAs.every(n=>n.isSelected)),O=t.computed(()=>s.gameSections.every(n=>n.isSelected)),W=t.computed(()=>s.gameSections.reduce((n,x)=>(x.value<=3?n.firstHalf.push(x):n.secondHalf.push(x),n),{firstHalf:[],secondHalf:[]})),_=t.computed(()=>({"--border-radius-first-button":`${s.buttonsBorderRadius} 0 0 ${s.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${s.buttonsBorderRadius} ${s.buttonsBorderRadius} 0`}));function g(n){n?s.playingAs.forEach(x=>{x.isSelected=!0}):s.playingAs.forEach((x,y)=>{x.isSelected=y===0})}function a(n){s.playingAs.filter(x=>x.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function v(n){s.gameSections.filter(x=>x.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function h(n){n?s.gameSections.forEach(x=>{x.isSelected=!0}):s.gameSections.forEach((x,y)=>{x.isSelected=y===0})}return(n,x)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(_.value)},[t.createElementVNode("div",sjt,[ljt,t.createElementVNode("div",cjt,[t.createVNode(t.unref(Hl),{label:"Todos","model-value":o.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",ujt,[t.createElementVNode("div",djt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playingAs,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${b}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>a(y)},t.toDisplayString(y.name),11,hjt))),128))])]),t.createElementVNode("div",pjt,[fjt,t.createElementVNode("div",mjt,[t.createVNode(t.unref(Hl),{label:"Todos","model-value":O.value,"onUpdate:modelValue":h},null,8,["model-value"])])]),t.createElementVNode("div",gjt,[yjt,t.createElementVNode("div",vjt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value.firstHalf,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${b}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>v(y)},t.toDisplayString(y.text),11,_jt))),128))])]),t.createElementVNode("div",bjt,[xjt,t.createElementVNode("div",wjt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value.secondHalf,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${b}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>v(y)},t.toDisplayString(y.text),11,kjt))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),Tjt={class:"filter-field"},Cjt=Object.freeze(Object.defineProperty({__proto__:null,default:_c({__name:"FilterField",setup(e){const s=t.ref(Array.from({length:16},(O,W)=>W+1));function o(){}return(O,W)=>(t.openBlock(),t.createElementBlock("div",Tjt,[t.createVNode(t.unref(Zj),{width:"100%","background-color":"#2E3B46",value:s.value,"onUpdate:modelValue":o},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));Bd.GSCGameData=tVt,Bd.connectSocket=a6,Bd.disconnectSocket=r6,Bd.getSocket=n6,Bd.registerStoreModules=IVt,Object.defineProperty(Bd,Symbol.toStringTag,{value:"Module"})});
|