@golstats/gsc-game-data 1.0.349 → 1.0.350
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-5a39ac12-1c6b2202.js → FilterConditions-5a39ac12-7de7e5be.js} +1 -1
- package/dist/{FilterConditions-cd420512-BgpF42_s-26050711.js → FilterConditions-cd420512-BgpF42_s-8dfeb120.js} +1 -1
- package/dist/{FilterField-2ed32f3b-d7f3db57.js → FilterField-2ed32f3b-ae491550.js} +1 -1
- package/dist/{FilterField-a29b1541-10XNy6VQ-8691f1d2.js → FilterField-a29b1541-10XNy6VQ-1e2a59ec.js} +1 -1
- package/dist/{FilterSubcategories-1f65c851-DigSKAC7-deeb8ffb.js → FilterSubcategories-1f65c851-DigSKAC7-07c5c9ec.js} +1 -1
- package/dist/{FilterSubcategories-b3171d1a-c18aed14.js → FilterSubcategories-b3171d1a-18b783af.js} +1 -1
- package/dist/gsc-game-data.js +1 -1
- package/dist/gsc-game-data.umd.cjs +3 -3
- package/dist/{index-360fe30a.js → index-e60b7f48.js} +36 -14
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Bd,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(Bd=typeof globalThis<"u"?globalThis:Bd||self,t(Bd.GSCGameData={},Bd.Vue))})(this,function(Bd,t){"use strict";var yNt=Object.defineProperty;var vNt=(Bd,t,Jg)=>t in Bd?yNt(Bd,t,{enumerable:!0,configurable:!0,writable:!0,value:Jg}):Bd[t]=Jg;var yu=(Bd,t,Jg)=>(vNt(Bd,typeof t!="symbol"?t+"":t,Jg),Jg);const Jg="",_Nt="",bNt="",xNt="",wNt="",kNt="",SNt="",CNt="",TNt="",gH=(e,o)=>{const s=e.__vccOpts||e;for(const[O,W]of o)s[O]=W;return s},M5={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))}}},bC=()=>{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}))},xC=M5.setup;M5.setup=xC?(e,o)=>(bC(),xC(e,o)):bC;const yH=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),vH=["src"],_H={key:1,class:"text"},bH=["src"],xH={class:"stats"},wH=yH(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),kH={class:"numstats"},SH={class:"leyend"};function CH(e,o,s,O,W,_){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([_.customStyle,W.status&&s.typeOnOff&&_.customActive]),onClick:o[0]||(o[0]=(...g)=>_.btnClick&&_.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,vH)):t.createCommentVNode("",!0),s.textValue?(t.openBlock(),t.createElementBlock("div",_H,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,bH)):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)=>_.btnClick&&_.btnClick(...g))},[t.createElementVNode("div",xH,[wH,t.createElementVNode("div",kH,t.toDisplayString(s.textStat),1)]),t.createElementVNode("div",SH,t.toDisplayString(s.textCategory),1)])):t.createCommentVNode("",!0)])}const TH=gH(M5,[["render",CH],["__scopeId","data-v-f3ee6b2b"]]),EH={class:"gsc-dropdown__main-container__item-selected"},AH=["height","width"],MH=["stroke"],IH={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},PH=["fill"],BH={class:"gsc-dropdown__items-container"},LH=["onClick"],zH={key:0,class:"gsc-dropdown__items-footer"},OH={__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,O=t.ref({}),W=t.ref(null),_=t.ref(s.isMultipleOption?-1:0),g=t.ref(!1);t.watch(()=>s.items,(b,u)=>{if(!s.modelValue&&(!s.onlyFirstTime||!u||!u.length)&&b&&b.length){if(s.defaultItemByProp){const r=s.items.findIndex(i=>i[s.defaultItemByProp.propName]===s.defaultItemByProp.value);r!==-1?(_.value=r,O.value=b[r]):(_.value=0,O.value=b[0])}else O.value=b[s.defaultItemByIndex];o("input",O.value)}},{immediate:!0}),t.watch(()=>s.modelValue,b=>{if(b){const u=s.items.findIndex(r=>typeof b=="object"?JSON.stringify(r)===JSON.stringify(b):r===b);u!==-1&&(_.value=u,O.value=s.items[u],o("update:modelValue",O.value))}},{immediate:!0});const a=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"})),v=t.computed(()=>({height:`${s.arrowHeight}px`,width:`${s.arrowWidth}px`}));function d(){s.isDisabled||(g.value=!g.value)}function n(b){W.value&&!W.value.contains(b.target)&&(g.value=!1)}function x(b,u){s.isMultipleOption?_.value=-1:(_.value=u,g.value=!1),O.value=b,o("input",O.value),o("update:modelValue",O.value)}function y(){g.value=!1,o("click-ready")}return t.onMounted(()=>{document.addEventListener("click",n)}),t.onBeforeMount(()=>{document.removeEventListener("click",n)}),(b,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:W,class:"gsc-dropdown",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:d},[t.createElementVNode("div",EH,[t.renderSlot(b.$slots,"default",{selectedItem:O.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":g.value}]),style:t.normalizeStyle(v.value)},[e.iconType===1?(t.openBlock(),t.createElementBlock("svg",{key:0,height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,MH)],8,AH)):(t.openBlock(),t.createElementBlock("svg",IH,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:e.arrowColor},null,8,PH)]))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",BH,[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,(r,i)=>(t.openBlock(),t.createElementBlock("div",null,[t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:i===_.value}]),key:i,onClick:h=>x(r,i)},[t.renderSlot(b.$slots,"availableItem",{item:r})],10,LH)),[[t.vShow,!r.isHidden]])]))),256))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",zH,[t.createVNode(t.unref(TH),{"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))}},FH=(e,o)=>{const s=e.__vccOpts||e;for(const[O,W]of o)s[O]=W;return s},NH={class:"tournament-select__selected-tournament"},DH={class:"tournament-select__selected-tournament__logo"},VH=["src"],RH={class:"tournament-select__selected-tournament__name"},jH="https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments",$H={__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}},emits:["input","change-tournaments"],setup(e,{emit:o}){const s=e,O=new Set(["tops","table","dataia"]),W=t.ref([]),_=t.computed(()=>{const r={};return s.fontFamily&&(r["font-family"]=`${s.fontFamily}`),r}),g=t.computed(()=>W.value.filter(r=>!r.isHidden)),a=t.computed(()=>g.value.find(r=>r.seasonsIds.has(s.currentSeasonId))||g.value[0]),v=t.computed(()=>s.areFemaleVisible?W.value:W.value.filter(r=>!r.is_female));t.watch(()=>s.isClubesActive,()=>{d()},{immediate:!0}),t.watch(()=>s.routeName,()=>{d()},{immediate:!0}),t.watch(()=>s.apiUrl,()=>{n()});function d(){W.value.forEach(r=>{r.isHidden=!s.isClubesActive&&r.isClub||s.isClubesActive&&!r.isClub||s.routeName&&r.tournament_type===4&&O.has(s.routeName)})}async function n(){try{if(s.items&&s.items.length)W.value=[...s.items];else{const r=await y();o("change-tournaments",r),W.value=r.sort((i,h)=>i.tournament.order-h.tournament.order).reduce((i,h)=>{if(s.tournamentsIdsToInclude&&s.tournamentsIdsToInclude.size&&!s.tournamentsIdsToInclude.has(h.id))return i;const l={...h.tournament,seasons:h.seasons,seasonsIds:h.seasons.reduce((p,m)=>(p.add(m.id),p),new Set),isClub:h.tournament.international_tournament===0,isFriendlies:h.tournament.tournament_type===3};return l.isHidden=!s.avoidTournamentFilter&&(!s.isClubesActive&&l.isClub||s.isClubesActive&&!l.isClub),i.push(l),i},[])}}catch(r){throw new Error(r)}}function x(r){const i=new XMLHttpRequest,h=`${s.logosUrl}${r}.${s.logoFileType}`;return i.open("HEAD",h,!1),i.send(),i.status!==404}async function y(){try{return(await fetch(s.apiUrl||jH)).json()}catch(r){return Promise.reject(r)}}function b(r){o("input",r)}function u(r){o("input",r)}return t.onMounted(()=>{n()}),(r,i)=>(t.openBlock(),t.createElementBlock("div",{class:"tournament-select",style:t.normalizeStyle(_.value)},[t.createVNode(t.unref(OH),t.mergeProps(s,{"list-height":s.listHeight,"model-value":a.value,items:v.value,onInput:b,"onUpdate:modelValue":u}),{default:t.withCtx(({selectedItem:h})=>[t.createElementVNode("div",NH,[t.createElementVNode("div",DH,[x(h.id)?(t.openBlock(),t.createElementBlock("img",{key:0,src:`${s.logosUrl}${h.id}.${s.logoFileType}`,alt:""},null,8,VH)):t.createCommentVNode("",!0)]),t.createElementVNode("div",RH,t.toDisplayString(h.name),1)])]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("div",null,t.toDisplayString(h.name),1)]),_:1},16,["list-height","model-value","items"])],4))}},wC=FH($H,[["__scopeId","data-v-eb785f35"]]),UH=(e,o)=>{const s=e.__vccOpts||e;for(const[O,W]of o)s[O]=W;return s},I5={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))}}},kC=()=>{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}))},SC=I5.setup;I5.setup=SC?(e,o)=>(kC(),SC(e,o)):kC;const HH=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),GH=["src"],WH={key:1,class:"text"},qH=["src"],YH={class:"stats"},ZH=HH(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),XH={class:"numstats"},JH={class:"leyend"};function KH(e,o,s,O,W,_){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([_.customStyle,W.status&&s.typeOnOff&&_.customActive]),onClick:o[0]||(o[0]=(...g)=>_.btnClick&&_.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,GH)):t.createCommentVNode("",!0),s.textValue?(t.openBlock(),t.createElementBlock("div",WH,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,qH)):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)=>_.btnClick&&_.btnClick(...g))},[t.createElementVNode("div",YH,[ZH,t.createElementVNode("div",XH,t.toDisplayString(s.textStat),1)]),t.createElementVNode("div",JH,t.toDisplayString(s.textCategory),1)])):t.createCommentVNode("",!0)])}const QH=UH(I5,[["render",KH],["__scopeId","data-v-f3ee6b2b"]]),eG={class:"gsc-dropdown__main-container__item-selected"},tG=["height","width"],nG=["stroke"],aG={class:"gsc-dropdown__items-container"},rG=["onClick"],iG={key:0,class:"gsc-dropdown__items-footer"},oG={__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,O=t.ref({}),W=t.ref(null),_=t.ref(s.isMultipleOption?-1:0),g=t.ref(!1);t.watch(()=>s.items,(b,u)=>{if(!s.modelValue&&(!s.onlyFirstTime||!u||!u.length)&&b&&b.length){if(s.defaultItemByProp){const r=s.items.findIndex(i=>i[s.defaultItemByProp.propName]===s.defaultItemByProp.value);r!==-1?(_.value=r,O.value=b[r]):(_.value=0,O.value=b[0])}else O.value=b[s.defaultItemByIndex];o("input",O.value)}},{immediate:!0}),t.watch(()=>s.modelValue,b=>{if(b){const u=s.items.findIndex(r=>typeof b=="object"?JSON.stringify(r)===JSON.stringify(b):r===b);u!==-1&&(_.value=u,O.value=s.items[u],o("update:modelValue",O.value))}},{immediate:!0});const a=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"})),v=t.computed(()=>({height:`${s.arrowHeight}px`,width:`${s.arrowWidth}px`}));function d(){s.isDisabled||(g.value=!g.value)}function n(b){W.value&&!W.value.contains(b.target)&&(g.value=!1)}function x(b,u){s.isMultipleOption?_.value=-1:(_.value=u,g.value=!1),O.value=b,o("input",O.value),o("update:modelValue",O.value)}function y(){g.value=!1,o("click-ready")}return t.onMounted(()=>{document.addEventListener("click",n)}),t.onBeforeMount(()=>{document.removeEventListener("click",n)}),(b,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:W,class:"gsc-dropdown",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:d},[t.createElementVNode("div",eG,[t.renderSlot(b.$slots,"default",{selectedItem:O.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":g.value}]),style:t.normalizeStyle(v.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,nG)],8,tG))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",aG,[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,(r,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:i===_.value}]),key:i,onClick:h=>x(r,i)},[t.renderSlot(b.$slots,"availableItem",{item:r})],10,rG))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",iG,[t.createVNode(t.unref(QH),{"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))}},sG=(e,o)=>{const s=e.__vccOpts||e;for(const[O,W]of o)s[O]=W;return s},lG={class:"season-name"},cG={class:"items-list-season"},uG={__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,O=t.computed(()=>s.seasons.find(g=>g.id===s.currentSeasonId));function W(g){o("input",g)}function _(g){o("input",g)}return(g,a)=>(t.openBlock(),t.createBlock(t.unref(oG),{items:e.seasons,"model-value":O.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:_,"onUpdate:modelValue":W},{default:t.withCtx(({selectedItem:v})=>[t.createElementVNode("div",lG,[t.createElementVNode("span",null,t.toDisplayString(v.name),1)])]),availableItem:t.withCtx(({item:v})=>[t.createElementVNode("span",cG,t.toDisplayString(v.name),1)]),_:1},8,["items","model-value","list-height"]))}},CC=sG(uG,[["__scopeId","data-v-748c2f60"]]);function TC(e,o){return function(){return e.apply(o,arguments)}}const{toString:dG}=Object.prototype,{getPrototypeOf:P5}=Object,{iterator:T_,toStringTag:EC}=Symbol,E_=(e=>o=>{const s=dG.call(o);return e[s]||(e[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),tf=e=>(e=e.toLowerCase(),o=>E_(o)===e),A_=e=>o=>typeof o===e,{isArray:Kg}=Array,fv=A_("undefined");function hG(e){return e!==null&&!fv(e)&&e.constructor!==null&&!fv(e.constructor)&&Zh(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const AC=tf("ArrayBuffer");function pG(e){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(e):o=e&&e.buffer&&AC(e.buffer),o}const fG=A_("string"),Zh=A_("function"),MC=A_("number"),M_=e=>e!==null&&typeof e=="object",mG=e=>e===!0||e===!1,I_=e=>{if(E_(e)!=="object")return!1;const o=P5(e);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(EC in e)&&!(T_ in e)},gG=tf("Date"),yG=tf("File"),vG=tf("Blob"),_G=tf("FileList"),bG=e=>M_(e)&&Zh(e.pipe),xG=e=>{let o;return e&&(typeof FormData=="function"&&e instanceof FormData||Zh(e.append)&&((o=E_(e))==="formdata"||o==="object"&&Zh(e.toString)&&e.toString()==="[object FormData]"))},wG=tf("URLSearchParams"),[kG,SG,CG,TG]=["ReadableStream","Request","Response","Headers"].map(tf),EG=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function mv(e,o,{allOwnKeys:s=!1}={}){if(e===null||typeof e>"u")return;let O,W;if(typeof e!="object"&&(e=[e]),Kg(e))for(O=0,W=e.length;O<W;O++)o.call(null,e[O],O,e);else{const _=s?Object.getOwnPropertyNames(e):Object.keys(e),g=_.length;let a;for(O=0;O<g;O++)a=_[O],o.call(null,e[a],a,e)}}function IC(e,o){o=o.toLowerCase();const s=Object.keys(e);let O=s.length,W;for(;O-- >0;)if(W=s[O],o===W.toLowerCase())return W;return null}const p1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),PC=e=>!fv(e)&&e!==p1;function B5(){const{caseless:e}=PC(this)&&this||{},o={},s=(O,W)=>{const _=e&&IC(o,W)||W;I_(o[_])&&I_(O)?o[_]=B5(o[_],O):I_(O)?o[_]=B5({},O):Kg(O)?o[_]=O.slice():o[_]=O};for(let O=0,W=arguments.length;O<W;O++)arguments[O]&&mv(arguments[O],s);return o}const AG=(e,o,s,{allOwnKeys:O}={})=>(mv(o,(W,_)=>{s&&Zh(W)?e[_]=TC(W,s):e[_]=W},{allOwnKeys:O}),e),MG=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),IG=(e,o,s,O)=>{e.prototype=Object.create(o.prototype,O),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:o.prototype}),s&&Object.assign(e.prototype,s)},PG=(e,o,s,O)=>{let W,_,g;const a={};if(o=o||{},e==null)return o;do{for(W=Object.getOwnPropertyNames(e),_=W.length;_-- >0;)g=W[_],(!O||O(g,e,o))&&!a[g]&&(o[g]=e[g],a[g]=!0);e=s!==!1&&P5(e)}while(e&&(!s||s(e,o))&&e!==Object.prototype);return o},BG=(e,o,s)=>{e=String(e),(s===void 0||s>e.length)&&(s=e.length),s-=o.length;const O=e.indexOf(o,s);return O!==-1&&O===s},LG=e=>{if(!e)return null;if(Kg(e))return e;let o=e.length;if(!MC(o))return null;const s=new Array(o);for(;o-- >0;)s[o]=e[o];return s},zG=(e=>o=>e&&o instanceof e)(typeof Uint8Array<"u"&&P5(Uint8Array)),OG=(e,o)=>{const s=(e&&e[T_]).call(e);let O;for(;(O=s.next())&&!O.done;){const W=O.value;o.call(e,W[0],W[1])}},FG=(e,o)=>{let s;const O=[];for(;(s=e.exec(o))!==null;)O.push(s);return O},NG=tf("HTMLFormElement"),DG=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,s,O){return s.toUpperCase()+O}),BC=(({hasOwnProperty:e})=>(o,s)=>e.call(o,s))(Object.prototype),VG=tf("RegExp"),LC=(e,o)=>{const s=Object.getOwnPropertyDescriptors(e),O={};mv(s,(W,_)=>{let g;(g=o(W,_,e))!==!1&&(O[_]=g||W)}),Object.defineProperties(e,O)},RG=e=>{LC(e,(o,s)=>{if(Zh(e)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const O=e[s];if(Zh(O)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},jG=(e,o)=>{const s={},O=W=>{W.forEach(_=>{s[_]=!0})};return Kg(e)?O(e):O(String(e).split(o)),s},$G=()=>{},UG=(e,o)=>e!=null&&Number.isFinite(e=+e)?e:o;function HG(e){return!!(e&&Zh(e.append)&&e[EC]==="FormData"&&e[T_])}const GG=e=>{const o=new Array(10),s=(O,W)=>{if(M_(O)){if(o.indexOf(O)>=0)return;if(!("toJSON"in O)){o[W]=O;const _=Kg(O)?[]:{};return mv(O,(g,a)=>{const v=s(g,W+1);!fv(v)&&(_[a]=v)}),o[W]=void 0,_}}return O};return s(e,0)},WG=tf("AsyncFunction"),qG=e=>e&&(M_(e)||Zh(e))&&Zh(e.then)&&Zh(e.catch),zC=((e,o)=>e?setImmediate:o?((s,O)=>(p1.addEventListener("message",({source:W,data:_})=>{W===p1&&_===s&&O.length&&O.shift()()},!1),W=>{O.push(W),p1.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",Zh(p1.postMessage)),YG=typeof queueMicrotask<"u"?queueMicrotask.bind(p1):typeof process<"u"&&process.nextTick||zC,ZG=e=>e!=null&&Zh(e[T_]),Pr={isArray:Kg,isArrayBuffer:AC,isBuffer:hG,isFormData:xG,isArrayBufferView:pG,isString:fG,isNumber:MC,isBoolean:mG,isObject:M_,isPlainObject:I_,isReadableStream:kG,isRequest:SG,isResponse:CG,isHeaders:TG,isUndefined:fv,isDate:gG,isFile:yG,isBlob:vG,isRegExp:VG,isFunction:Zh,isStream:bG,isURLSearchParams:wG,isTypedArray:zG,isFileList:_G,forEach:mv,merge:B5,extend:AG,trim:EG,stripBOM:MG,inherits:IG,toFlatObject:PG,kindOf:E_,kindOfTest:tf,endsWith:BG,toArray:LG,forEachEntry:OG,matchAll:FG,isHTMLForm:NG,hasOwnProperty:BC,hasOwnProp:BC,reduceDescriptors:LC,freezeMethods:RG,toObjectSet:jG,toCamelCase:DG,noop:$G,toFiniteNumber:UG,findKey:IC,global:p1,isContextDefined:PC,isSpecCompliantForm:HG,toJSONObject:GG,isAsyncFn:WG,isThenable:qG,setImmediate:zC,asap:YG,isIterable:ZG};function ll(e,o,s,O,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),O&&(this.request=O),W&&(this.response=W,this.status=W.status?W.status:null)}Pr.inherits(ll,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Pr.toJSONObject(this.config),code:this.code,status:this.status}}});const OC=ll.prototype,FC={};["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=>{FC[e]={value:e}}),Object.defineProperties(ll,FC),Object.defineProperty(OC,"isAxiosError",{value:!0}),ll.from=(e,o,s,O,W,_)=>{const g=Object.create(OC);return Pr.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),ll.call(g,e.message,o,s,O,W),g.cause=e,g.name=e.name,_&&Object.assign(g,_),g};const XG=null;function L5(e){return Pr.isPlainObject(e)||Pr.isArray(e)}function NC(e){return Pr.endsWith(e,"[]")?e.slice(0,-2):e}function DC(e,o,s){return e?e.concat(o).map(function(O,W){return O=NC(O),!s&&W?"["+O+"]":O}).join(s?".":""):o}function JG(e){return Pr.isArray(e)&&!e.some(L5)}const KG=Pr.toFlatObject(Pr,{},null,function(e){return/^is[A-Z]/.test(e)});function P_(e,o,s){if(!Pr.isObject(e))throw new TypeError("target must be an object");o=o||new FormData,s=Pr.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,u){return!Pr.isUndefined(u[b])});const O=s.metaTokens,W=s.visitor||d,_=s.dots,g=s.indexes,a=(s.Blob||typeof Blob<"u"&&Blob)&&Pr.isSpecCompliantForm(o);if(!Pr.isFunction(W))throw new TypeError("visitor must be a function");function v(b){if(b===null)return"";if(Pr.isDate(b))return b.toISOString();if(Pr.isBoolean(b))return b.toString();if(!a&&Pr.isBlob(b))throw new ll("Blob is not supported. Use a Buffer instead.");return Pr.isArrayBuffer(b)||Pr.isTypedArray(b)?a&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function d(b,u,r){let i=b;if(b&&!r&&typeof b=="object"){if(Pr.endsWith(u,"{}"))u=O?u:u.slice(0,-2),b=JSON.stringify(b);else if(Pr.isArray(b)&&JG(b)||(Pr.isFileList(b)||Pr.endsWith(u,"[]"))&&(i=Pr.toArray(b)))return u=NC(u),i.forEach(function(h,l){!(Pr.isUndefined(h)||h===null)&&o.append(g===!0?DC([u],l,_):g===null?u:u+"[]",v(h))}),!1}return L5(b)?!0:(o.append(DC(r,u,_),v(b)),!1)}const n=[],x=Object.assign(KG,{defaultVisitor:d,convertValue:v,isVisitable:L5});function y(b,u){if(!Pr.isUndefined(b)){if(n.indexOf(b)!==-1)throw Error("Circular reference detected in "+u.join("."));n.push(b),Pr.forEach(b,function(r,i){(!(Pr.isUndefined(r)||r===null)&&W.call(o,r,Pr.isString(i)?i.trim():i,u,x))===!0&&y(r,u?u.concat(i):[i])}),n.pop()}}if(!Pr.isObject(e))throw new TypeError("data must be an object");return y(e),o}function VC(e){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return o[s]})}function z5(e,o){this._pairs=[],e&&P_(e,this,o)}const RC=z5.prototype;RC.append=function(e,o){this._pairs.push([e,o])},RC.toString=function(e){const o=e?function(s){return e.call(this,s,VC)}:VC;return this._pairs.map(function(s){return o(s[0])+"="+o(s[1])},"").join("&")};function QG(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function jC(e,o,s){if(!o)return e;const O=s&&s.encode||QG;Pr.isFunction(s)&&(s={serialize:s});const W=s&&s.serialize;let _;if(W?_=W(o,s):_=Pr.isURLSearchParams(o)?o.toString():new z5(o,s).toString(O),_){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+_}return e}const $C=class{constructor(){this.handlers=[]}use(o,s,O){return this.handlers.push({fulfilled:o,rejected:s,synchronous:O?O.synchronous:!1,runWhen:O?O.runWhen:null}),this.handlers.length-1}eject(o){this.handlers[o]&&(this.handlers[o]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(o){Pr.forEach(this.handlers,function(s){s!==null&&o(s)})}},UC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eW=typeof URLSearchParams<"u"?URLSearchParams:z5,tW=typeof FormData<"u"?FormData:null,nW=typeof Blob<"u"?Blob:null,aW={isBrowser:!0,classes:{URLSearchParams:eW,FormData:tW,Blob:nW},protocols:["http","https","file","blob","url","data"]},O5=typeof window<"u"&&typeof document<"u",F5=typeof navigator=="object"&&navigator||void 0,rW=O5&&(!F5||["ReactNative","NativeScript","NS"].indexOf(F5.product)<0),iW=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),oW=O5&&window.location.href||"http://localhost",sW=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:O5,hasStandardBrowserEnv:rW,hasStandardBrowserWebWorkerEnv:iW,navigator:F5,origin:oW},Symbol.toStringTag,{value:"Module"})),oh={...sW,...aW};function lW(e,o){return P_(e,new oh.classes.URLSearchParams,Object.assign({visitor:function(s,O,W,_){return oh.isNode&&Pr.isBuffer(s)?(this.append(O,s.toString("base64")),!1):_.defaultVisitor.apply(this,arguments)}},o))}function cW(e){return Pr.matchAll(/\w+|\[(\w*)]/g,e).map(o=>o[0]==="[]"?"":o[1]||o[0])}function uW(e){const o={},s=Object.keys(e);let O;const W=s.length;let _;for(O=0;O<W;O++)_=s[O],o[_]=e[_];return o}function HC(e){function o(s,O,W,_){let g=s[_++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),v=_>=s.length;return g=!g&&Pr.isArray(W)?W.length:g,v?(Pr.hasOwnProp(W,g)?W[g]=[W[g],O]:W[g]=O,!a):((!W[g]||!Pr.isObject(W[g]))&&(W[g]=[]),o(s,O,W[g],_)&&Pr.isArray(W[g])&&(W[g]=uW(W[g])),!a)}if(Pr.isFormData(e)&&Pr.isFunction(e.entries)){const s={};return Pr.forEachEntry(e,(O,W)=>{o(cW(O),W,s,0)}),s}return null}function dW(e,o,s){if(Pr.isString(e))try{return(o||JSON.parse)(e),Pr.trim(e)}catch(O){if(O.name!=="SyntaxError")throw O}return(s||JSON.stringify)(e)}const N5={transitional:UC,adapter:["xhr","http","fetch"],transformRequest:[function(e,o){const s=o.getContentType()||"",O=s.indexOf("application/json")>-1,W=Pr.isObject(e);if(W&&Pr.isHTMLForm(e)&&(e=new FormData(e)),Pr.isFormData(e))return O?JSON.stringify(HC(e)):e;if(Pr.isArrayBuffer(e)||Pr.isBuffer(e)||Pr.isStream(e)||Pr.isFile(e)||Pr.isBlob(e)||Pr.isReadableStream(e))return e;if(Pr.isArrayBufferView(e))return e.buffer;if(Pr.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let _;if(W){if(s.indexOf("application/x-www-form-urlencoded")>-1)return lW(e,this.formSerializer).toString();if((_=Pr.isFileList(e))||s.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return P_(_?{"files[]":e}:e,g&&new g,this.formSerializer)}}return W||O?(o.setContentType("application/json",!1),dW(e)):e}],transformResponse:[function(e){const o=this.transitional||N5.transitional,s=o&&o.forcedJSONParsing,O=this.responseType==="json";if(Pr.isResponse(e)||Pr.isReadableStream(e))return e;if(e&&Pr.isString(e)&&(s&&!this.responseType||O)){const W=!(o&&o.silentJSONParsing)&&O;try{return JSON.parse(e)}catch(_){if(W)throw _.name==="SyntaxError"?ll.from(_,ll.ERR_BAD_RESPONSE,this,null,this.response):_}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:oh.classes.FormData,Blob:oh.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Pr.forEach(["delete","get","head","post","put","patch"],e=>{N5.headers[e]={}});const D5=N5,hW=Pr.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"]),pW=e=>{const o={};let s,O,W;return e&&e.split(`
|
|
1
|
+
(function(Bd,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(Bd=typeof globalThis<"u"?globalThis:Bd||self,t(Bd.GSCGameData={},Bd.Vue))})(this,function(Bd,t){"use strict";var yNt=Object.defineProperty;var vNt=(Bd,t,Jg)=>t in Bd?yNt(Bd,t,{enumerable:!0,configurable:!0,writable:!0,value:Jg}):Bd[t]=Jg;var yu=(Bd,t,Jg)=>(vNt(Bd,typeof t!="symbol"?t+"":t,Jg),Jg);const Jg="",_Nt="",bNt="",xNt="",wNt="",kNt="",SNt="",CNt="",TNt="",gH=(e,o)=>{const s=e.__vccOpts||e;for(const[O,W]of o)s[O]=W;return s},M5={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))}}},bC=()=>{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}))},xC=M5.setup;M5.setup=xC?(e,o)=>(bC(),xC(e,o)):bC;const yH=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),vH=["src"],_H={key:1,class:"text"},bH=["src"],xH={class:"stats"},wH=yH(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),kH={class:"numstats"},SH={class:"leyend"};function CH(e,o,s,O,W,_){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([_.customStyle,W.status&&s.typeOnOff&&_.customActive]),onClick:o[0]||(o[0]=(...g)=>_.btnClick&&_.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,vH)):t.createCommentVNode("",!0),s.textValue?(t.openBlock(),t.createElementBlock("div",_H,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,bH)):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)=>_.btnClick&&_.btnClick(...g))},[t.createElementVNode("div",xH,[wH,t.createElementVNode("div",kH,t.toDisplayString(s.textStat),1)]),t.createElementVNode("div",SH,t.toDisplayString(s.textCategory),1)])):t.createCommentVNode("",!0)])}const TH=gH(M5,[["render",CH],["__scopeId","data-v-f3ee6b2b"]]),EH={class:"gsc-dropdown__main-container__item-selected"},AH=["height","width"],MH=["stroke"],IH={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},PH=["fill"],BH={class:"gsc-dropdown__items-container"},LH=["onClick"],zH={key:0,class:"gsc-dropdown__items-footer"},OH={__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,O=t.ref({}),W=t.ref(null),_=t.ref(s.isMultipleOption?-1:0),g=t.ref(!1);t.watch(()=>s.items,(b,u)=>{if(!s.modelValue&&(!s.onlyFirstTime||!u||!u.length)&&b&&b.length){if(s.defaultItemByProp){const r=s.items.findIndex(i=>i[s.defaultItemByProp.propName]===s.defaultItemByProp.value);r!==-1?(_.value=r,O.value=b[r]):(_.value=0,O.value=b[0])}else O.value=b[s.defaultItemByIndex];o("input",O.value)}},{immediate:!0}),t.watch(()=>s.modelValue,b=>{if(b){const u=s.items.findIndex(r=>typeof b=="object"?JSON.stringify(r)===JSON.stringify(b):r===b);u!==-1&&(_.value=u,O.value=s.items[u],o("update:modelValue",O.value))}},{immediate:!0});const a=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"})),v=t.computed(()=>({height:`${s.arrowHeight}px`,width:`${s.arrowWidth}px`}));function d(){s.isDisabled||(g.value=!g.value)}function n(b){W.value&&!W.value.contains(b.target)&&(g.value=!1)}function x(b,u){s.isMultipleOption?_.value=-1:(_.value=u,g.value=!1),O.value=b,o("input",O.value),o("update:modelValue",O.value)}function y(){g.value=!1,o("click-ready")}return t.onMounted(()=>{document.addEventListener("click",n)}),t.onBeforeMount(()=>{document.removeEventListener("click",n)}),(b,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:W,class:"gsc-dropdown",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:d},[t.createElementVNode("div",EH,[t.renderSlot(b.$slots,"default",{selectedItem:O.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":g.value}]),style:t.normalizeStyle(v.value)},[e.iconType===1?(t.openBlock(),t.createElementBlock("svg",{key:0,height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,MH)],8,AH)):(t.openBlock(),t.createElementBlock("svg",IH,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:e.arrowColor},null,8,PH)]))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",BH,[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,(r,i)=>(t.openBlock(),t.createElementBlock("div",null,[t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:i===_.value}]),key:i,onClick:h=>x(r,i)},[t.renderSlot(b.$slots,"availableItem",{item:r})],10,LH)),[[t.vShow,!r.isHidden]])]))),256))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",zH,[t.createVNode(t.unref(TH),{"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))}},FH=(e,o)=>{const s=e.__vccOpts||e;for(const[O,W]of o)s[O]=W;return s},NH={class:"tournament-select__selected-tournament"},DH={class:"tournament-select__selected-tournament__logo"},VH=["src"],RH={class:"tournament-select__selected-tournament__name"},jH="https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments",$H={__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,O=new Set(["tops","table","dataia"]),W=t.ref([]),_=t.computed(()=>{const r={};return s.fontFamily&&(r["font-family"]=`${s.fontFamily}`),r}),g=t.computed(()=>W.value.filter(r=>!r.isHidden)),a=t.computed(()=>{const r=s.isFemaleMode?g.value.filter(i=>i.is_female):g.value;return r.find(i=>i.seasonsIds.has(s.currentSeasonId))||r[0]}),v=t.computed(()=>s.isFemaleMode?g.value.filter(r=>r.is_female):s.areFemaleVisible?W.value:W.value.filter(r=>!r.is_female));t.watch(()=>s.isClubesActive,()=>{d()},{immediate:!0}),t.watch(()=>s.routeName,()=>{d()},{immediate:!0}),t.watch(()=>s.apiUrl,()=>{n()});function d(){W.value.forEach(r=>{r.isHidden=!s.isClubesActive&&r.isClub||s.isClubesActive&&!r.isClub||s.routeName&&r.tournament_type===4&&O.has(s.routeName)})}async function n(){try{if(s.items&&s.items.length)W.value=[...s.items];else{const r=await y();o("change-tournaments",r),W.value=r.sort((i,h)=>i.tournament.order-h.tournament.order).reduce((i,h)=>{if(s.tournamentsIdsToInclude&&s.tournamentsIdsToInclude.size&&!s.tournamentsIdsToInclude.has(h.id))return i;const l={...h.tournament,seasons:h.seasons,seasonsIds:h.seasons.reduce((p,m)=>(p.add(m.id),p),new Set),isClub:h.tournament.international_tournament===0,isFriendlies:h.tournament.tournament_type===3};return l.isHidden=!s.avoidTournamentFilter&&(!s.isClubesActive&&l.isClub||s.isClubesActive&&!l.isClub),i.push(l),i},[])}}catch(r){throw new Error(r)}}function x(r){const i=new XMLHttpRequest,h=`${s.logosUrl}${r}.${s.logoFileType}`;return i.open("HEAD",h,!1),i.send(),i.status!==404}async function y(){try{return(await fetch(s.apiUrl||jH)).json()}catch(r){return Promise.reject(r)}}function b(r){o("input",r)}function u(r){o("input",r)}return t.onMounted(()=>{n()}),(r,i)=>(t.openBlock(),t.createElementBlock("div",{class:"tournament-select",style:t.normalizeStyle(_.value)},[t.createVNode(t.unref(OH),t.mergeProps(s,{"list-height":s.listHeight,"model-value":a.value,items:v.value,onInput:b,"onUpdate:modelValue":u}),{default:t.withCtx(({selectedItem:h})=>[t.createElementVNode("div",NH,[t.createElementVNode("div",DH,[x(h.id)?(t.openBlock(),t.createElementBlock("img",{key:0,src:`${s.logosUrl}${h.id}.${s.logoFileType}`,alt:""},null,8,VH)):t.createCommentVNode("",!0)]),t.createElementVNode("div",RH,t.toDisplayString(h.name),1)])]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("div",null,t.toDisplayString(h.name),1)]),_:1},16,["list-height","model-value","items"])],4))}},wC=FH($H,[["__scopeId","data-v-ef0319e5"]]),UH=(e,o)=>{const s=e.__vccOpts||e;for(const[O,W]of o)s[O]=W;return s},I5={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))}}},kC=()=>{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}))},SC=I5.setup;I5.setup=SC?(e,o)=>(kC(),SC(e,o)):kC;const HH=e=>(t.pushScopeId("data-v-f3ee6b2b"),e=e(),t.popScopeId(),e),GH=["src"],WH={key:1,class:"text"},qH=["src"],YH={class:"stats"},ZH=HH(()=>t.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),XH={class:"numstats"},JH={class:"leyend"};function KH(e,o,s,O,W,_){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([_.customStyle,W.status&&s.typeOnOff&&_.customActive]),onClick:o[0]||(o[0]=(...g)=>_.btnClick&&_.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,GH)):t.createCommentVNode("",!0),s.textValue?(t.openBlock(),t.createElementBlock("div",WH,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,qH)):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)=>_.btnClick&&_.btnClick(...g))},[t.createElementVNode("div",YH,[ZH,t.createElementVNode("div",XH,t.toDisplayString(s.textStat),1)]),t.createElementVNode("div",JH,t.toDisplayString(s.textCategory),1)])):t.createCommentVNode("",!0)])}const QH=UH(I5,[["render",KH],["__scopeId","data-v-f3ee6b2b"]]),eG={class:"gsc-dropdown__main-container__item-selected"},tG=["height","width"],nG=["stroke"],aG={class:"gsc-dropdown__items-container"},rG=["onClick"],iG={key:0,class:"gsc-dropdown__items-footer"},oG={__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,O=t.ref({}),W=t.ref(null),_=t.ref(s.isMultipleOption?-1:0),g=t.ref(!1);t.watch(()=>s.items,(b,u)=>{if(!s.modelValue&&(!s.onlyFirstTime||!u||!u.length)&&b&&b.length){if(s.defaultItemByProp){const r=s.items.findIndex(i=>i[s.defaultItemByProp.propName]===s.defaultItemByProp.value);r!==-1?(_.value=r,O.value=b[r]):(_.value=0,O.value=b[0])}else O.value=b[s.defaultItemByIndex];o("input",O.value)}},{immediate:!0}),t.watch(()=>s.modelValue,b=>{if(b){const u=s.items.findIndex(r=>typeof b=="object"?JSON.stringify(r)===JSON.stringify(b):r===b);u!==-1&&(_.value=u,O.value=s.items[u],o("update:modelValue",O.value))}},{immediate:!0});const a=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"})),v=t.computed(()=>({height:`${s.arrowHeight}px`,width:`${s.arrowWidth}px`}));function d(){s.isDisabled||(g.value=!g.value)}function n(b){W.value&&!W.value.contains(b.target)&&(g.value=!1)}function x(b,u){s.isMultipleOption?_.value=-1:(_.value=u,g.value=!1),O.value=b,o("input",O.value),o("update:modelValue",O.value)}function y(){g.value=!1,o("click-ready")}return t.onMounted(()=>{document.addEventListener("click",n)}),t.onBeforeMount(()=>{document.removeEventListener("click",n)}),(b,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:W,class:"gsc-dropdown",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:d},[t.createElementVNode("div",eG,[t.renderSlot(b.$slots,"default",{selectedItem:O.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":g.value}]),style:t.normalizeStyle(v.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,nG)],8,tG))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",aG,[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,(r,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:i===_.value}]),key:i,onClick:h=>x(r,i)},[t.renderSlot(b.$slots,"availableItem",{item:r})],10,rG))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",iG,[t.createVNode(t.unref(QH),{"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))}},sG=(e,o)=>{const s=e.__vccOpts||e;for(const[O,W]of o)s[O]=W;return s},lG={class:"season-name"},cG={class:"items-list-season"},uG={__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,O=t.computed(()=>s.seasons.find(g=>g.id===s.currentSeasonId));function W(g){o("input",g)}function _(g){o("input",g)}return(g,a)=>(t.openBlock(),t.createBlock(t.unref(oG),{items:e.seasons,"model-value":O.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:_,"onUpdate:modelValue":W},{default:t.withCtx(({selectedItem:v})=>[t.createElementVNode("div",lG,[t.createElementVNode("span",null,t.toDisplayString(v.name),1)])]),availableItem:t.withCtx(({item:v})=>[t.createElementVNode("span",cG,t.toDisplayString(v.name),1)]),_:1},8,["items","model-value","list-height"]))}},CC=sG(uG,[["__scopeId","data-v-748c2f60"]]);function TC(e,o){return function(){return e.apply(o,arguments)}}const{toString:dG}=Object.prototype,{getPrototypeOf:P5}=Object,{iterator:T_,toStringTag:EC}=Symbol,E_=(e=>o=>{const s=dG.call(o);return e[s]||(e[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),tf=e=>(e=e.toLowerCase(),o=>E_(o)===e),A_=e=>o=>typeof o===e,{isArray:Kg}=Array,fv=A_("undefined");function hG(e){return e!==null&&!fv(e)&&e.constructor!==null&&!fv(e.constructor)&&Zh(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const AC=tf("ArrayBuffer");function pG(e){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(e):o=e&&e.buffer&&AC(e.buffer),o}const fG=A_("string"),Zh=A_("function"),MC=A_("number"),M_=e=>e!==null&&typeof e=="object",mG=e=>e===!0||e===!1,I_=e=>{if(E_(e)!=="object")return!1;const o=P5(e);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(EC in e)&&!(T_ in e)},gG=tf("Date"),yG=tf("File"),vG=tf("Blob"),_G=tf("FileList"),bG=e=>M_(e)&&Zh(e.pipe),xG=e=>{let o;return e&&(typeof FormData=="function"&&e instanceof FormData||Zh(e.append)&&((o=E_(e))==="formdata"||o==="object"&&Zh(e.toString)&&e.toString()==="[object FormData]"))},wG=tf("URLSearchParams"),[kG,SG,CG,TG]=["ReadableStream","Request","Response","Headers"].map(tf),EG=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function mv(e,o,{allOwnKeys:s=!1}={}){if(e===null||typeof e>"u")return;let O,W;if(typeof e!="object"&&(e=[e]),Kg(e))for(O=0,W=e.length;O<W;O++)o.call(null,e[O],O,e);else{const _=s?Object.getOwnPropertyNames(e):Object.keys(e),g=_.length;let a;for(O=0;O<g;O++)a=_[O],o.call(null,e[a],a,e)}}function IC(e,o){o=o.toLowerCase();const s=Object.keys(e);let O=s.length,W;for(;O-- >0;)if(W=s[O],o===W.toLowerCase())return W;return null}const p1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),PC=e=>!fv(e)&&e!==p1;function B5(){const{caseless:e}=PC(this)&&this||{},o={},s=(O,W)=>{const _=e&&IC(o,W)||W;I_(o[_])&&I_(O)?o[_]=B5(o[_],O):I_(O)?o[_]=B5({},O):Kg(O)?o[_]=O.slice():o[_]=O};for(let O=0,W=arguments.length;O<W;O++)arguments[O]&&mv(arguments[O],s);return o}const AG=(e,o,s,{allOwnKeys:O}={})=>(mv(o,(W,_)=>{s&&Zh(W)?e[_]=TC(W,s):e[_]=W},{allOwnKeys:O}),e),MG=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),IG=(e,o,s,O)=>{e.prototype=Object.create(o.prototype,O),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:o.prototype}),s&&Object.assign(e.prototype,s)},PG=(e,o,s,O)=>{let W,_,g;const a={};if(o=o||{},e==null)return o;do{for(W=Object.getOwnPropertyNames(e),_=W.length;_-- >0;)g=W[_],(!O||O(g,e,o))&&!a[g]&&(o[g]=e[g],a[g]=!0);e=s!==!1&&P5(e)}while(e&&(!s||s(e,o))&&e!==Object.prototype);return o},BG=(e,o,s)=>{e=String(e),(s===void 0||s>e.length)&&(s=e.length),s-=o.length;const O=e.indexOf(o,s);return O!==-1&&O===s},LG=e=>{if(!e)return null;if(Kg(e))return e;let o=e.length;if(!MC(o))return null;const s=new Array(o);for(;o-- >0;)s[o]=e[o];return s},zG=(e=>o=>e&&o instanceof e)(typeof Uint8Array<"u"&&P5(Uint8Array)),OG=(e,o)=>{const s=(e&&e[T_]).call(e);let O;for(;(O=s.next())&&!O.done;){const W=O.value;o.call(e,W[0],W[1])}},FG=(e,o)=>{let s;const O=[];for(;(s=e.exec(o))!==null;)O.push(s);return O},NG=tf("HTMLFormElement"),DG=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,s,O){return s.toUpperCase()+O}),BC=(({hasOwnProperty:e})=>(o,s)=>e.call(o,s))(Object.prototype),VG=tf("RegExp"),LC=(e,o)=>{const s=Object.getOwnPropertyDescriptors(e),O={};mv(s,(W,_)=>{let g;(g=o(W,_,e))!==!1&&(O[_]=g||W)}),Object.defineProperties(e,O)},RG=e=>{LC(e,(o,s)=>{if(Zh(e)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const O=e[s];if(Zh(O)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},jG=(e,o)=>{const s={},O=W=>{W.forEach(_=>{s[_]=!0})};return Kg(e)?O(e):O(String(e).split(o)),s},$G=()=>{},UG=(e,o)=>e!=null&&Number.isFinite(e=+e)?e:o;function HG(e){return!!(e&&Zh(e.append)&&e[EC]==="FormData"&&e[T_])}const GG=e=>{const o=new Array(10),s=(O,W)=>{if(M_(O)){if(o.indexOf(O)>=0)return;if(!("toJSON"in O)){o[W]=O;const _=Kg(O)?[]:{};return mv(O,(g,a)=>{const v=s(g,W+1);!fv(v)&&(_[a]=v)}),o[W]=void 0,_}}return O};return s(e,0)},WG=tf("AsyncFunction"),qG=e=>e&&(M_(e)||Zh(e))&&Zh(e.then)&&Zh(e.catch),zC=((e,o)=>e?setImmediate:o?((s,O)=>(p1.addEventListener("message",({source:W,data:_})=>{W===p1&&_===s&&O.length&&O.shift()()},!1),W=>{O.push(W),p1.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",Zh(p1.postMessage)),YG=typeof queueMicrotask<"u"?queueMicrotask.bind(p1):typeof process<"u"&&process.nextTick||zC,ZG=e=>e!=null&&Zh(e[T_]),Pr={isArray:Kg,isArrayBuffer:AC,isBuffer:hG,isFormData:xG,isArrayBufferView:pG,isString:fG,isNumber:MC,isBoolean:mG,isObject:M_,isPlainObject:I_,isReadableStream:kG,isRequest:SG,isResponse:CG,isHeaders:TG,isUndefined:fv,isDate:gG,isFile:yG,isBlob:vG,isRegExp:VG,isFunction:Zh,isStream:bG,isURLSearchParams:wG,isTypedArray:zG,isFileList:_G,forEach:mv,merge:B5,extend:AG,trim:EG,stripBOM:MG,inherits:IG,toFlatObject:PG,kindOf:E_,kindOfTest:tf,endsWith:BG,toArray:LG,forEachEntry:OG,matchAll:FG,isHTMLForm:NG,hasOwnProperty:BC,hasOwnProp:BC,reduceDescriptors:LC,freezeMethods:RG,toObjectSet:jG,toCamelCase:DG,noop:$G,toFiniteNumber:UG,findKey:IC,global:p1,isContextDefined:PC,isSpecCompliantForm:HG,toJSONObject:GG,isAsyncFn:WG,isThenable:qG,setImmediate:zC,asap:YG,isIterable:ZG};function ll(e,o,s,O,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),O&&(this.request=O),W&&(this.response=W,this.status=W.status?W.status:null)}Pr.inherits(ll,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Pr.toJSONObject(this.config),code:this.code,status:this.status}}});const OC=ll.prototype,FC={};["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=>{FC[e]={value:e}}),Object.defineProperties(ll,FC),Object.defineProperty(OC,"isAxiosError",{value:!0}),ll.from=(e,o,s,O,W,_)=>{const g=Object.create(OC);return Pr.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),ll.call(g,e.message,o,s,O,W),g.cause=e,g.name=e.name,_&&Object.assign(g,_),g};const XG=null;function L5(e){return Pr.isPlainObject(e)||Pr.isArray(e)}function NC(e){return Pr.endsWith(e,"[]")?e.slice(0,-2):e}function DC(e,o,s){return e?e.concat(o).map(function(O,W){return O=NC(O),!s&&W?"["+O+"]":O}).join(s?".":""):o}function JG(e){return Pr.isArray(e)&&!e.some(L5)}const KG=Pr.toFlatObject(Pr,{},null,function(e){return/^is[A-Z]/.test(e)});function P_(e,o,s){if(!Pr.isObject(e))throw new TypeError("target must be an object");o=o||new FormData,s=Pr.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,u){return!Pr.isUndefined(u[b])});const O=s.metaTokens,W=s.visitor||d,_=s.dots,g=s.indexes,a=(s.Blob||typeof Blob<"u"&&Blob)&&Pr.isSpecCompliantForm(o);if(!Pr.isFunction(W))throw new TypeError("visitor must be a function");function v(b){if(b===null)return"";if(Pr.isDate(b))return b.toISOString();if(Pr.isBoolean(b))return b.toString();if(!a&&Pr.isBlob(b))throw new ll("Blob is not supported. Use a Buffer instead.");return Pr.isArrayBuffer(b)||Pr.isTypedArray(b)?a&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function d(b,u,r){let i=b;if(b&&!r&&typeof b=="object"){if(Pr.endsWith(u,"{}"))u=O?u:u.slice(0,-2),b=JSON.stringify(b);else if(Pr.isArray(b)&&JG(b)||(Pr.isFileList(b)||Pr.endsWith(u,"[]"))&&(i=Pr.toArray(b)))return u=NC(u),i.forEach(function(h,l){!(Pr.isUndefined(h)||h===null)&&o.append(g===!0?DC([u],l,_):g===null?u:u+"[]",v(h))}),!1}return L5(b)?!0:(o.append(DC(r,u,_),v(b)),!1)}const n=[],x=Object.assign(KG,{defaultVisitor:d,convertValue:v,isVisitable:L5});function y(b,u){if(!Pr.isUndefined(b)){if(n.indexOf(b)!==-1)throw Error("Circular reference detected in "+u.join("."));n.push(b),Pr.forEach(b,function(r,i){(!(Pr.isUndefined(r)||r===null)&&W.call(o,r,Pr.isString(i)?i.trim():i,u,x))===!0&&y(r,u?u.concat(i):[i])}),n.pop()}}if(!Pr.isObject(e))throw new TypeError("data must be an object");return y(e),o}function VC(e){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return o[s]})}function z5(e,o){this._pairs=[],e&&P_(e,this,o)}const RC=z5.prototype;RC.append=function(e,o){this._pairs.push([e,o])},RC.toString=function(e){const o=e?function(s){return e.call(this,s,VC)}:VC;return this._pairs.map(function(s){return o(s[0])+"="+o(s[1])},"").join("&")};function QG(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function jC(e,o,s){if(!o)return e;const O=s&&s.encode||QG;Pr.isFunction(s)&&(s={serialize:s});const W=s&&s.serialize;let _;if(W?_=W(o,s):_=Pr.isURLSearchParams(o)?o.toString():new z5(o,s).toString(O),_){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+_}return e}const $C=class{constructor(){this.handlers=[]}use(o,s,O){return this.handlers.push({fulfilled:o,rejected:s,synchronous:O?O.synchronous:!1,runWhen:O?O.runWhen:null}),this.handlers.length-1}eject(o){this.handlers[o]&&(this.handlers[o]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(o){Pr.forEach(this.handlers,function(s){s!==null&&o(s)})}},UC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eW=typeof URLSearchParams<"u"?URLSearchParams:z5,tW=typeof FormData<"u"?FormData:null,nW=typeof Blob<"u"?Blob:null,aW={isBrowser:!0,classes:{URLSearchParams:eW,FormData:tW,Blob:nW},protocols:["http","https","file","blob","url","data"]},O5=typeof window<"u"&&typeof document<"u",F5=typeof navigator=="object"&&navigator||void 0,rW=O5&&(!F5||["ReactNative","NativeScript","NS"].indexOf(F5.product)<0),iW=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),oW=O5&&window.location.href||"http://localhost",sW=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:O5,hasStandardBrowserEnv:rW,hasStandardBrowserWebWorkerEnv:iW,navigator:F5,origin:oW},Symbol.toStringTag,{value:"Module"})),oh={...sW,...aW};function lW(e,o){return P_(e,new oh.classes.URLSearchParams,Object.assign({visitor:function(s,O,W,_){return oh.isNode&&Pr.isBuffer(s)?(this.append(O,s.toString("base64")),!1):_.defaultVisitor.apply(this,arguments)}},o))}function cW(e){return Pr.matchAll(/\w+|\[(\w*)]/g,e).map(o=>o[0]==="[]"?"":o[1]||o[0])}function uW(e){const o={},s=Object.keys(e);let O;const W=s.length;let _;for(O=0;O<W;O++)_=s[O],o[_]=e[_];return o}function HC(e){function o(s,O,W,_){let g=s[_++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),v=_>=s.length;return g=!g&&Pr.isArray(W)?W.length:g,v?(Pr.hasOwnProp(W,g)?W[g]=[W[g],O]:W[g]=O,!a):((!W[g]||!Pr.isObject(W[g]))&&(W[g]=[]),o(s,O,W[g],_)&&Pr.isArray(W[g])&&(W[g]=uW(W[g])),!a)}if(Pr.isFormData(e)&&Pr.isFunction(e.entries)){const s={};return Pr.forEachEntry(e,(O,W)=>{o(cW(O),W,s,0)}),s}return null}function dW(e,o,s){if(Pr.isString(e))try{return(o||JSON.parse)(e),Pr.trim(e)}catch(O){if(O.name!=="SyntaxError")throw O}return(s||JSON.stringify)(e)}const N5={transitional:UC,adapter:["xhr","http","fetch"],transformRequest:[function(e,o){const s=o.getContentType()||"",O=s.indexOf("application/json")>-1,W=Pr.isObject(e);if(W&&Pr.isHTMLForm(e)&&(e=new FormData(e)),Pr.isFormData(e))return O?JSON.stringify(HC(e)):e;if(Pr.isArrayBuffer(e)||Pr.isBuffer(e)||Pr.isStream(e)||Pr.isFile(e)||Pr.isBlob(e)||Pr.isReadableStream(e))return e;if(Pr.isArrayBufferView(e))return e.buffer;if(Pr.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let _;if(W){if(s.indexOf("application/x-www-form-urlencoded")>-1)return lW(e,this.formSerializer).toString();if((_=Pr.isFileList(e))||s.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return P_(_?{"files[]":e}:e,g&&new g,this.formSerializer)}}return W||O?(o.setContentType("application/json",!1),dW(e)):e}],transformResponse:[function(e){const o=this.transitional||N5.transitional,s=o&&o.forcedJSONParsing,O=this.responseType==="json";if(Pr.isResponse(e)||Pr.isReadableStream(e))return e;if(e&&Pr.isString(e)&&(s&&!this.responseType||O)){const W=!(o&&o.silentJSONParsing)&&O;try{return JSON.parse(e)}catch(_){if(W)throw _.name==="SyntaxError"?ll.from(_,ll.ERR_BAD_RESPONSE,this,null,this.response):_}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:oh.classes.FormData,Blob:oh.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Pr.forEach(["delete","get","head","post","put","patch"],e=>{N5.headers[e]={}});const D5=N5,hW=Pr.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"]),pW=e=>{const o={};let s,O,W;return e&&e.split(`
|
|
2
2
|
`).forEach(function(_){W=_.indexOf(":"),s=_.substring(0,W).trim().toLowerCase(),O=_.substring(W+1).trim(),!(!s||o[s]&&hW[s])&&(s==="set-cookie"?o[s]?o[s].push(O):o[s]=[O]:o[s]=o[s]?o[s]+", "+O:O)}),o},GC=Symbol("internals");function gv(e){return e&&String(e).trim().toLowerCase()}function B_(e){return e===!1||e==null?e:Pr.isArray(e)?e.map(B_):String(e)}function fW(e){const o=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let O;for(;O=s.exec(e);)o[O[1]]=O[2];return o}const mW=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function V5(e,o,s,O,W){if(Pr.isFunction(O))return O.call(this,o,s);if(W&&(o=s),!!Pr.isString(o)){if(Pr.isString(O))return o.indexOf(O)!==-1;if(Pr.isRegExp(O))return O.test(o)}}function gW(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,s,O)=>s.toUpperCase()+O)}function yW(e,o){const s=Pr.toCamelCase(" "+o);["get","set","has"].forEach(O=>{Object.defineProperty(e,O+s,{value:function(W,_,g){return this[O].call(this,o,W,_,g)},configurable:!0})})}let L_=class{constructor(o){o&&this.set(o)}set(o,s,O){const W=this;function _(a,v,d){const n=gv(v);if(!n)throw new Error("header name must be a non-empty string");const x=Pr.findKey(W,n);(!x||W[x]===void 0||d===!0||d===void 0&&W[x]!==!1)&&(W[x||v]=B_(a))}const g=(a,v)=>Pr.forEach(a,(d,n)=>_(d,n,v));if(Pr.isPlainObject(o)||o instanceof this.constructor)g(o,s);else if(Pr.isString(o)&&(o=o.trim())&&!mW(o))g(pW(o),s);else if(Pr.isObject(o)&&Pr.isIterable(o)){let a={},v,d;for(const n of o){if(!Pr.isArray(n))throw TypeError("Object iterator must return a key-value pair");a[d=n[0]]=(v=a[d])?Pr.isArray(v)?[...v,n[1]]:[v,n[1]]:n[1]}g(a,s)}else o!=null&&_(s,o,O);return this}get(o,s){if(o=gv(o),o){const O=Pr.findKey(this,o);if(O){const W=this[O];if(!s)return W;if(s===!0)return fW(W);if(Pr.isFunction(s))return s.call(this,W,O);if(Pr.isRegExp(s))return s.exec(W);throw new TypeError("parser must be boolean|regexp|function")}}}has(o,s){if(o=gv(o),o){const O=Pr.findKey(this,o);return!!(O&&this[O]!==void 0&&(!s||V5(this,this[O],O,s)))}return!1}delete(o,s){const O=this;let W=!1;function _(g){if(g=gv(g),g){const a=Pr.findKey(O,g);a&&(!s||V5(O,O[a],a,s))&&(delete O[a],W=!0)}}return Pr.isArray(o)?o.forEach(_):_(o),W}clear(o){const s=Object.keys(this);let O=s.length,W=!1;for(;O--;){const _=s[O];(!o||V5(this,this[_],_,o,!0))&&(delete this[_],W=!0)}return W}normalize(o){const s=this,O={};return Pr.forEach(this,(W,_)=>{const g=Pr.findKey(O,_);if(g){s[g]=B_(W),delete s[_];return}const a=o?gW(_):String(_).trim();a!==_&&delete s[_],s[a]=B_(W),O[a]=!0}),this}concat(...o){return this.constructor.concat(this,...o)}toJSON(o){const s=Object.create(null);return Pr.forEach(this,(O,W)=>{O!=null&&O!==!1&&(s[W]=o&&Pr.isArray(O)?O.join(", "):O)}),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 O=new this(o);return s.forEach(W=>O.set(W)),O}static accessor(o){const s=(this[GC]=this[GC]={accessors:{}}).accessors,O=this.prototype;function W(_){const g=gv(_);s[g]||(yW(O,_),s[g]=!0)}return Pr.isArray(o)?o.forEach(W):W(o),this}};L_.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Pr.reduceDescriptors(L_.prototype,({value:e},o)=>{let s=o[0].toUpperCase()+o.slice(1);return{get:()=>e,set(O){this[s]=O}}}),Pr.freezeMethods(L_);const nf=L_;function R5(e,o){const s=this||D5,O=o||s,W=nf.from(O.headers);let _=O.data;return Pr.forEach(e,function(g){_=g.call(s,_,W.normalize(),o?o.status:void 0)}),W.normalize(),_}function WC(e){return!!(e&&e.__CANCEL__)}function Qg(e,o,s){ll.call(this,e??"canceled",ll.ERR_CANCELED,o,s),this.name="CanceledError"}Pr.inherits(Qg,ll,{__CANCEL__:!0});function qC(e,o,s){const O=s.config.validateStatus;!s.status||!O||O(s.status)?e(s):o(new ll("Request failed with status code "+s.status,[ll.ERR_BAD_REQUEST,ll.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function vW(e){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return o&&o[1]||""}function _W(e,o){e=e||10;const s=new Array(e),O=new Array(e);let W=0,_=0,g;return o=o!==void 0?o:1e3,function(a){const v=Date.now(),d=O[_];g||(g=v),s[W]=a,O[W]=v;let n=_,x=0;for(;n!==W;)x+=s[n++],n=n%e;if(W=(W+1)%e,W===_&&(_=(_+1)%e),v-g<o)return;const y=d&&v-d;return y?Math.round(x*1e3/y):void 0}}function bW(e,o){let s=0,O=1e3/o,W,_;const g=(a,v=Date.now())=>{s=v,W=null,_&&(clearTimeout(_),_=null),e.apply(null,a)};return[(...a)=>{const v=Date.now(),d=v-s;d>=O?g(a,v):(W=a,_||(_=setTimeout(()=>{_=null,g(W)},O-d)))},()=>W&&g(W)]}const z_=(e,o,s=3)=>{let O=0;const W=_W(50,250);return bW(_=>{const g=_.loaded,a=_.lengthComputable?_.total:void 0,v=g-O,d=W(v),n=g<=a;O=g;const x={loaded:g,total:a,progress:a?g/a:void 0,bytes:v,rate:d||void 0,estimated:d&&a&&n?(a-g)/d:void 0,event:_,lengthComputable:a!=null,[o?"download":"upload"]:!0};e(x)},s)},YC=(e,o)=>{const s=e!=null;return[O=>o[0]({lengthComputable:s,total:e,loaded:O}),o[1]]},ZC=e=>(...o)=>Pr.asap(()=>e(...o)),xW=oh.hasStandardBrowserEnv?((e,o)=>s=>(s=new URL(s,oh.origin),e.protocol===s.protocol&&e.host===s.host&&(o||e.port===s.port)))(new URL(oh.origin),oh.navigator&&/(msie|trident)/i.test(oh.navigator.userAgent)):()=>!0,wW=oh.hasStandardBrowserEnv?{write(e,o,s,O,W,_){const g=[e+"="+encodeURIComponent(o)];Pr.isNumber(s)&&g.push("expires="+new Date(s).toGMTString()),Pr.isString(O)&&g.push("path="+O),Pr.isString(W)&&g.push("domain="+W),_===!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 kW(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function SW(e,o){return o?e.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):e}function XC(e,o,s){let O=!kW(o);return e&&(O||s==!1)?SW(e,o):o}const JC=e=>e instanceof nf?{...e}:e;function f1(e,o){o=o||{};const s={};function O(d,n,x,y){return Pr.isPlainObject(d)&&Pr.isPlainObject(n)?Pr.merge.call({caseless:y},d,n):Pr.isPlainObject(n)?Pr.merge({},n):Pr.isArray(n)?n.slice():n}function W(d,n,x,y){if(Pr.isUndefined(n)){if(!Pr.isUndefined(d))return O(void 0,d,x,y)}else return O(d,n,x,y)}function _(d,n){if(!Pr.isUndefined(n))return O(void 0,n)}function g(d,n){if(Pr.isUndefined(n)){if(!Pr.isUndefined(d))return O(void 0,d)}else return O(void 0,n)}function a(d,n,x){if(x in o)return O(d,n);if(x in e)return O(void 0,d)}const v={url:_,method:_,data:_,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:a,headers:(d,n,x)=>W(JC(d),JC(n),x,!0)};return Pr.forEach(Object.keys(Object.assign({},e,o)),function(d){const n=v[d]||W,x=n(e[d],o[d],d);Pr.isUndefined(x)&&n!==a||(s[d]=x)}),s}const KC=e=>{const o=f1({},e);let{data:s,withXSRFToken:O,xsrfHeaderName:W,xsrfCookieName:_,headers:g,auth:a}=o;o.headers=g=nf.from(g),o.url=jC(XC(o.baseURL,o.url,o.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&g.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let v;if(Pr.isFormData(s)){if(oh.hasStandardBrowserEnv||oh.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if((v=g.getContentType())!==!1){const[d,...n]=v?v.split(";").map(x=>x.trim()).filter(Boolean):[];g.setContentType([d||"multipart/form-data",...n].join("; "))}}if(oh.hasStandardBrowserEnv&&(O&&Pr.isFunction(O)&&(O=O(o)),O||O!==!1&&xW(o.url))){const d=W&&_&&wW.read(_);d&&g.set(W,d)}return o},CW=typeof XMLHttpRequest<"u",TW=CW&&function(e){return new Promise(function(o,s){const O=KC(e);let W=O.data;const _=nf.from(O.headers).normalize();let{responseType:g,onUploadProgress:a,onDownloadProgress:v}=O,d,n,x,y,b;function u(){y&&y(),b&&b(),O.cancelToken&&O.cancelToken.unsubscribe(d),O.signal&&O.signal.removeEventListener("abort",d)}let r=new XMLHttpRequest;r.open(O.method.toUpperCase(),O.url,!0),r.timeout=O.timeout;function i(){if(!r)return;const l=nf.from("getAllResponseHeaders"in r&&r.getAllResponseHeaders()),p={data:!g||g==="text"||g==="json"?r.responseText:r.response,status:r.status,statusText:r.statusText,headers:l,config:e,request:r};qC(function(m){o(m),u()},function(m){s(m),u()},p),r=null}"onloadend"in r?r.onloadend=i:r.onreadystatechange=function(){!r||r.readyState!==4||r.status===0&&!(r.responseURL&&r.responseURL.indexOf("file:")===0)||setTimeout(i)},r.onabort=function(){r&&(s(new ll("Request aborted",ll.ECONNABORTED,e,r)),r=null)},r.onerror=function(){s(new ll("Network Error",ll.ERR_NETWORK,e,r)),r=null},r.ontimeout=function(){let l=O.timeout?"timeout of "+O.timeout+"ms exceeded":"timeout exceeded";const p=O.transitional||UC;O.timeoutErrorMessage&&(l=O.timeoutErrorMessage),s(new ll(l,p.clarifyTimeoutError?ll.ETIMEDOUT:ll.ECONNABORTED,e,r)),r=null},W===void 0&&_.setContentType(null),"setRequestHeader"in r&&Pr.forEach(_.toJSON(),function(l,p){r.setRequestHeader(p,l)}),Pr.isUndefined(O.withCredentials)||(r.withCredentials=!!O.withCredentials),g&&g!=="json"&&(r.responseType=O.responseType),v&&([x,b]=z_(v,!0),r.addEventListener("progress",x)),a&&r.upload&&([n,y]=z_(a),r.upload.addEventListener("progress",n),r.upload.addEventListener("loadend",y)),(O.cancelToken||O.signal)&&(d=l=>{r&&(s(!l||l.type?new Qg(null,e,r):l),r.abort(),r=null)},O.cancelToken&&O.cancelToken.subscribe(d),O.signal&&(O.signal.aborted?d():O.signal.addEventListener("abort",d)));const h=vW(O.url);if(h&&oh.protocols.indexOf(h)===-1){s(new ll("Unsupported protocol "+h+":",ll.ERR_BAD_REQUEST,e));return}r.send(W||null)})},EW=(e,o)=>{const{length:s}=e=e?e.filter(Boolean):[];if(o||s){let O=new AbortController,W;const _=function(d){if(!W){W=!0,a();const n=d instanceof Error?d:this.reason;O.abort(n instanceof ll?n:new Qg(n instanceof Error?n.message:n))}};let g=o&&setTimeout(()=>{g=null,_(new ll(`timeout ${o} of ms exceeded`,ll.ETIMEDOUT))},o);const a=()=>{e&&(g&&clearTimeout(g),g=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(_):d.removeEventListener("abort",_)}),e=null)};e.forEach(d=>d.addEventListener("abort",_));const{signal:v}=O;return v.unsubscribe=()=>Pr.asap(a),v}},AW=EW,MW=function*(e,o){let s=e.byteLength;if(!o||s<o){yield e;return}let O=0,W;for(;O<s;)W=O+o,yield e.slice(O,W),O=W},IW=async function*(e,o){for await(const s of PW(e))yield*MW(s,o)},PW=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const o=e.getReader();try{for(;;){const{done:s,value:O}=await o.read();if(s)break;yield O}}finally{await o.cancel()}},QC=(e,o,s,O)=>{const W=IW(e,o);let _=0,g,a=v=>{g||(g=!0,O&&O(v))};return new ReadableStream({async pull(v){try{const{done:d,value:n}=await W.next();if(d){a(),v.close();return}let x=n.byteLength;if(s){let y=_+=x;s(y)}v.enqueue(new Uint8Array(n))}catch(d){throw a(d),d}},cancel(v){return a(v),W.return()}},{highWaterMark:2})},O_=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",eT=O_&&typeof ReadableStream=="function",BW=O_&&(typeof TextEncoder=="function"?(e=>o=>e.encode(o))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),tT=(e,...o)=>{try{return!!e(...o)}catch{return!1}},LW=eT&&tT(()=>{let e=!1;const o=new Request(oh.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!o}),nT=64*1024,j5=eT&&tT(()=>Pr.isReadableStream(new Response("").body)),F_={stream:j5&&(e=>e.body)};O_&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(o=>{!F_[o]&&(F_[o]=Pr.isFunction(e[o])?s=>s[o]():(s,O)=>{throw new ll(`Response type '${o}' is not supported`,ll.ERR_NOT_SUPPORT,O)})})})(new Response);const zW=async e=>{if(e==null)return 0;if(Pr.isBlob(e))return e.size;if(Pr.isSpecCompliantForm(e))return(await new Request(oh.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Pr.isArrayBufferView(e)||Pr.isArrayBuffer(e))return e.byteLength;if(Pr.isURLSearchParams(e)&&(e=e+""),Pr.isString(e))return(await BW(e)).byteLength},OW=async(e,o)=>Pr.toFiniteNumber(e.getContentLength())??zW(o),FW=O_&&(async e=>{let{url:o,method:s,data:O,signal:W,cancelToken:_,timeout:g,onDownloadProgress:a,onUploadProgress:v,responseType:d,headers:n,withCredentials:x="same-origin",fetchOptions:y}=KC(e);d=d?(d+"").toLowerCase():"text";let b=AW([W,_&&_.toAbortSignal()],g),u;const r=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let i;try{if(v&&LW&&s!=="get"&&s!=="head"&&(i=await OW(n,O))!==0){let w=new Request(o,{method:"POST",body:O,duplex:"half"}),C;if(Pr.isFormData(O)&&(C=w.headers.get("content-type"))&&n.setContentType(C),w.body){const[A,T]=YC(i,z_(ZC(v)));O=QC(w.body,nT,A,T)}}Pr.isString(x)||(x=x?"include":"omit");const h="credentials"in Request.prototype;u=new Request(o,{...y,signal:b,method:s.toUpperCase(),headers:n.normalize().toJSON(),body:O,duplex:"half",credentials:h?x:void 0});let l=await fetch(u,y);const p=j5&&(d==="stream"||d==="response");if(j5&&(a||p&&r)){const w={};["status","statusText","headers"].forEach(P=>{w[P]=l[P]});const C=Pr.toFiniteNumber(l.headers.get("content-length")),[A,T]=a&&YC(C,z_(ZC(a),!0))||[];l=new Response(QC(l.body,nT,A,()=>{T&&T(),r&&r()}),w)}d=d||"text";let m=await F_[Pr.findKey(F_,d)||"text"](l,e);return!p&&r&&r(),await new Promise((w,C)=>{qC(w,C,{data:m,headers:nf.from(l.headers),status:l.status,statusText:l.statusText,config:e,request:u})})}catch(h){throw r&&r(),h&&h.name==="TypeError"&&/Load failed|fetch/i.test(h.message)?Object.assign(new ll("Network Error",ll.ERR_NETWORK,e,u),{cause:h.cause||h}):ll.from(h,h&&h.code,e,u)}}),$5={http:XG,xhr:TW,fetch:FW};Pr.forEach($5,(e,o)=>{if(e){try{Object.defineProperty(e,"name",{value:o})}catch{}Object.defineProperty(e,"adapterName",{value:o})}});const aT=e=>`- ${e}`,NW=e=>Pr.isFunction(e)||e===null||e===!1,rT={getAdapter:e=>{e=Pr.isArray(e)?e:[e];const{length:o}=e;let s,O;const W={};for(let _=0;_<o;_++){s=e[_];let g;if(O=s,!NW(s)&&(O=$5[(g=String(s)).toLowerCase()],O===void 0))throw new ll(`Unknown adapter '${g}'`);if(O)break;W[g||"#"+_]=O}if(!O){const _=Object.entries(W).map(([a,v])=>`adapter ${a} `+(v===!1?"is not supported by the environment":"is not available in the build"));let g=o?_.length>1?`since :
|
|
4
4
|
`+_.map(aT).join(`
|
|
@@ -4121,7 +4121,7 @@ uniform ${De} ${He} u_${at};
|
|
|
4121
4121
|
* Vue 3 Carousel 0.3.1
|
|
4122
4122
|
* (c) 2023
|
|
4123
4123
|
* @license MIT
|
|
4124
|
-
*/const Vd={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"}},uD={itemsToShow:{default:Vd.itemsToShow,type:Number},itemsToScroll:{default:Vd.itemsToScroll,type:Number},wrapAround:{default:Vd.wrapAround,type:Boolean},throttle:{default:Vd.throttle,type:Number},snapAlign:{default:Vd.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Vd.transition,type:Number},breakpoints:{default:Vd.breakpoints,type:Object},autoplay:{default:Vd.autoplay,type:Number},pauseAutoplayOnHover:{default:Vd.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Vd.mouseDrag,type:Boolean},touchDrag:{default:Vd.touchDrag,type:Boolean},dir:{default:Vd.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Vd.i18n,type:Object},settings:{default(){return{}},type:Object}};function Oit({config:e,slidesCount:o}){const{snapAlign:s,wrapAround:O,itemsToShow:W=1}=e;if(O)return Math.max(o-1,0);let _;switch(s){case"start":_=o-W;break;case"end":_=o-1;break;case"center":case"center-odd":_=o-Math.ceil((W-.5)/2);break;case"center-even":_=o-Math.ceil(W/2);break;default:_=0;break}return Math.max(_,0)}function Fit({config:e,slidesCount:o}){const{wrapAround:s,snapAlign:O,itemsToShow:W=1}=e;let _=0;if(s||W>o)return _;switch(O){case"start":_=0;break;case"end":_=W-1;break;case"center":case"center-odd":_=Math.floor((W-1)/2);break;case"center-even":_=Math.floor((W-2)/2);break;default:_=0;break}return _}function e9({val:e,max:o,min:s}){return o<s?e:Math.min(Math.max(e,s),o)}function Nit({config:e,currentSlide:o,slidesCount:s}){const{snapAlign:O,wrapAround:W,itemsToShow:_=1}=e;let g=o;switch(O){case"center":case"center-odd":g-=(_-1)/2;break;case"center-even":g-=(_-2)/2;break;case"end":g-=_-1;break}return W?g:e9({val:g,max:s-_,min:0})}function dD(e){return e?e.reduce((o,s)=>{var O;return s.type===t.Fragment?[...o,...dD(s.children)]:((O=s.type)===null||O===void 0?void 0:O.name)==="CarouselSlide"?[...o,s]:o},[]):[]}function t9({val:e,max:o,min:s=0}){return e>o?t9({val:e-(o+1),max:o,min:s}):e<s?t9({val:e+(o+1),max:o,min:s}):e}function Dit(e,o){let s;return o?function(...O){const W=this;s||(e.apply(W,O),s=!0,setTimeout(()=>s=!1,o))}:e}function Vit(e,o){let s;return function(...O){s&&clearTimeout(s),s=setTimeout(()=>{e(...O),s=null},o)}}function Rit(e="",o={}){return Object.entries(o).reduce((s,[O,W])=>s.replace(`{${O}}`,String(W)),e)}var jit=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Vd))),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"},Rit(e.i18n.itemXofY,{currentSlide:o.value+1,slidesCount:s.value}))}}),$it=t.defineComponent({name:"Carousel",props:uD,setup(e,{slots:o,emit:s,expose:O}){var W;const _=t.ref(null),g=t.ref([]),a=t.ref(0),v=t.ref(0),d=t.reactive(Object.assign({},Vd));let n=Object.assign({},Vd),x;const y=t.ref((W=e.modelValue)!==null&&W!==void 0?W:0),b=t.ref(0),u=t.ref(0),r=t.ref(0),i=t.ref(0);let h,l;t.provide("config",d),t.provide("slidesCount",v),t.provide("currentSlide",y),t.provide("maxSlide",r),t.provide("minSlide",i),t.provide("slideWidth",a);function p(){x=Object.assign({},e.breakpoints),n=Object.assign(Object.assign(Object.assign({},n),e),{i18n:Object.assign(Object.assign({},n.i18n),e.i18n),breakpoints:void 0}),w(n)}function m(){if(!x||!Object.keys(x).length)return;const re=Object.keys(x).map(se=>Number(se)).sort((se,me)=>+me-+se);let le=Object.assign({},n);re.some(se=>{const me=window.matchMedia(`(min-width: ${se}px)`).matches;return me&&(le=Object.assign(Object.assign({},le),x[se])),me}),w(le)}function w(re){Object.entries(re).forEach(([le,se])=>d[le]=se)}const C=Vit(()=>{m(),A()},16);function A(){if(!_.value)return;const re=_.value.getBoundingClientRect();a.value=re.width/d.itemsToShow}function T(){v.value<=0||(u.value=Math.ceil((v.value-1)/2),r.value=Oit({config:d,slidesCount:v.value}),i.value=Fit({config:d,slidesCount:v.value}),d.wrapAround||(y.value=e9({val:y.value,max:r.value,min:i.value})))}t.onMounted(()=>{t.nextTick(()=>A()),setTimeout(()=>A(),1e3),m(),U(),window.addEventListener("resize",C,{passive:!0}),s("init")}),t.onUnmounted(()=>{l&&clearTimeout(l),h&&clearInterval(h),window.removeEventListener("resize",C,{passive:!0})});let P=!1;const B={x:0,y:0},E={x:0,y:0},I=t.reactive({x:0,y:0}),M=t.ref(!1),S=t.ref(!1),L=()=>{M.value=!0},k=()=>{M.value=!1};function z(re){["INPUT","TEXTAREA","SELECT"].includes(re.target.tagName)||(P=re.type==="touchstart",P||re.preventDefault(),!(!P&&re.button!==0||$.value)&&(B.x=P?re.touches[0].clientX:re.clientX,B.y=P?re.touches[0].clientY:re.clientY,document.addEventListener(P?"touchmove":"mousemove",F,!0),document.addEventListener(P?"touchend":"mouseup",R,!0)))}const F=Dit(re=>{S.value=!0,E.x=P?re.touches[0].clientX:re.clientX,E.y=P?re.touches[0].clientY:re.clientY;const le=E.x-B.x,se=E.y-B.y;I.y=se,I.x=le},d.throttle);function R(){const re=d.dir==="rtl"?-1:1,le=Math.sign(I.x)*.4,se=Math.round(I.x/a.value+le)*re;if(se&&!P){const me=be=>{be.stopPropagation(),window.removeEventListener("click",me,!0)};window.addEventListener("click",me,!0)}J(y.value-se),I.x=0,I.y=0,S.value=!1,document.removeEventListener(P?"touchmove":"mousemove",F,!0),document.removeEventListener(P?"touchend":"mouseup",R,!0)}function U(){!d.autoplay||d.autoplay<=0||(h=setInterval(()=>{d.pauseAutoplayOnHover&&M.value||ae()},d.autoplay))}function H(){h&&(clearInterval(h),h=null),U()}const $=t.ref(!1);function J(re){const le=d.wrapAround?re:e9({val:re,max:r.value,min:i.value});y.value===le||$.value||(s("slide-start",{slidingToIndex:re,currentSlideIndex:y.value,prevSlideIndex:b.value,slidesCount:v.value}),$.value=!0,b.value=y.value,y.value=le,l=setTimeout(()=>{if(d.wrapAround){const se=t9({val:le,max:r.value,min:0});se!==y.value&&(y.value=se,s("loop",{currentSlideIndex:y.value,slidingToIndex:re}))}s("update:modelValue",y.value),s("slide-end",{currentSlideIndex:y.value,prevSlideIndex:b.value,slidesCount:v.value}),$.value=!1,H()},d.transition))}function ae(){J(y.value+d.itemsToScroll)}function Y(){J(y.value-d.itemsToScroll)}const ee={slideTo:J,next:ae,prev:Y};t.provide("nav",ee),t.provide("isSliding",$);const te=t.computed(()=>Nit({config:d,currentSlide:y.value,slidesCount:v.value}));t.provide("slidesToScroll",te);const X=t.computed(()=>{const re=d.dir==="rtl"?-1:1,le=te.value*a.value*re;return{transform:`translateX(${I.x-le}px)`,transition:`${$.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${v.value*a.value}px`:"",width:"100%"}});function K(){p(),m(),T(),A(),H()}Object.keys(uD).forEach(re=>{["modelValue"].includes(re)||t.watch(()=>e[re],K)}),t.watch(()=>e.modelValue,re=>{re!==y.value&&J(Number(re))}),t.watch(v,T),s("before-init"),p();const ce={config:d,slidesCount:v,slideWidth:a,next:ae,prev:Y,slideTo:J,currentSlide:y,maxSlide:r,minSlide:i,middleSlide:u};O({updateBreakpointsConfigs:m,updateSlidesData:T,updateSlideWidth:A,initDefaultConfigs:p,restartCarousel:K,slideTo:J,next:ae,prev:Y,nav:ee,data:ce});const de=o.default||o.slides,he=o.addons,pe=t.reactive(ce);return()=>{const re=dD(de==null?void 0:de(pe)),le=(he==null?void 0:he(pe))||[];re.forEach((ve,we)=>ve.props.index=we);let se=re;if(d.wrapAround){const ve=re.map((Te,Ce)=>t.cloneVNode(Te,{index:-re.length+Ce,isClone:!0,key:`clone-before-${Ce}`})),we=re.map((Te,Ce)=>t.cloneVNode(Te,{index:re.length+Ce,isClone:!0,key:`clone-after-${Ce}`}));se=[...ve,...re,...we]}g.value=re,v.value=Math.max(re.length,1);const me=t.h("ol",{class:"carousel__track",style:X.value,onMousedownCapture:d.mouseDrag?z:null,onTouchstartPassiveCapture:d.touchDrag?z:null},se),be=t.h("div",{class:"carousel__viewport"},me);return t.h("section",{ref:_,class:{carousel:!0,"is-sliding":$.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:L,onMouseleave:k},[be,le,t.h(jit)])}}}),hD;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(hD||(hD={}));var Uit=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({},Vd))),O=t.inject("currentSlide",t.ref(0)),W=t.inject("slidesToScroll",t.ref(0)),_=t.inject("isSliding",t.ref(!1)),g=()=>e.index===O.value,a=()=>e.index===O.value-1,v=()=>e.index===O.value+1,d=()=>{const n=Math.floor(W.value),x=Math.ceil(W.value+s.itemsToShow-1);return e.index>=n&&e.index<=x};return()=>{var n;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":a(),"carousel__slide--next":v(),"carousel__slide--sliding":_.value},"aria-hidden":!d()},(n=o.default)===null||n===void 0?void 0:n.call(o))}}});const Hit=(e,o)=>{const s=e.__vccOpts||e;for(const[O,W]of o)s[O]=W;return s},Git=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),Wit={class:"gsc-carousel"},qit={key:0},Yit=Git(()=>t.createElementVNode("div",null,"no hay",-1)),Zit=[Yit],Xit={class:"gsc-carousel__2d__slides"},Jit={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Kit=["fill"],Qit={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},eot=["fill"],tot={class:"gsc-carousel__2d__navigation"},not={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},aot=["stroke"],rot={key:1,class:"gsc-carousel__2d__navigation__pagination"},iot=["onClick"],oot={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},sot=["stroke"],lot={__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 O=e;t.useCssVars(r=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const W=t.ref(null),_=t.ref({}),g=t.ref(0),a=t.ref(!1);t.watch(W,r=>{r&&a.value?(a.value=!1,v(O.items)):r&&r.slideTo&&r.slideTo(g.value)},{deep:!0}),t.watch(()=>O.currentItemIndex,r=>{g.value!==r&&y(r)}),t.watch(()=>O.defaultItemByIndex,r=>{g.value!==r&&y(r)}),t.watch(()=>O.items,r=>{W.value?v(r):a.value=!0},{immediate:!0});function v(r){r&&r.length&&W.value&&setTimeout(()=>{if(O.defaultItemByProp){const i=O.items.findIndex(h=>h[O.defaultItemByProp.propName]===O.defaultItemByProp.value);i!==-1?(g.value=i,_.value=r[i]):(g.value=0,_.value=r[0])}else g.value=O.defaultItemByIndex,_.value=r[O.defaultItemByIndex];W.value.slideTo&&W.value.slideTo(g.value),_.value&&g.value===0&&s("input",{selectedItem:_.value,selectedItemIndex:g.value})},500)}function d(){W.value&&W.value.next()}function n(){W.value&&W.value.prev()}function x(){W.value&&W.value.updateSlideWidth()}function y(r){W.value&&W.value.slideTo(r)}function b(r){W.value.slideTo(r)}function u(r){const i=r.slidingToIndex<0?O.items.length-1:r.slidingToIndex===O.items.length?0:r.slidingToIndex;g.value=i,_.value=O.items[i],s("update:currentItemIndex",i),s("input",{selectedItem:_.value,selectedItemIndex:g.value})}return o({prev:n,next:d,updateSlideWidth:x,slideTo:y}),(r,i)=>(t.openBlock(),t.createElementBlock("div",Wit,[O.is3d?(t.openBlock(),t.createElementBlock("div",qit,Zit)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",Xit,[t.createVNode(t.unref($it),{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,(h,l)=>(t.openBlock(),t.createBlock(t.unref(Uit),{key:l},{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{item:h},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]=h=>W.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Jit,[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,Kit)]))],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]=h=>d())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Qit,[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,eot)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",tot,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:i[2]||(i[2]=h=>n())},[(t.openBlock(),t.createElementBlock("svg",not,[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:O.arrowsColor},null,8,aot)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",rot,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(h,l)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${l}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${O.navigationHeight}px`,width:`${g.value===l?O.navigationActiveWidth:O.navigationActiveWidth/2}px`,borderRadius:`${O.navigationBorderRadius}px`,backgroundColor:`${g.value===l?O.navigationActiveColor:O.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:p=>b(l)},null,12,iot))),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]=h=>W.value.next())},[(t.openBlock(),t.createElementBlock("svg",oot,[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:O.arrowsColor},null,8,sot)]))])):t.createCommentVNode("",!0)])],2))]))}},cot=Hit(lot,[["__scopeId","data-v-54620d25"]]),OGt="",pD={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"},FGt="",n9={components:{GSCCarousel:cot,GSCLeaders:_it,GSCRowTable:KN,GSCTableHeader:WN,GSCExpandedInfo:cD},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}=L2(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=[],O=[],W=[];return this.formatFilterStats.map(_=>{e[_.team_id]?e[_.team_id].total=e[_.team_id].total+_.total:(e[_.team_id]={},e[_.team_id].total=_.total,e[_.team_id].id=this.teamInfo[_.team_id].id,e[_.team_id].name=this.teamInfo[_.team_id].name.replace(" Femenil",""),e[_.team_id].img="https://golstatsimages.blob.core.windows.net/teams-80/"+_.team_id+".png",e[_.team_id].effectiveness=this.teamInfo[_.team_id].effectiveness,e[_.team_id].frecuency=this.teamInfo[_.team_id].frecuency,e[_.team_id].game_avg=this.teamInfo[_.team_id].game_avg,e[_.team_id].game_avg_last_season=this.teamInfo[_.team_id].game_avg_last_season,e[_.team_id].games_played_lastseason=this.teamInfo[_.team_id].games_played_lastseason,e[_.team_id].games_played=this.teamInfo[_.team_id].games_played,e[_.team_id].positiontable=this.teamInfo[_.team_id].positiontable,e[_.team_id].goals=this.teamInfo[_.team_id].goals,e[_.team_id].goalsrecived=this.teamInfo[_.team_id].goalsrecived,e[_.team_id].xg=this.teamInfo[_.team_id].xg),o[_.player_id]?_.player_id!=0&&_.player_id!=62117&&(o[_.player_id].total=o[_.player_id].total+_.total):_.player_id!=0&&_.player_id!=62117&&(o[_.player_id]={},o[_.player_id].total=_.total,_.player_id&&this.playersInfo[_.player_id]?(o[_.player_id].name=this.playersInfo[_.player_id].name,o[_.player_id].name_short=this.getnameshort(this.playersInfo[_.player_id].name),o[_.player_id].img=this.playersInfo[_.player_id].img,o[_.player_id].id=this.playersInfo[_.player_id].id,o[_.player_id].age=this.playersInfo[_.player_id].age,o[_.player_id].team=this.playersInfo[_.player_id].team,o[_.player_id].teamname=this.playersInfo[_.player_id].teamname,o[_.player_id].teamid=this.playersInfo[_.player_id].teamid,o[_.player_id].position=this.playersInfo[_.player_id].position,o[_.player_id].positionId=this.playersInfo[_.player_id].positionId,o[_.player_id].positionfull=this.playersInfo[_.player_id].positionfull,o[_.player_id].country=this.playersInfo[_.player_id].country,o[_.player_id].effectiveness=this.playersInfo[_.player_id].effectiveness,o[_.player_id].minutes=this.playersInfo[_.player_id].minutes_played,o[_.player_id].games=this.playersInfo[_.player_id].games_played,o[_.player_id].date=this.playersInfo[_.player_id].date,o[_.player_id].nationality=this.playersInfo[_.player_id].nationality,o[_.player_id].player_country_flag=this.playersInfo[_.player_id].player_country_flag,o[_.player_id].categoryName=this.categoryName):(o[_.player_id].id=_.player_id,o[_.player_id].name=_.player_id,o[_.player_id].img="SIN IMAGEN",o[_.player_id].age="",o[_.player_id].teamname="",o[_.player_id].team="",o[_.player_id].teamid=0,o[_.player_id].position="",o[_.player_id].positionId=0,o[_.player_id].positionfull="",o[_.player_id].country="",o[_.player_id].effectiveness="",o[_.player_id].minutes="",o[_.player_id].games="",o[_.player_id].date="00-00-0000",o[_.player_id].nationality="",o[_.player_id].player_country_flag="",o[_.player_id].categoryName=""))}),s.push(...Object.values(e)),O.push(...Object.values(o)),s=this.sortAndSlice(Object.values(e),60),O=O.sort(this.compareObjectsMinutes).slice(0,60),O=O.map((_,g)=>(_.top=g<9?"0"+(g+1):""+(g+1),_)),s=s.map((_,g)=>(_.top=g<9?"0"+(g+1):""+(g+1),_)),this.filterTeam!==0&&!this.isTeam&&(W=O.filter(_=>_.teamid===this.filterTeam)),this.changeStateLoading(!1),this.isTeam?this.formatArrayPaginate(s):this.filterTeam!=0?this.formatArrayPaginate(W):this.formatArrayPaginate(O)}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),O=Array.from(o);if(s.length!==O.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(" "),O=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 _=O[O.length-1]!=""?O[O.length-1].charAt(0):O[O.length-2]?O[O.length-2].charAt(0):"";return W=W.replace(",",""),_+". "+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,O)=>(s.name<O.name?1:-1)&&(s.total<O.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 O=this.filtersValues.matchResult,W=this.filtersValues.playingAs,_=this.filtersValues.sections,g=this.filtersValues.zone,a=this.translateTopCategories(o);Object.keys(this.filterEmitAux).length>0&&(O=this.filterEmitAux.matchResult,W=this.filterEmitAux.playingAs,_=this.filterEmitAux.sections,g=this.filterEmitAux.zone);const v=1,d=2,n=3,x=this.isTeam?n:d,y=e.player_id;let b=[],u=this.isTeam?e.id:this.filterTeam;y?this.isTeam?u=y:(b=[y],a=a.filter(i=>!i.toString().includes("_r"))):this.isTeam?u=e.id:(b=[e.id],a=a.filter(i=>!i.toString().includes("_r")));const r={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:v,playListType:x,gameIds:null,playerIds:b,goalkeeperIds:[],categoryIds:this.translateTopCategories(o),teamId:u||0,matchResult:O,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:s,playingAs:W,timeSections:_,fieldSections:g,coordinatePoint:this.getCoordinatePointPerCategory(o)}};this.$emit("setopenmedia",r)},emitEventMediaFullTable(e,o,s){let O=this.filtersValues.matchResult,W=this.filtersValues.playingAs,_=this.filtersValues.sections,g=this.filtersValues.zone,a=this.translateTopCategories(o);Object.keys(this.filterEmitAux).length>0&&(O=this.filterEmitAux.matchResult,W=this.filterEmitAux.playingAs,_=this.filterEmitAux.sections,g=this.filterEmitAux.zone);const v=1,d=2,n=3,x=this.isTeam?n:d;let y=[],b=this.isTeam?e.id:this.filterTeam;this.isTeam?b=e.id:(y=[e.id],a=a.filter(r=>!r.toString().includes("_r")));const u={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:v,playListType:x,gameIds:null,playerIds:y,goalkeeperIds:[],categoryIds:a,teamId:b||0,matchResult:O,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:s,playingAs:W,timeSections:_,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(" "),O=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 _=O[O.length-1]!=""?O[O.length-1].charAt(0):O[O.length-2]?O[O.length-2].charAt(0):"";W=W.replace(",","");var g=_+". "+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 O=[],W={},_={},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 a=_u.create({headers:{Authorization:`${this.token}`}});this.isloading=!0;let v={};if(this.typeData==1?this.isWidget&&this.teamWidget!=0?v=await a.get(this.url+"/"+this.gameId+"/"+this.category+"?t="+this.teamWidget):v=await a.get(this.url+"/"+this.gameId+"/"+this.category):this.game.game_status===1?this.isWidget&&this.teamWidget!=0?v=await a.get(this.url+"/"+this.gameId+"/"+this.category+"?acc=1&t="+this.teamWidget):v=await a.get(this.url+"/"+this.gameId+"/"+this.category+"?acc=1"):this.isWidget&&this.teamWidget!=0?v=await a.get(this.urlPrematch+g+"/"+this.category+"?t="+this.teamWidget):v=await a.get(this.urlPrematch+g+"/"+this.category+"?t="+this.game.homeTeam.team_id+"&t="+this.game.awayTeam.team_id),v&&v.data&&v.data.data&&v.data.data.length>0){O=v.data.data.map(n=>this.formatStatsData(n)),v.data.teams.forEach(n=>{W[n[0]]={},W[n[0]].id=n[0],W[n[0]].name=n[1],W[n[0]].abrv=n[2],W[n[0]].img=n[3],W[n[0]].effectiveness=n[4],W[n[0]].games_played=n[5],W[n[0]].games_played_lastseason=n[6],W[n[0]].positiontable=n[7],W[n[0]].goals=n[8],W[n[0]].goalsrecived=n[9],W[n[0]].xg=n[10],W[n[0]].frecuency=n[11],W[n[0]].game_avg=n[12],W[n[0]].game_avg_last_season=n[13]});const d=new Set;v.data.players.forEach(n=>{const x=this.getObjectPlayer(n);this.mapPlayers.set(x.numberId,x);const y=x.numberAge,b=x.teamName.length>0?x.teamName[0].acronym:"",u=x.teamName.length>0?W[x.teamName[0].team_id].name:"",r=x.teamName.length>0?x.teamName[0].team_id:"",i=this.positions[x.numberPositionId-1].fullname,h=this.positions[x.numberPositionId-1].name,l=x.countryId.length>0?x.countryId[0].nationality_id:"",p=x.effectiveness,m=x.min,w=x.games,C=x.date;x.arrayNationalities.forEach(A=>{d.add(A.numberId)}),_[n[0]]={id:n[0],name:n[1],img:n[2],age:y,team:b,teamname:u,teamid:r,position:i,positionfull:h,effectiveness:p,country:l,games_played:w,minutes_played:m,date:C,nationality:x.stringNationalityName,player_country_flag:x.player_country_flag,positionId:x.numberPositionId}}),this.setNationalityIds=d,this.arrayAgeRange=[v.data.min_age,v.data.max_age]}else this.arePlaysEmpty=!0;this.teamInfo=W,this.playersInfo=_,this.formatStats=O,this.formatFilterStats=this.filterRecords(this.filtersSelect),this.statsData=v}catch(O){return Promise.reject(O)}},filterRecords(e){return this.formatStats.length>0?this.formatStats.filter(o=>{const s=e.playingAs.includes(o.playing_as),O=e.matchResult.includes(o.match_result),W=e.sections.includes(o.section),_=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 a=!1;for(const v of g.arrayNationalitiesIds)if(e.setNationalitiesIds.has(v)){a=!0;break}if(!a)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||O)&&(e.sections.length===0||W)&&(e.zone.length===0||_)}):[]},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,O)=>{o[s]=e[O]}),o},getObjectPlayer(e){const o=[],s=e[7].map(W=>(o.push(W.nationality_id),{stringName:W.nationality,numberId:W.nationality_id})),O=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:pD[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:O.length>0?Number(O[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,O)=>{const W=O*this.numRows,_=W+this.numRows;return e.slice(W,_)})},createIntervalTops(){this.intervalIdtops=setInterval(async()=>{await this.getCategoryStats(this.season)},this.timeLiveComparativeAvanced)},clearTopsInterval(){this.intervalIdtops&&(clearInterval(this.intervalIdtops),this.intervalIdtops=null)}},beforeUnmount(){this.clearTopsInterval()}},fD=()=>{t.useCssVars(e=>({baf9c686:e.borderRadius,cba5678a:e.borderWidth,cdd36450:e.borderColor}))},mD=n9.setup;n9.setup=mD?(e,o)=>(fD(),mD(e,o)):fD;const uot={ref:"myDivRef"},dot={class:"btnViewFullList"},hot={class:"text"},pot={class:"groupsLeague"},fot={class:"row-table-carrousel"},mot={key:1,class:"container-no-search-result"},got={key:0,class:"overlay-loading-top"};function yot(e,o,s,O,W,_){const g=t.resolveComponent("GSCLeaders"),a=t.resolveComponent("GSCRowTable"),v=t.resolveComponent("GSCExpandedInfo"),d=t.resolveComponent("GSCCarousel"),n=t.resolveComponent("GSCTableHeader");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(s.type==0?"gsc-top":"gsc-top-full")},[t.createElementVNode("div",uot,[t.createElementVNode("div",dot,[t.createElementVNode("div",hot,[t.createElementVNode("div",pot,t.toDisplayString(s.categoryName),1)])]),s.type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[_.topData.length>0?(t.openBlock(),t.createBlock(d,{key:0,items:_.topData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:_.changeCarrousel},{default:t.withCtx(({item:x})=>[t.createElementVNode("div",fot,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(x,(y,b)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:b},[y.top==1?(t.openBlock(),t.createBlock(g,{key:0,onMediadata:o[0]||(o[0]=u=>_.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?O.elementSize.width>360?"210px":"130px":O.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"11px",onExpand:_.clickexpand,onMore:_.morestats},null,8,["type","type-data","game","team-widget","can-play-videos","is-expanded","data","category-name","buttonMaxWidth","onExpand","onMore"])):(t.openBlock(),t.createBlock(a,{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=>_.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:b%2===0?s.backgroundEven:s.backgroundOdd,onExpand:_.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(v,{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=>_.viewprofile(u,y.teamid),background:b%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",mot,[e.isloading?(t.openBlock(),t.createElementBlock("div",got,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(n,{background:"#183143",type:s.typeTable},null,8,["type"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_.topData,(x,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(x,(b,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:u},[t.createVNode(a,{"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==b.id&&e.expand,onMediadata:o[2]||(o[2]=r=>_.emitEventMediaFullTable(r,s.category,s.categoryName)),data:s.typeTable==0?{position:b.top,player_name:b.name,player_short:b.name_short,player_photo:b.img,total:b.total,id:b.id,player_age:b.age,team_abrev:b.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+b.teamid+".png",player_position:b.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+b.country+".jpg",player_games:b.games,player_min:b.minutes,league_name:" Liga MX "}:{position:b.positiontable,team_logo:b.img,team_abrev:b.name,frequency:b.frecuency,promthistournament:b.game_avg,promlasttournament:b.game_avg_last_season,category:s.category,team_games:b.games_played,total:b.total,id:b.id},height:"71px",background:((y+1)*5+u)%2===0?s.backgroundOdd:s.backgroundEven,onExpand:_.clickexpand},null,8,["type-data","team-widget","game","type","type-view","can-play-videos","is-expanded","data","background","onExpand"]),e.expand&&e.playerexpand==b.id?(t.openBlock(),t.createBlock(v,{key:0,type:s.typeTable,"is-live":s.game.is_live,additionalClass:"fullTable","view-effectiveness":b.positionId!==1,data:s.typeTable==0?{teams:b.teamname,age:b.age,dataofbirth:b.date,nationality:b.nationality,countryFlag:b.player_country_flag,position:b.positionfull,positionfull:b.positionfull,games:b.games,min:b.minutes,goals:b.total,effectiveness:b.effectiveness,category:_.getCategoryName(s.category),id:b.id}:{position:b.positiontable,goals:b.goals,goals_received:b.goalsrecived,games_played:b.games_played,category:s.categoryName,effectiveness:b.effectiveness,xg:b.xg,total:b.total,category:_.getCategoryName(s.category),attendance:"-",id:b.id},onViewprofile:r=>_.viewprofile(r,b.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 vot=Ji(n9,[["render",yot],["__scopeId","data-v-0b419ca1"]]),_ot=(e,o)=>{const s=e.__vccOpts||e;for(const[O,W]of o)s[O]=W;return s},bot={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)}}},xot=["src"],wot=["src"];function kot(e,o,s,O,W,_){return t.openBlock(),t.createElementBlock("div",null,[s.activeClickLabel?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(_.customStyle),class:"gsc-label",onClick:o[0]||(o[0]=(...g)=>_.btnLabel&&_.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(_.customIcon),class:"icon",src:s.icon},null,12,xot)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-label",style:t.normalizeStyle(_.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)=>_.btnClose&&_.btnClose(...g)),style:t.normalizeStyle(_.customIcon),class:"icon",src:s.icon},null,12,wot)):t.createCommentVNode("",!0)],4))])}const Sot=_ot(bot,[["render",kot],["__scopeId","data-v-42ff544a"]]);function Cot(e){const o=t.ref({width:0,height:0});function s(){const O=e.value.getBoundingClientRect();o.value.width=O.width,o.value.height=O.height}return t.onMounted(()=>{s(),window.addEventListener("resize",s)}),t.onUnmounted(()=>{window.removeEventListener("resize",s)}),{elementSize:o}}const Tot=(e,o)=>{const s=e.__vccOpts||e;for(const[O,W]of o)s[O]=W;return s},a9={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)}}},gD=()=>{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}))},yD=a9.setup;a9.setup=yD?(e,o)=>(gD(),yD(e,o)):gD;const Eot={ref:"gscScrollableContainer",class:"scrollable-container"},Aot={class:"scrollable-arrows"},Mot=["width","height","viewBox"],Iot=["stroke"],Pot={class:"scrollable-wrapper"},Bot={class:"scrollable-arrows"},Lot=["width","height","viewBox"],zot=["stroke"];function Oot(e,o,s,O,W,_){return t.openBlock(),t.createElementBlock("div",Eot,[s.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",_.hideShowLeftArrow]),onClick:o[0]||(o[0]=(...g)=>_.scrollLeft&&_.scrollLeft(...g))},[t.createElementVNode("div",Aot,[(t.openBlock(),t.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:_.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,Iot)],8,Mot))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:o[1]||(o[1]=(...g)=>_.getScroll&&_.getScroll(...g))},[t.createElementVNode("div",Pot,[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",_.hideShowRightArrow]),onClick:o[2]||(o[2]=(...g)=>_.scrollRight&&_.scrollRight(...g))},[t.createElementVNode("div",Bot,[(t.openBlock(),t.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:_.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,zot)],8,Lot))])],2)):t.createCommentVNode("",!0)],512)}const Fot=Tot(a9,[["render",Oot],["__scopeId","data-v-b548a08d"]]),Not=(e,o)=>{const s=e.__vccOpts||e;for(const[O,W]of o)s[O]=W;return s},r9={components:{GSCSlider:Fot},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}=Cot(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}}},vD=()=>{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}))},_D=r9.setup;r9.setup=_D?(e,o)=>(vD(),_D(e,o)):vD;const Dot={ref:"myDivRef"},Vot={key:0,class:"gs-switch-container"},Rot=["onClick"],jot={key:1,class:"gs-switch-container-type"},$ot=["onClick"],Uot={key:2,class:"gs-switch-container-carousel"},Hot=["onClick"];function Got(e,o,s,O,W,_){const g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",Dot,[s.type==0?(t.openBlock(),t.createElementBlock("div",Vot,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([_.customGrid(O.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.buttons,(a,v)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:s.height},s.selectedOption==a?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:v,onClick:d=>(s.selectedOption=a,_.clickEmitEvent(a))},t.toDisplayString(a),13,Rot))),128))],4),t.renderSlot(e.$slots,s.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),s.type==1?(t.openBlock(),t.createElementBlock("div",jot,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([_.customGrid(O.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.buttons,(a,v)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:s.height},s.selectedOption==a?{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:v,onClick:d=>(s.selectedOption=a,_.clickEmitEvent(a))},t.toDisplayString(a),13,$ot))),128))],4)])):t.createCommentVNode("",!0),s.type==2?(t.openBlock(),t.createElementBlock("div",Uot,[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,(a,v)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:s.height},s.selectedOption==a?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:v,onClick:d=>(s.selectedOption=a,_.clickEmitEvent(a))},t.toDisplayString(a),13,Hot))),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 i9=Not(r9,[["render",Got],["__scopeId","data-v-8a86dfaf"]]),NGt="",DGt="";function Wot(){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 VGt="",qot={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"},Yot=t.ref(Wot()),Zot={components:{GSCTableHeader:WN,GscSwitchComponent:i9,GSCFilterperteam:sit,GSCFilters:IN,GSCExpandedInfo:cD,GSCLabel:Sot,GSCSeasonSelect:CC,GSCTopCategory:vot,GSCTournamentSelect:wC,GSCRowTable:KN},computed:{...frt.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{...Yot.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:""}},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}=L2(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:rr,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(" "),O=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 _=O[O.length-1]!=""?O[O.length-1].charAt(0):O[O.length-2]?O[O.length-2].charAt(0):"";return W=W.replace(",",""),_+". "+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 O=0;O<this.detaildProductivityCategories.offensive.categories.length;O++)this.detaildProductivityCategories.offensive.categories[O].isSelected=!1;for(let O=0;O<this.detaildProductivityCategories.defensive.categories.length;O++)this.detaildProductivityCategories.defensive.categories[O].isSelected=!1;for(let O=0;O<this.detaildProductivityCategories.possession.categories.length;O++)this.detaildProductivityCategories.possession.categories[O].isSelected=!1;for(let O=0;O<this.detaildProductivityCategories.offensesConditions.length;O++)this.detaildProductivityCategories.offensesConditions[O]=!1;this.setUpTournamentsToFilter();const o=this.$refs.personalDataFilter;o.clearFilters(Vu.All),o.clearFilters(Vu.AGE_RANGE),o.clearFilters(Vu.YEAR),o.clearFilters(Vu.NATIONALITY),o.clearFilters(Vu.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(O,W)=>W+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var e=this.arrayFiltersPlays.findIndex(O=>O.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(e,1);const s=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let O=0;O<s.teams.length;O++)this.teamsscouting.push({id:s.teams[O].team_id,team:s.teams[O].colloquial_name,logo:s.teams[O].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],_=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:_||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=_u.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 O={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:pD[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(O)}if(this.seasonsFilterSelected!=0){const W=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let _=0;_<W.teams.length;_++)this.teamsscouting.push({id:W.teams[_].team_id,team:W.teams[_].colloquial_name,logo:W.teams[_].logo})}this.loadingActive=!1},abrevName(e){var o=e.split(","),s=o[0].split(" "),O=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 _=O[O.length-1]!=""?O[O.length-1].charAt(0):O[O.length-2]?O[O.length-2].charAt(0):"";W=W.replace(",","");var g=_+". "+W;return g},calcularEdad(e){var o=new Date(e),s=new Date,O=s-o,W=Math.floor(O/(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 O=e.ageByRange.min==0?10:e.ageByRange.min,W=e.ageByRange.max==0?40:e.ageByRange.max;this.filterScounting.range_age=[O,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 O=0;O<e.nationalities.length;O++)e.nationalities[O].isSelected&&o.push(e.nationalities[O].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 O=0;O<e.positions.length;O++)e.positions[O].isSelected&&s.push(e.positions[O].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(O=>O.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(O=>O.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(O=>O.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&o!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(o,1);var s=this.arrayFiltersPlays.findIndex(O=>O.type==="onFiltersPredefined");if(s!==-1){for(let O=0;O<this.FVfilterGolstats.length;O++)this.FVfilterGolstats[O].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 _=0;_<this.categoriesDefault.length;_++)this.categoriesDefault[_].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var s=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&s!==-1){for(let _=0;_<this.FVfilterGolstats.length;_++)this.FVfilterGolstats[_].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(O=>O.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,_)=>_+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const O=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let W=0;W<O.teams.length;W++)this.teamsscouting.push({id:O.teams[W].team_id,team:O.teams[W].colloquial_name,logo:O.teams[W].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(e=="onFiltersPlays"){for(let O=0;O<this.categoriesPlaysTypes.offensive.categories.length;O++)this.categoriesPlaysTypes.offensive.categories[O].isSelected=!0;for(let O=0;O<this.categoriesPlaysTypes.defensive.categories.length;O++)this.categoriesPlaysTypes.defensive.categories[O].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[O]);for(let O=0;O<this.categoriesPlaysTypes.possession.categories.length;O++)this.categoriesPlaysTypes.possession.categories[O].isSelected=!0;for(let O=0;O<this.categoriesPlaysTypes.offenses.categories.length;O++)this.categoriesPlaysTypes.offenses.categories[O].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 O=0;O<this.FVfilterGolstats.length;O++)this.FVfilterGolstats[O].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(O=>O.type==="onFiltersPredefined");s!==-1&&this.arrayFiltersPlays.splice(s,1);for(let O=0;O<this.categoriesDefault.length;O++)this.categoriesDefault[O].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(Vu.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(Vu.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(Vu.AGE_RANGE)),e=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(Vu.ELIGIBILITY),e=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(Vu.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(O=>O.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 _=0;_<e.playingAs.length;_++)if(e.playingAs[_].isSelected){const g=e.playingAs[_].name=="Local"?1:2;o.push(g)}for(let _=0;_<e.gameSections.length;_++)e.gameSections[_].isSelected&&s.push(e.gameSections[_].value);this.fVsections=s,this.fVplayingAs=o;var O=this.arrayFiltersPlays.findIndex(_=>_.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"),O!=-1?this.arrayFiltersPlays[O].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)&&(O!=-1?this.arrayFiltersPlays[O].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)&&(O!=-1?this.arrayFiltersPlays[O].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(O!=-1?this.arrayFiltersPlays[O].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)&&(O!=-1?this.arrayFiltersPlays[O].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)&&(O!=-1?this.arrayFiltersPlays[O].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)&&(O!=-1?this.arrayFiltersPlays[O].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)&&(O!=-1?this.arrayFiltersPlays[O].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)&&(O!=-1?this.arrayFiltersPlays[O].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):O!=-1&&this.arrayFiltersPlays.splice(O,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},(O,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(Vu.All),e.clearFilters(Vu.AGE_RANGE),e.clearFilters(Vu.YEAR),e.clearFilters(Vu.NATIONALITY),e.clearFilters(Vu.POSITION),this.rowScoutingData=[];for(let O=0;O<this.detaildProductivityCategories.offensive.categories.length;O++)this.detaildProductivityCategories.offensive.categories[O].isSelected=!1;for(let O=0;O<this.detaildProductivityCategories.defensive.categories.length;O++)this.detaildProductivityCategories.defensive.categories[O].isSelected=!1;for(let O=0;O<this.detaildProductivityCategories.possession.categories.length;O++)this.detaildProductivityCategories.possession.categories[O].isSelected=!1;for(let O=0;O<this.detaildProductivityCategories.offensesConditions.length;O++)this.detaildProductivityCategories.offensesConditions[O]=!1;var o=this.arrayFiltersPlays.findIndex(O=>O.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(o,1),this.setUpTournamentsToFilter();const s=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let O=0;O<s.teams.length;O++)this.teamsscouting.push({id:s.teams[O].team_id,team:s.teams[O].colloquial_name,logo:s.teams[O].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 O="",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 _=e.nationalities.filter(y=>y.isSelected===!0);var g=e.positions.filter(y=>y.isSelected===!0);if(g.length==1&&(O=g[0].name),e.hasOwnProperty("nationalities")&&_.length==1&&(W=_[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 a=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersElegibility");a!=-1?this.arrayFiltersPlays[a].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var a=this.arrayFiltersPlays.findIndex(b=>b.type==="onFiltersElegibility");this.arrayFiltersPlays.splice(a,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var v=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersPosition");v!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[v].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+O:this.arrayFiltersPlays.splice(v,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+O,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 n=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersAge");n!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[n].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(n,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 n=this.arrayFiltersPlays.findIndex(b=>b.type==="onFiltersAge");n!=-1&&this.arrayFiltersPlays.splice(n,1)}if(e.hasOwnProperty("nationalities")&&this.fVnationalities.size!=e.nationalities.length&&this.fVnationalities.size>0){var x=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersNationality");x!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[x].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+W:this.arrayFiltersPlays.splice(x,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=_u.create({headers:{Authorization:`${this.token}`}}),{data:o}=await e.get(this.tournamentsUrl);return o},async fetchTeams(){const e=_u.create({headers:{Authorization:`${this.token}`}}),{data:o}=await e.get(this.teamsUrl+this.seasonActive);return o},async fetchTeamsScouting(e){const o=_u.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=_u.create({headers:{Authorization:`${this.token}`}}),{data:O}=await s.get(o+e.id);if(Object.keys(O[0].match_lapse_combinations).forEach(x=>{this.predefinedFiltersMatchLapse[x.toString()]=O[0].match_lapse_combinations[x]}),Object.keys(O[0].playing_as_combinations).forEach(x=>{this.predefinedFiltersPlayingAs[x.toString()]=O[0].playing_as_combinations[x]}),Object.keys(O[0].field_sections_combinations).forEach(x=>{this.predefinedFiltersSections[x.toString()]=O[0].field_sections_combinations[x]}),O[0]){for(let x=0;x<O[0].filter_records.length;x++){var W=O[0].description;if(O[0].filter_records[x].field_sections!==void 0){const b=O[0].filter_records[x].field_sections.toString();(this.predefinedFiltersSections[b]||this.predefinedFiltersSections[b]=="")&&(this.predefinedFiltersSections[b]==""?W=W.replace(" [en {field_sections}]",this.predefinedFiltersSections[b]):W=W.replace("{field_sections}",this.predefinedFiltersSections[b]))}if(O[0].filter_records[x].match_lapse!==void 0){const b=O[0].filter_records[x].match_lapse.toString();(this.predefinedFiltersMatchLapse[b]||this.predefinedFiltersMatchLapse[b]=="")&&(this.predefinedFiltersMatchLapse[b]==""?W=W.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[b]):W=W.replace("{match_lapse}",this.predefinedFiltersMatchLapse[b]))}if(O[0].filter_records[x].playing_as!==void 0){const b=O[0].filter_records[x].playing_as.toString();(this.predefinedFiltersPlayingAs[b]||this.predefinedFiltersPlayingAs[b]=="")&&(this.predefinedFiltersPlayingAs[b]==""?W=W.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[b]):W=W.replace("{playing_as}",this.predefinedFiltersPlayingAs[b]))}O[0].filter_records[x].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}",O[0].category_name);const y=W.split(": ");var _=y[1];_.length>129&&this.windowWidth>1358&&(_=_.substring(0,129),_=_+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||O[0].filter_records[x].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:x,category_name:e.name,id_category:O[0].id,title:y[0]+":",text:y[1],textOrigin:O[0].description,titledots:_,filtersPredefined:{matchResult:O[0].filter_records[x].match_result,playingAs:O[0].filter_records[x].playing_as,sections:O[0].filter_records[x].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:O[0].type_zone,zone:O[0].filter_records[x].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var g=[];for(let x=0;x<this.arrayPredefinedFilters.length;x++){var a=0,v=new Set,d={},n=this.arrayPredefinedFilters[x].text.replace(/\*.*?\*/,"");if(n=n.replace(/\*/g,""),n=n.replace(/ +/g," "),this.arrayPredefinedFilters[x].filtersPredefined.elegible.length>0&&(a+=1),(this.arrayPredefinedFilters[x].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[x].filtersPredefined.start_age.length!=0)&&(a+=1),this.arrayPredefinedFilters[x].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[x].filtersPredefined.start_age!=0?d.arrayAgeRange=[this.arrayPredefinedFilters[x].filtersPredefined.start_age,this.arrayPredefinedFilters[x].filtersPredefined.end_age]:this.arrayPredefinedFilters[x].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[x].filtersPredefined.start_age==0?d.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[x].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[x].filtersPredefined.end_age==0?d.arrayAgeRange=[this.arrayPredefinedFilters[x].filtersPredefined.start_age,60]:d.arrayAgeRange=[1,this.arrayPredefinedFilters[x].filtersPredefined.end_age],this.arrayPredefinedFilters[x].filtersPredefined.matchResult.length!=3&&(a+=1),d.matchResult=this.arrayPredefinedFilters[x].filtersPredefined.matchResult,this.arrayPredefinedFilters[x].filtersPredefined.nationalities.length>0&&(a+=1),this.arrayPredefinedFilters[x].filtersPredefined.nationalities.length!=0){for(let y=0;y<this.arrayPredefinedFilters[x].filtersPredefined.nationalities.length;y++)v.add(this.arrayPredefinedFilters[x].filtersPredefined.nationalities[y]);d.setNationalitiesIds=v}else v.add(138),v.add(222),v.add(163),v.add(51),v.add(226),v.add(10),v.add(223),v.add(96),v.add(171),v.add(198),v.add(105),v.add(80),v.add(29),v.add(74),v.add(216),v.add(196),v.add(64),v.add(155),v.add(156),v.add(89),v.add(106),v.add(81),v.add(233),v.add(204),d.setNationalitiesIds=v;this.arrayPredefinedFilters[x].filtersPredefined.playingAs.length!=2&&(a+=1),d.playingAs=this.arrayPredefinedFilters[x].filtersPredefined.playingAs,this.arrayPredefinedFilters[x].filtersPredefined.positions.length>0&&(a+=1),this.arrayPredefinedFilters[x].filtersPredefined.positions.length>0?d.setPositionsIds=this.arrayPredefinedFilters[x].filtersPredefined.positions:d.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[x].filtersPredefined.sections.length!=6&&(a+=1),this.arrayPredefinedFilters[x].filtersPredefined.sections.length>0?d.sections=this.arrayPredefinedFilters[x].filtersPredefined.sections:d.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[x].filtersPredefined.zone.length!=16&&(a+=1),this.arrayPredefinedFilters[x].filtersPredefined.zone.length>0?d.zone=this.arrayPredefinedFilters[x].filtersPredefined.zone:d.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],d.typeZone=this.arrayPredefinedFilters[x].filtersPredefined.typeZone,g.push({id:x+1,name:n,isSelected:!1,value:a,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((n,x)=>n-x).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 O=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[O]||this.predefinedFiltersMatchLapse[O]=="")this.predefinedFiltersMatchLapse[O]==""?e=e.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[O]):e=e.replace("{match_lapse}",this.predefinedFiltersMatchLapse[O]);else{e=e.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var W="";O.includes(1)&&(W=W+"0-15, "),O.includes(2)&&(W=W+"16-30, "),O.includes(3)&&(W=W+"31-45, "),O.includes(4)&&(W=W+"46-60, "),O.includes(5)&&(W=W+"61-75, "),O.includes(6)&&(W=W+"76-90, "),W=W.slice(0,-2),W=W.replace(/,([^,]*)$/," y $1"),e=e.replace("{match_lapse_selected}",W)}const _=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[_]||this.predefinedFiltersPlayingAs[_]=="")&&(this.predefinedFiltersPlayingAs[_]==""?e=e.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[_]):e=e.replace("{playing_as}",this.predefinedFiltersPlayingAs[_])),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 a=g[1].charAt(0).toUpperCase()+g[1].toLowerCase().slice(1),v=g[1].charAt(0).toUpperCase()+g[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=a,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=g[0]+":";const d=v.match(/\*/g);if(d&&d.length)if(d.length%2===0)for(let n=1;n<=d.length;n++)n%2===0||(v=v.replace("*",'<span style="color: #ffff03" >'));else v=v.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=v},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=_u.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)}}},Xot={ref:"myDivRefTopsFull"},Jot={key:0,class:"overlay-loading"},Kot={key:0,class:"cont-leyemd-multipleleagues"},Qot={key:0,style:{"margin-left":"10px"}},est={key:3,style:{width:"100%",height:"295px"}};function tst(e,o,s,O,W,_){t.resolveComponent("GSCTournamentSelect"),t.resolveComponent("GSCSeasonSelect");const g=t.resolveComponent("GscSwitchComponent"),a=t.resolveComponent("GSCFilterperteam"),v=t.resolveComponent("GSCFilters"),d=t.resolveComponent("GSCLabel"),n=t.resolveComponent("GSCTopCategory"),x=t.resolveComponent("GSCTableHeader"),y=t.resolveComponent("GSCRowTable"),b=t.resolveComponent("GSCExpandedInfo");return t.openBlock(),t.createElementBlock("div",Xot,[W.loadingActive?(t.openBlock(),t.createElementBlock("div",Jot,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(a,{data:W.teams,"team-id":s.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:_.clickTeam,onClickAll:_.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?"":O.elementSize.width>760?"display: none;":"")},[t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionClass),id:"menu-section"},[O.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)=>_.clickCloseFilters&&_.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:_.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)=>_.openMenuFilters&&_.openMenuFilters(...u))},null,6),[[t.vShow,O.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},[O.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.withDirectives(t.createVNode(v,t.mergeProps({"button-filter-props":_.filterButtonProps},O.elementSize.width<420?W.expansionPanelModePropsMobil270:O.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{"filter-type":W.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":_.onFiltersPlays,filters:W.categoriesPlaysTypes,onApply:_.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[t.vShow,!W.showFullTable]]),(t.openBlock(),t.createBlock(v,t.mergeProps({"button-filter-props":_.filterButtonProps},O.elementSize.width<420?W.expansionPanelModePropsMobil270:O.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{key:W.updateFilterField,"filter-type":W.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":_.onFiltersField,filters:W.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),t.createVNode(v,t.mergeProps({"button-filter-props":_.filterButtonProps},O.elementSize.width<420?W.expansionPanelModePropsMobil270:O.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{"filter-type":W.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":_.onFiltersDetails,filters:W.detailsObject}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]),W.optionSelected==="Jugadores"?(t.openBlock(),t.createBlock(v,t.mergeProps({key:0,ref:"personalDataFilterPlayers","button-filter-props":_.filterButtonProps},O.elementSize.width<420?W.expansionPanelModePropsMobil270:O.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":_.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},[O.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(),t.createBlock(v,t.mergeProps({"button-filter-props":_.filterButtonProps},O.elementSize.width<420?W.expansionPanelModePropsMobil270:O.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":_.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),t.createVNode(v,t.mergeProps({"button-filter-props":_.filterButtonProps},O.elementSize.width<420?W.expansionPanelModePropsMobil270:O.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":_.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","season","onUpdate:filters"]),t.createVNode(v,t.mergeProps({"button-filter-props":_.filterButtonProps},O.elementSize.width<420?W.expansionPanelModePropsMobil270:O.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{"filter-type":W.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:W.universeData,"onUpdate:filters":_.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),t.createVNode(v,t.mergeProps({"button-filter-props":_.filterButtonProps},O.elementSize.width<420?W.expansionPanelModePropsMobil270:O.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{"filter-type":W.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":_.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)=>_.getScoutingData&&_.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(v,t.mergeProps({"button-filter-props":_.filterButtonProps,modalHeight:"300px"},O.elementSize.width<420?W.expansionPanelModePropsMobil270:O.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModePropsTypePlays,{"filter-type":W.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:W.updateFilterPlaytypesGolstats,"onUpdate:filters":_.onFiltersPlaysTypes,filters:W.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(t.openBlock(),t.createBlock(v,t.mergeProps({"button-filter-props":_.filterButtonProps,modalHeight:"300px"},O.elementSize.width<420?W.expansionPanelModePropsMobil270:O.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{"filter-type":W.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:W.updateFilterGolstats,"onUpdate:filters":_.onFiltersGolStats,filters:_.filterGolstats}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):t.createCommentVNode("",!0)],2),[[t.vShow,O.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",Kot,[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(a,{data:W.teamsscouting,"team-id":W.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:W.updateFilterTeamsScouting,onClickTeam:_.clickTeamScouting,onClickAll:_.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",Qot,[t.createVNode(d,{"text-value":"Categoría - "+W.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:_.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,r)=>(t.openBlock(),t.createElementBlock("div",{key:r,style:{"margin-left":"10px"}},[t.createVNode(d,{"text-value":u.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:_.deleteLabelFilter,id:u.type,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:O.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)=>_.onClickDeleteFilter&&_.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,r)=>(t.openBlock(),t.createElementBlock("div",{key:r,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(n,{"is-widget":s.isWidget,"team-widget":s.teamWidget,"time-live-comparative-avanced":s.timeLiveComparativeAvanced,"is-team":W.isTeam,onMore:_.onShowFullTable,"border-width":0,onIntervalidtops:_.intervalidtops,"can-play-videos":s.canPlayVideos,"border-radius":"12px","game-id":s.gameId,game:s.game,typeData:s.typeData,"filters-prop":_.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:_.clickprofile,onSetopenmedia:_.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(n,{"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:_.intervalidtops,game:s.game,typeData:s.typeData,category:W.showFullCategory,type:1,"type-table":W.typeTable,categoryName:"","filters-prop":_.filterChange,"season-selected":s.seasonSelected,season:s.seasonActive,"filter-team":s.teamselect,key:W.updateTablesfull,onClickprofile:_.clickprofile,onSetopenmedia:_.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(n,{"is-widget":s.isWidget,"team-widget":s.teamWidget,"is-team":W.isTeam,"time-live-comparative-avanced":s.timeLiveComparativeAvanced,onIntervalidtops:_.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":_.filterChangePredefined,"season-selected":s.seasonSelected,season:s.seasonActive,"filter-team":s.teamselect,key:W.updateTables,onClickprofile:_.clickprofile,onSetopenmedia:_.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(x,{key:0,background:"#183143",type:2})):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.rowScoutingData,(u,r)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:r},[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:_.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:r%2===0?s.backgroundOdd:s.backgroundEven,onExpand:_.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),W.expand&&W.playerexpand==u.id?(t.openBlock(),t.createBlock(b,{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=>_.viewprofile(i,u.season_id,u.team_id),background:r%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)=>_.onClickDeleteFilter&&_.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)=>_.getScoutingData&&_.getScoutingData(...u))}," Buscar ",2)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),W.loadingActive?(t.openBlock(),t.createElementBlock("div",est)):t.createCommentVNode("",!0)],6))],6)):t.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const nst=Ji(Zot,[["render",tst],["__cssModules",{$style:qot}]]),Bqt="";let bD=null;const ast={components:{GSCDatosGSMain:prt,GSCCheckbox:v1,GSCRadioToggle:hF,GSCTopFull:nst},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}},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)bD=new ResizeObserver(()=>{this.widthSection=this.$refs.comparative.clientWidth}),bD.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)}},rst={class:"container-comparative",ref:"comparative"},ist={class:"container-btn"},ost={class:"items-container-btn"},sst={class:"container-sections"},lst={key:0,class:"container-teams-menu"},cst={class:"container-team-menu-home"},ust=["src"],dst={class:"container-team-menu-away"},hst=["src"],pst={key:1,class:"container-switch-menu"},fst={class:"container-leyend"},mst={class:"container-tops"};function gst(e,o,s,O,W,_){const g=t.resolveComponent("GSCDatosGSMain"),a=t.resolveComponent("GSCCheckbox"),v=t.resolveComponent("GSCRadioToggle"),d=t.resolveComponent("GSCTopFull");return t.openBlock(),t.createElementBlock("div",rst,[t.createElementVNode("div",ist,[t.createElementVNode("div",ost,[t.createElementVNode("div",{class:t.normalizeClass([W.widthSection>480?"btn-destacados":"btn-destacados-movil",W.activeSection=="destacados"?"active":""]),onClick:o[0]||(o[0]=n=>_.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]=n=>_.clickOptSection("avanzado"))}," Avanzado ",2)])]),t.createElementVNode("div",sst,[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:_.openmedia,onIntervalidgs:_.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",lst,[t.createElementVNode("div",cst,[(t.openBlock(),t.createBlock(a,{fontFamily:"Poppins-Regular","onUpdate:modelValue":_.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,ust),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",dst,[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,hst),(t.openBlock(),t.createBlock(a,{fontFamily:"Poppins-Regular","onUpdate:modelValue":_.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",pst,[t.createVNode(v,{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:_.ChangeRadio},null,8,["value-default","onChange"])])):t.createCommentVNode("",!0),t.createElementVNode("div",fst,[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",mst,[t.createVNode(d,{"is-widget":s.isWidget,"team-widget":s.teamWidget,"time-live-comparative-avanced":s.timeLiveComparativeAvanced,"can-play-videos":s.canPlayVideos,onOpenmedia:_.openmedia,onOpenProfileTeam:_.onOpenProfileTeam,onIntervalidtops:_.intervalidtops,onOpenProfilePlayer:_.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},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"])])],64)):t.createCommentVNode("",!0)])],512)}const yst=Ji(ast,[["render",gst],["__scopeId","data-v-4114a187"]]);var vst=Object.defineProperty,_st=(e,o,s)=>o in e?vst(e,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[o]=s,o9=(e,o,s)=>_st(e,typeof o!="symbol"?o+"":o,s);function xD(e,o){return function(){return e.apply(o,arguments)}}const{toString:bst}=Object.prototype,{getPrototypeOf:s9}=Object,{iterator:K3,toStringTag:wD}=Symbol,Q3=(e=>o=>{const s=bst.call(o);return e[s]||(e[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),Ef=e=>(e=e.toLowerCase(),o=>Q3(o)===e),ew=e=>o=>typeof o===e,{isArray:Xy}=Array,z2=ew("undefined");function xst(e){return e!==null&&!z2(e)&&e.constructor!==null&&!z2(e.constructor)&&sp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const kD=Ef("ArrayBuffer");function wst(e){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(e):o=e&&e.buffer&&kD(e.buffer),o}const kst=ew("string"),sp=ew("function"),SD=ew("number"),tw=e=>e!==null&&typeof e=="object",Sst=e=>e===!0||e===!1,nw=e=>{if(Q3(e)!=="object")return!1;const o=s9(e);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(wD in e)&&!(K3 in e)},Cst=Ef("Date"),Tst=Ef("File"),Est=Ef("Blob"),Ast=Ef("FileList"),Mst=e=>tw(e)&&sp(e.pipe),Ist=e=>{let o;return e&&(typeof FormData=="function"&&e instanceof FormData||sp(e.append)&&((o=Q3(e))==="formdata"||o==="object"&&sp(e.toString)&&e.toString()==="[object FormData]"))},Pst=Ef("URLSearchParams"),[Bst,Lst,zst,Ost]=["ReadableStream","Request","Response","Headers"].map(Ef),Fst=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function O2(e,o,{allOwnKeys:s=!1}={}){if(e===null||typeof e>"u")return;let O,W;if(typeof e!="object"&&(e=[e]),Xy(e))for(O=0,W=e.length;O<W;O++)o.call(null,e[O],O,e);else{const _=s?Object.getOwnPropertyNames(e):Object.keys(e),g=_.length;let a;for(O=0;O<g;O++)a=_[O],o.call(null,e[a],a,e)}}function CD(e,o){o=o.toLowerCase();const s=Object.keys(e);let O=s.length,W;for(;O-- >0;)if(W=s[O],o===W.toLowerCase())return W;return null}const G1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,TD=e=>!z2(e)&&e!==G1;function l9(){const{caseless:e}=TD(this)&&this||{},o={},s=(O,W)=>{const _=e&&CD(o,W)||W;nw(o[_])&&nw(O)?o[_]=l9(o[_],O):nw(O)?o[_]=l9({},O):Xy(O)?o[_]=O.slice():o[_]=O};for(let O=0,W=arguments.length;O<W;O++)arguments[O]&&O2(arguments[O],s);return o}const Nst=(e,o,s,{allOwnKeys:O}={})=>(O2(o,(W,_)=>{s&&sp(W)?e[_]=xD(W,s):e[_]=W},{allOwnKeys:O}),e),Dst=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Vst=(e,o,s,O)=>{e.prototype=Object.create(o.prototype,O),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:o.prototype}),s&&Object.assign(e.prototype,s)},Rst=(e,o,s,O)=>{let W,_,g;const a={};if(o=o||{},e==null)return o;do{for(W=Object.getOwnPropertyNames(e),_=W.length;_-- >0;)g=W[_],(!O||O(g,e,o))&&!a[g]&&(o[g]=e[g],a[g]=!0);e=s!==!1&&s9(e)}while(e&&(!s||s(e,o))&&e!==Object.prototype);return o},jst=(e,o,s)=>{e=String(e),(s===void 0||s>e.length)&&(s=e.length),s-=o.length;const O=e.indexOf(o,s);return O!==-1&&O===s},$st=e=>{if(!e)return null;if(Xy(e))return e;let o=e.length;if(!SD(o))return null;const s=new Array(o);for(;o-- >0;)s[o]=e[o];return s},Ust=(e=>o=>e&&o instanceof e)(typeof Uint8Array<"u"&&s9(Uint8Array)),Hst=(e,o)=>{const s=(e&&e[K3]).call(e);let O;for(;(O=s.next())&&!O.done;){const W=O.value;o.call(e,W[0],W[1])}},Gst=(e,o)=>{let s;const O=[];for(;(s=e.exec(o))!==null;)O.push(s);return O},Wst=Ef("HTMLFormElement"),qst=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,s,O){return s.toUpperCase()+O}),ED=(({hasOwnProperty:e})=>(o,s)=>e.call(o,s))(Object.prototype),Yst=Ef("RegExp"),AD=(e,o)=>{const s=Object.getOwnPropertyDescriptors(e),O={};O2(s,(W,_)=>{let g;(g=o(W,_,e))!==!1&&(O[_]=g||W)}),Object.defineProperties(e,O)},Zst=e=>{AD(e,(o,s)=>{if(sp(e)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const O=e[s];if(sp(O)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},Xst=(e,o)=>{const s={},O=W=>{W.forEach(_=>{s[_]=!0})};return Xy(e)?O(e):O(String(e).split(o)),s},Jst=()=>{},Kst=(e,o)=>e!=null&&Number.isFinite(e=+e)?e:o;function Qst(e){return!!(e&&sp(e.append)&&e[wD]==="FormData"&&e[K3])}const elt=e=>{const o=new Array(10),s=(O,W)=>{if(tw(O)){if(o.indexOf(O)>=0)return;if(!("toJSON"in O)){o[W]=O;const _=Xy(O)?[]:{};return O2(O,(g,a)=>{const v=s(g,W+1);!z2(v)&&(_[a]=v)}),o[W]=void 0,_}}return O};return s(e,0)},tlt=Ef("AsyncFunction"),nlt=e=>e&&(tw(e)||sp(e))&&sp(e.then)&&sp(e.catch),MD=((e,o)=>e?setImmediate:o?((s,O)=>(G1.addEventListener("message",({source:W,data:_})=>{W===G1&&_===s&&O.length&&O.shift()()},!1),W=>{O.push(W),G1.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",sp(G1.postMessage)),alt=typeof queueMicrotask<"u"?queueMicrotask.bind(G1):typeof process<"u"&&process.nextTick||MD,rlt=e=>e!=null&&sp(e[K3]),Lr={isArray:Xy,isArrayBuffer:kD,isBuffer:xst,isFormData:Ist,isArrayBufferView:wst,isString:kst,isNumber:SD,isBoolean:Sst,isObject:tw,isPlainObject:nw,isReadableStream:Bst,isRequest:Lst,isResponse:zst,isHeaders:Ost,isUndefined:z2,isDate:Cst,isFile:Tst,isBlob:Est,isRegExp:Yst,isFunction:sp,isStream:Mst,isURLSearchParams:Pst,isTypedArray:Ust,isFileList:Ast,forEach:O2,merge:l9,extend:Nst,trim:Fst,stripBOM:Dst,inherits:Vst,toFlatObject:Rst,kindOf:Q3,kindOfTest:Ef,endsWith:jst,toArray:$st,forEachEntry:Hst,matchAll:Gst,isHTMLForm:Wst,hasOwnProperty:ED,hasOwnProp:ED,reduceDescriptors:AD,freezeMethods:Zst,toObjectSet:Xst,toCamelCase:qst,noop:Jst,toFiniteNumber:Kst,findKey:CD,global:G1,isContextDefined:TD,isSpecCompliantForm:Qst,toJSONObject:elt,isAsyncFn:tlt,isThenable:nlt,setImmediate:MD,asap:alt,isIterable:rlt};function _l(e,o,s,O,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),O&&(this.request=O),W&&(this.response=W,this.status=W.status?W.status:null)}Lr.inherits(_l,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:Lr.toJSONObject(this.config),code:this.code,status:this.status}}});const ID=_l.prototype,PD={};["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=>{PD[e]={value:e}}),Object.defineProperties(_l,PD),Object.defineProperty(ID,"isAxiosError",{value:!0}),_l.from=(e,o,s,O,W,_)=>{const g=Object.create(ID);return Lr.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),_l.call(g,e.message,o,s,O,W),g.cause=e,g.name=e.name,_&&Object.assign(g,_),g};const ilt=null;function c9(e){return Lr.isPlainObject(e)||Lr.isArray(e)}function BD(e){return Lr.endsWith(e,"[]")?e.slice(0,-2):e}function LD(e,o,s){return e?e.concat(o).map(function(O,W){return O=BD(O),!s&&W?"["+O+"]":O}).join(s?".":""):o}function olt(e){return Lr.isArray(e)&&!e.some(c9)}const slt=Lr.toFlatObject(Lr,{},null,function(e){return/^is[A-Z]/.test(e)});function aw(e,o,s){if(!Lr.isObject(e))throw new TypeError("target must be an object");o=o||new FormData,s=Lr.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,u){return!Lr.isUndefined(u[b])});const O=s.metaTokens,W=s.visitor||d,_=s.dots,g=s.indexes,a=(s.Blob||typeof Blob<"u"&&Blob)&&Lr.isSpecCompliantForm(o);if(!Lr.isFunction(W))throw new TypeError("visitor must be a function");function v(b){if(b===null)return"";if(Lr.isDate(b))return b.toISOString();if(Lr.isBoolean(b))return b.toString();if(!a&&Lr.isBlob(b))throw new _l("Blob is not supported. Use a Buffer instead.");return Lr.isArrayBuffer(b)||Lr.isTypedArray(b)?a&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function d(b,u,r){let i=b;if(b&&!r&&typeof b=="object"){if(Lr.endsWith(u,"{}"))u=O?u:u.slice(0,-2),b=JSON.stringify(b);else if(Lr.isArray(b)&&olt(b)||(Lr.isFileList(b)||Lr.endsWith(u,"[]"))&&(i=Lr.toArray(b)))return u=BD(u),i.forEach(function(h,l){!(Lr.isUndefined(h)||h===null)&&o.append(g===!0?LD([u],l,_):g===null?u:u+"[]",v(h))}),!1}return c9(b)?!0:(o.append(LD(r,u,_),v(b)),!1)}const n=[],x=Object.assign(slt,{defaultVisitor:d,convertValue:v,isVisitable:c9});function y(b,u){if(!Lr.isUndefined(b)){if(n.indexOf(b)!==-1)throw Error("Circular reference detected in "+u.join("."));n.push(b),Lr.forEach(b,function(r,i){(!(Lr.isUndefined(r)||r===null)&&W.call(o,r,Lr.isString(i)?i.trim():i,u,x))===!0&&y(r,u?u.concat(i):[i])}),n.pop()}}if(!Lr.isObject(e))throw new TypeError("data must be an object");return y(e),o}function zD(e){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return o[s]})}function u9(e,o){this._pairs=[],e&&aw(e,this,o)}const OD=u9.prototype;OD.append=function(e,o){this._pairs.push([e,o])},OD.toString=function(e){const o=e?function(s){return e.call(this,s,zD)}:zD;return this._pairs.map(function(s){return o(s[0])+"="+o(s[1])},"").join("&")};function llt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function FD(e,o,s){if(!o)return e;const O=s&&s.encode||llt;Lr.isFunction(s)&&(s={serialize:s});const W=s&&s.serialize;let _;if(W?_=W(o,s):_=Lr.isURLSearchParams(o)?o.toString():new u9(o,s).toString(O),_){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+_}return e}let ND=class{constructor(){this.handlers=[]}use(o,s,O){return this.handlers.push({fulfilled:o,rejected:s,synchronous:O?O.synchronous:!1,runWhen:O?O.runWhen:null}),this.handlers.length-1}eject(o){this.handlers[o]&&(this.handlers[o]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(o){Lr.forEach(this.handlers,function(s){s!==null&&o(s)})}};const DD={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},clt=typeof URLSearchParams<"u"?URLSearchParams:u9,ult=typeof FormData<"u"?FormData:null,dlt=typeof Blob<"u"?Blob:null,hlt={isBrowser:!0,classes:{URLSearchParams:clt,FormData:ult,Blob:dlt},protocols:["http","https","file","blob","url","data"]},d9=typeof window<"u"&&typeof document<"u",h9=typeof navigator=="object"&&navigator||void 0,plt=d9&&(!h9||["ReactNative","NativeScript","NS"].indexOf(h9.product)<0),flt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",mlt=d9&&window.location.href||"http://localhost",glt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:d9,hasStandardBrowserEnv:plt,hasStandardBrowserWebWorkerEnv:flt,navigator:h9,origin:mlt},Symbol.toStringTag,{value:"Module"})),vh={...glt,...hlt};function ylt(e,o){return aw(e,new vh.classes.URLSearchParams,Object.assign({visitor:function(s,O,W,_){return vh.isNode&&Lr.isBuffer(s)?(this.append(O,s.toString("base64")),!1):_.defaultVisitor.apply(this,arguments)}},o))}function vlt(e){return Lr.matchAll(/\w+|\[(\w*)]/g,e).map(o=>o[0]==="[]"?"":o[1]||o[0])}function _lt(e){const o={},s=Object.keys(e);let O;const W=s.length;let _;for(O=0;O<W;O++)_=s[O],o[_]=e[_];return o}function VD(e){function o(s,O,W,_){let g=s[_++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),v=_>=s.length;return g=!g&&Lr.isArray(W)?W.length:g,v?(Lr.hasOwnProp(W,g)?W[g]=[W[g],O]:W[g]=O,!a):((!W[g]||!Lr.isObject(W[g]))&&(W[g]=[]),o(s,O,W[g],_)&&Lr.isArray(W[g])&&(W[g]=_lt(W[g])),!a)}if(Lr.isFormData(e)&&Lr.isFunction(e.entries)){const s={};return Lr.forEachEntry(e,(O,W)=>{o(vlt(O),W,s,0)}),s}return null}function blt(e,o,s){if(Lr.isString(e))try{return(o||JSON.parse)(e),Lr.trim(e)}catch(O){if(O.name!=="SyntaxError")throw O}return(s||JSON.stringify)(e)}const F2={transitional:DD,adapter:["xhr","http","fetch"],transformRequest:[function(e,o){const s=o.getContentType()||"",O=s.indexOf("application/json")>-1,W=Lr.isObject(e);if(W&&Lr.isHTMLForm(e)&&(e=new FormData(e)),Lr.isFormData(e))return O?JSON.stringify(VD(e)):e;if(Lr.isArrayBuffer(e)||Lr.isBuffer(e)||Lr.isStream(e)||Lr.isFile(e)||Lr.isBlob(e)||Lr.isReadableStream(e))return e;if(Lr.isArrayBufferView(e))return e.buffer;if(Lr.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let _;if(W){if(s.indexOf("application/x-www-form-urlencoded")>-1)return ylt(e,this.formSerializer).toString();if((_=Lr.isFileList(e))||s.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return aw(_?{"files[]":e}:e,g&&new g,this.formSerializer)}}return W||O?(o.setContentType("application/json",!1),blt(e)):e}],transformResponse:[function(e){const o=this.transitional||F2.transitional,s=o&&o.forcedJSONParsing,O=this.responseType==="json";if(Lr.isResponse(e)||Lr.isReadableStream(e))return e;if(e&&Lr.isString(e)&&(s&&!this.responseType||O)){const W=!(o&&o.silentJSONParsing)&&O;try{return JSON.parse(e)}catch(_){if(W)throw _.name==="SyntaxError"?_l.from(_,_l.ERR_BAD_RESPONSE,this,null,this.response):_}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:vh.classes.FormData,Blob:vh.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Lr.forEach(["delete","get","head","post","put","patch"],e=>{F2.headers[e]={}});const xlt=Lr.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"]),wlt=e=>{const o={};let s,O,W;return e&&e.split(`
|
|
4124
|
+
*/const Vd={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"}},uD={itemsToShow:{default:Vd.itemsToShow,type:Number},itemsToScroll:{default:Vd.itemsToScroll,type:Number},wrapAround:{default:Vd.wrapAround,type:Boolean},throttle:{default:Vd.throttle,type:Number},snapAlign:{default:Vd.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Vd.transition,type:Number},breakpoints:{default:Vd.breakpoints,type:Object},autoplay:{default:Vd.autoplay,type:Number},pauseAutoplayOnHover:{default:Vd.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Vd.mouseDrag,type:Boolean},touchDrag:{default:Vd.touchDrag,type:Boolean},dir:{default:Vd.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Vd.i18n,type:Object},settings:{default(){return{}},type:Object}};function Oit({config:e,slidesCount:o}){const{snapAlign:s,wrapAround:O,itemsToShow:W=1}=e;if(O)return Math.max(o-1,0);let _;switch(s){case"start":_=o-W;break;case"end":_=o-1;break;case"center":case"center-odd":_=o-Math.ceil((W-.5)/2);break;case"center-even":_=o-Math.ceil(W/2);break;default:_=0;break}return Math.max(_,0)}function Fit({config:e,slidesCount:o}){const{wrapAround:s,snapAlign:O,itemsToShow:W=1}=e;let _=0;if(s||W>o)return _;switch(O){case"start":_=0;break;case"end":_=W-1;break;case"center":case"center-odd":_=Math.floor((W-1)/2);break;case"center-even":_=Math.floor((W-2)/2);break;default:_=0;break}return _}function e9({val:e,max:o,min:s}){return o<s?e:Math.min(Math.max(e,s),o)}function Nit({config:e,currentSlide:o,slidesCount:s}){const{snapAlign:O,wrapAround:W,itemsToShow:_=1}=e;let g=o;switch(O){case"center":case"center-odd":g-=(_-1)/2;break;case"center-even":g-=(_-2)/2;break;case"end":g-=_-1;break}return W?g:e9({val:g,max:s-_,min:0})}function dD(e){return e?e.reduce((o,s)=>{var O;return s.type===t.Fragment?[...o,...dD(s.children)]:((O=s.type)===null||O===void 0?void 0:O.name)==="CarouselSlide"?[...o,s]:o},[]):[]}function t9({val:e,max:o,min:s=0}){return e>o?t9({val:e-(o+1),max:o,min:s}):e<s?t9({val:e+(o+1),max:o,min:s}):e}function Dit(e,o){let s;return o?function(...O){const W=this;s||(e.apply(W,O),s=!0,setTimeout(()=>s=!1,o))}:e}function Vit(e,o){let s;return function(...O){s&&clearTimeout(s),s=setTimeout(()=>{e(...O),s=null},o)}}function Rit(e="",o={}){return Object.entries(o).reduce((s,[O,W])=>s.replace(`{${O}}`,String(W)),e)}var jit=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Vd))),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"},Rit(e.i18n.itemXofY,{currentSlide:o.value+1,slidesCount:s.value}))}}),$it=t.defineComponent({name:"Carousel",props:uD,setup(e,{slots:o,emit:s,expose:O}){var W;const _=t.ref(null),g=t.ref([]),a=t.ref(0),v=t.ref(0),d=t.reactive(Object.assign({},Vd));let n=Object.assign({},Vd),x;const y=t.ref((W=e.modelValue)!==null&&W!==void 0?W:0),b=t.ref(0),u=t.ref(0),r=t.ref(0),i=t.ref(0);let h,l;t.provide("config",d),t.provide("slidesCount",v),t.provide("currentSlide",y),t.provide("maxSlide",r),t.provide("minSlide",i),t.provide("slideWidth",a);function p(){x=Object.assign({},e.breakpoints),n=Object.assign(Object.assign(Object.assign({},n),e),{i18n:Object.assign(Object.assign({},n.i18n),e.i18n),breakpoints:void 0}),w(n)}function m(){if(!x||!Object.keys(x).length)return;const re=Object.keys(x).map(se=>Number(se)).sort((se,me)=>+me-+se);let le=Object.assign({},n);re.some(se=>{const me=window.matchMedia(`(min-width: ${se}px)`).matches;return me&&(le=Object.assign(Object.assign({},le),x[se])),me}),w(le)}function w(re){Object.entries(re).forEach(([le,se])=>d[le]=se)}const C=Vit(()=>{m(),A()},16);function A(){if(!_.value)return;const re=_.value.getBoundingClientRect();a.value=re.width/d.itemsToShow}function T(){v.value<=0||(u.value=Math.ceil((v.value-1)/2),r.value=Oit({config:d,slidesCount:v.value}),i.value=Fit({config:d,slidesCount:v.value}),d.wrapAround||(y.value=e9({val:y.value,max:r.value,min:i.value})))}t.onMounted(()=>{t.nextTick(()=>A()),setTimeout(()=>A(),1e3),m(),U(),window.addEventListener("resize",C,{passive:!0}),s("init")}),t.onUnmounted(()=>{l&&clearTimeout(l),h&&clearInterval(h),window.removeEventListener("resize",C,{passive:!0})});let P=!1;const B={x:0,y:0},E={x:0,y:0},I=t.reactive({x:0,y:0}),M=t.ref(!1),S=t.ref(!1),L=()=>{M.value=!0},k=()=>{M.value=!1};function z(re){["INPUT","TEXTAREA","SELECT"].includes(re.target.tagName)||(P=re.type==="touchstart",P||re.preventDefault(),!(!P&&re.button!==0||$.value)&&(B.x=P?re.touches[0].clientX:re.clientX,B.y=P?re.touches[0].clientY:re.clientY,document.addEventListener(P?"touchmove":"mousemove",F,!0),document.addEventListener(P?"touchend":"mouseup",R,!0)))}const F=Dit(re=>{S.value=!0,E.x=P?re.touches[0].clientX:re.clientX,E.y=P?re.touches[0].clientY:re.clientY;const le=E.x-B.x,se=E.y-B.y;I.y=se,I.x=le},d.throttle);function R(){const re=d.dir==="rtl"?-1:1,le=Math.sign(I.x)*.4,se=Math.round(I.x/a.value+le)*re;if(se&&!P){const me=be=>{be.stopPropagation(),window.removeEventListener("click",me,!0)};window.addEventListener("click",me,!0)}J(y.value-se),I.x=0,I.y=0,S.value=!1,document.removeEventListener(P?"touchmove":"mousemove",F,!0),document.removeEventListener(P?"touchend":"mouseup",R,!0)}function U(){!d.autoplay||d.autoplay<=0||(h=setInterval(()=>{d.pauseAutoplayOnHover&&M.value||ae()},d.autoplay))}function H(){h&&(clearInterval(h),h=null),U()}const $=t.ref(!1);function J(re){const le=d.wrapAround?re:e9({val:re,max:r.value,min:i.value});y.value===le||$.value||(s("slide-start",{slidingToIndex:re,currentSlideIndex:y.value,prevSlideIndex:b.value,slidesCount:v.value}),$.value=!0,b.value=y.value,y.value=le,l=setTimeout(()=>{if(d.wrapAround){const se=t9({val:le,max:r.value,min:0});se!==y.value&&(y.value=se,s("loop",{currentSlideIndex:y.value,slidingToIndex:re}))}s("update:modelValue",y.value),s("slide-end",{currentSlideIndex:y.value,prevSlideIndex:b.value,slidesCount:v.value}),$.value=!1,H()},d.transition))}function ae(){J(y.value+d.itemsToScroll)}function Y(){J(y.value-d.itemsToScroll)}const ee={slideTo:J,next:ae,prev:Y};t.provide("nav",ee),t.provide("isSliding",$);const te=t.computed(()=>Nit({config:d,currentSlide:y.value,slidesCount:v.value}));t.provide("slidesToScroll",te);const X=t.computed(()=>{const re=d.dir==="rtl"?-1:1,le=te.value*a.value*re;return{transform:`translateX(${I.x-le}px)`,transition:`${$.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${v.value*a.value}px`:"",width:"100%"}});function K(){p(),m(),T(),A(),H()}Object.keys(uD).forEach(re=>{["modelValue"].includes(re)||t.watch(()=>e[re],K)}),t.watch(()=>e.modelValue,re=>{re!==y.value&&J(Number(re))}),t.watch(v,T),s("before-init"),p();const ce={config:d,slidesCount:v,slideWidth:a,next:ae,prev:Y,slideTo:J,currentSlide:y,maxSlide:r,minSlide:i,middleSlide:u};O({updateBreakpointsConfigs:m,updateSlidesData:T,updateSlideWidth:A,initDefaultConfigs:p,restartCarousel:K,slideTo:J,next:ae,prev:Y,nav:ee,data:ce});const de=o.default||o.slides,he=o.addons,pe=t.reactive(ce);return()=>{const re=dD(de==null?void 0:de(pe)),le=(he==null?void 0:he(pe))||[];re.forEach((ve,we)=>ve.props.index=we);let se=re;if(d.wrapAround){const ve=re.map((Te,Ce)=>t.cloneVNode(Te,{index:-re.length+Ce,isClone:!0,key:`clone-before-${Ce}`})),we=re.map((Te,Ce)=>t.cloneVNode(Te,{index:re.length+Ce,isClone:!0,key:`clone-after-${Ce}`}));se=[...ve,...re,...we]}g.value=re,v.value=Math.max(re.length,1);const me=t.h("ol",{class:"carousel__track",style:X.value,onMousedownCapture:d.mouseDrag?z:null,onTouchstartPassiveCapture:d.touchDrag?z:null},se),be=t.h("div",{class:"carousel__viewport"},me);return t.h("section",{ref:_,class:{carousel:!0,"is-sliding":$.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:L,onMouseleave:k},[be,le,t.h(jit)])}}}),hD;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(hD||(hD={}));var Uit=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({},Vd))),O=t.inject("currentSlide",t.ref(0)),W=t.inject("slidesToScroll",t.ref(0)),_=t.inject("isSliding",t.ref(!1)),g=()=>e.index===O.value,a=()=>e.index===O.value-1,v=()=>e.index===O.value+1,d=()=>{const n=Math.floor(W.value),x=Math.ceil(W.value+s.itemsToShow-1);return e.index>=n&&e.index<=x};return()=>{var n;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":a(),"carousel__slide--next":v(),"carousel__slide--sliding":_.value},"aria-hidden":!d()},(n=o.default)===null||n===void 0?void 0:n.call(o))}}});const Hit=(e,o)=>{const s=e.__vccOpts||e;for(const[O,W]of o)s[O]=W;return s},Git=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),Wit={class:"gsc-carousel"},qit={key:0},Yit=Git(()=>t.createElementVNode("div",null,"no hay",-1)),Zit=[Yit],Xit={class:"gsc-carousel__2d__slides"},Jit={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Kit=["fill"],Qit={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},eot=["fill"],tot={class:"gsc-carousel__2d__navigation"},not={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},aot=["stroke"],rot={key:1,class:"gsc-carousel__2d__navigation__pagination"},iot=["onClick"],oot={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},sot=["stroke"],lot={__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 O=e;t.useCssVars(r=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const W=t.ref(null),_=t.ref({}),g=t.ref(0),a=t.ref(!1);t.watch(W,r=>{r&&a.value?(a.value=!1,v(O.items)):r&&r.slideTo&&r.slideTo(g.value)},{deep:!0}),t.watch(()=>O.currentItemIndex,r=>{g.value!==r&&y(r)}),t.watch(()=>O.defaultItemByIndex,r=>{g.value!==r&&y(r)}),t.watch(()=>O.items,r=>{W.value?v(r):a.value=!0},{immediate:!0});function v(r){r&&r.length&&W.value&&setTimeout(()=>{if(O.defaultItemByProp){const i=O.items.findIndex(h=>h[O.defaultItemByProp.propName]===O.defaultItemByProp.value);i!==-1?(g.value=i,_.value=r[i]):(g.value=0,_.value=r[0])}else g.value=O.defaultItemByIndex,_.value=r[O.defaultItemByIndex];W.value.slideTo&&W.value.slideTo(g.value),_.value&&g.value===0&&s("input",{selectedItem:_.value,selectedItemIndex:g.value})},500)}function d(){W.value&&W.value.next()}function n(){W.value&&W.value.prev()}function x(){W.value&&W.value.updateSlideWidth()}function y(r){W.value&&W.value.slideTo(r)}function b(r){W.value.slideTo(r)}function u(r){const i=r.slidingToIndex<0?O.items.length-1:r.slidingToIndex===O.items.length?0:r.slidingToIndex;g.value=i,_.value=O.items[i],s("update:currentItemIndex",i),s("input",{selectedItem:_.value,selectedItemIndex:g.value})}return o({prev:n,next:d,updateSlideWidth:x,slideTo:y}),(r,i)=>(t.openBlock(),t.createElementBlock("div",Wit,[O.is3d?(t.openBlock(),t.createElementBlock("div",qit,Zit)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",Xit,[t.createVNode(t.unref($it),{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,(h,l)=>(t.openBlock(),t.createBlock(t.unref(Uit),{key:l},{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{item:h},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]=h=>W.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Jit,[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,Kit)]))],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]=h=>d())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Qit,[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,eot)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",tot,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:i[2]||(i[2]=h=>n())},[(t.openBlock(),t.createElementBlock("svg",not,[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:O.arrowsColor},null,8,aot)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",rot,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(h,l)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${l}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${O.navigationHeight}px`,width:`${g.value===l?O.navigationActiveWidth:O.navigationActiveWidth/2}px`,borderRadius:`${O.navigationBorderRadius}px`,backgroundColor:`${g.value===l?O.navigationActiveColor:O.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:p=>b(l)},null,12,iot))),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]=h=>W.value.next())},[(t.openBlock(),t.createElementBlock("svg",oot,[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:O.arrowsColor},null,8,sot)]))])):t.createCommentVNode("",!0)])],2))]))}},cot=Hit(lot,[["__scopeId","data-v-54620d25"]]),OGt="",pD={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"},FGt="",n9={components:{GSCCarousel:cot,GSCLeaders:_it,GSCRowTable:KN,GSCTableHeader:WN,GSCExpandedInfo:cD},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}=L2(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=[],O=[],W=[];return this.formatFilterStats.map(_=>{e[_.team_id]?e[_.team_id].total=e[_.team_id].total+_.total:(e[_.team_id]={},e[_.team_id].total=_.total,e[_.team_id].id=this.teamInfo[_.team_id].id,e[_.team_id].name=this.teamInfo[_.team_id].name.replace(" Femenil",""),e[_.team_id].img="https://golstatsimages.blob.core.windows.net/teams-80/"+_.team_id+".png",e[_.team_id].effectiveness=this.teamInfo[_.team_id].effectiveness,e[_.team_id].frecuency=this.teamInfo[_.team_id].frecuency,e[_.team_id].game_avg=this.teamInfo[_.team_id].game_avg,e[_.team_id].game_avg_last_season=this.teamInfo[_.team_id].game_avg_last_season,e[_.team_id].games_played_lastseason=this.teamInfo[_.team_id].games_played_lastseason,e[_.team_id].games_played=this.teamInfo[_.team_id].games_played,e[_.team_id].positiontable=this.teamInfo[_.team_id].positiontable,e[_.team_id].goals=this.teamInfo[_.team_id].goals,e[_.team_id].goalsrecived=this.teamInfo[_.team_id].goalsrecived,e[_.team_id].xg=this.teamInfo[_.team_id].xg),o[_.player_id]?_.player_id!=0&&_.player_id!=62117&&(o[_.player_id].total=o[_.player_id].total+_.total):_.player_id!=0&&_.player_id!=62117&&(o[_.player_id]={},o[_.player_id].total=_.total,_.player_id&&this.playersInfo[_.player_id]?(o[_.player_id].name=this.playersInfo[_.player_id].name,o[_.player_id].name_short=this.getnameshort(this.playersInfo[_.player_id].name),o[_.player_id].img=this.playersInfo[_.player_id].img,o[_.player_id].id=this.playersInfo[_.player_id].id,o[_.player_id].age=this.playersInfo[_.player_id].age,o[_.player_id].team=this.playersInfo[_.player_id].team,o[_.player_id].teamname=this.playersInfo[_.player_id].teamname,o[_.player_id].teamid=this.playersInfo[_.player_id].teamid,o[_.player_id].position=this.playersInfo[_.player_id].position,o[_.player_id].positionId=this.playersInfo[_.player_id].positionId,o[_.player_id].positionfull=this.playersInfo[_.player_id].positionfull,o[_.player_id].country=this.playersInfo[_.player_id].country,o[_.player_id].effectiveness=this.playersInfo[_.player_id].effectiveness,o[_.player_id].minutes=this.playersInfo[_.player_id].minutes_played,o[_.player_id].games=this.playersInfo[_.player_id].games_played,o[_.player_id].date=this.playersInfo[_.player_id].date,o[_.player_id].nationality=this.playersInfo[_.player_id].nationality,o[_.player_id].player_country_flag=this.playersInfo[_.player_id].player_country_flag,o[_.player_id].categoryName=this.categoryName):(o[_.player_id].id=_.player_id,o[_.player_id].name=_.player_id,o[_.player_id].img="SIN IMAGEN",o[_.player_id].age="",o[_.player_id].teamname="",o[_.player_id].team="",o[_.player_id].teamid=0,o[_.player_id].position="",o[_.player_id].positionId=0,o[_.player_id].positionfull="",o[_.player_id].country="",o[_.player_id].effectiveness="",o[_.player_id].minutes="",o[_.player_id].games="",o[_.player_id].date="00-00-0000",o[_.player_id].nationality="",o[_.player_id].player_country_flag="",o[_.player_id].categoryName=""))}),s.push(...Object.values(e)),O.push(...Object.values(o)),s=this.sortAndSlice(Object.values(e),60),O=O.sort(this.compareObjectsMinutes).slice(0,60),O=O.map((_,g)=>(_.top=g<9?"0"+(g+1):""+(g+1),_)),s=s.map((_,g)=>(_.top=g<9?"0"+(g+1):""+(g+1),_)),this.filterTeam!==0&&!this.isTeam&&(W=O.filter(_=>_.teamid===this.filterTeam)),this.changeStateLoading(!1),this.isTeam?this.formatArrayPaginate(s):this.filterTeam!=0?this.formatArrayPaginate(W):this.formatArrayPaginate(O)}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),O=Array.from(o);if(s.length!==O.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(" "),O=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 _=O[O.length-1]!=""?O[O.length-1].charAt(0):O[O.length-2]?O[O.length-2].charAt(0):"";return W=W.replace(",",""),_+". "+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,O)=>(s.name<O.name?1:-1)&&(s.total<O.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 O=this.filtersValues.matchResult,W=this.filtersValues.playingAs,_=this.filtersValues.sections,g=this.filtersValues.zone,a=this.translateTopCategories(o);Object.keys(this.filterEmitAux).length>0&&(O=this.filterEmitAux.matchResult,W=this.filterEmitAux.playingAs,_=this.filterEmitAux.sections,g=this.filterEmitAux.zone);const v=1,d=2,n=3,x=this.isTeam?n:d,y=e.player_id;let b=[],u=this.isTeam?e.id:this.filterTeam;y?this.isTeam?u=y:(b=[y],a=a.filter(i=>!i.toString().includes("_r"))):this.isTeam?u=e.id:(b=[e.id],a=a.filter(i=>!i.toString().includes("_r")));const r={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:v,playListType:x,gameIds:null,playerIds:b,goalkeeperIds:[],categoryIds:this.translateTopCategories(o),teamId:u||0,matchResult:O,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:s,playingAs:W,timeSections:_,fieldSections:g,coordinatePoint:this.getCoordinatePointPerCategory(o)}};this.$emit("setopenmedia",r)},emitEventMediaFullTable(e,o,s){let O=this.filtersValues.matchResult,W=this.filtersValues.playingAs,_=this.filtersValues.sections,g=this.filtersValues.zone,a=this.translateTopCategories(o);Object.keys(this.filterEmitAux).length>0&&(O=this.filterEmitAux.matchResult,W=this.filterEmitAux.playingAs,_=this.filterEmitAux.sections,g=this.filterEmitAux.zone);const v=1,d=2,n=3,x=this.isTeam?n:d;let y=[],b=this.isTeam?e.id:this.filterTeam;this.isTeam?b=e.id:(y=[e.id],a=a.filter(r=>!r.toString().includes("_r")));const u={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:v,playListType:x,gameIds:null,playerIds:y,goalkeeperIds:[],categoryIds:a,teamId:b||0,matchResult:O,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:s,playingAs:W,timeSections:_,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(" "),O=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 _=O[O.length-1]!=""?O[O.length-1].charAt(0):O[O.length-2]?O[O.length-2].charAt(0):"";W=W.replace(",","");var g=_+". "+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 O=[],W={},_={},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 a=_u.create({headers:{Authorization:`${this.token}`}});this.isloading=!0;let v={};if(this.typeData==1?this.isWidget&&this.teamWidget!=0?v=await a.get(this.url+"/"+this.gameId+"/"+this.category+"?t="+this.teamWidget):v=await a.get(this.url+"/"+this.gameId+"/"+this.category):this.game.game_status===1?this.isWidget&&this.teamWidget!=0?v=await a.get(this.url+"/"+this.gameId+"/"+this.category+"?acc=1&t="+this.teamWidget):v=await a.get(this.url+"/"+this.gameId+"/"+this.category+"?acc=1"):this.isWidget&&this.teamWidget!=0?v=await a.get(this.urlPrematch+g+"/"+this.category+"?t="+this.teamWidget):v=await a.get(this.urlPrematch+g+"/"+this.category+"?t="+this.game.homeTeam.team_id+"&t="+this.game.awayTeam.team_id),v&&v.data&&v.data.data&&v.data.data.length>0){O=v.data.data.map(n=>this.formatStatsData(n)),v.data.teams.forEach(n=>{W[n[0]]={},W[n[0]].id=n[0],W[n[0]].name=n[1],W[n[0]].abrv=n[2],W[n[0]].img=n[3],W[n[0]].effectiveness=n[4],W[n[0]].games_played=n[5],W[n[0]].games_played_lastseason=n[6],W[n[0]].positiontable=n[7],W[n[0]].goals=n[8],W[n[0]].goalsrecived=n[9],W[n[0]].xg=n[10],W[n[0]].frecuency=n[11],W[n[0]].game_avg=n[12],W[n[0]].game_avg_last_season=n[13]});const d=new Set;v.data.players.forEach(n=>{const x=this.getObjectPlayer(n);this.mapPlayers.set(x.numberId,x);const y=x.numberAge,b=x.teamName.length>0?x.teamName[0].acronym:"",u=x.teamName.length>0?W[x.teamName[0].team_id].name:"",r=x.teamName.length>0?x.teamName[0].team_id:"",i=this.positions[x.numberPositionId-1].fullname,h=this.positions[x.numberPositionId-1].name,l=x.countryId.length>0?x.countryId[0].nationality_id:"",p=x.effectiveness,m=x.min,w=x.games,C=x.date;x.arrayNationalities.forEach(A=>{d.add(A.numberId)}),_[n[0]]={id:n[0],name:n[1],img:n[2],age:y,team:b,teamname:u,teamid:r,position:i,positionfull:h,effectiveness:p,country:l,games_played:w,minutes_played:m,date:C,nationality:x.stringNationalityName,player_country_flag:x.player_country_flag,positionId:x.numberPositionId}}),this.setNationalityIds=d,this.arrayAgeRange=[v.data.min_age,v.data.max_age]}else this.arePlaysEmpty=!0;this.teamInfo=W,this.playersInfo=_,this.formatStats=O,this.formatFilterStats=this.filterRecords(this.filtersSelect),this.statsData=v}catch(O){return Promise.reject(O)}},filterRecords(e){return this.formatStats.length>0?this.formatStats.filter(o=>{const s=e.playingAs.includes(o.playing_as),O=e.matchResult.includes(o.match_result),W=e.sections.includes(o.section),_=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 a=!1;for(const v of g.arrayNationalitiesIds)if(e.setNationalitiesIds.has(v)){a=!0;break}if(!a)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||O)&&(e.sections.length===0||W)&&(e.zone.length===0||_)}):[]},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,O)=>{o[s]=e[O]}),o},getObjectPlayer(e){const o=[],s=e[7].map(W=>(o.push(W.nationality_id),{stringName:W.nationality,numberId:W.nationality_id})),O=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:pD[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:O.length>0?Number(O[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,O)=>{const W=O*this.numRows,_=W+this.numRows;return e.slice(W,_)})},createIntervalTops(){this.intervalIdtops=setInterval(async()=>{await this.getCategoryStats(this.season)},this.timeLiveComparativeAvanced)},clearTopsInterval(){this.intervalIdtops&&(clearInterval(this.intervalIdtops),this.intervalIdtops=null)}},beforeUnmount(){this.clearTopsInterval()}},fD=()=>{t.useCssVars(e=>({baf9c686:e.borderRadius,cba5678a:e.borderWidth,cdd36450:e.borderColor}))},mD=n9.setup;n9.setup=mD?(e,o)=>(fD(),mD(e,o)):fD;const uot={ref:"myDivRef"},dot={class:"btnViewFullList"},hot={class:"text"},pot={class:"groupsLeague"},fot={class:"row-table-carrousel"},mot={key:1,class:"container-no-search-result"},got={key:0,class:"overlay-loading-top"};function yot(e,o,s,O,W,_){const g=t.resolveComponent("GSCLeaders"),a=t.resolveComponent("GSCRowTable"),v=t.resolveComponent("GSCExpandedInfo"),d=t.resolveComponent("GSCCarousel"),n=t.resolveComponent("GSCTableHeader");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(s.type==0?"gsc-top":"gsc-top-full")},[t.createElementVNode("div",uot,[t.createElementVNode("div",dot,[t.createElementVNode("div",hot,[t.createElementVNode("div",pot,t.toDisplayString(s.categoryName),1)])]),s.type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[_.topData.length>0?(t.openBlock(),t.createBlock(d,{key:0,items:_.topData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:_.changeCarrousel},{default:t.withCtx(({item:x})=>[t.createElementVNode("div",fot,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(x,(y,b)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:b},[y.top==1?(t.openBlock(),t.createBlock(g,{key:0,onMediadata:o[0]||(o[0]=u=>_.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?O.elementSize.width>360?"210px":"130px":O.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"11px",onExpand:_.clickexpand,onMore:_.morestats},null,8,["type","type-data","game","team-widget","can-play-videos","is-expanded","data","category-name","buttonMaxWidth","onExpand","onMore"])):(t.openBlock(),t.createBlock(a,{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=>_.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:b%2===0?s.backgroundEven:s.backgroundOdd,onExpand:_.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(v,{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=>_.viewprofile(u,y.teamid),background:b%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",mot,[e.isloading?(t.openBlock(),t.createElementBlock("div",got,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(n,{background:"#183143",type:s.typeTable},null,8,["type"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_.topData,(x,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(x,(b,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:u},[t.createVNode(a,{"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==b.id&&e.expand,onMediadata:o[2]||(o[2]=r=>_.emitEventMediaFullTable(r,s.category,s.categoryName)),data:s.typeTable==0?{position:b.top,player_name:b.name,player_short:b.name_short,player_photo:b.img,total:b.total,id:b.id,player_age:b.age,team_abrev:b.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+b.teamid+".png",player_position:b.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+b.country+".jpg",player_games:b.games,player_min:b.minutes,league_name:" Liga MX "}:{position:b.positiontable,team_logo:b.img,team_abrev:b.name,frequency:b.frecuency,promthistournament:b.game_avg,promlasttournament:b.game_avg_last_season,category:s.category,team_games:b.games_played,total:b.total,id:b.id},height:"71px",background:((y+1)*5+u)%2===0?s.backgroundOdd:s.backgroundEven,onExpand:_.clickexpand},null,8,["type-data","team-widget","game","type","type-view","can-play-videos","is-expanded","data","background","onExpand"]),e.expand&&e.playerexpand==b.id?(t.openBlock(),t.createBlock(v,{key:0,type:s.typeTable,"is-live":s.game.is_live,additionalClass:"fullTable","view-effectiveness":b.positionId!==1,data:s.typeTable==0?{teams:b.teamname,age:b.age,dataofbirth:b.date,nationality:b.nationality,countryFlag:b.player_country_flag,position:b.positionfull,positionfull:b.positionfull,games:b.games,min:b.minutes,goals:b.total,effectiveness:b.effectiveness,category:_.getCategoryName(s.category),id:b.id}:{position:b.positiontable,goals:b.goals,goals_received:b.goalsrecived,games_played:b.games_played,category:s.categoryName,effectiveness:b.effectiveness,xg:b.xg,total:b.total,category:_.getCategoryName(s.category),attendance:"-",id:b.id},onViewprofile:r=>_.viewprofile(r,b.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 vot=Ji(n9,[["render",yot],["__scopeId","data-v-0b419ca1"]]),_ot=(e,o)=>{const s=e.__vccOpts||e;for(const[O,W]of o)s[O]=W;return s},bot={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)}}},xot=["src"],wot=["src"];function kot(e,o,s,O,W,_){return t.openBlock(),t.createElementBlock("div",null,[s.activeClickLabel?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(_.customStyle),class:"gsc-label",onClick:o[0]||(o[0]=(...g)=>_.btnLabel&&_.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(_.customIcon),class:"icon",src:s.icon},null,12,xot)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-label",style:t.normalizeStyle(_.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)=>_.btnClose&&_.btnClose(...g)),style:t.normalizeStyle(_.customIcon),class:"icon",src:s.icon},null,12,wot)):t.createCommentVNode("",!0)],4))])}const Sot=_ot(bot,[["render",kot],["__scopeId","data-v-42ff544a"]]);function Cot(e){const o=t.ref({width:0,height:0});function s(){const O=e.value.getBoundingClientRect();o.value.width=O.width,o.value.height=O.height}return t.onMounted(()=>{s(),window.addEventListener("resize",s)}),t.onUnmounted(()=>{window.removeEventListener("resize",s)}),{elementSize:o}}const Tot=(e,o)=>{const s=e.__vccOpts||e;for(const[O,W]of o)s[O]=W;return s},a9={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)}}},gD=()=>{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}))},yD=a9.setup;a9.setup=yD?(e,o)=>(gD(),yD(e,o)):gD;const Eot={ref:"gscScrollableContainer",class:"scrollable-container"},Aot={class:"scrollable-arrows"},Mot=["width","height","viewBox"],Iot=["stroke"],Pot={class:"scrollable-wrapper"},Bot={class:"scrollable-arrows"},Lot=["width","height","viewBox"],zot=["stroke"];function Oot(e,o,s,O,W,_){return t.openBlock(),t.createElementBlock("div",Eot,[s.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",_.hideShowLeftArrow]),onClick:o[0]||(o[0]=(...g)=>_.scrollLeft&&_.scrollLeft(...g))},[t.createElementVNode("div",Aot,[(t.openBlock(),t.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:_.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,Iot)],8,Mot))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:o[1]||(o[1]=(...g)=>_.getScroll&&_.getScroll(...g))},[t.createElementVNode("div",Pot,[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",_.hideShowRightArrow]),onClick:o[2]||(o[2]=(...g)=>_.scrollRight&&_.scrollRight(...g))},[t.createElementVNode("div",Bot,[(t.openBlock(),t.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:_.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,zot)],8,Lot))])],2)):t.createCommentVNode("",!0)],512)}const Fot=Tot(a9,[["render",Oot],["__scopeId","data-v-b548a08d"]]),Not=(e,o)=>{const s=e.__vccOpts||e;for(const[O,W]of o)s[O]=W;return s},r9={components:{GSCSlider:Fot},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}=Cot(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}}},vD=()=>{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}))},_D=r9.setup;r9.setup=_D?(e,o)=>(vD(),_D(e,o)):vD;const Dot={ref:"myDivRef"},Vot={key:0,class:"gs-switch-container"},Rot=["onClick"],jot={key:1,class:"gs-switch-container-type"},$ot=["onClick"],Uot={key:2,class:"gs-switch-container-carousel"},Hot=["onClick"];function Got(e,o,s,O,W,_){const g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",Dot,[s.type==0?(t.openBlock(),t.createElementBlock("div",Vot,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([_.customGrid(O.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.buttons,(a,v)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:s.height},s.selectedOption==a?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:v,onClick:d=>(s.selectedOption=a,_.clickEmitEvent(a))},t.toDisplayString(a),13,Rot))),128))],4),t.renderSlot(e.$slots,s.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),s.type==1?(t.openBlock(),t.createElementBlock("div",jot,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([_.customGrid(O.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.buttons,(a,v)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:s.height},s.selectedOption==a?{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:v,onClick:d=>(s.selectedOption=a,_.clickEmitEvent(a))},t.toDisplayString(a),13,$ot))),128))],4)])):t.createCommentVNode("",!0),s.type==2?(t.openBlock(),t.createElementBlock("div",Uot,[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,(a,v)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:s.height},s.selectedOption==a?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:v,onClick:d=>(s.selectedOption=a,_.clickEmitEvent(a))},t.toDisplayString(a),13,Hot))),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 i9=Not(r9,[["render",Got],["__scopeId","data-v-8a86dfaf"]]),NGt="",DGt="";function Wot(){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 VGt="",qot={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"},Yot=t.ref(Wot()),Zot={components:{GSCTableHeader:WN,GscSwitchComponent:i9,GSCFilterperteam:sit,GSCFilters:IN,GSCExpandedInfo:cD,GSCLabel:Sot,GSCSeasonSelect:CC,GSCTopCategory:vot,GSCTournamentSelect:wC,GSCRowTable:KN},computed:{...frt.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{...Yot.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}=L2(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:rr,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(" "),O=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 _=O[O.length-1]!=""?O[O.length-1].charAt(0):O[O.length-2]?O[O.length-2].charAt(0):"";return W=W.replace(",",""),_+". "+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 O=0;O<this.detaildProductivityCategories.offensive.categories.length;O++)this.detaildProductivityCategories.offensive.categories[O].isSelected=!1;for(let O=0;O<this.detaildProductivityCategories.defensive.categories.length;O++)this.detaildProductivityCategories.defensive.categories[O].isSelected=!1;for(let O=0;O<this.detaildProductivityCategories.possession.categories.length;O++)this.detaildProductivityCategories.possession.categories[O].isSelected=!1;for(let O=0;O<this.detaildProductivityCategories.offensesConditions.length;O++)this.detaildProductivityCategories.offensesConditions[O]=!1;this.setUpTournamentsToFilter();const o=this.$refs.personalDataFilter;o.clearFilters(Vu.All),o.clearFilters(Vu.AGE_RANGE),o.clearFilters(Vu.YEAR),o.clearFilters(Vu.NATIONALITY),o.clearFilters(Vu.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(O,W)=>W+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var e=this.arrayFiltersPlays.findIndex(O=>O.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(e,1);const s=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let O=0;O<s.teams.length;O++)this.teamsscouting.push({id:s.teams[O].team_id,team:s.teams[O].colloquial_name,logo:s.teams[O].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],_=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:_||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=_u.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 O={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:pD[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(O)}if(this.seasonsFilterSelected!=0){const W=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let _=0;_<W.teams.length;_++)this.teamsscouting.push({id:W.teams[_].team_id,team:W.teams[_].colloquial_name,logo:W.teams[_].logo})}this.loadingActive=!1},abrevName(e){var o=e.split(","),s=o[0].split(" "),O=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 _=O[O.length-1]!=""?O[O.length-1].charAt(0):O[O.length-2]?O[O.length-2].charAt(0):"";W=W.replace(",","");var g=_+". "+W;return g},calcularEdad(e){var o=new Date(e),s=new Date,O=s-o,W=Math.floor(O/(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 O=e.ageByRange.min==0?10:e.ageByRange.min,W=e.ageByRange.max==0?40:e.ageByRange.max;this.filterScounting.range_age=[O,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 O=0;O<e.nationalities.length;O++)e.nationalities[O].isSelected&&o.push(e.nationalities[O].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 O=0;O<e.positions.length;O++)e.positions[O].isSelected&&s.push(e.positions[O].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(O=>O.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(O=>O.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(O=>O.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&o!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(o,1);var s=this.arrayFiltersPlays.findIndex(O=>O.type==="onFiltersPredefined");if(s!==-1){for(let O=0;O<this.FVfilterGolstats.length;O++)this.FVfilterGolstats[O].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 _=0;_<this.categoriesDefault.length;_++)this.categoriesDefault[_].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var s=this.arrayFiltersPlays.findIndex(_=>_.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&s!==-1){for(let _=0;_<this.FVfilterGolstats.length;_++)this.FVfilterGolstats[_].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(O=>O.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,_)=>_+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const O=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let W=0;W<O.teams.length;W++)this.teamsscouting.push({id:O.teams[W].team_id,team:O.teams[W].colloquial_name,logo:O.teams[W].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(e=="onFiltersPlays"){for(let O=0;O<this.categoriesPlaysTypes.offensive.categories.length;O++)this.categoriesPlaysTypes.offensive.categories[O].isSelected=!0;for(let O=0;O<this.categoriesPlaysTypes.defensive.categories.length;O++)this.categoriesPlaysTypes.defensive.categories[O].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[O]);for(let O=0;O<this.categoriesPlaysTypes.possession.categories.length;O++)this.categoriesPlaysTypes.possession.categories[O].isSelected=!0;for(let O=0;O<this.categoriesPlaysTypes.offenses.categories.length;O++)this.categoriesPlaysTypes.offenses.categories[O].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 O=0;O<this.FVfilterGolstats.length;O++)this.FVfilterGolstats[O].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(O=>O.type==="onFiltersPredefined");s!==-1&&this.arrayFiltersPlays.splice(s,1);for(let O=0;O<this.categoriesDefault.length;O++)this.categoriesDefault[O].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(Vu.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(Vu.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(Vu.AGE_RANGE)),e=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(Vu.ELIGIBILITY),e=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(Vu.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(O=>O.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 _=0;_<e.playingAs.length;_++)if(e.playingAs[_].isSelected){const g=e.playingAs[_].name=="Local"?1:2;o.push(g)}for(let _=0;_<e.gameSections.length;_++)e.gameSections[_].isSelected&&s.push(e.gameSections[_].value);this.fVsections=s,this.fVplayingAs=o;var O=this.arrayFiltersPlays.findIndex(_=>_.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"),O!=-1?this.arrayFiltersPlays[O].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)&&(O!=-1?this.arrayFiltersPlays[O].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)&&(O!=-1?this.arrayFiltersPlays[O].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(O!=-1?this.arrayFiltersPlays[O].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)&&(O!=-1?this.arrayFiltersPlays[O].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)&&(O!=-1?this.arrayFiltersPlays[O].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)&&(O!=-1?this.arrayFiltersPlays[O].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)&&(O!=-1?this.arrayFiltersPlays[O].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)&&(O!=-1?this.arrayFiltersPlays[O].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):O!=-1&&this.arrayFiltersPlays.splice(O,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},(O,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(Vu.All),e.clearFilters(Vu.AGE_RANGE),e.clearFilters(Vu.YEAR),e.clearFilters(Vu.NATIONALITY),e.clearFilters(Vu.POSITION),this.rowScoutingData=[];for(let O=0;O<this.detaildProductivityCategories.offensive.categories.length;O++)this.detaildProductivityCategories.offensive.categories[O].isSelected=!1;for(let O=0;O<this.detaildProductivityCategories.defensive.categories.length;O++)this.detaildProductivityCategories.defensive.categories[O].isSelected=!1;for(let O=0;O<this.detaildProductivityCategories.possession.categories.length;O++)this.detaildProductivityCategories.possession.categories[O].isSelected=!1;for(let O=0;O<this.detaildProductivityCategories.offensesConditions.length;O++)this.detaildProductivityCategories.offensesConditions[O]=!1;var o=this.arrayFiltersPlays.findIndex(O=>O.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(o,1),this.setUpTournamentsToFilter();const s=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let O=0;O<s.teams.length;O++)this.teamsscouting.push({id:s.teams[O].team_id,team:s.teams[O].colloquial_name,logo:s.teams[O].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 O="",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 _=e.nationalities.filter(y=>y.isSelected===!0);var g=e.positions.filter(y=>y.isSelected===!0);if(g.length==1&&(O=g[0].name),e.hasOwnProperty("nationalities")&&_.length==1&&(W=_[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 a=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersElegibility");a!=-1?this.arrayFiltersPlays[a].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var a=this.arrayFiltersPlays.findIndex(b=>b.type==="onFiltersElegibility");this.arrayFiltersPlays.splice(a,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var v=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersPosition");v!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[v].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+O:this.arrayFiltersPlays.splice(v,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+O,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 n=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersAge");n!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[n].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(n,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 n=this.arrayFiltersPlays.findIndex(b=>b.type==="onFiltersAge");n!=-1&&this.arrayFiltersPlays.splice(n,1)}if(e.hasOwnProperty("nationalities")&&this.fVnationalities.size!=e.nationalities.length&&this.fVnationalities.size>0){var x=this.arrayFiltersPlays.findIndex(y=>y.type==="onFiltersNationality");x!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[x].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+W:this.arrayFiltersPlays.splice(x,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=_u.create({headers:{Authorization:`${this.token}`}}),{data:o}=await e.get(this.tournamentsUrl);return o},async fetchTeams(){const e=_u.create({headers:{Authorization:`${this.token}`}}),{data:o}=await e.get(this.teamsUrl+this.seasonActive);return o},async fetchTeamsScouting(e){const o=_u.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=_u.create({headers:{Authorization:`${this.token}`}}),{data:O}=await s.get(o+e.id);if(Object.keys(O[0].match_lapse_combinations).forEach(x=>{this.predefinedFiltersMatchLapse[x.toString()]=O[0].match_lapse_combinations[x]}),Object.keys(O[0].playing_as_combinations).forEach(x=>{this.predefinedFiltersPlayingAs[x.toString()]=O[0].playing_as_combinations[x]}),Object.keys(O[0].field_sections_combinations).forEach(x=>{this.predefinedFiltersSections[x.toString()]=O[0].field_sections_combinations[x]}),O[0]){for(let x=0;x<O[0].filter_records.length;x++){var W=O[0].description;if(O[0].filter_records[x].field_sections!==void 0){const b=O[0].filter_records[x].field_sections.toString();(this.predefinedFiltersSections[b]||this.predefinedFiltersSections[b]=="")&&(this.predefinedFiltersSections[b]==""?W=W.replace(" [en {field_sections}]",this.predefinedFiltersSections[b]):W=W.replace("{field_sections}",this.predefinedFiltersSections[b]))}if(O[0].filter_records[x].match_lapse!==void 0){const b=O[0].filter_records[x].match_lapse.toString();(this.predefinedFiltersMatchLapse[b]||this.predefinedFiltersMatchLapse[b]=="")&&(this.predefinedFiltersMatchLapse[b]==""?W=W.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[b]):W=W.replace("{match_lapse}",this.predefinedFiltersMatchLapse[b]))}if(O[0].filter_records[x].playing_as!==void 0){const b=O[0].filter_records[x].playing_as.toString();(this.predefinedFiltersPlayingAs[b]||this.predefinedFiltersPlayingAs[b]=="")&&(this.predefinedFiltersPlayingAs[b]==""?W=W.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[b]):W=W.replace("{playing_as}",this.predefinedFiltersPlayingAs[b]))}O[0].filter_records[x].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}",O[0].category_name);const y=W.split(": ");var _=y[1];_.length>129&&this.windowWidth>1358&&(_=_.substring(0,129),_=_+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||O[0].filter_records[x].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:x,category_name:e.name,id_category:O[0].id,title:y[0]+":",text:y[1],textOrigin:O[0].description,titledots:_,filtersPredefined:{matchResult:O[0].filter_records[x].match_result,playingAs:O[0].filter_records[x].playing_as,sections:O[0].filter_records[x].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:O[0].type_zone,zone:O[0].filter_records[x].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var g=[];for(let x=0;x<this.arrayPredefinedFilters.length;x++){var a=0,v=new Set,d={},n=this.arrayPredefinedFilters[x].text.replace(/\*.*?\*/,"");if(n=n.replace(/\*/g,""),n=n.replace(/ +/g," "),this.arrayPredefinedFilters[x].filtersPredefined.elegible.length>0&&(a+=1),(this.arrayPredefinedFilters[x].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[x].filtersPredefined.start_age.length!=0)&&(a+=1),this.arrayPredefinedFilters[x].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[x].filtersPredefined.start_age!=0?d.arrayAgeRange=[this.arrayPredefinedFilters[x].filtersPredefined.start_age,this.arrayPredefinedFilters[x].filtersPredefined.end_age]:this.arrayPredefinedFilters[x].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[x].filtersPredefined.start_age==0?d.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[x].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[x].filtersPredefined.end_age==0?d.arrayAgeRange=[this.arrayPredefinedFilters[x].filtersPredefined.start_age,60]:d.arrayAgeRange=[1,this.arrayPredefinedFilters[x].filtersPredefined.end_age],this.arrayPredefinedFilters[x].filtersPredefined.matchResult.length!=3&&(a+=1),d.matchResult=this.arrayPredefinedFilters[x].filtersPredefined.matchResult,this.arrayPredefinedFilters[x].filtersPredefined.nationalities.length>0&&(a+=1),this.arrayPredefinedFilters[x].filtersPredefined.nationalities.length!=0){for(let y=0;y<this.arrayPredefinedFilters[x].filtersPredefined.nationalities.length;y++)v.add(this.arrayPredefinedFilters[x].filtersPredefined.nationalities[y]);d.setNationalitiesIds=v}else v.add(138),v.add(222),v.add(163),v.add(51),v.add(226),v.add(10),v.add(223),v.add(96),v.add(171),v.add(198),v.add(105),v.add(80),v.add(29),v.add(74),v.add(216),v.add(196),v.add(64),v.add(155),v.add(156),v.add(89),v.add(106),v.add(81),v.add(233),v.add(204),d.setNationalitiesIds=v;this.arrayPredefinedFilters[x].filtersPredefined.playingAs.length!=2&&(a+=1),d.playingAs=this.arrayPredefinedFilters[x].filtersPredefined.playingAs,this.arrayPredefinedFilters[x].filtersPredefined.positions.length>0&&(a+=1),this.arrayPredefinedFilters[x].filtersPredefined.positions.length>0?d.setPositionsIds=this.arrayPredefinedFilters[x].filtersPredefined.positions:d.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[x].filtersPredefined.sections.length!=6&&(a+=1),this.arrayPredefinedFilters[x].filtersPredefined.sections.length>0?d.sections=this.arrayPredefinedFilters[x].filtersPredefined.sections:d.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[x].filtersPredefined.zone.length!=16&&(a+=1),this.arrayPredefinedFilters[x].filtersPredefined.zone.length>0?d.zone=this.arrayPredefinedFilters[x].filtersPredefined.zone:d.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],d.typeZone=this.arrayPredefinedFilters[x].filtersPredefined.typeZone,g.push({id:x+1,name:n,isSelected:!1,value:a,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((n,x)=>n-x).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 O=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[O]||this.predefinedFiltersMatchLapse[O]=="")this.predefinedFiltersMatchLapse[O]==""?e=e.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[O]):e=e.replace("{match_lapse}",this.predefinedFiltersMatchLapse[O]);else{e=e.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var W="";O.includes(1)&&(W=W+"0-15, "),O.includes(2)&&(W=W+"16-30, "),O.includes(3)&&(W=W+"31-45, "),O.includes(4)&&(W=W+"46-60, "),O.includes(5)&&(W=W+"61-75, "),O.includes(6)&&(W=W+"76-90, "),W=W.slice(0,-2),W=W.replace(/,([^,]*)$/," y $1"),e=e.replace("{match_lapse_selected}",W)}const _=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[_]||this.predefinedFiltersPlayingAs[_]=="")&&(this.predefinedFiltersPlayingAs[_]==""?e=e.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[_]):e=e.replace("{playing_as}",this.predefinedFiltersPlayingAs[_])),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 a=g[1].charAt(0).toUpperCase()+g[1].toLowerCase().slice(1),v=g[1].charAt(0).toUpperCase()+g[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=a,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=g[0]+":";const d=v.match(/\*/g);if(d&&d.length)if(d.length%2===0)for(let n=1;n<=d.length;n++)n%2===0||(v=v.replace("*",'<span style="color: #ffff03" >'));else v=v.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=v},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=_u.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)}}},Xot={ref:"myDivRefTopsFull"},Jot={key:0,class:"overlay-loading"},Kot={key:0,class:"cont-leyemd-multipleleagues"},Qot={key:0,style:{"margin-left":"10px"}},est={key:3,style:{width:"100%",height:"295px"}};function tst(e,o,s,O,W,_){t.resolveComponent("GSCTournamentSelect"),t.resolveComponent("GSCSeasonSelect");const g=t.resolveComponent("GscSwitchComponent"),a=t.resolveComponent("GSCFilterperteam"),v=t.resolveComponent("GSCFilters"),d=t.resolveComponent("GSCLabel"),n=t.resolveComponent("GSCTopCategory"),x=t.resolveComponent("GSCTableHeader"),y=t.resolveComponent("GSCRowTable"),b=t.resolveComponent("GSCExpandedInfo");return t.openBlock(),t.createElementBlock("div",Xot,[W.loadingActive?(t.openBlock(),t.createElementBlock("div",Jot,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(a,{data:W.teams,"team-id":s.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:_.clickTeam,onClickAll:_.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?"":O.elementSize.width>760?"display: none;":"")},[t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionClass),id:"menu-section"},[O.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)=>_.clickCloseFilters&&_.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:_.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)=>_.openMenuFilters&&_.openMenuFilters(...u))},null,6),[[t.vShow,O.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},[O.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.withDirectives(t.createVNode(v,t.mergeProps({"button-filter-props":_.filterButtonProps},O.elementSize.width<420?W.expansionPanelModePropsMobil270:O.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{"filter-type":W.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":_.onFiltersPlays,filters:W.categoriesPlaysTypes,onApply:_.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[t.vShow,!W.showFullTable]]),(t.openBlock(),t.createBlock(v,t.mergeProps({"button-filter-props":_.filterButtonProps},O.elementSize.width<420?W.expansionPanelModePropsMobil270:O.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{key:W.updateFilterField,"filter-type":W.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":_.onFiltersField,filters:W.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),t.createVNode(v,t.mergeProps({"button-filter-props":_.filterButtonProps},O.elementSize.width<420?W.expansionPanelModePropsMobil270:O.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{"filter-type":W.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":_.onFiltersDetails,filters:W.detailsObject}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]),W.optionSelected==="Jugadores"?(t.openBlock(),t.createBlock(v,t.mergeProps({key:0,ref:"personalDataFilterPlayers","button-filter-props":_.filterButtonProps},O.elementSize.width<420?W.expansionPanelModePropsMobil270:O.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":_.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},[O.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(),t.createBlock(v,t.mergeProps({"button-filter-props":_.filterButtonProps},O.elementSize.width<420?W.expansionPanelModePropsMobil270:O.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":_.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),t.createVNode(v,t.mergeProps({"button-filter-props":_.filterButtonProps},O.elementSize.width<420?W.expansionPanelModePropsMobil270:O.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":_.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","season","onUpdate:filters"]),t.createVNode(v,t.mergeProps({"button-filter-props":_.filterButtonProps},O.elementSize.width<420?W.expansionPanelModePropsMobil270:O.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{"filter-type":W.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:W.universeData,"onUpdate:filters":_.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),t.createVNode(v,t.mergeProps({"button-filter-props":_.filterButtonProps},O.elementSize.width<420?W.expansionPanelModePropsMobil270:O.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{"filter-type":W.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":_.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)=>_.getScoutingData&&_.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(v,t.mergeProps({"button-filter-props":_.filterButtonProps,modalHeight:"300px"},O.elementSize.width<420?W.expansionPanelModePropsMobil270:O.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModePropsTypePlays,{"filter-type":W.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:W.updateFilterPlaytypesGolstats,"onUpdate:filters":_.onFiltersPlaysTypes,filters:W.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(t.openBlock(),t.createBlock(v,t.mergeProps({"button-filter-props":_.filterButtonProps,modalHeight:"300px"},O.elementSize.width<420?W.expansionPanelModePropsMobil270:O.elementSize.width<760?W.expansionPanelModePropsMobil:W.expansionPanelModeProps,{"filter-type":W.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:W.updateFilterGolstats,"onUpdate:filters":_.onFiltersGolStats,filters:_.filterGolstats}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):t.createCommentVNode("",!0)],2),[[t.vShow,O.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",Kot,[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(a,{data:W.teamsscouting,"team-id":W.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:W.updateFilterTeamsScouting,onClickTeam:_.clickTeamScouting,onClickAll:_.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",Qot,[t.createVNode(d,{"text-value":"Categoría - "+W.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:_.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,r)=>(t.openBlock(),t.createElementBlock("div",{key:r,style:{"margin-left":"10px"}},[t.createVNode(d,{"text-value":u.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:_.deleteLabelFilter,id:u.type,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:O.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)=>_.onClickDeleteFilter&&_.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,r)=>(t.openBlock(),t.createElementBlock("div",{key:r,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(n,{"is-widget":s.isWidget,"team-widget":s.teamWidget,"time-live-comparative-avanced":s.timeLiveComparativeAvanced,"is-team":W.isTeam,onMore:_.onShowFullTable,"border-width":0,onIntervalidtops:_.intervalidtops,"can-play-videos":s.canPlayVideos,"border-radius":"12px","game-id":s.gameId,game:s.game,typeData:s.typeData,"filters-prop":_.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:_.clickprofile,onSetopenmedia:_.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(n,{"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:_.intervalidtops,game:s.game,typeData:s.typeData,category:W.showFullCategory,type:1,"type-table":W.typeTable,categoryName:"","filters-prop":_.filterChange,"season-selected":s.seasonSelected,season:s.seasonActive,"filter-team":s.teamselect,key:W.updateTablesfull,onClickprofile:_.clickprofile,onSetopenmedia:_.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(n,{"is-widget":s.isWidget,"team-widget":s.teamWidget,"is-team":W.isTeam,"time-live-comparative-avanced":s.timeLiveComparativeAvanced,onIntervalidtops:_.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":_.filterChangePredefined,"season-selected":s.seasonSelected,season:s.seasonActive,"filter-team":s.teamselect,key:W.updateTables,onClickprofile:_.clickprofile,onSetopenmedia:_.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(x,{key:0,background:"#183143",type:2})):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.rowScoutingData,(u,r)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:r},[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:_.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:r%2===0?s.backgroundOdd:s.backgroundEven,onExpand:_.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),W.expand&&W.playerexpand==u.id?(t.openBlock(),t.createBlock(b,{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=>_.viewprofile(i,u.season_id,u.team_id),background:r%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)=>_.onClickDeleteFilter&&_.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)=>_.getScoutingData&&_.getScoutingData(...u))}," Buscar ",2)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),W.loadingActive?(t.openBlock(),t.createElementBlock("div",est)):t.createCommentVNode("",!0)],6))],6)):t.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const nst=Ji(Zot,[["render",tst],["__cssModules",{$style:qot}]]),Bqt="";let bD=null;const ast={components:{GSCDatosGSMain:prt,GSCCheckbox:v1,GSCRadioToggle:hF,GSCTopFull:nst},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)bD=new ResizeObserver(()=>{this.widthSection=this.$refs.comparative.clientWidth}),bD.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)}},rst={class:"container-comparative",ref:"comparative"},ist={class:"container-btn"},ost={class:"items-container-btn"},sst={class:"container-sections"},lst={key:0,class:"container-teams-menu"},cst={class:"container-team-menu-home"},ust=["src"],dst={class:"container-team-menu-away"},hst=["src"],pst={key:1,class:"container-switch-menu"},fst={class:"container-leyend"},mst={class:"container-tops"};function gst(e,o,s,O,W,_){const g=t.resolveComponent("GSCDatosGSMain"),a=t.resolveComponent("GSCCheckbox"),v=t.resolveComponent("GSCRadioToggle"),d=t.resolveComponent("GSCTopFull");return t.openBlock(),t.createElementBlock("div",rst,[t.createElementVNode("div",ist,[t.createElementVNode("div",ost,[t.createElementVNode("div",{class:t.normalizeClass([W.widthSection>480?"btn-destacados":"btn-destacados-movil",W.activeSection=="destacados"?"active":""]),onClick:o[0]||(o[0]=n=>_.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]=n=>_.clickOptSection("avanzado"))}," Avanzado ",2)])]),t.createElementVNode("div",sst,[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:_.openmedia,onIntervalidgs:_.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",lst,[t.createElementVNode("div",cst,[(t.openBlock(),t.createBlock(a,{fontFamily:"Poppins-Regular","onUpdate:modelValue":_.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,ust),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",dst,[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,hst),(t.openBlock(),t.createBlock(a,{fontFamily:"Poppins-Regular","onUpdate:modelValue":_.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",pst,[t.createVNode(v,{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:_.ChangeRadio},null,8,["value-default","onChange"])])):t.createCommentVNode("",!0),t.createElementVNode("div",fst,[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",mst,[t.createVNode(d,{"is-widget":s.isWidget,"team-widget":s.teamWidget,"time-live-comparative-avanced":s.timeLiveComparativeAvanced,"can-play-videos":s.canPlayVideos,onOpenmedia:_.openmedia,onOpenProfileTeam:_.onOpenProfileTeam,onIntervalidtops:_.intervalidtops,onOpenProfilePlayer:_.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 yst=Ji(ast,[["render",gst],["__scopeId","data-v-84eca2e0"]]);var vst=Object.defineProperty,_st=(e,o,s)=>o in e?vst(e,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[o]=s,o9=(e,o,s)=>_st(e,typeof o!="symbol"?o+"":o,s);function xD(e,o){return function(){return e.apply(o,arguments)}}const{toString:bst}=Object.prototype,{getPrototypeOf:s9}=Object,{iterator:K3,toStringTag:wD}=Symbol,Q3=(e=>o=>{const s=bst.call(o);return e[s]||(e[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),Ef=e=>(e=e.toLowerCase(),o=>Q3(o)===e),ew=e=>o=>typeof o===e,{isArray:Xy}=Array,z2=ew("undefined");function xst(e){return e!==null&&!z2(e)&&e.constructor!==null&&!z2(e.constructor)&&sp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const kD=Ef("ArrayBuffer");function wst(e){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(e):o=e&&e.buffer&&kD(e.buffer),o}const kst=ew("string"),sp=ew("function"),SD=ew("number"),tw=e=>e!==null&&typeof e=="object",Sst=e=>e===!0||e===!1,nw=e=>{if(Q3(e)!=="object")return!1;const o=s9(e);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(wD in e)&&!(K3 in e)},Cst=Ef("Date"),Tst=Ef("File"),Est=Ef("Blob"),Ast=Ef("FileList"),Mst=e=>tw(e)&&sp(e.pipe),Ist=e=>{let o;return e&&(typeof FormData=="function"&&e instanceof FormData||sp(e.append)&&((o=Q3(e))==="formdata"||o==="object"&&sp(e.toString)&&e.toString()==="[object FormData]"))},Pst=Ef("URLSearchParams"),[Bst,Lst,zst,Ost]=["ReadableStream","Request","Response","Headers"].map(Ef),Fst=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function O2(e,o,{allOwnKeys:s=!1}={}){if(e===null||typeof e>"u")return;let O,W;if(typeof e!="object"&&(e=[e]),Xy(e))for(O=0,W=e.length;O<W;O++)o.call(null,e[O],O,e);else{const _=s?Object.getOwnPropertyNames(e):Object.keys(e),g=_.length;let a;for(O=0;O<g;O++)a=_[O],o.call(null,e[a],a,e)}}function CD(e,o){o=o.toLowerCase();const s=Object.keys(e);let O=s.length,W;for(;O-- >0;)if(W=s[O],o===W.toLowerCase())return W;return null}const G1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,TD=e=>!z2(e)&&e!==G1;function l9(){const{caseless:e}=TD(this)&&this||{},o={},s=(O,W)=>{const _=e&&CD(o,W)||W;nw(o[_])&&nw(O)?o[_]=l9(o[_],O):nw(O)?o[_]=l9({},O):Xy(O)?o[_]=O.slice():o[_]=O};for(let O=0,W=arguments.length;O<W;O++)arguments[O]&&O2(arguments[O],s);return o}const Nst=(e,o,s,{allOwnKeys:O}={})=>(O2(o,(W,_)=>{s&&sp(W)?e[_]=xD(W,s):e[_]=W},{allOwnKeys:O}),e),Dst=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Vst=(e,o,s,O)=>{e.prototype=Object.create(o.prototype,O),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:o.prototype}),s&&Object.assign(e.prototype,s)},Rst=(e,o,s,O)=>{let W,_,g;const a={};if(o=o||{},e==null)return o;do{for(W=Object.getOwnPropertyNames(e),_=W.length;_-- >0;)g=W[_],(!O||O(g,e,o))&&!a[g]&&(o[g]=e[g],a[g]=!0);e=s!==!1&&s9(e)}while(e&&(!s||s(e,o))&&e!==Object.prototype);return o},jst=(e,o,s)=>{e=String(e),(s===void 0||s>e.length)&&(s=e.length),s-=o.length;const O=e.indexOf(o,s);return O!==-1&&O===s},$st=e=>{if(!e)return null;if(Xy(e))return e;let o=e.length;if(!SD(o))return null;const s=new Array(o);for(;o-- >0;)s[o]=e[o];return s},Ust=(e=>o=>e&&o instanceof e)(typeof Uint8Array<"u"&&s9(Uint8Array)),Hst=(e,o)=>{const s=(e&&e[K3]).call(e);let O;for(;(O=s.next())&&!O.done;){const W=O.value;o.call(e,W[0],W[1])}},Gst=(e,o)=>{let s;const O=[];for(;(s=e.exec(o))!==null;)O.push(s);return O},Wst=Ef("HTMLFormElement"),qst=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,s,O){return s.toUpperCase()+O}),ED=(({hasOwnProperty:e})=>(o,s)=>e.call(o,s))(Object.prototype),Yst=Ef("RegExp"),AD=(e,o)=>{const s=Object.getOwnPropertyDescriptors(e),O={};O2(s,(W,_)=>{let g;(g=o(W,_,e))!==!1&&(O[_]=g||W)}),Object.defineProperties(e,O)},Zst=e=>{AD(e,(o,s)=>{if(sp(e)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const O=e[s];if(sp(O)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},Xst=(e,o)=>{const s={},O=W=>{W.forEach(_=>{s[_]=!0})};return Xy(e)?O(e):O(String(e).split(o)),s},Jst=()=>{},Kst=(e,o)=>e!=null&&Number.isFinite(e=+e)?e:o;function Qst(e){return!!(e&&sp(e.append)&&e[wD]==="FormData"&&e[K3])}const elt=e=>{const o=new Array(10),s=(O,W)=>{if(tw(O)){if(o.indexOf(O)>=0)return;if(!("toJSON"in O)){o[W]=O;const _=Xy(O)?[]:{};return O2(O,(g,a)=>{const v=s(g,W+1);!z2(v)&&(_[a]=v)}),o[W]=void 0,_}}return O};return s(e,0)},tlt=Ef("AsyncFunction"),nlt=e=>e&&(tw(e)||sp(e))&&sp(e.then)&&sp(e.catch),MD=((e,o)=>e?setImmediate:o?((s,O)=>(G1.addEventListener("message",({source:W,data:_})=>{W===G1&&_===s&&O.length&&O.shift()()},!1),W=>{O.push(W),G1.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",sp(G1.postMessage)),alt=typeof queueMicrotask<"u"?queueMicrotask.bind(G1):typeof process<"u"&&process.nextTick||MD,rlt=e=>e!=null&&sp(e[K3]),Lr={isArray:Xy,isArrayBuffer:kD,isBuffer:xst,isFormData:Ist,isArrayBufferView:wst,isString:kst,isNumber:SD,isBoolean:Sst,isObject:tw,isPlainObject:nw,isReadableStream:Bst,isRequest:Lst,isResponse:zst,isHeaders:Ost,isUndefined:z2,isDate:Cst,isFile:Tst,isBlob:Est,isRegExp:Yst,isFunction:sp,isStream:Mst,isURLSearchParams:Pst,isTypedArray:Ust,isFileList:Ast,forEach:O2,merge:l9,extend:Nst,trim:Fst,stripBOM:Dst,inherits:Vst,toFlatObject:Rst,kindOf:Q3,kindOfTest:Ef,endsWith:jst,toArray:$st,forEachEntry:Hst,matchAll:Gst,isHTMLForm:Wst,hasOwnProperty:ED,hasOwnProp:ED,reduceDescriptors:AD,freezeMethods:Zst,toObjectSet:Xst,toCamelCase:qst,noop:Jst,toFiniteNumber:Kst,findKey:CD,global:G1,isContextDefined:TD,isSpecCompliantForm:Qst,toJSONObject:elt,isAsyncFn:tlt,isThenable:nlt,setImmediate:MD,asap:alt,isIterable:rlt};function _l(e,o,s,O,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),O&&(this.request=O),W&&(this.response=W,this.status=W.status?W.status:null)}Lr.inherits(_l,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:Lr.toJSONObject(this.config),code:this.code,status:this.status}}});const ID=_l.prototype,PD={};["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=>{PD[e]={value:e}}),Object.defineProperties(_l,PD),Object.defineProperty(ID,"isAxiosError",{value:!0}),_l.from=(e,o,s,O,W,_)=>{const g=Object.create(ID);return Lr.toFlatObject(e,g,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),_l.call(g,e.message,o,s,O,W),g.cause=e,g.name=e.name,_&&Object.assign(g,_),g};const ilt=null;function c9(e){return Lr.isPlainObject(e)||Lr.isArray(e)}function BD(e){return Lr.endsWith(e,"[]")?e.slice(0,-2):e}function LD(e,o,s){return e?e.concat(o).map(function(O,W){return O=BD(O),!s&&W?"["+O+"]":O}).join(s?".":""):o}function olt(e){return Lr.isArray(e)&&!e.some(c9)}const slt=Lr.toFlatObject(Lr,{},null,function(e){return/^is[A-Z]/.test(e)});function aw(e,o,s){if(!Lr.isObject(e))throw new TypeError("target must be an object");o=o||new FormData,s=Lr.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,u){return!Lr.isUndefined(u[b])});const O=s.metaTokens,W=s.visitor||d,_=s.dots,g=s.indexes,a=(s.Blob||typeof Blob<"u"&&Blob)&&Lr.isSpecCompliantForm(o);if(!Lr.isFunction(W))throw new TypeError("visitor must be a function");function v(b){if(b===null)return"";if(Lr.isDate(b))return b.toISOString();if(Lr.isBoolean(b))return b.toString();if(!a&&Lr.isBlob(b))throw new _l("Blob is not supported. Use a Buffer instead.");return Lr.isArrayBuffer(b)||Lr.isTypedArray(b)?a&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function d(b,u,r){let i=b;if(b&&!r&&typeof b=="object"){if(Lr.endsWith(u,"{}"))u=O?u:u.slice(0,-2),b=JSON.stringify(b);else if(Lr.isArray(b)&&olt(b)||(Lr.isFileList(b)||Lr.endsWith(u,"[]"))&&(i=Lr.toArray(b)))return u=BD(u),i.forEach(function(h,l){!(Lr.isUndefined(h)||h===null)&&o.append(g===!0?LD([u],l,_):g===null?u:u+"[]",v(h))}),!1}return c9(b)?!0:(o.append(LD(r,u,_),v(b)),!1)}const n=[],x=Object.assign(slt,{defaultVisitor:d,convertValue:v,isVisitable:c9});function y(b,u){if(!Lr.isUndefined(b)){if(n.indexOf(b)!==-1)throw Error("Circular reference detected in "+u.join("."));n.push(b),Lr.forEach(b,function(r,i){(!(Lr.isUndefined(r)||r===null)&&W.call(o,r,Lr.isString(i)?i.trim():i,u,x))===!0&&y(r,u?u.concat(i):[i])}),n.pop()}}if(!Lr.isObject(e))throw new TypeError("data must be an object");return y(e),o}function zD(e){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return o[s]})}function u9(e,o){this._pairs=[],e&&aw(e,this,o)}const OD=u9.prototype;OD.append=function(e,o){this._pairs.push([e,o])},OD.toString=function(e){const o=e?function(s){return e.call(this,s,zD)}:zD;return this._pairs.map(function(s){return o(s[0])+"="+o(s[1])},"").join("&")};function llt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function FD(e,o,s){if(!o)return e;const O=s&&s.encode||llt;Lr.isFunction(s)&&(s={serialize:s});const W=s&&s.serialize;let _;if(W?_=W(o,s):_=Lr.isURLSearchParams(o)?o.toString():new u9(o,s).toString(O),_){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+_}return e}let ND=class{constructor(){this.handlers=[]}use(o,s,O){return this.handlers.push({fulfilled:o,rejected:s,synchronous:O?O.synchronous:!1,runWhen:O?O.runWhen:null}),this.handlers.length-1}eject(o){this.handlers[o]&&(this.handlers[o]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(o){Lr.forEach(this.handlers,function(s){s!==null&&o(s)})}};const DD={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},clt=typeof URLSearchParams<"u"?URLSearchParams:u9,ult=typeof FormData<"u"?FormData:null,dlt=typeof Blob<"u"?Blob:null,hlt={isBrowser:!0,classes:{URLSearchParams:clt,FormData:ult,Blob:dlt},protocols:["http","https","file","blob","url","data"]},d9=typeof window<"u"&&typeof document<"u",h9=typeof navigator=="object"&&navigator||void 0,plt=d9&&(!h9||["ReactNative","NativeScript","NS"].indexOf(h9.product)<0),flt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",mlt=d9&&window.location.href||"http://localhost",glt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:d9,hasStandardBrowserEnv:plt,hasStandardBrowserWebWorkerEnv:flt,navigator:h9,origin:mlt},Symbol.toStringTag,{value:"Module"})),vh={...glt,...hlt};function ylt(e,o){return aw(e,new vh.classes.URLSearchParams,Object.assign({visitor:function(s,O,W,_){return vh.isNode&&Lr.isBuffer(s)?(this.append(O,s.toString("base64")),!1):_.defaultVisitor.apply(this,arguments)}},o))}function vlt(e){return Lr.matchAll(/\w+|\[(\w*)]/g,e).map(o=>o[0]==="[]"?"":o[1]||o[0])}function _lt(e){const o={},s=Object.keys(e);let O;const W=s.length;let _;for(O=0;O<W;O++)_=s[O],o[_]=e[_];return o}function VD(e){function o(s,O,W,_){let g=s[_++];if(g==="__proto__")return!0;const a=Number.isFinite(+g),v=_>=s.length;return g=!g&&Lr.isArray(W)?W.length:g,v?(Lr.hasOwnProp(W,g)?W[g]=[W[g],O]:W[g]=O,!a):((!W[g]||!Lr.isObject(W[g]))&&(W[g]=[]),o(s,O,W[g],_)&&Lr.isArray(W[g])&&(W[g]=_lt(W[g])),!a)}if(Lr.isFormData(e)&&Lr.isFunction(e.entries)){const s={};return Lr.forEachEntry(e,(O,W)=>{o(vlt(O),W,s,0)}),s}return null}function blt(e,o,s){if(Lr.isString(e))try{return(o||JSON.parse)(e),Lr.trim(e)}catch(O){if(O.name!=="SyntaxError")throw O}return(s||JSON.stringify)(e)}const F2={transitional:DD,adapter:["xhr","http","fetch"],transformRequest:[function(e,o){const s=o.getContentType()||"",O=s.indexOf("application/json")>-1,W=Lr.isObject(e);if(W&&Lr.isHTMLForm(e)&&(e=new FormData(e)),Lr.isFormData(e))return O?JSON.stringify(VD(e)):e;if(Lr.isArrayBuffer(e)||Lr.isBuffer(e)||Lr.isStream(e)||Lr.isFile(e)||Lr.isBlob(e)||Lr.isReadableStream(e))return e;if(Lr.isArrayBufferView(e))return e.buffer;if(Lr.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let _;if(W){if(s.indexOf("application/x-www-form-urlencoded")>-1)return ylt(e,this.formSerializer).toString();if((_=Lr.isFileList(e))||s.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return aw(_?{"files[]":e}:e,g&&new g,this.formSerializer)}}return W||O?(o.setContentType("application/json",!1),blt(e)):e}],transformResponse:[function(e){const o=this.transitional||F2.transitional,s=o&&o.forcedJSONParsing,O=this.responseType==="json";if(Lr.isResponse(e)||Lr.isReadableStream(e))return e;if(e&&Lr.isString(e)&&(s&&!this.responseType||O)){const W=!(o&&o.silentJSONParsing)&&O;try{return JSON.parse(e)}catch(_){if(W)throw _.name==="SyntaxError"?_l.from(_,_l.ERR_BAD_RESPONSE,this,null,this.response):_}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:vh.classes.FormData,Blob:vh.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Lr.forEach(["delete","get","head","post","put","patch"],e=>{F2.headers[e]={}});const xlt=Lr.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"]),wlt=e=>{const o={};let s,O,W;return e&&e.split(`
|
|
4125
4125
|
`).forEach(function(_){W=_.indexOf(":"),s=_.substring(0,W).trim().toLowerCase(),O=_.substring(W+1).trim(),!(!s||o[s]&&xlt[s])&&(s==="set-cookie"?o[s]?o[s].push(O):o[s]=[O]:o[s]=o[s]?o[s]+", "+O:O)}),o},RD=Symbol("internals");function N2(e){return e&&String(e).trim().toLowerCase()}function rw(e){return e===!1||e==null?e:Lr.isArray(e)?e.map(rw):String(e)}function klt(e){const o=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let O;for(;O=s.exec(e);)o[O[1]]=O[2];return o}const Slt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function p9(e,o,s,O,W){if(Lr.isFunction(O))return O.call(this,o,s);if(W&&(o=s),!!Lr.isString(o)){if(Lr.isString(O))return o.indexOf(O)!==-1;if(Lr.isRegExp(O))return O.test(o)}}function Clt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,s,O)=>s.toUpperCase()+O)}function Tlt(e,o){const s=Lr.toCamelCase(" "+o);["get","set","has"].forEach(O=>{Object.defineProperty(e,O+s,{value:function(W,_,g){return this[O].call(this,o,W,_,g)},configurable:!0})})}let lp=class{constructor(e){e&&this.set(e)}set(e,o,s){const O=this;function W(g,a,v){const d=N2(a);if(!d)throw new Error("header name must be a non-empty string");const n=Lr.findKey(O,d);(!n||O[n]===void 0||v===!0||v===void 0&&O[n]!==!1)&&(O[n||a]=rw(g))}const _=(g,a)=>Lr.forEach(g,(v,d)=>W(v,d,a));if(Lr.isPlainObject(e)||e instanceof this.constructor)_(e,o);else if(Lr.isString(e)&&(e=e.trim())&&!Slt(e))_(wlt(e),o);else if(Lr.isObject(e)&&Lr.isIterable(e)){let g={},a,v;for(const d of e){if(!Lr.isArray(d))throw TypeError("Object iterator must return a key-value pair");g[v=d[0]]=(a=g[v])?Lr.isArray(a)?[...a,d[1]]:[a,d[1]]:d[1]}_(g,o)}else e!=null&&W(o,e,s);return this}get(e,o){if(e=N2(e),e){const s=Lr.findKey(this,e);if(s){const O=this[s];if(!o)return O;if(o===!0)return klt(O);if(Lr.isFunction(o))return o.call(this,O,s);if(Lr.isRegExp(o))return o.exec(O);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,o){if(e=N2(e),e){const s=Lr.findKey(this,e);return!!(s&&this[s]!==void 0&&(!o||p9(this,this[s],s,o)))}return!1}delete(e,o){const s=this;let O=!1;function W(_){if(_=N2(_),_){const g=Lr.findKey(s,_);g&&(!o||p9(s,s[g],g,o))&&(delete s[g],O=!0)}}return Lr.isArray(e)?e.forEach(W):W(e),O}clear(e){const o=Object.keys(this);let s=o.length,O=!1;for(;s--;){const W=o[s];(!e||p9(this,this[W],W,e,!0))&&(delete this[W],O=!0)}return O}normalize(e){const o=this,s={};return Lr.forEach(this,(O,W)=>{const _=Lr.findKey(s,W);if(_){o[_]=rw(O),delete o[W];return}const g=e?Clt(W):String(W).trim();g!==W&&delete o[W],o[g]=rw(O),s[g]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const o=Object.create(null);return Lr.forEach(this,(s,O)=>{s!=null&&s!==!1&&(o[O]=e&&Lr.isArray(s)?s.join(", "):s)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,o])=>e+": "+o).join(`
|
|
4126
4126
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...o){const s=new this(e);return o.forEach(O=>s.set(O)),s}static accessor(e){const o=(this[RD]=this[RD]={accessors:{}}).accessors,s=this.prototype;function O(W){const _=N2(W);o[_]||(Tlt(s,W),o[_]=!0)}return Lr.isArray(e)?e.forEach(O):O(e),this}};lp.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Lr.reduceDescriptors(lp.prototype,({value:e},o)=>{let s=o[0].toUpperCase()+o.slice(1);return{get:()=>e,set(O){this[s]=O}}}),Lr.freezeMethods(lp);function f9(e,o){const s=this||F2,O=o||s,W=lp.from(O.headers);let _=O.data;return Lr.forEach(e,function(g){_=g.call(s,_,W.normalize(),o?o.status:void 0)}),W.normalize(),_}function jD(e){return!!(e&&e.__CANCEL__)}function Jy(e,o,s){_l.call(this,e??"canceled",_l.ERR_CANCELED,o,s),this.name="CanceledError"}Lr.inherits(Jy,_l,{__CANCEL__:!0});function $D(e,o,s){const O=s.config.validateStatus;!s.status||!O||O(s.status)?e(s):o(new _l("Request failed with status code "+s.status,[_l.ERR_BAD_REQUEST,_l.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function Elt(e){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return o&&o[1]||""}function Alt(e,o){e=e||10;const s=new Array(e),O=new Array(e);let W=0,_=0,g;return o=o!==void 0?o:1e3,function(a){const v=Date.now(),d=O[_];g||(g=v),s[W]=a,O[W]=v;let n=_,x=0;for(;n!==W;)x+=s[n++],n=n%e;if(W=(W+1)%e,W===_&&(_=(_+1)%e),v-g<o)return;const y=d&&v-d;return y?Math.round(x*1e3/y):void 0}}function Mlt(e,o){let s=0,O=1e3/o,W,_;const g=(a,v=Date.now())=>{s=v,W=null,_&&(clearTimeout(_),_=null),e.apply(null,a)};return[(...a)=>{const v=Date.now(),d=v-s;d>=O?g(a,v):(W=a,_||(_=setTimeout(()=>{_=null,g(W)},O-d)))},()=>W&&g(W)]}const iw=(e,o,s=3)=>{let O=0;const W=Alt(50,250);return Mlt(_=>{const g=_.loaded,a=_.lengthComputable?_.total:void 0,v=g-O,d=W(v),n=g<=a;O=g;const x={loaded:g,total:a,progress:a?g/a:void 0,bytes:v,rate:d||void 0,estimated:d&&a&&n?(a-g)/d:void 0,event:_,lengthComputable:a!=null,[o?"download":"upload"]:!0};e(x)},s)},UD=(e,o)=>{const s=e!=null;return[O=>o[0]({lengthComputable:s,total:e,loaded:O}),o[1]]},HD=e=>(...o)=>Lr.asap(()=>e(...o)),Ilt=vh.hasStandardBrowserEnv?((e,o)=>s=>(s=new URL(s,vh.origin),e.protocol===s.protocol&&e.host===s.host&&(o||e.port===s.port)))(new URL(vh.origin),vh.navigator&&/(msie|trident)/i.test(vh.navigator.userAgent)):()=>!0,Plt=vh.hasStandardBrowserEnv?{write(e,o,s,O,W,_){const g=[e+"="+encodeURIComponent(o)];Lr.isNumber(s)&&g.push("expires="+new Date(s).toGMTString()),Lr.isString(O)&&g.push("path="+O),Lr.isString(W)&&g.push("domain="+W),_===!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 Blt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Llt(e,o){return o?e.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):e}function GD(e,o,s){let O=!Blt(o);return e&&(O||s==!1)?Llt(e,o):o}const WD=e=>e instanceof lp?{...e}:e;function W1(e,o){o=o||{};const s={};function O(d,n,x,y){return Lr.isPlainObject(d)&&Lr.isPlainObject(n)?Lr.merge.call({caseless:y},d,n):Lr.isPlainObject(n)?Lr.merge({},n):Lr.isArray(n)?n.slice():n}function W(d,n,x,y){if(Lr.isUndefined(n)){if(!Lr.isUndefined(d))return O(void 0,d,x,y)}else return O(d,n,x,y)}function _(d,n){if(!Lr.isUndefined(n))return O(void 0,n)}function g(d,n){if(Lr.isUndefined(n)){if(!Lr.isUndefined(d))return O(void 0,d)}else return O(void 0,n)}function a(d,n,x){if(x in o)return O(d,n);if(x in e)return O(void 0,d)}const v={url:_,method:_,data:_,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,withXSRFToken:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:a,headers:(d,n,x)=>W(WD(d),WD(n),x,!0)};return Lr.forEach(Object.keys(Object.assign({},e,o)),function(d){const n=v[d]||W,x=n(e[d],o[d],d);Lr.isUndefined(x)&&n!==a||(s[d]=x)}),s}const qD=e=>{const o=W1({},e);let{data:s,withXSRFToken:O,xsrfHeaderName:W,xsrfCookieName:_,headers:g,auth:a}=o;o.headers=g=lp.from(g),o.url=FD(GD(o.baseURL,o.url,o.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&g.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let v;if(Lr.isFormData(s)){if(vh.hasStandardBrowserEnv||vh.hasStandardBrowserWebWorkerEnv)g.setContentType(void 0);else if((v=g.getContentType())!==!1){const[d,...n]=v?v.split(";").map(x=>x.trim()).filter(Boolean):[];g.setContentType([d||"multipart/form-data",...n].join("; "))}}if(vh.hasStandardBrowserEnv&&(O&&Lr.isFunction(O)&&(O=O(o)),O||O!==!1&&Ilt(o.url))){const d=W&&_&&Plt.read(_);d&&g.set(W,d)}return o},zlt=typeof XMLHttpRequest<"u",Olt=zlt&&function(e){return new Promise(function(o,s){const O=qD(e);let W=O.data;const _=lp.from(O.headers).normalize();let{responseType:g,onUploadProgress:a,onDownloadProgress:v}=O,d,n,x,y,b;function u(){y&&y(),b&&b(),O.cancelToken&&O.cancelToken.unsubscribe(d),O.signal&&O.signal.removeEventListener("abort",d)}let r=new XMLHttpRequest;r.open(O.method.toUpperCase(),O.url,!0),r.timeout=O.timeout;function i(){if(!r)return;const l=lp.from("getAllResponseHeaders"in r&&r.getAllResponseHeaders()),p={data:!g||g==="text"||g==="json"?r.responseText:r.response,status:r.status,statusText:r.statusText,headers:l,config:e,request:r};$D(function(m){o(m),u()},function(m){s(m),u()},p),r=null}"onloadend"in r?r.onloadend=i:r.onreadystatechange=function(){!r||r.readyState!==4||r.status===0&&!(r.responseURL&&r.responseURL.indexOf("file:")===0)||setTimeout(i)},r.onabort=function(){r&&(s(new _l("Request aborted",_l.ECONNABORTED,e,r)),r=null)},r.onerror=function(){s(new _l("Network Error",_l.ERR_NETWORK,e,r)),r=null},r.ontimeout=function(){let l=O.timeout?"timeout of "+O.timeout+"ms exceeded":"timeout exceeded";const p=O.transitional||DD;O.timeoutErrorMessage&&(l=O.timeoutErrorMessage),s(new _l(l,p.clarifyTimeoutError?_l.ETIMEDOUT:_l.ECONNABORTED,e,r)),r=null},W===void 0&&_.setContentType(null),"setRequestHeader"in r&&Lr.forEach(_.toJSON(),function(l,p){r.setRequestHeader(p,l)}),Lr.isUndefined(O.withCredentials)||(r.withCredentials=!!O.withCredentials),g&&g!=="json"&&(r.responseType=O.responseType),v&&([x,b]=iw(v,!0),r.addEventListener("progress",x)),a&&r.upload&&([n,y]=iw(a),r.upload.addEventListener("progress",n),r.upload.addEventListener("loadend",y)),(O.cancelToken||O.signal)&&(d=l=>{r&&(s(!l||l.type?new Jy(null,e,r):l),r.abort(),r=null)},O.cancelToken&&O.cancelToken.subscribe(d),O.signal&&(O.signal.aborted?d():O.signal.addEventListener("abort",d)));const h=Elt(O.url);if(h&&vh.protocols.indexOf(h)===-1){s(new _l("Unsupported protocol "+h+":",_l.ERR_BAD_REQUEST,e));return}r.send(W||null)})},Flt=(e,o)=>{const{length:s}=e=e?e.filter(Boolean):[];if(o||s){let O=new AbortController,W;const _=function(d){if(!W){W=!0,a();const n=d instanceof Error?d:this.reason;O.abort(n instanceof _l?n:new Jy(n instanceof Error?n.message:n))}};let g=o&&setTimeout(()=>{g=null,_(new _l(`timeout ${o} of ms exceeded`,_l.ETIMEDOUT))},o);const a=()=>{e&&(g&&clearTimeout(g),g=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(_):d.removeEventListener("abort",_)}),e=null)};e.forEach(d=>d.addEventListener("abort",_));const{signal:v}=O;return v.unsubscribe=()=>Lr.asap(a),v}},Nlt=function*(e,o){let s=e.byteLength;if(s<o){yield e;return}let O=0,W;for(;O<s;)W=O+o,yield e.slice(O,W),O=W},Dlt=async function*(e,o){for await(const s of Vlt(e))yield*Nlt(s,o)},Vlt=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const o=e.getReader();try{for(;;){const{done:s,value:O}=await o.read();if(s)break;yield O}}finally{await o.cancel()}},YD=(e,o,s,O)=>{const W=Dlt(e,o);let _=0,g,a=v=>{g||(g=!0,O&&O(v))};return new ReadableStream({async pull(v){try{const{done:d,value:n}=await W.next();if(d){a(),v.close();return}let x=n.byteLength;if(s){let y=_+=x;s(y)}v.enqueue(new Uint8Array(n))}catch(d){throw a(d),d}},cancel(v){return a(v),W.return()}},{highWaterMark:2})},ow=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ZD=ow&&typeof ReadableStream=="function",Rlt=ow&&(typeof TextEncoder=="function"?(e=>o=>e.encode(o))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),XD=(e,...o)=>{try{return!!e(...o)}catch{return!1}},jlt=ZD&&XD(()=>{let e=!1;const o=new Request(vh.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!o}),JD=64*1024,m9=ZD&&XD(()=>Lr.isReadableStream(new Response("").body)),sw={stream:m9&&(e=>e.body)};ow&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(o=>{!sw[o]&&(sw[o]=Lr.isFunction(e[o])?s=>s[o]():(s,O)=>{throw new _l(`Response type '${o}' is not supported`,_l.ERR_NOT_SUPPORT,O)})})})(new Response);const $lt=async e=>{if(e==null)return 0;if(Lr.isBlob(e))return e.size;if(Lr.isSpecCompliantForm(e))return(await new Request(vh.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Lr.isArrayBufferView(e)||Lr.isArrayBuffer(e))return e.byteLength;if(Lr.isURLSearchParams(e)&&(e=e+""),Lr.isString(e))return(await Rlt(e)).byteLength},Ult=async(e,o)=>Lr.toFiniteNumber(e.getContentLength())??$lt(o),Hlt=ow&&(async e=>{let{url:o,method:s,data:O,signal:W,cancelToken:_,timeout:g,onDownloadProgress:a,onUploadProgress:v,responseType:d,headers:n,withCredentials:x="same-origin",fetchOptions:y}=qD(e);d=d?(d+"").toLowerCase():"text";let b=Flt([W,_&&_.toAbortSignal()],g),u;const r=b&&b.unsubscribe&&(()=>{b.unsubscribe()});let i;try{if(v&&jlt&&s!=="get"&&s!=="head"&&(i=await Ult(n,O))!==0){let w=new Request(o,{method:"POST",body:O,duplex:"half"}),C;if(Lr.isFormData(O)&&(C=w.headers.get("content-type"))&&n.setContentType(C),w.body){const[A,T]=UD(i,iw(HD(v)));O=YD(w.body,JD,A,T)}}Lr.isString(x)||(x=x?"include":"omit");const h="credentials"in Request.prototype;u=new Request(o,{...y,signal:b,method:s.toUpperCase(),headers:n.normalize().toJSON(),body:O,duplex:"half",credentials:h?x:void 0});let l=await fetch(u,y);const p=m9&&(d==="stream"||d==="response");if(m9&&(a||p&&r)){const w={};["status","statusText","headers"].forEach(P=>{w[P]=l[P]});const C=Lr.toFiniteNumber(l.headers.get("content-length")),[A,T]=a&&UD(C,iw(HD(a),!0))||[];l=new Response(YD(l.body,JD,A,()=>{T&&T(),r&&r()}),w)}d=d||"text";let m=await sw[Lr.findKey(sw,d)||"text"](l,e);return!p&&r&&r(),await new Promise((w,C)=>{$D(w,C,{data:m,headers:lp.from(l.headers),status:l.status,statusText:l.statusText,config:e,request:u})})}catch(h){throw r&&r(),h&&h.name==="TypeError"&&/Load failed|fetch/i.test(h.message)?Object.assign(new _l("Network Error",_l.ERR_NETWORK,e,u),{cause:h.cause||h}):_l.from(h,h&&h.code,e,u)}}),g9={http:ilt,xhr:Olt,fetch:Hlt};Lr.forEach(g9,(e,o)=>{if(e){try{Object.defineProperty(e,"name",{value:o})}catch{}Object.defineProperty(e,"adapterName",{value:o})}});const KD=e=>`- ${e}`,Glt=e=>Lr.isFunction(e)||e===null||e===!1,QD={getAdapter:e=>{e=Lr.isArray(e)?e:[e];const{length:o}=e;let s,O;const W={};for(let _=0;_<o;_++){s=e[_];let g;if(O=s,!Glt(s)&&(O=g9[(g=String(s)).toLowerCase()],O===void 0))throw new _l(`Unknown adapter '${g}'`);if(O)break;W[g||"#"+_]=O}if(!O){const _=Object.entries(W).map(([a,v])=>`adapter ${a} `+(v===!1?"is not supported by the environment":"is not available in the build"));let g=o?_.length>1?`since :
|
|
4127
4127
|
`+_.map(KD).join(`
|
|
@@ -8180,4 +8180,4 @@ uniform ${De} ${He} u_${at};
|
|
|
8180
8180
|
* vuex v4.0.2
|
|
8181
8181
|
* (c) 2021 Evan You
|
|
8182
8182
|
* @license MIT
|
|
8183
|
-
*/var GLt="store";function ug(e,o){Object.keys(e).forEach(function(s){return o(e[s],s)})}function IU(e){return e!==null&&typeof e=="object"}function WLt(e){return e&&typeof e.then=="function"}function Of(e,o){if(!e)throw new Error("[vuex] "+o)}function qLt(e,o){return function(){return e(o)}}function PU(e,o,s){return o.indexOf(e)<0&&(s&&s.prepend?o.unshift(e):o.push(e)),function(){var O=o.indexOf(e);O>-1&&o.splice(O,1)}}function BU(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;w5(e,s,[],e._modules.root,!0),QS(e,s,o)}function QS(e,o,s){var O=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var W=e._wrappedGetters,_={};ug(W,function(g,a){_[a]=qLt(g,e),Object.defineProperty(e.getters,a,{get:function(){return _[a]()},enumerable:!0})}),e._state=t.reactive({data:o}),e.strict&&KLt(e),O&&s&&e._withCommit(function(){O.data=null})}function w5(e,o,s,O,W){var _=!s.length,g=e._modules.getNamespace(s);if(O.namespaced&&(e._modulesNamespaceMap[g]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+g+" for the namespaced module "+s.join("/")),e._modulesNamespaceMap[g]=O),!_&&!W){var a=eC(o,s.slice(0,-1)),v=s[s.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&v in a&&console.warn('[vuex] state field "'+v+'" was overridden by a module with the same name at "'+s.join(".")+'"'),a[v]=O.state})}var d=O.context=YLt(e,g,s);O.forEachMutation(function(n,x){var y=g+x;ZLt(e,y,n,d)}),O.forEachAction(function(n,x){var y=n.root?x:g+x,b=n.handler||n;XLt(e,y,b,d)}),O.forEachGetter(function(n,x){var y=g+x;JLt(e,y,n,d)}),O.forEachChild(function(n,x){w5(e,o,s.concat(x),n,W)})}function YLt(e,o,s){var O=o==="",W={dispatch:O?e.dispatch:function(_,g,a){var v=k5(_,g,a),d=v.payload,n=v.options,x=v.type;if((!n||!n.root)&&(x=o+x,process.env.NODE_ENV!=="production"&&!e._actions[x])){console.error("[vuex] unknown local action type: "+v.type+", global type: "+x);return}return e.dispatch(x,d)},commit:O?e.commit:function(_,g,a){var v=k5(_,g,a),d=v.payload,n=v.options,x=v.type;if((!n||!n.root)&&(x=o+x,process.env.NODE_ENV!=="production"&&!e._mutations[x])){console.error("[vuex] unknown local mutation type: "+v.type+", global type: "+x);return}e.commit(x,d,n)}};return Object.defineProperties(W,{getters:{get:O?function(){return e.getters}:function(){return LU(e,o)}},state:{get:function(){return eC(e.state,s)}}}),W}function LU(e,o){if(!e._makeLocalGettersCache[o]){var s={},O=o.length;Object.keys(e.getters).forEach(function(W){if(W.slice(0,O)===o){var _=W.slice(O);Object.defineProperty(s,_,{get:function(){return e.getters[W]},enumerable:!0})}}),e._makeLocalGettersCache[o]=s}return e._makeLocalGettersCache[o]}function ZLt(e,o,s,O){var W=e._mutations[o]||(e._mutations[o]=[]);W.push(function(_){s.call(e,O.state,_)})}function XLt(e,o,s,O){var W=e._actions[o]||(e._actions[o]=[]);W.push(function(_){var g=s.call(e,{dispatch:O.dispatch,commit:O.commit,getters:O.getters,state:O.state,rootGetters:e.getters,rootState:e.state},_);return WLt(g)||(g=Promise.resolve(g)),e._devtoolHook?g.catch(function(a){throw e._devtoolHook.emit("vuex:error",a),a}):g})}function JLt(e,o,s,O){if(e._wrappedGetters[o]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+o);return}e._wrappedGetters[o]=function(W){return s(O.state,O.getters,W.state,W.getters)}}function KLt(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&Of(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function eC(e,o){return o.reduce(function(s,O){return s[O]},e)}function k5(e,o,s){return IU(e)&&e.type&&(s=o,o=e,e=e.type),process.env.NODE_ENV!=="production"&&Of(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:o,options:s}}var QLt="vuex bindings",zU="vuex:mutations",tC="vuex:actions",pv="vuex",ezt=0;function tzt(e,o){HLt({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:[QLt]},function(s){s.addTimelineLayer({id:zU,label:"Vuex Mutations",color:OU}),s.addTimelineLayer({id:tC,label:"Vuex Actions",color:OU}),s.addInspector({id:pv,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),s.on.getInspectorTree(function(O){if(O.app===e&&O.inspectorId===pv)if(O.filter){var W=[];VU(W,o._modules.root,O.filter,""),O.rootNodes=W}else O.rootNodes=[DU(o._modules.root,"")]}),s.on.getInspectorState(function(O){if(O.app===e&&O.inspectorId===pv){var W=O.nodeId;LU(o,W),O.state=rzt(ozt(o._modules,W),W==="root"?o.getters:o._makeLocalGettersCache,W)}}),s.on.editInspectorState(function(O){if(O.app===e&&O.inspectorId===pv){var W=O.nodeId,_=O.path;W!=="root"&&(_=W.split("/").filter(Boolean).concat(_)),o._withCommit(function(){O.set(o._state.data,_,O.state.value)})}}),o.subscribe(function(O,W){var _={};O.payload&&(_.payload=O.payload),_.state=W,s.notifyComponentUpdate(),s.sendInspectorTree(pv),s.sendInspectorState(pv),s.addTimelineEvent({layerId:zU,event:{time:Date.now(),title:O.type,data:_}})}),o.subscribeAction({before:function(O,W){var _={};O.payload&&(_.payload=O.payload),O._id=ezt++,O._time=Date.now(),_.state=W,s.addTimelineEvent({layerId:tC,event:{time:O._time,title:O.type,groupId:O._id,subtitle:"start",data:_}})},after:function(O,W){var _={},g=Date.now()-O._time;_.duration={_custom:{type:"duration",display:g+"ms",tooltip:"Action duration",value:g}},O.payload&&(_.payload=O.payload),_.state=W,s.addTimelineEvent({layerId:tC,event:{time:Date.now(),title:O.type,groupId:O._id,subtitle:"end",data:_}})}})})}var OU=8702998,nzt=6710886,azt=16777215,FU={label:"namespaced",textColor:azt,backgroundColor:nzt};function NU(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function DU(e,o){return{id:o||"root",label:NU(o),tags:e.namespaced?[FU]:[],children:Object.keys(e._children).map(function(s){return DU(e._children[s],o+s+"/")})}}function VU(e,o,s,O){O.includes(s)&&e.push({id:O||"root",label:O.endsWith("/")?O.slice(0,O.length-1):O||"Root",tags:o.namespaced?[FU]:[]}),Object.keys(o._children).forEach(function(W){VU(e,o._children[W],s,O+W+"/")})}function rzt(e,o,s){o=s==="root"?o:o[s];var O=Object.keys(o),W={state:Object.keys(e.state).map(function(g){return{key:g,editable:!0,value:e.state[g]}})};if(O.length){var _=izt(o);W.getters=Object.keys(_).map(function(g){return{key:g.endsWith("/")?NU(g):g,editable:!1,value:nC(function(){return _[g]})}})}return W}function izt(e){var o={};return Object.keys(e).forEach(function(s){var O=s.split("/");if(O.length>1){var W=o,_=O.pop();O.forEach(function(g){W[g]||(W[g]={_custom:{value:{},display:g,tooltip:"Module",abstract:!0}}),W=W[g]._custom.value}),W[_]=nC(function(){return e[s]})}else o[s]=nC(function(){return e[s]})}),o}function ozt(e,o){var s=o.split("/").filter(function(O){return O});return s.reduce(function(O,W,_){var g=O[W];if(!g)throw new Error('Missing module "'+W+'" for path "'+o+'".');return _===s.length-1?g:g._children},o==="root"?e:e.root._children)}function nC(e){try{return e()}catch(o){return o}}var Ff=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)||{}},RU={namespaced:{configurable:!0}};RU.namespaced.get=function(){return!!this._rawModule.namespaced},Ff.prototype.addChild=function(e,o){this._children[e]=o},Ff.prototype.removeChild=function(e){delete this._children[e]},Ff.prototype.getChild=function(e){return this._children[e]},Ff.prototype.hasChild=function(e){return e in this._children},Ff.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)},Ff.prototype.forEachChild=function(e){ug(this._children,e)},Ff.prototype.forEachGetter=function(e){this._rawModule.getters&&ug(this._rawModule.getters,e)},Ff.prototype.forEachAction=function(e){this._rawModule.actions&&ug(this._rawModule.actions,e)},Ff.prototype.forEachMutation=function(e){this._rawModule.mutations&&ug(this._rawModule.mutations,e)},Object.defineProperties(Ff.prototype,RU);var dg=function(e){this.register([],e,!1)};dg.prototype.get=function(e){return e.reduce(function(o,s){return o.getChild(s)},this.root)},dg.prototype.getNamespace=function(e){var o=this.root;return e.reduce(function(s,O){return o=o.getChild(O),s+(o.namespaced?O+"/":"")},"")},dg.prototype.update=function(e){jU([],this.root,e)},dg.prototype.register=function(e,o,s){var O=this;s===void 0&&(s=!0),process.env.NODE_ENV!=="production"&&HU(e,o);var W=new Ff(o,s);if(e.length===0)this.root=W;else{var _=this.get(e.slice(0,-1));_.addChild(e[e.length-1],W)}o.modules&&ug(o.modules,function(g,a){O.register(e.concat(a),g,s)})},dg.prototype.unregister=function(e){var o=this.get(e.slice(0,-1)),s=e[e.length-1],O=o.getChild(s);if(!O){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+s+"', which is not registered");return}O.runtime&&o.removeChild(s)},dg.prototype.isRegistered=function(e){var o=this.get(e.slice(0,-1)),s=e[e.length-1];return o?o.hasChild(s):!1};function jU(e,o,s){if(process.env.NODE_ENV!=="production"&&HU(e,s),o.update(s),s.modules)for(var O in s.modules){if(!o.getChild(O)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+O+"' on hot reloading, manual reload is needed");return}jU(e.concat(O),o.getChild(O),s.modules[O])}}var $U={assert:function(e){return typeof e=="function"},expected:"function"},szt={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},UU={getters:$U,mutations:$U,actions:szt};function HU(e,o){Object.keys(UU).forEach(function(s){if(o[s]){var O=UU[s];ug(o[s],function(W,_){Of(O.assert(W),lzt(e,s,_,W,O.expected))})}})}function lzt(e,o,s,O,W){var _=o+" should be "+W+' but "'+o+"."+s+'"';return e.length>0&&(_+=' in module "'+e.join(".")+'"'),_+=" is "+JSON.stringify(O)+".",_}var wp=function e(o){var s=this;o===void 0&&(o={}),process.env.NODE_ENV!=="production"&&(Of(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),Of(this instanceof e,"store must be called with the new operator."));var O=o.plugins;O===void 0&&(O=[]);var W=o.strict;W===void 0&&(W=!1);var _=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 dg(o),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=_;var g=this,a=this,v=a.dispatch,d=a.commit;this.dispatch=function(x,y){return v.call(g,x,y)},this.commit=function(x,y,b){return d.call(g,x,y,b)},this.strict=W;var n=this._modules.root.state;w5(this,n,[],this._modules.root),QS(this,n),O.forEach(function(x){return x(s)})},aC={state:{configurable:!0}};wp.prototype.install=function(e,o){e.provide(o||GLt,this),e.config.globalProperties.$store=this;var s=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;s&&tzt(e,this)},aC.state.get=function(){return this._state.data},aC.state.set=function(e){process.env.NODE_ENV!=="production"&&Of(!1,"use store.replaceState() to explicit replace store state.")},wp.prototype.commit=function(e,o,s){var O=this,W=k5(e,o,s),_=W.type,g=W.payload,a=W.options,v={type:_,payload:g},d=this._mutations[_];if(!d){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+_);return}this._withCommit(function(){d.forEach(function(n){n(g)})}),this._subscribers.slice().forEach(function(n){return n(v,O.state)}),process.env.NODE_ENV!=="production"&&a&&a.silent&&console.warn("[vuex] mutation type: "+_+". Silent option has been removed. Use the filter functionality in the vue-devtools")},wp.prototype.dispatch=function(e,o){var s=this,O=k5(e,o),W=O.type,_=O.payload,g={type:W,payload:_},a=this._actions[W];if(!a){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+W);return}try{this._actionSubscribers.slice().filter(function(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 v=a.length>1?Promise.all(a.map(function(d){return d(_)})):a[0](_);return new Promise(function(d,n){v.then(function(x){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(x)},function(x){try{s._actionSubscribers.filter(function(y){return y.error}).forEach(function(y){return y.error(g,s.state,x)})}catch(y){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(y))}n(x)})})},wp.prototype.subscribe=function(e,o){return PU(e,this._subscribers,o)},wp.prototype.subscribeAction=function(e,o){var s=typeof e=="function"?{before:e}:e;return PU(s,this._actionSubscribers,o)},wp.prototype.watch=function(e,o,s){var O=this;return process.env.NODE_ENV!=="production"&&Of(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(O.state,O.getters)},o,Object.assign({},s))},wp.prototype.replaceState=function(e){var o=this;this._withCommit(function(){o._state.data=e})},wp.prototype.registerModule=function(e,o,s){s===void 0&&(s={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(Of(Array.isArray(e),"module path must be a string or an Array."),Of(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,o),w5(this,this.state,e,this._modules.get(e),s.preserveState),QS(this,this.state)},wp.prototype.unregisterModule=function(e){var o=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&Of(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var s=eC(o.state,e.slice(0,-1));delete s[e[e.length-1]]}),BU(this)},wp.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&Of(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},wp.prototype.hotUpdate=function(e){this._modules.update(e),BU(this,!0)},wp.prototype._withCommit=function(e){var o=this._committing;this._committing=!0,e(),this._committing=o},Object.defineProperties(wp.prototype,aC);var czt=dzt(function(e,o){var s={};return process.env.NODE_ENV!=="production"&&!GU(o)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),uzt(o).forEach(function(O){var W=O.key,_=O.val;s[W]=function(){for(var g=[],a=arguments.length;a--;)g[a]=arguments[a];var v=this.$store.commit;if(e){var d=hzt(this.$store,"mapMutations",e);if(!d)return;v=d.context.commit}return typeof _=="function"?_.apply(this,[v].concat(g)):v.apply(this.$store,[_].concat(g))}}),s});function uzt(e){return GU(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 GU(e){return Array.isArray(e)||IU(e)}function dzt(e){return function(o,s){return typeof o!="string"?(s=o,o=""):o.charAt(o.length-1)!=="/"&&(o+="/"),e(o,s)}}function hzt(e,o,s){var O=e._modulesNamespaceMap[s];return process.env.NODE_ENV!=="production"&&!O&&console.error("[vuex] module namespace not found in "+o+"(): "+s),O}const pzt="/icn-play.svg",fzt="/icn-tiros-de-esquina.svg",mzt="/icn-tiro-a-porteria.svg",gzt="/icn-cambio.svg",yzt="/icn-falta.svg",vzt="/atajada.svg",_zt="/fuera-de-lugar.svg",rC="/gol.svg",bzt="/var.png",xzt="/tiempo-agregado.svg",wzt="/jugada-peligrosa.svg",kzt="/penal-marcado.svg",Szt="/penal-fallado.svg",Czt="/inicia-el-partido.svg",Tzt="/fin-del-partido.svg",Ezt="/icn-tarjeta-amarilla.svg",Azt="/icn-tarjeta-roja.svg",Mzt=[1,2,3,4,6],Izt={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 JS.GOAL_IDS.includes(o)?(e.push("is-main-event"),e.push("goal")):JS.YELLOW_CARD_IDS.includes(o)?(e.push("is-main-event"),e.push("yellow-card")):JS.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=>FLt(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||Mzt.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...czt("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})}}},Pzt=e=>(t.pushScopeId("data-v-f8c0f071"),e=e(),t.popScopeId(),e),Bzt={class:"time-line-event__details"},Lzt={width:"127",preload:"metadata",style:{"border-radius":"8px"}},zzt=["src"],Ozt=Pzt(()=>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)),Fzt={class:"time-line-event__details__info"},Nzt={key:0,class:"time-line-event__details__info__header__players"},Dzt={class:"time-line-event__details__info__header__players__div-img"},Vzt=["src"],Rzt={class:"time-line-event__details__info__body"},jzt={class:"time-line-event__details__info__body__comment"},$zt={class:"time-line-event__minute__container"},Uzt={class:"time-line-event__minute__container__text"},Hzt={class:"time-line-event__minute__container__icon-container"},Gzt={class:"time-line-event__minute__container__icon-container__icon"},Wzt={key:0,src:fzt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},qzt={key:1,src:mzt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Yzt={key:2,src:gzt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Zzt={key:3,src:yzt,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},Xzt={key:4,src:vzt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Jzt={key:5,src:_zt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Kzt={key:6,src:rC,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Qzt={key:7,src:rC,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},eOt={key:8,src:rC,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},tOt={key:9,src:bzt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},nOt={key:10,src:xzt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},aOt={key:11,src:wzt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},rOt={key:12,src:kzt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},iOt={key:13,src:Szt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},oOt={key:14,src:Czt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},sOt={key:15,src:Tzt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},lOt={key:16,src:Ezt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},cOt={key:17,src:Azt,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},uOt={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 dOt(e,o,s,O,W,_){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",_.teamTypeClasses]),style:t.normalizeStyle({width:`${s.width}px`}),key:W.gameEventKey},[t.createElementVNode("div",Bzt,[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=>_.thumbnailClick(s.gameEvent.video_link,s.gameEvent.event_type_name))},[t.createElementVNode("video",Lzt,[t.createElementVNode("source",{src:s.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,zzt)]),Ozt])):t.createCommentVNode("",!0),t.createElementVNode("div",Fzt,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",_.teamTypeClasses2])},[s.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",Nzt,[_.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(_.srcImgPlayers,(g,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":a===1}]),key:a},[t.createElementVNode("div",Dzt,[t.createElementVNode("img",{src:g,alt:""},null,8,Vzt)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",_.nameClasses]),onClick:o[1]||(o[1]=g=>_.thumbnailClick(s.gameEvent.video_link,s.gameEvent.event_type_name))},[s.canPlayVideos&&s.gameEvent.video_link!=="-"?(t.openBlock(),t.createElementBlock("img",{key:0,src:pzt,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",Rzt,[t.createElementVNode("div",jzt,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",_.minuteClasses])},[t.createElementVNode("div",$zt,[t.createElementVNode("div",Uzt,t.toDisplayString(s.gameEvent.minute)+"'",1),t.createElementVNode("div",Hzt,[t.createElementVNode("div",Gzt,[s.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",Wzt)):s.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",qzt)):s.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",Yzt)):s.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",Zzt)):s.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",Xzt)):s.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",Jzt)):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",Kzt)):s.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",Qzt)):s.gameEvent.category_id==13||s.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",eOt)):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",tOt)):s.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",nOt)):s.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",aOt)):s.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",rOt)):s.gameEvent.category_id==15||s.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",iOt)):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",oOt)):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",sOt)):s.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",lOt)):s.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",cOt)):(t.openBlock(),t.createElementBlock("img",uOt))])])])],2)],6)}const hOt=o_(Izt,[["render",dOt],["__scopeId","data-v-f8c0f071"]]),pOt={"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"},fOt={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 S5=null;const mOt={name:"TimeLine",components:{Tooltip:BLt,TimeLineEvent:hOt},mixins:[zLt],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":pOt[`${e.event_type_id}-${e.category_id}`],e.team_id===this.gameData.homeTeam.team_id||!e.team_id?(e.teamType=1,["home-team-event"]):(e.teamType=2,["away-team-event"])},getEventContainerClass(){return this.isMobile,["time-line-event__container--desktop"]},async fetchGameEvents(e){try{const{data:{plays:o}}=await TU.get(`${this.gameEventsUrl}${e}`);return o}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)S5=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),S5.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,o){const s=this.$refs[`gameEventDiv${o}`][0],O=this.$refs[`gameEventLine${o}`]?this.$refs[`gameEventLine${o}`][0]:null,W=e+12;s&&(s.style.height=`${W}px`),O&&(O.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=fOt[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 OLt(o)},thumbnailClick(e){this.canPlayVideos&&(this.dataVideo.link=e,this.dataVideo.visible=!0)}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){S5&&S5.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)}}},WU=e=>(t.pushScopeId("data-v-2574e576"),e=e(),t.popScopeId(),e),gOt={ref:"timeLine",class:"time-line"},yOt={class:"time-line__header"},vOt={class:"time-line__header__dot"},_Ot={class:"time-line__header__dot__home-team team-logo"},bOt=["src"],xOt={class:"time-line__header__dot__away-team team-logo"},wOt=["src"],kOt={key:1,class:"start-line"},SOt=WU(()=>t.createElementVNode("div",null,null,-1)),COt=WU(()=>t.createElementVNode("div",null,null,-1)),TOt=[SOt,COt],EOt={key:1,class:"noEventText"},AOt={class:"tooltip-data"},MOt=["src"];function IOt(e,o,s,O,W,_){const g=t.resolveComponent("TimeLineEvent"),a=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",gOt,[t.createElementVNode("div",yOt,[t.createElementVNode("div",vOt,[t.createElementVNode("div",_Ot,[t.createElementVNode("img",{src:_.getTeamLogoSrc("homeTeam"),alt:""},null,8,bOt)]),t.createElementVNode("div",xOt,[t.createElementVNode("img",{src:_.getTeamLogoSrc("awayTeam"),alt:""},null,8,wOt)])])]),(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(_.gameEventsToShow,(v,d)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:v.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${d}`,class:t.normalizeClass(_.getGameEventClassAndSetIcon(v,d))},[t.createElementVNode("div",{class:t.normalizeClass(_.getEventContainerClass(v))},[t.createVNode(g,{"game-event":v,"is-mobile":_.isMobile,"time-line-width":W.timeLineWidth,width:_.gameEventWidth,"can-play-videos":s.canPlayVideos,onEventHeight:n=>_.updateContainerHeight(n,d),onPlayerChanged:o[0]||(o[0]=n=>e.$emit("player-changed",n)),onThumbnailClick:_.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","can-play-videos","onEventHeight","onThumbnailClick"])],2),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===_.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",kOt,TOt)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",EOt,"Aún no comienza el partido"))]))],512),t.createVNode(a,{data:W.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",AOt,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:W.dataVideo.link,format:"video/mp4"},null,8,MOt)])])]),_:1},8,["data"])],64)}const POt=o_(mOt,[["render",IOt],["__scopeId","data-v-2574e576"]]),BOt={class:"game-time-line__options"},LOt={class:"game-time-line__timeline"},zOt={__name:"GSC-GameTimeLine",props:{game:{type:Object,default:()=>({id:79601,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,homeTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/18.png",team_id:18,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/1.png",team_id:1,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},setup(e){TU.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const o=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"}),s=t.ref({width:"auto",height:"30px",padding:"0px 20px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"});let O=null;const W=t.ref(["Todo","1er tiempo","2do tiempo"]),_=t.ref("Todo"),g=t.ref({}),a=t.ref(null),v=t.ref(0),d=t.computed(()=>{let u="all";return _.value==="1er tiempo"||_.value==="1er"?u="firstHalf":(_.value==="2do tiempo"||_.value==="2do")&&(u="secondHalf"),u}),n=t.computed(()=>v.value<500);function x(u){_.value=u}function y(u){g.value=u}function b(){if(window.ResizeObserver)O=new ResizeObserver(()=>{v.value=a.value.clientWidth}),O.observe(a.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{b()}),t.onBeforeUnmount(()=>{O&&O.unobserve(a.value)}),(u,r)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:a,class:"game-time-line"},[t.createElementVNode("div",BOt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value,i=>(t.openBlock(),t.createElementBlock("div",{key:i,class:"game-time-line__options__option"},[t.createVNode(XPt,t.mergeProps(v.value<390?s.value:o.value,{text:i=="Todo"?i:v.value<390?i.substring(0,3):i,"is-active":_.value===i,onClick:h=>x(i)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",LOt,[t.createVNode(POt,{"game-data":e.game,"time-line-period":d.value,"is-mobile":n.value,socket:e.socket,"can-play-videos":e.canPlayVideos,onGameEventsByPeriodFilled:y},null,8,["game-data","time-line-period","is-mobile","socket","can-play-videos"])])],512))}},OOt=o_(zOt,[["__scopeId","data-v-3596be52"]]),Vqt="",FOt={class:"game-data__header"},NOt={class:"game-data__header__tournament-season-dropdown"},DOt={class:"game-data__header__teams-carousel"},VOt={class:"game-data__body"},ROt={key:0,class:"no-stats-container"},jOt={key:1,class:"no-stats-container-mobile"},$Ot={class:"game-data__body__menu"},UOt={class:"game-data__body__menu__contmenuswitch"};_u.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const HOt=t.defineComponent({name:"GSC-GameData",components:{StatisticsMain:dse,GSCGameTimeLine:OOt,GscSwitchComponent:i9,GSCLineupsMain:Jbe,GSCPositining:L1t,GSCDatosGSMain:ZSe,GSCVideoGame:hNe,ModalEvents:mO,GSCTacticaFijaMain:YPt,GSCProminentMain:drt,GSCComparative:yst}}),GOt=Ji(Object.assign(HOt,{props:{tournamentsApiUrl:{type:String,default:""},areFemaleTournamentsVisible:{type:Boolean,default:!0},currentSeasonId:{type:Number,default:0},isClubes:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},socket:{type:Object,default:()=>null},isSynchronization:{type:Boolean,default:!1},isTeamGamePerPage:{type:Boolean,default:!1},clientPrivilegesBySeasons:{type:Object,default:()=>null},areTournamentAndSeasonSelectsVisible:{type:Boolean,default:!0},disabledSectionsIds:{type:Array,default:()=>[]},tournamentsIdsToInclude:{type:Set,default:()=>new Set},volumetricFieldIntervalMinutes:{type:Number,default:2},chalkboardIntervalMinutes:{type:Number,default:2},gameEventsIntervalMinutes:{type:Number,default:1}},emits:["openmedia","change-season-id","onOpenProfile","openProfileTeam","openProfilePlayer"],setup(e,{emit:o}){const s=Q5();let O=null;zd.on("socket-connected",()=>{s.commit("nextGeneral/updateIsSocketConnected",W.socket.connected)});const W=e,_=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),g=t.ref({season:[]}),a=t.ref({}),v=t.ref(!1),d=t.ref({}),n=t.ref(1),x=t.ref(0),y=3e4,b=3e4,u=3e4,r=3e4,i=3e4,h=3e4,l=3e4,p=3e4,m=6e4,w=t.ref(null),C=t.ref(null),A=t.ref(null),T=t.ref([]),P=t.ref(null),B=t.ref(!0),E=t.ref(new Set([1,2])),I=t.ref({}),M=t.ref({minute:"",recent_lapse:0,score:{}}),S=t.ref(0),L=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),k=t.ref(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}]),z=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}]),F=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 R=t.ref(0);let U=null;const H=t.ref(null),$=t.ref(0),J=t.ref(z.value[0]),ae=t.ref([]);let Y=t.ref("");const ee={seasonAndPrivileges:null,canPrivilegesTeamPlayVideos:!1,homeTeamDetails:{canPlayVideos:!1,team:{}},awayTeamDetails:{canPlayVideos:!1,team:{}}},te=t.computed(()=>{const ot=[];return a.value&&a.value.id&&(ot.push({id:a.value.id,name:a.value.name,type:a.value.type}),a.value.related_seasons&&a.value.related_seasons.forEach(_t=>{ot.push({id:_t.id,type:_t.type})})),ot}),X=t.computed(()=>{if(W.clientPrivilegesBySeasons){const ot=W.clientPrivilegesBySeasons.seasonsAndPrivileges.get(a.value.id);if(ot)return ot.teamId}return 0});function K(){v.value=!1}function ce(ot){const _t=ot.split(",");return!(_t.length<2||_t[1].split(" ").length<2)}function de(ot){w.value=ot}function he(ot){T.value.push(ot)}function pe(ot){P.value=ot}function re(ot){A.value=ot}function le(ot){C.value=ot}function se(ot){if(!ce(ot))return"";const _t=be(ot);return`${me(ot)}. ${_t}`}function me(ot){return ot.split(",")[1].split(" ")[1][0]}function be(ot){const _t=ot.split(",")[0].split(" ");return _t[0].length<=3&&_t.length>1?`${_t[0]} ${_t[1]}`:_t[0]}async function ve(ot){try{const _t=_u.create({headers:{Authorization:`${_.value}`}});I.value={};const gt=await _t.get("https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/"+ot.game_id);if(I.value[ot.home_team.team_id]=[],I.value[ot.home_team.team_id].team={name:ot.home_team.acronym,logo:ot.home_team.logo},I.value[ot.home_team.team_id].goals=[],I.value[ot.home_team.team_id].red=[],I.value[ot.home_team.team_id].yellow=[],I.value[ot.visiting_team.team_id]=[],I.value[ot.visiting_team.team_id].team={name:ot.visiting_team.acronym,logo:ot.visiting_team.logo},I.value[ot.visiting_team.team_id].goals=[],I.value[ot.visiting_team.team_id].red=[],I.value[ot.visiting_team.team_id].yellow=[],gt.data.minute!=null&&(M.value={minute:gt.data.minute,recent_lapse:gt.data.recent_lapse,score:gt.data.score}),gt.data.plays)for(let Bt=0;Bt<gt.data.plays.length;Bt++)gt.data.plays[Bt].category_name=="Roja"&>.data.plays[Bt].status==1&&(ot.home_team.team_id==gt.data.plays[Bt].team_id?(se(gt.data.plays[Bt].player_name)in I.value[ot.home_team.team_id].red||(I.value[ot.home_team.team_id].red[se(gt.data.plays[Bt].player_name)]={},I.value[ot.home_team.team_id].red[se(gt.data.plays[Bt].player_name)].event=[],I.value[ot.home_team.team_id].red[se(gt.data.plays[Bt].player_name)].name=se(gt.data.plays[Bt].player_name)),I.value[ot.home_team.team_id].red[se(gt.data.plays[Bt].player_name)].event.push(gt.data.plays[Bt].minute)):(se(gt.data.plays[Bt].player_name)in I.value[ot.visiting_team.team_id].red||(I.value[ot.visiting_team.team_id].red[se(gt.data.plays[Bt].player_name)]={},I.value[ot.visiting_team.team_id].red[se(gt.data.plays[Bt].player_name)].event=[],I.value[ot.visiting_team.team_id].red[se(gt.data.plays[Bt].player_name)].name=se(gt.data.plays[Bt].player_name)),I.value[ot.visiting_team.team_id].red[se(gt.data.plays[Bt].player_name)].event.push(gt.data.plays[Bt].minute))),gt.data.plays[Bt].category_name=="Amarilla"&>.data.plays[Bt].status==1&&(ot.home_team.team_id==gt.data.plays[Bt].team_id?(se(gt.data.plays[Bt].player_name)in I.value[ot.home_team.team_id].yellow||(I.value[ot.home_team.team_id].yellow[se(gt.data.plays[Bt].player_name)]={},I.value[ot.home_team.team_id].yellow[se(gt.data.plays[Bt].player_name)].event=[],I.value[ot.home_team.team_id].yellow[se(gt.data.plays[Bt].player_name)].name=se(gt.data.plays[Bt].player_name)),I.value[ot.home_team.team_id].yellow[se(gt.data.plays[Bt].player_name)].event.push(gt.data.plays[Bt].minute)):(se(gt.data.plays[Bt].player_name)in I.value[ot.visiting_team.team_id].yellow||(I.value[ot.visiting_team.team_id].yellow[se(gt.data.plays[Bt].player_name)]={},I.value[ot.visiting_team.team_id].yellow[se(gt.data.plays[Bt].player_name)].event=[],I.value[ot.visiting_team.team_id].yellow[se(gt.data.plays[Bt].player_name)].name=se(gt.data.plays[Bt].player_name)),I.value[ot.visiting_team.team_id].yellow[se(gt.data.plays[Bt].player_name)].event.push(gt.data.plays[Bt].minute))),gt.data.plays[Bt].event_type_name=="Gol"&>.data.plays[Bt].status==1&&(ot.home_team.team_id==gt.data.plays[Bt].team_id?gt.data.plays[Bt].category_name=="Autogol"?(se(gt.data.plays[Bt].player_name)in I.value[ot.visiting_team.team_id].goals||(I.value[ot.visiting_team.team_id].goals[se(gt.data.plays[Bt].player_name)]={},I.value[ot.visiting_team.team_id].goals[se(gt.data.plays[Bt].player_name)].event=[],I.value[ot.visiting_team.team_id].goals[se(gt.data.plays[Bt].player_name)].name=se(gt.data.plays[Bt].player_name)),I.value[ot.visiting_team.team_id].goals[se(gt.data.plays[Bt].player_name)].event.push(gt.data.plays[Bt].minute)):(se(gt.data.plays[Bt].player_name)in I.value[ot.home_team.team_id].goals||(I.value[ot.home_team.team_id].goals[se(gt.data.plays[Bt].player_name)]={},I.value[ot.home_team.team_id].goals[se(gt.data.plays[Bt].player_name)].event=[],I.value[ot.home_team.team_id].goals[se(gt.data.plays[Bt].player_name)].name=se(gt.data.plays[Bt].player_name)),I.value[ot.home_team.team_id].goals[se(gt.data.plays[Bt].player_name)].event.push(gt.data.plays[Bt].minute)):gt.data.plays[Bt].category_name=="Autogol"?(se(gt.data.plays[Bt].player_name)in I.value[ot.home_team.team_id].goals||(I.value[ot.home_team.team_id].goals[se(gt.data.plays[Bt].player_name)]={},I.value[ot.home_team.team_id].goals[se(gt.data.plays[Bt].player_name)].event=[],I.value[ot.home_team.team_id].goals[se(gt.data.plays[Bt].player_name)].name=se(gt.data.plays[Bt].player_name)),I.value[ot.home_team.team_id].goals[se(gt.data.plays[Bt].player_name)].event.push(gt.data.plays[Bt].minute)):(se(gt.data.plays[Bt].player_name)in I.value[ot.visiting_team.team_id].goals||(I.value[ot.visiting_team.team_id].goals[se(gt.data.plays[Bt].player_name)]={},I.value[ot.visiting_team.team_id].goals[se(gt.data.plays[Bt].player_name)].event=[],I.value[ot.visiting_team.team_id].goals[se(gt.data.plays[Bt].player_name)].name=se(gt.data.plays[Bt].player_name)),I.value[ot.visiting_team.team_id].goals[se(gt.data.plays[Bt].player_name)].event.push(gt.data.plays[Bt].minute)))}catch(_t){return Promise.reject(_t)}}function we(ot){v.value=!0,ot.is_live!=1&&ot.game_status!=0&&(ot.game_status==4||Object.keys(ot.minutes).length>0)?(S.value=1,I.value={plays:ot.minutes,home_team:ot.home_team,visiting_team:ot.visiting_team}):(S.value=0,ve(ot))}function Te(){U=new ResizeObserver(ot=>{for(const _t of ot)$.value=_t.contentRect.width}),U.observe(H.value)}const Ce=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,$e,{immediate:!0}),t.watch(()=>s.state.nextGeneral.gameForAnalysis,()=>{s.commit("nextGeneral/updateIsSocketConnected",W.socket.connected)},{deep:!0,immediate:!0});function Me(ot){n.value=ot.is_captured,x.value=ot.is_female,B.value=ot.is_captured!==0,g.value.id!==ot.id&&(g.value=ot,s.commit("gameGlobal/setTournamentType",ot.tournament_type))}const Pe=o;function Le(ot,_t){s.commit("nextGeneral/updateShowLiveData",!0);const gt=x.value?"Destacados":"Destacadas";z.value.forEach(Bt=>{Bt.name===gt&&(Bt.name=x.value?"Destacadas":"Destacados")}),ve({game_id:d.value.game_id,home_team:d.value.home_team,visiting_team:d.value.visiting_team}),Re(),R.value+=1}function $e(ot,_t){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 gt=z4();gt.disconnected?O4():gt.connected&&wE(`game.${d.value.game_id}.v2`),Ie(),O=setInterval(()=>{S.value=0,ve({game_id:d.value.game_id,home_team:d.value.home_team,visiting_team:d.value.visiting_team})},6e4)}else Ie(),F4();ot!==_t&&(R.value+=1)}function Ie(){O&&clearInterval(O)}function Re(){z.value=[],d.value.is_live||d.value.game_status===4?z.value=[...k.value]:z.value=[...F.value],W.isWidget||((a.value.is_tactic_available===0||d.value.is_live||d.value.game_status===0)&&z.value.pop(),d.value.has_tracking===1&&!(d.value.is_live||d.value.game_status===4)&&z.value.push({componentName:"GSCPositining",name:"Posicionamiento",id:8})),J.value=z.value[0]}function Be(ot){ot.gameSeasonId=d.value.season_id,ot.gameRegularSeasonId=d.value.regularSeasonId,!(!ot.auxwidget&&ke.value&&!ke.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}),Pe("openmedia",ot))}function ge(ot){Pe("onOpenProfile",ot)}function Ae(ot){Pe("openProfileTeam",ot)}function ye(ot){Pe("openProfilePlayer",ot)}function Fe(ot){We(ot),ot=="Estadísticas"&&(Y.value="Comparativa")}function ze(){Y.value=""}function Ve(ot){a.value.id!==ot.id&&(a.value=ot,Pe("change-season-id",ot.id))}const Ge=t.computed(()=>z.value.reduce((ot,_t)=>(W.disabledSectionsIds.includes(_t.id)||ke.value&&!ke.value.isVideoTabVisible&&_t.id===2||W.clientPrivilegesBySeasons&&_t.id===7||(B.value||_t.id!==5&&_t.id!==6)&&ot.push(_t.name),ot),[]));function Ze(ot){if(d.value.is_live||d.value.game_status===1||d.value.game_status===0){const _t=ot.playingAs.has(d.value.playingAs);return W.clientPrivilegesBySeasons.canPlayVideos&&_t}else{const _t=Ne.value.filter(gt=>ot.playingAs.has(gt.playingAs));return W.clientPrivilegesBySeasons.canPlayVideos&&_t.length>0}}const ke=t.computed(()=>{if(W.clientPrivilegesBySeasons){if(a.value&&d.value&&d.value.game_id){const ot=W.clientPrivilegesBySeasons.seasonsAndPrivileges.get(a.value.id);if(ot)if(je(ot.playingAs),(d.value.is_live||d.value.game_status===1||d.value.game_status===0)&&s.state.nextGeneral.showLiveData){const _t=ot.playingAs.has(d.value.playingAs);return{seasonAndPrivileges:ot,canPrivilegesTeamPlayVideos:W.clientPrivilegesBySeasons.canPlayVideos&&_t,isPrivilegesTeamOnly:!1,isPrivilegesTeamHome:d.value.home_team.team_id===ot.teamId,homeTeamDetails:{canPlayVideos:_t,team:d.value.home_team},awayTeamDetails:{canPlayVideos:_t,team:d.value.visiting_team},isVideoTabVisible:Ze(ot)}}else{const _t=d.value.home_team.team_id===ot.teamId,gt=Ne.value.filter(Dt=>ot.playingAs.has(Dt.playingAs));return{seasonAndPrivileges:ot,canPrivilegesTeamPlayVideos:W.clientPrivilegesBySeasons.canPlayVideos&>.length>0,isPrivilegesTeamOnly:!0,isPrivilegesTeamHome:_t,homeTeamDetails:{canPlayVideos:W.clientPrivilegesBySeasons.canPlayVideos&&_t&>.length>0,team:d.value.home_team},awayTeamDetails:{canPlayVideos:W.clientPrivilegesBySeasons.canPlayVideos&&!_t&>.length>0,team:d.value.visiting_team},isVideoTabVisible:Ze(ot)}}je(new Set)}return ee}return null}),Ne=t.computed(()=>{if(W.clientPrivilegesBySeasons){if(a.value){const ot=W.clientPrivilegesBySeasons.seasonsAndPrivileges.get(a.value.id);if(ot)return ae.value.filter(_t=>_t.game_status===1&&ot.playingAs.has(_t.playingAs))}return[]}return[]});t.watch(Ge,()=>{ke.value&&!ke.value.canPrivilegesTeamPlayVideos&&(J.value.id===2||J.value.id===7||J.value.id===8)&&We("Resumen")},{deep:!0,immediate:!0});function je(ot){E.value=ot}function We(ot){if(s.commit("nextGeneral/updateShowLiveData",!0),w.value!=null&&(clearInterval(w.value),w.value=null),C.value!=null&&(clearInterval(C.value),C.value=null),A.value!=null&&(clearInterval(A.value),A.value=null),P.value!=null&&(clearInterval(P.value),P.value=null),T.value.length>0){for(let _t of T.value)clearInterval(_t);T.value=[]}W.isWidget?J.value=z.value.find(_t=>_t.name===ot)||z.value[1]:J.value=z.value.find(_t=>_t.name===ot)||z.value[0]}t.onMounted(()=>{Te(),t.nextTick(()=>{W.isSynchronization&&We("Táctica Fija")})}),t.onBeforeUnmount(()=>{if(U&&U.disconnect(),w.value!=null&&(clearInterval(w.value),w.value=null),C.value!=null&&(clearInterval(C.value),C.value=null),A.value!=null&&(clearInterval(A.value),A.value=null),P.value!=null&&(clearInterval(P.value),P.value=null),T.value.length>0){for(let ot of T.value)clearInterval(ot);T.value=[]}N4()});function et(ot){if(ot.playingAs||(ot.playingAs=X.value?ot.home_team.team_id===X.value?1:2:0),w.value!=null&&(clearInterval(w.value),w.value=null),C.value!=null&&(clearInterval(C.value),C.value=null),A.value!=null&&(clearInterval(A.value),A.value=null),P.value!=null&&(clearInterval(P.value),P.value=null),T.value.length>0){for(let _t of T.value)clearInterval(_t);T.value=[]}d.value=ot,ot.is_live&&ot.game_status===4?O4():F4()}function tt(ot){ae.value=ot.map(_t=>{const gt={..._t};return X.value&&(gt.playingAs=gt.home_team.team_id===X.value?1:2),gt})}return(ot,_t)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:H},[t.createElementVNode("div",FOt,[t.withDirectives(t.createElementVNode("div",NOt,[t.createVNode(t.unref(wC),{"current-season-id":e.currentSeasonId,"tournaments-ids-to-include":e.tournamentsIdsToInclude,"api-url":e.tournamentsApiUrl,"list-height":"370px","are-female-visible":e.areFemaleTournamentsVisible,"is-clubes-active":e.isClubes,onInput:Me,onChangeTournaments:Me},null,8,["current-season-id","tournaments-ids-to-include","api-url","are-female-visible","is-clubes-active"]),t.createVNode(t.unref(CC),{"current-season-id":e.currentSeasonId,"list-height":"370px",seasons:g.value.seasons,onInput:Ve},null,8,["current-season-id","seasons"])],512),[[t.vShow,e.areTournamentAndSeasonSelectsVisible]]),t.createElementVNode("div",DOt,[t.createVNode(t.unref(EJ),{"plays-live":I.value,"info-live":M.value,token:L.value,is_captured:n.value,"await-for-seasons":"",seasons:te.value,"is-pagination-visible":!1,"are-games-carousel-type":"","default-game-id":e.defaultGameId,"sort-calendar":e.sortCalendar,"is-team-game-per-page":e.isTeamGamePerPage,"client-privileges-team-id":X.value,"only-games-team-id":X.value,"tournament-type":t.unref(s).state.gameGlobal.tournamentType,onChangeGameCarousel:et,onOpenModalEvent:we,onChangeGamesByClientPrivileges:tt},null,8,["plays-live","info-live","token","is_captured","seasons","default-game-id","sort-calendar","is-team-game-per-page","client-privileges-team-id","only-games-team-id","tournament-type"])])]),v.value?(t.openBlock(),t.createBlock(mO,{key:0,width:$.value,onCloseModalEventsLive:K,plays:I.value,game:d.value,type:S.value},null,8,["width","plays","game","type"])):t.createCommentVNode("",!0),t.createElementVNode("div",VOt,[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},[$.value>500?(t.openBlock(),t.createElementBlock("div",ROt,_t[0]||(_t[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",jOt,_t[1]||(_t[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",$Ot,[t.createElementVNode("div",UOt,[t.createVNode(t.unref(i9),{type:2,buttons:Ge.value,"font-family":"Poppins-Regular","font-size":"16px",width:$.value<400||$.value<700?"max-content":$.value<840||$.value<1050?"155px":"165px","selected-option":J.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:We},null,8,["buttons","width","selected-option"])])]),Ce.value&&Ce.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(J.value.componentName),{key:R.value,game:Ce.value,"is-widget":e.isWidget,"team-widget":e.teamWidget,onIntervalidpossesion:le,onIntervalidhighlive:re,onIntervalidtops:he,onIntervalidgs:pe,subsection:t.unref(Y),seasonSelected:a.value,tournamentSelected:g.value,showLineups:B.value,socket:e.socket,"time-live-prominent-data":y,"time-live-highlights-prominent-and-video":b,"time-live-possesion":u,"time-live-video-goals":r,"time-live-video-best-plays":i,"time-live-video-this-game":h,"time-live-video-specific-plays":l,"time-live-comparative-best-players":p,"time-live-comparative-avanced":m,is_captured:n.value,"is-tactic-visible":!!a.value.show_tactic,"is-synchronization":e.isSynchronization,"can-play-videos":ke.value?ke.value.canPrivilegesTeamPlayVideos:!0,"video-privileges-playing-as":E.value,"client-privileges-team-id":X.value,"play-videos-privileges":ke.value,token:L.value,"game-events-interval-minutes":e.gameEventsIntervalMinutes,"volumetric-field-interval-minutes":e.volumetricFieldIntervalMinutes,"chalkboard-interval-minutes":e.chalkboardIntervalMinutes,onResetSubsection:ze,onOpenmedia:Be,onOnOpenProfile:ge,onOpenProfileTeam:Ae,onOpenProfilePlayer:ye,onChangeToTab:Fe,onOpenMediaPlayer:Be,onIntervalid:de},null,40,["game","is-widget","team-widget","subsection","seasonSelected","tournamentSelected","showLineups","socket","is_captured","is-tactic-visible","is-synchronization","can-play-videos","video-privileges-playing-as","client-privileges-team-id","play-videos-privileges","token","game-events-interval-minutes","volumetric-field-interval-minutes","chalkboard-interval-minutes"])):t.createCommentVNode("",!0)],64))])],512))}}),[["__scopeId","data-v-b6980547"]]);async function Ch({url:e,options:o={},retries:s=3}){return await _u.get(e,o).then(O=>O).catch(O=>s>0?Ch({url:e,options:o,retries:s-1}):O)}async function qU({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 qU({seasonId:e},!1);throw new Error(s)}}async function WOt({seasonId:e}){try{return(await Ch({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(o){return Promise.reject(o)}}async function qOt({seasonId:e}){try{return(await Ch({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(o){return Promise.reject(o)}}function YOt(e,o,s,O,W,_,g=!1){const a=s.map(v=>v===1?2:v===2?1:3);return e.filter(v=>{const d=_&&v[W.teamId]?v[W.teamId]!==_:!1,n=o===1?2:1;return(g||O.includes(v[W.gameId]))&&(!o||(d?n:o)===v[W.playingAs])&&(s.includes(v[W.matchResult])&&v[W.teamId]===_||a.includes(v[W.matchResult])&&v[W.teamId]!==_)})}function YU(e,o,s,O,W){return o.length===2&&s.length===3&&O.length===6?e:e.filter(_=>o.includes(_[W.playingAs])&&s.includes(_[W.matchResult])&&O.includes(_[W.section]))}async function ZU({seasonId:e}){try{const o=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await Ch({url:o})).data}catch(o){return Promise.reject(o)}}async function ZOt({seasonId:e,gameId:o}){try{const s=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${o}`,{data:O}=await Ch({url:s});return O}catch(s){return Promise.reject(s)}}async function XOt({gameId:e}){try{const o=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await Ch({url:o})).data.data}catch(o){return Promise.reject(o)}}async function JOt({gameId:e}){try{const o=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await Ch({url:o})).data.data||[]}catch(o){return Promise.reject(o)}}const KOt=["categoryId","matchLapse","section","matchResult","playingAs","total"];let iC=null;function XU(){return iC||(iC=dy(KOt)),iC}async function QOt(e){try{const o=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await Ch({url:o})).data}catch(o){return Promise.reject(o)}}async function JU({seasonId:e,teamId:o}){try{return await Ch({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${o}`})}catch(s){return Promise.reject(s)}}async function eFt(e){try{const o=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await Ch({url:o})}catch(o){return Promise.reject(o)}}async function tFt(e){try{return await Ch({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(o){return Promise.reject(o)}}const nFt={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,o,s,O){return YOt(e.seasonPlays,O["filterGeneral/getPlayingAs"],O["filterGeneral/getResults"],O["filterGeneral/getSelectedGamesIds"],XU(),O["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const o=e.currentSeasonGames.reduce((s,O)=>{const W={...O};return W.home_team=e.currentSeasonTeams.find(_=>_.team_id===O.home_team),W.visiting_team=e.currentSeasonTeams.find(_=>_.team_id===O.visiting_team),s[O.matchday_abbreviation]?s[O.matchday_abbreviation][O.game_status===3?"canceled":O.date]?s[O.matchday_abbreviation][O.game_status===3?"canceled":O.date].push(W):s[O.matchday_abbreviation][O.game_status===3?"canceled":O.date]=[W]:s[O.matchday_abbreviation]={[O.game_status===3?"canceled":O.date]:[W]},s},{});for(let[s,O]of Object.entries(o))o[s]=Object.entries(O).map(([W,_])=>({date:W,games:_})),o[s].sort((W,_)=>W.date<_.date?-1:W.date>_.date?1:0);return o},matchdaysDates(e,o){let s=[];if(o.nextGamesSchedule){let O=Object.keys(o.nextGamesSchedule);for(let W of O){let _=Number(W.replace("M","")),g=o.nextGamesSchedule[W].map(a=>({matchday:_,date:new Date(a.date)}));s=s.concat(g)}}return s},closestMatchDay(e,o){let s=new Date,O=0,W=-new Date(0,0,0).valueOf(),_=o.matchdaysDates,g=_.length;for(let a=0;a<_.length;a++)O=Math.abs(_[a].date-s),O<W&&(g=a,W=O);return _[g]?_[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 O=await qU({seasonId:o["filterGeneral/getSeasonId"]});if(s)return O;e("updateSeasonPlays",O)}catch(O){return Promise.reject(O)}},async getCurrentSeasonGames({commit:e,rootGetters:o}){try{const s=await ZU({seasonId:o["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",s)}catch(s){return Promise.reject(s)}},async getCurrentSeasonTeams({commit:e,rootGetters:o}){try{const s=await QOt({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 O=[void 0,void 0];return e.currentSeasonGames.length===0&&(O[0]=o("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(O[1]=o("getCurrentSeasonTeams")),await Promise.all(O),!1}catch(O){throw new Error(O)}}}}};async function aFt({filter:e}){try{const o=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:s}=await Ch({url:o});return s}catch(o){return Promise.reject(o)}}const rFt=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let oC=null;function iFt(){return oC||(oC=dy(rFt)),oC}class C5{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,O){O&&(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,O){O&&(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,O){for(let W=s-1;W<o.accumulated.length;W++)o.accumulated[W]+=O}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,O){for(let W=o.accumulated.length-1;W>=s-1;W--)o.accumulated[W]-=O}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(O=>O/s)}calculateRanking(o,s,O,W,_,g,a,v){let d=[];W===3&&o&&o.length&&(O.playingAs.length!==2||O.matchResult.length!==3)?d=Array.from(o.reduce((x,y)=>{const b=y[s.playingAs]===1,u=b?"1":"2",r=x.get(y[s.gameId]);if(r)r[u]?r[u].arrayPlays.push(y):r[u]={numberTeamId:y[s.teamId],arrayPlays:[y]};else{const i={numberMatchResult:y[s.matchResult]};b&&(i[1]={numberTeamId:y[s.teamId],arrayPlays:[y]}),x.set(y[s.gameId],i)}return x},new Map).values()).reduce((x,y)=>{const b=O.playingAs.length===2?"both":O.playingAs[0].toString();return(b==="both"&&(y[1].numberTeamId===O.teamId||y[2].numberTeamId===O.teamId)||b!=="both"&&y[b].numberTeamId===O.teamId)&&O.matchResult.includes(y.numberMatchResult)&&x.push(...y[1].arrayPlays,...y[2].arrayPlays),x},[]).filter(x=>O.sections.includes(x[s.section])):(d=o?[...o]:[],a&&o&&(d=o.filter(n=>O.playingAs.includes(n[s.playingAs])&&O.matchResult.includes(n[s.matchResult])&&O.sections.includes(n[s.section])))),this.setTeamRanking(d,W,s,O.teamId,g,"accomplished",v)}setTeamRanking(o,s,O,W,_,g,a){let v=null,d=null;s===3&&(v=new Map,d={},o.forEach(y=>{const b=v.get(y[O.gameId]);b?b[y[O.teamId.toString()]]?b[y[O.teamId.toString()]]+=y[O.total]:b[y[O.teamId.toString()]]=y[O.total]:v.set(y[O.gameId],{[y[O.teamId.toString()]]:y[O.total]})}),Array.from(v.values()).forEach(y=>{const[b,u]=Object.keys(y).map(i=>i),r=y[b]+y[u];this.addPassesAvgByTeam(d,b,r?y[b]/r:0),this.addPassesAvgByTeam(d,u,r?y[u]/r:0)}));const n=_.sort((y,b)=>y.team_id-b.team_id).map(y=>{if(s===3){const b=d[y.team_id.toString()];return{teamId:y.team_id,points:b?b.numberTotalPassesAvg/b.numberGamesCount:0,total:b?b.numberTotalPassesAvg:0}}else{const b=o.reduce((u,r)=>r[O.teamId]===y.team_id&&s===r[O.categoryId]?u+r[O.total]:u,0);return{teamId:y.team_id,points:y[`${a}FilterGames`]?b/y[`${a}FilterGames`]:0,total:b}}}).sort((y,b)=>b.points-y.points);this.accomplished.arrayRankings=n;const x=n.findIndex(y=>y.teamId===W);s===3&&(this.accomplished.avgPreGame=n[x].points),this[g].ranking=x+1,this[g].leader=n[0]}addPassesAvgByTeam(o,s,O){o[s]?(o[s].numberGamesCount+=1,o[s].numberTotalPassesAvg+=O):o[s]={numberGamesCount:1,numberTotalPassesAvg:O}}}class rc{constructor(o,s,O,W,_,g,a,v,d,n,x=!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 C5);yu(this,"visitingTeam",new C5);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=`${O.accomplished}-${O.received}`,this.accomplishedCategoryIds=o||[],this.receivedCategoryIds=s||[],this.generalCategoriesIds=O||{accomplished:0,received:0},this.name=W,this.names["0-0"]=W||"",this.names["1-1"]=_||"",this.names["0-1"]=g||"",this.names["1-0"]=a||"",this.generalId=v||0,this.betOnly=d||!1,this.isPercent=n||!1,this.isVisible=x}addLeaguePlays(o,s,O){o.length===0||!O||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*O)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*O)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(o,s,O){let W="-";for(const[_,g]of Object.entries(this.generalCategoriesIds))o===g&&(W=`${_==="accomplished"?"0":"1"}${W}`),s===g&&(W=`${W}${_==="accomplished"?"0":"1"}`);W.length===3&&(this.mentions[W]=O)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(o,s,O,W,_){!O||!_||o!==this.homeTeamType&&o!==this.visitingTeamType||(O.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(_))}addLivePlay(o,s,O,W,_=!1,g=!1){(o===this.homeTeamType||o===this.visitingTeamType)&&O[W.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[o].increaseAccomplishedByOne(O[W.section],O[W.total],!0)}subtractLivePlay(o,s,O,W,_){(o===this.homeTeamType||o===this.visitingTeamType)&&(this.isAccomplishedPlay(O[W.categoryId])&&!_?this[o].decreaseAccomplishedLiveByOne(O[W.section],O[W.total]):this.isReceivedPlay(O[W.categoryId])&&_&&this[o].decreaseReceivedLiveByOne(O[W.section],O[W.total]))}isAccomplishedLeaguePlay(o){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(O=>o===O||`${o}_r`===O)}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,O,W,_,g=!1){this[this.homeTeamType].calculateRanking(o,s,O,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,_,g,this.homeTeamType),this[this.visitingTeamType].calculateRanking(o,s,W,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,_,g,this.visitingTeamType)}resetData(){this.homeTeam=new C5,this.visitingTeam=new C5,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 oFt={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new rc([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new rc([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new rc([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0,!1),yellowCards:new rc([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new rc([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new rc([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new rc([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new rc([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new rc([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new rc([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new rc([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new rc([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new rc([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new rc([208],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new rc([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new rc([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new rc([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new rc([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new rc([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new rc([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new rc([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new rc([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new rc([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new rc([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new rc([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new rc([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new rc([495],null,{accomplished:27,received:0},"Balones perdidos sin disputa","","","",1)}},stoppedBall:{name:"Balón parado",priority:5,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{freeKick44:new rc([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new rc([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new rc([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new rc([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new rc([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new rc([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new rc([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new rc([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new rc([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new rc([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new rc([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},sFt=[{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}],lFt=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let sC=null;function cFt(){return sC||(sC=dy(lFt)),sC}const uFt=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let lC=null;function dFt(){return lC||(lC=dy(uFt)),lC}function T5(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 KU(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 cC(e,o,s){let O=[...o];return e[s.categoryId]===2&&(O[0]=14),e[s.categoryId]===20&&(O[0]=15),[14,15].includes(O[0])?O:null}const hFt=z4(),pFt=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],fFt={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:XU(),indexesTSP:iFt(),indexesLS:cFt(),indexesTLP:dFt(),nextGamesDataStructure:oFt,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 sFt.filter(o=>o.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return YU(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return YU(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 O of Object.values(s.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&O.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&O.visitingTeam.resetTotals(),O.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),O.addTeamPlays(O.homeTeamType,e.gameForAnalysis.home_team,o.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:o.totalFilteredHomeGames),O.addTeamPlays(O.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,O)=>s.priority-O.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,O]of Object.entries(o))e.gameForAnalysis[s]=O},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&&wE(`game.${e.gameForAnalysis.game_id}.v2`)},updateCurrentSeasonTeams(e,o){e.currentSeasonTeams=o,e.currentSeasonTeams.forEach(s=>{s.playedGames=e.currentSeasonGames.reduce((O,W)=>{if(W.game_status===1&&(W.home_team===s.team_id||W.visiting_team===s.team_id)){const _=W.score[0]-W.score[1],g=W.home_team===s.team_id;O.push({playingAs:g?1:2,matchResult:_===0?3:g?_>0?1:2:_<0?1:2})}return O},[])})},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=TE(e.homeTeamFilter,o.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=TE(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(O=>{for(const W of Object.values(O.subcategories))W.resetMentions()}),s.forEach(O=>{for(const W of o)for(const _ of Object.values(O.subcategories))_.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 O=T5(o,e.indexesTLP,e.categoriesMap);for(const W of Object.values(e.nextGamesDataStructure))for(const _ of Object.values(W.subcategories))_.addLivePlay(e.gameForAnalysis.home_team===O[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",O[e.indexesTSP.teamId],O,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,o){const s=!!o[e.indexesTLP.length],O=e.livePlays.get(o[e.indexesTLP.playId]);if(Dee(O,o))return;let W="";const _=e.gameForAnalysis.home_team===o[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";O&&(W=e.gameForAnalysis.home_team===O[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const g=T5(O,e.indexesTLP,e.categoriesMap),a=cC(O,g,e.indexesTLP),v=T5(o,e.indexesTLP,e.categoriesMap),d=cC(o,v,e.indexesTLP);for(const n of Object.values(e.nextGamesDataStructure))for(const x of Object.values(n.subcategories))O&&(x.subtractLivePlay(W,g[e.indexesTSP.teamId],g,e.indexesTSP,s),a&&x.subtractLivePlay(W,a[e.indexesTSP.teamId],a,e.indexesTSP,s)),x.addLivePlay(_,v[e.indexesTSP.teamId],v,e.indexesTSP,e.isLive,s),d&&x.addLivePlay(_,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],O=e.livePlays.get(o[e.indexesTLP.playId]);let W="";if(O){W=e.gameForAnalysis.home_team===O[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(O[e.indexesTLP.playId]);const _=T5(O,e.indexesTLP,e.categoriesMap),g=cC(o,_,e.indexesTLP);for(const a of Object.values(e.nextGamesDataStructure))for(const v of Object.values(a.subcategories))v.subtractLivePlay(W,_[e.indexesTSP.teamId],_,e.indexesTSP,s),g&&v.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(_=>{_.homeTeamFilterGames=_.playedGames.filter(g=>e.homeTeamFilter.playingAs.includes(g.playingAs)&&e.homeTeamFilter.matchResult.includes(g.matchResult)).length,_.visitingTeamFilterGames=_.playedGames.filter(g=>e.visitingTeamFilter.playingAs.includes(g.playingAs)&&e.visitingTeamFilter.matchResult.includes(g.matchResult)).length});const O=[],W=new Map;for(const _ of Object.values(e.nextGamesDataStructure))for(const g of Object.values(_.subcategories))O.push(g);o.rankingData.forEach(_=>{for(const g of O)if(g.isInGeneralCategory(_[e.indexesLS.categoryId])){W.has(g.id)?W.get(g.id).push(_):W.set(g.id,[_]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,o){e.homeGames=KU(o)},setVisitingGames(e,o){e.visitingGames=KU(o)},generateCategoriesMap(e){for(const o of Object.values(e.nextGamesDataStructure))for(const s of Object.values(o.subcategories))s.accomplishedCategoryIds.forEach(O=>{const W=e.categoriesMap.get(O);W?W.push(s.generalCategoriesIds.accomplished):e.categoriesMap.set(O,[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 tFt({gameId:o.gameId});if(g){var s=[],O=[],W={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}},_={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}};Object.keys(g.data).length!==0&&(s=g.data.data.filter(a=>a[1]==o.homeTeam),O=g.data.data.filter(a=>a[1]==o.awayTeam),W=g.data.games,_=g.data.games),e("updateHomeTeamPlays",s),e("updateVisitingTeamPlays",O),e("setHomeGames",W),e("setVisitingGames",_)}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 O=[];e("updateGameForAnalysis",s.gameInfo),O.push(o("setAndGetStatsPostMatch",{gameId:s.game,homeTeam:s.homeTeam,awayTeam:s.awayTeam})),await Promise.all(O)}catch(O){throw new Error(O)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:o,commit:s},{gameId:O,isTeamsAnalysis:W,currentSeasonId:_,isLoginChanged:g=!1,defaultFilter:a=null,gameInfo:v=null,isCupGame:d=!1}){try{let n={},x=e.seasonId!==Number(_);const y=[];s("setIsSectionLoading",!0,{root:!0}),s("setUsePastSeasonId",!1),x&&s("setSeasonId",_),s("updateGameId",Number(O)),e.oldSeasonId!==e.seasonId&&s("resetNextGamesDataStructure");const b=await o("getCurrentSeasonGames",Number(O));if(s("leagueGeneral/updateCurrentSeasonGames",b,{root:!0}),n=b.find(u=>u.game_id===Number(O)),!n&&v&&(n=v),n&&s("updateGameForAnalysis",n),n.game_status!==1&&((g||e.categoriesMap.size===0)&&s("generateCategoriesMap"),d||await o("checkTeamsData",{gameId:O,isFromBet:!!a}),(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=>n.home_team===u.team_id))&&y.push(o("getCurrentSeasonTeams")),s("setHomeResultGame",n.score[0]),s("setAwayResultGame",n.score[1]),W?n.game_status!==1?(await o("fillStatisticData",{gameId:O,gameinfo:n,promises:y,defaultFilter:a}),s("updateShowPostMatchData",!1)):(s("updateStats",[]),s("updateShowPostMatchData",!0),y.push(o("fillStatisticDataPostMatch",{game:O,homeTeam:n.home_team,awayTeam:n.visiting_team,gameInfo:n})),await Promise.all(y)):s("setIsSectionLoading",!1,{root:!0})}catch(n){return Promise.reject(n)}},async fillStatisticData({commit:e,dispatch:o,getters:s,rootGetters:O,state:W},{gameId:_,gameinfo:g,promises:a=[],defaultFilter:v=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)&&a.push(o("getCurrentLiveGamePlays",_)),a.push(o("getSpecialMentionsByGame",_)),a.push(o("getHomeTeamPlays")),a.push(o("getVisitingTeamPlays")),a.push(o("getCurrentSeasonPlays")),v&&a.push(aFt(v)),d=await Promise.all(a)}catch(n){throw new Error(n)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:s,isPremiumAccount:O["loginGeneral/getPremiumAccount"]}),v){const[n]=d.pop();n&&(e("setBetSubcategories",n.categories),e("setBetDescription",n.sectionDescription),e("setDefaultFilter",n.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:O},{gameId:W,isFromBet:_}){try{const g=Number(W);if(e.pastSeasonId){O("setPastSeasonId",e.pastSeasonId,{root:!0});const a=s.leagueGeneral.currentSeasonGames.find(v=>v.game_id===g);a&&O("updateGameForAnalysis",a),await Promise.all([o("getHomeTeamPlays"),o("getVisitingTeamPlays")]),O("setUsePastSeasonId",_||(!e.homeTeamPlays||e.homeTeamPlays.length===0)&&(!e.visitingTeamPlays||e.visitingTeamPlays.length===0))}else O("setUsePastSeasonId",!1)}catch(g){throw new Error(g)}},async getSpecialMentionsByGame({commit:e},o){try{const s=await JOt({gameId:o});e("addSpecialMentions",s)}catch(s){return Promise.reject(s)}},async getCurrentSeasonGames({commit:e,state:o},s){try{const{teams:O,games:W,past_season_id:_,tournament_id:g}=await ZOt({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId,gameId:s}),a=pFt.find(v=>v.id===g);return a&&e("setCurrentTournamentName",a.name),e("setHome",O[0]),e("setAway",O[1]),o.usePastSeasonId||e("setPastSeasonId",_),await e("updateCurrentSeasonGames",W),W&&Array.isArray(W)&&e("updateFinishedGames",W.reduce((v,d)=>(d.game_status===1&&(v+=1),v),0)),W}catch(O){return Promise.reject(O)}},async getCurrentSeasonGamesLast({commit:e,state:o}){try{const{games:s,past_season_id:O}=await ZU({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId});return o.usePastSeasonId||e("setPastSeasonId",O),await e("updateCurrentSeasonGames",s),s&&Array.isArray(s)&&e("updateFinishedGames",s.reduce((W,_)=>(_.game_status===1&&(W+=1),W),0)),s}catch(s){return Promise.reject(s)}},async getCurrentSeasonTeams({commit:e,state:o}){try{const s=await eFt({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,O=await qOt({seasonId:s});e("updateSeasonStatistics",O),e("updateOldSeasonId",s)}catch(s){return Promise.reject(s)}},updateRankingInSubcategories({state:e,commit:o,getters:s,rootGetters:O}){e.currentSeasonGames.length>0&&o("addRankingInSubcategories",{getters:s,isPremiumAccount:O["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:o}){try{const s=await JU({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 JU({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 WOt({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 O=await XOt({gameId:s});e.livePlays=new Map,O.forEach(W=>{e.gameForAnalysis.game_id===W[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===W[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===W[e.indexesTLP.teamId])&&o("addLiveGamePlay",W)})}catch(O){throw new Error(O)}},socket_new({state:e,commit:o},s){const O=s[1];(e.gameForAnalysis.home_team===O[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===O[e.indexesTLP.teamId])&&o("addLiveGamePlay",O)},socket_update({state:e,commit:o},s){const O=s[1];e.gameForAnalysis.game_id===O[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===O[e.indexesTLP.teamId]||e.gameForAnalysis.visitingTeam===O[e.indexesTLP.teamId])&&o("updateLiveGamePlay",O)},socket_delete({state:e,commit:o},s){const O=s[1];e.gameForAnalysis.game_id===O[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===O[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===O[e.indexesTLP.teamId])&&o("deleteLiveGamePlay",O)},exitChannel({state:e,getters:o,rootState:s,rootGetters:O,commit:W}){const _=O["loginGeneral/getPremiumAccount"];o.isLive&&_&&(W("updateShowLiveData",!0),W("clearLiveTotals"),e.livePlays.clear(),hFt.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const s of Object.values(e.nextGamesDataStructure))for(const O of Object.values(s.subcategories))O.homeTeam.resetTotals(),O.visitingTeam.resetTotals(),O.homeTeam.resetTotalsLive(),O.visitingTeam.resetTotalsLive(),O.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(s=>{for(const O of Object.values(s.subcategories))O.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const s of Object.values(e.nextGamesDataStructure))for(const O of Object.values(s.subcategories))O.homeTeam.resetTotals(),O.visitingTeam.resetTotals(),O.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(s=>{for(const O of Object.values(s.subcategories))O.resetMentions()}),e.currentSeasonGames=[],e.currentSeasonTeams=[],e.gameForAnalysis={},e.homeTeamPlays=[],e.visitingTeamPlays=[],e.currentSeasonPlays=null,e.totalSeasonFinishedGames=0,e.totalHomeTeamFinishedGames=0,e.totalVisitingTeamFinishedGames=0,e.homeGames=[],e.showPostMatch=!1,e.homeResultGame=null,e.awayResultGame=null,e.visitingGames=[],e.idAssetSelected=1,e.showAdvanceFilter=!1,e.selectedAnalysis={},e.homeTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.visitingTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.isRankingCalculating=!0}}}};async function mFt(){try{const{data:e}=await Ch({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return e}catch(e){throw new Error(e)}}const gFt={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 mFt();o("setTournaments",s)}}catch(s){throw new Error(s)}}}}};async function yFt({seasonId:e,localTeamId:o,visitingTeamId:s}){try{const O=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${o}/${s}`;return(await Ch({url:O})).data}catch(O){return Promise.reject(O)}}async function vFt({seasonId:e,localTeamId:o,visitingTeamId:s}){try{const O=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${o}/${s}`;return(await Ch({url:O})).data}catch(O){return Promise.reject(O)}}const QU=(e,o)=>{let s={};return e.forEach((O,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[O]=o[W]}),s},eH=(e,o)=>e.filter(O=>{const W=o.playingAs.includes(O.playing_as),_=o.matchResult.includes(O.match_result),g=o.sections.includes(O.section);return W&&_&&g});(function(){function e(o,s,O){return typeof O>"u"||+O==0?Math[o](s):(s=+s,O=+O,isNaN(s)||!(typeof O=="number"&&O%1===0)?NaN:(s=s.toString().split("e"),s=Math[o](+(s[0]+"e"+(s[1]?+s[1]-O:-O))),s=s.toString().split("e"),+(s[0]+"e"+(s[1]?+s[1]+O:O))))}Math.ceil10||(Math.ceil10=function(o,s){return e("ceil",o,s)})})();function tH(e,o){let s=o*-1;return Math.ceil10(e,s)}const _Ft={...gFt,...nFt,...fFt,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{playsLocal:(e,o,s)=>{const O=e.xGLocalPlays,W="homeTeamFilter",_=s.nextGeneral[W];return eH(O,_)||[]},playsAway:(e,o,s)=>{const O=e.xGVisitingPlays,W="visitingTeamFilter",_=s.nextGeneral[W];return eH(O,_)},goalsQtyLocal:(e,o)=>{const s=Em.find(O=>O.name==="Goles");return o.playsLocal.filter(O=>s.categories.includes(O.category_id)).length},goalsQtyAway:(e,o)=>{const s=Em.find(O=>O.name==="Goles");return o.playsAway.filter(O=>s.categories.includes(O.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=Em.find(O=>O.name==="Remates con cabeza");return o.playsLocal.filter(O=>s.categories.includes(O.category_id)).length},headQtyAway:(e,o)=>{const s=Em.find(O=>O.name==="Remates con cabeza");return o.playsAway.filter(O=>s.categories.includes(O.category_id)).length},penaltiesQtyLocal:(e,o)=>{const s=Em.find(O=>O.name==="Penales");return o.playsLocal.filter(O=>s.categories.includes(O.category_id)).length},penaltiesQtyAway:(e,o)=>{const s=Em.find(O=>O.name==="Penales");return o.playsAway.filter(O=>s.categories.includes(O.category_id)).length},xGLocal:(e,o)=>{const s=new Set;let O=o.playsLocal.reduce((W,_)=>(s.has(_.moment_of_play)||(s.add(_.moment_of_play),W+=_.xG2),W),0);return tH(O,2)},xGAway:(e,o)=>{const s=new Set;let O=o.playsAway.reduce((W,_)=>(s.has(_.moment_of_play)||(s.add(_.moment_of_play),W+=_.xG2),W),0);return tH(O,2)}},mutations:{setTeamSelected(e,o){e.teamSelected=o},setPlays(e,o){const s=o.local_team.map(u=>QU(o.data_headers,u)),O=[],W=[],_=[],g=[],a=new Set;s.forEach(u=>{MA.has(u.category_id)?a.has(u.moment_of_play)||(a.add(u.moment_of_play),O.push(u)):IA.has(u.category_id)?W.push(u):PA.has(u.category_id)?_.push(u):BA.has(u.category_id)&&g.push(u)}),e.xGLocalPlays=[...W,...O,..._,...g];const v=o.visiting_team.map(u=>QU(o.data_headers,u)),d=new Set,n=[],x=[],y=[],b=[];v.forEach(u=>{MA.has(u.category_id)?d.has(u.moment_of_play)||(d.add(u.moment_of_play),n.push(u)):IA.has(u.category_id)?x.push(u):PA.has(u.category_id)?y.push(u):BA.has(u.category_id)&&b.push(u)}),e.xGVisitingPlays=[...x,...n,...y,...b]},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:e},{seasonId:o,localTeamId:s,visitingTeamId:O,postMatch:W=!1}){try{let _={};W?_=await vFt({seasonId:o,localTeamId:s,visitingTeamId:O}):_=await yFt({seasonId:o,localTeamId:s,visitingTeamId:O}),e("setPlays",_)}catch(_){return Promise.reject(_)}}}}}};function bFt(e){for(const[o,s]of Object.entries(_Ft))e.hasModule(o)||e.registerModule(o,s)}const xFt={class:"subcategory-group"},wFt={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(t.openBlock(),t.createElementBlock("div",xFt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,O=>(t.openBlock(),t.createBlock(t.unref(Hl),{key:O.id,modelValue:O.isSelected,"onUpdate:modelValue":W=>O.isSelected=W,label:O.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},kFt=gc(wFt,[["__scopeId","data-v-ae6f3d72"]]),SFt={class:"filter-subcategories"},CFt=Object.freeze(Object.defineProperty({__proto__:null,default:gc({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(t.openBlock(),t.createElementBlock("div",SFt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,O=>(t.openBlock(),t.createElementBlock("div",{key:O.id,class:"filter-subcategories__group"},[t.createVNode(kFt,{subcategoryGroup:O},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),E5=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),TFt={class:"details__header"},EFt=E5(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),AFt={class:"details__header__checkbox"},MFt={class:"details__body"},IFt={class:"details__body__playing-as"},PFt=["onClick"],BFt={class:"details__header"},LFt=E5(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),zFt={class:"details__header__checkbox"},OFt={class:"details__body"},FFt=E5(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),NFt={class:"details__body__game-section"},DFt=["onClick"],VFt={class:"details__body"},RFt=E5(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),jFt={class:"details__body__game-section"},$Ft=["onClick"],UFt=Object.freeze(Object.defineProperty({__proto__:null,default:gc({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const o=e;t.useCssVars(n=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const s=t.computed(()=>o.playingAs.every(n=>n.isSelected)),O=t.computed(()=>o.gameSections.every(n=>n.isSelected)),W=t.computed(()=>o.gameSections.reduce((n,x)=>(x.value<=3?n.firstHalf.push(x):n.secondHalf.push(x),n),{firstHalf:[],secondHalf:[]})),_=t.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function g(n){n?o.playingAs.forEach(x=>{x.isSelected=!0}):o.playingAs.forEach((x,y)=>{x.isSelected=y===0})}function a(n){o.playingAs.filter(x=>x.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function v(n){o.gameSections.filter(x=>x.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function d(n){n?o.gameSections.forEach(x=>{x.isSelected=!0}):o.gameSections.forEach((x,y)=>{x.isSelected=y===0})}return(n,x)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(_.value)},[t.createElementVNode("div",TFt,[EFt,t.createElementVNode("div",AFt,[t.createVNode(t.unref(Hl),{label:"Todos","model-value":s.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",MFt,[t.createElementVNode("div",IFt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.playingAs,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${b}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>a(y)},t.toDisplayString(y.name),11,PFt))),128))])]),t.createElementVNode("div",BFt,[LFt,t.createElementVNode("div",zFt,[t.createVNode(t.unref(Hl),{label:"Todos","model-value":O.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),t.createElementVNode("div",OFt,[FFt,t.createElementVNode("div",NFt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value.firstHalf,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${b}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>v(y)},t.toDisplayString(y.text),11,DFt))),128))])]),t.createElementVNode("div",VFt,[RFt,t.createElementVNode("div",jFt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value.secondHalf,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${b}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>v(y)},t.toDisplayString(y.text),11,$Ft))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),HFt={class:"filter-field"},GFt=Object.freeze(Object.defineProperty({__proto__:null,default:gc({__name:"FilterField",setup(e){const o=t.ref(Array.from({length:16},(O,W)=>W+1));function s(){}return(O,W)=>(t.openBlock(),t.createElementBlock("div",HFt,[t.createVNode(t.unref(FF),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":s},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),WFt={class:"subcategory-group"},qFt={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(t.openBlock(),t.createElementBlock("div",WFt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,O=>(t.openBlock(),t.createBlock(t.unref(Gl),{key:O.id,modelValue:O.isSelected,"onUpdate:modelValue":W=>O.isSelected=W,label:O.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},YFt=_c(qFt,[["__scopeId","data-v-ae6f3d72"]]),ZFt={class:"filter-subcategories"},XFt=Object.freeze(Object.defineProperty({__proto__:null,default:_c({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(t.openBlock(),t.createElementBlock("div",ZFt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,O=>(t.openBlock(),t.createElementBlock("div",{key:O.id,class:"filter-subcategories__group"},[t.createVNode(YFt,{subcategoryGroup:O},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),A5=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),JFt={class:"details__header"},KFt=A5(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),QFt={class:"details__header__checkbox"},eNt={class:"details__body"},tNt={class:"details__body__playing-as"},nNt=["onClick"],aNt={class:"details__header"},rNt=A5(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),iNt={class:"details__header__checkbox"},oNt={class:"details__body"},sNt=A5(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),lNt={class:"details__body__game-section"},cNt=["onClick"],uNt={class:"details__body"},dNt=A5(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),hNt={class:"details__body__game-section"},pNt=["onClick"],fNt=Object.freeze(Object.defineProperty({__proto__:null,default:_c({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const o=e;t.useCssVars(n=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const s=t.computed(()=>o.playingAs.every(n=>n.isSelected)),O=t.computed(()=>o.gameSections.every(n=>n.isSelected)),W=t.computed(()=>o.gameSections.reduce((n,x)=>(x.value<=3?n.firstHalf.push(x):n.secondHalf.push(x),n),{firstHalf:[],secondHalf:[]})),_=t.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function g(n){n?o.playingAs.forEach(x=>{x.isSelected=!0}):o.playingAs.forEach((x,y)=>{x.isSelected=y===0})}function a(n){o.playingAs.filter(x=>x.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function v(n){o.gameSections.filter(x=>x.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function d(n){n?o.gameSections.forEach(x=>{x.isSelected=!0}):o.gameSections.forEach((x,y)=>{x.isSelected=y===0})}return(n,x)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(_.value)},[t.createElementVNode("div",JFt,[KFt,t.createElementVNode("div",QFt,[t.createVNode(t.unref(Gl),{label:"Todos","model-value":s.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",eNt,[t.createElementVNode("div",tNt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.playingAs,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${b}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>a(y)},t.toDisplayString(y.name),11,nNt))),128))])]),t.createElementVNode("div",aNt,[rNt,t.createElementVNode("div",iNt,[t.createVNode(t.unref(Gl),{label:"Todos","model-value":O.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),t.createElementVNode("div",oNt,[sNt,t.createElementVNode("div",lNt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value.firstHalf,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${b}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>v(y)},t.toDisplayString(y.text),11,cNt))),128))])]),t.createElementVNode("div",uNt,[dNt,t.createElementVNode("div",hNt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value.secondHalf,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${b}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>v(y)},t.toDisplayString(y.text),11,pNt))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),mNt={class:"filter-field"},gNt=Object.freeze(Object.defineProperty({__proto__:null,default:_c({__name:"FilterField",setup(e){const o=t.ref(Array.from({length:16},(O,W)=>W+1));function s(){}return(O,W)=>(t.openBlock(),t.createElementBlock("div",mNt,[t.createVNode(t.unref(fj),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":s},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));Bd.GSCGameData=GOt,Bd.connectSocket=O4,Bd.disconnectSocket=F4,Bd.getSocket=z4,Bd.registerStoreModules=bFt,Object.defineProperty(Bd,Symbol.toStringTag,{value:"Module"})});
|
|
8183
|
+
*/var GLt="store";function ug(e,o){Object.keys(e).forEach(function(s){return o(e[s],s)})}function IU(e){return e!==null&&typeof e=="object"}function WLt(e){return e&&typeof e.then=="function"}function Of(e,o){if(!e)throw new Error("[vuex] "+o)}function qLt(e,o){return function(){return e(o)}}function PU(e,o,s){return o.indexOf(e)<0&&(s&&s.prepend?o.unshift(e):o.push(e)),function(){var O=o.indexOf(e);O>-1&&o.splice(O,1)}}function BU(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;w5(e,s,[],e._modules.root,!0),QS(e,s,o)}function QS(e,o,s){var O=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var W=e._wrappedGetters,_={};ug(W,function(g,a){_[a]=qLt(g,e),Object.defineProperty(e.getters,a,{get:function(){return _[a]()},enumerable:!0})}),e._state=t.reactive({data:o}),e.strict&&KLt(e),O&&s&&e._withCommit(function(){O.data=null})}function w5(e,o,s,O,W){var _=!s.length,g=e._modules.getNamespace(s);if(O.namespaced&&(e._modulesNamespaceMap[g]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+g+" for the namespaced module "+s.join("/")),e._modulesNamespaceMap[g]=O),!_&&!W){var a=eC(o,s.slice(0,-1)),v=s[s.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&v in a&&console.warn('[vuex] state field "'+v+'" was overridden by a module with the same name at "'+s.join(".")+'"'),a[v]=O.state})}var d=O.context=YLt(e,g,s);O.forEachMutation(function(n,x){var y=g+x;ZLt(e,y,n,d)}),O.forEachAction(function(n,x){var y=n.root?x:g+x,b=n.handler||n;XLt(e,y,b,d)}),O.forEachGetter(function(n,x){var y=g+x;JLt(e,y,n,d)}),O.forEachChild(function(n,x){w5(e,o,s.concat(x),n,W)})}function YLt(e,o,s){var O=o==="",W={dispatch:O?e.dispatch:function(_,g,a){var v=k5(_,g,a),d=v.payload,n=v.options,x=v.type;if((!n||!n.root)&&(x=o+x,process.env.NODE_ENV!=="production"&&!e._actions[x])){console.error("[vuex] unknown local action type: "+v.type+", global type: "+x);return}return e.dispatch(x,d)},commit:O?e.commit:function(_,g,a){var v=k5(_,g,a),d=v.payload,n=v.options,x=v.type;if((!n||!n.root)&&(x=o+x,process.env.NODE_ENV!=="production"&&!e._mutations[x])){console.error("[vuex] unknown local mutation type: "+v.type+", global type: "+x);return}e.commit(x,d,n)}};return Object.defineProperties(W,{getters:{get:O?function(){return e.getters}:function(){return LU(e,o)}},state:{get:function(){return eC(e.state,s)}}}),W}function LU(e,o){if(!e._makeLocalGettersCache[o]){var s={},O=o.length;Object.keys(e.getters).forEach(function(W){if(W.slice(0,O)===o){var _=W.slice(O);Object.defineProperty(s,_,{get:function(){return e.getters[W]},enumerable:!0})}}),e._makeLocalGettersCache[o]=s}return e._makeLocalGettersCache[o]}function ZLt(e,o,s,O){var W=e._mutations[o]||(e._mutations[o]=[]);W.push(function(_){s.call(e,O.state,_)})}function XLt(e,o,s,O){var W=e._actions[o]||(e._actions[o]=[]);W.push(function(_){var g=s.call(e,{dispatch:O.dispatch,commit:O.commit,getters:O.getters,state:O.state,rootGetters:e.getters,rootState:e.state},_);return WLt(g)||(g=Promise.resolve(g)),e._devtoolHook?g.catch(function(a){throw e._devtoolHook.emit("vuex:error",a),a}):g})}function JLt(e,o,s,O){if(e._wrappedGetters[o]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+o);return}e._wrappedGetters[o]=function(W){return s(O.state,O.getters,W.state,W.getters)}}function KLt(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&Of(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function eC(e,o){return o.reduce(function(s,O){return s[O]},e)}function k5(e,o,s){return IU(e)&&e.type&&(s=o,o=e,e=e.type),process.env.NODE_ENV!=="production"&&Of(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:o,options:s}}var QLt="vuex bindings",zU="vuex:mutations",tC="vuex:actions",pv="vuex",ezt=0;function tzt(e,o){HLt({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:[QLt]},function(s){s.addTimelineLayer({id:zU,label:"Vuex Mutations",color:OU}),s.addTimelineLayer({id:tC,label:"Vuex Actions",color:OU}),s.addInspector({id:pv,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),s.on.getInspectorTree(function(O){if(O.app===e&&O.inspectorId===pv)if(O.filter){var W=[];VU(W,o._modules.root,O.filter,""),O.rootNodes=W}else O.rootNodes=[DU(o._modules.root,"")]}),s.on.getInspectorState(function(O){if(O.app===e&&O.inspectorId===pv){var W=O.nodeId;LU(o,W),O.state=rzt(ozt(o._modules,W),W==="root"?o.getters:o._makeLocalGettersCache,W)}}),s.on.editInspectorState(function(O){if(O.app===e&&O.inspectorId===pv){var W=O.nodeId,_=O.path;W!=="root"&&(_=W.split("/").filter(Boolean).concat(_)),o._withCommit(function(){O.set(o._state.data,_,O.state.value)})}}),o.subscribe(function(O,W){var _={};O.payload&&(_.payload=O.payload),_.state=W,s.notifyComponentUpdate(),s.sendInspectorTree(pv),s.sendInspectorState(pv),s.addTimelineEvent({layerId:zU,event:{time:Date.now(),title:O.type,data:_}})}),o.subscribeAction({before:function(O,W){var _={};O.payload&&(_.payload=O.payload),O._id=ezt++,O._time=Date.now(),_.state=W,s.addTimelineEvent({layerId:tC,event:{time:O._time,title:O.type,groupId:O._id,subtitle:"start",data:_}})},after:function(O,W){var _={},g=Date.now()-O._time;_.duration={_custom:{type:"duration",display:g+"ms",tooltip:"Action duration",value:g}},O.payload&&(_.payload=O.payload),_.state=W,s.addTimelineEvent({layerId:tC,event:{time:Date.now(),title:O.type,groupId:O._id,subtitle:"end",data:_}})}})})}var OU=8702998,nzt=6710886,azt=16777215,FU={label:"namespaced",textColor:azt,backgroundColor:nzt};function NU(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function DU(e,o){return{id:o||"root",label:NU(o),tags:e.namespaced?[FU]:[],children:Object.keys(e._children).map(function(s){return DU(e._children[s],o+s+"/")})}}function VU(e,o,s,O){O.includes(s)&&e.push({id:O||"root",label:O.endsWith("/")?O.slice(0,O.length-1):O||"Root",tags:o.namespaced?[FU]:[]}),Object.keys(o._children).forEach(function(W){VU(e,o._children[W],s,O+W+"/")})}function rzt(e,o,s){o=s==="root"?o:o[s];var O=Object.keys(o),W={state:Object.keys(e.state).map(function(g){return{key:g,editable:!0,value:e.state[g]}})};if(O.length){var _=izt(o);W.getters=Object.keys(_).map(function(g){return{key:g.endsWith("/")?NU(g):g,editable:!1,value:nC(function(){return _[g]})}})}return W}function izt(e){var o={};return Object.keys(e).forEach(function(s){var O=s.split("/");if(O.length>1){var W=o,_=O.pop();O.forEach(function(g){W[g]||(W[g]={_custom:{value:{},display:g,tooltip:"Module",abstract:!0}}),W=W[g]._custom.value}),W[_]=nC(function(){return e[s]})}else o[s]=nC(function(){return e[s]})}),o}function ozt(e,o){var s=o.split("/").filter(function(O){return O});return s.reduce(function(O,W,_){var g=O[W];if(!g)throw new Error('Missing module "'+W+'" for path "'+o+'".');return _===s.length-1?g:g._children},o==="root"?e:e.root._children)}function nC(e){try{return e()}catch(o){return o}}var Ff=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)||{}},RU={namespaced:{configurable:!0}};RU.namespaced.get=function(){return!!this._rawModule.namespaced},Ff.prototype.addChild=function(e,o){this._children[e]=o},Ff.prototype.removeChild=function(e){delete this._children[e]},Ff.prototype.getChild=function(e){return this._children[e]},Ff.prototype.hasChild=function(e){return e in this._children},Ff.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)},Ff.prototype.forEachChild=function(e){ug(this._children,e)},Ff.prototype.forEachGetter=function(e){this._rawModule.getters&&ug(this._rawModule.getters,e)},Ff.prototype.forEachAction=function(e){this._rawModule.actions&&ug(this._rawModule.actions,e)},Ff.prototype.forEachMutation=function(e){this._rawModule.mutations&&ug(this._rawModule.mutations,e)},Object.defineProperties(Ff.prototype,RU);var dg=function(e){this.register([],e,!1)};dg.prototype.get=function(e){return e.reduce(function(o,s){return o.getChild(s)},this.root)},dg.prototype.getNamespace=function(e){var o=this.root;return e.reduce(function(s,O){return o=o.getChild(O),s+(o.namespaced?O+"/":"")},"")},dg.prototype.update=function(e){jU([],this.root,e)},dg.prototype.register=function(e,o,s){var O=this;s===void 0&&(s=!0),process.env.NODE_ENV!=="production"&&HU(e,o);var W=new Ff(o,s);if(e.length===0)this.root=W;else{var _=this.get(e.slice(0,-1));_.addChild(e[e.length-1],W)}o.modules&&ug(o.modules,function(g,a){O.register(e.concat(a),g,s)})},dg.prototype.unregister=function(e){var o=this.get(e.slice(0,-1)),s=e[e.length-1],O=o.getChild(s);if(!O){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+s+"', which is not registered");return}O.runtime&&o.removeChild(s)},dg.prototype.isRegistered=function(e){var o=this.get(e.slice(0,-1)),s=e[e.length-1];return o?o.hasChild(s):!1};function jU(e,o,s){if(process.env.NODE_ENV!=="production"&&HU(e,s),o.update(s),s.modules)for(var O in s.modules){if(!o.getChild(O)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+O+"' on hot reloading, manual reload is needed");return}jU(e.concat(O),o.getChild(O),s.modules[O])}}var $U={assert:function(e){return typeof e=="function"},expected:"function"},szt={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},UU={getters:$U,mutations:$U,actions:szt};function HU(e,o){Object.keys(UU).forEach(function(s){if(o[s]){var O=UU[s];ug(o[s],function(W,_){Of(O.assert(W),lzt(e,s,_,W,O.expected))})}})}function lzt(e,o,s,O,W){var _=o+" should be "+W+' but "'+o+"."+s+'"';return e.length>0&&(_+=' in module "'+e.join(".")+'"'),_+=" is "+JSON.stringify(O)+".",_}var wp=function e(o){var s=this;o===void 0&&(o={}),process.env.NODE_ENV!=="production"&&(Of(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),Of(this instanceof e,"store must be called with the new operator."));var O=o.plugins;O===void 0&&(O=[]);var W=o.strict;W===void 0&&(W=!1);var _=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 dg(o),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=_;var g=this,a=this,v=a.dispatch,d=a.commit;this.dispatch=function(x,y){return v.call(g,x,y)},this.commit=function(x,y,b){return d.call(g,x,y,b)},this.strict=W;var n=this._modules.root.state;w5(this,n,[],this._modules.root),QS(this,n),O.forEach(function(x){return x(s)})},aC={state:{configurable:!0}};wp.prototype.install=function(e,o){e.provide(o||GLt,this),e.config.globalProperties.$store=this;var s=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;s&&tzt(e,this)},aC.state.get=function(){return this._state.data},aC.state.set=function(e){process.env.NODE_ENV!=="production"&&Of(!1,"use store.replaceState() to explicit replace store state.")},wp.prototype.commit=function(e,o,s){var O=this,W=k5(e,o,s),_=W.type,g=W.payload,a=W.options,v={type:_,payload:g},d=this._mutations[_];if(!d){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+_);return}this._withCommit(function(){d.forEach(function(n){n(g)})}),this._subscribers.slice().forEach(function(n){return n(v,O.state)}),process.env.NODE_ENV!=="production"&&a&&a.silent&&console.warn("[vuex] mutation type: "+_+". Silent option has been removed. Use the filter functionality in the vue-devtools")},wp.prototype.dispatch=function(e,o){var s=this,O=k5(e,o),W=O.type,_=O.payload,g={type:W,payload:_},a=this._actions[W];if(!a){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+W);return}try{this._actionSubscribers.slice().filter(function(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 v=a.length>1?Promise.all(a.map(function(d){return d(_)})):a[0](_);return new Promise(function(d,n){v.then(function(x){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(x)},function(x){try{s._actionSubscribers.filter(function(y){return y.error}).forEach(function(y){return y.error(g,s.state,x)})}catch(y){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(y))}n(x)})})},wp.prototype.subscribe=function(e,o){return PU(e,this._subscribers,o)},wp.prototype.subscribeAction=function(e,o){var s=typeof e=="function"?{before:e}:e;return PU(s,this._actionSubscribers,o)},wp.prototype.watch=function(e,o,s){var O=this;return process.env.NODE_ENV!=="production"&&Of(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(O.state,O.getters)},o,Object.assign({},s))},wp.prototype.replaceState=function(e){var o=this;this._withCommit(function(){o._state.data=e})},wp.prototype.registerModule=function(e,o,s){s===void 0&&(s={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(Of(Array.isArray(e),"module path must be a string or an Array."),Of(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,o),w5(this,this.state,e,this._modules.get(e),s.preserveState),QS(this,this.state)},wp.prototype.unregisterModule=function(e){var o=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&Of(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var s=eC(o.state,e.slice(0,-1));delete s[e[e.length-1]]}),BU(this)},wp.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&Of(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},wp.prototype.hotUpdate=function(e){this._modules.update(e),BU(this,!0)},wp.prototype._withCommit=function(e){var o=this._committing;this._committing=!0,e(),this._committing=o},Object.defineProperties(wp.prototype,aC);var czt=dzt(function(e,o){var s={};return process.env.NODE_ENV!=="production"&&!GU(o)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),uzt(o).forEach(function(O){var W=O.key,_=O.val;s[W]=function(){for(var g=[],a=arguments.length;a--;)g[a]=arguments[a];var v=this.$store.commit;if(e){var d=hzt(this.$store,"mapMutations",e);if(!d)return;v=d.context.commit}return typeof _=="function"?_.apply(this,[v].concat(g)):v.apply(this.$store,[_].concat(g))}}),s});function uzt(e){return GU(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 GU(e){return Array.isArray(e)||IU(e)}function dzt(e){return function(o,s){return typeof o!="string"?(s=o,o=""):o.charAt(o.length-1)!=="/"&&(o+="/"),e(o,s)}}function hzt(e,o,s){var O=e._modulesNamespaceMap[s];return process.env.NODE_ENV!=="production"&&!O&&console.error("[vuex] module namespace not found in "+o+"(): "+s),O}const pzt="/icn-play.svg",fzt="/icn-tiros-de-esquina.svg",mzt="/icn-tiro-a-porteria.svg",gzt="/icn-cambio.svg",yzt="/icn-falta.svg",vzt="/atajada.svg",_zt="/fuera-de-lugar.svg",rC="/gol.svg",bzt="/var.png",xzt="/tiempo-agregado.svg",wzt="/jugada-peligrosa.svg",kzt="/penal-marcado.svg",Szt="/penal-fallado.svg",Czt="/inicia-el-partido.svg",Tzt="/fin-del-partido.svg",Ezt="/icn-tarjeta-amarilla.svg",Azt="/icn-tarjeta-roja.svg",Mzt=[1,2,3,4,6],Izt={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 JS.GOAL_IDS.includes(o)?(e.push("is-main-event"),e.push("goal")):JS.YELLOW_CARD_IDS.includes(o)?(e.push("is-main-event"),e.push("yellow-card")):JS.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=>FLt(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||Mzt.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...czt("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})}}},Pzt=e=>(t.pushScopeId("data-v-f8c0f071"),e=e(),t.popScopeId(),e),Bzt={class:"time-line-event__details"},Lzt={width:"127",preload:"metadata",style:{"border-radius":"8px"}},zzt=["src"],Ozt=Pzt(()=>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)),Fzt={class:"time-line-event__details__info"},Nzt={key:0,class:"time-line-event__details__info__header__players"},Dzt={class:"time-line-event__details__info__header__players__div-img"},Vzt=["src"],Rzt={class:"time-line-event__details__info__body"},jzt={class:"time-line-event__details__info__body__comment"},$zt={class:"time-line-event__minute__container"},Uzt={class:"time-line-event__minute__container__text"},Hzt={class:"time-line-event__minute__container__icon-container"},Gzt={class:"time-line-event__minute__container__icon-container__icon"},Wzt={key:0,src:fzt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},qzt={key:1,src:mzt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Yzt={key:2,src:gzt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Zzt={key:3,src:yzt,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},Xzt={key:4,src:vzt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Jzt={key:5,src:_zt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Kzt={key:6,src:rC,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Qzt={key:7,src:rC,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},eOt={key:8,src:rC,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},tOt={key:9,src:bzt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},nOt={key:10,src:xzt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},aOt={key:11,src:wzt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},rOt={key:12,src:kzt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},iOt={key:13,src:Szt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},oOt={key:14,src:Czt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},sOt={key:15,src:Tzt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},lOt={key:16,src:Ezt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},cOt={key:17,src:Azt,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},uOt={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 dOt(e,o,s,O,W,_){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",_.teamTypeClasses]),style:t.normalizeStyle({width:`${s.width}px`}),key:W.gameEventKey},[t.createElementVNode("div",Bzt,[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=>_.thumbnailClick(s.gameEvent.video_link,s.gameEvent.event_type_name))},[t.createElementVNode("video",Lzt,[t.createElementVNode("source",{src:s.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,zzt)]),Ozt])):t.createCommentVNode("",!0),t.createElementVNode("div",Fzt,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",_.teamTypeClasses2])},[s.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",Nzt,[_.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(_.srcImgPlayers,(g,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":a===1}]),key:a},[t.createElementVNode("div",Dzt,[t.createElementVNode("img",{src:g,alt:""},null,8,Vzt)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",_.nameClasses]),onClick:o[1]||(o[1]=g=>_.thumbnailClick(s.gameEvent.video_link,s.gameEvent.event_type_name))},[s.canPlayVideos&&s.gameEvent.video_link!=="-"?(t.openBlock(),t.createElementBlock("img",{key:0,src:pzt,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",Rzt,[t.createElementVNode("div",jzt,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",_.minuteClasses])},[t.createElementVNode("div",$zt,[t.createElementVNode("div",Uzt,t.toDisplayString(s.gameEvent.minute)+"'",1),t.createElementVNode("div",Hzt,[t.createElementVNode("div",Gzt,[s.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",Wzt)):s.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",qzt)):s.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",Yzt)):s.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",Zzt)):s.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",Xzt)):s.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",Jzt)):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",Kzt)):s.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",Qzt)):s.gameEvent.category_id==13||s.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",eOt)):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",tOt)):s.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",nOt)):s.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",aOt)):s.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",rOt)):s.gameEvent.category_id==15||s.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",iOt)):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",oOt)):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",sOt)):s.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",lOt)):s.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",cOt)):(t.openBlock(),t.createElementBlock("img",uOt))])])])],2)],6)}const hOt=o_(Izt,[["render",dOt],["__scopeId","data-v-f8c0f071"]]),pOt={"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"},fOt={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 S5=null;const mOt={name:"TimeLine",components:{Tooltip:BLt,TimeLineEvent:hOt},mixins:[zLt],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":pOt[`${e.event_type_id}-${e.category_id}`],e.team_id===this.gameData.homeTeam.team_id||!e.team_id?(e.teamType=1,["home-team-event"]):(e.teamType=2,["away-team-event"])},getEventContainerClass(){return this.isMobile,["time-line-event__container--desktop"]},async fetchGameEvents(e){try{const{data:{plays:o}}=await TU.get(`${this.gameEventsUrl}${e}`);return o}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)S5=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),S5.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,o){const s=this.$refs[`gameEventDiv${o}`][0],O=this.$refs[`gameEventLine${o}`]?this.$refs[`gameEventLine${o}`][0]:null,W=e+12;s&&(s.style.height=`${W}px`),O&&(O.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=fOt[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 OLt(o)},thumbnailClick(e){this.canPlayVideos&&(this.dataVideo.link=e,this.dataVideo.visible=!0)}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){S5&&S5.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)}}},WU=e=>(t.pushScopeId("data-v-2574e576"),e=e(),t.popScopeId(),e),gOt={ref:"timeLine",class:"time-line"},yOt={class:"time-line__header"},vOt={class:"time-line__header__dot"},_Ot={class:"time-line__header__dot__home-team team-logo"},bOt=["src"],xOt={class:"time-line__header__dot__away-team team-logo"},wOt=["src"],kOt={key:1,class:"start-line"},SOt=WU(()=>t.createElementVNode("div",null,null,-1)),COt=WU(()=>t.createElementVNode("div",null,null,-1)),TOt=[SOt,COt],EOt={key:1,class:"noEventText"},AOt={class:"tooltip-data"},MOt=["src"];function IOt(e,o,s,O,W,_){const g=t.resolveComponent("TimeLineEvent"),a=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",gOt,[t.createElementVNode("div",yOt,[t.createElementVNode("div",vOt,[t.createElementVNode("div",_Ot,[t.createElementVNode("img",{src:_.getTeamLogoSrc("homeTeam"),alt:""},null,8,bOt)]),t.createElementVNode("div",xOt,[t.createElementVNode("img",{src:_.getTeamLogoSrc("awayTeam"),alt:""},null,8,wOt)])])]),(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(_.gameEventsToShow,(v,d)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:v.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${d}`,class:t.normalizeClass(_.getGameEventClassAndSetIcon(v,d))},[t.createElementVNode("div",{class:t.normalizeClass(_.getEventContainerClass(v))},[t.createVNode(g,{"game-event":v,"is-mobile":_.isMobile,"time-line-width":W.timeLineWidth,width:_.gameEventWidth,"can-play-videos":s.canPlayVideos,onEventHeight:n=>_.updateContainerHeight(n,d),onPlayerChanged:o[0]||(o[0]=n=>e.$emit("player-changed",n)),onThumbnailClick:_.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","can-play-videos","onEventHeight","onThumbnailClick"])],2),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===_.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",kOt,TOt)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",EOt,"Aún no comienza el partido"))]))],512),t.createVNode(a,{data:W.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",AOt,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:W.dataVideo.link,format:"video/mp4"},null,8,MOt)])])]),_:1},8,["data"])],64)}const POt=o_(mOt,[["render",IOt],["__scopeId","data-v-2574e576"]]),BOt={class:"game-time-line__options"},LOt={class:"game-time-line__timeline"},zOt={__name:"GSC-GameTimeLine",props:{game:{type:Object,default:()=>({id:79601,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,homeTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/18.png",team_id:18,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/1.png",team_id:1,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},setup(e){TU.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const o=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"}),s=t.ref({width:"auto",height:"30px",padding:"0px 20px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"});let O=null;const W=t.ref(["Todo","1er tiempo","2do tiempo"]),_=t.ref("Todo"),g=t.ref({}),a=t.ref(null),v=t.ref(0),d=t.computed(()=>{let u="all";return _.value==="1er tiempo"||_.value==="1er"?u="firstHalf":(_.value==="2do tiempo"||_.value==="2do")&&(u="secondHalf"),u}),n=t.computed(()=>v.value<500);function x(u){_.value=u}function y(u){g.value=u}function b(){if(window.ResizeObserver)O=new ResizeObserver(()=>{v.value=a.value.clientWidth}),O.observe(a.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{b()}),t.onBeforeUnmount(()=>{O&&O.unobserve(a.value)}),(u,r)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:a,class:"game-time-line"},[t.createElementVNode("div",BOt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value,i=>(t.openBlock(),t.createElementBlock("div",{key:i,class:"game-time-line__options__option"},[t.createVNode(XPt,t.mergeProps(v.value<390?s.value:o.value,{text:i=="Todo"?i:v.value<390?i.substring(0,3):i,"is-active":_.value===i,onClick:h=>x(i)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",LOt,[t.createVNode(POt,{"game-data":e.game,"time-line-period":d.value,"is-mobile":n.value,socket:e.socket,"can-play-videos":e.canPlayVideos,onGameEventsByPeriodFilled:y},null,8,["game-data","time-line-period","is-mobile","socket","can-play-videos"])])],512))}},OOt=o_(zOt,[["__scopeId","data-v-3596be52"]]),Vqt="",FOt={class:"game-data__header"},NOt={class:"game-data__header__tournament-season-dropdown"},DOt={class:"game-data__header__teams-carousel"},VOt={class:"game-data__body"},ROt={key:0,class:"no-stats-container"},jOt={key:1,class:"no-stats-container-mobile"},$Ot={class:"game-data__body__menu"},UOt={class:"game-data__body__menu__contmenuswitch"};_u.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const HOt=t.defineComponent({name:"GSC-GameData",components:{StatisticsMain:dse,GSCGameTimeLine:OOt,GscSwitchComponent:i9,GSCLineupsMain:Jbe,GSCPositining:L1t,GSCDatosGSMain:ZSe,GSCVideoGame:hNe,ModalEvents:mO,GSCTacticaFijaMain:YPt,GSCProminentMain:drt,GSCComparative:yst}}),GOt=Ji(Object.assign(HOt,{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=Q5();let O=null;zd.on("socket-connected",()=>{s.commit("nextGeneral/updateIsSocketConnected",W.socket.connected)});const W=e,_=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),g=t.ref({season:[]}),a=t.ref({}),v=t.ref(!1),d=t.ref({}),n=t.ref(1),x=t.ref(0),y=3e4,b=3e4,u=3e4,r=3e4,i=3e4,h=3e4,l=3e4,p=3e4,m=6e4,w=t.ref(null),C=t.ref(null),A=t.ref(null),T=t.ref([]),P=t.ref(null),B=t.ref(!0),E=t.ref(new Set([1,2])),I=t.ref({}),M=t.ref({minute:"",recent_lapse:0,score:{}}),S=t.ref(0),L=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),k=t.ref(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}]),z=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}]),F=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 R=t.ref(0);let U=null;const H=t.ref(null),$=t.ref(0),J=t.ref(z.value[0]),ae=t.ref([]);let Y=t.ref("");const ee={seasonAndPrivileges:null,canPrivilegesTeamPlayVideos:!1,homeTeamDetails:{canPlayVideos:!1,team:{}},awayTeamDetails:{canPlayVideos:!1,team:{}}},te=t.computed(()=>{const ot=[];return a.value&&a.value.id&&(ot.push({id:a.value.id,name:a.value.name,type:a.value.type}),a.value.related_seasons&&a.value.related_seasons.forEach(_t=>{ot.push({id:_t.id,type:_t.type})})),ot}),X=t.computed(()=>{if(W.clientPrivilegesBySeasons){const ot=W.clientPrivilegesBySeasons.seasonsAndPrivileges.get(a.value.id);if(ot)return ot.teamId}return 0});function K(){v.value=!1}function ce(ot){const _t=ot.split(",");return!(_t.length<2||_t[1].split(" ").length<2)}function de(ot){w.value=ot}function he(ot){T.value.push(ot)}function pe(ot){P.value=ot}function re(ot){A.value=ot}function le(ot){C.value=ot}function se(ot){if(!ce(ot))return"";const _t=be(ot);return`${me(ot)}. ${_t}`}function me(ot){return ot.split(",")[1].split(" ")[1][0]}function be(ot){const _t=ot.split(",")[0].split(" ");return _t[0].length<=3&&_t.length>1?`${_t[0]} ${_t[1]}`:_t[0]}async function ve(ot){try{const _t=_u.create({headers:{Authorization:`${_.value}`}});I.value={};const gt=await _t.get("https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/"+ot.game_id);if(I.value[ot.home_team.team_id]=[],I.value[ot.home_team.team_id].team={name:ot.home_team.acronym,logo:ot.home_team.logo},I.value[ot.home_team.team_id].goals=[],I.value[ot.home_team.team_id].red=[],I.value[ot.home_team.team_id].yellow=[],I.value[ot.visiting_team.team_id]=[],I.value[ot.visiting_team.team_id].team={name:ot.visiting_team.acronym,logo:ot.visiting_team.logo},I.value[ot.visiting_team.team_id].goals=[],I.value[ot.visiting_team.team_id].red=[],I.value[ot.visiting_team.team_id].yellow=[],gt.data.minute!=null&&(M.value={minute:gt.data.minute,recent_lapse:gt.data.recent_lapse,score:gt.data.score}),gt.data.plays)for(let Bt=0;Bt<gt.data.plays.length;Bt++)gt.data.plays[Bt].category_name=="Roja"&>.data.plays[Bt].status==1&&(ot.home_team.team_id==gt.data.plays[Bt].team_id?(se(gt.data.plays[Bt].player_name)in I.value[ot.home_team.team_id].red||(I.value[ot.home_team.team_id].red[se(gt.data.plays[Bt].player_name)]={},I.value[ot.home_team.team_id].red[se(gt.data.plays[Bt].player_name)].event=[],I.value[ot.home_team.team_id].red[se(gt.data.plays[Bt].player_name)].name=se(gt.data.plays[Bt].player_name)),I.value[ot.home_team.team_id].red[se(gt.data.plays[Bt].player_name)].event.push(gt.data.plays[Bt].minute)):(se(gt.data.plays[Bt].player_name)in I.value[ot.visiting_team.team_id].red||(I.value[ot.visiting_team.team_id].red[se(gt.data.plays[Bt].player_name)]={},I.value[ot.visiting_team.team_id].red[se(gt.data.plays[Bt].player_name)].event=[],I.value[ot.visiting_team.team_id].red[se(gt.data.plays[Bt].player_name)].name=se(gt.data.plays[Bt].player_name)),I.value[ot.visiting_team.team_id].red[se(gt.data.plays[Bt].player_name)].event.push(gt.data.plays[Bt].minute))),gt.data.plays[Bt].category_name=="Amarilla"&>.data.plays[Bt].status==1&&(ot.home_team.team_id==gt.data.plays[Bt].team_id?(se(gt.data.plays[Bt].player_name)in I.value[ot.home_team.team_id].yellow||(I.value[ot.home_team.team_id].yellow[se(gt.data.plays[Bt].player_name)]={},I.value[ot.home_team.team_id].yellow[se(gt.data.plays[Bt].player_name)].event=[],I.value[ot.home_team.team_id].yellow[se(gt.data.plays[Bt].player_name)].name=se(gt.data.plays[Bt].player_name)),I.value[ot.home_team.team_id].yellow[se(gt.data.plays[Bt].player_name)].event.push(gt.data.plays[Bt].minute)):(se(gt.data.plays[Bt].player_name)in I.value[ot.visiting_team.team_id].yellow||(I.value[ot.visiting_team.team_id].yellow[se(gt.data.plays[Bt].player_name)]={},I.value[ot.visiting_team.team_id].yellow[se(gt.data.plays[Bt].player_name)].event=[],I.value[ot.visiting_team.team_id].yellow[se(gt.data.plays[Bt].player_name)].name=se(gt.data.plays[Bt].player_name)),I.value[ot.visiting_team.team_id].yellow[se(gt.data.plays[Bt].player_name)].event.push(gt.data.plays[Bt].minute))),gt.data.plays[Bt].event_type_name=="Gol"&>.data.plays[Bt].status==1&&(ot.home_team.team_id==gt.data.plays[Bt].team_id?gt.data.plays[Bt].category_name=="Autogol"?(se(gt.data.plays[Bt].player_name)in I.value[ot.visiting_team.team_id].goals||(I.value[ot.visiting_team.team_id].goals[se(gt.data.plays[Bt].player_name)]={},I.value[ot.visiting_team.team_id].goals[se(gt.data.plays[Bt].player_name)].event=[],I.value[ot.visiting_team.team_id].goals[se(gt.data.plays[Bt].player_name)].name=se(gt.data.plays[Bt].player_name)),I.value[ot.visiting_team.team_id].goals[se(gt.data.plays[Bt].player_name)].event.push(gt.data.plays[Bt].minute)):(se(gt.data.plays[Bt].player_name)in I.value[ot.home_team.team_id].goals||(I.value[ot.home_team.team_id].goals[se(gt.data.plays[Bt].player_name)]={},I.value[ot.home_team.team_id].goals[se(gt.data.plays[Bt].player_name)].event=[],I.value[ot.home_team.team_id].goals[se(gt.data.plays[Bt].player_name)].name=se(gt.data.plays[Bt].player_name)),I.value[ot.home_team.team_id].goals[se(gt.data.plays[Bt].player_name)].event.push(gt.data.plays[Bt].minute)):gt.data.plays[Bt].category_name=="Autogol"?(se(gt.data.plays[Bt].player_name)in I.value[ot.home_team.team_id].goals||(I.value[ot.home_team.team_id].goals[se(gt.data.plays[Bt].player_name)]={},I.value[ot.home_team.team_id].goals[se(gt.data.plays[Bt].player_name)].event=[],I.value[ot.home_team.team_id].goals[se(gt.data.plays[Bt].player_name)].name=se(gt.data.plays[Bt].player_name)),I.value[ot.home_team.team_id].goals[se(gt.data.plays[Bt].player_name)].event.push(gt.data.plays[Bt].minute)):(se(gt.data.plays[Bt].player_name)in I.value[ot.visiting_team.team_id].goals||(I.value[ot.visiting_team.team_id].goals[se(gt.data.plays[Bt].player_name)]={},I.value[ot.visiting_team.team_id].goals[se(gt.data.plays[Bt].player_name)].event=[],I.value[ot.visiting_team.team_id].goals[se(gt.data.plays[Bt].player_name)].name=se(gt.data.plays[Bt].player_name)),I.value[ot.visiting_team.team_id].goals[se(gt.data.plays[Bt].player_name)].event.push(gt.data.plays[Bt].minute)))}catch(_t){return Promise.reject(_t)}}function we(ot){v.value=!0,ot.is_live!=1&&ot.game_status!=0&&(ot.game_status==4||Object.keys(ot.minutes).length>0)?(S.value=1,I.value={plays:ot.minutes,home_team:ot.home_team,visiting_team:ot.visiting_team}):(S.value=0,ve(ot))}function Te(){U=new ResizeObserver(ot=>{for(const _t of ot)$.value=_t.contentRect.width}),U.observe(H.value)}const Ce=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,$e,{immediate:!0}),t.watch(()=>s.state.nextGeneral.gameForAnalysis,()=>{s.commit("nextGeneral/updateIsSocketConnected",W.socket.connected)},{deep:!0,immediate:!0});function Me(ot){n.value=ot.is_captured,x.value=ot.is_female,B.value=ot.is_captured!==0,g.value.id!==ot.id&&(g.value=ot,s.commit("gameGlobal/setTournamentType",ot.tournament_type))}const Pe=o;function Le(ot,_t){s.commit("nextGeneral/updateShowLiveData",!0);const gt=x.value?"Destacados":"Destacadas";z.value.forEach(Bt=>{Bt.name===gt&&(Bt.name=x.value?"Destacadas":"Destacados")}),ve({game_id:d.value.game_id,home_team:d.value.home_team,visiting_team:d.value.visiting_team}),Re(),R.value+=1}function $e(ot,_t){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 gt=z4();gt.disconnected?O4():gt.connected&&wE(`game.${d.value.game_id}.v2`),Ie(),O=setInterval(()=>{S.value=0,ve({game_id:d.value.game_id,home_team:d.value.home_team,visiting_team:d.value.visiting_team})},6e4)}else Ie(),F4();ot!==_t&&(R.value+=1)}function Ie(){O&&clearInterval(O)}function Re(){z.value=[],d.value.is_live||d.value.game_status===4?z.value=[...k.value]:z.value=[...F.value],W.isWidget||((a.value.is_tactic_available===0||d.value.is_live||d.value.game_status===0)&&z.value.pop(),d.value.has_tracking===1&&!(d.value.is_live||d.value.game_status===4)&&z.value.push({componentName:"GSCPositining",name:"Posicionamiento",id:8})),J.value=z.value[0]}function Be(ot){ot.gameSeasonId=d.value.season_id,ot.gameRegularSeasonId=d.value.regularSeasonId,!(!ot.auxwidget&&ke.value&&!ke.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}),Pe("openmedia",ot))}function ge(ot){Pe("onOpenProfile",ot)}function Ae(ot){Pe("openProfileTeam",ot)}function ye(ot){Pe("openProfilePlayer",ot)}function Fe(ot){We(ot),ot=="Estadísticas"&&(Y.value="Comparativa")}function ze(){Y.value=""}function Ve(ot){a.value.id!==ot.id&&(a.value=ot,Pe("change-season-id",ot.id))}const Ge=t.computed(()=>z.value.reduce((ot,_t)=>(W.disabledSectionsIds.includes(_t.id)||ke.value&&!ke.value.isVideoTabVisible&&_t.id===2||W.clientPrivilegesBySeasons&&_t.id===7||(B.value||_t.id!==5&&_t.id!==6)&&ot.push(_t.name),ot),[]));function Ze(ot){if(d.value.is_live||d.value.game_status===1||d.value.game_status===0){const _t=ot.playingAs.has(d.value.playingAs);return W.clientPrivilegesBySeasons.canPlayVideos&&_t}else{const _t=Ne.value.filter(gt=>ot.playingAs.has(gt.playingAs));return W.clientPrivilegesBySeasons.canPlayVideos&&_t.length>0}}const ke=t.computed(()=>{if(W.clientPrivilegesBySeasons){if(a.value&&d.value&&d.value.game_id){const ot=W.clientPrivilegesBySeasons.seasonsAndPrivileges.get(a.value.id);if(ot)if(je(ot.playingAs),(d.value.is_live||d.value.game_status===1||d.value.game_status===0)&&s.state.nextGeneral.showLiveData){const _t=ot.playingAs.has(d.value.playingAs);return{seasonAndPrivileges:ot,canPrivilegesTeamPlayVideos:W.clientPrivilegesBySeasons.canPlayVideos&&_t,isPrivilegesTeamOnly:!1,isPrivilegesTeamHome:d.value.home_team.team_id===ot.teamId,homeTeamDetails:{canPlayVideos:_t,team:d.value.home_team},awayTeamDetails:{canPlayVideos:_t,team:d.value.visiting_team},isVideoTabVisible:Ze(ot)}}else{const _t=d.value.home_team.team_id===ot.teamId,gt=Ne.value.filter(Dt=>ot.playingAs.has(Dt.playingAs));return{seasonAndPrivileges:ot,canPrivilegesTeamPlayVideos:W.clientPrivilegesBySeasons.canPlayVideos&>.length>0,isPrivilegesTeamOnly:!0,isPrivilegesTeamHome:_t,homeTeamDetails:{canPlayVideos:W.clientPrivilegesBySeasons.canPlayVideos&&_t&>.length>0,team:d.value.home_team},awayTeamDetails:{canPlayVideos:W.clientPrivilegesBySeasons.canPlayVideos&&!_t&>.length>0,team:d.value.visiting_team},isVideoTabVisible:Ze(ot)}}je(new Set)}return ee}return null}),Ne=t.computed(()=>{if(W.clientPrivilegesBySeasons){if(a.value){const ot=W.clientPrivilegesBySeasons.seasonsAndPrivileges.get(a.value.id);if(ot)return ae.value.filter(_t=>_t.game_status===1&&ot.playingAs.has(_t.playingAs))}return[]}return[]});t.watch(Ge,()=>{ke.value&&!ke.value.canPrivilegesTeamPlayVideos&&(J.value.id===2||J.value.id===7||J.value.id===8)&&We("Resumen")},{deep:!0,immediate:!0});function je(ot){E.value=ot}function We(ot){if(s.commit("nextGeneral/updateShowLiveData",!0),w.value!=null&&(clearInterval(w.value),w.value=null),C.value!=null&&(clearInterval(C.value),C.value=null),A.value!=null&&(clearInterval(A.value),A.value=null),P.value!=null&&(clearInterval(P.value),P.value=null),T.value.length>0){for(let _t of T.value)clearInterval(_t);T.value=[]}W.isWidget?J.value=z.value.find(_t=>_t.name===ot)||z.value[1]:J.value=z.value.find(_t=>_t.name===ot)||z.value[0]}t.onMounted(()=>{Te(),t.nextTick(()=>{W.isSynchronization&&We("Táctica Fija")})}),t.onBeforeUnmount(()=>{if(U&&U.disconnect(),w.value!=null&&(clearInterval(w.value),w.value=null),C.value!=null&&(clearInterval(C.value),C.value=null),A.value!=null&&(clearInterval(A.value),A.value=null),P.value!=null&&(clearInterval(P.value),P.value=null),T.value.length>0){for(let ot of T.value)clearInterval(ot);T.value=[]}N4()});function et(ot){if(ot.playingAs||(ot.playingAs=X.value?ot.home_team.team_id===X.value?1:2:0),w.value!=null&&(clearInterval(w.value),w.value=null),C.value!=null&&(clearInterval(C.value),C.value=null),A.value!=null&&(clearInterval(A.value),A.value=null),P.value!=null&&(clearInterval(P.value),P.value=null),T.value.length>0){for(let _t of T.value)clearInterval(_t);T.value=[]}d.value=ot,ot.is_live&&ot.game_status===4?O4():F4()}function tt(ot){ae.value=ot.map(_t=>{const gt={..._t};return X.value&&(gt.playingAs=gt.home_team.team_id===X.value?1:2),gt})}return(ot,_t)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:H},[t.createElementVNode("div",FOt,[t.withDirectives(t.createElementVNode("div",NOt,[t.createVNode(t.unref(wC),{"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:Me,onChangeTournaments:Me},null,8,["current-season-id","tournaments-ids-to-include","api-url","are-female-visible","is-clubes-active","is-female-mode"]),t.createVNode(t.unref(CC),{"current-season-id":e.currentSeasonId,"list-height":"370px",seasons:g.value.seasons,onInput:Ve},null,8,["current-season-id","seasons"])],512),[[t.vShow,e.areTournamentAndSeasonSelectsVisible]]),t.createElementVNode("div",DOt,[t.createVNode(t.unref(EJ),{"plays-live":I.value,"info-live":M.value,token:L.value,is_captured:n.value,"await-for-seasons":"",seasons:te.value,"is-pagination-visible":!1,"are-games-carousel-type":"","default-game-id":e.defaultGameId,"sort-calendar":e.sortCalendar,"is-team-game-per-page":e.isTeamGamePerPage,"client-privileges-team-id":X.value,"only-games-team-id":X.value,"tournament-type":t.unref(s).state.gameGlobal.tournamentType,onChangeGameCarousel:et,onOpenModalEvent:we,onChangeGamesByClientPrivileges:tt},null,8,["plays-live","info-live","token","is_captured","seasons","default-game-id","sort-calendar","is-team-game-per-page","client-privileges-team-id","only-games-team-id","tournament-type"])])]),v.value?(t.openBlock(),t.createBlock(mO,{key:0,width:$.value,onCloseModalEventsLive:K,plays:I.value,game:d.value,type:S.value},null,8,["width","plays","game","type"])):t.createCommentVNode("",!0),t.createElementVNode("div",VOt,[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},[$.value>500?(t.openBlock(),t.createElementBlock("div",ROt,_t[0]||(_t[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",jOt,_t[1]||(_t[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",$Ot,[t.createElementVNode("div",UOt,[t.createVNode(t.unref(i9),{type:2,buttons:Ge.value,"font-family":"Poppins-Regular","font-size":"16px",width:$.value<400||$.value<700?"max-content":$.value<840||$.value<1050?"155px":"165px","selected-option":J.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:We},null,8,["buttons","width","selected-option"])])]),Ce.value&&Ce.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(J.value.componentName),{key:R.value,game:Ce.value,"is-widget":e.isWidget,"team-widget":e.teamWidget,onIntervalidpossesion:le,onIntervalidhighlive:re,onIntervalidtops:he,onIntervalidgs:pe,subsection:t.unref(Y),seasonSelected:a.value,tournamentSelected:g.value,showLineups:B.value,socket:e.socket,"time-live-prominent-data":y,"time-live-highlights-prominent-and-video":b,"time-live-possesion":u,"time-live-video-goals":r,"time-live-video-best-plays":i,"time-live-video-this-game":h,"time-live-video-specific-plays":l,"time-live-comparative-best-players":p,"time-live-comparative-avanced":m,is_captured:n.value,"is-tactic-visible":!!a.value.show_tactic,"is-synchronization":e.isSynchronization,"can-play-videos":ke.value?ke.value.canPrivilegesTeamPlayVideos:!0,"video-privileges-playing-as":E.value,"client-privileges-team-id":X.value,"play-videos-privileges":ke.value,token:L.value,"game-events-interval-minutes":e.gameEventsIntervalMinutes,"volumetric-field-interval-minutes":e.volumetricFieldIntervalMinutes,"chalkboard-interval-minutes":e.chalkboardIntervalMinutes,"is-female-mode":e.isFemaleMode,onResetSubsection:ze,onOpenmedia:Be,onOnOpenProfile:ge,onOpenProfileTeam:Ae,onOpenProfilePlayer:ye,onChangeToTab:Fe,onOpenMediaPlayer:Be,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 Ch({url:e,options:o={},retries:s=3}){return await _u.get(e,o).then(O=>O).catch(O=>s>0?Ch({url:e,options:o,retries:s-1}):O)}async function qU({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 qU({seasonId:e},!1);throw new Error(s)}}async function WOt({seasonId:e}){try{return(await Ch({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(o){return Promise.reject(o)}}async function qOt({seasonId:e}){try{return(await Ch({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(o){return Promise.reject(o)}}function YOt(e,o,s,O,W,_,g=!1){const a=s.map(v=>v===1?2:v===2?1:3);return e.filter(v=>{const d=_&&v[W.teamId]?v[W.teamId]!==_:!1,n=o===1?2:1;return(g||O.includes(v[W.gameId]))&&(!o||(d?n:o)===v[W.playingAs])&&(s.includes(v[W.matchResult])&&v[W.teamId]===_||a.includes(v[W.matchResult])&&v[W.teamId]!==_)})}function YU(e,o,s,O,W){return o.length===2&&s.length===3&&O.length===6?e:e.filter(_=>o.includes(_[W.playingAs])&&s.includes(_[W.matchResult])&&O.includes(_[W.section]))}async function ZU({seasonId:e}){try{const o=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await Ch({url:o})).data}catch(o){return Promise.reject(o)}}async function ZOt({seasonId:e,gameId:o}){try{const s=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${o}`,{data:O}=await Ch({url:s});return O}catch(s){return Promise.reject(s)}}async function XOt({gameId:e}){try{const o=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await Ch({url:o})).data.data}catch(o){return Promise.reject(o)}}async function JOt({gameId:e}){try{const o=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await Ch({url:o})).data.data||[]}catch(o){return Promise.reject(o)}}const KOt=["categoryId","matchLapse","section","matchResult","playingAs","total"];let iC=null;function XU(){return iC||(iC=dy(KOt)),iC}async function QOt(e){try{const o=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await Ch({url:o})).data}catch(o){return Promise.reject(o)}}async function JU({seasonId:e,teamId:o}){try{return await Ch({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${o}`})}catch(s){return Promise.reject(s)}}async function eFt(e){try{const o=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await Ch({url:o})}catch(o){return Promise.reject(o)}}async function tFt(e){try{return await Ch({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(o){return Promise.reject(o)}}const nFt={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,o,s,O){return YOt(e.seasonPlays,O["filterGeneral/getPlayingAs"],O["filterGeneral/getResults"],O["filterGeneral/getSelectedGamesIds"],XU(),O["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const o=e.currentSeasonGames.reduce((s,O)=>{const W={...O};return W.home_team=e.currentSeasonTeams.find(_=>_.team_id===O.home_team),W.visiting_team=e.currentSeasonTeams.find(_=>_.team_id===O.visiting_team),s[O.matchday_abbreviation]?s[O.matchday_abbreviation][O.game_status===3?"canceled":O.date]?s[O.matchday_abbreviation][O.game_status===3?"canceled":O.date].push(W):s[O.matchday_abbreviation][O.game_status===3?"canceled":O.date]=[W]:s[O.matchday_abbreviation]={[O.game_status===3?"canceled":O.date]:[W]},s},{});for(let[s,O]of Object.entries(o))o[s]=Object.entries(O).map(([W,_])=>({date:W,games:_})),o[s].sort((W,_)=>W.date<_.date?-1:W.date>_.date?1:0);return o},matchdaysDates(e,o){let s=[];if(o.nextGamesSchedule){let O=Object.keys(o.nextGamesSchedule);for(let W of O){let _=Number(W.replace("M","")),g=o.nextGamesSchedule[W].map(a=>({matchday:_,date:new Date(a.date)}));s=s.concat(g)}}return s},closestMatchDay(e,o){let s=new Date,O=0,W=-new Date(0,0,0).valueOf(),_=o.matchdaysDates,g=_.length;for(let a=0;a<_.length;a++)O=Math.abs(_[a].date-s),O<W&&(g=a,W=O);return _[g]?_[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 O=await qU({seasonId:o["filterGeneral/getSeasonId"]});if(s)return O;e("updateSeasonPlays",O)}catch(O){return Promise.reject(O)}},async getCurrentSeasonGames({commit:e,rootGetters:o}){try{const s=await ZU({seasonId:o["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",s)}catch(s){return Promise.reject(s)}},async getCurrentSeasonTeams({commit:e,rootGetters:o}){try{const s=await QOt({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 O=[void 0,void 0];return e.currentSeasonGames.length===0&&(O[0]=o("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(O[1]=o("getCurrentSeasonTeams")),await Promise.all(O),!1}catch(O){throw new Error(O)}}}}};async function aFt({filter:e}){try{const o=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:s}=await Ch({url:o});return s}catch(o){return Promise.reject(o)}}const rFt=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let oC=null;function iFt(){return oC||(oC=dy(rFt)),oC}class C5{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,O){O&&(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,O){O&&(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,O){for(let W=s-1;W<o.accumulated.length;W++)o.accumulated[W]+=O}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,O){for(let W=o.accumulated.length-1;W>=s-1;W--)o.accumulated[W]-=O}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(O=>O/s)}calculateRanking(o,s,O,W,_,g,a,v){let d=[];W===3&&o&&o.length&&(O.playingAs.length!==2||O.matchResult.length!==3)?d=Array.from(o.reduce((x,y)=>{const b=y[s.playingAs]===1,u=b?"1":"2",r=x.get(y[s.gameId]);if(r)r[u]?r[u].arrayPlays.push(y):r[u]={numberTeamId:y[s.teamId],arrayPlays:[y]};else{const i={numberMatchResult:y[s.matchResult]};b&&(i[1]={numberTeamId:y[s.teamId],arrayPlays:[y]}),x.set(y[s.gameId],i)}return x},new Map).values()).reduce((x,y)=>{const b=O.playingAs.length===2?"both":O.playingAs[0].toString();return(b==="both"&&(y[1].numberTeamId===O.teamId||y[2].numberTeamId===O.teamId)||b!=="both"&&y[b].numberTeamId===O.teamId)&&O.matchResult.includes(y.numberMatchResult)&&x.push(...y[1].arrayPlays,...y[2].arrayPlays),x},[]).filter(x=>O.sections.includes(x[s.section])):(d=o?[...o]:[],a&&o&&(d=o.filter(n=>O.playingAs.includes(n[s.playingAs])&&O.matchResult.includes(n[s.matchResult])&&O.sections.includes(n[s.section])))),this.setTeamRanking(d,W,s,O.teamId,g,"accomplished",v)}setTeamRanking(o,s,O,W,_,g,a){let v=null,d=null;s===3&&(v=new Map,d={},o.forEach(y=>{const b=v.get(y[O.gameId]);b?b[y[O.teamId.toString()]]?b[y[O.teamId.toString()]]+=y[O.total]:b[y[O.teamId.toString()]]=y[O.total]:v.set(y[O.gameId],{[y[O.teamId.toString()]]:y[O.total]})}),Array.from(v.values()).forEach(y=>{const[b,u]=Object.keys(y).map(i=>i),r=y[b]+y[u];this.addPassesAvgByTeam(d,b,r?y[b]/r:0),this.addPassesAvgByTeam(d,u,r?y[u]/r:0)}));const n=_.sort((y,b)=>y.team_id-b.team_id).map(y=>{if(s===3){const b=d[y.team_id.toString()];return{teamId:y.team_id,points:b?b.numberTotalPassesAvg/b.numberGamesCount:0,total:b?b.numberTotalPassesAvg:0}}else{const b=o.reduce((u,r)=>r[O.teamId]===y.team_id&&s===r[O.categoryId]?u+r[O.total]:u,0);return{teamId:y.team_id,points:y[`${a}FilterGames`]?b/y[`${a}FilterGames`]:0,total:b}}}).sort((y,b)=>b.points-y.points);this.accomplished.arrayRankings=n;const x=n.findIndex(y=>y.teamId===W);s===3&&(this.accomplished.avgPreGame=n[x].points),this[g].ranking=x+1,this[g].leader=n[0]}addPassesAvgByTeam(o,s,O){o[s]?(o[s].numberGamesCount+=1,o[s].numberTotalPassesAvg+=O):o[s]={numberGamesCount:1,numberTotalPassesAvg:O}}}class rc{constructor(o,s,O,W,_,g,a,v,d,n,x=!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 C5);yu(this,"visitingTeam",new C5);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=`${O.accomplished}-${O.received}`,this.accomplishedCategoryIds=o||[],this.receivedCategoryIds=s||[],this.generalCategoriesIds=O||{accomplished:0,received:0},this.name=W,this.names["0-0"]=W||"",this.names["1-1"]=_||"",this.names["0-1"]=g||"",this.names["1-0"]=a||"",this.generalId=v||0,this.betOnly=d||!1,this.isPercent=n||!1,this.isVisible=x}addLeaguePlays(o,s,O){o.length===0||!O||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*O)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*O)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(o,s,O){let W="-";for(const[_,g]of Object.entries(this.generalCategoriesIds))o===g&&(W=`${_==="accomplished"?"0":"1"}${W}`),s===g&&(W=`${W}${_==="accomplished"?"0":"1"}`);W.length===3&&(this.mentions[W]=O)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(o,s,O,W,_){!O||!_||o!==this.homeTeamType&&o!==this.visitingTeamType||(O.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(_))}addLivePlay(o,s,O,W,_=!1,g=!1){(o===this.homeTeamType||o===this.visitingTeamType)&&O[W.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[o].increaseAccomplishedByOne(O[W.section],O[W.total],!0)}subtractLivePlay(o,s,O,W,_){(o===this.homeTeamType||o===this.visitingTeamType)&&(this.isAccomplishedPlay(O[W.categoryId])&&!_?this[o].decreaseAccomplishedLiveByOne(O[W.section],O[W.total]):this.isReceivedPlay(O[W.categoryId])&&_&&this[o].decreaseReceivedLiveByOne(O[W.section],O[W.total]))}isAccomplishedLeaguePlay(o){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(O=>o===O||`${o}_r`===O)}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,O,W,_,g=!1){this[this.homeTeamType].calculateRanking(o,s,O,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,_,g,this.homeTeamType),this[this.visitingTeamType].calculateRanking(o,s,W,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,_,g,this.visitingTeamType)}resetData(){this.homeTeam=new C5,this.visitingTeam=new C5,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 oFt={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new rc([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new rc([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new rc([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0,!1),yellowCards:new rc([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new rc([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new rc([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new rc([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new rc([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new rc([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new rc([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new rc([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new rc([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new rc([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new rc([208],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new rc([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new rc([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new rc([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new rc([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new rc([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new rc([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new rc([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new rc([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new rc([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new rc([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new rc([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new rc([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new rc([495],null,{accomplished:27,received:0},"Balones perdidos sin disputa","","","",1)}},stoppedBall:{name:"Balón parado",priority:5,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{freeKick44:new rc([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new rc([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new rc([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new rc([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new rc([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new rc([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new rc([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new rc([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new rc([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new rc([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new rc([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},sFt=[{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}],lFt=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let sC=null;function cFt(){return sC||(sC=dy(lFt)),sC}const uFt=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let lC=null;function dFt(){return lC||(lC=dy(uFt)),lC}function T5(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 KU(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 cC(e,o,s){let O=[...o];return e[s.categoryId]===2&&(O[0]=14),e[s.categoryId]===20&&(O[0]=15),[14,15].includes(O[0])?O:null}const hFt=z4(),pFt=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],fFt={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:XU(),indexesTSP:iFt(),indexesLS:cFt(),indexesTLP:dFt(),nextGamesDataStructure:oFt,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 sFt.filter(o=>o.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return YU(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return YU(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 O of Object.values(s.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&O.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&O.visitingTeam.resetTotals(),O.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),O.addTeamPlays(O.homeTeamType,e.gameForAnalysis.home_team,o.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:o.totalFilteredHomeGames),O.addTeamPlays(O.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,O)=>s.priority-O.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,O]of Object.entries(o))e.gameForAnalysis[s]=O},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&&wE(`game.${e.gameForAnalysis.game_id}.v2`)},updateCurrentSeasonTeams(e,o){e.currentSeasonTeams=o,e.currentSeasonTeams.forEach(s=>{s.playedGames=e.currentSeasonGames.reduce((O,W)=>{if(W.game_status===1&&(W.home_team===s.team_id||W.visiting_team===s.team_id)){const _=W.score[0]-W.score[1],g=W.home_team===s.team_id;O.push({playingAs:g?1:2,matchResult:_===0?3:g?_>0?1:2:_<0?1:2})}return O},[])})},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=TE(e.homeTeamFilter,o.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=TE(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(O=>{for(const W of Object.values(O.subcategories))W.resetMentions()}),s.forEach(O=>{for(const W of o)for(const _ of Object.values(O.subcategories))_.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 O=T5(o,e.indexesTLP,e.categoriesMap);for(const W of Object.values(e.nextGamesDataStructure))for(const _ of Object.values(W.subcategories))_.addLivePlay(e.gameForAnalysis.home_team===O[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",O[e.indexesTSP.teamId],O,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,o){const s=!!o[e.indexesTLP.length],O=e.livePlays.get(o[e.indexesTLP.playId]);if(Dee(O,o))return;let W="";const _=e.gameForAnalysis.home_team===o[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";O&&(W=e.gameForAnalysis.home_team===O[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const g=T5(O,e.indexesTLP,e.categoriesMap),a=cC(O,g,e.indexesTLP),v=T5(o,e.indexesTLP,e.categoriesMap),d=cC(o,v,e.indexesTLP);for(const n of Object.values(e.nextGamesDataStructure))for(const x of Object.values(n.subcategories))O&&(x.subtractLivePlay(W,g[e.indexesTSP.teamId],g,e.indexesTSP,s),a&&x.subtractLivePlay(W,a[e.indexesTSP.teamId],a,e.indexesTSP,s)),x.addLivePlay(_,v[e.indexesTSP.teamId],v,e.indexesTSP,e.isLive,s),d&&x.addLivePlay(_,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],O=e.livePlays.get(o[e.indexesTLP.playId]);let W="";if(O){W=e.gameForAnalysis.home_team===O[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(O[e.indexesTLP.playId]);const _=T5(O,e.indexesTLP,e.categoriesMap),g=cC(o,_,e.indexesTLP);for(const a of Object.values(e.nextGamesDataStructure))for(const v of Object.values(a.subcategories))v.subtractLivePlay(W,_[e.indexesTSP.teamId],_,e.indexesTSP,s),g&&v.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(_=>{_.homeTeamFilterGames=_.playedGames.filter(g=>e.homeTeamFilter.playingAs.includes(g.playingAs)&&e.homeTeamFilter.matchResult.includes(g.matchResult)).length,_.visitingTeamFilterGames=_.playedGames.filter(g=>e.visitingTeamFilter.playingAs.includes(g.playingAs)&&e.visitingTeamFilter.matchResult.includes(g.matchResult)).length});const O=[],W=new Map;for(const _ of Object.values(e.nextGamesDataStructure))for(const g of Object.values(_.subcategories))O.push(g);o.rankingData.forEach(_=>{for(const g of O)if(g.isInGeneralCategory(_[e.indexesLS.categoryId])){W.has(g.id)?W.get(g.id).push(_):W.set(g.id,[_]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,o){e.homeGames=KU(o)},setVisitingGames(e,o){e.visitingGames=KU(o)},generateCategoriesMap(e){for(const o of Object.values(e.nextGamesDataStructure))for(const s of Object.values(o.subcategories))s.accomplishedCategoryIds.forEach(O=>{const W=e.categoriesMap.get(O);W?W.push(s.generalCategoriesIds.accomplished):e.categoriesMap.set(O,[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 tFt({gameId:o.gameId});if(g){var s=[],O=[],W={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}},_={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}};Object.keys(g.data).length!==0&&(s=g.data.data.filter(a=>a[1]==o.homeTeam),O=g.data.data.filter(a=>a[1]==o.awayTeam),W=g.data.games,_=g.data.games),e("updateHomeTeamPlays",s),e("updateVisitingTeamPlays",O),e("setHomeGames",W),e("setVisitingGames",_)}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 O=[];e("updateGameForAnalysis",s.gameInfo),O.push(o("setAndGetStatsPostMatch",{gameId:s.game,homeTeam:s.homeTeam,awayTeam:s.awayTeam})),await Promise.all(O)}catch(O){throw new Error(O)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:o,commit:s},{gameId:O,isTeamsAnalysis:W,currentSeasonId:_,isLoginChanged:g=!1,defaultFilter:a=null,gameInfo:v=null,isCupGame:d=!1}){try{let n={},x=e.seasonId!==Number(_);const y=[];s("setIsSectionLoading",!0,{root:!0}),s("setUsePastSeasonId",!1),x&&s("setSeasonId",_),s("updateGameId",Number(O)),e.oldSeasonId!==e.seasonId&&s("resetNextGamesDataStructure");const b=await o("getCurrentSeasonGames",Number(O));if(s("leagueGeneral/updateCurrentSeasonGames",b,{root:!0}),n=b.find(u=>u.game_id===Number(O)),!n&&v&&(n=v),n&&s("updateGameForAnalysis",n),n.game_status!==1&&((g||e.categoriesMap.size===0)&&s("generateCategoriesMap"),d||await o("checkTeamsData",{gameId:O,isFromBet:!!a}),(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=>n.home_team===u.team_id))&&y.push(o("getCurrentSeasonTeams")),s("setHomeResultGame",n.score[0]),s("setAwayResultGame",n.score[1]),W?n.game_status!==1?(await o("fillStatisticData",{gameId:O,gameinfo:n,promises:y,defaultFilter:a}),s("updateShowPostMatchData",!1)):(s("updateStats",[]),s("updateShowPostMatchData",!0),y.push(o("fillStatisticDataPostMatch",{game:O,homeTeam:n.home_team,awayTeam:n.visiting_team,gameInfo:n})),await Promise.all(y)):s("setIsSectionLoading",!1,{root:!0})}catch(n){return Promise.reject(n)}},async fillStatisticData({commit:e,dispatch:o,getters:s,rootGetters:O,state:W},{gameId:_,gameinfo:g,promises:a=[],defaultFilter:v=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)&&a.push(o("getCurrentLiveGamePlays",_)),a.push(o("getSpecialMentionsByGame",_)),a.push(o("getHomeTeamPlays")),a.push(o("getVisitingTeamPlays")),a.push(o("getCurrentSeasonPlays")),v&&a.push(aFt(v)),d=await Promise.all(a)}catch(n){throw new Error(n)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:s,isPremiumAccount:O["loginGeneral/getPremiumAccount"]}),v){const[n]=d.pop();n&&(e("setBetSubcategories",n.categories),e("setBetDescription",n.sectionDescription),e("setDefaultFilter",n.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:O},{gameId:W,isFromBet:_}){try{const g=Number(W);if(e.pastSeasonId){O("setPastSeasonId",e.pastSeasonId,{root:!0});const a=s.leagueGeneral.currentSeasonGames.find(v=>v.game_id===g);a&&O("updateGameForAnalysis",a),await Promise.all([o("getHomeTeamPlays"),o("getVisitingTeamPlays")]),O("setUsePastSeasonId",_||(!e.homeTeamPlays||e.homeTeamPlays.length===0)&&(!e.visitingTeamPlays||e.visitingTeamPlays.length===0))}else O("setUsePastSeasonId",!1)}catch(g){throw new Error(g)}},async getSpecialMentionsByGame({commit:e},o){try{const s=await JOt({gameId:o});e("addSpecialMentions",s)}catch(s){return Promise.reject(s)}},async getCurrentSeasonGames({commit:e,state:o},s){try{const{teams:O,games:W,past_season_id:_,tournament_id:g}=await ZOt({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId,gameId:s}),a=pFt.find(v=>v.id===g);return a&&e("setCurrentTournamentName",a.name),e("setHome",O[0]),e("setAway",O[1]),o.usePastSeasonId||e("setPastSeasonId",_),await e("updateCurrentSeasonGames",W),W&&Array.isArray(W)&&e("updateFinishedGames",W.reduce((v,d)=>(d.game_status===1&&(v+=1),v),0)),W}catch(O){return Promise.reject(O)}},async getCurrentSeasonGamesLast({commit:e,state:o}){try{const{games:s,past_season_id:O}=await ZU({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId});return o.usePastSeasonId||e("setPastSeasonId",O),await e("updateCurrentSeasonGames",s),s&&Array.isArray(s)&&e("updateFinishedGames",s.reduce((W,_)=>(_.game_status===1&&(W+=1),W),0)),s}catch(s){return Promise.reject(s)}},async getCurrentSeasonTeams({commit:e,state:o}){try{const s=await eFt({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,O=await qOt({seasonId:s});e("updateSeasonStatistics",O),e("updateOldSeasonId",s)}catch(s){return Promise.reject(s)}},updateRankingInSubcategories({state:e,commit:o,getters:s,rootGetters:O}){e.currentSeasonGames.length>0&&o("addRankingInSubcategories",{getters:s,isPremiumAccount:O["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:o}){try{const s=await JU({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 JU({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 WOt({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 O=await XOt({gameId:s});e.livePlays=new Map,O.forEach(W=>{e.gameForAnalysis.game_id===W[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===W[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===W[e.indexesTLP.teamId])&&o("addLiveGamePlay",W)})}catch(O){throw new Error(O)}},socket_new({state:e,commit:o},s){const O=s[1];(e.gameForAnalysis.home_team===O[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===O[e.indexesTLP.teamId])&&o("addLiveGamePlay",O)},socket_update({state:e,commit:o},s){const O=s[1];e.gameForAnalysis.game_id===O[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===O[e.indexesTLP.teamId]||e.gameForAnalysis.visitingTeam===O[e.indexesTLP.teamId])&&o("updateLiveGamePlay",O)},socket_delete({state:e,commit:o},s){const O=s[1];e.gameForAnalysis.game_id===O[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===O[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===O[e.indexesTLP.teamId])&&o("deleteLiveGamePlay",O)},exitChannel({state:e,getters:o,rootState:s,rootGetters:O,commit:W}){const _=O["loginGeneral/getPremiumAccount"];o.isLive&&_&&(W("updateShowLiveData",!0),W("clearLiveTotals"),e.livePlays.clear(),hFt.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const s of Object.values(e.nextGamesDataStructure))for(const O of Object.values(s.subcategories))O.homeTeam.resetTotals(),O.visitingTeam.resetTotals(),O.homeTeam.resetTotalsLive(),O.visitingTeam.resetTotalsLive(),O.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(s=>{for(const O of Object.values(s.subcategories))O.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const s of Object.values(e.nextGamesDataStructure))for(const O of Object.values(s.subcategories))O.homeTeam.resetTotals(),O.visitingTeam.resetTotals(),O.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(s=>{for(const O of Object.values(s.subcategories))O.resetMentions()}),e.currentSeasonGames=[],e.currentSeasonTeams=[],e.gameForAnalysis={},e.homeTeamPlays=[],e.visitingTeamPlays=[],e.currentSeasonPlays=null,e.totalSeasonFinishedGames=0,e.totalHomeTeamFinishedGames=0,e.totalVisitingTeamFinishedGames=0,e.homeGames=[],e.showPostMatch=!1,e.homeResultGame=null,e.awayResultGame=null,e.visitingGames=[],e.idAssetSelected=1,e.showAdvanceFilter=!1,e.selectedAnalysis={},e.homeTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.visitingTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.isRankingCalculating=!0}}}};async function mFt(){try{const{data:e}=await Ch({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return e}catch(e){throw new Error(e)}}const gFt={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 mFt();o("setTournaments",s)}}catch(s){throw new Error(s)}}}}};async function yFt({seasonId:e,localTeamId:o,visitingTeamId:s}){try{const O=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${o}/${s}`;return(await Ch({url:O})).data}catch(O){return Promise.reject(O)}}async function vFt({seasonId:e,localTeamId:o,visitingTeamId:s}){try{const O=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${o}/${s}`;return(await Ch({url:O})).data}catch(O){return Promise.reject(O)}}const QU=(e,o)=>{let s={};return e.forEach((O,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[O]=o[W]}),s},eH=(e,o)=>e.filter(O=>{const W=o.playingAs.includes(O.playing_as),_=o.matchResult.includes(O.match_result),g=o.sections.includes(O.section);return W&&_&&g});(function(){function e(o,s,O){return typeof O>"u"||+O==0?Math[o](s):(s=+s,O=+O,isNaN(s)||!(typeof O=="number"&&O%1===0)?NaN:(s=s.toString().split("e"),s=Math[o](+(s[0]+"e"+(s[1]?+s[1]-O:-O))),s=s.toString().split("e"),+(s[0]+"e"+(s[1]?+s[1]+O:O))))}Math.ceil10||(Math.ceil10=function(o,s){return e("ceil",o,s)})})();function tH(e,o){let s=o*-1;return Math.ceil10(e,s)}const _Ft={...gFt,...nFt,...fFt,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{playsLocal:(e,o,s)=>{const O=e.xGLocalPlays,W="homeTeamFilter",_=s.nextGeneral[W];return eH(O,_)||[]},playsAway:(e,o,s)=>{const O=e.xGVisitingPlays,W="visitingTeamFilter",_=s.nextGeneral[W];return eH(O,_)},goalsQtyLocal:(e,o)=>{const s=Em.find(O=>O.name==="Goles");return o.playsLocal.filter(O=>s.categories.includes(O.category_id)).length},goalsQtyAway:(e,o)=>{const s=Em.find(O=>O.name==="Goles");return o.playsAway.filter(O=>s.categories.includes(O.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=Em.find(O=>O.name==="Remates con cabeza");return o.playsLocal.filter(O=>s.categories.includes(O.category_id)).length},headQtyAway:(e,o)=>{const s=Em.find(O=>O.name==="Remates con cabeza");return o.playsAway.filter(O=>s.categories.includes(O.category_id)).length},penaltiesQtyLocal:(e,o)=>{const s=Em.find(O=>O.name==="Penales");return o.playsLocal.filter(O=>s.categories.includes(O.category_id)).length},penaltiesQtyAway:(e,o)=>{const s=Em.find(O=>O.name==="Penales");return o.playsAway.filter(O=>s.categories.includes(O.category_id)).length},xGLocal:(e,o)=>{const s=new Set;let O=o.playsLocal.reduce((W,_)=>(s.has(_.moment_of_play)||(s.add(_.moment_of_play),W+=_.xG2),W),0);return tH(O,2)},xGAway:(e,o)=>{const s=new Set;let O=o.playsAway.reduce((W,_)=>(s.has(_.moment_of_play)||(s.add(_.moment_of_play),W+=_.xG2),W),0);return tH(O,2)}},mutations:{setTeamSelected(e,o){e.teamSelected=o},setPlays(e,o){const s=o.local_team.map(u=>QU(o.data_headers,u)),O=[],W=[],_=[],g=[],a=new Set;s.forEach(u=>{MA.has(u.category_id)?a.has(u.moment_of_play)||(a.add(u.moment_of_play),O.push(u)):IA.has(u.category_id)?W.push(u):PA.has(u.category_id)?_.push(u):BA.has(u.category_id)&&g.push(u)}),e.xGLocalPlays=[...W,...O,..._,...g];const v=o.visiting_team.map(u=>QU(o.data_headers,u)),d=new Set,n=[],x=[],y=[],b=[];v.forEach(u=>{MA.has(u.category_id)?d.has(u.moment_of_play)||(d.add(u.moment_of_play),n.push(u)):IA.has(u.category_id)?x.push(u):PA.has(u.category_id)?y.push(u):BA.has(u.category_id)&&b.push(u)}),e.xGVisitingPlays=[...x,...n,...y,...b]},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:e},{seasonId:o,localTeamId:s,visitingTeamId:O,postMatch:W=!1}){try{let _={};W?_=await vFt({seasonId:o,localTeamId:s,visitingTeamId:O}):_=await yFt({seasonId:o,localTeamId:s,visitingTeamId:O}),e("setPlays",_)}catch(_){return Promise.reject(_)}}}}}};function bFt(e){for(const[o,s]of Object.entries(_Ft))e.hasModule(o)||e.registerModule(o,s)}const xFt={class:"subcategory-group"},wFt={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(t.openBlock(),t.createElementBlock("div",xFt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,O=>(t.openBlock(),t.createBlock(t.unref(Hl),{key:O.id,modelValue:O.isSelected,"onUpdate:modelValue":W=>O.isSelected=W,label:O.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},kFt=gc(wFt,[["__scopeId","data-v-ae6f3d72"]]),SFt={class:"filter-subcategories"},CFt=Object.freeze(Object.defineProperty({__proto__:null,default:gc({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(t.openBlock(),t.createElementBlock("div",SFt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,O=>(t.openBlock(),t.createElementBlock("div",{key:O.id,class:"filter-subcategories__group"},[t.createVNode(kFt,{subcategoryGroup:O},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),E5=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),TFt={class:"details__header"},EFt=E5(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),AFt={class:"details__header__checkbox"},MFt={class:"details__body"},IFt={class:"details__body__playing-as"},PFt=["onClick"],BFt={class:"details__header"},LFt=E5(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),zFt={class:"details__header__checkbox"},OFt={class:"details__body"},FFt=E5(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),NFt={class:"details__body__game-section"},DFt=["onClick"],VFt={class:"details__body"},RFt=E5(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),jFt={class:"details__body__game-section"},$Ft=["onClick"],UFt=Object.freeze(Object.defineProperty({__proto__:null,default:gc({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const o=e;t.useCssVars(n=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const s=t.computed(()=>o.playingAs.every(n=>n.isSelected)),O=t.computed(()=>o.gameSections.every(n=>n.isSelected)),W=t.computed(()=>o.gameSections.reduce((n,x)=>(x.value<=3?n.firstHalf.push(x):n.secondHalf.push(x),n),{firstHalf:[],secondHalf:[]})),_=t.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function g(n){n?o.playingAs.forEach(x=>{x.isSelected=!0}):o.playingAs.forEach((x,y)=>{x.isSelected=y===0})}function a(n){o.playingAs.filter(x=>x.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function v(n){o.gameSections.filter(x=>x.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function d(n){n?o.gameSections.forEach(x=>{x.isSelected=!0}):o.gameSections.forEach((x,y)=>{x.isSelected=y===0})}return(n,x)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(_.value)},[t.createElementVNode("div",TFt,[EFt,t.createElementVNode("div",AFt,[t.createVNode(t.unref(Hl),{label:"Todos","model-value":s.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",MFt,[t.createElementVNode("div",IFt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.playingAs,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${b}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>a(y)},t.toDisplayString(y.name),11,PFt))),128))])]),t.createElementVNode("div",BFt,[LFt,t.createElementVNode("div",zFt,[t.createVNode(t.unref(Hl),{label:"Todos","model-value":O.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),t.createElementVNode("div",OFt,[FFt,t.createElementVNode("div",NFt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value.firstHalf,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${b}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>v(y)},t.toDisplayString(y.text),11,DFt))),128))])]),t.createElementVNode("div",VFt,[RFt,t.createElementVNode("div",jFt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value.secondHalf,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${b}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>v(y)},t.toDisplayString(y.text),11,$Ft))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),HFt={class:"filter-field"},GFt=Object.freeze(Object.defineProperty({__proto__:null,default:gc({__name:"FilterField",setup(e){const o=t.ref(Array.from({length:16},(O,W)=>W+1));function s(){}return(O,W)=>(t.openBlock(),t.createElementBlock("div",HFt,[t.createVNode(t.unref(FF),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":s},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),WFt={class:"subcategory-group"},qFt={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(t.openBlock(),t.createElementBlock("div",WFt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,O=>(t.openBlock(),t.createBlock(t.unref(Gl),{key:O.id,modelValue:O.isSelected,"onUpdate:modelValue":W=>O.isSelected=W,label:O.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},YFt=_c(qFt,[["__scopeId","data-v-ae6f3d72"]]),ZFt={class:"filter-subcategories"},XFt=Object.freeze(Object.defineProperty({__proto__:null,default:_c({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(t.openBlock(),t.createElementBlock("div",ZFt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,O=>(t.openBlock(),t.createElementBlock("div",{key:O.id,class:"filter-subcategories__group"},[t.createVNode(YFt,{subcategoryGroup:O},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),A5=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),JFt={class:"details__header"},KFt=A5(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),QFt={class:"details__header__checkbox"},eNt={class:"details__body"},tNt={class:"details__body__playing-as"},nNt=["onClick"],aNt={class:"details__header"},rNt=A5(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),iNt={class:"details__header__checkbox"},oNt={class:"details__body"},sNt=A5(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),lNt={class:"details__body__game-section"},cNt=["onClick"],uNt={class:"details__body"},dNt=A5(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),hNt={class:"details__body__game-section"},pNt=["onClick"],fNt=Object.freeze(Object.defineProperty({__proto__:null,default:_c({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const o=e;t.useCssVars(n=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const s=t.computed(()=>o.playingAs.every(n=>n.isSelected)),O=t.computed(()=>o.gameSections.every(n=>n.isSelected)),W=t.computed(()=>o.gameSections.reduce((n,x)=>(x.value<=3?n.firstHalf.push(x):n.secondHalf.push(x),n),{firstHalf:[],secondHalf:[]})),_=t.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function g(n){n?o.playingAs.forEach(x=>{x.isSelected=!0}):o.playingAs.forEach((x,y)=>{x.isSelected=y===0})}function a(n){o.playingAs.filter(x=>x.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function v(n){o.gameSections.filter(x=>x.isSelected).length===1&&n.isSelected||(n.isSelected=!n.isSelected)}function d(n){n?o.gameSections.forEach(x=>{x.isSelected=!0}):o.gameSections.forEach((x,y)=>{x.isSelected=y===0})}return(n,x)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(_.value)},[t.createElementVNode("div",JFt,[KFt,t.createElementVNode("div",QFt,[t.createVNode(t.unref(Gl),{label:"Todos","model-value":s.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",eNt,[t.createElementVNode("div",tNt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.playingAs,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${b}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>a(y)},t.toDisplayString(y.name),11,nNt))),128))])]),t.createElementVNode("div",aNt,[rNt,t.createElementVNode("div",iNt,[t.createVNode(t.unref(Gl),{label:"Todos","model-value":O.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),t.createElementVNode("div",oNt,[sNt,t.createElementVNode("div",lNt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value.firstHalf,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${b}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>v(y)},t.toDisplayString(y.text),11,cNt))),128))])]),t.createElementVNode("div",uNt,[dNt,t.createElementVNode("div",hNt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(W.value.secondHalf,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${b}`,class:t.normalizeClass(["details__body__button",{active:y.isSelected}]),onClick:u=>v(y)},t.toDisplayString(y.text),11,pNt))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),mNt={class:"filter-field"},gNt=Object.freeze(Object.defineProperty({__proto__:null,default:_c({__name:"FilterField",setup(e){const o=t.ref(Array.from({length:16},(O,W)=>W+1));function s(){}return(O,W)=>(t.openBlock(),t.createElementBlock("div",mNt,[t.createVNode(t.unref(fj),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":s},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));Bd.GSCGameData=GOt,Bd.connectSocket=O4,Bd.disconnectSocket=F4,Bd.getSocket=z4,Bd.registerStoreModules=bFt,Object.defineProperty(Bd,Symbol.toStringTag,{value:"Module"})});
|