@golstats/gsc-game-data 1.0.312 → 1.0.314
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-29c1d3c7-24d977cd.js → FilterConditions-29c1d3c7-a6352a0b.js} +1 -1
- package/dist/{FilterConditions-d16ec515-Cm8B52wI-93ed36a1.js → FilterConditions-d16ec515-Cm8B52wI-38b759da.js} +1 -1
- package/dist/{FilterField-6e36a3d5-v5j1AbSE-c319d337.js → FilterField-6e36a3d5-v5j1AbSE-d751afc9.js} +1 -1
- package/dist/{FilterField-9ac5eaf1-5e44aab1.js → FilterField-9ac5eaf1-dbf7bc73.js} +1 -1
- package/dist/{FilterSubcategories-51092d11-55b2f38d.js → FilterSubcategories-51092d11-7dbba810.js} +1 -1
- package/dist/{FilterSubcategories-95d712f2-zKq3PF5m-cd27532e.js → FilterSubcategories-95d712f2-zKq3PF5m-a73b54b3.js} +1 -1
- package/dist/gsc-game-data.js +1 -1
- package/dist/gsc-game-data.umd.cjs +1 -1
- package/dist/{index-19cd65f3.js → index-bea9949b.js} +27 -13
- package/package.json +2 -2
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
* Vue 3 Carousel 0.3.1
|
|
42
42
|
* (c) 2023
|
|
43
43
|
* @license MIT
|
|
44
|
-
*/const Wd={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"}},qE={itemsToShow:{default:Wd.itemsToShow,type:Number},itemsToScroll:{default:Wd.itemsToScroll,type:Number},wrapAround:{default:Wd.wrapAround,type:Boolean},throttle:{default:Wd.throttle,type:Number},snapAlign:{default:Wd.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Wd.transition,type:Number},breakpoints:{default:Wd.breakpoints,type:Object},autoplay:{default:Wd.autoplay,type:Number},pauseAutoplayOnHover:{default:Wd.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Wd.mouseDrag,type:Boolean},touchDrag:{default:Wd.touchDrag,type:Boolean},dir:{default:Wd.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Wd.i18n,type:Object},settings:{default(){return{}},type:Object}};function Gce({config:e,slidesCount:p}){const{snapAlign:f,wrapAround:F,itemsToShow:K=1}=e;if(F)return Math.max(p-1,0);let k;switch(f){case"start":k=p-K;break;case"end":k=p-1;break;case"center":case"center-odd":k=p-Math.ceil((K-.5)/2);break;case"center-even":k=p-Math.ceil(K/2);break;default:k=0;break}return Math.max(k,0)}function Hce({config:e,slidesCount:p}){const{wrapAround:f,snapAlign:F,itemsToShow:K=1}=e;let k=0;if(f||K>p)return k;switch(F){case"start":k=0;break;case"end":k=K-1;break;case"center":case"center-odd":k=Math.floor((K-1)/2);break;case"center-even":k=Math.floor((K-2)/2);break;default:k=0;break}return k}function Y4({val:e,max:p,min:f}){return p<f?e:Math.min(Math.max(e,f),p)}function qce({config:e,currentSlide:p,slidesCount:f}){const{snapAlign:F,wrapAround:K,itemsToShow:k=1}=e;let w=p;switch(F){case"center":case"center-odd":w-=(k-1)/2;break;case"center-even":w-=(k-2)/2;break;case"end":w-=k-1;break}return K?w:Y4({val:w,max:f-k,min:0})}function WE(e){return e?e.reduce((p,f)=>{var F;return f.type===t.Fragment?[...p,...WE(f.children)]:((F=f.type)===null||F===void 0?void 0:F.name)==="CarouselSlide"?[...p,f]:p},[]):[]}function K4({val:e,max:p,min:f=0}){return e>p?K4({val:e-(p+1),max:p,min:f}):e<f?K4({val:e+(p+1),max:p,min:f}):e}function Wce(e,p){let f;return p?function(...F){const K=this;f||(e.apply(K,F),f=!0,setTimeout(()=>f=!1,p))}:e}function Zce(e,p){let f;return function(...F){f&&clearTimeout(f),f=setTimeout(()=>{e(...F),f=null},p)}}function Xce(e="",p={}){return Object.entries(p).reduce((f,[F,K])=>f.replace(`{${F}}`,String(K)),e)}var Yce=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Wd))),p=t.inject("currentSlide",t.ref(0)),f=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Xce(e.i18n.itemXofY,{currentSlide:p.value+1,slidesCount:f.value}))}}),Kce=t.defineComponent({name:"Carousel",props:qE,setup(e,{slots:p,emit:f,expose:F}){var K;const k=t.ref(null),w=t.ref([]),n=t.ref(0),_=t.ref(0),h=t.reactive(Object.assign({},Wd));let r=Object.assign({},Wd),b;const y=t.ref((K=e.modelValue)!==null&&K!==void 0?K:0),g=t.ref(0),c=t.ref(0),a=t.ref(0),i=t.ref(0);let u,s;t.provide("config",h),t.provide("slidesCount",_),t.provide("currentSlide",y),t.provide("maxSlide",a),t.provide("minSlide",i),t.provide("slideWidth",n);function d(){b=Object.assign({},e.breakpoints),r=Object.assign(Object.assign(Object.assign({},r),e),{i18n:Object.assign(Object.assign({},r.i18n),e.i18n),breakpoints:void 0}),v(r)}function m(){if(!b||!Object.keys(b).length)return;const ie=Object.keys(b).map(oe=>Number(oe)).sort((oe,ge)=>+ge-+oe);let se=Object.assign({},r);ie.some(oe=>{const ge=window.matchMedia(`(min-width: ${oe}px)`).matches;return ge&&(se=Object.assign(Object.assign({},se),b[oe])),ge}),v(se)}function v(ie){Object.entries(ie).forEach(([se,oe])=>h[se]=oe)}const T=Zce(()=>{m(),A()},16);function A(){if(!k.value)return;const ie=k.value.getBoundingClientRect();n.value=ie.width/h.itemsToShow}function C(){_.value<=0||(c.value=Math.ceil((_.value-1)/2),a.value=Gce({config:h,slidesCount:_.value}),i.value=Hce({config:h,slidesCount:_.value}),h.wrapAround||(y.value=Y4({val:y.value,max:a.value,min:i.value})))}t.onMounted(()=>{t.nextTick(()=>A()),setTimeout(()=>A(),1e3),m(),U(),window.addEventListener("resize",T,{passive:!0}),f("init")}),t.onUnmounted(()=>{s&&clearTimeout(s),u&&clearInterval(u),window.removeEventListener("resize",T,{passive:!0})});let P=!1;const L={x:0,y:0},E={x:0,y:0},I=t.reactive({x:0,y:0}),M=t.ref(!1),S=t.ref(!1),B=()=>{M.value=!0},x=()=>{M.value=!1};function O(ie){["INPUT","TEXTAREA","SELECT"].includes(ie.target.tagName)||(P=ie.type==="touchstart",P||ie.preventDefault(),!(!P&&ie.button!==0||$.value)&&(L.x=P?ie.touches[0].clientX:ie.clientX,L.y=P?ie.touches[0].clientY:ie.clientY,document.addEventListener(P?"touchmove":"mousemove",D,!0),document.addEventListener(P?"touchend":"mouseup",N,!0)))}const D=Wce(ie=>{S.value=!0,E.x=P?ie.touches[0].clientX:ie.clientX,E.y=P?ie.touches[0].clientY:ie.clientY;const se=E.x-L.x,oe=E.y-L.y;I.y=oe,I.x=se},h.throttle);function N(){const ie=h.dir==="rtl"?-1:1,se=Math.sign(I.x)*.4,oe=Math.round(I.x/n.value+se)*ie;if(oe&&!P){const ge=_e=>{_e.stopPropagation(),window.removeEventListener("click",ge,!0)};window.addEventListener("click",ge,!0)}Y(y.value-oe),I.x=0,I.y=0,S.value=!1,document.removeEventListener(P?"touchmove":"mousemove",D,!0),document.removeEventListener(P?"touchend":"mouseup",N,!0)}function U(){!h.autoplay||h.autoplay<=0||(u=setInterval(()=>{h.pauseAutoplayOnHover&&M.value||ne()},h.autoplay))}function G(){u&&(clearInterval(u),u=null),U()}const $=t.ref(!1);function Y(ie){const se=h.wrapAround?ie:Y4({val:ie,max:a.value,min:i.value});y.value===se||$.value||(f("slide-start",{slidingToIndex:ie,currentSlideIndex:y.value,prevSlideIndex:g.value,slidesCount:_.value}),$.value=!0,g.value=y.value,y.value=se,s=setTimeout(()=>{if(h.wrapAround){const oe=K4({val:se,max:a.value,min:0});oe!==y.value&&(y.value=oe,f("loop",{currentSlideIndex:y.value,slidingToIndex:ie}))}f("update:modelValue",y.value),f("slide-end",{currentSlideIndex:y.value,prevSlideIndex:g.value,slidesCount:_.value}),$.value=!1,G()},h.transition))}function ne(){Y(y.value+h.itemsToScroll)}function H(){Y(y.value-h.itemsToScroll)}const J={slideTo:Y,next:ne,prev:H};t.provide("nav",J),t.provide("isSliding",$);const ee=t.computed(()=>qce({config:h,currentSlide:y.value,slidesCount:_.value}));t.provide("slidesToScroll",ee);const X=t.computed(()=>{const ie=h.dir==="rtl"?-1:1,se=ee.value*n.value*ie;return{transform:`translateX(${I.x-se}px)`,transition:`${$.value?h.transition:0}ms`,margin:h.wrapAround?`0 -${_.value*n.value}px`:"",width:"100%"}});function Q(){d(),m(),C(),A(),G()}Object.keys(qE).forEach(ie=>{["modelValue"].includes(ie)||t.watch(()=>e[ie],Q)}),t.watch(()=>e.modelValue,ie=>{ie!==y.value&&Y(Number(ie))}),t.watch(_,C),f("before-init"),d();const le={config:h,slidesCount:_,slideWidth:n,next:ne,prev:H,slideTo:Y,currentSlide:y,maxSlide:a,minSlide:i,middleSlide:c};F({updateBreakpointsConfigs:m,updateSlidesData:C,updateSlideWidth:A,initDefaultConfigs:d,restartCarousel:Q,slideTo:Y,next:ne,prev:H,nav:J,data:le});const ce=p.default||p.slides,de=p.addons,pe=t.reactive(le);return()=>{const ie=WE(ce==null?void 0:ce(pe)),se=(de==null?void 0:de(pe))||[];ie.forEach((ve,xe)=>ve.props.index=xe);let oe=ie;if(h.wrapAround){const ve=ie.map((Te,Se)=>t.cloneVNode(Te,{index:-ie.length+Se,isClone:!0,key:`clone-before-${Se}`})),xe=ie.map((Te,Se)=>t.cloneVNode(Te,{index:ie.length+Se,isClone:!0,key:`clone-after-${Se}`}));oe=[...ve,...ie,...xe]}w.value=ie,_.value=Math.max(ie.length,1);const ge=t.h("ol",{class:"carousel__track",style:X.value,onMousedownCapture:h.mouseDrag?O:null,onTouchstartPassiveCapture:h.touchDrag?O:null},oe),_e=t.h("div",{class:"carousel__viewport"},ge);return t.h("section",{ref:k,class:{carousel:!0,"is-sliding":$.value,"is-dragging":S.value,"is-hover":M.value,"carousel--rtl":h.dir==="rtl"},dir:h.dir,"aria-label":h.i18n.ariaGallery,tabindex:"0",onMouseenter:B,onMouseleave:x},[_e,se,t.h(Yce)])}}}),ZE;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(ZE||(ZE={}));var Jce=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:p}){const f=t.inject("config",t.reactive(Object.assign({},Wd))),F=t.inject("currentSlide",t.ref(0)),K=t.inject("slidesToScroll",t.ref(0)),k=t.inject("isSliding",t.ref(!1)),w=()=>e.index===F.value,n=()=>e.index===F.value-1,_=()=>e.index===F.value+1,h=()=>{const r=Math.floor(K.value),b=Math.ceil(K.value+f.itemsToShow-1);return e.index>=r&&e.index<=b};return()=>{var r;return t.h("li",{style:{width:`${100/f.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":h(),"carousel__slide--active":w(),"carousel__slide--prev":n(),"carousel__slide--next":_(),"carousel__slide--sliding":k.value},"aria-hidden":!h()},(r=p.default)===null||r===void 0?void 0:r.call(p))}}});const Qce=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},eue=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),tue={class:"gsc-carousel"},rue={key:0},nue=eue(()=>t.createElementVNode("div",null,"no hay",-1)),aue=[nue],iue={class:"gsc-carousel__2d__slides"},oue={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},sue=["fill"],lue={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},cue=["fill"],uue={class:"gsc-carousel__2d__navigation"},due={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hue=["stroke"],pue={key:1,class:"gsc-carousel__2d__navigation__pagination"},fue=["onClick"],mue={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gue=["stroke"],yue={__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(p=>p 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:p,emit:f}){const F=e;t.useCssVars(a=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const K=t.ref(null),k=t.ref({}),w=t.ref(0),n=t.ref(!1);t.watch(K,a=>{a&&n.value?(n.value=!1,_(F.items)):a&&a.slideTo&&a.slideTo(w.value)},{deep:!0}),t.watch(()=>F.currentItemIndex,a=>{w.value!==a&&y(a)}),t.watch(()=>F.defaultItemByIndex,a=>{w.value!==a&&y(a)}),t.watch(()=>F.items,a=>{K.value?_(a):n.value=!0},{immediate:!0});function _(a){a&&a.length&&K.value&&setTimeout(()=>{if(F.defaultItemByProp){const i=F.items.findIndex(u=>u[F.defaultItemByProp.propName]===F.defaultItemByProp.value);i!==-1?(w.value=i,k.value=a[i]):(w.value=0,k.value=a[0])}else w.value=F.defaultItemByIndex,k.value=a[F.defaultItemByIndex];K.value.slideTo&&K.value.slideTo(w.value),k.value&&w.value===0&&f("input",{selectedItem:k.value,selectedItemIndex:w.value})},500)}function h(){K.value&&K.value.next()}function r(){K.value&&K.value.prev()}function b(){K.value&&K.value.updateSlideWidth()}function y(a){K.value&&K.value.slideTo(a)}function g(a){K.value.slideTo(a)}function c(a){const i=a.slidingToIndex<0?F.items.length-1:a.slidingToIndex===F.items.length?0:a.slidingToIndex;w.value=i,k.value=F.items[i],f("update:currentItemIndex",i),f("input",{selectedItem:k.value,selectedItemIndex:w.value})}return p({prev:r,next:h,updateSlideWidth:b,slideTo:y}),(a,i)=>(t.openBlock(),t.createElementBlock("div",tue,[F.is3d?(t.openBlock(),t.createElementBlock("div",rue,aue)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",iue,[t.createVNode(t.unref(Kce),{ref_key:"carousel2d",ref:K,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:c},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,s)=>(t.openBlock(),t.createBlock(t.unref(Jce),{key:s},{default:t.withCtx(()=>[t.renderSlot(a.$slots,"default",{item:u},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]=u=>K.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",oue,[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,sue)]))],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]=u=>h())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",lue,[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,cue)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",uue,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:i[2]||(i[2]=u=>r())},[(t.openBlock(),t.createElementBlock("svg",due,[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:F.arrowsColor},null,8,hue)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",pue,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,s)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${s}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${F.navigationHeight}px`,width:`${w.value===s?F.navigationActiveWidth:F.navigationActiveWidth/2}px`,borderRadius:`${F.navigationBorderRadius}px`,backgroundColor:`${w.value===s?F.navigationActiveColor:F.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:d=>g(s)},null,12,fue))),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]=u=>K.value.next())},[(t.openBlock(),t.createElementBlock("svg",mue,[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:F.arrowsColor},null,8,gue)]))])):t.createCommentVNode("",!0)])],2))]))}},ab=Qce(yue,[["__scopeId","data-v-54620d25"]]),vue=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},J4={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))}}},XE=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},YE=J4.setup;J4.setup=YE?(e,p)=>(XE(),YE(e,p)):XE;const _ue=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),bue=["src"],xue={key:1,class:"text"},wue=["src"],kue={class:"stats"},Sue=_ue(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Tue={class:"numstats"},Cue={class:"leyend"};function Aue(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",null,[f.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",K.status&&f.typeOnOff&&"button-active"]),style:t.normalizeStyle([k.customStyle,K.status&&f.typeOnOff&&k.customActive]),onClick:p[0]||(p[0]=(...w)=>k.btnClick&&k.btnClick(...w))},[f.icon&&f.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:f.iconSize}),src:f.icon},null,12,bue)):t.createCommentVNode("",!0),f.textValue?(t.openBlock(),t.createElementBlock("div",xue,t.toDisplayString(f.textValue),1)):t.createCommentVNode("",!0),f.icon&&f.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:f.iconSize}),src:f.icon},null,12,wue)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),f.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:p[1]||(p[1]=(...w)=>k.btnClick&&k.btnClick(...w))},[t.createElementVNode("div",kue,[Sue,t.createElementVNode("div",Tue,t.toDisplayString(f.textStat),1)]),t.createElementVNode("div",Cue,t.toDisplayString(f.textCategory),1)])):t.createCommentVNode("",!0)])}const Eue=vue(J4,[["render",Aue],["__scopeId","data-v-fb269a1e"]]),Mue={class:"gsc-dropdown__main-container__item-selected"},Iue=["height","width"],Pue=["stroke"],Lue={class:"gsc-dropdown__items-container"},Bue=["onClick"],Oue={key:0,class:"gsc-dropdown__items-footer"},Q4={__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(p=>p in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},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},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:p}){const f=e,F=t.ref({}),K=t.ref(null),k=t.ref(f.isMultipleOption?-1:0),w=t.ref(!1);t.watch(()=>f.items,(g,c)=>{if(!f.modelValue&&(!f.onlyFirstTime||!c||!c.length)&&g&&g.length){if(f.defaultItemByProp){const a=f.items.findIndex(i=>i[f.defaultItemByProp.propName]===f.defaultItemByProp.value);a!==-1?(k.value=a,F.value=g[a]):(k.value=0,F.value=g[0])}else F.value=g[f.defaultItemByIndex];p("input",F.value)}},{immediate:!0}),t.watch(()=>f.modelValue,g=>{if(g){const c=f.items.findIndex(a=>typeof g=="object"?JSON.stringify(a)===JSON.stringify(g):a===g);c!==-1&&(k.value=c,F.value=f.items[c],p("update:modelValue",F.value))}},{immediate:!0});const n=t.computed(()=>({height:f.height,width:f.width,backgroundColor:f.backgroundColor,borderRadius:`${f.borderRadius}px`,border:`${f.borderType} ${f.borderWidth}px ${f.borderColor}`,color:f.color,"--hover-background-color":f.hoverBackgroundColor,"--list-item-padding":f.listItemPadding,"--list-background-color":f.listBackgroundColor,"--list-height":f.listHeight,"--list-item-selected-color":f.listItemSelectedColor,"--list-item-selected-background-color":f.listItemSelectedBackgroundColor,"--list-item-color":f.listItemColor,"--list-border-radius":`${f.listBorderRadius}`,"--list-border-color":f.listBorderColor,"--list-width":f.isListSameWidth?f.width:"fit-content","--list-border-width":`${f.listBorderWidth}px`,"--footer-border":`${f.footerBorderWidth}px solid ${f.footerBorderColor}`,"--dropdown-opacity":f.isDisabled?"0.5":"1","--dropdown-cursor":f.isDisabled?"not-allowed":"pointer","--dropdown-font-size":f.fontSize?f.fontSize:"14px"})),_=t.computed(()=>({height:`${f.arrowHeight}px`,width:`${f.arrowWidth}px`}));function h(){f.isDisabled||(w.value=!w.value)}function r(g){K.value&&!K.value.contains(g.target)&&(w.value=!1)}function b(g,c){f.isMultipleOption?k.value=-1:(k.value=c,w.value=!1),F.value=g,p("input",F.value),p("update:modelValue",F.value)}function y(){w.value=!1,p("click-ready")}return t.onMounted(()=>{document.addEventListener("click",r)}),t.onBeforeMount(()=>{document.removeEventListener("click",r)}),(g,c)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:K,class:"gsc-dropdown",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:h},[t.createElementVNode("div",Mue,[t.renderSlot(g.$slots,"default",{selectedItem:F.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":w.value}]),style:t.normalizeStyle(_.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,Pue)],8,Iue))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Lue,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${f.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(a,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:i===k.value}]),key:i,onClick:u=>b(a,i)},[t.renderSlot(g.$slots,"availableItem",{item:a})],10,Bue))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",Oue,[t.createVNode(t.unref(Eue),{"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,w.value]])]),_:3})],4))}};let KE=null;const zue={components:{LineupField:ole,LineupRecentItem:vle,LineupMainHeader:jle,LineupFilter:cce,MatchDetails:jE,GscSwitchComponent:Tv,GSCCarousel:ab,GSCDropdown:Q4},props:{game:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Recientes"},componentWidth:{type:Number,default:767,validator(e){return e>0}},socket:{type:Object,default:()=>{}}},data(){return{selectedIndexOption:0,rivalHomeImg:"",rivalVisitImg:"",rivalHomeAbrev:"",updatehistoricos:0,rivalVisitAbrev:"",selectOptMenuheader:"Recientes",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",urlGames:"https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/",url:"https://tj4cepyjc4.execute-api.us-west-2.amazonaws.com/prod/lineups/",urlMXM:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",retries:3,teamActive:"home",subsActive:!1,playersHome:[],gamesContainerWidth:0,playersAway:[],subsTitle:!1,uniformHome:"",uniformHomeG:"",uniformAway:"",uniformAwayG:"",dataPlayersHome:[],dataPlayersAway:[],homeTeamLogo:"",awayTeamLogo:"",homeTeamName:"",auxISsection:0,awayTeamName:"",homeTeamAbrev:"",awayTeamAbrev:"",home_team_id:0,updateComponentAway:0,away_team_id:0,substitutionModal:{min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},isInsideClick:!1,homeTeam:{},headerInfoHistoricItemGame:{},visitingTeam:{},gameForAnalysis:{},movil:!1,auxProbablesIDGameHome:0,auxProbablesIDGameAway:0,positions:[{name:"Portero"},{name:"Defensa central"},{name:"Lateral por izquierda"},{name:"Lateral por derecha"},{name:"Volante por izquierda"},{name:"Volante por derecha"},{name:"Volante defensivo"},{name:"Volante ofensivo"},{name:"Delantero"},{name:"Desconocida"}],vDeleteFilter:!1,gameInfoheader:{},gamesHistoric:[],gamesRecientes:[],matchdaysPerTeam:[],lastGetGame:0,probablyTeam:{acronym:"NEX",img:Vse},localDetails:[],postmatchDescription:"Clausura 2018 I JOR 5 I CHI - ATL 12",showDetails:!1,foreignDetails:[],players:[],filterObject:{selectedFilterResults:["win","draw","lose"],selectedFilterTeam:["visit","local"]},updateCarouselGames:0,teamSelect:"",matchdaysFiltersUpdate:[],gamesFiltersUpdate:[]}},computed:{matchdaysFinal(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==1&&e.push(this.matchdaysFiltersUpdate[p]);for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==3&&e.push(this.matchdaysFiltersUpdate[p])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==1&&e.push(this.matchdaysFiltersUpdate[p]);for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==2&&e.push(this.matchdaysFiltersUpdate[p])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==3&&e.push(this.matchdaysFiltersUpdate[p]);for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==2&&e.push(this.matchdaysFiltersUpdate[p])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==1&&e.push(this.matchdaysFiltersUpdate[p]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==2&&e.push(this.matchdaysFiltersUpdate[p]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==3&&e.push(this.matchdaysFiltersUpdate[p])}else for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)e.push(this.matchdaysFiltersUpdate[p]);else for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)e.push(this.matchdaysFiltersUpdate[p]);return e.sort((p,f)=>f.id-p.id),e},gameRecientesFilter(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let p=0;p<this.gamesFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==1||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==1)&&e.push(this.gamesFiltersUpdate[p]);for(let p=0;p<this.gamesFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==3||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==3)&&e.push(this.gamesFiltersUpdate[p])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let p=0;p<this.gamesFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==1||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==1)&&e.push(this.gamesFiltersUpdate[p]);for(let p=0;p<this.gamesFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==2||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==2)&&e.push(this.gamesFiltersUpdate[p])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let p=0;p<this.gamesFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==3||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==3)&&e.push(this.gamesFiltersUpdate[p]);for(let p=0;p<this.gamesFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==2||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==2)&&e.push(this.gamesFiltersUpdate[p])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==1||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==1)&&e.push(this.gamesFiltersUpdate[p]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==2||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==2)&&e.push(this.gamesFiltersUpdate[p]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==3||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==3)&&e.push(this.gamesFiltersUpdate[p])}else for(let p=0;p<this.gamesFiltersUpdate.length;p++)e.push(this.gamesFiltersUpdate[p]);else for(let p=0;p<this.gamesFiltersUpdate.length;p++)e.push(this.gamesFiltersUpdate[p]);return e.sort((p,f)=>p.matchday_id-f.matchday_id),e},matchHomeProbables(){return this.matchdaysPerTeam[this.gameInfoheader.home_team_abbreviation]},matchAwayProbables(){return this.matchdaysPerTeam[this.gameInfoheader.home_team_abbreviation]},sizeBrowser(){return this.gamesContainerWidth},numPlayer(){return Number(this.playersAway.length)+Number(this.playersHome.length)},benchFillHome(){return this.playersHome.length<this.playersAway.length?this.playersAway.length-this.playersHome.length:0},benchFillAway(){return this.playersAway.length<this.playersHome.length?this.playersHome.length-this.playersAway.length:0},mobileClass(){return this.calendarResizeObserver<768?"break-point-3":""}},async mounted(){if(document.addEventListener("click",this.handleOutsideClick),setTimeout(()=>{this.setUpResizeObserver()},500),this.game||this.$route.params.gameId)try{this.cleaneData(),this.getLineUp(this.game.game_id),await this.getHeaderInfo(this.game),this.teamSelect=this.gameInfoheader.home_team_abbreviation,await this.matchFilter(),this.selectedOption==="Postmatch"&&setTimeout(()=>{this.getMinutesData(this.gameInfoheader.minutes)},600)}catch(e){throw new Error(e)}},beforeDestroy(){document.removeEventListener("click",this.handleOutsideClick)},watch:{selectedOption:{immediate:!1,async handler(e){this.cleaneData(),this.auxProbablesIDGameHome=0,this.auxProbablesIDGameAway=0,e==="Postmatch"&&await this.getLineUp(this.game.game_id),e==="Probables"&&await this.getHeaderInfo(this.game),e==="Recientes"&&(this.auxISsection=1,this.teamSelect=this.gameInfoheader.home_team_abbreviation,await this.matchFilter(),await this.getLineUp(this.gameRecientesFilter[0].id)),e==="Historicos"&&(this.updatehistoricos+=1,this.gamesHistoric&&this.gamesHistoric.length>0&&this.gamesHistoric[0]&&this.gamesHistoric[0].game&&(this.getLineUp(this.gamesHistoric[0].game),this.getMinutesData(this.gamesHistoric[0].objgame.minutes)))}},"socket.connected":{immediate:!0,handler(e){e&&this.getDataSocket()}},game:{immediate:!0,handler:async function(e){try{e!==null&&e!==""&&typeof e>"u"&&(this.cleaneData(),await this.gameDataInfo(e),await this.getHeaderInfo(e),this.selectedOption=="Recientes"&&(this.teamSelect=this.gameInfoheader.home_team_abbreviation,await this.matchFilter(),await this.getLineUp(this.gameRecientesFilter[0].id)),this.selectedOption=="Historicos"&&(this.updatehistoricos+=1,this.gamesHistoric&&this.gamesHistoric.length>0&&this.gamesHistoric[0]&&this.gamesHistoric[0].game&&(this.getLineUp(this.gamesHistoric[0].game),this.getMinutesData(this.gamesHistoric[0].objgame.minutes))))}catch(p){throw new Error(p)}}}},methods:{clickOnDeleteFilter(){this.vDeleteFilter=!0,setTimeout(()=>{this.vDeleteFilter=!1},200)},clickready(){},handleInsideClick(){this.isInsideClick=!0},handleOutsideClick(e){this.$refs.targetElement&&!this.$refs.targetElement.contains(e.target)&&(this.isInsideClick=!1)},remplazarMxJor(e){return e.replace("M","JOR ")},changeSwitchRadio(e){this.auxISsection=1,typeof e!="object"&&(this.teamSelect=e,this.matchFilter(),setTimeout(()=>{this.keyUpdate+=1,this.updateCarouselGames+=1},600))},matchFilter(){var e=[],p=[];if(Object.keys(this.filterObject).length>0){if(Object.keys(this.filterObject.selectedFilterTeam).length!=2)for(let f=0;f<this.gamesRecientes[this.teamSelect].length;f++)this.filterObject.selectedFilterTeam[0]=="local"?this.gamesRecientes[this.teamSelect][f].home_team_abbreviation==this.teamSelect&&(e.push({name:this.gamesRecientes[this.teamSelect][f].matchday_abbreviation.replace("M","Jornada "),id:this.gamesRecientes[this.teamSelect][f].matchday_id,match_result:this.gamesRecientes[this.teamSelect][f].home_match_result}),p.push(this.gamesRecientes[this.teamSelect][f])):this.gamesRecientes[this.teamSelect][f].away_team_abbreviation==this.teamSelect&&(e.push({name:this.gamesRecientes[this.teamSelect][f].matchday_abbreviation.replace("M","Jornada "),id:this.gamesRecientes[this.teamSelect][f].matchday_id,match_result:this.gamesRecientes[this.teamSelect][f].visiting_match_result}),p.push(this.gamesRecientes[this.teamSelect][f]));else if(this.gamesRecientes[this.teamSelect])for(let f=0;f<this.gamesRecientes[this.teamSelect].length;f++)e.push({name:this.gamesRecientes[this.teamSelect][f].matchday_abbreviation.replace("M","Jornada "),id:this.gamesRecientes[this.teamSelect][f].matchday_id,match_result:this.gamesRecientes[this.teamSelect][f].home_team_abbreviation==this.teamSelect?this.gamesRecientes[this.teamSelect][f].home_match_result:this.gamesRecientes[this.teamSelect][f].visiting_match_result}),p.push(this.gamesRecientes[this.teamSelect][f])}else if(this.gamesRecientes[this.teamSelect])for(let f=0;f<this.gamesRecientes[this.teamSelect].length;f++)e.push({name:this.getRound(this.gamesRecientes[this.teamSelect][f].matchday_abbreviation),id:this.gamesRecientes[this.teamSelect][f].matchday_id,match_result:this.gamesRecientes[this.teamSelect][f].home_team_abbreviation==this.teamSelect?this.gamesRecientes[this.teamSelect][f].home_match_result:this.gamesRecientes[this.teamSelect][f].visiting_match_result}),p.push(this.gamesRecientes[this.teamSelect][f]);this.gamesFiltersUpdate=p,this.matchdaysFiltersUpdate=e},changeFiltersModal(e){this.auxISsection=1,this.filterObject=e,this.matchFilter(),setTimeout(()=>{this.keyUpdate+=1,this.updateCarouselGames+=1},600)},changeDropdownVisit(e){if(this.auxProbablesIDGameAway!=e.id){this.auxProbablesIDGameAway=e.id;const p=this.gamesRecientes[this.gameInfoheader.away_team_abbreviation].findIndex(f=>f.matchday_id===e.id);this.rivalVisitAbrev=this.gameInfoheader.away_team_abbreviation==this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][p].home_team_abbreviation?this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][p].away_team_abbreviation:this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][p].home_team_abbreviation,this.rivalVisitImg=this.gameInfoheader.away_team_abbreviation==this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][p].home_team_abbreviation?"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][p].away_team+".png":"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][p].home_team+".png",this.cleaneDataProbablesAway(),this.getLineupDataProbablesAway(this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][p].id)}},changeDropdownLocal(e){if(this.auxProbablesIDGameHome!=e.id){this.auxProbablesIDGameHome=e.id;const p=this.gamesRecientes[this.gameInfoheader.home_team_abbreviation].findIndex(f=>f.matchday_id===e.id);this.rivalHomeAbrev=this.gameInfoheader.home_team_abbreviation==this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][p].away_team_abbreviation?this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][p].home_team_abbreviation:this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][p].away_team_abbreviation,this.rivalHomeImg=this.gameInfoheader.home_team_abbreviation==this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][p].away_team_abbreviation?"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][p].home_team+".png":"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][p].away_team+".png",this.cleaneDataProbablesHome(),this.getLineupDataProbablesHome(this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][p].id)}},async getLineupProbables(e){var p={season_id:e.season_id,game_id:e.id};this.lastGetGame!=p.game_id&&(this.cleaneData(),this.getLineUp(p.game_id)),this.lastGetGame=p.game_id},async changeCarouselItemH(e){this.headerInfoHistoricItemGame=e.selectedItem.objgame;var p={season_id:e.selectedItem.season,game_id:e.selectedItem.game};this.cleaneData(),this.getMinutesData(e.selectedItem.objgame.minutes),this.getLineUp(p.game_id)},getMinutesData(e){if(this.localDetails=[],this.foreignDetails=[],e){if(e.home_goals_minutes)for(let p=0;p<e.home_goals_minutes.length;p++)this.localDetails.push({description:e.home_goals_minutes[p],icon:"goal"});if(e.visiting_goals_minutes)for(let p=0;p<e.visiting_goals_minutes.length;p++)this.foreignDetails.push({description:e.visiting_goals_minutes[p],icon:"goal"});if(e.home_yellow_cards_minutes)for(let p=0;p<e.home_yellow_cards_minutes.length;p++)this.localDetails.push({description:e.home_yellow_cards_minutes[p],icon:"yellow-card"});if(e.away_yellow_cards_minutes)for(let p=0;p<e.away_yellow_cards_minutes.length;p++)this.foreignDetails.push({description:e.away_yellow_cards_minutes[p],icon:"yellow-card"});if(e.home_red_cards_minutes)for(let p=0;p<e.home_red_cards_minutes.length;p++)this.localDetails.push({description:e.home_red_cards_minutes[p],icon:"red-card"});if(e.away_red_cards_minutes)for(let p=0;p<e.away_red_cards_minutes.length;p++)this.foreignDetails.push({description:e.away_red_cards_minutes[p],icon:"red-card"})}},changeDropdown(e){if(this.gameRecientesFilter&&this.gameRecientesFilter.length>0)if(this.auxISsection==1)this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id};else{const p=this.gameRecientesFilter.findIndex(f=>f.matchday_id==e.id);p!=-1&&(this.selectedIndexOption=p),this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[p].matchday_id}}},clickOnValueFilter(){this.auxISsection=0},clickOnValueCarrousel(){this.auxISsection=0},async changeCarouselItem(e){setTimeout(()=>{if(this.gameRecientesFilter&&this.gameRecientesFilter.length>0&&e){e.selectedItem===void 0&&(e.selectedItem=this.gameRecientesFilter[this.gameRecientesFilter.length-1],e.selectedItemIndex=this.gameRecientesFilter.length-1);var p={};this.auxISsection==1?p={season_id:this.gameRecientesFilter[this.gameRecientesFilter.length-1].season_id,game_id:this.gameRecientesFilter[this.gameRecientesFilter.length-1].id}:p={season_id:e.selectedItem.season_id,game_id:e.selectedItem.id},this.lastGetGame!=p.game_id&&(this.cleaneData(),this.getLineUp(p.game_id)),this.auxISsection==1?(this.getMinutesData(this.gameRecientesFilter[this.gameRecientesFilter.length-1].minutes),this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].minutes.matchday_id},this.lastGetGame=p.game_id):(this.getMinutesData(e.selectedItem.minutes),this.defaultDropItem={propName:"id",value:e.selectedItem.matchday_id},this.lastGetGame=p.game_id,this.selectedIndexOption=e.selectedItemIndex),this.keyUpdate+=1}},200)},async changeCarouselItemRecent(e){if(e.selectedItem){var p={season_id:e.selectedItem.season_id,game_id:e.selectedItem.id};this.lastGetGame!=p.game_id&&(this.cleaneData(),this.getLineUp(p.game_id)),this.lastGetGame=p.game_id}},getRound(e){let p=e.replace("M","Jornada ");return p=p.replace("PO1","CFI"),p=p.replace("PO2","CFV"),p=p.replace("PO3","SFI"),p=p.replace("PO4","SFV"),p=p.replace("PO5","FI"),p=p.replace("PO6","FV"),p},getRoundH(e){let p=e.replace("M","J");return p=p.replace("PO1","CFI"),p=p.replace("PO2","CFV"),p=p.replace("PO3","SFI"),p=p.replace("PO4","SFV"),p=p.replace("PO5","FI"),p=p.replace("PO6","FV"),p},async getHeaderInfo(e){const p=await Xh.create({headers:{Authorization:`${this.tokenPremium}`}}).get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/seasons/"+e.season_id+"/games/"+e.game_id+"/lineups");if(this.gameInfoheader=p.data.game,p.data.games_historic&&p.data.games_historic.length>0)for(let f=0;f<p.data.games_historic.length;f++)this.gamesHistoric.push({objgame:p.data.games_historic[f],game:p.data.games_historic[f].id,season:p.data.games_historic[f].season_id,description:p.data.games_historic[f].season_name+" | "+this.getRoundH(p.data.games_historic[f].matchday_abbreviation)+" | "+p.data.games_historic[f].home_team_abbreviation+" - "+p.data.games_historic[f].away_team_abbreviation});if(this.gamesRecientes[p.data.game.home_team_abbreviation]=[],this.gamesRecientes[p.data.game.away_team_abbreviation]=[],this.matchdaysPerTeam[p.data.game.home_team_abbreviation]=[],this.matchdaysPerTeam[p.data.game.away_team_abbreviation]=[],p.data.home_team_games_recent&&p.data.home_team_games_recent.length>0)for(let f=0;f<p.data.home_team_games_recent.length;f++)this.gamesRecientes[p.data.game.home_team_abbreviation].push(p.data.home_team_games_recent[f]),this.matchdaysPerTeam[p.data.game.home_team_abbreviation].push({name:this.getRound(p.data.home_team_games_recent[f].matchday_abbreviation),id:p.data.home_team_games_recent[f].matchday_id});if(p.data.away_team_games_recent&&p.data.away_team_games_recent.length>0)for(let f=0;f<p.data.away_team_games_recent.length;f++)this.gamesRecientes[p.data.game.away_team_abbreviation].push(p.data.away_team_games_recent[f]),this.matchdaysPerTeam[p.data.game.away_team_abbreviation].push({name:p.data.away_team_games_recent[f].matchday_abbreviation.replace("M","Jornada "),id:p.data.away_team_games_recent[f].matchday_id})},clickOnSelectOption(e){this.selectOptMenuheader=e},async gameDataInfo(e){const p=await Xh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlGames+e.season_id+"/games/"+e.game_id);this.homeTeam=p.data.teams[0],this.visitingTeam=p.data.teams[1];const f=p.data.games.find(F=>F.game_id===Number(F.game_id));this.gameForAnalysis=f},cleaneDataProbablesHome(){this.lastGetGame=0,this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.dataPlayersHome=[],this.players=this.players.filter(e=>e.team_id!==this.gameInfoheader.home_team),this.homeTeamLogo="",this.homeTeamName="",this.homeTeamAbrev="",this.home_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneDataProbablesAway(){this.lastGetGame=0,this.retries=3,this.teamActive="home",this.subsActive=!1,this.gamesContainerWidth=0,this.playersAway=[],this.subsTitle=!1,this.uniformAway="",this.uniformAwayG="",this.dataPlayersAway=[],this.awayTeamLogo="",this.awayTeamName="",this.players=this.players.filter(e=>e.team_id!==this.gameInfoheader.away_team),this.awayTeamAbrev="",this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneData(){this.lastGetGame=0,this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.playersAway=[],this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.uniformAway="",this.uniformAwayG="",this.dataPlayersHome=[],this.dataPlayersAway=[],this.homeTeamLogo="",this.awayTeamLogo="",this.homeTeamName="",this.awayTeamName="",this.homeTeamAbrev="",this.awayTeamAbrev="",this.home_team_id=0,this.players=[],this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},getDataSocket(){X1("lineups.game."+this.game.game_id,this.socket),X1("mxm.game."+this.game.game_id,this.socket),X1("lineups.bench.game."+this.game.game_id,this.socket)},resetPlayUpdate(e,p,f,F){if(e=="Substitution")if(p=="Home"){var K=this.playersHome[f].substitutionDataID.split("@"),k=this.playersHome.findIndex(r=>r.playerId==K[1]),w=this.playersHome.findIndex(r=>r.playerId==K[2]);k!=-1&&(this.playersHome[k].substitutionOut=!1,this.playersHome[k].substitutionMin="",this.playersHome[k].substitutionDataID="",this.playersHome[k].idSubstitution=0),w!=-1&&(this.playersHome[w].substitutionIn=!1,this.playersHome[w].substitutionMin="",this.playersHome[w].substitutionDataID="",this.playersHome[w].idSubstitution=0)}else{var n=this.playersAway[f].substitutionDataID.split("@"),_=this.playersAway.findIndex(r=>r.playerId==n[1]),h=this.playersAway.findIndex(r=>r.playerId==n[2]);k!=-1&&(this.playersAway[_].substitutionOut=!1,this.playersAway[_].substitutionMin="",this.playersAway[_].substitutionDataID="",this.playersAway[_].idSubstitution=0),h!=-1&&(this.playersAway[h].substitutionIn=!1,this.playersAway[h].substitutionMin="",this.playersAway[h].substitutionDataID="",this.playersAway[h].idSubstitution=0)}e=="YellowCard"&&(p=="Home"?(this.playersHome[f].yellowcards=0,this.playersHome[f].yellowcardsMin=0,this.playersHome[f].idyellowcards=0):(this.playersAway[f].yellowcards=0,this.playersAway[f].yellowcardsMin=0,this.playersAway[f].idyellowcards=0)),e=="RedCard"&&(p=="Home"?(this.playersHome[f].redcards=0,this.playersHome[f].redcardsMin=0,this.playersHome[f].idredcards=0):(this.playersAway[f].redcards=0,this.playersAway[f].redcardsMin=0,this.playersAway[f].idredcards=0)),e=="Goals"&&(p=="Home"?(this.playersHome[F].goals=this.playersHome[F].goals-1,this.playersHome[F].goalsMin.splice(f,1),this.playersHome[F].idsGoals.splice(f,1)):(this.playersAway[F].goals=this.playersAway[F].goals-1,this.playersAway[F].goalsMin.splice(f,1),this.playersAway[F].idsGoals.splice(f,1)))},setUpResizeObserver(){if(window.ResizeObserver)KE=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),KE.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(e){try{const g=await Xh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlMXM+e);for(let c=0;c<g.data.plays.length;c++){if(g.data.plays[c].event_type_id==3){if(g.data.plays[c].team_id==this.home_team_id){if(this.players.length>0){var p=g.data.plays[c].player_id.split("@"),f=this.players.findIndex(a=>a.playerId==p[0]),F=this.players.findIndex(a=>a.playerId==p[1]);f!=-1&&(this.players[f].idSubstitution=g.data.plays[c].play_id,this.players[f].substitutionOut=!0,this.players[f].substitutionMin=g.data.plays[c].minute,this.players[f].substitutionDataID=g.data.plays[c].team_id+"@"+g.data.plays[c].player_id),F!=-1&&(this.players[F].idSubstitution=g.data.plays[c].play_id,this.players[F].substitutionIn=!0,this.players[F].substitutionMin=g.data.plays[c].minute,this.players[F].substitutionDataID=g.data.plays[c].team_id+"@"+g.data.plays[c].player_id)}}else if(this.players.length>0){var K=g.data.plays[c].player_id.split("@"),k=this.players.findIndex(a=>a.playerId==K[0]),w=this.players.findIndex(a=>a.playerId==K[1]);k!=-1&&(this.players[k].idSubstitution=g.data.plays[c].play_id,this.players[k].substitutionOut=!0,this.players[k].substitutionMin=g.data.plays[c].minute,this.players[k].substitutionDataID=g.data.plays[c].team_id+"@"+g.data.plays[c].player_id),w!=-1&&(this.players[w].idSubstitution=g.data.plays[c].play_id,this.players[w].substitutionIn=!0,this.players[w].substitutionMin=g.data.plays[c].minute,this.players[w].substitutionDataID=g.data.plays[c].team_id+"@"+g.data.plays[c].player_id)}}if(g.data.plays[c].event_type_id==1){if(g.data.plays[c].team_id==this.home_team_id){if(this.players.length>0){var n=this.players.findIndex(a=>a.playerId==g.data.plays[c].player_id);n!=-1&&(this.players[n].goals+=1,this.players[n].goalsMin.push(g.data.plays[c].minute),this.players[n].idsGoals.push(g.data.plays[c].play_id))}}else if(this.players.length>0){var _=this.players.findIndex(a=>a.playerId==g.data.plays[c].player_id);_!=-1&&(this.players[_].goals+=1,this.players[_].goalsMin.push(g.data.plays[c].minute),this.players[_].idsGoals.push(g.data.plays[c].play_id))}}if(g.data.plays[c].event_type_id==2){if(g.data.plays[c].category_id==8){if(g.data.plays[c].team_id==this.home_team_id){if(this.players.length>0){var h=this.players.findIndex(a=>a.playerId==g.data.plays[c].player_id);h!=-1&&(this.players[h].yellowcards+=1,this.players[h].yellowcardsMin=g.data.plays[c].minute,this.players[h].idyellowcards=g.data.plays[c].play_id)}}else if(this.players.length>0){var r=this.players.findIndex(a=>a.playerId==g.data.plays[c].player_id);r!=-1&&(this.players[r].yellowcards+=1,this.players[r].yellowcardsMin=g.data.plays[c].minute,this.players[r].idyellowcards=g.data.plays[c].play_id)}}if(g.data.plays[c].category_id==9){if(g.data.plays[c].team_id==this.home_team_id){if(this.players.length>0){var b=this.players.findIndex(a=>a.playerId==g.data.plays[c].player_id);b!=-1&&(this.players[b].redcards+=1,this.players[b].redcardsMin=g.data.plays[c].minute,this.players[b].idredcards=g.data.plays[c].play_id)}}else if(this.players.length>0){var y=this.players.findIndex(a=>a.playerId==g.data.plays[c].player_id);y!=-1&&(this.players[y].redcards+=1,this.players[y].redcardsMin=g.data.plays[c].minute,this.players[y].idredcards=g.data.plays[c].play_id)}}}}}catch(g){return Promise.reject(g)}},async getLineupDataProbablesAway(e){try{const _=await Xh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!_||!_.data)throw new Error("There is not lineups for this game.");if(_.data.home_team.team_id==this.gameInfoheader.away_team){for(let h=0;h<_.data.home_team.starting_lineup[0].lineup.length;h++){this.away_team_id=_.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.home_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.home_team.team_id+"_g.svg","away",0);var p=_.data.home_team.starting_lineup[0].lineup[h].player_name.split(","),f=p[0].split(" "),F=p[1].trim().split(" "),K="";f.length==2||f.length==1?f[0].length<4?K=f[0]+" "+f[1]:K=f[0]:f.length==3?K=f[0]+" "+f[1]:f.length==4&&(K=f[1]+" "+f[2]+" "+f[3]);var k=F[F.length-1]!=""?F[F.length-1].charAt(0):F[F.length-2]?F[F.length-2].charAt(0):"";K=K.replace(",","");var w=_.data.home_team.starting_lineup[0].lineup[h].x;w=Math.abs(w-100);var n=100-(100-w)*50/100;n=n*.9,this.players.push({team_id:_.data.home_team.team_id,number:_.data.home_team.starting_lineup[0].lineup[h].jersey_number,isFirstTeam:!1,name:k+". "+K,photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.home_team.starting_lineup[0].lineup[h].player_id+".png",posX:n+7,posY:_.data.home_team.starting_lineup[0].lineup[h].y,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.home_team.team_id+".png"}this.playersAway.sort((h,r)=>h.position_id>r.position_id?1:r.position_id>h.position_id?-1:0)}if(_.data.away_team.team_id==this.gameInfoheader.away_team)for(let h=0;h<_.data.away_team.starting_lineup[0].lineup.length;h++){this.away_team_id=_.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.away_team.team_id+"_g.svg","away",0);var p=_.data.away_team.starting_lineup[0].lineup[h].player_name.split(","),f=p[0].split(" "),F=p[1].trim().split(" "),K="";f.length==2||f.length==1?f[0].length<4?K=f[0]+" "+f[1]:K=f[0]:f.length==3?K=f[0]+" "+f[1]:f.length==4&&(K=f[1]+" "+f[2]+" "+f[3]);var k=F[F.length-1]!=""?F[F.length-1].charAt(0):F[F.length-2]?F[F.length-2].charAt(0):"";K=K.replace(",","");var w=_.data.away_team.starting_lineup[0].lineup[h].x,n=100-(100-w)*50/100;n=n*.9,this.players.push({team_id:_.data.away_team.team_id,number:_.data.away_team.starting_lineup[0].lineup[h].jersey_number,isFirstTeam:!1,name:k+". "+K,photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.away_team.starting_lineup[0].lineup[h].player_id+".png",posX:100-(100-_.data.away_team.starting_lineup[0].lineup[h].x)*50/100,posY:_.data.away_team.starting_lineup[0].lineup[h].y,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.away_team.team_id+".png"}}catch(_){return Promise.reject(_)}},async getLineupDataProbablesHome(e){try{const r=await Xh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!r||!r.data)throw new Error("There is not lineups for this game.");if(r.data.home_team.team_id==this.gameInfoheader.home_team){this.dataPlayersHome=r.data.home_team.players,r.data.home_team.starting_lineup[0].lineup.sort((b,y)=>b.position_id>y.position_id?1:y.position_id>b.position_id?-1:0);for(let b=0;b<r.data.home_team.starting_lineup[0].lineup.length;b++){this.home_team_id=r.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+r.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+r.data.home_team.team_id+"_g.svg","home",0);var p=r.data.home_team.starting_lineup[0].lineup[b].player_name.split(","),f=p[0].split(" "),F=p[1].trim().split(" "),K="";f.length==2||f.length==1?f[0].length<4?K=f[0]+" "+f[1]:K=f[0]:f.length==3?K=f[0]+" "+f[1]:f.length==4&&(K=f[1]+" "+f[2]+" "+f[3]);var k=F[F.length-1]!=""?F[F.length-1].charAt(0):F[F.length-2]?F[F.length-2].charAt(0):"";K=K.replace(",","");var w=r.data.home_team.starting_lineup[0].lineup[b].x,n=w*50/100;this.players.push({team_id:r.data.home_team.team_id,number:r.data.home_team.starting_lineup[0].lineup[b].jersey_number,isFirstTeam:!0,name:k+". "+K,photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+r.data.home_team.starting_lineup[0].lineup[b].player_id+".png",posX:r.data.home_team.starting_lineup[0].lineup[b].x*50/100,posY:r.data.home_team.starting_lineup[0].lineup[b].y,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+r.data.home_team.team_id+".png"}}if(r.data.away_team.team_id==this.gameInfoheader.home_team){this.dataPlayersHome=r.data.away_team.players,r.data.away_team.starting_lineup[0].lineup.sort((b,y)=>b.position_id>y.position_id?1:y.position_id>b.position_id?-1:0);for(let b=0;b<r.data.away_team.starting_lineup[0].lineup.length;b++){this.home_team_id=r.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+r.data.away_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+r.data.away_team.team_id+"_g.svg","home",0);var p=r.data.away_team.starting_lineup[0].lineup[b].player_name.split(","),f=p[0].split(" "),F=p[1].trim().split(" "),K="";f.length==2||f.length==1?f[0].length<4?K=f[0]+" "+f[1]:K=f[0]:f.length==3?K=f[0]+" "+f[1]:f.length==4&&(K=f[1]+" "+f[2]+" "+f[3]);var k=F[F.length-1]!=""?F[F.length-1].charAt(0):F[F.length-2]?F[F.length-2].charAt(0):"";K=K.replace(",","");var _=r.data.away_team.starting_lineup[0].lineup[b].x;_=Math.abs(_-100);var n=_*50/100,h=r.data.away_team.starting_lineup[0].lineup[b].y;h=Math.abs(h-100),this.players.push({team_id:r.data.away_team.team_id,number:r.data.away_team.starting_lineup[0].lineup[b].jersey_number,isFirstTeam:!0,name:k+". "+K,photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+r.data.away_team.starting_lineup[0].lineup[b].player_id+".png",posX:n-2,posY:h-9,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+r.data.away_team.team_id+".png"}}}catch(r){return Promise.reject(r)}},async getLineUp(e){if(Rse(),!this.playersHome.length)try{const O=await Xh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!O||!O.data)throw new Error("There is not lineups for this game.");this.players=[],this.dataPlayersHome=O.data.home_team.players,this.dataPlayersAway=O.data.away_team.players,O.data.home_team.starting_lineup[0].lineup.sort((D,N)=>D.position_id>N.position_id?1:N.position_id>D.position_id?-1:0);for(let D=0;D<O.data.home_team.starting_lineup[0].lineup.length;D++){this.home_team_id=O.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+O.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+O.data.home_team.team_id+"_g.svg","home",0);var p=O.data.home_team.starting_lineup[0].lineup[D].player_name.split(","),f=p[0].split(" "),F=p[1].trim().split(" "),K="";f.length==2||f.length==1?f[0].length<4?K=f[0]+" "+f[1]:K=f[0]:f.length==3?K=f[0]+" "+f[1]:f.length==4&&(K=f[1]+" "+f[2]+" "+f[3]);var k=F[F.length-1]!=""?F[F.length-1].charAt(0):F[F.length-2]?F[F.length-2].charAt(0):"";K=K.replace(",","");var w=k+". "+K,n=O.data.home_team.starting_lineup[0].lineup[D].x,_=n*50/100,h=O.data.home_team.players.findIndex(N=>N.player_id==O.data.home_team.starting_lineup[0].lineup[D].player_id);this.players.push({playerId:O.data.home_team.starting_lineup[0].lineup[D].player_id,number:O.data.home_team.starting_lineup[0].lineup[D].jersey_number,isFirstTeam:!0,name:k+". "+K,photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+O.data.home_team.starting_lineup[0].lineup[D].player_id+".png",posX:O.data.home_team.starting_lineup[0].lineup[D].x*50/100,posY:O.data.home_team.starting_lineup[0].lineup[D].y,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0}),this.playersHome.push({played:!0,name:O.data.home_team.starting_lineup[0].lineup[D].player_name,position:this.positions[O.data.home_team.players[h].position_id-1].name,position_id:O.data.home_team.players[h].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+O.data.home_team.starting_lineup[0].lineup[D].player_id+".png",nationality:O.data.home_team.players[h].nationality?O.data.home_team.players[h].nationality.substring(0,3):"",imgNationality:O.data.home_team.players[h].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:w,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+O.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:O.data.home_team.starting_lineup[0].lineup[D].jersey_number,positionX:O.data.home_team.starting_lineup[0].lineup[D].y-13,positionY:_*.9,positionXOrigin:O.data.home_team.starting_lineup[0].lineup[D].y-17,positionYOrigin:O.data.home_team.starting_lineup[0].lineup[D].x-2,playerId:O.data.home_team.starting_lineup[0].lineup[D].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:O.data.home_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+O.data.home_team.team_id+".png"}if(this.playersHome.sort((D,N)=>D.position_id>N.position_id?1:N.position_id>D.position_id?-1:0),O.data.home_team.bench){for(let D=0;D<O.data.home_team.bench.length;D++){this.subsTitle=!0;var r=O.data.home_team.bench[D].playerName.split(","),b=r[0].split(" "),y=r[1].trim().split(" "),g="";b.length==2||b.length==1?b[0].length<4?g=b[0]+" "+b[1]:g=b[0]:b.length==3?g=b[0]+" "+b[1]:b.length==4&&(g=b[1]+" "+b[2]+" "+b[3]);var c=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";g=g.replace(",","");var a=c+". "+g,i=O.data.home_team.players.findIndex(N=>N.player_id==O.data.home_team.bench[D].playerID);this.playersHome.push({played:!1,name:O.data.home_team.bench[D].playerName,position:i!=-1?this.positions[O.data.home_team.players[i].position_id-1].name:"",position_id:O.data.home_team.players[i].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+O.data.home_team.bench[D].playerID+".png",nationality:i!=-1&&O.data.home_team.players[i].nationality?O.data.home_team.players[i].nationality.substring(0,3):"",imgNationality:i!=-1?O.data.home_team.players[i].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:a,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+O.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:O.data.home_team.bench[D].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:O.data.home_team.bench[D].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:O.data.home_team.team_id})}this.playersHome.sort((D,N)=>D.position_id>N.position_id?1:N.position_id>D.position_id?-1:0)}for(let D=0;D<O.data.away_team.starting_lineup[0].lineup.length;D++){this.away_team_id=O.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+O.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+O.data.away_team.team_id+"_g.svg","away",0);var u=O.data.away_team.starting_lineup[0].lineup[D].player_name.split(","),s=u[0].split(" "),d=u[1].trim().split(" "),m="";s.length==2||s.length==1?s[0].length<4?m=s[0]+" "+s[1]:m=s[0]:s.length==3?m=s[0]+" "+s[1]:s.length==4&&(m=s[1]+" "+s[2]+" "+s[3]);var v=d[F.length-1]!=""?d[d.length-1].charAt(0):d[d.length-2]?d[d.length-2].charAt(0):"";m=m.replace(",","");var T=v+". "+m,A=O.data.away_team.starting_lineup[0].lineup[D].x,C=100-(100-A)*50/100;C=C*.9;var P=O.data.away_team.players.findIndex(N=>N.player_id==O.data.away_team.starting_lineup[0].lineup[D].player_id);this.players.push({playerId:O.data.away_team.starting_lineup[0].lineup[D].player_id,number:O.data.away_team.starting_lineup[0].lineup[D].jersey_number,isFirstTeam:!1,name:v+". "+m,photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+O.data.away_team.starting_lineup[0].lineup[D].player_id+".png",posX:100-(100-O.data.away_team.starting_lineup[0].lineup[D].x)*50/100,posY:O.data.away_team.starting_lineup[0].lineup[D].y,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0}),this.playersAway.push({played:!0,name:O.data.away_team.starting_lineup[0].lineup[D].player_name,position:this.positions[O.data.away_team.players[P].position_id-1].name,position_id:O.data.away_team.players[P].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+O.data.away_team.starting_lineup[0].lineup[D].player_id+".png",nationality:O.data.away_team.players[P].nationality?O.data.away_team.players[P].nationality.substring(0,3):"",imgNationality:O.data.away_team.players[P].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:T,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+O.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:O.data.away_team.starting_lineup[0].lineup[D].jersey_number,positionX:O.data.away_team.starting_lineup[0].lineup[D].y-13,positionY:C,positionXOrigin:O.data.away_team.starting_lineup[0].lineup[D].y-17,positionYOrigin:O.data.away_team.starting_lineup[0].lineup[D].x-7,playerId:O.data.away_team.starting_lineup[0].lineup[D].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:O.data.away_team.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+O.data.away_team.team_id+".png"}if(this.playersAway.sort((D,N)=>D.position_id>N.position_id?1:N.position_id>D.position_id?-1:0),O.data.away_team.bench){for(let D=0;D<O.data.away_team.bench.length;D++){this.subsTitle=!0;var L=O.data.away_team.bench[D].playerName.split(","),E=L[0].split(" "),I=L[1].trim().split(" "),M="";E.length==2||E.length==1?E[0].length<4?M=E[0]+" "+E[1]:M=E[0]:E.length==3?M=E[0]+" "+E[1]:E.length==4&&(M=E[1]+" "+E[2]+" "+E[3]);var S=I[I.length-1]!=""?I[I.length-1].charAt(0):I[I.length-2]?I[I.length-2].charAt(0):"";M=M.replace(",","");var B=S+". "+M,x=O.data.away_team.players.findIndex(N=>N.player_id==O.data.away_team.bench[D].playerID);this.playersAway.push({played:!1,name:O.data.away_team.bench[D].playerName,position:x!=-1?this.positions[O.data.away_team.players[x].position_id-1].name:"",position_id:O.data.away_team.players[x].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+O.data.away_team.bench[D].playerID+".png",nationality:x!=-1&&O.data.away_team.players[x].nationality?O.data.away_team.players[x].nationality.substring(0,3):"",imgNationality:x!=-1?O.data.away_team.players[x].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:B,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+O.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:O.data.away_team.bench[D].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:O.data.away_team.bench[D].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:O.data.away_team.team_id})}this.playersAway.sort((D,N)=>D.position_id>N.position_id?1:N.position_id>D.position_id?-1:0)}this.getMXM(e)}catch(O){return Promise.reject(O)}},closeChange(){this.subsActive=!1},imageExists(e,p,f){var F=new XMLHttpRequest,K=0;p=="away"?f==1?this.uniformAway==""&&(F.open("HEAD",e,!1),F.send(),K=1):this.uniformAwayG==""&&(F.open("HEAD",e,!1),F.send(),K=1):f==1?this.uniformHome==""&&(F.open("HEAD",e,!1),F.send(),K=1):this.uniformHomeG==""&&(F.open("HEAD",e,!1),F.send(),K=1),K==1&&(F.status==200?p=="away"?f==1?this.uniformAway="url("+e+")":this.uniformAwayG="url("+e+")":f==1?this.uniformHome="url("+e+")":this.uniformHomeG="url("+e+")":p=="away"?f==1?this.uniformAway="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita.svg)":this.uniformAwayG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita_g.svg)":f==1?this.uniformHome="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local.svg)":this.uniformHomeG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local_g.svg)")},viewChange(e){var p=e.split("@");if(p[0]==this.home_team_id){var f=this.playersHome.findIndex(w=>w.playerId==p[1]),F=this.playersHome.findIndex(w=>w.playerId==p[2]);f!=-1?(this.substitutionModal.min=this.playersHome[f].substitutionMin,this.substitutionModal.in.name=this.playersHome[f].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersHome[f].imgTeam,this.substitutionModal.in.shirt_number=this.playersHome[f].shirt_number,this.substitutionModal.in.playerImg=this.playersHome[f].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersHome[f].imgNationality):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),F!=-1?(this.substitutionModal.out.name=this.playersHome[F].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[F].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[F].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[F].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[F].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}else{var K=this.playersAway.findIndex(w=>w.playerId==p[1]),k=this.playersAway.findIndex(w=>w.playerId==p[2]);K!=-1?(this.substitutionModal.min=this.playersAway[K].substitutionMin,this.substitutionModal.in.name=this.playersAway[K].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[K].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[K].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[K].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[K].shirt_number):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),k!=-1?(this.substitutionModal.out.name=this.playersAway[k].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersAway[k].imgTeam,this.substitutionModal.out.playerImg=this.playersAway[k].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersAway[k].imgNationality,this.substitutionModal.out.shirt_number=this.playersAway[k].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}this.subsActive=!0},viewLineupTeam(e){this.teamActive=e}},sockets:{new_bench([e,p]){if(p[this.home_team_id]){this.playersHome=this.playersHome.filter(function(i){return!i.isbench});for(let i=0;i<p[this.home_team_id].length;i++)if(!p[this.home_team_id][i].isTitular){this.subsTitle=!0;var f=p[this.home_team_id][i].playerName.split(","),F=f[0].split(" "),K=f[1].trim().split(" "),k="";F.length==2||F.length==1?F[0].length<4?k=F[0]+" "+F[1]:k=F[0]:F.length==3?k=F[0]+" "+F[1]:F.length==4&&(k=F[1]+" "+F[2]+" "+F[3]);var w=K[K.length-1]!=""?K[K.length-1].charAt(0):K[K.length-2]?K[K.length-2].charAt(0):"";k=k.replace(",","");var n=w+". "+k,_=this.dataPlayersHome.findIndex(u=>u.player_id==p[this.home_team_id][i].playerID);this.playersHome.push({played:!1,name:p[this.home_team_id][i].playerName,position:_!=-1?this.positions[this.dataPlayersHome[_].position_id-1].name:"",position_id:this.dataPlayersHome[_].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+p[this.home_team_id][i].playerID+".png",nationality:_!=-1&&this.dataPlayersHome[_].nationality?this.dataPlayersHome[_].nationality.substring(0,3):"",imgNationality:_!=-1?this.dataPlayersHome[_].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:n,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+this.home_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:p[this.home_team_id][i].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:p[this.home_team_id][i].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersHome.sort((i,u)=>i.position_id>u.position_id?1:u.position_id>i.position_id?-1:0)}if(p[this.away_team_id]){this.playersAway=this.playersAway.filter(function(i){return!i.isbench});for(let i=0;i<p[this.away_team_id].length;i++)if(!p[this.away_team_id][i].isTitular){this.subsTitle=!0;var h=p[this.away_team_id][i].playerName.split(","),r=h[0].split(" "),b=f[1].trim().split(" "),y="";r.length==2||r.length==1?r[0].length<4?y=r[0]+" "+r[1]:y=r[0]:r.length==3?y=r[0]+" "+r[1]:r.length==4&&(y=r[1]+" "+r[2]+" "+r[3]);var g=b[b.length-1]!=""?b[b.length-1].charAt(0):b[b.length-2]?b[b.length-2].charAt(0):"";y=y.replace(",","");var c=g+". "+y,a=this.dataPlayersAway.findIndex(u=>u.player_id==p[this.away_team_id][i].playerID);this.playersAway.push({played:!1,name:p[this.away_team_id][i].playerName,position:a!=-1?this.positions[this.dataPlayersAway[a].position_id-1].name:"",position_id:this.dataPlayersAway[a].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+p[this.away_team_id][i].playerID+".png",nationality:a!=-1&&this.dataPlayersAway[a].nationality?this.dataPlayersAway[a].nationality.substring(0,3):"",imgNationality:a!=-1?this.dataPlayersAway[a].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:c,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+this.away_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:p[this.away_team_id][i].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:p[this.away_team_id][i].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersAway.sort((i,u)=>i.position_id>u.position_id?1:u.position_id>i.position_id?-1:0)}},new_lineup([e,p]){if(p.team_id==p.home_team.team_id){if(this.playersHome.length==0){this.dataPlayersHome=p.home_team.players;for(let m=0;m<p.data.length;m++){this.home_team_id=p.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+p.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+p.team_id+"_g.svg","home",0);var f=p.data[m].player_name.split(","),F=f[0].split(" "),K=f[1].trim().split(" "),k="";F.length==2||F.length==1?F[0].length<4?k=F[0]+" "+F[1]:k=F[0]:F.length==3?k=F[0]+" "+F[1]:F.length==4&&(k=F[1]+" "+F[2]+" "+F[3]);var w=K[K.length-1]!=""?K[K.length-1].charAt(0):K[K.length-2]?K[K.length-2].charAt(0):"";k=k.replace(",","");var n=w+". "+k,_=p.data[m].x,h=_*50/100,r=p.home_team.players.findIndex(v=>v.player_id==p.data[m].player_id);this.playersHome.push({played:!0,name:p.data[m].player_name,position:r!=-1?this.positions[p.home_team.players[r].position_id-1].name:"",position_id:p.home_team.players[r].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+p.data[m].player_id+".png",nationality:r!=-1&&p.home_team.players[r].nationality?p.home_team.players[r].nationality.substring(0,3):"",imgNationality:r!=-1?p.home_team.players[r].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:n,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+p.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:p.data[m].jersey_number,positionX:p.data[m].y-13,positionY:h*.9,positionXOrigin:p.data[m].y-17,positionYOrigin:p.data[m].x-2,playerId:p.data[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:p.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+p.team_id+".png"}this.playersHome.sort((m,v)=>m.position_id>v.position_id?1:v.position_id>m.position_id?-1:0)}}else if(this.playersAway.length==0){this.dataPlayersAway=p.away_team.players;for(let m=0;m<p.data.length;m++){this.away_team_id=p.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+p.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+p.team_id+"_g.svg","away",0);var b=p.data[m].player_name.split(","),y=b[0].split(" "),g=b[1].trim().split(" "),c="";y.length==2||y.length==1?y[0].length<4?c=y[0]+" "+y[1]:c=y[0]:y.length==3?c=y[0]+" "+y[1]:y.length==4&&(c=y[1]+" "+y[2]+" "+y[3]);var a=g[g.length-1]!=""?g[g.length-1].charAt(0):g[g.length-2]?g[g.length-2].charAt(0):"";c=c.replace(",","");var i=a+". "+c,u=p.data[m].x,s=100-(100-u)*50/100;s=s*.9;var d=p.away_team.players.findIndex(v=>v.player_id==p.data[m].player_id);this.playersAway.push({played:!0,name:p.data[m].player_name,position:d!=-1?this.positions[p.away_team.players[d].position_id-1].name:"",position_id:p.away_team.players[d].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+p.data[m].player_id+".png",nationality:d!=-1&&p.away_team.players[d].nationality?p.away_team.players[d].nationality.substring(0,3):"",imgNationality:d!=-1?p.away_team.players[d].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:i,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+p.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:p.data[m].jersey_number,positionX:p.data[m].y-13,positionY:s+2,positionXOrigin:p.data[m].y-17,positionYOrigin:p.data[m].x-7,playerId:p.data[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:p.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+p.team_id+".png"}this.playersAway.sort((m,v)=>m.position_id>v.position_id?1:v.position_id>m.position_id?-1:0)}},update_mxm([e,p]){var f=-1,F=-1;if(this.players.length>0){var K=this.players.findIndex(C=>C.idredcards==p.play_id),k=this.players.findIndex(C=>C.idyellowcards==p.play_id),w=this.players.findIndex(C=>C.idSubstitution==p.play_id);for(let C=0;C<this.players.length;C++){var n=this.players[C].idsGoals.findIndex(P=>P==p.play_id);n!=-1&&(f=n,F=C)}K!=-1&&this.resetPlayUpdate("RedCard","Home",K,F),k!=-1&&this.resetPlayUpdate("YellowCard","Home",k,F),w!=-1&&this.resetPlayUpdate("Substitution","Home",w,F),f!=-1&&this.resetPlayUpdate("Goals","Home",f,F)}if(this.players.length>0){var _=this.players.findIndex(C=>C.idredcards==p.play_id),h=this.players.findIndex(C=>C.idyellowcards==p.play_id),r=this.players.findIndex(C=>C.idSubstitution==p.play_id);for(let C=0;C<this.players.length;C++){var b=this.players[C].idsGoals.findIndex(P=>P==p.play_id);b!=-1&&(f=b,F=C)}_!=-1&&this.resetPlayUpdate("RedCard","Away",_,F),h!=-1&&this.resetPlayUpdate("YellowCard","Away",h,F),r!=-1&&this.resetPlayUpdate("Substitution","Away",r,F),f!=-1&&this.resetPlayUpdate("Goals","Away",f,F)}if(p.event_type_id==3){if(p.team_id==this.home_team_id){if(this.players.length>0){var y=p.player_id.split("@"),g=this.players.findIndex(C=>C.playerId==y[0]),c=this.players.findIndex(C=>C.playerId==y[1]);g!=-1&&(this.players[g].idSubstitution=p.play_id,this.players[g].substitutionOut=!0,this.players[g].substitutionMin=p.minute,this.players[g].substitutionDataID=p.team_id+"@"+p.player_id),c!=-1&&(this.players[c].idSubstitution=p.play_id,this.players[c].substitutionIn=!0,this.players[c].substitutionMin=p.minute,this.players[c].substitutionDataID=p.team_id+"@"+p.player_id)}}else if(this.players.length>0){var a=p.player_id.split("@"),i=this.players.findIndex(C=>C.playerId==a[0]),u=this.players.findIndex(C=>C.playerId==a[1]);g!=-1&&(this.players[i].idSubstitution=p.play_id,this.players[i].substitutionOut=!0,this.players[i].substitutionMin=p.minute,this.players[i].substitutionDataID=p.team_id+"@"+p.player_id),u!=-1&&(this.players[u].idSubstitution=p.play_id,this.players[u].substitutionIn=!0,this.players[u].substitutionMin=p.minute,this.players[u].substitutionDataID=p.team_id+"@"+p.player_id)}}if(p.event_type_id==1){if(p.team_id==this.home_team_id){if(this.playersHome.length>0){var s=this.playersHome.findIndex(C=>C.playerId==p.player_id);s!=-1&&(this.playersHome[s].goals+=1,this.playersHome[s].goalsMin.push(p.minute),this.playersHome[s].idsGoals.push(p.play_id))}}else if(this.players.length>0){var d=this.players.findIndex(C=>C.playerId==p.player_id);d!=-1&&(this.players[d].goals+=1,this.players[d].goalsMin.push(p.minute),this.players[d].idsGoals.push(p.play_id))}}if(p.event_type_id==2){if(p.category_id==8){if(p.team_id==this.home_team_id){if(this.playersHome.length>0){var m=this.playersHome.findIndex(C=>C.playerId==p.player_id);m!=-1&&(this.playersHome[m].yellowcards+=1,this.playersHome[m].yellowcardsMin=p.minute,this.playersHome[m].idyellowcards=p.play_id)}}else if(this.players.length>0){var v=this.players.findIndex(C=>C.playerId==p.player_id);v!=-1&&(this.players[v].yellowcards+=1,this.players[v].yellowcardsMin=p.minute,this.players[v].idyellowcards=p.play_id)}}if(p.category_id==9){if(p.team_id==this.home_team_id){if(this.playersHome.length>0){var T=this.playersHome.findIndex(C=>C.playerId==p.player_id);T!=-1&&(this.playersHome[T].redcards+=1,this.playersHome[T].redcardsMin=p.minute,this.playersHome[T].idredcards=p.play_id)}}else if(this.players.length>0){var A=this.players.findIndex(C=>C.playerId==p.player_id);A!=-1&&(this.players[A].redcards+=1,this.players[A].redcardsMin=p.minute,this.players[A].idredcards=p.play_id)}}}},delete_mxm([e,p]){if(this.players.length>0)for(let f=0;f<this.players.length;f++)this.players[f].idSubstitution==p.play_id&&(this.players[f].substitutionOut=!1,this.players[f].substitutionIn=!1,this.players[f].substitutionMin="",this.players[f].substitutionDataID="",this.players[f].idSubstitution=0);if(this.players.length>0)for(let f=0;f<this.players.length;f++)this.players[f].idSubstitution==p.play_id&&(this.players[f].substitutionOut=!1,this.players[f].substitutionIn=!1,this.players[f].substitutionMin="",this.players[f].substitutionDataID="",this.players[f].idSubstitution=0);if(this.players.length>0)for(let f=0;f<this.players.length;f++){const F=this.players[f].idsGoals.findIndex(K=>K==p.play_id);F!=-1&&(this.players[f].goals=this.players[f].goals-1,this.players[f].goalsMin.splice(F,1),this.players[f].idsGoals.splice(F,1))}if(this.players.length>0)for(let f=0;f<this.players.length;f++){const F=this.players[f].idsGoals.findIndex(K=>K==p.play_id);F!=-1&&(this.players[f].goals=this.players[f].goals-1,this.players[f].goalsMin.splice(F,1),this.players[f].idsGoals.splice(F,1))}if(this.players.length>0)for(let f=0;f<this.players.length;f++)this.players[f].idyellowcards==p.play_id&&(this.players[f].yellowcards=0,this.players[f].yellowcardsMin=0,this.players[f].idyellowcards=0);if(this.players.length>0)for(let f=0;f<this.players.length;f++)this.players[f].idyellowcards==p.play_id&&(this.players[f].yellowcards=0,this.players[f].yellowcardsMin=0,this.players[f].idyellowcards=0);if(this.players.length>0)for(let f=0;f<this.players.length;f++)this.players[f].idredcards==p.play_id&&(this.players[f].redcards=0,this.players[f].redcardsMin=0,this.players[f].idredcards=0);if(this.players.length>0)for(let f=0;f<this.players.length;f++)this.players[f].idredcards==p.play_id&&(this.players[f].redcards=0,this.players[f].redcardsMin=0,this.players[f].idredcards=0)},new_mxm([e,p]){if(p.event_type_id==3){if(p.team_id==this.home_team_id){if(this.players.length>0){var f=p.player_id.split("@"),F=this.players.findIndex(c=>c.playerId==f[0]),K=this.players.findIndex(c=>c.playerId==f[1]);F!=-1&&(this.players[F].idSubstitution=p.play_id,this.players[F].substitutionOut=!0,this.players[F].substitutionMin=p.minute,this.players[F].substitutionDataID=p.team_id+"@"+p.player_id),K!=-1&&(this.players[K].idSubstitution=p.play_id,this.players[K].substitutionIn=!0,this.players[K].substitutionMin=p.minute,this.players[K].substitutionDataID=p.team_id+"@"+p.player_id)}}else if(this.players.length>0){var k=p.player_id.split("@"),w=this.players.findIndex(c=>c.playerId==k[0]),n=this.players.findIndex(c=>c.playerId==k[1]);F!=-1&&(this.players[w].idSubstitution=p.play_id,this.players[w].substitutionOut=!0,this.players[w].substitutionMin=p.minute,this.players[w].substitutionDataID=p.team_id+"@"+p.player_id),n!=-1&&(this.players[n].idSubstitution=p.play_id,this.players[n].substitutionIn=!0,this.players[n].substitutionMin=p.minute,this.players[n].substitutionDataID=p.team_id+"@"+p.player_id)}}if(p.event_type_id==1){if(p.team_id==this.home_team_id){if(this.players.length>0){var _=this.players.findIndex(c=>c.playerId==p.player_id);_!=-1&&(this.players[_].goals+=1,this.players[_].goalsMin.push(p.minute),this.players[_].idsGoals.push(p.play_id))}}else if(this.players.length>0){var h=this.players.findIndex(c=>c.playerId==p.player_id);h!=-1&&(this.players[h].goals+=1,this.players[h].goalsMin.push(p.minute),this.players[h].idsGoals.push(p.play_id))}}if(p.event_type_id==2){if(p.category_id==8){if(p.team_id==this.home_team_id){if(this.players.length>0){var r=this.players.findIndex(c=>c.playerId==p.player_id);r!=-1&&(this.players[r].yellowcards+=1,this.players[r].yellowcardsMin=p.minute,this.players[r].idyellowcards=p.play_id)}}else if(this.players.length>0){var b=this.players.findIndex(c=>c.playerId==p.player_id);b!=-1&&(this.players[b].yellowcards+=1,this.players[b].yellowcardsMin=p.minute,this.players[b].idyellowcards=p.play_id)}}if(p.category_id==9){if(p.team_id==this.home_team_id){if(this.players.length>0){var y=this.players.findIndex(c=>c.playerId==p.player_id);y!=-1&&(this.players[y].redcards+=1,this.players[y].redcardsMin=p.minute,this.players[y].idredcards=p.play_id)}}else if(this.players.length>0){var g=this.players.findIndex(c=>c.playerId==p.player_id);g!=-1&&(this.players[g].redcards+=1,this.players[g].redcardsMin=p.minute,this.players[g].idredcards=p.play_id)}}}}}},Cv=e=>(t.pushScopeId("data-v-1634ade6"),e=e(),t.popScopeId(),e),Due={class:"lineup__header",ref:"gamesContainer"},Fue=Cv(()=>t.createElementVNode("h2",null,"Alineaciones",-1)),Nue={key:0,style:{width:"325px"}},Rue={class:"lineup__card"},Vue={key:0},jue={key:1},Uue={key:2},$ue={key:3,class:"lineup__card-body"},Gue={class:"lineup__selector",style:{margin:"auto"}},Hue={class:"lineup__selector-item"},que={key:4,class:"lineup__card-body",style:{"flex-flow":"column"}},Wue={class:"lineup__filters"},Zue={class:"selector-tournaments"},Xue={class:"lineup__items-carousel"},Yue=Cv(()=>t.createElementVNode("div",null,null,-1)),Kue={class:"lineup__items-center"},Jue={class:"lineup__selector-recientes"},Que={key:1,class:"containernofoundsearchrecientes"},ede=Cv(()=>t.createElementVNode("div",{class:"text-containernofoundsearchrecientes"},[t.createTextVNode(" No hay resultados con los criterios, "),t.createElementVNode("br"),t.createTextVNode(" de búsqueda aplicados. ")],-1)),tde={key:0,class:"lineup__selector-recientes",style:{margin:"auto",width:"100%"}},rde={key:5,class:"lineup__card-body space-between"},nde={class:"lineup__card-body__probables"},ade={class:"selector-tournaments"},ide=Cv(()=>t.createElementVNode("div",{class:"lineup__card-body__team-vs"},"vs",-1)),ode=["src"],sde={class:"lineup__card-body__probables"},lde=["src"],cde=Cv(()=>t.createElementVNode("div",{class:"lineup__card-body__team-vs"},"vs",-1)),ude={class:"selector-tournaments"},dde={key:6,class:"lineup__card-body space-between"},hde={class:"postmatch__matchday"};function pde(e,p,f,F,K,k){const w=t.resolveComponent("GscSwitchComponent"),n=t.resolveComponent("LineupMainHeader"),_=t.resolveComponent("GSCCarousel"),h=t.resolveComponent("LineupFilter"),r=t.resolveComponent("GSCDropdown"),b=t.resolveComponent("LineupRecentItem"),y=t.resolveComponent("MatchDetails"),g=t.resolveComponent("LineupField");return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["lineup",{"break-point-3":k.mobileClass}])},[t.createElementVNode("div",Due,[Fue,f.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock("div",Nue,[(K.gameInfoheader.game_status==0||K.gameInfoheader.game_status==4)&&k.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(w,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:f.selectedOption,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:p[0]||(p[0]=c=>f.selectedOption=c)},null,8,["selectedOption"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],512),t.createElementVNode("div",Rue,[f.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[f.selectedOption==="Probables"?(t.openBlock(),t.createElementBlock("h3",Vue,"Alineación utilizada este torneo en:")):f.selectedOption==="Recientes"?(t.openBlock(),t.createElementBlock("h3",jue,"Alineaciones recientes de:")):(t.openBlock(),t.createElementBlock("h3",Uue,"Alineación utilizada en:"))],64)):t.createCommentVNode("",!0),f.selectedOption==="Historicos"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(K.headerInfoHistoricItemGame).length>0?(t.openBlock(),t.createBlock(n,{key:0,localTeam:{acronym:K.headerInfoHistoricItemGame.home_team_abbreviation,img:"https://golstatsimages.blob.core.windows.net/teams-80/"+K.headerInfoHistoricItemGame.home_team+".png"},visitTeam:{acronym:K.headerInfoHistoricItemGame.away_team_abbreviation,img:"https://golstatsimages.blob.core.windows.net/teams-80/"+K.headerInfoHistoricItemGame.away_team+".png"},probablyTeamHome:{acronym:K.rivalHomeAbrev,img:K.rivalHomeImg},probablyTeamAway:{acronym:K.rivalVisitAbrev,img:K.rivalVisitImg},score:K.headerInfoHistoricItemGame.score[0]+" - "+K.headerInfoHistoricItemGame.score[1],onChange:k.changeSwitchRadio,type:f.selectedOption},null,8,["localTeam","visitTeam","probablyTeamHome","probablyTeamAway","score","onChange","type"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[Object.keys(K.gameInfoheader).length>0?(t.openBlock(),t.createBlock(n,{key:0,localTeam:{acronym:K.gameInfoheader.home_team_abbreviation,img:"https://golstatsimages.blob.core.windows.net/teams-80/"+K.gameInfoheader.home_team+".png"},visitTeam:{acronym:K.gameInfoheader.away_team_abbreviation,img:"https://golstatsimages.blob.core.windows.net/teams-80/"+K.gameInfoheader.away_team+".png"},probablyTeamHome:{acronym:K.rivalHomeAbrev,img:K.rivalHomeImg},probablyTeamAway:{acronym:K.rivalVisitAbrev,img:K.rivalVisitImg},score:K.gameInfoheader.score[0]+" - "+K.gameInfoheader.score[1],onChange:k.changeSwitchRadio,type:f.selectedOption},null,8,["localTeam","visitTeam","probablyTeamHome","probablyTeamAway","score","onChange","type"])):t.createCommentVNode("",!0)],64)),f.selectedOption==="Historicos"?(t.openBlock(),t.createElementBlock("div",$ue,[f.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Gue,[K.gamesHistoric.length>0?(t.openBlock(),t.createBlock(_,{key:K.updatehistoricos,onInput:k.changeCarouselItemH,items:K.gamesHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:c})=>[t.createElementVNode("div",Hue,t.toDisplayString(c.description),1)]),_:1},8,["onInput","items"])):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"lineup__text-btn-abs",onClick:p[1]||(p[1]=c=>K.showDetails=!K.showDetails)},t.toDisplayString(K.showDetails?"Ocultar detalles":"Ver detalles"),1)],64)):t.createCommentVNode("",!0)])):f.selectedOption==="Recientes"?(t.openBlock(),t.createElementBlock("div",que,[t.createElementVNode("div",Wue,[t.createVNode(h,{name:"Filtros",onChange:k.changeFiltersModal,reset:K.vDeleteFilter},null,8,["onChange","reset"]),t.createElementVNode("div",{class:"lineup__filters__selector",ref:"targetElement",onClick:p[2]||(p[2]=(...c)=>k.handleInsideClick&&k.handleInsideClick(...c))},[(t.openBlock(),t.createBlock(r,{onClick:k.clickOnValueFilter,items:k.matchdaysFinal,onInput:k.changeDropdown,backgroundColor:"transparent",height:"25px",key:e.keyUpdate,color:"rgba(255, 255, 255, 0.7)",arrowColor:"rgba(255, 255, 255, 0.7)",borderColor:"rgba(255, 255, 255, 0.3)",style:{"font-size":"10px"},arrowHeight:"16",arrowWidth:16,"default-item-by-prop":e.defaultDropItem,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(c=>[t.createElementVNode("div",Zue,t.toDisplayString(c.selectedItem.name),1)]),availableItem:t.withCtx(({item:c})=>[t.createElementVNode("div",null,t.toDisplayString(c.name),1)]),_:1},8,["onClick","items","onInput","default-item-by-prop"]))],512),t.createElementVNode("div",{class:"lineup__text-btn",onClick:p[3]||(p[3]=c=>K.showDetails=!K.showDetails)},t.toDisplayString(K.showDetails?"Ocultar detalles":"Ver detalles"),1)]),t.createElementVNode("div",Xue,[Yue,t.createElementVNode("div",Kue,[k.mobileClass?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Jue,[k.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(_,{onClick:k.clickOnValueCarrousel,"default-item-by-index":K.selectedIndexOption,width:"600px",height:"80px",key:K.updateCarouselGames,onInput:k.changeCarouselItem,items:k.gameRecientesFilter,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:c})=>[t.createVNode(b,{game:c,teamSelect:K.teamSelect},null,8,["game","teamSelect"])]),_:1},8,["onClick","default-item-by-index","onInput","items"])):(t.openBlock(),t.createElementBlock("div",Que,[ede,t.createElementVNode("div",{class:"btn-delete-filters",onClick:p[4]||(p[4]=(...c)=>k.clickOnDeleteFilter&&k.clickOnDeleteFilter(...c))}," Eliminar filtros aplicados ")]))]),K.showDetails?(t.openBlock(),t.createBlock(y,{key:0,localDetails:K.localDetails,foreignDetails:K.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],64))])]),k.mobileClass?(t.openBlock(),t.createElementBlock("div",tde,[k.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(_,{onClick:k.clickOnValueCarrousel,"default-item-by-index":K.selectedIndexOption,width:"600px",height:"80px",key:K.updateCarouselGames,onInput:k.changeCarouselItem,items:k.gameRecientesFilter,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1},{default:t.withCtx(({item:c})=>[t.createVNode(b,{game:c,teamSelect:K.teamSelect,style:{"max-width":"200px"}},null,8,["game","teamSelect"])]),_:1},8,["onClick","default-item-by-index","onInput","items"])):t.createCommentVNode("",!0),K.showDetails?(t.openBlock(),t.createBlock(y,{key:1,localDetails:K.localDetails,foreignDetails:K.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):f.selectedOption==="Probables"?(t.openBlock(),t.createElementBlock("div",rde,[t.createElementVNode("div",nde,[t.createVNode(r,{items:k.matchHomeProbables,onInput:k.changeDropdownLocal,backgroundColor:"transparent",height:"25px",color:"rgba(255, 255, 255, 0.7)",arrowColor:"rgba(255, 255, 255, 0.7)",borderColor:"rgba(255, 255, 255, 0.3)",style:{"font-size":"10px"},arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(c=>[t.createElementVNode("div",ade,t.toDisplayString(c.selectedItem.name),1)]),availableItem:t.withCtx(({item:c})=>[t.createElementVNode("div",null,t.toDisplayString(c.name),1)]),_:1},8,["items","onInput"]),ide,t.createElementVNode("img",{src:K.rivalHomeImg,class:"lineup__card-body__img-probables"},null,8,ode)]),t.createElementVNode("div",sde,[t.createElementVNode("img",{src:K.rivalVisitImg,class:"lineup__card-body__img-probables"},null,8,lde),cde,t.createVNode(r,{items:k.matchAwayProbables,onInput:k.changeDropdownVisit,backgroundColor:"transparent",height:"25px",color:"rgba(255, 255, 255, 0.7)",arrowColor:"rgba(255, 255, 255, 0.7)",borderColor:"rgba(255, 255, 255, 0.3)",style:{"font-size":"10px"},arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(c=>[t.createElementVNode("div",ude,t.toDisplayString(c.selectedItem.name),1)]),availableItem:t.withCtx(({item:c})=>[t.createElementVNode("div",null,t.toDisplayString(c.name),1)]),_:1},8,["items","onInput"])])])):f.selectedOption==="Postmatch"?(t.openBlock(),t.createElementBlock("div",dde,[t.createElementVNode("div",hde,t.toDisplayString(K.gameInfoheader.season_name!==void 0?K.gameInfoheader.season_name+" | "+k.remplazarMxJor(K.gameInfoheader.matchday_abbreviation)+" | "+K.gameInfoheader.home_team_abbreviation+" - "+K.gameInfoheader.away_team_abbreviation:""),1),t.createElementVNode("div",{class:"lineup__text-btn-abs",onClick:p[5]||(p[5]=c=>K.showDetails=!K.showDetails)},t.toDisplayString(K.showDetails?"Ocultar detalles":"Ver detalles"),1)])):t.createCommentVNode("",!0),K.showDetails&&(f.selectedOption==="Historicos"||f.selectedOption==="Postmatch")?(t.openBlock(),t.createBlock(y,{key:7,style:{"margin-bottom":"17px"},localDetails:K.localDetails,foreignDetails:K.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0),t.createVNode(g,{class:"lineup__field",players:K.players},null,8,["players"])])],2)}const fde=Yh(zue,[["render",pde],["__scopeId","data-v-1634ade6"]]),mde={name:"PlayerCard",emits:["open-profile"],components:{},props:{data:{type:Object,default:()=>{}},position:{type:String,default:"gsc-position-player"},type:{type:Number,default:1}},data(){return{}},computed:{},methods:{openProfile(e){(e.section!=="Historicos"||e.type==="Postmatch")&&this.$emit("open-profile",e)}},mounted(){}},ib=e=>(t.pushScopeId("data-v-ce649720"),e=e(),t.popScopeId(),e),gde={key:0,class:"gsc-item-player"},yde={class:"gsc-num-player"},vde={class:"gsc-cont-info-by-player"},_de={class:"gsc-cont-info-by-player-row1"},bde={class:"shield-player-cont"},xde=["src"],wde={class:"gsc-cont-info-by-player-row2"},kde={class:"gsc-cont-info-by-player-row2-line-data"},Sde={class:"cont-display-gsc"},Tde=["src"],Cde={class:"gsc-cont-cards"},Ade={key:0,class:"gsc-yellow_card_div"},Ede={key:1,class:"gsc-red_card_div"},Mde={key:2,class:"gsc-yellowred_card_div"},Ide=ib(()=>t.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),Pde={key:5,class:"gsc-goal_card_div_wrapper"},Lde=ib(()=>t.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),Bde={key:1,class:"gsc-item-player"},Ode={class:"gsc-num-player2"},zde={class:"gsc-cont-info-by-player2"},Dde={class:"gsc-cont-info-by-player-row2"},Fde={class:"gsc-cont-info-by-player-row2-line-data"},Nde={class:"gsc-cont-cards2"},Rde={key:0,class:"gsc-yellow_card_div"},Vde={key:1,class:"gsc-red_card_div"},jde={key:2,class:"gsc-yellowred_card_div"},Ude=ib(()=>t.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),$de={key:5,class:"gsc-goal_card_div_wrapper"},Gde=ib(()=>t.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),Hde={class:"cont-display-gsc"},qde=["src"],Wde={class:"gsc-cont-info-by-player-row1"},Zde={class:"shield-player-cont"},Xde=["src"];function Yde(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock(t.Fragment,null,[f.type==1?(t.openBlock(),t.createElementBlock("div",gde,[t.createElementVNode("div",yde,[f.data.shirt<10?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("0")],64)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(f.data.shirt),1)]),t.createElementVNode("div",vde,[t.createElementVNode("div",_de,[t.createElementVNode("div",bde,[t.createElementVNode("img",{class:"gsc-logo-player",src:f.data.img},null,8,xde)])]),t.createElementVNode("div",wde,[t.createElementVNode("div",{class:"gsc-cont-info-by-player-row2-line-name",style:t.normalizeStyle(f.data.section=="Historicos"&&f.data.type!="Postmatch"?"text-decoration: none !important; cursor: default !important":""),onClick:p[0]||(p[0]=w=>k.openProfile({playerId:f.data.playerid,teamId:f.data.teamid,seasonId:f.data.season,section:f.data.section,type:f.data.type}))},t.toDisplayString(f.data.name),5),t.createElementVNode("div",kde,[t.createElementVNode("div",Sde,[t.createElementVNode("img",{class:"gsc-img-country",src:f.data.nation},null,8,Tde),t.createElementVNode("div",{class:t.normalizeClass(f.position)},t.toDisplayString(f.data.position),3)]),t.createElementVNode("div",Cde,[f.data.yellowcard>=1&&f.data.redcard==0?(t.openBlock(),t.createElementBlock("div",Ade)):t.createCommentVNode("",!0),f.data.redcard>=1&&f.data.yellowcard==0?(t.openBlock(),t.createElementBlock("div",Ede)):t.createCommentVNode("",!0),f.data.yellowcard>=1&&f.data.redcard>=1?(t.openBlock(),t.createElementBlock("div",Mde)):t.createCommentVNode("",!0),f.data.yellowcard>=1&&f.data.redcard==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createTextVNode("'"+t.toDisplayString(f.data.yellowcardmin),1)],64)):t.createCommentVNode("",!0),f.data.redcard>=1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[t.createTextVNode("'"+t.toDisplayString(f.data.redcardmin),1)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.data.goalsMin,(w,n)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-goal_card_div_wrapper",key:n},[Ide,t.createElementVNode("div",null,"'"+t.toDisplayString(w),1)]))),128)),f.data.substitutionIn||f.data.substitutionOut?(t.openBlock(),t.createElementBlock("div",Pde,[Lde,t.createElementVNode("div",null,"'"+t.toDisplayString(f.data.substitutionMin),1)])):t.createCommentVNode("",!0)])])])])])):t.createCommentVNode("",!0),f.type==2?(t.openBlock(),t.createElementBlock("div",Bde,[t.createElementVNode("div",Ode,[f.data.shirt<10?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("0")],64)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(f.data.shirt),1)]),t.createElementVNode("div",zde,[t.createElementVNode("div",Dde,[t.createElementVNode("div",{class:"gsc-cont-info-by-player-row2-line-name2",style:t.normalizeStyle(f.data.section=="Historicos"&&f.data.type!="Postmatch"?"text-decoration: none !important; cursor: default !important":""),onClick:p[1]||(p[1]=w=>k.openProfile({playerId:f.data.playerid,teamId:f.data.teamid,seasonId:f.data.season,section:f.data.section,type:f.data.type}))},t.toDisplayString(f.data.name),5),t.createElementVNode("div",Fde,[t.createElementVNode("div",Nde,[f.data.yellowcard>=1&&f.data.redcard==0?(t.openBlock(),t.createElementBlock("div",Rde)):t.createCommentVNode("",!0),f.data.redcard>=1&&f.data.yellowcard==0?(t.openBlock(),t.createElementBlock("div",Vde)):t.createCommentVNode("",!0),f.data.yellowcard>=1&&f.data.redcard>=1?(t.openBlock(),t.createElementBlock("div",jde)):t.createCommentVNode("",!0),f.data.yellowcard>=1&&f.data.redcard==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createTextVNode("'"+t.toDisplayString(f.data.yellowcardmin),1)],64)):t.createCommentVNode("",!0),f.data.redcard>=1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[t.createTextVNode("'"+t.toDisplayString(f.data.redcardmin),1)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.data.goalsMin,(w,n)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-goal_card_div_wrapper",key:n},[Ude,t.createElementVNode("div",null,"'"+t.toDisplayString(w),1)]))),128)),f.data.substitutionIn||f.data.substitutionOut?(t.openBlock(),t.createElementBlock("div",$de,[Gde,t.createElementVNode("div",null,"'"+t.toDisplayString(f.data.substitutionMin),1)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Hde,[t.createElementVNode("div",{class:t.normalizeClass(f.position)},t.toDisplayString(f.data.position),3),t.createElementVNode("img",{class:"gsc-img-country",src:f.data.nation},null,8,qde)])])]),t.createElementVNode("div",Wde,[t.createElementVNode("div",Zde,[t.createElementVNode("img",{class:"gsc-logo-player",src:f.data.img},null,8,Xde)])])])])):t.createCommentVNode("",!0)],64)}const Kde=Yh(mde,[["render",Yde],["__scopeId","data-v-ce649720"]]),e6="/icn-filter.svg",Av="/icn-expand-arrow.svg",JE="/backarrow.svg",QE="/nextarrow.svg",Jde="_selectoritem_1dafy_137",Qde="_selectoritem2_1dafy_157",ehe="_gscheaderlineup_1dafy_177",the="_anNoEstn_1dafy_191",rhe="_groupsLeague_1dafy_197",nhe="_jugadores_1dafy_209",ahe="_switchOption_1dafy_219",ihe="_jugadores1_1dafy_239",ohe="_switchOption1_1dafy_249",she="_switchStatesBig_1dafy_265",lhe="_groupsLeagueParent_1dafy_283",che="_imgHomeTeamIcon_1dafy_301",uhe="_imgHomeTeamWrapper_1dafy_313",dhe="_teamContainer_1dafy_337",hhe="_name_1dafy_361",phe="_homeTeamContainer_1dafy_373",fhe="_div_1dafy_393",mhe="_scoreContainer_1dafy_401",ghe="_scoreContainerWrapper_1dafy_421",yhe="_teamContainer1_1dafy_447",vhe="_awayTeamContainer_1dafy_471",_he="_matchContainer_1dafy_491",bhe="_sliderMatchesChild_1dafy_509",xhe="_manchesterUnited_1dafy_521",whe="_sliderMatchesItem_1dafy_533",khe="_sliderMatches_1dafy_509",She="_sortIcon_1dafy_569",The="_filtros_1dafy_583",Che="_sortParent_1dafy_599",Ahe="_shapeIcon_1dafy_613",Ehe="_btnFilter_1dafy_623",Mhe="_btnFilter1_1dafy_651",Ihe="_btnFilterParent_1dafy_679",Phe="_backArrowIcon_1dafy_695",Lhe="_teamContainer2_1dafy_707",Bhe="_homeTeam_1dafy_373",Ohe="_div4_1dafy_735",zhe="_finalScore_1dafy_745",Dhe="_manchesterUnited1_1dafy_771",Fhe="_scoreContainer1_1dafy_785",Nhe="_match_1dafy_491",Rhe="_manchesterUnited2_1dafy_821",Vhe="_btnDetails_1dafy_831",jhe="_matchContainer1_1dafy_851",Uhe="_goalChild_1dafy_867",$he="_goal_1dafy_867",Ghe="_manchesterUnited3_1dafy_893",Hhe="_minuteEvent_1dafy_907",qhe="_yellowCard_1dafy_921",Whe="_awayTeamEvents_1dafy_935",Zhe="_rectangle_1dafy_949",Xhe="_homeTeamEvents_1dafy_963",Yhe="_totalEvents_1dafy_979",Khe="_headerSeccionAlineaciones1_1dafy_995",Jhe="_switchOption3_1dafy_1017",Qhe="_switchOption4_1dafy_1041",epe="_switchStatesBig1_1dafy_1061",tpe="_manchesterUnited13_1dafy_1075",rpe="_homeTeamContainer1_1dafy_1085",npe="_scoreContainer2_1dafy_1099",ape="_matchContainer2_1dafy_1127",ipe="_manchesterUnited14_1dafy_1147",ope="_sliderMatchesInner_1dafy_1161",spe="_rectangleIcon_1dafy_1181",lpe="_sliderMatches1_1dafy_1201",cpe="_containerData_1dafy_1217",upe="_headerSeccionAlineaciones2_1dafy_1245",dpe="_headerSeccionAlineaciones_1dafy_995",hpe="_headerSeccionAlineaciones21200_1dafy_1293",ppe="_headerSeccionAlineaciones1540_1dafy_1299",fpe="_headerSeccionAlineaciones2540_1dafy_1307",mpe={selectoritem:Jde,selectoritem2:Qde,gscheaderlineup:ehe,anNoEstn:the,groupsLeague:rhe,jugadores:nhe,switchOption:ahe,jugadores1:ihe,switchOption1:ohe,switchStatesBig:she,groupsLeagueParent:lhe,imgHomeTeamIcon:che,imgHomeTeamWrapper:uhe,teamContainer:dhe,name:hhe,homeTeamContainer:phe,div:fhe,scoreContainer:mhe,scoreContainerWrapper:ghe,teamContainer1:yhe,awayTeamContainer:vhe,matchContainer:_he,sliderMatchesChild:bhe,manchesterUnited:xhe,sliderMatchesItem:whe,sliderMatches:khe,sortIcon:She,filtros:The,sortParent:Che,shapeIcon:Ahe,btnFilter:Ehe,btnFilter1:Mhe,btnFilterParent:Ihe,backArrowIcon:Phe,teamContainer2:Lhe,homeTeam:Bhe,div4:Ohe,finalScore:zhe,manchesterUnited1:Dhe,scoreContainer1:Fhe,match:Nhe,manchesterUnited2:Rhe,btnDetails:Vhe,matchContainer1:jhe,goalChild:Uhe,goal:$he,manchesterUnited3:Ghe,minuteEvent:Hhe,yellowCard:qhe,awayTeamEvents:Whe,rectangle:Zhe,homeTeamEvents:Xhe,totalEvents:Yhe,headerSeccionAlineaciones1:Khe,switchOption3:Jhe,switchOption4:Qhe,switchStatesBig1:epe,manchesterUnited13:tpe,homeTeamContainer1:rpe,scoreContainer2:npe,matchContainer2:ape,manchesterUnited14:ipe,sliderMatchesInner:ope,rectangleIcon:spe,sliderMatches1:lpe,containerData:cpe,headerSeccionAlineaciones2:upe,headerSeccionAlineaciones:dpe,headerSeccionAlineaciones21200:hpe,headerSeccionAlineaciones1540:ppe,headerSeccionAlineaciones2540:fpe},gpe={components:{GSCCarousel:ab,GscSwitchComponent:Tv},props:{optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},gameRecientes:{type:Number,default:0},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",{season_id:e.season_id,game_id:e.id})}catch(p){throw new Error(p)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=540?this.$style.headerSeccionAlineaciones2540:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{changeCarouselItem(e){this.$emit("input",{season_id:e.selectedItem.season,game_id:e.selectedItem.game,ht_abrev:e.selectedItem.home_team_abbreviation,at_abrev:e.selectedItem.away_team_abbreviation}),this.selectedOption=e.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},ype=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),vpe=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1),_pe=["src"],bpe=["src"],xpe=["src"],wpe=["src"],kpe=["src"],Spe=["src"];function Tpe(e,p,f,F,K,k){const w=t.resolveComponent("GscSwitchComponent"),n=t.resolveComponent("GSCCarousel");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.gscheaderlineup)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(k.headerSeccionAlineaciones1Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[ype,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),vpe],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[(f.gameInfo.game_status==0||f.gameInfo.game_status==4)&&f.gameRecientes>0?(t.openBlock(),t.createBlock(w,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:f.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:k.clickOnSelectOption},null,8,["selectedOption","onInput"])):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameHistoric[K.selectedOption].objgame.home_team+".png"},null,10,_pe)):t.createCommentVNode("",!0)],2)],2),f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameHistoric[K.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer)},[f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(f.gameHistoric[K.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)}," - ",2),f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(f.gameHistoric[K.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameHistoric[K.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameHistoric[K.selectedOption].objgame.away_team+".png"},null,10,bpe)):t.createCommentVNode("",!0)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches)},[f.gameHistoric.length>0?(t.openBlock(),t.createBlock(n,{key:0,"current-item-index":K.selectedOption,onInput:k.changeCarouselItem,items:f.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:_})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},t.toDisplayString(_.description),3)]),_:1},8,["current-item-index","onInput","items"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:e6},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Av},null,2)],2),t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Jornada",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"2",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Av},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:JE},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(f.gameHistoric[K.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0),f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameHistoric[K.selectedOption].objgame.home_team+".png"},null,10,xpe)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(f.gameHistoric[K.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(f.gameHistoric[K.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[f.teamActive=="home"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameHistoric[K.selectedOption].objgame.away_team+".png"},null,10,wpe)):t.createCommentVNode("",!0),f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(f.gameHistoric[K.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:QE},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(k.headerSeccionAlineaciones2Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig1),id:"switch-lineup"},[(f.gameInfo.game_status==0||f.gameInfo.game_status==4)&&f.gameRecientes>0?(t.openBlock(),t.createBlock(w,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:f.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:k.clickOnSelectOption},null,8,["selectedOption","onInput"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited13)},"Alineación utilizada en: ",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameHistoric[K.selectedOption].objgame.home_team+".png"},null,10,kpe)):t.createCommentVNode("",!0)],2)],2),f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameHistoric[K.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer2)},[f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(f.gameHistoric[K.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(f.gameHistoric[K.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameHistoric[K.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameHistoric[K.selectedOption].objgame.away_team+".png"},null,10,Spe)):t.createCommentVNode("",!0)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches1)},[f.gameHistoric.length>0?(t.openBlock(),t.createBlock(n,{key:0,"current-item-index":K.selectedOption,onInput:k.changeCarouselItem,items:f.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:_})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem2)},t.toDisplayString(_.description),3)]),_:1},8,["current-item-index","onInput","items"])):t.createCommentVNode("",!0)],2)],2)],2)],2)],2)}const Cpe={$style:mpe},Ape=Yh(gpe,[["render",Tpe],["__cssModules",Cpe]]),ob=e=>(t.pushScopeId("data-v-2118a6cd"),e=e(),t.popScopeId(),e),Epe=t.createStaticVNode('<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-2118a6cd><g id="vuesax/outline/sort" data-v-2118a6cd><g id="sort" data-v-2118a6cd><path id="Vector" opacity="0.7" d="M15.75 5.8125H2.25C1.9425 5.8125 1.6875 5.5575 1.6875 5.25C1.6875 4.9425 1.9425 4.6875 2.25 4.6875H15.75C16.0575 4.6875 16.3125 4.9425 16.3125 5.25C16.3125 5.5575 16.0575 5.8125 15.75 5.8125Z" fill="white" data-v-2118a6cd></path><path id="Vector_2" opacity="0.7" d="M13.5 9.5625H4.5C4.1925 9.5625 3.9375 9.3075 3.9375 9C3.9375 8.6925 4.1925 8.4375 4.5 8.4375H13.5C13.8075 8.4375 14.0625 8.6925 14.0625 9C14.0625 9.3075 13.8075 9.5625 13.5 9.5625Z" fill="white" data-v-2118a6cd></path><path id="Vector_3" opacity="0.7" d="M10.5 13.3125H7.5C7.1925 13.3125 6.9375 13.0575 6.9375 12.75C6.9375 12.4425 7.1925 12.1875 7.5 12.1875H10.5C10.8075 12.1875 11.0625 12.4425 11.0625 12.75C11.0625 13.0575 10.8075 13.3125 10.5 13.3125Z" fill="white" data-v-2118a6cd></path></g></g></svg>',1),Mpe=["value"],Ipe=ob(()=>t.createElementVNode("svg",{width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[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:"#92929D"})],-1)),Ppe={class:"filter-modal__padding"},Lpe={class:"filter-modal__content-header"},Bpe=ob(()=>t.createElementVNode("h3",null,"Jugando como:",-1)),Ope={class:"filter-modal__content-options"},zpe=["onClick"],Dpe={class:"filter-modal__content-header"},Fpe=ob(()=>t.createElementVNode("h3",null,"Resultados:",-1)),Npe={class:"filter-modal__content-options"},Rpe=["onClick"],Vpe=ob(()=>t.createElementVNode("hr",{style:{"border-color":"#FFFFFF33"}},null,-1)),jpe={__name:"gsc-filter",props:{name:{type:String,default:""},zIndex:{type:Number,default:1},showButton:{type:Boolean,default:!1},marginModal:{type:String,default:"0px"},isOpen:{type:Boolean,default:!1},reset:{type:Boolean,default:!1},itemSelect:{type:Object,default:()=>{}},componentWidth:{type:Number,default:768,validator(e){return e>0}}},emits:["update:model-value","change"],setup(e,{emit:p}){const f=e;t.useCssVars(d=>({d00c78a6:e.marginModal}));const F=[{id:"local",name:"Local"},{id:"visit",name:"Visitante"}],K=[{id:"win",name:"Ganado"},{id:"draw",name:"Empatados"},{id:"lose",name:"Perdidos"}],k=t.ref(null),w=t.ref(["local","visit"]),n=t.ref(["win","draw","lose"]),_=t.ref(!0),h=t.ref(!0),r=t.ref(!0),b=t.ref(!0),y=t.ref(["local","visit"]),g=t.ref(["win","draw","lose"]),c=()=>{k.value.focus(),w.value=JSON.parse(JSON.stringify(y.value)),n.value=JSON.parse(JSON.stringify(g.value)),_.value=r.value,h.value=b.value};t.watch(()=>f.itemSelect,d=>{d&&(y.value=d.selectedFilterTeam,g.value=d.selectedFilterResults)}),t.watch(()=>f.reset,d=>{d&&i()});const a=(d,m)=>{let v;m==="team"?v=y.value:v=g.value;const T=v.findIndex(A=>A===d);T==-1?v.push(d):m=="team"&&y.value.length==2?v.splice(T,1):(m=="team"&&v.push(d),g.value.length>1&&v.splice(T,1)),r.value=y.value.length==2,b.value=g.value.length==3},i=()=>{y.value=["local","visit"],g.value=["win","draw","lose"],r.value=!0,b.value=!0,p("change",{selectedFilterTeam:y.value,selectedFilterResults:g.value})},u=()=>{p("change",{selectedFilterTeam:y.value,selectedFilterResults:g.value})},s=()=>{p("change",{selectedFilterTeam:y.value,selectedFilterResults:g.value})};return(d,m)=>(t.openBlock(),t.createElementBlock("div",{class:"filter-modal",style:t.normalizeStyle({zIndex:e.zIndex})},[e.showButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"filter-modal__input",onClick:c},[Epe,t.createElementVNode("input",{type:"text",value:e.name,readonly:""},null,8,Mpe),Ipe])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["filter-modal__content",e.isOpen?"open":"close"]),tabindex:"0",ref_key:"filterElement",ref:k,onFocusout:m[4]||(m[4]=v=>{e.isOpen=!1,s()})},[t.createElementVNode("div",Ppe,[t.createElementVNode("div",Lpe,[Bpe,t.createVNode(rb,{modelValue:r.value,"onUpdate:modelValue":[m[0]||(m[0]=v=>r.value=v),m[1]||(m[1]=v=>v&&(y.value=["local","visit"]))],label:"Todos"},null,8,["modelValue"])]),t.createElementVNode("ul",Ope,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(F,v=>t.createElementVNode("li",{onClick:T=>a(v.id,"team"),class:t.normalizeClass({active:y.value.includes(v.id)})},t.toDisplayString(v.name),11,zpe)),64))]),t.createElementVNode("div",Dpe,[Fpe,t.createVNode(rb,{modelValue:b.value,"onUpdate:modelValue":[m[2]||(m[2]=v=>b.value=v),m[3]||(m[3]=v=>v&&(g.value=["win","lose","draw"]))],label:"Todos"},null,8,["modelValue"])]),t.createElementVNode("ul",Npe,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(K,v=>t.createElementVNode("li",{onClick:T=>a(v.id,"player"),class:t.normalizeClass({active:g.value.includes(v.id)})},t.toDisplayString(v.name),11,Rpe)),64))])]),Vpe,t.createElementVNode("div",{class:"filter-modal__buttons"},[t.createElementVNode("div",{class:"button filter-modal__text-btn",onClick:i},"Quitar filtros"),t.createElementVNode("div",{class:"button filter-modal__outline-btn",onClick:u},"Listo")])],34)],4))}},Upe=Yh(jpe,[["__scopeId","data-v-2118a6cd"]]),$pe="/icn-filter1.svg",Gpe="/icn-expand-arrow1.svg",Hpe="/icn-filter2.svg",qpe="/icn-arrow-expand.svg",Wpe="_containernofoundsearchrecientes_1gxk5_159",Zpe="_btndeletefilters_1gxk5_215",Xpe="_leyenddeleteshow_1gxk5_247",Ype="_selectoritem_1gxk5_261",Kpe="_anNoEstn_1gxk5_279",Jpe="_groupsLeague_1gxk5_287",Qpe="_historicas_1gxk5_297",efe="_switchOption_1gxk5_309",tfe="_recientes_1gxk5_331",rfe="_switchOption1_1gxk5_343",nfe="_switchOption2_1gxk5_369",afe="_switchStatesBig_1gxk5_387",ife="_groupsLeagueParent_1gxk5_407",ofe="_imgHomeTeamIcon_1gxk5_427",sfe="_imgHomeTeamWrapper_1gxk5_441",lfe="_teamContainer_1gxk5_467",cfe="_name_1gxk5_493",ufe="_homeTeamContainer_1gxk5_507",dfe="_div_1gxk5_529",hfe="_scoreContainer_1gxk5_539",pfe="_scoreContainerWrapper_1gxk5_561",ffe="_teamContainer1_1gxk5_587",mfe="_awayTeamContainer_1gxk5_613",gfe="_matchContainer_1gxk5_635",yfe="_sliderMatchesChild_1gxk5_655",vfe="_manchesterUnited_1gxk5_669",_fe="_sliderMatchesItem_1gxk5_683",bfe="_sliderMatches_1gxk5_655",xfe="_sortIcon_1gxk5_719",wfe="_filtros_1gxk5_735",kfe="_sortParent_1gxk5_753",Sfe="_shapeIcon_1gxk5_769",Tfe="_btnFilter_1gxk5_781",Cfe="_btnFilter1_1gxk5_813",Afe="_btnFilterParent_1gxk5_843",Efe="_backArrowIcon_1gxk5_861",Mfe="_teamContainer2_1gxk5_875",Ife="_homeTeam_1gxk5_507",Pfe="_div4_1gxk5_907",Lfe="_finalScore_1gxk5_919",Bfe="_manchesterUnited1_1gxk5_947",Ofe="_scoreContainer1_1gxk5_963",zfe="_match_1gxk5_635",Dfe="_manchesterUnited2_1gxk5_997",Ffe="_btnDetails_1gxk5_1023",Nfe="_matchContainer1_1gxk5_1047",Rfe="_goalChild_1gxk5_1065",Vfe="_goal_1gxk5_1065",jfe="_manchesterUnited3_1gxk5_1095",Ufe="_minuteEvent_1gxk5_1111",$fe="_yellowCard_1gxk5_1127",Gfe="_awayTeamEvents_1gxk5_1143",Hfe="_rectangle_1gxk5_1159",qfe="_homeTeamEvents_1gxk5_1175",Wfe="_totalEvents_1gxk5_1193",Zfe="_headerSeccionAlineaciones1_1gxk5_1211",Xfe="_sliderMatchesInner_1gxk5_1233",Yfe="_btnFilter2_1gxk5_1247",Kfe="_btnDetails1_1gxk5_1281",Jfe="_matchContainer3_1gxk5_1299",Qfe="_backArrowIcon1_1gxk5_1321",eme="_match1_1gxk5_1335",tme="_headerSeccionAlineaciones2_1gxk5_1347",rme="_jugadores2_1gxk5_1369",nme="_switchOption6_1gxk5_1383",ame="_switchOption7_1gxk5_1405",ime="_switchStatesBig2_1gxk5_1431",ome="_manchesterUnited26_1gxk5_1447",sme="_homeTeamContainer2_1gxk5_1459",lme="_vectorIcon_1gxk5_1475",cme="_teamSwitch_1gxk5_1487",ume="_matchContainer5_1gxk5_1513",dme="_manchesterUnited27_1gxk5_1535",hme="_sliderMatchesChild1_1gxk5_1551",pme="_sliderMatchesChild2_1gxk5_1573",fme="_sliderMatches2_1gxk5_1595",mme="_filtros2_1gxk5_1615",gme="_btnFilter4_1gxk5_1635",yme="_jornada2_1gxk5_1667",vme="_filterMatchday_1gxk5_1681",_me="_btnDetails2_1gxk5_1703",bme="_filtersContainer_1gxk5_1725",xme="_matchContainer6_1gxk5_1745",wme="_matchDetailContainer_1gxk5_1763",kme="_containerData_1gxk5_1783",Sme="_headerSeccionAlineaciones3_1gxk5_1813",Tme="_headerSeccionAlineaciones_1gxk5_1211",Cme="_headerSeccionAlineaciones31200_1gxk5_1865",Ame="_headerSeccionAlineaciones3420_1gxk5_1891",Eme="_headerSeccionAlineaciones3880_1gxk5_1917",Mme="_headerSeccionAlineaciones3540_1gxk5_1941",Ime="_headerSeccionAlineaciones11200_1gxk5_1967",Pme="_headerSeccionAlineaciones1420_1gxk5_1995",Lme="_headerSeccionAlineaciones1880_1gxk5_2017",Bme="_headerSeccionAlineaciones21200_1gxk5_2039",Ome="_headerSeccionAlineaciones2420_1gxk5_2067",zme="_headerSeccionAlineaciones2880_1gxk5_2091",Dme="_headerSeccionAlineaciones2540_1gxk5_2113",Fme={containernofoundsearchrecientes:Wpe,"text-containernofoundsearchrecientes":"_text-containernofoundsearchrecientes_1gxk5_171","btn-delete-filters":"_btn-delete-filters_1gxk5_183",btndeletefilters:Zpe,leyenddeleteshow:Xpe,selectoritem:Ype,anNoEstn:Kpe,groupsLeague:Jpe,historicas:Qpe,switchOption:efe,recientes:tfe,switchOption1:rfe,switchOption2:nfe,switchStatesBig:afe,groupsLeagueParent:ife,imgHomeTeamIcon:ofe,imgHomeTeamWrapper:sfe,teamContainer:lfe,name:cfe,homeTeamContainer:ufe,div:dfe,scoreContainer:hfe,scoreContainerWrapper:pfe,teamContainer1:ffe,awayTeamContainer:mfe,matchContainer:gfe,sliderMatchesChild:yfe,manchesterUnited:vfe,sliderMatchesItem:_fe,sliderMatches:bfe,sortIcon:xfe,filtros:wfe,sortParent:kfe,shapeIcon:Sfe,btnFilter:Tfe,btnFilter1:Cfe,btnFilterParent:Afe,backArrowIcon:Efe,teamContainer2:Mfe,homeTeam:Ife,div4:Pfe,finalScore:Lfe,manchesterUnited1:Bfe,scoreContainer1:Ofe,match:zfe,manchesterUnited2:Dfe,btnDetails:Ffe,matchContainer1:Nfe,goalChild:Rfe,goal:Vfe,manchesterUnited3:jfe,minuteEvent:Ufe,yellowCard:$fe,awayTeamEvents:Gfe,rectangle:Hfe,homeTeamEvents:qfe,totalEvents:Wfe,headerSeccionAlineaciones1:Zfe,sliderMatchesInner:Xfe,btnFilter2:Yfe,btnDetails1:Kfe,matchContainer3:Jfe,backArrowIcon1:Qfe,match1:eme,headerSeccionAlineaciones2:tme,jugadores2:rme,switchOption6:nme,switchOption7:ame,switchStatesBig2:ime,manchesterUnited26:ome,homeTeamContainer2:sme,vectorIcon:lme,teamSwitch:cme,matchContainer5:ume,manchesterUnited27:dme,sliderMatchesChild1:hme,sliderMatchesChild2:pme,sliderMatches2:fme,filtros2:mme,btnFilter4:gme,jornada2:yme,filterMatchday:vme,btnDetails2:_me,filtersContainer:bme,matchContainer6:xme,matchDetailContainer:wme,containerData:kme,headerSeccionAlineaciones3:Sme,headerSeccionAlineaciones:Tme,headerSeccionAlineaciones31200:Cme,headerSeccionAlineaciones3420:Ame,headerSeccionAlineaciones3880:Eme,headerSeccionAlineaciones3540:Mme,headerSeccionAlineaciones11200:Ime,headerSeccionAlineaciones1420:Pme,headerSeccionAlineaciones1880:Lme,headerSeccionAlineaciones21200:Bme,headerSeccionAlineaciones2420:Ome,headerSeccionAlineaciones2880:zme,headerSeccionAlineaciones2540:Dme},Nme={components:{GSCCarousel:ab,GscSwitchComponent:Tv,GSCDropdown:Q4,GSCFilter:Upe,GSCSwitchRadio:NE,GSCMatchDetails:jE},props:{widthSize:{type:Number,default:0},optionSelected:{type:String,default:"Historicos"},selectedOption:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},watch:{optionSelected:{immediate:!0,handler:async function(e){e=="Recientes"&&(this.auxISsection=1)}},gameInfo:{immediate:!0,handler:async function(e){try{this.teamSelect=e.home_team_abbreviation,this.matchFilter()}catch(p){throw new Error(p)}}},gameRecientes:{immediate:!0,handler:async function(e){this.matchFilter()}}},data(){return{playminutes:[],showDetails:!1,teamSelect:"",defaultDropItem:{},updateCarouselGames:0,valLast:{},selectedIndexOption:0,openfiltervalue:!1,vDeleteFilter:!1,filterObject:{},coutChange:0,auxISsection:0,matchdaysFiltersUpdate:[],gamesFiltersUpdate:[],localDetails:[],keyUpdate:0,foreignDetails:[]}},computed:{matchdaysFinal(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==1&&e.push(this.matchdaysFiltersUpdate[p]);for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==3&&e.push(this.matchdaysFiltersUpdate[p])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==1&&e.push(this.matchdaysFiltersUpdate[p]);for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==2&&e.push(this.matchdaysFiltersUpdate[p])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==3&&e.push(this.matchdaysFiltersUpdate[p]);for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==2&&e.push(this.matchdaysFiltersUpdate[p])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==1&&e.push(this.matchdaysFiltersUpdate[p]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==2&&e.push(this.matchdaysFiltersUpdate[p]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==3&&e.push(this.matchdaysFiltersUpdate[p])}else for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)e.push(this.matchdaysFiltersUpdate[p]);else for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)e.push(this.matchdaysFiltersUpdate[p]);return e.sort((p,f)=>f.id-p.id),e},gameRecientesFilter(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let p=0;p<this.gamesFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==1||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==1)&&e.push(this.gamesFiltersUpdate[p]);for(let p=0;p<this.gamesFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==3||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==3)&&e.push(this.gamesFiltersUpdate[p])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let p=0;p<this.gamesFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==1||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==1)&&e.push(this.gamesFiltersUpdate[p]);for(let p=0;p<this.gamesFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==2||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==2)&&e.push(this.gamesFiltersUpdate[p])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let p=0;p<this.gamesFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==3||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==3)&&e.push(this.gamesFiltersUpdate[p]);for(let p=0;p<this.gamesFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==2||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==2)&&e.push(this.gamesFiltersUpdate[p])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==1||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==1)&&e.push(this.gamesFiltersUpdate[p]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==2||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==2)&&e.push(this.gamesFiltersUpdate[p]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==3||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==3)&&e.push(this.gamesFiltersUpdate[p])}else for(let p=0;p<this.gamesFiltersUpdate.length;p++)e.push(this.gamesFiltersUpdate[p]);else for(let p=0;p<this.gamesFiltersUpdate.length;p++)e.push(this.gamesFiltersUpdate[p]);return e.sort((p,f)=>p.matchday_id-f.matchday_id),e},headerSeccionAlineaciones1Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones1420:e<=880?this.$style.headerSeccionAlineaciones1880:e<=1200?this.$style.headerSeccionAlineaciones11200:this.$style.headerSeccionAlineaciones1},headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones2420:e<=540?this.$style.headerSeccionAlineaciones2540:e<=880?this.$style.headerSeccionAlineaciones2880:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones3Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones3420:e<=540?this.$style.headerSeccionAlineaciones3540:e<=880?this.$style.headerSeccionAlineaciones3880:e<=1200?this.$style.headerSeccionAlineaciones31200:this.$style.headerSeccionAlineaciones3}},methods:{clickOnValueFilter(){this.auxISsection=0},clickOnValueCarrousel(){this.auxISsection=0},deleteFilters(){this.vDeleteFilter=!0,setTimeout(()=>{this.vDeleteFilter=!1},200)},clickShowDetails(){this.showDetails=!this.showDetails},matchFilter(){var e=[],p=[];if(Object.keys(this.filterObject).length>0){if(Object.keys(this.filterObject.selectedFilterTeam).length!=2)for(let f=0;f<this.gameRecientes[this.teamSelect].length;f++)this.filterObject.selectedFilterTeam[0]=="local"?this.gameRecientes[this.teamSelect][f].home_team_abbreviation==this.teamSelect&&(e.push({name:this.gameRecientes[this.teamSelect][f].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][f].matchday_id,match_result:this.gameRecientes[this.teamSelect][f].home_match_result}),p.push(this.gameRecientes[this.teamSelect][f])):this.gameRecientes[this.teamSelect][f].away_team_abbreviation==this.teamSelect&&(e.push({name:this.gameRecientes[this.teamSelect][f].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][f].matchday_id,match_result:this.gameRecientes[this.teamSelect][f].visiting_match_result}),p.push(this.gameRecientes[this.teamSelect][f]));else if(this.gameRecientes[this.teamSelect])for(let f=0;f<this.gameRecientes[this.teamSelect].length;f++)e.push({name:this.gameRecientes[this.teamSelect][f].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][f].matchday_id,match_result:this.gameRecientes[this.teamSelect][f].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][f].home_match_result:this.gameRecientes[this.teamSelect][f].visiting_match_result}),p.push(this.gameRecientes[this.teamSelect][f])}else if(this.gameRecientes[this.teamSelect])for(let f=0;f<this.gameRecientes[this.teamSelect].length;f++)e.push({name:this.getRound(this.gameRecientes[this.teamSelect][f].matchday_abbreviation),id:this.gameRecientes[this.teamSelect][f].matchday_id,match_result:this.gameRecientes[this.teamSelect][f].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][f].home_match_result:this.gameRecientes[this.teamSelect][f].visiting_match_result}),p.push(this.gameRecientes[this.teamSelect][f]);this.gamesFiltersUpdate=p,this.matchdaysFiltersUpdate=e},getRound(e){let p=e.replace("M","Jornada ");return p=p.replace("PO1","CFI"),p=p.replace("PO2","CFV"),p=p.replace("PO3","SFI"),p=p.replace("PO4","SFV"),p=p.replace("PO5","FI"),p=p.replace("PO6","FV"),p},changeFiltersModal(e){this.auxISsection=1,this.filterObject=e,this.openfiltervalue=!1,this.matchFilter(),setTimeout(()=>{this.keyUpdate+=1,this.updateCarouselGames+=1},600)},openFilter(){this.openfiltervalue=!0},getMinutesData(e){this.localDetails=[],this.foreignDetails=[];for(let p=0;p<e.home_goals_minutes.length;p++)this.localDetails.push({description:e.home_goals_minutes[p],icon:"goal"});for(let p=0;p<e.visiting_goals_minutes.length;p++)this.foreignDetails.push({description:e.visiting_goals_minutes[p],icon:"goal"});for(let p=0;p<e.home_yellow_cards_minutes.length;p++)this.localDetails.push({description:e.home_yellow_cards_minutes[p],icon:"yellow-card"});for(let p=0;p<e.away_yellow_cards_minutes.length;p++)this.foreignDetails.push({description:e.away_yellow_cards_minutes[p],icon:"yellow-card"});for(let p=0;p<e.home_red_cards_minutes.length;p++)this.localDetails.push({description:e.home_red_cards_minutes[p],icon:"red-card"});for(let p=0;p<e.away_red_cards_minutes.length;p++)this.foreignDetails.push({description:e.away_red_cards_minutes[p],icon:"red-card"})},changeCarouselItem(e){setTimeout(()=>{JSON.stringify(e)!==JSON.stringify(this.valLast)&&this.gameRecientesFilter&&this.gameRecientesFilter.length>0&&e&&(e.selectedItem===void 0&&(e.selectedItem=this.gameRecientesFilter[this.gameRecientesFilter.length-1],e.selectedItemIndex=this.gameRecientesFilter.length-1),this.valLast=e,this.auxISsection==1?(this.$emit("input",{selectedItem:this.gameRecientesFilter[this.gameRecientesFilter.length-1],selectedItemIndex:this.gameRecientesFilter.length-1}),this.getMinutesData(this.gameRecientesFilter[this.gameRecientesFilter.length-1].minutes),this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id}):(this.$emit("input",e),this.getMinutesData(e.selectedItem.minutes),this.selectedIndexOption=e.selectedItemIndex,this.defaultDropItem={propName:"id",value:e.selectedItem.matchday_id}),this.keyUpdate+=1)},200)},changeDropdown(e){if(this.gameRecientesFilter&&this.gameRecientesFilter.length>0)if(this.auxISsection==1)this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id};else{const p=this.gameRecientesFilter.findIndex(f=>f.matchday_id==e.id);p!=-1&&(this.selectedIndexOption=p,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[p].matchday_id})}},changeSwitchRadio(e){this.auxISsection=1,typeof e!="object"&&(this.teamSelect=e,this.$emit("changeTeam",this.teamSelect),this.updateCarouselGames+=1,this.matchFilter())},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},Rme=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),Vme=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),jme=["src"],Ume=["src"],$me={class:"selector-tournaments"},Gme=["src"],Hme=["src"],qme={key:1},Wme=t.createElementVNode("br",null,null,-1),Zme=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),Xme=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),Yme=["src"],Kme=["src"],Jme={class:"selector-tournaments"},Qme=["src"],e0e=["src"],t0e={key:1},r0e=t.createElementVNode("br",null,null,-1),n0e=["src"],a0e=["src"],i0e={class:"selector-tournaments"},o0e=["src"],s0e=["src"],l0e={key:1},c0e=t.createElementVNode("br",null,null,-1);function u0e(e,p,f,F,K,k){const w=t.resolveComponent("GscSwitchComponent"),n=t.resolveComponent("GSCSwitchRadio"),_=t.resolveComponent("GSCFilter"),h=t.resolveComponent("GSCDropdown"),r=t.resolveComponent("GSCCarousel"),b=t.resolveComponent("GSCMatchDetails");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(k.headerSeccionAlineaciones1Class),id:"header-desktop-full"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[Rme,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),Vme],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(w,{buttons:["Historicos","Recientes","Probables"],selectedOption:f.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:k.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.home_team+".png"},null,10,jme)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(n,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":f.gameInfo.home_team_abbreviation,onChange:k.changeSwitchRadio,"text-option-right":f.gameInfo.away_team_abbreviation,"font-color":"white","value-default":K.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.away_team+".png"},null,10,Ume)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:p[0]||(p[0]=(...y)=>k.openFilter&&k.openFilter(...y))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:e6},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Av},null,2),t.createVNode(_,{"item-select":K.filterObject,"is-open":K.openfiltervalue,onChange:k.changeFiltersModal,reset:K.vDeleteFilter,"margin-modal":"-83px"},null,8,["item-select","is-open","onChange","reset"])],2),k.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{onClick:k.clickOnValueFilter,key:K.keyUpdate,"default-item-by-prop":K.defaultDropItem,class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters",items:k.matchdaysFinal,onInput:k.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(y=>[t.createElementVNode("div",$me,t.toDisplayString(y.selectedItem.name),1)]),availableItem:t.withCtx(({item:y})=>[t.createElementVNode("div",null,t.toDisplayString(y.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[k.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(r,{onClick:k.clickOnValueCarrousel,key:K.updateCarouselGames,"default-item-by-index":K.selectedIndexOption,items:k.gameRecientesFilter,onInput:k.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:y})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.home_team+".png"},null,10,Gme)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(y.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(y.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(y.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[y.home_team_abbreviation==K.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),y.away_team_abbreviation==K.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.away_team+".png"},null,10,Hme),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["onClick","default-item-by-index","items","onInput"])):(t.openBlock(),t.createElementBlock("div",qme,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[t.createTextVNode("No hay resultados con los criterios"),Wme,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:p[1]||(p[1]=(...y)=>k.deleteFilters&&k.deleteFilters(...y))},"Eliminar filtros aplicados",2)],2)])),K.showDetails?(t.openBlock(),t.createBlock(b,{key:2,style:{"margin-top":"30px"},localDetails:K.localDetails,foreignDetails:K.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:p[2]||(p[2]=(...y)=>k.clickShowDetails&&k.clickShowDetails(...y))},[K.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(k.headerSeccionAlineaciones2Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[Zme,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),Xme],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(w,{buttons:["Historicos","Recientes","Probables"],selectedOption:f.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:k.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.home_team+".png"},null,10,Yme)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(n,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":f.gameInfo.home_team_abbreviation,onChange:k.changeSwitchRadio,"text-option-right":f.gameInfo.away_team_abbreviation,"font-color":"white","value-default":K.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.away_team+".png"},null,10,Kme)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer3)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter2),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:p[3]||(p[3]=(...y)=>k.openFilter&&k.openFilter(...y))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:$pe},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Gpe},null,2),t.createVNode(_,{"item-select":K.filterObject,"is-open":K.openfiltervalue,onChange:k.changeFiltersModal,"margin-modal":"-99px"},null,8,["item-select","is-open","onChange"])],2),k.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{onClick:k.clickOnValueFilter,key:K.keyUpdate,"default-item-by-prop":K.defaultDropItem,class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters",items:k.matchdaysFinal,onInput:k.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(y=>[t.createElementVNode("div",Jme,t.toDisplayString(y.selectedItem.name),1)]),availableItem:t.withCtx(({item:y})=>[t.createElementVNode("div",null,t.toDisplayString(y.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:p[4]||(p[4]=(...y)=>k.clickShowDetails&&k.clickShowDetails(...y))},[K.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.match1)},[k.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(r,{items:k.gameRecientesFilter,key:K.updateCarouselGames,"default-item-by-index":K.selectedIndexOption,onInput:k.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:y})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.home_team+".png"},null,10,Qme)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(y.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(y.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(y.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[y.home_team_abbreviation==K.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),y.away_team_abbreviation==K.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.away_team+".png"},null,10,e0e),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","default-item-by-index","onInput"])):(t.openBlock(),t.createElementBlock("div",t0e,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[t.createTextVNode("No hay resultados con los criterios"),r0e,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:p[5]||(p[5]=(...y)=>k.deleteFilters&&k.deleteFilters(...y))},"Eliminar filtros aplicados",2)],2)])),K.showDetails?(t.openBlock(),t.createBlock(b,{key:2,style:{"margin-top":"30px"},localDetails:K.localDetails,foreignDetails:K.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(k.headerSeccionAlineaciones3Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig2),id:"switch-lineup"},[t.createVNode(w,{buttons:["Historicos","Recientes","Probables"],selectedOption:f.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:k.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited26)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer5),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.home_team+".png"},null,10,n0e)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(n,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":f.gameInfo.home_team_abbreviation,onChange:k.changeSwitchRadio,"text-option-right":f.gameInfo.away_team_abbreviation,"font-color":"white","value-default":K.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.away_team+".png"},null,10,a0e)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtersContainer)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter4),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:p[6]||(p[6]=(...y)=>k.openFilter&&k.openFilter(...y))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:Hpe},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros2)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:qpe},null,2),t.createVNode(_,{"item-select":K.filterObject,"is-open":K.openfiltervalue,onChange:k.changeFiltersModal,"margin-modal":"-75px"},null,8,["item-select","is-open","onChange"])],2),k.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{onClick:k.clickOnValueFilter,key:K.keyUpdate,"default-item-by-prop":K.defaultDropItem,class:t.normalizeClass(e.$style.filterMatchday),id:"menu-matchday",items:k.matchdaysFinal,onInput:k.changeDropdown,height:"25px",width:"100px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(y=>[t.createElementVNode("div",i0e,t.toDisplayString(y.selectedItem.name),1)]),availableItem:t.withCtx(({item:y})=>[t.createElementVNode("div",null,t.toDisplayString(y.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:p[7]||(p[7]=(...y)=>k.clickShowDetails&&k.clickShowDetails(...y))},[K.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchDetailContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer6),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[k.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(r,{key:K.updateCarouselGames,"default-item-by-index":K.selectedIndexOption,items:k.gameRecientesFilter,onInput:k.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:y})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.home_team+".png"},null,10,o0e)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(y.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(y.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(y.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[y.home_team_abbreviation==K.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),y.away_team_abbreviation==K.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.away_team+".png"},null,10,s0e),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["default-item-by-index","items","onInput"])):(t.openBlock(),t.createElementBlock("div",l0e,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[t.createTextVNode("No hay resultados con los criterios"),c0e,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:p[8]||(p[8]=(...y)=>k.deleteFilters&&k.deleteFilters(...y))},"Eliminar filtros aplicados",2)],2)])),K.showDetails?(t.openBlock(),t.createBlock(b,{key:2,style:{"margin-top":"30px"},localDetails:K.localDetails,foreignDetails:K.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2)],2)],2)],2)],2)],2)}const d0e={$style:Fme},h0e=Yh(Nme,[["render",u0e],["__cssModules",d0e]]),p0e="_selectoritem_16hc8_179",f0e="_selectoritem2_16hc8_199",m0e="_gscheaderlineup_16hc8_219",g0e="_anNoEstn_16hc8_233",y0e="_groupsLeague_16hc8_239",v0e="_jugadores_16hc8_249",_0e="_switchOption_16hc8_259",b0e="_jugadores1_16hc8_279",x0e="_switchOption1_16hc8_289",w0e="_switchStatesBig_16hc8_305",k0e="_groupsLeagueParent_16hc8_323",S0e="_imgHomeTeamIcon_16hc8_341",T0e="_imgHomeTeamWrapper_16hc8_353",C0e="_teamContainer_16hc8_377",A0e="_name_16hc8_401",E0e="_homeTeamContainer_16hc8_413",M0e="_div_16hc8_433",I0e="_titleSession_16hc8_441",P0e="_scoreContainer_16hc8_461",L0e="_scoreContainerWrapper_16hc8_481",B0e="_teamContainer1_16hc8_505",O0e="_awayTeamContainer_16hc8_529",z0e="_matchContainer_16hc8_549",D0e="_sliderMatchesChild_16hc8_567",F0e="_manchesterUnited_16hc8_579",N0e="_sliderMatchesItem_16hc8_591",R0e="_sliderMatches_16hc8_567",V0e="_sortIcon_16hc8_627",j0e="_filtros_16hc8_641",U0e="_sortParent_16hc8_657",$0e="_shapeIcon_16hc8_671",G0e="_btnFilter_16hc8_681",H0e="_btnFilter1_16hc8_709",q0e="_btnFilterParent_16hc8_737",W0e="_backArrowIcon_16hc8_753",Z0e="_teamContainer2_16hc8_765",X0e="_homeTeam_16hc8_413",Y0e="_div4_16hc8_793",K0e="_finalScore_16hc8_803",J0e="_manchesterUnited1_16hc8_829",Q0e="_scoreContainer1_16hc8_843",ege="_match_16hc8_549",tge="_manchesterUnited2_16hc8_879",rge="_btnDetails_16hc8_889",nge="_matchContainer1_16hc8_909",age="_goalChild_16hc8_925",ige="_goal_16hc8_925",oge="_manchesterUnited3_16hc8_951",sge="_minuteEvent_16hc8_965",lge="_yellowCard_16hc8_979",cge="_awayTeamEvents_16hc8_993",uge="_rectangle_16hc8_1007",dge="_homeTeamEvents_16hc8_1021",hge="_totalEvents_16hc8_1037",pge="_headerSeccionAlineaciones1_16hc8_1053",fge="_switchOption3_16hc8_1075",mge="_switchOption4_16hc8_1099",gge="_switchStatesBig1_16hc8_1119",yge="_manchesterUnited13_16hc8_1133",vge="_homeTeamContainer1_16hc8_1143",_ge="_scoreContainer2_16hc8_1157",bge="_matchContainer2_16hc8_1185",xge="_manchesterUnited14_16hc8_1205",wge="_sliderMatchesInner_16hc8_1219",kge="_rectangleIcon_16hc8_1239",Sge="_sliderMatches1_16hc8_1259",Tge="_containerData_16hc8_1275",Cge="_headerSeccionAlineaciones2_16hc8_1303",Age="_headerSeccionAlineaciones_16hc8_1053",Ege="_headerSeccionAlineaciones21200_16hc8_1351",Mge="_headerSeccionAlineaciones1540_16hc8_1357",Ige="_headerSeccionAlineaciones2540_16hc8_1365",Pge={selectoritem:p0e,selectoritem2:f0e,gscheaderlineup:m0e,anNoEstn:g0e,groupsLeague:y0e,jugadores:v0e,switchOption:_0e,jugadores1:b0e,switchOption1:x0e,switchStatesBig:w0e,groupsLeagueParent:k0e,imgHomeTeamIcon:S0e,imgHomeTeamWrapper:T0e,teamContainer:C0e,name:A0e,homeTeamContainer:E0e,div:M0e,titleSession:I0e,scoreContainer:P0e,scoreContainerWrapper:L0e,teamContainer1:B0e,awayTeamContainer:O0e,matchContainer:z0e,sliderMatchesChild:D0e,manchesterUnited:F0e,sliderMatchesItem:N0e,sliderMatches:R0e,sortIcon:V0e,filtros:j0e,sortParent:U0e,shapeIcon:$0e,btnFilter:G0e,btnFilter1:H0e,btnFilterParent:q0e,backArrowIcon:W0e,teamContainer2:Z0e,homeTeam:X0e,div4:Y0e,finalScore:K0e,manchesterUnited1:J0e,scoreContainer1:Q0e,match:ege,manchesterUnited2:tge,btnDetails:rge,matchContainer1:nge,goalChild:age,goal:ige,manchesterUnited3:oge,minuteEvent:sge,yellowCard:lge,awayTeamEvents:cge,rectangle:uge,homeTeamEvents:dge,totalEvents:hge,headerSeccionAlineaciones1:pge,switchOption3:fge,switchOption4:mge,switchStatesBig1:gge,manchesterUnited13:yge,homeTeamContainer1:vge,scoreContainer2:_ge,matchContainer2:bge,manchesterUnited14:xge,sliderMatchesInner:wge,rectangleIcon:kge,sliderMatches1:Sge,containerData:Tge,headerSeccionAlineaciones2:Cge,headerSeccionAlineaciones:Age,headerSeccionAlineaciones21200:Ege,headerSeccionAlineaciones1540:Mge,headerSeccionAlineaciones2540:Ige},Lge={components:{GSCCarousel:ab,GscSwitchComponent:Tv},props:{optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},isLive:{type:Boolean,default:!1},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",{season_id:e.season_id,game_id:e.id})}catch(p){throw new Error(p)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=540?this.$style.headerSeccionAlineaciones2540:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{remplazarMxJor(e){return e.replace("M","JOR ")},changeCarouselItem(e){this.$emit("input",{season_id:e.selectedItem.season,game_id:e.selectedItem.game,ht_abrev:e.selectedItem.home_team_abbreviation,at_abrev:e.selectedItem.away_team_abbreviation}),this.selectedOption=e.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},Bge=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),Oge=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),zge=["src"],Dge=["src"],Fge=["src"],Nge=["src"],Rge=["src"],Vge=["src"];function jge(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.gscheaderlineup)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(k.headerSeccionAlineaciones1Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[Bge,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),Oge],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},null,2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.home_team+".png"},null,10,zge)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[f.isLive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.scoreContainer)},[Object.keys(f.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(f.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),Object.keys(f.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(f.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.titleSession)},t.toDisplayString(f.gameInfo.season_name!==void 0?f.gameInfo.season_name+" | "+k.remplazarMxJor(f.gameInfo.matchday_abbreviation)+" | "+f.gameInfo.home_team_abbreviation+" - "+f.gameInfo.away_team_abbreviation:""),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.away_team+".png"},null,10,Dge)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches)},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:e6},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Av},null,2)],2),t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Jornada",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"2",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Av},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:JE},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(f.gameInfo.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.home_team+".png"},null,10,Fge)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[f.isLive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.finalScore)},[Object.keys(f.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(f.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(f.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(f.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[f.teamActive=="home"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.away_team+".png"},null,10,Nge),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(f.gameInfo.away_team_abbreviation),3)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:QE},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(k.headerSeccionAlineaciones2Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig1),id:"switch-lineup"},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited13)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.home_team+".png"},null,10,Rge)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.home_team_abbreviation),3)],2),f.isLive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.scoreContainer2)},[Object.keys(f.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(f.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),Object.keys(f.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(f.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.away_team+".png"},null,10,Vge)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches1)},null,2)],2)],2)],2)],2)}const Uge={$style:Pge},$ge=Yh(Lge,[["render",jge],["__cssModules",Uge]]),Gge="_anNoEstn_j98j7_139",Hge="_groupsLeague_j98j7_145",qge="_historicas_j98j7_153",Wge="_switchOption_j98j7_163",Zge="_switchOption1_j98j7_183",Xge="_probables_j98j7_203",Yge="_switchOption2_j98j7_213",Kge="_switchStatesBig_j98j7_237",Jge="_groupsLeagueParent_j98j7_255",Qge="_imgHomeTeamIcon_j98j7_273",e1e="_imgHomeTeamWrapper_j98j7_285",t1e="_teamContainer_j98j7_309",r1e="_name_j98j7_333",n1e="_jor_j98j7_345",a1e="_jorParent_j98j7_357",i1e="_shapeIcon_j98j7_373",o1e="_frameParent_j98j7_383",s1e="_manchesterUnited_j98j7_413",l1e="_necaxaIcon_j98j7_435",c1e="_manchesterUnited1_j98j7_447",u1e="_team_j98j7_309",d1e="_homeTeamContainer_j98j7_475",h1e="_div1_j98j7_495",p1e="_scoreContainer_j98j7_503",f1e="_scoreContainerWrapper_j98j7_525",m1e="_team1_j98j7_549",g1e="_name1_j98j7_563",y1e="_teamContainer1_j98j7_577",v1e="_awayTeamContainer_j98j7_601",_1e="_matchContainer_j98j7_623",b1e="_goalChild_j98j7_641",x1e="_goal_j98j7_641",w1e="_manchesterUnited4_j98j7_667",k1e="_minuteEvent_j98j7_681",S1e="_yellowCard_j98j7_695",T1e="_awayTeamEvents_j98j7_709",C1e="_rectangle_j98j7_723",A1e="_homeTeamEvents_j98j7_737",E1e="_totalEvents_j98j7_753",M1e="_headerSeccionAlineaciones1_j98j7_769",I1e="_homeTeamContainer1_j98j7_789",P1e="_awayTeamContainer1_j98j7_813",L1e="_headerSeccionAlineaciones2_j98j7_837",B1e="_jugadores_j98j7_857",O1e="_switchOption6_j98j7_869",z1e="_switchOption8_j98j7_889",D1e="_switchStatesBig2_j98j7_913",F1e="_manchesterUnited28_j98j7_927",N1e="_homeTeamContainer2_j98j7_935",R1e="_matchContainer2_j98j7_949",V1e="_manchesterUnited29_j98j7_971",j1e="_sliderMatchesChild_j98j7_985",U1e="_sliderMatchesItem_j98j7_1005",$1e="_sliderMatches_j98j7_985",G1e="_jorParent2_j98j7_1045",H1e="_filterMatchday_j98j7_1059",q1e="_necaxaIcon4_j98j7_1081",W1e="_team4_j98j7_1093",Z1e="_filterMatchdayParent_j98j7_1113",X1e="_filterMatchday1_j98j7_1127",Y1e="_teamParent_j98j7_1157",K1e="_filtersContainer_j98j7_1177",J1e="_containerData_j98j7_1195",Q1e="_headerSeccionAlineaciones3_j98j7_1223",eye="_headerSeccionAlineaciones_j98j7_769",tye={anNoEstn:Gge,groupsLeague:Hge,historicas:qge,switchOption:Wge,switchOption1:Zge,probables:Xge,switchOption2:Yge,switchStatesBig:Kge,groupsLeagueParent:Jge,imgHomeTeamIcon:Qge,imgHomeTeamWrapper:e1e,teamContainer:t1e,name:r1e,jor:n1e,jorParent:a1e,shapeIcon:i1e,frameParent:o1e,manchesterUnited:s1e,necaxaIcon:l1e,manchesterUnited1:c1e,team:u1e,homeTeamContainer:d1e,div1:h1e,scoreContainer:p1e,scoreContainerWrapper:f1e,team1:m1e,name1:g1e,teamContainer1:y1e,awayTeamContainer:v1e,matchContainer:_1e,goalChild:b1e,goal:x1e,manchesterUnited4:w1e,minuteEvent:k1e,yellowCard:S1e,awayTeamEvents:T1e,rectangle:C1e,homeTeamEvents:A1e,totalEvents:E1e,headerSeccionAlineaciones1:M1e,homeTeamContainer1:I1e,awayTeamContainer1:P1e,headerSeccionAlineaciones2:L1e,jugadores:B1e,switchOption6:O1e,switchOption8:z1e,switchStatesBig2:D1e,manchesterUnited28:F1e,homeTeamContainer2:N1e,matchContainer2:R1e,manchesterUnited29:V1e,sliderMatchesChild:j1e,sliderMatchesItem:U1e,sliderMatches:$1e,jorParent2:G1e,filterMatchday:H1e,necaxaIcon4:q1e,team4:W1e,filterMatchdayParent:Z1e,filterMatchday1:X1e,teamParent:Y1e,filtersContainer:K1e,containerData:J1e,headerSeccionAlineaciones3:Q1e,headerSeccionAlineaciones:eye},rye={components:{GSCDropdown:Q4,GscSwitchComponent:Tv},props:{optionSelected:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},data(){return{rivalHomeImg:"",rivalVisitImg:"",rivalHomeAbrev:"",rivalVisitAbrev:"",auxVal:0}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",e)}catch(p){throw new Error(p)}}}},methods:{clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)},changeDropdownVisit(e){const p=this.gameRecientes[this.gameInfo.away_team_abbreviation].findIndex(f=>f.matchday_id===e.id);this.rivalVisitAbrev=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][p].home_team_abbreviation?this.gameRecientes[this.gameInfo.away_team_abbreviation][p].away_team_abbreviation:this.gameRecientes[this.gameInfo.away_team_abbreviation][p].home_team_abbreviation,this.rivalVisitImg=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][p].home_team_abbreviation?"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][p].away_team+".png":"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][p].home_team+".png",this.$emit("changeaway",this.gameRecientes[this.gameInfo.away_team_abbreviation][p])},changeDropdownLocal(e){const p=this.gameRecientes[this.gameInfo.home_team_abbreviation].findIndex(f=>f.matchday_id===e.id);this.rivalHomeAbrev=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][p].away_team_abbreviation?this.gameRecientes[this.gameInfo.home_team_abbreviation][p].home_team_abbreviation:this.gameRecientes[this.gameInfo.home_team_abbreviation][p].away_team_abbreviation,this.rivalHomeImg=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][p].away_team_abbreviation?"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][p].home_team+".png":"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][p].away_team+".png",this.$emit("changehome",this.gameRecientes[this.gameInfo.home_team_abbreviation][p])}}},nye=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),aye=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1),iye=["src"],oye={class:"selector-tournaments"},sye=["src"],lye=["src"],cye={class:"selector-tournaments"},uye=["src"],dye=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),hye=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),pye=["src"],fye={class:"selector-tournaments"},mye=["src"],gye=["src"],yye={class:"selector-tournaments"},vye=["src"],_ye=["src"],bye=["src"],xye={class:"selector-tournaments"},wye=["src"],kye=["src"],Sye={class:"selector-tournaments"};function Tye(e,p,f,F,K,k){const w=t.resolveComponent("GscSwitchComponent"),n=t.resolveComponent("GSCDropdown");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones1),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[nye,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),aye],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(w,{buttons:["Historicos","Recientes","Probables"],selectedOption:f.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:k.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.home_team+".png"},null,10,iye)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.home_team_abbreviation),3),t.createVNode(n,{class:t.normalizeClass(e.$style.frameParent),items:f.matchdaysDefault[f.gameInfo.home_team_abbreviation],onInput:k.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(_=>[t.createElementVNode("div",oye,t.toDisplayString(_.selectedItem.name),1)]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("div",null,t.toDisplayString(_.name),1)]),_:1},8,["class","items","onInput"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:K.rivalHomeImg},null,10,sye),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(K.rivalHomeAbrev),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"2",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"-",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"2",2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(K.rivalVisitAbrev),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:K.rivalVisitImg},null,10,lye),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2)],2),t.createVNode(n,{class:t.normalizeClass(e.$style.frameParent),items:f.matchdaysDefault[f.gameInfo.away_team_abbreviation],onInput:k.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(_=>[t.createElementVNode("div",cye,t.toDisplayString(_.selectedItem.name),1)]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("div",null,t.toDisplayString(_.name),1)]),_:1},8,["class","items","onInput"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name1)},t.toDisplayString(f.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.away_team+".png"},null,10,uye)],2)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones2),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[dye,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),hye],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(w,{buttons:["Historicos","Recientes","Probables"],selectedOption:f.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:k.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.home_team+".png"},null,10,pye)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.home_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.frameParent)},[t.createVNode(n,{items:f.matchdaysDefault[f.gameInfo.home_team_abbreviation],onInput:k.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(_=>[t.createElementVNode("div",fye,t.toDisplayString(_.selectedItem.name),1)]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("div",null,t.toDisplayString(_.name),1)]),_:1},8,["items","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:K.rivalHomeImg},null,10,mye),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(K.rivalHomeAbrev),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(K.rivalVisitAbrev),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:K.rivalVisitImg},null,10,gye),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.frameParent)},[t.createVNode(n,{items:f.matchdaysDefault[f.gameInfo.away_team_abbreviation],onInput:k.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(_=>[t.createElementVNode("div",yye,t.toDisplayString(_.selectedItem.name),1)]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("div",null,t.toDisplayString(_.name),1)]),_:1},8,["items","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.away_team+".png"},null,10,vye)],2)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones3),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig2),id:"switch-lineup"},[t.createVNode(w,{buttons:["Historicos","Recientes","Probables"],selectedOption:f.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:k.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited28)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.home_team+".png"},null,10,_ye)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.away_team+".png"},null,10,bye)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtersContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchdayParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday1)},[t.createVNode(n,{items:f.matchdaysDefault[f.gameInfo.home_team_abbreviation],onInput:k.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(_=>[t.createElementVNode("div",xye,t.toDisplayString(_.selectedItem.name),1)]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("div",null,t.toDisplayString(_.name),1)]),_:1},8,["items","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team4)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon4),alt:"",src:K.rivalHomeImg},null,10,wye)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team1)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon4),alt:"",src:K.rivalVisitImg},null,10,kye),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},"vs",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday1)},[t.createVNode(n,{items:f.matchdaysDefault[f.gameInfo.away_team_abbreviation],onInput:k.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(_=>[t.createElementVNode("div",Sye,t.toDisplayString(_.selectedItem.name),1)]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("div",null,t.toDisplayString(_.name),1)]),_:1},8,["items","onInput"])],2)],2)],2)],2)],2)],2)}const Cye={$style:tye},Aye=Yh(rye,[["render",Tye],["__cssModules",Cye]]);let eM=null;const Eye={name:"LineupPlayers",props:{isFemale:{type:Boolean,default:!1},game:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Prematch"},isLive:{type:Boolean,default:!1},socket:{type:Object,default:()=>{}}},components:{CardPlayer:Kde,HeaderPlayerHistorico:Ape,HeaderPlayerRecientes:h0e,HeaderPlayerProbables:Aye,HeaderPlayerPostmatch:$ge},data(){return{lastGetLineUpGameId:"",lastGetMXMUrl:"",selectOptMenuheader:"Historicos",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",urlGames:"https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/",url:"https://tj4cepyjc4.execute-api.us-west-2.amazonaws.com/prod/lineups/",urlMXM:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",retries:3,teamActive:"home",subsActive:!1,playersHome:[],gamesContainerWidth:0,keyUpdateRecientes:0,playersAway:[],defaultDropItem:{},subsTitle:!1,uniformHome:"",valueUpdateRecientes:0,uniformHomeG:"",uniformAway:"",uniformAwayG:"",dataPlayersHome:[],dataPlayersAway:[],homeTeamLogo:"",awayTeamLogo:"",homeTeamName:"",awayTeamName:"",homeTeamAbrev:"",awayTeamAbrev:"",home_team_id:0,updateComponentAway:0,away_team_id:0,substitutionModal:{min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},homeTeam:{},visitingTeam:{},gameForAnalysis:{},movil:!1,positions:[{name:"Portero"},{name:"Defensa central"},{name:"Lateral por izquierda"},{name:"Lateral por derecha"},{name:"Volante por izquierda"},{name:"Volante por derecha"},{name:"Volante defensivo"},{name:"Volante ofensivo"},{name:"Delantero"},{name:"Desconocida"}],auxProbablesIDGameHome:0,auxProbablesIDGameAway:0,auxHistoricGameID:0,gameInfoheader:{},gamesHistoric:[],gamesRecientes:[],matchdaysPerTeam:[],lastGetGame:0,lastSection:""}},computed:{goalcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"goal_card_div440":e<=650?"goal_card_div650":e<=820?"goal_card_div820":"goal_card_div"},yellowredcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"yellowred_card_div440":e<=650?"yellowred_card_div650":e<=820?"yellowred_card_div820":"yellowred_card_div"},redcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"red_card_div440":e<=650?"red_card_div650":e<=820?"red_card_div820":"red_card_div"},yellowcarddivclass(){const e=this.gamesContainerWidth;return e<=440?"yellow_card_div440":e<=650?"yellow_card_div650":e<=820?"yellow_card_div820":"yellow_card_div"},infochangeplayeritemClass(){const e=this.gamesContainerWidth;return e<=440?"info-chamge-player-item440":e<=650?"info-chamge-player-item650":e<=740?"info-chamge-player-item740":"info-chamge-player-item"},infonameplayeritemClass(){const e=this.gamesContainerWidth;return e<=440?"info-name-player-item440":e<=650?"info-name-player-item650":e<=740?"info-name-player-item740":"info-name-player-item"},infoplayeritemClass(){const e=this.gamesContainerWidth;return e<=400?"info-player-item400":e<=440?"info-player-item440":e<=650?"info-player-item650":e<=740?"info-player-item740":"info-player-item"},numPlayerClass(){const e=this.gamesContainerWidth;return e<=440?"num-Player440":e<=540?"num-Player540":e<=740?"num-Player740":"num-Player"},jerseyitemplayerClass(){const e=this.gamesContainerWidth;return e<=440?"jerseyitemplayer440":e<=540?"jerseyitemplayer540":e<=650?"jerseyitemplayer650":e<=740?"jerseyitemplayer740":"jerseyitemplayer"},itemplayerfieldClass(){return this.gamesContainerWidth<=740?"itemplayer-field740":"itemplayer-field"},canchacontainerClass(){const e=this.gamesContainerWidth;return e<=300?"cancha-container300":e<=325?"cancha-container325":e<=350?"cancha-container350":e<=440?"cancha-container440":e<=540?"cancha-container540":e<=740?"cancha-container740":e<=820?"cancha-container820":e<=840?"cancha-container840":e<=940?"cancha-container940":e<=1140?"cancha-container1140":"cancha-container"},fieldcontainerClass(){const e=this.gamesContainerWidth;return e<=300?"field-container300":e<=380?"field-container380":e<=440?"field-container440":e<=540?"field-container540":e<=740?"field-container740":"field-container"},notificationnolineupsClass(){const e=this.gamesContainerWidth;return e<=300?"notification-no-lineups300":e<=370?"notification-no-lineups370":e<=400?"notification-no-lineups400":e<=460?"notification-no-lineups460":e<=500?"notification-no-lineups500":e<=530?"notification-no-lineups530":e<=740?"notification-no-lineups740":e<=768?"notification-no-lineups768":e<=830?"notification-no-lineups830":e<=900?"notification-no-lineups900":"notification-no-lineups"},containernolineups(){const e=this.gamesContainerWidth;return e<=300?"container-no-lineups300":e<=350?"container-no-lineups350":e<=768?"container-no-lineups768":"container-no-lineups"},menuTeamsClass(){return this.gamesContainerWidth<=740?"menu-teams-mobile740":"menu-teams-mobile"},positionClass(){return this.gamesContainerWidth<=500?"gsc-position-player500":"gsc-position-player"},positionClass2(){return this.gamesContainerWidth<=500?"gsc-position-player2500":"gsc-position-player2"},containerlineupsClass(){const e=this.gamesContainerWidth;return e<=740?"gsc-lineups-container680":e<=900?"gsc-lineups-container900":"gsc-lineups-container"},containerClassHome(){const e=this.gamesContainerWidth;return e<=740?"gsclineupscontainerhome680":e<=768?"gsclineupscontainerhome768":e<=900?"gsclineupscontainerhome900":"gsclineupscontainerhome"},containerClassAway(){const e=this.gamesContainerWidth;return e<=740?"gsclineupscontaineraway680":e<=768?"gsclineupscontaineraway768":e<=900?"gsclineupscontaineraway900":"gsclineupscontaineraway"},sizeBrowser(){return this.gamesContainerWidth},numPlayer(){return Number(this.playersAway.length)+Number(this.playersHome.length)},benchFillHome(){return this.playersHome.length<this.playersAway.length?this.playersAway.length-this.playersHome.length:0},benchFillAway(){return this.playersAway.length<this.playersHome.length?this.playersHome.length-this.playersAway.length:0}},async mounted(){if(setTimeout(()=>{this.setUpResizeObserver()},100),this.game||this.$route.params.gameId)try{this.cleaneData()}catch(e){throw new Error(e)}},watch:{selectOptMenuheader:{immediate:!0,async handler(e,p){e!=p&&this.selectedOption!=="Postmatch"&&(e==="Probables"&&(this.lastSection=e),e==="Historicos"&&this.gamesHistoric[0]&&await this.getLineUp(this.gamesHistoric[0].game))}},"socket.connected":{immediate:!0,handler(e){e&&this.getDataSocket()}},game:{immediate:!0,handler:async function(e,p){if(e&&(!p||e.game_id!==p.game_id))try{if(e){const f={headers:{Authorization:this.token}};this.cleaneData(),await this.getHeaderInfo(e);const F=[Xh.get(this.urlGames+e.season_id+"/games/"+e.game_id,f)];let K=null;const k=this.selectedOption==="Postmatch"?e.game_id:this.selectOptMenuheader==="Historicos"?this.gamesHistoric[0].game:0;k&&k!==this.lastGetLineUpGameId&&(K=Xh.get(this.url+k,f),F.push(K));const[w,n]=await Promise.all(F);await this.gameDataInfo(e,w),await this.getLineUp(k,n)}}catch(f){throw new Error(f)}}}},sockets:{new_bench([e,p]){if(p[this.home_team_id]){this.playersHome=this.playersHome.filter(function(i){return!i.isbench});for(let i=0;i<p[this.home_team_id].length;i++)if(!p[this.home_team_id][i].isTitular){this.subsTitle=!0;var f=p[this.home_team_id][i].playerName.split(","),F=f[0].split(" "),K=f[1].trim().split(" "),k="";F.length==2||F.length==1?F[0].length<4?k=F[0]+" "+F[1]:k=F[0]:F.length==3?k=F[0]+" "+F[1]:F.length==4&&(k=F[1]+" "+F[2]+" "+F[3]);var w=K[K.length-1]!=""?K[K.length-1].charAt(0):K[K.length-2]?K[K.length-2].charAt(0):"";k=k.replace(",","");var n=w+". "+k,_=this.dataPlayersHome.findIndex(u=>u.player_id==p[this.home_team_id][i].playerID);this.playersHome.push({played:!1,name:p[this.home_team_id][i].playerName,position:_!=-1?this.isFemale?this.positions[this.dataPlayersHome[_].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[this.dataPlayersHome[_].position_id-1].name:"",position_id:this.dataPlayersHome[_].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+p[this.home_team_id][i].playerID+".png",nationality:_!=-1&&this.dataPlayersHome[_].nationality?this.dataPlayersHome[_].nationality.substring(0,3):"",imgNationality:_!=-1?this.dataPlayersHome[_].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:n,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+this.home_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:p[this.home_team_id][i].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:p[this.home_team_id][i].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersHome.sort((i,u)=>i.position_id>u.position_id?1:u.position_id>i.position_id?-1:0)}if(p[this.away_team_id]){this.playersAway=this.playersAway.filter(function(i){return!i.isbench});for(let i=0;i<p[this.away_team_id].length;i++)if(!p[this.away_team_id][i].isTitular){this.subsTitle=!0;var h=p[this.away_team_id][i].playerName.split(","),r=h[0].split(" "),b=f[1].trim().split(" "),y="";r.length==2||r.length==1?r[0].length<4?y=r[0]+" "+r[1]:y=r[0]:r.length==3?y=r[0]+" "+r[1]:r.length==4&&(y=r[1]+" "+r[2]+" "+r[3]);var g=b[b.length-1]!=""?b[b.length-1].charAt(0):b[b.length-2]?b[b.length-2].charAt(0):"";y=y.replace(",","");var c=g+". "+y,a=this.dataPlayersAway.findIndex(u=>u.player_id==p[this.away_team_id][i].playerID);this.playersAway.push({played:!1,name:p[this.away_team_id][i].playerName,position:a!=-1?this.isFemale?this.positions[this.dataPlayersAway[a].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[this.dataPlayersAway[a].position_id-1].name:"",position_id:this.dataPlayersAway[a].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+p[this.away_team_id][i].playerID+".png",nationality:a!=-1&&this.dataPlayersAway[a].nationality?this.dataPlayersAway[a].nationality.substring(0,3):"",imgNationality:a!=-1?this.dataPlayersAway[a].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:c,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+this.away_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:p[this.away_team_id][i].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:p[this.away_team_id][i].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersAway.sort((i,u)=>i.position_id>u.position_id?1:u.position_id>i.position_id?-1:0)}},new_lineup([e,p]){if(p.team_id==p.home_team.team_id){if(this.playersHome.length==0){this.dataPlayersHome=p.home_team.players;for(let m=0;m<p.data.length;m++){this.home_team_id=p.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+p.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+p.team_id+"_g.svg","home",0);var f=p.data[m].player_name.split(","),F=f[0].split(" "),K=f[1].trim().split(" "),k="";F.length==2||F.length==1?F[0].length<4?k=F[0]+" "+F[1]:k=F[0]:F.length==3?k=F[0]+" "+F[1]:F.length==4&&(k=F[1]+" "+F[2]+" "+F[3]);var w=K[K.length-1]!=""?K[K.length-1].charAt(0):K[K.length-2]?K[K.length-2].charAt(0):"";k=k.replace(",","");var n=w+". "+k,_=p.data[m].x,h=_*50/100,r=p.home_team.players.findIndex(v=>v.player_id==p.data[m].player_id);this.playersHome.push({played:!0,name:p.data[m].player_name,position:r!=-1?this.isFemale?this.positions[p.home_team.players[r].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[p.home_team.players[r].position_id-1].name:"",position_id:p.home_team.players[r].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+p.data[m].player_id+".png",nationality:r!=-1&&p.home_team.players[r].nationality?p.home_team.players[r].nationality.substring(0,3):"",imgNationality:r!=-1?p.home_team.players[r].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:n,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+p.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:p.data[m].jersey_number,positionX:p.data[m].y-13,positionY:h*.9,positionXOrigin:p.data[m].y-17,positionYOrigin:p.data[m].x-2,playerId:p.data[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:p.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+p.team_id+".png"}this.playersHome.sort((m,v)=>m.position_id>v.position_id?1:v.position_id>m.position_id?-1:0)}}else if(this.playersAway.length==0){this.dataPlayersAway=p.away_team.players;for(let m=0;m<p.data.length;m++){this.away_team_id=p.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+p.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+p.team_id+"_g.svg","away",0);var b=p.data[m].player_name.split(","),y=b[0].split(" "),g=b[1].trim().split(" "),c="";y.length==2||y.length==1?y[0].length<4?c=y[0]+" "+y[1]:c=y[0]:y.length==3?c=y[0]+" "+y[1]:y.length==4&&(c=y[1]+" "+y[2]+" "+y[3]);var a=g[g.length-1]!=""?g[g.length-1].charAt(0):g[g.length-2]?g[g.length-2].charAt(0):"";c=c.replace(",","");var i=a+". "+c,u=p.data[m].x,s=100-(100-u)*50/100;s=s*.9;var d=p.away_team.players.findIndex(v=>v.player_id==p.data[m].player_id);this.playersAway.push({played:!0,name:p.data[m].player_name,position:d!=-1?this.isFemale?this.positions[p.away_team.players[d].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[p.away_team.players[d].position_id-1].name:"",position_id:p.away_team.players[d].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+p.data[m].player_id+".png",nationality:d!=-1&&p.away_team.players[d].nationality?p.away_team.players[d].nationality.substring(0,3):"",imgNationality:d!=-1?p.away_team.players[d].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:i,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+p.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:p.data[m].jersey_number,positionX:p.data[m].y-13,positionY:s+2,positionXOrigin:p.data[m].y-17,positionYOrigin:p.data[m].x-7,playerId:p.data[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:p.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+p.team_id+".png"}this.playersAway.sort((m,v)=>m.position_id>v.position_id?1:v.position_id>m.position_id?-1:0)}},update_mxm([e,p]){var f=-1,F=-1;if(this.playersHome.length>0){var K=this.playersHome.findIndex(C=>C.idredcards==p.play_id),k=this.playersHome.findIndex(C=>C.idyellowcards==p.play_id),w=this.playersHome.findIndex(C=>C.idSubstitution==p.play_id);for(let C=0;C<this.playersHome.length;C++){var n=this.playersHome[C].idsGoals.findIndex(P=>P==p.play_id);n!=-1&&(f=n,F=C)}K!=-1&&this.resetPlayUpdate("RedCard","Home",K,F),k!=-1&&this.resetPlayUpdate("YellowCard","Home",k,F),w!=-1&&this.resetPlayUpdate("Substitution","Home",w,F),f!=-1&&this.resetPlayUpdate("Goals","Home",f,F)}if(this.playersAway.length>0){var _=this.playersAway.findIndex(C=>C.idredcards==p.play_id),h=this.playersAway.findIndex(C=>C.idyellowcards==p.play_id),r=this.playersAway.findIndex(C=>C.idSubstitution==p.play_id);for(let C=0;C<this.playersAway.length;C++){var b=this.playersAway[C].idsGoals.findIndex(P=>P==p.play_id);b!=-1&&(f=b,F=C)}_!=-1&&this.resetPlayUpdate("RedCard","Away",_,F),h!=-1&&this.resetPlayUpdate("YellowCard","Away",h,F),r!=-1&&this.resetPlayUpdate("Substitution","Away",r,F),f!=-1&&this.resetPlayUpdate("Goals","Away",f,F)}if(p.event_type_id==3){if(p.team_id==this.home_team_id){if(this.playersHome.length>0){var y=p.player_id.split("@"),g=this.playersHome.findIndex(C=>C.playerId==y[0]),c=this.playersHome.findIndex(C=>C.playerId==y[1]);g!=-1&&(this.playersHome[g].idSubstitution=p.play_id,this.playersHome[g].substitutionOut=!0,this.playersHome[g].substitutionMin=p.minute,this.playersHome[g].substitutionDataID=p.team_id+"@"+p.player_id),c!=-1&&(this.playersHome[c].idSubstitution=p.play_id,this.playersHome[c].substitutionIn=!0,this.playersHome[c].substitutionMin=p.minute,this.playersHome[c].substitutionDataID=p.team_id+"@"+p.player_id)}}else if(this.playersAway.length>0){var a=p.player_id.split("@"),i=this.playersAway.findIndex(C=>C.playerId==a[0]),u=this.playersAway.findIndex(C=>C.playerId==a[1]);g!=-1&&(this.playersAway[i].idSubstitution=p.play_id,this.playersAway[i].substitutionOut=!0,this.playersAway[i].substitutionMin=p.minute,this.playersAway[i].substitutionDataID=p.team_id+"@"+p.player_id),u!=-1&&(this.playersAway[u].idSubstitution=p.play_id,this.playersAway[u].substitutionIn=!0,this.playersAway[u].substitutionMin=p.minute,this.playersAway[u].substitutionDataID=p.team_id+"@"+p.player_id)}}if(p.event_type_id==1){if(p.team_id==this.home_team_id){if(this.playersHome.length>0){var s=this.playersHome.findIndex(C=>C.playerId==p.player_id);s!=-1&&(this.playersHome[s].goals+=1,this.playersHome[s].goalsMin.push(p.minute),this.playersHome[s].idsGoals.push(p.play_id))}}else if(this.playersAway.length>0){var d=this.playersAway.findIndex(C=>C.playerId==p.player_id);d!=-1&&(this.playersAway[d].goals+=1,this.playersAway[d].goalsMin.push(p.minute),this.playersAway[d].idsGoals.push(p.play_id))}}if(p.event_type_id==2){if(p.category_id==8){if(p.team_id==this.home_team_id){if(this.playersHome.length>0){var m=this.playersHome.findIndex(C=>C.playerId==p.player_id);m!=-1&&(this.playersHome[m].yellowcards+=1,this.playersHome[m].yellowcardsMin=p.minute,this.playersHome[m].idyellowcards=p.play_id)}}else if(this.playersAway.length>0){var v=this.playersAway.findIndex(C=>C.playerId==p.player_id);v!=-1&&(this.playersAway[v].yellowcards+=1,this.playersAway[v].yellowcardsMin=p.minute,this.playersAway[v].idyellowcards=p.play_id)}}if(p.category_id==9){if(p.team_id==this.home_team_id){if(this.playersHome.length>0){var T=this.playersHome.findIndex(C=>C.playerId==p.player_id);T!=-1&&(this.playersHome[T].redcards+=1,this.playersHome[T].redcardsMin=p.minute,this.playersHome[T].idredcards=p.play_id)}}else if(this.playersAway.length>0){var A=this.playersAway.findIndex(C=>C.playerId==p.player_id);A!=-1&&(this.playersAway[A].redcards+=1,this.playersAway[A].redcardsMin=p.minute,this.playersAway[A].idredcards=p.play_id)}}}},delete_mxm([e,p]){if(this.playersHome.length>0)for(let f=0;f<this.playersHome.length;f++)this.playersHome[f].idSubstitution==p.play_id&&(this.playersHome[f].substitutionOut=!1,this.playersHome[f].substitutionIn=!1,this.playersHome[f].substitutionMin="",this.playersHome[f].substitutionDataID="",this.playersHome[f].idSubstitution=0);if(this.playersAway.length>0)for(let f=0;f<this.playersAway.length;f++)this.playersAway[f].idSubstitution==p.play_id&&(this.playersAway[f].substitutionOut=!1,this.playersAway[f].substitutionIn=!1,this.playersAway[f].substitutionMin="",this.playersAway[f].substitutionDataID="",this.playersAway[f].idSubstitution=0);if(this.playersHome.length>0)for(let f=0;f<this.playersHome.length;f++){const F=this.playersHome[f].idsGoals.findIndex(K=>K==p.play_id);F!=-1&&(this.playersHome[f].goals=this.playersHome[f].goals-1,this.playersHome[f].goalsMin.splice(F,1),this.playersHome[f].idsGoals.splice(F,1))}if(this.playersAway.length>0)for(let f=0;f<this.playersAway.length;f++){const F=this.playersAway[f].idsGoals.findIndex(K=>K==p.play_id);F!=-1&&(this.playersAway[f].goals=this.playersAway[f].goals-1,this.playersAway[f].goalsMin.splice(F,1),this.playersAway[f].idsGoals.splice(F,1))}if(this.playersHome.length>0)for(let f=0;f<this.playersAway.length;f++)this.playersHome[f].idyellowcards==p.play_id&&(this.playersHome[f].yellowcards=0,this.playersHome[f].yellowcardsMin=0,this.playersHome[f].idyellowcards=0);if(this.playersAway.length>0)for(let f=0;f<this.playersAway.length;f++)this.playersAway[f].idyellowcards==p.play_id&&(this.playersAway[f].yellowcards=0,this.playersAway[f].yellowcardsMin=0,this.playersAway[f].idyellowcards=0);if(this.playersHome.length>0)for(let f=0;f<this.playersAway.length;f++)this.playersHome[f].idredcards==p.play_id&&(this.playersHome[f].redcards=0,this.playersHome[f].redcardsMin=0,this.playersHome[f].idredcards=0);if(this.playersAway.length>0)for(let f=0;f<this.playersAway.length;f++)this.playersAway[f].idredcards==p.play_id&&(this.playersAway[f].redcards=0,this.playersAway[f].redcardsMin=0,this.playersAway[f].idredcards=0)},new_mxm([e,p]){if(p.event_type_id==3){if(p.team_id==this.home_team_id){if(this.playersHome.length>0){var f=p.player_id.split("@"),F=this.playersHome.findIndex(c=>c.playerId==f[0]),K=this.playersHome.findIndex(c=>c.playerId==f[1]);F!=-1&&(this.playersHome[F].idSubstitution=p.play_id,this.playersHome[F].substitutionOut=!0,this.playersHome[F].substitutionMin=p.minute,this.playersHome[F].substitutionDataID=p.team_id+"@"+p.player_id),K!=-1&&(this.playersHome[K].idSubstitution=p.play_id,this.playersHome[K].substitutionIn=!0,this.playersHome[K].substitutionMin=p.minute,this.playersHome[K].substitutionDataID=p.team_id+"@"+p.player_id)}}else if(this.playersAway.length>0){var k=p.player_id.split("@"),w=this.playersAway.findIndex(c=>c.playerId==k[0]),n=this.playersAway.findIndex(c=>c.playerId==k[1]);F!=-1&&(this.playersAway[w].idSubstitution=p.play_id,this.playersAway[w].substitutionOut=!0,this.playersAway[w].substitutionMin=p.minute,this.playersAway[w].substitutionDataID=p.team_id+"@"+p.player_id),n!=-1&&(this.playersAway[n].idSubstitution=p.play_id,this.playersAway[n].substitutionIn=!0,this.playersAway[n].substitutionMin=p.minute,this.playersAway[n].substitutionDataID=p.team_id+"@"+p.player_id)}}if(p.event_type_id==1){if(p.team_id==this.home_team_id){if(this.playersHome.length>0){var _=this.playersHome.findIndex(c=>c.playerId==p.player_id);_!=-1&&(this.playersHome[_].goals+=1,this.playersHome[_].goalsMin.push(p.minute),this.playersHome[_].idsGoals.push(p.play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(c=>c.playerId==p.player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(p.minute),this.playersAway[h].idsGoals.push(p.play_id))}}if(p.event_type_id==2){if(p.category_id==8){if(p.team_id==this.home_team_id){if(this.playersHome.length>0){var r=this.playersHome.findIndex(c=>c.playerId==p.player_id);r!=-1&&(this.playersHome[r].yellowcards+=1,this.playersHome[r].yellowcardsMin=p.minute,this.playersHome[r].idyellowcards=p.play_id)}}else if(this.playersAway.length>0){var b=this.playersAway.findIndex(c=>c.playerId==p.player_id);b!=-1&&(this.playersAway[b].yellowcards+=1,this.playersAway[b].yellowcardsMin=p.minute,this.playersAway[b].idyellowcards=p.play_id)}}if(p.category_id==9){if(p.team_id==this.home_team_id){if(this.playersHome.length>0){var y=this.playersHome.findIndex(c=>c.playerId==p.player_id);y!=-1&&(this.playersHome[y].redcards+=1,this.playersHome[y].redcardsMin=p.minute,this.playersHome[y].idredcards=p.play_id)}}else if(this.playersAway.length>0){var g=this.playersAway.findIndex(c=>c.playerId==p.player_id);g!=-1&&(this.playersAway[g].redcards+=1,this.playersAway[g].redcardsMin=p.minute,this.playersAway[g].idredcards=p.play_id)}}}}},methods:{onOpenProfile(e){this.$emit("onOpenProfile",e)},async getLineUpProbablesHome3D(e){try{const d=await Xh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!d||!d.data)throw new Error("There is not lineups for this game.");if(d.data.home_team.team_id==this.gameInfoheader.home_team){this.gameInfoheader.home_team==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.home_team==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym),this.dataPlayersHome=d.data.home_team.players,d.data.home_team.starting_lineup[0].lineup.sort((m,v)=>m.position_id>v.position_id?1:v.position_id>m.position_id?-1:0);for(let m=0;m<d.data.home_team.starting_lineup[0].lineup.length;m++){this.home_team_id=d.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.home_team.team_id+"_g.svg","home",0);var p=d.data.home_team.starting_lineup[0].lineup[m].player_name.split(","),f=p[0].split(" "),F=p[1].trim().split(" "),K="";f.length==2||f.length==1?f[0].length<4?K=f[0]+" "+f[1]:K=f[0]:f.length==3?K=f[0]+" "+f[1]:f.length==4&&(K=f[1]+" "+f[2]+" "+f[3]);var k=F[F.length-1]!=""?F[F.length-1].charAt(0):F[F.length-2]?F[F.length-2].charAt(0):"";K=K.replace(",","");var w=k+". "+K,n=d.data.home_team.starting_lineup[0].lineup[m].x,_=n*50/100,h=d.data.home_team.players.findIndex(v=>v.player_id==d.data.home_team.starting_lineup[0].lineup[m].player_id);this.playersHome.push({played:!0,name:d.data.home_team.starting_lineup[0].lineup[m].player_name,position:this.isFemale?this.positions[d.data.home_team.players[h].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.home_team.players[h].position_id-1].name,position_id:d.data.home_team.players[h].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.home_team.starting_lineup[0].lineup[m].player_id+".png",nationality:d.data.home_team.players[h].nationality?d.data.home_team.players[h].nationality.substring(0,3):"",imgNationality:d.data.home_team.players[h].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:w,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:d.data.home_team.starting_lineup[0].lineup[m].jersey_number,positionX:d.data.home_team.starting_lineup[0].lineup[m].y-13,positionY:_*.9,positionXOrigin:d.data.home_team.starting_lineup[0].lineup[m].y-17,positionYOrigin:d.data.home_team.starting_lineup[0].lineup[m].x-2,playerId:d.data.home_team.starting_lineup[0].lineup[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:d.data.home_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.home_team.team_id+".png"}if(this.playersHome.sort((m,v)=>m.position_id>v.position_id?1:v.position_id>m.position_id?-1:0),d.data.home_team.bench){for(let m=0;m<d.data.home_team.bench.length;m++){this.subsTitle=!0;var r=d.data.home_team.bench[m].playerName.split(","),b=r[0].split(" "),y=r[1].trim().split(" "),g="";b.length==2||b.length==1?b[0].length<4?g=b[0]+" "+b[1]:g=b[0]:b.length==3?g=b[0]+" "+b[1]:b.length==4&&(g=b[1]+" "+b[2]+" "+b[3]);var c=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";g=g.replace(",","");var a=c+". "+g,i=d.data.home_team.players.findIndex(v=>v.player_id==d.data.home_team.bench[m].playerID);this.playersHome.push({played:!1,name:d.data.home_team.bench[m].playerName,position:i!=-1?this.isFemale?this.positions[d.data.home_team.players[i].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.home_team.players[i].position_id-1].name:"",position_id:d.data.home_team.players[i].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.home_team.bench[m].playerID+".png",nationality:i!=-1&&d.data.home_team.players[i].nationality?d.data.home_team.players[i].nationality.substring(0,3):"",imgNationality:i!=-1?d.data.home_team.players[i].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:a,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:d.data.home_team.bench[m].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:d.data.home_team.bench[m].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:d.data.home_team.team_id})}this.playersHome.sort((m,v)=>m.position_id>v.position_id?1:v.position_id>m.position_id?-1:0)}}if(d.data.away_team.team_id==this.gameInfoheader.home_team){this.gameInfoheader.home_team==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.home_team==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym),this.dataPlayersHome=d.data.away_team.players,d.data.away_team.starting_lineup[0].lineup.sort((m,v)=>m.position_id>v.position_id?1:v.position_id>m.position_id?-1:0);for(let m=0;m<d.data.away_team.starting_lineup[0].lineup.length;m++){this.home_team_id=d.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.away_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.away_team.team_id+"_g.svg","home",0);var p=d.data.away_team.starting_lineup[0].lineup[m].player_name.split(","),f=p[0].split(" "),F=p[1].trim().split(" "),K="";f.length==2||f.length==1?f[0].length<4?K=f[0]+" "+f[1]:K=f[0]:f.length==3?K=f[0]+" "+f[1]:f.length==4&&(K=f[1]+" "+f[2]+" "+f[3]);var k=F[F.length-1]!=""?F[F.length-1].charAt(0):F[F.length-2]?F[F.length-2].charAt(0):"";K=K.replace(",","");var w=k+". "+K,u=d.data.away_team.starting_lineup[0].lineup[m].x;u=Math.abs(u-100);var _=u*50/100,s=d.data.away_team.starting_lineup[0].lineup[m].y;s=Math.abs(s-100);var h=d.data.away_team.players.findIndex(M=>M.player_id==d.data.away_team.starting_lineup[0].lineup[m].player_id);this.playersHome.push({played:!0,name:d.data.away_team.starting_lineup[0].lineup[m].player_name,position:this.isFemale?this.positions[d.data.away_team.players[h].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.away_team.players[h].position_id-1].name,position_id:d.data.away_team.players[h].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.away_team.starting_lineup[0].lineup[m].player_id+".png",nationality:d.data.away_team.players[h].nationality?d.data.away_team.players[h].nationality.substring(0,3):"",imgNationality:d.data.away_team.players[h].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:w,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:d.data.away_team.starting_lineup[0].lineup[m].jersey_number,positionX:s-20,positionY:_*.9,positionXOrigin:d.data.away_team.starting_lineup[0].lineup[m].y-17,positionYOrigin:d.data.away_team.starting_lineup[0].lineup[m].x-2,playerId:d.data.away_team.starting_lineup[0].lineup[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:d.data.away_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.away_team.team_id+".png"}if(this.playersHome.sort((m,v)=>m.position_id>v.position_id?1:v.position_id>m.position_id?-1:0),d.data.away_team.bench){for(let m=0;m<d.data.away_team.bench.length;m++){this.subsTitle=!0;var r=d.data.away_team.bench[m].playerName.split(","),b=r[0].split(" "),y=r[1].trim().split(" "),g="";b.length==2||b.length==1?b[0].length<4?g=b[0]+" "+b[1]:g=b[0]:b.length==3?g=b[0]+" "+b[1]:b.length==4&&(g=b[1]+" "+b[2]+" "+b[3]);var c=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";g=g.replace(",","");var a=c+". "+g,i=d.data.away_team.players.findIndex(I=>I.player_id==d.data.away_team.bench[m].playerID);this.playersHome.push({played:!1,name:d.data.away_team.bench[m].playerName,position:i!=-1?this.isFemale?this.positions[d.data.away_team.players[i].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.away_team.players[i].position_id-1].name:"",position_id:d.data.away_team.players[i].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.away_team.bench[m].playerID+".png",nationality:i!=-1&&d.data.away_team.players[i].nationality?d.data.away_team.players[i].nationality.substring(0,3):"",imgNationality:i!=-1?d.data.away_team.players[i].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:a,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:d.data.away_team.bench[m].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:d.data.away_team.bench[m].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:d.data.away_team.team_id})}this.playersHome.sort((m,v)=>m.position_id>v.position_id?1:v.position_id>m.position_id?-1:0)}}await this.getMXM(e)}catch(d){return Promise.reject(d)}},cleaneDataHome(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.dataPlayersHome=[],this.homeTeamLogo="",this.homeTeamName="",this.home_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneDataAway(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersAway=[],this.subsTitle=!1,this.uniformAway="",this.uniformAwayG="",this.dataPlayersAway=[],this.awayTeamLogo="",this.awayTeamName="",this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},async getLineUpProbablesAway3D(e){try{const s=await Xh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!s||!s.data)throw new Error("There is not lineups for this game.");if(s.data.home_team.team_id==this.gameInfoheader.away_team){this.dataPlayersAway=s.data.home_team.players,this.gameInfoheader.away_team==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.away_team==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym);for(let d=0;d<s.data.home_team.starting_lineup[0].lineup.length;d++){this.away_team_id=s.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+s.data.home_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+s.data.home_team.team_id+"_g.svg","away",0);var p=s.data.home_team.starting_lineup[0].lineup[d].player_name.split(","),f=p[0].split(" "),F=p[1].trim().split(" "),K="";f.length==2||f.length==1?f[0].length<4?K=f[0]+" "+f[1]:K=f[0]:f.length==3?K=f[0]+" "+f[1]:f.length==4&&(K=f[1]+" "+f[2]+" "+f[3]);var k=F[F.length-1]!=""?F[F.length-1].charAt(0):F[F.length-2]?F[F.length-2].charAt(0):"";K=K.replace(",","");var w=k+". "+K,n=s.data.home_team.starting_lineup[0].lineup[d].x;n=Math.abs(n-100);var _=s.data.home_team.starting_lineup[0].lineup[d].y;_=Math.abs(_-100);var h=100-(100-n)*50/100;h=h*.9;var r=s.data.home_team.players.findIndex(m=>m.player_id==s.data.home_team.starting_lineup[0].lineup[d].player_id);this.playersAway.push({played:!0,name:s.data.home_team.starting_lineup[0].lineup[d].player_name,position:this.isFemale?this.positions[s.data.home_team.players[r].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[s.data.home_team.players[r].position_id-1].name,position_id:s.data.home_team.players[r].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+s.data.home_team.starting_lineup[0].lineup[d].player_id+".png",nationality:s.data.home_team.players[r].nationality?s.data.home_team.players[r].nationality.substring(0,3):"",imgNationality:s.data.home_team.players[r].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:w,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:s.data.home_team.starting_lineup[0].lineup[d].jersey_number,positionX:_-23,positionY:h,positionXOrigin:s.data.home_team.starting_lineup[0].lineup[d].y-17,positionYOrigin:s.data.home_team.starting_lineup[0].lineup[d].x-7,playerId:s.data.home_team.starting_lineup[0].lineup[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:s.data.home_team.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+s.data.home_team.team_id+".png"}if(this.playersAway.sort((d,m)=>d.position_id>m.position_id?1:m.position_id>d.position_id?-1:0),s.data.home_team.bench){for(let d=0;d<s.data.home_team.bench.length;d++){this.subsTitle=!0;var b=s.data.home_team.bench[d].playerName.split(","),y=b[0].split(" "),g=b[1].trim().split(" "),c="";y.length==2||y.length==1?y[0].length<4?c=y[0]+" "+y[1]:c=y[0]:y.length==3?c=y[0]+" "+y[1]:y.length==4&&(c=y[1]+" "+y[2]+" "+y[3]);var a=g[g.length-1]!=""?g[g.length-1].charAt(0):g[g.length-2]?g[g.length-2].charAt(0):"";c=c.replace(",","");var i=a+". "+c,u=s.data.home_team.players.findIndex(m=>m.player_id==s.data.home_team.bench[d].playerID);this.playersAway.push({played:!1,name:s.data.home_team.bench[d].playerName,position:u!=-1?this.isFemale?this.positions[s.data.home_team.players[u].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[s.data.home_team.players[u].position_id-1].name:"",position_id:s.data.home_team.players[u].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+s.data.home_team.bench[d].playerID+".png",nationality:u!=-1&&s.data.home_team.players[u].nationality?s.data.home_team.players[u].nationality.substring(0,3):"",imgNationality:u!=-1?s.data.home_team.players[u].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:i,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:s.data.home_team.bench[d].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:s.data.home_team.bench[d].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:s.data.home_team.team_id})}this.playersAway.sort((d,m)=>d.position_id>m.position_id?1:m.position_id>d.position_id?-1:0)}}if(s.data.away_team.team_id==this.gameInfoheader.away_team){this.gameInfoheader.away_team==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.away_team==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym),this.dataPlayersAway=s.data.away_team.players;for(let d=0;d<s.data.away_team.starting_lineup[0].lineup.length;d++){this.away_team_id=s.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+s.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+s.data.away_team.team_id+"_g.svg","away",0);var p=s.data.away_team.starting_lineup[0].lineup[d].player_name.split(","),f=p[0].split(" "),F=p[1].trim().split(" "),K="";f.length==2||f.length==1?f[0].length<4?K=f[0]+" "+f[1]:K=f[0]:f.length==3?K=f[0]+" "+f[1]:f.length==4&&(K=f[1]+" "+f[2]+" "+f[3]);var k=F[F.length-1]!=""?F[F.length-1].charAt(0):F[F.length-2]?F[F.length-2].charAt(0):"";K=K.replace(",","");var w=k+". "+K,n=s.data.away_team.starting_lineup[0].lineup[d].x,h=100-(100-n)*50/100;h=h*.9;var r=s.data.away_team.players.findIndex(M=>M.player_id==s.data.away_team.starting_lineup[0].lineup[d].player_id);this.playersAway.push({played:!0,name:s.data.away_team.starting_lineup[0].lineup[d].player_name,position:this.isFemale?this.positions[s.data.away_team.players[r].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[s.data.away_team.players[r].position_id-1].name,position_id:s.data.away_team.players[r].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+s.data.away_team.starting_lineup[0].lineup[d].player_id+".png",nationality:s.data.away_team.players[r].nationality?s.data.away_team.players[r].nationality.substring(0,3):"",imgNationality:s.data.away_team.players[r].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:w,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:s.data.away_team.starting_lineup[0].lineup[d].jersey_number,positionX:s.data.away_team.starting_lineup[0].lineup[d].y-13,positionY:h,positionXOrigin:s.data.away_team.starting_lineup[0].lineup[d].y-17,positionYOrigin:s.data.away_team.starting_lineup[0].lineup[d].x-7,playerId:s.data.away_team.starting_lineup[0].lineup[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:s.data.away_team.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+s.data.away_team.team_id+".png"}if(this.playersAway.sort((d,m)=>d.position_id>m.position_id?1:m.position_id>d.position_id?-1:0),s.data.away_team.bench){for(let d=0;d<s.data.away_team.bench.length;d++){this.subsTitle=!0;var b=s.data.away_team.bench[d].playerName.split(","),y=b[0].split(" "),g=b[1].trim().split(" "),c="";y.length==2||y.length==1?y[0].length<4?c=y[0]+" "+y[1]:c=y[0]:y.length==3?c=y[0]+" "+y[1]:y.length==4&&(c=y[1]+" "+y[2]+" "+y[3]);var a=g[g.length-1]!=""?g[g.length-1].charAt(0):g[g.length-2]?g[g.length-2].charAt(0):"";c=c.replace(",","");var i=a+". "+c,u=s.data.away_team.players.findIndex(E=>E.player_id==s.data.away_team.bench[d].playerID);this.playersAway.push({played:!1,name:s.data.away_team.bench[d].playerName,position:u!=-1?this.isFemale?this.positions[s.data.away_team.players[u].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[s.data.away_team.players[u].position_id-1].name:"",position_id:s.data.away_team.players[u].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+s.data.away_team.bench[d].playerID+".png",nationality:u!=-1&&s.data.away_team.players[u].nationality?s.data.away_team.players[u].nationality.substring(0,3):"",imgNationality:u!=-1?s.data.away_team.players[u].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:i,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:s.data.away_team.bench[d].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:s.data.away_team.bench[d].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:s.data.away_team.team_id})}this.playersAway.sort((d,m)=>d.position_id>m.position_id?1:m.position_id>d.position_id?-1:0)}}await this.getMXM(e)}catch(s){return Promise.reject(s)}},async getLineupProbablesHome(e){this.auxProbablesIDGameHome!=e.id&&(this.auxProbablesIDGameHome=e.id,this.cleaneDataHome(),this.getLineUpProbablesHome3D(e.id))},async getLineupProbablesAway(e){this.auxProbablesIDGameAway!=e.id&&(this.auxProbablesIDGameAway=e.id,this.cleaneDataAway(),this.getLineUpProbablesAway3D(e.id))},async getLineupProbables(e){var p={season_id:e.season_id,game_id:e.id};this.lastGetGame!=p.game_id&&(this.cleaneData(),await this.getLineUp(p.game_id)),this.lastGetGame=p.game_id},async changeCarouselItem(e){typeof e.game_id<"u"&&e.game_id!=this.gameInfoheader.id&&this.auxHistoricGameID!=e.game_id&&(this.auxHistoricGameID=e.game_id,this.cleaneData(),await this.getLineUp(e.game_id))},async changeCarouselItemRecent(e){if(e.selectedItem){var p={season_id:e.selectedItem.season_id,game_id:e.selectedItem.id};this.homeTeam.acronym=e.selectedItem.home_team_abbreviation,this.visitingTeam.acronym=e.selectedItem.away_team_abbreviation,this.cleaneData(),await this.getLineUp(p.game_id),this.lastGetGame=p.game_id}},async getHeaderInfo(e,p=null){const f=Xh.create({headers:{Authorization:`${this.tokenPremium}`}}),F=p||await f.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/seasons/"+e.season_id+"/games/"+e.game_id+"/lineups");if(this.gameInfoheader=F.data.game,this.selectedOption!="Postmatch"){for(let K=0;K<F.data.games_historic.length;K++)this.gamesHistoric.push({objgame:F.data.games_historic[K],game:F.data.games_historic[K].id,home_team_abbreviation:F.data.games_historic[K].home_team_abbreviation,away_team_abbreviation:F.data.games_historic[K].away_team_abbreviation,season:F.data.games_historic[K].season_id,description:F.data.games_historic[K].season_name+" | "+this.getRoundH(F.data.games_historic[K].matchday_abbreviation)+" | "+F.data.games_historic[K].home_team_abbreviation+" - "+F.data.games_historic[K].away_team_abbreviation});this.gamesRecientes[F.data.game.home_team_abbreviation]=[],this.gamesRecientes[F.data.game.away_team_abbreviation]=[],this.matchdaysPerTeam[F.data.game.home_team_abbreviation]=[],this.matchdaysPerTeam[F.data.game.away_team_abbreviation]=[];for(let K=0;K<F.data.home_team_games_recent.length;K++)this.gamesRecientes[F.data.game.home_team_abbreviation].push(F.data.home_team_games_recent[K]),this.matchdaysPerTeam[F.data.game.home_team_abbreviation].push({name:this.getRound(F.data.home_team_games_recent[K].matchday_abbreviation),id:F.data.home_team_games_recent[K].matchday_id});for(let K=0;K<F.data.away_team_games_recent.length;K++)this.gamesRecientes[F.data.game.away_team_abbreviation].push(F.data.away_team_games_recent[K]),this.matchdaysPerTeam[F.data.game.away_team_abbreviation].push({name:this.getRound(F.data.away_team_games_recent[K].matchday_abbreviation),id:F.data.away_team_games_recent[K].matchday_id})}},getRound(e){let p=e.replace("M","Jornada ");return p=p.replace("PO1","CFI"),p=p.replace("PO2","CFV"),p=p.replace("PO3","SFI"),p=p.replace("PO4","SFV"),p=p.replace("PO5","FI"),p=p.replace("PO6","FV"),p},getRoundH(e){let p=e.replace("M","J");return p=p.replace("PO1","CFI"),p=p.replace("PO2","CFV"),p=p.replace("PO3","SFI"),p=p.replace("PO4","SFV"),p=p.replace("PO5","FI"),p=p.replace("PO6","FV"),p},clickOnSelectOption(e){this.selectOptMenuheader=e,this.cleaneData(),this.auxProbablesIDGameAway=0,this.auxProbablesIDGameHome=0},async gameDataInfo(e,p=null){const f=Xh.create({headers:{Authorization:`${this.tokenPremium}`}}),F=p||await f.get(this.urlGames+e.season_id+"/games/"+e.game_id);this.homeTeam=F.data.teams[0],this.visitingTeam=F.data.teams[1];const K=F.data.games.find(k=>k.game_id===Number(k.game_id));this.gameForAnalysis=K},cleaneData(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.playersAway=[],this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.uniformAway="",this.uniformAwayG="",this.dataPlayersHome=[],this.dataPlayersAway=[],this.homeTeamLogo="",this.awayTeamLogo="",this.homeTeamName="",this.awayTeamName="",this.home_team_id=0,this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},getDataSocket(){X1("lineups.game."+this.game.game_id,this.socket),X1("mxm.game."+this.game.game_id,this.socket),X1("lineups.bench.game."+this.game.game_id,this.socket)},resetPlayUpdate(e,p,f,F){if(e=="Substitution")if(p=="Home"){var K=this.playersHome[f].substitutionDataID.split("@"),k=this.playersHome.findIndex(r=>r.playerId==K[1]),w=this.playersHome.findIndex(r=>r.playerId==K[2]);k!=-1&&(this.playersHome[k].substitutionOut=!1,this.playersHome[k].substitutionMin="",this.playersHome[k].substitutionDataID="",this.playersHome[k].idSubstitution=0),w!=-1&&(this.playersHome[w].substitutionIn=!1,this.playersHome[w].substitutionMin="",this.playersHome[w].substitutionDataID="",this.playersHome[w].idSubstitution=0)}else{var n=this.playersAway[f].substitutionDataID.split("@"),_=this.playersAway.findIndex(r=>r.playerId==n[1]),h=this.playersAway.findIndex(r=>r.playerId==n[2]);k!=-1&&(this.playersAway[_].substitutionOut=!1,this.playersAway[_].substitutionMin="",this.playersAway[_].substitutionDataID="",this.playersAway[_].idSubstitution=0),h!=-1&&(this.playersAway[h].substitutionIn=!1,this.playersAway[h].substitutionMin="",this.playersAway[h].substitutionDataID="",this.playersAway[h].idSubstitution=0)}e=="YellowCard"&&(p=="Home"?(this.playersHome[f].yellowcards=0,this.playersHome[f].yellowcardsMin=0,this.playersHome[f].idyellowcards=0):(this.playersAway[f].yellowcards=0,this.playersAway[f].yellowcardsMin=0,this.playersAway[f].idyellowcards=0)),e=="RedCard"&&(p=="Home"?(this.playersHome[f].redcards=0,this.playersHome[f].redcardsMin=0,this.playersHome[f].idredcards=0):(this.playersAway[f].redcards=0,this.playersAway[f].redcardsMin=0,this.playersAway[f].idredcards=0)),e=="Goals"&&(p=="Home"?(this.playersHome[F].goals=this.playersHome[F].goals-1,this.playersHome[F].goalsMin.splice(f,1),this.playersHome[F].idsGoals.splice(f,1)):(this.playersAway[F].goals=this.playersAway[F].goals-1,this.playersAway[F].goalsMin.splice(f,1),this.playersAway[F].idsGoals.splice(f,1)))},setUpResizeObserver(){if(window.ResizeObserver)eM=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),eM.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(e){try{const g=this.urlMXM+e;if(g===this.lastMXMUrl)return;this.lastMXMUrl=g;const c=await Xh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(g);for(let a=0;a<this.playersHome.length;a++)this.playersHome[a].goalsMin=[],this.playersHome[a].idsGoals=[];for(let a=0;a<this.playersAway.length;a++)this.playersAway[a].goalsMin=[],this.playersAway[a].idsGoals=[];for(let a=0;a<c.data.plays.length;a++){if(c.data.plays[a].event_type_id==3){if(c.data.plays[a].team_id==this.home_team_id){if(this.playersHome.length>0){var p=c.data.plays[a].player_id.split("@"),f=this.playersHome.findIndex(i=>i.playerId==p[0]),F=this.playersHome.findIndex(i=>i.playerId==p[1]);f!=-1&&(this.playersHome[f].idSubstitution=c.data.plays[a].play_id,this.playersHome[f].substitutionOut=!0,this.playersHome[f].substitutionMin=c.data.plays[a].minute,this.playersHome[f].substitutionDataID=c.data.plays[a].team_id+"@"+c.data.plays[a].player_id),F!=-1&&(this.playersHome[F].idSubstitution=c.data.plays[a].play_id,this.playersHome[F].substitutionIn=!0,this.playersHome[F].substitutionMin=c.data.plays[a].minute,this.playersHome[F].substitutionDataID=c.data.plays[a].team_id+"@"+c.data.plays[a].player_id)}}else if(this.playersAway.length>0){var K=c.data.plays[a].player_id.split("@"),k=this.playersAway.findIndex(i=>i.playerId==K[0]),w=this.playersAway.findIndex(i=>i.playerId==K[1]);k!=-1&&(this.playersAway[k].idSubstitution=c.data.plays[a].play_id,this.playersAway[k].substitutionOut=!0,this.playersAway[k].substitutionMin=c.data.plays[a].minute,this.playersAway[k].substitutionDataID=c.data.plays[a].team_id+"@"+c.data.plays[a].player_id),w!=-1&&(this.playersAway[w].idSubstitution=c.data.plays[a].play_id,this.playersAway[w].substitutionIn=!0,this.playersAway[w].substitutionMin=c.data.plays[a].minute,this.playersAway[w].substitutionDataID=c.data.plays[a].team_id+"@"+c.data.plays[a].player_id)}}if(c.data.plays[a].event_type_id==1){if(c.data.plays[a].team_id==this.home_team_id){if(this.playersHome.length>0){var n=this.playersHome.findIndex(i=>i.playerId==c.data.plays[a].player_id);n!=-1&&(this.playersHome[n].goals+=1,this.playersHome[n].goalsMin.push(c.data.plays[a].minute),this.playersHome[n].idsGoals.push(c.data.plays[a].play_id))}}else if(this.playersAway.length>0){var _=this.playersAway.findIndex(i=>i.playerId==c.data.plays[a].player_id);_!=-1&&(this.playersAway[_].goals+=1,this.playersAway[_].goalsMin.push(c.data.plays[a].minute),this.playersAway[_].idsGoals.push(c.data.plays[a].play_id))}}if(c.data.plays[a].event_type_id==2){if(c.data.plays[a].category_id==8){if(c.data.plays[a].team_id==this.home_team_id){if(this.playersHome.length>0){var h=this.playersHome.findIndex(i=>i.playerId==c.data.plays[a].player_id);h!=-1&&(this.playersHome[h].yellowcards+=1,this.playersHome[h].yellowcardsMin=c.data.plays[a].minute,this.playersHome[h].idyellowcards=c.data.plays[a].play_id)}}else if(this.playersAway.length>0){var r=this.playersAway.findIndex(i=>i.playerId==c.data.plays[a].player_id);r!=-1&&(this.playersAway[r].yellowcards+=1,this.playersAway[r].yellowcardsMin=c.data.plays[a].minute,this.playersAway[r].idyellowcards=c.data.plays[a].play_id)}}if(c.data.plays[a].category_id==9){if(c.data.plays[a].team_id==this.home_team_id){if(this.playersHome.length>0){var b=this.playersHome.findIndex(i=>i.playerId==c.data.plays[a].player_id);b!=-1&&(this.playersHome[b].redcards+=1,this.playersHome[b].redcardsMin=c.data.plays[a].minute,this.playersHome[b].idredcards=c.data.plays[a].play_id)}}else if(this.playersAway.length>0){var y=this.playersAway.findIndex(i=>i.playerId==c.data.plays[a].player_id);y!=-1&&(this.playersAway[y].redcards+=1,this.playersAway[y].redcardsMin=c.data.plays[a].minute,this.playersAway[y].idredcards=c.data.plays[a].play_id)}}}}}catch(g){return Promise.reject(g)}},async getLineUp(e,p){if(e!=null)try{this.lastGetLineUpGameId=e,this.lastSection=this.selectOptMenuheader;const D=Xh.create({headers:{Authorization:`${this.tokenPremium}`}}),N=p||await D.get(this.url+e);if(!N||!N.data)throw new Error("There is not lineups for this game.");this.dataPlayersHome=N.data.home_team.players,this.dataPlayersAway=N.data.away_team.players,N.data.home_team.starting_lineup[0].lineup.sort((U,G)=>U.position_id>G.position_id?1:G.position_id>U.position_id?-1:0);for(let U=0;U<N.data.home_team.starting_lineup[0].lineup.length;U++){this.home_team_id=N.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+N.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+N.data.home_team.team_id+"_g.svg","home",0);var f=N.data.home_team.starting_lineup[0].lineup[U].player_name.split(","),F=f[0].split(" "),K=f[1].trim().split(" "),k="";F.length==2||F.length==1?F[0].length<4?k=F[0]+" "+F[1]:k=F[0]:F.length==3?k=F[0]+" "+F[1]:F.length==4&&(k=F[1]+" "+F[2]+" "+F[3]);var w=K[K.length-1]!=""?K[K.length-1].charAt(0):K[K.length-2]?K[K.length-2].charAt(0):"";k=k.replace(",","");var n=w+". "+k,_=N.data.home_team.starting_lineup[0].lineup[U].x,h=_*50/100,r=N.data.home_team.players.findIndex(G=>G.player_id==N.data.home_team.starting_lineup[0].lineup[U].player_id);this.playersHome.push({played:!0,name:N.data.home_team.starting_lineup[0].lineup[U].player_name,position:this.isFemale?this.positions[N.data.home_team.players[r].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[N.data.home_team.players[r].position_id-1].name,position_id:N.data.home_team.players[r].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+N.data.home_team.starting_lineup[0].lineup[U].player_id+".png",nationality:N.data.home_team.players[r].nationality?N.data.home_team.players[r].nationality.substring(0,3):"",imgNationality:N.data.home_team.players[r].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:n,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+N.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:N.data.home_team.starting_lineup[0].lineup[U].jersey_number,positionX:N.data.home_team.starting_lineup[0].lineup[U].y-13,positionY:h*.9,positionXOrigin:N.data.home_team.starting_lineup[0].lineup[U].y-17,positionYOrigin:N.data.home_team.starting_lineup[0].lineup[U].x-2,playerId:N.data.home_team.starting_lineup[0].lineup[U].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:N.data.home_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+N.data.home_team.team_id+".png",this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+N.data.home_team.team_id+".png",this.selectOptMenuheader=="Historicos"||this.selectOptMenuheader=="Probables"?(N.data.home_team.team_id==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),N.data.home_team.team_id==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym)):this.homeTeamAbrev=this.homeTeam.acronym}if(this.playersHome.sort((U,G)=>U.position_id>G.position_id?1:G.position_id>U.position_id?-1:0),N.data.home_team.bench){for(let U=0;U<N.data.home_team.bench.length;U++){this.subsTitle=!0;var b=N.data.home_team.bench[U].playerName.split(","),y=b[0].split(" "),g=b[1].trim().split(" "),c="";y.length==2||y.length==1?y[0].length<4?c=y[0]+" "+y[1]:c=y[0]:y.length==3?c=y[0]+" "+y[1]:y.length==4&&(c=y[1]+" "+y[2]+" "+y[3]);var a=g[g.length-1]!=""?g[g.length-1].charAt(0):g[g.length-2]?g[g.length-2].charAt(0):"";c=c.replace(",","");var i=a+". "+c,u=N.data.home_team.players.findIndex(G=>G.player_id==N.data.home_team.bench[U].playerID);this.playersHome.push({played:!1,name:N.data.home_team.bench[U].playerName,position:u!=-1?this.isFemale?this.positions[N.data.home_team.players[u].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[N.data.home_team.players[u].position_id-1].name:"",position_id:N.data.home_team.players[u].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+N.data.home_team.bench[U].playerID+".png",nationality:u!=-1&&N.data.home_team.players[u].nationality?N.data.home_team.players[u].nationality.substring(0,3):"",imgNationality:u!=-1?N.data.home_team.players[u].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:i,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+N.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:N.data.home_team.bench[U].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:N.data.home_team.bench[U].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:N.data.home_team.team_id})}this.playersHome.sort((U,G)=>U.position_id>G.position_id?1:G.position_id>U.position_id?-1:0)}for(let U=0;U<N.data.away_team.starting_lineup[0].lineup.length;U++){this.away_team_id=N.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+N.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+N.data.away_team.team_id+"_g.svg","away",0);var s=N.data.away_team.starting_lineup[0].lineup[U].player_name.split(","),d=s[0].split(" "),m=s[1].trim().split(" "),v="";d.length==2||d.length==1?d[0].length<4?v=d[0]+" "+d[1]:v=d[0]:d.length==3?v=d[0]+" "+d[1]:d.length==4&&(v=d[1]+" "+d[2]+" "+d[3]);var T=m[K.length-1]!=""?m[m.length-1].charAt(0):m[m.length-2]?m[m.length-2].charAt(0):"";v=v.replace(",","");var A=T+". "+v,C=N.data.away_team.starting_lineup[0].lineup[U].x,P=100-(100-C)*50/100;P=P*.9;var L=N.data.away_team.players.findIndex(G=>G.player_id==N.data.away_team.starting_lineup[0].lineup[U].player_id);this.playersAway.push({played:!0,name:N.data.away_team.starting_lineup[0].lineup[U].player_name,position:this.isFemale?this.positions[N.data.away_team.players[L].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[N.data.away_team.players[L].position_id-1].name,position_id:N.data.away_team.players[L].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+N.data.away_team.starting_lineup[0].lineup[U].player_id+".png",nationality:N.data.away_team.players[L].nationality?N.data.away_team.players[L].nationality.substring(0,3):"",imgNationality:N.data.away_team.players[L].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:A,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+N.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:N.data.away_team.starting_lineup[0].lineup[U].jersey_number,positionX:N.data.away_team.starting_lineup[0].lineup[U].y-13,positionY:P,positionXOrigin:N.data.away_team.starting_lineup[0].lineup[U].y-17,positionYOrigin:N.data.away_team.starting_lineup[0].lineup[U].x-7,playerId:N.data.away_team.starting_lineup[0].lineup[U].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:N.data.away_team.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+N.data.away_team.team_id+".png",this.selectOptMenuheader=="Historicos"||this.selectOptMenuheader=="Probables"?(N.data.away_team.team_id==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym),N.data.away_team.team_id==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym)):this.awayTeamAbrev=this.visitingTeam.acronym}if(this.playersAway.sort((U,G)=>U.position_id>G.position_id?1:G.position_id>U.position_id?-1:0),N.data.away_team.bench){for(let U=0;U<N.data.away_team.bench.length;U++){this.subsTitle=!0;var E=N.data.away_team.bench[U].playerName.split(","),I=E[0].split(" "),M=E[1].trim().split(" "),S="";I.length==2||I.length==1?I[0].length<4?S=I[0]+" "+I[1]:S=I[0]:I.length==3?S=I[0]+" "+I[1]:I.length==4&&(S=I[1]+" "+I[2]+" "+I[3]);var B=M[M.length-1]!=""?M[M.length-1].charAt(0):M[M.length-2]?M[M.length-2].charAt(0):"";S=S.replace(",","");var x=B+". "+S,O=N.data.away_team.players.findIndex(G=>G.player_id==N.data.away_team.bench[U].playerID);this.playersAway.push({played:!1,name:N.data.away_team.bench[U].playerName,position:O!=-1?this.isFemale?this.positions[N.data.away_team.players[O].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[N.data.away_team.players[O].position_id-1].name:"",position_id:N.data.away_team.players[O].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+N.data.away_team.bench[U].playerID+".png",nationality:O!=-1&&N.data.away_team.players[O].nationality?N.data.away_team.players[O].nationality.substring(0,3):"",imgNationality:O!=-1?N.data.away_team.players[O].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:x,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+N.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:N.data.away_team.bench[U].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:N.data.away_team.bench[U].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:N.data.away_team.team_id})}this.playersAway.sort((U,G)=>U.position_id>G.position_id?1:G.position_id>U.position_id?-1:0)}setTimeout(async()=>{await this.getMXM(e)},500)}catch(D){return Promise.reject(D)}},closeChange(){this.subsActive=!1},imageExists(e,p,f){var F=new XMLHttpRequest,K=0;p=="away"?f==1?this.uniformAway==""&&(F.open("HEAD",e,!1),F.send(),K=1):this.uniformAwayG==""&&(F.open("HEAD",e,!1),F.send(),K=1):f==1?this.uniformHome==""&&(F.open("HEAD",e,!1),F.send(),K=1):this.uniformHomeG==""&&(F.open("HEAD",e,!1),F.send(),K=1),K==1&&(F.status==200?p=="away"?f==1?this.uniformAway="url("+e+")":this.uniformAwayG="url("+e+")":f==1?this.uniformHome="url("+e+")":this.uniformHomeG="url("+e+")":p=="away"?f==1?this.uniformAway="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita.svg)":this.uniformAwayG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita_g.svg)":f==1?this.uniformHome="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local.svg)":this.uniformHomeG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local_g.svg)")},viewChange(e){var p=e.split("@");if(p[0]==this.home_team_id){var f=this.playersHome.findIndex(w=>w.playerId==p[1]),F=this.playersHome.findIndex(w=>w.playerId==p[2]);f!=-1?(this.substitutionModal.min=this.playersHome[f].substitutionMin,this.substitutionModal.in.name=this.playersHome[f].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersHome[f].imgTeam,this.substitutionModal.in.shirt_number=this.playersHome[f].shirt_number,this.substitutionModal.in.playerImg=this.playersHome[f].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersHome[f].imgNationality):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),F!=-1?(this.substitutionModal.out.name=this.playersHome[F].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[F].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[F].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[F].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[F].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}else{var K=this.playersAway.findIndex(w=>w.playerId==p[1]),k=this.playersAway.findIndex(w=>w.playerId==p[2]);K!=-1?(this.substitutionModal.min=this.playersAway[K].substitutionMin,this.substitutionModal.in.name=this.playersAway[K].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[K].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[K].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[K].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[K].shirt_number):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),k!=-1?(this.substitutionModal.out.name=this.playersAway[k].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersAway[k].imgTeam,this.substitutionModal.out.playerImg=this.playersAway[k].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersAway[k].imgNationality,this.substitutionModal.out.shirt_number=this.playersAway[k].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}this.subsActive=!0},viewLineupTeam(e){this.teamActive=e}}},Mye={class:"size-browser-class"},Iye={class:"lineup-players is-centered"},Pye={style:{width:"92%",margin:"0 auto","margin-top":"10px"}},Lye={class:"modal-substitutions__substitution-container"},Bye={class:"modal-substitutions__substitution-container__header"},Oye={style:{"margin-left":"32px"}},zye=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn-close.png"},null,-1),Dye=[zye],Fye={class:"modal-substitutions__substitution-container__players-container"},Nye={class:"substitution-player-data-container"},Rye={class:"substitution-player-data-container__img-player"},Vye=["src"],jye={class:"substitution-player-data-container__img-player__team"},Uye=["src"],$ye={class:"substitution-player-data-container__name-player"},Gye={class:"substitution-player-data-container__position-player"},Hye={class:"substitution-player-data-container__shirt-player",style:{"padding-left":"30px"}},qye={key:0,class:"substitution-player-data-container__shirt-player__circle"},Wye={key:1},Zye=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_salio.png"},null,-1),Xye=[Zye],Yye={class:"substitution-player-data-container__substitution-player"},Kye={class:"substitution-indicator nomargin"},Jye=t.createElementVNode("div",null,[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_salio.png"})],-1),Qye={class:"substitution-player-data-container__center"},eve=t.createElementVNode("div",{class:"substitution-player-data-container__border"},null,-1),tve={class:"substitution-player-data-container__minute"},rve={class:"substitution-player-data-container"},nve={class:"substitution-player-data-container__img-player"},ave=["src"],ive={class:"substitution-player-data-container__img-player__team"},ove=["src"],sve={class:"substitution-player-data-container__name-player"},lve={class:"substitution-player-data-container__position-player"},cve={class:"substitution-player-data-container__shirt-player",style:{"padding-right":"20px"}},uve={key:0},dve=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_ingreso.png"},null,-1),hve=[dve],pve={key:1,class:"substitution-player-data-container__shirt-player__circle"},fve={class:"substitution-player-data-container__substitution-player"},mve={class:"substitution-indicator nomargin"},gve=t.createElementVNode("div",null,[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_ingreso.png"})],-1),yve=["onClick"],vve=t.createElementVNode("img",{src:q4},null,-1),_ve=[vve],bve=["onClick"],xve=t.createElementVNode("img",{src:q4},null,-1),wve=[xve],kve={key:0,class:"cont-lineup-gsc-componente"},Sve={class:"shield-team-cont homecolor"},Tve=["src"],Cve={class:"shield-team-cont awaycolor"},Ave=["src"],Eve={key:0,class:"header-lineup-shield-team home"},Mve={class:"shield-team-cont homecolor"},Ive=["src"],Pve={class:"header-lineup-shield-team-wrapper"},Lve={class:"header-lineup-shield-team-wrapper header-lineup-shield-team-wrapper-spacer"},Bve=t.createElementVNode("div",{class:"line-substitutions"},"SUPLENTES",-1),Ove={key:0,class:"header-lineup-shield-team away"},zve={class:"shield-team-cont awaycolor"},Dve=["src"],Fve={class:"header-lineup-shield-team-wrapper"},Nve={class:"header-lineup-shield-team-wrapper header-lineup-shield-team-wrapper-spacer"},Rve=t.createElementVNode("div",{class:"line-substitutions"},"SUPLENTES",-1),Vve=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/graf-busqueda@3x.png",width:"74"},null,-1),jve=[Vve],Uve=t.createElementVNode("br",null,null,-1);function $ve(e,p,f,F,K,k){const w=t.resolveComponent("HeaderPlayerPostmatch"),n=t.resolveComponent("HeaderPlayerHistorico"),_=t.resolveComponent("HeaderPlayerRecientes"),h=t.resolveComponent("HeaderPlayerProbables"),r=t.resolveComponent("CardPlayer");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",Mye,t.toDisplayString(k.sizeBrowser),1),t.createElementVNode("div",Iye,[t.createElementVNode("div",Pye,[f.selectedOption=="Postmatch"?(t.openBlock(),t.createBlock(w,{key:0,onClickOnSelectOption:k.clickOnSelectOption,"option-selected":K.selectOptMenuheader,"width-size":K.gamesContainerWidth,"game-info":K.gameInfoheader,"is-live":f.isLive,onInput:k.changeCarouselItem,"matchdays-default":K.matchdaysPerTeam,"game-historic":K.gamesHistoric},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","is-live","onInput","matchdays-default","game-historic"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[K.selectOptMenuheader=="Historicos"?(t.openBlock(),t.createBlock(n,{key:0,onClickOnSelectOption:k.clickOnSelectOption,"option-selected":K.selectOptMenuheader,"width-size":K.gamesContainerWidth,"game-info":K.gameInfoheader,onInput:k.changeCarouselItem,"matchdays-default":K.matchdaysPerTeam,"game-historic":K.gamesHistoric,"game-recientes":Object.keys(K.gameInfoheader).length>0?K.gamesRecientes[K.gameInfoheader.home_team_abbreviation].length+K.gamesRecientes[K.gameInfoheader.away_team_abbreviation].length:0},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","onInput","matchdays-default","game-historic","game-recientes"])):t.createCommentVNode("",!0),K.selectOptMenuheader=="Recientes"?(t.openBlock(),t.createBlock(_,{onClickOnSelectOption:k.clickOnSelectOption,style:{"margin-bottom":"100px"},key:K.keyUpdateRecientes,"option-selected":K.selectOptMenuheader,"width-size":K.gamesContainerWidth,"game-info":K.gameInfoheader,"player-home":K.playersHome,"player-away":K.playersAway,"matchdays-default":K.matchdaysPerTeam,onInput:k.changeCarouselItemRecent,"game-recientes":K.gamesRecientes},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","player-home","player-away","matchdays-default","onInput","game-recientes"])):t.createCommentVNode("",!0),K.selectOptMenuheader=="Probables"?(t.openBlock(),t.createBlock(h,{key:2,onClickOnSelectOption:k.clickOnSelectOption,style:{"margin-bottom":"80px"},"matchdays-default":K.matchdaysPerTeam,"option-selected":K.selectOptMenuheader,"width-size":K.gamesContainerWidth,"game-info":K.gameInfoheader,onChangehome:k.getLineupProbablesHome,onChangeaway:k.getLineupProbablesAway,"game-recientes":K.gamesRecientes},null,8,["onClickOnSelectOption","matchdays-default","option-selected","width-size","game-info","onChangehome","onChangeaway","game-recientes"])):t.createCommentVNode("",!0)],64)),t.createElementVNode("div",{class:t.normalizeClass(["lineup-players__container",{fallback:K.gamesContainerWidth===0}]),ref:"gamesContainer"},[t.createElementVNode("div",{class:t.normalizeClass(k.fieldcontainerClass)},[t.createElementVNode("div",{class:t.normalizeClass(["modal-substitutions",K.subsActive?"activeSub":"deactiveSub"])},[t.createElementVNode("div",Lye,[t.createElementVNode("div",Bye,[t.createElementVNode("span",Oye,[t.createTextVNode("Cambio "),t.createElementVNode("span",{class:"close-susbtitutions",onClick:p[0]||(p[0]=b=>k.closeChange())},Dye)])]),t.createElementVNode("div",Fye,[t.createElementVNode("div",Nye,[t.createElementVNode("div",Rye,[K.substitutionModal.in.playerImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:K.substitutionModal.in.playerImg,width:"72",alt:"Jugador"},null,8,Vye)):t.createCommentVNode("",!0),t.createElementVNode("div",jye,[K.substitutionModal.in.teamImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:K.substitutionModal.in.teamImg,width:"28",alt:"team"},null,8,Uye)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"substitution-player-data-container__img-player__img-cont",style:t.normalizeStyle({backgroundImage:"url("+K.substitutionModal.in.nationalityimg+")"})},null,4)]),t.createElementVNode("div",$ye,t.toDisplayString(K.substitutionModal.in.name),1),t.createElementVNode("div",Gye,t.toDisplayString(K.substitutionModal.in.position),1),t.createElementVNode("div",Hye,[K.substitutionModal.in.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",qye,t.toDisplayString(K.substitutionModal.in.shirt_number),1)):t.createCommentVNode("",!0),K.substitutionModal.in.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",Wye,Xye)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Yye,[t.createElementVNode("template",null,[t.createElementVNode("div",Kye,[t.createElementVNode("div",null,t.toDisplayString(K.substitutionModal.min)+"'",1),Jye])])])]),t.createElementVNode("div",Qye,[eve,t.createElementVNode("div",tve,t.toDisplayString(K.substitutionModal.min)+"' ",1)]),t.createElementVNode("div",rve,[t.createElementVNode("div",nve,[K.substitutionModal.out.playerImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:K.substitutionModal.out.playerImg,width:"72",alt:"Jugador"},null,8,ave)):t.createCommentVNode("",!0),t.createElementVNode("div",ive,[K.substitutionModal.out.teamImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:K.substitutionModal.out.teamImg,width:"28",alt:"team"},null,8,ove)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"substitution-player-data-container__img-player__img-cont",style:t.normalizeStyle({backgroundImage:"url("+K.substitutionModal.out.nationalityimg+")"})},null,4)]),t.createElementVNode("div",sve,t.toDisplayString(K.substitutionModal.out.name),1),t.createElementVNode("div",lve,t.toDisplayString(K.substitutionModal.out.position),1),t.createElementVNode("div",cve,[K.substitutionModal.out.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",uve,hve)):t.createCommentVNode("",!0),K.substitutionModal.out.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",pve,t.toDisplayString(K.substitutionModal.out.shirt_number),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",fve,[t.createElementVNode("template",null,[t.createElementVNode("div",mve,[t.createElementVNode("div",null,t.toDisplayString(K.substitutionModal.min)+"'",1),gve])])])])])])],2),t.createElementVNode("div",{class:t.normalizeClass(k.canchacontainerClass)},[(K.gameForAnalysis.game_status==4||K.gameForAnalysis.game_status==1)&&K.gameForAnalysis.is_live==0&&k.numPlayer==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([k.notificationnolineupsClass])}," Las alineaciones estarán disponibles unos minutos antes de que inicie el partido. ",2)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(K.playersHome,(b,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"jersey_home"},[b.played?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([k.itemplayerfieldClass,K.gamesContainerWidth<740?K.teamActive=="home"?"active":"disabled":"",K.gamesContainerWidth<740?"movil":""]),style:t.normalizeStyle(K.movil?{top:b.positionXOrigin+"%",left:b.positionYOrigin+"%"}:{top:b.positionX+"%",left:b.positionY+2+"%"})},[t.createElementVNode("div",{class:t.normalizeClass(k.jerseyitemplayerClass),style:t.normalizeStyle(b.position!="Portero"?{backgroundImage:K.uniformHome}:{backgroundImage:K.uniformHomeG})},[t.createElementVNode("div",{class:t.normalizeClass([k.yellowcarddivclass,b.yellowcards>0&&b.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([k.redcarddivClass,b.yellowcards==0&&b.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([k.yellowredcarddivClass,b.yellowcards>0&&b.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([k.goalcarddivClass,b.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),t.createElementVNode("div",{class:t.normalizeClass(k.infoplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(k.infonameplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(["num-item-new",[K.gamesContainerWidth<740?"movil":""]])},t.toDisplayString(b.shirt_number),3),t.createTextVNode(" "+t.toDisplayString(b.abrevNamePlayer),1)],2),b.substitutionIn||b.substitutionOut?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(k.infochangeplayeritemClass),onClick:g=>k.viewChange(b.substitutionDataID)},_ve,10,yve)):t.createCommentVNode("",!0)],2)],6)):t.createCommentVNode("",!0)],64))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(K.playersAway,(b,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"jersey_away"},[b.played?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([k.itemplayerfieldClass,K.gamesContainerWidth<740?K.teamActive=="away"?"active":"disabled":"",K.gamesContainerWidth<740?"movil":""]),style:t.normalizeStyle(K.movil?{top:b.positionXOrigin+"%",left:b.positionYOrigin+"%"}:{top:b.positionX+"%",left:b.positionY+"%"})},[t.createElementVNode("div",{class:t.normalizeClass(k.jerseyitemplayerClass),style:t.normalizeStyle(b.position!="Portero"?{backgroundImage:K.uniformAway}:{backgroundImage:K.uniformAwayG})},[t.createElementVNode("div",{class:t.normalizeClass([k.yellowcarddivclass,b.yellowcards>0&&b.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([k.redcarddivClass,b.yellowcards==0&&b.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([k.yellowredcarddivClass,b.yellowcards>0&&b.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([k.goalcarddivClass,b.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),t.createElementVNode("div",{class:t.normalizeClass(k.infoplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(k.infonameplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(["num-item-new-away",[K.gamesContainerWidth<740?"movil":""]])},t.toDisplayString(b.shirt_number),3),t.createTextVNode(" "+t.toDisplayString(b.abrevNamePlayer),1)],2),b.substitutionIn||b.substitutionOut?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(k.infochangeplayeritemClass),onClick:g=>k.viewChange(b.substitutionDataID)},wve,10,bve)):t.createCommentVNode("",!0)],2)],6)):t.createCommentVNode("",!0)],64))),128))],2)],2),(K.gameForAnalysis.game_status==4||K.gameForAnalysis.game_status==1)&&K.gameForAnalysis.is_live==0&&k.numPlayer==0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",kve,[t.createElementVNode("div",{class:t.normalizeClass(k.containerlineupsClass)},[t.createElementVNode("div",{class:t.normalizeClass(k.menuTeamsClass)},[t.createElementVNode("div",{class:"header-lineup-shield-team home",style:t.normalizeStyle([{cursor:"pointer"},K.teamActive=="home"?"background-color: #214e67; border-radius: 10px;":""]),onClick:p[1]||(p[1]=b=>k.viewLineupTeam("home"))},[t.createElementVNode("div",Sve,[K.homeTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:K.homeTeamLogo,class:"gsc-logo-team",width:"28"},null,8,Tve)):t.createCommentVNode("",!0)]),t.createElementVNode("div",null,t.toDisplayString(K.homeTeam.acronym),1)],4),t.createElementVNode("div",{class:"header-lineup-shield-team away",style:t.normalizeStyle([{cursor:"pointer"},K.teamActive=="away"?"background-color: #214e67; border-radius: 10px;":""]),onClick:p[2]||(p[2]=b=>k.viewLineupTeam("away"))},[t.createElementVNode("div",null,t.toDisplayString(K.visitingTeam.acronym),1),t.createElementVNode("div",Cve,[K.awayTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:K.awayTeamLogo,class:"gsc-logo-team",width:"28"},null,8,Ave)):t.createCommentVNode("",!0)])],4)],2),K.teamActive=="home"||K.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(k.containerClassHome)},[K.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",Eve,[t.createElementVNode("div",Mve,[K.homeTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:K.homeTeamLogo,class:"gsc-logo-team",width:"28"},null,8,Ive)):t.createCommentVNode("",!0)]),t.createElementVNode("div",null,t.toDisplayString(K.homeTeamAbrev),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",Pve,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(K.playersHome,(b,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y},[b.played?(t.openBlock(),t.createBlock(r,{key:0,type:1,onOpenProfile:k.onOpenProfile,position:k.positionClass,data:{color:y%2==0?"#0d1d29":"#172531",season:f.game.season_id,img:b.imgPlayer,playerid:b.playerId,teamid:b.id_team,name:b.name,position:b.position,nation:b.imgNationality,shirt:b.shirt_number,yellowcard:b.yellowcards,redcard:b.redcards,yellowcardmin:b.yellowcardsMin,redcardmin:b.redcardsMin,goalsMin:b.goalsMin,substitutionIn:b.substitutionIn,substitutionOut:b.substitutionOut,substitutionMin:b.substitutionMin,section:K.selectOptMenuheader,type:f.selectedOption}},null,8,["onOpenProfile","position","data"])):t.createCommentVNode("",!0)],64))),128))]),t.createElementVNode("div",Lve,[Bve,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(K.playersHome,(b,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y},[b.played?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(r,{key:0,type:1,onOpenProfile:k.onOpenProfile,position:k.positionClass,data:{color:y%2==0?"#0d1d29":"#172531",season:f.game.season_id,img:b.imgPlayer,playerid:b.playerId,teamid:b.id_team,name:b.name,position:b.position,nation:b.imgNationality,shirt:b.shirt_number,yellowcard:b.yellowcards,redcard:b.redcards,yellowcardmin:b.yellowcardsMin,redcardmin:b.redcardsMin,goalsMin:b.goalsMin,substitutionIn:b.substitutionIn,substitutionOut:b.substitutionOut,substitutionMin:b.substitutionMin,section:K.selectOptMenuheader,type:f.selectedOption}},null,8,["onOpenProfile","position","data"]))],64))),128))])],2)):t.createCommentVNode("",!0),K.teamActive=="away"||K.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(k.containerClassAway)},[K.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",Ove,[t.createElementVNode("div",null,t.toDisplayString(K.awayTeamAbrev),1),t.createElementVNode("div",zve,[K.awayTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:K.awayTeamLogo,class:"gsc-logo-team",width:"28"},null,8,Dve)):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("div",Fve,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(K.playersAway,(b,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"line_away"},[b.played?(t.openBlock(),t.createBlock(r,{key:0,onOpenProfile:k.onOpenProfile,type:2,position:k.positionClass2,data:{color:y%2==0?"#0d1d29":"#172531",season:f.game.season_id,playerid:b.playerId,teamid:b.id_team,img:b.imgPlayer,name:b.name,position:b.position,nation:b.imgNationality,shirt:b.shirt_number,yellowcard:b.yellowcards,redcard:b.redcards,yellowcardmin:b.yellowcardsMin,redcardmin:b.redcardsMin,goalsMin:b.goalsMin,substitutionIn:b.substitutionIn,substitutionOut:b.substitutionOut,substitutionMin:b.substitutionMin,section:K.selectOptMenuheader,type:f.selectedOption}},null,8,["onOpenProfile","position","data"])):t.createCommentVNode("",!0)],64))),128))]),t.createElementVNode("div",Nve,[Rve,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(K.playersAway,(b,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"line_away"},[b.played?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(r,{key:0,onOpenProfile:k.onOpenProfile,type:2,position:k.positionClass2,data:{color:y%2==0?"#0d1d29":"#172531",season:f.game.season_id,playerid:b.playerId,teamid:b.id_team,img:b.imgPlayer,name:b.name,position:b.position,nation:b.imgNationality,shirt:b.shirt_number,yellowcard:b.yellowcards,redcard:b.redcards,yellowcardmin:b.yellowcardsMin,redcardmin:b.redcardsMin,goalsMin:b.goalsMin,substitutionIn:b.substitutionIn,substitutionOut:b.substitutionOut,substitutionMin:b.substitutionMin,section:K.selectOptMenuheader,type:f.selectedOption}},null,8,["onOpenProfile","position","data"]))],64))),128))])],2)):t.createCommentVNode("",!0)],2)])),(K.gameForAnalysis.game_status==4||K.gameForAnalysis.game_status==1)&&K.gameForAnalysis.is_live==0&&k.numPlayer==0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(k.containernolineups)},[t.createElementVNode("div",{class:t.normalizeClass([k.containernolineups+"__img-search",K.gamesContainerWidth<740?"movil":""])},jve,2),t.createElementVNode("div",{class:t.normalizeClass([k.containernolineups+"__title-info",K.gamesContainerWidth<740?"movil":""])}," Alineaciones sin definir ",2),t.createElementVNode("div",{class:t.normalizeClass([k.containernolineups+"__subtitle-info",K.gamesContainerWidth<740?"movil":""])},[t.createTextVNode(" Los equipos no han presentado sus alineaciones. Estas "),Uve,t.createTextVNode("serán dadas minutos antes del inicio del partido. ")],2)],2)):t.createCommentVNode("",!0)],2)])])])}const Gve=Yh(Eye,[["render",$ve]]),Hve={components:{GSCLineups2D:fde,GSCLineups3D:Gve},props:{isFemale:{type:Boolean,default:!1},selectedOption:{type:String,default:"Historicos"},game:{type:Object,default:()=>{}},isLive:{type:Boolean,default:!1},type:{type:String,default:"2D"},socket:{type:Object,default:()=>{}}},watch:{},data(){return{}},computed:{},methods:{onOpenProfile(e){this.$emit("onOpenProfile",e)}}};function qve(e,p,f,F,K,k){const w=t.resolveComponent("GSCLineups2D"),n=t.resolveComponent("GSCLineups3D");return t.openBlock(),t.createElementBlock("div",null,[f.type=="2D"?(t.openBlock(),t.createBlock(w,{key:0,"selected-option":f.selectedOption,game:f.game,socket:f.socket},null,8,["selected-option","game","socket"])):t.createCommentVNode("",!0),f.type=="3D"?(t.openBlock(),t.createBlock(n,{key:1,"is-live":f.isLive,isFemale:f.isFemale,onOnOpenProfile:k.onOpenProfile,"selected-option":f.selectedOption,game:f.game,socket:f.socket},null,8,["is-live","isFemale","onOnOpenProfile","selected-option","game","socket"])):t.createCommentVNode("",!0)])}const tM=Yh(Hve,[["render",qve]]),lAt="",cAt="",Wve={class:"alineaciones-container"},Zve=ao({__name:"GSCLineupsMain",props:{tournamentSelected:{type:Object,default:()=>({})},isWidget:{type:Boolean,default:!1},game:{type:Object,default:()=>({gameId:79623,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:10,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:()=>({})}},emits:["onOpenProfile"],setup(e,{emit:p}){const f=e,F=t.ref(0);t.watch(()=>f.game,k=>{F.value=k.gameId},{deep:!0,immediate:!0});function K(k){f.isWidget||p("onOpenProfile",k)}return(k,w)=>(t.openBlock(),t.createElementBlock("div",Wve,[e.game.status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(tM),{socket:e.socket,key:F.value,type:"3D","is-female":e.tournamentSelected.is_female==1,"is-live":e.game.is_live==1,"selected-option":"Historicos",game:{game_id:e.game.gameId,season_id:e.game.seasonId,prematch:!1},onOnOpenProfile:K},null,8,["socket","is-female","is-live","game"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(tM),{"is-female":e.tournamentSelected.is_female==1,socket:e.socket,key:F.value,type:"3D","is-live":e.game.is_live==1,"selected-option":"Postmatch",game:{game_id:e.game.gameId,season_id:e.game.seasonId,prematch:!1},onOnOpenProfile:K},null,8,["is-female","socket","is-live","game"])):t.createCommentVNode("",!0)],64))]))}},[["__scopeId","data-v-f877232a"]]);function rM(e,p){return function(){return e.apply(p,arguments)}}const{toString:Xve}=Object.prototype,{getPrototypeOf:t6}=Object,sb=(e=>p=>{const f=Xve.call(p);return e[f]||(e[f]=f.slice(8,-1).toLowerCase())})(Object.create(null)),Bf=e=>(e=e.toLowerCase(),p=>sb(p)===e),lb=e=>p=>typeof p===e,{isArray:Y1}=Array,Ev=lb("undefined");function Yve(e){return e!==null&&!Ev(e)&&e.constructor!==null&&!Ev(e.constructor)&&_p(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const nM=Bf("ArrayBuffer");function Kve(e){let p;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?p=ArrayBuffer.isView(e):p=e&&e.buffer&&nM(e.buffer),p}const Jve=lb("string"),_p=lb("function"),aM=lb("number"),cb=e=>e!==null&&typeof e=="object",Qve=e=>e===!0||e===!1,ub=e=>{if(sb(e)!=="object")return!1;const p=t6(e);return(p===null||p===Object.prototype||Object.getPrototypeOf(p)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},e2e=Bf("Date"),t2e=Bf("File"),r2e=Bf("Blob"),n2e=Bf("FileList"),a2e=e=>cb(e)&&_p(e.pipe),i2e=e=>{let p;return e&&(typeof FormData=="function"&&e instanceof FormData||_p(e.append)&&((p=sb(e))==="formdata"||p==="object"&&_p(e.toString)&&e.toString()==="[object FormData]"))},o2e=Bf("URLSearchParams"),[s2e,l2e,c2e,u2e]=["ReadableStream","Request","Response","Headers"].map(Bf),d2e=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Mv(e,p,{allOwnKeys:f=!1}={}){if(e===null||typeof e>"u")return;let F,K;if(typeof e!="object"&&(e=[e]),Y1(e))for(F=0,K=e.length;F<K;F++)p.call(null,e[F],F,e);else{const k=f?Object.getOwnPropertyNames(e):Object.keys(e),w=k.length;let n;for(F=0;F<w;F++)n=k[F],p.call(null,e[n],n,e)}}function iM(e,p){p=p.toLowerCase();const f=Object.keys(e);let F=f.length,K;for(;F-- >0;)if(K=f[F],p===K.toLowerCase())return K;return null}const yg=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),oM=e=>!Ev(e)&&e!==yg;function r6(){const{caseless:e}=oM(this)&&this||{},p={},f=(F,K)=>{const k=e&&iM(p,K)||K;ub(p[k])&&ub(F)?p[k]=r6(p[k],F):ub(F)?p[k]=r6({},F):Y1(F)?p[k]=F.slice():p[k]=F};for(let F=0,K=arguments.length;F<K;F++)arguments[F]&&Mv(arguments[F],f);return p}const h2e=(e,p,f,{allOwnKeys:F}={})=>(Mv(p,(K,k)=>{f&&_p(K)?e[k]=rM(K,f):e[k]=K},{allOwnKeys:F}),e),p2e=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),f2e=(e,p,f,F)=>{e.prototype=Object.create(p.prototype,F),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:p.prototype}),f&&Object.assign(e.prototype,f)},m2e=(e,p,f,F)=>{let K,k,w;const n={};if(p=p||{},e==null)return p;do{for(K=Object.getOwnPropertyNames(e),k=K.length;k-- >0;)w=K[k],(!F||F(w,e,p))&&!n[w]&&(p[w]=e[w],n[w]=!0);e=f!==!1&&t6(e)}while(e&&(!f||f(e,p))&&e!==Object.prototype);return p},g2e=(e,p,f)=>{e=String(e),(f===void 0||f>e.length)&&(f=e.length),f-=p.length;const F=e.indexOf(p,f);return F!==-1&&F===f},y2e=e=>{if(!e)return null;if(Y1(e))return e;let p=e.length;if(!aM(p))return null;const f=new Array(p);for(;p-- >0;)f[p]=e[p];return f},v2e=(e=>p=>e&&p instanceof e)(typeof Uint8Array<"u"&&t6(Uint8Array)),_2e=(e,p)=>{const f=(e&&e[Symbol.iterator]).call(e);let F;for(;(F=f.next())&&!F.done;){const K=F.value;p.call(e,K[0],K[1])}},b2e=(e,p)=>{let f;const F=[];for(;(f=e.exec(p))!==null;)F.push(f);return F},x2e=Bf("HTMLFormElement"),w2e=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(p,f,F){return f.toUpperCase()+F}),sM=(({hasOwnProperty:e})=>(p,f)=>e.call(p,f))(Object.prototype),k2e=Bf("RegExp"),lM=(e,p)=>{const f=Object.getOwnPropertyDescriptors(e),F={};Mv(f,(K,k)=>{let w;(w=p(K,k,e))!==!1&&(F[k]=w||K)}),Object.defineProperties(e,F)},S2e=e=>{lM(e,(p,f)=>{if(_p(e)&&["arguments","caller","callee"].indexOf(f)!==-1)return!1;const F=e[f];if(_p(F)){if(p.enumerable=!1,"writable"in p){p.writable=!1;return}p.set||(p.set=()=>{throw Error("Can not rewrite read-only method '"+f+"'")})}})},T2e=(e,p)=>{const f={},F=K=>{K.forEach(k=>{f[k]=!0})};return Y1(e)?F(e):F(String(e).split(p)),f},C2e=()=>{},A2e=(e,p)=>e!=null&&Number.isFinite(e=+e)?e:p,n6="abcdefghijklmnopqrstuvwxyz",cM="0123456789",uM={DIGIT:cM,ALPHA:n6,ALPHA_DIGIT:n6+n6.toUpperCase()+cM},E2e=(e=16,p=uM.ALPHA_DIGIT)=>{let f="";const{length:F}=p;for(;e--;)f+=p[Math.random()*F|0];return f};function M2e(e){return!!(e&&_p(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const I2e=e=>{const p=new Array(10),f=(F,K)=>{if(cb(F)){if(p.indexOf(F)>=0)return;if(!("toJSON"in F)){p[K]=F;const k=Y1(F)?[]:{};return Mv(F,(w,n)=>{const _=f(w,K+1);!Ev(_)&&(k[n]=_)}),p[K]=void 0,k}}return F};return f(e,0)},P2e=Bf("AsyncFunction"),L2e=e=>e&&(cb(e)||_p(e))&&_p(e.then)&&_p(e.catch),dM=((e,p)=>e?setImmediate:p?((f,F)=>(yg.addEventListener("message",({source:K,data:k})=>{K===yg&&k===f&&F.length&&F.shift()()},!1),K=>{F.push(K),yg.postMessage(f,"*")}))(`axios@${Math.random()}`,[]):f=>setTimeout(f))(typeof setImmediate=="function",_p(yg.postMessage)),B2e=typeof queueMicrotask<"u"?queueMicrotask.bind(yg):typeof process<"u"&&process.nextTick||dM,Ea={isArray:Y1,isArrayBuffer:nM,isBuffer:Yve,isFormData:i2e,isArrayBufferView:Kve,isString:Jve,isNumber:aM,isBoolean:Qve,isObject:cb,isPlainObject:ub,isReadableStream:s2e,isRequest:l2e,isResponse:c2e,isHeaders:u2e,isUndefined:Ev,isDate:e2e,isFile:t2e,isBlob:r2e,isRegExp:k2e,isFunction:_p,isStream:a2e,isURLSearchParams:o2e,isTypedArray:v2e,isFileList:n2e,forEach:Mv,merge:r6,extend:h2e,trim:d2e,stripBOM:p2e,inherits:f2e,toFlatObject:m2e,kindOf:sb,kindOfTest:Bf,endsWith:g2e,toArray:y2e,forEachEntry:_2e,matchAll:b2e,isHTMLForm:x2e,hasOwnProperty:sM,hasOwnProp:sM,reduceDescriptors:lM,freezeMethods:S2e,toObjectSet:T2e,toCamelCase:w2e,noop:C2e,toFiniteNumber:A2e,findKey:iM,global:yg,isContextDefined:oM,ALPHABET:uM,generateString:E2e,isSpecCompliantForm:M2e,toJSONObject:I2e,isAsyncFn:P2e,isThenable:L2e,setImmediate:dM,asap:B2e};function rl(e,p,f,F,K){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",p&&(this.code=p),f&&(this.config=f),F&&(this.request=F),K&&(this.response=K,this.status=K.status?K.status:null)}Ea.inherits(rl,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:Ea.toJSONObject(this.config),code:this.code,status:this.status}}});const hM=rl.prototype,pM={};["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=>{pM[e]={value:e}}),Object.defineProperties(rl,pM),Object.defineProperty(hM,"isAxiosError",{value:!0}),rl.from=(e,p,f,F,K,k)=>{const w=Object.create(hM);return Ea.toFlatObject(e,w,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),rl.call(w,e.message,p,f,F,K),w.cause=e,w.name=e.name,k&&Object.assign(w,k),w};const O2e=null;function a6(e){return Ea.isPlainObject(e)||Ea.isArray(e)}function fM(e){return Ea.endsWith(e,"[]")?e.slice(0,-2):e}function mM(e,p,f){return e?e.concat(p).map(function(F,K){return F=fM(F),!f&&K?"["+F+"]":F}).join(f?".":""):p}function z2e(e){return Ea.isArray(e)&&!e.some(a6)}const D2e=Ea.toFlatObject(Ea,{},null,function(e){return/^is[A-Z]/.test(e)});function db(e,p,f){if(!Ea.isObject(e))throw new TypeError("target must be an object");p=p||new FormData,f=Ea.toFlatObject(f,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,c){return!Ea.isUndefined(c[g])});const F=f.metaTokens,K=f.visitor||h,k=f.dots,w=f.indexes,n=(f.Blob||typeof Blob<"u"&&Blob)&&Ea.isSpecCompliantForm(p);if(!Ea.isFunction(K))throw new TypeError("visitor must be a function");function _(g){if(g===null)return"";if(Ea.isDate(g))return g.toISOString();if(!n&&Ea.isBlob(g))throw new rl("Blob is not supported. Use a Buffer instead.");return Ea.isArrayBuffer(g)||Ea.isTypedArray(g)?n&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function h(g,c,a){let i=g;if(g&&!a&&typeof g=="object"){if(Ea.endsWith(c,"{}"))c=F?c:c.slice(0,-2),g=JSON.stringify(g);else if(Ea.isArray(g)&&z2e(g)||(Ea.isFileList(g)||Ea.endsWith(c,"[]"))&&(i=Ea.toArray(g)))return c=fM(c),i.forEach(function(u,s){!(Ea.isUndefined(u)||u===null)&&p.append(w===!0?mM([c],s,k):w===null?c:c+"[]",_(u))}),!1}return a6(g)?!0:(p.append(mM(a,c,k),_(g)),!1)}const r=[],b=Object.assign(D2e,{defaultVisitor:h,convertValue:_,isVisitable:a6});function y(g,c){if(!Ea.isUndefined(g)){if(r.indexOf(g)!==-1)throw Error("Circular reference detected in "+c.join("."));r.push(g),Ea.forEach(g,function(a,i){(!(Ea.isUndefined(a)||a===null)&&K.call(p,a,Ea.isString(i)?i.trim():i,c,b))===!0&&y(a,c?c.concat(i):[i])}),r.pop()}}if(!Ea.isObject(e))throw new TypeError("data must be an object");return y(e),p}function gM(e){const p={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(f){return p[f]})}function i6(e,p){this._pairs=[],e&&db(e,this,p)}const yM=i6.prototype;yM.append=function(e,p){this._pairs.push([e,p])},yM.toString=function(e){const p=e?function(f){return e.call(this,f,gM)}:gM;return this._pairs.map(function(f){return p(f[0])+"="+p(f[1])},"").join("&")};function F2e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vM(e,p,f){if(!p)return e;const F=f&&f.encode||F2e;Ea.isFunction(f)&&(f={serialize:f});const K=f&&f.serialize;let k;if(K?k=K(p,f):k=Ea.isURLSearchParams(p)?p.toString():new i6(p,f).toString(F),k){const w=e.indexOf("#");w!==-1&&(e=e.slice(0,w)),e+=(e.indexOf("?")===-1?"?":"&")+k}return e}const _M=class{constructor(){this.handlers=[]}use(p,f,F){return this.handlers.push({fulfilled:p,rejected:f,synchronous:F?F.synchronous:!1,runWhen:F?F.runWhen:null}),this.handlers.length-1}eject(p){this.handlers[p]&&(this.handlers[p]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(p){Ea.forEach(this.handlers,function(f){f!==null&&p(f)})}},bM={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},N2e=typeof URLSearchParams<"u"?URLSearchParams:i6,R2e=typeof FormData<"u"?FormData:null,V2e=typeof Blob<"u"?Blob:null,j2e={isBrowser:!0,classes:{URLSearchParams:N2e,FormData:R2e,Blob:V2e},protocols:["http","https","file","blob","url","data"]},o6=typeof window<"u"&&typeof document<"u",s6=typeof navigator=="object"&&navigator||void 0,U2e=o6&&(!s6||["ReactNative","NativeScript","NS"].indexOf(s6.product)<0),$2e=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),G2e=o6&&window.location.href||"http://localhost",H2e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:o6,hasStandardBrowserEnv:U2e,hasStandardBrowserWebWorkerEnv:$2e,navigator:s6,origin:G2e},Symbol.toStringTag,{value:"Module"})),uh={...H2e,...j2e};function q2e(e,p){return db(e,new uh.classes.URLSearchParams,Object.assign({visitor:function(f,F,K,k){return uh.isNode&&Ea.isBuffer(f)?(this.append(F,f.toString("base64")),!1):k.defaultVisitor.apply(this,arguments)}},p))}function W2e(e){return Ea.matchAll(/\w+|\[(\w*)]/g,e).map(p=>p[0]==="[]"?"":p[1]||p[0])}function Z2e(e){const p={},f=Object.keys(e);let F;const K=f.length;let k;for(F=0;F<K;F++)k=f[F],p[k]=e[k];return p}function xM(e){function p(f,F,K,k){let w=f[k++];if(w==="__proto__")return!0;const n=Number.isFinite(+w),_=k>=f.length;return w=!w&&Ea.isArray(K)?K.length:w,_?(Ea.hasOwnProp(K,w)?K[w]=[K[w],F]:K[w]=F,!n):((!K[w]||!Ea.isObject(K[w]))&&(K[w]=[]),p(f,F,K[w],k)&&Ea.isArray(K[w])&&(K[w]=Z2e(K[w])),!n)}if(Ea.isFormData(e)&&Ea.isFunction(e.entries)){const f={};return Ea.forEachEntry(e,(F,K)=>{p(W2e(F),K,f,0)}),f}return null}function X2e(e,p,f){if(Ea.isString(e))try{return(p||JSON.parse)(e),Ea.trim(e)}catch(F){if(F.name!=="SyntaxError")throw F}return(f||JSON.stringify)(e)}const l6={transitional:bM,adapter:["xhr","http","fetch"],transformRequest:[function(e,p){const f=p.getContentType()||"",F=f.indexOf("application/json")>-1,K=Ea.isObject(e);if(K&&Ea.isHTMLForm(e)&&(e=new FormData(e)),Ea.isFormData(e))return F?JSON.stringify(xM(e)):e;if(Ea.isArrayBuffer(e)||Ea.isBuffer(e)||Ea.isStream(e)||Ea.isFile(e)||Ea.isBlob(e)||Ea.isReadableStream(e))return e;if(Ea.isArrayBufferView(e))return e.buffer;if(Ea.isURLSearchParams(e))return p.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let k;if(K){if(f.indexOf("application/x-www-form-urlencoded")>-1)return q2e(e,this.formSerializer).toString();if((k=Ea.isFileList(e))||f.indexOf("multipart/form-data")>-1){const w=this.env&&this.env.FormData;return db(k?{"files[]":e}:e,w&&new w,this.formSerializer)}}return K||F?(p.setContentType("application/json",!1),X2e(e)):e}],transformResponse:[function(e){const p=this.transitional||l6.transitional,f=p&&p.forcedJSONParsing,F=this.responseType==="json";if(Ea.isResponse(e)||Ea.isReadableStream(e))return e;if(e&&Ea.isString(e)&&(f&&!this.responseType||F)){const K=!(p&&p.silentJSONParsing)&&F;try{return JSON.parse(e)}catch(k){if(K)throw k.name==="SyntaxError"?rl.from(k,rl.ERR_BAD_RESPONSE,this,null,this.response):k}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:uh.classes.FormData,Blob:uh.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ea.forEach(["delete","get","head","post","put","patch"],e=>{l6.headers[e]={}});const c6=l6,Y2e=Ea.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"]),K2e=e=>{const p={};let f,F,K;return e&&e.split(`
|
|
44
|
+
*/const Wd={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"}},qE={itemsToShow:{default:Wd.itemsToShow,type:Number},itemsToScroll:{default:Wd.itemsToScroll,type:Number},wrapAround:{default:Wd.wrapAround,type:Boolean},throttle:{default:Wd.throttle,type:Number},snapAlign:{default:Wd.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Wd.transition,type:Number},breakpoints:{default:Wd.breakpoints,type:Object},autoplay:{default:Wd.autoplay,type:Number},pauseAutoplayOnHover:{default:Wd.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Wd.mouseDrag,type:Boolean},touchDrag:{default:Wd.touchDrag,type:Boolean},dir:{default:Wd.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Wd.i18n,type:Object},settings:{default(){return{}},type:Object}};function Gce({config:e,slidesCount:p}){const{snapAlign:f,wrapAround:F,itemsToShow:K=1}=e;if(F)return Math.max(p-1,0);let k;switch(f){case"start":k=p-K;break;case"end":k=p-1;break;case"center":case"center-odd":k=p-Math.ceil((K-.5)/2);break;case"center-even":k=p-Math.ceil(K/2);break;default:k=0;break}return Math.max(k,0)}function Hce({config:e,slidesCount:p}){const{wrapAround:f,snapAlign:F,itemsToShow:K=1}=e;let k=0;if(f||K>p)return k;switch(F){case"start":k=0;break;case"end":k=K-1;break;case"center":case"center-odd":k=Math.floor((K-1)/2);break;case"center-even":k=Math.floor((K-2)/2);break;default:k=0;break}return k}function Y4({val:e,max:p,min:f}){return p<f?e:Math.min(Math.max(e,f),p)}function qce({config:e,currentSlide:p,slidesCount:f}){const{snapAlign:F,wrapAround:K,itemsToShow:k=1}=e;let w=p;switch(F){case"center":case"center-odd":w-=(k-1)/2;break;case"center-even":w-=(k-2)/2;break;case"end":w-=k-1;break}return K?w:Y4({val:w,max:f-k,min:0})}function WE(e){return e?e.reduce((p,f)=>{var F;return f.type===t.Fragment?[...p,...WE(f.children)]:((F=f.type)===null||F===void 0?void 0:F.name)==="CarouselSlide"?[...p,f]:p},[]):[]}function K4({val:e,max:p,min:f=0}){return e>p?K4({val:e-(p+1),max:p,min:f}):e<f?K4({val:e+(p+1),max:p,min:f}):e}function Wce(e,p){let f;return p?function(...F){const K=this;f||(e.apply(K,F),f=!0,setTimeout(()=>f=!1,p))}:e}function Zce(e,p){let f;return function(...F){f&&clearTimeout(f),f=setTimeout(()=>{e(...F),f=null},p)}}function Xce(e="",p={}){return Object.entries(p).reduce((f,[F,K])=>f.replace(`{${F}}`,String(K)),e)}var Yce=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Wd))),p=t.inject("currentSlide",t.ref(0)),f=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Xce(e.i18n.itemXofY,{currentSlide:p.value+1,slidesCount:f.value}))}}),Kce=t.defineComponent({name:"Carousel",props:qE,setup(e,{slots:p,emit:f,expose:F}){var K;const k=t.ref(null),w=t.ref([]),n=t.ref(0),_=t.ref(0),h=t.reactive(Object.assign({},Wd));let r=Object.assign({},Wd),b;const y=t.ref((K=e.modelValue)!==null&&K!==void 0?K:0),g=t.ref(0),c=t.ref(0),a=t.ref(0),i=t.ref(0);let u,s;t.provide("config",h),t.provide("slidesCount",_),t.provide("currentSlide",y),t.provide("maxSlide",a),t.provide("minSlide",i),t.provide("slideWidth",n);function d(){b=Object.assign({},e.breakpoints),r=Object.assign(Object.assign(Object.assign({},r),e),{i18n:Object.assign(Object.assign({},r.i18n),e.i18n),breakpoints:void 0}),v(r)}function m(){if(!b||!Object.keys(b).length)return;const ie=Object.keys(b).map(oe=>Number(oe)).sort((oe,ge)=>+ge-+oe);let se=Object.assign({},r);ie.some(oe=>{const ge=window.matchMedia(`(min-width: ${oe}px)`).matches;return ge&&(se=Object.assign(Object.assign({},se),b[oe])),ge}),v(se)}function v(ie){Object.entries(ie).forEach(([se,oe])=>h[se]=oe)}const T=Zce(()=>{m(),A()},16);function A(){if(!k.value)return;const ie=k.value.getBoundingClientRect();n.value=ie.width/h.itemsToShow}function C(){_.value<=0||(c.value=Math.ceil((_.value-1)/2),a.value=Gce({config:h,slidesCount:_.value}),i.value=Hce({config:h,slidesCount:_.value}),h.wrapAround||(y.value=Y4({val:y.value,max:a.value,min:i.value})))}t.onMounted(()=>{t.nextTick(()=>A()),setTimeout(()=>A(),1e3),m(),U(),window.addEventListener("resize",T,{passive:!0}),f("init")}),t.onUnmounted(()=>{s&&clearTimeout(s),u&&clearInterval(u),window.removeEventListener("resize",T,{passive:!0})});let P=!1;const L={x:0,y:0},E={x:0,y:0},I=t.reactive({x:0,y:0}),M=t.ref(!1),S=t.ref(!1),B=()=>{M.value=!0},x=()=>{M.value=!1};function O(ie){["INPUT","TEXTAREA","SELECT"].includes(ie.target.tagName)||(P=ie.type==="touchstart",P||ie.preventDefault(),!(!P&&ie.button!==0||$.value)&&(L.x=P?ie.touches[0].clientX:ie.clientX,L.y=P?ie.touches[0].clientY:ie.clientY,document.addEventListener(P?"touchmove":"mousemove",D,!0),document.addEventListener(P?"touchend":"mouseup",N,!0)))}const D=Wce(ie=>{S.value=!0,E.x=P?ie.touches[0].clientX:ie.clientX,E.y=P?ie.touches[0].clientY:ie.clientY;const se=E.x-L.x,oe=E.y-L.y;I.y=oe,I.x=se},h.throttle);function N(){const ie=h.dir==="rtl"?-1:1,se=Math.sign(I.x)*.4,oe=Math.round(I.x/n.value+se)*ie;if(oe&&!P){const ge=_e=>{_e.stopPropagation(),window.removeEventListener("click",ge,!0)};window.addEventListener("click",ge,!0)}Y(y.value-oe),I.x=0,I.y=0,S.value=!1,document.removeEventListener(P?"touchmove":"mousemove",D,!0),document.removeEventListener(P?"touchend":"mouseup",N,!0)}function U(){!h.autoplay||h.autoplay<=0||(u=setInterval(()=>{h.pauseAutoplayOnHover&&M.value||ne()},h.autoplay))}function G(){u&&(clearInterval(u),u=null),U()}const $=t.ref(!1);function Y(ie){const se=h.wrapAround?ie:Y4({val:ie,max:a.value,min:i.value});y.value===se||$.value||(f("slide-start",{slidingToIndex:ie,currentSlideIndex:y.value,prevSlideIndex:g.value,slidesCount:_.value}),$.value=!0,g.value=y.value,y.value=se,s=setTimeout(()=>{if(h.wrapAround){const oe=K4({val:se,max:a.value,min:0});oe!==y.value&&(y.value=oe,f("loop",{currentSlideIndex:y.value,slidingToIndex:ie}))}f("update:modelValue",y.value),f("slide-end",{currentSlideIndex:y.value,prevSlideIndex:g.value,slidesCount:_.value}),$.value=!1,G()},h.transition))}function ne(){Y(y.value+h.itemsToScroll)}function H(){Y(y.value-h.itemsToScroll)}const J={slideTo:Y,next:ne,prev:H};t.provide("nav",J),t.provide("isSliding",$);const ee=t.computed(()=>qce({config:h,currentSlide:y.value,slidesCount:_.value}));t.provide("slidesToScroll",ee);const X=t.computed(()=>{const ie=h.dir==="rtl"?-1:1,se=ee.value*n.value*ie;return{transform:`translateX(${I.x-se}px)`,transition:`${$.value?h.transition:0}ms`,margin:h.wrapAround?`0 -${_.value*n.value}px`:"",width:"100%"}});function Q(){d(),m(),C(),A(),G()}Object.keys(qE).forEach(ie=>{["modelValue"].includes(ie)||t.watch(()=>e[ie],Q)}),t.watch(()=>e.modelValue,ie=>{ie!==y.value&&Y(Number(ie))}),t.watch(_,C),f("before-init"),d();const le={config:h,slidesCount:_,slideWidth:n,next:ne,prev:H,slideTo:Y,currentSlide:y,maxSlide:a,minSlide:i,middleSlide:c};F({updateBreakpointsConfigs:m,updateSlidesData:C,updateSlideWidth:A,initDefaultConfigs:d,restartCarousel:Q,slideTo:Y,next:ne,prev:H,nav:J,data:le});const ce=p.default||p.slides,de=p.addons,pe=t.reactive(le);return()=>{const ie=WE(ce==null?void 0:ce(pe)),se=(de==null?void 0:de(pe))||[];ie.forEach((ve,xe)=>ve.props.index=xe);let oe=ie;if(h.wrapAround){const ve=ie.map((Te,Se)=>t.cloneVNode(Te,{index:-ie.length+Se,isClone:!0,key:`clone-before-${Se}`})),xe=ie.map((Te,Se)=>t.cloneVNode(Te,{index:ie.length+Se,isClone:!0,key:`clone-after-${Se}`}));oe=[...ve,...ie,...xe]}w.value=ie,_.value=Math.max(ie.length,1);const ge=t.h("ol",{class:"carousel__track",style:X.value,onMousedownCapture:h.mouseDrag?O:null,onTouchstartPassiveCapture:h.touchDrag?O:null},oe),_e=t.h("div",{class:"carousel__viewport"},ge);return t.h("section",{ref:k,class:{carousel:!0,"is-sliding":$.value,"is-dragging":S.value,"is-hover":M.value,"carousel--rtl":h.dir==="rtl"},dir:h.dir,"aria-label":h.i18n.ariaGallery,tabindex:"0",onMouseenter:B,onMouseleave:x},[_e,se,t.h(Yce)])}}}),ZE;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(ZE||(ZE={}));var Jce=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:p}){const f=t.inject("config",t.reactive(Object.assign({},Wd))),F=t.inject("currentSlide",t.ref(0)),K=t.inject("slidesToScroll",t.ref(0)),k=t.inject("isSliding",t.ref(!1)),w=()=>e.index===F.value,n=()=>e.index===F.value-1,_=()=>e.index===F.value+1,h=()=>{const r=Math.floor(K.value),b=Math.ceil(K.value+f.itemsToShow-1);return e.index>=r&&e.index<=b};return()=>{var r;return t.h("li",{style:{width:`${100/f.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":h(),"carousel__slide--active":w(),"carousel__slide--prev":n(),"carousel__slide--next":_(),"carousel__slide--sliding":k.value},"aria-hidden":!h()},(r=p.default)===null||r===void 0?void 0:r.call(p))}}});const Qce=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},eue=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),tue={class:"gsc-carousel"},rue={key:0},nue=eue(()=>t.createElementVNode("div",null,"no hay",-1)),aue=[nue],iue={class:"gsc-carousel__2d__slides"},oue={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},sue=["fill"],lue={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},cue=["fill"],uue={class:"gsc-carousel__2d__navigation"},due={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hue=["stroke"],pue={key:1,class:"gsc-carousel__2d__navigation__pagination"},fue=["onClick"],mue={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gue=["stroke"],yue={__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(p=>p 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:p,emit:f}){const F=e;t.useCssVars(a=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const K=t.ref(null),k=t.ref({}),w=t.ref(0),n=t.ref(!1);t.watch(K,a=>{a&&n.value?(n.value=!1,_(F.items)):a&&a.slideTo&&a.slideTo(w.value)},{deep:!0}),t.watch(()=>F.currentItemIndex,a=>{w.value!==a&&y(a)}),t.watch(()=>F.defaultItemByIndex,a=>{w.value!==a&&y(a)}),t.watch(()=>F.items,a=>{K.value?_(a):n.value=!0},{immediate:!0});function _(a){a&&a.length&&K.value&&setTimeout(()=>{if(F.defaultItemByProp){const i=F.items.findIndex(u=>u[F.defaultItemByProp.propName]===F.defaultItemByProp.value);i!==-1?(w.value=i,k.value=a[i]):(w.value=0,k.value=a[0])}else w.value=F.defaultItemByIndex,k.value=a[F.defaultItemByIndex];K.value.slideTo&&K.value.slideTo(w.value),k.value&&w.value===0&&f("input",{selectedItem:k.value,selectedItemIndex:w.value})},500)}function h(){K.value&&K.value.next()}function r(){K.value&&K.value.prev()}function b(){K.value&&K.value.updateSlideWidth()}function y(a){K.value&&K.value.slideTo(a)}function g(a){K.value.slideTo(a)}function c(a){const i=a.slidingToIndex<0?F.items.length-1:a.slidingToIndex===F.items.length?0:a.slidingToIndex;w.value=i,k.value=F.items[i],f("update:currentItemIndex",i),f("input",{selectedItem:k.value,selectedItemIndex:w.value})}return p({prev:r,next:h,updateSlideWidth:b,slideTo:y}),(a,i)=>(t.openBlock(),t.createElementBlock("div",tue,[F.is3d?(t.openBlock(),t.createElementBlock("div",rue,aue)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",iue,[t.createVNode(t.unref(Kce),{ref_key:"carousel2d",ref:K,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:c},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,s)=>(t.openBlock(),t.createBlock(t.unref(Jce),{key:s},{default:t.withCtx(()=>[t.renderSlot(a.$slots,"default",{item:u},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]=u=>K.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",oue,[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,sue)]))],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]=u=>h())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",lue,[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,cue)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",uue,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:i[2]||(i[2]=u=>r())},[(t.openBlock(),t.createElementBlock("svg",due,[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:F.arrowsColor},null,8,hue)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",pue,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,s)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${s}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${F.navigationHeight}px`,width:`${w.value===s?F.navigationActiveWidth:F.navigationActiveWidth/2}px`,borderRadius:`${F.navigationBorderRadius}px`,backgroundColor:`${w.value===s?F.navigationActiveColor:F.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:d=>g(s)},null,12,fue))),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]=u=>K.value.next())},[(t.openBlock(),t.createElementBlock("svg",mue,[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:F.arrowsColor},null,8,gue)]))])):t.createCommentVNode("",!0)])],2))]))}},ab=Qce(yue,[["__scopeId","data-v-54620d25"]]),vue=(e,p)=>{const f=e.__vccOpts||e;for(const[F,K]of p)f[F]=K;return f},J4={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))}}},XE=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},YE=J4.setup;J4.setup=YE?(e,p)=>(XE(),YE(e,p)):XE;const _ue=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),bue=["src"],xue={key:1,class:"text"},wue=["src"],kue={class:"stats"},Sue=_ue(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),Tue={class:"numstats"},Cue={class:"leyend"};function Aue(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",null,[f.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",K.status&&f.typeOnOff&&"button-active"]),style:t.normalizeStyle([k.customStyle,K.status&&f.typeOnOff&&k.customActive]),onClick:p[0]||(p[0]=(...w)=>k.btnClick&&k.btnClick(...w))},[f.icon&&f.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:f.iconSize}),src:f.icon},null,12,bue)):t.createCommentVNode("",!0),f.textValue?(t.openBlock(),t.createElementBlock("div",xue,t.toDisplayString(f.textValue),1)):t.createCommentVNode("",!0),f.icon&&f.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:f.iconSize}),src:f.icon},null,12,wue)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),f.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:p[1]||(p[1]=(...w)=>k.btnClick&&k.btnClick(...w))},[t.createElementVNode("div",kue,[Sue,t.createElementVNode("div",Tue,t.toDisplayString(f.textStat),1)]),t.createElementVNode("div",Cue,t.toDisplayString(f.textCategory),1)])):t.createCommentVNode("",!0)])}const Eue=vue(J4,[["render",Aue],["__scopeId","data-v-fb269a1e"]]),Mue={class:"gsc-dropdown__main-container__item-selected"},Iue=["height","width"],Pue=["stroke"],Lue={class:"gsc-dropdown__items-container"},Bue=["onClick"],Oue={key:0,class:"gsc-dropdown__items-footer"},Q4={__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(p=>p in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},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},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:p}){const f=e,F=t.ref({}),K=t.ref(null),k=t.ref(f.isMultipleOption?-1:0),w=t.ref(!1);t.watch(()=>f.items,(g,c)=>{if(!f.modelValue&&(!f.onlyFirstTime||!c||!c.length)&&g&&g.length){if(f.defaultItemByProp){const a=f.items.findIndex(i=>i[f.defaultItemByProp.propName]===f.defaultItemByProp.value);a!==-1?(k.value=a,F.value=g[a]):(k.value=0,F.value=g[0])}else F.value=g[f.defaultItemByIndex];p("input",F.value)}},{immediate:!0}),t.watch(()=>f.modelValue,g=>{if(g){const c=f.items.findIndex(a=>typeof g=="object"?JSON.stringify(a)===JSON.stringify(g):a===g);c!==-1&&(k.value=c,F.value=f.items[c],p("update:modelValue",F.value))}},{immediate:!0});const n=t.computed(()=>({height:f.height,width:f.width,backgroundColor:f.backgroundColor,borderRadius:`${f.borderRadius}px`,border:`${f.borderType} ${f.borderWidth}px ${f.borderColor}`,color:f.color,"--hover-background-color":f.hoverBackgroundColor,"--list-item-padding":f.listItemPadding,"--list-background-color":f.listBackgroundColor,"--list-height":f.listHeight,"--list-item-selected-color":f.listItemSelectedColor,"--list-item-selected-background-color":f.listItemSelectedBackgroundColor,"--list-item-color":f.listItemColor,"--list-border-radius":`${f.listBorderRadius}`,"--list-border-color":f.listBorderColor,"--list-width":f.isListSameWidth?f.width:"fit-content","--list-border-width":`${f.listBorderWidth}px`,"--footer-border":`${f.footerBorderWidth}px solid ${f.footerBorderColor}`,"--dropdown-opacity":f.isDisabled?"0.5":"1","--dropdown-cursor":f.isDisabled?"not-allowed":"pointer","--dropdown-font-size":f.fontSize?f.fontSize:"14px"})),_=t.computed(()=>({height:`${f.arrowHeight}px`,width:`${f.arrowWidth}px`}));function h(){f.isDisabled||(w.value=!w.value)}function r(g){K.value&&!K.value.contains(g.target)&&(w.value=!1)}function b(g,c){f.isMultipleOption?k.value=-1:(k.value=c,w.value=!1),F.value=g,p("input",F.value),p("update:modelValue",F.value)}function y(){w.value=!1,p("click-ready")}return t.onMounted(()=>{document.addEventListener("click",r)}),t.onBeforeMount(()=>{document.removeEventListener("click",r)}),(g,c)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:K,class:"gsc-dropdown",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:h},[t.createElementVNode("div",Mue,[t.renderSlot(g.$slots,"default",{selectedItem:F.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":w.value}]),style:t.normalizeStyle(_.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,Pue)],8,Iue))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Lue,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${f.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(a,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:i===k.value}]),key:i,onClick:u=>b(a,i)},[t.renderSlot(g.$slots,"availableItem",{item:a})],10,Bue))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",Oue,[t.createVNode(t.unref(Eue),{"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,w.value]])]),_:3})],4))}};let KE=null;const zue={components:{LineupField:ole,LineupRecentItem:vle,LineupMainHeader:jle,LineupFilter:cce,MatchDetails:jE,GscSwitchComponent:Tv,GSCCarousel:ab,GSCDropdown:Q4},props:{game:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Recientes"},componentWidth:{type:Number,default:767,validator(e){return e>0}},socket:{type:Object,default:()=>{}}},data(){return{selectedIndexOption:0,rivalHomeImg:"",rivalVisitImg:"",rivalHomeAbrev:"",updatehistoricos:0,rivalVisitAbrev:"",selectOptMenuheader:"Recientes",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",urlGames:"https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/",url:"https://tj4cepyjc4.execute-api.us-west-2.amazonaws.com/prod/lineups/",urlMXM:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",retries:3,teamActive:"home",subsActive:!1,playersHome:[],gamesContainerWidth:0,playersAway:[],subsTitle:!1,uniformHome:"",uniformHomeG:"",uniformAway:"",uniformAwayG:"",dataPlayersHome:[],dataPlayersAway:[],homeTeamLogo:"",awayTeamLogo:"",homeTeamName:"",auxISsection:0,awayTeamName:"",homeTeamAbrev:"",awayTeamAbrev:"",home_team_id:0,updateComponentAway:0,away_team_id:0,substitutionModal:{min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},isInsideClick:!1,homeTeam:{},headerInfoHistoricItemGame:{},visitingTeam:{},gameForAnalysis:{},movil:!1,auxProbablesIDGameHome:0,auxProbablesIDGameAway:0,positions:[{name:"Portero"},{name:"Defensa central"},{name:"Lateral por izquierda"},{name:"Lateral por derecha"},{name:"Volante por izquierda"},{name:"Volante por derecha"},{name:"Volante defensivo"},{name:"Volante ofensivo"},{name:"Delantero"},{name:"Desconocida"}],vDeleteFilter:!1,gameInfoheader:{},gamesHistoric:[],gamesRecientes:[],matchdaysPerTeam:[],lastGetGame:0,probablyTeam:{acronym:"NEX",img:Vse},localDetails:[],postmatchDescription:"Clausura 2018 I JOR 5 I CHI - ATL 12",showDetails:!1,foreignDetails:[],players:[],filterObject:{selectedFilterResults:["win","draw","lose"],selectedFilterTeam:["visit","local"]},updateCarouselGames:0,teamSelect:"",matchdaysFiltersUpdate:[],gamesFiltersUpdate:[]}},computed:{matchdaysFinal(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==1&&e.push(this.matchdaysFiltersUpdate[p]);for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==3&&e.push(this.matchdaysFiltersUpdate[p])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==1&&e.push(this.matchdaysFiltersUpdate[p]);for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==2&&e.push(this.matchdaysFiltersUpdate[p])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==3&&e.push(this.matchdaysFiltersUpdate[p]);for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==2&&e.push(this.matchdaysFiltersUpdate[p])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==1&&e.push(this.matchdaysFiltersUpdate[p]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==2&&e.push(this.matchdaysFiltersUpdate[p]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==3&&e.push(this.matchdaysFiltersUpdate[p])}else for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)e.push(this.matchdaysFiltersUpdate[p]);else for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)e.push(this.matchdaysFiltersUpdate[p]);return e.sort((p,f)=>f.id-p.id),e},gameRecientesFilter(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let p=0;p<this.gamesFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==1||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==1)&&e.push(this.gamesFiltersUpdate[p]);for(let p=0;p<this.gamesFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==3||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==3)&&e.push(this.gamesFiltersUpdate[p])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let p=0;p<this.gamesFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==1||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==1)&&e.push(this.gamesFiltersUpdate[p]);for(let p=0;p<this.gamesFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==2||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==2)&&e.push(this.gamesFiltersUpdate[p])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let p=0;p<this.gamesFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==3||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==3)&&e.push(this.gamesFiltersUpdate[p]);for(let p=0;p<this.gamesFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==2||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==2)&&e.push(this.gamesFiltersUpdate[p])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==1||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==1)&&e.push(this.gamesFiltersUpdate[p]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==2||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==2)&&e.push(this.gamesFiltersUpdate[p]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==3||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==3)&&e.push(this.gamesFiltersUpdate[p])}else for(let p=0;p<this.gamesFiltersUpdate.length;p++)e.push(this.gamesFiltersUpdate[p]);else for(let p=0;p<this.gamesFiltersUpdate.length;p++)e.push(this.gamesFiltersUpdate[p]);return e.sort((p,f)=>p.matchday_id-f.matchday_id),e},matchHomeProbables(){return this.matchdaysPerTeam[this.gameInfoheader.home_team_abbreviation]},matchAwayProbables(){return this.matchdaysPerTeam[this.gameInfoheader.home_team_abbreviation]},sizeBrowser(){return this.gamesContainerWidth},numPlayer(){return Number(this.playersAway.length)+Number(this.playersHome.length)},benchFillHome(){return this.playersHome.length<this.playersAway.length?this.playersAway.length-this.playersHome.length:0},benchFillAway(){return this.playersAway.length<this.playersHome.length?this.playersHome.length-this.playersAway.length:0},mobileClass(){return this.calendarResizeObserver<768?"break-point-3":""}},async mounted(){if(document.addEventListener("click",this.handleOutsideClick),setTimeout(()=>{this.setUpResizeObserver()},500),this.game||this.$route.params.gameId)try{this.cleaneData(),this.getLineUp(this.game.game_id),await this.getHeaderInfo(this.game),this.teamSelect=this.gameInfoheader.home_team_abbreviation,await this.matchFilter(),this.selectedOption==="Postmatch"&&setTimeout(()=>{this.getMinutesData(this.gameInfoheader.minutes)},600)}catch(e){throw new Error(e)}},beforeDestroy(){document.removeEventListener("click",this.handleOutsideClick)},watch:{selectedOption:{immediate:!1,async handler(e){this.cleaneData(),this.auxProbablesIDGameHome=0,this.auxProbablesIDGameAway=0,e==="Postmatch"&&await this.getLineUp(this.game.game_id),e==="Probables"&&await this.getHeaderInfo(this.game),e==="Recientes"&&(this.auxISsection=1,this.teamSelect=this.gameInfoheader.home_team_abbreviation,await this.matchFilter(),await this.getLineUp(this.gameRecientesFilter[0].id)),e==="Historicos"&&(this.updatehistoricos+=1,this.gamesHistoric&&this.gamesHistoric.length>0&&this.gamesHistoric[0]&&this.gamesHistoric[0].game&&(this.getLineUp(this.gamesHistoric[0].game),this.getMinutesData(this.gamesHistoric[0].objgame.minutes)))}},"socket.connected":{immediate:!0,handler(e){e&&this.getDataSocket()}},game:{immediate:!0,handler:async function(e){try{e!==null&&e!==""&&typeof e>"u"&&(this.cleaneData(),await this.gameDataInfo(e),await this.getHeaderInfo(e),this.selectedOption=="Recientes"&&(this.teamSelect=this.gameInfoheader.home_team_abbreviation,await this.matchFilter(),await this.getLineUp(this.gameRecientesFilter[0].id)),this.selectedOption=="Historicos"&&(this.updatehistoricos+=1,this.gamesHistoric&&this.gamesHistoric.length>0&&this.gamesHistoric[0]&&this.gamesHistoric[0].game&&(this.getLineUp(this.gamesHistoric[0].game),this.getMinutesData(this.gamesHistoric[0].objgame.minutes))))}catch(p){throw new Error(p)}}}},methods:{clickOnDeleteFilter(){this.vDeleteFilter=!0,setTimeout(()=>{this.vDeleteFilter=!1},200)},clickready(){},handleInsideClick(){this.isInsideClick=!0},handleOutsideClick(e){this.$refs.targetElement&&!this.$refs.targetElement.contains(e.target)&&(this.isInsideClick=!1)},remplazarMxJor(e){return e.replace("M","JOR ")},changeSwitchRadio(e){this.auxISsection=1,typeof e!="object"&&(this.teamSelect=e,this.matchFilter(),setTimeout(()=>{this.keyUpdate+=1,this.updateCarouselGames+=1},600))},matchFilter(){var e=[],p=[];if(Object.keys(this.filterObject).length>0){if(Object.keys(this.filterObject.selectedFilterTeam).length!=2)for(let f=0;f<this.gamesRecientes[this.teamSelect].length;f++)this.filterObject.selectedFilterTeam[0]=="local"?this.gamesRecientes[this.teamSelect][f].home_team_abbreviation==this.teamSelect&&(e.push({name:this.gamesRecientes[this.teamSelect][f].matchday_abbreviation.replace("M","Jornada "),id:this.gamesRecientes[this.teamSelect][f].matchday_id,match_result:this.gamesRecientes[this.teamSelect][f].home_match_result}),p.push(this.gamesRecientes[this.teamSelect][f])):this.gamesRecientes[this.teamSelect][f].away_team_abbreviation==this.teamSelect&&(e.push({name:this.gamesRecientes[this.teamSelect][f].matchday_abbreviation.replace("M","Jornada "),id:this.gamesRecientes[this.teamSelect][f].matchday_id,match_result:this.gamesRecientes[this.teamSelect][f].visiting_match_result}),p.push(this.gamesRecientes[this.teamSelect][f]));else if(this.gamesRecientes[this.teamSelect])for(let f=0;f<this.gamesRecientes[this.teamSelect].length;f++)e.push({name:this.gamesRecientes[this.teamSelect][f].matchday_abbreviation.replace("M","Jornada "),id:this.gamesRecientes[this.teamSelect][f].matchday_id,match_result:this.gamesRecientes[this.teamSelect][f].home_team_abbreviation==this.teamSelect?this.gamesRecientes[this.teamSelect][f].home_match_result:this.gamesRecientes[this.teamSelect][f].visiting_match_result}),p.push(this.gamesRecientes[this.teamSelect][f])}else if(this.gamesRecientes[this.teamSelect])for(let f=0;f<this.gamesRecientes[this.teamSelect].length;f++)e.push({name:this.getRound(this.gamesRecientes[this.teamSelect][f].matchday_abbreviation),id:this.gamesRecientes[this.teamSelect][f].matchday_id,match_result:this.gamesRecientes[this.teamSelect][f].home_team_abbreviation==this.teamSelect?this.gamesRecientes[this.teamSelect][f].home_match_result:this.gamesRecientes[this.teamSelect][f].visiting_match_result}),p.push(this.gamesRecientes[this.teamSelect][f]);this.gamesFiltersUpdate=p,this.matchdaysFiltersUpdate=e},changeFiltersModal(e){this.auxISsection=1,this.filterObject=e,this.matchFilter(),setTimeout(()=>{this.keyUpdate+=1,this.updateCarouselGames+=1},600)},changeDropdownVisit(e){if(this.auxProbablesIDGameAway!=e.id){this.auxProbablesIDGameAway=e.id;const p=this.gamesRecientes[this.gameInfoheader.away_team_abbreviation].findIndex(f=>f.matchday_id===e.id);this.rivalVisitAbrev=this.gameInfoheader.away_team_abbreviation==this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][p].home_team_abbreviation?this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][p].away_team_abbreviation:this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][p].home_team_abbreviation,this.rivalVisitImg=this.gameInfoheader.away_team_abbreviation==this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][p].home_team_abbreviation?"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][p].away_team+".png":"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][p].home_team+".png",this.cleaneDataProbablesAway(),this.getLineupDataProbablesAway(this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][p].id)}},changeDropdownLocal(e){if(this.auxProbablesIDGameHome!=e.id){this.auxProbablesIDGameHome=e.id;const p=this.gamesRecientes[this.gameInfoheader.home_team_abbreviation].findIndex(f=>f.matchday_id===e.id);this.rivalHomeAbrev=this.gameInfoheader.home_team_abbreviation==this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][p].away_team_abbreviation?this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][p].home_team_abbreviation:this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][p].away_team_abbreviation,this.rivalHomeImg=this.gameInfoheader.home_team_abbreviation==this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][p].away_team_abbreviation?"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][p].home_team+".png":"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][p].away_team+".png",this.cleaneDataProbablesHome(),this.getLineupDataProbablesHome(this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][p].id)}},async getLineupProbables(e){var p={season_id:e.season_id,game_id:e.id};this.lastGetGame!=p.game_id&&(this.cleaneData(),this.getLineUp(p.game_id)),this.lastGetGame=p.game_id},async changeCarouselItemH(e){this.headerInfoHistoricItemGame=e.selectedItem.objgame;var p={season_id:e.selectedItem.season,game_id:e.selectedItem.game};this.cleaneData(),this.getMinutesData(e.selectedItem.objgame.minutes),this.getLineUp(p.game_id)},getMinutesData(e){if(this.localDetails=[],this.foreignDetails=[],e){if(e.home_goals_minutes)for(let p=0;p<e.home_goals_minutes.length;p++)this.localDetails.push({description:e.home_goals_minutes[p],icon:"goal"});if(e.visiting_goals_minutes)for(let p=0;p<e.visiting_goals_minutes.length;p++)this.foreignDetails.push({description:e.visiting_goals_minutes[p],icon:"goal"});if(e.home_yellow_cards_minutes)for(let p=0;p<e.home_yellow_cards_minutes.length;p++)this.localDetails.push({description:e.home_yellow_cards_minutes[p],icon:"yellow-card"});if(e.away_yellow_cards_minutes)for(let p=0;p<e.away_yellow_cards_minutes.length;p++)this.foreignDetails.push({description:e.away_yellow_cards_minutes[p],icon:"yellow-card"});if(e.home_red_cards_minutes)for(let p=0;p<e.home_red_cards_minutes.length;p++)this.localDetails.push({description:e.home_red_cards_minutes[p],icon:"red-card"});if(e.away_red_cards_minutes)for(let p=0;p<e.away_red_cards_minutes.length;p++)this.foreignDetails.push({description:e.away_red_cards_minutes[p],icon:"red-card"})}},changeDropdown(e){if(this.gameRecientesFilter&&this.gameRecientesFilter.length>0)if(this.auxISsection==1)this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id};else{const p=this.gameRecientesFilter.findIndex(f=>f.matchday_id==e.id);p!=-1&&(this.selectedIndexOption=p),this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[p].matchday_id}}},clickOnValueFilter(){this.auxISsection=0},clickOnValueCarrousel(){this.auxISsection=0},async changeCarouselItem(e){setTimeout(()=>{if(this.gameRecientesFilter&&this.gameRecientesFilter.length>0&&e){e.selectedItem===void 0&&(e.selectedItem=this.gameRecientesFilter[this.gameRecientesFilter.length-1],e.selectedItemIndex=this.gameRecientesFilter.length-1);var p={};this.auxISsection==1?p={season_id:this.gameRecientesFilter[this.gameRecientesFilter.length-1].season_id,game_id:this.gameRecientesFilter[this.gameRecientesFilter.length-1].id}:p={season_id:e.selectedItem.season_id,game_id:e.selectedItem.id},this.lastGetGame!=p.game_id&&(this.cleaneData(),this.getLineUp(p.game_id)),this.auxISsection==1?(this.getMinutesData(this.gameRecientesFilter[this.gameRecientesFilter.length-1].minutes),this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].minutes.matchday_id},this.lastGetGame=p.game_id):(this.getMinutesData(e.selectedItem.minutes),this.defaultDropItem={propName:"id",value:e.selectedItem.matchday_id},this.lastGetGame=p.game_id,this.selectedIndexOption=e.selectedItemIndex),this.keyUpdate+=1}},200)},async changeCarouselItemRecent(e){if(e.selectedItem){var p={season_id:e.selectedItem.season_id,game_id:e.selectedItem.id};this.lastGetGame!=p.game_id&&(this.cleaneData(),this.getLineUp(p.game_id)),this.lastGetGame=p.game_id}},getRound(e){let p=e.replace("M","Jornada ");return p=p.replace("PO1","CFI"),p=p.replace("PO2","CFV"),p=p.replace("PO3","SFI"),p=p.replace("PO4","SFV"),p=p.replace("PO5","FI"),p=p.replace("PO6","FV"),p},getRoundH(e){let p=e.replace("M","J");return p=p.replace("PO1","CFI"),p=p.replace("PO2","CFV"),p=p.replace("PO3","SFI"),p=p.replace("PO4","SFV"),p=p.replace("PO5","FI"),p=p.replace("PO6","FV"),p},async getHeaderInfo(e){const p=await Xh.create({headers:{Authorization:`${this.tokenPremium}`}}).get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/seasons/"+e.season_id+"/games/"+e.game_id+"/lineups");if(this.gameInfoheader=p.data.game,p.data.games_historic&&p.data.games_historic.length>0)for(let f=0;f<p.data.games_historic.length;f++)this.gamesHistoric.push({objgame:p.data.games_historic[f],game:p.data.games_historic[f].id,season:p.data.games_historic[f].season_id,description:p.data.games_historic[f].season_name+" | "+this.getRoundH(p.data.games_historic[f].matchday_abbreviation)+" | "+p.data.games_historic[f].home_team_abbreviation+" - "+p.data.games_historic[f].away_team_abbreviation});if(this.gamesRecientes[p.data.game.home_team_abbreviation]=[],this.gamesRecientes[p.data.game.away_team_abbreviation]=[],this.matchdaysPerTeam[p.data.game.home_team_abbreviation]=[],this.matchdaysPerTeam[p.data.game.away_team_abbreviation]=[],p.data.home_team_games_recent&&p.data.home_team_games_recent.length>0)for(let f=0;f<p.data.home_team_games_recent.length;f++)this.gamesRecientes[p.data.game.home_team_abbreviation].push(p.data.home_team_games_recent[f]),this.matchdaysPerTeam[p.data.game.home_team_abbreviation].push({name:this.getRound(p.data.home_team_games_recent[f].matchday_abbreviation),id:p.data.home_team_games_recent[f].matchday_id});if(p.data.away_team_games_recent&&p.data.away_team_games_recent.length>0)for(let f=0;f<p.data.away_team_games_recent.length;f++)this.gamesRecientes[p.data.game.away_team_abbreviation].push(p.data.away_team_games_recent[f]),this.matchdaysPerTeam[p.data.game.away_team_abbreviation].push({name:p.data.away_team_games_recent[f].matchday_abbreviation.replace("M","Jornada "),id:p.data.away_team_games_recent[f].matchday_id})},clickOnSelectOption(e){this.selectOptMenuheader=e},async gameDataInfo(e){const p=await Xh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlGames+e.season_id+"/games/"+e.game_id);this.homeTeam=p.data.teams[0],this.visitingTeam=p.data.teams[1];const f=p.data.games.find(F=>F.game_id===Number(F.game_id));this.gameForAnalysis=f},cleaneDataProbablesHome(){this.lastGetGame=0,this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.dataPlayersHome=[],this.players=this.players.filter(e=>e.team_id!==this.gameInfoheader.home_team),this.homeTeamLogo="",this.homeTeamName="",this.homeTeamAbrev="",this.home_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneDataProbablesAway(){this.lastGetGame=0,this.retries=3,this.teamActive="home",this.subsActive=!1,this.gamesContainerWidth=0,this.playersAway=[],this.subsTitle=!1,this.uniformAway="",this.uniformAwayG="",this.dataPlayersAway=[],this.awayTeamLogo="",this.awayTeamName="",this.players=this.players.filter(e=>e.team_id!==this.gameInfoheader.away_team),this.awayTeamAbrev="",this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneData(){this.lastGetGame=0,this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.playersAway=[],this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.uniformAway="",this.uniformAwayG="",this.dataPlayersHome=[],this.dataPlayersAway=[],this.homeTeamLogo="",this.awayTeamLogo="",this.homeTeamName="",this.awayTeamName="",this.homeTeamAbrev="",this.awayTeamAbrev="",this.home_team_id=0,this.players=[],this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},getDataSocket(){X1("lineups.game."+this.game.game_id,this.socket),X1("mxm.game."+this.game.game_id,this.socket),X1("lineups.bench.game."+this.game.game_id,this.socket)},resetPlayUpdate(e,p,f,F){if(e=="Substitution")if(p=="Home"){var K=this.playersHome[f].substitutionDataID.split("@"),k=this.playersHome.findIndex(r=>r.playerId==K[1]),w=this.playersHome.findIndex(r=>r.playerId==K[2]);k!=-1&&(this.playersHome[k].substitutionOut=!1,this.playersHome[k].substitutionMin="",this.playersHome[k].substitutionDataID="",this.playersHome[k].idSubstitution=0),w!=-1&&(this.playersHome[w].substitutionIn=!1,this.playersHome[w].substitutionMin="",this.playersHome[w].substitutionDataID="",this.playersHome[w].idSubstitution=0)}else{var n=this.playersAway[f].substitutionDataID.split("@"),_=this.playersAway.findIndex(r=>r.playerId==n[1]),h=this.playersAway.findIndex(r=>r.playerId==n[2]);k!=-1&&(this.playersAway[_].substitutionOut=!1,this.playersAway[_].substitutionMin="",this.playersAway[_].substitutionDataID="",this.playersAway[_].idSubstitution=0),h!=-1&&(this.playersAway[h].substitutionIn=!1,this.playersAway[h].substitutionMin="",this.playersAway[h].substitutionDataID="",this.playersAway[h].idSubstitution=0)}e=="YellowCard"&&(p=="Home"?(this.playersHome[f].yellowcards=0,this.playersHome[f].yellowcardsMin=0,this.playersHome[f].idyellowcards=0):(this.playersAway[f].yellowcards=0,this.playersAway[f].yellowcardsMin=0,this.playersAway[f].idyellowcards=0)),e=="RedCard"&&(p=="Home"?(this.playersHome[f].redcards=0,this.playersHome[f].redcardsMin=0,this.playersHome[f].idredcards=0):(this.playersAway[f].redcards=0,this.playersAway[f].redcardsMin=0,this.playersAway[f].idredcards=0)),e=="Goals"&&(p=="Home"?(this.playersHome[F].goals=this.playersHome[F].goals-1,this.playersHome[F].goalsMin.splice(f,1),this.playersHome[F].idsGoals.splice(f,1)):(this.playersAway[F].goals=this.playersAway[F].goals-1,this.playersAway[F].goalsMin.splice(f,1),this.playersAway[F].idsGoals.splice(f,1)))},setUpResizeObserver(){if(window.ResizeObserver)KE=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),KE.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(e){try{const g=await Xh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlMXM+e);for(let c=0;c<g.data.plays.length;c++){if(g.data.plays[c].event_type_id==3){if(g.data.plays[c].team_id==this.home_team_id){if(this.players.length>0){var p=g.data.plays[c].player_id.split("@"),f=this.players.findIndex(a=>a.playerId==p[0]),F=this.players.findIndex(a=>a.playerId==p[1]);f!=-1&&(this.players[f].idSubstitution=g.data.plays[c].play_id,this.players[f].substitutionOut=!0,this.players[f].substitutionMin=g.data.plays[c].minute,this.players[f].substitutionDataID=g.data.plays[c].team_id+"@"+g.data.plays[c].player_id),F!=-1&&(this.players[F].idSubstitution=g.data.plays[c].play_id,this.players[F].substitutionIn=!0,this.players[F].substitutionMin=g.data.plays[c].minute,this.players[F].substitutionDataID=g.data.plays[c].team_id+"@"+g.data.plays[c].player_id)}}else if(this.players.length>0){var K=g.data.plays[c].player_id.split("@"),k=this.players.findIndex(a=>a.playerId==K[0]),w=this.players.findIndex(a=>a.playerId==K[1]);k!=-1&&(this.players[k].idSubstitution=g.data.plays[c].play_id,this.players[k].substitutionOut=!0,this.players[k].substitutionMin=g.data.plays[c].minute,this.players[k].substitutionDataID=g.data.plays[c].team_id+"@"+g.data.plays[c].player_id),w!=-1&&(this.players[w].idSubstitution=g.data.plays[c].play_id,this.players[w].substitutionIn=!0,this.players[w].substitutionMin=g.data.plays[c].minute,this.players[w].substitutionDataID=g.data.plays[c].team_id+"@"+g.data.plays[c].player_id)}}if(g.data.plays[c].event_type_id==1){if(g.data.plays[c].team_id==this.home_team_id){if(this.players.length>0){var n=this.players.findIndex(a=>a.playerId==g.data.plays[c].player_id);n!=-1&&(this.players[n].goals+=1,this.players[n].goalsMin.push(g.data.plays[c].minute),this.players[n].idsGoals.push(g.data.plays[c].play_id))}}else if(this.players.length>0){var _=this.players.findIndex(a=>a.playerId==g.data.plays[c].player_id);_!=-1&&(this.players[_].goals+=1,this.players[_].goalsMin.push(g.data.plays[c].minute),this.players[_].idsGoals.push(g.data.plays[c].play_id))}}if(g.data.plays[c].event_type_id==2){if(g.data.plays[c].category_id==8){if(g.data.plays[c].team_id==this.home_team_id){if(this.players.length>0){var h=this.players.findIndex(a=>a.playerId==g.data.plays[c].player_id);h!=-1&&(this.players[h].yellowcards+=1,this.players[h].yellowcardsMin=g.data.plays[c].minute,this.players[h].idyellowcards=g.data.plays[c].play_id)}}else if(this.players.length>0){var r=this.players.findIndex(a=>a.playerId==g.data.plays[c].player_id);r!=-1&&(this.players[r].yellowcards+=1,this.players[r].yellowcardsMin=g.data.plays[c].minute,this.players[r].idyellowcards=g.data.plays[c].play_id)}}if(g.data.plays[c].category_id==9){if(g.data.plays[c].team_id==this.home_team_id){if(this.players.length>0){var b=this.players.findIndex(a=>a.playerId==g.data.plays[c].player_id);b!=-1&&(this.players[b].redcards+=1,this.players[b].redcardsMin=g.data.plays[c].minute,this.players[b].idredcards=g.data.plays[c].play_id)}}else if(this.players.length>0){var y=this.players.findIndex(a=>a.playerId==g.data.plays[c].player_id);y!=-1&&(this.players[y].redcards+=1,this.players[y].redcardsMin=g.data.plays[c].minute,this.players[y].idredcards=g.data.plays[c].play_id)}}}}}catch(g){return Promise.reject(g)}},async getLineupDataProbablesAway(e){try{const _=await Xh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!_||!_.data)throw new Error("There is not lineups for this game.");if(_.data.home_team.team_id==this.gameInfoheader.away_team){for(let h=0;h<_.data.home_team.starting_lineup[0].lineup.length;h++){this.away_team_id=_.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.home_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.home_team.team_id+"_g.svg","away",0);var p=_.data.home_team.starting_lineup[0].lineup[h].player_name.split(","),f=p[0].split(" "),F=p[1].trim().split(" "),K="";f.length==2||f.length==1?f[0].length<4?K=f[0]+" "+f[1]:K=f[0]:f.length==3?K=f[0]+" "+f[1]:f.length==4&&(K=f[1]+" "+f[2]+" "+f[3]);var k=F[F.length-1]!=""?F[F.length-1].charAt(0):F[F.length-2]?F[F.length-2].charAt(0):"";K=K.replace(",","");var w=_.data.home_team.starting_lineup[0].lineup[h].x;w=Math.abs(w-100);var n=100-(100-w)*50/100;n=n*.9,this.players.push({team_id:_.data.home_team.team_id,number:_.data.home_team.starting_lineup[0].lineup[h].jersey_number,isFirstTeam:!1,name:k+". "+K,photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.home_team.starting_lineup[0].lineup[h].player_id+".png",posX:n+7,posY:_.data.home_team.starting_lineup[0].lineup[h].y,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.home_team.team_id+".png"}this.playersAway.sort((h,r)=>h.position_id>r.position_id?1:r.position_id>h.position_id?-1:0)}if(_.data.away_team.team_id==this.gameInfoheader.away_team)for(let h=0;h<_.data.away_team.starting_lineup[0].lineup.length;h++){this.away_team_id=_.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.away_team.team_id+"_g.svg","away",0);var p=_.data.away_team.starting_lineup[0].lineup[h].player_name.split(","),f=p[0].split(" "),F=p[1].trim().split(" "),K="";f.length==2||f.length==1?f[0].length<4?K=f[0]+" "+f[1]:K=f[0]:f.length==3?K=f[0]+" "+f[1]:f.length==4&&(K=f[1]+" "+f[2]+" "+f[3]);var k=F[F.length-1]!=""?F[F.length-1].charAt(0):F[F.length-2]?F[F.length-2].charAt(0):"";K=K.replace(",","");var w=_.data.away_team.starting_lineup[0].lineup[h].x,n=100-(100-w)*50/100;n=n*.9,this.players.push({team_id:_.data.away_team.team_id,number:_.data.away_team.starting_lineup[0].lineup[h].jersey_number,isFirstTeam:!1,name:k+". "+K,photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.away_team.starting_lineup[0].lineup[h].player_id+".png",posX:100-(100-_.data.away_team.starting_lineup[0].lineup[h].x)*50/100,posY:_.data.away_team.starting_lineup[0].lineup[h].y,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.away_team.team_id+".png"}}catch(_){return Promise.reject(_)}},async getLineupDataProbablesHome(e){try{const r=await Xh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!r||!r.data)throw new Error("There is not lineups for this game.");if(r.data.home_team.team_id==this.gameInfoheader.home_team){this.dataPlayersHome=r.data.home_team.players,r.data.home_team.starting_lineup[0].lineup.sort((b,y)=>b.position_id>y.position_id?1:y.position_id>b.position_id?-1:0);for(let b=0;b<r.data.home_team.starting_lineup[0].lineup.length;b++){this.home_team_id=r.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+r.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+r.data.home_team.team_id+"_g.svg","home",0);var p=r.data.home_team.starting_lineup[0].lineup[b].player_name.split(","),f=p[0].split(" "),F=p[1].trim().split(" "),K="";f.length==2||f.length==1?f[0].length<4?K=f[0]+" "+f[1]:K=f[0]:f.length==3?K=f[0]+" "+f[1]:f.length==4&&(K=f[1]+" "+f[2]+" "+f[3]);var k=F[F.length-1]!=""?F[F.length-1].charAt(0):F[F.length-2]?F[F.length-2].charAt(0):"";K=K.replace(",","");var w=r.data.home_team.starting_lineup[0].lineup[b].x,n=w*50/100;this.players.push({team_id:r.data.home_team.team_id,number:r.data.home_team.starting_lineup[0].lineup[b].jersey_number,isFirstTeam:!0,name:k+". "+K,photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+r.data.home_team.starting_lineup[0].lineup[b].player_id+".png",posX:r.data.home_team.starting_lineup[0].lineup[b].x*50/100,posY:r.data.home_team.starting_lineup[0].lineup[b].y,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+r.data.home_team.team_id+".png"}}if(r.data.away_team.team_id==this.gameInfoheader.home_team){this.dataPlayersHome=r.data.away_team.players,r.data.away_team.starting_lineup[0].lineup.sort((b,y)=>b.position_id>y.position_id?1:y.position_id>b.position_id?-1:0);for(let b=0;b<r.data.away_team.starting_lineup[0].lineup.length;b++){this.home_team_id=r.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+r.data.away_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+r.data.away_team.team_id+"_g.svg","home",0);var p=r.data.away_team.starting_lineup[0].lineup[b].player_name.split(","),f=p[0].split(" "),F=p[1].trim().split(" "),K="";f.length==2||f.length==1?f[0].length<4?K=f[0]+" "+f[1]:K=f[0]:f.length==3?K=f[0]+" "+f[1]:f.length==4&&(K=f[1]+" "+f[2]+" "+f[3]);var k=F[F.length-1]!=""?F[F.length-1].charAt(0):F[F.length-2]?F[F.length-2].charAt(0):"";K=K.replace(",","");var _=r.data.away_team.starting_lineup[0].lineup[b].x;_=Math.abs(_-100);var n=_*50/100,h=r.data.away_team.starting_lineup[0].lineup[b].y;h=Math.abs(h-100),this.players.push({team_id:r.data.away_team.team_id,number:r.data.away_team.starting_lineup[0].lineup[b].jersey_number,isFirstTeam:!0,name:k+". "+K,photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+r.data.away_team.starting_lineup[0].lineup[b].player_id+".png",posX:n-2,posY:h-9,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+r.data.away_team.team_id+".png"}}}catch(r){return Promise.reject(r)}},async getLineUp(e){if(Rse(),!this.playersHome.length)try{const O=await Xh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!O||!O.data)throw new Error("There is not lineups for this game.");this.players=[],this.dataPlayersHome=O.data.home_team.players,this.dataPlayersAway=O.data.away_team.players,O.data.home_team.starting_lineup[0].lineup.sort((D,N)=>D.position_id>N.position_id?1:N.position_id>D.position_id?-1:0);for(let D=0;D<O.data.home_team.starting_lineup[0].lineup.length;D++){this.home_team_id=O.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+O.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+O.data.home_team.team_id+"_g.svg","home",0);var p=O.data.home_team.starting_lineup[0].lineup[D].player_name.split(","),f=p[0].split(" "),F=p[1].trim().split(" "),K="";f.length==2||f.length==1?f[0].length<4?K=f[0]+" "+f[1]:K=f[0]:f.length==3?K=f[0]+" "+f[1]:f.length==4&&(K=f[1]+" "+f[2]+" "+f[3]);var k=F[F.length-1]!=""?F[F.length-1].charAt(0):F[F.length-2]?F[F.length-2].charAt(0):"";K=K.replace(",","");var w=k+". "+K,n=O.data.home_team.starting_lineup[0].lineup[D].x,_=n*50/100,h=O.data.home_team.players.findIndex(N=>N.player_id==O.data.home_team.starting_lineup[0].lineup[D].player_id);this.players.push({playerId:O.data.home_team.starting_lineup[0].lineup[D].player_id,number:O.data.home_team.starting_lineup[0].lineup[D].jersey_number,isFirstTeam:!0,name:k+". "+K,photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+O.data.home_team.starting_lineup[0].lineup[D].player_id+".png",posX:O.data.home_team.starting_lineup[0].lineup[D].x*50/100,posY:O.data.home_team.starting_lineup[0].lineup[D].y,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0}),this.playersHome.push({played:!0,name:O.data.home_team.starting_lineup[0].lineup[D].player_name,position:this.positions[O.data.home_team.players[h].position_id-1].name,position_id:O.data.home_team.players[h].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+O.data.home_team.starting_lineup[0].lineup[D].player_id+".png",nationality:O.data.home_team.players[h].nationality?O.data.home_team.players[h].nationality.substring(0,3):"",imgNationality:O.data.home_team.players[h].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:w,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+O.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:O.data.home_team.starting_lineup[0].lineup[D].jersey_number,positionX:O.data.home_team.starting_lineup[0].lineup[D].y-13,positionY:_*.9,positionXOrigin:O.data.home_team.starting_lineup[0].lineup[D].y-17,positionYOrigin:O.data.home_team.starting_lineup[0].lineup[D].x-2,playerId:O.data.home_team.starting_lineup[0].lineup[D].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:O.data.home_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+O.data.home_team.team_id+".png"}if(this.playersHome.sort((D,N)=>D.position_id>N.position_id?1:N.position_id>D.position_id?-1:0),O.data.home_team.bench){for(let D=0;D<O.data.home_team.bench.length;D++){this.subsTitle=!0;var r=O.data.home_team.bench[D].playerName.split(","),b=r[0].split(" "),y=r[1].trim().split(" "),g="";b.length==2||b.length==1?b[0].length<4?g=b[0]+" "+b[1]:g=b[0]:b.length==3?g=b[0]+" "+b[1]:b.length==4&&(g=b[1]+" "+b[2]+" "+b[3]);var c=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";g=g.replace(",","");var a=c+". "+g,i=O.data.home_team.players.findIndex(N=>N.player_id==O.data.home_team.bench[D].playerID);this.playersHome.push({played:!1,name:O.data.home_team.bench[D].playerName,position:i!=-1?this.positions[O.data.home_team.players[i].position_id-1].name:"",position_id:O.data.home_team.players[i].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+O.data.home_team.bench[D].playerID+".png",nationality:i!=-1&&O.data.home_team.players[i].nationality?O.data.home_team.players[i].nationality.substring(0,3):"",imgNationality:i!=-1?O.data.home_team.players[i].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:a,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+O.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:O.data.home_team.bench[D].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:O.data.home_team.bench[D].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:O.data.home_team.team_id})}this.playersHome.sort((D,N)=>D.position_id>N.position_id?1:N.position_id>D.position_id?-1:0)}for(let D=0;D<O.data.away_team.starting_lineup[0].lineup.length;D++){this.away_team_id=O.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+O.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+O.data.away_team.team_id+"_g.svg","away",0);var u=O.data.away_team.starting_lineup[0].lineup[D].player_name.split(","),s=u[0].split(" "),d=u[1].trim().split(" "),m="";s.length==2||s.length==1?s[0].length<4?m=s[0]+" "+s[1]:m=s[0]:s.length==3?m=s[0]+" "+s[1]:s.length==4&&(m=s[1]+" "+s[2]+" "+s[3]);var v=d[F.length-1]!=""?d[d.length-1].charAt(0):d[d.length-2]?d[d.length-2].charAt(0):"";m=m.replace(",","");var T=v+". "+m,A=O.data.away_team.starting_lineup[0].lineup[D].x,C=100-(100-A)*50/100;C=C*.9;var P=O.data.away_team.players.findIndex(N=>N.player_id==O.data.away_team.starting_lineup[0].lineup[D].player_id);this.players.push({playerId:O.data.away_team.starting_lineup[0].lineup[D].player_id,number:O.data.away_team.starting_lineup[0].lineup[D].jersey_number,isFirstTeam:!1,name:v+". "+m,photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+O.data.away_team.starting_lineup[0].lineup[D].player_id+".png",posX:100-(100-O.data.away_team.starting_lineup[0].lineup[D].x)*50/100,posY:O.data.away_team.starting_lineup[0].lineup[D].y,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0}),this.playersAway.push({played:!0,name:O.data.away_team.starting_lineup[0].lineup[D].player_name,position:this.positions[O.data.away_team.players[P].position_id-1].name,position_id:O.data.away_team.players[P].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+O.data.away_team.starting_lineup[0].lineup[D].player_id+".png",nationality:O.data.away_team.players[P].nationality?O.data.away_team.players[P].nationality.substring(0,3):"",imgNationality:O.data.away_team.players[P].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:T,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+O.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:O.data.away_team.starting_lineup[0].lineup[D].jersey_number,positionX:O.data.away_team.starting_lineup[0].lineup[D].y-13,positionY:C,positionXOrigin:O.data.away_team.starting_lineup[0].lineup[D].y-17,positionYOrigin:O.data.away_team.starting_lineup[0].lineup[D].x-7,playerId:O.data.away_team.starting_lineup[0].lineup[D].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:O.data.away_team.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+O.data.away_team.team_id+".png"}if(this.playersAway.sort((D,N)=>D.position_id>N.position_id?1:N.position_id>D.position_id?-1:0),O.data.away_team.bench){for(let D=0;D<O.data.away_team.bench.length;D++){this.subsTitle=!0;var L=O.data.away_team.bench[D].playerName.split(","),E=L[0].split(" "),I=L[1].trim().split(" "),M="";E.length==2||E.length==1?E[0].length<4?M=E[0]+" "+E[1]:M=E[0]:E.length==3?M=E[0]+" "+E[1]:E.length==4&&(M=E[1]+" "+E[2]+" "+E[3]);var S=I[I.length-1]!=""?I[I.length-1].charAt(0):I[I.length-2]?I[I.length-2].charAt(0):"";M=M.replace(",","");var B=S+". "+M,x=O.data.away_team.players.findIndex(N=>N.player_id==O.data.away_team.bench[D].playerID);this.playersAway.push({played:!1,name:O.data.away_team.bench[D].playerName,position:x!=-1?this.positions[O.data.away_team.players[x].position_id-1].name:"",position_id:O.data.away_team.players[x].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+O.data.away_team.bench[D].playerID+".png",nationality:x!=-1&&O.data.away_team.players[x].nationality?O.data.away_team.players[x].nationality.substring(0,3):"",imgNationality:x!=-1?O.data.away_team.players[x].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:B,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+O.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:O.data.away_team.bench[D].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:O.data.away_team.bench[D].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:O.data.away_team.team_id})}this.playersAway.sort((D,N)=>D.position_id>N.position_id?1:N.position_id>D.position_id?-1:0)}this.getMXM(e)}catch(O){return Promise.reject(O)}},closeChange(){this.subsActive=!1},imageExists(e,p,f){var F=new XMLHttpRequest,K=0;p=="away"?f==1?this.uniformAway==""&&(F.open("HEAD",e,!1),F.send(),K=1):this.uniformAwayG==""&&(F.open("HEAD",e,!1),F.send(),K=1):f==1?this.uniformHome==""&&(F.open("HEAD",e,!1),F.send(),K=1):this.uniformHomeG==""&&(F.open("HEAD",e,!1),F.send(),K=1),K==1&&(F.status==200?p=="away"?f==1?this.uniformAway="url("+e+")":this.uniformAwayG="url("+e+")":f==1?this.uniformHome="url("+e+")":this.uniformHomeG="url("+e+")":p=="away"?f==1?this.uniformAway="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita.svg)":this.uniformAwayG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita_g.svg)":f==1?this.uniformHome="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local.svg)":this.uniformHomeG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local_g.svg)")},viewChange(e){var p=e.split("@");if(p[0]==this.home_team_id){var f=this.playersHome.findIndex(w=>w.playerId==p[1]),F=this.playersHome.findIndex(w=>w.playerId==p[2]);f!=-1?(this.substitutionModal.min=this.playersHome[f].substitutionMin,this.substitutionModal.in.name=this.playersHome[f].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersHome[f].imgTeam,this.substitutionModal.in.shirt_number=this.playersHome[f].shirt_number,this.substitutionModal.in.playerImg=this.playersHome[f].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersHome[f].imgNationality):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),F!=-1?(this.substitutionModal.out.name=this.playersHome[F].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[F].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[F].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[F].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[F].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}else{var K=this.playersAway.findIndex(w=>w.playerId==p[1]),k=this.playersAway.findIndex(w=>w.playerId==p[2]);K!=-1?(this.substitutionModal.min=this.playersAway[K].substitutionMin,this.substitutionModal.in.name=this.playersAway[K].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[K].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[K].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[K].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[K].shirt_number):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),k!=-1?(this.substitutionModal.out.name=this.playersAway[k].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersAway[k].imgTeam,this.substitutionModal.out.playerImg=this.playersAway[k].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersAway[k].imgNationality,this.substitutionModal.out.shirt_number=this.playersAway[k].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}this.subsActive=!0},viewLineupTeam(e){this.teamActive=e}},sockets:{new_bench([e,p]){if(p[this.home_team_id]){this.playersHome=this.playersHome.filter(function(i){return!i.isbench});for(let i=0;i<p[this.home_team_id].length;i++)if(!p[this.home_team_id][i].isTitular){this.subsTitle=!0;var f=p[this.home_team_id][i].playerName.split(","),F=f[0].split(" "),K=f[1].trim().split(" "),k="";F.length==2||F.length==1?F[0].length<4?k=F[0]+" "+F[1]:k=F[0]:F.length==3?k=F[0]+" "+F[1]:F.length==4&&(k=F[1]+" "+F[2]+" "+F[3]);var w=K[K.length-1]!=""?K[K.length-1].charAt(0):K[K.length-2]?K[K.length-2].charAt(0):"";k=k.replace(",","");var n=w+". "+k,_=this.dataPlayersHome.findIndex(u=>u.player_id==p[this.home_team_id][i].playerID);this.playersHome.push({played:!1,name:p[this.home_team_id][i].playerName,position:_!=-1?this.positions[this.dataPlayersHome[_].position_id-1].name:"",position_id:this.dataPlayersHome[_].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+p[this.home_team_id][i].playerID+".png",nationality:_!=-1&&this.dataPlayersHome[_].nationality?this.dataPlayersHome[_].nationality.substring(0,3):"",imgNationality:_!=-1?this.dataPlayersHome[_].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:n,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+this.home_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:p[this.home_team_id][i].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:p[this.home_team_id][i].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersHome.sort((i,u)=>i.position_id>u.position_id?1:u.position_id>i.position_id?-1:0)}if(p[this.away_team_id]){this.playersAway=this.playersAway.filter(function(i){return!i.isbench});for(let i=0;i<p[this.away_team_id].length;i++)if(!p[this.away_team_id][i].isTitular){this.subsTitle=!0;var h=p[this.away_team_id][i].playerName.split(","),r=h[0].split(" "),b=f[1].trim().split(" "),y="";r.length==2||r.length==1?r[0].length<4?y=r[0]+" "+r[1]:y=r[0]:r.length==3?y=r[0]+" "+r[1]:r.length==4&&(y=r[1]+" "+r[2]+" "+r[3]);var g=b[b.length-1]!=""?b[b.length-1].charAt(0):b[b.length-2]?b[b.length-2].charAt(0):"";y=y.replace(",","");var c=g+". "+y,a=this.dataPlayersAway.findIndex(u=>u.player_id==p[this.away_team_id][i].playerID);this.playersAway.push({played:!1,name:p[this.away_team_id][i].playerName,position:a!=-1?this.positions[this.dataPlayersAway[a].position_id-1].name:"",position_id:this.dataPlayersAway[a].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+p[this.away_team_id][i].playerID+".png",nationality:a!=-1&&this.dataPlayersAway[a].nationality?this.dataPlayersAway[a].nationality.substring(0,3):"",imgNationality:a!=-1?this.dataPlayersAway[a].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:c,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+this.away_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:p[this.away_team_id][i].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:p[this.away_team_id][i].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersAway.sort((i,u)=>i.position_id>u.position_id?1:u.position_id>i.position_id?-1:0)}},new_lineup([e,p]){if(p.team_id==p.home_team.team_id){if(this.playersHome.length==0){this.dataPlayersHome=p.home_team.players;for(let m=0;m<p.data.length;m++){this.home_team_id=p.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+p.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+p.team_id+"_g.svg","home",0);var f=p.data[m].player_name.split(","),F=f[0].split(" "),K=f[1].trim().split(" "),k="";F.length==2||F.length==1?F[0].length<4?k=F[0]+" "+F[1]:k=F[0]:F.length==3?k=F[0]+" "+F[1]:F.length==4&&(k=F[1]+" "+F[2]+" "+F[3]);var w=K[K.length-1]!=""?K[K.length-1].charAt(0):K[K.length-2]?K[K.length-2].charAt(0):"";k=k.replace(",","");var n=w+". "+k,_=p.data[m].x,h=_*50/100,r=p.home_team.players.findIndex(v=>v.player_id==p.data[m].player_id);this.playersHome.push({played:!0,name:p.data[m].player_name,position:r!=-1?this.positions[p.home_team.players[r].position_id-1].name:"",position_id:p.home_team.players[r].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+p.data[m].player_id+".png",nationality:r!=-1&&p.home_team.players[r].nationality?p.home_team.players[r].nationality.substring(0,3):"",imgNationality:r!=-1?p.home_team.players[r].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:n,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+p.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:p.data[m].jersey_number,positionX:p.data[m].y-13,positionY:h*.9,positionXOrigin:p.data[m].y-17,positionYOrigin:p.data[m].x-2,playerId:p.data[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:p.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+p.team_id+".png"}this.playersHome.sort((m,v)=>m.position_id>v.position_id?1:v.position_id>m.position_id?-1:0)}}else if(this.playersAway.length==0){this.dataPlayersAway=p.away_team.players;for(let m=0;m<p.data.length;m++){this.away_team_id=p.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+p.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+p.team_id+"_g.svg","away",0);var b=p.data[m].player_name.split(","),y=b[0].split(" "),g=b[1].trim().split(" "),c="";y.length==2||y.length==1?y[0].length<4?c=y[0]+" "+y[1]:c=y[0]:y.length==3?c=y[0]+" "+y[1]:y.length==4&&(c=y[1]+" "+y[2]+" "+y[3]);var a=g[g.length-1]!=""?g[g.length-1].charAt(0):g[g.length-2]?g[g.length-2].charAt(0):"";c=c.replace(",","");var i=a+". "+c,u=p.data[m].x,s=100-(100-u)*50/100;s=s*.9;var d=p.away_team.players.findIndex(v=>v.player_id==p.data[m].player_id);this.playersAway.push({played:!0,name:p.data[m].player_name,position:d!=-1?this.positions[p.away_team.players[d].position_id-1].name:"",position_id:p.away_team.players[d].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+p.data[m].player_id+".png",nationality:d!=-1&&p.away_team.players[d].nationality?p.away_team.players[d].nationality.substring(0,3):"",imgNationality:d!=-1?p.away_team.players[d].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:i,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+p.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:p.data[m].jersey_number,positionX:p.data[m].y-13,positionY:s+2,positionXOrigin:p.data[m].y-17,positionYOrigin:p.data[m].x-7,playerId:p.data[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:p.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+p.team_id+".png"}this.playersAway.sort((m,v)=>m.position_id>v.position_id?1:v.position_id>m.position_id?-1:0)}},update_mxm([e,p]){var f=-1,F=-1;if(this.players.length>0){var K=this.players.findIndex(C=>C.idredcards==p.play_id),k=this.players.findIndex(C=>C.idyellowcards==p.play_id),w=this.players.findIndex(C=>C.idSubstitution==p.play_id);for(let C=0;C<this.players.length;C++){var n=this.players[C].idsGoals.findIndex(P=>P==p.play_id);n!=-1&&(f=n,F=C)}K!=-1&&this.resetPlayUpdate("RedCard","Home",K,F),k!=-1&&this.resetPlayUpdate("YellowCard","Home",k,F),w!=-1&&this.resetPlayUpdate("Substitution","Home",w,F),f!=-1&&this.resetPlayUpdate("Goals","Home",f,F)}if(this.players.length>0){var _=this.players.findIndex(C=>C.idredcards==p.play_id),h=this.players.findIndex(C=>C.idyellowcards==p.play_id),r=this.players.findIndex(C=>C.idSubstitution==p.play_id);for(let C=0;C<this.players.length;C++){var b=this.players[C].idsGoals.findIndex(P=>P==p.play_id);b!=-1&&(f=b,F=C)}_!=-1&&this.resetPlayUpdate("RedCard","Away",_,F),h!=-1&&this.resetPlayUpdate("YellowCard","Away",h,F),r!=-1&&this.resetPlayUpdate("Substitution","Away",r,F),f!=-1&&this.resetPlayUpdate("Goals","Away",f,F)}if(p.event_type_id==3){if(p.team_id==this.home_team_id){if(this.players.length>0){var y=p.player_id.split("@"),g=this.players.findIndex(C=>C.playerId==y[0]),c=this.players.findIndex(C=>C.playerId==y[1]);g!=-1&&(this.players[g].idSubstitution=p.play_id,this.players[g].substitutionOut=!0,this.players[g].substitutionMin=p.minute,this.players[g].substitutionDataID=p.team_id+"@"+p.player_id),c!=-1&&(this.players[c].idSubstitution=p.play_id,this.players[c].substitutionIn=!0,this.players[c].substitutionMin=p.minute,this.players[c].substitutionDataID=p.team_id+"@"+p.player_id)}}else if(this.players.length>0){var a=p.player_id.split("@"),i=this.players.findIndex(C=>C.playerId==a[0]),u=this.players.findIndex(C=>C.playerId==a[1]);g!=-1&&(this.players[i].idSubstitution=p.play_id,this.players[i].substitutionOut=!0,this.players[i].substitutionMin=p.minute,this.players[i].substitutionDataID=p.team_id+"@"+p.player_id),u!=-1&&(this.players[u].idSubstitution=p.play_id,this.players[u].substitutionIn=!0,this.players[u].substitutionMin=p.minute,this.players[u].substitutionDataID=p.team_id+"@"+p.player_id)}}if(p.event_type_id==1){if(p.team_id==this.home_team_id){if(this.playersHome.length>0){var s=this.playersHome.findIndex(C=>C.playerId==p.player_id);s!=-1&&(this.playersHome[s].goals+=1,this.playersHome[s].goalsMin.push(p.minute),this.playersHome[s].idsGoals.push(p.play_id))}}else if(this.players.length>0){var d=this.players.findIndex(C=>C.playerId==p.player_id);d!=-1&&(this.players[d].goals+=1,this.players[d].goalsMin.push(p.minute),this.players[d].idsGoals.push(p.play_id))}}if(p.event_type_id==2){if(p.category_id==8){if(p.team_id==this.home_team_id){if(this.playersHome.length>0){var m=this.playersHome.findIndex(C=>C.playerId==p.player_id);m!=-1&&(this.playersHome[m].yellowcards+=1,this.playersHome[m].yellowcardsMin=p.minute,this.playersHome[m].idyellowcards=p.play_id)}}else if(this.players.length>0){var v=this.players.findIndex(C=>C.playerId==p.player_id);v!=-1&&(this.players[v].yellowcards+=1,this.players[v].yellowcardsMin=p.minute,this.players[v].idyellowcards=p.play_id)}}if(p.category_id==9){if(p.team_id==this.home_team_id){if(this.playersHome.length>0){var T=this.playersHome.findIndex(C=>C.playerId==p.player_id);T!=-1&&(this.playersHome[T].redcards+=1,this.playersHome[T].redcardsMin=p.minute,this.playersHome[T].idredcards=p.play_id)}}else if(this.players.length>0){var A=this.players.findIndex(C=>C.playerId==p.player_id);A!=-1&&(this.players[A].redcards+=1,this.players[A].redcardsMin=p.minute,this.players[A].idredcards=p.play_id)}}}},delete_mxm([e,p]){if(this.players.length>0)for(let f=0;f<this.players.length;f++)this.players[f].idSubstitution==p.play_id&&(this.players[f].substitutionOut=!1,this.players[f].substitutionIn=!1,this.players[f].substitutionMin="",this.players[f].substitutionDataID="",this.players[f].idSubstitution=0);if(this.players.length>0)for(let f=0;f<this.players.length;f++)this.players[f].idSubstitution==p.play_id&&(this.players[f].substitutionOut=!1,this.players[f].substitutionIn=!1,this.players[f].substitutionMin="",this.players[f].substitutionDataID="",this.players[f].idSubstitution=0);if(this.players.length>0)for(let f=0;f<this.players.length;f++){const F=this.players[f].idsGoals.findIndex(K=>K==p.play_id);F!=-1&&(this.players[f].goals=this.players[f].goals-1,this.players[f].goalsMin.splice(F,1),this.players[f].idsGoals.splice(F,1))}if(this.players.length>0)for(let f=0;f<this.players.length;f++){const F=this.players[f].idsGoals.findIndex(K=>K==p.play_id);F!=-1&&(this.players[f].goals=this.players[f].goals-1,this.players[f].goalsMin.splice(F,1),this.players[f].idsGoals.splice(F,1))}if(this.players.length>0)for(let f=0;f<this.players.length;f++)this.players[f].idyellowcards==p.play_id&&(this.players[f].yellowcards=0,this.players[f].yellowcardsMin=0,this.players[f].idyellowcards=0);if(this.players.length>0)for(let f=0;f<this.players.length;f++)this.players[f].idyellowcards==p.play_id&&(this.players[f].yellowcards=0,this.players[f].yellowcardsMin=0,this.players[f].idyellowcards=0);if(this.players.length>0)for(let f=0;f<this.players.length;f++)this.players[f].idredcards==p.play_id&&(this.players[f].redcards=0,this.players[f].redcardsMin=0,this.players[f].idredcards=0);if(this.players.length>0)for(let f=0;f<this.players.length;f++)this.players[f].idredcards==p.play_id&&(this.players[f].redcards=0,this.players[f].redcardsMin=0,this.players[f].idredcards=0)},new_mxm([e,p]){if(p.event_type_id==3){if(p.team_id==this.home_team_id){if(this.players.length>0){var f=p.player_id.split("@"),F=this.players.findIndex(c=>c.playerId==f[0]),K=this.players.findIndex(c=>c.playerId==f[1]);F!=-1&&(this.players[F].idSubstitution=p.play_id,this.players[F].substitutionOut=!0,this.players[F].substitutionMin=p.minute,this.players[F].substitutionDataID=p.team_id+"@"+p.player_id),K!=-1&&(this.players[K].idSubstitution=p.play_id,this.players[K].substitutionIn=!0,this.players[K].substitutionMin=p.minute,this.players[K].substitutionDataID=p.team_id+"@"+p.player_id)}}else if(this.players.length>0){var k=p.player_id.split("@"),w=this.players.findIndex(c=>c.playerId==k[0]),n=this.players.findIndex(c=>c.playerId==k[1]);F!=-1&&(this.players[w].idSubstitution=p.play_id,this.players[w].substitutionOut=!0,this.players[w].substitutionMin=p.minute,this.players[w].substitutionDataID=p.team_id+"@"+p.player_id),n!=-1&&(this.players[n].idSubstitution=p.play_id,this.players[n].substitutionIn=!0,this.players[n].substitutionMin=p.minute,this.players[n].substitutionDataID=p.team_id+"@"+p.player_id)}}if(p.event_type_id==1){if(p.team_id==this.home_team_id){if(this.players.length>0){var _=this.players.findIndex(c=>c.playerId==p.player_id);_!=-1&&(this.players[_].goals+=1,this.players[_].goalsMin.push(p.minute),this.players[_].idsGoals.push(p.play_id))}}else if(this.players.length>0){var h=this.players.findIndex(c=>c.playerId==p.player_id);h!=-1&&(this.players[h].goals+=1,this.players[h].goalsMin.push(p.minute),this.players[h].idsGoals.push(p.play_id))}}if(p.event_type_id==2){if(p.category_id==8){if(p.team_id==this.home_team_id){if(this.players.length>0){var r=this.players.findIndex(c=>c.playerId==p.player_id);r!=-1&&(this.players[r].yellowcards+=1,this.players[r].yellowcardsMin=p.minute,this.players[r].idyellowcards=p.play_id)}}else if(this.players.length>0){var b=this.players.findIndex(c=>c.playerId==p.player_id);b!=-1&&(this.players[b].yellowcards+=1,this.players[b].yellowcardsMin=p.minute,this.players[b].idyellowcards=p.play_id)}}if(p.category_id==9){if(p.team_id==this.home_team_id){if(this.players.length>0){var y=this.players.findIndex(c=>c.playerId==p.player_id);y!=-1&&(this.players[y].redcards+=1,this.players[y].redcardsMin=p.minute,this.players[y].idredcards=p.play_id)}}else if(this.players.length>0){var g=this.players.findIndex(c=>c.playerId==p.player_id);g!=-1&&(this.players[g].redcards+=1,this.players[g].redcardsMin=p.minute,this.players[g].idredcards=p.play_id)}}}}}},Cv=e=>(t.pushScopeId("data-v-1634ade6"),e=e(),t.popScopeId(),e),Due={class:"lineup__header",ref:"gamesContainer"},Fue=Cv(()=>t.createElementVNode("h2",null,"Alineaciones",-1)),Nue={key:0,style:{width:"325px"}},Rue={class:"lineup__card"},Vue={key:0},jue={key:1},Uue={key:2},$ue={key:3,class:"lineup__card-body"},Gue={class:"lineup__selector",style:{margin:"auto"}},Hue={class:"lineup__selector-item"},que={key:4,class:"lineup__card-body",style:{"flex-flow":"column"}},Wue={class:"lineup__filters"},Zue={class:"selector-tournaments"},Xue={class:"lineup__items-carousel"},Yue=Cv(()=>t.createElementVNode("div",null,null,-1)),Kue={class:"lineup__items-center"},Jue={class:"lineup__selector-recientes"},Que={key:1,class:"containernofoundsearchrecientes"},ede=Cv(()=>t.createElementVNode("div",{class:"text-containernofoundsearchrecientes"},[t.createTextVNode(" No hay resultados con los criterios, "),t.createElementVNode("br"),t.createTextVNode(" de búsqueda aplicados. ")],-1)),tde={key:0,class:"lineup__selector-recientes",style:{margin:"auto",width:"100%"}},rde={key:5,class:"lineup__card-body space-between"},nde={class:"lineup__card-body__probables"},ade={class:"selector-tournaments"},ide=Cv(()=>t.createElementVNode("div",{class:"lineup__card-body__team-vs"},"vs",-1)),ode=["src"],sde={class:"lineup__card-body__probables"},lde=["src"],cde=Cv(()=>t.createElementVNode("div",{class:"lineup__card-body__team-vs"},"vs",-1)),ude={class:"selector-tournaments"},dde={key:6,class:"lineup__card-body space-between"},hde={class:"postmatch__matchday"};function pde(e,p,f,F,K,k){const w=t.resolveComponent("GscSwitchComponent"),n=t.resolveComponent("LineupMainHeader"),_=t.resolveComponent("GSCCarousel"),h=t.resolveComponent("LineupFilter"),r=t.resolveComponent("GSCDropdown"),b=t.resolveComponent("LineupRecentItem"),y=t.resolveComponent("MatchDetails"),g=t.resolveComponent("LineupField");return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["lineup",{"break-point-3":k.mobileClass}])},[t.createElementVNode("div",Due,[Fue,f.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock("div",Nue,[(K.gameInfoheader.game_status==0||K.gameInfoheader.game_status==4)&&k.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(w,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:f.selectedOption,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:p[0]||(p[0]=c=>f.selectedOption=c)},null,8,["selectedOption"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],512),t.createElementVNode("div",Rue,[f.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[f.selectedOption==="Probables"?(t.openBlock(),t.createElementBlock("h3",Vue,"Alineación utilizada este torneo en:")):f.selectedOption==="Recientes"?(t.openBlock(),t.createElementBlock("h3",jue,"Alineaciones recientes de:")):(t.openBlock(),t.createElementBlock("h3",Uue,"Alineación utilizada en:"))],64)):t.createCommentVNode("",!0),f.selectedOption==="Historicos"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(K.headerInfoHistoricItemGame).length>0?(t.openBlock(),t.createBlock(n,{key:0,localTeam:{acronym:K.headerInfoHistoricItemGame.home_team_abbreviation,img:"https://golstatsimages.blob.core.windows.net/teams-80/"+K.headerInfoHistoricItemGame.home_team+".png"},visitTeam:{acronym:K.headerInfoHistoricItemGame.away_team_abbreviation,img:"https://golstatsimages.blob.core.windows.net/teams-80/"+K.headerInfoHistoricItemGame.away_team+".png"},probablyTeamHome:{acronym:K.rivalHomeAbrev,img:K.rivalHomeImg},probablyTeamAway:{acronym:K.rivalVisitAbrev,img:K.rivalVisitImg},score:K.headerInfoHistoricItemGame.score[0]+" - "+K.headerInfoHistoricItemGame.score[1],onChange:k.changeSwitchRadio,type:f.selectedOption},null,8,["localTeam","visitTeam","probablyTeamHome","probablyTeamAway","score","onChange","type"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[Object.keys(K.gameInfoheader).length>0?(t.openBlock(),t.createBlock(n,{key:0,localTeam:{acronym:K.gameInfoheader.home_team_abbreviation,img:"https://golstatsimages.blob.core.windows.net/teams-80/"+K.gameInfoheader.home_team+".png"},visitTeam:{acronym:K.gameInfoheader.away_team_abbreviation,img:"https://golstatsimages.blob.core.windows.net/teams-80/"+K.gameInfoheader.away_team+".png"},probablyTeamHome:{acronym:K.rivalHomeAbrev,img:K.rivalHomeImg},probablyTeamAway:{acronym:K.rivalVisitAbrev,img:K.rivalVisitImg},score:K.gameInfoheader.score[0]+" - "+K.gameInfoheader.score[1],onChange:k.changeSwitchRadio,type:f.selectedOption},null,8,["localTeam","visitTeam","probablyTeamHome","probablyTeamAway","score","onChange","type"])):t.createCommentVNode("",!0)],64)),f.selectedOption==="Historicos"?(t.openBlock(),t.createElementBlock("div",$ue,[f.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Gue,[K.gamesHistoric.length>0?(t.openBlock(),t.createBlock(_,{key:K.updatehistoricos,onInput:k.changeCarouselItemH,items:K.gamesHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:c})=>[t.createElementVNode("div",Hue,t.toDisplayString(c.description),1)]),_:1},8,["onInput","items"])):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"lineup__text-btn-abs",onClick:p[1]||(p[1]=c=>K.showDetails=!K.showDetails)},t.toDisplayString(K.showDetails?"Ocultar detalles":"Ver detalles"),1)],64)):t.createCommentVNode("",!0)])):f.selectedOption==="Recientes"?(t.openBlock(),t.createElementBlock("div",que,[t.createElementVNode("div",Wue,[t.createVNode(h,{name:"Filtros",onChange:k.changeFiltersModal,reset:K.vDeleteFilter},null,8,["onChange","reset"]),t.createElementVNode("div",{class:"lineup__filters__selector",ref:"targetElement",onClick:p[2]||(p[2]=(...c)=>k.handleInsideClick&&k.handleInsideClick(...c))},[(t.openBlock(),t.createBlock(r,{onClick:k.clickOnValueFilter,items:k.matchdaysFinal,onInput:k.changeDropdown,backgroundColor:"transparent",height:"25px",key:e.keyUpdate,color:"rgba(255, 255, 255, 0.7)",arrowColor:"rgba(255, 255, 255, 0.7)",borderColor:"rgba(255, 255, 255, 0.3)",style:{"font-size":"10px"},arrowHeight:"16",arrowWidth:16,"default-item-by-prop":e.defaultDropItem,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(c=>[t.createElementVNode("div",Zue,t.toDisplayString(c.selectedItem.name),1)]),availableItem:t.withCtx(({item:c})=>[t.createElementVNode("div",null,t.toDisplayString(c.name),1)]),_:1},8,["onClick","items","onInput","default-item-by-prop"]))],512),t.createElementVNode("div",{class:"lineup__text-btn",onClick:p[3]||(p[3]=c=>K.showDetails=!K.showDetails)},t.toDisplayString(K.showDetails?"Ocultar detalles":"Ver detalles"),1)]),t.createElementVNode("div",Xue,[Yue,t.createElementVNode("div",Kue,[k.mobileClass?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Jue,[k.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(_,{onClick:k.clickOnValueCarrousel,"default-item-by-index":K.selectedIndexOption,width:"600px",height:"80px",key:K.updateCarouselGames,onInput:k.changeCarouselItem,items:k.gameRecientesFilter,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:c})=>[t.createVNode(b,{game:c,teamSelect:K.teamSelect},null,8,["game","teamSelect"])]),_:1},8,["onClick","default-item-by-index","onInput","items"])):(t.openBlock(),t.createElementBlock("div",Que,[ede,t.createElementVNode("div",{class:"btn-delete-filters",onClick:p[4]||(p[4]=(...c)=>k.clickOnDeleteFilter&&k.clickOnDeleteFilter(...c))}," Eliminar filtros aplicados ")]))]),K.showDetails?(t.openBlock(),t.createBlock(y,{key:0,localDetails:K.localDetails,foreignDetails:K.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],64))])]),k.mobileClass?(t.openBlock(),t.createElementBlock("div",tde,[k.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(_,{onClick:k.clickOnValueCarrousel,"default-item-by-index":K.selectedIndexOption,width:"600px",height:"80px",key:K.updateCarouselGames,onInput:k.changeCarouselItem,items:k.gameRecientesFilter,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1},{default:t.withCtx(({item:c})=>[t.createVNode(b,{game:c,teamSelect:K.teamSelect,style:{"max-width":"200px"}},null,8,["game","teamSelect"])]),_:1},8,["onClick","default-item-by-index","onInput","items"])):t.createCommentVNode("",!0),K.showDetails?(t.openBlock(),t.createBlock(y,{key:1,localDetails:K.localDetails,foreignDetails:K.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):f.selectedOption==="Probables"?(t.openBlock(),t.createElementBlock("div",rde,[t.createElementVNode("div",nde,[t.createVNode(r,{items:k.matchHomeProbables,onInput:k.changeDropdownLocal,backgroundColor:"transparent",height:"25px",color:"rgba(255, 255, 255, 0.7)",arrowColor:"rgba(255, 255, 255, 0.7)",borderColor:"rgba(255, 255, 255, 0.3)",style:{"font-size":"10px"},arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(c=>[t.createElementVNode("div",ade,t.toDisplayString(c.selectedItem.name),1)]),availableItem:t.withCtx(({item:c})=>[t.createElementVNode("div",null,t.toDisplayString(c.name),1)]),_:1},8,["items","onInput"]),ide,t.createElementVNode("img",{src:K.rivalHomeImg,class:"lineup__card-body__img-probables"},null,8,ode)]),t.createElementVNode("div",sde,[t.createElementVNode("img",{src:K.rivalVisitImg,class:"lineup__card-body__img-probables"},null,8,lde),cde,t.createVNode(r,{items:k.matchAwayProbables,onInput:k.changeDropdownVisit,backgroundColor:"transparent",height:"25px",color:"rgba(255, 255, 255, 0.7)",arrowColor:"rgba(255, 255, 255, 0.7)",borderColor:"rgba(255, 255, 255, 0.3)",style:{"font-size":"10px"},arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(c=>[t.createElementVNode("div",ude,t.toDisplayString(c.selectedItem.name),1)]),availableItem:t.withCtx(({item:c})=>[t.createElementVNode("div",null,t.toDisplayString(c.name),1)]),_:1},8,["items","onInput"])])])):f.selectedOption==="Postmatch"?(t.openBlock(),t.createElementBlock("div",dde,[t.createElementVNode("div",hde,t.toDisplayString(K.gameInfoheader.season_name!==void 0?K.gameInfoheader.season_name+" | "+k.remplazarMxJor(K.gameInfoheader.matchday_abbreviation)+" | "+K.gameInfoheader.home_team_abbreviation+" - "+K.gameInfoheader.away_team_abbreviation:""),1),t.createElementVNode("div",{class:"lineup__text-btn-abs",onClick:p[5]||(p[5]=c=>K.showDetails=!K.showDetails)},t.toDisplayString(K.showDetails?"Ocultar detalles":"Ver detalles"),1)])):t.createCommentVNode("",!0),K.showDetails&&(f.selectedOption==="Historicos"||f.selectedOption==="Postmatch")?(t.openBlock(),t.createBlock(y,{key:7,style:{"margin-bottom":"17px"},localDetails:K.localDetails,foreignDetails:K.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0),t.createVNode(g,{class:"lineup__field",players:K.players},null,8,["players"])])],2)}const fde=Yh(zue,[["render",pde],["__scopeId","data-v-1634ade6"]]),mde={name:"PlayerCard",emits:["open-profile"],components:{},props:{data:{type:Object,default:()=>{}},position:{type:String,default:"gsc-position-player"},type:{type:Number,default:1}},data(){return{}},computed:{},methods:{openProfile(e){(e.section!=="Historicos"||e.type==="Postmatch")&&this.$emit("open-profile",e)}},mounted(){}},ib=e=>(t.pushScopeId("data-v-ce649720"),e=e(),t.popScopeId(),e),gde={key:0,class:"gsc-item-player"},yde={class:"gsc-num-player"},vde={class:"gsc-cont-info-by-player"},_de={class:"gsc-cont-info-by-player-row1"},bde={class:"shield-player-cont"},xde=["src"],wde={class:"gsc-cont-info-by-player-row2"},kde={class:"gsc-cont-info-by-player-row2-line-data"},Sde={class:"cont-display-gsc"},Tde=["src"],Cde={class:"gsc-cont-cards"},Ade={key:0,class:"gsc-yellow_card_div"},Ede={key:1,class:"gsc-red_card_div"},Mde={key:2,class:"gsc-yellowred_card_div"},Ide=ib(()=>t.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),Pde={key:5,class:"gsc-goal_card_div_wrapper"},Lde=ib(()=>t.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),Bde={key:1,class:"gsc-item-player"},Ode={class:"gsc-num-player2"},zde={class:"gsc-cont-info-by-player2"},Dde={class:"gsc-cont-info-by-player-row2"},Fde={class:"gsc-cont-info-by-player-row2-line-data"},Nde={class:"gsc-cont-cards2"},Rde={key:0,class:"gsc-yellow_card_div"},Vde={key:1,class:"gsc-red_card_div"},jde={key:2,class:"gsc-yellowred_card_div"},Ude=ib(()=>t.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),$de={key:5,class:"gsc-goal_card_div_wrapper"},Gde=ib(()=>t.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),Hde={class:"cont-display-gsc"},qde=["src"],Wde={class:"gsc-cont-info-by-player-row1"},Zde={class:"shield-player-cont"},Xde=["src"];function Yde(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock(t.Fragment,null,[f.type==1?(t.openBlock(),t.createElementBlock("div",gde,[t.createElementVNode("div",yde,[f.data.shirt<10?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("0")],64)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(f.data.shirt),1)]),t.createElementVNode("div",vde,[t.createElementVNode("div",_de,[t.createElementVNode("div",bde,[t.createElementVNode("img",{class:"gsc-logo-player",src:f.data.img},null,8,xde)])]),t.createElementVNode("div",wde,[t.createElementVNode("div",{class:"gsc-cont-info-by-player-row2-line-name",style:t.normalizeStyle(f.data.section=="Historicos"&&f.data.type!="Postmatch"?"text-decoration: none !important; cursor: default !important":""),onClick:p[0]||(p[0]=w=>k.openProfile({playerId:f.data.playerid,teamId:f.data.teamid,seasonId:f.data.season,section:f.data.section,type:f.data.type}))},t.toDisplayString(f.data.name),5),t.createElementVNode("div",kde,[t.createElementVNode("div",Sde,[t.createElementVNode("img",{class:"gsc-img-country",src:f.data.nation},null,8,Tde),t.createElementVNode("div",{class:t.normalizeClass(f.position)},t.toDisplayString(f.data.position),3)]),t.createElementVNode("div",Cde,[f.data.yellowcard>=1&&f.data.redcard==0?(t.openBlock(),t.createElementBlock("div",Ade)):t.createCommentVNode("",!0),f.data.redcard>=1&&f.data.yellowcard==0?(t.openBlock(),t.createElementBlock("div",Ede)):t.createCommentVNode("",!0),f.data.yellowcard>=1&&f.data.redcard>=1?(t.openBlock(),t.createElementBlock("div",Mde)):t.createCommentVNode("",!0),f.data.yellowcard>=1&&f.data.redcard==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createTextVNode("'"+t.toDisplayString(f.data.yellowcardmin),1)],64)):t.createCommentVNode("",!0),f.data.redcard>=1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[t.createTextVNode("'"+t.toDisplayString(f.data.redcardmin),1)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.data.goalsMin,(w,n)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-goal_card_div_wrapper",key:n},[Ide,t.createElementVNode("div",null,"'"+t.toDisplayString(w),1)]))),128)),f.data.substitutionIn||f.data.substitutionOut?(t.openBlock(),t.createElementBlock("div",Pde,[Lde,t.createElementVNode("div",null,"'"+t.toDisplayString(f.data.substitutionMin),1)])):t.createCommentVNode("",!0)])])])])])):t.createCommentVNode("",!0),f.type==2?(t.openBlock(),t.createElementBlock("div",Bde,[t.createElementVNode("div",Ode,[f.data.shirt<10?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("0")],64)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(f.data.shirt),1)]),t.createElementVNode("div",zde,[t.createElementVNode("div",Dde,[t.createElementVNode("div",{class:"gsc-cont-info-by-player-row2-line-name2",style:t.normalizeStyle(f.data.section=="Historicos"&&f.data.type!="Postmatch"?"text-decoration: none !important; cursor: default !important":""),onClick:p[1]||(p[1]=w=>k.openProfile({playerId:f.data.playerid,teamId:f.data.teamid,seasonId:f.data.season,section:f.data.section,type:f.data.type}))},t.toDisplayString(f.data.name),5),t.createElementVNode("div",Fde,[t.createElementVNode("div",Nde,[f.data.yellowcard>=1&&f.data.redcard==0?(t.openBlock(),t.createElementBlock("div",Rde)):t.createCommentVNode("",!0),f.data.redcard>=1&&f.data.yellowcard==0?(t.openBlock(),t.createElementBlock("div",Vde)):t.createCommentVNode("",!0),f.data.yellowcard>=1&&f.data.redcard>=1?(t.openBlock(),t.createElementBlock("div",jde)):t.createCommentVNode("",!0),f.data.yellowcard>=1&&f.data.redcard==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createTextVNode("'"+t.toDisplayString(f.data.yellowcardmin),1)],64)):t.createCommentVNode("",!0),f.data.redcard>=1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[t.createTextVNode("'"+t.toDisplayString(f.data.redcardmin),1)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.data.goalsMin,(w,n)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-goal_card_div_wrapper",key:n},[Ude,t.createElementVNode("div",null,"'"+t.toDisplayString(w),1)]))),128)),f.data.substitutionIn||f.data.substitutionOut?(t.openBlock(),t.createElementBlock("div",$de,[Gde,t.createElementVNode("div",null,"'"+t.toDisplayString(f.data.substitutionMin),1)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Hde,[t.createElementVNode("div",{class:t.normalizeClass(f.position)},t.toDisplayString(f.data.position),3),t.createElementVNode("img",{class:"gsc-img-country",src:f.data.nation},null,8,qde)])])]),t.createElementVNode("div",Wde,[t.createElementVNode("div",Zde,[t.createElementVNode("img",{class:"gsc-logo-player",src:f.data.img},null,8,Xde)])])])])):t.createCommentVNode("",!0)],64)}const Kde=Yh(mde,[["render",Yde],["__scopeId","data-v-ce649720"]]),e6="/icn-filter.svg",Av="/icn-expand-arrow.svg",JE="/backarrow.svg",QE="/nextarrow.svg",Jde="_selectoritem_1dafy_137",Qde="_selectoritem2_1dafy_157",ehe="_gscheaderlineup_1dafy_177",the="_anNoEstn_1dafy_191",rhe="_groupsLeague_1dafy_197",nhe="_jugadores_1dafy_209",ahe="_switchOption_1dafy_219",ihe="_jugadores1_1dafy_239",ohe="_switchOption1_1dafy_249",she="_switchStatesBig_1dafy_265",lhe="_groupsLeagueParent_1dafy_283",che="_imgHomeTeamIcon_1dafy_301",uhe="_imgHomeTeamWrapper_1dafy_313",dhe="_teamContainer_1dafy_337",hhe="_name_1dafy_361",phe="_homeTeamContainer_1dafy_373",fhe="_div_1dafy_393",mhe="_scoreContainer_1dafy_401",ghe="_scoreContainerWrapper_1dafy_421",yhe="_teamContainer1_1dafy_447",vhe="_awayTeamContainer_1dafy_471",_he="_matchContainer_1dafy_491",bhe="_sliderMatchesChild_1dafy_509",xhe="_manchesterUnited_1dafy_521",whe="_sliderMatchesItem_1dafy_533",khe="_sliderMatches_1dafy_509",She="_sortIcon_1dafy_569",The="_filtros_1dafy_583",Che="_sortParent_1dafy_599",Ahe="_shapeIcon_1dafy_613",Ehe="_btnFilter_1dafy_623",Mhe="_btnFilter1_1dafy_651",Ihe="_btnFilterParent_1dafy_679",Phe="_backArrowIcon_1dafy_695",Lhe="_teamContainer2_1dafy_707",Bhe="_homeTeam_1dafy_373",Ohe="_div4_1dafy_735",zhe="_finalScore_1dafy_745",Dhe="_manchesterUnited1_1dafy_771",Fhe="_scoreContainer1_1dafy_785",Nhe="_match_1dafy_491",Rhe="_manchesterUnited2_1dafy_821",Vhe="_btnDetails_1dafy_831",jhe="_matchContainer1_1dafy_851",Uhe="_goalChild_1dafy_867",$he="_goal_1dafy_867",Ghe="_manchesterUnited3_1dafy_893",Hhe="_minuteEvent_1dafy_907",qhe="_yellowCard_1dafy_921",Whe="_awayTeamEvents_1dafy_935",Zhe="_rectangle_1dafy_949",Xhe="_homeTeamEvents_1dafy_963",Yhe="_totalEvents_1dafy_979",Khe="_headerSeccionAlineaciones1_1dafy_995",Jhe="_switchOption3_1dafy_1017",Qhe="_switchOption4_1dafy_1041",epe="_switchStatesBig1_1dafy_1061",tpe="_manchesterUnited13_1dafy_1075",rpe="_homeTeamContainer1_1dafy_1085",npe="_scoreContainer2_1dafy_1099",ape="_matchContainer2_1dafy_1127",ipe="_manchesterUnited14_1dafy_1147",ope="_sliderMatchesInner_1dafy_1161",spe="_rectangleIcon_1dafy_1181",lpe="_sliderMatches1_1dafy_1201",cpe="_containerData_1dafy_1217",upe="_headerSeccionAlineaciones2_1dafy_1245",dpe="_headerSeccionAlineaciones_1dafy_995",hpe="_headerSeccionAlineaciones21200_1dafy_1293",ppe="_headerSeccionAlineaciones1540_1dafy_1299",fpe="_headerSeccionAlineaciones2540_1dafy_1307",mpe={selectoritem:Jde,selectoritem2:Qde,gscheaderlineup:ehe,anNoEstn:the,groupsLeague:rhe,jugadores:nhe,switchOption:ahe,jugadores1:ihe,switchOption1:ohe,switchStatesBig:she,groupsLeagueParent:lhe,imgHomeTeamIcon:che,imgHomeTeamWrapper:uhe,teamContainer:dhe,name:hhe,homeTeamContainer:phe,div:fhe,scoreContainer:mhe,scoreContainerWrapper:ghe,teamContainer1:yhe,awayTeamContainer:vhe,matchContainer:_he,sliderMatchesChild:bhe,manchesterUnited:xhe,sliderMatchesItem:whe,sliderMatches:khe,sortIcon:She,filtros:The,sortParent:Che,shapeIcon:Ahe,btnFilter:Ehe,btnFilter1:Mhe,btnFilterParent:Ihe,backArrowIcon:Phe,teamContainer2:Lhe,homeTeam:Bhe,div4:Ohe,finalScore:zhe,manchesterUnited1:Dhe,scoreContainer1:Fhe,match:Nhe,manchesterUnited2:Rhe,btnDetails:Vhe,matchContainer1:jhe,goalChild:Uhe,goal:$he,manchesterUnited3:Ghe,minuteEvent:Hhe,yellowCard:qhe,awayTeamEvents:Whe,rectangle:Zhe,homeTeamEvents:Xhe,totalEvents:Yhe,headerSeccionAlineaciones1:Khe,switchOption3:Jhe,switchOption4:Qhe,switchStatesBig1:epe,manchesterUnited13:tpe,homeTeamContainer1:rpe,scoreContainer2:npe,matchContainer2:ape,manchesterUnited14:ipe,sliderMatchesInner:ope,rectangleIcon:spe,sliderMatches1:lpe,containerData:cpe,headerSeccionAlineaciones2:upe,headerSeccionAlineaciones:dpe,headerSeccionAlineaciones21200:hpe,headerSeccionAlineaciones1540:ppe,headerSeccionAlineaciones2540:fpe},gpe={components:{GSCCarousel:ab,GscSwitchComponent:Tv},props:{optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},gameRecientes:{type:Number,default:0},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",{season_id:e.season_id,game_id:e.id})}catch(p){throw new Error(p)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=540?this.$style.headerSeccionAlineaciones2540:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{changeCarouselItem(e){this.$emit("input",{season_id:e.selectedItem.season,game_id:e.selectedItem.game,ht_abrev:e.selectedItem.home_team_abbreviation,at_abrev:e.selectedItem.away_team_abbreviation}),this.selectedOption=e.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},ype=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),vpe=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1),_pe=["src"],bpe=["src"],xpe=["src"],wpe=["src"],kpe=["src"],Spe=["src"];function Tpe(e,p,f,F,K,k){const w=t.resolveComponent("GscSwitchComponent"),n=t.resolveComponent("GSCCarousel");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.gscheaderlineup)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(k.headerSeccionAlineaciones1Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[ype,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),vpe],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[(f.gameInfo.game_status==0||f.gameInfo.game_status==4)&&f.gameRecientes>0?(t.openBlock(),t.createBlock(w,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:f.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:k.clickOnSelectOption},null,8,["selectedOption","onInput"])):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameHistoric[K.selectedOption].objgame.home_team+".png"},null,10,_pe)):t.createCommentVNode("",!0)],2)],2),f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameHistoric[K.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer)},[f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(f.gameHistoric[K.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)}," - ",2),f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(f.gameHistoric[K.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameHistoric[K.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameHistoric[K.selectedOption].objgame.away_team+".png"},null,10,bpe)):t.createCommentVNode("",!0)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches)},[f.gameHistoric.length>0?(t.openBlock(),t.createBlock(n,{key:0,"current-item-index":K.selectedOption,onInput:k.changeCarouselItem,items:f.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:_})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},t.toDisplayString(_.description),3)]),_:1},8,["current-item-index","onInput","items"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:e6},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Av},null,2)],2),t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Jornada",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"2",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Av},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:JE},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(f.gameHistoric[K.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0),f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameHistoric[K.selectedOption].objgame.home_team+".png"},null,10,xpe)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(f.gameHistoric[K.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(f.gameHistoric[K.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[f.teamActive=="home"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameHistoric[K.selectedOption].objgame.away_team+".png"},null,10,wpe)):t.createCommentVNode("",!0),f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(f.gameHistoric[K.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:QE},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(k.headerSeccionAlineaciones2Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig1),id:"switch-lineup"},[(f.gameInfo.game_status==0||f.gameInfo.game_status==4)&&f.gameRecientes>0?(t.openBlock(),t.createBlock(w,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:f.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:k.clickOnSelectOption},null,8,["selectedOption","onInput"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited13)},"Alineación utilizada en: ",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameHistoric[K.selectedOption].objgame.home_team+".png"},null,10,kpe)):t.createCommentVNode("",!0)],2)],2),f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameHistoric[K.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer2)},[f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(f.gameHistoric[K.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(f.gameHistoric[K.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameHistoric[K.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[f.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameHistoric[K.selectedOption].objgame.away_team+".png"},null,10,Spe)):t.createCommentVNode("",!0)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches1)},[f.gameHistoric.length>0?(t.openBlock(),t.createBlock(n,{key:0,"current-item-index":K.selectedOption,onInput:k.changeCarouselItem,items:f.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:_})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem2)},t.toDisplayString(_.description),3)]),_:1},8,["current-item-index","onInput","items"])):t.createCommentVNode("",!0)],2)],2)],2)],2)],2)}const Cpe={$style:mpe},Ape=Yh(gpe,[["render",Tpe],["__cssModules",Cpe]]),ob=e=>(t.pushScopeId("data-v-2118a6cd"),e=e(),t.popScopeId(),e),Epe=t.createStaticVNode('<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-2118a6cd><g id="vuesax/outline/sort" data-v-2118a6cd><g id="sort" data-v-2118a6cd><path id="Vector" opacity="0.7" d="M15.75 5.8125H2.25C1.9425 5.8125 1.6875 5.5575 1.6875 5.25C1.6875 4.9425 1.9425 4.6875 2.25 4.6875H15.75C16.0575 4.6875 16.3125 4.9425 16.3125 5.25C16.3125 5.5575 16.0575 5.8125 15.75 5.8125Z" fill="white" data-v-2118a6cd></path><path id="Vector_2" opacity="0.7" d="M13.5 9.5625H4.5C4.1925 9.5625 3.9375 9.3075 3.9375 9C3.9375 8.6925 4.1925 8.4375 4.5 8.4375H13.5C13.8075 8.4375 14.0625 8.6925 14.0625 9C14.0625 9.3075 13.8075 9.5625 13.5 9.5625Z" fill="white" data-v-2118a6cd></path><path id="Vector_3" opacity="0.7" d="M10.5 13.3125H7.5C7.1925 13.3125 6.9375 13.0575 6.9375 12.75C6.9375 12.4425 7.1925 12.1875 7.5 12.1875H10.5C10.8075 12.1875 11.0625 12.4425 11.0625 12.75C11.0625 13.0575 10.8075 13.3125 10.5 13.3125Z" fill="white" data-v-2118a6cd></path></g></g></svg>',1),Mpe=["value"],Ipe=ob(()=>t.createElementVNode("svg",{width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[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:"#92929D"})],-1)),Ppe={class:"filter-modal__padding"},Lpe={class:"filter-modal__content-header"},Bpe=ob(()=>t.createElementVNode("h3",null,"Jugando como:",-1)),Ope={class:"filter-modal__content-options"},zpe=["onClick"],Dpe={class:"filter-modal__content-header"},Fpe=ob(()=>t.createElementVNode("h3",null,"Resultados:",-1)),Npe={class:"filter-modal__content-options"},Rpe=["onClick"],Vpe=ob(()=>t.createElementVNode("hr",{style:{"border-color":"#FFFFFF33"}},null,-1)),jpe={__name:"gsc-filter",props:{name:{type:String,default:""},zIndex:{type:Number,default:1},showButton:{type:Boolean,default:!1},marginModal:{type:String,default:"0px"},isOpen:{type:Boolean,default:!1},reset:{type:Boolean,default:!1},itemSelect:{type:Object,default:()=>{}},componentWidth:{type:Number,default:768,validator(e){return e>0}}},emits:["update:model-value","change"],setup(e,{emit:p}){const f=e;t.useCssVars(d=>({d00c78a6:e.marginModal}));const F=[{id:"local",name:"Local"},{id:"visit",name:"Visitante"}],K=[{id:"win",name:"Ganado"},{id:"draw",name:"Empatados"},{id:"lose",name:"Perdidos"}],k=t.ref(null),w=t.ref(["local","visit"]),n=t.ref(["win","draw","lose"]),_=t.ref(!0),h=t.ref(!0),r=t.ref(!0),b=t.ref(!0),y=t.ref(["local","visit"]),g=t.ref(["win","draw","lose"]),c=()=>{k.value.focus(),w.value=JSON.parse(JSON.stringify(y.value)),n.value=JSON.parse(JSON.stringify(g.value)),_.value=r.value,h.value=b.value};t.watch(()=>f.itemSelect,d=>{d&&(y.value=d.selectedFilterTeam,g.value=d.selectedFilterResults)}),t.watch(()=>f.reset,d=>{d&&i()});const a=(d,m)=>{let v;m==="team"?v=y.value:v=g.value;const T=v.findIndex(A=>A===d);T==-1?v.push(d):m=="team"&&y.value.length==2?v.splice(T,1):(m=="team"&&v.push(d),g.value.length>1&&v.splice(T,1)),r.value=y.value.length==2,b.value=g.value.length==3},i=()=>{y.value=["local","visit"],g.value=["win","draw","lose"],r.value=!0,b.value=!0,p("change",{selectedFilterTeam:y.value,selectedFilterResults:g.value})},u=()=>{p("change",{selectedFilterTeam:y.value,selectedFilterResults:g.value})},s=()=>{p("change",{selectedFilterTeam:y.value,selectedFilterResults:g.value})};return(d,m)=>(t.openBlock(),t.createElementBlock("div",{class:"filter-modal",style:t.normalizeStyle({zIndex:e.zIndex})},[e.showButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"filter-modal__input",onClick:c},[Epe,t.createElementVNode("input",{type:"text",value:e.name,readonly:""},null,8,Mpe),Ipe])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["filter-modal__content",e.isOpen?"open":"close"]),tabindex:"0",ref_key:"filterElement",ref:k,onFocusout:m[4]||(m[4]=v=>{e.isOpen=!1,s()})},[t.createElementVNode("div",Ppe,[t.createElementVNode("div",Lpe,[Bpe,t.createVNode(rb,{modelValue:r.value,"onUpdate:modelValue":[m[0]||(m[0]=v=>r.value=v),m[1]||(m[1]=v=>v&&(y.value=["local","visit"]))],label:"Todos"},null,8,["modelValue"])]),t.createElementVNode("ul",Ope,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(F,v=>t.createElementVNode("li",{onClick:T=>a(v.id,"team"),class:t.normalizeClass({active:y.value.includes(v.id)})},t.toDisplayString(v.name),11,zpe)),64))]),t.createElementVNode("div",Dpe,[Fpe,t.createVNode(rb,{modelValue:b.value,"onUpdate:modelValue":[m[2]||(m[2]=v=>b.value=v),m[3]||(m[3]=v=>v&&(g.value=["win","lose","draw"]))],label:"Todos"},null,8,["modelValue"])]),t.createElementVNode("ul",Npe,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(K,v=>t.createElementVNode("li",{onClick:T=>a(v.id,"player"),class:t.normalizeClass({active:g.value.includes(v.id)})},t.toDisplayString(v.name),11,Rpe)),64))])]),Vpe,t.createElementVNode("div",{class:"filter-modal__buttons"},[t.createElementVNode("div",{class:"button filter-modal__text-btn",onClick:i},"Quitar filtros"),t.createElementVNode("div",{class:"button filter-modal__outline-btn",onClick:u},"Listo")])],34)],4))}},Upe=Yh(jpe,[["__scopeId","data-v-2118a6cd"]]),$pe="/icn-filter1.svg",Gpe="/icn-expand-arrow1.svg",Hpe="/icn-filter2.svg",qpe="/icn-arrow-expand.svg",Wpe="_containernofoundsearchrecientes_1gxk5_159",Zpe="_btndeletefilters_1gxk5_215",Xpe="_leyenddeleteshow_1gxk5_247",Ype="_selectoritem_1gxk5_261",Kpe="_anNoEstn_1gxk5_279",Jpe="_groupsLeague_1gxk5_287",Qpe="_historicas_1gxk5_297",efe="_switchOption_1gxk5_309",tfe="_recientes_1gxk5_331",rfe="_switchOption1_1gxk5_343",nfe="_switchOption2_1gxk5_369",afe="_switchStatesBig_1gxk5_387",ife="_groupsLeagueParent_1gxk5_407",ofe="_imgHomeTeamIcon_1gxk5_427",sfe="_imgHomeTeamWrapper_1gxk5_441",lfe="_teamContainer_1gxk5_467",cfe="_name_1gxk5_493",ufe="_homeTeamContainer_1gxk5_507",dfe="_div_1gxk5_529",hfe="_scoreContainer_1gxk5_539",pfe="_scoreContainerWrapper_1gxk5_561",ffe="_teamContainer1_1gxk5_587",mfe="_awayTeamContainer_1gxk5_613",gfe="_matchContainer_1gxk5_635",yfe="_sliderMatchesChild_1gxk5_655",vfe="_manchesterUnited_1gxk5_669",_fe="_sliderMatchesItem_1gxk5_683",bfe="_sliderMatches_1gxk5_655",xfe="_sortIcon_1gxk5_719",wfe="_filtros_1gxk5_735",kfe="_sortParent_1gxk5_753",Sfe="_shapeIcon_1gxk5_769",Tfe="_btnFilter_1gxk5_781",Cfe="_btnFilter1_1gxk5_813",Afe="_btnFilterParent_1gxk5_843",Efe="_backArrowIcon_1gxk5_861",Mfe="_teamContainer2_1gxk5_875",Ife="_homeTeam_1gxk5_507",Pfe="_div4_1gxk5_907",Lfe="_finalScore_1gxk5_919",Bfe="_manchesterUnited1_1gxk5_947",Ofe="_scoreContainer1_1gxk5_963",zfe="_match_1gxk5_635",Dfe="_manchesterUnited2_1gxk5_997",Ffe="_btnDetails_1gxk5_1023",Nfe="_matchContainer1_1gxk5_1047",Rfe="_goalChild_1gxk5_1065",Vfe="_goal_1gxk5_1065",jfe="_manchesterUnited3_1gxk5_1095",Ufe="_minuteEvent_1gxk5_1111",$fe="_yellowCard_1gxk5_1127",Gfe="_awayTeamEvents_1gxk5_1143",Hfe="_rectangle_1gxk5_1159",qfe="_homeTeamEvents_1gxk5_1175",Wfe="_totalEvents_1gxk5_1193",Zfe="_headerSeccionAlineaciones1_1gxk5_1211",Xfe="_sliderMatchesInner_1gxk5_1233",Yfe="_btnFilter2_1gxk5_1247",Kfe="_btnDetails1_1gxk5_1281",Jfe="_matchContainer3_1gxk5_1299",Qfe="_backArrowIcon1_1gxk5_1321",eme="_match1_1gxk5_1335",tme="_headerSeccionAlineaciones2_1gxk5_1347",rme="_jugadores2_1gxk5_1369",nme="_switchOption6_1gxk5_1383",ame="_switchOption7_1gxk5_1405",ime="_switchStatesBig2_1gxk5_1431",ome="_manchesterUnited26_1gxk5_1447",sme="_homeTeamContainer2_1gxk5_1459",lme="_vectorIcon_1gxk5_1475",cme="_teamSwitch_1gxk5_1487",ume="_matchContainer5_1gxk5_1513",dme="_manchesterUnited27_1gxk5_1535",hme="_sliderMatchesChild1_1gxk5_1551",pme="_sliderMatchesChild2_1gxk5_1573",fme="_sliderMatches2_1gxk5_1595",mme="_filtros2_1gxk5_1615",gme="_btnFilter4_1gxk5_1635",yme="_jornada2_1gxk5_1667",vme="_filterMatchday_1gxk5_1681",_me="_btnDetails2_1gxk5_1703",bme="_filtersContainer_1gxk5_1725",xme="_matchContainer6_1gxk5_1745",wme="_matchDetailContainer_1gxk5_1763",kme="_containerData_1gxk5_1783",Sme="_headerSeccionAlineaciones3_1gxk5_1813",Tme="_headerSeccionAlineaciones_1gxk5_1211",Cme="_headerSeccionAlineaciones31200_1gxk5_1865",Ame="_headerSeccionAlineaciones3420_1gxk5_1891",Eme="_headerSeccionAlineaciones3880_1gxk5_1917",Mme="_headerSeccionAlineaciones3540_1gxk5_1941",Ime="_headerSeccionAlineaciones11200_1gxk5_1967",Pme="_headerSeccionAlineaciones1420_1gxk5_1995",Lme="_headerSeccionAlineaciones1880_1gxk5_2017",Bme="_headerSeccionAlineaciones21200_1gxk5_2039",Ome="_headerSeccionAlineaciones2420_1gxk5_2067",zme="_headerSeccionAlineaciones2880_1gxk5_2091",Dme="_headerSeccionAlineaciones2540_1gxk5_2113",Fme={containernofoundsearchrecientes:Wpe,"text-containernofoundsearchrecientes":"_text-containernofoundsearchrecientes_1gxk5_171","btn-delete-filters":"_btn-delete-filters_1gxk5_183",btndeletefilters:Zpe,leyenddeleteshow:Xpe,selectoritem:Ype,anNoEstn:Kpe,groupsLeague:Jpe,historicas:Qpe,switchOption:efe,recientes:tfe,switchOption1:rfe,switchOption2:nfe,switchStatesBig:afe,groupsLeagueParent:ife,imgHomeTeamIcon:ofe,imgHomeTeamWrapper:sfe,teamContainer:lfe,name:cfe,homeTeamContainer:ufe,div:dfe,scoreContainer:hfe,scoreContainerWrapper:pfe,teamContainer1:ffe,awayTeamContainer:mfe,matchContainer:gfe,sliderMatchesChild:yfe,manchesterUnited:vfe,sliderMatchesItem:_fe,sliderMatches:bfe,sortIcon:xfe,filtros:wfe,sortParent:kfe,shapeIcon:Sfe,btnFilter:Tfe,btnFilter1:Cfe,btnFilterParent:Afe,backArrowIcon:Efe,teamContainer2:Mfe,homeTeam:Ife,div4:Pfe,finalScore:Lfe,manchesterUnited1:Bfe,scoreContainer1:Ofe,match:zfe,manchesterUnited2:Dfe,btnDetails:Ffe,matchContainer1:Nfe,goalChild:Rfe,goal:Vfe,manchesterUnited3:jfe,minuteEvent:Ufe,yellowCard:$fe,awayTeamEvents:Gfe,rectangle:Hfe,homeTeamEvents:qfe,totalEvents:Wfe,headerSeccionAlineaciones1:Zfe,sliderMatchesInner:Xfe,btnFilter2:Yfe,btnDetails1:Kfe,matchContainer3:Jfe,backArrowIcon1:Qfe,match1:eme,headerSeccionAlineaciones2:tme,jugadores2:rme,switchOption6:nme,switchOption7:ame,switchStatesBig2:ime,manchesterUnited26:ome,homeTeamContainer2:sme,vectorIcon:lme,teamSwitch:cme,matchContainer5:ume,manchesterUnited27:dme,sliderMatchesChild1:hme,sliderMatchesChild2:pme,sliderMatches2:fme,filtros2:mme,btnFilter4:gme,jornada2:yme,filterMatchday:vme,btnDetails2:_me,filtersContainer:bme,matchContainer6:xme,matchDetailContainer:wme,containerData:kme,headerSeccionAlineaciones3:Sme,headerSeccionAlineaciones:Tme,headerSeccionAlineaciones31200:Cme,headerSeccionAlineaciones3420:Ame,headerSeccionAlineaciones3880:Eme,headerSeccionAlineaciones3540:Mme,headerSeccionAlineaciones11200:Ime,headerSeccionAlineaciones1420:Pme,headerSeccionAlineaciones1880:Lme,headerSeccionAlineaciones21200:Bme,headerSeccionAlineaciones2420:Ome,headerSeccionAlineaciones2880:zme,headerSeccionAlineaciones2540:Dme},Nme={components:{GSCCarousel:ab,GscSwitchComponent:Tv,GSCDropdown:Q4,GSCFilter:Upe,GSCSwitchRadio:NE,GSCMatchDetails:jE},props:{widthSize:{type:Number,default:0},optionSelected:{type:String,default:"Historicos"},selectedOption:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},watch:{optionSelected:{immediate:!0,handler:async function(e){e=="Recientes"&&(this.auxISsection=1)}},gameInfo:{immediate:!0,handler:async function(e){try{this.teamSelect=e.home_team_abbreviation,this.matchFilter()}catch(p){throw new Error(p)}}},gameRecientes:{immediate:!0,handler:async function(e){this.matchFilter()}}},data(){return{playminutes:[],showDetails:!1,teamSelect:"",defaultDropItem:{},updateCarouselGames:0,valLast:{},selectedIndexOption:0,openfiltervalue:!1,vDeleteFilter:!1,filterObject:{},coutChange:0,auxISsection:0,matchdaysFiltersUpdate:[],gamesFiltersUpdate:[],localDetails:[],keyUpdate:0,foreignDetails:[]}},computed:{matchdaysFinal(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==1&&e.push(this.matchdaysFiltersUpdate[p]);for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==3&&e.push(this.matchdaysFiltersUpdate[p])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==1&&e.push(this.matchdaysFiltersUpdate[p]);for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==2&&e.push(this.matchdaysFiltersUpdate[p])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==3&&e.push(this.matchdaysFiltersUpdate[p]);for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==2&&e.push(this.matchdaysFiltersUpdate[p])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==1&&e.push(this.matchdaysFiltersUpdate[p]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==2&&e.push(this.matchdaysFiltersUpdate[p]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)this.matchdaysFiltersUpdate[p].match_result==3&&e.push(this.matchdaysFiltersUpdate[p])}else for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)e.push(this.matchdaysFiltersUpdate[p]);else for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)e.push(this.matchdaysFiltersUpdate[p]);return e.sort((p,f)=>f.id-p.id),e},gameRecientesFilter(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let p=0;p<this.gamesFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==1||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==1)&&e.push(this.gamesFiltersUpdate[p]);for(let p=0;p<this.gamesFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==3||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==3)&&e.push(this.gamesFiltersUpdate[p])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let p=0;p<this.gamesFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==1||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==1)&&e.push(this.gamesFiltersUpdate[p]);for(let p=0;p<this.gamesFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==2||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==2)&&e.push(this.gamesFiltersUpdate[p])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let p=0;p<this.gamesFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==3||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==3)&&e.push(this.gamesFiltersUpdate[p]);for(let p=0;p<this.gamesFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==2||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==2)&&e.push(this.gamesFiltersUpdate[p])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==1||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==1)&&e.push(this.gamesFiltersUpdate[p]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==2||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==2)&&e.push(this.gamesFiltersUpdate[p]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let p=0;p<this.matchdaysFiltersUpdate.length;p++)(this.gamesFiltersUpdate[p].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].visiting_match_result==3||this.gamesFiltersUpdate[p].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[p].home_match_result==3)&&e.push(this.gamesFiltersUpdate[p])}else for(let p=0;p<this.gamesFiltersUpdate.length;p++)e.push(this.gamesFiltersUpdate[p]);else for(let p=0;p<this.gamesFiltersUpdate.length;p++)e.push(this.gamesFiltersUpdate[p]);return e.sort((p,f)=>p.matchday_id-f.matchday_id),e},headerSeccionAlineaciones1Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones1420:e<=880?this.$style.headerSeccionAlineaciones1880:e<=1200?this.$style.headerSeccionAlineaciones11200:this.$style.headerSeccionAlineaciones1},headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones2420:e<=540?this.$style.headerSeccionAlineaciones2540:e<=880?this.$style.headerSeccionAlineaciones2880:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones3Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones3420:e<=540?this.$style.headerSeccionAlineaciones3540:e<=880?this.$style.headerSeccionAlineaciones3880:e<=1200?this.$style.headerSeccionAlineaciones31200:this.$style.headerSeccionAlineaciones3}},methods:{clickOnValueFilter(){this.auxISsection=0},clickOnValueCarrousel(){this.auxISsection=0},deleteFilters(){this.vDeleteFilter=!0,setTimeout(()=>{this.vDeleteFilter=!1},200)},clickShowDetails(){this.showDetails=!this.showDetails},matchFilter(){var e=[],p=[];if(Object.keys(this.filterObject).length>0){if(Object.keys(this.filterObject.selectedFilterTeam).length!=2)for(let f=0;f<this.gameRecientes[this.teamSelect].length;f++)this.filterObject.selectedFilterTeam[0]=="local"?this.gameRecientes[this.teamSelect][f].home_team_abbreviation==this.teamSelect&&(e.push({name:this.gameRecientes[this.teamSelect][f].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][f].matchday_id,match_result:this.gameRecientes[this.teamSelect][f].home_match_result}),p.push(this.gameRecientes[this.teamSelect][f])):this.gameRecientes[this.teamSelect][f].away_team_abbreviation==this.teamSelect&&(e.push({name:this.gameRecientes[this.teamSelect][f].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][f].matchday_id,match_result:this.gameRecientes[this.teamSelect][f].visiting_match_result}),p.push(this.gameRecientes[this.teamSelect][f]));else if(this.gameRecientes[this.teamSelect])for(let f=0;f<this.gameRecientes[this.teamSelect].length;f++)e.push({name:this.gameRecientes[this.teamSelect][f].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][f].matchday_id,match_result:this.gameRecientes[this.teamSelect][f].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][f].home_match_result:this.gameRecientes[this.teamSelect][f].visiting_match_result}),p.push(this.gameRecientes[this.teamSelect][f])}else if(this.gameRecientes[this.teamSelect])for(let f=0;f<this.gameRecientes[this.teamSelect].length;f++)e.push({name:this.getRound(this.gameRecientes[this.teamSelect][f].matchday_abbreviation),id:this.gameRecientes[this.teamSelect][f].matchday_id,match_result:this.gameRecientes[this.teamSelect][f].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][f].home_match_result:this.gameRecientes[this.teamSelect][f].visiting_match_result}),p.push(this.gameRecientes[this.teamSelect][f]);this.gamesFiltersUpdate=p,this.matchdaysFiltersUpdate=e},getRound(e){let p=e.replace("M","Jornada ");return p=p.replace("PO1","CFI"),p=p.replace("PO2","CFV"),p=p.replace("PO3","SFI"),p=p.replace("PO4","SFV"),p=p.replace("PO5","FI"),p=p.replace("PO6","FV"),p},changeFiltersModal(e){this.auxISsection=1,this.filterObject=e,this.openfiltervalue=!1,this.matchFilter(),setTimeout(()=>{this.keyUpdate+=1,this.updateCarouselGames+=1},600)},openFilter(){this.openfiltervalue=!0},getMinutesData(e){this.localDetails=[],this.foreignDetails=[];for(let p=0;p<e.home_goals_minutes.length;p++)this.localDetails.push({description:e.home_goals_minutes[p],icon:"goal"});for(let p=0;p<e.visiting_goals_minutes.length;p++)this.foreignDetails.push({description:e.visiting_goals_minutes[p],icon:"goal"});for(let p=0;p<e.home_yellow_cards_minutes.length;p++)this.localDetails.push({description:e.home_yellow_cards_minutes[p],icon:"yellow-card"});for(let p=0;p<e.away_yellow_cards_minutes.length;p++)this.foreignDetails.push({description:e.away_yellow_cards_minutes[p],icon:"yellow-card"});for(let p=0;p<e.home_red_cards_minutes.length;p++)this.localDetails.push({description:e.home_red_cards_minutes[p],icon:"red-card"});for(let p=0;p<e.away_red_cards_minutes.length;p++)this.foreignDetails.push({description:e.away_red_cards_minutes[p],icon:"red-card"})},changeCarouselItem(e){setTimeout(()=>{JSON.stringify(e)!==JSON.stringify(this.valLast)&&this.gameRecientesFilter&&this.gameRecientesFilter.length>0&&e&&(e.selectedItem===void 0&&(e.selectedItem=this.gameRecientesFilter[this.gameRecientesFilter.length-1],e.selectedItemIndex=this.gameRecientesFilter.length-1),this.valLast=e,this.auxISsection==1?(this.$emit("input",{selectedItem:this.gameRecientesFilter[this.gameRecientesFilter.length-1],selectedItemIndex:this.gameRecientesFilter.length-1}),this.getMinutesData(this.gameRecientesFilter[this.gameRecientesFilter.length-1].minutes),this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id}):(this.$emit("input",e),this.getMinutesData(e.selectedItem.minutes),this.selectedIndexOption=e.selectedItemIndex,this.defaultDropItem={propName:"id",value:e.selectedItem.matchday_id}),this.keyUpdate+=1)},200)},changeDropdown(e){if(this.gameRecientesFilter&&this.gameRecientesFilter.length>0)if(this.auxISsection==1)this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id};else{const p=this.gameRecientesFilter.findIndex(f=>f.matchday_id==e.id);p!=-1&&(this.selectedIndexOption=p,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[p].matchday_id})}},changeSwitchRadio(e){this.auxISsection=1,typeof e!="object"&&(this.teamSelect=e,this.$emit("changeTeam",this.teamSelect),this.updateCarouselGames+=1,this.matchFilter())},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},Rme=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),Vme=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),jme=["src"],Ume=["src"],$me={class:"selector-tournaments"},Gme=["src"],Hme=["src"],qme={key:1},Wme=t.createElementVNode("br",null,null,-1),Zme=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),Xme=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),Yme=["src"],Kme=["src"],Jme={class:"selector-tournaments"},Qme=["src"],e0e=["src"],t0e={key:1},r0e=t.createElementVNode("br",null,null,-1),n0e=["src"],a0e=["src"],i0e={class:"selector-tournaments"},o0e=["src"],s0e=["src"],l0e={key:1},c0e=t.createElementVNode("br",null,null,-1);function u0e(e,p,f,F,K,k){const w=t.resolveComponent("GscSwitchComponent"),n=t.resolveComponent("GSCSwitchRadio"),_=t.resolveComponent("GSCFilter"),h=t.resolveComponent("GSCDropdown"),r=t.resolveComponent("GSCCarousel"),b=t.resolveComponent("GSCMatchDetails");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(k.headerSeccionAlineaciones1Class),id:"header-desktop-full"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[Rme,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),Vme],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(w,{buttons:["Historicos","Recientes","Probables"],selectedOption:f.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:k.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.home_team+".png"},null,10,jme)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(n,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":f.gameInfo.home_team_abbreviation,onChange:k.changeSwitchRadio,"text-option-right":f.gameInfo.away_team_abbreviation,"font-color":"white","value-default":K.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.away_team+".png"},null,10,Ume)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:p[0]||(p[0]=(...y)=>k.openFilter&&k.openFilter(...y))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:e6},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Av},null,2),t.createVNode(_,{"item-select":K.filterObject,"is-open":K.openfiltervalue,onChange:k.changeFiltersModal,reset:K.vDeleteFilter,"margin-modal":"-83px"},null,8,["item-select","is-open","onChange","reset"])],2),k.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{onClick:k.clickOnValueFilter,key:K.keyUpdate,"default-item-by-prop":K.defaultDropItem,class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters",items:k.matchdaysFinal,onInput:k.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(y=>[t.createElementVNode("div",$me,t.toDisplayString(y.selectedItem.name),1)]),availableItem:t.withCtx(({item:y})=>[t.createElementVNode("div",null,t.toDisplayString(y.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[k.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(r,{onClick:k.clickOnValueCarrousel,key:K.updateCarouselGames,"default-item-by-index":K.selectedIndexOption,items:k.gameRecientesFilter,onInput:k.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:y})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.home_team+".png"},null,10,Gme)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(y.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(y.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(y.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[y.home_team_abbreviation==K.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),y.away_team_abbreviation==K.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.away_team+".png"},null,10,Hme),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["onClick","default-item-by-index","items","onInput"])):(t.openBlock(),t.createElementBlock("div",qme,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[t.createTextVNode("No hay resultados con los criterios"),Wme,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:p[1]||(p[1]=(...y)=>k.deleteFilters&&k.deleteFilters(...y))},"Eliminar filtros aplicados",2)],2)])),K.showDetails?(t.openBlock(),t.createBlock(b,{key:2,style:{"margin-top":"30px"},localDetails:K.localDetails,foreignDetails:K.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:p[2]||(p[2]=(...y)=>k.clickShowDetails&&k.clickShowDetails(...y))},[K.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(k.headerSeccionAlineaciones2Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[Zme,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),Xme],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(w,{buttons:["Historicos","Recientes","Probables"],selectedOption:f.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:k.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.home_team+".png"},null,10,Yme)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(n,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":f.gameInfo.home_team_abbreviation,onChange:k.changeSwitchRadio,"text-option-right":f.gameInfo.away_team_abbreviation,"font-color":"white","value-default":K.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.away_team+".png"},null,10,Kme)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer3)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter2),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:p[3]||(p[3]=(...y)=>k.openFilter&&k.openFilter(...y))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:$pe},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Gpe},null,2),t.createVNode(_,{"item-select":K.filterObject,"is-open":K.openfiltervalue,onChange:k.changeFiltersModal,"margin-modal":"-99px"},null,8,["item-select","is-open","onChange"])],2),k.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{onClick:k.clickOnValueFilter,key:K.keyUpdate,"default-item-by-prop":K.defaultDropItem,class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters",items:k.matchdaysFinal,onInput:k.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(y=>[t.createElementVNode("div",Jme,t.toDisplayString(y.selectedItem.name),1)]),availableItem:t.withCtx(({item:y})=>[t.createElementVNode("div",null,t.toDisplayString(y.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:p[4]||(p[4]=(...y)=>k.clickShowDetails&&k.clickShowDetails(...y))},[K.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.match1)},[k.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(r,{items:k.gameRecientesFilter,key:K.updateCarouselGames,"default-item-by-index":K.selectedIndexOption,onInput:k.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:y})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.home_team+".png"},null,10,Qme)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(y.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(y.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(y.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[y.home_team_abbreviation==K.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),y.away_team_abbreviation==K.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.away_team+".png"},null,10,e0e),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","default-item-by-index","onInput"])):(t.openBlock(),t.createElementBlock("div",t0e,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[t.createTextVNode("No hay resultados con los criterios"),r0e,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:p[5]||(p[5]=(...y)=>k.deleteFilters&&k.deleteFilters(...y))},"Eliminar filtros aplicados",2)],2)])),K.showDetails?(t.openBlock(),t.createBlock(b,{key:2,style:{"margin-top":"30px"},localDetails:K.localDetails,foreignDetails:K.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(k.headerSeccionAlineaciones3Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig2),id:"switch-lineup"},[t.createVNode(w,{buttons:["Historicos","Recientes","Probables"],selectedOption:f.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:k.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited26)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer5),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.home_team+".png"},null,10,n0e)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(n,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":f.gameInfo.home_team_abbreviation,onChange:k.changeSwitchRadio,"text-option-right":f.gameInfo.away_team_abbreviation,"font-color":"white","value-default":K.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.away_team+".png"},null,10,a0e)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtersContainer)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter4),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:p[6]||(p[6]=(...y)=>k.openFilter&&k.openFilter(...y))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:Hpe},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros2)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:qpe},null,2),t.createVNode(_,{"item-select":K.filterObject,"is-open":K.openfiltervalue,onChange:k.changeFiltersModal,"margin-modal":"-75px"},null,8,["item-select","is-open","onChange"])],2),k.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{onClick:k.clickOnValueFilter,key:K.keyUpdate,"default-item-by-prop":K.defaultDropItem,class:t.normalizeClass(e.$style.filterMatchday),id:"menu-matchday",items:k.matchdaysFinal,onInput:k.changeDropdown,height:"25px",width:"100px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(y=>[t.createElementVNode("div",i0e,t.toDisplayString(y.selectedItem.name),1)]),availableItem:t.withCtx(({item:y})=>[t.createElementVNode("div",null,t.toDisplayString(y.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:p[7]||(p[7]=(...y)=>k.clickShowDetails&&k.clickShowDetails(...y))},[K.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchDetailContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer6),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[k.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(r,{key:K.updateCarouselGames,"default-item-by-index":K.selectedIndexOption,items:k.gameRecientesFilter,onInput:k.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:y})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.home_team+".png"},null,10,o0e)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(y.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(y.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(y.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[y.home_team_abbreviation==K.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),y.away_team_abbreviation==K.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+y.away_team+".png"},null,10,s0e),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["default-item-by-index","items","onInput"])):(t.openBlock(),t.createElementBlock("div",l0e,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[t.createTextVNode("No hay resultados con los criterios"),c0e,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:p[8]||(p[8]=(...y)=>k.deleteFilters&&k.deleteFilters(...y))},"Eliminar filtros aplicados",2)],2)])),K.showDetails?(t.openBlock(),t.createBlock(b,{key:2,style:{"margin-top":"30px"},localDetails:K.localDetails,foreignDetails:K.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2)],2)],2)],2)],2)],2)}const d0e={$style:Fme},h0e=Yh(Nme,[["render",u0e],["__cssModules",d0e]]),p0e="_selectoritem_16hc8_179",f0e="_selectoritem2_16hc8_199",m0e="_gscheaderlineup_16hc8_219",g0e="_anNoEstn_16hc8_233",y0e="_groupsLeague_16hc8_239",v0e="_jugadores_16hc8_249",_0e="_switchOption_16hc8_259",b0e="_jugadores1_16hc8_279",x0e="_switchOption1_16hc8_289",w0e="_switchStatesBig_16hc8_305",k0e="_groupsLeagueParent_16hc8_323",S0e="_imgHomeTeamIcon_16hc8_341",T0e="_imgHomeTeamWrapper_16hc8_353",C0e="_teamContainer_16hc8_377",A0e="_name_16hc8_401",E0e="_homeTeamContainer_16hc8_413",M0e="_div_16hc8_433",I0e="_titleSession_16hc8_441",P0e="_scoreContainer_16hc8_461",L0e="_scoreContainerWrapper_16hc8_481",B0e="_teamContainer1_16hc8_505",O0e="_awayTeamContainer_16hc8_529",z0e="_matchContainer_16hc8_549",D0e="_sliderMatchesChild_16hc8_567",F0e="_manchesterUnited_16hc8_579",N0e="_sliderMatchesItem_16hc8_591",R0e="_sliderMatches_16hc8_567",V0e="_sortIcon_16hc8_627",j0e="_filtros_16hc8_641",U0e="_sortParent_16hc8_657",$0e="_shapeIcon_16hc8_671",G0e="_btnFilter_16hc8_681",H0e="_btnFilter1_16hc8_709",q0e="_btnFilterParent_16hc8_737",W0e="_backArrowIcon_16hc8_753",Z0e="_teamContainer2_16hc8_765",X0e="_homeTeam_16hc8_413",Y0e="_div4_16hc8_793",K0e="_finalScore_16hc8_803",J0e="_manchesterUnited1_16hc8_829",Q0e="_scoreContainer1_16hc8_843",ege="_match_16hc8_549",tge="_manchesterUnited2_16hc8_879",rge="_btnDetails_16hc8_889",nge="_matchContainer1_16hc8_909",age="_goalChild_16hc8_925",ige="_goal_16hc8_925",oge="_manchesterUnited3_16hc8_951",sge="_minuteEvent_16hc8_965",lge="_yellowCard_16hc8_979",cge="_awayTeamEvents_16hc8_993",uge="_rectangle_16hc8_1007",dge="_homeTeamEvents_16hc8_1021",hge="_totalEvents_16hc8_1037",pge="_headerSeccionAlineaciones1_16hc8_1053",fge="_switchOption3_16hc8_1075",mge="_switchOption4_16hc8_1099",gge="_switchStatesBig1_16hc8_1119",yge="_manchesterUnited13_16hc8_1133",vge="_homeTeamContainer1_16hc8_1143",_ge="_scoreContainer2_16hc8_1157",bge="_matchContainer2_16hc8_1185",xge="_manchesterUnited14_16hc8_1205",wge="_sliderMatchesInner_16hc8_1219",kge="_rectangleIcon_16hc8_1239",Sge="_sliderMatches1_16hc8_1259",Tge="_containerData_16hc8_1275",Cge="_headerSeccionAlineaciones2_16hc8_1303",Age="_headerSeccionAlineaciones_16hc8_1053",Ege="_headerSeccionAlineaciones21200_16hc8_1351",Mge="_headerSeccionAlineaciones1540_16hc8_1357",Ige="_headerSeccionAlineaciones2540_16hc8_1365",Pge={selectoritem:p0e,selectoritem2:f0e,gscheaderlineup:m0e,anNoEstn:g0e,groupsLeague:y0e,jugadores:v0e,switchOption:_0e,jugadores1:b0e,switchOption1:x0e,switchStatesBig:w0e,groupsLeagueParent:k0e,imgHomeTeamIcon:S0e,imgHomeTeamWrapper:T0e,teamContainer:C0e,name:A0e,homeTeamContainer:E0e,div:M0e,titleSession:I0e,scoreContainer:P0e,scoreContainerWrapper:L0e,teamContainer1:B0e,awayTeamContainer:O0e,matchContainer:z0e,sliderMatchesChild:D0e,manchesterUnited:F0e,sliderMatchesItem:N0e,sliderMatches:R0e,sortIcon:V0e,filtros:j0e,sortParent:U0e,shapeIcon:$0e,btnFilter:G0e,btnFilter1:H0e,btnFilterParent:q0e,backArrowIcon:W0e,teamContainer2:Z0e,homeTeam:X0e,div4:Y0e,finalScore:K0e,manchesterUnited1:J0e,scoreContainer1:Q0e,match:ege,manchesterUnited2:tge,btnDetails:rge,matchContainer1:nge,goalChild:age,goal:ige,manchesterUnited3:oge,minuteEvent:sge,yellowCard:lge,awayTeamEvents:cge,rectangle:uge,homeTeamEvents:dge,totalEvents:hge,headerSeccionAlineaciones1:pge,switchOption3:fge,switchOption4:mge,switchStatesBig1:gge,manchesterUnited13:yge,homeTeamContainer1:vge,scoreContainer2:_ge,matchContainer2:bge,manchesterUnited14:xge,sliderMatchesInner:wge,rectangleIcon:kge,sliderMatches1:Sge,containerData:Tge,headerSeccionAlineaciones2:Cge,headerSeccionAlineaciones:Age,headerSeccionAlineaciones21200:Ege,headerSeccionAlineaciones1540:Mge,headerSeccionAlineaciones2540:Ige},Lge={components:{GSCCarousel:ab,GscSwitchComponent:Tv},props:{optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},isLive:{type:Boolean,default:!1},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",{season_id:e.season_id,game_id:e.id})}catch(p){throw new Error(p)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=540?this.$style.headerSeccionAlineaciones2540:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{remplazarMxJor(e){return e.replace("M","JOR ")},changeCarouselItem(e){this.$emit("input",{season_id:e.selectedItem.season,game_id:e.selectedItem.game,ht_abrev:e.selectedItem.home_team_abbreviation,at_abrev:e.selectedItem.away_team_abbreviation}),this.selectedOption=e.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},Bge=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),Oge=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),zge=["src"],Dge=["src"],Fge=["src"],Nge=["src"],Rge=["src"],Vge=["src"];function jge(e,p,f,F,K,k){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.gscheaderlineup)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(k.headerSeccionAlineaciones1Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[Bge,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),Oge],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},null,2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.home_team+".png"},null,10,zge)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[f.isLive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.scoreContainer)},[Object.keys(f.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(f.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),Object.keys(f.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(f.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.titleSession)},t.toDisplayString(f.gameInfo.season_name!==void 0?f.gameInfo.season_name+" | "+k.remplazarMxJor(f.gameInfo.matchday_abbreviation)+" | "+f.gameInfo.home_team_abbreviation+" - "+f.gameInfo.away_team_abbreviation:""),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.away_team+".png"},null,10,Dge)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches)},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:e6},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Av},null,2)],2),t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Jornada",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"2",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Av},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:JE},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(f.gameInfo.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.home_team+".png"},null,10,Fge)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[f.isLive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.finalScore)},[Object.keys(f.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(f.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(f.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(f.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[f.teamActive=="home"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.away_team+".png"},null,10,Nge),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(f.gameInfo.away_team_abbreviation),3)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:QE},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(k.headerSeccionAlineaciones2Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig1),id:"switch-lineup"},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited13)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.home_team+".png"},null,10,Rge)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.home_team_abbreviation),3)],2),f.isLive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.scoreContainer2)},[Object.keys(f.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(f.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),Object.keys(f.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(f.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.away_team+".png"},null,10,Vge)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches1)},null,2)],2)],2)],2)],2)}const Uge={$style:Pge},$ge=Yh(Lge,[["render",jge],["__cssModules",Uge]]),Gge="_anNoEstn_j98j7_139",Hge="_groupsLeague_j98j7_145",qge="_historicas_j98j7_153",Wge="_switchOption_j98j7_163",Zge="_switchOption1_j98j7_183",Xge="_probables_j98j7_203",Yge="_switchOption2_j98j7_213",Kge="_switchStatesBig_j98j7_237",Jge="_groupsLeagueParent_j98j7_255",Qge="_imgHomeTeamIcon_j98j7_273",e1e="_imgHomeTeamWrapper_j98j7_285",t1e="_teamContainer_j98j7_309",r1e="_name_j98j7_333",n1e="_jor_j98j7_345",a1e="_jorParent_j98j7_357",i1e="_shapeIcon_j98j7_373",o1e="_frameParent_j98j7_383",s1e="_manchesterUnited_j98j7_413",l1e="_necaxaIcon_j98j7_435",c1e="_manchesterUnited1_j98j7_447",u1e="_team_j98j7_309",d1e="_homeTeamContainer_j98j7_475",h1e="_div1_j98j7_495",p1e="_scoreContainer_j98j7_503",f1e="_scoreContainerWrapper_j98j7_525",m1e="_team1_j98j7_549",g1e="_name1_j98j7_563",y1e="_teamContainer1_j98j7_577",v1e="_awayTeamContainer_j98j7_601",_1e="_matchContainer_j98j7_623",b1e="_goalChild_j98j7_641",x1e="_goal_j98j7_641",w1e="_manchesterUnited4_j98j7_667",k1e="_minuteEvent_j98j7_681",S1e="_yellowCard_j98j7_695",T1e="_awayTeamEvents_j98j7_709",C1e="_rectangle_j98j7_723",A1e="_homeTeamEvents_j98j7_737",E1e="_totalEvents_j98j7_753",M1e="_headerSeccionAlineaciones1_j98j7_769",I1e="_homeTeamContainer1_j98j7_789",P1e="_awayTeamContainer1_j98j7_813",L1e="_headerSeccionAlineaciones2_j98j7_837",B1e="_jugadores_j98j7_857",O1e="_switchOption6_j98j7_869",z1e="_switchOption8_j98j7_889",D1e="_switchStatesBig2_j98j7_913",F1e="_manchesterUnited28_j98j7_927",N1e="_homeTeamContainer2_j98j7_935",R1e="_matchContainer2_j98j7_949",V1e="_manchesterUnited29_j98j7_971",j1e="_sliderMatchesChild_j98j7_985",U1e="_sliderMatchesItem_j98j7_1005",$1e="_sliderMatches_j98j7_985",G1e="_jorParent2_j98j7_1045",H1e="_filterMatchday_j98j7_1059",q1e="_necaxaIcon4_j98j7_1081",W1e="_team4_j98j7_1093",Z1e="_filterMatchdayParent_j98j7_1113",X1e="_filterMatchday1_j98j7_1127",Y1e="_teamParent_j98j7_1157",K1e="_filtersContainer_j98j7_1177",J1e="_containerData_j98j7_1195",Q1e="_headerSeccionAlineaciones3_j98j7_1223",eye="_headerSeccionAlineaciones_j98j7_769",tye={anNoEstn:Gge,groupsLeague:Hge,historicas:qge,switchOption:Wge,switchOption1:Zge,probables:Xge,switchOption2:Yge,switchStatesBig:Kge,groupsLeagueParent:Jge,imgHomeTeamIcon:Qge,imgHomeTeamWrapper:e1e,teamContainer:t1e,name:r1e,jor:n1e,jorParent:a1e,shapeIcon:i1e,frameParent:o1e,manchesterUnited:s1e,necaxaIcon:l1e,manchesterUnited1:c1e,team:u1e,homeTeamContainer:d1e,div1:h1e,scoreContainer:p1e,scoreContainerWrapper:f1e,team1:m1e,name1:g1e,teamContainer1:y1e,awayTeamContainer:v1e,matchContainer:_1e,goalChild:b1e,goal:x1e,manchesterUnited4:w1e,minuteEvent:k1e,yellowCard:S1e,awayTeamEvents:T1e,rectangle:C1e,homeTeamEvents:A1e,totalEvents:E1e,headerSeccionAlineaciones1:M1e,homeTeamContainer1:I1e,awayTeamContainer1:P1e,headerSeccionAlineaciones2:L1e,jugadores:B1e,switchOption6:O1e,switchOption8:z1e,switchStatesBig2:D1e,manchesterUnited28:F1e,homeTeamContainer2:N1e,matchContainer2:R1e,manchesterUnited29:V1e,sliderMatchesChild:j1e,sliderMatchesItem:U1e,sliderMatches:$1e,jorParent2:G1e,filterMatchday:H1e,necaxaIcon4:q1e,team4:W1e,filterMatchdayParent:Z1e,filterMatchday1:X1e,teamParent:Y1e,filtersContainer:K1e,containerData:J1e,headerSeccionAlineaciones3:Q1e,headerSeccionAlineaciones:eye},rye={components:{GSCDropdown:Q4,GscSwitchComponent:Tv},props:{optionSelected:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},data(){return{rivalHomeImg:"",rivalVisitImg:"",rivalHomeAbrev:"",rivalVisitAbrev:"",auxVal:0}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",e)}catch(p){throw new Error(p)}}}},methods:{clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)},changeDropdownVisit(e){const p=this.gameRecientes[this.gameInfo.away_team_abbreviation].findIndex(f=>f.matchday_id===e.id);this.rivalVisitAbrev=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][p].home_team_abbreviation?this.gameRecientes[this.gameInfo.away_team_abbreviation][p].away_team_abbreviation:this.gameRecientes[this.gameInfo.away_team_abbreviation][p].home_team_abbreviation,this.rivalVisitImg=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][p].home_team_abbreviation?"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][p].away_team+".png":"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][p].home_team+".png",this.$emit("changeaway",this.gameRecientes[this.gameInfo.away_team_abbreviation][p])},changeDropdownLocal(e){const p=this.gameRecientes[this.gameInfo.home_team_abbreviation].findIndex(f=>f.matchday_id===e.id);this.rivalHomeAbrev=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][p].away_team_abbreviation?this.gameRecientes[this.gameInfo.home_team_abbreviation][p].home_team_abbreviation:this.gameRecientes[this.gameInfo.home_team_abbreviation][p].away_team_abbreviation,this.rivalHomeImg=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][p].away_team_abbreviation?"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][p].home_team+".png":"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][p].away_team+".png",this.$emit("changehome",this.gameRecientes[this.gameInfo.home_team_abbreviation][p])}}},nye=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),aye=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1),iye=["src"],oye={class:"selector-tournaments"},sye=["src"],lye=["src"],cye={class:"selector-tournaments"},uye=["src"],dye=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),hye=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),pye=["src"],fye={class:"selector-tournaments"},mye=["src"],gye=["src"],yye={class:"selector-tournaments"},vye=["src"],_ye=["src"],bye=["src"],xye={class:"selector-tournaments"},wye=["src"],kye=["src"],Sye={class:"selector-tournaments"};function Tye(e,p,f,F,K,k){const w=t.resolveComponent("GscSwitchComponent"),n=t.resolveComponent("GSCDropdown");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones1),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[nye,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),aye],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(w,{buttons:["Historicos","Recientes","Probables"],selectedOption:f.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:k.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.home_team+".png"},null,10,iye)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.home_team_abbreviation),3),t.createVNode(n,{class:t.normalizeClass(e.$style.frameParent),items:f.matchdaysDefault[f.gameInfo.home_team_abbreviation],onInput:k.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(_=>[t.createElementVNode("div",oye,t.toDisplayString(_.selectedItem.name),1)]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("div",null,t.toDisplayString(_.name),1)]),_:1},8,["class","items","onInput"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:K.rivalHomeImg},null,10,sye),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(K.rivalHomeAbrev),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"2",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"-",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"2",2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(K.rivalVisitAbrev),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:K.rivalVisitImg},null,10,lye),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2)],2),t.createVNode(n,{class:t.normalizeClass(e.$style.frameParent),items:f.matchdaysDefault[f.gameInfo.away_team_abbreviation],onInput:k.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(_=>[t.createElementVNode("div",cye,t.toDisplayString(_.selectedItem.name),1)]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("div",null,t.toDisplayString(_.name),1)]),_:1},8,["class","items","onInput"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name1)},t.toDisplayString(f.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.away_team+".png"},null,10,uye)],2)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones2),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[dye,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),hye],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(w,{buttons:["Historicos","Recientes","Probables"],selectedOption:f.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:k.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.home_team+".png"},null,10,pye)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.home_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.frameParent)},[t.createVNode(n,{items:f.matchdaysDefault[f.gameInfo.home_team_abbreviation],onInput:k.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(_=>[t.createElementVNode("div",fye,t.toDisplayString(_.selectedItem.name),1)]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("div",null,t.toDisplayString(_.name),1)]),_:1},8,["items","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:K.rivalHomeImg},null,10,mye),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(K.rivalHomeAbrev),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(K.rivalVisitAbrev),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:K.rivalVisitImg},null,10,gye),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.frameParent)},[t.createVNode(n,{items:f.matchdaysDefault[f.gameInfo.away_team_abbreviation],onInput:k.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(_=>[t.createElementVNode("div",yye,t.toDisplayString(_.selectedItem.name),1)]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("div",null,t.toDisplayString(_.name),1)]),_:1},8,["items","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.away_team+".png"},null,10,vye)],2)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones3),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig2),id:"switch-lineup"},[t.createVNode(w,{buttons:["Historicos","Recientes","Probables"],selectedOption:f.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:k.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited28)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.home_team+".png"},null,10,_ye)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(f.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+f.gameInfo.away_team+".png"},null,10,bye)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtersContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchdayParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday1)},[t.createVNode(n,{items:f.matchdaysDefault[f.gameInfo.home_team_abbreviation],onInput:k.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(_=>[t.createElementVNode("div",xye,t.toDisplayString(_.selectedItem.name),1)]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("div",null,t.toDisplayString(_.name),1)]),_:1},8,["items","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team4)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon4),alt:"",src:K.rivalHomeImg},null,10,wye)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team1)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon4),alt:"",src:K.rivalVisitImg},null,10,kye),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},"vs",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday1)},[t.createVNode(n,{items:f.matchdaysDefault[f.gameInfo.away_team_abbreviation],onInput:k.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(_=>[t.createElementVNode("div",Sye,t.toDisplayString(_.selectedItem.name),1)]),availableItem:t.withCtx(({item:_})=>[t.createElementVNode("div",null,t.toDisplayString(_.name),1)]),_:1},8,["items","onInput"])],2)],2)],2)],2)],2)],2)}const Cye={$style:tye},Aye=Yh(rye,[["render",Tye],["__cssModules",Cye]]);let eM=null;const Eye={name:"LineupPlayers",props:{isFemale:{type:Boolean,default:!1},game:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Prematch"},isLive:{type:Boolean,default:!1},socket:{type:Object,default:()=>{}}},components:{CardPlayer:Kde,HeaderPlayerHistorico:Ape,HeaderPlayerRecientes:h0e,HeaderPlayerProbables:Aye,HeaderPlayerPostmatch:$ge},data(){return{lastGetLineUpGameId:"",lastGetMXMUrl:"",selectOptMenuheader:"Historicos",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",urlGames:"https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/",url:"https://tj4cepyjc4.execute-api.us-west-2.amazonaws.com/prod/lineups/",urlMXM:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",retries:3,teamActive:"home",subsActive:!1,playersHome:[],gamesContainerWidth:0,keyUpdateRecientes:0,playersAway:[],defaultDropItem:{},subsTitle:!1,uniformHome:"",valueUpdateRecientes:0,uniformHomeG:"",uniformAway:"",uniformAwayG:"",dataPlayersHome:[],dataPlayersAway:[],homeTeamLogo:"",awayTeamLogo:"",homeTeamName:"",awayTeamName:"",homeTeamAbrev:"",awayTeamAbrev:"",home_team_id:0,updateComponentAway:0,away_team_id:0,substitutionModal:{min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},homeTeam:{},visitingTeam:{},gameForAnalysis:{},movil:!1,positions:[{name:"Portero"},{name:"Defensa central"},{name:"Lateral por izquierda"},{name:"Lateral por derecha"},{name:"Volante por izquierda"},{name:"Volante por derecha"},{name:"Volante defensivo"},{name:"Volante ofensivo"},{name:"Delantero"},{name:"Desconocida"}],auxProbablesIDGameHome:0,auxProbablesIDGameAway:0,auxHistoricGameID:0,gameInfoheader:{},gamesHistoric:[],gamesRecientes:[],matchdaysPerTeam:[],lastGetGame:0,lastSection:""}},computed:{goalcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"goal_card_div440":e<=650?"goal_card_div650":e<=820?"goal_card_div820":"goal_card_div"},yellowredcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"yellowred_card_div440":e<=650?"yellowred_card_div650":e<=820?"yellowred_card_div820":"yellowred_card_div"},redcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"red_card_div440":e<=650?"red_card_div650":e<=820?"red_card_div820":"red_card_div"},yellowcarddivclass(){const e=this.gamesContainerWidth;return e<=440?"yellow_card_div440":e<=650?"yellow_card_div650":e<=820?"yellow_card_div820":"yellow_card_div"},infochangeplayeritemClass(){const e=this.gamesContainerWidth;return e<=440?"info-chamge-player-item440":e<=650?"info-chamge-player-item650":e<=740?"info-chamge-player-item740":"info-chamge-player-item"},infonameplayeritemClass(){const e=this.gamesContainerWidth;return e<=440?"info-name-player-item440":e<=650?"info-name-player-item650":e<=740?"info-name-player-item740":"info-name-player-item"},infoplayeritemClass(){const e=this.gamesContainerWidth;return e<=400?"info-player-item400":e<=440?"info-player-item440":e<=650?"info-player-item650":e<=740?"info-player-item740":"info-player-item"},numPlayerClass(){const e=this.gamesContainerWidth;return e<=440?"num-Player440":e<=540?"num-Player540":e<=740?"num-Player740":"num-Player"},jerseyitemplayerClass(){const e=this.gamesContainerWidth;return e<=440?"jerseyitemplayer440":e<=540?"jerseyitemplayer540":e<=650?"jerseyitemplayer650":e<=740?"jerseyitemplayer740":"jerseyitemplayer"},itemplayerfieldClass(){return this.gamesContainerWidth<=740?"itemplayer-field740":"itemplayer-field"},canchacontainerClass(){const e=this.gamesContainerWidth;return e<=300?"cancha-container300":e<=325?"cancha-container325":e<=350?"cancha-container350":e<=440?"cancha-container440":e<=540?"cancha-container540":e<=740?"cancha-container740":e<=820?"cancha-container820":e<=840?"cancha-container840":e<=940?"cancha-container940":e<=1140?"cancha-container1140":"cancha-container"},fieldcontainerClass(){const e=this.gamesContainerWidth;return e<=300?"field-container300":e<=380?"field-container380":e<=440?"field-container440":e<=540?"field-container540":e<=740?"field-container740":"field-container"},notificationnolineupsClass(){const e=this.gamesContainerWidth;return e<=300?"notification-no-lineups300":e<=370?"notification-no-lineups370":e<=400?"notification-no-lineups400":e<=460?"notification-no-lineups460":e<=500?"notification-no-lineups500":e<=530?"notification-no-lineups530":e<=740?"notification-no-lineups740":e<=768?"notification-no-lineups768":e<=830?"notification-no-lineups830":e<=900?"notification-no-lineups900":"notification-no-lineups"},containernolineups(){const e=this.gamesContainerWidth;return e<=300?"container-no-lineups300":e<=350?"container-no-lineups350":e<=768?"container-no-lineups768":"container-no-lineups"},menuTeamsClass(){return this.gamesContainerWidth<=740?"menu-teams-mobile740":"menu-teams-mobile"},positionClass(){return this.gamesContainerWidth<=500?"gsc-position-player500":"gsc-position-player"},positionClass2(){return this.gamesContainerWidth<=500?"gsc-position-player2500":"gsc-position-player2"},containerlineupsClass(){const e=this.gamesContainerWidth;return e<=740?"gsc-lineups-container680":e<=900?"gsc-lineups-container900":"gsc-lineups-container"},containerClassHome(){const e=this.gamesContainerWidth;return e<=740?"gsclineupscontainerhome680":e<=768?"gsclineupscontainerhome768":e<=900?"gsclineupscontainerhome900":"gsclineupscontainerhome"},containerClassAway(){const e=this.gamesContainerWidth;return e<=740?"gsclineupscontaineraway680":e<=768?"gsclineupscontaineraway768":e<=900?"gsclineupscontaineraway900":"gsclineupscontaineraway"},sizeBrowser(){return this.gamesContainerWidth},numPlayer(){return Number(this.playersAway.length)+Number(this.playersHome.length)},benchFillHome(){return this.playersHome.length<this.playersAway.length?this.playersAway.length-this.playersHome.length:0},benchFillAway(){return this.playersAway.length<this.playersHome.length?this.playersHome.length-this.playersAway.length:0}},async mounted(){if(setTimeout(()=>{this.setUpResizeObserver()},100),this.game||this.$route.params.gameId)try{this.cleaneData()}catch(e){throw new Error(e)}},watch:{selectOptMenuheader:{immediate:!0,async handler(e,p){e!=p&&this.selectedOption!=="Postmatch"&&(e==="Probables"&&(this.lastSection=e),e==="Historicos"&&this.gamesHistoric[0]&&await this.getLineUp(this.gamesHistoric[0].game))}},"socket.connected":{immediate:!0,handler(e){e&&this.getDataSocket()}},game:{immediate:!0,handler:async function(e,p){if(e&&(!p||e.game_id!==p.game_id))try{if(e){const f={headers:{Authorization:this.token}};this.cleaneData(),await this.getHeaderInfo(e);const F=[Xh.get(this.urlGames+e.season_id+"/games/"+e.game_id,f)];let K=null;const k=this.selectedOption==="Postmatch"?e.game_id:this.selectOptMenuheader==="Historicos"?this.gamesHistoric[0].game:0;k&&k!==this.lastGetLineUpGameId&&(K=Xh.get(this.url+k,f),F.push(K));const[w,n]=await Promise.all(F);await this.gameDataInfo(e,w),await this.getLineUp(k,n)}}catch(f){throw new Error(f)}}}},sockets:{new_bench([e,p]){if(p[this.home_team_id]){this.playersHome=this.playersHome.filter(function(i){return!i.isbench});for(let i=0;i<p[this.home_team_id].length;i++)if(!p[this.home_team_id][i].isTitular){this.subsTitle=!0;var f=p[this.home_team_id][i].playerName.split(","),F=f[0].split(" "),K=f[1].trim().split(" "),k="";F.length==2||F.length==1?F[0].length<4?k=F[0]+" "+F[1]:k=F[0]:F.length==3?k=F[0]+" "+F[1]:F.length==4&&(k=F[1]+" "+F[2]+" "+F[3]);var w=K[K.length-1]!=""?K[K.length-1].charAt(0):K[K.length-2]?K[K.length-2].charAt(0):"";k=k.replace(",","");var n=w+". "+k,_=this.dataPlayersHome.findIndex(u=>u.player_id==p[this.home_team_id][i].playerID);this.playersHome.push({played:!1,name:p[this.home_team_id][i].playerName,position:_!=-1?this.isFemale?this.positions[this.dataPlayersHome[_].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[this.dataPlayersHome[_].position_id-1].name:"",position_id:this.dataPlayersHome[_].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+p[this.home_team_id][i].playerID+".png",nationality:_!=-1&&this.dataPlayersHome[_].nationality?this.dataPlayersHome[_].nationality.substring(0,3):"",imgNationality:_!=-1?this.dataPlayersHome[_].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:n,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+this.home_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:p[this.home_team_id][i].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:p[this.home_team_id][i].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersHome.sort((i,u)=>i.position_id>u.position_id?1:u.position_id>i.position_id?-1:0)}if(p[this.away_team_id]){this.playersAway=this.playersAway.filter(function(i){return!i.isbench});for(let i=0;i<p[this.away_team_id].length;i++)if(!p[this.away_team_id][i].isTitular){this.subsTitle=!0;var h=p[this.away_team_id][i].playerName.split(","),r=h[0].split(" "),b=f[1].trim().split(" "),y="";r.length==2||r.length==1?r[0].length<4?y=r[0]+" "+r[1]:y=r[0]:r.length==3?y=r[0]+" "+r[1]:r.length==4&&(y=r[1]+" "+r[2]+" "+r[3]);var g=b[b.length-1]!=""?b[b.length-1].charAt(0):b[b.length-2]?b[b.length-2].charAt(0):"";y=y.replace(",","");var c=g+". "+y,a=this.dataPlayersAway.findIndex(u=>u.player_id==p[this.away_team_id][i].playerID);this.playersAway.push({played:!1,name:p[this.away_team_id][i].playerName,position:a!=-1?this.isFemale?this.positions[this.dataPlayersAway[a].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[this.dataPlayersAway[a].position_id-1].name:"",position_id:this.dataPlayersAway[a].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+p[this.away_team_id][i].playerID+".png",nationality:a!=-1&&this.dataPlayersAway[a].nationality?this.dataPlayersAway[a].nationality.substring(0,3):"",imgNationality:a!=-1?this.dataPlayersAway[a].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:c,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+this.away_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:p[this.away_team_id][i].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:p[this.away_team_id][i].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersAway.sort((i,u)=>i.position_id>u.position_id?1:u.position_id>i.position_id?-1:0)}},new_lineup([e,p]){if(p.team_id==p.home_team.team_id){if(this.playersHome.length==0){this.dataPlayersHome=p.home_team.players;for(let m=0;m<p.data.length;m++){this.home_team_id=p.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+p.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+p.team_id+"_g.svg","home",0);var f=p.data[m].player_name.split(","),F=f[0].split(" "),K=f[1].trim().split(" "),k="";F.length==2||F.length==1?F[0].length<4?k=F[0]+" "+F[1]:k=F[0]:F.length==3?k=F[0]+" "+F[1]:F.length==4&&(k=F[1]+" "+F[2]+" "+F[3]);var w=K[K.length-1]!=""?K[K.length-1].charAt(0):K[K.length-2]?K[K.length-2].charAt(0):"";k=k.replace(",","");var n=w+". "+k,_=p.data[m].x,h=_*50/100,r=p.home_team.players.findIndex(v=>v.player_id==p.data[m].player_id);this.playersHome.push({played:!0,name:p.data[m].player_name,position:r!=-1?this.isFemale?this.positions[p.home_team.players[r].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[p.home_team.players[r].position_id-1].name:"",position_id:p.home_team.players[r].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+p.data[m].player_id+".png",nationality:r!=-1&&p.home_team.players[r].nationality?p.home_team.players[r].nationality.substring(0,3):"",imgNationality:r!=-1?p.home_team.players[r].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:n,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+p.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:p.data[m].jersey_number,positionX:p.data[m].y-13,positionY:h*.9,positionXOrigin:p.data[m].y-17,positionYOrigin:p.data[m].x-2,playerId:p.data[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:p.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+p.team_id+".png"}this.playersHome.sort((m,v)=>m.position_id>v.position_id?1:v.position_id>m.position_id?-1:0)}}else if(this.playersAway.length==0){this.dataPlayersAway=p.away_team.players;for(let m=0;m<p.data.length;m++){this.away_team_id=p.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+p.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+p.team_id+"_g.svg","away",0);var b=p.data[m].player_name.split(","),y=b[0].split(" "),g=b[1].trim().split(" "),c="";y.length==2||y.length==1?y[0].length<4?c=y[0]+" "+y[1]:c=y[0]:y.length==3?c=y[0]+" "+y[1]:y.length==4&&(c=y[1]+" "+y[2]+" "+y[3]);var a=g[g.length-1]!=""?g[g.length-1].charAt(0):g[g.length-2]?g[g.length-2].charAt(0):"";c=c.replace(",","");var i=a+". "+c,u=p.data[m].x,s=100-(100-u)*50/100;s=s*.9;var d=p.away_team.players.findIndex(v=>v.player_id==p.data[m].player_id);this.playersAway.push({played:!0,name:p.data[m].player_name,position:d!=-1?this.isFemale?this.positions[p.away_team.players[d].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[p.away_team.players[d].position_id-1].name:"",position_id:p.away_team.players[d].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+p.data[m].player_id+".png",nationality:d!=-1&&p.away_team.players[d].nationality?p.away_team.players[d].nationality.substring(0,3):"",imgNationality:d!=-1?p.away_team.players[d].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:i,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+p.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:p.data[m].jersey_number,positionX:p.data[m].y-13,positionY:s+2,positionXOrigin:p.data[m].y-17,positionYOrigin:p.data[m].x-7,playerId:p.data[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:p.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+p.team_id+".png"}this.playersAway.sort((m,v)=>m.position_id>v.position_id?1:v.position_id>m.position_id?-1:0)}},update_mxm([e,p]){var f=-1,F=-1;if(this.playersHome.length>0){var K=this.playersHome.findIndex(C=>C.idredcards==p.play_id),k=this.playersHome.findIndex(C=>C.idyellowcards==p.play_id),w=this.playersHome.findIndex(C=>C.idSubstitution==p.play_id);for(let C=0;C<this.playersHome.length;C++){var n=this.playersHome[C].idsGoals.findIndex(P=>P==p.play_id);n!=-1&&(f=n,F=C)}K!=-1&&this.resetPlayUpdate("RedCard","Home",K,F),k!=-1&&this.resetPlayUpdate("YellowCard","Home",k,F),w!=-1&&this.resetPlayUpdate("Substitution","Home",w,F),f!=-1&&this.resetPlayUpdate("Goals","Home",f,F)}if(this.playersAway.length>0){var _=this.playersAway.findIndex(C=>C.idredcards==p.play_id),h=this.playersAway.findIndex(C=>C.idyellowcards==p.play_id),r=this.playersAway.findIndex(C=>C.idSubstitution==p.play_id);for(let C=0;C<this.playersAway.length;C++){var b=this.playersAway[C].idsGoals.findIndex(P=>P==p.play_id);b!=-1&&(f=b,F=C)}_!=-1&&this.resetPlayUpdate("RedCard","Away",_,F),h!=-1&&this.resetPlayUpdate("YellowCard","Away",h,F),r!=-1&&this.resetPlayUpdate("Substitution","Away",r,F),f!=-1&&this.resetPlayUpdate("Goals","Away",f,F)}if(p.event_type_id==3){if(p.team_id==this.home_team_id){if(this.playersHome.length>0){var y=p.player_id.split("@"),g=this.playersHome.findIndex(C=>C.playerId==y[0]),c=this.playersHome.findIndex(C=>C.playerId==y[1]);g!=-1&&(this.playersHome[g].idSubstitution=p.play_id,this.playersHome[g].substitutionOut=!0,this.playersHome[g].substitutionMin=p.minute,this.playersHome[g].substitutionDataID=p.team_id+"@"+p.player_id),c!=-1&&(this.playersHome[c].idSubstitution=p.play_id,this.playersHome[c].substitutionIn=!0,this.playersHome[c].substitutionMin=p.minute,this.playersHome[c].substitutionDataID=p.team_id+"@"+p.player_id)}}else if(this.playersAway.length>0){var a=p.player_id.split("@"),i=this.playersAway.findIndex(C=>C.playerId==a[0]),u=this.playersAway.findIndex(C=>C.playerId==a[1]);g!=-1&&(this.playersAway[i].idSubstitution=p.play_id,this.playersAway[i].substitutionOut=!0,this.playersAway[i].substitutionMin=p.minute,this.playersAway[i].substitutionDataID=p.team_id+"@"+p.player_id),u!=-1&&(this.playersAway[u].idSubstitution=p.play_id,this.playersAway[u].substitutionIn=!0,this.playersAway[u].substitutionMin=p.minute,this.playersAway[u].substitutionDataID=p.team_id+"@"+p.player_id)}}if(p.event_type_id==1){if(p.team_id==this.home_team_id){if(this.playersHome.length>0){var s=this.playersHome.findIndex(C=>C.playerId==p.player_id);s!=-1&&(this.playersHome[s].goals+=1,this.playersHome[s].goalsMin.push(p.minute),this.playersHome[s].idsGoals.push(p.play_id))}}else if(this.playersAway.length>0){var d=this.playersAway.findIndex(C=>C.playerId==p.player_id);d!=-1&&(this.playersAway[d].goals+=1,this.playersAway[d].goalsMin.push(p.minute),this.playersAway[d].idsGoals.push(p.play_id))}}if(p.event_type_id==2){if(p.category_id==8){if(p.team_id==this.home_team_id){if(this.playersHome.length>0){var m=this.playersHome.findIndex(C=>C.playerId==p.player_id);m!=-1&&(this.playersHome[m].yellowcards+=1,this.playersHome[m].yellowcardsMin=p.minute,this.playersHome[m].idyellowcards=p.play_id)}}else if(this.playersAway.length>0){var v=this.playersAway.findIndex(C=>C.playerId==p.player_id);v!=-1&&(this.playersAway[v].yellowcards+=1,this.playersAway[v].yellowcardsMin=p.minute,this.playersAway[v].idyellowcards=p.play_id)}}if(p.category_id==9){if(p.team_id==this.home_team_id){if(this.playersHome.length>0){var T=this.playersHome.findIndex(C=>C.playerId==p.player_id);T!=-1&&(this.playersHome[T].redcards+=1,this.playersHome[T].redcardsMin=p.minute,this.playersHome[T].idredcards=p.play_id)}}else if(this.playersAway.length>0){var A=this.playersAway.findIndex(C=>C.playerId==p.player_id);A!=-1&&(this.playersAway[A].redcards+=1,this.playersAway[A].redcardsMin=p.minute,this.playersAway[A].idredcards=p.play_id)}}}},delete_mxm([e,p]){if(this.playersHome.length>0)for(let f=0;f<this.playersHome.length;f++)this.playersHome[f].idSubstitution==p.play_id&&(this.playersHome[f].substitutionOut=!1,this.playersHome[f].substitutionIn=!1,this.playersHome[f].substitutionMin="",this.playersHome[f].substitutionDataID="",this.playersHome[f].idSubstitution=0);if(this.playersAway.length>0)for(let f=0;f<this.playersAway.length;f++)this.playersAway[f].idSubstitution==p.play_id&&(this.playersAway[f].substitutionOut=!1,this.playersAway[f].substitutionIn=!1,this.playersAway[f].substitutionMin="",this.playersAway[f].substitutionDataID="",this.playersAway[f].idSubstitution=0);if(this.playersHome.length>0)for(let f=0;f<this.playersHome.length;f++){const F=this.playersHome[f].idsGoals.findIndex(K=>K==p.play_id);F!=-1&&(this.playersHome[f].goals=this.playersHome[f].goals-1,this.playersHome[f].goalsMin.splice(F,1),this.playersHome[f].idsGoals.splice(F,1))}if(this.playersAway.length>0)for(let f=0;f<this.playersAway.length;f++){const F=this.playersAway[f].idsGoals.findIndex(K=>K==p.play_id);F!=-1&&(this.playersAway[f].goals=this.playersAway[f].goals-1,this.playersAway[f].goalsMin.splice(F,1),this.playersAway[f].idsGoals.splice(F,1))}if(this.playersHome.length>0)for(let f=0;f<this.playersAway.length;f++)this.playersHome[f].idyellowcards==p.play_id&&(this.playersHome[f].yellowcards=0,this.playersHome[f].yellowcardsMin=0,this.playersHome[f].idyellowcards=0);if(this.playersAway.length>0)for(let f=0;f<this.playersAway.length;f++)this.playersAway[f].idyellowcards==p.play_id&&(this.playersAway[f].yellowcards=0,this.playersAway[f].yellowcardsMin=0,this.playersAway[f].idyellowcards=0);if(this.playersHome.length>0)for(let f=0;f<this.playersAway.length;f++)this.playersHome[f].idredcards==p.play_id&&(this.playersHome[f].redcards=0,this.playersHome[f].redcardsMin=0,this.playersHome[f].idredcards=0);if(this.playersAway.length>0)for(let f=0;f<this.playersAway.length;f++)this.playersAway[f].idredcards==p.play_id&&(this.playersAway[f].redcards=0,this.playersAway[f].redcardsMin=0,this.playersAway[f].idredcards=0)},new_mxm([e,p]){if(p.event_type_id==3){if(p.team_id==this.home_team_id){if(this.playersHome.length>0){var f=p.player_id.split("@"),F=this.playersHome.findIndex(c=>c.playerId==f[0]),K=this.playersHome.findIndex(c=>c.playerId==f[1]);F!=-1&&(this.playersHome[F].idSubstitution=p.play_id,this.playersHome[F].substitutionOut=!0,this.playersHome[F].substitutionMin=p.minute,this.playersHome[F].substitutionDataID=p.team_id+"@"+p.player_id),K!=-1&&(this.playersHome[K].idSubstitution=p.play_id,this.playersHome[K].substitutionIn=!0,this.playersHome[K].substitutionMin=p.minute,this.playersHome[K].substitutionDataID=p.team_id+"@"+p.player_id)}}else if(this.playersAway.length>0){var k=p.player_id.split("@"),w=this.playersAway.findIndex(c=>c.playerId==k[0]),n=this.playersAway.findIndex(c=>c.playerId==k[1]);F!=-1&&(this.playersAway[w].idSubstitution=p.play_id,this.playersAway[w].substitutionOut=!0,this.playersAway[w].substitutionMin=p.minute,this.playersAway[w].substitutionDataID=p.team_id+"@"+p.player_id),n!=-1&&(this.playersAway[n].idSubstitution=p.play_id,this.playersAway[n].substitutionIn=!0,this.playersAway[n].substitutionMin=p.minute,this.playersAway[n].substitutionDataID=p.team_id+"@"+p.player_id)}}if(p.event_type_id==1){if(p.team_id==this.home_team_id){if(this.playersHome.length>0){var _=this.playersHome.findIndex(c=>c.playerId==p.player_id);_!=-1&&(this.playersHome[_].goals+=1,this.playersHome[_].goalsMin.push(p.minute),this.playersHome[_].idsGoals.push(p.play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(c=>c.playerId==p.player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(p.minute),this.playersAway[h].idsGoals.push(p.play_id))}}if(p.event_type_id==2){if(p.category_id==8){if(p.team_id==this.home_team_id){if(this.playersHome.length>0){var r=this.playersHome.findIndex(c=>c.playerId==p.player_id);r!=-1&&(this.playersHome[r].yellowcards+=1,this.playersHome[r].yellowcardsMin=p.minute,this.playersHome[r].idyellowcards=p.play_id)}}else if(this.playersAway.length>0){var b=this.playersAway.findIndex(c=>c.playerId==p.player_id);b!=-1&&(this.playersAway[b].yellowcards+=1,this.playersAway[b].yellowcardsMin=p.minute,this.playersAway[b].idyellowcards=p.play_id)}}if(p.category_id==9){if(p.team_id==this.home_team_id){if(this.playersHome.length>0){var y=this.playersHome.findIndex(c=>c.playerId==p.player_id);y!=-1&&(this.playersHome[y].redcards+=1,this.playersHome[y].redcardsMin=p.minute,this.playersHome[y].idredcards=p.play_id)}}else if(this.playersAway.length>0){var g=this.playersAway.findIndex(c=>c.playerId==p.player_id);g!=-1&&(this.playersAway[g].redcards+=1,this.playersAway[g].redcardsMin=p.minute,this.playersAway[g].idredcards=p.play_id)}}}}},methods:{onOpenProfile(e){this.$emit("onOpenProfile",e)},async getLineUpProbablesHome3D(e){try{const d=await Xh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!d||!d.data)throw new Error("There is not lineups for this game.");if(this.homeTeamAbrev=this.gameInfoheader.home_team_abbreviation,d.data.home_team.team_id==this.gameInfoheader.home_team){this.gameInfoheader.home_team==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.home_team==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym),this.dataPlayersHome=d.data.home_team.players,d.data.home_team.starting_lineup[0].lineup.sort((m,v)=>m.position_id>v.position_id?1:v.position_id>m.position_id?-1:0);for(let m=0;m<d.data.home_team.starting_lineup[0].lineup.length;m++){this.home_team_id=d.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.home_team.team_id+"_g.svg","home",0);var p=d.data.home_team.starting_lineup[0].lineup[m].player_name.split(","),f=p[0].split(" "),F=p[1].trim().split(" "),K="";f.length==2||f.length==1?f[0].length<4?K=f[0]+" "+f[1]:K=f[0]:f.length==3?K=f[0]+" "+f[1]:f.length==4&&(K=f[1]+" "+f[2]+" "+f[3]);var k=F[F.length-1]!=""?F[F.length-1].charAt(0):F[F.length-2]?F[F.length-2].charAt(0):"";K=K.replace(",","");var w=k+". "+K,n=d.data.home_team.starting_lineup[0].lineup[m].x,_=n*50/100,h=d.data.home_team.players.findIndex(v=>v.player_id==d.data.home_team.starting_lineup[0].lineup[m].player_id);this.playersHome.push({played:!0,name:d.data.home_team.starting_lineup[0].lineup[m].player_name,position:this.isFemale?this.positions[d.data.home_team.players[h].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.home_team.players[h].position_id-1].name,position_id:d.data.home_team.players[h].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.home_team.starting_lineup[0].lineup[m].player_id+".png",nationality:d.data.home_team.players[h].nationality?d.data.home_team.players[h].nationality.substring(0,3):"",imgNationality:d.data.home_team.players[h].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:w,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:d.data.home_team.starting_lineup[0].lineup[m].jersey_number,positionX:d.data.home_team.starting_lineup[0].lineup[m].y-13,positionY:_*.9,positionXOrigin:d.data.home_team.starting_lineup[0].lineup[m].y-17,positionYOrigin:d.data.home_team.starting_lineup[0].lineup[m].x-2,playerId:d.data.home_team.starting_lineup[0].lineup[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:d.data.home_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.home_team.team_id+".png"}if(this.playersHome.sort((m,v)=>m.position_id>v.position_id?1:v.position_id>m.position_id?-1:0),d.data.home_team.bench){for(let m=0;m<d.data.home_team.bench.length;m++){this.subsTitle=!0;var r=d.data.home_team.bench[m].playerName.split(","),b=r[0].split(" "),y=r[1].trim().split(" "),g="";b.length==2||b.length==1?b[0].length<4?g=b[0]+" "+b[1]:g=b[0]:b.length==3?g=b[0]+" "+b[1]:b.length==4&&(g=b[1]+" "+b[2]+" "+b[3]);var c=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";g=g.replace(",","");var a=c+". "+g,i=d.data.home_team.players.findIndex(v=>v.player_id==d.data.home_team.bench[m].playerID);this.playersHome.push({played:!1,name:d.data.home_team.bench[m].playerName,position:i!=-1?this.isFemale?this.positions[d.data.home_team.players[i].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.home_team.players[i].position_id-1].name:"",position_id:d.data.home_team.players[i].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.home_team.bench[m].playerID+".png",nationality:i!=-1&&d.data.home_team.players[i].nationality?d.data.home_team.players[i].nationality.substring(0,3):"",imgNationality:i!=-1?d.data.home_team.players[i].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:a,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:d.data.home_team.bench[m].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:d.data.home_team.bench[m].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:d.data.home_team.team_id})}this.playersHome.sort((m,v)=>m.position_id>v.position_id?1:v.position_id>m.position_id?-1:0)}}if(d.data.away_team.team_id==this.gameInfoheader.home_team){this.gameInfoheader.home_team==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.home_team==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym),this.dataPlayersHome=d.data.away_team.players,d.data.away_team.starting_lineup[0].lineup.sort((m,v)=>m.position_id>v.position_id?1:v.position_id>m.position_id?-1:0);for(let m=0;m<d.data.away_team.starting_lineup[0].lineup.length;m++){this.home_team_id=d.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.away_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.away_team.team_id+"_g.svg","home",0);var p=d.data.away_team.starting_lineup[0].lineup[m].player_name.split(","),f=p[0].split(" "),F=p[1].trim().split(" "),K="";f.length==2||f.length==1?f[0].length<4?K=f[0]+" "+f[1]:K=f[0]:f.length==3?K=f[0]+" "+f[1]:f.length==4&&(K=f[1]+" "+f[2]+" "+f[3]);var k=F[F.length-1]!=""?F[F.length-1].charAt(0):F[F.length-2]?F[F.length-2].charAt(0):"";K=K.replace(",","");var w=k+". "+K,u=d.data.away_team.starting_lineup[0].lineup[m].x;u=Math.abs(u-100);var _=u*50/100,s=d.data.away_team.starting_lineup[0].lineup[m].y;s=Math.abs(s-100);var h=d.data.away_team.players.findIndex(M=>M.player_id==d.data.away_team.starting_lineup[0].lineup[m].player_id);this.playersHome.push({played:!0,name:d.data.away_team.starting_lineup[0].lineup[m].player_name,position:this.isFemale?this.positions[d.data.away_team.players[h].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.away_team.players[h].position_id-1].name,position_id:d.data.away_team.players[h].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.away_team.starting_lineup[0].lineup[m].player_id+".png",nationality:d.data.away_team.players[h].nationality?d.data.away_team.players[h].nationality.substring(0,3):"",imgNationality:d.data.away_team.players[h].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:w,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:d.data.away_team.starting_lineup[0].lineup[m].jersey_number,positionX:s-20,positionY:_*.9,positionXOrigin:d.data.away_team.starting_lineup[0].lineup[m].y-17,positionYOrigin:d.data.away_team.starting_lineup[0].lineup[m].x-2,playerId:d.data.away_team.starting_lineup[0].lineup[m].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:d.data.away_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.away_team.team_id+".png"}if(this.playersHome.sort((m,v)=>m.position_id>v.position_id?1:v.position_id>m.position_id?-1:0),d.data.away_team.bench){for(let m=0;m<d.data.away_team.bench.length;m++){this.subsTitle=!0;var r=d.data.away_team.bench[m].playerName.split(","),b=r[0].split(" "),y=r[1].trim().split(" "),g="";b.length==2||b.length==1?b[0].length<4?g=b[0]+" "+b[1]:g=b[0]:b.length==3?g=b[0]+" "+b[1]:b.length==4&&(g=b[1]+" "+b[2]+" "+b[3]);var c=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";g=g.replace(",","");var a=c+". "+g,i=d.data.away_team.players.findIndex(I=>I.player_id==d.data.away_team.bench[m].playerID);this.playersHome.push({played:!1,name:d.data.away_team.bench[m].playerName,position:i!=-1?this.isFemale?this.positions[d.data.away_team.players[i].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.away_team.players[i].position_id-1].name:"",position_id:d.data.away_team.players[i].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.away_team.bench[m].playerID+".png",nationality:i!=-1&&d.data.away_team.players[i].nationality?d.data.away_team.players[i].nationality.substring(0,3):"",imgNationality:i!=-1?d.data.away_team.players[i].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:a,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:d.data.away_team.bench[m].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:d.data.away_team.bench[m].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:d.data.away_team.team_id})}this.playersHome.sort((m,v)=>m.position_id>v.position_id?1:v.position_id>m.position_id?-1:0)}}await this.getMXM(e)}catch(d){return Promise.reject(d)}},cleaneDataHome(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.dataPlayersHome=[],this.homeTeamLogo="",this.homeTeamName="",this.home_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneDataAway(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersAway=[],this.subsTitle=!1,this.uniformAway="",this.uniformAwayG="",this.dataPlayersAway=[],this.awayTeamLogo="",this.awayTeamName="",this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},async getLineUpProbablesAway3D(e){try{const s=await Xh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!s||!s.data)throw new Error("There is not lineups for this game.");if(this.awayTeamAbrev=this.gameInfoheader.away_team_abbreviation,s.data.home_team.team_id==this.gameInfoheader.away_team){this.dataPlayersAway=s.data.home_team.players,this.gameInfoheader.away_team==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.away_team==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym);for(let d=0;d<s.data.home_team.starting_lineup[0].lineup.length;d++){this.away_team_id=s.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+s.data.home_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+s.data.home_team.team_id+"_g.svg","away",0);var p=s.data.home_team.starting_lineup[0].lineup[d].player_name.split(","),f=p[0].split(" "),F=p[1].trim().split(" "),K="";f.length==2||f.length==1?f[0].length<4?K=f[0]+" "+f[1]:K=f[0]:f.length==3?K=f[0]+" "+f[1]:f.length==4&&(K=f[1]+" "+f[2]+" "+f[3]);var k=F[F.length-1]!=""?F[F.length-1].charAt(0):F[F.length-2]?F[F.length-2].charAt(0):"";K=K.replace(",","");var w=k+". "+K,n=s.data.home_team.starting_lineup[0].lineup[d].x;n=Math.abs(n-100);var _=s.data.home_team.starting_lineup[0].lineup[d].y;_=Math.abs(_-100);var h=100-(100-n)*50/100;h=h*.9;var r=s.data.home_team.players.findIndex(m=>m.player_id==s.data.home_team.starting_lineup[0].lineup[d].player_id);this.playersAway.push({played:!0,name:s.data.home_team.starting_lineup[0].lineup[d].player_name,position:this.isFemale?this.positions[s.data.home_team.players[r].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[s.data.home_team.players[r].position_id-1].name,position_id:s.data.home_team.players[r].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+s.data.home_team.starting_lineup[0].lineup[d].player_id+".png",nationality:s.data.home_team.players[r].nationality?s.data.home_team.players[r].nationality.substring(0,3):"",imgNationality:s.data.home_team.players[r].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:w,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:s.data.home_team.starting_lineup[0].lineup[d].jersey_number,positionX:_-23,positionY:h,positionXOrigin:s.data.home_team.starting_lineup[0].lineup[d].y-17,positionYOrigin:s.data.home_team.starting_lineup[0].lineup[d].x-7,playerId:s.data.home_team.starting_lineup[0].lineup[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:s.data.home_team.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+s.data.home_team.team_id+".png"}if(this.playersAway.sort((d,m)=>d.position_id>m.position_id?1:m.position_id>d.position_id?-1:0),s.data.home_team.bench){for(let d=0;d<s.data.home_team.bench.length;d++){this.subsTitle=!0;var b=s.data.home_team.bench[d].playerName.split(","),y=b[0].split(" "),g=b[1].trim().split(" "),c="";y.length==2||y.length==1?y[0].length<4?c=y[0]+" "+y[1]:c=y[0]:y.length==3?c=y[0]+" "+y[1]:y.length==4&&(c=y[1]+" "+y[2]+" "+y[3]);var a=g[g.length-1]!=""?g[g.length-1].charAt(0):g[g.length-2]?g[g.length-2].charAt(0):"";c=c.replace(",","");var i=a+". "+c,u=s.data.home_team.players.findIndex(m=>m.player_id==s.data.home_team.bench[d].playerID);this.playersAway.push({played:!1,name:s.data.home_team.bench[d].playerName,position:u!=-1?this.isFemale?this.positions[s.data.home_team.players[u].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[s.data.home_team.players[u].position_id-1].name:"",position_id:s.data.home_team.players[u].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+s.data.home_team.bench[d].playerID+".png",nationality:u!=-1&&s.data.home_team.players[u].nationality?s.data.home_team.players[u].nationality.substring(0,3):"",imgNationality:u!=-1?s.data.home_team.players[u].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:i,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:s.data.home_team.bench[d].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:s.data.home_team.bench[d].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:s.data.home_team.team_id})}this.playersAway.sort((d,m)=>d.position_id>m.position_id?1:m.position_id>d.position_id?-1:0)}}if(s.data.away_team.team_id==this.gameInfoheader.away_team){this.gameInfoheader.away_team==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.away_team==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym),this.dataPlayersAway=s.data.away_team.players;for(let d=0;d<s.data.away_team.starting_lineup[0].lineup.length;d++){this.away_team_id=s.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+s.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+s.data.away_team.team_id+"_g.svg","away",0);var p=s.data.away_team.starting_lineup[0].lineup[d].player_name.split(","),f=p[0].split(" "),F=p[1].trim().split(" "),K="";f.length==2||f.length==1?f[0].length<4?K=f[0]+" "+f[1]:K=f[0]:f.length==3?K=f[0]+" "+f[1]:f.length==4&&(K=f[1]+" "+f[2]+" "+f[3]);var k=F[F.length-1]!=""?F[F.length-1].charAt(0):F[F.length-2]?F[F.length-2].charAt(0):"";K=K.replace(",","");var w=k+". "+K,n=s.data.away_team.starting_lineup[0].lineup[d].x,h=100-(100-n)*50/100;h=h*.9;var r=s.data.away_team.players.findIndex(M=>M.player_id==s.data.away_team.starting_lineup[0].lineup[d].player_id);this.playersAway.push({played:!0,name:s.data.away_team.starting_lineup[0].lineup[d].player_name,position:this.isFemale?this.positions[s.data.away_team.players[r].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[s.data.away_team.players[r].position_id-1].name,position_id:s.data.away_team.players[r].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+s.data.away_team.starting_lineup[0].lineup[d].player_id+".png",nationality:s.data.away_team.players[r].nationality?s.data.away_team.players[r].nationality.substring(0,3):"",imgNationality:s.data.away_team.players[r].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:w,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:s.data.away_team.starting_lineup[0].lineup[d].jersey_number,positionX:s.data.away_team.starting_lineup[0].lineup[d].y-13,positionY:h,positionXOrigin:s.data.away_team.starting_lineup[0].lineup[d].y-17,positionYOrigin:s.data.away_team.starting_lineup[0].lineup[d].x-7,playerId:s.data.away_team.starting_lineup[0].lineup[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:s.data.away_team.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+s.data.away_team.team_id+".png"}if(this.playersAway.sort((d,m)=>d.position_id>m.position_id?1:m.position_id>d.position_id?-1:0),s.data.away_team.bench){for(let d=0;d<s.data.away_team.bench.length;d++){this.subsTitle=!0;var b=s.data.away_team.bench[d].playerName.split(","),y=b[0].split(" "),g=b[1].trim().split(" "),c="";y.length==2||y.length==1?y[0].length<4?c=y[0]+" "+y[1]:c=y[0]:y.length==3?c=y[0]+" "+y[1]:y.length==4&&(c=y[1]+" "+y[2]+" "+y[3]);var a=g[g.length-1]!=""?g[g.length-1].charAt(0):g[g.length-2]?g[g.length-2].charAt(0):"";c=c.replace(",","");var i=a+". "+c,u=s.data.away_team.players.findIndex(E=>E.player_id==s.data.away_team.bench[d].playerID);this.playersAway.push({played:!1,name:s.data.away_team.bench[d].playerName,position:u!=-1?this.isFemale?this.positions[s.data.away_team.players[u].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[s.data.away_team.players[u].position_id-1].name:"",position_id:s.data.away_team.players[u].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+s.data.away_team.bench[d].playerID+".png",nationality:u!=-1&&s.data.away_team.players[u].nationality?s.data.away_team.players[u].nationality.substring(0,3):"",imgNationality:u!=-1?s.data.away_team.players[u].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:i,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:s.data.away_team.bench[d].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:s.data.away_team.bench[d].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:s.data.away_team.team_id})}this.playersAway.sort((d,m)=>d.position_id>m.position_id?1:m.position_id>d.position_id?-1:0)}}await this.getMXM(e)}catch(s){return Promise.reject(s)}},async getLineupProbablesHome(e){this.auxProbablesIDGameHome!=e.id&&(this.auxProbablesIDGameHome=e.id,this.cleaneDataHome(),this.getLineUpProbablesHome3D(e.id))},async getLineupProbablesAway(e){this.auxProbablesIDGameAway!=e.id&&(this.auxProbablesIDGameAway=e.id,this.cleaneDataAway(),this.getLineUpProbablesAway3D(e.id))},async getLineupProbables(e){var p={season_id:e.season_id,game_id:e.id};this.lastGetGame!=p.game_id&&(this.cleaneData(),await this.getLineUp(p.game_id)),this.lastGetGame=p.game_id},async changeCarouselItem(e){typeof e.game_id<"u"&&e.game_id!=this.gameInfoheader.id&&this.auxHistoricGameID!=e.game_id&&(this.auxHistoricGameID=e.game_id,this.cleaneData(),await this.getLineUp(e.game_id))},async changeCarouselItemRecent(e){if(e.selectedItem){var p={season_id:e.selectedItem.season_id,game_id:e.selectedItem.id};this.homeTeam.acronymrecientes=e.selectedItem.home_team_abbreviation,this.visitingTeam.acronymrecientes=e.selectedItem.away_team_abbreviation,this.cleaneData(),await this.getLineUp(p.game_id),this.lastGetGame=p.game_id}},async getHeaderInfo(e,p=null){const f=Xh.create({headers:{Authorization:`${this.tokenPremium}`}}),F=p||await f.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/seasons/"+e.season_id+"/games/"+e.game_id+"/lineups");if(this.gameInfoheader=F.data.game,this.selectedOption!="Postmatch"){for(let K=0;K<F.data.games_historic.length;K++)this.gamesHistoric.push({objgame:F.data.games_historic[K],game:F.data.games_historic[K].id,home_team_abbreviation:F.data.games_historic[K].home_team_abbreviation,away_team_abbreviation:F.data.games_historic[K].away_team_abbreviation,season:F.data.games_historic[K].season_id,description:F.data.games_historic[K].season_name+" | "+this.getRoundH(F.data.games_historic[K].matchday_abbreviation)+" | "+F.data.games_historic[K].home_team_abbreviation+" - "+F.data.games_historic[K].away_team_abbreviation});this.gamesRecientes[F.data.game.home_team_abbreviation]=[],this.gamesRecientes[F.data.game.away_team_abbreviation]=[],this.matchdaysPerTeam[F.data.game.home_team_abbreviation]=[],this.matchdaysPerTeam[F.data.game.away_team_abbreviation]=[];for(let K=0;K<F.data.home_team_games_recent.length;K++)this.gamesRecientes[F.data.game.home_team_abbreviation].push(F.data.home_team_games_recent[K]),this.matchdaysPerTeam[F.data.game.home_team_abbreviation].push({name:this.getRound(F.data.home_team_games_recent[K].matchday_abbreviation),id:F.data.home_team_games_recent[K].matchday_id});for(let K=0;K<F.data.away_team_games_recent.length;K++)this.gamesRecientes[F.data.game.away_team_abbreviation].push(F.data.away_team_games_recent[K]),this.matchdaysPerTeam[F.data.game.away_team_abbreviation].push({name:this.getRound(F.data.away_team_games_recent[K].matchday_abbreviation),id:F.data.away_team_games_recent[K].matchday_id})}},getRound(e){let p=e.replace("M","Jornada ");return p=p.replace("PO1","CFI"),p=p.replace("PO2","CFV"),p=p.replace("PO3","SFI"),p=p.replace("PO4","SFV"),p=p.replace("PO5","FI"),p=p.replace("PO6","FV"),p},getRoundH(e){let p=e.replace("M","J");return p=p.replace("PO1","CFI"),p=p.replace("PO2","CFV"),p=p.replace("PO3","SFI"),p=p.replace("PO4","SFV"),p=p.replace("PO5","FI"),p=p.replace("PO6","FV"),p},clickOnSelectOption(e){this.selectOptMenuheader=e,this.cleaneData(),this.auxProbablesIDGameAway=0,this.auxProbablesIDGameHome=0},async gameDataInfo(e,p=null){const f=Xh.create({headers:{Authorization:`${this.tokenPremium}`}}),F=p||await f.get(this.urlGames+e.season_id+"/games/"+e.game_id);this.homeTeam=F.data.teams[0],this.visitingTeam=F.data.teams[1];const K=F.data.games.find(k=>k.game_id===Number(k.game_id));this.gameForAnalysis=K},cleaneData(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.playersAway=[],this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.uniformAway="",this.uniformAwayG="",this.dataPlayersHome=[],this.dataPlayersAway=[],this.homeTeamLogo="",this.awayTeamLogo="",this.homeTeamName="",this.awayTeamName="",this.home_team_id=0,this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},getDataSocket(){X1("lineups.game."+this.game.game_id,this.socket),X1("mxm.game."+this.game.game_id,this.socket),X1("lineups.bench.game."+this.game.game_id,this.socket)},resetPlayUpdate(e,p,f,F){if(e=="Substitution")if(p=="Home"){var K=this.playersHome[f].substitutionDataID.split("@"),k=this.playersHome.findIndex(r=>r.playerId==K[1]),w=this.playersHome.findIndex(r=>r.playerId==K[2]);k!=-1&&(this.playersHome[k].substitutionOut=!1,this.playersHome[k].substitutionMin="",this.playersHome[k].substitutionDataID="",this.playersHome[k].idSubstitution=0),w!=-1&&(this.playersHome[w].substitutionIn=!1,this.playersHome[w].substitutionMin="",this.playersHome[w].substitutionDataID="",this.playersHome[w].idSubstitution=0)}else{var n=this.playersAway[f].substitutionDataID.split("@"),_=this.playersAway.findIndex(r=>r.playerId==n[1]),h=this.playersAway.findIndex(r=>r.playerId==n[2]);k!=-1&&(this.playersAway[_].substitutionOut=!1,this.playersAway[_].substitutionMin="",this.playersAway[_].substitutionDataID="",this.playersAway[_].idSubstitution=0),h!=-1&&(this.playersAway[h].substitutionIn=!1,this.playersAway[h].substitutionMin="",this.playersAway[h].substitutionDataID="",this.playersAway[h].idSubstitution=0)}e=="YellowCard"&&(p=="Home"?(this.playersHome[f].yellowcards=0,this.playersHome[f].yellowcardsMin=0,this.playersHome[f].idyellowcards=0):(this.playersAway[f].yellowcards=0,this.playersAway[f].yellowcardsMin=0,this.playersAway[f].idyellowcards=0)),e=="RedCard"&&(p=="Home"?(this.playersHome[f].redcards=0,this.playersHome[f].redcardsMin=0,this.playersHome[f].idredcards=0):(this.playersAway[f].redcards=0,this.playersAway[f].redcardsMin=0,this.playersAway[f].idredcards=0)),e=="Goals"&&(p=="Home"?(this.playersHome[F].goals=this.playersHome[F].goals-1,this.playersHome[F].goalsMin.splice(f,1),this.playersHome[F].idsGoals.splice(f,1)):(this.playersAway[F].goals=this.playersAway[F].goals-1,this.playersAway[F].goalsMin.splice(f,1),this.playersAway[F].idsGoals.splice(f,1)))},setUpResizeObserver(){if(window.ResizeObserver)eM=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),eM.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(e){try{const g=this.urlMXM+e;if(g===this.lastMXMUrl)return;this.lastMXMUrl=g;const c=await Xh.create({headers:{Authorization:`${this.tokenPremium}`}}).get(g);for(let a=0;a<this.playersHome.length;a++)this.playersHome[a].goalsMin=[],this.playersHome[a].idsGoals=[];for(let a=0;a<this.playersAway.length;a++)this.playersAway[a].goalsMin=[],this.playersAway[a].idsGoals=[];for(let a=0;a<c.data.plays.length;a++){if(c.data.plays[a].event_type_id==3){if(c.data.plays[a].team_id==this.home_team_id){if(this.playersHome.length>0){var p=c.data.plays[a].player_id.split("@"),f=this.playersHome.findIndex(i=>i.playerId==p[0]),F=this.playersHome.findIndex(i=>i.playerId==p[1]);f!=-1&&(this.playersHome[f].idSubstitution=c.data.plays[a].play_id,this.playersHome[f].substitutionOut=!0,this.playersHome[f].substitutionMin=c.data.plays[a].minute,this.playersHome[f].substitutionDataID=c.data.plays[a].team_id+"@"+c.data.plays[a].player_id),F!=-1&&(this.playersHome[F].idSubstitution=c.data.plays[a].play_id,this.playersHome[F].substitutionIn=!0,this.playersHome[F].substitutionMin=c.data.plays[a].minute,this.playersHome[F].substitutionDataID=c.data.plays[a].team_id+"@"+c.data.plays[a].player_id)}}else if(this.playersAway.length>0){var K=c.data.plays[a].player_id.split("@"),k=this.playersAway.findIndex(i=>i.playerId==K[0]),w=this.playersAway.findIndex(i=>i.playerId==K[1]);k!=-1&&(this.playersAway[k].idSubstitution=c.data.plays[a].play_id,this.playersAway[k].substitutionOut=!0,this.playersAway[k].substitutionMin=c.data.plays[a].minute,this.playersAway[k].substitutionDataID=c.data.plays[a].team_id+"@"+c.data.plays[a].player_id),w!=-1&&(this.playersAway[w].idSubstitution=c.data.plays[a].play_id,this.playersAway[w].substitutionIn=!0,this.playersAway[w].substitutionMin=c.data.plays[a].minute,this.playersAway[w].substitutionDataID=c.data.plays[a].team_id+"@"+c.data.plays[a].player_id)}}if(c.data.plays[a].event_type_id==1){if(c.data.plays[a].team_id==this.home_team_id){if(this.playersHome.length>0){var n=this.playersHome.findIndex(i=>i.playerId==c.data.plays[a].player_id);n!=-1&&(this.playersHome[n].goals+=1,this.playersHome[n].goalsMin.push(c.data.plays[a].minute),this.playersHome[n].idsGoals.push(c.data.plays[a].play_id))}}else if(this.playersAway.length>0){var _=this.playersAway.findIndex(i=>i.playerId==c.data.plays[a].player_id);_!=-1&&(this.playersAway[_].goals+=1,this.playersAway[_].goalsMin.push(c.data.plays[a].minute),this.playersAway[_].idsGoals.push(c.data.plays[a].play_id))}}if(c.data.plays[a].event_type_id==2){if(c.data.plays[a].category_id==8){if(c.data.plays[a].team_id==this.home_team_id){if(this.playersHome.length>0){var h=this.playersHome.findIndex(i=>i.playerId==c.data.plays[a].player_id);h!=-1&&(this.playersHome[h].yellowcards+=1,this.playersHome[h].yellowcardsMin=c.data.plays[a].minute,this.playersHome[h].idyellowcards=c.data.plays[a].play_id)}}else if(this.playersAway.length>0){var r=this.playersAway.findIndex(i=>i.playerId==c.data.plays[a].player_id);r!=-1&&(this.playersAway[r].yellowcards+=1,this.playersAway[r].yellowcardsMin=c.data.plays[a].minute,this.playersAway[r].idyellowcards=c.data.plays[a].play_id)}}if(c.data.plays[a].category_id==9){if(c.data.plays[a].team_id==this.home_team_id){if(this.playersHome.length>0){var b=this.playersHome.findIndex(i=>i.playerId==c.data.plays[a].player_id);b!=-1&&(this.playersHome[b].redcards+=1,this.playersHome[b].redcardsMin=c.data.plays[a].minute,this.playersHome[b].idredcards=c.data.plays[a].play_id)}}else if(this.playersAway.length>0){var y=this.playersAway.findIndex(i=>i.playerId==c.data.plays[a].player_id);y!=-1&&(this.playersAway[y].redcards+=1,this.playersAway[y].redcardsMin=c.data.plays[a].minute,this.playersAway[y].idredcards=c.data.plays[a].play_id)}}}}}catch(g){return Promise.reject(g)}},async getLineUp(e,p){if(e!=null)try{this.lastGetLineUpGameId=e,this.lastSection=this.selectOptMenuheader;const D=Xh.create({headers:{Authorization:`${this.tokenPremium}`}}),N=p||await D.get(this.url+e);if(!N||!N.data)throw new Error("There is not lineups for this game.");this.dataPlayersHome=N.data.home_team.players,this.dataPlayersAway=N.data.away_team.players,N.data.home_team.starting_lineup[0].lineup.sort((U,G)=>U.position_id>G.position_id?1:G.position_id>U.position_id?-1:0);for(let U=0;U<N.data.home_team.starting_lineup[0].lineup.length;U++){this.home_team_id=N.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+N.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+N.data.home_team.team_id+"_g.svg","home",0);var f=N.data.home_team.starting_lineup[0].lineup[U].player_name.split(","),F=f[0].split(" "),K=f[1].trim().split(" "),k="";F.length==2||F.length==1?F[0].length<4?k=F[0]+" "+F[1]:k=F[0]:F.length==3?k=F[0]+" "+F[1]:F.length==4&&(k=F[1]+" "+F[2]+" "+F[3]);var w=K[K.length-1]!=""?K[K.length-1].charAt(0):K[K.length-2]?K[K.length-2].charAt(0):"";k=k.replace(",","");var n=w+". "+k,_=N.data.home_team.starting_lineup[0].lineup[U].x,h=_*50/100,r=N.data.home_team.players.findIndex(G=>G.player_id==N.data.home_team.starting_lineup[0].lineup[U].player_id);this.playersHome.push({played:!0,name:N.data.home_team.starting_lineup[0].lineup[U].player_name,position:this.isFemale?this.positions[N.data.home_team.players[r].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[N.data.home_team.players[r].position_id-1].name,position_id:N.data.home_team.players[r].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+N.data.home_team.starting_lineup[0].lineup[U].player_id+".png",nationality:N.data.home_team.players[r].nationality?N.data.home_team.players[r].nationality.substring(0,3):"",imgNationality:N.data.home_team.players[r].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:n,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+N.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:N.data.home_team.starting_lineup[0].lineup[U].jersey_number,positionX:N.data.home_team.starting_lineup[0].lineup[U].y-13,positionY:h*.9,positionXOrigin:N.data.home_team.starting_lineup[0].lineup[U].y-17,positionYOrigin:N.data.home_team.starting_lineup[0].lineup[U].x-2,playerId:N.data.home_team.starting_lineup[0].lineup[U].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:N.data.home_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+N.data.home_team.team_id+".png",this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+N.data.home_team.team_id+".png",this.selectOptMenuheader=="Historicos"?(N.data.home_team.team_id==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),N.data.home_team.team_id==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym)):this.homeTeamAbrev=this.homeTeam.acronymrecientes}if(this.playersHome.sort((U,G)=>U.position_id>G.position_id?1:G.position_id>U.position_id?-1:0),N.data.home_team.bench){for(let U=0;U<N.data.home_team.bench.length;U++){this.subsTitle=!0;var b=N.data.home_team.bench[U].playerName.split(","),y=b[0].split(" "),g=b[1].trim().split(" "),c="";y.length==2||y.length==1?y[0].length<4?c=y[0]+" "+y[1]:c=y[0]:y.length==3?c=y[0]+" "+y[1]:y.length==4&&(c=y[1]+" "+y[2]+" "+y[3]);var a=g[g.length-1]!=""?g[g.length-1].charAt(0):g[g.length-2]?g[g.length-2].charAt(0):"";c=c.replace(",","");var i=a+". "+c,u=N.data.home_team.players.findIndex(G=>G.player_id==N.data.home_team.bench[U].playerID);this.playersHome.push({played:!1,name:N.data.home_team.bench[U].playerName,position:u!=-1?this.isFemale?this.positions[N.data.home_team.players[u].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[N.data.home_team.players[u].position_id-1].name:"",position_id:N.data.home_team.players[u].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+N.data.home_team.bench[U].playerID+".png",nationality:u!=-1&&N.data.home_team.players[u].nationality?N.data.home_team.players[u].nationality.substring(0,3):"",imgNationality:u!=-1?N.data.home_team.players[u].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:i,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+N.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:N.data.home_team.bench[U].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:N.data.home_team.bench[U].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:N.data.home_team.team_id})}this.playersHome.sort((U,G)=>U.position_id>G.position_id?1:G.position_id>U.position_id?-1:0)}for(let U=0;U<N.data.away_team.starting_lineup[0].lineup.length;U++){this.away_team_id=N.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+N.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+N.data.away_team.team_id+"_g.svg","away",0);var s=N.data.away_team.starting_lineup[0].lineup[U].player_name.split(","),d=s[0].split(" "),m=s[1].trim().split(" "),v="";d.length==2||d.length==1?d[0].length<4?v=d[0]+" "+d[1]:v=d[0]:d.length==3?v=d[0]+" "+d[1]:d.length==4&&(v=d[1]+" "+d[2]+" "+d[3]);var T=m[K.length-1]!=""?m[m.length-1].charAt(0):m[m.length-2]?m[m.length-2].charAt(0):"";v=v.replace(",","");var A=T+". "+v,C=N.data.away_team.starting_lineup[0].lineup[U].x,P=100-(100-C)*50/100;P=P*.9;var L=N.data.away_team.players.findIndex(G=>G.player_id==N.data.away_team.starting_lineup[0].lineup[U].player_id);this.playersAway.push({played:!0,name:N.data.away_team.starting_lineup[0].lineup[U].player_name,position:this.isFemale?this.positions[N.data.away_team.players[L].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[N.data.away_team.players[L].position_id-1].name,position_id:N.data.away_team.players[L].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+N.data.away_team.starting_lineup[0].lineup[U].player_id+".png",nationality:N.data.away_team.players[L].nationality?N.data.away_team.players[L].nationality.substring(0,3):"",imgNationality:N.data.away_team.players[L].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:A,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+N.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:N.data.away_team.starting_lineup[0].lineup[U].jersey_number,positionX:N.data.away_team.starting_lineup[0].lineup[U].y-13,positionY:P,positionXOrigin:N.data.away_team.starting_lineup[0].lineup[U].y-17,positionYOrigin:N.data.away_team.starting_lineup[0].lineup[U].x-7,playerId:N.data.away_team.starting_lineup[0].lineup[U].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:N.data.away_team.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+N.data.away_team.team_id+".png",this.selectOptMenuheader=="Historicos"?(N.data.away_team.team_id==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym),N.data.away_team.team_id==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym)):this.awayTeamAbrev=this.visitingTeam.acronymrecientes}if(this.playersAway.sort((U,G)=>U.position_id>G.position_id?1:G.position_id>U.position_id?-1:0),N.data.away_team.bench){for(let U=0;U<N.data.away_team.bench.length;U++){this.subsTitle=!0;var E=N.data.away_team.bench[U].playerName.split(","),I=E[0].split(" "),M=E[1].trim().split(" "),S="";I.length==2||I.length==1?I[0].length<4?S=I[0]+" "+I[1]:S=I[0]:I.length==3?S=I[0]+" "+I[1]:I.length==4&&(S=I[1]+" "+I[2]+" "+I[3]);var B=M[M.length-1]!=""?M[M.length-1].charAt(0):M[M.length-2]?M[M.length-2].charAt(0):"";S=S.replace(",","");var x=B+". "+S,O=N.data.away_team.players.findIndex(G=>G.player_id==N.data.away_team.bench[U].playerID);this.playersAway.push({played:!1,name:N.data.away_team.bench[U].playerName,position:O!=-1?this.isFemale?this.positions[N.data.away_team.players[O].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[N.data.away_team.players[O].position_id-1].name:"",position_id:N.data.away_team.players[O].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+N.data.away_team.bench[U].playerID+".png",nationality:O!=-1&&N.data.away_team.players[O].nationality?N.data.away_team.players[O].nationality.substring(0,3):"",imgNationality:O!=-1?N.data.away_team.players[O].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:x,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+N.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:N.data.away_team.bench[U].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:N.data.away_team.bench[U].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:N.data.away_team.team_id})}this.playersAway.sort((U,G)=>U.position_id>G.position_id?1:G.position_id>U.position_id?-1:0)}setTimeout(async()=>{await this.getMXM(e)},500)}catch(D){return Promise.reject(D)}},closeChange(){this.subsActive=!1},imageExists(e,p,f){var F=new XMLHttpRequest,K=0;p=="away"?f==1?this.uniformAway==""&&(F.open("HEAD",e,!1),F.send(),K=1):this.uniformAwayG==""&&(F.open("HEAD",e,!1),F.send(),K=1):f==1?this.uniformHome==""&&(F.open("HEAD",e,!1),F.send(),K=1):this.uniformHomeG==""&&(F.open("HEAD",e,!1),F.send(),K=1),K==1&&(F.status==200?p=="away"?f==1?this.uniformAway="url("+e+")":this.uniformAwayG="url("+e+")":f==1?this.uniformHome="url("+e+")":this.uniformHomeG="url("+e+")":p=="away"?f==1?this.uniformAway="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita.svg)":this.uniformAwayG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita_g.svg)":f==1?this.uniformHome="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local.svg)":this.uniformHomeG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local_g.svg)")},viewChange(e){var p=e.split("@");if(p[0]==this.home_team_id){var f=this.playersHome.findIndex(w=>w.playerId==p[1]),F=this.playersHome.findIndex(w=>w.playerId==p[2]);f!=-1?(this.substitutionModal.min=this.playersHome[f].substitutionMin,this.substitutionModal.in.name=this.playersHome[f].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersHome[f].imgTeam,this.substitutionModal.in.shirt_number=this.playersHome[f].shirt_number,this.substitutionModal.in.playerImg=this.playersHome[f].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersHome[f].imgNationality):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),F!=-1?(this.substitutionModal.out.name=this.playersHome[F].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[F].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[F].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[F].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[F].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}else{var K=this.playersAway.findIndex(w=>w.playerId==p[1]),k=this.playersAway.findIndex(w=>w.playerId==p[2]);K!=-1?(this.substitutionModal.min=this.playersAway[K].substitutionMin,this.substitutionModal.in.name=this.playersAway[K].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[K].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[K].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[K].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[K].shirt_number):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),k!=-1?(this.substitutionModal.out.name=this.playersAway[k].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersAway[k].imgTeam,this.substitutionModal.out.playerImg=this.playersAway[k].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersAway[k].imgNationality,this.substitutionModal.out.shirt_number=this.playersAway[k].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}this.subsActive=!0},viewLineupTeam(e){this.teamActive=e}}},Mye={class:"size-browser-class"},Iye={class:"lineup-players is-centered"},Pye={style:{width:"92%",margin:"0 auto","margin-top":"10px"}},Lye={class:"modal-substitutions__substitution-container"},Bye={class:"modal-substitutions__substitution-container__header"},Oye={style:{"margin-left":"32px"}},zye=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn-close.png"},null,-1),Dye=[zye],Fye={class:"modal-substitutions__substitution-container__players-container"},Nye={class:"substitution-player-data-container"},Rye={class:"substitution-player-data-container__img-player"},Vye=["src"],jye={class:"substitution-player-data-container__img-player__team"},Uye=["src"],$ye={class:"substitution-player-data-container__name-player"},Gye={class:"substitution-player-data-container__position-player"},Hye={class:"substitution-player-data-container__shirt-player",style:{"padding-left":"30px"}},qye={key:0,class:"substitution-player-data-container__shirt-player__circle"},Wye={key:1},Zye=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_salio.png"},null,-1),Xye=[Zye],Yye={class:"substitution-player-data-container__substitution-player"},Kye={class:"substitution-indicator nomargin"},Jye=t.createElementVNode("div",null,[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_salio.png"})],-1),Qye={class:"substitution-player-data-container__center"},eve=t.createElementVNode("div",{class:"substitution-player-data-container__border"},null,-1),tve={class:"substitution-player-data-container__minute"},rve={class:"substitution-player-data-container"},nve={class:"substitution-player-data-container__img-player"},ave=["src"],ive={class:"substitution-player-data-container__img-player__team"},ove=["src"],sve={class:"substitution-player-data-container__name-player"},lve={class:"substitution-player-data-container__position-player"},cve={class:"substitution-player-data-container__shirt-player",style:{"padding-right":"20px"}},uve={key:0},dve=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_ingreso.png"},null,-1),hve=[dve],pve={key:1,class:"substitution-player-data-container__shirt-player__circle"},fve={class:"substitution-player-data-container__substitution-player"},mve={class:"substitution-indicator nomargin"},gve=t.createElementVNode("div",null,[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_ingreso.png"})],-1),yve=["onClick"],vve=t.createElementVNode("img",{src:q4},null,-1),_ve=[vve],bve=["onClick"],xve=t.createElementVNode("img",{src:q4},null,-1),wve=[xve],kve={key:0,class:"cont-lineup-gsc-componente"},Sve={class:"shield-team-cont homecolor"},Tve=["src"],Cve={class:"shield-team-cont awaycolor"},Ave=["src"],Eve={key:0,class:"header-lineup-shield-team home"},Mve={class:"shield-team-cont homecolor"},Ive=["src"],Pve={class:"header-lineup-shield-team-wrapper"},Lve={class:"header-lineup-shield-team-wrapper header-lineup-shield-team-wrapper-spacer"},Bve=t.createElementVNode("div",{class:"line-substitutions"},"SUPLENTES",-1),Ove={key:0,class:"header-lineup-shield-team away"},zve={class:"shield-team-cont awaycolor"},Dve=["src"],Fve={class:"header-lineup-shield-team-wrapper"},Nve={class:"header-lineup-shield-team-wrapper header-lineup-shield-team-wrapper-spacer"},Rve=t.createElementVNode("div",{class:"line-substitutions"},"SUPLENTES",-1),Vve=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/graf-busqueda@3x.png",width:"74"},null,-1),jve=[Vve],Uve=t.createElementVNode("br",null,null,-1);function $ve(e,p,f,F,K,k){const w=t.resolveComponent("HeaderPlayerPostmatch"),n=t.resolveComponent("HeaderPlayerHistorico"),_=t.resolveComponent("HeaderPlayerRecientes"),h=t.resolveComponent("HeaderPlayerProbables"),r=t.resolveComponent("CardPlayer");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",Mye,t.toDisplayString(k.sizeBrowser),1),t.createElementVNode("div",Iye,[t.createElementVNode("div",Pye,[f.selectedOption=="Postmatch"?(t.openBlock(),t.createBlock(w,{key:0,onClickOnSelectOption:k.clickOnSelectOption,"option-selected":K.selectOptMenuheader,"width-size":K.gamesContainerWidth,"game-info":K.gameInfoheader,"is-live":f.isLive,onInput:k.changeCarouselItem,"matchdays-default":K.matchdaysPerTeam,"game-historic":K.gamesHistoric},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","is-live","onInput","matchdays-default","game-historic"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[K.selectOptMenuheader=="Historicos"?(t.openBlock(),t.createBlock(n,{key:0,onClickOnSelectOption:k.clickOnSelectOption,"option-selected":K.selectOptMenuheader,"width-size":K.gamesContainerWidth,"game-info":K.gameInfoheader,onInput:k.changeCarouselItem,"matchdays-default":K.matchdaysPerTeam,"game-historic":K.gamesHistoric,"game-recientes":Object.keys(K.gameInfoheader).length>0?K.gamesRecientes[K.gameInfoheader.home_team_abbreviation].length+K.gamesRecientes[K.gameInfoheader.away_team_abbreviation].length:0},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","onInput","matchdays-default","game-historic","game-recientes"])):t.createCommentVNode("",!0),K.selectOptMenuheader=="Recientes"?(t.openBlock(),t.createBlock(_,{onClickOnSelectOption:k.clickOnSelectOption,style:{"margin-bottom":"100px"},key:K.keyUpdateRecientes,"option-selected":K.selectOptMenuheader,"width-size":K.gamesContainerWidth,"game-info":K.gameInfoheader,"player-home":K.playersHome,"player-away":K.playersAway,"matchdays-default":K.matchdaysPerTeam,onInput:k.changeCarouselItemRecent,"game-recientes":K.gamesRecientes},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","player-home","player-away","matchdays-default","onInput","game-recientes"])):t.createCommentVNode("",!0),K.selectOptMenuheader=="Probables"?(t.openBlock(),t.createBlock(h,{key:2,onClickOnSelectOption:k.clickOnSelectOption,style:{"margin-bottom":"80px"},"matchdays-default":K.matchdaysPerTeam,"option-selected":K.selectOptMenuheader,"width-size":K.gamesContainerWidth,"game-info":K.gameInfoheader,onChangehome:k.getLineupProbablesHome,onChangeaway:k.getLineupProbablesAway,"game-recientes":K.gamesRecientes},null,8,["onClickOnSelectOption","matchdays-default","option-selected","width-size","game-info","onChangehome","onChangeaway","game-recientes"])):t.createCommentVNode("",!0)],64)),t.createElementVNode("div",{class:t.normalizeClass(["lineup-players__container",{fallback:K.gamesContainerWidth===0}]),ref:"gamesContainer"},[t.createElementVNode("div",{class:t.normalizeClass(k.fieldcontainerClass)},[t.createElementVNode("div",{class:t.normalizeClass(["modal-substitutions",K.subsActive?"activeSub":"deactiveSub"])},[t.createElementVNode("div",Lye,[t.createElementVNode("div",Bye,[t.createElementVNode("span",Oye,[t.createTextVNode("Cambio "),t.createElementVNode("span",{class:"close-susbtitutions",onClick:p[0]||(p[0]=b=>k.closeChange())},Dye)])]),t.createElementVNode("div",Fye,[t.createElementVNode("div",Nye,[t.createElementVNode("div",Rye,[K.substitutionModal.in.playerImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:K.substitutionModal.in.playerImg,width:"72",alt:"Jugador"},null,8,Vye)):t.createCommentVNode("",!0),t.createElementVNode("div",jye,[K.substitutionModal.in.teamImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:K.substitutionModal.in.teamImg,width:"28",alt:"team"},null,8,Uye)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"substitution-player-data-container__img-player__img-cont",style:t.normalizeStyle({backgroundImage:"url("+K.substitutionModal.in.nationalityimg+")"})},null,4)]),t.createElementVNode("div",$ye,t.toDisplayString(K.substitutionModal.in.name),1),t.createElementVNode("div",Gye,t.toDisplayString(K.substitutionModal.in.position),1),t.createElementVNode("div",Hye,[K.substitutionModal.in.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",qye,t.toDisplayString(K.substitutionModal.in.shirt_number),1)):t.createCommentVNode("",!0),K.substitutionModal.in.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",Wye,Xye)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Yye,[t.createElementVNode("template",null,[t.createElementVNode("div",Kye,[t.createElementVNode("div",null,t.toDisplayString(K.substitutionModal.min)+"'",1),Jye])])])]),t.createElementVNode("div",Qye,[eve,t.createElementVNode("div",tve,t.toDisplayString(K.substitutionModal.min)+"' ",1)]),t.createElementVNode("div",rve,[t.createElementVNode("div",nve,[K.substitutionModal.out.playerImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:K.substitutionModal.out.playerImg,width:"72",alt:"Jugador"},null,8,ave)):t.createCommentVNode("",!0),t.createElementVNode("div",ive,[K.substitutionModal.out.teamImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:K.substitutionModal.out.teamImg,width:"28",alt:"team"},null,8,ove)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"substitution-player-data-container__img-player__img-cont",style:t.normalizeStyle({backgroundImage:"url("+K.substitutionModal.out.nationalityimg+")"})},null,4)]),t.createElementVNode("div",sve,t.toDisplayString(K.substitutionModal.out.name),1),t.createElementVNode("div",lve,t.toDisplayString(K.substitutionModal.out.position),1),t.createElementVNode("div",cve,[K.substitutionModal.out.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",uve,hve)):t.createCommentVNode("",!0),K.substitutionModal.out.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",pve,t.toDisplayString(K.substitutionModal.out.shirt_number),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",fve,[t.createElementVNode("template",null,[t.createElementVNode("div",mve,[t.createElementVNode("div",null,t.toDisplayString(K.substitutionModal.min)+"'",1),gve])])])])])])],2),t.createElementVNode("div",{class:t.normalizeClass(k.canchacontainerClass)},[(K.gameForAnalysis.game_status==4||K.gameForAnalysis.game_status==1)&&K.gameForAnalysis.is_live==0&&k.numPlayer==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([k.notificationnolineupsClass])}," Las alineaciones estarán disponibles unos minutos antes de que inicie el partido. ",2)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(K.playersHome,(b,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"jersey_home"},[b.played?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([k.itemplayerfieldClass,K.gamesContainerWidth<740?K.teamActive=="home"?"active":"disabled":"",K.gamesContainerWidth<740?"movil":""]),style:t.normalizeStyle(K.movil?{top:b.positionXOrigin+"%",left:b.positionYOrigin+"%"}:{top:b.positionX+"%",left:b.positionY+2+"%"})},[t.createElementVNode("div",{class:t.normalizeClass(k.jerseyitemplayerClass),style:t.normalizeStyle(b.position!="Portero"?{backgroundImage:K.uniformHome}:{backgroundImage:K.uniformHomeG})},[t.createElementVNode("div",{class:t.normalizeClass([k.yellowcarddivclass,b.yellowcards>0&&b.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([k.redcarddivClass,b.yellowcards==0&&b.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([k.yellowredcarddivClass,b.yellowcards>0&&b.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([k.goalcarddivClass,b.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),t.createElementVNode("div",{class:t.normalizeClass(k.infoplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(k.infonameplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(["num-item-new",[K.gamesContainerWidth<740?"movil":""]])},t.toDisplayString(b.shirt_number),3),t.createTextVNode(" "+t.toDisplayString(b.abrevNamePlayer),1)],2),b.substitutionIn||b.substitutionOut?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(k.infochangeplayeritemClass),onClick:g=>k.viewChange(b.substitutionDataID)},_ve,10,yve)):t.createCommentVNode("",!0)],2)],6)):t.createCommentVNode("",!0)],64))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(K.playersAway,(b,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"jersey_away"},[b.played?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([k.itemplayerfieldClass,K.gamesContainerWidth<740?K.teamActive=="away"?"active":"disabled":"",K.gamesContainerWidth<740?"movil":""]),style:t.normalizeStyle(K.movil?{top:b.positionXOrigin+"%",left:b.positionYOrigin+"%"}:{top:b.positionX+"%",left:b.positionY+"%"})},[t.createElementVNode("div",{class:t.normalizeClass(k.jerseyitemplayerClass),style:t.normalizeStyle(b.position!="Portero"?{backgroundImage:K.uniformAway}:{backgroundImage:K.uniformAwayG})},[t.createElementVNode("div",{class:t.normalizeClass([k.yellowcarddivclass,b.yellowcards>0&&b.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([k.redcarddivClass,b.yellowcards==0&&b.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([k.yellowredcarddivClass,b.yellowcards>0&&b.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([k.goalcarddivClass,b.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),t.createElementVNode("div",{class:t.normalizeClass(k.infoplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(k.infonameplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(["num-item-new-away",[K.gamesContainerWidth<740?"movil":""]])},t.toDisplayString(b.shirt_number),3),t.createTextVNode(" "+t.toDisplayString(b.abrevNamePlayer),1)],2),b.substitutionIn||b.substitutionOut?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(k.infochangeplayeritemClass),onClick:g=>k.viewChange(b.substitutionDataID)},wve,10,bve)):t.createCommentVNode("",!0)],2)],6)):t.createCommentVNode("",!0)],64))),128))],2)],2),(K.gameForAnalysis.game_status==4||K.gameForAnalysis.game_status==1)&&K.gameForAnalysis.is_live==0&&k.numPlayer==0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",kve,[t.createElementVNode("div",{class:t.normalizeClass(k.containerlineupsClass)},[t.createElementVNode("div",{class:t.normalizeClass(k.menuTeamsClass)},[t.createElementVNode("div",{class:"header-lineup-shield-team home",style:t.normalizeStyle([{cursor:"pointer"},K.teamActive=="home"?"background-color: #214e67; border-radius: 10px;":""]),onClick:p[1]||(p[1]=b=>k.viewLineupTeam("home"))},[t.createElementVNode("div",Sve,[K.homeTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:K.homeTeamLogo,class:"gsc-logo-team",width:"28"},null,8,Tve)):t.createCommentVNode("",!0)]),t.createElementVNode("div",null,t.toDisplayString(K.homeTeamAbrev),1)],4),t.createElementVNode("div",{class:"header-lineup-shield-team away",style:t.normalizeStyle([{cursor:"pointer"},K.teamActive=="away"?"background-color: #214e67; border-radius: 10px;":""]),onClick:p[2]||(p[2]=b=>k.viewLineupTeam("away"))},[t.createElementVNode("div",null,t.toDisplayString(K.awayTeamAbrev),1),t.createElementVNode("div",Cve,[K.awayTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:K.awayTeamLogo,class:"gsc-logo-team",width:"28"},null,8,Ave)):t.createCommentVNode("",!0)])],4)],2),K.teamActive=="home"||K.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(k.containerClassHome)},[K.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",Eve,[t.createElementVNode("div",Mve,[K.homeTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:K.homeTeamLogo,class:"gsc-logo-team",width:"28"},null,8,Ive)):t.createCommentVNode("",!0)]),t.createElementVNode("div",null,t.toDisplayString(K.homeTeamAbrev),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",Pve,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(K.playersHome,(b,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y},[b.played?(t.openBlock(),t.createBlock(r,{key:0,type:1,onOpenProfile:k.onOpenProfile,position:k.positionClass,data:{color:y%2==0?"#0d1d29":"#172531",season:f.game.season_id,img:b.imgPlayer,playerid:b.playerId,teamid:b.id_team,name:b.name,position:b.position,nation:b.imgNationality,shirt:b.shirt_number,yellowcard:b.yellowcards,redcard:b.redcards,yellowcardmin:b.yellowcardsMin,redcardmin:b.redcardsMin,goalsMin:b.goalsMin,substitutionIn:b.substitutionIn,substitutionOut:b.substitutionOut,substitutionMin:b.substitutionMin,section:K.selectOptMenuheader,type:f.selectedOption}},null,8,["onOpenProfile","position","data"])):t.createCommentVNode("",!0)],64))),128))]),t.createElementVNode("div",Lve,[Bve,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(K.playersHome,(b,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y},[b.played?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(r,{key:0,type:1,onOpenProfile:k.onOpenProfile,position:k.positionClass,data:{color:y%2==0?"#0d1d29":"#172531",season:f.game.season_id,img:b.imgPlayer,playerid:b.playerId,teamid:b.id_team,name:b.name,position:b.position,nation:b.imgNationality,shirt:b.shirt_number,yellowcard:b.yellowcards,redcard:b.redcards,yellowcardmin:b.yellowcardsMin,redcardmin:b.redcardsMin,goalsMin:b.goalsMin,substitutionIn:b.substitutionIn,substitutionOut:b.substitutionOut,substitutionMin:b.substitutionMin,section:K.selectOptMenuheader,type:f.selectedOption}},null,8,["onOpenProfile","position","data"]))],64))),128))])],2)):t.createCommentVNode("",!0),K.teamActive=="away"||K.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(k.containerClassAway)},[K.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",Ove,[t.createElementVNode("div",null,t.toDisplayString(K.awayTeamAbrev),1),t.createElementVNode("div",zve,[K.awayTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:K.awayTeamLogo,class:"gsc-logo-team",width:"28"},null,8,Dve)):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("div",Fve,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(K.playersAway,(b,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"line_away"},[b.played?(t.openBlock(),t.createBlock(r,{key:0,onOpenProfile:k.onOpenProfile,type:2,position:k.positionClass2,data:{color:y%2==0?"#0d1d29":"#172531",season:f.game.season_id,playerid:b.playerId,teamid:b.id_team,img:b.imgPlayer,name:b.name,position:b.position,nation:b.imgNationality,shirt:b.shirt_number,yellowcard:b.yellowcards,redcard:b.redcards,yellowcardmin:b.yellowcardsMin,redcardmin:b.redcardsMin,goalsMin:b.goalsMin,substitutionIn:b.substitutionIn,substitutionOut:b.substitutionOut,substitutionMin:b.substitutionMin,section:K.selectOptMenuheader,type:f.selectedOption}},null,8,["onOpenProfile","position","data"])):t.createCommentVNode("",!0)],64))),128))]),t.createElementVNode("div",Nve,[Rve,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(K.playersAway,(b,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"line_away"},[b.played?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(r,{key:0,onOpenProfile:k.onOpenProfile,type:2,position:k.positionClass2,data:{color:y%2==0?"#0d1d29":"#172531",season:f.game.season_id,playerid:b.playerId,teamid:b.id_team,img:b.imgPlayer,name:b.name,position:b.position,nation:b.imgNationality,shirt:b.shirt_number,yellowcard:b.yellowcards,redcard:b.redcards,yellowcardmin:b.yellowcardsMin,redcardmin:b.redcardsMin,goalsMin:b.goalsMin,substitutionIn:b.substitutionIn,substitutionOut:b.substitutionOut,substitutionMin:b.substitutionMin,section:K.selectOptMenuheader,type:f.selectedOption}},null,8,["onOpenProfile","position","data"]))],64))),128))])],2)):t.createCommentVNode("",!0)],2)])),(K.gameForAnalysis.game_status==4||K.gameForAnalysis.game_status==1)&&K.gameForAnalysis.is_live==0&&k.numPlayer==0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(k.containernolineups)},[t.createElementVNode("div",{class:t.normalizeClass([k.containernolineups+"__img-search",K.gamesContainerWidth<740?"movil":""])},jve,2),t.createElementVNode("div",{class:t.normalizeClass([k.containernolineups+"__title-info",K.gamesContainerWidth<740?"movil":""])}," Alineaciones sin definir ",2),t.createElementVNode("div",{class:t.normalizeClass([k.containernolineups+"__subtitle-info",K.gamesContainerWidth<740?"movil":""])},[t.createTextVNode(" Los equipos no han presentado sus alineaciones. Estas "),Uve,t.createTextVNode("serán dadas minutos antes del inicio del partido. ")],2)],2)):t.createCommentVNode("",!0)],2)])])])}const Gve=Yh(Eye,[["render",$ve]]),Hve={components:{GSCLineups2D:fde,GSCLineups3D:Gve},props:{isFemale:{type:Boolean,default:!1},selectedOption:{type:String,default:"Historicos"},game:{type:Object,default:()=>{}},isLive:{type:Boolean,default:!1},type:{type:String,default:"2D"},socket:{type:Object,default:()=>{}}},watch:{},data(){return{}},computed:{},methods:{onOpenProfile(e){this.$emit("onOpenProfile",e)}}};function qve(e,p,f,F,K,k){const w=t.resolveComponent("GSCLineups2D"),n=t.resolveComponent("GSCLineups3D");return t.openBlock(),t.createElementBlock("div",null,[f.type=="2D"?(t.openBlock(),t.createBlock(w,{key:0,"selected-option":f.selectedOption,game:f.game,socket:f.socket},null,8,["selected-option","game","socket"])):t.createCommentVNode("",!0),f.type=="3D"?(t.openBlock(),t.createBlock(n,{key:1,"is-live":f.isLive,isFemale:f.isFemale,onOnOpenProfile:k.onOpenProfile,"selected-option":f.selectedOption,game:f.game,socket:f.socket},null,8,["is-live","isFemale","onOnOpenProfile","selected-option","game","socket"])):t.createCommentVNode("",!0)])}const tM=Yh(Hve,[["render",qve]]),lAt="",cAt="",Wve={class:"alineaciones-container"},Zve=ao({__name:"GSCLineupsMain",props:{tournamentSelected:{type:Object,default:()=>({})},isWidget:{type:Boolean,default:!1},game:{type:Object,default:()=>({gameId:79623,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:10,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:()=>({})}},emits:["onOpenProfile"],setup(e,{emit:p}){const f=e,F=t.ref(0);t.watch(()=>f.game,k=>{F.value=k.gameId},{deep:!0,immediate:!0});function K(k){f.isWidget||p("onOpenProfile",k)}return(k,w)=>(t.openBlock(),t.createElementBlock("div",Wve,[e.game.status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(tM),{socket:e.socket,key:F.value,type:"3D","is-female":e.tournamentSelected.is_female==1,"is-live":e.game.is_live==1,"selected-option":"Historicos",game:{game_id:e.game.gameId,season_id:e.game.seasonId,prematch:!1},onOnOpenProfile:K},null,8,["socket","is-female","is-live","game"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(tM),{"is-female":e.tournamentSelected.is_female==1,socket:e.socket,key:F.value,type:"3D","is-live":e.game.is_live==1,"selected-option":"Postmatch",game:{game_id:e.game.gameId,season_id:e.game.seasonId,prematch:!1},onOnOpenProfile:K},null,8,["is-female","socket","is-live","game"])):t.createCommentVNode("",!0)],64))]))}},[["__scopeId","data-v-f877232a"]]);function rM(e,p){return function(){return e.apply(p,arguments)}}const{toString:Xve}=Object.prototype,{getPrototypeOf:t6}=Object,sb=(e=>p=>{const f=Xve.call(p);return e[f]||(e[f]=f.slice(8,-1).toLowerCase())})(Object.create(null)),Bf=e=>(e=e.toLowerCase(),p=>sb(p)===e),lb=e=>p=>typeof p===e,{isArray:Y1}=Array,Ev=lb("undefined");function Yve(e){return e!==null&&!Ev(e)&&e.constructor!==null&&!Ev(e.constructor)&&_p(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const nM=Bf("ArrayBuffer");function Kve(e){let p;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?p=ArrayBuffer.isView(e):p=e&&e.buffer&&nM(e.buffer),p}const Jve=lb("string"),_p=lb("function"),aM=lb("number"),cb=e=>e!==null&&typeof e=="object",Qve=e=>e===!0||e===!1,ub=e=>{if(sb(e)!=="object")return!1;const p=t6(e);return(p===null||p===Object.prototype||Object.getPrototypeOf(p)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},e2e=Bf("Date"),t2e=Bf("File"),r2e=Bf("Blob"),n2e=Bf("FileList"),a2e=e=>cb(e)&&_p(e.pipe),i2e=e=>{let p;return e&&(typeof FormData=="function"&&e instanceof FormData||_p(e.append)&&((p=sb(e))==="formdata"||p==="object"&&_p(e.toString)&&e.toString()==="[object FormData]"))},o2e=Bf("URLSearchParams"),[s2e,l2e,c2e,u2e]=["ReadableStream","Request","Response","Headers"].map(Bf),d2e=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Mv(e,p,{allOwnKeys:f=!1}={}){if(e===null||typeof e>"u")return;let F,K;if(typeof e!="object"&&(e=[e]),Y1(e))for(F=0,K=e.length;F<K;F++)p.call(null,e[F],F,e);else{const k=f?Object.getOwnPropertyNames(e):Object.keys(e),w=k.length;let n;for(F=0;F<w;F++)n=k[F],p.call(null,e[n],n,e)}}function iM(e,p){p=p.toLowerCase();const f=Object.keys(e);let F=f.length,K;for(;F-- >0;)if(K=f[F],p===K.toLowerCase())return K;return null}const yg=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),oM=e=>!Ev(e)&&e!==yg;function r6(){const{caseless:e}=oM(this)&&this||{},p={},f=(F,K)=>{const k=e&&iM(p,K)||K;ub(p[k])&&ub(F)?p[k]=r6(p[k],F):ub(F)?p[k]=r6({},F):Y1(F)?p[k]=F.slice():p[k]=F};for(let F=0,K=arguments.length;F<K;F++)arguments[F]&&Mv(arguments[F],f);return p}const h2e=(e,p,f,{allOwnKeys:F}={})=>(Mv(p,(K,k)=>{f&&_p(K)?e[k]=rM(K,f):e[k]=K},{allOwnKeys:F}),e),p2e=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),f2e=(e,p,f,F)=>{e.prototype=Object.create(p.prototype,F),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:p.prototype}),f&&Object.assign(e.prototype,f)},m2e=(e,p,f,F)=>{let K,k,w;const n={};if(p=p||{},e==null)return p;do{for(K=Object.getOwnPropertyNames(e),k=K.length;k-- >0;)w=K[k],(!F||F(w,e,p))&&!n[w]&&(p[w]=e[w],n[w]=!0);e=f!==!1&&t6(e)}while(e&&(!f||f(e,p))&&e!==Object.prototype);return p},g2e=(e,p,f)=>{e=String(e),(f===void 0||f>e.length)&&(f=e.length),f-=p.length;const F=e.indexOf(p,f);return F!==-1&&F===f},y2e=e=>{if(!e)return null;if(Y1(e))return e;let p=e.length;if(!aM(p))return null;const f=new Array(p);for(;p-- >0;)f[p]=e[p];return f},v2e=(e=>p=>e&&p instanceof e)(typeof Uint8Array<"u"&&t6(Uint8Array)),_2e=(e,p)=>{const f=(e&&e[Symbol.iterator]).call(e);let F;for(;(F=f.next())&&!F.done;){const K=F.value;p.call(e,K[0],K[1])}},b2e=(e,p)=>{let f;const F=[];for(;(f=e.exec(p))!==null;)F.push(f);return F},x2e=Bf("HTMLFormElement"),w2e=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(p,f,F){return f.toUpperCase()+F}),sM=(({hasOwnProperty:e})=>(p,f)=>e.call(p,f))(Object.prototype),k2e=Bf("RegExp"),lM=(e,p)=>{const f=Object.getOwnPropertyDescriptors(e),F={};Mv(f,(K,k)=>{let w;(w=p(K,k,e))!==!1&&(F[k]=w||K)}),Object.defineProperties(e,F)},S2e=e=>{lM(e,(p,f)=>{if(_p(e)&&["arguments","caller","callee"].indexOf(f)!==-1)return!1;const F=e[f];if(_p(F)){if(p.enumerable=!1,"writable"in p){p.writable=!1;return}p.set||(p.set=()=>{throw Error("Can not rewrite read-only method '"+f+"'")})}})},T2e=(e,p)=>{const f={},F=K=>{K.forEach(k=>{f[k]=!0})};return Y1(e)?F(e):F(String(e).split(p)),f},C2e=()=>{},A2e=(e,p)=>e!=null&&Number.isFinite(e=+e)?e:p,n6="abcdefghijklmnopqrstuvwxyz",cM="0123456789",uM={DIGIT:cM,ALPHA:n6,ALPHA_DIGIT:n6+n6.toUpperCase()+cM},E2e=(e=16,p=uM.ALPHA_DIGIT)=>{let f="";const{length:F}=p;for(;e--;)f+=p[Math.random()*F|0];return f};function M2e(e){return!!(e&&_p(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const I2e=e=>{const p=new Array(10),f=(F,K)=>{if(cb(F)){if(p.indexOf(F)>=0)return;if(!("toJSON"in F)){p[K]=F;const k=Y1(F)?[]:{};return Mv(F,(w,n)=>{const _=f(w,K+1);!Ev(_)&&(k[n]=_)}),p[K]=void 0,k}}return F};return f(e,0)},P2e=Bf("AsyncFunction"),L2e=e=>e&&(cb(e)||_p(e))&&_p(e.then)&&_p(e.catch),dM=((e,p)=>e?setImmediate:p?((f,F)=>(yg.addEventListener("message",({source:K,data:k})=>{K===yg&&k===f&&F.length&&F.shift()()},!1),K=>{F.push(K),yg.postMessage(f,"*")}))(`axios@${Math.random()}`,[]):f=>setTimeout(f))(typeof setImmediate=="function",_p(yg.postMessage)),B2e=typeof queueMicrotask<"u"?queueMicrotask.bind(yg):typeof process<"u"&&process.nextTick||dM,Ea={isArray:Y1,isArrayBuffer:nM,isBuffer:Yve,isFormData:i2e,isArrayBufferView:Kve,isString:Jve,isNumber:aM,isBoolean:Qve,isObject:cb,isPlainObject:ub,isReadableStream:s2e,isRequest:l2e,isResponse:c2e,isHeaders:u2e,isUndefined:Ev,isDate:e2e,isFile:t2e,isBlob:r2e,isRegExp:k2e,isFunction:_p,isStream:a2e,isURLSearchParams:o2e,isTypedArray:v2e,isFileList:n2e,forEach:Mv,merge:r6,extend:h2e,trim:d2e,stripBOM:p2e,inherits:f2e,toFlatObject:m2e,kindOf:sb,kindOfTest:Bf,endsWith:g2e,toArray:y2e,forEachEntry:_2e,matchAll:b2e,isHTMLForm:x2e,hasOwnProperty:sM,hasOwnProp:sM,reduceDescriptors:lM,freezeMethods:S2e,toObjectSet:T2e,toCamelCase:w2e,noop:C2e,toFiniteNumber:A2e,findKey:iM,global:yg,isContextDefined:oM,ALPHABET:uM,generateString:E2e,isSpecCompliantForm:M2e,toJSONObject:I2e,isAsyncFn:P2e,isThenable:L2e,setImmediate:dM,asap:B2e};function rl(e,p,f,F,K){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",p&&(this.code=p),f&&(this.config=f),F&&(this.request=F),K&&(this.response=K,this.status=K.status?K.status:null)}Ea.inherits(rl,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:Ea.toJSONObject(this.config),code:this.code,status:this.status}}});const hM=rl.prototype,pM={};["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=>{pM[e]={value:e}}),Object.defineProperties(rl,pM),Object.defineProperty(hM,"isAxiosError",{value:!0}),rl.from=(e,p,f,F,K,k)=>{const w=Object.create(hM);return Ea.toFlatObject(e,w,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),rl.call(w,e.message,p,f,F,K),w.cause=e,w.name=e.name,k&&Object.assign(w,k),w};const O2e=null;function a6(e){return Ea.isPlainObject(e)||Ea.isArray(e)}function fM(e){return Ea.endsWith(e,"[]")?e.slice(0,-2):e}function mM(e,p,f){return e?e.concat(p).map(function(F,K){return F=fM(F),!f&&K?"["+F+"]":F}).join(f?".":""):p}function z2e(e){return Ea.isArray(e)&&!e.some(a6)}const D2e=Ea.toFlatObject(Ea,{},null,function(e){return/^is[A-Z]/.test(e)});function db(e,p,f){if(!Ea.isObject(e))throw new TypeError("target must be an object");p=p||new FormData,f=Ea.toFlatObject(f,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,c){return!Ea.isUndefined(c[g])});const F=f.metaTokens,K=f.visitor||h,k=f.dots,w=f.indexes,n=(f.Blob||typeof Blob<"u"&&Blob)&&Ea.isSpecCompliantForm(p);if(!Ea.isFunction(K))throw new TypeError("visitor must be a function");function _(g){if(g===null)return"";if(Ea.isDate(g))return g.toISOString();if(!n&&Ea.isBlob(g))throw new rl("Blob is not supported. Use a Buffer instead.");return Ea.isArrayBuffer(g)||Ea.isTypedArray(g)?n&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function h(g,c,a){let i=g;if(g&&!a&&typeof g=="object"){if(Ea.endsWith(c,"{}"))c=F?c:c.slice(0,-2),g=JSON.stringify(g);else if(Ea.isArray(g)&&z2e(g)||(Ea.isFileList(g)||Ea.endsWith(c,"[]"))&&(i=Ea.toArray(g)))return c=fM(c),i.forEach(function(u,s){!(Ea.isUndefined(u)||u===null)&&p.append(w===!0?mM([c],s,k):w===null?c:c+"[]",_(u))}),!1}return a6(g)?!0:(p.append(mM(a,c,k),_(g)),!1)}const r=[],b=Object.assign(D2e,{defaultVisitor:h,convertValue:_,isVisitable:a6});function y(g,c){if(!Ea.isUndefined(g)){if(r.indexOf(g)!==-1)throw Error("Circular reference detected in "+c.join("."));r.push(g),Ea.forEach(g,function(a,i){(!(Ea.isUndefined(a)||a===null)&&K.call(p,a,Ea.isString(i)?i.trim():i,c,b))===!0&&y(a,c?c.concat(i):[i])}),r.pop()}}if(!Ea.isObject(e))throw new TypeError("data must be an object");return y(e),p}function gM(e){const p={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(f){return p[f]})}function i6(e,p){this._pairs=[],e&&db(e,this,p)}const yM=i6.prototype;yM.append=function(e,p){this._pairs.push([e,p])},yM.toString=function(e){const p=e?function(f){return e.call(this,f,gM)}:gM;return this._pairs.map(function(f){return p(f[0])+"="+p(f[1])},"").join("&")};function F2e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vM(e,p,f){if(!p)return e;const F=f&&f.encode||F2e;Ea.isFunction(f)&&(f={serialize:f});const K=f&&f.serialize;let k;if(K?k=K(p,f):k=Ea.isURLSearchParams(p)?p.toString():new i6(p,f).toString(F),k){const w=e.indexOf("#");w!==-1&&(e=e.slice(0,w)),e+=(e.indexOf("?")===-1?"?":"&")+k}return e}const _M=class{constructor(){this.handlers=[]}use(p,f,F){return this.handlers.push({fulfilled:p,rejected:f,synchronous:F?F.synchronous:!1,runWhen:F?F.runWhen:null}),this.handlers.length-1}eject(p){this.handlers[p]&&(this.handlers[p]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(p){Ea.forEach(this.handlers,function(f){f!==null&&p(f)})}},bM={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},N2e=typeof URLSearchParams<"u"?URLSearchParams:i6,R2e=typeof FormData<"u"?FormData:null,V2e=typeof Blob<"u"?Blob:null,j2e={isBrowser:!0,classes:{URLSearchParams:N2e,FormData:R2e,Blob:V2e},protocols:["http","https","file","blob","url","data"]},o6=typeof window<"u"&&typeof document<"u",s6=typeof navigator=="object"&&navigator||void 0,U2e=o6&&(!s6||["ReactNative","NativeScript","NS"].indexOf(s6.product)<0),$2e=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),G2e=o6&&window.location.href||"http://localhost",H2e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:o6,hasStandardBrowserEnv:U2e,hasStandardBrowserWebWorkerEnv:$2e,navigator:s6,origin:G2e},Symbol.toStringTag,{value:"Module"})),uh={...H2e,...j2e};function q2e(e,p){return db(e,new uh.classes.URLSearchParams,Object.assign({visitor:function(f,F,K,k){return uh.isNode&&Ea.isBuffer(f)?(this.append(F,f.toString("base64")),!1):k.defaultVisitor.apply(this,arguments)}},p))}function W2e(e){return Ea.matchAll(/\w+|\[(\w*)]/g,e).map(p=>p[0]==="[]"?"":p[1]||p[0])}function Z2e(e){const p={},f=Object.keys(e);let F;const K=f.length;let k;for(F=0;F<K;F++)k=f[F],p[k]=e[k];return p}function xM(e){function p(f,F,K,k){let w=f[k++];if(w==="__proto__")return!0;const n=Number.isFinite(+w),_=k>=f.length;return w=!w&&Ea.isArray(K)?K.length:w,_?(Ea.hasOwnProp(K,w)?K[w]=[K[w],F]:K[w]=F,!n):((!K[w]||!Ea.isObject(K[w]))&&(K[w]=[]),p(f,F,K[w],k)&&Ea.isArray(K[w])&&(K[w]=Z2e(K[w])),!n)}if(Ea.isFormData(e)&&Ea.isFunction(e.entries)){const f={};return Ea.forEachEntry(e,(F,K)=>{p(W2e(F),K,f,0)}),f}return null}function X2e(e,p,f){if(Ea.isString(e))try{return(p||JSON.parse)(e),Ea.trim(e)}catch(F){if(F.name!=="SyntaxError")throw F}return(f||JSON.stringify)(e)}const l6={transitional:bM,adapter:["xhr","http","fetch"],transformRequest:[function(e,p){const f=p.getContentType()||"",F=f.indexOf("application/json")>-1,K=Ea.isObject(e);if(K&&Ea.isHTMLForm(e)&&(e=new FormData(e)),Ea.isFormData(e))return F?JSON.stringify(xM(e)):e;if(Ea.isArrayBuffer(e)||Ea.isBuffer(e)||Ea.isStream(e)||Ea.isFile(e)||Ea.isBlob(e)||Ea.isReadableStream(e))return e;if(Ea.isArrayBufferView(e))return e.buffer;if(Ea.isURLSearchParams(e))return p.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let k;if(K){if(f.indexOf("application/x-www-form-urlencoded")>-1)return q2e(e,this.formSerializer).toString();if((k=Ea.isFileList(e))||f.indexOf("multipart/form-data")>-1){const w=this.env&&this.env.FormData;return db(k?{"files[]":e}:e,w&&new w,this.formSerializer)}}return K||F?(p.setContentType("application/json",!1),X2e(e)):e}],transformResponse:[function(e){const p=this.transitional||l6.transitional,f=p&&p.forcedJSONParsing,F=this.responseType==="json";if(Ea.isResponse(e)||Ea.isReadableStream(e))return e;if(e&&Ea.isString(e)&&(f&&!this.responseType||F)){const K=!(p&&p.silentJSONParsing)&&F;try{return JSON.parse(e)}catch(k){if(K)throw k.name==="SyntaxError"?rl.from(k,rl.ERR_BAD_RESPONSE,this,null,this.response):k}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:uh.classes.FormData,Blob:uh.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ea.forEach(["delete","get","head","post","put","patch"],e=>{l6.headers[e]={}});const c6=l6,Y2e=Ea.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"]),K2e=e=>{const p={};let f,F,K;return e&&e.split(`
|
|
45
45
|
`).forEach(function(k){K=k.indexOf(":"),f=k.substring(0,K).trim().toLowerCase(),F=k.substring(K+1).trim(),!(!f||p[f]&&Y2e[f])&&(f==="set-cookie"?p[f]?p[f].push(F):p[f]=[F]:p[f]=p[f]?p[f]+", "+F:F)}),p},wM=Symbol("internals");function Iv(e){return e&&String(e).trim().toLowerCase()}function hb(e){return e===!1||e==null?e:Ea.isArray(e)?e.map(hb):String(e)}function J2e(e){const p=Object.create(null),f=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let F;for(;F=f.exec(e);)p[F[1]]=F[2];return p}const Q2e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function u6(e,p,f,F,K){if(Ea.isFunction(F))return F.call(this,p,f);if(K&&(p=f),!!Ea.isString(p)){if(Ea.isString(F))return p.indexOf(F)!==-1;if(Ea.isRegExp(F))return F.test(p)}}function e_e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(p,f,F)=>f.toUpperCase()+F)}function t_e(e,p){const f=Ea.toCamelCase(" "+p);["get","set","has"].forEach(F=>{Object.defineProperty(e,F+f,{value:function(K,k,w){return this[F].call(this,p,K,k,w)},configurable:!0})})}let pb=class{constructor(p){p&&this.set(p)}set(p,f,F){const K=this;function k(n,_,h){const r=Iv(_);if(!r)throw new Error("header name must be a non-empty string");const b=Ea.findKey(K,r);(!b||K[b]===void 0||h===!0||h===void 0&&K[b]!==!1)&&(K[b||_]=hb(n))}const w=(n,_)=>Ea.forEach(n,(h,r)=>k(h,r,_));if(Ea.isPlainObject(p)||p instanceof this.constructor)w(p,f);else if(Ea.isString(p)&&(p=p.trim())&&!Q2e(p))w(K2e(p),f);else if(Ea.isHeaders(p))for(const[n,_]of p.entries())k(_,n,F);else p!=null&&k(f,p,F);return this}get(p,f){if(p=Iv(p),p){const F=Ea.findKey(this,p);if(F){const K=this[F];if(!f)return K;if(f===!0)return J2e(K);if(Ea.isFunction(f))return f.call(this,K,F);if(Ea.isRegExp(f))return f.exec(K);throw new TypeError("parser must be boolean|regexp|function")}}}has(p,f){if(p=Iv(p),p){const F=Ea.findKey(this,p);return!!(F&&this[F]!==void 0&&(!f||u6(this,this[F],F,f)))}return!1}delete(p,f){const F=this;let K=!1;function k(w){if(w=Iv(w),w){const n=Ea.findKey(F,w);n&&(!f||u6(F,F[n],n,f))&&(delete F[n],K=!0)}}return Ea.isArray(p)?p.forEach(k):k(p),K}clear(p){const f=Object.keys(this);let F=f.length,K=!1;for(;F--;){const k=f[F];(!p||u6(this,this[k],k,p,!0))&&(delete this[k],K=!0)}return K}normalize(p){const f=this,F={};return Ea.forEach(this,(K,k)=>{const w=Ea.findKey(F,k);if(w){f[w]=hb(K),delete f[k];return}const n=p?e_e(k):String(k).trim();n!==k&&delete f[k],f[n]=hb(K),F[n]=!0}),this}concat(...p){return this.constructor.concat(this,...p)}toJSON(p){const f=Object.create(null);return Ea.forEach(this,(F,K)=>{F!=null&&F!==!1&&(f[K]=p&&Ea.isArray(F)?F.join(", "):F)}),f}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([p,f])=>p+": "+f).join(`
|
|
46
46
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(p){return p instanceof this?p:new this(p)}static concat(p,...f){const F=new this(p);return f.forEach(K=>F.set(K)),F}static accessor(p){const f=(this[wM]=this[wM]={accessors:{}}).accessors,F=this.prototype;function K(k){const w=Iv(k);f[w]||(t_e(F,k),f[w]=!0)}return Ea.isArray(p)?p.forEach(K):K(p),this}};pb.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ea.reduceDescriptors(pb.prototype,({value:e},p)=>{let f=p[0].toUpperCase()+p.slice(1);return{get:()=>e,set(F){this[f]=F}}}),Ea.freezeMethods(pb);const Of=pb;function d6(e,p){const f=this||c6,F=p||f,K=Of.from(F.headers);let k=F.data;return Ea.forEach(e,function(w){k=w.call(f,k,K.normalize(),p?p.status:void 0)}),K.normalize(),k}function kM(e){return!!(e&&e.__CANCEL__)}function K1(e,p,f){rl.call(this,e??"canceled",rl.ERR_CANCELED,p,f),this.name="CanceledError"}Ea.inherits(K1,rl,{__CANCEL__:!0});function SM(e,p,f){const F=f.config.validateStatus;!f.status||!F||F(f.status)?e(f):p(new rl("Request failed with status code "+f.status,[rl.ERR_BAD_REQUEST,rl.ERR_BAD_RESPONSE][Math.floor(f.status/100)-4],f.config,f.request,f))}function r_e(e){const p=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return p&&p[1]||""}function n_e(e,p){e=e||10;const f=new Array(e),F=new Array(e);let K=0,k=0,w;return p=p!==void 0?p:1e3,function(n){const _=Date.now(),h=F[k];w||(w=_),f[K]=n,F[K]=_;let r=k,b=0;for(;r!==K;)b+=f[r++],r=r%e;if(K=(K+1)%e,K===k&&(k=(k+1)%e),_-w<p)return;const y=h&&_-h;return y?Math.round(b*1e3/y):void 0}}function a_e(e,p){let f=0,F=1e3/p,K,k;const w=(n,_=Date.now())=>{f=_,K=null,k&&(clearTimeout(k),k=null),e.apply(null,n)};return[(...n)=>{const _=Date.now(),h=_-f;h>=F?w(n,_):(K=n,k||(k=setTimeout(()=>{k=null,w(K)},F-h)))},()=>K&&w(K)]}const fb=(e,p,f=3)=>{let F=0;const K=n_e(50,250);return a_e(k=>{const w=k.loaded,n=k.lengthComputable?k.total:void 0,_=w-F,h=K(_),r=w<=n;F=w;const b={loaded:w,total:n,progress:n?w/n:void 0,bytes:_,rate:h||void 0,estimated:h&&n&&r?(n-w)/h:void 0,event:k,lengthComputable:n!=null,[p?"download":"upload"]:!0};e(b)},f)},TM=(e,p)=>{const f=e!=null;return[F=>p[0]({lengthComputable:f,total:e,loaded:F}),p[1]]},CM=e=>(...p)=>Ea.asap(()=>e(...p)),i_e=uh.hasStandardBrowserEnv?((e,p)=>f=>(f=new URL(f,uh.origin),e.protocol===f.protocol&&e.host===f.host&&(p||e.port===f.port)))(new URL(uh.origin),uh.navigator&&/(msie|trident)/i.test(uh.navigator.userAgent)):()=>!0,o_e=uh.hasStandardBrowserEnv?{write(e,p,f,F,K,k){const w=[e+"="+encodeURIComponent(p)];Ea.isNumber(f)&&w.push("expires="+new Date(f).toGMTString()),Ea.isString(F)&&w.push("path="+F),Ea.isString(K)&&w.push("domain="+K),k===!0&&w.push("secure"),document.cookie=w.join("; ")},read(e){const p=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return p?decodeURIComponent(p[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function s_e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function l_e(e,p){return p?e.replace(/\/?\/$/,"")+"/"+p.replace(/^\/+/,""):e}function AM(e,p){return e&&!s_e(p)?l_e(e,p):p}const EM=e=>e instanceof Of?{...e}:e;function vg(e,p){p=p||{};const f={};function F(h,r,b,y){return Ea.isPlainObject(h)&&Ea.isPlainObject(r)?Ea.merge.call({caseless:y},h,r):Ea.isPlainObject(r)?Ea.merge({},r):Ea.isArray(r)?r.slice():r}function K(h,r,b,y){if(Ea.isUndefined(r)){if(!Ea.isUndefined(h))return F(void 0,h,b,y)}else return F(h,r,b,y)}function k(h,r){if(!Ea.isUndefined(r))return F(void 0,r)}function w(h,r){if(Ea.isUndefined(r)){if(!Ea.isUndefined(h))return F(void 0,h)}else return F(void 0,r)}function n(h,r,b){if(b in p)return F(h,r);if(b in e)return F(void 0,h)}const _={url:k,method:k,data:k,baseURL:w,transformRequest:w,transformResponse:w,paramsSerializer:w,timeout:w,timeoutMessage:w,withCredentials:w,withXSRFToken:w,adapter:w,responseType:w,xsrfCookieName:w,xsrfHeaderName:w,onUploadProgress:w,onDownloadProgress:w,decompress:w,maxContentLength:w,maxBodyLength:w,beforeRedirect:w,transport:w,httpAgent:w,httpsAgent:w,cancelToken:w,socketPath:w,responseEncoding:w,validateStatus:n,headers:(h,r,b)=>K(EM(h),EM(r),b,!0)};return Ea.forEach(Object.keys(Object.assign({},e,p)),function(h){const r=_[h]||K,b=r(e[h],p[h],h);Ea.isUndefined(b)&&r!==n||(f[h]=b)}),f}const MM=e=>{const p=vg({},e);let{data:f,withXSRFToken:F,xsrfHeaderName:K,xsrfCookieName:k,headers:w,auth:n}=p;p.headers=w=Of.from(w),p.url=vM(AM(p.baseURL,p.url),e.params,e.paramsSerializer),n&&w.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):"")));let _;if(Ea.isFormData(f)){if(uh.hasStandardBrowserEnv||uh.hasStandardBrowserWebWorkerEnv)w.setContentType(void 0);else if((_=w.getContentType())!==!1){const[h,...r]=_?_.split(";").map(b=>b.trim()).filter(Boolean):[];w.setContentType([h||"multipart/form-data",...r].join("; "))}}if(uh.hasStandardBrowserEnv&&(F&&Ea.isFunction(F)&&(F=F(p)),F||F!==!1&&i_e(p.url))){const h=K&&k&&o_e.read(k);h&&w.set(K,h)}return p},c_e=typeof XMLHttpRequest<"u",u_e=c_e&&function(e){return new Promise(function(p,f){const F=MM(e);let K=F.data;const k=Of.from(F.headers).normalize();let{responseType:w,onUploadProgress:n,onDownloadProgress:_}=F,h,r,b,y,g;function c(){y&&y(),g&&g(),F.cancelToken&&F.cancelToken.unsubscribe(h),F.signal&&F.signal.removeEventListener("abort",h)}let a=new XMLHttpRequest;a.open(F.method.toUpperCase(),F.url,!0),a.timeout=F.timeout;function i(){if(!a)return;const s=Of.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders()),d={data:!w||w==="text"||w==="json"?a.responseText:a.response,status:a.status,statusText:a.statusText,headers:s,config:e,request:a};SM(function(m){p(m),c()},function(m){f(m),c()},d),a=null}"onloadend"in a?a.onloadend=i:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(i)},a.onabort=function(){a&&(f(new rl("Request aborted",rl.ECONNABORTED,e,a)),a=null)},a.onerror=function(){f(new rl("Network Error",rl.ERR_NETWORK,e,a)),a=null},a.ontimeout=function(){let s=F.timeout?"timeout of "+F.timeout+"ms exceeded":"timeout exceeded";const d=F.transitional||bM;F.timeoutErrorMessage&&(s=F.timeoutErrorMessage),f(new rl(s,d.clarifyTimeoutError?rl.ETIMEDOUT:rl.ECONNABORTED,e,a)),a=null},K===void 0&&k.setContentType(null),"setRequestHeader"in a&&Ea.forEach(k.toJSON(),function(s,d){a.setRequestHeader(d,s)}),Ea.isUndefined(F.withCredentials)||(a.withCredentials=!!F.withCredentials),w&&w!=="json"&&(a.responseType=F.responseType),_&&([b,g]=fb(_,!0),a.addEventListener("progress",b)),n&&a.upload&&([r,y]=fb(n),a.upload.addEventListener("progress",r),a.upload.addEventListener("loadend",y)),(F.cancelToken||F.signal)&&(h=s=>{a&&(f(!s||s.type?new K1(null,e,a):s),a.abort(),a=null)},F.cancelToken&&F.cancelToken.subscribe(h),F.signal&&(F.signal.aborted?h():F.signal.addEventListener("abort",h)));const u=r_e(F.url);if(u&&uh.protocols.indexOf(u)===-1){f(new rl("Unsupported protocol "+u+":",rl.ERR_BAD_REQUEST,e));return}a.send(K||null)})},d_e=(e,p)=>{const{length:f}=e=e?e.filter(Boolean):[];if(p||f){let F=new AbortController,K;const k=function(h){if(!K){K=!0,n();const r=h instanceof Error?h:this.reason;F.abort(r instanceof rl?r:new K1(r instanceof Error?r.message:r))}};let w=p&&setTimeout(()=>{w=null,k(new rl(`timeout ${p} of ms exceeded`,rl.ETIMEDOUT))},p);const n=()=>{e&&(w&&clearTimeout(w),w=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(k):h.removeEventListener("abort",k)}),e=null)};e.forEach(h=>h.addEventListener("abort",k));const{signal:_}=F;return _.unsubscribe=()=>Ea.asap(n),_}},h_e=d_e,p_e=function*(e,p){let f=e.byteLength;if(!p||f<p){yield e;return}let F=0,K;for(;F<f;)K=F+p,yield e.slice(F,K),F=K},f_e=async function*(e,p){for await(const f of m_e(e))yield*p_e(f,p)},m_e=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const p=e.getReader();try{for(;;){const{done:f,value:F}=await p.read();if(f)break;yield F}}finally{await p.cancel()}},IM=(e,p,f,F)=>{const K=f_e(e,p);let k=0,w,n=_=>{w||(w=!0,F&&F(_))};return new ReadableStream({async pull(_){try{const{done:h,value:r}=await K.next();if(h){n(),_.close();return}let b=r.byteLength;if(f){let y=k+=b;f(y)}_.enqueue(new Uint8Array(r))}catch(h){throw n(h),h}},cancel(_){return n(_),K.return()}},{highWaterMark:2})},mb=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",PM=mb&&typeof ReadableStream=="function",g_e=mb&&(typeof TextEncoder=="function"?(e=>p=>e.encode(p))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),LM=(e,...p)=>{try{return!!e(...p)}catch{return!1}},y_e=PM&&LM(()=>{let e=!1;const p=new Request(uh.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!p}),BM=64*1024,h6=PM&&LM(()=>Ea.isReadableStream(new Response("").body)),gb={stream:h6&&(e=>e.body)};mb&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!gb[p]&&(gb[p]=Ea.isFunction(e[p])?f=>f[p]():(f,F)=>{throw new rl(`Response type '${p}' is not supported`,rl.ERR_NOT_SUPPORT,F)})})})(new Response);const v_e=async e=>{if(e==null)return 0;if(Ea.isBlob(e))return e.size;if(Ea.isSpecCompliantForm(e))return(await new Request(uh.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Ea.isArrayBufferView(e)||Ea.isArrayBuffer(e))return e.byteLength;if(Ea.isURLSearchParams(e)&&(e=e+""),Ea.isString(e))return(await g_e(e)).byteLength},__e=async(e,p)=>Ea.toFiniteNumber(e.getContentLength())??v_e(p),b_e=mb&&(async e=>{let{url:p,method:f,data:F,signal:K,cancelToken:k,timeout:w,onDownloadProgress:n,onUploadProgress:_,responseType:h,headers:r,withCredentials:b="same-origin",fetchOptions:y}=MM(e);h=h?(h+"").toLowerCase():"text";let g=h_e([K,k&&k.toAbortSignal()],w),c;const a=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let i;try{if(_&&y_e&&f!=="get"&&f!=="head"&&(i=await __e(r,F))!==0){let v=new Request(p,{method:"POST",body:F,duplex:"half"}),T;if(Ea.isFormData(F)&&(T=v.headers.get("content-type"))&&r.setContentType(T),v.body){const[A,C]=TM(i,fb(CM(_)));F=IM(v.body,BM,A,C)}}Ea.isString(b)||(b=b?"include":"omit");const u="credentials"in Request.prototype;c=new Request(p,{...y,signal:g,method:f.toUpperCase(),headers:r.normalize().toJSON(),body:F,duplex:"half",credentials:u?b:void 0});let s=await fetch(c);const d=h6&&(h==="stream"||h==="response");if(h6&&(n||d&&a)){const v={};["status","statusText","headers"].forEach(P=>{v[P]=s[P]});const T=Ea.toFiniteNumber(s.headers.get("content-length")),[A,C]=n&&TM(T,fb(CM(n),!0))||[];s=new Response(IM(s.body,BM,A,()=>{C&&C(),a&&a()}),v)}h=h||"text";let m=await gb[Ea.findKey(gb,h)||"text"](s,e);return!d&&a&&a(),await new Promise((v,T)=>{SM(v,T,{data:m,headers:Of.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:c})})}catch(u){throw a&&a(),u&&u.name==="TypeError"&&/fetch/i.test(u.message)?Object.assign(new rl("Network Error",rl.ERR_NETWORK,e,c),{cause:u.cause||u}):rl.from(u,u&&u.code,e,c)}}),p6={http:O2e,xhr:u_e,fetch:b_e};Ea.forEach(p6,(e,p)=>{if(e){try{Object.defineProperty(e,"name",{value:p})}catch{}Object.defineProperty(e,"adapterName",{value:p})}});const OM=e=>`- ${e}`,x_e=e=>Ea.isFunction(e)||e===null||e===!1,zM={getAdapter:e=>{e=Ea.isArray(e)?e:[e];const{length:p}=e;let f,F;const K={};for(let k=0;k<p;k++){f=e[k];let w;if(F=f,!x_e(f)&&(F=p6[(w=String(f)).toLowerCase()],F===void 0))throw new rl(`Unknown adapter '${w}'`);if(F)break;K[w||"#"+k]=F}if(!F){const k=Object.entries(K).map(([n,_])=>`adapter ${n} `+(_===!1?"is not supported by the environment":"is not available in the build"));let w=p?k.length>1?`since :
|
|
47
47
|
`+k.map(OM).join(`
|