@golstats/gsc-game-data 1.0.359 → 1.0.361
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-a52abc37-a2c08406.js → FilterConditions-a52abc37-9c091d80.js} +1 -1
- package/dist/{FilterConditions-d39a5cfa-CE4CBDch-b874bbcc.js → FilterConditions-d39a5cfa-CE4CBDch-3a2a3ab1.js} +1 -1
- package/dist/{FilterField-350d4c09-7b62b329.js → FilterField-350d4c09-fc816c4a.js} +1 -1
- package/dist/{FilterField-c689115c-CgwtPAPh-e421a4ff.js → FilterField-c689115c-CgwtPAPh-c737a182.js} +1 -1
- package/dist/{FilterSubcategories-0da80029-c72325e8.js → FilterSubcategories-0da80029-2f570f9e.js} +1 -1
- package/dist/{FilterSubcategories-87004bd7-DjrhIEIm-a3febdc3.js → FilterSubcategories-87004bd7-DjrhIEIm-2e71b5dc.js} +1 -1
- package/dist/gsc-game-data.js +1 -1
- package/dist/gsc-game-data.umd.cjs +3 -3
- package/dist/{index-55a17d30.js → index-5c91795e.js} +14857 -14839
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Od,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(Od=typeof globalThis<"u"?globalThis:Od||self,t(Od.GSCGameData={},Od.Vue))})(this,function(Od,t){"use strict";var zRt=Object.defineProperty;var NRt=(Od,t,ny)=>t in Od?zRt(Od,t,{enumerable:!0,configurable:!0,writable:!0,value:ny}):Od[t]=ny;var yu=(Od,t,ny)=>(NRt(Od,typeof t!="symbol"?t+"":t,ny),ny);const ny="",DRt="",FRt="",RRt="",VRt="",jRt="",URt="",GRt="",HRt="",UH=(e,o)=>{const s=e.__vccOpts||e;for(const[z,W]of o)s[z]=W;return s},U4={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))}}},VT=()=>{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}))},jT=U4.setup;U4.setup=jT?(e,o)=>(VT(),jT(e,o)):VT;const GH=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),HH=["src"],ZH={key:1,class:"text"},WH=["src"],XH={class:"stats"},qH=GH(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),YH={class:"numstats"},JH={class:"leyend"};function $H(e,o,s,z,W,v){return t.openBlock(),t.createElementBlock("div",null,[s.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",W.status&&s.typeOnOff&&"button-active"]),style:t.normalizeStyle([v.customStyle,W.status&&s.typeOnOff&&v.customActive]),onClick:o[0]||(o[0]=(...g)=>v.btnClick&&v.btnClick(...g))},[s.icon&&s.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,HH)):t.createCommentVNode("",!0),s.textValue?(t.openBlock(),t.createElementBlock("div",ZH,t.toDisplayString(s.textValue),1)):t.createCommentVNode("",!0),s.icon&&s.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,WH)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),s.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:o[1]||(o[1]=(...g)=>v.btnClick&&v.btnClick(...g))},[t.createElementVNode("div",XH,[qH,t.createElementVNode("div",YH,t.toDisplayString(s.textStat),1)]),t.createElementVNode("div",JH,t.toDisplayString(s.textCategory),1)])):t.createCommentVNode("",!0)])}const KH=UH(U4,[["render",$H],["__scopeId","data-v-f3ee6b2b"]]),QH={class:"gsc-dropdown__main-container__item-selected"},eZ=["height","width"],tZ=["stroke"],aZ={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rZ=["fill"],nZ={class:"gsc-dropdown__items-container"},iZ=["onClick"],oZ={key:0,class:"gsc-dropdown__items-footer"},sZ={__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(o=>o 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:o}){const s=e,z=t.ref({}),W=t.ref(null),v=t.ref(s.isMultipleOption?-1:0),g=t.ref(!1);t.watch(()=>s.items,(x,u)=>{if(!s.modelValue&&(!s.onlyFirstTime||!u||!u.length)&&x&&x.length){if(s.defaultItemByProp){const n=s.items.findIndex(i=>i[s.defaultItemByProp.propName]===s.defaultItemByProp.value);n!==-1?(v.value=n,z.value=x[n]):(v.value=0,z.value=x[0])}else z.value=x[s.defaultItemByIndex];o("input",z.value)}},{immediate:!0}),t.watch(()=>s.modelValue,x=>{if(x){const u=s.items.findIndex(n=>typeof x=="object"?JSON.stringify(n)===JSON.stringify(x):n===x);u!==-1&&(v.value=u,z.value=s.items[u],o("update:modelValue",z.value))}},{immediate:!0});const r=t.computed(()=>({height:s.height,width:s.width,backgroundColor:s.backgroundColor,borderRadius:`${s.borderRadius}px`,border:`${s.borderType} ${s.borderWidth}px ${s.borderColor}`,color:s.color,"--hover-background-color":s.hoverBackgroundColor,"--list-container-padding":s.listContainerPadding,"--list-item-padding":s.listItemPadding,"--list-item-margin":s.listItemMargin,"--list-background-color":s.listBackgroundColor,"--list-height":s.listHeight,"--list-item-border-radius":s.listItemBorderRadius,"--list-item-selected-color":s.listItemSelectedColor,"--list-item-selected-background-color":s.listItemSelectedBackgroundColor,"--list-item-color":s.listItemColor,"--list-border-radius":`${s.listBorderRadius}`,"--list-border-color":s.listBorderColor,"--list-width":s.isListSameWidth?s.width:"fit-content","--list-border-width":`${s.listBorderWidth}px`,"--list-margin-top":s.listMarginTop,"--list-left":s.listAlignment==="left"?"0":"auto","--list-right":s.listAlignment==="right"?"0":"auto","--footer-border":`${s.footerBorderWidth}px solid ${s.footerBorderColor}`,"--dropdown-opacity":s.isDisabled?"0.5":"1","--dropdown-cursor":s.isDisabled?"not-allowed":"pointer","--dropdown-font-size":s.fontSize?s.fontSize:"14px"})),b=t.computed(()=>({height:`${s.arrowHeight}px`,width:`${s.arrowWidth}px`}));function d(){s.isDisabled||(g.value=!g.value)}function a(x){W.value&&!W.value.contains(x.target)&&(g.value=!1)}function _(x,u){s.isMultipleOption?v.value=-1:(v.value=u,g.value=!1),z.value=x,o("input",z.value),o("update:modelValue",z.value)}function y(){g.value=!1,o("click-ready")}return t.onMounted(()=>{document.addEventListener("click",a)}),t.onBeforeMount(()=>{document.removeEventListener("click",a)}),(x,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:W,class:"gsc-dropdown",style:t.normalizeStyle(r.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:d},[t.createElementVNode("div",QH,[t.renderSlot(x.$slots,"default",{selectedItem:z.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":g.value}]),style:t.normalizeStyle(b.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,tZ)],8,eZ)):(t.openBlock(),t.createElementBlock("svg",aZ,[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,rZ)]))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",nZ,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${s.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(n,i)=>(t.openBlock(),t.createElementBlock("div",null,[t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:i===v.value}]),key:i,onClick:f=>_(n,i)},[t.renderSlot(x.$slots,"availableItem",{item:n})],10,iZ)),[[t.vShow,!n.isHidden]])]))),256))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",oZ,[t.createVNode(t.unref(KH),{"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))}},lZ=(e,o)=>{const s=e.__vccOpts||e;for(const[z,W]of o)s[z]=W;return s},cZ={class:"tournament-select__selected-tournament"},uZ={class:"tournament-select__selected-tournament__logo"},dZ=["src"],hZ={class:"tournament-select__selected-tournament__name"},pZ="https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments",fZ={__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(o=>o 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},isFemaleMode:{type:Boolean,default:!1}},emits:["input","change-tournaments"],setup(e,{emit:o}){const s=e,z=new Set(["tops","table","dataia"]),W=t.ref([]),v=t.computed(()=>{const n={};return s.fontFamily&&(n["font-family"]=`${s.fontFamily}`),n}),g=t.computed(()=>W.value.filter(n=>!n.isHidden)),r=t.computed(()=>{const n=s.isFemaleMode?g.value.filter(i=>i.is_female):g.value;return n.find(i=>i.seasonsIds.has(s.currentSeasonId))||n[0]}),b=t.computed(()=>s.isFemaleMode?g.value.filter(n=>n.is_female):s.areFemaleVisible?W.value:W.value.filter(n=>!n.is_female));t.watch(()=>s.isClubesActive,()=>{d()},{immediate:!0}),t.watch(()=>s.routeName,()=>{d()},{immediate:!0}),t.watch(()=>s.apiUrl,()=>{a()});function d(){W.value.forEach(n=>{n.isHidden=!s.isClubesActive&&n.isClub||s.isClubesActive&&!n.isClub||s.routeName&&n.tournament_type===4&&z.has(s.routeName)})}async function a(){try{if(s.items&&s.items.length)W.value=[...s.items];else{const n=await y();o("change-tournaments",n),W.value=n.sort((i,f)=>i.tournament.order-f.tournament.order).reduce((i,f)=>{if(s.tournamentsIdsToInclude&&s.tournamentsIdsToInclude.size&&!s.tournamentsIdsToInclude.has(f.id))return i;const l={...f.tournament,seasons:f.seasons,seasonsIds:f.seasons.reduce((h,m)=>(h.add(m.id),h),new Set),isClub:f.tournament.international_tournament===0,isFriendlies:f.tournament.tournament_type===3};return l.isHidden=!s.avoidTournamentFilter&&(!s.isClubesActive&&l.isClub||s.isClubesActive&&!l.isClub),i.push(l),i},[])}}catch(n){throw new Error(n)}}function _(n){const i=new XMLHttpRequest,f=`${s.logosUrl}${n}.${s.logoFileType}`;return i.open("HEAD",f,!1),i.send(),i.status!==404}async function y(){try{return(await fetch(s.apiUrl||pZ)).json()}catch(n){return Promise.reject(n)}}function x(n){o("input",n)}function u(n){o("input",n)}return t.onMounted(()=>{a()}),(n,i)=>(t.openBlock(),t.createElementBlock("div",{class:"tournament-select",style:t.normalizeStyle(v.value)},[t.createVNode(t.unref(sZ),t.mergeProps(s,{"list-height":s.listHeight,"model-value":r.value,items:b.value,onInput:x,"onUpdate:modelValue":u}),{default:t.withCtx(({selectedItem:f})=>[t.createElementVNode("div",cZ,[t.createElementVNode("div",uZ,[_(f.id)?(t.openBlock(),t.createElementBlock("img",{key:0,src:`${s.logosUrl}${f.id}.${s.logoFileType}`,alt:""},null,8,dZ)):t.createCommentVNode("",!0)]),t.createElementVNode("div",hZ,t.toDisplayString(f.name),1)])]),availableItem:t.withCtx(({item:f})=>[t.createElementVNode("div",null,t.toDisplayString(f.name),1)]),_:1},16,["list-height","model-value","items"])],4))}},UT=lZ(fZ,[["__scopeId","data-v-ef0319e5"]]),mZ=(e,o)=>{const s=e.__vccOpts||e;for(const[z,W]of o)s[z]=W;return s},G4={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))}}},GT=()=>{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}))},HT=G4.setup;G4.setup=HT?(e,o)=>(GT(),HT(e,o)):GT;const gZ=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),yZ=["src"],vZ={key:1,class:"text"},bZ=["src"],xZ={class:"stats"},_Z=gZ(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),wZ={class:"numstats"},kZ={class:"leyend"};function SZ(e,o,s,z,W,v){return t.openBlock(),t.createElementBlock("div",null,[s.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",W.status&&s.typeOnOff&&"button-active"]),style:t.normalizeStyle([v.customStyle,W.status&&s.typeOnOff&&v.customActive]),onClick:o[0]||(o[0]=(...g)=>v.btnClick&&v.btnClick(...g))},[s.icon&&s.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,yZ)):t.createCommentVNode("",!0),s.textValue?(t.openBlock(),t.createElementBlock("div",vZ,t.toDisplayString(s.textValue),1)):t.createCommentVNode("",!0),s.icon&&s.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,bZ)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),s.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:o[1]||(o[1]=(...g)=>v.btnClick&&v.btnClick(...g))},[t.createElementVNode("div",xZ,[_Z,t.createElementVNode("div",wZ,t.toDisplayString(s.textStat),1)]),t.createElementVNode("div",kZ,t.toDisplayString(s.textCategory),1)])):t.createCommentVNode("",!0)])}const TZ=mZ(G4,[["render",SZ],["__scopeId","data-v-f3ee6b2b"]]),CZ={class:"gsc-dropdown__main-container__item-selected"},EZ=["height","width"],AZ=["stroke"],MZ={class:"gsc-dropdown__items-container"},PZ=["onClick"],IZ={key:0,class:"gsc-dropdown__items-footer"},LZ={__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(o=>o 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:o}){const s=e,z=t.ref({}),W=t.ref(null),v=t.ref(s.isMultipleOption?-1:0),g=t.ref(!1);t.watch(()=>s.items,(x,u)=>{if(!s.modelValue&&(!s.onlyFirstTime||!u||!u.length)&&x&&x.length){if(s.defaultItemByProp){const n=s.items.findIndex(i=>i[s.defaultItemByProp.propName]===s.defaultItemByProp.value);n!==-1?(v.value=n,z.value=x[n]):(v.value=0,z.value=x[0])}else z.value=x[s.defaultItemByIndex];o("input",z.value)}},{immediate:!0}),t.watch(()=>s.modelValue,x=>{if(x){const u=s.items.findIndex(n=>typeof x=="object"?JSON.stringify(n)===JSON.stringify(x):n===x);u!==-1&&(v.value=u,z.value=s.items[u],o("update:modelValue",z.value))}},{immediate:!0});const r=t.computed(()=>({height:s.height,width:s.width,backgroundColor:s.backgroundColor,borderRadius:`${s.borderRadius}px`,border:`${s.borderType} ${s.borderWidth}px ${s.borderColor}`,color:s.color,"--hover-background-color":s.hoverBackgroundColor,"--list-container-padding":s.listContainerPadding,"--list-item-padding":s.listItemPadding,"--list-item-margin":s.listItemMargin,"--list-background-color":s.listBackgroundColor,"--list-height":s.listHeight,"--list-item-border-radius":s.listItemBorderRadius,"--list-item-selected-color":s.listItemSelectedColor,"--list-item-selected-background-color":s.listItemSelectedBackgroundColor,"--list-item-color":s.listItemColor,"--list-border-radius":`${s.listBorderRadius}`,"--list-border-color":s.listBorderColor,"--list-width":s.isListSameWidth?s.width:"fit-content","--list-border-width":`${s.listBorderWidth}px`,"--list-margin-top":s.listMarginTop,"--list-left":s.listAlignment==="left"?"0":"auto","--list-right":s.listAlignment==="right"?"0":"auto","--footer-border":`${s.footerBorderWidth}px solid ${s.footerBorderColor}`,"--dropdown-opacity":s.isDisabled?"0.5":"1","--dropdown-cursor":s.isDisabled?"not-allowed":"pointer","--dropdown-font-size":s.fontSize?s.fontSize:"14px"})),b=t.computed(()=>({height:`${s.arrowHeight}px`,width:`${s.arrowWidth}px`}));function d(){s.isDisabled||(g.value=!g.value)}function a(x){W.value&&!W.value.contains(x.target)&&(g.value=!1)}function _(x,u){s.isMultipleOption?v.value=-1:(v.value=u,g.value=!1),z.value=x,o("input",z.value),o("update:modelValue",z.value)}function y(){g.value=!1,o("click-ready")}return t.onMounted(()=>{document.addEventListener("click",a)}),t.onBeforeMount(()=>{document.removeEventListener("click",a)}),(x,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:W,class:"gsc-dropdown",style:t.normalizeStyle(r.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:d},[t.createElementVNode("div",CZ,[t.renderSlot(x.$slots,"default",{selectedItem:z.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":g.value}]),style:t.normalizeStyle(b.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,AZ)],8,EZ))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",MZ,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${s.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(n,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:i===v.value}]),key:i,onClick:f=>_(n,i)},[t.renderSlot(x.$slots,"availableItem",{item:n})],10,PZ))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",IZ,[t.createVNode(t.unref(TZ),{"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))}},BZ=(e,o)=>{const s=e.__vccOpts||e;for(const[z,W]of o)s[z]=W;return s},OZ={class:"season-name"},zZ={class:"items-list-season"},NZ={__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},listHeight:{type:String,default:"fit-content"},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:o}){const s=e,z=t.computed(()=>s.seasons.find(g=>g.id===s.currentSeasonId));function W(g){o("input",g)}function v(g){o("input",g)}return(g,r)=>(t.openBlock(),t.createBlock(t.unref(LZ),{items:e.seasons,"model-value":z.value,height:"40px",width:"179px","background-color":"#0d1d29",color:"white","list-height":s.listHeight,"border-color":"rgba(255, 255, 255, 0.2)","font-family":"Poppins-Regular","border-radius":8,onInput:v,"onUpdate:modelValue":W},{default:t.withCtx(({selectedItem:b})=>[t.createElementVNode("div",OZ,[t.createElementVNode("span",null,t.toDisplayString(b.name),1)])]),availableItem:t.withCtx(({item:b})=>[t.createElementVNode("span",zZ,t.toDisplayString(b.name),1)]),_:1},8,["items","model-value","list-height"]))}},ZT=BZ(NZ,[["__scopeId","data-v-748c2f60"]]);function WT(e,o){return function(){return e.apply(o,arguments)}}const{toString:DZ}=Object.prototype,{getPrototypeOf:H4}=Object,{iterator:Rb,toStringTag:XT}=Symbol,Vb=(e=>o=>{const s=DZ.call(o);return e[s]||(e[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),hf=e=>(e=e.toLowerCase(),o=>Vb(o)===e),jb=e=>o=>typeof o===e,{isArray:iy}=Array,k2=jb("undefined");function FZ(e){return e!==null&&!k2(e)&&e.constructor!==null&&!k2(e.constructor)&&Kh(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const qT=hf("ArrayBuffer");function RZ(e){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(e):o=e&&e.buffer&&qT(e.buffer),o}const VZ=jb("string"),Kh=jb("function"),YT=jb("number"),Ub=e=>e!==null&&typeof e=="object",jZ=e=>e===!0||e===!1,Gb=e=>{if(Vb(e)!=="object")return!1;const o=H4(e);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(XT in e)&&!(Rb in e)},UZ=hf("Date"),GZ=hf("File"),HZ=hf("Blob"),ZZ=hf("FileList"),WZ=e=>Ub(e)&&Kh(e.pipe),XZ=e=>{let o;return e&&(typeof FormData=="function"&&e instanceof FormData||Kh(e.append)&&((o=Vb(e))==="formdata"||o==="object"&&Kh(e.toString)&&e.toString()==="[object FormData]"))},qZ=hf("URLSearchParams"),[YZ,JZ,$Z,KZ]=["ReadableStream","Request","Response","Headers"].map(hf),QZ=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function S2(e,o,{allOwnKeys:s=!1}={}){if(e===null||typeof e>"u")return;let z,W;if(typeof e!="object"&&(e=[e]),iy(e))for(z=0,W=e.length;z<W;z++)o.call(null,e[z],z,e);else{const v=s?Object.getOwnPropertyNames(e):Object.keys(e),g=v.length;let r;for(z=0;z<g;z++)r=v[z],o.call(null,e[r],r,e)}}function JT(e,o){o=o.toLowerCase();const s=Object.keys(e);let z=s.length,W;for(;z-- >0;)if(W=s[z],o===W.toLowerCase())return W;return null}const b1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),$T=e=>!k2(e)&&e!==b1;function Z4(){const{caseless:e}=$T(this)&&this||{},o={},s=(z,W)=>{const v=e&&JT(o,W)||W;Gb(o[v])&&Gb(z)?o[v]=Z4(o[v],z):Gb(z)?o[v]=Z4({},z):iy(z)?o[v]=z.slice():o[v]=z};for(let z=0,W=arguments.length;z<W;z++)arguments[z]&&S2(arguments[z],s);return o}const eW=(e,o,s,{allOwnKeys:z}={})=>(S2(o,(W,v)=>{s&&Kh(W)?e[v]=WT(W,s):e[v]=W},{allOwnKeys:z}),e),tW=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),aW=(e,o,s,z)=>{e.prototype=Object.create(o.prototype,z),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:o.prototype}),s&&Object.assign(e.prototype,s)},rW=(e,o,s,z)=>{let W,v,g;const r={};if(o=o||{},e==null)return o;do{for(W=Object.getOwnPropertyNames(e),v=W.length;v-- >0;)g=W[v],(!z||z(g,e,o))&&!r[g]&&(o[g]=e[g],r[g]=!0);e=s!==!1&&H4(e)}while(e&&(!s||s(e,o))&&e!==Object.prototype);return o},nW=(e,o,s)=>{e=String(e),(s===void 0||s>e.length)&&(s=e.length),s-=o.length;const z=e.indexOf(o,s);return z!==-1&&z===s},iW=e=>{if(!e)return null;if(iy(e))return e;let o=e.length;if(!YT(o))return null;const s=new Array(o);for(;o-- >0;)s[o]=e[o];return s},oW=(e=>o=>e&&o instanceof e)(typeof Uint8Array<"u"&&H4(Uint8Array)),sW=(e,o)=>{const s=(e&&e[Rb]).call(e);let z;for(;(z=s.next())&&!z.done;){const W=z.value;o.call(e,W[0],W[1])}},lW=(e,o)=>{let s;const z=[];for(;(s=e.exec(o))!==null;)z.push(s);return z},cW=hf("HTMLFormElement"),uW=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,s,z){return s.toUpperCase()+z}),KT=(({hasOwnProperty:e})=>(o,s)=>e.call(o,s))(Object.prototype),dW=hf("RegExp"),QT=(e,o)=>{const s=Object.getOwnPropertyDescriptors(e),z={};S2(s,(W,v)=>{let g;(g=o(W,v,e))!==!1&&(z[v]=g||W)}),Object.defineProperties(e,z)},hW=e=>{QT(e,(o,s)=>{if(Kh(e)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const z=e[s];if(Kh(z)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},pW=(e,o)=>{const s={},z=W=>{W.forEach(v=>{s[v]=!0})};return iy(e)?z(e):z(String(e).split(o)),s},fW=()=>{},mW=(e,o)=>e!=null&&Number.isFinite(e=+e)?e:o;function gW(e){return!!(e&&Kh(e.append)&&e[XT]==="FormData"&&e[Rb])}const yW=e=>{const o=new Array(10),s=(z,W)=>{if(Ub(z)){if(o.indexOf(z)>=0)return;if(!("toJSON"in z)){o[W]=z;const v=iy(z)?[]:{};return S2(z,(g,r)=>{const b=s(g,W+1);!k2(b)&&(v[r]=b)}),o[W]=void 0,v}}return z};return s(e,0)},vW=hf("AsyncFunction"),bW=e=>e&&(Ub(e)||Kh(e))&&Kh(e.then)&&Kh(e.catch),eC=((e,o)=>e?setImmediate:o?((s,z)=>(b1.addEventListener("message",({source:W,data:v})=>{W===b1&&v===s&&z.length&&z.shift()()},!1),W=>{z.push(W),b1.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",Kh(b1.postMessage)),xW=typeof queueMicrotask<"u"?queueMicrotask.bind(b1):typeof process<"u"&&process.nextTick||eC,_W=e=>e!=null&&Kh(e[Rb]),Bn={isArray:iy,isArrayBuffer:qT,isBuffer:FZ,isFormData:XZ,isArrayBufferView:RZ,isString:VZ,isNumber:YT,isBoolean:jZ,isObject:Ub,isPlainObject:Gb,isReadableStream:YZ,isRequest:JZ,isResponse:$Z,isHeaders:KZ,isUndefined:k2,isDate:UZ,isFile:GZ,isBlob:HZ,isRegExp:dW,isFunction:Kh,isStream:WZ,isURLSearchParams:qZ,isTypedArray:oW,isFileList:ZZ,forEach:S2,merge:Z4,extend:eW,trim:QZ,stripBOM:tW,inherits:aW,toFlatObject:rW,kindOf:Vb,kindOfTest:hf,endsWith:nW,toArray:iW,forEachEntry:sW,matchAll:lW,isHTMLForm:cW,hasOwnProperty:KT,hasOwnProp:KT,reduceDescriptors:QT,freezeMethods:hW,toObjectSet:pW,toCamelCase:uW,noop:fW,toFiniteNumber:mW,findKey:JT,global:b1,isContextDefined:$T,isSpecCompliantForm:gW,toJSONObject:yW,isAsyncFn:vW,isThenable:bW,setImmediate:eC,asap:xW,isIterable:_W};function cl(e,o,s,z,W){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",o&&(this.code=o),s&&(this.config=s),z&&(this.request=z),W&&(this.response=W,this.status=W.status?W.status:null)}Bn.inherits(cl,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:Bn.toJSONObject(this.config),code:this.code,status:this.status}}});const tC=cl.prototype,aC={};["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=>{aC[e]={value:e}}),Object.defineProperties(cl,aC),Object.defineProperty(tC,"isAxiosError",{value:!0}),cl.from=(e,o,s,z,W,v)=>{const g=Object.create(tC);return Bn.toFlatObject(e,g,function(r){return r!==Error.prototype},r=>r!=="isAxiosError"),cl.call(g,e.message,o,s,z,W),g.cause=e,g.name=e.name,v&&Object.assign(g,v),g};const wW=null;function W4(e){return Bn.isPlainObject(e)||Bn.isArray(e)}function rC(e){return Bn.endsWith(e,"[]")?e.slice(0,-2):e}function nC(e,o,s){return e?e.concat(o).map(function(z,W){return z=rC(z),!s&&W?"["+z+"]":z}).join(s?".":""):o}function kW(e){return Bn.isArray(e)&&!e.some(W4)}const SW=Bn.toFlatObject(Bn,{},null,function(e){return/^is[A-Z]/.test(e)});function Hb(e,o,s){if(!Bn.isObject(e))throw new TypeError("target must be an object");o=o||new FormData,s=Bn.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,u){return!Bn.isUndefined(u[x])});const z=s.metaTokens,W=s.visitor||d,v=s.dots,g=s.indexes,r=(s.Blob||typeof Blob<"u"&&Blob)&&Bn.isSpecCompliantForm(o);if(!Bn.isFunction(W))throw new TypeError("visitor must be a function");function b(x){if(x===null)return"";if(Bn.isDate(x))return x.toISOString();if(Bn.isBoolean(x))return x.toString();if(!r&&Bn.isBlob(x))throw new cl("Blob is not supported. Use a Buffer instead.");return Bn.isArrayBuffer(x)||Bn.isTypedArray(x)?r&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function d(x,u,n){let i=x;if(x&&!n&&typeof x=="object"){if(Bn.endsWith(u,"{}"))u=z?u:u.slice(0,-2),x=JSON.stringify(x);else if(Bn.isArray(x)&&kW(x)||(Bn.isFileList(x)||Bn.endsWith(u,"[]"))&&(i=Bn.toArray(x)))return u=rC(u),i.forEach(function(f,l){!(Bn.isUndefined(f)||f===null)&&o.append(g===!0?nC([u],l,v):g===null?u:u+"[]",b(f))}),!1}return W4(x)?!0:(o.append(nC(n,u,v),b(x)),!1)}const a=[],_=Object.assign(SW,{defaultVisitor:d,convertValue:b,isVisitable:W4});function y(x,u){if(!Bn.isUndefined(x)){if(a.indexOf(x)!==-1)throw Error("Circular reference detected in "+u.join("."));a.push(x),Bn.forEach(x,function(n,i){(!(Bn.isUndefined(n)||n===null)&&W.call(o,n,Bn.isString(i)?i.trim():i,u,_))===!0&&y(n,u?u.concat(i):[i])}),a.pop()}}if(!Bn.isObject(e))throw new TypeError("data must be an object");return y(e),o}function iC(e){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return o[s]})}function X4(e,o){this._pairs=[],e&&Hb(e,this,o)}const oC=X4.prototype;oC.append=function(e,o){this._pairs.push([e,o])},oC.toString=function(e){const o=e?function(s){return e.call(this,s,iC)}:iC;return this._pairs.map(function(s){return o(s[0])+"="+o(s[1])},"").join("&")};function TW(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function sC(e,o,s){if(!o)return e;const z=s&&s.encode||TW;Bn.isFunction(s)&&(s={serialize:s});const W=s&&s.serialize;let v;if(W?v=W(o,s):v=Bn.isURLSearchParams(o)?o.toString():new X4(o,s).toString(z),v){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+v}return e}const lC=class{constructor(){this.handlers=[]}use(o,s,z){return this.handlers.push({fulfilled:o,rejected:s,synchronous:z?z.synchronous:!1,runWhen:z?z.runWhen:null}),this.handlers.length-1}eject(o){this.handlers[o]&&(this.handlers[o]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(o){Bn.forEach(this.handlers,function(s){s!==null&&o(s)})}},cC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},CW=typeof URLSearchParams<"u"?URLSearchParams:X4,EW=typeof FormData<"u"?FormData:null,AW=typeof Blob<"u"?Blob:null,MW={isBrowser:!0,classes:{URLSearchParams:CW,FormData:EW,Blob:AW},protocols:["http","https","file","blob","url","data"]},q4=typeof window<"u"&&typeof document<"u",Y4=typeof navigator=="object"&&navigator||void 0,PW=q4&&(!Y4||["ReactNative","NativeScript","NS"].indexOf(Y4.product)<0),IW=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),LW=q4&&window.location.href||"http://localhost",BW=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:q4,hasStandardBrowserEnv:PW,hasStandardBrowserWebWorkerEnv:IW,navigator:Y4,origin:LW},Symbol.toStringTag,{value:"Module"})),lh={...BW,...MW};function OW(e,o){return Hb(e,new lh.classes.URLSearchParams,Object.assign({visitor:function(s,z,W,v){return lh.isNode&&Bn.isBuffer(s)?(this.append(z,s.toString("base64")),!1):v.defaultVisitor.apply(this,arguments)}},o))}function zW(e){return Bn.matchAll(/\w+|\[(\w*)]/g,e).map(o=>o[0]==="[]"?"":o[1]||o[0])}function NW(e){const o={},s=Object.keys(e);let z;const W=s.length;let v;for(z=0;z<W;z++)v=s[z],o[v]=e[v];return o}function uC(e){function o(s,z,W,v){let g=s[v++];if(g==="__proto__")return!0;const r=Number.isFinite(+g),b=v>=s.length;return g=!g&&Bn.isArray(W)?W.length:g,b?(Bn.hasOwnProp(W,g)?W[g]=[W[g],z]:W[g]=z,!r):((!W[g]||!Bn.isObject(W[g]))&&(W[g]=[]),o(s,z,W[g],v)&&Bn.isArray(W[g])&&(W[g]=NW(W[g])),!r)}if(Bn.isFormData(e)&&Bn.isFunction(e.entries)){const s={};return Bn.forEachEntry(e,(z,W)=>{o(zW(z),W,s,0)}),s}return null}function DW(e,o,s){if(Bn.isString(e))try{return(o||JSON.parse)(e),Bn.trim(e)}catch(z){if(z.name!=="SyntaxError")throw z}return(s||JSON.stringify)(e)}const J4={transitional:cC,adapter:["xhr","http","fetch"],transformRequest:[function(e,o){const s=o.getContentType()||"",z=s.indexOf("application/json")>-1,W=Bn.isObject(e);if(W&&Bn.isHTMLForm(e)&&(e=new FormData(e)),Bn.isFormData(e))return z?JSON.stringify(uC(e)):e;if(Bn.isArrayBuffer(e)||Bn.isBuffer(e)||Bn.isStream(e)||Bn.isFile(e)||Bn.isBlob(e)||Bn.isReadableStream(e))return e;if(Bn.isArrayBufferView(e))return e.buffer;if(Bn.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let v;if(W){if(s.indexOf("application/x-www-form-urlencoded")>-1)return OW(e,this.formSerializer).toString();if((v=Bn.isFileList(e))||s.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return Hb(v?{"files[]":e}:e,g&&new g,this.formSerializer)}}return W||z?(o.setContentType("application/json",!1),DW(e)):e}],transformResponse:[function(e){const o=this.transitional||J4.transitional,s=o&&o.forcedJSONParsing,z=this.responseType==="json";if(Bn.isResponse(e)||Bn.isReadableStream(e))return e;if(e&&Bn.isString(e)&&(s&&!this.responseType||z)){const W=!(o&&o.silentJSONParsing)&&z;try{return JSON.parse(e)}catch(v){if(W)throw v.name==="SyntaxError"?cl.from(v,cl.ERR_BAD_RESPONSE,this,null,this.response):v}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lh.classes.FormData,Blob:lh.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Bn.forEach(["delete","get","head","post","put","patch"],e=>{J4.headers[e]={}});const $4=J4,FW=Bn.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"]),RW=e=>{const o={};let s,z,W;return e&&e.split(`
|
|
1
|
+
(function(Od,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(Od=typeof globalThis<"u"?globalThis:Od||self,t(Od.GSCGameData={},Od.Vue))})(this,function(Od,t){"use strict";var zRt=Object.defineProperty;var NRt=(Od,t,ny)=>t in Od?zRt(Od,t,{enumerable:!0,configurable:!0,writable:!0,value:ny}):Od[t]=ny;var yu=(Od,t,ny)=>(NRt(Od,typeof t!="symbol"?t+"":t,ny),ny);const ny="",DRt="",FRt="",RRt="",VRt="",jRt="",URt="",GRt="",HRt="",UH=(e,o)=>{const s=e.__vccOpts||e;for(const[z,W]of o)s[z]=W;return s},U4={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))}}},VT=()=>{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}))},jT=U4.setup;U4.setup=jT?(e,o)=>(VT(),jT(e,o)):VT;const GH=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),HH=["src"],ZH={key:1,class:"text"},WH=["src"],XH={class:"stats"},qH=GH(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),YH={class:"numstats"},JH={class:"leyend"};function $H(e,o,s,z,W,v){return t.openBlock(),t.createElementBlock("div",null,[s.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",W.status&&s.typeOnOff&&"button-active"]),style:t.normalizeStyle([v.customStyle,W.status&&s.typeOnOff&&v.customActive]),onClick:o[0]||(o[0]=(...g)=>v.btnClick&&v.btnClick(...g))},[s.icon&&s.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,HH)):t.createCommentVNode("",!0),s.textValue?(t.openBlock(),t.createElementBlock("div",ZH,t.toDisplayString(s.textValue),1)):t.createCommentVNode("",!0),s.icon&&s.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,WH)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),s.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:o[1]||(o[1]=(...g)=>v.btnClick&&v.btnClick(...g))},[t.createElementVNode("div",XH,[qH,t.createElementVNode("div",YH,t.toDisplayString(s.textStat),1)]),t.createElementVNode("div",JH,t.toDisplayString(s.textCategory),1)])):t.createCommentVNode("",!0)])}const KH=UH(U4,[["render",$H],["__scopeId","data-v-f3ee6b2b"]]),QH={class:"gsc-dropdown__main-container__item-selected"},eZ=["height","width"],tZ=["stroke"],aZ={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rZ=["fill"],nZ={class:"gsc-dropdown__items-container"},iZ=["onClick"],oZ={key:0,class:"gsc-dropdown__items-footer"},sZ={__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(o=>o 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:o}){const s=e,z=t.ref({}),W=t.ref(null),v=t.ref(s.isMultipleOption?-1:0),g=t.ref(!1);t.watch(()=>s.items,(x,u)=>{if(!s.modelValue&&(!s.onlyFirstTime||!u||!u.length)&&x&&x.length){if(s.defaultItemByProp){const n=s.items.findIndex(i=>i[s.defaultItemByProp.propName]===s.defaultItemByProp.value);n!==-1?(v.value=n,z.value=x[n]):(v.value=0,z.value=x[0])}else z.value=x[s.defaultItemByIndex];o("input",z.value)}},{immediate:!0}),t.watch(()=>s.modelValue,x=>{if(x){const u=s.items.findIndex(n=>typeof x=="object"?JSON.stringify(n)===JSON.stringify(x):n===x);u!==-1&&(v.value=u,z.value=s.items[u],o("update:modelValue",z.value))}},{immediate:!0});const r=t.computed(()=>({height:s.height,width:s.width,backgroundColor:s.backgroundColor,borderRadius:`${s.borderRadius}px`,border:`${s.borderType} ${s.borderWidth}px ${s.borderColor}`,color:s.color,"--hover-background-color":s.hoverBackgroundColor,"--list-container-padding":s.listContainerPadding,"--list-item-padding":s.listItemPadding,"--list-item-margin":s.listItemMargin,"--list-background-color":s.listBackgroundColor,"--list-height":s.listHeight,"--list-item-border-radius":s.listItemBorderRadius,"--list-item-selected-color":s.listItemSelectedColor,"--list-item-selected-background-color":s.listItemSelectedBackgroundColor,"--list-item-color":s.listItemColor,"--list-border-radius":`${s.listBorderRadius}`,"--list-border-color":s.listBorderColor,"--list-width":s.isListSameWidth?s.width:"fit-content","--list-border-width":`${s.listBorderWidth}px`,"--list-margin-top":s.listMarginTop,"--list-left":s.listAlignment==="left"?"0":"auto","--list-right":s.listAlignment==="right"?"0":"auto","--footer-border":`${s.footerBorderWidth}px solid ${s.footerBorderColor}`,"--dropdown-opacity":s.isDisabled?"0.5":"1","--dropdown-cursor":s.isDisabled?"not-allowed":"pointer","--dropdown-font-size":s.fontSize?s.fontSize:"14px"})),b=t.computed(()=>({height:`${s.arrowHeight}px`,width:`${s.arrowWidth}px`}));function d(){s.isDisabled||(g.value=!g.value)}function a(x){W.value&&!W.value.contains(x.target)&&(g.value=!1)}function _(x,u){s.isMultipleOption?v.value=-1:(v.value=u,g.value=!1),z.value=x,o("input",z.value),o("update:modelValue",z.value)}function y(){g.value=!1,o("click-ready")}return t.onMounted(()=>{document.addEventListener("click",a)}),t.onBeforeMount(()=>{document.removeEventListener("click",a)}),(x,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:W,class:"gsc-dropdown",style:t.normalizeStyle(r.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:d},[t.createElementVNode("div",QH,[t.renderSlot(x.$slots,"default",{selectedItem:z.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":g.value}]),style:t.normalizeStyle(b.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,tZ)],8,eZ)):(t.openBlock(),t.createElementBlock("svg",aZ,[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,rZ)]))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",nZ,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${s.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(n,i)=>(t.openBlock(),t.createElementBlock("div",null,[t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:i===v.value}]),key:i,onClick:f=>_(n,i)},[t.renderSlot(x.$slots,"availableItem",{item:n})],10,iZ)),[[t.vShow,!n.isHidden]])]))),256))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",oZ,[t.createVNode(t.unref(KH),{"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))}},lZ=(e,o)=>{const s=e.__vccOpts||e;for(const[z,W]of o)s[z]=W;return s},cZ={class:"tournament-select__selected-tournament"},uZ={class:"tournament-select__selected-tournament__logo"},dZ=["src"],hZ={class:"tournament-select__selected-tournament__name"},pZ="https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/v2/gs3/tournaments",fZ={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/v2/gs3/tournaments"},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},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(o=>o 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},isFemaleMode:{type:Boolean,default:!1}},emits:["input","change-tournaments"],setup(e,{emit:o}){const s=e,z=new Set(["tops","table","dataia"]),W=t.ref([]),v=t.computed(()=>{const n={};return s.fontFamily&&(n["font-family"]=`${s.fontFamily}`),n}),g=t.computed(()=>W.value.filter(n=>!n.isHidden)),r=t.computed(()=>{const n=s.isFemaleMode?g.value.filter(i=>i.is_female):g.value;return n.find(i=>i.seasonsIds.has(s.currentSeasonId))||n[0]}),b=t.computed(()=>s.isFemaleMode?g.value.filter(n=>n.is_female):s.areFemaleVisible?W.value:W.value.filter(n=>!n.is_female));t.watch(()=>s.isClubesActive,()=>{d()},{immediate:!0}),t.watch(()=>s.routeName,()=>{d()},{immediate:!0}),t.watch(()=>s.apiUrl,()=>{a()});function d(){W.value.forEach(n=>{n.isHidden=!s.isClubesActive&&n.isClub||s.isClubesActive&&!n.isClub||s.routeName&&n.tournament_type===4&&z.has(s.routeName)})}async function a(){try{if(s.items&&s.items.length)W.value=[...s.items];else{const n=await y();o("change-tournaments",n),W.value=n.sort((i,f)=>i.tournament.order-f.tournament.order).reduce((i,f)=>{if(s.tournamentsIdsToInclude&&s.tournamentsIdsToInclude.size&&!s.tournamentsIdsToInclude.has(f.id))return i;const l={...f.tournament,seasons:f.seasons,seasonsIds:f.seasons.reduce((h,m)=>(h.add(m.id),h),new Set),isClub:f.tournament.international_tournament===0,isFriendlies:f.tournament.tournament_type===3};return l.isHidden=!s.avoidTournamentFilter&&(!s.isClubesActive&&l.isClub||s.isClubesActive&&!l.isClub),i.push(l),i},[])}}catch(n){throw new Error(n)}}function _(n){const i=new XMLHttpRequest,f=`${s.logosUrl}${n}.${s.logoFileType}`;return i.open("HEAD",f,!1),i.send(),i.status!==404}async function y(){try{return(await fetch(s.apiUrl||pZ,{method:"GET",headers:{Authorization:s.token}})).json()}catch(n){return Promise.reject(n)}}function x(n){o("input",n)}function u(n){o("input",n)}return t.onMounted(()=>{a()}),(n,i)=>(t.openBlock(),t.createElementBlock("div",{class:"tournament-select",style:t.normalizeStyle(v.value)},[t.createVNode(t.unref(sZ),t.mergeProps(s,{"list-height":s.listHeight,"model-value":r.value,items:b.value,onInput:x,"onUpdate:modelValue":u}),{default:t.withCtx(({selectedItem:f})=>[t.createElementVNode("div",cZ,[t.createElementVNode("div",uZ,[_(f.id)?(t.openBlock(),t.createElementBlock("img",{key:0,src:`${s.logosUrl}${f.id}.${s.logoFileType}`,alt:""},null,8,dZ)):t.createCommentVNode("",!0)]),t.createElementVNode("div",hZ,t.toDisplayString(f.name),1)])]),availableItem:t.withCtx(({item:f})=>[t.createElementVNode("div",null,t.toDisplayString(f.name),1)]),_:1},16,["list-height","model-value","items"])],4))}},UT=lZ(fZ,[["__scopeId","data-v-4ba6e84c"]]),mZ=(e,o)=>{const s=e.__vccOpts||e;for(const[z,W]of o)s[z]=W;return s},G4={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))}}},GT=()=>{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}))},HT=G4.setup;G4.setup=HT?(e,o)=>(GT(),HT(e,o)):GT;const gZ=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),yZ=["src"],vZ={key:1,class:"text"},bZ=["src"],xZ={class:"stats"},_Z=gZ(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),wZ={class:"numstats"},kZ={class:"leyend"};function SZ(e,o,s,z,W,v){return t.openBlock(),t.createElementBlock("div",null,[s.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",W.status&&s.typeOnOff&&"button-active"]),style:t.normalizeStyle([v.customStyle,W.status&&s.typeOnOff&&v.customActive]),onClick:o[0]||(o[0]=(...g)=>v.btnClick&&v.btnClick(...g))},[s.icon&&s.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,yZ)):t.createCommentVNode("",!0),s.textValue?(t.openBlock(),t.createElementBlock("div",vZ,t.toDisplayString(s.textValue),1)):t.createCommentVNode("",!0),s.icon&&s.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,bZ)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),s.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:o[1]||(o[1]=(...g)=>v.btnClick&&v.btnClick(...g))},[t.createElementVNode("div",xZ,[_Z,t.createElementVNode("div",wZ,t.toDisplayString(s.textStat),1)]),t.createElementVNode("div",kZ,t.toDisplayString(s.textCategory),1)])):t.createCommentVNode("",!0)])}const TZ=mZ(G4,[["render",SZ],["__scopeId","data-v-f3ee6b2b"]]),CZ={class:"gsc-dropdown__main-container__item-selected"},EZ=["height","width"],AZ=["stroke"],MZ={class:"gsc-dropdown__items-container"},PZ=["onClick"],IZ={key:0,class:"gsc-dropdown__items-footer"},LZ={__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(o=>o 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:o}){const s=e,z=t.ref({}),W=t.ref(null),v=t.ref(s.isMultipleOption?-1:0),g=t.ref(!1);t.watch(()=>s.items,(x,u)=>{if(!s.modelValue&&(!s.onlyFirstTime||!u||!u.length)&&x&&x.length){if(s.defaultItemByProp){const n=s.items.findIndex(i=>i[s.defaultItemByProp.propName]===s.defaultItemByProp.value);n!==-1?(v.value=n,z.value=x[n]):(v.value=0,z.value=x[0])}else z.value=x[s.defaultItemByIndex];o("input",z.value)}},{immediate:!0}),t.watch(()=>s.modelValue,x=>{if(x){const u=s.items.findIndex(n=>typeof x=="object"?JSON.stringify(n)===JSON.stringify(x):n===x);u!==-1&&(v.value=u,z.value=s.items[u],o("update:modelValue",z.value))}},{immediate:!0});const r=t.computed(()=>({height:s.height,width:s.width,backgroundColor:s.backgroundColor,borderRadius:`${s.borderRadius}px`,border:`${s.borderType} ${s.borderWidth}px ${s.borderColor}`,color:s.color,"--hover-background-color":s.hoverBackgroundColor,"--list-container-padding":s.listContainerPadding,"--list-item-padding":s.listItemPadding,"--list-item-margin":s.listItemMargin,"--list-background-color":s.listBackgroundColor,"--list-height":s.listHeight,"--list-item-border-radius":s.listItemBorderRadius,"--list-item-selected-color":s.listItemSelectedColor,"--list-item-selected-background-color":s.listItemSelectedBackgroundColor,"--list-item-color":s.listItemColor,"--list-border-radius":`${s.listBorderRadius}`,"--list-border-color":s.listBorderColor,"--list-width":s.isListSameWidth?s.width:"fit-content","--list-border-width":`${s.listBorderWidth}px`,"--list-margin-top":s.listMarginTop,"--list-left":s.listAlignment==="left"?"0":"auto","--list-right":s.listAlignment==="right"?"0":"auto","--footer-border":`${s.footerBorderWidth}px solid ${s.footerBorderColor}`,"--dropdown-opacity":s.isDisabled?"0.5":"1","--dropdown-cursor":s.isDisabled?"not-allowed":"pointer","--dropdown-font-size":s.fontSize?s.fontSize:"14px"})),b=t.computed(()=>({height:`${s.arrowHeight}px`,width:`${s.arrowWidth}px`}));function d(){s.isDisabled||(g.value=!g.value)}function a(x){W.value&&!W.value.contains(x.target)&&(g.value=!1)}function _(x,u){s.isMultipleOption?v.value=-1:(v.value=u,g.value=!1),z.value=x,o("input",z.value),o("update:modelValue",z.value)}function y(){g.value=!1,o("click-ready")}return t.onMounted(()=>{document.addEventListener("click",a)}),t.onBeforeMount(()=>{document.removeEventListener("click",a)}),(x,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:W,class:"gsc-dropdown",style:t.normalizeStyle(r.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:d},[t.createElementVNode("div",CZ,[t.renderSlot(x.$slots,"default",{selectedItem:z.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":g.value}]),style:t.normalizeStyle(b.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,AZ)],8,EZ))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",MZ,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${s.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(n,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:i===v.value}]),key:i,onClick:f=>_(n,i)},[t.renderSlot(x.$slots,"availableItem",{item:n})],10,PZ))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",IZ,[t.createVNode(t.unref(TZ),{"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))}},BZ=(e,o)=>{const s=e.__vccOpts||e;for(const[z,W]of o)s[z]=W;return s},OZ={class:"season-name"},zZ={class:"items-list-season"},NZ={__name:"GSC-SeasonSelect",props:{seasons:{type:Array,default:()=>[]},listHeight:{type:String,default:"fit-content"},currentSeasonId:{type:Number,default:0}},emits:["input"],setup(e,{emit:o}){const s=e,z=t.computed(()=>s.seasons.find(g=>g.id===s.currentSeasonId));function W(g){o("input",g)}function v(g){o("input",g)}return(g,r)=>(t.openBlock(),t.createBlock(t.unref(LZ),{items:e.seasons,"model-value":z.value,height:"40px",width:"179px","background-color":"#0d1d29",color:"white","list-height":s.listHeight,"border-color":"rgba(255, 255, 255, 0.2)","font-family":"Poppins-Regular","border-radius":8,onInput:v,"onUpdate:modelValue":W},{default:t.withCtx(({selectedItem:b})=>[t.createElementVNode("div",OZ,[t.createElementVNode("span",null,t.toDisplayString(b.name),1)])]),availableItem:t.withCtx(({item:b})=>[t.createElementVNode("span",zZ,t.toDisplayString(b.name),1)]),_:1},8,["items","model-value","list-height"]))}},ZT=BZ(NZ,[["__scopeId","data-v-748c2f60"]]);function WT(e,o){return function(){return e.apply(o,arguments)}}const{toString:DZ}=Object.prototype,{getPrototypeOf:H4}=Object,{iterator:Rb,toStringTag:XT}=Symbol,Vb=(e=>o=>{const s=DZ.call(o);return e[s]||(e[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),hf=e=>(e=e.toLowerCase(),o=>Vb(o)===e),jb=e=>o=>typeof o===e,{isArray:iy}=Array,k2=jb("undefined");function FZ(e){return e!==null&&!k2(e)&&e.constructor!==null&&!k2(e.constructor)&&Kh(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const qT=hf("ArrayBuffer");function RZ(e){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(e):o=e&&e.buffer&&qT(e.buffer),o}const VZ=jb("string"),Kh=jb("function"),YT=jb("number"),Ub=e=>e!==null&&typeof e=="object",jZ=e=>e===!0||e===!1,Gb=e=>{if(Vb(e)!=="object")return!1;const o=H4(e);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(XT in e)&&!(Rb in e)},UZ=hf("Date"),GZ=hf("File"),HZ=hf("Blob"),ZZ=hf("FileList"),WZ=e=>Ub(e)&&Kh(e.pipe),XZ=e=>{let o;return e&&(typeof FormData=="function"&&e instanceof FormData||Kh(e.append)&&((o=Vb(e))==="formdata"||o==="object"&&Kh(e.toString)&&e.toString()==="[object FormData]"))},qZ=hf("URLSearchParams"),[YZ,JZ,$Z,KZ]=["ReadableStream","Request","Response","Headers"].map(hf),QZ=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function S2(e,o,{allOwnKeys:s=!1}={}){if(e===null||typeof e>"u")return;let z,W;if(typeof e!="object"&&(e=[e]),iy(e))for(z=0,W=e.length;z<W;z++)o.call(null,e[z],z,e);else{const v=s?Object.getOwnPropertyNames(e):Object.keys(e),g=v.length;let r;for(z=0;z<g;z++)r=v[z],o.call(null,e[r],r,e)}}function JT(e,o){o=o.toLowerCase();const s=Object.keys(e);let z=s.length,W;for(;z-- >0;)if(W=s[z],o===W.toLowerCase())return W;return null}const b1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),$T=e=>!k2(e)&&e!==b1;function Z4(){const{caseless:e}=$T(this)&&this||{},o={},s=(z,W)=>{const v=e&&JT(o,W)||W;Gb(o[v])&&Gb(z)?o[v]=Z4(o[v],z):Gb(z)?o[v]=Z4({},z):iy(z)?o[v]=z.slice():o[v]=z};for(let z=0,W=arguments.length;z<W;z++)arguments[z]&&S2(arguments[z],s);return o}const eW=(e,o,s,{allOwnKeys:z}={})=>(S2(o,(W,v)=>{s&&Kh(W)?e[v]=WT(W,s):e[v]=W},{allOwnKeys:z}),e),tW=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),aW=(e,o,s,z)=>{e.prototype=Object.create(o.prototype,z),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:o.prototype}),s&&Object.assign(e.prototype,s)},rW=(e,o,s,z)=>{let W,v,g;const r={};if(o=o||{},e==null)return o;do{for(W=Object.getOwnPropertyNames(e),v=W.length;v-- >0;)g=W[v],(!z||z(g,e,o))&&!r[g]&&(o[g]=e[g],r[g]=!0);e=s!==!1&&H4(e)}while(e&&(!s||s(e,o))&&e!==Object.prototype);return o},nW=(e,o,s)=>{e=String(e),(s===void 0||s>e.length)&&(s=e.length),s-=o.length;const z=e.indexOf(o,s);return z!==-1&&z===s},iW=e=>{if(!e)return null;if(iy(e))return e;let o=e.length;if(!YT(o))return null;const s=new Array(o);for(;o-- >0;)s[o]=e[o];return s},oW=(e=>o=>e&&o instanceof e)(typeof Uint8Array<"u"&&H4(Uint8Array)),sW=(e,o)=>{const s=(e&&e[Rb]).call(e);let z;for(;(z=s.next())&&!z.done;){const W=z.value;o.call(e,W[0],W[1])}},lW=(e,o)=>{let s;const z=[];for(;(s=e.exec(o))!==null;)z.push(s);return z},cW=hf("HTMLFormElement"),uW=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,s,z){return s.toUpperCase()+z}),KT=(({hasOwnProperty:e})=>(o,s)=>e.call(o,s))(Object.prototype),dW=hf("RegExp"),QT=(e,o)=>{const s=Object.getOwnPropertyDescriptors(e),z={};S2(s,(W,v)=>{let g;(g=o(W,v,e))!==!1&&(z[v]=g||W)}),Object.defineProperties(e,z)},hW=e=>{QT(e,(o,s)=>{if(Kh(e)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const z=e[s];if(Kh(z)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},pW=(e,o)=>{const s={},z=W=>{W.forEach(v=>{s[v]=!0})};return iy(e)?z(e):z(String(e).split(o)),s},fW=()=>{},mW=(e,o)=>e!=null&&Number.isFinite(e=+e)?e:o;function gW(e){return!!(e&&Kh(e.append)&&e[XT]==="FormData"&&e[Rb])}const yW=e=>{const o=new Array(10),s=(z,W)=>{if(Ub(z)){if(o.indexOf(z)>=0)return;if(!("toJSON"in z)){o[W]=z;const v=iy(z)?[]:{};return S2(z,(g,r)=>{const b=s(g,W+1);!k2(b)&&(v[r]=b)}),o[W]=void 0,v}}return z};return s(e,0)},vW=hf("AsyncFunction"),bW=e=>e&&(Ub(e)||Kh(e))&&Kh(e.then)&&Kh(e.catch),eC=((e,o)=>e?setImmediate:o?((s,z)=>(b1.addEventListener("message",({source:W,data:v})=>{W===b1&&v===s&&z.length&&z.shift()()},!1),W=>{z.push(W),b1.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",Kh(b1.postMessage)),xW=typeof queueMicrotask<"u"?queueMicrotask.bind(b1):typeof process<"u"&&process.nextTick||eC,_W=e=>e!=null&&Kh(e[Rb]),Bn={isArray:iy,isArrayBuffer:qT,isBuffer:FZ,isFormData:XZ,isArrayBufferView:RZ,isString:VZ,isNumber:YT,isBoolean:jZ,isObject:Ub,isPlainObject:Gb,isReadableStream:YZ,isRequest:JZ,isResponse:$Z,isHeaders:KZ,isUndefined:k2,isDate:UZ,isFile:GZ,isBlob:HZ,isRegExp:dW,isFunction:Kh,isStream:WZ,isURLSearchParams:qZ,isTypedArray:oW,isFileList:ZZ,forEach:S2,merge:Z4,extend:eW,trim:QZ,stripBOM:tW,inherits:aW,toFlatObject:rW,kindOf:Vb,kindOfTest:hf,endsWith:nW,toArray:iW,forEachEntry:sW,matchAll:lW,isHTMLForm:cW,hasOwnProperty:KT,hasOwnProp:KT,reduceDescriptors:QT,freezeMethods:hW,toObjectSet:pW,toCamelCase:uW,noop:fW,toFiniteNumber:mW,findKey:JT,global:b1,isContextDefined:$T,isSpecCompliantForm:gW,toJSONObject:yW,isAsyncFn:vW,isThenable:bW,setImmediate:eC,asap:xW,isIterable:_W};function cl(e,o,s,z,W){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",o&&(this.code=o),s&&(this.config=s),z&&(this.request=z),W&&(this.response=W,this.status=W.status?W.status:null)}Bn.inherits(cl,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:Bn.toJSONObject(this.config),code:this.code,status:this.status}}});const tC=cl.prototype,aC={};["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=>{aC[e]={value:e}}),Object.defineProperties(cl,aC),Object.defineProperty(tC,"isAxiosError",{value:!0}),cl.from=(e,o,s,z,W,v)=>{const g=Object.create(tC);return Bn.toFlatObject(e,g,function(r){return r!==Error.prototype},r=>r!=="isAxiosError"),cl.call(g,e.message,o,s,z,W),g.cause=e,g.name=e.name,v&&Object.assign(g,v),g};const wW=null;function W4(e){return Bn.isPlainObject(e)||Bn.isArray(e)}function rC(e){return Bn.endsWith(e,"[]")?e.slice(0,-2):e}function nC(e,o,s){return e?e.concat(o).map(function(z,W){return z=rC(z),!s&&W?"["+z+"]":z}).join(s?".":""):o}function kW(e){return Bn.isArray(e)&&!e.some(W4)}const SW=Bn.toFlatObject(Bn,{},null,function(e){return/^is[A-Z]/.test(e)});function Hb(e,o,s){if(!Bn.isObject(e))throw new TypeError("target must be an object");o=o||new FormData,s=Bn.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,u){return!Bn.isUndefined(u[x])});const z=s.metaTokens,W=s.visitor||d,v=s.dots,g=s.indexes,r=(s.Blob||typeof Blob<"u"&&Blob)&&Bn.isSpecCompliantForm(o);if(!Bn.isFunction(W))throw new TypeError("visitor must be a function");function b(x){if(x===null)return"";if(Bn.isDate(x))return x.toISOString();if(Bn.isBoolean(x))return x.toString();if(!r&&Bn.isBlob(x))throw new cl("Blob is not supported. Use a Buffer instead.");return Bn.isArrayBuffer(x)||Bn.isTypedArray(x)?r&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function d(x,u,n){let i=x;if(x&&!n&&typeof x=="object"){if(Bn.endsWith(u,"{}"))u=z?u:u.slice(0,-2),x=JSON.stringify(x);else if(Bn.isArray(x)&&kW(x)||(Bn.isFileList(x)||Bn.endsWith(u,"[]"))&&(i=Bn.toArray(x)))return u=rC(u),i.forEach(function(f,l){!(Bn.isUndefined(f)||f===null)&&o.append(g===!0?nC([u],l,v):g===null?u:u+"[]",b(f))}),!1}return W4(x)?!0:(o.append(nC(n,u,v),b(x)),!1)}const a=[],_=Object.assign(SW,{defaultVisitor:d,convertValue:b,isVisitable:W4});function y(x,u){if(!Bn.isUndefined(x)){if(a.indexOf(x)!==-1)throw Error("Circular reference detected in "+u.join("."));a.push(x),Bn.forEach(x,function(n,i){(!(Bn.isUndefined(n)||n===null)&&W.call(o,n,Bn.isString(i)?i.trim():i,u,_))===!0&&y(n,u?u.concat(i):[i])}),a.pop()}}if(!Bn.isObject(e))throw new TypeError("data must be an object");return y(e),o}function iC(e){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return o[s]})}function X4(e,o){this._pairs=[],e&&Hb(e,this,o)}const oC=X4.prototype;oC.append=function(e,o){this._pairs.push([e,o])},oC.toString=function(e){const o=e?function(s){return e.call(this,s,iC)}:iC;return this._pairs.map(function(s){return o(s[0])+"="+o(s[1])},"").join("&")};function TW(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function sC(e,o,s){if(!o)return e;const z=s&&s.encode||TW;Bn.isFunction(s)&&(s={serialize:s});const W=s&&s.serialize;let v;if(W?v=W(o,s):v=Bn.isURLSearchParams(o)?o.toString():new X4(o,s).toString(z),v){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+v}return e}const lC=class{constructor(){this.handlers=[]}use(o,s,z){return this.handlers.push({fulfilled:o,rejected:s,synchronous:z?z.synchronous:!1,runWhen:z?z.runWhen:null}),this.handlers.length-1}eject(o){this.handlers[o]&&(this.handlers[o]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(o){Bn.forEach(this.handlers,function(s){s!==null&&o(s)})}},cC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},CW=typeof URLSearchParams<"u"?URLSearchParams:X4,EW=typeof FormData<"u"?FormData:null,AW=typeof Blob<"u"?Blob:null,MW={isBrowser:!0,classes:{URLSearchParams:CW,FormData:EW,Blob:AW},protocols:["http","https","file","blob","url","data"]},q4=typeof window<"u"&&typeof document<"u",Y4=typeof navigator=="object"&&navigator||void 0,PW=q4&&(!Y4||["ReactNative","NativeScript","NS"].indexOf(Y4.product)<0),IW=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),LW=q4&&window.location.href||"http://localhost",BW=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:q4,hasStandardBrowserEnv:PW,hasStandardBrowserWebWorkerEnv:IW,navigator:Y4,origin:LW},Symbol.toStringTag,{value:"Module"})),lh={...BW,...MW};function OW(e,o){return Hb(e,new lh.classes.URLSearchParams,Object.assign({visitor:function(s,z,W,v){return lh.isNode&&Bn.isBuffer(s)?(this.append(z,s.toString("base64")),!1):v.defaultVisitor.apply(this,arguments)}},o))}function zW(e){return Bn.matchAll(/\w+|\[(\w*)]/g,e).map(o=>o[0]==="[]"?"":o[1]||o[0])}function NW(e){const o={},s=Object.keys(e);let z;const W=s.length;let v;for(z=0;z<W;z++)v=s[z],o[v]=e[v];return o}function uC(e){function o(s,z,W,v){let g=s[v++];if(g==="__proto__")return!0;const r=Number.isFinite(+g),b=v>=s.length;return g=!g&&Bn.isArray(W)?W.length:g,b?(Bn.hasOwnProp(W,g)?W[g]=[W[g],z]:W[g]=z,!r):((!W[g]||!Bn.isObject(W[g]))&&(W[g]=[]),o(s,z,W[g],v)&&Bn.isArray(W[g])&&(W[g]=NW(W[g])),!r)}if(Bn.isFormData(e)&&Bn.isFunction(e.entries)){const s={};return Bn.forEachEntry(e,(z,W)=>{o(zW(z),W,s,0)}),s}return null}function DW(e,o,s){if(Bn.isString(e))try{return(o||JSON.parse)(e),Bn.trim(e)}catch(z){if(z.name!=="SyntaxError")throw z}return(s||JSON.stringify)(e)}const J4={transitional:cC,adapter:["xhr","http","fetch"],transformRequest:[function(e,o){const s=o.getContentType()||"",z=s.indexOf("application/json")>-1,W=Bn.isObject(e);if(W&&Bn.isHTMLForm(e)&&(e=new FormData(e)),Bn.isFormData(e))return z?JSON.stringify(uC(e)):e;if(Bn.isArrayBuffer(e)||Bn.isBuffer(e)||Bn.isStream(e)||Bn.isFile(e)||Bn.isBlob(e)||Bn.isReadableStream(e))return e;if(Bn.isArrayBufferView(e))return e.buffer;if(Bn.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let v;if(W){if(s.indexOf("application/x-www-form-urlencoded")>-1)return OW(e,this.formSerializer).toString();if((v=Bn.isFileList(e))||s.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return Hb(v?{"files[]":e}:e,g&&new g,this.formSerializer)}}return W||z?(o.setContentType("application/json",!1),DW(e)):e}],transformResponse:[function(e){const o=this.transitional||J4.transitional,s=o&&o.forcedJSONParsing,z=this.responseType==="json";if(Bn.isResponse(e)||Bn.isReadableStream(e))return e;if(e&&Bn.isString(e)&&(s&&!this.responseType||z)){const W=!(o&&o.silentJSONParsing)&&z;try{return JSON.parse(e)}catch(v){if(W)throw v.name==="SyntaxError"?cl.from(v,cl.ERR_BAD_RESPONSE,this,null,this.response):v}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lh.classes.FormData,Blob:lh.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Bn.forEach(["delete","get","head","post","put","patch"],e=>{J4.headers[e]={}});const $4=J4,FW=Bn.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"]),RW=e=>{const o={};let s,z,W;return e&&e.split(`
|
|
2
2
|
`).forEach(function(v){W=v.indexOf(":"),s=v.substring(0,W).trim().toLowerCase(),z=v.substring(W+1).trim(),!(!s||o[s]&&FW[s])&&(s==="set-cookie"?o[s]?o[s].push(z):o[s]=[z]:o[s]=o[s]?o[s]+", "+z:z)}),o},dC=Symbol("internals");function T2(e){return e&&String(e).trim().toLowerCase()}function Zb(e){return e===!1||e==null?e:Bn.isArray(e)?e.map(Zb):String(e)}function VW(e){const o=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let z;for(;z=s.exec(e);)o[z[1]]=z[2];return o}const jW=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function K4(e,o,s,z,W){if(Bn.isFunction(z))return z.call(this,o,s);if(W&&(o=s),!!Bn.isString(o)){if(Bn.isString(z))return o.indexOf(z)!==-1;if(Bn.isRegExp(z))return z.test(o)}}function UW(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,s,z)=>s.toUpperCase()+z)}function GW(e,o){const s=Bn.toCamelCase(" "+o);["get","set","has"].forEach(z=>{Object.defineProperty(e,z+s,{value:function(W,v,g){return this[z].call(this,o,W,v,g)},configurable:!0})})}let Wb=class{constructor(o){o&&this.set(o)}set(o,s,z){const W=this;function v(r,b,d){const a=T2(b);if(!a)throw new Error("header name must be a non-empty string");const _=Bn.findKey(W,a);(!_||W[_]===void 0||d===!0||d===void 0&&W[_]!==!1)&&(W[_||b]=Zb(r))}const g=(r,b)=>Bn.forEach(r,(d,a)=>v(d,a,b));if(Bn.isPlainObject(o)||o instanceof this.constructor)g(o,s);else if(Bn.isString(o)&&(o=o.trim())&&!jW(o))g(RW(o),s);else if(Bn.isObject(o)&&Bn.isIterable(o)){let r={},b,d;for(const a of o){if(!Bn.isArray(a))throw TypeError("Object iterator must return a key-value pair");r[d=a[0]]=(b=r[d])?Bn.isArray(b)?[...b,a[1]]:[b,a[1]]:a[1]}g(r,s)}else o!=null&&v(s,o,z);return this}get(o,s){if(o=T2(o),o){const z=Bn.findKey(this,o);if(z){const W=this[z];if(!s)return W;if(s===!0)return VW(W);if(Bn.isFunction(s))return s.call(this,W,z);if(Bn.isRegExp(s))return s.exec(W);throw new TypeError("parser must be boolean|regexp|function")}}}has(o,s){if(o=T2(o),o){const z=Bn.findKey(this,o);return!!(z&&this[z]!==void 0&&(!s||K4(this,this[z],z,s)))}return!1}delete(o,s){const z=this;let W=!1;function v(g){if(g=T2(g),g){const r=Bn.findKey(z,g);r&&(!s||K4(z,z[r],r,s))&&(delete z[r],W=!0)}}return Bn.isArray(o)?o.forEach(v):v(o),W}clear(o){const s=Object.keys(this);let z=s.length,W=!1;for(;z--;){const v=s[z];(!o||K4(this,this[v],v,o,!0))&&(delete this[v],W=!0)}return W}normalize(o){const s=this,z={};return Bn.forEach(this,(W,v)=>{const g=Bn.findKey(z,v);if(g){s[g]=Zb(W),delete s[v];return}const r=o?UW(v):String(v).trim();r!==v&&delete s[v],s[r]=Zb(W),z[r]=!0}),this}concat(...o){return this.constructor.concat(this,...o)}toJSON(o){const s=Object.create(null);return Bn.forEach(this,(z,W)=>{z!=null&&z!==!1&&(s[W]=o&&Bn.isArray(z)?z.join(", "):z)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([o,s])=>o+": "+s).join(`
|
|
3
3
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(o){return o instanceof this?o:new this(o)}static concat(o,...s){const z=new this(o);return s.forEach(W=>z.set(W)),z}static accessor(o){const s=(this[dC]=this[dC]={accessors:{}}).accessors,z=this.prototype;function W(v){const g=T2(v);s[g]||(GW(z,v),s[g]=!0)}return Bn.isArray(o)?o.forEach(W):W(o),this}};Wb.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Bn.reduceDescriptors(Wb.prototype,({value:e},o)=>{let s=o[0].toUpperCase()+o.slice(1);return{get:()=>e,set(z){this[s]=z}}}),Bn.freezeMethods(Wb);const pf=Wb;function Q4(e,o){const s=this||$4,z=o||s,W=pf.from(z.headers);let v=z.data;return Bn.forEach(e,function(g){v=g.call(s,v,W.normalize(),o?o.status:void 0)}),W.normalize(),v}function hC(e){return!!(e&&e.__CANCEL__)}function oy(e,o,s){cl.call(this,e??"canceled",cl.ERR_CANCELED,o,s),this.name="CanceledError"}Bn.inherits(oy,cl,{__CANCEL__:!0});function pC(e,o,s){const z=s.config.validateStatus;!s.status||!z||z(s.status)?e(s):o(new cl("Request failed with status code "+s.status,[cl.ERR_BAD_REQUEST,cl.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function HW(e){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return o&&o[1]||""}function ZW(e,o){e=e||10;const s=new Array(e),z=new Array(e);let W=0,v=0,g;return o=o!==void 0?o:1e3,function(r){const b=Date.now(),d=z[v];g||(g=b),s[W]=r,z[W]=b;let a=v,_=0;for(;a!==W;)_+=s[a++],a=a%e;if(W=(W+1)%e,W===v&&(v=(v+1)%e),b-g<o)return;const y=d&&b-d;return y?Math.round(_*1e3/y):void 0}}function WW(e,o){let s=0,z=1e3/o,W,v;const g=(r,b=Date.now())=>{s=b,W=null,v&&(clearTimeout(v),v=null),e.apply(null,r)};return[(...r)=>{const b=Date.now(),d=b-s;d>=z?g(r,b):(W=r,v||(v=setTimeout(()=>{v=null,g(W)},z-d)))},()=>W&&g(W)]}const Xb=(e,o,s=3)=>{let z=0;const W=ZW(50,250);return WW(v=>{const g=v.loaded,r=v.lengthComputable?v.total:void 0,b=g-z,d=W(b),a=g<=r;z=g;const _={loaded:g,total:r,progress:r?g/r:void 0,bytes:b,rate:d||void 0,estimated:d&&r&&a?(r-g)/d:void 0,event:v,lengthComputable:r!=null,[o?"download":"upload"]:!0};e(_)},s)},fC=(e,o)=>{const s=e!=null;return[z=>o[0]({lengthComputable:s,total:e,loaded:z}),o[1]]},mC=e=>(...o)=>Bn.asap(()=>e(...o)),XW=lh.hasStandardBrowserEnv?((e,o)=>s=>(s=new URL(s,lh.origin),e.protocol===s.protocol&&e.host===s.host&&(o||e.port===s.port)))(new URL(lh.origin),lh.navigator&&/(msie|trident)/i.test(lh.navigator.userAgent)):()=>!0,qW=lh.hasStandardBrowserEnv?{write(e,o,s,z,W,v){const g=[e+"="+encodeURIComponent(o)];Bn.isNumber(s)&&g.push("expires="+new Date(s).toGMTString()),Bn.isString(z)&&g.push("path="+z),Bn.isString(W)&&g.push("domain="+W),v===!0&&g.push("secure"),document.cookie=g.join("; ")},read(e){const o=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function YW(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function JW(e,o){return o?e.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):e}function gC(e,o,s){let z=!YW(o);return e&&(z||s==!1)?JW(e,o):o}const yC=e=>e instanceof pf?{...e}:e;function x1(e,o){o=o||{};const s={};function z(d,a,_,y){return Bn.isPlainObject(d)&&Bn.isPlainObject(a)?Bn.merge.call({caseless:y},d,a):Bn.isPlainObject(a)?Bn.merge({},a):Bn.isArray(a)?a.slice():a}function W(d,a,_,y){if(Bn.isUndefined(a)){if(!Bn.isUndefined(d))return z(void 0,d,_,y)}else return z(d,a,_,y)}function v(d,a){if(!Bn.isUndefined(a))return z(void 0,a)}function g(d,a){if(Bn.isUndefined(a)){if(!Bn.isUndefined(d))return z(void 0,d)}else return z(void 0,a)}function r(d,a,_){if(_ in o)return z(d,a);if(_ in e)return z(void 0,d)}const b={url:v,method:v,data:v,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:r,headers:(d,a,_)=>W(yC(d),yC(a),_,!0)};return Bn.forEach(Object.keys(Object.assign({},e,o)),function(d){const a=b[d]||W,_=a(e[d],o[d],d);Bn.isUndefined(_)&&a!==r||(s[d]=_)}),s}const vC=e=>{const o=x1({},e);let{data:s,withXSRFToken:z,xsrfHeaderName:W,xsrfCookieName:v,headers:g,auth:r}=o;o.headers=g=pf.from(g),o.url=sC(gC(o.baseURL,o.url,o.allowAbsoluteUrls),e.params,e.paramsSerializer),r&&g.set("Authorization","Basic "+btoa((r.username||"")+":"+(r.password?unescape(encodeURIComponent(r.password)):"")));let b;if(Bn.isFormData(s)){if(lh.hasStandardBrowserEnv||lh.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if((b=g.getContentType())!==!1){const[d,...a]=b?b.split(";").map(_=>_.trim()).filter(Boolean):[];g.setContentType([d||"multipart/form-data",...a].join("; "))}}if(lh.hasStandardBrowserEnv&&(z&&Bn.isFunction(z)&&(z=z(o)),z||z!==!1&&XW(o.url))){const d=W&&v&&qW.read(v);d&&g.set(W,d)}return o},$W=typeof XMLHttpRequest<"u",KW=$W&&function(e){return new Promise(function(o,s){const z=vC(e);let W=z.data;const v=pf.from(z.headers).normalize();let{responseType:g,onUploadProgress:r,onDownloadProgress:b}=z,d,a,_,y,x;function u(){y&&y(),x&&x(),z.cancelToken&&z.cancelToken.unsubscribe(d),z.signal&&z.signal.removeEventListener("abort",d)}let n=new XMLHttpRequest;n.open(z.method.toUpperCase(),z.url,!0),n.timeout=z.timeout;function i(){if(!n)return;const l=pf.from("getAllResponseHeaders"in n&&n.getAllResponseHeaders()),h={data:!g||g==="text"||g==="json"?n.responseText:n.response,status:n.status,statusText:n.statusText,headers:l,config:e,request:n};pC(function(m){o(m),u()},function(m){s(m),u()},h),n=null}"onloadend"in n?n.onloadend=i:n.onreadystatechange=function(){!n||n.readyState!==4||n.status===0&&!(n.responseURL&&n.responseURL.indexOf("file:")===0)||setTimeout(i)},n.onabort=function(){n&&(s(new cl("Request aborted",cl.ECONNABORTED,e,n)),n=null)},n.onerror=function(){s(new cl("Network Error",cl.ERR_NETWORK,e,n)),n=null},n.ontimeout=function(){let l=z.timeout?"timeout of "+z.timeout+"ms exceeded":"timeout exceeded";const h=z.transitional||cC;z.timeoutErrorMessage&&(l=z.timeoutErrorMessage),s(new cl(l,h.clarifyTimeoutError?cl.ETIMEDOUT:cl.ECONNABORTED,e,n)),n=null},W===void 0&&v.setContentType(null),"setRequestHeader"in n&&Bn.forEach(v.toJSON(),function(l,h){n.setRequestHeader(h,l)}),Bn.isUndefined(z.withCredentials)||(n.withCredentials=!!z.withCredentials),g&&g!=="json"&&(n.responseType=z.responseType),b&&([_,x]=Xb(b,!0),n.addEventListener("progress",_)),r&&n.upload&&([a,y]=Xb(r),n.upload.addEventListener("progress",a),n.upload.addEventListener("loadend",y)),(z.cancelToken||z.signal)&&(d=l=>{n&&(s(!l||l.type?new oy(null,e,n):l),n.abort(),n=null)},z.cancelToken&&z.cancelToken.subscribe(d),z.signal&&(z.signal.aborted?d():z.signal.addEventListener("abort",d)));const f=HW(z.url);if(f&&lh.protocols.indexOf(f)===-1){s(new cl("Unsupported protocol "+f+":",cl.ERR_BAD_REQUEST,e));return}n.send(W||null)})},QW=(e,o)=>{const{length:s}=e=e?e.filter(Boolean):[];if(o||s){let z=new AbortController,W;const v=function(d){if(!W){W=!0,r();const a=d instanceof Error?d:this.reason;z.abort(a instanceof cl?a:new oy(a instanceof Error?a.message:a))}};let g=o&&setTimeout(()=>{g=null,v(new cl(`timeout ${o} of ms exceeded`,cl.ETIMEDOUT))},o);const r=()=>{e&&(g&&clearTimeout(g),g=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(v):d.removeEventListener("abort",v)}),e=null)};e.forEach(d=>d.addEventListener("abort",v));const{signal:b}=z;return b.unsubscribe=()=>Bn.asap(r),b}},eX=QW,tX=function*(e,o){let s=e.byteLength;if(!o||s<o){yield e;return}let z=0,W;for(;z<s;)W=z+o,yield e.slice(z,W),z=W},aX=async function*(e,o){for await(const s of rX(e))yield*tX(s,o)},rX=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const o=e.getReader();try{for(;;){const{done:s,value:z}=await o.read();if(s)break;yield z}}finally{await o.cancel()}},bC=(e,o,s,z)=>{const W=aX(e,o);let v=0,g,r=b=>{g||(g=!0,z&&z(b))};return new ReadableStream({async pull(b){try{const{done:d,value:a}=await W.next();if(d){r(),b.close();return}let _=a.byteLength;if(s){let y=v+=_;s(y)}b.enqueue(new Uint8Array(a))}catch(d){throw r(d),d}},cancel(b){return r(b),W.return()}},{highWaterMark:2})},qb=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",xC=qb&&typeof ReadableStream=="function",nX=qb&&(typeof TextEncoder=="function"?(e=>o=>e.encode(o))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),_C=(e,...o)=>{try{return!!e(...o)}catch{return!1}},iX=xC&&_C(()=>{let e=!1;const o=new Request(lh.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!o}),wC=64*1024,ew=xC&&_C(()=>Bn.isReadableStream(new Response("").body)),Yb={stream:ew&&(e=>e.body)};qb&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(o=>{!Yb[o]&&(Yb[o]=Bn.isFunction(e[o])?s=>s[o]():(s,z)=>{throw new cl(`Response type '${o}' is not supported`,cl.ERR_NOT_SUPPORT,z)})})})(new Response);const oX=async e=>{if(e==null)return 0;if(Bn.isBlob(e))return e.size;if(Bn.isSpecCompliantForm(e))return(await new Request(lh.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Bn.isArrayBufferView(e)||Bn.isArrayBuffer(e))return e.byteLength;if(Bn.isURLSearchParams(e)&&(e=e+""),Bn.isString(e))return(await nX(e)).byteLength},sX=async(e,o)=>Bn.toFiniteNumber(e.getContentLength())??oX(o),lX=qb&&(async e=>{let{url:o,method:s,data:z,signal:W,cancelToken:v,timeout:g,onDownloadProgress:r,onUploadProgress:b,responseType:d,headers:a,withCredentials:_="same-origin",fetchOptions:y}=vC(e);d=d?(d+"").toLowerCase():"text";let x=eX([W,v&&v.toAbortSignal()],g),u;const n=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let i;try{if(b&&iX&&s!=="get"&&s!=="head"&&(i=await sX(a,z))!==0){let w=new Request(o,{method:"POST",body:z,duplex:"half"}),T;if(Bn.isFormData(z)&&(T=w.headers.get("content-type"))&&a.setContentType(T),w.body){const[A,C]=fC(i,Xb(mC(b)));z=bC(w.body,wC,A,C)}}Bn.isString(_)||(_=_?"include":"omit");const f="credentials"in Request.prototype;u=new Request(o,{...y,signal:x,method:s.toUpperCase(),headers:a.normalize().toJSON(),body:z,duplex:"half",credentials:f?_:void 0});let l=await fetch(u,y);const h=ew&&(d==="stream"||d==="response");if(ew&&(r||h&&n)){const w={};["status","statusText","headers"].forEach(I=>{w[I]=l[I]});const T=Bn.toFiniteNumber(l.headers.get("content-length")),[A,C]=r&&fC(T,Xb(mC(r),!0))||[];l=new Response(bC(l.body,wC,A,()=>{C&&C(),n&&n()}),w)}d=d||"text";let m=await Yb[Bn.findKey(Yb,d)||"text"](l,e);return!h&&n&&n(),await new Promise((w,T)=>{pC(w,T,{data:m,headers:pf.from(l.headers),status:l.status,statusText:l.statusText,config:e,request:u})})}catch(f){throw n&&n(),f&&f.name==="TypeError"&&/Load failed|fetch/i.test(f.message)?Object.assign(new cl("Network Error",cl.ERR_NETWORK,e,u),{cause:f.cause||f}):cl.from(f,f&&f.code,e,u)}}),tw={http:wW,xhr:KW,fetch:lX};Bn.forEach(tw,(e,o)=>{if(e){try{Object.defineProperty(e,"name",{value:o})}catch{}Object.defineProperty(e,"adapterName",{value:o})}});const kC=e=>`- ${e}`,cX=e=>Bn.isFunction(e)||e===null||e===!1,SC={getAdapter:e=>{e=Bn.isArray(e)?e:[e];const{length:o}=e;let s,z;const W={};for(let v=0;v<o;v++){s=e[v];let g;if(z=s,!cX(s)&&(z=tw[(g=String(s)).toLowerCase()],z===void 0))throw new cl(`Unknown adapter '${g}'`);if(z)break;W[g||"#"+v]=z}if(!z){const v=Object.entries(W).map(([r,b])=>`adapter ${r} `+(b===!1?"is not supported by the environment":"is not available in the build"));let g=o?v.length>1?`since :
|
|
4
4
|
`+v.map(kC).join(`
|
|
@@ -4130,7 +4130,7 @@ uniform ${De} ${He} u_${rt};
|
|
|
4130
4130
|
* Vue 3 Carousel 0.3.1
|
|
4131
4131
|
* (c) 2023
|
|
4132
4132
|
* @license MIT
|
|
4133
|
-
*/const jd={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},AF={itemsToShow:{default:jd.itemsToShow,type:Number},itemsToScroll:{default:jd.itemsToScroll,type:Number},wrapAround:{default:jd.wrapAround,type:Boolean},throttle:{default:jd.throttle,type:Number},snapAlign:{default:jd.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:jd.transition,type:Number},breakpoints:{default:jd.breakpoints,type:Object},autoplay:{default:jd.autoplay,type:Number},pauseAutoplayOnHover:{default:jd.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:jd.mouseDrag,type:Boolean},touchDrag:{default:jd.touchDrag,type:Boolean},dir:{default:jd.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:jd.i18n,type:Object},settings:{default(){return{}},type:Object}};function rst({config:e,slidesCount:o}){const{snapAlign:s,wrapAround:z,itemsToShow:W=1}=e;if(z)return Math.max(o-1,0);let v;switch(s){case"start":v=o-W;break;case"end":v=o-1;break;case"center":case"center-odd":v=o-Math.ceil((W-.5)/2);break;case"center-even":v=o-Math.ceil(W/2);break;default:v=0;break}return Math.max(v,0)}function nst({config:e,slidesCount:o}){const{wrapAround:s,snapAlign:z,itemsToShow:W=1}=e;let v=0;if(s||W>o)return v;switch(z){case"start":v=0;break;case"end":v=W-1;break;case"center":case"center-odd":v=Math.floor((W-1)/2);break;case"center-even":v=Math.floor((W-2)/2);break;default:v=0;break}return v}function bk({val:e,max:o,min:s}){return o<s?e:Math.min(Math.max(e,s),o)}function ist({config:e,currentSlide:o,slidesCount:s}){const{snapAlign:z,wrapAround:W,itemsToShow:v=1}=e;let g=o;switch(z){case"center":case"center-odd":g-=(v-1)/2;break;case"center-even":g-=(v-2)/2;break;case"end":g-=v-1;break}return W?g:bk({val:g,max:s-v,min:0})}function MF(e){return e?e.reduce((o,s)=>{var z;return s.type===t.Fragment?[...o,...MF(s.children)]:((z=s.type)===null||z===void 0?void 0:z.name)==="CarouselSlide"?[...o,s]:o},[]):[]}function xk({val:e,max:o,min:s=0}){return e>o?xk({val:e-(o+1),max:o,min:s}):e<s?xk({val:e+(o+1),max:o,min:s}):e}function ost(e,o){let s;return o?function(...z){const W=this;s||(e.apply(W,z),s=!0,setTimeout(()=>s=!1,o))}:e}function sst(e,o){let s;return function(...z){s&&clearTimeout(s),s=setTimeout(()=>{e(...z),s=null},o)}}function lst(e="",o={}){return Object.entries(o).reduce((s,[z,W])=>s.replace(`{${z}}`,String(W)),e)}var cst=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},jd))),o=t.inject("currentSlide",t.ref(0)),s=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},lst(e.i18n.itemXofY,{currentSlide:o.value+1,slidesCount:s.value}))}}),ust=t.defineComponent({name:"Carousel",props:AF,setup(e,{slots:o,emit:s,expose:z}){var W;const v=t.ref(null),g=t.ref([]),r=t.ref(0),b=t.ref(0),d=t.reactive(Object.assign({},jd));let a=Object.assign({},jd),_;const y=t.ref((W=e.modelValue)!==null&&W!==void 0?W:0),x=t.ref(0),u=t.ref(0),n=t.ref(0),i=t.ref(0);let f,l;t.provide("config",d),t.provide("slidesCount",b),t.provide("currentSlide",y),t.provide("maxSlide",n),t.provide("minSlide",i),t.provide("slideWidth",r);function h(){_=Object.assign({},e.breakpoints),a=Object.assign(Object.assign(Object.assign({},a),e),{i18n:Object.assign(Object.assign({},a.i18n),e.i18n),breakpoints:void 0}),w(a)}function m(){if(!_||!Object.keys(_).length)return;const ne=Object.keys(_).map(ie=>Number(ie)).sort((ie,me)=>+me-+ie);let le=Object.assign({},a);ne.some(ie=>{const me=window.matchMedia(`(min-width: ${ie}px)`).matches;return me&&(le=Object.assign(Object.assign({},le),_[ie])),me}),w(le)}function w(ne){Object.entries(ne).forEach(([le,ie])=>d[le]=ie)}const T=sst(()=>{m(),A()},16);function A(){if(!v.value)return;const ne=v.value.getBoundingClientRect();r.value=ne.width/d.itemsToShow}function C(){b.value<=0||(u.value=Math.ceil((b.value-1)/2),n.value=rst({config:d,slidesCount:b.value}),i.value=nst({config:d,slidesCount:b.value}),d.wrapAround||(y.value=bk({val:y.value,max:n.value,min:i.value})))}t.onMounted(()=>{t.nextTick(()=>A()),setTimeout(()=>A(),1e3),m(),G(),window.addEventListener("resize",T,{passive:!0}),s("init")}),t.onUnmounted(()=>{l&&clearTimeout(l),f&&clearInterval(f),window.removeEventListener("resize",T,{passive:!0})});let I=!1;const L={x:0,y:0},E={x:0,y:0},P=t.reactive({x:0,y:0}),M=t.ref(!1),S=t.ref(!1),B=()=>{M.value=!0},k=()=>{M.value=!1};function O(ne){["INPUT","TEXTAREA","SELECT"].includes(ne.target.tagName)||(I=ne.type==="touchstart",I||ne.preventDefault(),!(!I&&ne.button!==0||U.value)&&(L.x=I?ne.touches[0].clientX:ne.clientX,L.y=I?ne.touches[0].clientY:ne.clientY,document.addEventListener(I?"touchmove":"mousemove",D,!0),document.addEventListener(I?"touchend":"mouseup",V,!0)))}const D=ost(ne=>{S.value=!0,E.x=I?ne.touches[0].clientX:ne.clientX,E.y=I?ne.touches[0].clientY:ne.clientY;const le=E.x-L.x,ie=E.y-L.y;P.y=ie,P.x=le},d.throttle);function V(){const ne=d.dir==="rtl"?-1:1,le=Math.sign(P.x)*.4,ie=Math.round(P.x/r.value+le)*ne;if(ie&&!I){const me=ve=>{ve.stopPropagation(),window.removeEventListener("click",me,!0)};window.addEventListener("click",me,!0)}J(y.value-ie),P.x=0,P.y=0,S.value=!1,document.removeEventListener(I?"touchmove":"mousemove",D,!0),document.removeEventListener(I?"touchend":"mouseup",V,!0)}function G(){!d.autoplay||d.autoplay<=0||(f=setInterval(()=>{d.pauseAutoplayOnHover&&M.value||re()},d.autoplay))}function H(){f&&(clearInterval(f),f=null),G()}const U=t.ref(!1);function J(ne){const le=d.wrapAround?ne:bk({val:ne,max:n.value,min:i.value});y.value===le||U.value||(s("slide-start",{slidingToIndex:ne,currentSlideIndex:y.value,prevSlideIndex:x.value,slidesCount:b.value}),U.value=!0,x.value=y.value,y.value=le,l=setTimeout(()=>{if(d.wrapAround){const ie=xk({val:le,max:n.value,min:0});ie!==y.value&&(y.value=ie,s("loop",{currentSlideIndex:y.value,slidingToIndex:ne}))}s("update:modelValue",y.value),s("slide-end",{currentSlideIndex:y.value,prevSlideIndex:x.value,slidesCount:b.value}),U.value=!1,H()},d.transition))}function re(){J(y.value+d.itemsToScroll)}function q(){J(y.value-d.itemsToScroll)}const ae={slideTo:J,next:re,prev:q};t.provide("nav",ae),t.provide("isSliding",U);const ee=t.computed(()=>ist({config:d,currentSlide:y.value,slidesCount:b.value}));t.provide("slidesToScroll",ee);const $=t.computed(()=>{const ne=d.dir==="rtl"?-1:1,le=ee.value*r.value*ne;return{transform:`translateX(${P.x-le}px)`,transition:`${U.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${b.value*r.value}px`:"",width:"100%"}});function Q(){h(),m(),C(),A(),H()}Object.keys(AF).forEach(ne=>{["modelValue"].includes(ne)||t.watch(()=>e[ne],Q)}),t.watch(()=>e.modelValue,ne=>{ne!==y.value&&J(Number(ne))}),t.watch(b,C),s("before-init"),h();const ce={config:d,slidesCount:b,slideWidth:r,next:re,prev:q,slideTo:J,currentSlide:y,maxSlide:n,minSlide:i,middleSlide:u};z({updateBreakpointsConfigs:m,updateSlidesData:C,updateSlideWidth:A,initDefaultConfigs:h,restartCarousel:Q,slideTo:J,next:re,prev:q,nav:ae,data:ce});const de=o.default||o.slides,he=o.addons,pe=t.reactive(ce);return()=>{const ne=MF(de==null?void 0:de(pe)),le=(he==null?void 0:he(pe))||[];ne.forEach((ye,ke)=>ye.props.index=ke);let ie=ne;if(d.wrapAround){const ye=ne.map((Ee,Te)=>t.cloneVNode(Ee,{index:-ne.length+Te,isClone:!0,key:`clone-before-${Te}`})),ke=ne.map((Ee,Te)=>t.cloneVNode(Ee,{index:ne.length+Te,isClone:!0,key:`clone-after-${Te}`}));ie=[...ye,...ne,...ke]}g.value=ne,b.value=Math.max(ne.length,1);const me=t.h("ol",{class:"carousel__track",style:$.value,onMousedownCapture:d.mouseDrag?O:null,onTouchstartPassiveCapture:d.touchDrag?O:null},ie),ve=t.h("div",{class:"carousel__viewport"},me);return t.h("section",{ref:v,class:{carousel:!0,"is-sliding":U.value,"is-dragging":S.value,"is-hover":M.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:B,onMouseleave:k},[ve,le,t.h(cst)])}}}),PF;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(PF||(PF={}));var dst=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:o}){const s=t.inject("config",t.reactive(Object.assign({},jd))),z=t.inject("currentSlide",t.ref(0)),W=t.inject("slidesToScroll",t.ref(0)),v=t.inject("isSliding",t.ref(!1)),g=()=>e.index===z.value,r=()=>e.index===z.value-1,b=()=>e.index===z.value+1,d=()=>{const a=Math.floor(W.value),_=Math.ceil(W.value+s.itemsToShow-1);return e.index>=a&&e.index<=_};return()=>{var a;return t.h("li",{style:{width:`${100/s.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d(),"carousel__slide--active":g(),"carousel__slide--prev":r(),"carousel__slide--next":b(),"carousel__slide--sliding":v.value},"aria-hidden":!d()},(a=o.default)===null||a===void 0?void 0:a.call(o))}}});const hst=(e,o)=>{const s=e.__vccOpts||e;for(const[z,W]of o)s[z]=W;return s},pst=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),fst={class:"gsc-carousel"},mst={key:0},gst=pst(()=>t.createElementVNode("div",null,"no hay",-1)),yst=[gst],vst={class:"gsc-carousel__2d__slides"},bst={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},xst=["fill"],_st={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wst=["fill"],kst={class:"gsc-carousel__2d__navigation"},Sst={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Tst=["stroke"],Cst={key:1,class:"gsc-carousel__2d__navigation__pagination"},Est=["onClick"],Ast={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Mst=["stroke"],Pst={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(o=>o in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:o,emit:s}){const z=e;t.useCssVars(n=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const W=t.ref(null),v=t.ref({}),g=t.ref(0),r=t.ref(!1);t.watch(W,n=>{n&&r.value?(r.value=!1,b(z.items)):n&&n.slideTo&&n.slideTo(g.value)},{deep:!0}),t.watch(()=>z.currentItemIndex,n=>{g.value!==n&&y(n)}),t.watch(()=>z.defaultItemByIndex,n=>{g.value!==n&&y(n)}),t.watch(()=>z.items,n=>{W.value?b(n):r.value=!0},{immediate:!0});function b(n){n&&n.length&&W.value&&setTimeout(()=>{if(z.defaultItemByProp){const i=z.items.findIndex(f=>f[z.defaultItemByProp.propName]===z.defaultItemByProp.value);i!==-1?(g.value=i,v.value=n[i]):(g.value=0,v.value=n[0])}else g.value=z.defaultItemByIndex,v.value=n[z.defaultItemByIndex];W.value.slideTo&&W.value.slideTo(g.value),v.value&&g.value===0&&s("input",{selectedItem:v.value,selectedItemIndex:g.value})},500)}function d(){W.value&&W.value.next()}function a(){W.value&&W.value.prev()}function _(){W.value&&W.value.updateSlideWidth()}function y(n){W.value&&W.value.slideTo(n)}function x(n){W.value.slideTo(n)}function u(n){const i=n.slidingToIndex<0?z.items.length-1:n.slidingToIndex===z.items.length?0:n.slidingToIndex;g.value=i,v.value=z.items[i],s("update:currentItemIndex",i),s("input",{selectedItem:v.value,selectedItemIndex:g.value})}return o({prev:a,next:d,updateSlideWidth:_,slideTo:y}),(n,i)=>(t.openBlock(),t.createElementBlock("div",fst,[z.is3d?(t.openBlock(),t.createElementBlock("div",mst,yst)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",vst,[t.createVNode(t.unref(ust),{ref_key:"carousel2d",ref:W,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:u},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(f,l)=>(t.openBlock(),t.createBlock(t.unref(dst),{key:l},{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default",{item:f},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:i[0]||(i[0]=f=>W.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",bst,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,xst)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:i[1]||(i[1]=f=>d())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",_st,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,wst)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",kst,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:i[2]||(i[2]=f=>a())},[(t.openBlock(),t.createElementBlock("svg",Sst,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:z.arrowsColor},null,8,Tst)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",Cst,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(f,l)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${l}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${z.navigationHeight}px`,width:`${g.value===l?z.navigationActiveWidth:z.navigationActiveWidth/2}px`,borderRadius:`${z.navigationBorderRadius}px`,backgroundColor:`${g.value===l?z.navigationActiveColor:z.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:h=>x(l)},null,12,Est))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:i[3]||(i[3]=f=>W.value.next())},[(t.openBlock(),t.createElementBlock("svg",Ast,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:z.arrowsColor},null,8,Mst)]))])):t.createCommentVNode("",!0)])],2))]))}},Ist=hst(Pst,[["__scopeId","data-v-54620d25"]]),eqt="",IF={3:"Albanesa",4:"Argelina",6:"Andorrano",7:"Angoleña",8:"Anguillan",9:"Antiguan",10:"Argentina",11:"Armenia",12:"Arubeño",13:"Austríaca",14:"Austríaca",15:"Azerbaiyano",16:"Bahamas",17:"Bareini",18:"Bangladesí",19:"Barbadense",20:"Bielorrusa",21:"Belga",22:"Beliceña",23:"Beninesa",24:"Bermudeña",25:"Butanés",26:"Boliviana",27:"Bosnia",28:"Botsuano",29:"Brasileña",30:"Islas Vírgenes Británicas",31:"Bruneano",32:"Búlgara",33:"Burundés",34:"Burmesa",35:"Burundés",36:"Camboyana",37:"Camerunés",38:"Canadiense",39:"Caboverdiano",40:"Caimanés",41:"Centroafricana",42:"Chadiano",43:"Chilena",44:"China",45:"Isla de Navidad",46:"Cocos Island",47:"Colombiana",48:"Comorense",49:"Congoleña",50:"Cookiano",51:"Costarricense",52:"Marfileña",53:"Croata",54:"Cubana",55:"Chipriota",56:"Checa",57:"Danesa",58:"Djibouti",60:"Dominicana",61:"Timorense",62:"Ecuatoriana",63:"Egipcia",64:"Salvadoreña",65:"Inglesa",66:"Ecuatoguineano",67:"Eritreo",68:"Estoniana",69:"Etíope",70:"Islas Malvinas",71:"Feroés",72:"Fiyiano",73:"Finlandesa",74:"Francesa",75:"Guayana Francesa",76:"Francopolinecio",77:"Gabonesa",78:"Gambiana",79:"Georgiano",80:"Alemana",81:"Ghanesa",82:"Gibraltareño",221:"Británico",84:"Griega",85:"Groenlandés",86:"Granadino",87:"Guadeloupeño",89:"Guatemalteca",90:"Guineana",91:"Guyanés",92:"Haitiana",93:"Hondureña",94:"Hongkongese",95:"Húngaro",96:"Islandesa",97:"Indio",98:"Indonesia",99:"Iraní",100:"Iraquí",101:"Irlandesa",102:"Manés",103:"Israelí",104:"Italiana",105:"Jamaiquina",106:"Japonesa",107:"Jordana",108:"Kazaja",109:"Keniana",110:"Kiribatiano",111:"Coreana",112:"Surcoreana",113:"Kosovan",114:"Kuwaití",115:"Kirguisa",116:"Laosiano",117:"Letona",118:"Libanesa",119:"Basotho",120:"Liberiana",121:"Libia",122:"Liechtenstein",123:"Lituano",124:"Luxemburguesa",125:"Macaneso",126:"Macedonia",127:"Malgache",128:"Malaya",129:"Malaya",130:"Maldivo",131:"Mali",132:"Maltesa",133:"Marshallese",134:"Martiniqueña",135:"Mauritania",136:"Mauriciano",137:"Mahoran",138:"Mexicana",139:"Micronesio",140:"Moldava",141:"Monacan",142:"Mongol",143:"Montenegrina",144:"Montserratiano",145:"Marroqui",146:"Mozambiqueña",147:"Namibio",148:"Nauruan",149:"Nepalí",150:"Holandesa",151:"Neocaledonio",152:"Neozelandesa",153:"Nicaragüense",154:"Niueño",155:"Nigerina",156:"Nigeriana",157:"Noruega",158:"Normariano",159:"Omaní",160:"Palestina",161:"Palestina",162:"Palauan",163:"Panameña",164:"Papú",165:"Paraguaya",166:"Peruana",167:"Filipina",168:"Pitcairnés",169:"Polaca",170:"Portuguesa",171:"Puertorriqueña",172:"Catari",173:"Reunionés",174:"Rumana",175:"Rusa",176:"Ruandés",177:"Santa Elena",178:"Sancristobaleña",179:"Santa Lucía",180:"Miquelonnais",181:"Sanvicentina",182:"Samoano",183:"Sanmariense",184:"Santotomense",185:"Saudí",186:"Escocesa",187:"Senegalense",188:"Serbia",189:"Seychellense",190:"Sierraleonesa",191:"Singapurense",192:"Eslovena",193:"Eslovena",194:"Salomonense",195:"Somalí",196:"Sudafricana",197:"Surosetio",198:"Española",199:"Esrilanques",200:"Sudanés",201:"Surinamés",202:"Swazi",203:"Sueca",204:"Suiza",205:"Sirio",206:"Taiwanesa",207:"Tayiko",208:"Tanzano",209:"Tailandesa",210:"Togo",211:"Tongano",212:"Trinitaria",213:"Tunecina",214:"Turca",215:"Turkmena",216:"none",217:"Tuvaluano",218:"Ugandesa",219:"Ucraniana",220:"Emiratí",222:"Americana",223:"Uruguaya",224:"Uzbeka",225:"Vanuatuense",226:"Venezolana",227:"Vietnamita",228:"Islas Vírgenes",229:"Galesa",230:"Walisiano",231:"Saharaui",232:"Yemení",233:"Zambiana",234:"Zimbabuense",236:"Curazaleña",237:"San Martín",239:"Debutante"},tqt="",_k={components:{GSCCarousel:Ist,GSCLeaders:jot,GSCRowTable:gF,GSCTableHeader:uF,GSCExpandedInfo:EF},props:{isTeam:{type:Boolean,default:!1},typeTable:{type:Number,default:0},typeData:{type:Number,default:1},gameId:{type:Number,default:0},filtersProp:{type:[Object,String],default:()=>{}},game:{type:Object,default:()=>({})},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!1},filterTeam:{type:Number,default:0},timeLiveComparativeAvanced:{type:Number,default:6e4},category:{type:Number,default:1},categoryName:{type:String,default:"Goles"},seasonSelected:{type:Object,default:()=>({})},season:{type:Number,default:1772},type:{type:Number,default:0},borderRadius:{type:String,default:"8px"},borderWidth:{type:[String,Number],default:"2px"},borderColor:{type:String,default:"#cfcfcf"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},numRows:{type:Number,default:5}},setup(){const e=t.ref("myDivRef"),{elementSize:o}=Wv(e);return{myDivRef:e,elementSize:o}},watch:{game:{immediate:!0,deep:!0,async handler(e){e&&(this.playersInfo={},this.teamInfo={},this.isloading=!0,this.formatFilterStats=[],await this.getCategoryStats(this.season),this.game.is_live&&(this.createIntervalTops(),this.$emit("intervalidtops",this.intervalIdtops)))}},typeData:{immediate:!0,async handler(e){await this.getCategoryStats(this.season),e===1&&this.game.is_live?(this.createIntervalTops(),this.$emit("intervalidtops",this.intervalIdtops)):clearInterval(this.intervalIdtops)}},filtersProp:{immediate:!1,deep:!0,async handler(e,o){e&&(JSON.stringify(e)!==JSON.stringify(o)||this.sonConjuntosDistintos(e.setNationalitiesIds,o.setNationalitiesIds))&&(this.isloading=!0,this.filterEmitAux=e,[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.filterEmitAux.typeZone=1:this.filterEmitAux.typeZone=2,this.formatFilterStats=await this.filterRecords(this.filterEmitAux))}}},computed:{topData(){if(this.changeStateLoading(!0),Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0){var e={},o={},s=[],z=[],W=[];return this.formatFilterStats.map(v=>{e[v.team_id]?e[v.team_id].total=e[v.team_id].total+v.total:(e[v.team_id]={},e[v.team_id].total=v.total,e[v.team_id].id=this.teamInfo[v.team_id].id,e[v.team_id].name=this.teamInfo[v.team_id].name.replace(" Femenil",""),e[v.team_id].img="https://golstatsimages.blob.core.windows.net/teams-80/"+v.team_id+".png",e[v.team_id].effectiveness=this.teamInfo[v.team_id].effectiveness,e[v.team_id].frecuency=this.teamInfo[v.team_id].frecuency,e[v.team_id].game_avg=this.teamInfo[v.team_id].game_avg,e[v.team_id].game_avg_last_season=this.teamInfo[v.team_id].game_avg_last_season,e[v.team_id].games_played_lastseason=this.teamInfo[v.team_id].games_played_lastseason,e[v.team_id].games_played=this.teamInfo[v.team_id].games_played,e[v.team_id].positiontable=this.teamInfo[v.team_id].positiontable,e[v.team_id].goals=this.teamInfo[v.team_id].goals,e[v.team_id].goalsrecived=this.teamInfo[v.team_id].goalsrecived,e[v.team_id].xg=this.teamInfo[v.team_id].xg),o[v.player_id]?v.player_id!=0&&v.player_id!=62117&&(o[v.player_id].total=o[v.player_id].total+v.total):v.player_id!=0&&v.player_id!=62117&&(o[v.player_id]={},o[v.player_id].total=v.total,v.player_id&&this.playersInfo[v.player_id]?(o[v.player_id].name=this.playersInfo[v.player_id].name,o[v.player_id].name_short=this.getnameshort(this.playersInfo[v.player_id].name),o[v.player_id].img=this.playersInfo[v.player_id].img,o[v.player_id].id=this.playersInfo[v.player_id].id,o[v.player_id].age=this.playersInfo[v.player_id].age,o[v.player_id].team=this.playersInfo[v.player_id].team,o[v.player_id].teamname=this.playersInfo[v.player_id].teamname,o[v.player_id].teamid=this.playersInfo[v.player_id].teamid,o[v.player_id].position=this.playersInfo[v.player_id].position,o[v.player_id].positionId=this.playersInfo[v.player_id].positionId,o[v.player_id].positionfull=this.playersInfo[v.player_id].positionfull,o[v.player_id].country=this.playersInfo[v.player_id].country,o[v.player_id].effectiveness=this.playersInfo[v.player_id].effectiveness,o[v.player_id].minutes=this.playersInfo[v.player_id].minutes_played,o[v.player_id].games=this.playersInfo[v.player_id].games_played,o[v.player_id].date=this.playersInfo[v.player_id].date,o[v.player_id].nationality=this.playersInfo[v.player_id].nationality,o[v.player_id].player_country_flag=this.playersInfo[v.player_id].player_country_flag,o[v.player_id].categoryName=this.categoryName):(o[v.player_id].id=v.player_id,o[v.player_id].name=v.player_id,o[v.player_id].img="SIN IMAGEN",o[v.player_id].age="",o[v.player_id].teamname="",o[v.player_id].team="",o[v.player_id].teamid=0,o[v.player_id].position="",o[v.player_id].positionId=0,o[v.player_id].positionfull="",o[v.player_id].country="",o[v.player_id].effectiveness="",o[v.player_id].minutes="",o[v.player_id].games="",o[v.player_id].date="00-00-0000",o[v.player_id].nationality="",o[v.player_id].player_country_flag="",o[v.player_id].categoryName=""))}),s.push(...Object.values(e)),z.push(...Object.values(o)),s=this.sortAndSlice(Object.values(e),60),z=z.sort(this.compareObjectsMinutes).slice(0,60),z=z.map((v,g)=>(v.top=g<9?"0"+(g+1):""+(g+1),v)),s=s.map((v,g)=>(v.top=g<9?"0"+(g+1):""+(g+1),v)),this.filterTeam!==0&&!this.isTeam&&(W=z.filter(v=>v.teamid===this.filterTeam)),this.changeStateLoading(!1),this.isTeam?this.formatArrayPaginate(s):this.filterTeam!=0?this.formatArrayPaginate(W):this.formatArrayPaginate(z)}else return this.changeStateLoading(!1),[]}},data:()=>({url:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/live/tops",urlPrematch:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/topsBySeasonAndCategory/",data_headers:["team_id","player_id","playing_as","match_result","section","total","origen","destino"],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",mapPlayers:new Map,setNationalityIds:new Set,arrayAgeRange:[0,0],arePlaysEmpty:!1,teamInfo:{},formatFilterStats:[],formatStats:[],playersInfo:{},isloading:!0,statsData:{},updateSlider:0,intervalIdtops:null,filterEmitAux:{},filtersSelect:{playingAs:[],matchResult:[],sections:[],zone:[],typeZone:[]},filtersValues:{type:1,sections:[1,2,3,4,5,6],matchResult:[1,2,3],playingAs:[1,2],zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],typeZone:1,arrayAgeRange:[1,60],setNationalitiesIds:[],setPositionsIds:[1,2,3,4,5,6,7,8,9]},expand:!1,playerexpand:0,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],categories:[{id:1,name:"Goles"}]}),methods:{changeStateLoading(e){this.isloading=e},compareObjectsMinutes(e,o){return e.total>o.total?-1:e.total<o.total?1:e.minutes<o.minutes?-1:e.minutes>o.minutes?1:0},sonConjuntosDistintos(e,o){const s=Array.from(e),z=Array.from(o);if(s.length!==z.length)return!0;for(let W=0;W<s.length;W++)if(!o.has(s[W]))return!0;return!1},getnameshort(e){var o=e.split(","),s=o[0].split(" "),z=o[1].trim().split(" "),W="";s.length==2||s.length==1?s[0].length<4?W=s[0]+" "+s[1]:W=s[0]:s.length==3?W=s[0]+" "+s[1]:s.length==4&&(W=s[1]+" "+s[2]+" "+s[3]);var v=z[z.length-1]!=""?z[z.length-1].charAt(0):z[z.length-2]?z[z.length-2].charAt(0):"";return W=W.replace(",",""),v+". "+W},changeCarrousel(){this.expand=!1,this.playerexpand=0},compareObjects(e,o){return e.total<o.total?-1:e.total>o.total?1:e.name<o.name?-1:e.name>o.name?1:0},sortAndSlice(e,o){return e.sort((s,z)=>(s.name<z.name?1:-1)&&(s.total<z.total?1:-1)).slice(0,o)},getCategoryName(e){let o="";for(let s=0;s<this.categories.length;s++)e==this.categories[s].id&&(o=this.categories[s].name);return o},translateTopCategories(e){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[e]||[]},getCoordinatePointPerCategory(e){return{1:2,2:3,3:1,4:2,5:1,6:2,7:2,8:1,9:1,10:2,11:2,12:1,13:1,14:1,15:1,16:1,17:1,18:3,19:3,20:3,21:3,22:1,23:1}[e]||0},emitEventMedia(e,o,s){let z=this.filtersValues.matchResult,W=this.filtersValues.playingAs,v=this.filtersValues.sections,g=this.filtersValues.zone,r=this.translateTopCategories(o);Object.keys(this.filterEmitAux).length>0&&(z=this.filterEmitAux.matchResult,W=this.filterEmitAux.playingAs,v=this.filterEmitAux.sections,g=this.filterEmitAux.zone);const b=1,d=2,a=3,_=this.isTeam?a:d,y=e.player_id;let x=[],u=this.isTeam?e.id:this.filterTeam;y?this.isTeam?u=y:(x=[y],r=r.filter(i=>!i.toString().includes("_r"))):this.isTeam?u=e.id:(x=[e.id],r=r.filter(i=>!i.toString().includes("_r")));const n={auxwidget:!!(this.canPlayVideos||this.game.awayTeam.team_id==this.teamWidget&&this.typeData!=1),seasonId:this.game.is_live==1?this.season:this.game.regularSeasonId,isFeaturedPlayers:!1,mainSectionType:b,playListType:_,gameIds:null,playerIds:x,goalkeeperIds:[],categoryIds:this.translateTopCategories(o),teamId:u||0,matchResult:z,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:s,playingAs:W,timeSections:v,fieldSections:g,coordinatePoint:this.getCoordinatePointPerCategory(o)}};this.$emit("setopenmedia",n)},emitEventMediaFullTable(e,o,s){let z=this.filtersValues.matchResult,W=this.filtersValues.playingAs,v=this.filtersValues.sections,g=this.filtersValues.zone,r=this.translateTopCategories(o);Object.keys(this.filterEmitAux).length>0&&(z=this.filterEmitAux.matchResult,W=this.filterEmitAux.playingAs,v=this.filterEmitAux.sections,g=this.filterEmitAux.zone);const b=1,d=2,a=3,_=this.isTeam?a:d;let y=[],x=this.isTeam?e.id:this.filterTeam;this.isTeam?x=e.id:(y=[e.id],r=r.filter(n=>!n.toString().includes("_r")));const u={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:b,playListType:_,gameIds:null,playerIds:y,goalkeeperIds:[],categoryIds:r,teamId:x||0,matchResult:z,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:s,playingAs:W,timeSections:v,fieldSections:g,coordinatePoint:this.getCoordinatePointPerCategory(o)}};this.$emit("setopenmedia",u)},replaceImgPlayer(e){return e.replace("https://golstatsimages.blob.core.windows.net/players-profile/","https://golstatsimages.blob.core.windows.net/players-profile-no-bg/")},abrevName(e){var o=e.split(","),s=o[0].split(" "),z=o[1].trim().split(" "),W="";s.length==2||s.length==1?s[0].length<4?W=s[0]+" "+s[1]:W=s[0]:s.length==3?W=s[0]+" "+s[1]:s.length==4&&(W=s[1]+" "+s[2]+" "+s[3]);var v=z[z.length-1]!=""?z[z.length-1].charAt(0):z[z.length-2]?z[z.length-2].charAt(0):"";W=W.replace(",","");var g=v+". "+W;return g},clickMore(e){this.$emit("more",{category:e,categoryName:this.categoryName})},morestats(){this.$emit("more",this.category)},viewprofile(e,o){this.$emit("clickprofile",{id:e,teamId:o,isTeam:this.isTeam})},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async getCategoryStats(e){var o,s;this.mapPlayers=new Map;try{if(!e)return;let z=[],W={},v={},g=this.season;(s=(o=this.seasonSelected)==null?void 0:o.related_seasons)!=null&&s.some(d=>d.id===this.season)&&(g=this.seasonSelected.id),this.arePlaysEmpty=!1;const r=bu.create({headers:{Authorization:`${this.token}`}});this.isloading=!0;let b={};if(this.typeData==1?this.isWidget&&this.teamWidget!=0?b=await r.get(this.url+"/"+this.gameId+"/"+this.category+"?t="+this.teamWidget):b=await r.get(this.url+"/"+this.gameId+"/"+this.category):this.game.game_status===1?this.isWidget&&this.teamWidget!=0?b=await r.get(this.url+"/"+this.gameId+"/"+this.category+"?acc=1&t="+this.teamWidget):b=await r.get(this.url+"/"+this.gameId+"/"+this.category+"?acc=1"):this.isWidget&&this.teamWidget!=0?b=await r.get(this.urlPrematch+g+"/"+this.category+"?t="+this.teamWidget):b=await r.get(this.urlPrematch+g+"/"+this.category+"?t="+this.game.homeTeam.team_id+"&t="+this.game.awayTeam.team_id),b&&b.data&&b.data.data&&b.data.data.length>0){z=b.data.data.map(a=>this.formatStatsData(a)),b.data.teams.forEach(a=>{W[a[0]]={},W[a[0]].id=a[0],W[a[0]].name=a[1],W[a[0]].abrv=a[2],W[a[0]].img=a[3],W[a[0]].effectiveness=a[4],W[a[0]].games_played=a[5],W[a[0]].games_played_lastseason=a[6],W[a[0]].positiontable=a[7],W[a[0]].goals=a[8],W[a[0]].goalsrecived=a[9],W[a[0]].xg=a[10],W[a[0]].frecuency=a[11],W[a[0]].game_avg=a[12],W[a[0]].game_avg_last_season=a[13]});const d=new Set;b.data.players.forEach(a=>{const _=this.getObjectPlayer(a);this.mapPlayers.set(_.numberId,_);const y=_.numberAge,x=_.teamName.length>0?_.teamName[0].acronym:"",u=_.teamName.length>0?W[_.teamName[0].team_id].name:"",n=_.teamName.length>0?_.teamName[0].team_id:"",i=this.positions[_.numberPositionId-1].fullname,f=this.positions[_.numberPositionId-1].name,l=_.countryId.length>0?_.countryId[0].nationality_id:"",h=_.effectiveness,m=_.min,w=_.games,T=_.date;_.arrayNationalities.forEach(A=>{d.add(A.numberId)}),v[a[0]]={id:a[0],name:a[1],img:a[2],age:y,team:x,teamname:u,teamid:n,position:i,positionfull:f,effectiveness:h,country:l,games_played:w,minutes_played:m,date:T,nationality:_.stringNationalityName,player_country_flag:_.player_country_flag,positionId:_.numberPositionId}}),this.setNationalityIds=d,this.arrayAgeRange=[b.data.min_age,b.data.max_age]}else this.arePlaysEmpty=!0;this.teamInfo=W,this.playersInfo=v,this.formatStats=z,this.formatFilterStats=this.filterRecords(this.filtersSelect),this.statsData=b}catch(z){return Promise.reject(z)}},filterRecords(e){return this.formatStats.length>0?this.formatStats.filter(o=>{const s=e.playingAs.includes(o.playing_as),z=e.matchResult.includes(o.match_result),W=e.sections.includes(o.section),v=e.typeZone===1&&e.zone.includes(o.origen)||e.typeZone===2&&e.zone.includes(o.destino);if(e.setPositionsIds&&e.setNationalitiesIds&&e.arrayAgeRange&&e.setYear&&!this.isTeam){const g=this.mapPlayers.get(o.player_id);if(!g)return!1;if(e.booleanAreNationalTeamsVisible){if(e.setAvailableNationalTeamsPlayersIds.size>0&&!e.setAvailableNationalTeamsPlayersIds.has(o.player_id))return!1}else{let r=!1;for(const b of g.arrayNationalitiesIds)if(e.setNationalitiesIds.has(b)){r=!0;break}if(!r)return!1}if(g.numberAge<e.arrayAgeRange[0]||g.numberAge>e.arrayAgeRange[1]||g.date<e.setYear||!e.setPositionsIds.includes(g.numberPositionId))return!1}return(e.playingAs.length===0||s)&&(e.matchResult.length===0||z)&&(e.sections.length===0||W)&&(e.zone.length===0||v)}):[]},updateSliderF(){this.updateSlider+=1},formatStatsData(e){const o={};return e[1]===0&&(e[2]===1||e[2]===2)&&(e[2]=3-e[2]),e[1]===0&&(e[3]===1||e[3]===2)&&(e[3]=3-e[3]),this.data_headers.forEach((s,z)=>{o[s]=e[z]}),o},getObjectPlayer(e){const o=[],s=e[7].map(W=>(o.push(W.nationality_id),{stringName:W.nationality,numberId:W.nationality_id})),z=e[9].split("-");return{numberId:e[0]!==void 0?e[0]:"",stringFullName:e[1]!==void 0?e[1]:"",stringImageUrl:e[2]!==void 0?e[2]:"",numberTeamId:e[3]!==void 0?e[3]:"",player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+e[3]+".jpg",stringNationalityName:IF[e[3]],numberAge:e[5]!==void 0?e[5]:"",numberPositionId:e[6]!==void 0?e[6]:"",countryId:e[7]!==void 0?e[7]:"",teamName:e[10]!==void 0?e[10]:"",effectiveness:e[11]!==void 0?e[11]:"",min:e[13]!==void 0?e[13]:"",games:e[12]!==void 0?e[12]:"",date:z.length>0?Number(z[0]):0,arrayNationalities:s,category:this.categoryName,arrayNationalitiesIds:o}},formatArrayPaginate(e){const o=Math.ceil(e.length/this.numRows);return Array.from({length:o},(s,z)=>{const W=z*this.numRows,v=W+this.numRows;return e.slice(W,v)})},createIntervalTops(){this.intervalIdtops=setInterval(async()=>{await this.getCategoryStats(this.season)},this.timeLiveComparativeAvanced)},clearTopsInterval(){this.intervalIdtops&&(clearInterval(this.intervalIdtops),this.intervalIdtops=null)}},beforeUnmount(){this.clearTopsInterval()}},LF=()=>{t.useCssVars(e=>({baf9c686:e.borderRadius,cba5678a:e.borderWidth,cdd36450:e.borderColor}))},BF=_k.setup;_k.setup=BF?(e,o)=>(LF(),BF(e,o)):LF;const Lst={ref:"myDivRef"},Bst={class:"btnViewFullList"},Ost={class:"text"},zst={class:"groupsLeague"},Nst={class:"row-table-carrousel"},Dst={key:1,class:"container-no-search-result"},Fst={key:0,class:"overlay-loading-top"};function Rst(e,o,s,z,W,v){const g=t.resolveComponent("GSCLeaders"),r=t.resolveComponent("GSCRowTable"),b=t.resolveComponent("GSCExpandedInfo"),d=t.resolveComponent("GSCCarousel"),a=t.resolveComponent("GSCTableHeader");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(s.type==0?"gsc-top":"gsc-top-full")},[t.createElementVNode("div",Lst,[t.createElementVNode("div",Bst,[t.createElementVNode("div",Ost,[t.createElementVNode("div",zst,t.toDisplayString(s.categoryName),1)])]),s.type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[v.topData.length>0?(t.openBlock(),t.createBlock(d,{key:0,items:v.topData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:v.changeCarrousel},{default:t.withCtx(({item:_})=>[t.createElementVNode("div",Nst,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_,(y,x)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:x},[y.top==1?(t.openBlock(),t.createBlock(g,{key:0,onMediadata:o[0]||(o[0]=u=>v.emitEventMedia(u,s.category,s.categoryName)),type:s.typeTable,"type-data":s.typeData,game:s.game,"team-widget":s.teamWidget,"can-play-videos":s.canPlayVideos,"is-expanded":e.playerexpand==y.id&&e.expand,ref_for:!0,ref:"GSCLeaders",data:s.typeTable==0?{top:"01",photo:y.img,logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.teamid+".png",name:y.name,player_short:y.name_short,player_id:y.id,categoryId:s.category,total:y.total}:{top:"01",logo:y.img,total:y.total,name_team:y.name,player_id:y.id},"category-name":s.categoryName,buttonMaxWidth:s.typeTable!=0?z.elementSize.width>360?"210px":"130px":z.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"11px",onExpand:v.clickexpand,onMore:v.morestats},null,8,["type","type-data","game","team-widget","can-play-videos","is-expanded","data","category-name","buttonMaxWidth","onExpand","onMore"])):(t.openBlock(),t.createBlock(r,{key:1,"type-data":s.typeData,"team-widget":s.teamWidget,game:s.game,type:s.typeTable,"type-view":s.type,"is-expanded":e.playerexpand==y.id&&e.expand,onMediadata:o[1]||(o[1]=u=>v.emitEventMedia(u,s.category,s.categoryName)),data:s.typeTable==0?{position:y.top,player_name:y.name,player_short:y.name_short,player_photo:y.img,total:y.total,id:y.id,player_age:y.age,team_abrev:y.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.teamid+".png",player_position:y.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+y.country+".jpg",player_games:y.minutes,player_min:y.games,league_name:" Liga MX "}:{position:y.top,team_logo:y.img,team_abrev:y.name,frequency:y.frecuency,promthistournament:y.game_avg,promlasttournament:y.game_avg_last_season,teams_games:"-",category:s.category,total:y.total,id:y.id},height:"71px","can-play-videos":s.canPlayVideos,background:x%2===0?s.backgroundEven:s.backgroundOdd,onExpand:v.clickexpand},null,8,["type-data","team-widget","game","type","type-view","is-expanded","data","can-play-videos","background","onExpand"])),e.expand&&e.playerexpand==y.id?(t.openBlock(),t.createBlock(b,{key:2,type:s.typeTable,"is-live":s.game.is_live,"view-effectiveness":y.positionId!==1,data:s.typeTable==0?{teams:y.teamname,age:y.age,dataofbirth:y.date,nationality:y.nationality,countryFlag:y.player_country_flag,position:y.position,games:y.games,min:y.minutes,goals:y.total,effectiveness:y.effectiveness,category:s.categoryName,id:y.id}:{position:y.positiontable,goals:y.goals,goals_received:y.goalsrecived,games_played:y.games_played,category:s.categoryName,effectiveness:y.effectiveness,xg:y.xg,total:y.total,attendance:"-",id:y.id},onViewprofile:u=>v.viewprofile(u,y.teamid),background:x%2===0?s.backgroundEven:s.backgroundOdd},null,8,["type","is-live","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))])]),_:1},8,["items","onInput"])):(t.openBlock(),t.createElementBlock("div",Dst,[e.isloading?(t.openBlock(),t.createElementBlock("div",Fst,o[3]||(o[3]=[t.createElementVNode("div",{class:"overlay-loading-top__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),t.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1)]))):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[o[4]||(o[4]=t.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),o[5]||(o[5]=t.createElementVNode("div",{class:"container-no-search-result-subtitle"},[t.createTextVNode(" No existen resultados para este tipo de"),t.createElementVNode("br"),t.createTextVNode(" jugada, considerando el torneo y otros"),t.createElementVNode("br"),t.createTextVNode(" filtros que has seleccionado. ")],-1))],64))]))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(a,{background:"#183143",type:s.typeTable},null,8,["type"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v.topData,(_,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_,(x,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:u},[t.createVNode(r,{"type-data":s.typeData,"team-widget":s.teamWidget,game:s.game,type:s.typeTable,"type-view":s.type,"can-play-videos":s.canPlayVideos,"is-expanded":e.playerexpand==x.id&&e.expand,onMediadata:o[2]||(o[2]=n=>v.emitEventMediaFullTable(n,s.category,s.categoryName)),data:s.typeTable==0?{position:x.top,player_name:x.name,player_short:x.name_short,player_photo:x.img,total:x.total,id:x.id,player_age:x.age,team_abrev:x.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+x.teamid+".png",player_position:x.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+x.country+".jpg",player_games:x.games,player_min:x.minutes,league_name:" Liga MX "}:{position:x.positiontable,team_logo:x.img,team_abrev:x.name,frequency:x.frecuency,promthistournament:x.game_avg,promlasttournament:x.game_avg_last_season,category:s.category,team_games:x.games_played,total:x.total,id:x.id},height:"71px",background:((y+1)*5+u)%2===0?s.backgroundOdd:s.backgroundEven,onExpand:v.clickexpand},null,8,["type-data","team-widget","game","type","type-view","can-play-videos","is-expanded","data","background","onExpand"]),e.expand&&e.playerexpand==x.id?(t.openBlock(),t.createBlock(b,{key:0,type:s.typeTable,"is-live":s.game.is_live,additionalClass:"fullTable","view-effectiveness":x.positionId!==1,data:s.typeTable==0?{teams:x.teamname,age:x.age,dataofbirth:x.date,nationality:x.nationality,countryFlag:x.player_country_flag,position:x.positionfull,positionfull:x.positionfull,games:x.games,min:x.minutes,goals:x.total,effectiveness:x.effectiveness,category:v.getCategoryName(s.category),id:x.id}:{position:x.positiontable,goals:x.goals,goals_received:x.goalsrecived,games_played:x.games_played,category:s.categoryName,effectiveness:x.effectiveness,xg:x.xg,total:x.total,category:v.getCategoryName(s.category),attendance:"-",id:x.id},onViewprofile:n=>v.viewprofile(n,x.teamid),background:u%2===0?s.backgroundEven:s.backgroundOdd},null,8,["type","is-live","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))],64))),128))],64))],512)],2)}const Vst=$i(_k,[["render",Rst],["__scopeId","data-v-0b419ca1"]]),jst=(e,o)=>{const s=e.__vccOpts||e;for(const[z,W]of o)s[z]=W;return s},Ust={props:{id:Number,textValue:String,icon:String,numFilter:Number,iconVisible:{type:Boolean,default:!0},activeClickLabel:{type:Boolean,default:!1},height:{type:String,default:"35px"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderColor:String,backgroundColor:{type:String,default:"#23303B"},fontSize:{type:String,default:"13px"},fontColor:{type:String,default:"#FFFFFF"},fontFamily:{type:String,default:"Poppins-Regular"},iconSize:{type:String,default:"20px"}},computed:{customStyle(){return{height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,cursor:this.cursorType,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}},customIcon(){return{width:this.iconSize}}},methods:{btnLabel(){this.$emit("clickLabel",this.id)},btnClose(){this.$emit("clickClose",this.id)}}},Gst=["src"],Hst=["src"];function Zst(e,o,s,z,W,v){return t.openBlock(),t.createElementBlock("div",null,[s.activeClickLabel?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(v.customStyle),class:"gsc-label",onClick:o[0]||(o[0]=(...g)=>v.btnLabel&&v.btnLabel(...g))},[t.createTextVNode(t.toDisplayString(s.numFilter)+" "+t.toDisplayString(s.textValue)+" ",1),s.iconVisible?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(v.customIcon),class:"icon",src:s.icon},null,12,Gst)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-label",style:t.normalizeStyle(v.customStyle)},[t.createTextVNode(t.toDisplayString(s.numFilter)+" "+t.toDisplayString(s.textValue)+" ",1),s.iconVisible?(t.openBlock(),t.createElementBlock("img",{key:0,onClick:o[1]||(o[1]=(...g)=>v.btnClose&&v.btnClose(...g)),style:t.normalizeStyle(v.customIcon),class:"icon",src:s.icon},null,12,Hst)):t.createCommentVNode("",!0)],4))])}const Wst=jst(Ust,[["render",Zst],["__scopeId","data-v-42ff544a"]]);function Xst(e){const o=t.ref({width:0,height:0});function s(){const z=e.value.getBoundingClientRect();o.value.width=z.width,o.value.height=z.height}return t.onMounted(()=>{s(),window.addEventListener("resize",s)}),t.onUnmounted(()=>{window.removeEventListener("resize",s)}),{elementSize:o}}const qst=(e,o)=>{const s=e.__vccOpts||e;for(const[z,W]of o)s[z]=W;return s},wk={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,o=this.$refs.content.scrollWidth;o>0&&e>0&&(o>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},OF=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},zF=wk.setup;wk.setup=zF?(e,o)=>(OF(),zF(e,o)):OF;const Yst={ref:"gscScrollableContainer",class:"scrollable-container"},Jst={class:"scrollable-arrows"},$st=["width","height","viewBox"],Kst=["stroke"],Qst={class:"scrollable-wrapper"},elt={class:"scrollable-arrows"},tlt=["width","height","viewBox"],alt=["stroke"];function rlt(e,o,s,z,W,v){return t.openBlock(),t.createElementBlock("div",Yst,[s.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",v.hideShowLeftArrow]),onClick:o[0]||(o[0]=(...g)=>v.scrollLeft&&v.scrollLeft(...g))},[t.createElementVNode("div",Jst,[(t.openBlock(),t.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:v.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:s.arrowsColor},null,8,Kst)],8,$st))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:o[1]||(o[1]=(...g)=>v.getScroll&&v.getScroll(...g))},[t.createElementVNode("div",Qst,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),s.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",v.hideShowRightArrow]),onClick:o[2]||(o[2]=(...g)=>v.scrollRight&&v.scrollRight(...g))},[t.createElementVNode("div",elt,[(t.openBlock(),t.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:v.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:s.arrowsColor},null,8,alt)],8,tlt))])],2)):t.createCommentVNode("",!0)],512)}const nlt=qst(wk,[["render",rlt],["__scopeId","data-v-b548a08d"]]),ilt=(e,o)=>{const s=e.__vccOpts||e;for(const[z,W]of o)s[z]=W;return s},kk={components:{GSCSlider:nlt},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=t.ref("myDivRef"),{elementSize:o}=Xst(e);return{myDivRef:e,elementSize:o}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var o={};return e.width>768?o={fontSize:"16px"}:e.width>480?o={fontSize:"14px"}:o={fontSize:"12px"},o}}},NF=()=>{t.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},DF=kk.setup;kk.setup=DF?(e,o)=>(NF(),DF(e,o)):NF;const olt={ref:"myDivRef"},slt={key:0,class:"gs-switch-container"},llt=["onClick"],clt={key:1,class:"gs-switch-container-type"},ult=["onClick"],dlt={key:2,class:"gs-switch-container-carousel"},hlt=["onClick"];function plt(e,o,s,z,W,v){const g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",olt,[s.type==0?(t.openBlock(),t.createElementBlock("div",slt,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([v.customGrid(z.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.buttons,(r,b)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:s.height},s.selectedOption==r?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:b,onClick:d=>(s.selectedOption=r,v.clickEmitEvent(r))},t.toDisplayString(r),13,llt))),128))],4),t.renderSlot(e.$slots,s.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),s.type==1?(t.openBlock(),t.createElementBlock("div",clt,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([v.customGrid(z.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.buttons,(r,b)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:s.height},s.selectedOption==r?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:s.backgroundOptionDisable}]),key:b,onClick:d=>(s.selectedOption=r,v.clickEmitEvent(r))},t.toDisplayString(r),13,ult))),128))],4)])):t.createCommentVNode("",!0),s.type==2?(t.openBlock(),t.createElementBlock("div",dlt,[t.createVNode(g,{arrows:s.arrow,"background-color":s.background,"px-scroll":s.pxScroll,"scroll-color":s.scrollColor,"arrows-position":s.arrowsPosition,arrowsScrollHide:s.arrowsScrollHide,"arrows-background":s.arrowsBackground,"arrows-container-bg-l":s.arrowsContainerBgL,"arrows-container-bg-r":s.arrowsContainerBgR,"arrows-margin":s.arrowsMargin,"arrows-radius":s.arrowsRadius,"arrows-border":s.arrowsBorder},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.buttons,(r,b)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:s.height},s.selectedOption==r?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:b,onClick:d=>(s.selectedOption=r,v.clickEmitEvent(r))},t.toDisplayString(r),13,hlt))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):t.createCommentVNode("",!0)],512)}const Sk=ilt(kk,[["render",plt],["__scopeId","data-v-8a86dfaf"]]),aqt="",rqt="";function flt(){return{backgroundColor:"#2e3b46",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"5px 12px",textFontFamily:"'Poppins-Regular'"}}const nqt="",mlt={comfiltersContainer:"_comfiltersContainer_xl2as_1",comfiltersContainer1232:"_comfiltersContainer1232_xl2as_1",closeFiltersPc:"_closeFiltersPc_xl2as_1",comtextleyemdmultipleleagues:"_comtextleyemdmultipleleagues_xl2as_1",comtextleyemdmultipleleagues380:"_comtextleyemdmultipleleagues380_xl2as_1",comfiltersContainer760:"_comfiltersContainer760_xl2as_1",comfiltersContainer460:"_comfiltersContainer460_xl2as_1",comcontainerSection:"_comcontainerSection_xl2as_1",comcontainerSection1232:"_comcontainerSection1232_xl2as_1",comcontainerSection960:"_comcontainerSection960_xl2as_1",comcontainerSection320:"_comcontainerSection320_xl2as_1",comcontainerSection350:"_comcontainerSection350_xl2as_1",comtemplateLosMejores1:"_comtemplateLosMejores1_xl2as_1",comtemplateLosMejores11232:"_comtemplateLosMejores11232_xl2as_1",comtemplateLosMejores1960:"_comtemplateLosMejores1960_xl2as_1",comtemplateLosMejores1420:"_comtemplateLosMejores1420_xl2as_1",comtemplateLosMejores1320:"_comtemplateLosMejores1320_xl2as_1",comtemplateLosMejores1540:"_comtemplateLosMejores1540_xl2as_1",comtemplateLosMejores1350:"_comtemplateLosMejores1350_xl2as_1",comtopFiltersParent:"_comtopFiltersParent_xl2as_1",comtopFiltersParent1232:"_comtopFiltersParent1232_xl2as_1",comtopFiltersParent960:"_comtopFiltersParent960_xl2as_1",comtopFiltersParent460:"_comtopFiltersParent460_xl2as_1",comtopFiltersParent420:"_comtopFiltersParent420_xl2as_1",comcontainerTheBest:"_comcontainerTheBest_xl2as_1",comcontainerTheBest1232:"_comcontainerTheBest1232_xl2as_1",comcontainerTheBest960:"_comcontainerTheBest960_xl2as_1",comcontainerTheBest320:"_comcontainerTheBest320_xl2as_1",comtitleSection:"_comtitleSection_xl2as_1",comtitleSection540:"_comtitleSection540_xl2as_1",comcontainerTables:"_comcontainerTables_xl2as_1",comcontainerTables960:"_comcontainerTables960_xl2as_1",comcontainerTables760:"_comcontainerTables760_xl2as_1",comcontainerTables320:"_comcontainerTables320_xl2as_1",comtoniKroosWrapper:"_comtoniKroosWrapper_xl2as_1",comtoniKroosWrapper1080:"_comtoniKroosWrapper1080_xl2as_1",comtoniKroosWrapper975:"_comtoniKroosWrapper975_xl2as_1",comtoniKroosWrapper760:"_comtoniKroosWrapper760_xl2as_1",comtoniKroosWrapper420:"_comtoniKroosWrapper420_xl2as_1",comtoniKroosWrapper320:"_comtoniKroosWrapper320_xl2as_1",frameChild:"_frameChild_xl2as_1",filtros:"_filtros_xl2as_1",groupParent:"_groupParent_xl2as_1",shapeIcon:"_shapeIcon_xl2as_1",btnFilters:"_btnFilters_xl2as_1",btnFiltersPC:"_btnFiltersPC_xl2as_1",comquitarFiltros:"_comquitarFiltros_xl2as_1",comquitarFiltros730:"_comquitarFiltros730_xl2as_1",comquitarFiltros480:"_comquitarFiltros480_xl2as_1",comquitarFiltros380:"_comquitarFiltros380_xl2as_1",btnCloseFilters:"_btnCloseFilters_xl2as_1",commejoresJugadores:"_commejoresJugadores_xl2as_1",commejoresJugadores730:"_commejoresJugadores730_xl2as_1",commejoresJugadores480:"_commejoresJugadores480_xl2as_1",mejoresJugadoresSM:"_mejoresJugadoresSM_xl2as_1",toniKroos:"_toniKroos_xl2as_1",teamBar:"_teamBar_xl2as_1",commenuSection:"_commenuSection_xl2as_1",commenuSection960:"_commenuSection960_xl2as_1",comcontainerMenu:"_comcontainerMenu_xl2as_1",comcontainerMenu760:"_comcontainerMenu760_xl2as_1",containerFilters:"_containerFilters_xl2as_1",teamBarParent:"_teamBarParent_xl2as_1",comtopFilters:"_comtopFilters_xl2as_1",comtopFilters1232:"_comtopFilters1232_xl2as_1",comtopFilters420:"_comtopFilters420_xl2as_1",comtopFilters460:"_comtopFilters460_xl2as_1",comlosMejores:"_comlosMejores_xl2as_1",comlosMejores380:"_comlosMejores380_xl2as_1",comlosMejores530:"_comlosMejores530_xl2as_1",comlosMejores730:"_comlosMejores730_xl2as_1",commenuSectionHeader:"_commenuSectionHeader_xl2as_1",commenuSectionHeader1232:"_commenuSectionHeader1232_xl2as_1",commenuSectionHeader960:"_commenuSectionHeader960_xl2as_1",commenuSectionHeader730:"_commenuSectionHeader730_xl2as_1",comdropdown:"_comdropdown_xl2as_1",comdropdown730:"_comdropdown730_xl2as_1",comdropdown1:"_comdropdown1_xl2as_1",comdropdown1730:"_comdropdown1730_xl2as_1",comdropdownParent:"_comdropdownParent_xl2as_1",comdropdownParent730:"_comdropdownParent730_xl2as_1",commenuSectionParentHeader:"_commenuSectionParentHeader_xl2as_1",commenuSectionParentHeader1232:"_commenuSectionParentHeader1232_xl2as_1",commenuSectionParentHeader960:"_commenuSectionParentHeader960_xl2as_1",commenuSectionParentHeader730:"_commenuSectionParentHeader730_xl2as_1",commenuSectionParentHeader430:"_commenuSectionParentHeader430_xl2as_1",comdescubreVideos:"_comdescubreVideos_xl2as_1",comdescubreVideos1232:"_comdescubreVideos1232_xl2as_1",comdescubreVideos960:"_comdescubreVideos960_xl2as_1",allCategories:"_allCategories_xl2as_1",containerScountingBtncom:"_containerScountingBtncom_xl2as_3",btnDeleteAplicacom:"_btnDeleteAplicacom_xl2as_13",SearchBtnBarcom:"_SearchBtnBarcom_xl2as_33",btnLeyendTxtcom:"_btnLeyendTxtcom_xl2as_52",BtnSearchScountingcom:"_BtnSearchScountingcom_xl2as_61",containerPredefinedcom:"_containerPredefinedcom_xl2as_85",containerPredefinedScountingcom:"_containerPredefinedScountingcom_xl2as_92",titleContainerPredefinedcom:"_titleContainerPredefinedcom_xl2as_100",subtitleContainerPredefinedcom:"_subtitleContainerPredefinedcom_xl2as_111"},glt=t.ref(flt()),ylt={components:{GSCTableHeader:uF,GscSwitchComponent:Sk,GSCFilterperteam:Mot,GSCFilters:qD,GSCExpandedInfo:EF,GSCLabel:Wst,GSCSeasonSelect:ZT,GSCTopCategory:Vst,GSCTournamentSelect:UT,GSCRowTable:gF},computed:{...Nit.computed,filterChangePredefined(){return this.filtersPredefinedF},filterChange(){const e={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.fVnationalities,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},o=JSON.stringify(e);if(JSON.stringify(this.filters)!=o)return o},filterGolstats(){return this.FVfilterGolstats},filterButtonProps(){return{...glt.value}}},props:{timeLiveComparativeAvanced:{type:Number,default:6e4},currentSeasonId:{type:Number,default:0},typeData:{type:Number,default:1},canPlayVideos:{type:Boolean,default:!1},teamId:{type:Number,default:0},gameId:{type:Number,default:0},isWidget:{type:Boolean,default:!1},seasonSelected:{type:Object,default:()=>({})},teamWidget:{type:Number,default:0},game:{type:Object,default:()=>({})},teamselect:{type:Number,default:0},seasonActive:{type:Number,default:0},defaultSection:{type:String,default:"Jugadores"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},tournamentsApiUrl:{type:String,default:""},isFemaleMode:{type:Boolean,default:!1}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const e=await this.fetchTeams();for(let o=0;o<e.teams.length;o++)this.teams.push({id:e.teams[o].team_id,team:e.teams[o].colloquial_name,logo:e.teams[o].logo})}}},setup(){const e=t.ref("myDivRefTopsFull"),{elementSize:o}=Wv(e);return{myDivRefTopsFull:e,elementSize:o}},data(){return{elegibilidadArray:[],updateFilterTeamsScouting:0,modifidFiltersFlag:!1,showfiltersPc:!1,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,o)=>o+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],filterScounting:{tournaments:[1],seasonId:0,categories:[{name:"Goles",ids:[12]},{name:"Asistencias",ids:[10]},{name:"Participaciones en gol",ids:[27]},{name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",ids:[91,95,92,93,96,97]}],range_age:[10,40],age_or_year:1,year:1989,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],elegibles:[],minutes_played:211,minutes_played_avg:40,last_months:12,type_stats:1,positions:[1,2,3,4,5,6,7,8,9,10],fouls:!1,yellow_cards:!1,red_cards:!1},expand:!1,playerexpand:0,arrayFiltersPlays:[],filtersPredefinedF:{},categoryPredefinedActive:!1,categoryPredefined:0,typeTable:0,keyUpdateFilter:0,loadingActive:!1,isTeam:!1,arrayPredefinedFilters:[],arrayCategoryFilter:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],arrayCategoryFilterFull:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],FVsetAvailableNationalTeamsPlayersIds:new Set,showOnlyCategories:!1,showFullCategory:0,categoryName:"",showFullTable:!1,expansionPanelModePropsTypePlays:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",width:"400px",maxWidth:"400px"},expansionPanelProps:{width:"400px",borderRadius:"8px"},fieldComponentProps:{widthContainer:"400px"}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"'Poppins-Regular'"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"270px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},filters:{zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},detailsObject:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{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}]},nameLeagueSelected:"",categoriesPlaysTypes:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},categoriesDefault:[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Pases acertados",isSelected:!1},{id:23,name:"Tiros de Esquina",isSelected:!1},{id:3,name:"Balones recuperados en disputa",isSelected:!1},{id:4,name:"Asistencias",isSelected:!1},{id:5,name:"Participaciones en gol",isSelected:!1},{id:6,name:"Tiros a gol",isSelected:!1},{id:7,name:"Tiros a gol que llegaron a la portería",isSelected:!1},{id:8,name:"Cabeceos en área rival",isSelected:!1},{id:9,name:"Cabeceos en área propia",isSelected:!1},{id:10,name:"Centros",isSelected:!1},{id:11,name:"Centros acertados",isSelected:!1},{id:12,name:"1vs1 exitosos ofensivos",isSelected:!1},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol",isSelected:!1},{id:14,name:"1vs1 defensivos exitoso",isSelected:!1},{id:15,name:"Rechaces",isSelected:!1},{id:16,name:"Balones ganados en área propia",isSelected:!1},{id:17,name:"Balones ganados en área rival",isSelected:!1},{id:18,name:"Faltas cometidas",isSelected:!1},{id:19,name:"Faltas recibidas",isSelected:!1},{id:20,name:"Tarjetas amarillas",isSelected:!1},{id:21,name:"Tarjetas rojas",isSelected:!1},{id:22,name:"Atajadas",isSelected:!1}],seasonsFilterSelected:0,tournamentsToFilter:[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1772,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1777,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1776,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1785,type:0}]},{name:"Sub-18",logo:null,isSelected:!0,id:1096,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1782,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1751}],id:1714,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1593}],id:1543,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1522}],id:1487,type:0}]},{name:"Sub-16",logo:null,isSelected:!0,id:1095,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1783,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1750}],id:1715,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1652}],id:1541,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1527}],id:1488,type:0}]}],isCup:!1,arrayPredefinedOrigin:[],indexPredefinedFiltersSelected:0,predefinedFiltersMatchLapse:[],predefinedFiltersPlayingAs:[],predefinedFiltersSections:[],updateTables:0,updateTablesfull:0,optionSelected:"Jugadores",optionSelectedSubmenu:"Todas las jugadas",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",teamsUrl:"https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/",urlFilter:"https://cqqxaonvm6.execute-api.us-east-2.amazonaws.com/prod/gs2/tops/filters?categories=",retries:3,teams:[],updateFilterGolstats:0,updateFilterPlaytypesGolstats:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],updateFilterTeamsScouting:0,filtersTypes:Jr,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVnationalities:new Set,fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],fVplayingAs:[1,2],fVsections:[1,2,3,4,5,6],fVmatchResult:[1,2,3],fVarrayAgeRange:[10,40],FVeligible:[],FVYear:1900,keyTournamentValue:0,fVtypeZone:2,fVsetPositionsIds:[1,2,3,4,5,6,7,8,9],currentIndex:-1,delay:800,teamselectrec:0,tournamentSelected:0,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,rowScoutingData:[],openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{}}},methods:{getnameshort(e){var o=e.split(","),s=o[0].split(" "),z=o[1].trim().split(" "),W="";s.length==2||s.length==1?s[0].length<4?W=s[0]+" "+s[1]:W=s[0]:s.length==3?W=s[0]+" "+s[1]:s.length==4&&(W=s[1]+" "+s[2]+" "+s[3]);var v=z[z.length-1]!=""?z[z.length-1].charAt(0):z[z.length-2]?z[z.length-2].charAt(0):"";return W=W.replace(",",""),v+". "+W},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(e=>{const o=e.id===this.selectedTournament.id;e.isSelected=o,e.isDefaultTournament=o})},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let z=0;z<this.detaildProductivityCategories.offensive.categories.length;z++)this.detaildProductivityCategories.offensive.categories[z].isSelected=!1;for(let z=0;z<this.detaildProductivityCategories.defensive.categories.length;z++)this.detaildProductivityCategories.defensive.categories[z].isSelected=!1;for(let z=0;z<this.detaildProductivityCategories.possession.categories.length;z++)this.detaildProductivityCategories.possession.categories[z].isSelected=!1;for(let z=0;z<this.detaildProductivityCategories.offensesConditions.length;z++)this.detaildProductivityCategories.offensesConditions[z]=!1;this.setUpTournamentsToFilter();const o=this.$refs.personalDataFilter;o.clearFilters(Ru.All),o.clearFilters(Ru.AGE_RANGE),o.clearFilters(Ru.YEAR),o.clearFilters(Ru.NATIONALITY),o.clearFilters(Ru.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(z,W)=>W+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var e=this.arrayFiltersPlays.findIndex(z=>z.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(e,1);const s=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let z=0;z<s.teams.length;z++)this.teamsscouting.push({id:s.teams[z].team_id,team:s.teams[z].colloquial_name,logo:s.teams[z].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200)}},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(e){this.seasonActive!==e.id&&(this.seasonActive=e.id,this.resetPredefinedTeamAll(),this.$emit("change-season-id",e.id))},changeTournament(e){e.id!==this.selectedTournament.id&&(this.selectedTournament=e,this.tournamentSelectedObj={propName:"id",value:e.id},this.teamselect=0,this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},changeTournamentMovil(e){this.tournamentSelectedObj={propName:"id",value:e.id},this.seasonBytournament=e.seasons,this.teamselect=0},selectedSeasonMovil(e){this.seasonActive=e.id},setRelevantCategoriesPlayer(e){return e===1?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]},setOpenMedia(e){this.$emit("openmedia",e)},setMediaData(e){let W=[e.id],v=e.team_id;const g={seasonId:e.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:W,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(e.position),teamId:v||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};this.$emit("openmedia",g)},clickprofile(e){e.isTeam?this.$emit("openProfileTeam",{teamId:e.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:e.id,teamId:e.teamId,seasonId:this.seasonActive})},viewprofile(e,o,s){this.$emit("openProfilePlayer",{playerId:e,teamId:s,seasonId:o||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const e=bu.create({headers:{Authorization:`${this.token}`}}),{data:o}=await e.post("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var s=this.arrayFiltersPlays.findIndex(W=>W.type==="onFiltersTournaments");s!==-1?this.arrayFiltersPlays[s].name=this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX":this.arrayFiltersPlays.push({name:this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX",type:"onFiltersTournaments"})}this.rowScoutingData=[];for(let W=0;W<o.length;W++){o[W];let g=o[W].dob.split("T")[0].split("-");var z={position:W+1,player_name:this.abrevName(o[W].name),player_photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+o[W].player_id+".png",total:o[W].total.toFixed(0),id:o[W].player_id,player_age:this.calcularEdad(o[W].dob),team_abrev:o[W].teams[0].acronym,team_name:o[W].teams[0].team_name,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+o[W].teams[0].team_id+".png",player_position:o[W].position_id,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+o[W].nationality_id+".jpg",date:g[2]+"."+g[1]+"."+g[0].substring(2,4),team_id:o[W].team_id,nationality_name:IF[o[W].nationality_id],player_games:o[W].games_played,player_min:o[W].minutes_played,league_name:o[W].tournament_name,seasons:o[W].seasons,season_id:o[W].seasons[0]};this.rowScoutingData.push(z)}if(this.seasonsFilterSelected!=0){const W=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let v=0;v<W.teams.length;v++)this.teamsscouting.push({id:W.teams[v].team_id,team:W.teams[v].colloquial_name,logo:W.teams[v].logo})}this.loadingActive=!1},abrevName(e){var o=e.split(","),s=o[0].split(" "),z=o[1].trim().split(" "),W="";s.length==2||s.length==1?s[0].length<4?W=s[0]+" "+s[1]:W=s[0]:s.length==3?W=s[0]+" "+s[1]:s.length==4&&(W=s[1]+" "+s[2]+" "+s[3]);var v=z[z.length-1]!=""?z[z.length-1].charAt(0):z[z.length-2]?z[z.length-2].charAt(0):"";W=W.replace(",","");var g=v+". "+W;return g},calcularEdad(e){var o=new Date(e),s=new Date,z=s-o,W=Math.floor(z/(1e3*60*60*24*365.25));return W},async onFiltersTournaments(e){this.modifidFiltersFlag=!0;var o=[];for(let s=0;s<e.length;s++)e[s].isSelected&&o.push(e[s].id);if(o.length==0&&(o=[1]),o.length==1)for(let s=0;s<e.length;s++)e[s].isSelected&&(this.nameLeagueSelected=e[s].name,this.seasonsFilterSelected=e[s].seasons[0].id);else this.seasonsFilterSelected=0,o.length>0&&(this.nameLeagueSelected=o.length+" Ligas");this.filterScounting.tournaments=o,this.filterScounting.seasonId=e[0].seasons[0].id},onFiltersPersonalData(e){if(this.modifidFiltersFlag=!0,e.hasOwnProperty("ageByRange")){const z=e.ageByRange.min==0?10:e.ageByRange.min,W=e.ageByRange.max==0?40:e.ageByRange.max;this.filterScounting.range_age=[z,W],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];e.hasOwnProperty("year")?(this.filterScounting.year=e.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var o=[];if(e.hasOwnProperty("nationalities")){for(let z=0;z<e.nationalities.length;z++)e.nationalities[z].isSelected&&o.push(e.nationalities[z].id);o.length==0&&(o=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filterScounting.elegibles=[],e.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[e.eligibility[0].id]);var s=[];for(let z=0;z<e.positions.length;z++)e.positions[z].isSelected&&s.push(e.positions[z].id);s.length==0&&(s=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=s,this.filterScounting.nationalities=o},onFiltersUniverse(e){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(e.minutesPlayed),this.filterScounting.last_months=Number(e.lastMonths),this.filterScounting.minutes_played_avg=Number(e.percentMinutesPlayed),this.filterScounting.type_stats=e.statistics.averagePerGame?3:e.statistics.averagePerMinute?2:1},onFiltersProductivity(e){this.modifidFiltersFlag=!0;var o=[];for(let s=0;s<e.productivityFilters.length;s++)o[e.productivityFilters[s].priority-1]={name:e.productivityFilters[s].name,ids:e.productivityFilters[s].id};o.length==0&&(o=[]),this.filterScounting.categories=o,this.filterScounting.fouls=e.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=e.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=e.offensesConditions.areRedCardsSelected},onFiltersGolStats(e){if(e.length>0){var o=this.arrayFiltersPlays.findIndex(z=>z.type==="onFiltersPredefined");o!==-1?this.arrayFiltersPlays[o].name=e[0].name:this.arrayFiltersPlays.push({name:e[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=e[0].filters}else{var s=this.arrayFiltersPlays.findIndex(z=>z.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&s!==-1){this.filtersPredefinedF=this.filters;for(let W=0;W<this.FVfilterGolstats.length;W++)this.FVfilterGolstats[W].isSelected=!1;var s=this.arrayFiltersPlays.findIndex(W=>W.type==="onFiltersPredefined");s!==-1&&this.arrayFiltersPlays.splice(s,1),this.updateFilterGolstats+=1}}},shouldRender(e){return e<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(e){if(e.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=e[0].id;var o=this.arrayFiltersPlays.findIndex(z=>z.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&o!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(o,1);var s=this.arrayFiltersPlays.findIndex(z=>z.type==="onFiltersPredefined");if(s!==-1){for(let z=0;z<this.FVfilterGolstats.length;z++)this.FVfilterGolstats[z].isSelected=!1;s!==-1&&this.arrayFiltersPlays.splice(s,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(e[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var o=this.arrayFiltersPlays.findIndex(W=>W.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&o!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(o,1);for(let v=0;v<this.categoriesDefault.length;v++)this.categoriesDefault[v].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var s=this.arrayFiltersPlays.findIndex(v=>v.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&s!==-1){for(let v=0;v<this.FVfilterGolstats.length;v++)this.FVfilterGolstats[v].isSelected=!1;s!==-1&&this.arrayFiltersPlays.splice(s,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(e){this.categoryName=e.categoryName,this.showFullCategory=e.category,this.showFullTable=!0,this.loadingActive=!0,setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,aux:this.getRandomNumber(1,1e4),booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(e,o){return Math.floor(Math.random()*(o-e+1))+e},applyFiltersBtn(e){},onFiltersPlays(e){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],e.playsCategories.length==0){for(let s=0;s<this.categoriesPlaysTypes.offensive.categories.length;s++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[s].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[s]);for(let s=0;s<this.categoriesPlaysTypes.defensive.categories.length;s++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[s].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[s]);for(let s=0;s<this.categoriesPlaysTypes.possession.categories.length;s++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[s].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[s]);for(let s=0;s<this.categoriesPlaysTypes.offenses.categories.length;s++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[s].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[s])}else for(let s=0;s<e.playsCategories.length;s++)e.playsCategories[s].isSelected&&(this.arrayCategoryFilter.push(e.playsCategories[s].id),this.arrayCategoryFilterFull.push(e.playsCategories[s]));var o=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?o!=-1?this.arrayFiltersPlays[o].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):o!=-1?this.arrayFiltersPlays[o].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):o!==-1&&this.arrayFiltersPlays.splice(o,1)},async deleteLabelFilter(e){var o=this.arrayFiltersPlays.findIndex(z=>z.type===e);if(o!==-1){if(e=="onFiltersTournaments"){this.rowScoutingData=[];for(let W=0;W<this.detaildProductivityCategories.offensive.categories.length;W++)this.detaildProductivityCategories.offensive.categories[W].isSelected=!1;for(let W=0;W<this.detaildProductivityCategories.defensive.categories.length;W++)this.detaildProductivityCategories.defensive.categories[W].isSelected=!1;for(let W=0;W<this.detaildProductivityCategories.possession.categories.length;W++)this.detaildProductivityCategories.possession.categories[W].isSelected=!1;for(let W=0;W<this.detaildProductivityCategories.offensesConditions.length;W++)this.detaildProductivityCategories.offensesConditions[W]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(W,v)=>v+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const z=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let W=0;W<z.teams.length;W++)this.teamsscouting.push({id:z.teams[W].team_id,team:z.teams[W].colloquial_name,logo:z.teams[W].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(e=="onFiltersPlays"){for(let z=0;z<this.categoriesPlaysTypes.offensive.categories.length;z++)this.categoriesPlaysTypes.offensive.categories[z].isSelected=!0;for(let z=0;z<this.categoriesPlaysTypes.defensive.categories.length;z++)this.categoriesPlaysTypes.defensive.categories[z].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[z]);for(let z=0;z<this.categoriesPlaysTypes.possession.categories.length;z++)this.categoriesPlaysTypes.possession.categories[z].isSelected=!0;for(let z=0;z<this.categoriesPlaysTypes.offenses.categories.length;z++)this.categoriesPlaysTypes.offenses.categories[z].isSelected=!0}if(e=="onFiltersField"&&(this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let z=0;z<this.FVfilterGolstats.length;z++)this.FVfilterGolstats[z].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(e=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var s=this.arrayFiltersPlays.findIndex(z=>z.type==="onFiltersPredefined");s!==-1&&this.arrayFiltersPlays.splice(s,1);for(let z=0;z<this.categoriesDefault.length;z++)this.categoriesDefault[z].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}e=="onFiltersDetailsTime"&&(this.detailsObject.gameSections[0].isSelected=!0,this.detailsObject.gameSections[1].isSelected=!0,this.detailsObject.gameSections[2].isSelected=!0,this.detailsObject.gameSections[3].isSelected=!0,this.detailsObject.gameSections[4].isSelected=!0,this.detailsObject.gameSections[5].isSelected=!0,this.fVsections=[1,2,3,4,5,6],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersDetailsPlayingAs"&&(this.detailsObject.playingAs[0].isSelected=!0,this.detailsObject.playingAs[1].isSelected=!0,this.fVplayingAs=[1,2],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersNationality"&&(this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(Ru.NATIONALITY)),e=="onFiltersPosition"&&(this.fVsetPositionsIds=[1,2,3,4,5,6,7,8,9],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(Ru.POSITION)),e=="onFiltersAge"&&(this.fVarrayAgeRange=[10,40],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(Ru.AGE_RANGE)),e=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(Ru.ELIGIBILITY),e=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(Ru.YEAR),this.FVYear=1900,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds})}this.arrayFiltersPlays.splice(o,1)},onFiltersField(e){e.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=e;var o=this.arrayFiltersPlays.findIndex(z=>z.type==="onFiltersField");o!=-1?this.arrayFiltersPlays[o].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},e.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(o!=-1?this.arrayFiltersPlays[o].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(o!=-1?this.arrayFiltersPlays[o].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(o!=-1?this.arrayFiltersPlays[o].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(o!=-1?this.arrayFiltersPlays[o].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(o!=-1?this.arrayFiltersPlays[o].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(o!=-1?this.arrayFiltersPlays[o].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(o,1)},addFilterPlayingAS(){var e=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersDetailsPlayingAs");e!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[e].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(e,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(e){var o=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var s=[];for(let v=0;v<e.playingAs.length;v++)if(e.playingAs[v].isSelected){const g=e.playingAs[v].name=="Local"?1:2;o.push(g)}for(let v=0;v<e.gameSections.length;v++)e.gameSections[v].isSelected&&s.push(e.gameSections[v].value);this.fVsections=s,this.fVplayingAs=o;var z=this.arrayFiltersPlays.findIndex(v=>v.type==="onFiltersDetailsTime"),W="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(W+=", 0-15"),this.fVsections.includes(2)&&(W+=", 15-30"),this.fVsections.includes(3)&&(W+=", 30-45"),this.fVsections.includes(4)&&(W+=", 45-60"),this.fVsections.includes(5)&&(W+=", 60-75"),this.fVsections.includes(6)&&(W+=", 75-90"),z!=-1?this.arrayFiltersPlays[z].name=W:this.arrayFiltersPlays.push({name:W,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(z!=-1?this.arrayFiltersPlays[z].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==3&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(z!=-1?this.arrayFiltersPlays[z].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(z!=-1?this.arrayFiltersPlays[z].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(3)&&(z!=-1?this.arrayFiltersPlays[z].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(4)&&(z!=-1?this.arrayFiltersPlays[z].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(6)&&(z!=-1?this.arrayFiltersPlays[z].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(z!=-1?this.arrayFiltersPlays[z].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(z!=-1?this.arrayFiltersPlays[z].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):z!=-1&&this.arrayFiltersPlays.splice(z,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(z,W)=>W+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;const e=this.$refs.personalDataFilter;e.clearFilters(Ru.All),e.clearFilters(Ru.AGE_RANGE),e.clearFilters(Ru.YEAR),e.clearFilters(Ru.NATIONALITY),e.clearFilters(Ru.POSITION),this.rowScoutingData=[];for(let z=0;z<this.detaildProductivityCategories.offensive.categories.length;z++)this.detaildProductivityCategories.offensive.categories[z].isSelected=!1;for(let z=0;z<this.detaildProductivityCategories.defensive.categories.length;z++)this.detaildProductivityCategories.defensive.categories[z].isSelected=!1;for(let z=0;z<this.detaildProductivityCategories.possession.categories.length;z++)this.detaildProductivityCategories.possession.categories[z].isSelected=!1;for(let z=0;z<this.detaildProductivityCategories.offensesConditions.length;z++)this.detaildProductivityCategories.offensesConditions[z]=!1;var o=this.arrayFiltersPlays.findIndex(z=>z.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(o,1),this.setUpTournamentsToFilter();const s=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let z=0;z<s.teams.length;z++)this.teamsscouting.push({id:s.teams[z].team_id,team:s.teams[z].colloquial_name,logo:s.teams[z].logo})},onFiltersData(e){var o=0,s=0;e.ageByRange&&(e.ageByRange.min==0?o=1:o=e.ageByRange.min,e.ageByRange.max==0?s=40:s=e.ageByRange.max,this.fVarrayAgeRange=[o,s]),e.year&&(this.FVYear=e.year),this.fVnationalities=new Set;let z="",W="";if(this.fVsetPositionsIds=[],e.hasOwnProperty("nationalities")){this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let y=0;y<e.nationalities.length;y++)e.nationalities[y].isSelected&&this.fVnationalities.add(e.nationalities[y].id)}if(this.FVeligible=[],e.hasOwnProperty("eligibility")){this.FVbooleanAreNationalTeamsVisible=!0;for(let y=0;y<this.elegibilidadArray.length;y++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[y])}for(let y=0;y<e.positions.length;y++)e.positions[y].isSelected&&this.fVsetPositionsIds.push(e.positions[y].id);if(e.hasOwnProperty("nationalities"))var v=e.nationalities.filter(y=>y.isSelected===!0);var g=e.positions.filter(y=>y.isSelected===!0);if(g.length==1&&(z=g[0].name),e.hasOwnProperty("nationalities")&&v.length==1&&(W=v[0].name),setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,elegible:this.FVeligible,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},1e3),this.FVbooleanAreNationalTeamsVisible){var r=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersElegibility");r!=-1?this.arrayFiltersPlays[r].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var r=this.arrayFiltersPlays.findIndex(x=>x.type==="onFiltersElegibility");this.arrayFiltersPlays.splice(r,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var b=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersPosition");b!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[b].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+z:this.arrayFiltersPlays.splice(b,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+z,type:"onFiltersPosition"})}if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var d=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersYear");d!=-1?this.arrayFiltersPlays[d].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(this.fVarrayAgeRange[0]>=e.ageLimits.min&&this.fVarrayAgeRange[1]<=e.ageLimits.max)if(this.fVarrayAgeRange[0]>e.ageLimits.min||this.fVarrayAgeRange[1]<e.ageLimits.max){var a=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersAge");a!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[a].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(a,1):this.arrayFiltersPlays.push({name:this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años",type:"onFiltersAge"})}else{var a=this.arrayFiltersPlays.findIndex(x=>x.type==="onFiltersAge");a!=-1&&this.arrayFiltersPlays.splice(a,1)}if(e.hasOwnProperty("nationalities")&&this.fVnationalities.size!=e.nationalities.length&&this.fVnationalities.size>0){var _=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersNationality");_!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[_].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+W:this.arrayFiltersPlays.splice(_,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+W,type:"onFiltersNationality"})}},clickAll(e){},clickAllAll(e){},clickTeam(e){},clickTeamScouting(e){},resetFilterTeamAndPlayers(){this.filters={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:this.FVYear,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set}},async changeTabsGeneral(e){if(this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=e,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0,e=="Equipos"&&(this.typeTable=1,this.isTeam=!0,this.updateTables+=1,this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetFilterTeamAndPlayers(),this.resetScouting()),e=="Jugadores"&&(this.typeTable=0,this.isTeam=!1,this.teamselect=0,this.updateTables+=1,this.rowScoutingData=[],this.resetFilterTeamAndPlayers(),this.resetScouting()),e=="Scouting"){this.rowScoutingData=[],this.teamselect=0,this.arrayFiltersPlays=[];const o=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let s=0;s<o.teams.length;s++)this.teamsscouting.push({id:o.teams[s].team_id,team:o.teams[s].colloquial_name,logo:o.teams[s].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}},resetPredefinedTeamAll(){var e=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&e!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(e,1);for(let s=0;s<this.categoriesDefault.length;s++)this.categoriesDefault[s].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var o=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");if(o!==-1){for(let s=0;s<this.FVfilterGolstats.length;s++)this.FVfilterGolstats[s].isSelected=!1;o!==-1&&this.arrayFiltersPlays.splice(o,1),this.updateFilterGolstats+=1}}},changeTabsSubmenu(e){e!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=e},async fetchTournaments(){const e=bu.create({headers:{Authorization:`${this.token}`}}),{data:o}=await e.get(this.tournamentsUrl);return o},async fetchTeams(){const e=bu.create({headers:{Authorization:`${this.token}`}}),{data:o}=await e.get(this.teamsUrl+this.seasonActive);return o},async fetchTeamsScouting(e){const o=bu.create({headers:{Authorization:`${this.token}`}}),{data:s}=await o.get(this.teamsUrl+e);return s},async getPredefinedfilters(e){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var o="";e.id==1?o=this.urlFilter:o=this.urlFilter;const s=bu.create({headers:{Authorization:`${this.token}`}}),{data:z}=await s.get(o+e.id);if(Object.keys(z[0].match_lapse_combinations).forEach(_=>{this.predefinedFiltersMatchLapse[_.toString()]=z[0].match_lapse_combinations[_]}),Object.keys(z[0].playing_as_combinations).forEach(_=>{this.predefinedFiltersPlayingAs[_.toString()]=z[0].playing_as_combinations[_]}),Object.keys(z[0].field_sections_combinations).forEach(_=>{this.predefinedFiltersSections[_.toString()]=z[0].field_sections_combinations[_]}),z[0]){for(let _=0;_<z[0].filter_records.length;_++){var W=z[0].description;if(z[0].filter_records[_].field_sections!==void 0){const x=z[0].filter_records[_].field_sections.toString();(this.predefinedFiltersSections[x]||this.predefinedFiltersSections[x]=="")&&(this.predefinedFiltersSections[x]==""?W=W.replace(" [en {field_sections}]",this.predefinedFiltersSections[x]):W=W.replace("{field_sections}",this.predefinedFiltersSections[x]))}if(z[0].filter_records[_].match_lapse!==void 0){const x=z[0].filter_records[_].match_lapse.toString();(this.predefinedFiltersMatchLapse[x]||this.predefinedFiltersMatchLapse[x]=="")&&(this.predefinedFiltersMatchLapse[x]==""?W=W.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[x]):W=W.replace("{match_lapse}",this.predefinedFiltersMatchLapse[x]))}if(z[0].filter_records[_].playing_as!==void 0){const x=z[0].filter_records[_].playing_as.toString();(this.predefinedFiltersPlayingAs[x]||this.predefinedFiltersPlayingAs[x]=="")&&(this.predefinedFiltersPlayingAs[x]==""?W=W.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[x]):W=W.replace("{playing_as}",this.predefinedFiltersPlayingAs[x]))}z[0].filter_records[_].section_type!==void 0&&(this.optionSelected=="Jugadores"?W=W.replace("{section_type}","Jugadores"):W=W.replace("{section_type}","Equipos")),W=W.replace(/\[/g,""),W=W.replace(/\]/g,""),W=W.replace("{category_name}",z[0].category_name);const y=W.split(": ");var v=y[1];v.length>129&&this.windowWidth>1358&&(v=v.substring(0,129),v=v+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||z[0].filter_records[_].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:_,category_name:e.name,id_category:z[0].id,title:y[0]+":",text:y[1],textOrigin:z[0].description,titledots:v,filtersPredefined:{matchResult:z[0].filter_records[_].match_result,playingAs:z[0].filter_records[_].playing_as,sections:z[0].filter_records[_].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:z[0].type_zone,zone:z[0].filter_records[_].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var g=[];for(let _=0;_<this.arrayPredefinedFilters.length;_++){var r=0,b=new Set,d={},a=this.arrayPredefinedFilters[_].text.replace(/\*.*?\*/,"");if(a=a.replace(/\*/g,""),a=a.replace(/ +/g," "),this.arrayPredefinedFilters[_].filtersPredefined.elegible.length>0&&(r+=1),(this.arrayPredefinedFilters[_].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[_].filtersPredefined.start_age.length!=0)&&(r+=1),this.arrayPredefinedFilters[_].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[_].filtersPredefined.start_age!=0?d.arrayAgeRange=[this.arrayPredefinedFilters[_].filtersPredefined.start_age,this.arrayPredefinedFilters[_].filtersPredefined.end_age]:this.arrayPredefinedFilters[_].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[_].filtersPredefined.start_age==0?d.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[_].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[_].filtersPredefined.end_age==0?d.arrayAgeRange=[this.arrayPredefinedFilters[_].filtersPredefined.start_age,60]:d.arrayAgeRange=[1,this.arrayPredefinedFilters[_].filtersPredefined.end_age],this.arrayPredefinedFilters[_].filtersPredefined.matchResult.length!=3&&(r+=1),d.matchResult=this.arrayPredefinedFilters[_].filtersPredefined.matchResult,this.arrayPredefinedFilters[_].filtersPredefined.nationalities.length>0&&(r+=1),this.arrayPredefinedFilters[_].filtersPredefined.nationalities.length!=0){for(let y=0;y<this.arrayPredefinedFilters[_].filtersPredefined.nationalities.length;y++)b.add(this.arrayPredefinedFilters[_].filtersPredefined.nationalities[y]);d.setNationalitiesIds=b}else b.add(138),b.add(222),b.add(163),b.add(51),b.add(226),b.add(10),b.add(223),b.add(96),b.add(171),b.add(198),b.add(105),b.add(80),b.add(29),b.add(74),b.add(216),b.add(196),b.add(64),b.add(155),b.add(156),b.add(89),b.add(106),b.add(81),b.add(233),b.add(204),d.setNationalitiesIds=b;this.arrayPredefinedFilters[_].filtersPredefined.playingAs.length!=2&&(r+=1),d.playingAs=this.arrayPredefinedFilters[_].filtersPredefined.playingAs,this.arrayPredefinedFilters[_].filtersPredefined.positions.length>0&&(r+=1),this.arrayPredefinedFilters[_].filtersPredefined.positions.length>0?d.setPositionsIds=this.arrayPredefinedFilters[_].filtersPredefined.positions:d.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[_].filtersPredefined.sections.length!=6&&(r+=1),this.arrayPredefinedFilters[_].filtersPredefined.sections.length>0?d.sections=this.arrayPredefinedFilters[_].filtersPredefined.sections:d.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[_].filtersPredefined.zone.length!=16&&(r+=1),this.arrayPredefinedFilters[_].filtersPredefined.zone.length>0?d.zone=this.arrayPredefinedFilters[_].filtersPredefined.zone:d.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],d.typeZone=this.arrayPredefinedFilters[_].filtersPredefined.typeZone,g.push({id:_+1,name:a,isSelected:!1,value:r,filters:d})}this.FVfilterGolstats=g,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var e=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const o=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((a,_)=>a-_).toString();this.predefinedFiltersSections[o]||this.predefinedFiltersSections[o]==""?this.predefinedFiltersSections[o]==""?e=e.replace(" [en {field_sections}]",this.predefinedFiltersSections[o]):e=e.replace("{field_sections}",this.predefinedFiltersSections[o]):e=e.replace("{field_sections}",this.predefinedFiltersSections.other);var s=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(e=e.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(s=!0,e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]","")):(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(s||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(e=e.replace("[de las posiciones seleccionadas]","")):e=e.replace("[de las posiciones seleccionadas]",""),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]",""));const z=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[z]||this.predefinedFiltersMatchLapse[z]=="")this.predefinedFiltersMatchLapse[z]==""?e=e.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[z]):e=e.replace("{match_lapse}",this.predefinedFiltersMatchLapse[z]);else{e=e.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var W="";z.includes(1)&&(W=W+"0-15, "),z.includes(2)&&(W=W+"16-30, "),z.includes(3)&&(W=W+"31-45, "),z.includes(4)&&(W=W+"46-60, "),z.includes(5)&&(W=W+"61-75, "),z.includes(6)&&(W=W+"76-90, "),W=W.slice(0,-2),W=W.replace(/,([^,]*)$/," y $1"),e=e.replace("{match_lapse_selected}",W)}const v=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[v]||this.predefinedFiltersPlayingAs[v]=="")&&(this.predefinedFiltersPlayingAs[v]==""?e=e.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[v]):e=e.replace("{playing_as}",this.predefinedFiltersPlayingAs[v])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?e=e.replace("{section_type}","Porteras"):e=e.replace("{section_type}","Jugadoras"):this.category.id==22?e=e.replace("{section_type}","Porteros"):e=e.replace("{section_type}","Jugadores"):e=e.replace("{section_type}","Equipos"),e=e.replace(/\[/g,""),e=e.replace(/\]/g,""),e=e.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const g=e.split(": ");let r=g[1].charAt(0).toUpperCase()+g[1].toLowerCase().slice(1),b=g[1].charAt(0).toUpperCase()+g[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=r,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=g[0]+":";const d=b.match(/\*/g);if(d&&d.length)if(d.length%2===0)for(let a=1;a<=d.length;a++)a%2===0||(b=b.replace("*",'<span style="color: #ffff03" >'));else b=b.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=b},intervalidtops(e){this.$emit("intervalidtops",e)}},mounted(){sessionStorage.getItem("sidpdfil")!==null&&sessionStorage.setItem("sidpdfil",0),this.renderNext(),this.teamId!==0&&this.optionSelected!=="Scouting"&&this.clickTeam(this.teamId),this.defaultSection!=="Jugadores"&&(this.defaultSection==="Scouting"&&this.selectedSeason(this.currentSeasonId),this.changeTabsGeneral(this.defaultSection))},async created(){try{const e=bu.create({headers:{"Content-Type":"application/json"}});e.interceptors.request.use(s=>(delete s.headers.Authorization,s));const o=await e.get("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",{headers:{"Content-Type":"application/json"}});this.elegibilidadArray=o.data,this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204)}catch(e){throw new Error(e)}}},vlt={ref:"myDivRefTopsFull"},blt={key:0,class:"overlay-loading"},xlt={key:0,class:"cont-leyemd-multipleleagues"},_lt={key:0,style:{"margin-left":"10px"}},wlt={key:3,style:{width:"100%",height:"295px"}};function klt(e,o,s,z,W,v){t.resolveComponent("GSCTournamentSelect"),t.resolveComponent("GSCSeasonSelect");const g=t.resolveComponent("GscSwitchComponent"),r=t.resolveComponent("GSCFilterperteam"),b=t.resolveComponent("GSCFilters"),d=t.resolveComponent("GSCLabel"),a=t.resolveComponent("GSCTopCategory"),_=t.resolveComponent("GSCTableHeader"),y=t.resolveComponent("GSCRowTable"),x=t.resolveComponent("GSCExpandedInfo");return t.openBlock(),t.createElementBlock("div",vlt,[W.loadingActive?(t.openBlock(),t.createElementBlock("div",blt,o[8]||(o[8]=[t.createElementVNode("div",{class:"overlay-loading__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),t.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1)]))):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.templateLosMejoresClass)},[t.createElementVNode("section",{class:t.normalizeClass(e.containerSectionClass),id:"container-section"},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.comdescubreVideosClass)},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionParentHeaderClass)},[t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersParentClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersClass),id:"top-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamBarParent)},[W.optionSelected!="Scouting"&&W.optionSelected!="Equipos"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[t.createVNode(r,{data:W.teams,"team-id":s.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:v.clickTeam,onClickAll:v.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerFilters),id:"container-filters",style:t.normalizeStyle(W.showfiltersPc?"":z.elementSize.width>760?"display: none;":"")},[t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionClass),id:"menu-section"},[z.elementSize.width>760&&W.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.closeFiltersPc),onClick:o[1]||(o[1]=(...u)=>v.clickCloseFilters&&v.clickCloseFilters(...u))},o[9]||(o[9]=[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1)]),2)):t.createCommentVNode("",!0),W.optionSelected!=="Scouting"?(t.openBlock(),t.createBlock(g,{key:1,type:2,buttons:["Todas las jugadas","Predeterminados"],"font-family":"Poppins-Regular","selected-option":W.optionSelectedSubmenu,"font-size":e.sizeTabsFontMS,width:e.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:v.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):t.createCommentVNode("",!0)],2),t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnCloseFilters),style:t.normalizeStyle(W.optionSelected==="Scouting"?"margin-top: 4%; margin-left: 1%":""),onClick:o[3]||(o[3]=(...u)=>v.openMenuFilters&&v.openMenuFilters(...u))},null,6),[[t.vShow,z.elementSize.width<760&&W.openMenuMobil]]),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.containerMenuClass),id:"container-menu"},[W.optionSelectedSubmenu=="Todas las jugadas"&&W.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[z.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.withDirectives(t.createVNode(b,t.mergeProps({"button-filter-props":v.filterButtonProps},z.elementSize.width<420?W.expansionPanelModePropsMobil270:z.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{"filter-type":W.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":v.onFiltersPlays,filters:W.categoriesPlaysTypes,onApply:v.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[t.vShow,!W.showFullTable]]),(t.openBlock(),t.createBlock(b,t.mergeProps({"button-filter-props":v.filterButtonProps},z.elementSize.width<420?W.expansionPanelModePropsMobil270:z.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{key:W.updateFilterField,"filter-type":W.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":v.onFiltersField,filters:W.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),t.createVNode(b,t.mergeProps({"button-filter-props":v.filterButtonProps},z.elementSize.width<420?W.expansionPanelModePropsMobil270:z.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{"filter-type":W.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":v.onFiltersDetails,filters:W.detailsObject}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]),W.optionSelected==="Jugadores"?(t.openBlock(),t.createBlock(b,t.mergeProps({key:0,ref:"personalDataFilterPlayers","button-filter-props":v.filterButtonProps},z.elementSize.width<420?W.expansionPanelModePropsMobil270:z.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{"filter-type":W.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:s.seasonActive,tournamentId:W.tournamentSelectedObj.value},token:W.token,"onUpdate:filters":v.onFiltersData}),null,16,["button-filter-props","filter-type","season","token","onUpdate:filters"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),W.optionSelected=="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[z.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(),t.createBlock(b,t.mergeProps({"button-filter-props":v.filterButtonProps},z.elementSize.width<420?W.expansionPanelModePropsMobil270:z.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{"filter-type":W.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:W.tournamentsToFilter,key:W.keyTournamentValue,"onUpdate:filters":v.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),t.createVNode(b,t.mergeProps({"button-filter-props":v.filterButtonProps},z.elementSize.width<420?W.expansionPanelModePropsMobil270:z.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{"filter-type":W.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:W.filterScounting.seasonId,tournamentId:W.filterScounting.tournaments[0]},ref:"personalDataFilter","onUpdate:filters":v.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","season","onUpdate:filters"]),t.createVNode(b,t.mergeProps({"button-filter-props":v.filterButtonProps},z.elementSize.width<420?W.expansionPanelModePropsMobil270:z.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{"filter-type":W.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:W.universeData,"onUpdate:filters":v.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),t.createVNode(b,t.mergeProps({"button-filter-props":v.filterButtonProps},z.elementSize.width<420?W.expansionPanelModePropsMobil270:z.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{"filter-type":W.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":v.onFiltersProductivity,filters:W.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.BtnSearchScountingcom),onClick:o[4]||(o[4]=(...u)=>v.getScoutingData&&v.getScoutingData(...u))},"Buscar",2)],64)):t.createCommentVNode("",!0),W.optionSelectedSubmenu=="Predeterminados"&&W.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[(t.openBlock(),t.createBlock(b,t.mergeProps({"button-filter-props":v.filterButtonProps,modalHeight:"300px"},z.elementSize.width<420?W.expansionPanelModePropsMobil270:z.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModePropsTypePlays,{"filter-type":W.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:W.updateFilterPlaytypesGolstats,"onUpdate:filters":v.onFiltersPlaysTypes,filters:W.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(t.openBlock(),t.createBlock(b,t.mergeProps({"button-filter-props":v.filterButtonProps,modalHeight:"300px"},z.elementSize.width<420?W.expansionPanelModePropsMobil270:z.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{"filter-type":W.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:W.updateFilterGolstats,"onUpdate:filters":v.onFiltersGolStats,filters:v.filterGolstats}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):t.createCommentVNode("",!0)],2),[[t.vShow,z.elementSize.width>760||W.openMenuMobil]]),W.optionSelected=="Scouting"?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[W.filterScounting.tournaments.length>1&&W.rowScoutingData.length>0?(t.openBlock(),t.createElementBlock("div",xlt,[o[10]||(o[10]=t.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1)),t.createElementVNode("div",{class:t.normalizeClass(e.comextleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(t.openBlock(),t.createBlock(r,{data:W.teamsscouting,"team-id":W.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:W.updateFilterTeamsScouting,onClickTeam:v.clickTeamScouting,onClickAll:v.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):t.createCommentVNode("",!0)],6)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.containerTheBestClass),id:"container-the-best"},[t.createElementVNode("div",{class:t.normalizeClass(e.titleSectionClass)},[W.optionSelectedSubmenu!="Predeterminados"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.commejoresJugadoresClass)},[W.arrayFiltersPlays.length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[W.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Mejores jugadores: ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores más productivos: ")],64))],64)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),W.optionSelected!="Scouting"&&W.optionSelectedSubmenu!="Predeterminados"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[W.showFullTable?(t.openBlock(),t.createElementBlock("div",_lt,[t.createVNode(d,{"text-value":"Categoría - "+W.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:v.deleteCategoryFilter,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.arrayFiltersPlays,(u,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,style:{"margin-left":"10px"}},[t.createVNode(d,{"text-value":u.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:v.deleteLabelFilter,id:u.type,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:z.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),W.rowScoutingData.length!=0||W.optionSelectedSubmenu=="Predeterminados"&&W.arrayFiltersPlays.findIndex(u=>u.type==="onFiltersPredefined")!==-1?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.comquitarFiltrosClass),onClick:o[5]||(o[5]=(...u)=>v.onClickDeleteFilter&&v.onClickDeleteFilter(...u))}," Quitar filtros ",2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2),s.seasonActive!=0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.containerTablesClass),id:"container-tables",style:t.normalizeStyle(W.showFullTable?"gap: 0px!important;":"")},[W.optionSelected!=="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[W.optionSelectedSubmenu=="Todas las jugadas"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.categoriesDefault,(u,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,style:t.normalizeStyle(!W.showOnlyCategories&&W.arrayCategoryFilter.includes(u.id)?"":"display:none !important;")},[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.toniKroosWrapperClass)},[(t.openBlock(),t.createBlock(a,{"is-widget":s.isWidget,"team-widget":s.teamWidget,"time-live-comparative-avanced":s.timeLiveComparativeAvanced,"is-team":W.isTeam,onMore:v.onShowFullTable,"border-width":0,onIntervalidtops:v.intervalidtops,"can-play-videos":s.canPlayVideos,"border-radius":"12px","game-id":s.gameId,game:s.game,typeData:s.typeData,"filters-prop":v.filterChange,category:u.id,"type-table":W.typeTable,categoryName:u.name,"season-selected":s.seasonSelected,season:s.seasonActive,"filter-team":s.teamselect,key:W.updateTables,onClickprofile:v.clickprofile,onSetopenmedia:v.setOpenMedia},null,8,["is-widget","team-widget","time-live-comparative-avanced","is-team","onMore","onIntervalidtops","can-play-videos","game-id","game","typeData","filters-prop","category","type-table","categoryName","season-selected","season","filter-team","onClickprofile","onSetopenmedia"]))],2),[[t.vShow,!W.showOnlyCategories&&W.arrayCategoryFilter.includes(u.id)&&!W.showFullTable]])],4))),128)),W.showFullTable?(t.openBlock(),t.createBlock(a,{"time-live-comparative-avanced":s.timeLiveComparativeAvanced,"is-team":W.isTeam,"is-widget":s.isWidget,"team-widget":s.teamWidget,"border-width":0,"border-radius":"12px","game-id":s.gameId,onIntervalidtops:v.intervalidtops,game:s.game,typeData:s.typeData,category:W.showFullCategory,type:1,"type-table":W.typeTable,categoryName:"","filters-prop":v.filterChange,"season-selected":s.seasonSelected,season:s.seasonActive,"filter-team":s.teamselect,key:W.updateTablesfull,onClickprofile:v.clickprofile,onSetopenmedia:v.setOpenMedia},null,8,["time-live-comparative-avanced","is-team","is-widget","team-widget","game-id","onIntervalidtops","game","typeData","category","type-table","filters-prop","season-selected","season","filter-team","onClickprofile","onSetopenmedia"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[W.categoryPredefinedActive?(t.openBlock(),t.createBlock(a,{"is-widget":s.isWidget,"team-widget":s.teamWidget,"is-team":W.isTeam,"time-live-comparative-avanced":s.timeLiveComparativeAvanced,onIntervalidtops:v.intervalidtops,"border-width":0,"border-radius":"12px","can-play-videos":s.canPlayVideos,"game-id":s.gameId,game:s.game,typeData:s.typeData,category:W.categoryPredefined,type:1,"type-table":W.typeTable,categoryName:"","filters-prop":v.filterChangePredefined,"season-selected":s.seasonSelected,season:s.seasonActive,"filter-team":s.teamselect,key:W.updateTables,onClickprofile:v.clickprofile,onSetopenmedia:v.setOpenMedia},null,8,["is-widget","team-widget","is-team","time-live-comparative-avanced","onIntervalidtops","can-play-videos","game-id","game","typeData","category","type-table","filters-prop","season-selected","season","filter-team","onClickprofile","onSetopenmedia"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedcom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.titleContainerPredefinedcom)},[W.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("No has seleccionado ningún filtro")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[W.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Para visualizar resultados selecciona un")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados con los filtros")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[W.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o[12]||(o[12]=t.createElementVNode("span",null,"Tipo de Jugada",-1)),o[13]||(o[13]=t.createTextVNode(" y un ")),o[14]||(o[14]=t.createElementVNode("span",null,"Filtro GolStats",-1)),o[15]||(o[15]=t.createTextVNode(" en la"))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("que has seleccionado.")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[W.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("parte superior.")],64)):t.createCommentVNode("",!0)],2)],2))],64))],64)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedScountingcom),style:t.normalizeStyle(W.rowScoutingData.length>0?"height: auto;":"")},[W.loadingActive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[W.rowScoutingData.length>0?(t.openBlock(),t.createBlock(_,{key:0,background:"#183143",type:2})):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.rowScoutingData,(u,n)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:n},[W.teamselectrec==0||W.teamselectrec==u.team_id?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(y,{type:2,"is-expanded":W.playerexpand==u.id&&W.expand,onMediadata:v.setMediaData,data:{position:u.position,player_name:u.player_name,player_photo:u.player_photo,total:u.total,id:u.id,player_age:u.player_age,team_abrev:u.team_abrev,team_logo:u.team_logo,player_position:W.positions[u.player_position-1].fullname,player_country_flag:u.player_country_flag,player_games:u.player_games,player_min:u.player_min,league_name:u.league_name,seasons:u.seasons,season_id:u.season_id},height:"71px",background:n%2===0?s.backgroundOdd:s.backgroundEven,onExpand:v.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),W.expand&&W.playerexpand==u.id?(t.openBlock(),t.createBlock(x,{key:0,type:0,"view-effectiveness":!1,viewGoals:!1,additionalClass:"fullTable",data:{teams:u.team_name,age:u.player_age,dataofbirth:u.date,nationality:u.nationality_name,countryFlag:u.player_country_flag,position:W.positions[u.player_position-1].name,games:u.player_games,min:u.player_min,goals:u.total,effectiveness:"-",category:"total",id:u.id},onViewprofile:i=>v.viewprofile(i,u.season_id,u.team_id),background:n%2===0?s.backgroundOdd:s.backgroundEven},null,8,["data","onViewprofile","background"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))),128))],64)),W.rowScoutingData.length==0&&!W.loadingActive?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.btnLeyendTxtcom)},' Haz click en "Buscar" para aplicar tus filtros ',2)):t.createCommentVNode("",!0),W.rowScoutingData.length==0&&!W.loadingActive?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.containerScountingBtncom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDeleteAplicacom),onClick:o[6]||(o[6]=(...u)=>v.onClickDeleteFilter&&v.onClickDeleteFilter(...u))}," Eliminar filtros aplicados ",2),W.rowScoutingData.length==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.SearchBtnBarcom),onClick:o[7]||(o[7]=(...u)=>v.getScoutingData&&v.getScoutingData(...u))}," Buscar ",2)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),W.loadingActive?(t.openBlock(),t.createElementBlock("div",wlt)):t.createCommentVNode("",!0)],6))],6)):t.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const Slt=$i(ylt,[["render",klt],["__cssModules",{$style:mlt}]]),$Yt="";let FF=null;const Tlt={components:{GSCDatosGSMain:zit,GSCCheckbox:S1,GSCRadioToggle:PN,GSCTopFull:Slt},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},timeLiveComparativeBestPlayers:{type:Number,default:6e4},timeLiveComparativeAvanced:{type:Number,default:6e4},seasonSelected:{type:Object,default:()=>({})},tournamentSelected:{type:Object,default:()=>({})},game:{type:Object,default:()=>{}},playVideosPrivileges:{type:Object,default:null},canPlayVideos:{type:Boolean,default:!1},isFemaleMode:{type:Boolean,default:!1}},data(){return{updateHomeCheck:0,updateAwayCheck:0,activeSection:"destacados",widthSection:0,teamactive:0,update:0,homeTeamCheck:!0,awayTeamCheck:!0,typeViewData:1}},watch:{game:{deep:!0,immediate:!0,handler(e){e&&(e.game_status==1||e.is_live==1||e.game_status==0?this.typeViewData=1:this.typeViewData=0),this.update+=1}}},computed:{},methods:{preventChange(e){e.preventDefault(),this.homeTeamCheck=!0},intervalidgs(e){this.$emit("intervalidgs",e)},onOpenProfileTeam(e){this.$emit("openProfileTeam",e)},intervalidtops(e){this.$emit("intervalidtops",e)},onOpenProfilePlayer(e){this.$emit("onOpenProfile",e)},ChangeRadio(e){typeof e=="string"&&(e==="Este partido"?this.typeViewData=1:this.typeViewData=0)},onCheckInactiveHome(e){e?(this.homeTeamCheck=!0,this.awayTeamCheck?this.teamactive=0:this.teamactive=this.game.homeTeam.team_id):this.awayTeamCheck?(this.homeTeamCheck=!1,this.teamactive=this.game.awayTeam.team_id):(this.updateHomeCheck+=1,this.homeTeamCheck=!0,this.teamactive=this.game.homeTeam.team_id)},onCheckInactiveAway(e){e?(this.awayTeamCheck=!0,this.homeTeamCheck?this.teamactive=0:this.teamactive=this.game.awayTeam.team_id):this.homeTeamCheck?(this.awayTeamCheck=!1,this.teamactive=this.game.homeTeam.team_id):(this.updateAwayCheck+=1,this.teamactive=this.game.awayTeam.team_id,this.awayTeamCheck=!0)},setUpResizeObserver(){if(window.ResizeObserver)FF=new ResizeObserver(()=>{this.widthSection=this.$refs.comparative.clientWidth}),FF.observe(this.$refs.comparative);else throw new Error("Resize observer not supported!")},clickOptSection(e){this.activeSection=e},openmedia(e){this.typeViewData===1?(e.gameIdsToFilter=[this.game.gameId],this.$emit("openmedia",e)):(e.isLiveAccumulated=!0,this.$emit("openmedia",e))}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},Clt={class:"container-comparative",ref:"comparative"},Elt={class:"container-btn"},Alt={class:"items-container-btn"},Mlt={class:"container-sections"},Plt={key:0,class:"container-teams-menu"},Ilt={class:"container-team-menu-home"},Llt=["src"],Blt={class:"container-team-menu-away"},Olt=["src"],zlt={key:1,class:"container-switch-menu"},Nlt={class:"container-leyend"},Dlt={class:"container-tops"};function Flt(e,o,s,z,W,v){const g=t.resolveComponent("GSCDatosGSMain"),r=t.resolveComponent("GSCCheckbox"),b=t.resolveComponent("GSCRadioToggle"),d=t.resolveComponent("GSCTopFull");return t.openBlock(),t.createElementBlock("div",Clt,[t.createElementVNode("div",Elt,[t.createElementVNode("div",Alt,[t.createElementVNode("div",{class:t.normalizeClass([W.widthSection>480?"btn-destacados":"btn-destacados-movil",W.activeSection=="destacados"?"active":""]),onClick:o[0]||(o[0]=a=>v.clickOptSection("destacados"))},[s.game.status==1||s.game.is_live==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[s.tournamentSelected.is_female==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Jugadoras destacadas")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores destacados")],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("General")],64))],2),t.createElementVNode("div",{class:t.normalizeClass([W.widthSection>480?"btn-avanced":"btn-avanced-movil",W.activeSection=="avanzado"?"active":""]),onClick:o[1]||(o[1]=a=>v.clickOptSection("avanzado"))}," Avanzado ",2)])]),t.createElementVNode("div",Mlt,[W.activeSection=="destacados"?(t.openBlock(),t.createBlock(g,{key:0,"is-widget":s.isWidget,"team-widget":s.teamWidget,"tournament-selected":s.tournamentSelected,"time-live-comparative-best-players":s.timeLiveComparativeBestPlayers,game:s.game,"play-videos-privileges":s.playVideosPrivileges,onOpenmedia:v.openmedia,onIntervalidgs:v.intervalidgs},null,8,["is-widget","team-widget","tournament-selected","time-live-comparative-best-players","game","play-videos-privileges","onOpenmedia","onIntervalidgs"])):t.createCommentVNode("",!0),W.activeSection=="avanzado"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.isWidget?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Plt,[t.createElementVNode("div",Ilt,[(t.openBlock(),t.createBlock(r,{fontFamily:"Poppins-Regular","onUpdate:modelValue":v.onCheckInactiveHome,"label-color":"#8c9399",width:"25",key:W.updateHomeCheck,"model-value":W.homeTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"])),t.createElementVNode("img",{class:"img-teams-selector-home",width:"23",src:s.game.homeTeam.logo},null,8,Llt),t.createElementVNode("div",{class:t.normalizeClass(W.widthSection>390?"label-team-home":"label-team-home-movil")},t.toDisplayString(s.game.homeTeam.colloquial_name),3)]),o[2]||(o[2]=t.createElementVNode("div",{class:"container-team-menu-separator"},null,-1)),t.createElementVNode("div",Blt,[t.createElementVNode("div",{class:t.normalizeClass(W.widthSection>390?"label-team-away":"label-team-away-movil")},t.toDisplayString(s.game.awayTeam.colloquial_name),3),t.createElementVNode("img",{class:"img-teams-selector-away",width:"23",src:s.game.awayTeam.logo},null,8,Olt),(t.openBlock(),t.createBlock(r,{fontFamily:"Poppins-Regular","onUpdate:modelValue":v.onCheckInactiveAway,"label-color":"#8c9399",width:"25",key:W.updateAwayCheck,"model-value":W.awayTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"]))])])),s.game.is_live||s.game.status===1||s.game.status===0?(t.openBlock(),t.createElementBlock("div",zlt,[t.createVNode(b,{height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":W.typeViewData==1?"Este partido":"Acumulado",textOptionLeft:"Este partido",textOptionRight:"Acumulado",onChange:v.ChangeRadio},null,8,["value-default","onChange"])])):t.createCommentVNode("",!0),t.createElementVNode("div",Nlt,[W.typeViewData==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante este partido ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.game.status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante el torneo ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.tournamentSelected.is_female==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Jugadoras destacadas durante lo que va del torneo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores destacados durante lo que va del torneo")],64))],64))],64))]),t.createElementVNode("div",Dlt,[t.createVNode(d,{"is-widget":s.isWidget,"team-widget":s.teamWidget,"time-live-comparative-avanced":s.timeLiveComparativeAvanced,"can-play-videos":s.canPlayVideos,onOpenmedia:v.openmedia,onOpenProfileTeam:v.onOpenProfileTeam,onIntervalidtops:v.intervalidtops,onOpenProfilePlayer:v.onOpenProfilePlayer,"type-data":W.typeViewData,"game-id":s.game.gameId,game:s.game,"current-season-id":s.game.seasonId,"team-id":W.teamactive,"season-active":s.game.seasonId,"season-selected":s.seasonSelected,teamselect:W.teamactive,"is-female-mode":s.isFemaleMode},null,8,["is-widget","team-widget","time-live-comparative-avanced","can-play-videos","onOpenmedia","onOpenProfileTeam","onIntervalidtops","onOpenProfilePlayer","type-data","game-id","game","current-season-id","team-id","season-active","season-selected","teamselect","is-female-mode"])])],64)):t.createCommentVNode("",!0)])],512)}const Rlt=$i(Tlt,[["render",Flt],["__scopeId","data-v-84eca2e0"]]);var Vlt=Object.defineProperty,jlt=(e,o,s)=>o in e?Vlt(e,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[o]=s,Tk=(e,o,s)=>jlt(e,typeof o!="symbol"?o+"":o,s);function RF(e,o){return function(){return e.apply(o,arguments)}}const{toString:Ult}=Object.prototype,{getPrototypeOf:Ck}=Object,{iterator:h5,toStringTag:VF}=Symbol,p5=(e=>o=>{const s=Ult.call(o);return e[s]||(e[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),Df=e=>(e=e.toLowerCase(),o=>p5(o)===e),f5=e=>o=>typeof o===e,{isArray:i2}=Array,Xv=f5("undefined");function Glt(e){return e!==null&&!Xv(e)&&e.constructor!==null&&!Xv(e.constructor)&&dp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const jF=Df("ArrayBuffer");function Hlt(e){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(e):o=e&&e.buffer&&jF(e.buffer),o}const Zlt=f5("string"),dp=f5("function"),UF=f5("number"),m5=e=>e!==null&&typeof e=="object",Wlt=e=>e===!0||e===!1,g5=e=>{if(p5(e)!=="object")return!1;const o=Ck(e);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(VF in e)&&!(h5 in e)},Xlt=Df("Date"),qlt=Df("File"),Ylt=Df("Blob"),Jlt=Df("FileList"),$lt=e=>m5(e)&&dp(e.pipe),Klt=e=>{let o;return e&&(typeof FormData=="function"&&e instanceof FormData||dp(e.append)&&((o=p5(e))==="formdata"||o==="object"&&dp(e.toString)&&e.toString()==="[object FormData]"))},Qlt=Df("URLSearchParams"),[ect,tct,act,rct]=["ReadableStream","Request","Response","Headers"].map(Df),nct=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function qv(e,o,{allOwnKeys:s=!1}={}){if(e===null||typeof e>"u")return;let z,W;if(typeof e!="object"&&(e=[e]),i2(e))for(z=0,W=e.length;z<W;z++)o.call(null,e[z],z,e);else{const v=s?Object.getOwnPropertyNames(e):Object.keys(e),g=v.length;let r;for(z=0;z<g;z++)r=v[z],o.call(null,e[r],r,e)}}function GF(e,o){o=o.toLowerCase();const s=Object.keys(e);let z=s.length,W;for(;z-- >0;)if(W=s[z],o===W.toLowerCase())return W;return null}const $1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,HF=e=>!Xv(e)&&e!==$1;function Ek(){const{caseless:e}=HF(this)&&this||{},o={},s=(z,W)=>{const v=e&&GF(o,W)||W;g5(o[v])&&g5(z)?o[v]=Ek(o[v],z):g5(z)?o[v]=Ek({},z):i2(z)?o[v]=z.slice():o[v]=z};for(let z=0,W=arguments.length;z<W;z++)arguments[z]&&qv(arguments[z],s);return o}const ict=(e,o,s,{allOwnKeys:z}={})=>(qv(o,(W,v)=>{s&&dp(W)?e[v]=RF(W,s):e[v]=W},{allOwnKeys:z}),e),oct=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sct=(e,o,s,z)=>{e.prototype=Object.create(o.prototype,z),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:o.prototype}),s&&Object.assign(e.prototype,s)},lct=(e,o,s,z)=>{let W,v,g;const r={};if(o=o||{},e==null)return o;do{for(W=Object.getOwnPropertyNames(e),v=W.length;v-- >0;)g=W[v],(!z||z(g,e,o))&&!r[g]&&(o[g]=e[g],r[g]=!0);e=s!==!1&&Ck(e)}while(e&&(!s||s(e,o))&&e!==Object.prototype);return o},cct=(e,o,s)=>{e=String(e),(s===void 0||s>e.length)&&(s=e.length),s-=o.length;const z=e.indexOf(o,s);return z!==-1&&z===s},uct=e=>{if(!e)return null;if(i2(e))return e;let o=e.length;if(!UF(o))return null;const s=new Array(o);for(;o-- >0;)s[o]=e[o];return s},dct=(e=>o=>e&&o instanceof e)(typeof Uint8Array<"u"&&Ck(Uint8Array)),hct=(e,o)=>{const s=(e&&e[h5]).call(e);let z;for(;(z=s.next())&&!z.done;){const W=z.value;o.call(e,W[0],W[1])}},pct=(e,o)=>{let s;const z=[];for(;(s=e.exec(o))!==null;)z.push(s);return z},fct=Df("HTMLFormElement"),mct=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,s,z){return s.toUpperCase()+z}),ZF=(({hasOwnProperty:e})=>(o,s)=>e.call(o,s))(Object.prototype),gct=Df("RegExp"),WF=(e,o)=>{const s=Object.getOwnPropertyDescriptors(e),z={};qv(s,(W,v)=>{let g;(g=o(W,v,e))!==!1&&(z[v]=g||W)}),Object.defineProperties(e,z)},yct=e=>{WF(e,(o,s)=>{if(dp(e)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const z=e[s];if(dp(z)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},vct=(e,o)=>{const s={},z=W=>{W.forEach(v=>{s[v]=!0})};return i2(e)?z(e):z(String(e).split(o)),s},bct=()=>{},xct=(e,o)=>e!=null&&Number.isFinite(e=+e)?e:o;function _ct(e){return!!(e&&dp(e.append)&&e[VF]==="FormData"&&e[h5])}const wct=e=>{const o=new Array(10),s=(z,W)=>{if(m5(z)){if(o.indexOf(z)>=0)return;if(!("toJSON"in z)){o[W]=z;const v=i2(z)?[]:{};return qv(z,(g,r)=>{const b=s(g,W+1);!Xv(b)&&(v[r]=b)}),o[W]=void 0,v}}return z};return s(e,0)},kct=Df("AsyncFunction"),Sct=e=>e&&(m5(e)||dp(e))&&dp(e.then)&&dp(e.catch),XF=((e,o)=>e?setImmediate:o?((s,z)=>($1.addEventListener("message",({source:W,data:v})=>{W===$1&&v===s&&z.length&&z.shift()()},!1),W=>{z.push(W),$1.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",dp($1.postMessage)),Tct=typeof queueMicrotask<"u"?queueMicrotask.bind($1):typeof process<"u"&&process.nextTick||XF,Cct=e=>e!=null&&dp(e[h5]),On={isArray:i2,isArrayBuffer:jF,isBuffer:Glt,isFormData:Klt,isArrayBufferView:Hlt,isString:Zlt,isNumber:UF,isBoolean:Wlt,isObject:m5,isPlainObject:g5,isReadableStream:ect,isRequest:tct,isResponse:act,isHeaders:rct,isUndefined:Xv,isDate:Xlt,isFile:qlt,isBlob:Ylt,isRegExp:gct,isFunction:dp,isStream:$lt,isURLSearchParams:Qlt,isTypedArray:dct,isFileList:Jlt,forEach:qv,merge:Ek,extend:ict,trim:nct,stripBOM:oct,inherits:sct,toFlatObject:lct,kindOf:p5,kindOfTest:Df,endsWith:cct,toArray:uct,forEachEntry:hct,matchAll:pct,isHTMLForm:fct,hasOwnProperty:ZF,hasOwnProp:ZF,reduceDescriptors:WF,freezeMethods:yct,toObjectSet:vct,toCamelCase:mct,noop:bct,toFiniteNumber:xct,findKey:GF,global:$1,isContextDefined:HF,isSpecCompliantForm:_ct,toJSONObject:wct,isAsyncFn:kct,isThenable:Sct,setImmediate:XF,asap:Tct,isIterable:Cct};function yl(e,o,s,z,W){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",o&&(this.code=o),s&&(this.config=s),z&&(this.request=z),W&&(this.response=W,this.status=W.status?W.status:null)}On.inherits(yl,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:On.toJSONObject(this.config),code:this.code,status:this.status}}});const qF=yl.prototype,YF={};["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=>{YF[e]={value:e}}),Object.defineProperties(yl,YF),Object.defineProperty(qF,"isAxiosError",{value:!0}),yl.from=(e,o,s,z,W,v)=>{const g=Object.create(qF);return On.toFlatObject(e,g,function(r){return r!==Error.prototype},r=>r!=="isAxiosError"),yl.call(g,e.message,o,s,z,W),g.cause=e,g.name=e.name,v&&Object.assign(g,v),g};const Ect=null;function Ak(e){return On.isPlainObject(e)||On.isArray(e)}function JF(e){return On.endsWith(e,"[]")?e.slice(0,-2):e}function $F(e,o,s){return e?e.concat(o).map(function(z,W){return z=JF(z),!s&&W?"["+z+"]":z}).join(s?".":""):o}function Act(e){return On.isArray(e)&&!e.some(Ak)}const Mct=On.toFlatObject(On,{},null,function(e){return/^is[A-Z]/.test(e)});function y5(e,o,s){if(!On.isObject(e))throw new TypeError("target must be an object");o=o||new FormData,s=On.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,u){return!On.isUndefined(u[x])});const z=s.metaTokens,W=s.visitor||d,v=s.dots,g=s.indexes,r=(s.Blob||typeof Blob<"u"&&Blob)&&On.isSpecCompliantForm(o);if(!On.isFunction(W))throw new TypeError("visitor must be a function");function b(x){if(x===null)return"";if(On.isDate(x))return x.toISOString();if(On.isBoolean(x))return x.toString();if(!r&&On.isBlob(x))throw new yl("Blob is not supported. Use a Buffer instead.");return On.isArrayBuffer(x)||On.isTypedArray(x)?r&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function d(x,u,n){let i=x;if(x&&!n&&typeof x=="object"){if(On.endsWith(u,"{}"))u=z?u:u.slice(0,-2),x=JSON.stringify(x);else if(On.isArray(x)&&Act(x)||(On.isFileList(x)||On.endsWith(u,"[]"))&&(i=On.toArray(x)))return u=JF(u),i.forEach(function(f,l){!(On.isUndefined(f)||f===null)&&o.append(g===!0?$F([u],l,v):g===null?u:u+"[]",b(f))}),!1}return Ak(x)?!0:(o.append($F(n,u,v),b(x)),!1)}const a=[],_=Object.assign(Mct,{defaultVisitor:d,convertValue:b,isVisitable:Ak});function y(x,u){if(!On.isUndefined(x)){if(a.indexOf(x)!==-1)throw Error("Circular reference detected in "+u.join("."));a.push(x),On.forEach(x,function(n,i){(!(On.isUndefined(n)||n===null)&&W.call(o,n,On.isString(i)?i.trim():i,u,_))===!0&&y(n,u?u.concat(i):[i])}),a.pop()}}if(!On.isObject(e))throw new TypeError("data must be an object");return y(e),o}function KF(e){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return o[s]})}function Mk(e,o){this._pairs=[],e&&y5(e,this,o)}const QF=Mk.prototype;QF.append=function(e,o){this._pairs.push([e,o])},QF.toString=function(e){const o=e?function(s){return e.call(this,s,KF)}:KF;return this._pairs.map(function(s){return o(s[0])+"="+o(s[1])},"").join("&")};function Pct(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function eR(e,o,s){if(!o)return e;const z=s&&s.encode||Pct;On.isFunction(s)&&(s={serialize:s});const W=s&&s.serialize;let v;if(W?v=W(o,s):v=On.isURLSearchParams(o)?o.toString():new Mk(o,s).toString(z),v){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+v}return e}let tR=class{constructor(){this.handlers=[]}use(o,s,z){return this.handlers.push({fulfilled:o,rejected:s,synchronous:z?z.synchronous:!1,runWhen:z?z.runWhen:null}),this.handlers.length-1}eject(o){this.handlers[o]&&(this.handlers[o]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(o){On.forEach(this.handlers,function(s){s!==null&&o(s)})}};const aR={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ict=typeof URLSearchParams<"u"?URLSearchParams:Mk,Lct=typeof FormData<"u"?FormData:null,Bct=typeof Blob<"u"?Blob:null,Oct={isBrowser:!0,classes:{URLSearchParams:Ict,FormData:Lct,Blob:Bct},protocols:["http","https","file","blob","url","data"]},Pk=typeof window<"u"&&typeof document<"u",Ik=typeof navigator=="object"&&navigator||void 0,zct=Pk&&(!Ik||["ReactNative","NativeScript","NS"].indexOf(Ik.product)<0),Nct=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Dct=Pk&&window.location.href||"http://localhost",Fct=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Pk,hasStandardBrowserEnv:zct,hasStandardBrowserWebWorkerEnv:Nct,navigator:Ik,origin:Dct},Symbol.toStringTag,{value:"Module"})),_h={...Fct,...Oct};function Rct(e,o){return y5(e,new _h.classes.URLSearchParams,Object.assign({visitor:function(s,z,W,v){return _h.isNode&&On.isBuffer(s)?(this.append(z,s.toString("base64")),!1):v.defaultVisitor.apply(this,arguments)}},o))}function Vct(e){return On.matchAll(/\w+|\[(\w*)]/g,e).map(o=>o[0]==="[]"?"":o[1]||o[0])}function jct(e){const o={},s=Object.keys(e);let z;const W=s.length;let v;for(z=0;z<W;z++)v=s[z],o[v]=e[v];return o}function rR(e){function o(s,z,W,v){let g=s[v++];if(g==="__proto__")return!0;const r=Number.isFinite(+g),b=v>=s.length;return g=!g&&On.isArray(W)?W.length:g,b?(On.hasOwnProp(W,g)?W[g]=[W[g],z]:W[g]=z,!r):((!W[g]||!On.isObject(W[g]))&&(W[g]=[]),o(s,z,W[g],v)&&On.isArray(W[g])&&(W[g]=jct(W[g])),!r)}if(On.isFormData(e)&&On.isFunction(e.entries)){const s={};return On.forEachEntry(e,(z,W)=>{o(Vct(z),W,s,0)}),s}return null}function Uct(e,o,s){if(On.isString(e))try{return(o||JSON.parse)(e),On.trim(e)}catch(z){if(z.name!=="SyntaxError")throw z}return(s||JSON.stringify)(e)}const Yv={transitional:aR,adapter:["xhr","http","fetch"],transformRequest:[function(e,o){const s=o.getContentType()||"",z=s.indexOf("application/json")>-1,W=On.isObject(e);if(W&&On.isHTMLForm(e)&&(e=new FormData(e)),On.isFormData(e))return z?JSON.stringify(rR(e)):e;if(On.isArrayBuffer(e)||On.isBuffer(e)||On.isStream(e)||On.isFile(e)||On.isBlob(e)||On.isReadableStream(e))return e;if(On.isArrayBufferView(e))return e.buffer;if(On.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let v;if(W){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Rct(e,this.formSerializer).toString();if((v=On.isFileList(e))||s.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return y5(v?{"files[]":e}:e,g&&new g,this.formSerializer)}}return W||z?(o.setContentType("application/json",!1),Uct(e)):e}],transformResponse:[function(e){const o=this.transitional||Yv.transitional,s=o&&o.forcedJSONParsing,z=this.responseType==="json";if(On.isResponse(e)||On.isReadableStream(e))return e;if(e&&On.isString(e)&&(s&&!this.responseType||z)){const W=!(o&&o.silentJSONParsing)&&z;try{return JSON.parse(e)}catch(v){if(W)throw v.name==="SyntaxError"?yl.from(v,yl.ERR_BAD_RESPONSE,this,null,this.response):v}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_h.classes.FormData,Blob:_h.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};On.forEach(["delete","get","head","post","put","patch"],e=>{Yv.headers[e]={}});const Gct=On.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"]),Hct=e=>{const o={};let s,z,W;return e&&e.split(`
|
|
4133
|
+
*/const jd={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},AF={itemsToShow:{default:jd.itemsToShow,type:Number},itemsToScroll:{default:jd.itemsToScroll,type:Number},wrapAround:{default:jd.wrapAround,type:Boolean},throttle:{default:jd.throttle,type:Number},snapAlign:{default:jd.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:jd.transition,type:Number},breakpoints:{default:jd.breakpoints,type:Object},autoplay:{default:jd.autoplay,type:Number},pauseAutoplayOnHover:{default:jd.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:jd.mouseDrag,type:Boolean},touchDrag:{default:jd.touchDrag,type:Boolean},dir:{default:jd.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:jd.i18n,type:Object},settings:{default(){return{}},type:Object}};function rst({config:e,slidesCount:o}){const{snapAlign:s,wrapAround:z,itemsToShow:W=1}=e;if(z)return Math.max(o-1,0);let v;switch(s){case"start":v=o-W;break;case"end":v=o-1;break;case"center":case"center-odd":v=o-Math.ceil((W-.5)/2);break;case"center-even":v=o-Math.ceil(W/2);break;default:v=0;break}return Math.max(v,0)}function nst({config:e,slidesCount:o}){const{wrapAround:s,snapAlign:z,itemsToShow:W=1}=e;let v=0;if(s||W>o)return v;switch(z){case"start":v=0;break;case"end":v=W-1;break;case"center":case"center-odd":v=Math.floor((W-1)/2);break;case"center-even":v=Math.floor((W-2)/2);break;default:v=0;break}return v}function bk({val:e,max:o,min:s}){return o<s?e:Math.min(Math.max(e,s),o)}function ist({config:e,currentSlide:o,slidesCount:s}){const{snapAlign:z,wrapAround:W,itemsToShow:v=1}=e;let g=o;switch(z){case"center":case"center-odd":g-=(v-1)/2;break;case"center-even":g-=(v-2)/2;break;case"end":g-=v-1;break}return W?g:bk({val:g,max:s-v,min:0})}function MF(e){return e?e.reduce((o,s)=>{var z;return s.type===t.Fragment?[...o,...MF(s.children)]:((z=s.type)===null||z===void 0?void 0:z.name)==="CarouselSlide"?[...o,s]:o},[]):[]}function xk({val:e,max:o,min:s=0}){return e>o?xk({val:e-(o+1),max:o,min:s}):e<s?xk({val:e+(o+1),max:o,min:s}):e}function ost(e,o){let s;return o?function(...z){const W=this;s||(e.apply(W,z),s=!0,setTimeout(()=>s=!1,o))}:e}function sst(e,o){let s;return function(...z){s&&clearTimeout(s),s=setTimeout(()=>{e(...z),s=null},o)}}function lst(e="",o={}){return Object.entries(o).reduce((s,[z,W])=>s.replace(`{${z}}`,String(W)),e)}var cst=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},jd))),o=t.inject("currentSlide",t.ref(0)),s=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},lst(e.i18n.itemXofY,{currentSlide:o.value+1,slidesCount:s.value}))}}),ust=t.defineComponent({name:"Carousel",props:AF,setup(e,{slots:o,emit:s,expose:z}){var W;const v=t.ref(null),g=t.ref([]),r=t.ref(0),b=t.ref(0),d=t.reactive(Object.assign({},jd));let a=Object.assign({},jd),_;const y=t.ref((W=e.modelValue)!==null&&W!==void 0?W:0),x=t.ref(0),u=t.ref(0),n=t.ref(0),i=t.ref(0);let f,l;t.provide("config",d),t.provide("slidesCount",b),t.provide("currentSlide",y),t.provide("maxSlide",n),t.provide("minSlide",i),t.provide("slideWidth",r);function h(){_=Object.assign({},e.breakpoints),a=Object.assign(Object.assign(Object.assign({},a),e),{i18n:Object.assign(Object.assign({},a.i18n),e.i18n),breakpoints:void 0}),w(a)}function m(){if(!_||!Object.keys(_).length)return;const ne=Object.keys(_).map(ie=>Number(ie)).sort((ie,me)=>+me-+ie);let le=Object.assign({},a);ne.some(ie=>{const me=window.matchMedia(`(min-width: ${ie}px)`).matches;return me&&(le=Object.assign(Object.assign({},le),_[ie])),me}),w(le)}function w(ne){Object.entries(ne).forEach(([le,ie])=>d[le]=ie)}const T=sst(()=>{m(),A()},16);function A(){if(!v.value)return;const ne=v.value.getBoundingClientRect();r.value=ne.width/d.itemsToShow}function C(){b.value<=0||(u.value=Math.ceil((b.value-1)/2),n.value=rst({config:d,slidesCount:b.value}),i.value=nst({config:d,slidesCount:b.value}),d.wrapAround||(y.value=bk({val:y.value,max:n.value,min:i.value})))}t.onMounted(()=>{t.nextTick(()=>A()),setTimeout(()=>A(),1e3),m(),G(),window.addEventListener("resize",T,{passive:!0}),s("init")}),t.onUnmounted(()=>{l&&clearTimeout(l),f&&clearInterval(f),window.removeEventListener("resize",T,{passive:!0})});let I=!1;const L={x:0,y:0},E={x:0,y:0},P=t.reactive({x:0,y:0}),M=t.ref(!1),S=t.ref(!1),B=()=>{M.value=!0},k=()=>{M.value=!1};function O(ne){["INPUT","TEXTAREA","SELECT"].includes(ne.target.tagName)||(I=ne.type==="touchstart",I||ne.preventDefault(),!(!I&&ne.button!==0||U.value)&&(L.x=I?ne.touches[0].clientX:ne.clientX,L.y=I?ne.touches[0].clientY:ne.clientY,document.addEventListener(I?"touchmove":"mousemove",D,!0),document.addEventListener(I?"touchend":"mouseup",V,!0)))}const D=ost(ne=>{S.value=!0,E.x=I?ne.touches[0].clientX:ne.clientX,E.y=I?ne.touches[0].clientY:ne.clientY;const le=E.x-L.x,ie=E.y-L.y;P.y=ie,P.x=le},d.throttle);function V(){const ne=d.dir==="rtl"?-1:1,le=Math.sign(P.x)*.4,ie=Math.round(P.x/r.value+le)*ne;if(ie&&!I){const me=ve=>{ve.stopPropagation(),window.removeEventListener("click",me,!0)};window.addEventListener("click",me,!0)}J(y.value-ie),P.x=0,P.y=0,S.value=!1,document.removeEventListener(I?"touchmove":"mousemove",D,!0),document.removeEventListener(I?"touchend":"mouseup",V,!0)}function G(){!d.autoplay||d.autoplay<=0||(f=setInterval(()=>{d.pauseAutoplayOnHover&&M.value||re()},d.autoplay))}function H(){f&&(clearInterval(f),f=null),G()}const U=t.ref(!1);function J(ne){const le=d.wrapAround?ne:bk({val:ne,max:n.value,min:i.value});y.value===le||U.value||(s("slide-start",{slidingToIndex:ne,currentSlideIndex:y.value,prevSlideIndex:x.value,slidesCount:b.value}),U.value=!0,x.value=y.value,y.value=le,l=setTimeout(()=>{if(d.wrapAround){const ie=xk({val:le,max:n.value,min:0});ie!==y.value&&(y.value=ie,s("loop",{currentSlideIndex:y.value,slidingToIndex:ne}))}s("update:modelValue",y.value),s("slide-end",{currentSlideIndex:y.value,prevSlideIndex:x.value,slidesCount:b.value}),U.value=!1,H()},d.transition))}function re(){J(y.value+d.itemsToScroll)}function q(){J(y.value-d.itemsToScroll)}const ae={slideTo:J,next:re,prev:q};t.provide("nav",ae),t.provide("isSliding",U);const ee=t.computed(()=>ist({config:d,currentSlide:y.value,slidesCount:b.value}));t.provide("slidesToScroll",ee);const $=t.computed(()=>{const ne=d.dir==="rtl"?-1:1,le=ee.value*r.value*ne;return{transform:`translateX(${P.x-le}px)`,transition:`${U.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${b.value*r.value}px`:"",width:"100%"}});function Q(){h(),m(),C(),A(),H()}Object.keys(AF).forEach(ne=>{["modelValue"].includes(ne)||t.watch(()=>e[ne],Q)}),t.watch(()=>e.modelValue,ne=>{ne!==y.value&&J(Number(ne))}),t.watch(b,C),s("before-init"),h();const ce={config:d,slidesCount:b,slideWidth:r,next:re,prev:q,slideTo:J,currentSlide:y,maxSlide:n,minSlide:i,middleSlide:u};z({updateBreakpointsConfigs:m,updateSlidesData:C,updateSlideWidth:A,initDefaultConfigs:h,restartCarousel:Q,slideTo:J,next:re,prev:q,nav:ae,data:ce});const de=o.default||o.slides,he=o.addons,pe=t.reactive(ce);return()=>{const ne=MF(de==null?void 0:de(pe)),le=(he==null?void 0:he(pe))||[];ne.forEach((ye,ke)=>ye.props.index=ke);let ie=ne;if(d.wrapAround){const ye=ne.map((Ee,Te)=>t.cloneVNode(Ee,{index:-ne.length+Te,isClone:!0,key:`clone-before-${Te}`})),ke=ne.map((Ee,Te)=>t.cloneVNode(Ee,{index:ne.length+Te,isClone:!0,key:`clone-after-${Te}`}));ie=[...ye,...ne,...ke]}g.value=ne,b.value=Math.max(ne.length,1);const me=t.h("ol",{class:"carousel__track",style:$.value,onMousedownCapture:d.mouseDrag?O:null,onTouchstartPassiveCapture:d.touchDrag?O:null},ie),ve=t.h("div",{class:"carousel__viewport"},me);return t.h("section",{ref:v,class:{carousel:!0,"is-sliding":U.value,"is-dragging":S.value,"is-hover":M.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:B,onMouseleave:k},[ve,le,t.h(cst)])}}}),PF;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(PF||(PF={}));var dst=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:o}){const s=t.inject("config",t.reactive(Object.assign({},jd))),z=t.inject("currentSlide",t.ref(0)),W=t.inject("slidesToScroll",t.ref(0)),v=t.inject("isSliding",t.ref(!1)),g=()=>e.index===z.value,r=()=>e.index===z.value-1,b=()=>e.index===z.value+1,d=()=>{const a=Math.floor(W.value),_=Math.ceil(W.value+s.itemsToShow-1);return e.index>=a&&e.index<=_};return()=>{var a;return t.h("li",{style:{width:`${100/s.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d(),"carousel__slide--active":g(),"carousel__slide--prev":r(),"carousel__slide--next":b(),"carousel__slide--sliding":v.value},"aria-hidden":!d()},(a=o.default)===null||a===void 0?void 0:a.call(o))}}});const hst=(e,o)=>{const s=e.__vccOpts||e;for(const[z,W]of o)s[z]=W;return s},pst=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),fst={class:"gsc-carousel"},mst={key:0},gst=pst(()=>t.createElementVNode("div",null,"no hay",-1)),yst=[gst],vst={class:"gsc-carousel__2d__slides"},bst={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},xst=["fill"],_st={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wst=["fill"],kst={class:"gsc-carousel__2d__navigation"},Sst={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Tst=["stroke"],Cst={key:1,class:"gsc-carousel__2d__navigation__pagination"},Est=["onClick"],Ast={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Mst=["stroke"],Pst={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(o=>o in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:o,emit:s}){const z=e;t.useCssVars(n=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const W=t.ref(null),v=t.ref({}),g=t.ref(0),r=t.ref(!1);t.watch(W,n=>{n&&r.value?(r.value=!1,b(z.items)):n&&n.slideTo&&n.slideTo(g.value)},{deep:!0}),t.watch(()=>z.currentItemIndex,n=>{g.value!==n&&y(n)}),t.watch(()=>z.defaultItemByIndex,n=>{g.value!==n&&y(n)}),t.watch(()=>z.items,n=>{W.value?b(n):r.value=!0},{immediate:!0});function b(n){n&&n.length&&W.value&&setTimeout(()=>{if(z.defaultItemByProp){const i=z.items.findIndex(f=>f[z.defaultItemByProp.propName]===z.defaultItemByProp.value);i!==-1?(g.value=i,v.value=n[i]):(g.value=0,v.value=n[0])}else g.value=z.defaultItemByIndex,v.value=n[z.defaultItemByIndex];W.value.slideTo&&W.value.slideTo(g.value),v.value&&g.value===0&&s("input",{selectedItem:v.value,selectedItemIndex:g.value})},500)}function d(){W.value&&W.value.next()}function a(){W.value&&W.value.prev()}function _(){W.value&&W.value.updateSlideWidth()}function y(n){W.value&&W.value.slideTo(n)}function x(n){W.value.slideTo(n)}function u(n){const i=n.slidingToIndex<0?z.items.length-1:n.slidingToIndex===z.items.length?0:n.slidingToIndex;g.value=i,v.value=z.items[i],s("update:currentItemIndex",i),s("input",{selectedItem:v.value,selectedItemIndex:g.value})}return o({prev:a,next:d,updateSlideWidth:_,slideTo:y}),(n,i)=>(t.openBlock(),t.createElementBlock("div",fst,[z.is3d?(t.openBlock(),t.createElementBlock("div",mst,yst)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",vst,[t.createVNode(t.unref(ust),{ref_key:"carousel2d",ref:W,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:u},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(f,l)=>(t.openBlock(),t.createBlock(t.unref(dst),{key:l},{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default",{item:f},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:i[0]||(i[0]=f=>W.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",bst,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,xst)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:i[1]||(i[1]=f=>d())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",_st,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,wst)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",kst,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:i[2]||(i[2]=f=>a())},[(t.openBlock(),t.createElementBlock("svg",Sst,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:z.arrowsColor},null,8,Tst)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",Cst,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(f,l)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${l}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${z.navigationHeight}px`,width:`${g.value===l?z.navigationActiveWidth:z.navigationActiveWidth/2}px`,borderRadius:`${z.navigationBorderRadius}px`,backgroundColor:`${g.value===l?z.navigationActiveColor:z.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:h=>x(l)},null,12,Est))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:i[3]||(i[3]=f=>W.value.next())},[(t.openBlock(),t.createElementBlock("svg",Ast,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:z.arrowsColor},null,8,Mst)]))])):t.createCommentVNode("",!0)])],2))]))}},Ist=hst(Pst,[["__scopeId","data-v-54620d25"]]),eqt="",IF={3:"Albanesa",4:"Argelina",6:"Andorrano",7:"Angoleña",8:"Anguillan",9:"Antiguan",10:"Argentina",11:"Armenia",12:"Arubeño",13:"Austríaca",14:"Austríaca",15:"Azerbaiyano",16:"Bahamas",17:"Bareini",18:"Bangladesí",19:"Barbadense",20:"Bielorrusa",21:"Belga",22:"Beliceña",23:"Beninesa",24:"Bermudeña",25:"Butanés",26:"Boliviana",27:"Bosnia",28:"Botsuano",29:"Brasileña",30:"Islas Vírgenes Británicas",31:"Bruneano",32:"Búlgara",33:"Burundés",34:"Burmesa",35:"Burundés",36:"Camboyana",37:"Camerunés",38:"Canadiense",39:"Caboverdiano",40:"Caimanés",41:"Centroafricana",42:"Chadiano",43:"Chilena",44:"China",45:"Isla de Navidad",46:"Cocos Island",47:"Colombiana",48:"Comorense",49:"Congoleña",50:"Cookiano",51:"Costarricense",52:"Marfileña",53:"Croata",54:"Cubana",55:"Chipriota",56:"Checa",57:"Danesa",58:"Djibouti",60:"Dominicana",61:"Timorense",62:"Ecuatoriana",63:"Egipcia",64:"Salvadoreña",65:"Inglesa",66:"Ecuatoguineano",67:"Eritreo",68:"Estoniana",69:"Etíope",70:"Islas Malvinas",71:"Feroés",72:"Fiyiano",73:"Finlandesa",74:"Francesa",75:"Guayana Francesa",76:"Francopolinecio",77:"Gabonesa",78:"Gambiana",79:"Georgiano",80:"Alemana",81:"Ghanesa",82:"Gibraltareño",221:"Británico",84:"Griega",85:"Groenlandés",86:"Granadino",87:"Guadeloupeño",89:"Guatemalteca",90:"Guineana",91:"Guyanés",92:"Haitiana",93:"Hondureña",94:"Hongkongese",95:"Húngaro",96:"Islandesa",97:"Indio",98:"Indonesia",99:"Iraní",100:"Iraquí",101:"Irlandesa",102:"Manés",103:"Israelí",104:"Italiana",105:"Jamaiquina",106:"Japonesa",107:"Jordana",108:"Kazaja",109:"Keniana",110:"Kiribatiano",111:"Coreana",112:"Surcoreana",113:"Kosovan",114:"Kuwaití",115:"Kirguisa",116:"Laosiano",117:"Letona",118:"Libanesa",119:"Basotho",120:"Liberiana",121:"Libia",122:"Liechtenstein",123:"Lituano",124:"Luxemburguesa",125:"Macaneso",126:"Macedonia",127:"Malgache",128:"Malaya",129:"Malaya",130:"Maldivo",131:"Mali",132:"Maltesa",133:"Marshallese",134:"Martiniqueña",135:"Mauritania",136:"Mauriciano",137:"Mahoran",138:"Mexicana",139:"Micronesio",140:"Moldava",141:"Monacan",142:"Mongol",143:"Montenegrina",144:"Montserratiano",145:"Marroqui",146:"Mozambiqueña",147:"Namibio",148:"Nauruan",149:"Nepalí",150:"Holandesa",151:"Neocaledonio",152:"Neozelandesa",153:"Nicaragüense",154:"Niueño",155:"Nigerina",156:"Nigeriana",157:"Noruega",158:"Normariano",159:"Omaní",160:"Palestina",161:"Palestina",162:"Palauan",163:"Panameña",164:"Papú",165:"Paraguaya",166:"Peruana",167:"Filipina",168:"Pitcairnés",169:"Polaca",170:"Portuguesa",171:"Puertorriqueña",172:"Catari",173:"Reunionés",174:"Rumana",175:"Rusa",176:"Ruandés",177:"Santa Elena",178:"Sancristobaleña",179:"Santa Lucía",180:"Miquelonnais",181:"Sanvicentina",182:"Samoano",183:"Sanmariense",184:"Santotomense",185:"Saudí",186:"Escocesa",187:"Senegalense",188:"Serbia",189:"Seychellense",190:"Sierraleonesa",191:"Singapurense",192:"Eslovena",193:"Eslovena",194:"Salomonense",195:"Somalí",196:"Sudafricana",197:"Surosetio",198:"Española",199:"Esrilanques",200:"Sudanés",201:"Surinamés",202:"Swazi",203:"Sueca",204:"Suiza",205:"Sirio",206:"Taiwanesa",207:"Tayiko",208:"Tanzano",209:"Tailandesa",210:"Togo",211:"Tongano",212:"Trinitaria",213:"Tunecina",214:"Turca",215:"Turkmena",216:"none",217:"Tuvaluano",218:"Ugandesa",219:"Ucraniana",220:"Emiratí",222:"Americana",223:"Uruguaya",224:"Uzbeka",225:"Vanuatuense",226:"Venezolana",227:"Vietnamita",228:"Islas Vírgenes",229:"Galesa",230:"Walisiano",231:"Saharaui",232:"Yemení",233:"Zambiana",234:"Zimbabuense",236:"Curazaleña",237:"San Martín",239:"Debutante"},tqt="",_k={components:{GSCCarousel:Ist,GSCLeaders:jot,GSCRowTable:gF,GSCTableHeader:uF,GSCExpandedInfo:EF},props:{isTeam:{type:Boolean,default:!1},typeTable:{type:Number,default:0},typeData:{type:Number,default:1},gameId:{type:Number,default:0},filtersProp:{type:[Object,String],default:()=>{}},game:{type:Object,default:()=>({})},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!1},filterTeam:{type:Number,default:0},timeLiveComparativeAvanced:{type:Number,default:6e4},category:{type:Number,default:1},categoryName:{type:String,default:"Goles"},seasonSelected:{type:Object,default:()=>({})},season:{type:Number,default:1772},type:{type:Number,default:0},borderRadius:{type:String,default:"8px"},borderWidth:{type:[String,Number],default:"2px"},borderColor:{type:String,default:"#cfcfcf"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},numRows:{type:Number,default:5}},setup(){const e=t.ref("myDivRef"),{elementSize:o}=Wv(e);return{myDivRef:e,elementSize:o}},watch:{game:{immediate:!0,deep:!0,async handler(e){e&&(this.playersInfo={},this.teamInfo={},this.isloading=!0,this.formatFilterStats=[],await this.getCategoryStats(this.season),this.game.is_live&&(this.createIntervalTops(),this.$emit("intervalidtops",this.intervalIdtops)))}},typeData:{immediate:!0,async handler(e){await this.getCategoryStats(this.season),e===1&&this.game.is_live?(this.createIntervalTops(),this.$emit("intervalidtops",this.intervalIdtops)):clearInterval(this.intervalIdtops)}},filtersProp:{immediate:!1,deep:!0,async handler(e,o){e&&(JSON.stringify(e)!==JSON.stringify(o)||this.sonConjuntosDistintos(e.setNationalitiesIds,o.setNationalitiesIds))&&(this.isloading=!0,this.filterEmitAux=e,[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.filterEmitAux.typeZone=1:this.filterEmitAux.typeZone=2,this.formatFilterStats=await this.filterRecords(this.filterEmitAux))}}},computed:{topData(){if(this.changeStateLoading(!0),Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0){var e={},o={},s=[],z=[],W=[];return this.formatFilterStats.map(v=>{e[v.team_id]?e[v.team_id].total=e[v.team_id].total+v.total:(e[v.team_id]={},e[v.team_id].total=v.total,e[v.team_id].id=this.teamInfo[v.team_id].id,e[v.team_id].name=this.teamInfo[v.team_id].name.replace(" Femenil",""),e[v.team_id].img="https://golstatsimages.blob.core.windows.net/teams-80/"+v.team_id+".png",e[v.team_id].effectiveness=this.teamInfo[v.team_id].effectiveness,e[v.team_id].frecuency=this.teamInfo[v.team_id].frecuency,e[v.team_id].game_avg=this.teamInfo[v.team_id].game_avg,e[v.team_id].game_avg_last_season=this.teamInfo[v.team_id].game_avg_last_season,e[v.team_id].games_played_lastseason=this.teamInfo[v.team_id].games_played_lastseason,e[v.team_id].games_played=this.teamInfo[v.team_id].games_played,e[v.team_id].positiontable=this.teamInfo[v.team_id].positiontable,e[v.team_id].goals=this.teamInfo[v.team_id].goals,e[v.team_id].goalsrecived=this.teamInfo[v.team_id].goalsrecived,e[v.team_id].xg=this.teamInfo[v.team_id].xg),o[v.player_id]?v.player_id!=0&&v.player_id!=62117&&(o[v.player_id].total=o[v.player_id].total+v.total):v.player_id!=0&&v.player_id!=62117&&(o[v.player_id]={},o[v.player_id].total=v.total,v.player_id&&this.playersInfo[v.player_id]?(o[v.player_id].name=this.playersInfo[v.player_id].name,o[v.player_id].name_short=this.getnameshort(this.playersInfo[v.player_id].name),o[v.player_id].img=this.playersInfo[v.player_id].img,o[v.player_id].id=this.playersInfo[v.player_id].id,o[v.player_id].age=this.playersInfo[v.player_id].age,o[v.player_id].team=this.playersInfo[v.player_id].team,o[v.player_id].teamname=this.playersInfo[v.player_id].teamname,o[v.player_id].teamid=this.playersInfo[v.player_id].teamid,o[v.player_id].position=this.playersInfo[v.player_id].position,o[v.player_id].positionId=this.playersInfo[v.player_id].positionId,o[v.player_id].positionfull=this.playersInfo[v.player_id].positionfull,o[v.player_id].country=this.playersInfo[v.player_id].country,o[v.player_id].effectiveness=this.playersInfo[v.player_id].effectiveness,o[v.player_id].minutes=this.playersInfo[v.player_id].minutes_played,o[v.player_id].games=this.playersInfo[v.player_id].games_played,o[v.player_id].date=this.playersInfo[v.player_id].date,o[v.player_id].nationality=this.playersInfo[v.player_id].nationality,o[v.player_id].player_country_flag=this.playersInfo[v.player_id].player_country_flag,o[v.player_id].categoryName=this.categoryName):(o[v.player_id].id=v.player_id,o[v.player_id].name=v.player_id,o[v.player_id].img="SIN IMAGEN",o[v.player_id].age="",o[v.player_id].teamname="",o[v.player_id].team="",o[v.player_id].teamid=0,o[v.player_id].position="",o[v.player_id].positionId=0,o[v.player_id].positionfull="",o[v.player_id].country="",o[v.player_id].effectiveness="",o[v.player_id].minutes="",o[v.player_id].games="",o[v.player_id].date="00-00-0000",o[v.player_id].nationality="",o[v.player_id].player_country_flag="",o[v.player_id].categoryName=""))}),s.push(...Object.values(e)),z.push(...Object.values(o)),s=this.sortAndSlice(Object.values(e),60),z=z.sort(this.compareObjectsMinutes).slice(0,60),z=z.map((v,g)=>(v.top=g<9?"0"+(g+1):""+(g+1),v)),s=s.map((v,g)=>(v.top=g<9?"0"+(g+1):""+(g+1),v)),this.filterTeam!==0&&!this.isTeam&&(W=z.filter(v=>v.teamid===this.filterTeam)),this.changeStateLoading(!1),this.isTeam?this.formatArrayPaginate(s):this.filterTeam!=0?this.formatArrayPaginate(W):this.formatArrayPaginate(z)}else return this.changeStateLoading(!1),[]}},data:()=>({url:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/live/tops",urlPrematch:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/topsBySeasonAndCategory/",data_headers:["team_id","player_id","playing_as","match_result","section","total","origen","destino"],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",mapPlayers:new Map,setNationalityIds:new Set,arrayAgeRange:[0,0],arePlaysEmpty:!1,teamInfo:{},formatFilterStats:[],formatStats:[],playersInfo:{},isloading:!0,statsData:{},updateSlider:0,intervalIdtops:null,filterEmitAux:{},filtersSelect:{playingAs:[],matchResult:[],sections:[],zone:[],typeZone:[]},filtersValues:{type:1,sections:[1,2,3,4,5,6],matchResult:[1,2,3],playingAs:[1,2],zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],typeZone:1,arrayAgeRange:[1,60],setNationalitiesIds:[],setPositionsIds:[1,2,3,4,5,6,7,8,9]},expand:!1,playerexpand:0,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],categories:[{id:1,name:"Goles"}]}),methods:{changeStateLoading(e){this.isloading=e},compareObjectsMinutes(e,o){return e.total>o.total?-1:e.total<o.total?1:e.minutes<o.minutes?-1:e.minutes>o.minutes?1:0},sonConjuntosDistintos(e,o){const s=Array.from(e),z=Array.from(o);if(s.length!==z.length)return!0;for(let W=0;W<s.length;W++)if(!o.has(s[W]))return!0;return!1},getnameshort(e){var o=e.split(","),s=o[0].split(" "),z=o[1].trim().split(" "),W="";s.length==2||s.length==1?s[0].length<4?W=s[0]+" "+s[1]:W=s[0]:s.length==3?W=s[0]+" "+s[1]:s.length==4&&(W=s[1]+" "+s[2]+" "+s[3]);var v=z[z.length-1]!=""?z[z.length-1].charAt(0):z[z.length-2]?z[z.length-2].charAt(0):"";return W=W.replace(",",""),v+". "+W},changeCarrousel(){this.expand=!1,this.playerexpand=0},compareObjects(e,o){return e.total<o.total?-1:e.total>o.total?1:e.name<o.name?-1:e.name>o.name?1:0},sortAndSlice(e,o){return e.sort((s,z)=>(s.name<z.name?1:-1)&&(s.total<z.total?1:-1)).slice(0,o)},getCategoryName(e){let o="";for(let s=0;s<this.categories.length;s++)e==this.categories[s].id&&(o=this.categories[s].name);return o},translateTopCategories(e){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[e]||[]},getCoordinatePointPerCategory(e){return{1:2,2:3,3:1,4:2,5:1,6:2,7:2,8:1,9:1,10:2,11:2,12:1,13:1,14:1,15:1,16:1,17:1,18:3,19:3,20:3,21:3,22:1,23:1}[e]||0},emitEventMedia(e,o,s){let z=this.filtersValues.matchResult,W=this.filtersValues.playingAs,v=this.filtersValues.sections,g=this.filtersValues.zone,r=this.translateTopCategories(o);Object.keys(this.filterEmitAux).length>0&&(z=this.filterEmitAux.matchResult,W=this.filterEmitAux.playingAs,v=this.filterEmitAux.sections,g=this.filterEmitAux.zone);const b=1,d=2,a=3,_=this.isTeam?a:d,y=e.player_id;let x=[],u=this.isTeam?e.id:this.filterTeam;y?this.isTeam?u=y:(x=[y],r=r.filter(i=>!i.toString().includes("_r"))):this.isTeam?u=e.id:(x=[e.id],r=r.filter(i=>!i.toString().includes("_r")));const n={auxwidget:!!(this.canPlayVideos||this.game.awayTeam.team_id==this.teamWidget&&this.typeData!=1),seasonId:this.game.is_live==1?this.season:this.game.regularSeasonId,isFeaturedPlayers:!1,mainSectionType:b,playListType:_,gameIds:null,playerIds:x,goalkeeperIds:[],categoryIds:this.translateTopCategories(o),teamId:u||0,matchResult:z,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:s,playingAs:W,timeSections:v,fieldSections:g,coordinatePoint:this.getCoordinatePointPerCategory(o)}};this.$emit("setopenmedia",n)},emitEventMediaFullTable(e,o,s){let z=this.filtersValues.matchResult,W=this.filtersValues.playingAs,v=this.filtersValues.sections,g=this.filtersValues.zone,r=this.translateTopCategories(o);Object.keys(this.filterEmitAux).length>0&&(z=this.filterEmitAux.matchResult,W=this.filterEmitAux.playingAs,v=this.filterEmitAux.sections,g=this.filterEmitAux.zone);const b=1,d=2,a=3,_=this.isTeam?a:d;let y=[],x=this.isTeam?e.id:this.filterTeam;this.isTeam?x=e.id:(y=[e.id],r=r.filter(n=>!n.toString().includes("_r")));const u={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:b,playListType:_,gameIds:null,playerIds:y,goalkeeperIds:[],categoryIds:r,teamId:x||0,matchResult:z,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:s,playingAs:W,timeSections:v,fieldSections:g,coordinatePoint:this.getCoordinatePointPerCategory(o)}};this.$emit("setopenmedia",u)},replaceImgPlayer(e){return e.replace("https://golstatsimages.blob.core.windows.net/players-profile/","https://golstatsimages.blob.core.windows.net/players-profile-no-bg/")},abrevName(e){var o=e.split(","),s=o[0].split(" "),z=o[1].trim().split(" "),W="";s.length==2||s.length==1?s[0].length<4?W=s[0]+" "+s[1]:W=s[0]:s.length==3?W=s[0]+" "+s[1]:s.length==4&&(W=s[1]+" "+s[2]+" "+s[3]);var v=z[z.length-1]!=""?z[z.length-1].charAt(0):z[z.length-2]?z[z.length-2].charAt(0):"";W=W.replace(",","");var g=v+". "+W;return g},clickMore(e){this.$emit("more",{category:e,categoryName:this.categoryName})},morestats(){this.$emit("more",this.category)},viewprofile(e,o){this.$emit("clickprofile",{id:e,teamId:o,isTeam:this.isTeam})},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async getCategoryStats(e){var o,s;this.mapPlayers=new Map;try{if(!e)return;let z=[],W={},v={},g=this.season;(s=(o=this.seasonSelected)==null?void 0:o.related_seasons)!=null&&s.some(d=>d.id===this.season)&&(g=this.seasonSelected.id),this.arePlaysEmpty=!1;const r=bu.create({headers:{Authorization:`${this.token}`}});this.isloading=!0;let b={};if(this.typeData==1?this.isWidget&&this.teamWidget!=0?b=await r.get(this.url+"/"+this.gameId+"/"+this.category+"?t="+this.teamWidget):b=await r.get(this.url+"/"+this.gameId+"/"+this.category):this.game.game_status===1?this.isWidget&&this.teamWidget!=0?b=await r.get(this.url+"/"+this.gameId+"/"+this.category+"?acc=1&t="+this.teamWidget):b=await r.get(this.url+"/"+this.gameId+"/"+this.category+"?acc=1"):this.isWidget&&this.teamWidget!=0?b=await r.get(this.urlPrematch+g+"/"+this.category+"?t="+this.teamWidget):b=await r.get(this.urlPrematch+g+"/"+this.category+"?t="+this.game.homeTeam.team_id+"&t="+this.game.awayTeam.team_id),b&&b.data&&b.data.data&&b.data.data.length>0){z=b.data.data.map(a=>this.formatStatsData(a)),b.data.teams.forEach(a=>{W[a[0]]={},W[a[0]].id=a[0],W[a[0]].name=a[1],W[a[0]].abrv=a[2],W[a[0]].img=a[3],W[a[0]].effectiveness=a[4],W[a[0]].games_played=a[5],W[a[0]].games_played_lastseason=a[6],W[a[0]].positiontable=a[7],W[a[0]].goals=a[8],W[a[0]].goalsrecived=a[9],W[a[0]].xg=a[10],W[a[0]].frecuency=a[11],W[a[0]].game_avg=a[12],W[a[0]].game_avg_last_season=a[13]});const d=new Set;b.data.players.forEach(a=>{const _=this.getObjectPlayer(a);this.mapPlayers.set(_.numberId,_);const y=_.numberAge,x=_.teamName.length>0?_.teamName[0].acronym:"",u=_.teamName.length>0?W[_.teamName[0].team_id].name:"",n=_.teamName.length>0?_.teamName[0].team_id:"",i=this.positions[_.numberPositionId-1].fullname,f=this.positions[_.numberPositionId-1].name,l=_.countryId.length>0?_.countryId[0].nationality_id:"",h=_.effectiveness,m=_.min,w=_.games,T=_.date;_.arrayNationalities.forEach(A=>{d.add(A.numberId)}),v[a[0]]={id:a[0],name:a[1],img:a[2],age:y,team:x,teamname:u,teamid:n,position:i,positionfull:f,effectiveness:h,country:l,games_played:w,minutes_played:m,date:T,nationality:_.stringNationalityName,player_country_flag:_.player_country_flag,positionId:_.numberPositionId}}),this.setNationalityIds=d,this.arrayAgeRange=[b.data.min_age,b.data.max_age]}else this.arePlaysEmpty=!0;this.teamInfo=W,this.playersInfo=v,this.formatStats=z,this.formatFilterStats=this.filterRecords(this.filtersSelect),this.statsData=b}catch(z){return Promise.reject(z)}},filterRecords(e){return this.formatStats.length>0?this.formatStats.filter(o=>{const s=e.playingAs.includes(o.playing_as),z=e.matchResult.includes(o.match_result),W=e.sections.includes(o.section),v=e.typeZone===1&&e.zone.includes(o.origen)||e.typeZone===2&&e.zone.includes(o.destino);if(e.setPositionsIds&&e.setNationalitiesIds&&e.arrayAgeRange&&e.setYear&&!this.isTeam){const g=this.mapPlayers.get(o.player_id);if(!g)return!1;if(e.booleanAreNationalTeamsVisible){if(e.setAvailableNationalTeamsPlayersIds.size>0&&!e.setAvailableNationalTeamsPlayersIds.has(o.player_id))return!1}else{let r=!1;for(const b of g.arrayNationalitiesIds)if(e.setNationalitiesIds.has(b)){r=!0;break}if(!r)return!1}if(g.numberAge<e.arrayAgeRange[0]||g.numberAge>e.arrayAgeRange[1]||g.date<e.setYear||!e.setPositionsIds.includes(g.numberPositionId))return!1}return(e.playingAs.length===0||s)&&(e.matchResult.length===0||z)&&(e.sections.length===0||W)&&(e.zone.length===0||v)}):[]},updateSliderF(){this.updateSlider+=1},formatStatsData(e){const o={};return e[1]===0&&(e[2]===1||e[2]===2)&&(e[2]=3-e[2]),e[1]===0&&(e[3]===1||e[3]===2)&&(e[3]=3-e[3]),this.data_headers.forEach((s,z)=>{o[s]=e[z]}),o},getObjectPlayer(e){const o=[],s=e[7].map(W=>(o.push(W.nationality_id),{stringName:W.nationality,numberId:W.nationality_id})),z=e[9].split("-");return{numberId:e[0]!==void 0?e[0]:"",stringFullName:e[1]!==void 0?e[1]:"",stringImageUrl:e[2]!==void 0?e[2]:"",numberTeamId:e[3]!==void 0?e[3]:"",player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+e[3]+".jpg",stringNationalityName:IF[e[3]],numberAge:e[5]!==void 0?e[5]:"",numberPositionId:e[6]!==void 0?e[6]:"",countryId:e[7]!==void 0?e[7]:"",teamName:e[10]!==void 0?e[10]:"",effectiveness:e[11]!==void 0?e[11]:"",min:e[13]!==void 0?e[13]:"",games:e[12]!==void 0?e[12]:"",date:z.length>0?Number(z[0]):0,arrayNationalities:s,category:this.categoryName,arrayNationalitiesIds:o}},formatArrayPaginate(e){const o=Math.ceil(e.length/this.numRows);return Array.from({length:o},(s,z)=>{const W=z*this.numRows,v=W+this.numRows;return e.slice(W,v)})},createIntervalTops(){this.intervalIdtops=setInterval(async()=>{await this.getCategoryStats(this.season)},this.timeLiveComparativeAvanced)},clearTopsInterval(){this.intervalIdtops&&(clearInterval(this.intervalIdtops),this.intervalIdtops=null)}},beforeUnmount(){this.clearTopsInterval()}},LF=()=>{t.useCssVars(e=>({baf9c686:e.borderRadius,cba5678a:e.borderWidth,cdd36450:e.borderColor}))},BF=_k.setup;_k.setup=BF?(e,o)=>(LF(),BF(e,o)):LF;const Lst={ref:"myDivRef"},Bst={class:"btnViewFullList"},Ost={class:"text"},zst={class:"groupsLeague"},Nst={class:"row-table-carrousel"},Dst={key:1,class:"container-no-search-result"},Fst={key:0,class:"overlay-loading-top"};function Rst(e,o,s,z,W,v){const g=t.resolveComponent("GSCLeaders"),r=t.resolveComponent("GSCRowTable"),b=t.resolveComponent("GSCExpandedInfo"),d=t.resolveComponent("GSCCarousel"),a=t.resolveComponent("GSCTableHeader");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(s.type==0?"gsc-top":"gsc-top-full")},[t.createElementVNode("div",Lst,[t.createElementVNode("div",Bst,[t.createElementVNode("div",Ost,[t.createElementVNode("div",zst,t.toDisplayString(s.categoryName),1)])]),s.type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[v.topData.length>0?(t.openBlock(),t.createBlock(d,{key:0,items:v.topData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:v.changeCarrousel},{default:t.withCtx(({item:_})=>[t.createElementVNode("div",Nst,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_,(y,x)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:x},[y.top==1?(t.openBlock(),t.createBlock(g,{key:0,onMediadata:o[0]||(o[0]=u=>v.emitEventMedia(u,s.category,s.categoryName)),type:s.typeTable,"type-data":s.typeData,game:s.game,"team-widget":s.teamWidget,"can-play-videos":s.canPlayVideos,"is-expanded":e.playerexpand==y.id&&e.expand,ref_for:!0,ref:"GSCLeaders",data:s.typeTable==0?{top:"01",photo:y.img,logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.teamid+".png",name:y.name,player_short:y.name_short,player_id:y.id,categoryId:s.category,total:y.total}:{top:"01",logo:y.img,total:y.total,name_team:y.name,player_id:y.id},"category-name":s.categoryName,buttonMaxWidth:s.typeTable!=0?z.elementSize.width>360?"210px":"130px":z.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"11px",onExpand:v.clickexpand,onMore:v.morestats},null,8,["type","type-data","game","team-widget","can-play-videos","is-expanded","data","category-name","buttonMaxWidth","onExpand","onMore"])):(t.openBlock(),t.createBlock(r,{key:1,"type-data":s.typeData,"team-widget":s.teamWidget,game:s.game,type:s.typeTable,"type-view":s.type,"is-expanded":e.playerexpand==y.id&&e.expand,onMediadata:o[1]||(o[1]=u=>v.emitEventMedia(u,s.category,s.categoryName)),data:s.typeTable==0?{position:y.top,player_name:y.name,player_short:y.name_short,player_photo:y.img,total:y.total,id:y.id,player_age:y.age,team_abrev:y.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.teamid+".png",player_position:y.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+y.country+".jpg",player_games:y.minutes,player_min:y.games,league_name:" Liga MX "}:{position:y.top,team_logo:y.img,team_abrev:y.name,frequency:y.frecuency,promthistournament:y.game_avg,promlasttournament:y.game_avg_last_season,teams_games:"-",category:s.category,total:y.total,id:y.id},height:"71px","can-play-videos":s.canPlayVideos,background:x%2===0?s.backgroundEven:s.backgroundOdd,onExpand:v.clickexpand},null,8,["type-data","team-widget","game","type","type-view","is-expanded","data","can-play-videos","background","onExpand"])),e.expand&&e.playerexpand==y.id?(t.openBlock(),t.createBlock(b,{key:2,type:s.typeTable,"is-live":s.game.is_live,"view-effectiveness":y.positionId!==1,data:s.typeTable==0?{teams:y.teamname,age:y.age,dataofbirth:y.date,nationality:y.nationality,countryFlag:y.player_country_flag,position:y.position,games:y.games,min:y.minutes,goals:y.total,effectiveness:y.effectiveness,category:s.categoryName,id:y.id}:{position:y.positiontable,goals:y.goals,goals_received:y.goalsrecived,games_played:y.games_played,category:s.categoryName,effectiveness:y.effectiveness,xg:y.xg,total:y.total,attendance:"-",id:y.id},onViewprofile:u=>v.viewprofile(u,y.teamid),background:x%2===0?s.backgroundEven:s.backgroundOdd},null,8,["type","is-live","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))])]),_:1},8,["items","onInput"])):(t.openBlock(),t.createElementBlock("div",Dst,[e.isloading?(t.openBlock(),t.createElementBlock("div",Fst,o[3]||(o[3]=[t.createElementVNode("div",{class:"overlay-loading-top__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),t.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1)]))):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[o[4]||(o[4]=t.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),o[5]||(o[5]=t.createElementVNode("div",{class:"container-no-search-result-subtitle"},[t.createTextVNode(" No existen resultados para este tipo de"),t.createElementVNode("br"),t.createTextVNode(" jugada, considerando el torneo y otros"),t.createElementVNode("br"),t.createTextVNode(" filtros que has seleccionado. ")],-1))],64))]))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(a,{background:"#183143",type:s.typeTable},null,8,["type"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v.topData,(_,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_,(x,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:u},[t.createVNode(r,{"type-data":s.typeData,"team-widget":s.teamWidget,game:s.game,type:s.typeTable,"type-view":s.type,"can-play-videos":s.canPlayVideos,"is-expanded":e.playerexpand==x.id&&e.expand,onMediadata:o[2]||(o[2]=n=>v.emitEventMediaFullTable(n,s.category,s.categoryName)),data:s.typeTable==0?{position:x.top,player_name:x.name,player_short:x.name_short,player_photo:x.img,total:x.total,id:x.id,player_age:x.age,team_abrev:x.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+x.teamid+".png",player_position:x.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+x.country+".jpg",player_games:x.games,player_min:x.minutes,league_name:" Liga MX "}:{position:x.positiontable,team_logo:x.img,team_abrev:x.name,frequency:x.frecuency,promthistournament:x.game_avg,promlasttournament:x.game_avg_last_season,category:s.category,team_games:x.games_played,total:x.total,id:x.id},height:"71px",background:((y+1)*5+u)%2===0?s.backgroundOdd:s.backgroundEven,onExpand:v.clickexpand},null,8,["type-data","team-widget","game","type","type-view","can-play-videos","is-expanded","data","background","onExpand"]),e.expand&&e.playerexpand==x.id?(t.openBlock(),t.createBlock(b,{key:0,type:s.typeTable,"is-live":s.game.is_live,additionalClass:"fullTable","view-effectiveness":x.positionId!==1,data:s.typeTable==0?{teams:x.teamname,age:x.age,dataofbirth:x.date,nationality:x.nationality,countryFlag:x.player_country_flag,position:x.positionfull,positionfull:x.positionfull,games:x.games,min:x.minutes,goals:x.total,effectiveness:x.effectiveness,category:v.getCategoryName(s.category),id:x.id}:{position:x.positiontable,goals:x.goals,goals_received:x.goalsrecived,games_played:x.games_played,category:s.categoryName,effectiveness:x.effectiveness,xg:x.xg,total:x.total,category:v.getCategoryName(s.category),attendance:"-",id:x.id},onViewprofile:n=>v.viewprofile(n,x.teamid),background:u%2===0?s.backgroundEven:s.backgroundOdd},null,8,["type","is-live","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))],64))),128))],64))],512)],2)}const Vst=$i(_k,[["render",Rst],["__scopeId","data-v-0b419ca1"]]),jst=(e,o)=>{const s=e.__vccOpts||e;for(const[z,W]of o)s[z]=W;return s},Ust={props:{id:Number,textValue:String,icon:String,numFilter:Number,iconVisible:{type:Boolean,default:!0},activeClickLabel:{type:Boolean,default:!1},height:{type:String,default:"35px"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderColor:String,backgroundColor:{type:String,default:"#23303B"},fontSize:{type:String,default:"13px"},fontColor:{type:String,default:"#FFFFFF"},fontFamily:{type:String,default:"Poppins-Regular"},iconSize:{type:String,default:"20px"}},computed:{customStyle(){return{height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,cursor:this.cursorType,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}},customIcon(){return{width:this.iconSize}}},methods:{btnLabel(){this.$emit("clickLabel",this.id)},btnClose(){this.$emit("clickClose",this.id)}}},Gst=["src"],Hst=["src"];function Zst(e,o,s,z,W,v){return t.openBlock(),t.createElementBlock("div",null,[s.activeClickLabel?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(v.customStyle),class:"gsc-label",onClick:o[0]||(o[0]=(...g)=>v.btnLabel&&v.btnLabel(...g))},[t.createTextVNode(t.toDisplayString(s.numFilter)+" "+t.toDisplayString(s.textValue)+" ",1),s.iconVisible?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(v.customIcon),class:"icon",src:s.icon},null,12,Gst)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-label",style:t.normalizeStyle(v.customStyle)},[t.createTextVNode(t.toDisplayString(s.numFilter)+" "+t.toDisplayString(s.textValue)+" ",1),s.iconVisible?(t.openBlock(),t.createElementBlock("img",{key:0,onClick:o[1]||(o[1]=(...g)=>v.btnClose&&v.btnClose(...g)),style:t.normalizeStyle(v.customIcon),class:"icon",src:s.icon},null,12,Hst)):t.createCommentVNode("",!0)],4))])}const Wst=jst(Ust,[["render",Zst],["__scopeId","data-v-42ff544a"]]);function Xst(e){const o=t.ref({width:0,height:0});function s(){const z=e.value.getBoundingClientRect();o.value.width=z.width,o.value.height=z.height}return t.onMounted(()=>{s(),window.addEventListener("resize",s)}),t.onUnmounted(()=>{window.removeEventListener("resize",s)}),{elementSize:o}}const qst=(e,o)=>{const s=e.__vccOpts||e;for(const[z,W]of o)s[z]=W;return s},wk={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,o=this.$refs.content.scrollWidth;o>0&&e>0&&(o>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},OF=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},zF=wk.setup;wk.setup=zF?(e,o)=>(OF(),zF(e,o)):OF;const Yst={ref:"gscScrollableContainer",class:"scrollable-container"},Jst={class:"scrollable-arrows"},$st=["width","height","viewBox"],Kst=["stroke"],Qst={class:"scrollable-wrapper"},elt={class:"scrollable-arrows"},tlt=["width","height","viewBox"],alt=["stroke"];function rlt(e,o,s,z,W,v){return t.openBlock(),t.createElementBlock("div",Yst,[s.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",v.hideShowLeftArrow]),onClick:o[0]||(o[0]=(...g)=>v.scrollLeft&&v.scrollLeft(...g))},[t.createElementVNode("div",Jst,[(t.openBlock(),t.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:v.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:s.arrowsColor},null,8,Kst)],8,$st))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:o[1]||(o[1]=(...g)=>v.getScroll&&v.getScroll(...g))},[t.createElementVNode("div",Qst,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),s.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",v.hideShowRightArrow]),onClick:o[2]||(o[2]=(...g)=>v.scrollRight&&v.scrollRight(...g))},[t.createElementVNode("div",elt,[(t.openBlock(),t.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:v.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:s.arrowsColor},null,8,alt)],8,tlt))])],2)):t.createCommentVNode("",!0)],512)}const nlt=qst(wk,[["render",rlt],["__scopeId","data-v-b548a08d"]]),ilt=(e,o)=>{const s=e.__vccOpts||e;for(const[z,W]of o)s[z]=W;return s},kk={components:{GSCSlider:nlt},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=t.ref("myDivRef"),{elementSize:o}=Xst(e);return{myDivRef:e,elementSize:o}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var o={};return e.width>768?o={fontSize:"16px"}:e.width>480?o={fontSize:"14px"}:o={fontSize:"12px"},o}}},NF=()=>{t.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},DF=kk.setup;kk.setup=DF?(e,o)=>(NF(),DF(e,o)):NF;const olt={ref:"myDivRef"},slt={key:0,class:"gs-switch-container"},llt=["onClick"],clt={key:1,class:"gs-switch-container-type"},ult=["onClick"],dlt={key:2,class:"gs-switch-container-carousel"},hlt=["onClick"];function plt(e,o,s,z,W,v){const g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",olt,[s.type==0?(t.openBlock(),t.createElementBlock("div",slt,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([v.customGrid(z.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.buttons,(r,b)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:s.height},s.selectedOption==r?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:b,onClick:d=>(s.selectedOption=r,v.clickEmitEvent(r))},t.toDisplayString(r),13,llt))),128))],4),t.renderSlot(e.$slots,s.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),s.type==1?(t.openBlock(),t.createElementBlock("div",clt,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([v.customGrid(z.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.buttons,(r,b)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:s.height},s.selectedOption==r?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:s.backgroundOptionDisable}]),key:b,onClick:d=>(s.selectedOption=r,v.clickEmitEvent(r))},t.toDisplayString(r),13,ult))),128))],4)])):t.createCommentVNode("",!0),s.type==2?(t.openBlock(),t.createElementBlock("div",dlt,[t.createVNode(g,{arrows:s.arrow,"background-color":s.background,"px-scroll":s.pxScroll,"scroll-color":s.scrollColor,"arrows-position":s.arrowsPosition,arrowsScrollHide:s.arrowsScrollHide,"arrows-background":s.arrowsBackground,"arrows-container-bg-l":s.arrowsContainerBgL,"arrows-container-bg-r":s.arrowsContainerBgR,"arrows-margin":s.arrowsMargin,"arrows-radius":s.arrowsRadius,"arrows-border":s.arrowsBorder},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.buttons,(r,b)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:s.height},s.selectedOption==r?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:b,onClick:d=>(s.selectedOption=r,v.clickEmitEvent(r))},t.toDisplayString(r),13,hlt))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):t.createCommentVNode("",!0)],512)}const Sk=ilt(kk,[["render",plt],["__scopeId","data-v-8a86dfaf"]]),aqt="",rqt="";function flt(){return{backgroundColor:"#2e3b46",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"5px 12px",textFontFamily:"'Poppins-Regular'"}}const nqt="",mlt={comfiltersContainer:"_comfiltersContainer_xl2as_1",comfiltersContainer1232:"_comfiltersContainer1232_xl2as_1",closeFiltersPc:"_closeFiltersPc_xl2as_1",comtextleyemdmultipleleagues:"_comtextleyemdmultipleleagues_xl2as_1",comtextleyemdmultipleleagues380:"_comtextleyemdmultipleleagues380_xl2as_1",comfiltersContainer760:"_comfiltersContainer760_xl2as_1",comfiltersContainer460:"_comfiltersContainer460_xl2as_1",comcontainerSection:"_comcontainerSection_xl2as_1",comcontainerSection1232:"_comcontainerSection1232_xl2as_1",comcontainerSection960:"_comcontainerSection960_xl2as_1",comcontainerSection320:"_comcontainerSection320_xl2as_1",comcontainerSection350:"_comcontainerSection350_xl2as_1",comtemplateLosMejores1:"_comtemplateLosMejores1_xl2as_1",comtemplateLosMejores11232:"_comtemplateLosMejores11232_xl2as_1",comtemplateLosMejores1960:"_comtemplateLosMejores1960_xl2as_1",comtemplateLosMejores1420:"_comtemplateLosMejores1420_xl2as_1",comtemplateLosMejores1320:"_comtemplateLosMejores1320_xl2as_1",comtemplateLosMejores1540:"_comtemplateLosMejores1540_xl2as_1",comtemplateLosMejores1350:"_comtemplateLosMejores1350_xl2as_1",comtopFiltersParent:"_comtopFiltersParent_xl2as_1",comtopFiltersParent1232:"_comtopFiltersParent1232_xl2as_1",comtopFiltersParent960:"_comtopFiltersParent960_xl2as_1",comtopFiltersParent460:"_comtopFiltersParent460_xl2as_1",comtopFiltersParent420:"_comtopFiltersParent420_xl2as_1",comcontainerTheBest:"_comcontainerTheBest_xl2as_1",comcontainerTheBest1232:"_comcontainerTheBest1232_xl2as_1",comcontainerTheBest960:"_comcontainerTheBest960_xl2as_1",comcontainerTheBest320:"_comcontainerTheBest320_xl2as_1",comtitleSection:"_comtitleSection_xl2as_1",comtitleSection540:"_comtitleSection540_xl2as_1",comcontainerTables:"_comcontainerTables_xl2as_1",comcontainerTables960:"_comcontainerTables960_xl2as_1",comcontainerTables760:"_comcontainerTables760_xl2as_1",comcontainerTables320:"_comcontainerTables320_xl2as_1",comtoniKroosWrapper:"_comtoniKroosWrapper_xl2as_1",comtoniKroosWrapper1080:"_comtoniKroosWrapper1080_xl2as_1",comtoniKroosWrapper975:"_comtoniKroosWrapper975_xl2as_1",comtoniKroosWrapper760:"_comtoniKroosWrapper760_xl2as_1",comtoniKroosWrapper420:"_comtoniKroosWrapper420_xl2as_1",comtoniKroosWrapper320:"_comtoniKroosWrapper320_xl2as_1",frameChild:"_frameChild_xl2as_1",filtros:"_filtros_xl2as_1",groupParent:"_groupParent_xl2as_1",shapeIcon:"_shapeIcon_xl2as_1",btnFilters:"_btnFilters_xl2as_1",btnFiltersPC:"_btnFiltersPC_xl2as_1",comquitarFiltros:"_comquitarFiltros_xl2as_1",comquitarFiltros730:"_comquitarFiltros730_xl2as_1",comquitarFiltros480:"_comquitarFiltros480_xl2as_1",comquitarFiltros380:"_comquitarFiltros380_xl2as_1",btnCloseFilters:"_btnCloseFilters_xl2as_1",commejoresJugadores:"_commejoresJugadores_xl2as_1",commejoresJugadores730:"_commejoresJugadores730_xl2as_1",commejoresJugadores480:"_commejoresJugadores480_xl2as_1",mejoresJugadoresSM:"_mejoresJugadoresSM_xl2as_1",toniKroos:"_toniKroos_xl2as_1",teamBar:"_teamBar_xl2as_1",commenuSection:"_commenuSection_xl2as_1",commenuSection960:"_commenuSection960_xl2as_1",comcontainerMenu:"_comcontainerMenu_xl2as_1",comcontainerMenu760:"_comcontainerMenu760_xl2as_1",containerFilters:"_containerFilters_xl2as_1",teamBarParent:"_teamBarParent_xl2as_1",comtopFilters:"_comtopFilters_xl2as_1",comtopFilters1232:"_comtopFilters1232_xl2as_1",comtopFilters420:"_comtopFilters420_xl2as_1",comtopFilters460:"_comtopFilters460_xl2as_1",comlosMejores:"_comlosMejores_xl2as_1",comlosMejores380:"_comlosMejores380_xl2as_1",comlosMejores530:"_comlosMejores530_xl2as_1",comlosMejores730:"_comlosMejores730_xl2as_1",commenuSectionHeader:"_commenuSectionHeader_xl2as_1",commenuSectionHeader1232:"_commenuSectionHeader1232_xl2as_1",commenuSectionHeader960:"_commenuSectionHeader960_xl2as_1",commenuSectionHeader730:"_commenuSectionHeader730_xl2as_1",comdropdown:"_comdropdown_xl2as_1",comdropdown730:"_comdropdown730_xl2as_1",comdropdown1:"_comdropdown1_xl2as_1",comdropdown1730:"_comdropdown1730_xl2as_1",comdropdownParent:"_comdropdownParent_xl2as_1",comdropdownParent730:"_comdropdownParent730_xl2as_1",commenuSectionParentHeader:"_commenuSectionParentHeader_xl2as_1",commenuSectionParentHeader1232:"_commenuSectionParentHeader1232_xl2as_1",commenuSectionParentHeader960:"_commenuSectionParentHeader960_xl2as_1",commenuSectionParentHeader730:"_commenuSectionParentHeader730_xl2as_1",commenuSectionParentHeader430:"_commenuSectionParentHeader430_xl2as_1",comdescubreVideos:"_comdescubreVideos_xl2as_1",comdescubreVideos1232:"_comdescubreVideos1232_xl2as_1",comdescubreVideos960:"_comdescubreVideos960_xl2as_1",allCategories:"_allCategories_xl2as_1",containerScountingBtncom:"_containerScountingBtncom_xl2as_3",btnDeleteAplicacom:"_btnDeleteAplicacom_xl2as_13",SearchBtnBarcom:"_SearchBtnBarcom_xl2as_33",btnLeyendTxtcom:"_btnLeyendTxtcom_xl2as_52",BtnSearchScountingcom:"_BtnSearchScountingcom_xl2as_61",containerPredefinedcom:"_containerPredefinedcom_xl2as_85",containerPredefinedScountingcom:"_containerPredefinedScountingcom_xl2as_92",titleContainerPredefinedcom:"_titleContainerPredefinedcom_xl2as_100",subtitleContainerPredefinedcom:"_subtitleContainerPredefinedcom_xl2as_111"},glt=t.ref(flt()),ylt={components:{GSCTableHeader:uF,GscSwitchComponent:Sk,GSCFilterperteam:Mot,GSCFilters:qD,GSCExpandedInfo:EF,GSCLabel:Wst,GSCSeasonSelect:ZT,GSCTopCategory:Vst,GSCTournamentSelect:UT,GSCRowTable:gF},computed:{...Nit.computed,filterChangePredefined(){return this.filtersPredefinedF},filterChange(){const e={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.fVnationalities,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},o=JSON.stringify(e);if(JSON.stringify(this.filters)!=o)return o},filterGolstats(){return this.FVfilterGolstats},filterButtonProps(){return{...glt.value}}},props:{timeLiveComparativeAvanced:{type:Number,default:6e4},currentSeasonId:{type:Number,default:0},typeData:{type:Number,default:1},canPlayVideos:{type:Boolean,default:!1},teamId:{type:Number,default:0},gameId:{type:Number,default:0},isWidget:{type:Boolean,default:!1},seasonSelected:{type:Object,default:()=>({})},teamWidget:{type:Number,default:0},game:{type:Object,default:()=>({})},teamselect:{type:Number,default:0},seasonActive:{type:Number,default:0},defaultSection:{type:String,default:"Jugadores"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},tournamentsApiUrl:{type:String,default:""},isFemaleMode:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const e=await this.fetchTeams();for(let o=0;o<e.teams.length;o++)this.teams.push({id:e.teams[o].team_id,team:e.teams[o].colloquial_name,logo:e.teams[o].logo})}}},setup(){const e=t.ref("myDivRefTopsFull"),{elementSize:o}=Wv(e);return{myDivRefTopsFull:e,elementSize:o}},data(){return{elegibilidadArray:[],updateFilterTeamsScouting:0,modifidFiltersFlag:!1,showfiltersPc:!1,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,o)=>o+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],filterScounting:{tournaments:[1],seasonId:0,categories:[{name:"Goles",ids:[12]},{name:"Asistencias",ids:[10]},{name:"Participaciones en gol",ids:[27]},{name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",ids:[91,95,92,93,96,97]}],range_age:[10,40],age_or_year:1,year:1989,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],elegibles:[],minutes_played:211,minutes_played_avg:40,last_months:12,type_stats:1,positions:[1,2,3,4,5,6,7,8,9,10],fouls:!1,yellow_cards:!1,red_cards:!1},expand:!1,playerexpand:0,arrayFiltersPlays:[],filtersPredefinedF:{},categoryPredefinedActive:!1,categoryPredefined:0,typeTable:0,keyUpdateFilter:0,loadingActive:!1,isTeam:!1,arrayPredefinedFilters:[],arrayCategoryFilter:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],arrayCategoryFilterFull:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],FVsetAvailableNationalTeamsPlayersIds:new Set,showOnlyCategories:!1,showFullCategory:0,categoryName:"",showFullTable:!1,expansionPanelModePropsTypePlays:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",width:"400px",maxWidth:"400px"},expansionPanelProps:{width:"400px",borderRadius:"8px"},fieldComponentProps:{widthContainer:"400px"}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"'Poppins-Regular'"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"270px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},filters:{zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},detailsObject:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{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}]},nameLeagueSelected:"",categoriesPlaysTypes:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},categoriesDefault:[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Pases acertados",isSelected:!1},{id:23,name:"Tiros de Esquina",isSelected:!1},{id:3,name:"Balones recuperados en disputa",isSelected:!1},{id:4,name:"Asistencias",isSelected:!1},{id:5,name:"Participaciones en gol",isSelected:!1},{id:6,name:"Tiros a gol",isSelected:!1},{id:7,name:"Tiros a gol que llegaron a la portería",isSelected:!1},{id:8,name:"Cabeceos en área rival",isSelected:!1},{id:9,name:"Cabeceos en área propia",isSelected:!1},{id:10,name:"Centros",isSelected:!1},{id:11,name:"Centros acertados",isSelected:!1},{id:12,name:"1vs1 exitosos ofensivos",isSelected:!1},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol",isSelected:!1},{id:14,name:"1vs1 defensivos exitoso",isSelected:!1},{id:15,name:"Rechaces",isSelected:!1},{id:16,name:"Balones ganados en área propia",isSelected:!1},{id:17,name:"Balones ganados en área rival",isSelected:!1},{id:18,name:"Faltas cometidas",isSelected:!1},{id:19,name:"Faltas recibidas",isSelected:!1},{id:20,name:"Tarjetas amarillas",isSelected:!1},{id:21,name:"Tarjetas rojas",isSelected:!1},{id:22,name:"Atajadas",isSelected:!1}],seasonsFilterSelected:0,tournamentsToFilter:[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1772,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1777,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1776,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1785,type:0}]},{name:"Sub-18",logo:null,isSelected:!0,id:1096,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1782,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1751}],id:1714,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1593}],id:1543,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1522}],id:1487,type:0}]},{name:"Sub-16",logo:null,isSelected:!0,id:1095,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1783,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1750}],id:1715,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1652}],id:1541,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1527}],id:1488,type:0}]}],isCup:!1,arrayPredefinedOrigin:[],indexPredefinedFiltersSelected:0,predefinedFiltersMatchLapse:[],predefinedFiltersPlayingAs:[],predefinedFiltersSections:[],updateTables:0,updateTablesfull:0,optionSelected:"Jugadores",optionSelectedSubmenu:"Todas las jugadas",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",teamsUrl:"https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/",urlFilter:"https://cqqxaonvm6.execute-api.us-east-2.amazonaws.com/prod/gs2/tops/filters?categories=",retries:3,teams:[],updateFilterGolstats:0,updateFilterPlaytypesGolstats:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],updateFilterTeamsScouting:0,filtersTypes:Jr,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVnationalities:new Set,fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],fVplayingAs:[1,2],fVsections:[1,2,3,4,5,6],fVmatchResult:[1,2,3],fVarrayAgeRange:[10,40],FVeligible:[],FVYear:1900,keyTournamentValue:0,fVtypeZone:2,fVsetPositionsIds:[1,2,3,4,5,6,7,8,9],currentIndex:-1,delay:800,teamselectrec:0,tournamentSelected:0,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,rowScoutingData:[],openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{}}},methods:{getnameshort(e){var o=e.split(","),s=o[0].split(" "),z=o[1].trim().split(" "),W="";s.length==2||s.length==1?s[0].length<4?W=s[0]+" "+s[1]:W=s[0]:s.length==3?W=s[0]+" "+s[1]:s.length==4&&(W=s[1]+" "+s[2]+" "+s[3]);var v=z[z.length-1]!=""?z[z.length-1].charAt(0):z[z.length-2]?z[z.length-2].charAt(0):"";return W=W.replace(",",""),v+". "+W},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(e=>{const o=e.id===this.selectedTournament.id;e.isSelected=o,e.isDefaultTournament=o})},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let z=0;z<this.detaildProductivityCategories.offensive.categories.length;z++)this.detaildProductivityCategories.offensive.categories[z].isSelected=!1;for(let z=0;z<this.detaildProductivityCategories.defensive.categories.length;z++)this.detaildProductivityCategories.defensive.categories[z].isSelected=!1;for(let z=0;z<this.detaildProductivityCategories.possession.categories.length;z++)this.detaildProductivityCategories.possession.categories[z].isSelected=!1;for(let z=0;z<this.detaildProductivityCategories.offensesConditions.length;z++)this.detaildProductivityCategories.offensesConditions[z]=!1;this.setUpTournamentsToFilter();const o=this.$refs.personalDataFilter;o.clearFilters(Ru.All),o.clearFilters(Ru.AGE_RANGE),o.clearFilters(Ru.YEAR),o.clearFilters(Ru.NATIONALITY),o.clearFilters(Ru.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(z,W)=>W+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var e=this.arrayFiltersPlays.findIndex(z=>z.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(e,1);const s=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let z=0;z<s.teams.length;z++)this.teamsscouting.push({id:s.teams[z].team_id,team:s.teams[z].colloquial_name,logo:s.teams[z].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200)}},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(e){this.seasonActive!==e.id&&(this.seasonActive=e.id,this.resetPredefinedTeamAll(),this.$emit("change-season-id",e.id))},changeTournament(e){e.id!==this.selectedTournament.id&&(this.selectedTournament=e,this.tournamentSelectedObj={propName:"id",value:e.id},this.teamselect=0,this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},changeTournamentMovil(e){this.tournamentSelectedObj={propName:"id",value:e.id},this.seasonBytournament=e.seasons,this.teamselect=0},selectedSeasonMovil(e){this.seasonActive=e.id},setRelevantCategoriesPlayer(e){return e===1?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]},setOpenMedia(e){this.$emit("openmedia",e)},setMediaData(e){let W=[e.id],v=e.team_id;const g={seasonId:e.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:W,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(e.position),teamId:v||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};this.$emit("openmedia",g)},clickprofile(e){e.isTeam?this.$emit("openProfileTeam",{teamId:e.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:e.id,teamId:e.teamId,seasonId:this.seasonActive})},viewprofile(e,o,s){this.$emit("openProfilePlayer",{playerId:e,teamId:s,seasonId:o||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const e=bu.create({headers:{Authorization:`${this.token}`}}),{data:o}=await e.post("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var s=this.arrayFiltersPlays.findIndex(W=>W.type==="onFiltersTournaments");s!==-1?this.arrayFiltersPlays[s].name=this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX":this.arrayFiltersPlays.push({name:this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX",type:"onFiltersTournaments"})}this.rowScoutingData=[];for(let W=0;W<o.length;W++){o[W];let g=o[W].dob.split("T")[0].split("-");var z={position:W+1,player_name:this.abrevName(o[W].name),player_photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+o[W].player_id+".png",total:o[W].total.toFixed(0),id:o[W].player_id,player_age:this.calcularEdad(o[W].dob),team_abrev:o[W].teams[0].acronym,team_name:o[W].teams[0].team_name,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+o[W].teams[0].team_id+".png",player_position:o[W].position_id,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+o[W].nationality_id+".jpg",date:g[2]+"."+g[1]+"."+g[0].substring(2,4),team_id:o[W].team_id,nationality_name:IF[o[W].nationality_id],player_games:o[W].games_played,player_min:o[W].minutes_played,league_name:o[W].tournament_name,seasons:o[W].seasons,season_id:o[W].seasons[0]};this.rowScoutingData.push(z)}if(this.seasonsFilterSelected!=0){const W=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let v=0;v<W.teams.length;v++)this.teamsscouting.push({id:W.teams[v].team_id,team:W.teams[v].colloquial_name,logo:W.teams[v].logo})}this.loadingActive=!1},abrevName(e){var o=e.split(","),s=o[0].split(" "),z=o[1].trim().split(" "),W="";s.length==2||s.length==1?s[0].length<4?W=s[0]+" "+s[1]:W=s[0]:s.length==3?W=s[0]+" "+s[1]:s.length==4&&(W=s[1]+" "+s[2]+" "+s[3]);var v=z[z.length-1]!=""?z[z.length-1].charAt(0):z[z.length-2]?z[z.length-2].charAt(0):"";W=W.replace(",","");var g=v+". "+W;return g},calcularEdad(e){var o=new Date(e),s=new Date,z=s-o,W=Math.floor(z/(1e3*60*60*24*365.25));return W},async onFiltersTournaments(e){this.modifidFiltersFlag=!0;var o=[];for(let s=0;s<e.length;s++)e[s].isSelected&&o.push(e[s].id);if(o.length==0&&(o=[1]),o.length==1)for(let s=0;s<e.length;s++)e[s].isSelected&&(this.nameLeagueSelected=e[s].name,this.seasonsFilterSelected=e[s].seasons[0].id);else this.seasonsFilterSelected=0,o.length>0&&(this.nameLeagueSelected=o.length+" Ligas");this.filterScounting.tournaments=o,this.filterScounting.seasonId=e[0].seasons[0].id},onFiltersPersonalData(e){if(this.modifidFiltersFlag=!0,e.hasOwnProperty("ageByRange")){const z=e.ageByRange.min==0?10:e.ageByRange.min,W=e.ageByRange.max==0?40:e.ageByRange.max;this.filterScounting.range_age=[z,W],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];e.hasOwnProperty("year")?(this.filterScounting.year=e.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var o=[];if(e.hasOwnProperty("nationalities")){for(let z=0;z<e.nationalities.length;z++)e.nationalities[z].isSelected&&o.push(e.nationalities[z].id);o.length==0&&(o=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filterScounting.elegibles=[],e.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[e.eligibility[0].id]);var s=[];for(let z=0;z<e.positions.length;z++)e.positions[z].isSelected&&s.push(e.positions[z].id);s.length==0&&(s=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=s,this.filterScounting.nationalities=o},onFiltersUniverse(e){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(e.minutesPlayed),this.filterScounting.last_months=Number(e.lastMonths),this.filterScounting.minutes_played_avg=Number(e.percentMinutesPlayed),this.filterScounting.type_stats=e.statistics.averagePerGame?3:e.statistics.averagePerMinute?2:1},onFiltersProductivity(e){this.modifidFiltersFlag=!0;var o=[];for(let s=0;s<e.productivityFilters.length;s++)o[e.productivityFilters[s].priority-1]={name:e.productivityFilters[s].name,ids:e.productivityFilters[s].id};o.length==0&&(o=[]),this.filterScounting.categories=o,this.filterScounting.fouls=e.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=e.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=e.offensesConditions.areRedCardsSelected},onFiltersGolStats(e){if(e.length>0){var o=this.arrayFiltersPlays.findIndex(z=>z.type==="onFiltersPredefined");o!==-1?this.arrayFiltersPlays[o].name=e[0].name:this.arrayFiltersPlays.push({name:e[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=e[0].filters}else{var s=this.arrayFiltersPlays.findIndex(z=>z.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&s!==-1){this.filtersPredefinedF=this.filters;for(let W=0;W<this.FVfilterGolstats.length;W++)this.FVfilterGolstats[W].isSelected=!1;var s=this.arrayFiltersPlays.findIndex(W=>W.type==="onFiltersPredefined");s!==-1&&this.arrayFiltersPlays.splice(s,1),this.updateFilterGolstats+=1}}},shouldRender(e){return e<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(e){if(e.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=e[0].id;var o=this.arrayFiltersPlays.findIndex(z=>z.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&o!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(o,1);var s=this.arrayFiltersPlays.findIndex(z=>z.type==="onFiltersPredefined");if(s!==-1){for(let z=0;z<this.FVfilterGolstats.length;z++)this.FVfilterGolstats[z].isSelected=!1;s!==-1&&this.arrayFiltersPlays.splice(s,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(e[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var o=this.arrayFiltersPlays.findIndex(W=>W.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&o!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(o,1);for(let v=0;v<this.categoriesDefault.length;v++)this.categoriesDefault[v].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var s=this.arrayFiltersPlays.findIndex(v=>v.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&s!==-1){for(let v=0;v<this.FVfilterGolstats.length;v++)this.FVfilterGolstats[v].isSelected=!1;s!==-1&&this.arrayFiltersPlays.splice(s,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(e){this.categoryName=e.categoryName,this.showFullCategory=e.category,this.showFullTable=!0,this.loadingActive=!0,setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,aux:this.getRandomNumber(1,1e4),booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(e,o){return Math.floor(Math.random()*(o-e+1))+e},applyFiltersBtn(e){},onFiltersPlays(e){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],e.playsCategories.length==0){for(let s=0;s<this.categoriesPlaysTypes.offensive.categories.length;s++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[s].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[s]);for(let s=0;s<this.categoriesPlaysTypes.defensive.categories.length;s++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[s].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[s]);for(let s=0;s<this.categoriesPlaysTypes.possession.categories.length;s++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[s].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[s]);for(let s=0;s<this.categoriesPlaysTypes.offenses.categories.length;s++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[s].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[s])}else for(let s=0;s<e.playsCategories.length;s++)e.playsCategories[s].isSelected&&(this.arrayCategoryFilter.push(e.playsCategories[s].id),this.arrayCategoryFilterFull.push(e.playsCategories[s]));var o=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?o!=-1?this.arrayFiltersPlays[o].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):o!=-1?this.arrayFiltersPlays[o].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):o!==-1&&this.arrayFiltersPlays.splice(o,1)},async deleteLabelFilter(e){var o=this.arrayFiltersPlays.findIndex(z=>z.type===e);if(o!==-1){if(e=="onFiltersTournaments"){this.rowScoutingData=[];for(let W=0;W<this.detaildProductivityCategories.offensive.categories.length;W++)this.detaildProductivityCategories.offensive.categories[W].isSelected=!1;for(let W=0;W<this.detaildProductivityCategories.defensive.categories.length;W++)this.detaildProductivityCategories.defensive.categories[W].isSelected=!1;for(let W=0;W<this.detaildProductivityCategories.possession.categories.length;W++)this.detaildProductivityCategories.possession.categories[W].isSelected=!1;for(let W=0;W<this.detaildProductivityCategories.offensesConditions.length;W++)this.detaildProductivityCategories.offensesConditions[W]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(W,v)=>v+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const z=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let W=0;W<z.teams.length;W++)this.teamsscouting.push({id:z.teams[W].team_id,team:z.teams[W].colloquial_name,logo:z.teams[W].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(e=="onFiltersPlays"){for(let z=0;z<this.categoriesPlaysTypes.offensive.categories.length;z++)this.categoriesPlaysTypes.offensive.categories[z].isSelected=!0;for(let z=0;z<this.categoriesPlaysTypes.defensive.categories.length;z++)this.categoriesPlaysTypes.defensive.categories[z].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[z]);for(let z=0;z<this.categoriesPlaysTypes.possession.categories.length;z++)this.categoriesPlaysTypes.possession.categories[z].isSelected=!0;for(let z=0;z<this.categoriesPlaysTypes.offenses.categories.length;z++)this.categoriesPlaysTypes.offenses.categories[z].isSelected=!0}if(e=="onFiltersField"&&(this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let z=0;z<this.FVfilterGolstats.length;z++)this.FVfilterGolstats[z].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(e=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var s=this.arrayFiltersPlays.findIndex(z=>z.type==="onFiltersPredefined");s!==-1&&this.arrayFiltersPlays.splice(s,1);for(let z=0;z<this.categoriesDefault.length;z++)this.categoriesDefault[z].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}e=="onFiltersDetailsTime"&&(this.detailsObject.gameSections[0].isSelected=!0,this.detailsObject.gameSections[1].isSelected=!0,this.detailsObject.gameSections[2].isSelected=!0,this.detailsObject.gameSections[3].isSelected=!0,this.detailsObject.gameSections[4].isSelected=!0,this.detailsObject.gameSections[5].isSelected=!0,this.fVsections=[1,2,3,4,5,6],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersDetailsPlayingAs"&&(this.detailsObject.playingAs[0].isSelected=!0,this.detailsObject.playingAs[1].isSelected=!0,this.fVplayingAs=[1,2],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersNationality"&&(this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(Ru.NATIONALITY)),e=="onFiltersPosition"&&(this.fVsetPositionsIds=[1,2,3,4,5,6,7,8,9],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(Ru.POSITION)),e=="onFiltersAge"&&(this.fVarrayAgeRange=[10,40],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(Ru.AGE_RANGE)),e=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(Ru.ELIGIBILITY),e=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(Ru.YEAR),this.FVYear=1900,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds})}this.arrayFiltersPlays.splice(o,1)},onFiltersField(e){e.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=e;var o=this.arrayFiltersPlays.findIndex(z=>z.type==="onFiltersField");o!=-1?this.arrayFiltersPlays[o].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},e.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(o!=-1?this.arrayFiltersPlays[o].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(o!=-1?this.arrayFiltersPlays[o].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(o!=-1?this.arrayFiltersPlays[o].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(o!=-1?this.arrayFiltersPlays[o].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(o!=-1?this.arrayFiltersPlays[o].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(o!=-1?this.arrayFiltersPlays[o].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(o,1)},addFilterPlayingAS(){var e=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersDetailsPlayingAs");e!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[e].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(e,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(e){var o=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var s=[];for(let v=0;v<e.playingAs.length;v++)if(e.playingAs[v].isSelected){const g=e.playingAs[v].name=="Local"?1:2;o.push(g)}for(let v=0;v<e.gameSections.length;v++)e.gameSections[v].isSelected&&s.push(e.gameSections[v].value);this.fVsections=s,this.fVplayingAs=o;var z=this.arrayFiltersPlays.findIndex(v=>v.type==="onFiltersDetailsTime"),W="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(W+=", 0-15"),this.fVsections.includes(2)&&(W+=", 15-30"),this.fVsections.includes(3)&&(W+=", 30-45"),this.fVsections.includes(4)&&(W+=", 45-60"),this.fVsections.includes(5)&&(W+=", 60-75"),this.fVsections.includes(6)&&(W+=", 75-90"),z!=-1?this.arrayFiltersPlays[z].name=W:this.arrayFiltersPlays.push({name:W,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(z!=-1?this.arrayFiltersPlays[z].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==3&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(z!=-1?this.arrayFiltersPlays[z].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(z!=-1?this.arrayFiltersPlays[z].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(3)&&(z!=-1?this.arrayFiltersPlays[z].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(4)&&(z!=-1?this.arrayFiltersPlays[z].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(6)&&(z!=-1?this.arrayFiltersPlays[z].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(z!=-1?this.arrayFiltersPlays[z].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(z!=-1?this.arrayFiltersPlays[z].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):z!=-1&&this.arrayFiltersPlays.splice(z,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(z,W)=>W+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;const e=this.$refs.personalDataFilter;e.clearFilters(Ru.All),e.clearFilters(Ru.AGE_RANGE),e.clearFilters(Ru.YEAR),e.clearFilters(Ru.NATIONALITY),e.clearFilters(Ru.POSITION),this.rowScoutingData=[];for(let z=0;z<this.detaildProductivityCategories.offensive.categories.length;z++)this.detaildProductivityCategories.offensive.categories[z].isSelected=!1;for(let z=0;z<this.detaildProductivityCategories.defensive.categories.length;z++)this.detaildProductivityCategories.defensive.categories[z].isSelected=!1;for(let z=0;z<this.detaildProductivityCategories.possession.categories.length;z++)this.detaildProductivityCategories.possession.categories[z].isSelected=!1;for(let z=0;z<this.detaildProductivityCategories.offensesConditions.length;z++)this.detaildProductivityCategories.offensesConditions[z]=!1;var o=this.arrayFiltersPlays.findIndex(z=>z.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(o,1),this.setUpTournamentsToFilter();const s=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let z=0;z<s.teams.length;z++)this.teamsscouting.push({id:s.teams[z].team_id,team:s.teams[z].colloquial_name,logo:s.teams[z].logo})},onFiltersData(e){var o=0,s=0;e.ageByRange&&(e.ageByRange.min==0?o=1:o=e.ageByRange.min,e.ageByRange.max==0?s=40:s=e.ageByRange.max,this.fVarrayAgeRange=[o,s]),e.year&&(this.FVYear=e.year),this.fVnationalities=new Set;let z="",W="";if(this.fVsetPositionsIds=[],e.hasOwnProperty("nationalities")){this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let y=0;y<e.nationalities.length;y++)e.nationalities[y].isSelected&&this.fVnationalities.add(e.nationalities[y].id)}if(this.FVeligible=[],e.hasOwnProperty("eligibility")){this.FVbooleanAreNationalTeamsVisible=!0;for(let y=0;y<this.elegibilidadArray.length;y++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[y])}for(let y=0;y<e.positions.length;y++)e.positions[y].isSelected&&this.fVsetPositionsIds.push(e.positions[y].id);if(e.hasOwnProperty("nationalities"))var v=e.nationalities.filter(y=>y.isSelected===!0);var g=e.positions.filter(y=>y.isSelected===!0);if(g.length==1&&(z=g[0].name),e.hasOwnProperty("nationalities")&&v.length==1&&(W=v[0].name),setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,elegible:this.FVeligible,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},1e3),this.FVbooleanAreNationalTeamsVisible){var r=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersElegibility");r!=-1?this.arrayFiltersPlays[r].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var r=this.arrayFiltersPlays.findIndex(x=>x.type==="onFiltersElegibility");this.arrayFiltersPlays.splice(r,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var b=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersPosition");b!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[b].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+z:this.arrayFiltersPlays.splice(b,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+z,type:"onFiltersPosition"})}if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var d=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersYear");d!=-1?this.arrayFiltersPlays[d].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(this.fVarrayAgeRange[0]>=e.ageLimits.min&&this.fVarrayAgeRange[1]<=e.ageLimits.max)if(this.fVarrayAgeRange[0]>e.ageLimits.min||this.fVarrayAgeRange[1]<e.ageLimits.max){var a=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersAge");a!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[a].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(a,1):this.arrayFiltersPlays.push({name:this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años",type:"onFiltersAge"})}else{var a=this.arrayFiltersPlays.findIndex(x=>x.type==="onFiltersAge");a!=-1&&this.arrayFiltersPlays.splice(a,1)}if(e.hasOwnProperty("nationalities")&&this.fVnationalities.size!=e.nationalities.length&&this.fVnationalities.size>0){var _=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersNationality");_!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[_].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+W:this.arrayFiltersPlays.splice(_,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+W,type:"onFiltersNationality"})}},clickAll(e){},clickAllAll(e){},clickTeam(e){},clickTeamScouting(e){},resetFilterTeamAndPlayers(){this.filters={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:this.FVYear,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set}},async changeTabsGeneral(e){if(this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=e,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0,e=="Equipos"&&(this.typeTable=1,this.isTeam=!0,this.updateTables+=1,this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetFilterTeamAndPlayers(),this.resetScouting()),e=="Jugadores"&&(this.typeTable=0,this.isTeam=!1,this.teamselect=0,this.updateTables+=1,this.rowScoutingData=[],this.resetFilterTeamAndPlayers(),this.resetScouting()),e=="Scouting"){this.rowScoutingData=[],this.teamselect=0,this.arrayFiltersPlays=[];const o=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let s=0;s<o.teams.length;s++)this.teamsscouting.push({id:o.teams[s].team_id,team:o.teams[s].colloquial_name,logo:o.teams[s].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}},resetPredefinedTeamAll(){var e=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&e!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(e,1);for(let s=0;s<this.categoriesDefault.length;s++)this.categoriesDefault[s].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var o=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");if(o!==-1){for(let s=0;s<this.FVfilterGolstats.length;s++)this.FVfilterGolstats[s].isSelected=!1;o!==-1&&this.arrayFiltersPlays.splice(o,1),this.updateFilterGolstats+=1}}},changeTabsSubmenu(e){e!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=e},async fetchTournaments(){const e=bu.create({headers:{Authorization:`${this.token}`}}),{data:o}=await e.get(this.tournamentsUrl);return o},async fetchTeams(){const e=bu.create({headers:{Authorization:`${this.token}`}}),{data:o}=await e.get(this.teamsUrl+this.seasonActive);return o},async fetchTeamsScouting(e){const o=bu.create({headers:{Authorization:`${this.token}`}}),{data:s}=await o.get(this.teamsUrl+e);return s},async getPredefinedfilters(e){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var o="";e.id==1?o=this.urlFilter:o=this.urlFilter;const s=bu.create({headers:{Authorization:`${this.token}`}}),{data:z}=await s.get(o+e.id);if(Object.keys(z[0].match_lapse_combinations).forEach(_=>{this.predefinedFiltersMatchLapse[_.toString()]=z[0].match_lapse_combinations[_]}),Object.keys(z[0].playing_as_combinations).forEach(_=>{this.predefinedFiltersPlayingAs[_.toString()]=z[0].playing_as_combinations[_]}),Object.keys(z[0].field_sections_combinations).forEach(_=>{this.predefinedFiltersSections[_.toString()]=z[0].field_sections_combinations[_]}),z[0]){for(let _=0;_<z[0].filter_records.length;_++){var W=z[0].description;if(z[0].filter_records[_].field_sections!==void 0){const x=z[0].filter_records[_].field_sections.toString();(this.predefinedFiltersSections[x]||this.predefinedFiltersSections[x]=="")&&(this.predefinedFiltersSections[x]==""?W=W.replace(" [en {field_sections}]",this.predefinedFiltersSections[x]):W=W.replace("{field_sections}",this.predefinedFiltersSections[x]))}if(z[0].filter_records[_].match_lapse!==void 0){const x=z[0].filter_records[_].match_lapse.toString();(this.predefinedFiltersMatchLapse[x]||this.predefinedFiltersMatchLapse[x]=="")&&(this.predefinedFiltersMatchLapse[x]==""?W=W.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[x]):W=W.replace("{match_lapse}",this.predefinedFiltersMatchLapse[x]))}if(z[0].filter_records[_].playing_as!==void 0){const x=z[0].filter_records[_].playing_as.toString();(this.predefinedFiltersPlayingAs[x]||this.predefinedFiltersPlayingAs[x]=="")&&(this.predefinedFiltersPlayingAs[x]==""?W=W.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[x]):W=W.replace("{playing_as}",this.predefinedFiltersPlayingAs[x]))}z[0].filter_records[_].section_type!==void 0&&(this.optionSelected=="Jugadores"?W=W.replace("{section_type}","Jugadores"):W=W.replace("{section_type}","Equipos")),W=W.replace(/\[/g,""),W=W.replace(/\]/g,""),W=W.replace("{category_name}",z[0].category_name);const y=W.split(": ");var v=y[1];v.length>129&&this.windowWidth>1358&&(v=v.substring(0,129),v=v+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||z[0].filter_records[_].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:_,category_name:e.name,id_category:z[0].id,title:y[0]+":",text:y[1],textOrigin:z[0].description,titledots:v,filtersPredefined:{matchResult:z[0].filter_records[_].match_result,playingAs:z[0].filter_records[_].playing_as,sections:z[0].filter_records[_].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:z[0].type_zone,zone:z[0].filter_records[_].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var g=[];for(let _=0;_<this.arrayPredefinedFilters.length;_++){var r=0,b=new Set,d={},a=this.arrayPredefinedFilters[_].text.replace(/\*.*?\*/,"");if(a=a.replace(/\*/g,""),a=a.replace(/ +/g," "),this.arrayPredefinedFilters[_].filtersPredefined.elegible.length>0&&(r+=1),(this.arrayPredefinedFilters[_].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[_].filtersPredefined.start_age.length!=0)&&(r+=1),this.arrayPredefinedFilters[_].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[_].filtersPredefined.start_age!=0?d.arrayAgeRange=[this.arrayPredefinedFilters[_].filtersPredefined.start_age,this.arrayPredefinedFilters[_].filtersPredefined.end_age]:this.arrayPredefinedFilters[_].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[_].filtersPredefined.start_age==0?d.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[_].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[_].filtersPredefined.end_age==0?d.arrayAgeRange=[this.arrayPredefinedFilters[_].filtersPredefined.start_age,60]:d.arrayAgeRange=[1,this.arrayPredefinedFilters[_].filtersPredefined.end_age],this.arrayPredefinedFilters[_].filtersPredefined.matchResult.length!=3&&(r+=1),d.matchResult=this.arrayPredefinedFilters[_].filtersPredefined.matchResult,this.arrayPredefinedFilters[_].filtersPredefined.nationalities.length>0&&(r+=1),this.arrayPredefinedFilters[_].filtersPredefined.nationalities.length!=0){for(let y=0;y<this.arrayPredefinedFilters[_].filtersPredefined.nationalities.length;y++)b.add(this.arrayPredefinedFilters[_].filtersPredefined.nationalities[y]);d.setNationalitiesIds=b}else b.add(138),b.add(222),b.add(163),b.add(51),b.add(226),b.add(10),b.add(223),b.add(96),b.add(171),b.add(198),b.add(105),b.add(80),b.add(29),b.add(74),b.add(216),b.add(196),b.add(64),b.add(155),b.add(156),b.add(89),b.add(106),b.add(81),b.add(233),b.add(204),d.setNationalitiesIds=b;this.arrayPredefinedFilters[_].filtersPredefined.playingAs.length!=2&&(r+=1),d.playingAs=this.arrayPredefinedFilters[_].filtersPredefined.playingAs,this.arrayPredefinedFilters[_].filtersPredefined.positions.length>0&&(r+=1),this.arrayPredefinedFilters[_].filtersPredefined.positions.length>0?d.setPositionsIds=this.arrayPredefinedFilters[_].filtersPredefined.positions:d.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[_].filtersPredefined.sections.length!=6&&(r+=1),this.arrayPredefinedFilters[_].filtersPredefined.sections.length>0?d.sections=this.arrayPredefinedFilters[_].filtersPredefined.sections:d.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[_].filtersPredefined.zone.length!=16&&(r+=1),this.arrayPredefinedFilters[_].filtersPredefined.zone.length>0?d.zone=this.arrayPredefinedFilters[_].filtersPredefined.zone:d.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],d.typeZone=this.arrayPredefinedFilters[_].filtersPredefined.typeZone,g.push({id:_+1,name:a,isSelected:!1,value:r,filters:d})}this.FVfilterGolstats=g,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var e=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const o=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((a,_)=>a-_).toString();this.predefinedFiltersSections[o]||this.predefinedFiltersSections[o]==""?this.predefinedFiltersSections[o]==""?e=e.replace(" [en {field_sections}]",this.predefinedFiltersSections[o]):e=e.replace("{field_sections}",this.predefinedFiltersSections[o]):e=e.replace("{field_sections}",this.predefinedFiltersSections.other);var s=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(e=e.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(s=!0,e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]","")):(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(s||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(e=e.replace("[de las posiciones seleccionadas]","")):e=e.replace("[de las posiciones seleccionadas]",""),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]",""));const z=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[z]||this.predefinedFiltersMatchLapse[z]=="")this.predefinedFiltersMatchLapse[z]==""?e=e.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[z]):e=e.replace("{match_lapse}",this.predefinedFiltersMatchLapse[z]);else{e=e.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var W="";z.includes(1)&&(W=W+"0-15, "),z.includes(2)&&(W=W+"16-30, "),z.includes(3)&&(W=W+"31-45, "),z.includes(4)&&(W=W+"46-60, "),z.includes(5)&&(W=W+"61-75, "),z.includes(6)&&(W=W+"76-90, "),W=W.slice(0,-2),W=W.replace(/,([^,]*)$/," y $1"),e=e.replace("{match_lapse_selected}",W)}const v=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[v]||this.predefinedFiltersPlayingAs[v]=="")&&(this.predefinedFiltersPlayingAs[v]==""?e=e.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[v]):e=e.replace("{playing_as}",this.predefinedFiltersPlayingAs[v])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?e=e.replace("{section_type}","Porteras"):e=e.replace("{section_type}","Jugadoras"):this.category.id==22?e=e.replace("{section_type}","Porteros"):e=e.replace("{section_type}","Jugadores"):e=e.replace("{section_type}","Equipos"),e=e.replace(/\[/g,""),e=e.replace(/\]/g,""),e=e.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const g=e.split(": ");let r=g[1].charAt(0).toUpperCase()+g[1].toLowerCase().slice(1),b=g[1].charAt(0).toUpperCase()+g[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=r,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=g[0]+":";const d=b.match(/\*/g);if(d&&d.length)if(d.length%2===0)for(let a=1;a<=d.length;a++)a%2===0||(b=b.replace("*",'<span style="color: #ffff03" >'));else b=b.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=b},intervalidtops(e){this.$emit("intervalidtops",e)}},mounted(){sessionStorage.getItem("sidpdfil")!==null&&sessionStorage.setItem("sidpdfil",0),this.renderNext(),this.teamId!==0&&this.optionSelected!=="Scouting"&&this.clickTeam(this.teamId),this.defaultSection!=="Jugadores"&&(this.defaultSection==="Scouting"&&this.selectedSeason(this.currentSeasonId),this.changeTabsGeneral(this.defaultSection))},async created(){try{const e=bu.create({headers:{"Content-Type":"application/json"}});e.interceptors.request.use(s=>(delete s.headers.Authorization,s));const o=await e.get("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",{headers:{"Content-Type":"application/json"}});this.elegibilidadArray=o.data,this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204)}catch(e){throw new Error(e)}}},vlt={ref:"myDivRefTopsFull"},blt={key:0,class:"overlay-loading"},xlt={key:0,class:"cont-leyemd-multipleleagues"},_lt={key:0,style:{"margin-left":"10px"}},wlt={key:3,style:{width:"100%",height:"295px"}};function klt(e,o,s,z,W,v){t.resolveComponent("GSCTournamentSelect"),t.resolveComponent("GSCSeasonSelect");const g=t.resolveComponent("GscSwitchComponent"),r=t.resolveComponent("GSCFilterperteam"),b=t.resolveComponent("GSCFilters"),d=t.resolveComponent("GSCLabel"),a=t.resolveComponent("GSCTopCategory"),_=t.resolveComponent("GSCTableHeader"),y=t.resolveComponent("GSCRowTable"),x=t.resolveComponent("GSCExpandedInfo");return t.openBlock(),t.createElementBlock("div",vlt,[W.loadingActive?(t.openBlock(),t.createElementBlock("div",blt,o[8]||(o[8]=[t.createElementVNode("div",{class:"overlay-loading__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),t.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1)]))):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.templateLosMejoresClass)},[t.createElementVNode("section",{class:t.normalizeClass(e.containerSectionClass),id:"container-section"},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.comdescubreVideosClass)},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionParentHeaderClass)},[t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersParentClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersClass),id:"top-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamBarParent)},[W.optionSelected!="Scouting"&&W.optionSelected!="Equipos"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[t.createVNode(r,{data:W.teams,"team-id":s.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:v.clickTeam,onClickAll:v.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerFilters),id:"container-filters",style:t.normalizeStyle(W.showfiltersPc?"":z.elementSize.width>760?"display: none;":"")},[t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionClass),id:"menu-section"},[z.elementSize.width>760&&W.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.closeFiltersPc),onClick:o[1]||(o[1]=(...u)=>v.clickCloseFilters&&v.clickCloseFilters(...u))},o[9]||(o[9]=[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1)]),2)):t.createCommentVNode("",!0),W.optionSelected!=="Scouting"?(t.openBlock(),t.createBlock(g,{key:1,type:2,buttons:["Todas las jugadas","Predeterminados"],"font-family":"Poppins-Regular","selected-option":W.optionSelectedSubmenu,"font-size":e.sizeTabsFontMS,width:e.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:v.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):t.createCommentVNode("",!0)],2),t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnCloseFilters),style:t.normalizeStyle(W.optionSelected==="Scouting"?"margin-top: 4%; margin-left: 1%":""),onClick:o[3]||(o[3]=(...u)=>v.openMenuFilters&&v.openMenuFilters(...u))},null,6),[[t.vShow,z.elementSize.width<760&&W.openMenuMobil]]),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.containerMenuClass),id:"container-menu"},[W.optionSelectedSubmenu=="Todas las jugadas"&&W.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[z.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.withDirectives(t.createVNode(b,t.mergeProps({"button-filter-props":v.filterButtonProps},z.elementSize.width<420?W.expansionPanelModePropsMobil270:z.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{"filter-type":W.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":v.onFiltersPlays,filters:W.categoriesPlaysTypes,onApply:v.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[t.vShow,!W.showFullTable]]),(t.openBlock(),t.createBlock(b,t.mergeProps({"button-filter-props":v.filterButtonProps},z.elementSize.width<420?W.expansionPanelModePropsMobil270:z.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{key:W.updateFilterField,"filter-type":W.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":v.onFiltersField,filters:W.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),t.createVNode(b,t.mergeProps({"button-filter-props":v.filterButtonProps},z.elementSize.width<420?W.expansionPanelModePropsMobil270:z.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{"filter-type":W.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":v.onFiltersDetails,filters:W.detailsObject}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]),W.optionSelected==="Jugadores"?(t.openBlock(),t.createBlock(b,t.mergeProps({key:0,ref:"personalDataFilterPlayers","button-filter-props":v.filterButtonProps},z.elementSize.width<420?W.expansionPanelModePropsMobil270:z.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{"filter-type":W.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:s.seasonActive,tournamentId:W.tournamentSelectedObj.value},token:W.token,"onUpdate:filters":v.onFiltersData}),null,16,["button-filter-props","filter-type","season","token","onUpdate:filters"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),W.optionSelected=="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[z.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(),t.createBlock(b,t.mergeProps({"button-filter-props":v.filterButtonProps},z.elementSize.width<420?W.expansionPanelModePropsMobil270:z.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{"filter-type":W.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:W.tournamentsToFilter,key:W.keyTournamentValue,"onUpdate:filters":v.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),t.createVNode(b,t.mergeProps({"button-filter-props":v.filterButtonProps},z.elementSize.width<420?W.expansionPanelModePropsMobil270:z.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{"filter-type":W.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:W.filterScounting.seasonId,tournamentId:W.filterScounting.tournaments[0]},ref:"personalDataFilter","onUpdate:filters":v.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","season","onUpdate:filters"]),t.createVNode(b,t.mergeProps({"button-filter-props":v.filterButtonProps},z.elementSize.width<420?W.expansionPanelModePropsMobil270:z.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{"filter-type":W.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:W.universeData,"onUpdate:filters":v.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),t.createVNode(b,t.mergeProps({"button-filter-props":v.filterButtonProps},z.elementSize.width<420?W.expansionPanelModePropsMobil270:z.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{"filter-type":W.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":v.onFiltersProductivity,filters:W.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.BtnSearchScountingcom),onClick:o[4]||(o[4]=(...u)=>v.getScoutingData&&v.getScoutingData(...u))},"Buscar",2)],64)):t.createCommentVNode("",!0),W.optionSelectedSubmenu=="Predeterminados"&&W.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[(t.openBlock(),t.createBlock(b,t.mergeProps({"button-filter-props":v.filterButtonProps,modalHeight:"300px"},z.elementSize.width<420?W.expansionPanelModePropsMobil270:z.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModePropsTypePlays,{"filter-type":W.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:W.updateFilterPlaytypesGolstats,"onUpdate:filters":v.onFiltersPlaysTypes,filters:W.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(t.openBlock(),t.createBlock(b,t.mergeProps({"button-filter-props":v.filterButtonProps,modalHeight:"300px"},z.elementSize.width<420?W.expansionPanelModePropsMobil270:z.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{"filter-type":W.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:W.updateFilterGolstats,"onUpdate:filters":v.onFiltersGolStats,filters:v.filterGolstats}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):t.createCommentVNode("",!0)],2),[[t.vShow,z.elementSize.width>760||W.openMenuMobil]]),W.optionSelected=="Scouting"?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[W.filterScounting.tournaments.length>1&&W.rowScoutingData.length>0?(t.openBlock(),t.createElementBlock("div",xlt,[o[10]||(o[10]=t.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1)),t.createElementVNode("div",{class:t.normalizeClass(e.comextleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(t.openBlock(),t.createBlock(r,{data:W.teamsscouting,"team-id":W.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:W.updateFilterTeamsScouting,onClickTeam:v.clickTeamScouting,onClickAll:v.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):t.createCommentVNode("",!0)],6)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.containerTheBestClass),id:"container-the-best"},[t.createElementVNode("div",{class:t.normalizeClass(e.titleSectionClass)},[W.optionSelectedSubmenu!="Predeterminados"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.commejoresJugadoresClass)},[W.arrayFiltersPlays.length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[W.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Mejores jugadores: ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores más productivos: ")],64))],64)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),W.optionSelected!="Scouting"&&W.optionSelectedSubmenu!="Predeterminados"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[W.showFullTable?(t.openBlock(),t.createElementBlock("div",_lt,[t.createVNode(d,{"text-value":"Categoría - "+W.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:v.deleteCategoryFilter,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.arrayFiltersPlays,(u,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,style:{"margin-left":"10px"}},[t.createVNode(d,{"text-value":u.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:v.deleteLabelFilter,id:u.type,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:z.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),W.rowScoutingData.length!=0||W.optionSelectedSubmenu=="Predeterminados"&&W.arrayFiltersPlays.findIndex(u=>u.type==="onFiltersPredefined")!==-1?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.comquitarFiltrosClass),onClick:o[5]||(o[5]=(...u)=>v.onClickDeleteFilter&&v.onClickDeleteFilter(...u))}," Quitar filtros ",2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2),s.seasonActive!=0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.containerTablesClass),id:"container-tables",style:t.normalizeStyle(W.showFullTable?"gap: 0px!important;":"")},[W.optionSelected!=="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[W.optionSelectedSubmenu=="Todas las jugadas"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.categoriesDefault,(u,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,style:t.normalizeStyle(!W.showOnlyCategories&&W.arrayCategoryFilter.includes(u.id)?"":"display:none !important;")},[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.toniKroosWrapperClass)},[(t.openBlock(),t.createBlock(a,{"is-widget":s.isWidget,"team-widget":s.teamWidget,"time-live-comparative-avanced":s.timeLiveComparativeAvanced,"is-team":W.isTeam,onMore:v.onShowFullTable,"border-width":0,onIntervalidtops:v.intervalidtops,"can-play-videos":s.canPlayVideos,"border-radius":"12px","game-id":s.gameId,game:s.game,typeData:s.typeData,"filters-prop":v.filterChange,category:u.id,"type-table":W.typeTable,categoryName:u.name,"season-selected":s.seasonSelected,season:s.seasonActive,"filter-team":s.teamselect,key:W.updateTables,onClickprofile:v.clickprofile,onSetopenmedia:v.setOpenMedia},null,8,["is-widget","team-widget","time-live-comparative-avanced","is-team","onMore","onIntervalidtops","can-play-videos","game-id","game","typeData","filters-prop","category","type-table","categoryName","season-selected","season","filter-team","onClickprofile","onSetopenmedia"]))],2),[[t.vShow,!W.showOnlyCategories&&W.arrayCategoryFilter.includes(u.id)&&!W.showFullTable]])],4))),128)),W.showFullTable?(t.openBlock(),t.createBlock(a,{"time-live-comparative-avanced":s.timeLiveComparativeAvanced,"is-team":W.isTeam,"is-widget":s.isWidget,"team-widget":s.teamWidget,"border-width":0,"border-radius":"12px","game-id":s.gameId,onIntervalidtops:v.intervalidtops,game:s.game,typeData:s.typeData,category:W.showFullCategory,type:1,"type-table":W.typeTable,categoryName:"","filters-prop":v.filterChange,"season-selected":s.seasonSelected,season:s.seasonActive,"filter-team":s.teamselect,key:W.updateTablesfull,onClickprofile:v.clickprofile,onSetopenmedia:v.setOpenMedia},null,8,["time-live-comparative-avanced","is-team","is-widget","team-widget","game-id","onIntervalidtops","game","typeData","category","type-table","filters-prop","season-selected","season","filter-team","onClickprofile","onSetopenmedia"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[W.categoryPredefinedActive?(t.openBlock(),t.createBlock(a,{"is-widget":s.isWidget,"team-widget":s.teamWidget,"is-team":W.isTeam,"time-live-comparative-avanced":s.timeLiveComparativeAvanced,onIntervalidtops:v.intervalidtops,"border-width":0,"border-radius":"12px","can-play-videos":s.canPlayVideos,"game-id":s.gameId,game:s.game,typeData:s.typeData,category:W.categoryPredefined,type:1,"type-table":W.typeTable,categoryName:"","filters-prop":v.filterChangePredefined,"season-selected":s.seasonSelected,season:s.seasonActive,"filter-team":s.teamselect,key:W.updateTables,onClickprofile:v.clickprofile,onSetopenmedia:v.setOpenMedia},null,8,["is-widget","team-widget","is-team","time-live-comparative-avanced","onIntervalidtops","can-play-videos","game-id","game","typeData","category","type-table","filters-prop","season-selected","season","filter-team","onClickprofile","onSetopenmedia"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedcom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.titleContainerPredefinedcom)},[W.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("No has seleccionado ningún filtro")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[W.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Para visualizar resultados selecciona un")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados con los filtros")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[W.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o[12]||(o[12]=t.createElementVNode("span",null,"Tipo de Jugada",-1)),o[13]||(o[13]=t.createTextVNode(" y un ")),o[14]||(o[14]=t.createElementVNode("span",null,"Filtro GolStats",-1)),o[15]||(o[15]=t.createTextVNode(" en la"))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("que has seleccionado.")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[W.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("parte superior.")],64)):t.createCommentVNode("",!0)],2)],2))],64))],64)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedScountingcom),style:t.normalizeStyle(W.rowScoutingData.length>0?"height: auto;":"")},[W.loadingActive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[W.rowScoutingData.length>0?(t.openBlock(),t.createBlock(_,{key:0,background:"#183143",type:2})):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.rowScoutingData,(u,n)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:n},[W.teamselectrec==0||W.teamselectrec==u.team_id?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(y,{type:2,"is-expanded":W.playerexpand==u.id&&W.expand,onMediadata:v.setMediaData,data:{position:u.position,player_name:u.player_name,player_photo:u.player_photo,total:u.total,id:u.id,player_age:u.player_age,team_abrev:u.team_abrev,team_logo:u.team_logo,player_position:W.positions[u.player_position-1].fullname,player_country_flag:u.player_country_flag,player_games:u.player_games,player_min:u.player_min,league_name:u.league_name,seasons:u.seasons,season_id:u.season_id},height:"71px",background:n%2===0?s.backgroundOdd:s.backgroundEven,onExpand:v.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),W.expand&&W.playerexpand==u.id?(t.openBlock(),t.createBlock(x,{key:0,type:0,"view-effectiveness":!1,viewGoals:!1,additionalClass:"fullTable",data:{teams:u.team_name,age:u.player_age,dataofbirth:u.date,nationality:u.nationality_name,countryFlag:u.player_country_flag,position:W.positions[u.player_position-1].name,games:u.player_games,min:u.player_min,goals:u.total,effectiveness:"-",category:"total",id:u.id},onViewprofile:i=>v.viewprofile(i,u.season_id,u.team_id),background:n%2===0?s.backgroundOdd:s.backgroundEven},null,8,["data","onViewprofile","background"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))),128))],64)),W.rowScoutingData.length==0&&!W.loadingActive?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.btnLeyendTxtcom)},' Haz click en "Buscar" para aplicar tus filtros ',2)):t.createCommentVNode("",!0),W.rowScoutingData.length==0&&!W.loadingActive?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.containerScountingBtncom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDeleteAplicacom),onClick:o[6]||(o[6]=(...u)=>v.onClickDeleteFilter&&v.onClickDeleteFilter(...u))}," Eliminar filtros aplicados ",2),W.rowScoutingData.length==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.SearchBtnBarcom),onClick:o[7]||(o[7]=(...u)=>v.getScoutingData&&v.getScoutingData(...u))}," Buscar ",2)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),W.loadingActive?(t.openBlock(),t.createElementBlock("div",wlt)):t.createCommentVNode("",!0)],6))],6)):t.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const Slt=$i(ylt,[["render",klt],["__cssModules",{$style:mlt}]]),$Yt="";let FF=null;const Tlt={components:{GSCDatosGSMain:zit,GSCCheckbox:S1,GSCRadioToggle:PN,GSCTopFull:Slt},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},timeLiveComparativeBestPlayers:{type:Number,default:6e4},timeLiveComparativeAvanced:{type:Number,default:6e4},seasonSelected:{type:Object,default:()=>({})},tournamentSelected:{type:Object,default:()=>({})},game:{type:Object,default:()=>{}},playVideosPrivileges:{type:Object,default:null},canPlayVideos:{type:Boolean,default:!1},isFemaleMode:{type:Boolean,default:!1}},data(){return{updateHomeCheck:0,updateAwayCheck:0,activeSection:"destacados",widthSection:0,teamactive:0,update:0,homeTeamCheck:!0,awayTeamCheck:!0,typeViewData:1}},watch:{game:{deep:!0,immediate:!0,handler(e){e&&(e.game_status==1||e.is_live==1||e.game_status==0?this.typeViewData=1:this.typeViewData=0),this.update+=1}}},computed:{},methods:{preventChange(e){e.preventDefault(),this.homeTeamCheck=!0},intervalidgs(e){this.$emit("intervalidgs",e)},onOpenProfileTeam(e){this.$emit("openProfileTeam",e)},intervalidtops(e){this.$emit("intervalidtops",e)},onOpenProfilePlayer(e){this.$emit("onOpenProfile",e)},ChangeRadio(e){typeof e=="string"&&(e==="Este partido"?this.typeViewData=1:this.typeViewData=0)},onCheckInactiveHome(e){e?(this.homeTeamCheck=!0,this.awayTeamCheck?this.teamactive=0:this.teamactive=this.game.homeTeam.team_id):this.awayTeamCheck?(this.homeTeamCheck=!1,this.teamactive=this.game.awayTeam.team_id):(this.updateHomeCheck+=1,this.homeTeamCheck=!0,this.teamactive=this.game.homeTeam.team_id)},onCheckInactiveAway(e){e?(this.awayTeamCheck=!0,this.homeTeamCheck?this.teamactive=0:this.teamactive=this.game.awayTeam.team_id):this.homeTeamCheck?(this.awayTeamCheck=!1,this.teamactive=this.game.homeTeam.team_id):(this.updateAwayCheck+=1,this.teamactive=this.game.awayTeam.team_id,this.awayTeamCheck=!0)},setUpResizeObserver(){if(window.ResizeObserver)FF=new ResizeObserver(()=>{this.widthSection=this.$refs.comparative.clientWidth}),FF.observe(this.$refs.comparative);else throw new Error("Resize observer not supported!")},clickOptSection(e){this.activeSection=e},openmedia(e){this.typeViewData===1?(e.gameIdsToFilter=[this.game.gameId],this.$emit("openmedia",e)):(e.isLiveAccumulated=!0,this.$emit("openmedia",e))}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},Clt={class:"container-comparative",ref:"comparative"},Elt={class:"container-btn"},Alt={class:"items-container-btn"},Mlt={class:"container-sections"},Plt={key:0,class:"container-teams-menu"},Ilt={class:"container-team-menu-home"},Llt=["src"],Blt={class:"container-team-menu-away"},Olt=["src"],zlt={key:1,class:"container-switch-menu"},Nlt={class:"container-leyend"},Dlt={class:"container-tops"};function Flt(e,o,s,z,W,v){const g=t.resolveComponent("GSCDatosGSMain"),r=t.resolveComponent("GSCCheckbox"),b=t.resolveComponent("GSCRadioToggle"),d=t.resolveComponent("GSCTopFull");return t.openBlock(),t.createElementBlock("div",Clt,[t.createElementVNode("div",Elt,[t.createElementVNode("div",Alt,[t.createElementVNode("div",{class:t.normalizeClass([W.widthSection>480?"btn-destacados":"btn-destacados-movil",W.activeSection=="destacados"?"active":""]),onClick:o[0]||(o[0]=a=>v.clickOptSection("destacados"))},[s.game.status==1||s.game.is_live==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[s.tournamentSelected.is_female==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Jugadoras destacadas")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores destacados")],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("General")],64))],2),t.createElementVNode("div",{class:t.normalizeClass([W.widthSection>480?"btn-avanced":"btn-avanced-movil",W.activeSection=="avanzado"?"active":""]),onClick:o[1]||(o[1]=a=>v.clickOptSection("avanzado"))}," Avanzado ",2)])]),t.createElementVNode("div",Mlt,[W.activeSection=="destacados"?(t.openBlock(),t.createBlock(g,{key:0,"is-widget":s.isWidget,"team-widget":s.teamWidget,"tournament-selected":s.tournamentSelected,"time-live-comparative-best-players":s.timeLiveComparativeBestPlayers,game:s.game,"play-videos-privileges":s.playVideosPrivileges,onOpenmedia:v.openmedia,onIntervalidgs:v.intervalidgs},null,8,["is-widget","team-widget","tournament-selected","time-live-comparative-best-players","game","play-videos-privileges","onOpenmedia","onIntervalidgs"])):t.createCommentVNode("",!0),W.activeSection=="avanzado"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.isWidget?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Plt,[t.createElementVNode("div",Ilt,[(t.openBlock(),t.createBlock(r,{fontFamily:"Poppins-Regular","onUpdate:modelValue":v.onCheckInactiveHome,"label-color":"#8c9399",width:"25",key:W.updateHomeCheck,"model-value":W.homeTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"])),t.createElementVNode("img",{class:"img-teams-selector-home",width:"23",src:s.game.homeTeam.logo},null,8,Llt),t.createElementVNode("div",{class:t.normalizeClass(W.widthSection>390?"label-team-home":"label-team-home-movil")},t.toDisplayString(s.game.homeTeam.colloquial_name),3)]),o[2]||(o[2]=t.createElementVNode("div",{class:"container-team-menu-separator"},null,-1)),t.createElementVNode("div",Blt,[t.createElementVNode("div",{class:t.normalizeClass(W.widthSection>390?"label-team-away":"label-team-away-movil")},t.toDisplayString(s.game.awayTeam.colloquial_name),3),t.createElementVNode("img",{class:"img-teams-selector-away",width:"23",src:s.game.awayTeam.logo},null,8,Olt),(t.openBlock(),t.createBlock(r,{fontFamily:"Poppins-Regular","onUpdate:modelValue":v.onCheckInactiveAway,"label-color":"#8c9399",width:"25",key:W.updateAwayCheck,"model-value":W.awayTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"]))])])),s.game.is_live||s.game.status===1||s.game.status===0?(t.openBlock(),t.createElementBlock("div",zlt,[t.createVNode(b,{height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":W.typeViewData==1?"Este partido":"Acumulado",textOptionLeft:"Este partido",textOptionRight:"Acumulado",onChange:v.ChangeRadio},null,8,["value-default","onChange"])])):t.createCommentVNode("",!0),t.createElementVNode("div",Nlt,[W.typeViewData==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante este partido ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.game.status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante el torneo ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.tournamentSelected.is_female==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Jugadoras destacadas durante lo que va del torneo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores destacados durante lo que va del torneo")],64))],64))],64))]),t.createElementVNode("div",Dlt,[t.createVNode(d,{"is-widget":s.isWidget,"team-widget":s.teamWidget,"time-live-comparative-avanced":s.timeLiveComparativeAvanced,"can-play-videos":s.canPlayVideos,onOpenmedia:v.openmedia,onOpenProfileTeam:v.onOpenProfileTeam,onIntervalidtops:v.intervalidtops,onOpenProfilePlayer:v.onOpenProfilePlayer,"type-data":W.typeViewData,"game-id":s.game.gameId,game:s.game,"current-season-id":s.game.seasonId,"team-id":W.teamactive,"season-active":s.game.seasonId,"season-selected":s.seasonSelected,teamselect:W.teamactive,"is-female-mode":s.isFemaleMode},null,8,["is-widget","team-widget","time-live-comparative-avanced","can-play-videos","onOpenmedia","onOpenProfileTeam","onIntervalidtops","onOpenProfilePlayer","type-data","game-id","game","current-season-id","team-id","season-active","season-selected","teamselect","is-female-mode"])])],64)):t.createCommentVNode("",!0)])],512)}const Rlt=$i(Tlt,[["render",Flt],["__scopeId","data-v-84eca2e0"]]);var Vlt=Object.defineProperty,jlt=(e,o,s)=>o in e?Vlt(e,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[o]=s,Tk=(e,o,s)=>jlt(e,typeof o!="symbol"?o+"":o,s);function RF(e,o){return function(){return e.apply(o,arguments)}}const{toString:Ult}=Object.prototype,{getPrototypeOf:Ck}=Object,{iterator:h5,toStringTag:VF}=Symbol,p5=(e=>o=>{const s=Ult.call(o);return e[s]||(e[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),Df=e=>(e=e.toLowerCase(),o=>p5(o)===e),f5=e=>o=>typeof o===e,{isArray:i2}=Array,Xv=f5("undefined");function Glt(e){return e!==null&&!Xv(e)&&e.constructor!==null&&!Xv(e.constructor)&&dp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const jF=Df("ArrayBuffer");function Hlt(e){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(e):o=e&&e.buffer&&jF(e.buffer),o}const Zlt=f5("string"),dp=f5("function"),UF=f5("number"),m5=e=>e!==null&&typeof e=="object",Wlt=e=>e===!0||e===!1,g5=e=>{if(p5(e)!=="object")return!1;const o=Ck(e);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(VF in e)&&!(h5 in e)},Xlt=Df("Date"),qlt=Df("File"),Ylt=Df("Blob"),Jlt=Df("FileList"),$lt=e=>m5(e)&&dp(e.pipe),Klt=e=>{let o;return e&&(typeof FormData=="function"&&e instanceof FormData||dp(e.append)&&((o=p5(e))==="formdata"||o==="object"&&dp(e.toString)&&e.toString()==="[object FormData]"))},Qlt=Df("URLSearchParams"),[ect,tct,act,rct]=["ReadableStream","Request","Response","Headers"].map(Df),nct=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function qv(e,o,{allOwnKeys:s=!1}={}){if(e===null||typeof e>"u")return;let z,W;if(typeof e!="object"&&(e=[e]),i2(e))for(z=0,W=e.length;z<W;z++)o.call(null,e[z],z,e);else{const v=s?Object.getOwnPropertyNames(e):Object.keys(e),g=v.length;let r;for(z=0;z<g;z++)r=v[z],o.call(null,e[r],r,e)}}function GF(e,o){o=o.toLowerCase();const s=Object.keys(e);let z=s.length,W;for(;z-- >0;)if(W=s[z],o===W.toLowerCase())return W;return null}const $1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,HF=e=>!Xv(e)&&e!==$1;function Ek(){const{caseless:e}=HF(this)&&this||{},o={},s=(z,W)=>{const v=e&&GF(o,W)||W;g5(o[v])&&g5(z)?o[v]=Ek(o[v],z):g5(z)?o[v]=Ek({},z):i2(z)?o[v]=z.slice():o[v]=z};for(let z=0,W=arguments.length;z<W;z++)arguments[z]&&qv(arguments[z],s);return o}const ict=(e,o,s,{allOwnKeys:z}={})=>(qv(o,(W,v)=>{s&&dp(W)?e[v]=RF(W,s):e[v]=W},{allOwnKeys:z}),e),oct=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),sct=(e,o,s,z)=>{e.prototype=Object.create(o.prototype,z),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:o.prototype}),s&&Object.assign(e.prototype,s)},lct=(e,o,s,z)=>{let W,v,g;const r={};if(o=o||{},e==null)return o;do{for(W=Object.getOwnPropertyNames(e),v=W.length;v-- >0;)g=W[v],(!z||z(g,e,o))&&!r[g]&&(o[g]=e[g],r[g]=!0);e=s!==!1&&Ck(e)}while(e&&(!s||s(e,o))&&e!==Object.prototype);return o},cct=(e,o,s)=>{e=String(e),(s===void 0||s>e.length)&&(s=e.length),s-=o.length;const z=e.indexOf(o,s);return z!==-1&&z===s},uct=e=>{if(!e)return null;if(i2(e))return e;let o=e.length;if(!UF(o))return null;const s=new Array(o);for(;o-- >0;)s[o]=e[o];return s},dct=(e=>o=>e&&o instanceof e)(typeof Uint8Array<"u"&&Ck(Uint8Array)),hct=(e,o)=>{const s=(e&&e[h5]).call(e);let z;for(;(z=s.next())&&!z.done;){const W=z.value;o.call(e,W[0],W[1])}},pct=(e,o)=>{let s;const z=[];for(;(s=e.exec(o))!==null;)z.push(s);return z},fct=Df("HTMLFormElement"),mct=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,s,z){return s.toUpperCase()+z}),ZF=(({hasOwnProperty:e})=>(o,s)=>e.call(o,s))(Object.prototype),gct=Df("RegExp"),WF=(e,o)=>{const s=Object.getOwnPropertyDescriptors(e),z={};qv(s,(W,v)=>{let g;(g=o(W,v,e))!==!1&&(z[v]=g||W)}),Object.defineProperties(e,z)},yct=e=>{WF(e,(o,s)=>{if(dp(e)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const z=e[s];if(dp(z)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},vct=(e,o)=>{const s={},z=W=>{W.forEach(v=>{s[v]=!0})};return i2(e)?z(e):z(String(e).split(o)),s},bct=()=>{},xct=(e,o)=>e!=null&&Number.isFinite(e=+e)?e:o;function _ct(e){return!!(e&&dp(e.append)&&e[VF]==="FormData"&&e[h5])}const wct=e=>{const o=new Array(10),s=(z,W)=>{if(m5(z)){if(o.indexOf(z)>=0)return;if(!("toJSON"in z)){o[W]=z;const v=i2(z)?[]:{};return qv(z,(g,r)=>{const b=s(g,W+1);!Xv(b)&&(v[r]=b)}),o[W]=void 0,v}}return z};return s(e,0)},kct=Df("AsyncFunction"),Sct=e=>e&&(m5(e)||dp(e))&&dp(e.then)&&dp(e.catch),XF=((e,o)=>e?setImmediate:o?((s,z)=>($1.addEventListener("message",({source:W,data:v})=>{W===$1&&v===s&&z.length&&z.shift()()},!1),W=>{z.push(W),$1.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",dp($1.postMessage)),Tct=typeof queueMicrotask<"u"?queueMicrotask.bind($1):typeof process<"u"&&process.nextTick||XF,Cct=e=>e!=null&&dp(e[h5]),On={isArray:i2,isArrayBuffer:jF,isBuffer:Glt,isFormData:Klt,isArrayBufferView:Hlt,isString:Zlt,isNumber:UF,isBoolean:Wlt,isObject:m5,isPlainObject:g5,isReadableStream:ect,isRequest:tct,isResponse:act,isHeaders:rct,isUndefined:Xv,isDate:Xlt,isFile:qlt,isBlob:Ylt,isRegExp:gct,isFunction:dp,isStream:$lt,isURLSearchParams:Qlt,isTypedArray:dct,isFileList:Jlt,forEach:qv,merge:Ek,extend:ict,trim:nct,stripBOM:oct,inherits:sct,toFlatObject:lct,kindOf:p5,kindOfTest:Df,endsWith:cct,toArray:uct,forEachEntry:hct,matchAll:pct,isHTMLForm:fct,hasOwnProperty:ZF,hasOwnProp:ZF,reduceDescriptors:WF,freezeMethods:yct,toObjectSet:vct,toCamelCase:mct,noop:bct,toFiniteNumber:xct,findKey:GF,global:$1,isContextDefined:HF,isSpecCompliantForm:_ct,toJSONObject:wct,isAsyncFn:kct,isThenable:Sct,setImmediate:XF,asap:Tct,isIterable:Cct};function yl(e,o,s,z,W){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",o&&(this.code=o),s&&(this.config=s),z&&(this.request=z),W&&(this.response=W,this.status=W.status?W.status:null)}On.inherits(yl,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:On.toJSONObject(this.config),code:this.code,status:this.status}}});const qF=yl.prototype,YF={};["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=>{YF[e]={value:e}}),Object.defineProperties(yl,YF),Object.defineProperty(qF,"isAxiosError",{value:!0}),yl.from=(e,o,s,z,W,v)=>{const g=Object.create(qF);return On.toFlatObject(e,g,function(r){return r!==Error.prototype},r=>r!=="isAxiosError"),yl.call(g,e.message,o,s,z,W),g.cause=e,g.name=e.name,v&&Object.assign(g,v),g};const Ect=null;function Ak(e){return On.isPlainObject(e)||On.isArray(e)}function JF(e){return On.endsWith(e,"[]")?e.slice(0,-2):e}function $F(e,o,s){return e?e.concat(o).map(function(z,W){return z=JF(z),!s&&W?"["+z+"]":z}).join(s?".":""):o}function Act(e){return On.isArray(e)&&!e.some(Ak)}const Mct=On.toFlatObject(On,{},null,function(e){return/^is[A-Z]/.test(e)});function y5(e,o,s){if(!On.isObject(e))throw new TypeError("target must be an object");o=o||new FormData,s=On.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,u){return!On.isUndefined(u[x])});const z=s.metaTokens,W=s.visitor||d,v=s.dots,g=s.indexes,r=(s.Blob||typeof Blob<"u"&&Blob)&&On.isSpecCompliantForm(o);if(!On.isFunction(W))throw new TypeError("visitor must be a function");function b(x){if(x===null)return"";if(On.isDate(x))return x.toISOString();if(On.isBoolean(x))return x.toString();if(!r&&On.isBlob(x))throw new yl("Blob is not supported. Use a Buffer instead.");return On.isArrayBuffer(x)||On.isTypedArray(x)?r&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function d(x,u,n){let i=x;if(x&&!n&&typeof x=="object"){if(On.endsWith(u,"{}"))u=z?u:u.slice(0,-2),x=JSON.stringify(x);else if(On.isArray(x)&&Act(x)||(On.isFileList(x)||On.endsWith(u,"[]"))&&(i=On.toArray(x)))return u=JF(u),i.forEach(function(f,l){!(On.isUndefined(f)||f===null)&&o.append(g===!0?$F([u],l,v):g===null?u:u+"[]",b(f))}),!1}return Ak(x)?!0:(o.append($F(n,u,v),b(x)),!1)}const a=[],_=Object.assign(Mct,{defaultVisitor:d,convertValue:b,isVisitable:Ak});function y(x,u){if(!On.isUndefined(x)){if(a.indexOf(x)!==-1)throw Error("Circular reference detected in "+u.join("."));a.push(x),On.forEach(x,function(n,i){(!(On.isUndefined(n)||n===null)&&W.call(o,n,On.isString(i)?i.trim():i,u,_))===!0&&y(n,u?u.concat(i):[i])}),a.pop()}}if(!On.isObject(e))throw new TypeError("data must be an object");return y(e),o}function KF(e){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return o[s]})}function Mk(e,o){this._pairs=[],e&&y5(e,this,o)}const QF=Mk.prototype;QF.append=function(e,o){this._pairs.push([e,o])},QF.toString=function(e){const o=e?function(s){return e.call(this,s,KF)}:KF;return this._pairs.map(function(s){return o(s[0])+"="+o(s[1])},"").join("&")};function Pct(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function eR(e,o,s){if(!o)return e;const z=s&&s.encode||Pct;On.isFunction(s)&&(s={serialize:s});const W=s&&s.serialize;let v;if(W?v=W(o,s):v=On.isURLSearchParams(o)?o.toString():new Mk(o,s).toString(z),v){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+v}return e}let tR=class{constructor(){this.handlers=[]}use(o,s,z){return this.handlers.push({fulfilled:o,rejected:s,synchronous:z?z.synchronous:!1,runWhen:z?z.runWhen:null}),this.handlers.length-1}eject(o){this.handlers[o]&&(this.handlers[o]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(o){On.forEach(this.handlers,function(s){s!==null&&o(s)})}};const aR={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ict=typeof URLSearchParams<"u"?URLSearchParams:Mk,Lct=typeof FormData<"u"?FormData:null,Bct=typeof Blob<"u"?Blob:null,Oct={isBrowser:!0,classes:{URLSearchParams:Ict,FormData:Lct,Blob:Bct},protocols:["http","https","file","blob","url","data"]},Pk=typeof window<"u"&&typeof document<"u",Ik=typeof navigator=="object"&&navigator||void 0,zct=Pk&&(!Ik||["ReactNative","NativeScript","NS"].indexOf(Ik.product)<0),Nct=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Dct=Pk&&window.location.href||"http://localhost",Fct=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Pk,hasStandardBrowserEnv:zct,hasStandardBrowserWebWorkerEnv:Nct,navigator:Ik,origin:Dct},Symbol.toStringTag,{value:"Module"})),_h={...Fct,...Oct};function Rct(e,o){return y5(e,new _h.classes.URLSearchParams,Object.assign({visitor:function(s,z,W,v){return _h.isNode&&On.isBuffer(s)?(this.append(z,s.toString("base64")),!1):v.defaultVisitor.apply(this,arguments)}},o))}function Vct(e){return On.matchAll(/\w+|\[(\w*)]/g,e).map(o=>o[0]==="[]"?"":o[1]||o[0])}function jct(e){const o={},s=Object.keys(e);let z;const W=s.length;let v;for(z=0;z<W;z++)v=s[z],o[v]=e[v];return o}function rR(e){function o(s,z,W,v){let g=s[v++];if(g==="__proto__")return!0;const r=Number.isFinite(+g),b=v>=s.length;return g=!g&&On.isArray(W)?W.length:g,b?(On.hasOwnProp(W,g)?W[g]=[W[g],z]:W[g]=z,!r):((!W[g]||!On.isObject(W[g]))&&(W[g]=[]),o(s,z,W[g],v)&&On.isArray(W[g])&&(W[g]=jct(W[g])),!r)}if(On.isFormData(e)&&On.isFunction(e.entries)){const s={};return On.forEachEntry(e,(z,W)=>{o(Vct(z),W,s,0)}),s}return null}function Uct(e,o,s){if(On.isString(e))try{return(o||JSON.parse)(e),On.trim(e)}catch(z){if(z.name!=="SyntaxError")throw z}return(s||JSON.stringify)(e)}const Yv={transitional:aR,adapter:["xhr","http","fetch"],transformRequest:[function(e,o){const s=o.getContentType()||"",z=s.indexOf("application/json")>-1,W=On.isObject(e);if(W&&On.isHTMLForm(e)&&(e=new FormData(e)),On.isFormData(e))return z?JSON.stringify(rR(e)):e;if(On.isArrayBuffer(e)||On.isBuffer(e)||On.isStream(e)||On.isFile(e)||On.isBlob(e)||On.isReadableStream(e))return e;if(On.isArrayBufferView(e))return e.buffer;if(On.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let v;if(W){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Rct(e,this.formSerializer).toString();if((v=On.isFileList(e))||s.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return y5(v?{"files[]":e}:e,g&&new g,this.formSerializer)}}return W||z?(o.setContentType("application/json",!1),Uct(e)):e}],transformResponse:[function(e){const o=this.transitional||Yv.transitional,s=o&&o.forcedJSONParsing,z=this.responseType==="json";if(On.isResponse(e)||On.isReadableStream(e))return e;if(e&&On.isString(e)&&(s&&!this.responseType||z)){const W=!(o&&o.silentJSONParsing)&&z;try{return JSON.parse(e)}catch(v){if(W)throw v.name==="SyntaxError"?yl.from(v,yl.ERR_BAD_RESPONSE,this,null,this.response):v}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_h.classes.FormData,Blob:_h.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};On.forEach(["delete","get","head","post","put","patch"],e=>{Yv.headers[e]={}});const Gct=On.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"]),Hct=e=>{const o={};let s,z,W;return e&&e.split(`
|
|
4134
4134
|
`).forEach(function(v){W=v.indexOf(":"),s=v.substring(0,W).trim().toLowerCase(),z=v.substring(W+1).trim(),!(!s||o[s]&&Gct[s])&&(s==="set-cookie"?o[s]?o[s].push(z):o[s]=[z]:o[s]=o[s]?o[s]+", "+z:z)}),o},nR=Symbol("internals");function Jv(e){return e&&String(e).trim().toLowerCase()}function v5(e){return e===!1||e==null?e:On.isArray(e)?e.map(v5):String(e)}function Zct(e){const o=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let z;for(;z=s.exec(e);)o[z[1]]=z[2];return o}const Wct=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Lk(e,o,s,z,W){if(On.isFunction(z))return z.call(this,o,s);if(W&&(o=s),!!On.isString(o)){if(On.isString(z))return o.indexOf(z)!==-1;if(On.isRegExp(z))return z.test(o)}}function Xct(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,s,z)=>s.toUpperCase()+z)}function qct(e,o){const s=On.toCamelCase(" "+o);["get","set","has"].forEach(z=>{Object.defineProperty(e,z+s,{value:function(W,v,g){return this[z].call(this,o,W,v,g)},configurable:!0})})}let hp=class{constructor(o){o&&this.set(o)}set(o,s,z){const W=this;function v(r,b,d){const a=Jv(b);if(!a)throw new Error("header name must be a non-empty string");const _=On.findKey(W,a);(!_||W[_]===void 0||d===!0||d===void 0&&W[_]!==!1)&&(W[_||b]=v5(r))}const g=(r,b)=>On.forEach(r,(d,a)=>v(d,a,b));if(On.isPlainObject(o)||o instanceof this.constructor)g(o,s);else if(On.isString(o)&&(o=o.trim())&&!Wct(o))g(Hct(o),s);else if(On.isObject(o)&&On.isIterable(o)){let r={},b,d;for(const a of o){if(!On.isArray(a))throw TypeError("Object iterator must return a key-value pair");r[d=a[0]]=(b=r[d])?On.isArray(b)?[...b,a[1]]:[b,a[1]]:a[1]}g(r,s)}else o!=null&&v(s,o,z);return this}get(o,s){if(o=Jv(o),o){const z=On.findKey(this,o);if(z){const W=this[z];if(!s)return W;if(s===!0)return Zct(W);if(On.isFunction(s))return s.call(this,W,z);if(On.isRegExp(s))return s.exec(W);throw new TypeError("parser must be boolean|regexp|function")}}}has(o,s){if(o=Jv(o),o){const z=On.findKey(this,o);return!!(z&&this[z]!==void 0&&(!s||Lk(this,this[z],z,s)))}return!1}delete(o,s){const z=this;let W=!1;function v(g){if(g=Jv(g),g){const r=On.findKey(z,g);r&&(!s||Lk(z,z[r],r,s))&&(delete z[r],W=!0)}}return On.isArray(o)?o.forEach(v):v(o),W}clear(o){const s=Object.keys(this);let z=s.length,W=!1;for(;z--;){const v=s[z];(!o||Lk(this,this[v],v,o,!0))&&(delete this[v],W=!0)}return W}normalize(o){const s=this,z={};return On.forEach(this,(W,v)=>{const g=On.findKey(z,v);if(g){s[g]=v5(W),delete s[v];return}const r=o?Xct(v):String(v).trim();r!==v&&delete s[v],s[r]=v5(W),z[r]=!0}),this}concat(...o){return this.constructor.concat(this,...o)}toJSON(o){const s=Object.create(null);return On.forEach(this,(z,W)=>{z!=null&&z!==!1&&(s[W]=o&&On.isArray(z)?z.join(", "):z)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([o,s])=>o+": "+s).join(`
|
|
4135
4135
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(o){return o instanceof this?o:new this(o)}static concat(o,...s){const z=new this(o);return s.forEach(W=>z.set(W)),z}static accessor(o){const s=(this[nR]=this[nR]={accessors:{}}).accessors,z=this.prototype;function W(v){const g=Jv(v);s[g]||(qct(z,v),s[g]=!0)}return On.isArray(o)?o.forEach(W):W(o),this}};hp.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),On.reduceDescriptors(hp.prototype,({value:e},o)=>{let s=o[0].toUpperCase()+o.slice(1);return{get:()=>e,set(z){this[s]=z}}}),On.freezeMethods(hp);function Bk(e,o){const s=this||Yv,z=o||s,W=hp.from(z.headers);let v=z.data;return On.forEach(e,function(g){v=g.call(s,v,W.normalize(),o?o.status:void 0)}),W.normalize(),v}function iR(e){return!!(e&&e.__CANCEL__)}function o2(e,o,s){yl.call(this,e??"canceled",yl.ERR_CANCELED,o,s),this.name="CanceledError"}On.inherits(o2,yl,{__CANCEL__:!0});function oR(e,o,s){const z=s.config.validateStatus;!s.status||!z||z(s.status)?e(s):o(new yl("Request failed with status code "+s.status,[yl.ERR_BAD_REQUEST,yl.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function Yct(e){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return o&&o[1]||""}function Jct(e,o){e=e||10;const s=new Array(e),z=new Array(e);let W=0,v=0,g;return o=o!==void 0?o:1e3,function(r){const b=Date.now(),d=z[v];g||(g=b),s[W]=r,z[W]=b;let a=v,_=0;for(;a!==W;)_+=s[a++],a=a%e;if(W=(W+1)%e,W===v&&(v=(v+1)%e),b-g<o)return;const y=d&&b-d;return y?Math.round(_*1e3/y):void 0}}function $ct(e,o){let s=0,z=1e3/o,W,v;const g=(r,b=Date.now())=>{s=b,W=null,v&&(clearTimeout(v),v=null),e.apply(null,r)};return[(...r)=>{const b=Date.now(),d=b-s;d>=z?g(r,b):(W=r,v||(v=setTimeout(()=>{v=null,g(W)},z-d)))},()=>W&&g(W)]}const b5=(e,o,s=3)=>{let z=0;const W=Jct(50,250);return $ct(v=>{const g=v.loaded,r=v.lengthComputable?v.total:void 0,b=g-z,d=W(b),a=g<=r;z=g;const _={loaded:g,total:r,progress:r?g/r:void 0,bytes:b,rate:d||void 0,estimated:d&&r&&a?(r-g)/d:void 0,event:v,lengthComputable:r!=null,[o?"download":"upload"]:!0};e(_)},s)},sR=(e,o)=>{const s=e!=null;return[z=>o[0]({lengthComputable:s,total:e,loaded:z}),o[1]]},lR=e=>(...o)=>On.asap(()=>e(...o)),Kct=_h.hasStandardBrowserEnv?((e,o)=>s=>(s=new URL(s,_h.origin),e.protocol===s.protocol&&e.host===s.host&&(o||e.port===s.port)))(new URL(_h.origin),_h.navigator&&/(msie|trident)/i.test(_h.navigator.userAgent)):()=>!0,Qct=_h.hasStandardBrowserEnv?{write(e,o,s,z,W,v){const g=[e+"="+encodeURIComponent(o)];On.isNumber(s)&&g.push("expires="+new Date(s).toGMTString()),On.isString(z)&&g.push("path="+z),On.isString(W)&&g.push("domain="+W),v===!0&&g.push("secure"),document.cookie=g.join("; ")},read(e){const o=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function eut(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function tut(e,o){return o?e.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):e}function cR(e,o,s){let z=!eut(o);return e&&(z||s==!1)?tut(e,o):o}const uR=e=>e instanceof hp?{...e}:e;function K1(e,o){o=o||{};const s={};function z(d,a,_,y){return On.isPlainObject(d)&&On.isPlainObject(a)?On.merge.call({caseless:y},d,a):On.isPlainObject(a)?On.merge({},a):On.isArray(a)?a.slice():a}function W(d,a,_,y){if(On.isUndefined(a)){if(!On.isUndefined(d))return z(void 0,d,_,y)}else return z(d,a,_,y)}function v(d,a){if(!On.isUndefined(a))return z(void 0,a)}function g(d,a){if(On.isUndefined(a)){if(!On.isUndefined(d))return z(void 0,d)}else return z(void 0,a)}function r(d,a,_){if(_ in o)return z(d,a);if(_ in e)return z(void 0,d)}const b={url:v,method:v,data:v,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:r,headers:(d,a,_)=>W(uR(d),uR(a),_,!0)};return On.forEach(Object.keys(Object.assign({},e,o)),function(d){const a=b[d]||W,_=a(e[d],o[d],d);On.isUndefined(_)&&a!==r||(s[d]=_)}),s}const dR=e=>{const o=K1({},e);let{data:s,withXSRFToken:z,xsrfHeaderName:W,xsrfCookieName:v,headers:g,auth:r}=o;o.headers=g=hp.from(g),o.url=eR(cR(o.baseURL,o.url,o.allowAbsoluteUrls),e.params,e.paramsSerializer),r&&g.set("Authorization","Basic "+btoa((r.username||"")+":"+(r.password?unescape(encodeURIComponent(r.password)):"")));let b;if(On.isFormData(s)){if(_h.hasStandardBrowserEnv||_h.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if((b=g.getContentType())!==!1){const[d,...a]=b?b.split(";").map(_=>_.trim()).filter(Boolean):[];g.setContentType([d||"multipart/form-data",...a].join("; "))}}if(_h.hasStandardBrowserEnv&&(z&&On.isFunction(z)&&(z=z(o)),z||z!==!1&&Kct(o.url))){const d=W&&v&&Qct.read(v);d&&g.set(W,d)}return o},aut=typeof XMLHttpRequest<"u",rut=aut&&function(e){return new Promise(function(o,s){const z=dR(e);let W=z.data;const v=hp.from(z.headers).normalize();let{responseType:g,onUploadProgress:r,onDownloadProgress:b}=z,d,a,_,y,x;function u(){y&&y(),x&&x(),z.cancelToken&&z.cancelToken.unsubscribe(d),z.signal&&z.signal.removeEventListener("abort",d)}let n=new XMLHttpRequest;n.open(z.method.toUpperCase(),z.url,!0),n.timeout=z.timeout;function i(){if(!n)return;const l=hp.from("getAllResponseHeaders"in n&&n.getAllResponseHeaders()),h={data:!g||g==="text"||g==="json"?n.responseText:n.response,status:n.status,statusText:n.statusText,headers:l,config:e,request:n};oR(function(m){o(m),u()},function(m){s(m),u()},h),n=null}"onloadend"in n?n.onloadend=i:n.onreadystatechange=function(){!n||n.readyState!==4||n.status===0&&!(n.responseURL&&n.responseURL.indexOf("file:")===0)||setTimeout(i)},n.onabort=function(){n&&(s(new yl("Request aborted",yl.ECONNABORTED,e,n)),n=null)},n.onerror=function(){s(new yl("Network Error",yl.ERR_NETWORK,e,n)),n=null},n.ontimeout=function(){let l=z.timeout?"timeout of "+z.timeout+"ms exceeded":"timeout exceeded";const h=z.transitional||aR;z.timeoutErrorMessage&&(l=z.timeoutErrorMessage),s(new yl(l,h.clarifyTimeoutError?yl.ETIMEDOUT:yl.ECONNABORTED,e,n)),n=null},W===void 0&&v.setContentType(null),"setRequestHeader"in n&&On.forEach(v.toJSON(),function(l,h){n.setRequestHeader(h,l)}),On.isUndefined(z.withCredentials)||(n.withCredentials=!!z.withCredentials),g&&g!=="json"&&(n.responseType=z.responseType),b&&([_,x]=b5(b,!0),n.addEventListener("progress",_)),r&&n.upload&&([a,y]=b5(r),n.upload.addEventListener("progress",a),n.upload.addEventListener("loadend",y)),(z.cancelToken||z.signal)&&(d=l=>{n&&(s(!l||l.type?new o2(null,e,n):l),n.abort(),n=null)},z.cancelToken&&z.cancelToken.subscribe(d),z.signal&&(z.signal.aborted?d():z.signal.addEventListener("abort",d)));const f=Yct(z.url);if(f&&_h.protocols.indexOf(f)===-1){s(new yl("Unsupported protocol "+f+":",yl.ERR_BAD_REQUEST,e));return}n.send(W||null)})},nut=(e,o)=>{const{length:s}=e=e?e.filter(Boolean):[];if(o||s){let z=new AbortController,W;const v=function(d){if(!W){W=!0,r();const a=d instanceof Error?d:this.reason;z.abort(a instanceof yl?a:new o2(a instanceof Error?a.message:a))}};let g=o&&setTimeout(()=>{g=null,v(new yl(`timeout ${o} of ms exceeded`,yl.ETIMEDOUT))},o);const r=()=>{e&&(g&&clearTimeout(g),g=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(v):d.removeEventListener("abort",v)}),e=null)};e.forEach(d=>d.addEventListener("abort",v));const{signal:b}=z;return b.unsubscribe=()=>On.asap(r),b}},iut=function*(e,o){let s=e.byteLength;if(s<o){yield e;return}let z=0,W;for(;z<s;)W=z+o,yield e.slice(z,W),z=W},out=async function*(e,o){for await(const s of sut(e))yield*iut(s,o)},sut=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const o=e.getReader();try{for(;;){const{done:s,value:z}=await o.read();if(s)break;yield z}}finally{await o.cancel()}},hR=(e,o,s,z)=>{const W=out(e,o);let v=0,g,r=b=>{g||(g=!0,z&&z(b))};return new ReadableStream({async pull(b){try{const{done:d,value:a}=await W.next();if(d){r(),b.close();return}let _=a.byteLength;if(s){let y=v+=_;s(y)}b.enqueue(new Uint8Array(a))}catch(d){throw r(d),d}},cancel(b){return r(b),W.return()}},{highWaterMark:2})},x5=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",pR=x5&&typeof ReadableStream=="function",lut=x5&&(typeof TextEncoder=="function"?(e=>o=>e.encode(o))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),fR=(e,...o)=>{try{return!!e(...o)}catch{return!1}},cut=pR&&fR(()=>{let e=!1;const o=new Request(_h.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!o}),mR=64*1024,Ok=pR&&fR(()=>On.isReadableStream(new Response("").body)),_5={stream:Ok&&(e=>e.body)};x5&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(o=>{!_5[o]&&(_5[o]=On.isFunction(e[o])?s=>s[o]():(s,z)=>{throw new yl(`Response type '${o}' is not supported`,yl.ERR_NOT_SUPPORT,z)})})})(new Response);const uut=async e=>{if(e==null)return 0;if(On.isBlob(e))return e.size;if(On.isSpecCompliantForm(e))return(await new Request(_h.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(On.isArrayBufferView(e)||On.isArrayBuffer(e))return e.byteLength;if(On.isURLSearchParams(e)&&(e=e+""),On.isString(e))return(await lut(e)).byteLength},dut=async(e,o)=>On.toFiniteNumber(e.getContentLength())??uut(o),hut=x5&&(async e=>{let{url:o,method:s,data:z,signal:W,cancelToken:v,timeout:g,onDownloadProgress:r,onUploadProgress:b,responseType:d,headers:a,withCredentials:_="same-origin",fetchOptions:y}=dR(e);d=d?(d+"").toLowerCase():"text";let x=nut([W,v&&v.toAbortSignal()],g),u;const n=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let i;try{if(b&&cut&&s!=="get"&&s!=="head"&&(i=await dut(a,z))!==0){let w=new Request(o,{method:"POST",body:z,duplex:"half"}),T;if(On.isFormData(z)&&(T=w.headers.get("content-type"))&&a.setContentType(T),w.body){const[A,C]=sR(i,b5(lR(b)));z=hR(w.body,mR,A,C)}}On.isString(_)||(_=_?"include":"omit");const f="credentials"in Request.prototype;u=new Request(o,{...y,signal:x,method:s.toUpperCase(),headers:a.normalize().toJSON(),body:z,duplex:"half",credentials:f?_:void 0});let l=await fetch(u,y);const h=Ok&&(d==="stream"||d==="response");if(Ok&&(r||h&&n)){const w={};["status","statusText","headers"].forEach(I=>{w[I]=l[I]});const T=On.toFiniteNumber(l.headers.get("content-length")),[A,C]=r&&sR(T,b5(lR(r),!0))||[];l=new Response(hR(l.body,mR,A,()=>{C&&C(),n&&n()}),w)}d=d||"text";let m=await _5[On.findKey(_5,d)||"text"](l,e);return!h&&n&&n(),await new Promise((w,T)=>{oR(w,T,{data:m,headers:hp.from(l.headers),status:l.status,statusText:l.statusText,config:e,request:u})})}catch(f){throw n&&n(),f&&f.name==="TypeError"&&/Load failed|fetch/i.test(f.message)?Object.assign(new yl("Network Error",yl.ERR_NETWORK,e,u),{cause:f.cause||f}):yl.from(f,f&&f.code,e,u)}}),zk={http:Ect,xhr:rut,fetch:hut};On.forEach(zk,(e,o)=>{if(e){try{Object.defineProperty(e,"name",{value:o})}catch{}Object.defineProperty(e,"adapterName",{value:o})}});const gR=e=>`- ${e}`,put=e=>On.isFunction(e)||e===null||e===!1,yR={getAdapter:e=>{e=On.isArray(e)?e:[e];const{length:o}=e;let s,z;const W={};for(let v=0;v<o;v++){s=e[v];let g;if(z=s,!put(s)&&(z=zk[(g=String(s)).toLowerCase()],z===void 0))throw new yl(`Unknown adapter '${g}'`);if(z)break;W[g||"#"+v]=z}if(!z){const v=Object.entries(W).map(([r,b])=>`adapter ${r} `+(b===!1?"is not supported by the environment":"is not available in the build"));let g=o?v.length>1?`since :
|
|
4136
4136
|
`+v.map(gR).join(`
|
|
@@ -8189,4 +8189,4 @@ uniform ${De} ${He} u_${rt};
|
|
|
8189
8189
|
* vuex v4.0.2
|
|
8190
8190
|
* (c) 2021 Evan You
|
|
8191
8191
|
* @license MIT
|
|
8192
|
-
*/var JG="store";function $zt(e){return e===void 0&&(e=null),t.inject(e!==null?e:JG)}function yg(e,o){Object.keys(e).forEach(function(s){return o(e[s],s)})}function $G(e){return e!==null&&typeof e=="object"}function Kzt(e){return e&&typeof e.then=="function"}function Zf(e,o){if(!e)throw new Error("[vuex] "+o)}function Qzt(e,o){return function(){return e(o)}}function KG(e,o,s){return o.indexOf(e)<0&&(s&&s.prepend?o.unshift(e):o.push(e)),function(){var z=o.indexOf(e);z>-1&&o.splice(z,1)}}function QG(e,o){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var s=e.state;z4(e,s,[],e._modules.root,!0),yT(e,s,o)}function yT(e,o,s){var z=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var W=e._wrappedGetters,v={};yg(W,function(g,r){v[r]=Qzt(g,e),Object.defineProperty(e.getters,r,{get:function(){return v[r]()},enumerable:!0})}),e._state=t.reactive({data:o}),e.strict&&nNt(e),z&&s&&e._withCommit(function(){z.data=null})}function z4(e,o,s,z,W){var v=!s.length,g=e._modules.getNamespace(s);if(z.namespaced&&(e._modulesNamespaceMap[g]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+g+" for the namespaced module "+s.join("/")),e._modulesNamespaceMap[g]=z),!v&&!W){var r=vT(o,s.slice(0,-1)),b=s[s.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&b in r&&console.warn('[vuex] state field "'+b+'" was overridden by a module with the same name at "'+s.join(".")+'"'),r[b]=z.state})}var d=z.context=eNt(e,g,s);z.forEachMutation(function(a,_){var y=g+_;tNt(e,y,a,d)}),z.forEachAction(function(a,_){var y=a.root?_:g+_,x=a.handler||a;aNt(e,y,x,d)}),z.forEachGetter(function(a,_){var y=g+_;rNt(e,y,a,d)}),z.forEachChild(function(a,_){z4(e,o,s.concat(_),a,W)})}function eNt(e,o,s){var z=o==="",W={dispatch:z?e.dispatch:function(v,g,r){var b=N4(v,g,r),d=b.payload,a=b.options,_=b.type;if((!a||!a.root)&&(_=o+_,process.env.NODE_ENV!=="production"&&!e._actions[_])){console.error("[vuex] unknown local action type: "+b.type+", global type: "+_);return}return e.dispatch(_,d)},commit:z?e.commit:function(v,g,r){var b=N4(v,g,r),d=b.payload,a=b.options,_=b.type;if((!a||!a.root)&&(_=o+_,process.env.NODE_ENV!=="production"&&!e._mutations[_])){console.error("[vuex] unknown local mutation type: "+b.type+", global type: "+_);return}e.commit(_,d,a)}};return Object.defineProperties(W,{getters:{get:z?function(){return e.getters}:function(){return eH(e,o)}},state:{get:function(){return vT(e.state,s)}}}),W}function eH(e,o){if(!e._makeLocalGettersCache[o]){var s={},z=o.length;Object.keys(e.getters).forEach(function(W){if(W.slice(0,z)===o){var v=W.slice(z);Object.defineProperty(s,v,{get:function(){return e.getters[W]},enumerable:!0})}}),e._makeLocalGettersCache[o]=s}return e._makeLocalGettersCache[o]}function tNt(e,o,s,z){var W=e._mutations[o]||(e._mutations[o]=[]);W.push(function(v){s.call(e,z.state,v)})}function aNt(e,o,s,z){var W=e._actions[o]||(e._actions[o]=[]);W.push(function(v){var g=s.call(e,{dispatch:z.dispatch,commit:z.commit,getters:z.getters,state:z.state,rootGetters:e.getters,rootState:e.state},v);return Kzt(g)||(g=Promise.resolve(g)),e._devtoolHook?g.catch(function(r){throw e._devtoolHook.emit("vuex:error",r),r}):g})}function rNt(e,o,s,z){if(e._wrappedGetters[o]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+o);return}e._wrappedGetters[o]=function(W){return s(z.state,z.getters,W.state,W.getters)}}function nNt(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&Zf(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function vT(e,o){return o.reduce(function(s,z){return s[z]},e)}function N4(e,o,s){return $G(e)&&e.type&&(s=o,o=e,e=e.type),process.env.NODE_ENV!=="production"&&Zf(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:o,options:s}}var iNt="vuex bindings",tH="vuex:mutations",bT="vuex:actions",w2="vuex",oNt=0;function sNt(e,o){Jzt({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:[iNt]},function(s){s.addTimelineLayer({id:tH,label:"Vuex Mutations",color:aH}),s.addTimelineLayer({id:bT,label:"Vuex Actions",color:aH}),s.addInspector({id:w2,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),s.on.getInspectorTree(function(z){if(z.app===e&&z.inspectorId===w2)if(z.filter){var W=[];oH(W,o._modules.root,z.filter,""),z.rootNodes=W}else z.rootNodes=[iH(o._modules.root,"")]}),s.on.getInspectorState(function(z){if(z.app===e&&z.inspectorId===w2){var W=z.nodeId;eH(o,W),z.state=uNt(hNt(o._modules,W),W==="root"?o.getters:o._makeLocalGettersCache,W)}}),s.on.editInspectorState(function(z){if(z.app===e&&z.inspectorId===w2){var W=z.nodeId,v=z.path;W!=="root"&&(v=W.split("/").filter(Boolean).concat(v)),o._withCommit(function(){z.set(o._state.data,v,z.state.value)})}}),o.subscribe(function(z,W){var v={};z.payload&&(v.payload=z.payload),v.state=W,s.notifyComponentUpdate(),s.sendInspectorTree(w2),s.sendInspectorState(w2),s.addTimelineEvent({layerId:tH,event:{time:Date.now(),title:z.type,data:v}})}),o.subscribeAction({before:function(z,W){var v={};z.payload&&(v.payload=z.payload),z._id=oNt++,z._time=Date.now(),v.state=W,s.addTimelineEvent({layerId:bT,event:{time:z._time,title:z.type,groupId:z._id,subtitle:"start",data:v}})},after:function(z,W){var v={},g=Date.now()-z._time;v.duration={_custom:{type:"duration",display:g+"ms",tooltip:"Action duration",value:g}},z.payload&&(v.payload=z.payload),v.state=W,s.addTimelineEvent({layerId:bT,event:{time:Date.now(),title:z.type,groupId:z._id,subtitle:"end",data:v}})}})})}var aH=8702998,lNt=6710886,cNt=16777215,rH={label:"namespaced",textColor:cNt,backgroundColor:lNt};function nH(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function iH(e,o){return{id:o||"root",label:nH(o),tags:e.namespaced?[rH]:[],children:Object.keys(e._children).map(function(s){return iH(e._children[s],o+s+"/")})}}function oH(e,o,s,z){z.includes(s)&&e.push({id:z||"root",label:z.endsWith("/")?z.slice(0,z.length-1):z||"Root",tags:o.namespaced?[rH]:[]}),Object.keys(o._children).forEach(function(W){oH(e,o._children[W],s,z+W+"/")})}function uNt(e,o,s){o=s==="root"?o:o[s];var z=Object.keys(o),W={state:Object.keys(e.state).map(function(g){return{key:g,editable:!0,value:e.state[g]}})};if(z.length){var v=dNt(o);W.getters=Object.keys(v).map(function(g){return{key:g.endsWith("/")?nH(g):g,editable:!1,value:xT(function(){return v[g]})}})}return W}function dNt(e){var o={};return Object.keys(e).forEach(function(s){var z=s.split("/");if(z.length>1){var W=o,v=z.pop();z.forEach(function(g){W[g]||(W[g]={_custom:{value:{},display:g,tooltip:"Module",abstract:!0}}),W=W[g]._custom.value}),W[v]=xT(function(){return e[s]})}else o[s]=xT(function(){return e[s]})}),o}function hNt(e,o){var s=o.split("/").filter(function(z){return z});return s.reduce(function(z,W,v){var g=z[W];if(!g)throw new Error('Missing module "'+W+'" for path "'+o+'".');return v===s.length-1?g:g._children},o==="root"?e:e.root._children)}function xT(e){try{return e()}catch(o){return o}}var Wf=function(e,o){this.runtime=o,this._children=Object.create(null),this._rawModule=e;var s=e.state;this.state=(typeof s=="function"?s():s)||{}},sH={namespaced:{configurable:!0}};sH.namespaced.get=function(){return!!this._rawModule.namespaced},Wf.prototype.addChild=function(e,o){this._children[e]=o},Wf.prototype.removeChild=function(e){delete this._children[e]},Wf.prototype.getChild=function(e){return this._children[e]},Wf.prototype.hasChild=function(e){return e in this._children},Wf.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)},Wf.prototype.forEachChild=function(e){yg(this._children,e)},Wf.prototype.forEachGetter=function(e){this._rawModule.getters&&yg(this._rawModule.getters,e)},Wf.prototype.forEachAction=function(e){this._rawModule.actions&&yg(this._rawModule.actions,e)},Wf.prototype.forEachMutation=function(e){this._rawModule.mutations&&yg(this._rawModule.mutations,e)},Object.defineProperties(Wf.prototype,sH);var vg=function(e){this.register([],e,!1)};vg.prototype.get=function(e){return e.reduce(function(o,s){return o.getChild(s)},this.root)},vg.prototype.getNamespace=function(e){var o=this.root;return e.reduce(function(s,z){return o=o.getChild(z),s+(o.namespaced?z+"/":"")},"")},vg.prototype.update=function(e){lH([],this.root,e)},vg.prototype.register=function(e,o,s){var z=this;s===void 0&&(s=!0),process.env.NODE_ENV!=="production"&&dH(e,o);var W=new Wf(o,s);if(e.length===0)this.root=W;else{var v=this.get(e.slice(0,-1));v.addChild(e[e.length-1],W)}o.modules&&yg(o.modules,function(g,r){z.register(e.concat(r),g,s)})},vg.prototype.unregister=function(e){var o=this.get(e.slice(0,-1)),s=e[e.length-1],z=o.getChild(s);if(!z){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+s+"', which is not registered");return}z.runtime&&o.removeChild(s)},vg.prototype.isRegistered=function(e){var o=this.get(e.slice(0,-1)),s=e[e.length-1];return o?o.hasChild(s):!1};function lH(e,o,s){if(process.env.NODE_ENV!=="production"&&dH(e,s),o.update(s),s.modules)for(var z in s.modules){if(!o.getChild(z)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+z+"' on hot reloading, manual reload is needed");return}lH(e.concat(z),o.getChild(z),s.modules[z])}}var cH={assert:function(e){return typeof e=="function"},expected:"function"},pNt={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},uH={getters:cH,mutations:cH,actions:pNt};function dH(e,o){Object.keys(uH).forEach(function(s){if(o[s]){var z=uH[s];yg(o[s],function(W,v){Zf(z.assert(W),fNt(e,s,v,W,z.expected))})}})}function fNt(e,o,s,z,W){var v=o+" should be "+W+' but "'+o+"."+s+'"';return e.length>0&&(v+=' in module "'+e.join(".")+'"'),v+=" is "+JSON.stringify(z)+".",v}var Ap=function e(o){var s=this;o===void 0&&(o={}),process.env.NODE_ENV!=="production"&&(Zf(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),Zf(this instanceof e,"store must be called with the new operator."));var z=o.plugins;z===void 0&&(z=[]);var W=o.strict;W===void 0&&(W=!1);var v=o.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new vg(o),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=v;var g=this,r=this,b=r.dispatch,d=r.commit;this.dispatch=function(_,y){return b.call(g,_,y)},this.commit=function(_,y,x){return d.call(g,_,y,x)},this.strict=W;var a=this._modules.root.state;z4(this,a,[],this._modules.root),yT(this,a),z.forEach(function(_){return _(s)})},_T={state:{configurable:!0}};Ap.prototype.install=function(e,o){e.provide(o||JG,this),e.config.globalProperties.$store=this;var s=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;s&&sNt(e,this)},_T.state.get=function(){return this._state.data},_T.state.set=function(e){process.env.NODE_ENV!=="production"&&Zf(!1,"use store.replaceState() to explicit replace store state.")},Ap.prototype.commit=function(e,o,s){var z=this,W=N4(e,o,s),v=W.type,g=W.payload,r=W.options,b={type:v,payload:g},d=this._mutations[v];if(!d){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+v);return}this._withCommit(function(){d.forEach(function(a){a(g)})}),this._subscribers.slice().forEach(function(a){return a(b,z.state)}),process.env.NODE_ENV!=="production"&&r&&r.silent&&console.warn("[vuex] mutation type: "+v+". Silent option has been removed. Use the filter functionality in the vue-devtools")},Ap.prototype.dispatch=function(e,o){var s=this,z=N4(e,o),W=z.type,v=z.payload,g={type:W,payload:v},r=this._actions[W];if(!r){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+W);return}try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(g,s.state)})}catch(d){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(d))}var b=r.length>1?Promise.all(r.map(function(d){return d(v)})):r[0](v);return new Promise(function(d,a){b.then(function(_){try{s._actionSubscribers.filter(function(y){return y.after}).forEach(function(y){return y.after(g,s.state)})}catch(y){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(y))}d(_)},function(_){try{s._actionSubscribers.filter(function(y){return y.error}).forEach(function(y){return y.error(g,s.state,_)})}catch(y){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(y))}a(_)})})},Ap.prototype.subscribe=function(e,o){return KG(e,this._subscribers,o)},Ap.prototype.subscribeAction=function(e,o){var s=typeof e=="function"?{before:e}:e;return KG(s,this._actionSubscribers,o)},Ap.prototype.watch=function(e,o,s){var z=this;return process.env.NODE_ENV!=="production"&&Zf(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(z.state,z.getters)},o,Object.assign({},s))},Ap.prototype.replaceState=function(e){var o=this;this._withCommit(function(){o._state.data=e})},Ap.prototype.registerModule=function(e,o,s){s===void 0&&(s={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(Zf(Array.isArray(e),"module path must be a string or an Array."),Zf(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,o),z4(this,this.state,e,this._modules.get(e),s.preserveState),yT(this,this.state)},Ap.prototype.unregisterModule=function(e){var o=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&Zf(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var s=vT(o.state,e.slice(0,-1));delete s[e[e.length-1]]}),QG(this)},Ap.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&Zf(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},Ap.prototype.hotUpdate=function(e){this._modules.update(e),QG(this,!0)},Ap.prototype._withCommit=function(e){var o=this._committing;this._committing=!0,e(),this._committing=o},Object.defineProperties(Ap.prototype,_T);var mNt=yNt(function(e,o){var s={};return process.env.NODE_ENV!=="production"&&!hH(o)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),gNt(o).forEach(function(z){var W=z.key,v=z.val;s[W]=function(){for(var g=[],r=arguments.length;r--;)g[r]=arguments[r];var b=this.$store.commit;if(e){var d=vNt(this.$store,"mapMutations",e);if(!d)return;b=d.context.commit}return typeof v=="function"?v.apply(this,[b].concat(g)):b.apply(this.$store,[v].concat(g))}}),s});function gNt(e){return hH(e)?Array.isArray(e)?e.map(function(o){return{key:o,val:o}}):Object.keys(e).map(function(o){return{key:o,val:e[o]}}):[]}function hH(e){return Array.isArray(e)||$G(e)}function yNt(e){return function(o,s){return typeof o!="string"?(s=o,o=""):o.charAt(o.length-1)!=="/"&&(o+="/"),e(o,s)}}function vNt(e,o,s){var z=e._modulesNamespaceMap[s];return process.env.NODE_ENV!=="production"&&!z&&console.error("[vuex] module namespace not found in "+o+"(): "+s),z}const bNt={name:"tooltip",props:{data:{type:Object,required:!0}},computed:{showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(e){},closeClick:function(e){this.data.link="",this.data.visible=!1}}};function xNt(e,o,s,z,W,v){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["back-tooltip",v.showTooltip])},[t.createElementVNode("div",{class:t.normalizeClass(["box-tooltip",v.showTooltip]),onClick:o[1]||(o[1]=(...g)=>v.tooltipClick&&v.tooltipClick(...g))},[t.createElementVNode("span",{class:"box-tooltip-close",onClick:o[0]||(o[0]=(...g)=>v.closeClick&&v.closeClick(...g))},"×"),t.renderSlot(e.$slots,"default",{},void 0,!0)],2)],2)}const _Nt=bb(bNt,[["render",xNt],["__scopeId","data-v-0336fa9c"]]),wNt=/^https:\/\/[a-z0-9]+\.execute-api\.[a-z0-9-]+\.amazonaws\.com\/(prod|qa\d*)\//,kNt=/^https:\/\/golstats-microservices\.s3[.-]us-west-2\.amazonaws\.com\//,SNt="https://apis.golstats.com",TNt="https://dev-apis.golstats.com";function CNt(e,o,s=!1){if(!o||o===1)return e;const z=s?TNt:SNt,W=e.match(wNt);if(W){const g=e.replace(W[0],"");return`${z}/${o}/${g}`}const v=e.match(kNt);if(v){const g=e.replace(v[0],"");return`${z}/${o}/${g}`}return e}const ENt=1e3,pH=ENt*60,wT=pH*60,fH=wT*24,ANt={data(){return{timeLeft:"",currentTime:new Date().valueOf(),interval:null,gameDateTime:new Date,now:new Date}},computed:{isToday(){return`${this.now.getFullYear()}.${this.now.getMonth()}.${this.now.getDate()}`==`${this.gameDateTime.getFullYear()}.${this.gameDateTime.getMonth()}.${this.gameDateTime.getDate()}`},gameStart(){return this.gameDateTime.toTimeString().slice(0,5)}},methods:{checkTimeLeft(){const e=new Date(this.gameData.dateTimeUTC).valueOf();e>this.currentTime?(this.timeLeft=this.getTimeLeft(e),this.interval=setInterval(()=>{this.timeLeft=this.getTimeLeft(e)},6e4)):this.timeLeft="00:00 hrs"},getTimeLeft(e){let o=e.valueOf()-this.currentTime;const s=Math.floor(o/fH);o=o-s*fH;const z=Math.floor(o/wT);o=o-z*wT;const W=Math.floor(o/pH);return`${s?`${s} dias `:""}${z<10?`0${z}`:z}:${W<10?`0${W}`:W} hrs.`}},beforeDestroy(){this.interval&&clearInterval(this.interval)}};function MNt(e){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${e}.png`}function PNt(e){return`${{}.PROFILE_PHOTO_PLAYER||"https://golstatsimages.blob.core.windows.net/players-profile/"}${e}.png`}const kT={GOAL_IDS:["1-1","1-2","1-3","1-4","1-5","1-6","1-7","1-12","1-13","1-16","4-14"],YELLOW_CARD_IDS:["2-8"],RED_CARD_IDS:["2-9"]},INt="/icn-play.svg",LNt="/icn-tiros-de-esquina.svg",BNt="/icn-tiro-a-porteria.svg",ONt="/icn-cambio.svg",zNt="/icn-falta.svg",NNt="/atajada.svg",DNt="/fuera-de-lugar.svg",ST="/gol.svg",FNt="/var.png",RNt="/tiempo-agregado.svg",VNt="/jugada-peligrosa.svg",jNt="/penal-marcado.svg",UNt="/penal-fallado.svg",GNt="/inicia-el-partido.svg",HNt="/fin-del-partido.svg",ZNt="/icn-tarjeta-amarilla.svg",WNt="/icn-tarjeta-roja.svg",XNt=[1,2,3,4,6],qNt={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=[],o=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return kT.GOAL_IDS.includes(o)?(e.push("is-main-event"),e.push("goal")):kT.YELLOW_CARD_IDS.includes(o)?(e.push("is-main-event"),e.push("yellow-card")):kT.RED_CARD_IDS.includes(o)?(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(o=>PNt(o))),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||XNt.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...mNt("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,o]=this.gameEvent.player_id.split("@");this.$emit("player-changed",{playerOut:Number(e),playerIn:Number(o),teamId:this.gameEvent.team_id})}}},YNt=e=>(t.pushScopeId("data-v-f8c0f071"),e=e(),t.popScopeId(),e),JNt={class:"time-line-event__details"},$Nt={width:"127",preload:"metadata",style:{"border-radius":"8px"}},KNt=["src"],QNt=YNt(()=>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)),eDt={class:"time-line-event__details__info"},tDt={key:0,class:"time-line-event__details__info__header__players"},aDt={class:"time-line-event__details__info__header__players__div-img"},rDt=["src"],nDt={class:"time-line-event__details__info__body"},iDt={class:"time-line-event__details__info__body__comment"},oDt={class:"time-line-event__minute__container"},sDt={class:"time-line-event__minute__container__text"},lDt={class:"time-line-event__minute__container__icon-container"},cDt={class:"time-line-event__minute__container__icon-container__icon"},uDt={key:0,src:LNt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},dDt={key:1,src:BNt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},hDt={key:2,src:ONt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},pDt={key:3,src:zNt,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},fDt={key:4,src:NNt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},mDt={key:5,src:DNt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},gDt={key:6,src:ST,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},yDt={key:7,src:ST,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},vDt={key:8,src:ST,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},bDt={key:9,src:FNt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},xDt={key:10,src:RNt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},_Dt={key:11,src:VNt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},wDt={key:12,src:jNt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},kDt={key:13,src:UNt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},SDt={key:14,src:GNt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},TDt={key:15,src:HNt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},CDt={key:16,src:ZNt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},EDt={key:17,src:WNt,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},ADt={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 MDt(e,o,s,z,W,v){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",v.teamTypeClasses]),style:t.normalizeStyle({width:`${s.width}px`}),key:W.gameEventKey},[t.createElementVNode("div",JNt,[s.canPlayVideos&&s.gameEvent.video_link!=="-"&&s.timeLineWidth>700?(t.openBlock(),t.createElementBlock("div",{key:0,class:"time-line-event__details__video-thumbnail",onClick:o[0]||(o[0]=g=>v.thumbnailClick(s.gameEvent.video_link,s.gameEvent.event_type_name))},[t.createElementVNode("video",$Nt,[t.createElementVNode("source",{src:s.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,KNt)]),QNt])):t.createCommentVNode("",!0),t.createElementVNode("div",eDt,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",v.teamTypeClasses2])},[s.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",tDt,[v.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(v.srcImgPlayers,(g,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":r===1}]),key:r},[t.createElementVNode("div",aDt,[t.createElementVNode("img",{src:g,alt:""},null,8,rDt)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",v.nameClasses]),onClick:o[1]||(o[1]=g=>v.thumbnailClick(s.gameEvent.video_link,s.gameEvent.event_type_name))},[s.canPlayVideos&&s.gameEvent.video_link!=="-"?(t.openBlock(),t.createElementBlock("img",{key:0,src:INt,class:t.normalizeClass(`time-line-event__details__info__header__event-play ${[1,2].includes(s.gameEvent.event_type_id)?`time-line-event__details__info__header__event-play__${s.gameEvent.event_type_name}`:s.gameEvent.video_link!=="-"?"time-line-event__details__info__header__event-play__normal-video":""}`)},null,2)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(s.gameEvent.category_id?s.gameEvent.event_type_id===5?s.gameEvent.category_name:s.gameEvent.event_type_name==="Gol"?`${[13,16].includes(s.gameEvent.category_id)?"Autogol":"Gol"} de `+s.gameEvent.team_name:s.gameEvent.event_type_name:s.gameEvent.comments),1)],2)],2),t.createElementVNode("div",nDt,[t.createElementVNode("div",iDt,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",v.minuteClasses])},[t.createElementVNode("div",oDt,[t.createElementVNode("div",sDt,t.toDisplayString(s.gameEvent.minute)+"'",1),t.createElementVNode("div",lDt,[t.createElementVNode("div",cDt,[s.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",uDt)):s.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",dDt)):s.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",hDt)):s.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",pDt)):s.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",fDt)):s.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",mDt)):s.gameEvent.category_id==6&&s.gameEvent.event_type_id==1||s.gameEvent.category_id==5&&s.gameEvent.event_type_id==1||s.gameEvent.category_id==1&&s.gameEvent.event_type_id==1||s.gameEvent.category_id==2&&s.gameEvent.event_type_id==1||s.gameEvent.category_id==3&&s.gameEvent.event_type_id==1||s.gameEvent.category_id==7&&s.gameEvent.event_type_id==1||s.gameEvent.category_id==12&&s.gameEvent.event_type_id==1?(t.openBlock(),t.createElementBlock("img",gDt)):s.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",yDt)):s.gameEvent.category_id==13||s.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",vDt)):s.gameEvent.category_id==30||s.gameEvent.category_id==31||s.gameEvent.category_id==32||s.gameEvent.category_id==33||s.gameEvent.category_id==34||s.gameEvent.category_id==35||s.gameEvent.category_id==36||s.gameEvent.category_id==37||s.gameEvent.category_id==38||s.gameEvent.category_id==39||s.gameEvent.category_id==40?(t.openBlock(),t.createElementBlock("img",bDt)):s.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",xDt)):s.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",_Dt)):s.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",wDt)):s.gameEvent.category_id==15||s.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",kDt)):s.gameEvent.category_id==0&&s.gameEvent.game_status_id==16||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==18||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==20||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==22?(t.openBlock(),t.createElementBlock("img",SDt)):s.gameEvent.category_id==0&&s.gameEvent.game_status_id==13||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==17||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==19||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==21||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==23?(t.openBlock(),t.createElementBlock("img",TDt)):s.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",CDt)):s.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",EDt)):(t.openBlock(),t.createElementBlock("img",ADt))])])])],2)],6)}const PDt=bb(qNt,[["render",MDt],["__scopeId","data-v-f8c0f071"]]),IDt={"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"},LDt={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 D4=null;const BDt={name:"TimeLine",components:{Tooltip:_Nt,TimeLineEvent:PDt},mixins:[ANt],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 o=await this.fetchGameEvents(e);o?(this.gameEvents=[...o],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(o){throw new Error(o)}},getGameEventClassAndSetIcon(e,o){return e.icon=o===0?"inicio_del_partido":IDt[`${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 o=this.$store.getters.getProviderId,s=this.$store.getters.getIsDevApis,z=CNt(`${this.gameEventsUrl}${e}`,o,s),{data:{plays:W}}=await qG.get(z);return W}catch(o){throw new Error(o)}},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)D4=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),D4.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,o){const s=this.$refs[`gameEventDiv${o}`][0],z=this.$refs[`gameEventLine${o}`]?this.$refs[`gameEventLine${o}`][0]:null,W=e+12;s&&(s.style.height=`${W}px`),z&&(z.style.height=`${W}px`)},sortGameEvents(){this.gameEvents.sort((e,o)=>this.getMatchLapseMinutes(e.match_lapse)+Number(e.minute)-(this.getMatchLapseMinutes(o.match_lapse)+Number(o.minute))),this.gameEventsByPeriod={firstHalf:[],secondHalf:[]},this.gameEvents.forEach(e=>{this.gameEventsByPeriod[e.match_lapse===1?"firstHalf":"secondHalf"].push(e)})},getMatchLapseMinutes(e){let o=0;switch(e){case 1:o=0;break;case 2:o=45;break;case 3:o=90;break;case 4:o=105;break;case 5:o=120;break}return o},addGameEventFromChannel(e){this.areGameEventsFilled?(this.gameEvents.push(e),this.sortGameEvents()):this.gameEventsQueue.push(e)},deleteGameEventFromChannel(e){const o=this.gameEvents.findIndex(s=>s.play_id===e.play_id);o&&this.gameEvents.splice(o,1)},checkTimeLineStatus(){this.gameEvents.forEach(o=>{const s=LDt[o.game_status];s&&this.timeLineStatuses.push({...s,gameEvent:o})}),this.timeLineStatuses.sort((o,s)=>s.weight-o.weight);const e=this.timeLineStatuses[0];e&&(this.currentStatus=e,e.playTimer&&this.startTimer())},startTimer(){},getTeamLogoSrc(e="homeTeam"){const o=this.gameData[e].team_id;return MNt(o)},thumbnailClick(e){this.canPlayVideos&&(this.dataVideo.link=e,this.dataVideo.visible=!0)}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){D4&&D4.unobserve(this.$refs.timeLine)},sockets:{new_mxm([e,o]){this.channelName===e&&this.addGameEventFromChannel(o)},update_mxm([e,o]){this.channelName===e&&(this.deleteGameEventFromChannel(o),this.addGameEventFromChannel(o))},delete_mxm([e,o]){this.channelName===e&&this.deleteGameEventFromChannel(o)}}},mH=e=>(t.pushScopeId("data-v-0c454414"),e=e(),t.popScopeId(),e),ODt={ref:"timeLine",class:"time-line"},zDt={class:"time-line__header"},NDt={class:"time-line__header__dot"},DDt={class:"time-line__header__dot__home-team team-logo"},FDt=["src"],RDt={class:"time-line__header__dot__away-team team-logo"},VDt=["src"],jDt={key:1,class:"start-line"},UDt=mH(()=>t.createElementVNode("div",null,null,-1)),GDt=mH(()=>t.createElementVNode("div",null,null,-1)),HDt=[UDt,GDt],ZDt={key:1,class:"noEventText"},WDt={class:"tooltip-data"},XDt=["src"];function qDt(e,o,s,z,W,v){const g=t.resolveComponent("TimeLineEvent"),r=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",ODt,[t.createElementVNode("div",zDt,[t.createElementVNode("div",NDt,[t.createElementVNode("div",DDt,[t.createElementVNode("img",{src:v.getTeamLogoSrc("homeTeam"),alt:""},null,8,FDt)]),t.createElementVNode("div",RDt,[t.createElementVNode("img",{src:v.getTeamLogoSrc("awayTeam"),alt:""},null,8,VDt)])])]),(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events",key:`tlk-${W.gameEvents.length}`},[s.gameData.status!==4||s.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(v.gameEventsToShow,(b,d)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:b.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${d}`,class:t.normalizeClass(v.getGameEventClassAndSetIcon(b,d))},[t.createElementVNode("div",{class:t.normalizeClass(v.getEventContainerClass(b))},[t.createVNode(g,{"game-event":b,"is-mobile":v.isMobile,"time-line-width":W.timeLineWidth,width:v.gameEventWidth,"can-play-videos":s.canPlayVideos,onEventHeight:a=>v.updateContainerHeight(a,d),onPlayerChanged:o[0]||(o[0]=a=>e.$emit("player-changed",a)),onThumbnailClick:v.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","can-play-videos","onEventHeight","onThumbnailClick"])],2),d>0?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:`gameEventLine${d}`,class:"line"},null,512)):t.createCommentVNode("",!0),s.gameData.status===1&&d===v.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",jDt,HDt)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",ZDt,"Aún no comienza el partido"))]))],512),t.createVNode(r,{data:W.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",WDt,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:W.dataVideo.link,format:"video/mp4"},null,8,XDt)])])]),_:1},8,["data"])],64)}const YDt=bb(BDt,[["render",qDt],["__scopeId","data-v-0c454414"]]),JDt={class:"game-time-line__options"},$Dt={class:"game-time-line__timeline"},KDt={__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},providerId:{type:Number,default:0},isDevApis:{type:Boolean,default:!1}},setup(e){const o=e;qG.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"}),z=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 W=null;const v=$zt();v.commit("setProviderId",o.providerId),v.commit("setIsDevApis",o.isDevApis);const g=t.ref(["Todo","1er tiempo","2do tiempo"]),r=t.ref("Todo"),b=t.ref({}),d=t.ref(null),a=t.ref(0),_=t.computed(()=>{let i="all";return r.value==="1er tiempo"||r.value==="1er"?i="firstHalf":(r.value==="2do tiempo"||r.value==="2do")&&(i="secondHalf"),i}),y=t.computed(()=>a.value<500);function x(i){r.value=i}function u(i){b.value=i}function n(){if(window.ResizeObserver)W=new ResizeObserver(()=>{a.value=d.value.clientWidth}),W.observe(d.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{n()}),t.onBeforeUnmount(()=>{W&&W.unobserve(d.value)}),(i,f)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:d,class:"game-time-line"},[t.createElementVNode("div",JDt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value,l=>(t.openBlock(),t.createElementBlock("div",{key:l,class:"game-time-line__options__option"},[t.createVNode(cOt,t.mergeProps(a.value<390?z.value:s.value,{text:l=="Todo"?l:a.value<390?l.substring(0,3):l,"is-active":r.value===l,onClick:h=>x(l)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",$Dt,[t.createVNode(YDt,{"game-data":e.game,"time-line-period":_.value,"is-mobile":y.value,socket:e.socket,"can-play-videos":e.canPlayVideos,onGameEventsByPeriodFilled:u},null,8,["game-data","time-line-period","is-mobile","socket","can-play-videos"])])],512))}},QDt=bb(KDt,[["__scopeId","data-v-2fac45b8"]]),nJt="",eFt={class:"game-data__header"},tFt={class:"game-data__header__tournament-season-dropdown"},aFt={class:"game-data__header__teams-carousel"},rFt={class:"game-data__body"},nFt={key:0,class:"no-stats-container"},iFt={key:1,class:"no-stats-container-mobile"},oFt={class:"game-data__body__menu"},sFt={class:"game-data__body__menu__contmenuswitch"};bu.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const lFt=t.defineComponent({name:"GSC-GameData",components:{StatisticsMain:Zse,GSCGameTimeLine:QDt,GscSwitchComponent:Sk,GSCLineupsMain:z_e,GSCPositining:iyt,GSCDatosGSMain:DTe,GSCVideoGame:nFe,ModalEvents:Oz,GSCTacticaFijaMain:sOt,GSCProminentMain:Bit,GSCComparative:Rlt}}),cFt=$i(Object.assign(lFt,{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},isFemaleMode:{type:Boolean,default:!1}},emits:["openmedia","change-season-id","onOpenProfile","openProfileTeam","openProfilePlayer"],setup(e,{emit:o}){const s=pw();let z=null;Nd.on("socket-connected",()=>{s.commit("nextGeneral/updateIsSocketConnected",W.socket.connected)});const W=e,v=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),g=t.ref({season:[]}),r=t.ref({}),b=t.ref(!1),d=t.ref({}),a=t.ref(1),_=t.ref(0),y=3e4,x=3e4,u=3e4,n=3e4,i=3e4,f=3e4,l=3e4,h=3e4,m=6e4,w=t.ref(null),T=t.ref(null),A=t.ref(null),C=t.ref([]),I=t.ref(null),L=t.ref(!0),E=t.ref(new Set([1,2])),P=t.ref({}),M=t.ref({minute:"",recent_lapse:0,score:{}}),S=t.ref(0),B=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),k=t.ref(W.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:W.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:W.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}]),O=t.ref(W.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:W.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:W.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}]),D=t.ref(W.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:W.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:W.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(W.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:W.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:W.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 G=null;const H=t.ref(null),U=t.ref(0),J=t.ref(O.value[0]),re=t.ref([]);let q=t.ref("");const ae={seasonAndPrivileges:null,canPrivilegesTeamPlayVideos:!1,homeTeamDetails:{canPlayVideos:!1,team:{}},awayTeamDetails:{canPlayVideos:!1,team:{}}},ee=t.computed(()=>{const ot=[];return r.value&&r.value.id&&(ot.push({id:r.value.id,name:r.value.name,type:r.value.type}),r.value.related_seasons&&r.value.related_seasons.forEach(vt=>{ot.push({id:vt.id,type:vt.type})})),ot}),$=t.computed(()=>{if(W.clientPrivilegesBySeasons){const ot=W.clientPrivilegesBySeasons.seasonsAndPrivileges.get(r.value.id);if(ot)return ot.teamId}return 0});function Q(){b.value=!1}function ce(ot){const vt=ot.split(",");return!(vt.length<2||vt[1].split(" ").length<2)}function de(ot){w.value=ot}function he(ot){C.value.push(ot)}function pe(ot){I.value=ot}function ne(ot){A.value=ot}function le(ot){T.value=ot}function ie(ot){if(!ce(ot))return"";const vt=ve(ot);return`${me(ot)}. ${vt}`}function me(ot){return ot.split(",")[1].split(" ")[1][0]}function ve(ot){const vt=ot.split(",")[0].split(" ");return vt[0].length<=3&&vt.length>1?`${vt[0]} ${vt[1]}`:vt[0]}async function ye(ot){try{const vt=bu.create({headers:{Authorization:`${v.value}`}});P.value={};const yt=await vt.get("https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/"+ot.game_id);if(P.value[ot.home_team.team_id]=[],P.value[ot.home_team.team_id].team={name:ot.home_team.acronym,logo:ot.home_team.logo},P.value[ot.home_team.team_id].goals=[],P.value[ot.home_team.team_id].red=[],P.value[ot.home_team.team_id].yellow=[],P.value[ot.visiting_team.team_id]=[],P.value[ot.visiting_team.team_id].team={name:ot.visiting_team.acronym,logo:ot.visiting_team.logo},P.value[ot.visiting_team.team_id].goals=[],P.value[ot.visiting_team.team_id].red=[],P.value[ot.visiting_team.team_id].yellow=[],yt.data.minute!=null&&(M.value={minute:yt.data.minute,recent_lapse:yt.data.recent_lapse,score:yt.data.score}),yt.data.plays)for(let It=0;It<yt.data.plays.length;It++)yt.data.plays[It].category_name=="Roja"&&yt.data.plays[It].status==1&&(ot.home_team.team_id==yt.data.plays[It].team_id?(ie(yt.data.plays[It].player_name)in P.value[ot.home_team.team_id].red||(P.value[ot.home_team.team_id].red[ie(yt.data.plays[It].player_name)]={},P.value[ot.home_team.team_id].red[ie(yt.data.plays[It].player_name)].event=[],P.value[ot.home_team.team_id].red[ie(yt.data.plays[It].player_name)].name=ie(yt.data.plays[It].player_name)),P.value[ot.home_team.team_id].red[ie(yt.data.plays[It].player_name)].event.push(yt.data.plays[It].minute)):(ie(yt.data.plays[It].player_name)in P.value[ot.visiting_team.team_id].red||(P.value[ot.visiting_team.team_id].red[ie(yt.data.plays[It].player_name)]={},P.value[ot.visiting_team.team_id].red[ie(yt.data.plays[It].player_name)].event=[],P.value[ot.visiting_team.team_id].red[ie(yt.data.plays[It].player_name)].name=ie(yt.data.plays[It].player_name)),P.value[ot.visiting_team.team_id].red[ie(yt.data.plays[It].player_name)].event.push(yt.data.plays[It].minute))),yt.data.plays[It].category_name=="Amarilla"&&yt.data.plays[It].status==1&&(ot.home_team.team_id==yt.data.plays[It].team_id?(ie(yt.data.plays[It].player_name)in P.value[ot.home_team.team_id].yellow||(P.value[ot.home_team.team_id].yellow[ie(yt.data.plays[It].player_name)]={},P.value[ot.home_team.team_id].yellow[ie(yt.data.plays[It].player_name)].event=[],P.value[ot.home_team.team_id].yellow[ie(yt.data.plays[It].player_name)].name=ie(yt.data.plays[It].player_name)),P.value[ot.home_team.team_id].yellow[ie(yt.data.plays[It].player_name)].event.push(yt.data.plays[It].minute)):(ie(yt.data.plays[It].player_name)in P.value[ot.visiting_team.team_id].yellow||(P.value[ot.visiting_team.team_id].yellow[ie(yt.data.plays[It].player_name)]={},P.value[ot.visiting_team.team_id].yellow[ie(yt.data.plays[It].player_name)].event=[],P.value[ot.visiting_team.team_id].yellow[ie(yt.data.plays[It].player_name)].name=ie(yt.data.plays[It].player_name)),P.value[ot.visiting_team.team_id].yellow[ie(yt.data.plays[It].player_name)].event.push(yt.data.plays[It].minute))),yt.data.plays[It].event_type_name=="Gol"&&yt.data.plays[It].status==1&&(ot.home_team.team_id==yt.data.plays[It].team_id?yt.data.plays[It].category_name=="Autogol"?(ie(yt.data.plays[It].player_name)in P.value[ot.visiting_team.team_id].goals||(P.value[ot.visiting_team.team_id].goals[ie(yt.data.plays[It].player_name)]={},P.value[ot.visiting_team.team_id].goals[ie(yt.data.plays[It].player_name)].event=[],P.value[ot.visiting_team.team_id].goals[ie(yt.data.plays[It].player_name)].name=ie(yt.data.plays[It].player_name)),P.value[ot.visiting_team.team_id].goals[ie(yt.data.plays[It].player_name)].event.push(yt.data.plays[It].minute)):(ie(yt.data.plays[It].player_name)in P.value[ot.home_team.team_id].goals||(P.value[ot.home_team.team_id].goals[ie(yt.data.plays[It].player_name)]={},P.value[ot.home_team.team_id].goals[ie(yt.data.plays[It].player_name)].event=[],P.value[ot.home_team.team_id].goals[ie(yt.data.plays[It].player_name)].name=ie(yt.data.plays[It].player_name)),P.value[ot.home_team.team_id].goals[ie(yt.data.plays[It].player_name)].event.push(yt.data.plays[It].minute)):yt.data.plays[It].category_name=="Autogol"?(ie(yt.data.plays[It].player_name)in P.value[ot.home_team.team_id].goals||(P.value[ot.home_team.team_id].goals[ie(yt.data.plays[It].player_name)]={},P.value[ot.home_team.team_id].goals[ie(yt.data.plays[It].player_name)].event=[],P.value[ot.home_team.team_id].goals[ie(yt.data.plays[It].player_name)].name=ie(yt.data.plays[It].player_name)),P.value[ot.home_team.team_id].goals[ie(yt.data.plays[It].player_name)].event.push(yt.data.plays[It].minute)):(ie(yt.data.plays[It].player_name)in P.value[ot.visiting_team.team_id].goals||(P.value[ot.visiting_team.team_id].goals[ie(yt.data.plays[It].player_name)]={},P.value[ot.visiting_team.team_id].goals[ie(yt.data.plays[It].player_name)].event=[],P.value[ot.visiting_team.team_id].goals[ie(yt.data.plays[It].player_name)].name=ie(yt.data.plays[It].player_name)),P.value[ot.visiting_team.team_id].goals[ie(yt.data.plays[It].player_name)].event.push(yt.data.plays[It].minute)))}catch(vt){return Promise.reject(vt)}}function ke(ot){b.value=!0,ot.is_live!=1&&ot.game_status!=0&&(ot.game_status==4||Object.keys(ot.minutes).length>0)?(S.value=1,P.value={plays:ot.minutes,home_team:ot.home_team,visiting_team:ot.visiting_team}):(S.value=0,ye(ot))}function Ee(){G=new ResizeObserver(ot=>{for(const vt of ot)U.value=vt.contentRect.width}),G.observe(H.value)}const Te=t.computed(()=>{let ot={};return d.value&&d.value.game_id&&(ot={gameId:d.value.game_id,id:d.value.game_id,seasonId:d.value.season_id,regularSeasonId:d.value.regularSeasonId,matchday_name:d.value.matchday_name,status:d.value.game_status,score:d.value.score,game_status:d.value.game_status,dateTimeUTC:d.value.date_time_utc,homeTeam:d.value.home_team,awayTeam:d.value.visiting_team,is_live:d.value.is_live,minutes:d.value.minutes}),ot});t.watch(()=>d.value.game_id,Le,{immediate:!0}),t.watch(()=>d.value.is_live,je,{immediate:!0}),t.watch(()=>s.state.nextGeneral.gameForAnalysis,()=>{s.commit("nextGeneral/updateIsSocketConnected",W.socket.connected)},{deep:!0,immediate:!0});function Pe(ot){a.value=ot.is_captured,_.value=ot.is_female,L.value=ot.is_captured!==0,g.value.id!==ot.id&&(g.value=ot,s.commit("gameGlobal/setTournamentType",ot.tournament_type))}const Be=o;function Le(ot,vt){s.commit("nextGeneral/updateShowLiveData",!0);const yt=_.value?"Destacados":"Destacadas";O.value.forEach(It=>{It.name===yt&&(It.name=_.value?"Destacadas":"Destacados")}),ye({game_id:d.value.game_id,home_team:d.value.home_team,visiting_team:d.value.visiting_team}),Re(),V.value+=1}function je(ot,vt){if(Re(),s.state.nextGeneral.gameForAnalysis.is_live!==ot&&s.commit("nextGeneral/updateGameForAnalysis",{...s.state.nextGeneral.gameForAnalysis,is_live:d.value.is_live,game_status:d.value.game_status}),ot){const yt=qw();yt.disconnected?Yw():yt.connected&&UE(`game.${d.value.game_id}.v2`),Me(),z=setInterval(()=>{S.value=0,ye({game_id:d.value.game_id,home_team:d.value.home_team,visiting_team:d.value.visiting_team})},6e4)}else Me(),Jw();ot!==vt&&(V.value+=1)}function Me(){z&&clearInterval(z)}function Re(){O.value=[],d.value.is_live||d.value.game_status===4?O.value=[...k.value]:O.value=[...D.value],W.isWidget||((r.value.is_tactic_available===0||d.value.is_live||d.value.game_status===0)&&O.value.pop(),d.value.has_tracking===1&&!(d.value.is_live||d.value.game_status===4)&&O.value.push({componentName:"GSCPositining",name:"Posicionamiento",id:8})),J.value=O.value[0]}function Ie(ot){ot.gameSeasonId=d.value.season_id,ot.gameRegularSeasonId=d.value.regularSeasonId,!(!ot.auxwidget&&xe.value&&!xe.value.canPrivilegesTeamPlayVideos)&&((d.value.is_live||d.value.game_status===0||d.value.game_status===1)&&(ot.gameIdsToFilter=[d.value.game_id]),ot.isLiveAccumulated&&(ot.gameIdsToFilter=null),(d.value.is_live||d.value.game_status===0)&&!ot.isLiveAccumulated&&(ot.liveGameConfig={gameId:d.value.game_id}),Be("openmedia",ot))}function ge(ot){Be("onOpenProfile",ot)}function Ce(ot){Be("openProfileTeam",ot)}function we(ot){Be("openProfilePlayer",ot)}function Ve(ot){We(ot),ot=="Estadísticas"&&(q.value="Comparativa")}function Ne(){q.value=""}function Ue(ot){r.value.id!==ot.id&&(r.value=ot,Be("change-season-id",ot.id))}const Xe=t.computed(()=>O.value.reduce((ot,vt)=>(W.disabledSectionsIds.includes(vt.id)||xe.value&&!xe.value.isVideoTabVisible&&vt.id===2||W.clientPrivilegesBySeasons&&vt.id===7||(L.value||vt.id!==5&&vt.id!==6)&&ot.push(vt.name),ot),[]));function Ze(ot){if(d.value.is_live||d.value.game_status===1||d.value.game_status===0){const vt=ot.playingAs.has(d.value.playingAs);return W.clientPrivilegesBySeasons.canPlayVideos&&vt}else{const vt=Oe.value.filter(yt=>ot.playingAs.has(yt.playingAs));return W.clientPrivilegesBySeasons.canPlayVideos&&vt.length>0}}const xe=t.computed(()=>{if(W.clientPrivilegesBySeasons){if(r.value&&d.value&&d.value.game_id){const ot=W.clientPrivilegesBySeasons.seasonsAndPrivileges.get(r.value.id);if(ot)if(Fe(ot.playingAs),(d.value.is_live||d.value.game_status===1||d.value.game_status===0)&&s.state.nextGeneral.showLiveData){const vt=ot.playingAs.has(d.value.playingAs);return{seasonAndPrivileges:ot,canPrivilegesTeamPlayVideos:W.clientPrivilegesBySeasons.canPlayVideos&&vt,isPrivilegesTeamOnly:!1,isPrivilegesTeamHome:d.value.home_team.team_id===ot.teamId,homeTeamDetails:{canPlayVideos:vt,team:d.value.home_team},awayTeamDetails:{canPlayVideos:vt,team:d.value.visiting_team},isVideoTabVisible:Ze(ot)}}else{const vt=d.value.home_team.team_id===ot.teamId,yt=Oe.value.filter(Ut=>ot.playingAs.has(Ut.playingAs));return{seasonAndPrivileges:ot,canPrivilegesTeamPlayVideos:W.clientPrivilegesBySeasons.canPlayVideos&&yt.length>0,isPrivilegesTeamOnly:!0,isPrivilegesTeamHome:vt,homeTeamDetails:{canPlayVideos:W.clientPrivilegesBySeasons.canPlayVideos&&vt&&yt.length>0,team:d.value.home_team},awayTeamDetails:{canPlayVideos:W.clientPrivilegesBySeasons.canPlayVideos&&!vt&&yt.length>0,team:d.value.visiting_team},isVideoTabVisible:Ze(ot)}}Fe(new Set)}return ae}return null}),Oe=t.computed(()=>{if(W.clientPrivilegesBySeasons){if(r.value){const ot=W.clientPrivilegesBySeasons.seasonsAndPrivileges.get(r.value.id);if(ot)return re.value.filter(vt=>vt.game_status===1&&ot.playingAs.has(vt.playingAs))}return[]}return[]});t.watch(Xe,()=>{xe.value&&!xe.value.canPrivilegesTeamPlayVideos&&(J.value.id===2||J.value.id===7||J.value.id===8)&&We("Resumen")},{deep:!0,immediate:!0});function Fe(ot){E.value=ot}function We(ot){if(s.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),I.value!=null&&(clearInterval(I.value),I.value=null),C.value.length>0){for(let vt of C.value)clearInterval(vt);C.value=[]}W.isWidget?J.value=O.value.find(vt=>vt.name===ot)||O.value[1]:J.value=O.value.find(vt=>vt.name===ot)||O.value[0]}t.onMounted(()=>{Ee(),t.nextTick(()=>{W.isSynchronization&&We("Táctica Fija")})}),t.onBeforeUnmount(()=>{if(G&&G.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),I.value!=null&&(clearInterval(I.value),I.value=null),C.value.length>0){for(let ot of C.value)clearInterval(ot);C.value=[]}$w()});function et(ot){if(ot.playingAs||(ot.playingAs=$.value?ot.home_team.team_id===$.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),I.value!=null&&(clearInterval(I.value),I.value=null),C.value.length>0){for(let vt of C.value)clearInterval(vt);C.value=[]}d.value=ot,ot.is_live&&ot.game_status===4?Yw():Jw()}function tt(ot){re.value=ot.map(vt=>{const yt={...vt};return $.value&&(yt.playingAs=yt.home_team.team_id===$.value?1:2),yt})}return(ot,vt)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:H},[t.createElementVNode("div",eFt,[t.withDirectives(t.createElementVNode("div",tFt,[t.createVNode(t.unref(UT),{"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,"is-female-mode":e.isFemaleMode,onInput:Pe,onChangeTournaments:Pe},null,8,["current-season-id","tournaments-ids-to-include","api-url","are-female-visible","is-clubes-active","is-female-mode"]),t.createVNode(t.unref(ZT),{"current-season-id":e.currentSeasonId,"list-height":"370px",seasons:g.value.seasons,onInput:Ue},null,8,["current-season-id","seasons"])],512),[[t.vShow,e.areTournamentAndSeasonSelectsVisible]]),t.createElementVNode("div",aFt,[t.createVNode(t.unref(eK),{"plays-live":P.value,"info-live":M.value,token:B.value,is_captured:a.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":$.value,"only-games-team-id":$.value,"tournament-type":t.unref(s).state.gameGlobal.tournamentType,onChangeGameCarousel:et,onOpenModalEvent:ke,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"])])]),b.value?(t.openBlock(),t.createBlock(Oz,{key:0,width:U.value,onCloseModalEventsLive:Q,plays:P.value,game:d.value,type:S.value},null,8,["width","plays","game","type"])):t.createCommentVNode("",!0),t.createElementVNode("div",rFt,[d.value&&"live_stats"in d.value&&d.value.live_stats==0&&d.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[U.value>500?(t.openBlock(),t.createElementBlock("div",nFt,vt[0]||(vt[0]=[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)]))):(t.openBlock(),t.createElementBlock("div",iFt,vt[1]||(vt[1]=[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)])))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",oFt,[t.createElementVNode("div",sFt,[t.createVNode(t.unref(Sk),{type:2,buttons:Xe.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:We},null,8,["buttons","width","selected-option"])])]),Te.value&&Te.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(J.value.componentName),{key:V.value,game:Te.value,"is-widget":e.isWidget,"team-widget":e.teamWidget,onIntervalidpossesion:le,onIntervalidhighlive:ne,onIntervalidtops:he,onIntervalidgs:pe,subsection:t.unref(q),seasonSelected:r.value,tournamentSelected:g.value,showLineups:L.value,socket:e.socket,"time-live-prominent-data":y,"time-live-highlights-prominent-and-video":x,"time-live-possesion":u,"time-live-video-goals":n,"time-live-video-best-plays":i,"time-live-video-this-game":f,"time-live-video-specific-plays":l,"time-live-comparative-best-players":h,"time-live-comparative-avanced":m,is_captured:a.value,"is-tactic-visible":!!r.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":$.value,"play-videos-privileges":xe.value,token:B.value,"game-events-interval-minutes":e.gameEventsIntervalMinutes,"volumetric-field-interval-minutes":e.volumetricFieldIntervalMinutes,"chalkboard-interval-minutes":e.chalkboardIntervalMinutes,"is-female-mode":e.isFemaleMode,onResetSubsection:Ne,onOpenmedia:Ie,onOnOpenProfile:ge,onOpenProfileTeam:Ce,onOpenProfilePlayer:we,onChangeToTab:Ve,onOpenMediaPlayer:Ie,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","is-female-mode"])):t.createCommentVNode("",!0)],64))])],512))}}),[["__scopeId","data-v-37215e37"]]);async function Ah({url:e,options:o={},retries:s=3}){return await bu.get(e,o).then(z=>z).catch(z=>s>0?Ah({url:e,options:o,retries:s-1}):z)}async function gH({seasonId:e},o=!0){try{return(await(await fetch(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`)).json()).data}catch(s){if(o)return gH({seasonId:e},!1);throw new Error(s)}}async function uFt({seasonId:e}){try{return(await Ah({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(o){return Promise.reject(o)}}async function dFt({seasonId:e}){try{return(await Ah({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(o){return Promise.reject(o)}}function hFt(e,o,s,z,W,v,g=!1){const r=s.map(b=>b===1?2:b===2?1:3);return e.filter(b=>{const d=v&&b[W.teamId]?b[W.teamId]!==v:!1,a=o===1?2:1;return(g||z.includes(b[W.gameId]))&&(!o||(d?a:o)===b[W.playingAs])&&(s.includes(b[W.matchResult])&&b[W.teamId]===v||r.includes(b[W.matchResult])&&b[W.teamId]!==v)})}function yH(e,o,s,z,W){return o.length===2&&s.length===3&&z.length===6?e:e.filter(v=>o.includes(v[W.playingAs])&&s.includes(v[W.matchResult])&&z.includes(v[W.section]))}async function vH({seasonId:e}){try{const o=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await Ah({url:o})).data}catch(o){return Promise.reject(o)}}async function pFt({seasonId:e,gameId:o}){try{const s=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${o}`,{data:z}=await Ah({url:s});return z}catch(s){return Promise.reject(s)}}async function fFt({gameId:e}){try{const o=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await Ah({url:o})).data.data}catch(o){return Promise.reject(o)}}async function mFt({gameId:e}){try{const o=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await Ah({url:o})).data.data||[]}catch(o){return Promise.reject(o)}}const gFt=["categoryId","matchLapse","section","matchResult","playingAs","total"];let TT=null;function bH(){return TT||(TT=by(gFt)),TT}async function yFt(e){try{const o=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await Ah({url:o})).data}catch(o){return Promise.reject(o)}}async function xH({seasonId:e,teamId:o}){try{return await Ah({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${o}`})}catch(s){return Promise.reject(s)}}async function vFt(e){try{const o=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await Ah({url:o})}catch(o){return Promise.reject(o)}}async function bFt(e){try{return await Ah({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(o){return Promise.reject(o)}}const xFt={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,o,s,z){return hFt(e.seasonPlays,z["filterGeneral/getPlayingAs"],z["filterGeneral/getResults"],z["filterGeneral/getSelectedGamesIds"],bH(),z["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const o=e.currentSeasonGames.reduce((s,z)=>{const W={...z};return W.home_team=e.currentSeasonTeams.find(v=>v.team_id===z.home_team),W.visiting_team=e.currentSeasonTeams.find(v=>v.team_id===z.visiting_team),s[z.matchday_abbreviation]?s[z.matchday_abbreviation][z.game_status===3?"canceled":z.date]?s[z.matchday_abbreviation][z.game_status===3?"canceled":z.date].push(W):s[z.matchday_abbreviation][z.game_status===3?"canceled":z.date]=[W]:s[z.matchday_abbreviation]={[z.game_status===3?"canceled":z.date]:[W]},s},{});for(let[s,z]of Object.entries(o))o[s]=Object.entries(z).map(([W,v])=>({date:W,games:v})),o[s].sort((W,v)=>W.date<v.date?-1:W.date>v.date?1:0);return o},matchdaysDates(e,o){let s=[];if(o.nextGamesSchedule){let z=Object.keys(o.nextGamesSchedule);for(let W of z){let v=Number(W.replace("M","")),g=o.nextGamesSchedule[W].map(r=>({matchday:v,date:new Date(r.date)}));s=s.concat(g)}}return s},closestMatchDay(e,o){let s=new Date,z=0,W=-new Date(0,0,0).valueOf(),v=o.matchdaysDates,g=v.length;for(let r=0;r<v.length;r++)z=Math.abs(v[r].date-s),z<W&&(g=r,W=z);return v[g]?v[g].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,o){e.booleanIsLiveGamesModalOpen=o},setBooleanAreLiveGames(e,o){e.booleanAreLiveGames=o},updateSeasonPlays(e,o){e.seasonPlays=o},updateCurrentSeasonTeams(e,o){e.currentSeasonTeams=o},updateCurrentSeasonGames(e,o){e.currentSeasonGames=o},updateSelectedRound(e,o){e.selectedRound=o}},actions:{async getSeasonPlays({commit:e,rootGetters:o},s=!1){try{const z=await gH({seasonId:o["filterGeneral/getSeasonId"]});if(s)return z;e("updateSeasonPlays",z)}catch(z){return Promise.reject(z)}},async getCurrentSeasonGames({commit:e,rootGetters:o}){try{const s=await vH({seasonId:o["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",s)}catch(s){return Promise.reject(s)}},async getCurrentSeasonTeams({commit:e,rootGetters:o}){try{const s=await yFt({seasonId:o["loginGeneral/seasonId"]});e("updateCurrentSeasonTeams",s.teams)}catch(s){return Promise.reject(s)}},async isDataFilled({state:e,dispatch:o,commit:s}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return s("setIsSectionLoading",!1,{root:!0}),!0;const z=[void 0,void 0];return e.currentSeasonGames.length===0&&(z[0]=o("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(z[1]=o("getCurrentSeasonTeams")),await Promise.all(z),!1}catch(z){throw new Error(z)}}}}};async function _Ft({filter:e}){try{const o=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:s}=await Ah({url:o});return s}catch(o){return Promise.reject(o)}}const wFt=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let CT=null;function kFt(){return CT||(CT=by(wFt)),CT}class F4{constructor(){yu(this,"maximumLiveSection",1);yu(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:[]});yu(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(o){o>this.maximumLiveSection&&(this.maximumLiveSection=o)}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(o,s,z){z&&(this.setMaximumLiveSection(o),this.accomplished.totalLive+=s,this.accomplished.totalsLiveTrendLive.sections[o-1]+=s,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,o,s)),this.accomplished.totalPostGame+=s,this.accomplished.avgPostGameTrendLive.sections[o-1]+=s,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,o,s)}increaseReceivedByOne(o,s,z){z&&(this.setMaximumLiveSection(o),this.received.totalLive+=s,this.received.totalsLiveTrendLive.sections[o-1]+=s,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,o,s)),this.received.totalPostGame+=s,this.received.avgPostGameTrendLive.sections[o-1]+=s,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,o,s)}increaseTrendLiveAccumulatedByOne(o,s,z){for(let W=s-1;W<o.accumulated.length;W++)o.accumulated[W]+=z}decreaseAccomplishedLiveByOne(o,s){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=s),this.accomplished.totalsLiveTrendLive.sections[o-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[o-1]-=s,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,o,s))}decreaseReceivedLiveByOne(o,s){this.received.totalLive>0&&(this.received.totalLive-=s),this.received.totalsLiveTrendLive.sections[o-1]>0&&(this.received.totalsLiveTrendLive.sections[o-1]-=s,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,o,s))}decreaseTotalsLiveTrendLiveAccumulatedByOne(o,s,z){for(let W=o.accumulated.length-1;W>=s-1;W--)o.accumulated[W]-=z}calculateAvg(o){o&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/o,this.received.avgPostGame=this.received.totalPostGame/o,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,o),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,o),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,o),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,o))}getAvgPostGameTrendLiveAvg(o,s){return o.map(z=>z/s)}calculateRanking(o,s,z,W,v,g,r,b){let d=[];W===3&&o&&o.length&&(z.playingAs.length!==2||z.matchResult.length!==3)?d=Array.from(o.reduce((_,y)=>{const x=y[s.playingAs]===1,u=x?"1":"2",n=_.get(y[s.gameId]);if(n)n[u]?n[u].arrayPlays.push(y):n[u]={numberTeamId:y[s.teamId],arrayPlays:[y]};else{const i={numberMatchResult:y[s.matchResult]};x&&(i[1]={numberTeamId:y[s.teamId],arrayPlays:[y]}),_.set(y[s.gameId],i)}return _},new Map).values()).reduce((_,y)=>{const x=z.playingAs.length===2?"both":z.playingAs[0].toString();return(x==="both"&&(y[1].numberTeamId===z.teamId||y[2].numberTeamId===z.teamId)||x!=="both"&&y[x].numberTeamId===z.teamId)&&z.matchResult.includes(y.numberMatchResult)&&_.push(...y[1].arrayPlays,...y[2].arrayPlays),_},[]).filter(_=>z.sections.includes(_[s.section])):(d=o?[...o]:[],r&&o&&(d=o.filter(a=>z.playingAs.includes(a[s.playingAs])&&z.matchResult.includes(a[s.matchResult])&&z.sections.includes(a[s.section])))),this.setTeamRanking(d,W,s,z.teamId,g,"accomplished",b)}setTeamRanking(o,s,z,W,v,g,r){let b=null,d=null;s===3&&(b=new Map,d={},o.forEach(y=>{const x=b.get(y[z.gameId]);x?x[y[z.teamId.toString()]]?x[y[z.teamId.toString()]]+=y[z.total]:x[y[z.teamId.toString()]]=y[z.total]:b.set(y[z.gameId],{[y[z.teamId.toString()]]:y[z.total]})}),Array.from(b.values()).forEach(y=>{const[x,u]=Object.keys(y).map(i=>i),n=y[x]+y[u];this.addPassesAvgByTeam(d,x,n?y[x]/n:0),this.addPassesAvgByTeam(d,u,n?y[u]/n:0)}));const a=v.sort((y,x)=>y.team_id-x.team_id).map(y=>{if(s===3){const x=d[y.team_id.toString()];return{teamId:y.team_id,points:x?x.numberTotalPassesAvg/x.numberGamesCount:0,total:x?x.numberTotalPassesAvg:0}}else{const x=o.reduce((u,n)=>n[z.teamId]===y.team_id&&s===n[z.categoryId]?u+n[z.total]:u,0);return{teamId:y.team_id,points:y[`${r}FilterGames`]?x/y[`${r}FilterGames`]:0,total:x}}}).sort((y,x)=>x.points-y.points);this.accomplished.arrayRankings=a;const _=a.findIndex(y=>y.teamId===W);s===3&&(this.accomplished.avgPreGame=a[_].points),this[g].ranking=_+1,this[g].leader=a[0]}addPassesAvgByTeam(o,s,z){o[s]?(o[s].numberGamesCount+=1,o[s].numberTotalPassesAvg+=z):o[s]={numberGamesCount:1,numberTotalPassesAvg:z}}}class nc{constructor(o,s,z,W,v,g,r,b,d,a,_=!0){yu(this,"id","");yu(this,"generalId",0);yu(this,"name","");yu(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});yu(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});yu(this,"accomplishedCategoryIds",[]);yu(this,"receivedCategoryIds",[]);yu(this,"generalCategoriesIds",{accomplished:0,received:0});yu(this,"specialMention","");yu(this,"homeTeam",new F4);yu(this,"visitingTeam",new F4);yu(this,"isLeagueDataCalculated",!1);yu(this,"leagueAccomplishedMax",0);yu(this,"leagueReceivedMax",0);yu(this,"leagueAccomplishedAvg",0);yu(this,"leagueReceivedAvg",0);yu(this,"leagueAccomplishedAccumulator",0);yu(this,"leagueReceivedAccumulator",0);yu(this,"homeTeamType","homeTeam");yu(this,"visitingTeamType","visitingTeam");yu(this,"betOnly",!1);yu(this,"isPercent",!1);this.id=`${z.accomplished}-${z.received}`,this.accomplishedCategoryIds=o||[],this.receivedCategoryIds=s||[],this.generalCategoriesIds=z||{accomplished:0,received:0},this.name=W,this.names["0-0"]=W||"",this.names["1-1"]=v||"",this.names["0-1"]=g||"",this.names["1-0"]=r||"",this.generalId=b||0,this.betOnly=d||!1,this.isPercent=a||!1,this.isVisible=_}addLeaguePlays(o,s,z){o.length===0||!z||this.isLeagueDataCalculated||(o.forEach(W=>{this.isAccomplishedLeaguePlay(W[s.categoryId])&&(this.leagueAccomplishedAccumulator+=W[s.total]),this.isReceivedLeaguePlay(W[s.categoryId])&&(this.leagueReceivedAccumulator+=W[s.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*z)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*z)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(o,s,z){let W="-";for(const[v,g]of Object.entries(this.generalCategoriesIds))o===g&&(W=`${v==="accomplished"?"0":"1"}${W}`),s===g&&(W=`${W}${v==="accomplished"?"0":"1"}`);W.length===3&&(this.mentions[W]=z)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(o,s,z,W,v){!z||!v||o!==this.homeTeamType&&o!==this.visitingTeamType||(z.forEach(g=>{this.isAccomplishedPlay(g[W.categoryId])?this[o].increaseAccomplishedByOne(g[W.section],g[W.total]):this.isReceivedPlay(g[W.categoryId])&&this[o].increaseReceivedByOne(g[W.section],g[W.total])}),this[o].calculateAvg(v))}addLivePlay(o,s,z,W,v=!1,g=!1){(o===this.homeTeamType||o===this.visitingTeamType)&&z[W.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[o].increaseAccomplishedByOne(z[W.section],z[W.total],!0)}subtractLivePlay(o,s,z,W,v){(o===this.homeTeamType||o===this.visitingTeamType)&&(this.isAccomplishedPlay(z[W.categoryId])&&!v?this[o].decreaseAccomplishedLiveByOne(z[W.section],z[W.total]):this.isReceivedPlay(z[W.categoryId])&&v&&this[o].decreaseReceivedLiveByOne(z[W.section],z[W.total]))}isAccomplishedLeaguePlay(o){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(z=>o===z||`${o}_r`===z)}isReceivedLeaguePlay(o){return!!this.receivedCategoryIds.find(s=>o===s)}isAccomplishedPlay(o){return this.generalCategoriesIds.accomplished===o}isReceivedPlay(o){return this.generalCategoriesIds.received===o}calcRankingLeague(o,s,z,W,v,g=!1){this[this.homeTeamType].calculateRanking(o,s,z,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,v,g,this.homeTeamType),this[this.visitingTeamType].calculateRanking(o,s,W,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,v,g,this.visitingTeamType)}resetData(){this.homeTeam=new F4,this.visitingTeam=new F4,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(o){return this.generalCategoriesIds.accomplished===o||this.generalCategoriesIds.received===o}}const SFt={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new nc([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new nc([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new nc([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0,!1),yellowCards:new nc([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new nc([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new nc([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new nc([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new nc([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new nc([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new nc([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new nc([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new nc([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new nc([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new nc([208],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new nc([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new nc([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new nc([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new nc([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new nc([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new nc([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new nc([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new nc([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new nc([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new nc([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new nc([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new nc([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new nc([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 nc([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new nc([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new nc([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new nc([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new nc([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new nc([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new nc([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new nc([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new nc([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new nc([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new nc([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},TFt=[{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}],CFt=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let ET=null;function EFt(){return ET||(ET=by(CFt)),ET}const AFt=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let AT=null;function MFt(){return AT||(AT=by(AFt)),AT}function R4(e,o,s){return[s.get(e[o.categoryId])||[],e[o.teamId],e[o.matchResult],e[o.playingAs],e[o.matchLapse],e[o.section],e[o.total]]}function _H(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 MT(e,o,s){let z=[...o];return e[s.categoryId]===2&&(z[0]=14),e[s.categoryId]===20&&(z[0]=15),[14,15].includes(z[0])?z:null}const PFt=qw(),IFt=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],LFt={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:bH(),indexesTSP:kFt(),indexesLS:EFt(),indexesTLP:MFt(),nextGamesDataStructure:SFt,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(o=>o.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 TFt.filter(o=>o.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return yH(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return yH(e.visitingTeamPlays,e.visitingTeamFilter.playingAs,e.visitingTeamFilter.matchResult,e.visitingTeamFilter.sections,e.indexesTSP)},currentSeasonTeamsIds(e){return e.currentSeasonTeams.map(o=>o.team_id)},canFilledStructure(e){return e.homeTeamFilter.requiresPlaysFiltering||e.visitingTeamFilter.requiresPlaysFiltering},totalFilteredHomeGames(e){return e.homeGames.filter(o=>e.homeTeamFilter.playingAs.includes(o[0])).filter(o=>e.homeTeamFilter.matchResult.includes(o[1])).reduce((o,s)=>o+s[2],0)},totalFilteredVisitingGames(e){return e.visitingGames.filter(o=>e.visitingTeamFilter.playingAs.includes(o[0])).filter(o=>e.visitingTeamFilter.matchResult.includes(o[1])).reduce((o,s)=>o+s[2],0)},filledDataStructure(e,o){if(e.currentSeasonPlays)for(const s of Object.values(e.nextGamesDataStructure))for(const z of Object.values(s.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&z.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&z.visitingTeam.resetTotals(),z.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),z.addTeamPlays(z.homeTeamType,e.gameForAnalysis.home_team,o.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:o.totalFilteredHomeGames),z.addTeamPlays(z.visitingTeamType,e.gameForAnalysis.visiting_team,o.visitingTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:o.totalFilteredVisitingGames);return e.nextGamesDataStructure},arrayFilledDataSortedByPriority(e,o){return Object.values(o.filledDataStructure).sort((s,z)=>s.priority-z.priority)},statisticData(e,o){for(const s of Object.values(o.filledDataStructure))if(s.parentInfo.parentAnalysis.includes(e.selectedAnalysis.id)&&s.parentInfo.analysisTypeBlocks.includes(e.selectedStatisticTypeBlock))return s.subcategories;return{}},accomplished(e){return e.homeTeamFilter.statistics===0}},mutations:{updateGameForAnalysisByProps(e,o){for(const[s,z]of Object.entries(o))e.gameForAnalysis[s]=z},setCurrentTournamentName(e,o){e.currentTournamentName=o},setBetSubcategoriesObjects(e,o){e.betSubcategoriesObjects=o},setRegularSeasonName(e,o){e.regularSeasonName=o},setBetSubcategories(e,o){e.betSubcategories=o},setBetDescription(e,o){e.betDescription=o},setSeasonId(e,o){e.seasonId=Number(o)},setHome(e,o){e.homeTeamInfo=o},setAway(e,o){e.awayTeamInfo=o},setMenuOptionActive(e,o){e.menuOptionActive=o},setPastSeasonId(e,o){e.pastSeasonId=o},setUsePastSeasonId(e,o){e.usePastSeasonId=o,o&&(e.oldSeasonId=e.pastSeasonId)},updateShowPostMatchData(e,o){e.showPostMatch=o},setHomeResultGame(e,o){e.homeResultGame=o},setAwayResultGame(e,o){e.awayResultGame=o},updateIsSocketConnected(e,o){e.isSocketConnected=o,o&&e.gameForAnalysis.is_live&&e.gameForAnalysis.game_status===4&&UE(`game.${e.gameForAnalysis.game_id}.v2`)},updateCurrentSeasonTeams(e,o){e.currentSeasonTeams=o,e.currentSeasonTeams.forEach(s=>{s.playedGames=e.currentSeasonGames.reduce((z,W)=>{if(W.game_status===1&&(W.home_team===s.team_id||W.visiting_team===s.team_id)){const v=W.score[0]-W.score[1],g=W.home_team===s.team_id;z.push({playingAs:g?1:2,matchResult:v===0?3:g?v>0?1:2:v<0?1:2})}return z},[])})},updateCurrentSeasonGames(e,o){e.currentSeasonGames=o},updateGameId(e,o){e.gameId=o},updateGameForAnalysis(e,o){e.gameForAnalysis=o,e.isLive=!!o.is_live,e.homeTeamFilter.teamId=e.gameForAnalysis.home_team,e.visitingTeamFilter.teamId=e.gameForAnalysis.visiting_team},updateSelectedAnalysis(e,o){e.selectedAnalysis=o},updateShowLiveData(e,o){e.showLiveData=o},toggleAdvanceFilter(e){e.showAdvanceFilter=!e.showAdvanceFilter},updateIdAssetSelected(e,o){e.idAssetSelected=o},updateStats(e,o){e.currentSeasonPlays=o},updateFilterAux(e){e.filterAux||(e.filterAux={homeTeamFilter:{...e.homeTeamFilter},visitingTeamFilter:{...e.visitingTeamFilter}})},updateFilters(e,{filters:o,needsFormat:s=!1}){if(s){if(!o||!o.local||!o.local.statistics||!o.visit||!o.visit.statistics)return;e.homeTeamFilter=WE(e.homeTeamFilter,o.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=WE(e.visitingTeamFilter,o.visit,e.gameForAnalysis.visiting_team),e.selectedStatisticTypeBlock!==o.local.statistics.block&&(e.selectedStatisticTypeBlock=o.local.statistics.block)}else e.homeTeamFilter={...o.homeTeamFilter,statistics:0},e.visitingTeamFilter={...o.visitingTeamFilter,statistics:0}},updateFinishedGames(e,o){e.totalSeasonFinishedGames=o},updateHomeTeamPlays(e,o){e.homeTeamPlays=o},updateVisitingTeamPlays(e,o){e.visitingTeamPlays=o},addSpecialMentions(e,o){const s=Object.values(e.nextGamesDataStructure);s.forEach(z=>{for(const W of Object.values(z.subcategories))W.resetMentions()}),s.forEach(z=>{for(const W of o)for(const v of Object.values(z.subcategories))v.addSpecialMention(W[0],W[1],W[2])})},setDefaultFilter(e,o){e.defaultFilter={homeTeamFilter:{...o.homeTeamFilter,teamId:e.gameForAnalysis.home_team},visitingTeamFilter:{...o.awayTeamFilter,teamId:e.gameForAnalysis.visiting_team}}},addLiveGamePlay(e,o){if(!e.livePlays.has(o[e.indexesTLP.playId])){e.livePlays.set(o[e.indexesTLP.playId],o);const z=R4(o,e.indexesTLP,e.categoriesMap);for(const W of Object.values(e.nextGamesDataStructure))for(const v of Object.values(W.subcategories))v.addLivePlay(e.gameForAnalysis.home_team===z[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",z[e.indexesTSP.teamId],z,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,o){const s=!!o[e.indexesTLP.length],z=e.livePlays.get(o[e.indexesTLP.playId]);if(dte(z,o))return;let W="";const v=e.gameForAnalysis.home_team===o[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";z&&(W=e.gameForAnalysis.home_team===z[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const g=R4(z,e.indexesTLP,e.categoriesMap),r=MT(z,g,e.indexesTLP),b=R4(o,e.indexesTLP,e.categoriesMap),d=MT(o,b,e.indexesTLP);for(const a of Object.values(e.nextGamesDataStructure))for(const _ of Object.values(a.subcategories))z&&(_.subtractLivePlay(W,g[e.indexesTSP.teamId],g,e.indexesTSP,s),r&&_.subtractLivePlay(W,r[e.indexesTSP.teamId],r,e.indexesTSP,s)),_.addLivePlay(v,b[e.indexesTSP.teamId],b,e.indexesTSP,e.isLive,s),d&&_.addLivePlay(v,d[e.indexesTSP.teamId],d,e.indexesTSP,e.isLive,s);e.livePlays.set(o[e.indexesTLP.playId],o)},deleteLiveGamePlay(e,o){const s=!!o[e.indexesTLP.length],z=e.livePlays.get(o[e.indexesTLP.playId]);let W="";if(z){W=e.gameForAnalysis.home_team===z[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(z[e.indexesTLP.playId]);const v=R4(z,e.indexesTLP,e.categoriesMap),g=MT(o,v,e.indexesTLP);for(const r of Object.values(e.nextGamesDataStructure))for(const b of Object.values(r.subcategories))b.subtractLivePlay(W,v[e.indexesTSP.teamId],v,e.indexesTSP,s),g&&b.subtractLivePlay(W,g[e.indexesTSP.teamId],g,e.indexesTSP,s)}},clearLiveTotals(e){for(const o of Object.values(e.nextGamesDataStructure))for(const s of Object.values(o.subcategories))s.homeTeam.resetTotalsLive(),s.visitingTeam.resetTotalsLive()},updateSeasonStatistics(e,o){e.statistics=o},updateOldSeasonId(e,o){e.oldSeasonId=o},addRankingInSubcategories(e,{getters:o,isPremiumAccount:s}){if(!(e.homeTeamFilter.teamId&&e.visitingTeamFilter.teamId))return;e.isRankingCalculating=!1,e.currentSeasonTeams.forEach(v=>{v.homeTeamFilterGames=v.playedGames.filter(g=>e.homeTeamFilter.playingAs.includes(g.playingAs)&&e.homeTeamFilter.matchResult.includes(g.matchResult)).length,v.visitingTeamFilterGames=v.playedGames.filter(g=>e.visitingTeamFilter.playingAs.includes(g.playingAs)&&e.visitingTeamFilter.matchResult.includes(g.matchResult)).length});const z=[],W=new Map;for(const v of Object.values(e.nextGamesDataStructure))for(const g of Object.values(v.subcategories))z.push(g);o.rankingData.forEach(v=>{for(const g of z)if(g.isInGeneralCategory(v[e.indexesLS.categoryId])){W.has(g.id)?W.get(g.id).push(v):W.set(g.id,[v]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,o){e.homeGames=_H(o)},setVisitingGames(e,o){e.visitingGames=_H(o)},generateCategoriesMap(e){for(const o of Object.values(e.nextGamesDataStructure))for(const s of Object.values(o.subcategories))s.accomplishedCategoryIds.forEach(z=>{const W=e.categoriesMap.get(z);W?W.push(s.generalCategoriesIds.accomplished):e.categoriesMap.set(z,[s.generalCategoriesIds.accomplished])})},resetNextGamesDataStructure(e){for(const o of Object.values(e.nextGamesDataStructure))for(const s of Object.values(o.subcategories))s.resetData()}},actions:{turnOnOffDefaultFilters({state:e,commit:o},{command:s}){s==="on"?o("updateFilters",{filters:e.defaultFilter,needsFormat:!1}):o("updateFilters",{filters:e.filterAux,needsFormat:!1})},async setAndGetStatsPostMatch({commit:e},o){try{const g=await bFt({gameId:o.gameId});if(g){var s=[],z=[],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}},v={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&&(s=g.data.data.filter(r=>r[1]==o.homeTeam),z=g.data.data.filter(r=>r[1]==o.awayTeam),W=g.data.games,v=g.data.games),e("updateHomeTeamPlays",s),e("updateVisitingTeamPlays",z),e("setHomeGames",W),e("setVisitingGames",v)}else e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[])}catch(g){return Promise.reject(g)}},async fillStatisticDataPostMatch({commit:e,dispatch:o},s){e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("setIsSectionLoading",!0,{root:!0});try{let z=[];e("updateGameForAnalysis",s.gameInfo),z.push(o("setAndGetStatsPostMatch",{gameId:s.game,homeTeam:s.homeTeam,awayTeam:s.awayTeam})),await Promise.all(z)}catch(z){throw new Error(z)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:o,commit:s},{gameId:z,isTeamsAnalysis:W,currentSeasonId:v,isLoginChanged:g=!1,defaultFilter:r=null,gameInfo:b=null,isCupGame:d=!1}){try{let a={},_=e.seasonId!==Number(v);const y=[];s("setIsSectionLoading",!0,{root:!0}),s("setUsePastSeasonId",!1),_&&s("setSeasonId",v),s("updateGameId",Number(z)),e.oldSeasonId!==e.seasonId&&s("resetNextGamesDataStructure");const x=await o("getCurrentSeasonGames",Number(z));if(s("leagueGeneral/updateCurrentSeasonGames",x,{root:!0}),a=x.find(u=>u.game_id===Number(z)),!a&&b&&(a=b),a&&s("updateGameForAnalysis",a),a.game_status!==1&&((g||e.categoriesMap.size===0)&&s("generateCategoriesMap"),d||await o("checkTeamsData",{gameId:z,isFromBet:!!r}),(g||e.oldSeasonId!==e.seasonId||e.statistics.length===0)&&y.push(o("getSeasonStatistics"))),e.usePastSeasonId){const u=await o("getCurrentSeasonGamesLast");s("leagueGeneral/updateCurrentSeasonGames",u,{root:!0})}(g||e.currentSeasonTeams.length===0||!e.currentSeasonTeams.find(u=>a.home_team===u.team_id))&&y.push(o("getCurrentSeasonTeams")),s("setHomeResultGame",a.score[0]),s("setAwayResultGame",a.score[1]),W?a.game_status!==1?(await o("fillStatisticData",{gameId:z,gameinfo:a,promises:y,defaultFilter:r}),s("updateShowPostMatchData",!1)):(s("updateStats",[]),s("updateShowPostMatchData",!0),y.push(o("fillStatisticDataPostMatch",{game:z,homeTeam:a.home_team,awayTeam:a.visiting_team,gameInfo:a})),await Promise.all(y)):s("setIsSectionLoading",!1,{root:!0})}catch(a){return Promise.reject(a)}},async fillStatisticData({commit:e,dispatch:o,getters:s,rootGetters:z,state:W},{gameId:v,gameinfo:g,promises:r=[],defaultFilter:b=null}){let d=null;try{e("setIsSectionLoading",!0,{root:!0}),e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("updateGameForAnalysis",g),(g.is_live||g.game_status===0)&&r.push(o("getCurrentLiveGamePlays",v)),r.push(o("getSpecialMentionsByGame",v)),r.push(o("getHomeTeamPlays")),r.push(o("getVisitingTeamPlays")),r.push(o("getCurrentSeasonPlays")),b&&r.push(_Ft(b)),d=await Promise.all(r)}catch(a){throw new Error(a)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:s,isPremiumAccount:z["loginGeneral/getPremiumAccount"]}),b){const[a]=d.pop();a&&(e("setBetSubcategories",a.categories),e("setBetDescription",a.sectionDescription),e("setDefaultFilter",a.params),e("updateFilterAux"),e("updateFilters",{filters:W.defaultFilter,needsFormat:!1}),o("updateRankingInSubcategories"))}},100),e("setIsSectionLoading",!1,{root:!0})}},async checkTeamsData({state:e,dispatch:o,rootState:s,commit:z},{gameId:W,isFromBet:v}){try{const g=Number(W);if(e.pastSeasonId){z("setPastSeasonId",e.pastSeasonId,{root:!0});const r=s.leagueGeneral.currentSeasonGames.find(b=>b.game_id===g);r&&z("updateGameForAnalysis",r),await Promise.all([o("getHomeTeamPlays"),o("getVisitingTeamPlays")]),z("setUsePastSeasonId",v||(!e.homeTeamPlays||e.homeTeamPlays.length===0)&&(!e.visitingTeamPlays||e.visitingTeamPlays.length===0))}else z("setUsePastSeasonId",!1)}catch(g){throw new Error(g)}},async getSpecialMentionsByGame({commit:e},o){try{const s=await mFt({gameId:o});e("addSpecialMentions",s)}catch(s){return Promise.reject(s)}},async getCurrentSeasonGames({commit:e,state:o},s){try{const{teams:z,games:W,past_season_id:v,tournament_id:g}=await pFt({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId,gameId:s}),r=IFt.find(b=>b.id===g);return r&&e("setCurrentTournamentName",r.name),e("setHome",z[0]),e("setAway",z[1]),o.usePastSeasonId||e("setPastSeasonId",v),await e("updateCurrentSeasonGames",W),W&&Array.isArray(W)&&e("updateFinishedGames",W.reduce((b,d)=>(d.game_status===1&&(b+=1),b),0)),W}catch(z){return Promise.reject(z)}},async getCurrentSeasonGamesLast({commit:e,state:o}){try{const{games:s,past_season_id:z}=await vH({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId});return o.usePastSeasonId||e("setPastSeasonId",z),await e("updateCurrentSeasonGames",s),s&&Array.isArray(s)&&e("updateFinishedGames",s.reduce((W,v)=>(v.game_status===1&&(W+=1),W),0)),s}catch(s){return Promise.reject(s)}},async getCurrentSeasonTeams({commit:e,state:o}){try{const s=await vFt({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId});e("updateCurrentSeasonTeams",s.data.teams)}catch{}},async getSeasonStatistics({commit:e,state:o}){try{const s=o.usePastSeasonId?o.pastSeasonId:o.seasonId,z=await dFt({seasonId:s});e("updateSeasonStatistics",z),e("updateOldSeasonId",s)}catch(s){return Promise.reject(s)}},updateRankingInSubcategories({state:e,commit:o,getters:s,rootGetters:z}){e.currentSeasonGames.length>0&&o("addRankingInSubcategories",{getters:s,isPremiumAccount:z["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:o}){try{const s=await xH({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId,teamId:o.gameForAnalysis.home_team});s.data&&(e("updateHomeTeamPlays",s.data.data),e("setHomeGames",s.data.games))}catch(s){return Promise.reject(s)}},async getVisitingTeamPlays({commit:e,state:o}){try{const s=await xH({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId,teamId:o.gameForAnalysis.visiting_team});s.data&&(e("updateVisitingTeamPlays",s.data.data),e("setVisitingGames",s.data.games))}catch(s){return Promise.reject(s)}},async getCurrentSeasonPlays({commit:e,state:o}){try{const s=await uFt({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId});e("updateStats",s)}catch(s){return Promise.reject(new Error(s))}},async getCurrentLiveGamePlays({state:e,commit:o},s){try{const z=await fFt({gameId:s});e.livePlays=new Map,z.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])&&o("addLiveGamePlay",W)})}catch(z){throw new Error(z)}},socket_new({state:e,commit:o},s){const z=s[1];(e.gameForAnalysis.home_team===z[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===z[e.indexesTLP.teamId])&&o("addLiveGamePlay",z)},socket_update({state:e,commit:o},s){const z=s[1];e.gameForAnalysis.game_id===z[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===z[e.indexesTLP.teamId]||e.gameForAnalysis.visitingTeam===z[e.indexesTLP.teamId])&&o("updateLiveGamePlay",z)},socket_delete({state:e,commit:o},s){const z=s[1];e.gameForAnalysis.game_id===z[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===z[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===z[e.indexesTLP.teamId])&&o("deleteLiveGamePlay",z)},exitChannel({state:e,getters:o,rootState:s,rootGetters:z,commit:W}){const v=z["loginGeneral/getPremiumAccount"];o.isLive&&v&&(W("updateShowLiveData",!0),W("clearLiveTotals"),e.livePlays.clear(),PFt.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const s of Object.values(e.nextGamesDataStructure))for(const z of Object.values(s.subcategories))z.homeTeam.resetTotals(),z.visitingTeam.resetTotals(),z.homeTeam.resetTotalsLive(),z.visitingTeam.resetTotalsLive(),z.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(s=>{for(const z of Object.values(s.subcategories))z.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const s of Object.values(e.nextGamesDataStructure))for(const z of Object.values(s.subcategories))z.homeTeam.resetTotals(),z.visitingTeam.resetTotals(),z.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(s=>{for(const z of Object.values(s.subcategories))z.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 BFt(){try{const{data:e}=await Ah({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return e}catch(e){throw new Error(e)}}const OFt={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,o){e.booleanIsStatisticModalOpen=o},setTournamentType(e,o){e.tournamentType=o},setSectionRef(e,o){e.sectionRef=o},setSectionAnalytics(e,o){e.sectionAnalytics=o},setSeccionBetsGolTipster(e,o){e.seccionBetsGolTipster=o},setPreviewSectionAnalytics(e,o){e.previewSectionAnalytics=o},setVideoSrc(e,o){e.videoSrc=o},setVideoModalVisibility(e,o){e.isVideoModalVisible=o},setSelectedTournament(e,o){e.selectedTournament=o},setTournaments(e,o){e.tournaments=o.map(s=>({...s.tournament,seasons:s.seasons})),e.tournamentSelected=e.tournaments[0]},setTournamentSelected(e,o){e.tournamentSelected=o}},actions:{async fetchTournaments({state:e,commit:o}){try{if(e.tournaments.length===0){const s=await BFt();o("setTournaments",s)}}catch(s){throw new Error(s)}}}}};async function zFt({seasonId:e,localTeamId:o,visitingTeamId:s}){try{const z=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${o}/${s}`;return(await Ah({url:z})).data}catch(z){return Promise.reject(z)}}async function NFt({seasonId:e,localTeamId:o,visitingTeamId:s}){try{const z=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${o}/${s}`;return(await Ah({url:z})).data}catch(z){return Promise.reject(z)}}const wH=(e,o)=>{let s={};return e.forEach((z,W)=>{W==3&&(o[0]==35||o[0]==54)&&(o[W]==2?o[W]=1:o[W]=2),W==2&&(o[0]==35||o[0]==54)&&(o[W]==1?o[W]=2:o[W]==2&&(o[W]=1)),s[z]=o[W]}),s},kH=(e,o)=>e.filter(z=>{const W=o.playingAs.includes(z.playing_as),v=o.matchResult.includes(z.match_result),g=o.sections.includes(z.section);return W&&v&&g});(function(){function e(o,s,z){return typeof z>"u"||+z==0?Math[o](s):(s=+s,z=+z,isNaN(s)||!(typeof z=="number"&&z%1===0)?NaN:(s=s.toString().split("e"),s=Math[o](+(s[0]+"e"+(s[1]?+s[1]-z:-z))),s=s.toString().split("e"),+(s[0]+"e"+(s[1]?+s[1]+z:z))))}Math.ceil10||(Math.ceil10=function(o,s){return e("ceil",o,s)})})();function SH(e,o){let s=o*-1;return Math.ceil10(e,s)}const DFt={...OFt,...xFt,...LFt,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{playsLocal:(e,o,s)=>{const z=e.xGLocalPlays,W="homeTeamFilter",v=s.nextGeneral[W];return kH(z,v)||[]},playsAway:(e,o,s)=>{const z=e.xGVisitingPlays,W="visitingTeamFilter",v=s.nextGeneral[W];return kH(z,v)},goalsQtyLocal:(e,o)=>{const s=N0.find(z=>z.name==="Goles");return o.playsLocal.filter(z=>s.categories.includes(z.category_id)).length},goalsQtyAway:(e,o)=>{const s=N0.find(z=>z.name==="Goles");return o.playsAway.filter(z=>s.categories.includes(z.category_id)).length},shotsOnGoalQtyLocal:(e,o)=>o.playsLocal.filter(s=>s.category_id===510).length,shotsOnGoalQtyAway:(e,o)=>o.playsAway.filter(s=>s.category_id===510).length,headQtyLocal:(e,o)=>{const s=N0.find(z=>z.name==="Remates con cabeza");return o.playsLocal.filter(z=>s.categories.includes(z.category_id)).length},headQtyAway:(e,o)=>{const s=N0.find(z=>z.name==="Remates con cabeza");return o.playsAway.filter(z=>s.categories.includes(z.category_id)).length},penaltiesQtyLocal:(e,o)=>{const s=N0.find(z=>z.name==="Penales");return o.playsLocal.filter(z=>s.categories.includes(z.category_id)).length},penaltiesQtyAway:(e,o)=>{const s=N0.find(z=>z.name==="Penales");return o.playsAway.filter(z=>s.categories.includes(z.category_id)).length},xGLocal:(e,o)=>{const s=new Set;let z=o.playsLocal.reduce((W,v)=>(s.has(v.moment_of_play)||(s.add(v.moment_of_play),W+=v.xG2),W),0);return SH(z,2)},xGAway:(e,o)=>{const s=new Set;let z=o.playsAway.reduce((W,v)=>(s.has(v.moment_of_play)||(s.add(v.moment_of_play),W+=v.xG2),W),0);return SH(z,2)}},mutations:{setTeamSelected(e,o){e.teamSelected=o},setPlays(e,o){const s=o.local_team.map(u=>wH(o.data_headers,u)),z=[],W=[],v=[],g=[],r=new Set;s.forEach(u=>{XA.has(u.category_id)?r.has(u.moment_of_play)||(r.add(u.moment_of_play),z.push(u)):qA.has(u.category_id)?W.push(u):YA.has(u.category_id)?v.push(u):JA.has(u.category_id)&&g.push(u)}),e.xGLocalPlays=[...W,...z,...v,...g];const b=o.visiting_team.map(u=>wH(o.data_headers,u)),d=new Set,a=[],_=[],y=[],x=[];b.forEach(u=>{XA.has(u.category_id)?d.has(u.moment_of_play)||(d.add(u.moment_of_play),a.push(u)):qA.has(u.category_id)?_.push(u):YA.has(u.category_id)?y.push(u):JA.has(u.category_id)&&x.push(u)}),e.xGVisitingPlays=[..._,...a,...y,...x]},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:e},{seasonId:o,localTeamId:s,visitingTeamId:z,postMatch:W=!1}){try{let v={};W?v=await NFt({seasonId:o,localTeamId:s,visitingTeamId:z}):v=await zFt({seasonId:o,localTeamId:s,visitingTeamId:z}),e("setPlays",v)}catch(v){return Promise.reject(v)}}}}}};function FFt(e){for(const[o,s]of Object.entries(DFt))e.hasModule(o)||e.registerModule(o,s)}const RFt={class:"subcategory-group"},VFt={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(t.openBlock(),t.createElementBlock("div",RFt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,z=>(t.openBlock(),t.createBlock(t.unref(jl),{key:z.id,modelValue:z.isSelected,"onUpdate:modelValue":W=>z.isSelected=W,label:z.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},jFt=ac(VFt,[["__scopeId","data-v-ae6f3d72"]]),UFt={class:"filter-subcategories"},GFt=Object.freeze(Object.defineProperty({__proto__:null,default:ac({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(t.openBlock(),t.createElementBlock("div",UFt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,z=>(t.openBlock(),t.createElementBlock("div",{key:z.id,class:"filter-subcategories__group"},[t.createVNode(jFt,{subcategoryGroup:z},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),V4=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),HFt={class:"details__header"},ZFt=V4(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),WFt={class:"details__header__checkbox"},XFt={class:"details__body"},qFt={class:"details__body__playing-as"},YFt=["onClick"],JFt={class:"details__header"},$Ft=V4(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),KFt={class:"details__header__checkbox"},QFt={class:"details__body"},eRt=V4(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),tRt={class:"details__body__game-section"},aRt=["onClick"],rRt={class:"details__body"},nRt=V4(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),iRt={class:"details__body__game-section"},oRt=["onClick"],sRt=Object.freeze(Object.defineProperty({__proto__:null,default:ac({__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 o=e;t.useCssVars(a=>({"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 s=t.computed(()=>o.playingAs.every(a=>a.isSelected)),z=t.computed(()=>o.gameSections.every(a=>a.isSelected)),W=t.computed(()=>o.gameSections.reduce((a,_)=>(_.value<=3?a.firstHalf.push(_):a.secondHalf.push(_),a),{firstHalf:[],secondHalf:[]})),v=t.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function g(a){a?o.playingAs.forEach(_=>{_.isSelected=!0}):o.playingAs.forEach((_,y)=>{_.isSelected=y===0})}function r(a){o.playingAs.filter(_=>_.isSelected).length===1&&a.isSelected||(a.isSelected=!a.isSelected)}function b(a){o.gameSections.filter(_=>_.isSelected).length===1&&a.isSelected||(a.isSelected=!a.isSelected)}function d(a){a?o.gameSections.forEach(_=>{_.isSelected=!0}):o.gameSections.forEach((_,y)=>{_.isSelected=y===0})}return(a,_)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(v.value)},[t.createElementVNode("div",HFt,[ZFt,t.createElementVNode("div",WFt,[t.createVNode(t.unref(jl),{label:"Todos","model-value":s.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",XFt,[t.createElementVNode("div",qFt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.playingAs,(y,x)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${x}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>r(y)},t.toDisplayString(y.name),11,YFt))),128))])]),t.createElementVNode("div",JFt,[$Ft,t.createElementVNode("div",KFt,[t.createVNode(t.unref(jl),{label:"Todos","model-value":z.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),t.createElementVNode("div",QFt,[eRt,t.createElementVNode("div",tRt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value.firstHalf,(y,x)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${x}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>b(y)},t.toDisplayString(y.text),11,aRt))),128))])]),t.createElementVNode("div",rRt,[nRt,t.createElementVNode("div",iRt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value.secondHalf,(y,x)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${x}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>b(y)},t.toDisplayString(y.text),11,oRt))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),lRt={class:"filter-field"},cRt=Object.freeze(Object.defineProperty({__proto__:null,default:ac({__name:"FilterField",setup(e){const o=t.ref(Array.from({length:16},(z,W)=>W+1));function s(){}return(z,W)=>(t.openBlock(),t.createElementBlock("div",lRt,[t.createVNode(t.unref(eD),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":s},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),uRt={class:"subcategory-group"},dRt={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(t.openBlock(),t.createElementBlock("div",uRt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,z=>(t.openBlock(),t.createBlock(t.unref(Ul),{key:z.id,modelValue:z.isSelected,"onUpdate:modelValue":W=>z.isSelected=W,label:z.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},hRt=rc(dRt,[["__scopeId","data-v-ae6f3d72"]]),pRt={class:"filter-subcategories"},fRt=Object.freeze(Object.defineProperty({__proto__:null,default:rc({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(t.openBlock(),t.createElementBlock("div",pRt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,z=>(t.openBlock(),t.createElementBlock("div",{key:z.id,class:"filter-subcategories__group"},[t.createVNode(hRt,{subcategoryGroup:z},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),j4=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),mRt={class:"details__header"},gRt=j4(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),yRt={class:"details__header__checkbox"},vRt={class:"details__body"},bRt={class:"details__body__playing-as"},xRt=["onClick"],_Rt={class:"details__header"},wRt=j4(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),kRt={class:"details__header__checkbox"},SRt={class:"details__body"},TRt=j4(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),CRt={class:"details__body__game-section"},ERt=["onClick"],ARt={class:"details__body"},MRt=j4(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),PRt={class:"details__body__game-section"},IRt=["onClick"],LRt=Object.freeze(Object.defineProperty({__proto__:null,default:rc({__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 o=e;t.useCssVars(a=>({"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 s=t.computed(()=>o.playingAs.every(a=>a.isSelected)),z=t.computed(()=>o.gameSections.every(a=>a.isSelected)),W=t.computed(()=>o.gameSections.reduce((a,_)=>(_.value<=3?a.firstHalf.push(_):a.secondHalf.push(_),a),{firstHalf:[],secondHalf:[]})),v=t.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function g(a){a?o.playingAs.forEach(_=>{_.isSelected=!0}):o.playingAs.forEach((_,y)=>{_.isSelected=y===0})}function r(a){o.playingAs.filter(_=>_.isSelected).length===1&&a.isSelected||(a.isSelected=!a.isSelected)}function b(a){o.gameSections.filter(_=>_.isSelected).length===1&&a.isSelected||(a.isSelected=!a.isSelected)}function d(a){a?o.gameSections.forEach(_=>{_.isSelected=!0}):o.gameSections.forEach((_,y)=>{_.isSelected=y===0})}return(a,_)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(v.value)},[t.createElementVNode("div",mRt,[gRt,t.createElementVNode("div",yRt,[t.createVNode(t.unref(Ul),{label:"Todos","model-value":s.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",vRt,[t.createElementVNode("div",bRt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.playingAs,(y,x)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${x}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>r(y)},t.toDisplayString(y.name),11,xRt))),128))])]),t.createElementVNode("div",_Rt,[wRt,t.createElementVNode("div",kRt,[t.createVNode(t.unref(Ul),{label:"Todos","model-value":z.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),t.createElementVNode("div",SRt,[TRt,t.createElementVNode("div",CRt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value.firstHalf,(y,x)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${x}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>b(y)},t.toDisplayString(y.text),11,ERt))),128))])]),t.createElementVNode("div",ARt,[MRt,t.createElementVNode("div",PRt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value.secondHalf,(y,x)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${x}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>b(y)},t.toDisplayString(y.text),11,IRt))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),BRt={class:"filter-field"},ORt=Object.freeze(Object.defineProperty({__proto__:null,default:rc({__name:"FilterField",setup(e){const o=t.ref(Array.from({length:16},(z,W)=>W+1));function s(){}return(z,W)=>(t.openBlock(),t.createElementBlock("div",BRt,[t.createVNode(t.unref(Ij),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":s},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));Od.GSCGameData=cFt,Od.connectSocket=Yw,Od.disconnectSocket=Jw,Od.getSocket=qw,Od.registerStoreModules=FFt,Object.defineProperty(Od,Symbol.toStringTag,{value:"Module"})});
|
|
8192
|
+
*/var JG="store";function $zt(e){return e===void 0&&(e=null),t.inject(e!==null?e:JG)}function yg(e,o){Object.keys(e).forEach(function(s){return o(e[s],s)})}function $G(e){return e!==null&&typeof e=="object"}function Kzt(e){return e&&typeof e.then=="function"}function Zf(e,o){if(!e)throw new Error("[vuex] "+o)}function Qzt(e,o){return function(){return e(o)}}function KG(e,o,s){return o.indexOf(e)<0&&(s&&s.prepend?o.unshift(e):o.push(e)),function(){var z=o.indexOf(e);z>-1&&o.splice(z,1)}}function QG(e,o){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var s=e.state;z4(e,s,[],e._modules.root,!0),yT(e,s,o)}function yT(e,o,s){var z=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var W=e._wrappedGetters,v={};yg(W,function(g,r){v[r]=Qzt(g,e),Object.defineProperty(e.getters,r,{get:function(){return v[r]()},enumerable:!0})}),e._state=t.reactive({data:o}),e.strict&&nNt(e),z&&s&&e._withCommit(function(){z.data=null})}function z4(e,o,s,z,W){var v=!s.length,g=e._modules.getNamespace(s);if(z.namespaced&&(e._modulesNamespaceMap[g]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+g+" for the namespaced module "+s.join("/")),e._modulesNamespaceMap[g]=z),!v&&!W){var r=vT(o,s.slice(0,-1)),b=s[s.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&b in r&&console.warn('[vuex] state field "'+b+'" was overridden by a module with the same name at "'+s.join(".")+'"'),r[b]=z.state})}var d=z.context=eNt(e,g,s);z.forEachMutation(function(a,_){var y=g+_;tNt(e,y,a,d)}),z.forEachAction(function(a,_){var y=a.root?_:g+_,x=a.handler||a;aNt(e,y,x,d)}),z.forEachGetter(function(a,_){var y=g+_;rNt(e,y,a,d)}),z.forEachChild(function(a,_){z4(e,o,s.concat(_),a,W)})}function eNt(e,o,s){var z=o==="",W={dispatch:z?e.dispatch:function(v,g,r){var b=N4(v,g,r),d=b.payload,a=b.options,_=b.type;if((!a||!a.root)&&(_=o+_,process.env.NODE_ENV!=="production"&&!e._actions[_])){console.error("[vuex] unknown local action type: "+b.type+", global type: "+_);return}return e.dispatch(_,d)},commit:z?e.commit:function(v,g,r){var b=N4(v,g,r),d=b.payload,a=b.options,_=b.type;if((!a||!a.root)&&(_=o+_,process.env.NODE_ENV!=="production"&&!e._mutations[_])){console.error("[vuex] unknown local mutation type: "+b.type+", global type: "+_);return}e.commit(_,d,a)}};return Object.defineProperties(W,{getters:{get:z?function(){return e.getters}:function(){return eH(e,o)}},state:{get:function(){return vT(e.state,s)}}}),W}function eH(e,o){if(!e._makeLocalGettersCache[o]){var s={},z=o.length;Object.keys(e.getters).forEach(function(W){if(W.slice(0,z)===o){var v=W.slice(z);Object.defineProperty(s,v,{get:function(){return e.getters[W]},enumerable:!0})}}),e._makeLocalGettersCache[o]=s}return e._makeLocalGettersCache[o]}function tNt(e,o,s,z){var W=e._mutations[o]||(e._mutations[o]=[]);W.push(function(v){s.call(e,z.state,v)})}function aNt(e,o,s,z){var W=e._actions[o]||(e._actions[o]=[]);W.push(function(v){var g=s.call(e,{dispatch:z.dispatch,commit:z.commit,getters:z.getters,state:z.state,rootGetters:e.getters,rootState:e.state},v);return Kzt(g)||(g=Promise.resolve(g)),e._devtoolHook?g.catch(function(r){throw e._devtoolHook.emit("vuex:error",r),r}):g})}function rNt(e,o,s,z){if(e._wrappedGetters[o]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+o);return}e._wrappedGetters[o]=function(W){return s(z.state,z.getters,W.state,W.getters)}}function nNt(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&Zf(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function vT(e,o){return o.reduce(function(s,z){return s[z]},e)}function N4(e,o,s){return $G(e)&&e.type&&(s=o,o=e,e=e.type),process.env.NODE_ENV!=="production"&&Zf(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:o,options:s}}var iNt="vuex bindings",tH="vuex:mutations",bT="vuex:actions",w2="vuex",oNt=0;function sNt(e,o){Jzt({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:[iNt]},function(s){s.addTimelineLayer({id:tH,label:"Vuex Mutations",color:aH}),s.addTimelineLayer({id:bT,label:"Vuex Actions",color:aH}),s.addInspector({id:w2,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),s.on.getInspectorTree(function(z){if(z.app===e&&z.inspectorId===w2)if(z.filter){var W=[];oH(W,o._modules.root,z.filter,""),z.rootNodes=W}else z.rootNodes=[iH(o._modules.root,"")]}),s.on.getInspectorState(function(z){if(z.app===e&&z.inspectorId===w2){var W=z.nodeId;eH(o,W),z.state=uNt(hNt(o._modules,W),W==="root"?o.getters:o._makeLocalGettersCache,W)}}),s.on.editInspectorState(function(z){if(z.app===e&&z.inspectorId===w2){var W=z.nodeId,v=z.path;W!=="root"&&(v=W.split("/").filter(Boolean).concat(v)),o._withCommit(function(){z.set(o._state.data,v,z.state.value)})}}),o.subscribe(function(z,W){var v={};z.payload&&(v.payload=z.payload),v.state=W,s.notifyComponentUpdate(),s.sendInspectorTree(w2),s.sendInspectorState(w2),s.addTimelineEvent({layerId:tH,event:{time:Date.now(),title:z.type,data:v}})}),o.subscribeAction({before:function(z,W){var v={};z.payload&&(v.payload=z.payload),z._id=oNt++,z._time=Date.now(),v.state=W,s.addTimelineEvent({layerId:bT,event:{time:z._time,title:z.type,groupId:z._id,subtitle:"start",data:v}})},after:function(z,W){var v={},g=Date.now()-z._time;v.duration={_custom:{type:"duration",display:g+"ms",tooltip:"Action duration",value:g}},z.payload&&(v.payload=z.payload),v.state=W,s.addTimelineEvent({layerId:bT,event:{time:Date.now(),title:z.type,groupId:z._id,subtitle:"end",data:v}})}})})}var aH=8702998,lNt=6710886,cNt=16777215,rH={label:"namespaced",textColor:cNt,backgroundColor:lNt};function nH(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function iH(e,o){return{id:o||"root",label:nH(o),tags:e.namespaced?[rH]:[],children:Object.keys(e._children).map(function(s){return iH(e._children[s],o+s+"/")})}}function oH(e,o,s,z){z.includes(s)&&e.push({id:z||"root",label:z.endsWith("/")?z.slice(0,z.length-1):z||"Root",tags:o.namespaced?[rH]:[]}),Object.keys(o._children).forEach(function(W){oH(e,o._children[W],s,z+W+"/")})}function uNt(e,o,s){o=s==="root"?o:o[s];var z=Object.keys(o),W={state:Object.keys(e.state).map(function(g){return{key:g,editable:!0,value:e.state[g]}})};if(z.length){var v=dNt(o);W.getters=Object.keys(v).map(function(g){return{key:g.endsWith("/")?nH(g):g,editable:!1,value:xT(function(){return v[g]})}})}return W}function dNt(e){var o={};return Object.keys(e).forEach(function(s){var z=s.split("/");if(z.length>1){var W=o,v=z.pop();z.forEach(function(g){W[g]||(W[g]={_custom:{value:{},display:g,tooltip:"Module",abstract:!0}}),W=W[g]._custom.value}),W[v]=xT(function(){return e[s]})}else o[s]=xT(function(){return e[s]})}),o}function hNt(e,o){var s=o.split("/").filter(function(z){return z});return s.reduce(function(z,W,v){var g=z[W];if(!g)throw new Error('Missing module "'+W+'" for path "'+o+'".');return v===s.length-1?g:g._children},o==="root"?e:e.root._children)}function xT(e){try{return e()}catch(o){return o}}var Wf=function(e,o){this.runtime=o,this._children=Object.create(null),this._rawModule=e;var s=e.state;this.state=(typeof s=="function"?s():s)||{}},sH={namespaced:{configurable:!0}};sH.namespaced.get=function(){return!!this._rawModule.namespaced},Wf.prototype.addChild=function(e,o){this._children[e]=o},Wf.prototype.removeChild=function(e){delete this._children[e]},Wf.prototype.getChild=function(e){return this._children[e]},Wf.prototype.hasChild=function(e){return e in this._children},Wf.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)},Wf.prototype.forEachChild=function(e){yg(this._children,e)},Wf.prototype.forEachGetter=function(e){this._rawModule.getters&&yg(this._rawModule.getters,e)},Wf.prototype.forEachAction=function(e){this._rawModule.actions&&yg(this._rawModule.actions,e)},Wf.prototype.forEachMutation=function(e){this._rawModule.mutations&&yg(this._rawModule.mutations,e)},Object.defineProperties(Wf.prototype,sH);var vg=function(e){this.register([],e,!1)};vg.prototype.get=function(e){return e.reduce(function(o,s){return o.getChild(s)},this.root)},vg.prototype.getNamespace=function(e){var o=this.root;return e.reduce(function(s,z){return o=o.getChild(z),s+(o.namespaced?z+"/":"")},"")},vg.prototype.update=function(e){lH([],this.root,e)},vg.prototype.register=function(e,o,s){var z=this;s===void 0&&(s=!0),process.env.NODE_ENV!=="production"&&dH(e,o);var W=new Wf(o,s);if(e.length===0)this.root=W;else{var v=this.get(e.slice(0,-1));v.addChild(e[e.length-1],W)}o.modules&&yg(o.modules,function(g,r){z.register(e.concat(r),g,s)})},vg.prototype.unregister=function(e){var o=this.get(e.slice(0,-1)),s=e[e.length-1],z=o.getChild(s);if(!z){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+s+"', which is not registered");return}z.runtime&&o.removeChild(s)},vg.prototype.isRegistered=function(e){var o=this.get(e.slice(0,-1)),s=e[e.length-1];return o?o.hasChild(s):!1};function lH(e,o,s){if(process.env.NODE_ENV!=="production"&&dH(e,s),o.update(s),s.modules)for(var z in s.modules){if(!o.getChild(z)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+z+"' on hot reloading, manual reload is needed");return}lH(e.concat(z),o.getChild(z),s.modules[z])}}var cH={assert:function(e){return typeof e=="function"},expected:"function"},pNt={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},uH={getters:cH,mutations:cH,actions:pNt};function dH(e,o){Object.keys(uH).forEach(function(s){if(o[s]){var z=uH[s];yg(o[s],function(W,v){Zf(z.assert(W),fNt(e,s,v,W,z.expected))})}})}function fNt(e,o,s,z,W){var v=o+" should be "+W+' but "'+o+"."+s+'"';return e.length>0&&(v+=' in module "'+e.join(".")+'"'),v+=" is "+JSON.stringify(z)+".",v}var Ap=function e(o){var s=this;o===void 0&&(o={}),process.env.NODE_ENV!=="production"&&(Zf(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),Zf(this instanceof e,"store must be called with the new operator."));var z=o.plugins;z===void 0&&(z=[]);var W=o.strict;W===void 0&&(W=!1);var v=o.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new vg(o),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=v;var g=this,r=this,b=r.dispatch,d=r.commit;this.dispatch=function(_,y){return b.call(g,_,y)},this.commit=function(_,y,x){return d.call(g,_,y,x)},this.strict=W;var a=this._modules.root.state;z4(this,a,[],this._modules.root),yT(this,a),z.forEach(function(_){return _(s)})},_T={state:{configurable:!0}};Ap.prototype.install=function(e,o){e.provide(o||JG,this),e.config.globalProperties.$store=this;var s=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;s&&sNt(e,this)},_T.state.get=function(){return this._state.data},_T.state.set=function(e){process.env.NODE_ENV!=="production"&&Zf(!1,"use store.replaceState() to explicit replace store state.")},Ap.prototype.commit=function(e,o,s){var z=this,W=N4(e,o,s),v=W.type,g=W.payload,r=W.options,b={type:v,payload:g},d=this._mutations[v];if(!d){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+v);return}this._withCommit(function(){d.forEach(function(a){a(g)})}),this._subscribers.slice().forEach(function(a){return a(b,z.state)}),process.env.NODE_ENV!=="production"&&r&&r.silent&&console.warn("[vuex] mutation type: "+v+". Silent option has been removed. Use the filter functionality in the vue-devtools")},Ap.prototype.dispatch=function(e,o){var s=this,z=N4(e,o),W=z.type,v=z.payload,g={type:W,payload:v},r=this._actions[W];if(!r){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+W);return}try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(g,s.state)})}catch(d){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(d))}var b=r.length>1?Promise.all(r.map(function(d){return d(v)})):r[0](v);return new Promise(function(d,a){b.then(function(_){try{s._actionSubscribers.filter(function(y){return y.after}).forEach(function(y){return y.after(g,s.state)})}catch(y){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(y))}d(_)},function(_){try{s._actionSubscribers.filter(function(y){return y.error}).forEach(function(y){return y.error(g,s.state,_)})}catch(y){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(y))}a(_)})})},Ap.prototype.subscribe=function(e,o){return KG(e,this._subscribers,o)},Ap.prototype.subscribeAction=function(e,o){var s=typeof e=="function"?{before:e}:e;return KG(s,this._actionSubscribers,o)},Ap.prototype.watch=function(e,o,s){var z=this;return process.env.NODE_ENV!=="production"&&Zf(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(z.state,z.getters)},o,Object.assign({},s))},Ap.prototype.replaceState=function(e){var o=this;this._withCommit(function(){o._state.data=e})},Ap.prototype.registerModule=function(e,o,s){s===void 0&&(s={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(Zf(Array.isArray(e),"module path must be a string or an Array."),Zf(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,o),z4(this,this.state,e,this._modules.get(e),s.preserveState),yT(this,this.state)},Ap.prototype.unregisterModule=function(e){var o=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&Zf(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var s=vT(o.state,e.slice(0,-1));delete s[e[e.length-1]]}),QG(this)},Ap.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&Zf(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},Ap.prototype.hotUpdate=function(e){this._modules.update(e),QG(this,!0)},Ap.prototype._withCommit=function(e){var o=this._committing;this._committing=!0,e(),this._committing=o},Object.defineProperties(Ap.prototype,_T);var mNt=yNt(function(e,o){var s={};return process.env.NODE_ENV!=="production"&&!hH(o)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),gNt(o).forEach(function(z){var W=z.key,v=z.val;s[W]=function(){for(var g=[],r=arguments.length;r--;)g[r]=arguments[r];var b=this.$store.commit;if(e){var d=vNt(this.$store,"mapMutations",e);if(!d)return;b=d.context.commit}return typeof v=="function"?v.apply(this,[b].concat(g)):b.apply(this.$store,[v].concat(g))}}),s});function gNt(e){return hH(e)?Array.isArray(e)?e.map(function(o){return{key:o,val:o}}):Object.keys(e).map(function(o){return{key:o,val:e[o]}}):[]}function hH(e){return Array.isArray(e)||$G(e)}function yNt(e){return function(o,s){return typeof o!="string"?(s=o,o=""):o.charAt(o.length-1)!=="/"&&(o+="/"),e(o,s)}}function vNt(e,o,s){var z=e._modulesNamespaceMap[s];return process.env.NODE_ENV!=="production"&&!z&&console.error("[vuex] module namespace not found in "+o+"(): "+s),z}const bNt={name:"tooltip",props:{data:{type:Object,required:!0}},computed:{showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(e){},closeClick:function(e){this.data.link="",this.data.visible=!1}}};function xNt(e,o,s,z,W,v){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["back-tooltip",v.showTooltip])},[t.createElementVNode("div",{class:t.normalizeClass(["box-tooltip",v.showTooltip]),onClick:o[1]||(o[1]=(...g)=>v.tooltipClick&&v.tooltipClick(...g))},[t.createElementVNode("span",{class:"box-tooltip-close",onClick:o[0]||(o[0]=(...g)=>v.closeClick&&v.closeClick(...g))},"×"),t.renderSlot(e.$slots,"default",{},void 0,!0)],2)],2)}const _Nt=bb(bNt,[["render",xNt],["__scopeId","data-v-0336fa9c"]]),wNt=/^https:\/\/[a-z0-9]+\.execute-api\.[a-z0-9-]+\.amazonaws\.com\/(prod|qa\d*)\//,kNt=/^https:\/\/golstats-microservices\.s3[.-]us-west-2\.amazonaws\.com\//,SNt="https://apis.golstats.com",TNt="https://dev-apis.golstats.com";function CNt(e,o,s=!1){if(!o||o===1)return e;const z=s?TNt:SNt,W=e.match(wNt);if(W){const g=e.replace(W[0],"");return`${z}/${o}/${g}`}const v=e.match(kNt);if(v){const g=e.replace(v[0],"");return`${z}/${o}/${g}`}return e}const ENt=1e3,pH=ENt*60,wT=pH*60,fH=wT*24,ANt={data(){return{timeLeft:"",currentTime:new Date().valueOf(),interval:null,gameDateTime:new Date,now:new Date}},computed:{isToday(){return`${this.now.getFullYear()}.${this.now.getMonth()}.${this.now.getDate()}`==`${this.gameDateTime.getFullYear()}.${this.gameDateTime.getMonth()}.${this.gameDateTime.getDate()}`},gameStart(){return this.gameDateTime.toTimeString().slice(0,5)}},methods:{checkTimeLeft(){const e=new Date(this.gameData.dateTimeUTC).valueOf();e>this.currentTime?(this.timeLeft=this.getTimeLeft(e),this.interval=setInterval(()=>{this.timeLeft=this.getTimeLeft(e)},6e4)):this.timeLeft="00:00 hrs"},getTimeLeft(e){let o=e.valueOf()-this.currentTime;const s=Math.floor(o/fH);o=o-s*fH;const z=Math.floor(o/wT);o=o-z*wT;const W=Math.floor(o/pH);return`${s?`${s} dias `:""}${z<10?`0${z}`:z}:${W<10?`0${W}`:W} hrs.`}},beforeDestroy(){this.interval&&clearInterval(this.interval)}};function MNt(e){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${e}.png`}function PNt(e){return`${{}.PROFILE_PHOTO_PLAYER||"https://golstatsimages.blob.core.windows.net/players-profile/"}${e}.png`}const kT={GOAL_IDS:["1-1","1-2","1-3","1-4","1-5","1-6","1-7","1-12","1-13","1-16","4-14"],YELLOW_CARD_IDS:["2-8"],RED_CARD_IDS:["2-9"]},INt="/icn-play.svg",LNt="/icn-tiros-de-esquina.svg",BNt="/icn-tiro-a-porteria.svg",ONt="/icn-cambio.svg",zNt="/icn-falta.svg",NNt="/atajada.svg",DNt="/fuera-de-lugar.svg",ST="/gol.svg",FNt="/var.png",RNt="/tiempo-agregado.svg",VNt="/jugada-peligrosa.svg",jNt="/penal-marcado.svg",UNt="/penal-fallado.svg",GNt="/inicia-el-partido.svg",HNt="/fin-del-partido.svg",ZNt="/icn-tarjeta-amarilla.svg",WNt="/icn-tarjeta-roja.svg",XNt=[1,2,3,4,6],qNt={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=[],o=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return kT.GOAL_IDS.includes(o)?(e.push("is-main-event"),e.push("goal")):kT.YELLOW_CARD_IDS.includes(o)?(e.push("is-main-event"),e.push("yellow-card")):kT.RED_CARD_IDS.includes(o)?(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(o=>PNt(o))),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||XNt.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...mNt("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,o]=this.gameEvent.player_id.split("@");this.$emit("player-changed",{playerOut:Number(e),playerIn:Number(o),teamId:this.gameEvent.team_id})}}},YNt=e=>(t.pushScopeId("data-v-f8c0f071"),e=e(),t.popScopeId(),e),JNt={class:"time-line-event__details"},$Nt={width:"127",preload:"metadata",style:{"border-radius":"8px"}},KNt=["src"],QNt=YNt(()=>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)),eDt={class:"time-line-event__details__info"},tDt={key:0,class:"time-line-event__details__info__header__players"},aDt={class:"time-line-event__details__info__header__players__div-img"},rDt=["src"],nDt={class:"time-line-event__details__info__body"},iDt={class:"time-line-event__details__info__body__comment"},oDt={class:"time-line-event__minute__container"},sDt={class:"time-line-event__minute__container__text"},lDt={class:"time-line-event__minute__container__icon-container"},cDt={class:"time-line-event__minute__container__icon-container__icon"},uDt={key:0,src:LNt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},dDt={key:1,src:BNt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},hDt={key:2,src:ONt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},pDt={key:3,src:zNt,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},fDt={key:4,src:NNt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},mDt={key:5,src:DNt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},gDt={key:6,src:ST,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},yDt={key:7,src:ST,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},vDt={key:8,src:ST,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},bDt={key:9,src:FNt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},xDt={key:10,src:RNt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},_Dt={key:11,src:VNt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},wDt={key:12,src:jNt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},kDt={key:13,src:UNt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},SDt={key:14,src:GNt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},TDt={key:15,src:HNt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},CDt={key:16,src:ZNt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},EDt={key:17,src:WNt,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},ADt={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 MDt(e,o,s,z,W,v){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",v.teamTypeClasses]),style:t.normalizeStyle({width:`${s.width}px`}),key:W.gameEventKey},[t.createElementVNode("div",JNt,[s.canPlayVideos&&s.gameEvent.video_link!=="-"&&s.timeLineWidth>700?(t.openBlock(),t.createElementBlock("div",{key:0,class:"time-line-event__details__video-thumbnail",onClick:o[0]||(o[0]=g=>v.thumbnailClick(s.gameEvent.video_link,s.gameEvent.event_type_name))},[t.createElementVNode("video",$Nt,[t.createElementVNode("source",{src:s.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,KNt)]),QNt])):t.createCommentVNode("",!0),t.createElementVNode("div",eDt,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",v.teamTypeClasses2])},[s.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",tDt,[v.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(v.srcImgPlayers,(g,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":r===1}]),key:r},[t.createElementVNode("div",aDt,[t.createElementVNode("img",{src:g,alt:""},null,8,rDt)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",v.nameClasses]),onClick:o[1]||(o[1]=g=>v.thumbnailClick(s.gameEvent.video_link,s.gameEvent.event_type_name))},[s.canPlayVideos&&s.gameEvent.video_link!=="-"?(t.openBlock(),t.createElementBlock("img",{key:0,src:INt,class:t.normalizeClass(`time-line-event__details__info__header__event-play ${[1,2].includes(s.gameEvent.event_type_id)?`time-line-event__details__info__header__event-play__${s.gameEvent.event_type_name}`:s.gameEvent.video_link!=="-"?"time-line-event__details__info__header__event-play__normal-video":""}`)},null,2)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(s.gameEvent.category_id?s.gameEvent.event_type_id===5?s.gameEvent.category_name:s.gameEvent.event_type_name==="Gol"?`${[13,16].includes(s.gameEvent.category_id)?"Autogol":"Gol"} de `+s.gameEvent.team_name:s.gameEvent.event_type_name:s.gameEvent.comments),1)],2)],2),t.createElementVNode("div",nDt,[t.createElementVNode("div",iDt,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",v.minuteClasses])},[t.createElementVNode("div",oDt,[t.createElementVNode("div",sDt,t.toDisplayString(s.gameEvent.minute)+"'",1),t.createElementVNode("div",lDt,[t.createElementVNode("div",cDt,[s.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",uDt)):s.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",dDt)):s.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",hDt)):s.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",pDt)):s.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",fDt)):s.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",mDt)):s.gameEvent.category_id==6&&s.gameEvent.event_type_id==1||s.gameEvent.category_id==5&&s.gameEvent.event_type_id==1||s.gameEvent.category_id==1&&s.gameEvent.event_type_id==1||s.gameEvent.category_id==2&&s.gameEvent.event_type_id==1||s.gameEvent.category_id==3&&s.gameEvent.event_type_id==1||s.gameEvent.category_id==7&&s.gameEvent.event_type_id==1||s.gameEvent.category_id==12&&s.gameEvent.event_type_id==1?(t.openBlock(),t.createElementBlock("img",gDt)):s.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",yDt)):s.gameEvent.category_id==13||s.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",vDt)):s.gameEvent.category_id==30||s.gameEvent.category_id==31||s.gameEvent.category_id==32||s.gameEvent.category_id==33||s.gameEvent.category_id==34||s.gameEvent.category_id==35||s.gameEvent.category_id==36||s.gameEvent.category_id==37||s.gameEvent.category_id==38||s.gameEvent.category_id==39||s.gameEvent.category_id==40?(t.openBlock(),t.createElementBlock("img",bDt)):s.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",xDt)):s.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",_Dt)):s.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",wDt)):s.gameEvent.category_id==15||s.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",kDt)):s.gameEvent.category_id==0&&s.gameEvent.game_status_id==16||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==18||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==20||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==22?(t.openBlock(),t.createElementBlock("img",SDt)):s.gameEvent.category_id==0&&s.gameEvent.game_status_id==13||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==17||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==19||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==21||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==23?(t.openBlock(),t.createElementBlock("img",TDt)):s.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",CDt)):s.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",EDt)):(t.openBlock(),t.createElementBlock("img",ADt))])])])],2)],6)}const PDt=bb(qNt,[["render",MDt],["__scopeId","data-v-f8c0f071"]]),IDt={"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"},LDt={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 D4=null;const BDt={name:"TimeLine",components:{Tooltip:_Nt,TimeLineEvent:PDt},mixins:[ANt],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 o=await this.fetchGameEvents(e);o?(this.gameEvents=[...o],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(o){throw new Error(o)}},getGameEventClassAndSetIcon(e,o){return e.icon=o===0?"inicio_del_partido":IDt[`${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 o=this.$store.getters.getProviderId,s=this.$store.getters.getIsDevApis,z=CNt(`${this.gameEventsUrl}${e}`,o,s),{data:{plays:W}}=await qG.get(z);return W}catch(o){throw new Error(o)}},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)D4=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),D4.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,o){const s=this.$refs[`gameEventDiv${o}`][0],z=this.$refs[`gameEventLine${o}`]?this.$refs[`gameEventLine${o}`][0]:null,W=e+12;s&&(s.style.height=`${W}px`),z&&(z.style.height=`${W}px`)},sortGameEvents(){this.gameEvents.sort((e,o)=>this.getMatchLapseMinutes(e.match_lapse)+Number(e.minute)-(this.getMatchLapseMinutes(o.match_lapse)+Number(o.minute))),this.gameEventsByPeriod={firstHalf:[],secondHalf:[]},this.gameEvents.forEach(e=>{this.gameEventsByPeriod[e.match_lapse===1?"firstHalf":"secondHalf"].push(e)})},getMatchLapseMinutes(e){let o=0;switch(e){case 1:o=0;break;case 2:o=45;break;case 3:o=90;break;case 4:o=105;break;case 5:o=120;break}return o},addGameEventFromChannel(e){this.areGameEventsFilled?(this.gameEvents.push(e),this.sortGameEvents()):this.gameEventsQueue.push(e)},deleteGameEventFromChannel(e){const o=this.gameEvents.findIndex(s=>s.play_id===e.play_id);o&&this.gameEvents.splice(o,1)},checkTimeLineStatus(){this.gameEvents.forEach(o=>{const s=LDt[o.game_status];s&&this.timeLineStatuses.push({...s,gameEvent:o})}),this.timeLineStatuses.sort((o,s)=>s.weight-o.weight);const e=this.timeLineStatuses[0];e&&(this.currentStatus=e,e.playTimer&&this.startTimer())},startTimer(){},getTeamLogoSrc(e="homeTeam"){const o=this.gameData[e].team_id;return MNt(o)},thumbnailClick(e){this.canPlayVideos&&(this.dataVideo.link=e,this.dataVideo.visible=!0)}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){D4&&D4.unobserve(this.$refs.timeLine)},sockets:{new_mxm([e,o]){this.channelName===e&&this.addGameEventFromChannel(o)},update_mxm([e,o]){this.channelName===e&&(this.deleteGameEventFromChannel(o),this.addGameEventFromChannel(o))},delete_mxm([e,o]){this.channelName===e&&this.deleteGameEventFromChannel(o)}}},mH=e=>(t.pushScopeId("data-v-0c454414"),e=e(),t.popScopeId(),e),ODt={ref:"timeLine",class:"time-line"},zDt={class:"time-line__header"},NDt={class:"time-line__header__dot"},DDt={class:"time-line__header__dot__home-team team-logo"},FDt=["src"],RDt={class:"time-line__header__dot__away-team team-logo"},VDt=["src"],jDt={key:1,class:"start-line"},UDt=mH(()=>t.createElementVNode("div",null,null,-1)),GDt=mH(()=>t.createElementVNode("div",null,null,-1)),HDt=[UDt,GDt],ZDt={key:1,class:"noEventText"},WDt={class:"tooltip-data"},XDt=["src"];function qDt(e,o,s,z,W,v){const g=t.resolveComponent("TimeLineEvent"),r=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",ODt,[t.createElementVNode("div",zDt,[t.createElementVNode("div",NDt,[t.createElementVNode("div",DDt,[t.createElementVNode("img",{src:v.getTeamLogoSrc("homeTeam"),alt:""},null,8,FDt)]),t.createElementVNode("div",RDt,[t.createElementVNode("img",{src:v.getTeamLogoSrc("awayTeam"),alt:""},null,8,VDt)])])]),(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events",key:`tlk-${W.gameEvents.length}`},[s.gameData.status!==4||s.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(v.gameEventsToShow,(b,d)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:b.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${d}`,class:t.normalizeClass(v.getGameEventClassAndSetIcon(b,d))},[t.createElementVNode("div",{class:t.normalizeClass(v.getEventContainerClass(b))},[t.createVNode(g,{"game-event":b,"is-mobile":v.isMobile,"time-line-width":W.timeLineWidth,width:v.gameEventWidth,"can-play-videos":s.canPlayVideos,onEventHeight:a=>v.updateContainerHeight(a,d),onPlayerChanged:o[0]||(o[0]=a=>e.$emit("player-changed",a)),onThumbnailClick:v.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","can-play-videos","onEventHeight","onThumbnailClick"])],2),d>0?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:`gameEventLine${d}`,class:"line"},null,512)):t.createCommentVNode("",!0),s.gameData.status===1&&d===v.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",jDt,HDt)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",ZDt,"Aún no comienza el partido"))]))],512),t.createVNode(r,{data:W.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",WDt,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:W.dataVideo.link,format:"video/mp4"},null,8,XDt)])])]),_:1},8,["data"])],64)}const YDt=bb(BDt,[["render",qDt],["__scopeId","data-v-0c454414"]]),JDt={class:"game-time-line__options"},$Dt={class:"game-time-line__timeline"},KDt={__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},providerId:{type:Number,default:0},isDevApis:{type:Boolean,default:!1}},setup(e){const o=e;qG.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"}),z=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 W=null;const v=$zt();v.commit("setProviderId",o.providerId),v.commit("setIsDevApis",o.isDevApis);const g=t.ref(["Todo","1er tiempo","2do tiempo"]),r=t.ref("Todo"),b=t.ref({}),d=t.ref(null),a=t.ref(0),_=t.computed(()=>{let i="all";return r.value==="1er tiempo"||r.value==="1er"?i="firstHalf":(r.value==="2do tiempo"||r.value==="2do")&&(i="secondHalf"),i}),y=t.computed(()=>a.value<500);function x(i){r.value=i}function u(i){b.value=i}function n(){if(window.ResizeObserver)W=new ResizeObserver(()=>{a.value=d.value.clientWidth}),W.observe(d.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{n()}),t.onBeforeUnmount(()=>{W&&W.unobserve(d.value)}),(i,f)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:d,class:"game-time-line"},[t.createElementVNode("div",JDt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value,l=>(t.openBlock(),t.createElementBlock("div",{key:l,class:"game-time-line__options__option"},[t.createVNode(cOt,t.mergeProps(a.value<390?z.value:s.value,{text:l=="Todo"?l:a.value<390?l.substring(0,3):l,"is-active":r.value===l,onClick:h=>x(l)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",$Dt,[t.createVNode(YDt,{"game-data":e.game,"time-line-period":_.value,"is-mobile":y.value,socket:e.socket,"can-play-videos":e.canPlayVideos,onGameEventsByPeriodFilled:u},null,8,["game-data","time-line-period","is-mobile","socket","can-play-videos"])])],512))}},QDt=bb(KDt,[["__scopeId","data-v-2fac45b8"]]),nJt="",eFt={class:"game-data__header"},tFt={class:"game-data__header__tournament-season-dropdown"},aFt={class:"game-data__header__teams-carousel"},rFt={class:"game-data__body"},nFt={key:0,class:"no-stats-container"},iFt={key:1,class:"no-stats-container-mobile"},oFt={class:"game-data__body__menu"},sFt={class:"game-data__body__menu__contmenuswitch"};bu.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const lFt=t.defineComponent({name:"GSC-GameData",components:{StatisticsMain:Zse,GSCGameTimeLine:QDt,GscSwitchComponent:Sk,GSCLineupsMain:z_e,GSCPositining:iyt,GSCDatosGSMain:DTe,GSCVideoGame:nFe,ModalEvents:Oz,GSCTacticaFijaMain:sOt,GSCProminentMain:Bit,GSCComparative:Rlt}}),cFt=$i(Object.assign(lFt,{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},isFemaleMode:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},emits:["openmedia","change-season-id","onOpenProfile","openProfileTeam","openProfilePlayer"],setup(e,{emit:o}){const s=pw();let z=null;Nd.on("socket-connected",()=>{s.commit("nextGeneral/updateIsSocketConnected",W.socket.connected)});const W=e,v=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),g=t.ref({season:[]}),r=t.ref({}),b=t.ref(!1),d=t.ref({}),a=t.ref(1),_=t.ref(0),y=3e4,x=3e4,u=3e4,n=3e4,i=3e4,f=3e4,l=3e4,h=3e4,m=6e4,w=t.ref(null),T=t.ref(null),A=t.ref(null),C=t.ref([]),I=t.ref(null),L=t.ref(!0),E=t.ref(new Set([1,2])),P=t.ref({}),M=t.ref({minute:"",recent_lapse:0,score:{}}),S=t.ref(0),B=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),k=t.ref(W.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:W.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:W.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}]),O=t.ref(W.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:W.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:W.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}]),D=t.ref(W.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:W.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:W.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(W.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:W.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:W.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 G=null;const H=t.ref(null),U=t.ref(0),J=t.ref(O.value[0]),re=t.ref([]);let q=t.ref("");const ae={seasonAndPrivileges:null,canPrivilegesTeamPlayVideos:!1,homeTeamDetails:{canPlayVideos:!1,team:{}},awayTeamDetails:{canPlayVideos:!1,team:{}}},ee=t.computed(()=>{const ot=[];return r.value&&r.value.id&&(ot.push({id:r.value.id,name:r.value.name,type:r.value.type}),r.value.related_seasons&&r.value.related_seasons.forEach(vt=>{ot.push({id:vt.id,type:vt.type})})),ot}),$=t.computed(()=>{if(W.clientPrivilegesBySeasons){const ot=W.clientPrivilegesBySeasons.seasonsAndPrivileges.get(r.value.id);if(ot)return ot.teamId}return 0});function Q(){b.value=!1}function ce(ot){const vt=ot.split(",");return!(vt.length<2||vt[1].split(" ").length<2)}function de(ot){w.value=ot}function he(ot){C.value.push(ot)}function pe(ot){I.value=ot}function ne(ot){A.value=ot}function le(ot){T.value=ot}function ie(ot){if(!ce(ot))return"";const vt=ve(ot);return`${me(ot)}. ${vt}`}function me(ot){return ot.split(",")[1].split(" ")[1][0]}function ve(ot){const vt=ot.split(",")[0].split(" ");return vt[0].length<=3&&vt.length>1?`${vt[0]} ${vt[1]}`:vt[0]}async function ye(ot){try{const vt=bu.create({headers:{Authorization:`${v.value}`}});P.value={};const yt=await vt.get("https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/"+ot.game_id);if(P.value[ot.home_team.team_id]=[],P.value[ot.home_team.team_id].team={name:ot.home_team.acronym,logo:ot.home_team.logo},P.value[ot.home_team.team_id].goals=[],P.value[ot.home_team.team_id].red=[],P.value[ot.home_team.team_id].yellow=[],P.value[ot.visiting_team.team_id]=[],P.value[ot.visiting_team.team_id].team={name:ot.visiting_team.acronym,logo:ot.visiting_team.logo},P.value[ot.visiting_team.team_id].goals=[],P.value[ot.visiting_team.team_id].red=[],P.value[ot.visiting_team.team_id].yellow=[],yt.data.minute!=null&&(M.value={minute:yt.data.minute,recent_lapse:yt.data.recent_lapse,score:yt.data.score}),yt.data.plays)for(let It=0;It<yt.data.plays.length;It++)yt.data.plays[It].category_name=="Roja"&&yt.data.plays[It].status==1&&(ot.home_team.team_id==yt.data.plays[It].team_id?(ie(yt.data.plays[It].player_name)in P.value[ot.home_team.team_id].red||(P.value[ot.home_team.team_id].red[ie(yt.data.plays[It].player_name)]={},P.value[ot.home_team.team_id].red[ie(yt.data.plays[It].player_name)].event=[],P.value[ot.home_team.team_id].red[ie(yt.data.plays[It].player_name)].name=ie(yt.data.plays[It].player_name)),P.value[ot.home_team.team_id].red[ie(yt.data.plays[It].player_name)].event.push(yt.data.plays[It].minute)):(ie(yt.data.plays[It].player_name)in P.value[ot.visiting_team.team_id].red||(P.value[ot.visiting_team.team_id].red[ie(yt.data.plays[It].player_name)]={},P.value[ot.visiting_team.team_id].red[ie(yt.data.plays[It].player_name)].event=[],P.value[ot.visiting_team.team_id].red[ie(yt.data.plays[It].player_name)].name=ie(yt.data.plays[It].player_name)),P.value[ot.visiting_team.team_id].red[ie(yt.data.plays[It].player_name)].event.push(yt.data.plays[It].minute))),yt.data.plays[It].category_name=="Amarilla"&&yt.data.plays[It].status==1&&(ot.home_team.team_id==yt.data.plays[It].team_id?(ie(yt.data.plays[It].player_name)in P.value[ot.home_team.team_id].yellow||(P.value[ot.home_team.team_id].yellow[ie(yt.data.plays[It].player_name)]={},P.value[ot.home_team.team_id].yellow[ie(yt.data.plays[It].player_name)].event=[],P.value[ot.home_team.team_id].yellow[ie(yt.data.plays[It].player_name)].name=ie(yt.data.plays[It].player_name)),P.value[ot.home_team.team_id].yellow[ie(yt.data.plays[It].player_name)].event.push(yt.data.plays[It].minute)):(ie(yt.data.plays[It].player_name)in P.value[ot.visiting_team.team_id].yellow||(P.value[ot.visiting_team.team_id].yellow[ie(yt.data.plays[It].player_name)]={},P.value[ot.visiting_team.team_id].yellow[ie(yt.data.plays[It].player_name)].event=[],P.value[ot.visiting_team.team_id].yellow[ie(yt.data.plays[It].player_name)].name=ie(yt.data.plays[It].player_name)),P.value[ot.visiting_team.team_id].yellow[ie(yt.data.plays[It].player_name)].event.push(yt.data.plays[It].minute))),yt.data.plays[It].event_type_name=="Gol"&&yt.data.plays[It].status==1&&(ot.home_team.team_id==yt.data.plays[It].team_id?yt.data.plays[It].category_name=="Autogol"?(ie(yt.data.plays[It].player_name)in P.value[ot.visiting_team.team_id].goals||(P.value[ot.visiting_team.team_id].goals[ie(yt.data.plays[It].player_name)]={},P.value[ot.visiting_team.team_id].goals[ie(yt.data.plays[It].player_name)].event=[],P.value[ot.visiting_team.team_id].goals[ie(yt.data.plays[It].player_name)].name=ie(yt.data.plays[It].player_name)),P.value[ot.visiting_team.team_id].goals[ie(yt.data.plays[It].player_name)].event.push(yt.data.plays[It].minute)):(ie(yt.data.plays[It].player_name)in P.value[ot.home_team.team_id].goals||(P.value[ot.home_team.team_id].goals[ie(yt.data.plays[It].player_name)]={},P.value[ot.home_team.team_id].goals[ie(yt.data.plays[It].player_name)].event=[],P.value[ot.home_team.team_id].goals[ie(yt.data.plays[It].player_name)].name=ie(yt.data.plays[It].player_name)),P.value[ot.home_team.team_id].goals[ie(yt.data.plays[It].player_name)].event.push(yt.data.plays[It].minute)):yt.data.plays[It].category_name=="Autogol"?(ie(yt.data.plays[It].player_name)in P.value[ot.home_team.team_id].goals||(P.value[ot.home_team.team_id].goals[ie(yt.data.plays[It].player_name)]={},P.value[ot.home_team.team_id].goals[ie(yt.data.plays[It].player_name)].event=[],P.value[ot.home_team.team_id].goals[ie(yt.data.plays[It].player_name)].name=ie(yt.data.plays[It].player_name)),P.value[ot.home_team.team_id].goals[ie(yt.data.plays[It].player_name)].event.push(yt.data.plays[It].minute)):(ie(yt.data.plays[It].player_name)in P.value[ot.visiting_team.team_id].goals||(P.value[ot.visiting_team.team_id].goals[ie(yt.data.plays[It].player_name)]={},P.value[ot.visiting_team.team_id].goals[ie(yt.data.plays[It].player_name)].event=[],P.value[ot.visiting_team.team_id].goals[ie(yt.data.plays[It].player_name)].name=ie(yt.data.plays[It].player_name)),P.value[ot.visiting_team.team_id].goals[ie(yt.data.plays[It].player_name)].event.push(yt.data.plays[It].minute)))}catch(vt){return Promise.reject(vt)}}function ke(ot){b.value=!0,ot.is_live!=1&&ot.game_status!=0&&(ot.game_status==4||Object.keys(ot.minutes).length>0)?(S.value=1,P.value={plays:ot.minutes,home_team:ot.home_team,visiting_team:ot.visiting_team}):(S.value=0,ye(ot))}function Ee(){G=new ResizeObserver(ot=>{for(const vt of ot)U.value=vt.contentRect.width}),G.observe(H.value)}const Te=t.computed(()=>{let ot={};return d.value&&d.value.game_id&&(ot={gameId:d.value.game_id,id:d.value.game_id,seasonId:d.value.season_id,regularSeasonId:d.value.regularSeasonId,matchday_name:d.value.matchday_name,status:d.value.game_status,score:d.value.score,game_status:d.value.game_status,dateTimeUTC:d.value.date_time_utc,homeTeam:d.value.home_team,awayTeam:d.value.visiting_team,is_live:d.value.is_live,minutes:d.value.minutes}),ot});t.watch(()=>d.value.game_id,Le,{immediate:!0}),t.watch(()=>d.value.is_live,je,{immediate:!0}),t.watch(()=>s.state.nextGeneral.gameForAnalysis,()=>{s.commit("nextGeneral/updateIsSocketConnected",W.socket.connected)},{deep:!0,immediate:!0});function Pe(ot){a.value=ot.is_captured,_.value=ot.is_female,L.value=ot.is_captured!==0,g.value.id!==ot.id&&(g.value=ot,s.commit("gameGlobal/setTournamentType",ot.tournament_type))}const Be=o;function Le(ot,vt){s.commit("nextGeneral/updateShowLiveData",!0);const yt=_.value?"Destacados":"Destacadas";O.value.forEach(It=>{It.name===yt&&(It.name=_.value?"Destacadas":"Destacados")}),ye({game_id:d.value.game_id,home_team:d.value.home_team,visiting_team:d.value.visiting_team}),Re(),V.value+=1}function je(ot,vt){if(Re(),s.state.nextGeneral.gameForAnalysis.is_live!==ot&&s.commit("nextGeneral/updateGameForAnalysis",{...s.state.nextGeneral.gameForAnalysis,is_live:d.value.is_live,game_status:d.value.game_status}),ot){const yt=qw();yt.disconnected?Yw():yt.connected&&UE(`game.${d.value.game_id}.v2`),Me(),z=setInterval(()=>{S.value=0,ye({game_id:d.value.game_id,home_team:d.value.home_team,visiting_team:d.value.visiting_team})},6e4)}else Me(),Jw();ot!==vt&&(V.value+=1)}function Me(){z&&clearInterval(z)}function Re(){O.value=[],d.value.is_live||d.value.game_status===4?O.value=[...k.value]:O.value=[...D.value],W.isWidget||((r.value.is_tactic_available===0||d.value.is_live||d.value.game_status===0)&&O.value.pop(),d.value.has_tracking===1&&!(d.value.is_live||d.value.game_status===4)&&O.value.push({componentName:"GSCPositining",name:"Posicionamiento",id:8})),J.value=O.value[0]}function Ie(ot){ot.gameSeasonId=d.value.season_id,ot.gameRegularSeasonId=d.value.regularSeasonId,!(!ot.auxwidget&&xe.value&&!xe.value.canPrivilegesTeamPlayVideos)&&((d.value.is_live||d.value.game_status===0||d.value.game_status===1)&&(ot.gameIdsToFilter=[d.value.game_id]),ot.isLiveAccumulated&&(ot.gameIdsToFilter=null),(d.value.is_live||d.value.game_status===0)&&!ot.isLiveAccumulated&&(ot.liveGameConfig={gameId:d.value.game_id}),Be("openmedia",ot))}function ge(ot){Be("onOpenProfile",ot)}function Ce(ot){Be("openProfileTeam",ot)}function we(ot){Be("openProfilePlayer",ot)}function Ve(ot){We(ot),ot=="Estadísticas"&&(q.value="Comparativa")}function Ne(){q.value=""}function Ue(ot){r.value.id!==ot.id&&(r.value=ot,Be("change-season-id",ot.id))}const Xe=t.computed(()=>O.value.reduce((ot,vt)=>(W.disabledSectionsIds.includes(vt.id)||xe.value&&!xe.value.isVideoTabVisible&&vt.id===2||W.clientPrivilegesBySeasons&&vt.id===7||(L.value||vt.id!==5&&vt.id!==6)&&ot.push(vt.name),ot),[]));function Ze(ot){if(d.value.is_live||d.value.game_status===1||d.value.game_status===0){const vt=ot.playingAs.has(d.value.playingAs);return W.clientPrivilegesBySeasons.canPlayVideos&&vt}else{const vt=Oe.value.filter(yt=>ot.playingAs.has(yt.playingAs));return W.clientPrivilegesBySeasons.canPlayVideos&&vt.length>0}}const xe=t.computed(()=>{if(W.clientPrivilegesBySeasons){if(r.value&&d.value&&d.value.game_id){const ot=W.clientPrivilegesBySeasons.seasonsAndPrivileges.get(r.value.id);if(ot)if(Fe(ot.playingAs),(d.value.is_live||d.value.game_status===1||d.value.game_status===0)&&s.state.nextGeneral.showLiveData){const vt=ot.playingAs.has(d.value.playingAs);return{seasonAndPrivileges:ot,canPrivilegesTeamPlayVideos:W.clientPrivilegesBySeasons.canPlayVideos&&vt,isPrivilegesTeamOnly:!1,isPrivilegesTeamHome:d.value.home_team.team_id===ot.teamId,homeTeamDetails:{canPlayVideos:vt,team:d.value.home_team},awayTeamDetails:{canPlayVideos:vt,team:d.value.visiting_team},isVideoTabVisible:Ze(ot)}}else{const vt=d.value.home_team.team_id===ot.teamId,yt=Oe.value.filter(Ut=>ot.playingAs.has(Ut.playingAs));return{seasonAndPrivileges:ot,canPrivilegesTeamPlayVideos:W.clientPrivilegesBySeasons.canPlayVideos&&yt.length>0,isPrivilegesTeamOnly:!0,isPrivilegesTeamHome:vt,homeTeamDetails:{canPlayVideos:W.clientPrivilegesBySeasons.canPlayVideos&&vt&&yt.length>0,team:d.value.home_team},awayTeamDetails:{canPlayVideos:W.clientPrivilegesBySeasons.canPlayVideos&&!vt&&yt.length>0,team:d.value.visiting_team},isVideoTabVisible:Ze(ot)}}Fe(new Set)}return ae}return null}),Oe=t.computed(()=>{if(W.clientPrivilegesBySeasons){if(r.value){const ot=W.clientPrivilegesBySeasons.seasonsAndPrivileges.get(r.value.id);if(ot)return re.value.filter(vt=>vt.game_status===1&&ot.playingAs.has(vt.playingAs))}return[]}return[]});t.watch(Xe,()=>{xe.value&&!xe.value.canPrivilegesTeamPlayVideos&&(J.value.id===2||J.value.id===7||J.value.id===8)&&We("Resumen")},{deep:!0,immediate:!0});function Fe(ot){E.value=ot}function We(ot){if(s.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),I.value!=null&&(clearInterval(I.value),I.value=null),C.value.length>0){for(let vt of C.value)clearInterval(vt);C.value=[]}W.isWidget?J.value=O.value.find(vt=>vt.name===ot)||O.value[1]:J.value=O.value.find(vt=>vt.name===ot)||O.value[0]}t.onMounted(()=>{Ee(),t.nextTick(()=>{W.isSynchronization&&We("Táctica Fija")})}),t.onBeforeUnmount(()=>{if(G&&G.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),I.value!=null&&(clearInterval(I.value),I.value=null),C.value.length>0){for(let ot of C.value)clearInterval(ot);C.value=[]}$w()});function et(ot){if(ot.playingAs||(ot.playingAs=$.value?ot.home_team.team_id===$.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),I.value!=null&&(clearInterval(I.value),I.value=null),C.value.length>0){for(let vt of C.value)clearInterval(vt);C.value=[]}d.value=ot,ot.is_live&&ot.game_status===4?Yw():Jw()}function tt(ot){re.value=ot.map(vt=>{const yt={...vt};return $.value&&(yt.playingAs=yt.home_team.team_id===$.value?1:2),yt})}return(ot,vt)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:H},[t.createElementVNode("div",eFt,[t.withDirectives(t.createElementVNode("div",tFt,[t.createVNode(t.unref(UT),{"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,"is-female-mode":e.isFemaleMode,token:e.token,onInput:Pe,onChangeTournaments:Pe},null,8,["current-season-id","tournaments-ids-to-include","api-url","are-female-visible","is-clubes-active","is-female-mode","token"]),t.createVNode(t.unref(ZT),{"current-season-id":e.currentSeasonId,"list-height":"370px",seasons:g.value.seasons,onInput:Ue},null,8,["current-season-id","seasons"])],512),[[t.vShow,e.areTournamentAndSeasonSelectsVisible]]),t.createElementVNode("div",aFt,[t.createVNode(t.unref(eK),{"plays-live":P.value,"info-live":M.value,token:B.value,is_captured:a.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":$.value,"only-games-team-id":$.value,"tournament-type":t.unref(s).state.gameGlobal.tournamentType,onChangeGameCarousel:et,onOpenModalEvent:ke,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"])])]),b.value?(t.openBlock(),t.createBlock(Oz,{key:0,width:U.value,onCloseModalEventsLive:Q,plays:P.value,game:d.value,type:S.value},null,8,["width","plays","game","type"])):t.createCommentVNode("",!0),t.createElementVNode("div",rFt,[d.value&&"live_stats"in d.value&&d.value.live_stats==0&&d.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[U.value>500?(t.openBlock(),t.createElementBlock("div",nFt,vt[0]||(vt[0]=[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)]))):(t.openBlock(),t.createElementBlock("div",iFt,vt[1]||(vt[1]=[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)])))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",oFt,[t.createElementVNode("div",sFt,[t.createVNode(t.unref(Sk),{type:2,buttons:Xe.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:We},null,8,["buttons","width","selected-option"])])]),Te.value&&Te.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(J.value.componentName),{key:V.value,game:Te.value,"is-widget":e.isWidget,"team-widget":e.teamWidget,onIntervalidpossesion:le,onIntervalidhighlive:ne,onIntervalidtops:he,onIntervalidgs:pe,subsection:t.unref(q),seasonSelected:r.value,tournamentSelected:g.value,showLineups:L.value,socket:e.socket,"time-live-prominent-data":y,"time-live-highlights-prominent-and-video":x,"time-live-possesion":u,"time-live-video-goals":n,"time-live-video-best-plays":i,"time-live-video-this-game":f,"time-live-video-specific-plays":l,"time-live-comparative-best-players":h,"time-live-comparative-avanced":m,is_captured:a.value,"is-tactic-visible":!!r.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":$.value,"play-videos-privileges":xe.value,token:B.value,"game-events-interval-minutes":e.gameEventsIntervalMinutes,"volumetric-field-interval-minutes":e.volumetricFieldIntervalMinutes,"chalkboard-interval-minutes":e.chalkboardIntervalMinutes,"is-female-mode":e.isFemaleMode,onResetSubsection:Ne,onOpenmedia:Ie,onOnOpenProfile:ge,onOpenProfileTeam:Ce,onOpenProfilePlayer:we,onChangeToTab:Ve,onOpenMediaPlayer:Ie,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","is-female-mode"])):t.createCommentVNode("",!0)],64))])],512))}}),[["__scopeId","data-v-41fe3cb3"]]);async function Ah({url:e,options:o={},retries:s=3}){return await bu.get(e,o).then(z=>z).catch(z=>s>0?Ah({url:e,options:o,retries:s-1}):z)}async function gH({seasonId:e},o=!0){try{return(await(await fetch(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`)).json()).data}catch(s){if(o)return gH({seasonId:e},!1);throw new Error(s)}}async function uFt({seasonId:e}){try{return(await Ah({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(o){return Promise.reject(o)}}async function dFt({seasonId:e}){try{return(await Ah({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(o){return Promise.reject(o)}}function hFt(e,o,s,z,W,v,g=!1){const r=s.map(b=>b===1?2:b===2?1:3);return e.filter(b=>{const d=v&&b[W.teamId]?b[W.teamId]!==v:!1,a=o===1?2:1;return(g||z.includes(b[W.gameId]))&&(!o||(d?a:o)===b[W.playingAs])&&(s.includes(b[W.matchResult])&&b[W.teamId]===v||r.includes(b[W.matchResult])&&b[W.teamId]!==v)})}function yH(e,o,s,z,W){return o.length===2&&s.length===3&&z.length===6?e:e.filter(v=>o.includes(v[W.playingAs])&&s.includes(v[W.matchResult])&&z.includes(v[W.section]))}async function vH({seasonId:e}){try{const o=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await Ah({url:o})).data}catch(o){return Promise.reject(o)}}async function pFt({seasonId:e,gameId:o}){try{const s=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${o}`,{data:z}=await Ah({url:s});return z}catch(s){return Promise.reject(s)}}async function fFt({gameId:e}){try{const o=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await Ah({url:o})).data.data}catch(o){return Promise.reject(o)}}async function mFt({gameId:e}){try{const o=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await Ah({url:o})).data.data||[]}catch(o){return Promise.reject(o)}}const gFt=["categoryId","matchLapse","section","matchResult","playingAs","total"];let TT=null;function bH(){return TT||(TT=by(gFt)),TT}async function yFt(e){try{const o=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await Ah({url:o})).data}catch(o){return Promise.reject(o)}}async function xH({seasonId:e,teamId:o}){try{return await Ah({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${o}`})}catch(s){return Promise.reject(s)}}async function vFt(e){try{const o=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await Ah({url:o})}catch(o){return Promise.reject(o)}}async function bFt(e){try{return await Ah({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(o){return Promise.reject(o)}}const xFt={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,o,s,z){return hFt(e.seasonPlays,z["filterGeneral/getPlayingAs"],z["filterGeneral/getResults"],z["filterGeneral/getSelectedGamesIds"],bH(),z["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const o=e.currentSeasonGames.reduce((s,z)=>{const W={...z};return W.home_team=e.currentSeasonTeams.find(v=>v.team_id===z.home_team),W.visiting_team=e.currentSeasonTeams.find(v=>v.team_id===z.visiting_team),s[z.matchday_abbreviation]?s[z.matchday_abbreviation][z.game_status===3?"canceled":z.date]?s[z.matchday_abbreviation][z.game_status===3?"canceled":z.date].push(W):s[z.matchday_abbreviation][z.game_status===3?"canceled":z.date]=[W]:s[z.matchday_abbreviation]={[z.game_status===3?"canceled":z.date]:[W]},s},{});for(let[s,z]of Object.entries(o))o[s]=Object.entries(z).map(([W,v])=>({date:W,games:v})),o[s].sort((W,v)=>W.date<v.date?-1:W.date>v.date?1:0);return o},matchdaysDates(e,o){let s=[];if(o.nextGamesSchedule){let z=Object.keys(o.nextGamesSchedule);for(let W of z){let v=Number(W.replace("M","")),g=o.nextGamesSchedule[W].map(r=>({matchday:v,date:new Date(r.date)}));s=s.concat(g)}}return s},closestMatchDay(e,o){let s=new Date,z=0,W=-new Date(0,0,0).valueOf(),v=o.matchdaysDates,g=v.length;for(let r=0;r<v.length;r++)z=Math.abs(v[r].date-s),z<W&&(g=r,W=z);return v[g]?v[g].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,o){e.booleanIsLiveGamesModalOpen=o},setBooleanAreLiveGames(e,o){e.booleanAreLiveGames=o},updateSeasonPlays(e,o){e.seasonPlays=o},updateCurrentSeasonTeams(e,o){e.currentSeasonTeams=o},updateCurrentSeasonGames(e,o){e.currentSeasonGames=o},updateSelectedRound(e,o){e.selectedRound=o}},actions:{async getSeasonPlays({commit:e,rootGetters:o},s=!1){try{const z=await gH({seasonId:o["filterGeneral/getSeasonId"]});if(s)return z;e("updateSeasonPlays",z)}catch(z){return Promise.reject(z)}},async getCurrentSeasonGames({commit:e,rootGetters:o}){try{const s=await vH({seasonId:o["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",s)}catch(s){return Promise.reject(s)}},async getCurrentSeasonTeams({commit:e,rootGetters:o}){try{const s=await yFt({seasonId:o["loginGeneral/seasonId"]});e("updateCurrentSeasonTeams",s.teams)}catch(s){return Promise.reject(s)}},async isDataFilled({state:e,dispatch:o,commit:s}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return s("setIsSectionLoading",!1,{root:!0}),!0;const z=[void 0,void 0];return e.currentSeasonGames.length===0&&(z[0]=o("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(z[1]=o("getCurrentSeasonTeams")),await Promise.all(z),!1}catch(z){throw new Error(z)}}}}};async function _Ft({filter:e}){try{const o=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:s}=await Ah({url:o});return s}catch(o){return Promise.reject(o)}}const wFt=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let CT=null;function kFt(){return CT||(CT=by(wFt)),CT}class F4{constructor(){yu(this,"maximumLiveSection",1);yu(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:[]});yu(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(o){o>this.maximumLiveSection&&(this.maximumLiveSection=o)}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(o,s,z){z&&(this.setMaximumLiveSection(o),this.accomplished.totalLive+=s,this.accomplished.totalsLiveTrendLive.sections[o-1]+=s,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,o,s)),this.accomplished.totalPostGame+=s,this.accomplished.avgPostGameTrendLive.sections[o-1]+=s,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,o,s)}increaseReceivedByOne(o,s,z){z&&(this.setMaximumLiveSection(o),this.received.totalLive+=s,this.received.totalsLiveTrendLive.sections[o-1]+=s,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,o,s)),this.received.totalPostGame+=s,this.received.avgPostGameTrendLive.sections[o-1]+=s,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,o,s)}increaseTrendLiveAccumulatedByOne(o,s,z){for(let W=s-1;W<o.accumulated.length;W++)o.accumulated[W]+=z}decreaseAccomplishedLiveByOne(o,s){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=s),this.accomplished.totalsLiveTrendLive.sections[o-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[o-1]-=s,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,o,s))}decreaseReceivedLiveByOne(o,s){this.received.totalLive>0&&(this.received.totalLive-=s),this.received.totalsLiveTrendLive.sections[o-1]>0&&(this.received.totalsLiveTrendLive.sections[o-1]-=s,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,o,s))}decreaseTotalsLiveTrendLiveAccumulatedByOne(o,s,z){for(let W=o.accumulated.length-1;W>=s-1;W--)o.accumulated[W]-=z}calculateAvg(o){o&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/o,this.received.avgPostGame=this.received.totalPostGame/o,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,o),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,o),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,o),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,o))}getAvgPostGameTrendLiveAvg(o,s){return o.map(z=>z/s)}calculateRanking(o,s,z,W,v,g,r,b){let d=[];W===3&&o&&o.length&&(z.playingAs.length!==2||z.matchResult.length!==3)?d=Array.from(o.reduce((_,y)=>{const x=y[s.playingAs]===1,u=x?"1":"2",n=_.get(y[s.gameId]);if(n)n[u]?n[u].arrayPlays.push(y):n[u]={numberTeamId:y[s.teamId],arrayPlays:[y]};else{const i={numberMatchResult:y[s.matchResult]};x&&(i[1]={numberTeamId:y[s.teamId],arrayPlays:[y]}),_.set(y[s.gameId],i)}return _},new Map).values()).reduce((_,y)=>{const x=z.playingAs.length===2?"both":z.playingAs[0].toString();return(x==="both"&&(y[1].numberTeamId===z.teamId||y[2].numberTeamId===z.teamId)||x!=="both"&&y[x].numberTeamId===z.teamId)&&z.matchResult.includes(y.numberMatchResult)&&_.push(...y[1].arrayPlays,...y[2].arrayPlays),_},[]).filter(_=>z.sections.includes(_[s.section])):(d=o?[...o]:[],r&&o&&(d=o.filter(a=>z.playingAs.includes(a[s.playingAs])&&z.matchResult.includes(a[s.matchResult])&&z.sections.includes(a[s.section])))),this.setTeamRanking(d,W,s,z.teamId,g,"accomplished",b)}setTeamRanking(o,s,z,W,v,g,r){let b=null,d=null;s===3&&(b=new Map,d={},o.forEach(y=>{const x=b.get(y[z.gameId]);x?x[y[z.teamId.toString()]]?x[y[z.teamId.toString()]]+=y[z.total]:x[y[z.teamId.toString()]]=y[z.total]:b.set(y[z.gameId],{[y[z.teamId.toString()]]:y[z.total]})}),Array.from(b.values()).forEach(y=>{const[x,u]=Object.keys(y).map(i=>i),n=y[x]+y[u];this.addPassesAvgByTeam(d,x,n?y[x]/n:0),this.addPassesAvgByTeam(d,u,n?y[u]/n:0)}));const a=v.sort((y,x)=>y.team_id-x.team_id).map(y=>{if(s===3){const x=d[y.team_id.toString()];return{teamId:y.team_id,points:x?x.numberTotalPassesAvg/x.numberGamesCount:0,total:x?x.numberTotalPassesAvg:0}}else{const x=o.reduce((u,n)=>n[z.teamId]===y.team_id&&s===n[z.categoryId]?u+n[z.total]:u,0);return{teamId:y.team_id,points:y[`${r}FilterGames`]?x/y[`${r}FilterGames`]:0,total:x}}}).sort((y,x)=>x.points-y.points);this.accomplished.arrayRankings=a;const _=a.findIndex(y=>y.teamId===W);s===3&&(this.accomplished.avgPreGame=a[_].points),this[g].ranking=_+1,this[g].leader=a[0]}addPassesAvgByTeam(o,s,z){o[s]?(o[s].numberGamesCount+=1,o[s].numberTotalPassesAvg+=z):o[s]={numberGamesCount:1,numberTotalPassesAvg:z}}}class nc{constructor(o,s,z,W,v,g,r,b,d,a,_=!0){yu(this,"id","");yu(this,"generalId",0);yu(this,"name","");yu(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});yu(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});yu(this,"accomplishedCategoryIds",[]);yu(this,"receivedCategoryIds",[]);yu(this,"generalCategoriesIds",{accomplished:0,received:0});yu(this,"specialMention","");yu(this,"homeTeam",new F4);yu(this,"visitingTeam",new F4);yu(this,"isLeagueDataCalculated",!1);yu(this,"leagueAccomplishedMax",0);yu(this,"leagueReceivedMax",0);yu(this,"leagueAccomplishedAvg",0);yu(this,"leagueReceivedAvg",0);yu(this,"leagueAccomplishedAccumulator",0);yu(this,"leagueReceivedAccumulator",0);yu(this,"homeTeamType","homeTeam");yu(this,"visitingTeamType","visitingTeam");yu(this,"betOnly",!1);yu(this,"isPercent",!1);this.id=`${z.accomplished}-${z.received}`,this.accomplishedCategoryIds=o||[],this.receivedCategoryIds=s||[],this.generalCategoriesIds=z||{accomplished:0,received:0},this.name=W,this.names["0-0"]=W||"",this.names["1-1"]=v||"",this.names["0-1"]=g||"",this.names["1-0"]=r||"",this.generalId=b||0,this.betOnly=d||!1,this.isPercent=a||!1,this.isVisible=_}addLeaguePlays(o,s,z){o.length===0||!z||this.isLeagueDataCalculated||(o.forEach(W=>{this.isAccomplishedLeaguePlay(W[s.categoryId])&&(this.leagueAccomplishedAccumulator+=W[s.total]),this.isReceivedLeaguePlay(W[s.categoryId])&&(this.leagueReceivedAccumulator+=W[s.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*z)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*z)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(o,s,z){let W="-";for(const[v,g]of Object.entries(this.generalCategoriesIds))o===g&&(W=`${v==="accomplished"?"0":"1"}${W}`),s===g&&(W=`${W}${v==="accomplished"?"0":"1"}`);W.length===3&&(this.mentions[W]=z)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(o,s,z,W,v){!z||!v||o!==this.homeTeamType&&o!==this.visitingTeamType||(z.forEach(g=>{this.isAccomplishedPlay(g[W.categoryId])?this[o].increaseAccomplishedByOne(g[W.section],g[W.total]):this.isReceivedPlay(g[W.categoryId])&&this[o].increaseReceivedByOne(g[W.section],g[W.total])}),this[o].calculateAvg(v))}addLivePlay(o,s,z,W,v=!1,g=!1){(o===this.homeTeamType||o===this.visitingTeamType)&&z[W.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[o].increaseAccomplishedByOne(z[W.section],z[W.total],!0)}subtractLivePlay(o,s,z,W,v){(o===this.homeTeamType||o===this.visitingTeamType)&&(this.isAccomplishedPlay(z[W.categoryId])&&!v?this[o].decreaseAccomplishedLiveByOne(z[W.section],z[W.total]):this.isReceivedPlay(z[W.categoryId])&&v&&this[o].decreaseReceivedLiveByOne(z[W.section],z[W.total]))}isAccomplishedLeaguePlay(o){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(z=>o===z||`${o}_r`===z)}isReceivedLeaguePlay(o){return!!this.receivedCategoryIds.find(s=>o===s)}isAccomplishedPlay(o){return this.generalCategoriesIds.accomplished===o}isReceivedPlay(o){return this.generalCategoriesIds.received===o}calcRankingLeague(o,s,z,W,v,g=!1){this[this.homeTeamType].calculateRanking(o,s,z,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,v,g,this.homeTeamType),this[this.visitingTeamType].calculateRanking(o,s,W,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,v,g,this.visitingTeamType)}resetData(){this.homeTeam=new F4,this.visitingTeam=new F4,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(o){return this.generalCategoriesIds.accomplished===o||this.generalCategoriesIds.received===o}}const SFt={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new nc([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new nc([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new nc([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0,!1),yellowCards:new nc([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new nc([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new nc([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new nc([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new nc([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new nc([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new nc([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new nc([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new nc([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new nc([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new nc([208],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new nc([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new nc([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new nc([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new nc([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new nc([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new nc([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new nc([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new nc([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new nc([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new nc([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new nc([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new nc([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new nc([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 nc([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new nc([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new nc([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new nc([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new nc([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new nc([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new nc([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new nc([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new nc([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new nc([465,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new nc([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},TFt=[{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}],CFt=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let ET=null;function EFt(){return ET||(ET=by(CFt)),ET}const AFt=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let AT=null;function MFt(){return AT||(AT=by(AFt)),AT}function R4(e,o,s){return[s.get(e[o.categoryId])||[],e[o.teamId],e[o.matchResult],e[o.playingAs],e[o.matchLapse],e[o.section],e[o.total]]}function _H(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 MT(e,o,s){let z=[...o];return e[s.categoryId]===2&&(z[0]=14),e[s.categoryId]===20&&(z[0]=15),[14,15].includes(z[0])?z:null}const PFt=qw(),IFt=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],LFt={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:bH(),indexesTSP:kFt(),indexesLS:EFt(),indexesTLP:MFt(),nextGamesDataStructure:SFt,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(o=>o.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 TFt.filter(o=>o.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return yH(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return yH(e.visitingTeamPlays,e.visitingTeamFilter.playingAs,e.visitingTeamFilter.matchResult,e.visitingTeamFilter.sections,e.indexesTSP)},currentSeasonTeamsIds(e){return e.currentSeasonTeams.map(o=>o.team_id)},canFilledStructure(e){return e.homeTeamFilter.requiresPlaysFiltering||e.visitingTeamFilter.requiresPlaysFiltering},totalFilteredHomeGames(e){return e.homeGames.filter(o=>e.homeTeamFilter.playingAs.includes(o[0])).filter(o=>e.homeTeamFilter.matchResult.includes(o[1])).reduce((o,s)=>o+s[2],0)},totalFilteredVisitingGames(e){return e.visitingGames.filter(o=>e.visitingTeamFilter.playingAs.includes(o[0])).filter(o=>e.visitingTeamFilter.matchResult.includes(o[1])).reduce((o,s)=>o+s[2],0)},filledDataStructure(e,o){if(e.currentSeasonPlays)for(const s of Object.values(e.nextGamesDataStructure))for(const z of Object.values(s.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&z.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&z.visitingTeam.resetTotals(),z.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),z.addTeamPlays(z.homeTeamType,e.gameForAnalysis.home_team,o.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:o.totalFilteredHomeGames),z.addTeamPlays(z.visitingTeamType,e.gameForAnalysis.visiting_team,o.visitingTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:o.totalFilteredVisitingGames);return e.nextGamesDataStructure},arrayFilledDataSortedByPriority(e,o){return Object.values(o.filledDataStructure).sort((s,z)=>s.priority-z.priority)},statisticData(e,o){for(const s of Object.values(o.filledDataStructure))if(s.parentInfo.parentAnalysis.includes(e.selectedAnalysis.id)&&s.parentInfo.analysisTypeBlocks.includes(e.selectedStatisticTypeBlock))return s.subcategories;return{}},accomplished(e){return e.homeTeamFilter.statistics===0}},mutations:{updateGameForAnalysisByProps(e,o){for(const[s,z]of Object.entries(o))e.gameForAnalysis[s]=z},setCurrentTournamentName(e,o){e.currentTournamentName=o},setBetSubcategoriesObjects(e,o){e.betSubcategoriesObjects=o},setRegularSeasonName(e,o){e.regularSeasonName=o},setBetSubcategories(e,o){e.betSubcategories=o},setBetDescription(e,o){e.betDescription=o},setSeasonId(e,o){e.seasonId=Number(o)},setHome(e,o){e.homeTeamInfo=o},setAway(e,o){e.awayTeamInfo=o},setMenuOptionActive(e,o){e.menuOptionActive=o},setPastSeasonId(e,o){e.pastSeasonId=o},setUsePastSeasonId(e,o){e.usePastSeasonId=o,o&&(e.oldSeasonId=e.pastSeasonId)},updateShowPostMatchData(e,o){e.showPostMatch=o},setHomeResultGame(e,o){e.homeResultGame=o},setAwayResultGame(e,o){e.awayResultGame=o},updateIsSocketConnected(e,o){e.isSocketConnected=o,o&&e.gameForAnalysis.is_live&&e.gameForAnalysis.game_status===4&&UE(`game.${e.gameForAnalysis.game_id}.v2`)},updateCurrentSeasonTeams(e,o){e.currentSeasonTeams=o,e.currentSeasonTeams.forEach(s=>{s.playedGames=e.currentSeasonGames.reduce((z,W)=>{if(W.game_status===1&&(W.home_team===s.team_id||W.visiting_team===s.team_id)){const v=W.score[0]-W.score[1],g=W.home_team===s.team_id;z.push({playingAs:g?1:2,matchResult:v===0?3:g?v>0?1:2:v<0?1:2})}return z},[])})},updateCurrentSeasonGames(e,o){e.currentSeasonGames=o},updateGameId(e,o){e.gameId=o},updateGameForAnalysis(e,o){e.gameForAnalysis=o,e.isLive=!!o.is_live,e.homeTeamFilter.teamId=e.gameForAnalysis.home_team,e.visitingTeamFilter.teamId=e.gameForAnalysis.visiting_team},updateSelectedAnalysis(e,o){e.selectedAnalysis=o},updateShowLiveData(e,o){e.showLiveData=o},toggleAdvanceFilter(e){e.showAdvanceFilter=!e.showAdvanceFilter},updateIdAssetSelected(e,o){e.idAssetSelected=o},updateStats(e,o){e.currentSeasonPlays=o},updateFilterAux(e){e.filterAux||(e.filterAux={homeTeamFilter:{...e.homeTeamFilter},visitingTeamFilter:{...e.visitingTeamFilter}})},updateFilters(e,{filters:o,needsFormat:s=!1}){if(s){if(!o||!o.local||!o.local.statistics||!o.visit||!o.visit.statistics)return;e.homeTeamFilter=WE(e.homeTeamFilter,o.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=WE(e.visitingTeamFilter,o.visit,e.gameForAnalysis.visiting_team),e.selectedStatisticTypeBlock!==o.local.statistics.block&&(e.selectedStatisticTypeBlock=o.local.statistics.block)}else e.homeTeamFilter={...o.homeTeamFilter,statistics:0},e.visitingTeamFilter={...o.visitingTeamFilter,statistics:0}},updateFinishedGames(e,o){e.totalSeasonFinishedGames=o},updateHomeTeamPlays(e,o){e.homeTeamPlays=o},updateVisitingTeamPlays(e,o){e.visitingTeamPlays=o},addSpecialMentions(e,o){const s=Object.values(e.nextGamesDataStructure);s.forEach(z=>{for(const W of Object.values(z.subcategories))W.resetMentions()}),s.forEach(z=>{for(const W of o)for(const v of Object.values(z.subcategories))v.addSpecialMention(W[0],W[1],W[2])})},setDefaultFilter(e,o){e.defaultFilter={homeTeamFilter:{...o.homeTeamFilter,teamId:e.gameForAnalysis.home_team},visitingTeamFilter:{...o.awayTeamFilter,teamId:e.gameForAnalysis.visiting_team}}},addLiveGamePlay(e,o){if(!e.livePlays.has(o[e.indexesTLP.playId])){e.livePlays.set(o[e.indexesTLP.playId],o);const z=R4(o,e.indexesTLP,e.categoriesMap);for(const W of Object.values(e.nextGamesDataStructure))for(const v of Object.values(W.subcategories))v.addLivePlay(e.gameForAnalysis.home_team===z[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",z[e.indexesTSP.teamId],z,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,o){const s=!!o[e.indexesTLP.length],z=e.livePlays.get(o[e.indexesTLP.playId]);if(dte(z,o))return;let W="";const v=e.gameForAnalysis.home_team===o[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";z&&(W=e.gameForAnalysis.home_team===z[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const g=R4(z,e.indexesTLP,e.categoriesMap),r=MT(z,g,e.indexesTLP),b=R4(o,e.indexesTLP,e.categoriesMap),d=MT(o,b,e.indexesTLP);for(const a of Object.values(e.nextGamesDataStructure))for(const _ of Object.values(a.subcategories))z&&(_.subtractLivePlay(W,g[e.indexesTSP.teamId],g,e.indexesTSP,s),r&&_.subtractLivePlay(W,r[e.indexesTSP.teamId],r,e.indexesTSP,s)),_.addLivePlay(v,b[e.indexesTSP.teamId],b,e.indexesTSP,e.isLive,s),d&&_.addLivePlay(v,d[e.indexesTSP.teamId],d,e.indexesTSP,e.isLive,s);e.livePlays.set(o[e.indexesTLP.playId],o)},deleteLiveGamePlay(e,o){const s=!!o[e.indexesTLP.length],z=e.livePlays.get(o[e.indexesTLP.playId]);let W="";if(z){W=e.gameForAnalysis.home_team===z[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(z[e.indexesTLP.playId]);const v=R4(z,e.indexesTLP,e.categoriesMap),g=MT(o,v,e.indexesTLP);for(const r of Object.values(e.nextGamesDataStructure))for(const b of Object.values(r.subcategories))b.subtractLivePlay(W,v[e.indexesTSP.teamId],v,e.indexesTSP,s),g&&b.subtractLivePlay(W,g[e.indexesTSP.teamId],g,e.indexesTSP,s)}},clearLiveTotals(e){for(const o of Object.values(e.nextGamesDataStructure))for(const s of Object.values(o.subcategories))s.homeTeam.resetTotalsLive(),s.visitingTeam.resetTotalsLive()},updateSeasonStatistics(e,o){e.statistics=o},updateOldSeasonId(e,o){e.oldSeasonId=o},addRankingInSubcategories(e,{getters:o,isPremiumAccount:s}){if(!(e.homeTeamFilter.teamId&&e.visitingTeamFilter.teamId))return;e.isRankingCalculating=!1,e.currentSeasonTeams.forEach(v=>{v.homeTeamFilterGames=v.playedGames.filter(g=>e.homeTeamFilter.playingAs.includes(g.playingAs)&&e.homeTeamFilter.matchResult.includes(g.matchResult)).length,v.visitingTeamFilterGames=v.playedGames.filter(g=>e.visitingTeamFilter.playingAs.includes(g.playingAs)&&e.visitingTeamFilter.matchResult.includes(g.matchResult)).length});const z=[],W=new Map;for(const v of Object.values(e.nextGamesDataStructure))for(const g of Object.values(v.subcategories))z.push(g);o.rankingData.forEach(v=>{for(const g of z)if(g.isInGeneralCategory(v[e.indexesLS.categoryId])){W.has(g.id)?W.get(g.id).push(v):W.set(g.id,[v]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,o){e.homeGames=_H(o)},setVisitingGames(e,o){e.visitingGames=_H(o)},generateCategoriesMap(e){for(const o of Object.values(e.nextGamesDataStructure))for(const s of Object.values(o.subcategories))s.accomplishedCategoryIds.forEach(z=>{const W=e.categoriesMap.get(z);W?W.push(s.generalCategoriesIds.accomplished):e.categoriesMap.set(z,[s.generalCategoriesIds.accomplished])})},resetNextGamesDataStructure(e){for(const o of Object.values(e.nextGamesDataStructure))for(const s of Object.values(o.subcategories))s.resetData()}},actions:{turnOnOffDefaultFilters({state:e,commit:o},{command:s}){s==="on"?o("updateFilters",{filters:e.defaultFilter,needsFormat:!1}):o("updateFilters",{filters:e.filterAux,needsFormat:!1})},async setAndGetStatsPostMatch({commit:e},o){try{const g=await bFt({gameId:o.gameId});if(g){var s=[],z=[],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}},v={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&&(s=g.data.data.filter(r=>r[1]==o.homeTeam),z=g.data.data.filter(r=>r[1]==o.awayTeam),W=g.data.games,v=g.data.games),e("updateHomeTeamPlays",s),e("updateVisitingTeamPlays",z),e("setHomeGames",W),e("setVisitingGames",v)}else e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[])}catch(g){return Promise.reject(g)}},async fillStatisticDataPostMatch({commit:e,dispatch:o},s){e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("setIsSectionLoading",!0,{root:!0});try{let z=[];e("updateGameForAnalysis",s.gameInfo),z.push(o("setAndGetStatsPostMatch",{gameId:s.game,homeTeam:s.homeTeam,awayTeam:s.awayTeam})),await Promise.all(z)}catch(z){throw new Error(z)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:o,commit:s},{gameId:z,isTeamsAnalysis:W,currentSeasonId:v,isLoginChanged:g=!1,defaultFilter:r=null,gameInfo:b=null,isCupGame:d=!1}){try{let a={},_=e.seasonId!==Number(v);const y=[];s("setIsSectionLoading",!0,{root:!0}),s("setUsePastSeasonId",!1),_&&s("setSeasonId",v),s("updateGameId",Number(z)),e.oldSeasonId!==e.seasonId&&s("resetNextGamesDataStructure");const x=await o("getCurrentSeasonGames",Number(z));if(s("leagueGeneral/updateCurrentSeasonGames",x,{root:!0}),a=x.find(u=>u.game_id===Number(z)),!a&&b&&(a=b),a&&s("updateGameForAnalysis",a),a.game_status!==1&&((g||e.categoriesMap.size===0)&&s("generateCategoriesMap"),d||await o("checkTeamsData",{gameId:z,isFromBet:!!r}),(g||e.oldSeasonId!==e.seasonId||e.statistics.length===0)&&y.push(o("getSeasonStatistics"))),e.usePastSeasonId){const u=await o("getCurrentSeasonGamesLast");s("leagueGeneral/updateCurrentSeasonGames",u,{root:!0})}(g||e.currentSeasonTeams.length===0||!e.currentSeasonTeams.find(u=>a.home_team===u.team_id))&&y.push(o("getCurrentSeasonTeams")),s("setHomeResultGame",a.score[0]),s("setAwayResultGame",a.score[1]),W?a.game_status!==1?(await o("fillStatisticData",{gameId:z,gameinfo:a,promises:y,defaultFilter:r}),s("updateShowPostMatchData",!1)):(s("updateStats",[]),s("updateShowPostMatchData",!0),y.push(o("fillStatisticDataPostMatch",{game:z,homeTeam:a.home_team,awayTeam:a.visiting_team,gameInfo:a})),await Promise.all(y)):s("setIsSectionLoading",!1,{root:!0})}catch(a){return Promise.reject(a)}},async fillStatisticData({commit:e,dispatch:o,getters:s,rootGetters:z,state:W},{gameId:v,gameinfo:g,promises:r=[],defaultFilter:b=null}){let d=null;try{e("setIsSectionLoading",!0,{root:!0}),e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("updateGameForAnalysis",g),(g.is_live||g.game_status===0)&&r.push(o("getCurrentLiveGamePlays",v)),r.push(o("getSpecialMentionsByGame",v)),r.push(o("getHomeTeamPlays")),r.push(o("getVisitingTeamPlays")),r.push(o("getCurrentSeasonPlays")),b&&r.push(_Ft(b)),d=await Promise.all(r)}catch(a){throw new Error(a)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:s,isPremiumAccount:z["loginGeneral/getPremiumAccount"]}),b){const[a]=d.pop();a&&(e("setBetSubcategories",a.categories),e("setBetDescription",a.sectionDescription),e("setDefaultFilter",a.params),e("updateFilterAux"),e("updateFilters",{filters:W.defaultFilter,needsFormat:!1}),o("updateRankingInSubcategories"))}},100),e("setIsSectionLoading",!1,{root:!0})}},async checkTeamsData({state:e,dispatch:o,rootState:s,commit:z},{gameId:W,isFromBet:v}){try{const g=Number(W);if(e.pastSeasonId){z("setPastSeasonId",e.pastSeasonId,{root:!0});const r=s.leagueGeneral.currentSeasonGames.find(b=>b.game_id===g);r&&z("updateGameForAnalysis",r),await Promise.all([o("getHomeTeamPlays"),o("getVisitingTeamPlays")]),z("setUsePastSeasonId",v||(!e.homeTeamPlays||e.homeTeamPlays.length===0)&&(!e.visitingTeamPlays||e.visitingTeamPlays.length===0))}else z("setUsePastSeasonId",!1)}catch(g){throw new Error(g)}},async getSpecialMentionsByGame({commit:e},o){try{const s=await mFt({gameId:o});e("addSpecialMentions",s)}catch(s){return Promise.reject(s)}},async getCurrentSeasonGames({commit:e,state:o},s){try{const{teams:z,games:W,past_season_id:v,tournament_id:g}=await pFt({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId,gameId:s}),r=IFt.find(b=>b.id===g);return r&&e("setCurrentTournamentName",r.name),e("setHome",z[0]),e("setAway",z[1]),o.usePastSeasonId||e("setPastSeasonId",v),await e("updateCurrentSeasonGames",W),W&&Array.isArray(W)&&e("updateFinishedGames",W.reduce((b,d)=>(d.game_status===1&&(b+=1),b),0)),W}catch(z){return Promise.reject(z)}},async getCurrentSeasonGamesLast({commit:e,state:o}){try{const{games:s,past_season_id:z}=await vH({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId});return o.usePastSeasonId||e("setPastSeasonId",z),await e("updateCurrentSeasonGames",s),s&&Array.isArray(s)&&e("updateFinishedGames",s.reduce((W,v)=>(v.game_status===1&&(W+=1),W),0)),s}catch(s){return Promise.reject(s)}},async getCurrentSeasonTeams({commit:e,state:o}){try{const s=await vFt({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId});e("updateCurrentSeasonTeams",s.data.teams)}catch{}},async getSeasonStatistics({commit:e,state:o}){try{const s=o.usePastSeasonId?o.pastSeasonId:o.seasonId,z=await dFt({seasonId:s});e("updateSeasonStatistics",z),e("updateOldSeasonId",s)}catch(s){return Promise.reject(s)}},updateRankingInSubcategories({state:e,commit:o,getters:s,rootGetters:z}){e.currentSeasonGames.length>0&&o("addRankingInSubcategories",{getters:s,isPremiumAccount:z["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:o}){try{const s=await xH({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId,teamId:o.gameForAnalysis.home_team});s.data&&(e("updateHomeTeamPlays",s.data.data),e("setHomeGames",s.data.games))}catch(s){return Promise.reject(s)}},async getVisitingTeamPlays({commit:e,state:o}){try{const s=await xH({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId,teamId:o.gameForAnalysis.visiting_team});s.data&&(e("updateVisitingTeamPlays",s.data.data),e("setVisitingGames",s.data.games))}catch(s){return Promise.reject(s)}},async getCurrentSeasonPlays({commit:e,state:o}){try{const s=await uFt({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId});e("updateStats",s)}catch(s){return Promise.reject(new Error(s))}},async getCurrentLiveGamePlays({state:e,commit:o},s){try{const z=await fFt({gameId:s});e.livePlays=new Map,z.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])&&o("addLiveGamePlay",W)})}catch(z){throw new Error(z)}},socket_new({state:e,commit:o},s){const z=s[1];(e.gameForAnalysis.home_team===z[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===z[e.indexesTLP.teamId])&&o("addLiveGamePlay",z)},socket_update({state:e,commit:o},s){const z=s[1];e.gameForAnalysis.game_id===z[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===z[e.indexesTLP.teamId]||e.gameForAnalysis.visitingTeam===z[e.indexesTLP.teamId])&&o("updateLiveGamePlay",z)},socket_delete({state:e,commit:o},s){const z=s[1];e.gameForAnalysis.game_id===z[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===z[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===z[e.indexesTLP.teamId])&&o("deleteLiveGamePlay",z)},exitChannel({state:e,getters:o,rootState:s,rootGetters:z,commit:W}){const v=z["loginGeneral/getPremiumAccount"];o.isLive&&v&&(W("updateShowLiveData",!0),W("clearLiveTotals"),e.livePlays.clear(),PFt.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const s of Object.values(e.nextGamesDataStructure))for(const z of Object.values(s.subcategories))z.homeTeam.resetTotals(),z.visitingTeam.resetTotals(),z.homeTeam.resetTotalsLive(),z.visitingTeam.resetTotalsLive(),z.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(s=>{for(const z of Object.values(s.subcategories))z.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const s of Object.values(e.nextGamesDataStructure))for(const z of Object.values(s.subcategories))z.homeTeam.resetTotals(),z.visitingTeam.resetTotals(),z.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(s=>{for(const z of Object.values(s.subcategories))z.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 BFt(){try{const{data:e}=await Ah({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return e}catch(e){throw new Error(e)}}const OFt={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,o){e.booleanIsStatisticModalOpen=o},setTournamentType(e,o){e.tournamentType=o},setSectionRef(e,o){e.sectionRef=o},setSectionAnalytics(e,o){e.sectionAnalytics=o},setSeccionBetsGolTipster(e,o){e.seccionBetsGolTipster=o},setPreviewSectionAnalytics(e,o){e.previewSectionAnalytics=o},setVideoSrc(e,o){e.videoSrc=o},setVideoModalVisibility(e,o){e.isVideoModalVisible=o},setSelectedTournament(e,o){e.selectedTournament=o},setTournaments(e,o){e.tournaments=o.map(s=>({...s.tournament,seasons:s.seasons})),e.tournamentSelected=e.tournaments[0]},setTournamentSelected(e,o){e.tournamentSelected=o}},actions:{async fetchTournaments({state:e,commit:o}){try{if(e.tournaments.length===0){const s=await BFt();o("setTournaments",s)}}catch(s){throw new Error(s)}}}}};async function zFt({seasonId:e,localTeamId:o,visitingTeamId:s}){try{const z=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${o}/${s}`;return(await Ah({url:z})).data}catch(z){return Promise.reject(z)}}async function NFt({seasonId:e,localTeamId:o,visitingTeamId:s}){try{const z=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${o}/${s}`;return(await Ah({url:z})).data}catch(z){return Promise.reject(z)}}const wH=(e,o)=>{let s={};return e.forEach((z,W)=>{W==3&&(o[0]==35||o[0]==54)&&(o[W]==2?o[W]=1:o[W]=2),W==2&&(o[0]==35||o[0]==54)&&(o[W]==1?o[W]=2:o[W]==2&&(o[W]=1)),s[z]=o[W]}),s},kH=(e,o)=>e.filter(z=>{const W=o.playingAs.includes(z.playing_as),v=o.matchResult.includes(z.match_result),g=o.sections.includes(z.section);return W&&v&&g});(function(){function e(o,s,z){return typeof z>"u"||+z==0?Math[o](s):(s=+s,z=+z,isNaN(s)||!(typeof z=="number"&&z%1===0)?NaN:(s=s.toString().split("e"),s=Math[o](+(s[0]+"e"+(s[1]?+s[1]-z:-z))),s=s.toString().split("e"),+(s[0]+"e"+(s[1]?+s[1]+z:z))))}Math.ceil10||(Math.ceil10=function(o,s){return e("ceil",o,s)})})();function SH(e,o){let s=o*-1;return Math.ceil10(e,s)}const DFt={...OFt,...xFt,...LFt,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{playsLocal:(e,o,s)=>{const z=e.xGLocalPlays,W="homeTeamFilter",v=s.nextGeneral[W];return kH(z,v)||[]},playsAway:(e,o,s)=>{const z=e.xGVisitingPlays,W="visitingTeamFilter",v=s.nextGeneral[W];return kH(z,v)},goalsQtyLocal:(e,o)=>{const s=N0.find(z=>z.name==="Goles");return o.playsLocal.filter(z=>s.categories.includes(z.category_id)).length},goalsQtyAway:(e,o)=>{const s=N0.find(z=>z.name==="Goles");return o.playsAway.filter(z=>s.categories.includes(z.category_id)).length},shotsOnGoalQtyLocal:(e,o)=>o.playsLocal.filter(s=>s.category_id===510).length,shotsOnGoalQtyAway:(e,o)=>o.playsAway.filter(s=>s.category_id===510).length,headQtyLocal:(e,o)=>{const s=N0.find(z=>z.name==="Remates con cabeza");return o.playsLocal.filter(z=>s.categories.includes(z.category_id)).length},headQtyAway:(e,o)=>{const s=N0.find(z=>z.name==="Remates con cabeza");return o.playsAway.filter(z=>s.categories.includes(z.category_id)).length},penaltiesQtyLocal:(e,o)=>{const s=N0.find(z=>z.name==="Penales");return o.playsLocal.filter(z=>s.categories.includes(z.category_id)).length},penaltiesQtyAway:(e,o)=>{const s=N0.find(z=>z.name==="Penales");return o.playsAway.filter(z=>s.categories.includes(z.category_id)).length},xGLocal:(e,o)=>{const s=new Set;let z=o.playsLocal.reduce((W,v)=>(s.has(v.moment_of_play)||(s.add(v.moment_of_play),W+=v.xG2),W),0);return SH(z,2)},xGAway:(e,o)=>{const s=new Set;let z=o.playsAway.reduce((W,v)=>(s.has(v.moment_of_play)||(s.add(v.moment_of_play),W+=v.xG2),W),0);return SH(z,2)}},mutations:{setTeamSelected(e,o){e.teamSelected=o},setPlays(e,o){const s=o.local_team.map(u=>wH(o.data_headers,u)),z=[],W=[],v=[],g=[],r=new Set;s.forEach(u=>{XA.has(u.category_id)?r.has(u.moment_of_play)||(r.add(u.moment_of_play),z.push(u)):qA.has(u.category_id)?W.push(u):YA.has(u.category_id)?v.push(u):JA.has(u.category_id)&&g.push(u)}),e.xGLocalPlays=[...W,...z,...v,...g];const b=o.visiting_team.map(u=>wH(o.data_headers,u)),d=new Set,a=[],_=[],y=[],x=[];b.forEach(u=>{XA.has(u.category_id)?d.has(u.moment_of_play)||(d.add(u.moment_of_play),a.push(u)):qA.has(u.category_id)?_.push(u):YA.has(u.category_id)?y.push(u):JA.has(u.category_id)&&x.push(u)}),e.xGVisitingPlays=[..._,...a,...y,...x]},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:e},{seasonId:o,localTeamId:s,visitingTeamId:z,postMatch:W=!1}){try{let v={};W?v=await NFt({seasonId:o,localTeamId:s,visitingTeamId:z}):v=await zFt({seasonId:o,localTeamId:s,visitingTeamId:z}),e("setPlays",v)}catch(v){return Promise.reject(v)}}}}}};function FFt(e){for(const[o,s]of Object.entries(DFt))e.hasModule(o)||e.registerModule(o,s)}const RFt={class:"subcategory-group"},VFt={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(t.openBlock(),t.createElementBlock("div",RFt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,z=>(t.openBlock(),t.createBlock(t.unref(jl),{key:z.id,modelValue:z.isSelected,"onUpdate:modelValue":W=>z.isSelected=W,label:z.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},jFt=ac(VFt,[["__scopeId","data-v-ae6f3d72"]]),UFt={class:"filter-subcategories"},GFt=Object.freeze(Object.defineProperty({__proto__:null,default:ac({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(t.openBlock(),t.createElementBlock("div",UFt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,z=>(t.openBlock(),t.createElementBlock("div",{key:z.id,class:"filter-subcategories__group"},[t.createVNode(jFt,{subcategoryGroup:z},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),V4=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),HFt={class:"details__header"},ZFt=V4(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),WFt={class:"details__header__checkbox"},XFt={class:"details__body"},qFt={class:"details__body__playing-as"},YFt=["onClick"],JFt={class:"details__header"},$Ft=V4(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),KFt={class:"details__header__checkbox"},QFt={class:"details__body"},eRt=V4(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),tRt={class:"details__body__game-section"},aRt=["onClick"],rRt={class:"details__body"},nRt=V4(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),iRt={class:"details__body__game-section"},oRt=["onClick"],sRt=Object.freeze(Object.defineProperty({__proto__:null,default:ac({__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 o=e;t.useCssVars(a=>({"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 s=t.computed(()=>o.playingAs.every(a=>a.isSelected)),z=t.computed(()=>o.gameSections.every(a=>a.isSelected)),W=t.computed(()=>o.gameSections.reduce((a,_)=>(_.value<=3?a.firstHalf.push(_):a.secondHalf.push(_),a),{firstHalf:[],secondHalf:[]})),v=t.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function g(a){a?o.playingAs.forEach(_=>{_.isSelected=!0}):o.playingAs.forEach((_,y)=>{_.isSelected=y===0})}function r(a){o.playingAs.filter(_=>_.isSelected).length===1&&a.isSelected||(a.isSelected=!a.isSelected)}function b(a){o.gameSections.filter(_=>_.isSelected).length===1&&a.isSelected||(a.isSelected=!a.isSelected)}function d(a){a?o.gameSections.forEach(_=>{_.isSelected=!0}):o.gameSections.forEach((_,y)=>{_.isSelected=y===0})}return(a,_)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(v.value)},[t.createElementVNode("div",HFt,[ZFt,t.createElementVNode("div",WFt,[t.createVNode(t.unref(jl),{label:"Todos","model-value":s.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",XFt,[t.createElementVNode("div",qFt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.playingAs,(y,x)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${x}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>r(y)},t.toDisplayString(y.name),11,YFt))),128))])]),t.createElementVNode("div",JFt,[$Ft,t.createElementVNode("div",KFt,[t.createVNode(t.unref(jl),{label:"Todos","model-value":z.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),t.createElementVNode("div",QFt,[eRt,t.createElementVNode("div",tRt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value.firstHalf,(y,x)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${x}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>b(y)},t.toDisplayString(y.text),11,aRt))),128))])]),t.createElementVNode("div",rRt,[nRt,t.createElementVNode("div",iRt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value.secondHalf,(y,x)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${x}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>b(y)},t.toDisplayString(y.text),11,oRt))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),lRt={class:"filter-field"},cRt=Object.freeze(Object.defineProperty({__proto__:null,default:ac({__name:"FilterField",setup(e){const o=t.ref(Array.from({length:16},(z,W)=>W+1));function s(){}return(z,W)=>(t.openBlock(),t.createElementBlock("div",lRt,[t.createVNode(t.unref(eD),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":s},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),uRt={class:"subcategory-group"},dRt={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(t.openBlock(),t.createElementBlock("div",uRt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,z=>(t.openBlock(),t.createBlock(t.unref(Ul),{key:z.id,modelValue:z.isSelected,"onUpdate:modelValue":W=>z.isSelected=W,label:z.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},hRt=rc(dRt,[["__scopeId","data-v-ae6f3d72"]]),pRt={class:"filter-subcategories"},fRt=Object.freeze(Object.defineProperty({__proto__:null,default:rc({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(t.openBlock(),t.createElementBlock("div",pRt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,z=>(t.openBlock(),t.createElementBlock("div",{key:z.id,class:"filter-subcategories__group"},[t.createVNode(hRt,{subcategoryGroup:z},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),j4=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),mRt={class:"details__header"},gRt=j4(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),yRt={class:"details__header__checkbox"},vRt={class:"details__body"},bRt={class:"details__body__playing-as"},xRt=["onClick"],_Rt={class:"details__header"},wRt=j4(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),kRt={class:"details__header__checkbox"},SRt={class:"details__body"},TRt=j4(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),CRt={class:"details__body__game-section"},ERt=["onClick"],ARt={class:"details__body"},MRt=j4(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),PRt={class:"details__body__game-section"},IRt=["onClick"],LRt=Object.freeze(Object.defineProperty({__proto__:null,default:rc({__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 o=e;t.useCssVars(a=>({"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 s=t.computed(()=>o.playingAs.every(a=>a.isSelected)),z=t.computed(()=>o.gameSections.every(a=>a.isSelected)),W=t.computed(()=>o.gameSections.reduce((a,_)=>(_.value<=3?a.firstHalf.push(_):a.secondHalf.push(_),a),{firstHalf:[],secondHalf:[]})),v=t.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function g(a){a?o.playingAs.forEach(_=>{_.isSelected=!0}):o.playingAs.forEach((_,y)=>{_.isSelected=y===0})}function r(a){o.playingAs.filter(_=>_.isSelected).length===1&&a.isSelected||(a.isSelected=!a.isSelected)}function b(a){o.gameSections.filter(_=>_.isSelected).length===1&&a.isSelected||(a.isSelected=!a.isSelected)}function d(a){a?o.gameSections.forEach(_=>{_.isSelected=!0}):o.gameSections.forEach((_,y)=>{_.isSelected=y===0})}return(a,_)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(v.value)},[t.createElementVNode("div",mRt,[gRt,t.createElementVNode("div",yRt,[t.createVNode(t.unref(Ul),{label:"Todos","model-value":s.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",vRt,[t.createElementVNode("div",bRt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.playingAs,(y,x)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${x}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>r(y)},t.toDisplayString(y.name),11,xRt))),128))])]),t.createElementVNode("div",_Rt,[wRt,t.createElementVNode("div",kRt,[t.createVNode(t.unref(Ul),{label:"Todos","model-value":z.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),t.createElementVNode("div",SRt,[TRt,t.createElementVNode("div",CRt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value.firstHalf,(y,x)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${x}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>b(y)},t.toDisplayString(y.text),11,ERt))),128))])]),t.createElementVNode("div",ARt,[MRt,t.createElementVNode("div",PRt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value.secondHalf,(y,x)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${x}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>b(y)},t.toDisplayString(y.text),11,IRt))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),BRt={class:"filter-field"},ORt=Object.freeze(Object.defineProperty({__proto__:null,default:rc({__name:"FilterField",setup(e){const o=t.ref(Array.from({length:16},(z,W)=>W+1));function s(){}return(z,W)=>(t.openBlock(),t.createElementBlock("div",BRt,[t.createVNode(t.unref(Ij),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":s},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));Od.GSCGameData=cFt,Od.connectSocket=Yw,Od.disconnectSocket=Jw,Od.getSocket=qw,Od.registerStoreModules=FFt,Object.defineProperty(Od,Symbol.toStringTag,{value:"Module"})});
|