@golstats/gsc-game-data 1.0.44 → 1.0.45

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.
@@ -20,7 +20,7 @@
20
20
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...o){const s=new this(a);return o.forEach(n=>s.set(n)),s}static accessor(a){const s=(this[n1]=this[n1]={accessors:{}}).accessors,n=this.prototype;function i(r){const c=Is(r);s[c]||(tV(n,r),s[c]=!0)}return L.isArray(a)?a.forEach(i):i(a),this}}Ri.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),L.reduceDescriptors(Ri.prototype,({value:e},a)=>{let o=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(s){this[o]=s}}}),L.freezeMethods(Ri);const Va=Ri;function zd(e,a){const o=this||Od,s=a||o,n=Va.from(s.headers);let i=s.data;return L.forEach(e,function(c){i=c.call(o,i,n.normalize(),a?a.status:void 0)}),n.normalize(),i}function i1(e){return!!(e&&e.__CANCEL__)}function As(e,a,o){me.call(this,e??"canceled",me.ERR_CANCELED,a,o),this.name="CanceledError"}L.inherits(As,me,{__CANCEL__:!0});function aV(e,a,o){const s=o.config.validateStatus;!o.status||!s||s(o.status)?e(o):a(new me("Request failed with status code "+o.status,[me.ERR_BAD_REQUEST,me.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const oV=ea.hasStandardBrowserEnv?{write(e,a,o,s,n,i){const r=[e+"="+encodeURIComponent(a)];L.isNumber(o)&&r.push("expires="+new Date(o).toGMTString()),L.isString(s)&&r.push("path="+s),L.isString(n)&&r.push("domain="+n),i===!0&&r.push("secure"),document.cookie=r.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function sV(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function nV(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function r1(e,a){return e&&!sV(a)?nV(e,a):a}const iV=ea.hasStandardBrowserEnv?function(){const a=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let s;function n(i){let r=i;return a&&(o.setAttribute("href",r),r=o.href),o.setAttribute("href",r),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return s=n(window.location.href),function(r){const c=L.isString(r)?n(r):r;return c.protocol===s.protocol&&c.host===s.host}}():function(){return function(){return!0}}();function rV(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function lV(e,a){e=e||10;const o=new Array(e),s=new Array(e);let n=0,i=0,r;return a=a!==void 0?a:1e3,function(g){const d=Date.now(),l=s[i];r||(r=d),o[n]=g,s[n]=d;let m=i,h=0;for(;m!==n;)h+=o[m++],m=m%e;if(n=(n+1)%e,n===i&&(i=(i+1)%e),d-r<a)return;const y=l&&d-l;return y?Math.round(h*1e3/y):void 0}}function l1(e,a){let o=0;const s=lV(50,250);return n=>{const i=n.loaded,r=n.lengthComputable?n.total:void 0,c=i-o,g=s(c),d=i<=r;o=i;const l={loaded:i,total:r,progress:r?i/r:void 0,bytes:c,rate:g||void 0,estimated:g&&r&&d?(r-i)/g:void 0,event:n};l[a?"download":"upload"]=!0,e(l)}}const Fd={http:Dx,xhr:typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(o,s){let n=e.data;const i=Va.from(e.headers).normalize();let{responseType:r,withXSRFToken:c}=e,g;function d(){e.cancelToken&&e.cancelToken.unsubscribe(g),e.signal&&e.signal.removeEventListener("abort",g)}let l;if(L.isFormData(n)){if(ea.hasStandardBrowserEnv||ea.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((l=i.getContentType())!==!1){const[u,...f]=l?l.split(";").map(_=>_.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...f].join("; "))}}let m=new XMLHttpRequest;if(e.auth){const u=e.auth.username||"",f=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(u+":"+f))}const h=r1(e.baseURL,e.url);m.open(e.method.toUpperCase(),e1(h,e.params,e.paramsSerializer),!0),m.timeout=e.timeout;function y(){if(!m)return;const u=Va.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),_={data:!r||r==="text"||r==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:u,config:e,request:m};aV(function(C){o(C),d()},function(C){s(C),d()},_),m=null}if("onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(y)},m.onabort=function(){m&&(s(new me("Request aborted",me.ECONNABORTED,e,m)),m=null)},m.onerror=function(){s(new me("Network Error",me.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let f=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const _=e.transitional||a1;e.timeoutErrorMessage&&(f=e.timeoutErrorMessage),s(new me(f,_.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,e,m)),m=null},ea.hasStandardBrowserEnv&&(c&&L.isFunction(c)&&(c=c(e)),c||c!==!1&&iV(h))){const u=e.xsrfHeaderName&&e.xsrfCookieName&&oV.read(e.xsrfCookieName);u&&i.set(e.xsrfHeaderName,u)}n===void 0&&i.setContentType(null),"setRequestHeader"in m&&L.forEach(i.toJSON(),function(f,_){m.setRequestHeader(_,f)}),L.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),r&&r!=="json"&&(m.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&m.addEventListener("progress",l1(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&m.upload&&m.upload.addEventListener("progress",l1(e.onUploadProgress)),(e.cancelToken||e.signal)&&(g=u=>{m&&(s(!u||u.type?new As(null,e,m):u),m.abort(),m=null)},e.cancelToken&&e.cancelToken.subscribe(g),e.signal&&(e.signal.aborted?g():e.signal.addEventListener("abort",g)));const p=rV(h);if(p&&ea.protocols.indexOf(p)===-1){s(new me("Unsupported protocol "+p+":",me.ERR_BAD_REQUEST,e));return}m.send(n||null)})}};L.forEach(Fd,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const c1=e=>`- ${e}`,cV=e=>L.isFunction(e)||e===null||e===!1,d1={getAdapter:e=>{e=L.isArray(e)?e:[e];const{length:a}=e;let o,s;const n={};for(let i=0;i<a;i++){o=e[i];let r;if(s=o,!cV(o)&&(s=Fd[(r=String(o)).toLowerCase()],s===void 0))throw new me(`Unknown adapter '${r}'`);if(s)break;n[r||"#"+i]=s}if(!s){const i=Object.entries(n).map(([c,g])=>`adapter ${c} `+(g===!1?"is not supported by the environment":"is not available in the build"));let r=a?i.length>1?`since :
21
21
  `+i.map(c1).join(`
22
22
  `):" "+c1(i[0]):"as no adapter specified";throw new me("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return s},adapters:Fd};function Rd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new As(null,e)}function m1(e){return Rd(e),e.headers=Va.from(e.headers),e.data=zd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),d1.getAdapter(e.adapter||Od.adapter)(e).then(function(s){return Rd(e),s.data=zd.call(e,e.transformResponse,s),s.headers=Va.from(s.headers),s},function(s){return i1(s)||(Rd(e),s&&s.response&&(s.response.data=zd.call(e,e.transformResponse,s.response),s.response.headers=Va.from(s.response.headers))),Promise.reject(s)})}const p1=e=>e instanceof Va?e.toJSON():e;function xo(e,a){a=a||{};const o={};function s(d,l,m){return L.isPlainObject(d)&&L.isPlainObject(l)?L.merge.call({caseless:m},d,l):L.isPlainObject(l)?L.merge({},l):L.isArray(l)?l.slice():l}function n(d,l,m){if(L.isUndefined(l)){if(!L.isUndefined(d))return s(void 0,d,m)}else return s(d,l,m)}function i(d,l){if(!L.isUndefined(l))return s(void 0,l)}function r(d,l){if(L.isUndefined(l)){if(!L.isUndefined(d))return s(void 0,d)}else return s(void 0,l)}function c(d,l,m){if(m in a)return s(d,l);if(m in e)return s(void 0,d)}const g={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:c,headers:(d,l)=>n(p1(d),p1(l),!0)};return L.forEach(Object.keys(Object.assign({},e,a)),function(l){const m=g[l]||n,h=m(e[l],a[l],l);L.isUndefined(h)&&m!==c||(o[l]=h)}),o}const h1="1.6.7",Pd={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{Pd[e]=function(s){return typeof s===e||"a"+(a<1?"n ":" ")+e}});const g1={};Pd.transitional=function(a,o,s){function n(i,r){return"[Axios v"+h1+"] Transitional option '"+i+"'"+r+(s?". "+s:"")}return(i,r,c)=>{if(a===!1)throw new me(n(r," has been removed"+(o?" in "+o:"")),me.ERR_DEPRECATED);return o&&!g1[r]&&(g1[r]=!0,console.warn(n(r," has been deprecated since v"+o+" and will be removed in the near future"))),a?a(i,r,c):!0}};function dV(e,a,o){if(typeof e!="object")throw new me("options must be an object",me.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let n=s.length;for(;n-- >0;){const i=s[n],r=a[i];if(r){const c=e[i],g=c===void 0||r(c,i,e);if(g!==!0)throw new me("option "+i+" must be "+g,me.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new me("Unknown option "+i,me.ERR_BAD_OPTION)}}const Dd={assertOptions:dV,validators:Pd},Ga=Dd.validators;class Pi{constructor(a){this.defaults=a,this.interceptors={request:new t1,response:new t1}}async request(a,o){try{return await this._request(a,o)}catch(s){if(s instanceof Error){let n;Error.captureStackTrace?Error.captureStackTrace(n={}):n=new Error;const i=n.stack?n.stack.replace(/^.+\n/,""):"";s.stack?i&&!String(s.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(s.stack+=`
23
- `+i):s.stack=i}throw s}}_request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=xo(this.defaults,o);const{transitional:s,paramsSerializer:n,headers:i}=o;s!==void 0&&Dd.assertOptions(s,{silentJSONParsing:Ga.transitional(Ga.boolean),forcedJSONParsing:Ga.transitional(Ga.boolean),clarifyTimeoutError:Ga.transitional(Ga.boolean)},!1),n!=null&&(L.isFunction(n)?o.paramsSerializer={serialize:n}:Dd.assertOptions(n,{encode:Ga.function,serialize:Ga.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let r=i&&L.merge(i.common,i[o.method]);i&&L.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),o.headers=Va.concat(r,i);const c=[];let g=!0;this.interceptors.request.forEach(function(u){typeof u.runWhen=="function"&&u.runWhen(o)===!1||(g=g&&u.synchronous,c.unshift(u.fulfilled,u.rejected))});const d=[];this.interceptors.response.forEach(function(u){d.push(u.fulfilled,u.rejected)});let l,m=0,h;if(!g){const p=[m1.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,d),h=p.length,l=Promise.resolve(o);m<h;)l=l.then(p[m++],p[m++]);return l}h=c.length;let y=o;for(m=0;m<h;){const p=c[m++],u=c[m++];try{y=p(y)}catch(f){u.call(this,f);break}}try{l=m1.call(this,y)}catch(p){return Promise.reject(p)}for(m=0,h=d.length;m<h;)l=l.then(d[m++],d[m++]);return l}getUri(a){a=xo(this.defaults,a);const o=r1(a.baseURL,a.url);return e1(o,a.params,a.paramsSerializer)}}L.forEach(["delete","get","head","options"],function(a){Pi.prototype[a]=function(o,s){return this.request(xo(s||{},{method:a,url:o,data:(s||{}).data}))}}),L.forEach(["post","put","patch"],function(a){function o(s){return function(i,r,c){return this.request(xo(c||{},{method:a,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}Pi.prototype[a]=o(),Pi.prototype[a+"Form"]=o(!0)});const Di=Pi;class Ld{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(i){o=i});const s=this;this.promise.then(n=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](n);s._listeners=null}),this.promise.then=n=>{let i;const r=new Promise(c=>{s.subscribe(c),i=c}).then(n);return r.cancel=function(){s.unsubscribe(i)},r},a(function(i,r,c){s.reason||(s.reason=new As(i,r,c),o(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const o=this._listeners.indexOf(a);o!==-1&&this._listeners.splice(o,1)}static source(){let a;return{token:new Ld(function(n){a=n}),cancel:a}}}const mV=Ld;function pV(e){return function(o){return e.apply(null,o)}}function hV(e){return L.isObject(e)&&e.isAxiosError===!0}const jd={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(jd).forEach(([e,a])=>{jd[a]=e});const gV=jd;function y1(e){const a=new Di(e),o=Du(Di.prototype.request,a);return L.extend(o,Di.prototype,a,{allOwnKeys:!0}),L.extend(o,a,null,{allOwnKeys:!0}),o.create=function(n){return y1(xo(e,n))},o}const Me=y1(Od);Me.Axios=Di,Me.CanceledError=As,Me.CancelToken=mV,Me.isCancel=i1,Me.VERSION=h1,Me.toFormData=zi,Me.AxiosError=me,Me.Cancel=Me.CanceledError,Me.all=function(a){return Promise.all(a)},Me.spread=pV,Me.isAxiosError=hV,Me.mergeConfig=xo,Me.AxiosHeaders=Va,Me.formToJSON=e=>s1(L.isHTMLForm(e)?new FormData(e):e),Me.getAdapter=d1.getAdapter,Me.HttpStatusCode=gV,Me.default=Me;const Li=Me,u1="/icn-play.svg",sMe="",yV={components:{BarraLeft:ZB,BarraRight:sx},props:{data:{type:Object,required:!1},showPlayButton:{type:Boolean,value:!0}},data(){return{gamesBySeason:{}}},computed:{...kt("nextGeneral",["gameForAnalysis","seasonId"]),...Te("nextGeneral",["homeTeam","visitingTeam"])},methods:{onclickPlayVideos(e){var a=[];e.type==2?e.position_id==1?e.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.category:e.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.category:e.type==3?e.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.category:e.category!=0?a=e.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const o=[1,2,3];let s={seasonId:e.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:this.gameForAnalysis.game_status!==4?[this.gameForAnalysis.game_id]:null,playerIds:e.position_id!=1?e.player_id?[e.player_id]:[]:[],goalkeeperIds:e.position_id==1?e.player_id?[e.player_id]:[]:[],teamId:e.team_id?e.team_id:0,matchResult:e.matchResult?[e.matchResult]:o,playData:{},advancedFilter:{playListTitle:""}};e.category!==0&&(s.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",s)},hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},deleteDecimalZero(e){const a=typeof e=="string"?parseFloat(e):e;return typeof a=="number"&&!isNaN(a)?a%1===0?a:a%1===0?Math.floor(a):a:e},formatNumbers(e){return e%1!==0?e.toFixed(1):e},getTeamValue(e,a,o){if(!a.game_id)return this.objectZeroValues;const s=e.generalCategoriesIds.accomplished===3;if(a.is_live){const n=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive;return n?{numberValue:s?e[o].accomplished.totalLive/n*100:e[o].accomplished.totalLive,numberBarPercent:e[o].accomplished.totalLive/n}:this.objectZeroValues}else if(a.is_live||a.game_status===1){const n=e.homeTeam.accomplished.totalPostGame+e.visitingTeam.accomplished.totalPostGame;return n?{numberValue:s?e[o].accomplished.totalPostGame/n*100:e[o].accomplished.totalPostGame,numberBarPercent:e[o].accomplished.totalPostGame/n}:this.objectZeroValues}if(s){const n=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,i=e[o].accomplished.avgPostGame/n;return e[o].accomplished.avgPostGame?{numberValue:i<1?i*100:i,numberBarPercent:e[o].accomplished.avgPostGame/n}:this.objectZeroValues}else{const n=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame;return e[o].accomplished.avgPostGame?{numberValue:e[o].accomplished.avgPostGame,numberBarPercent:e[o].accomplished.avgPostGame/n}:this.objectZeroValues}},async getGamesBySeasonV2(){try{const e={Authorization:this.token},o=`${this.apiUrl}${this.seasonId}/games/${this.gameId}`;return(await Li.get(o,{headers:e})).data}catch(e){return Promise.reject(e)}}},async mounted(){}},f1=e=>(t.pushScopeId("data-v-a93399df"),e=e(),t.popScopeId(),e),uV={class:"card"},fV={class:"card__header"},_V={class:"card__stats"},bV=["onClick"],wV=[f1(()=>t.createElementVNode("img",{src:u1},null,-1))],CV={key:1,class:"card__stats__stat__button_empty"},kV={class:"card__stats__title"},SV={class:"card__stats__scores"},EV={key:0},NV={key:1},$V={key:2},BV={key:3},xV={class:"card__stats__bars"},VV=["onClick"],IV=[f1(()=>t.createElementVNode("img",{src:u1},null,-1))],AV={key:1,class:"card__stats__stat__button_empty"};function OV(e,a,o,s,n,i){const r=t.resolveComponent("BarraLeft"),c=t.resolveComponent("BarraRight");return t.openBlock(),t.createElementBlock("div",uV,[t.createElementVNode("span",fV,t.toDisplayString(o.data.name),1),t.createElementVNode("div",_V,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.data.subcategories,(g,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,class:"card__stats__stat"},[t.createElementVNode("div",null,[i.hVal(g)&&i.hVal(g).numberValue!="0"?(t.openBlock(),t.createElementBlock("div",{key:0,onClick:l=>i.onclickPlayVideos({category:g.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.homeTeam.team_id}),class:"card__stats__stat__button card__stats__stat__button_left"},wV,8,bV)):(t.openBlock(),t.createElementBlock("div",CV))]),t.createElementVNode("div",null,[t.createElementVNode("div",kV,t.toDisplayString(g.name),1),t.createElementVNode("div",SV,[i.hVal(g)?(t.openBlock(),t.createElementBlock("span",EV,[t.createTextVNode(t.toDisplayString(i.deleteDecimalZero(i.formatNumbers(i.hVal(g).numberValue))),1),g.name=="Posesión"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",NV,"0")),i.aVal(g)?(t.openBlock(),t.createElementBlock("span",$V,[t.createTextVNode(t.toDisplayString(i.deleteDecimalZero(i.formatNumbers(i.aVal(g).numberValue))),1),g.name=="Posesión"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",BV,"0"))]),t.createElementVNode("div",xV,[t.createElementVNode("div",null,[i.hVal(g)?(t.openBlock(),t.createBlock(r,{key:0,postmatch:i.hVal(g).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(r,{key:1,postmatch:0}))]),t.createElementVNode("div",null,[i.aVal(g)?(t.openBlock(),t.createBlock(c,{key:0,postmatch:i.aVal(g).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(c,{key:1,postmatch:0}))])])]),t.createElementVNode("div",null,[i.aVal(g)&&i.aVal(g).numberValue!="0"?(t.openBlock(),t.createElementBlock("div",{key:0,onClick:l=>i.onclickPlayVideos({category:g.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.visitingTeam.team_id}),class:"card__stats__stat__button card__stats__stat__button_right"},IV,8,VV)):(t.openBlock(),t.createElementBlock("div",AV))])]))),128))])])}const TV=Ae(yV,[["render",OV],["__scopeId","data-v-a93399df"]]),rMe="",zV={name:"GscComparative",props:{local:{type:Object,default:()=>{}},away:{type:Object,default:()=>{}},fontFamily:{type:String,default:"inherit"}},data(){return{}},computed:{customStyle(){const e={};return this.fontFamily&&(e["font-family"]=`${this.fontFamily}`),e}},methods:{}},Ia=e=>(t.pushScopeId("data-v-c7dcae1a"),e=e(),t.popScopeId(),e),FV={class:"comparative-card"},RV=Ia(()=>t.createElementVNode("div",{class:"header-title"},[t.createElementVNode("span",null,"Comparativa")],-1)),PV={class:"versus"},DV={class:"team-badge"},LV=["src","alt"],jV=Ia(()=>t.createElementVNode("div",null,[t.createElementVNode("div",null,[t.createElementVNode("div"),t.createElementVNode("div")]),t.createElementVNode("div",null,[t.createElementVNode("div"),t.createElementVNode("div")])],-1)),vV=Ia(()=>t.createElementVNode("span",{class:"vs-text"},"VS",-1)),MV={class:"team-badge"},HV=["src","alt"],UV={class:"details"},GV={key:0},WV=Ia(()=>t.createElementVNode("td",null,"Posición en la tabla",-1)),qV=Ia(()=>t.createElementVNode("td",null,"Puntos",-1)),JV=Ia(()=>t.createElementVNode("td",null,"Partidos jugados",-1)),XV=Ia(()=>t.createElementVNode("td",null,"Partidos ganados",-1)),ZV=Ia(()=>t.createElementVNode("td",null,"Partidos perdidos",-1)),YV=Ia(()=>t.createElementVNode("td",null,"Partidos empatados",-1));function KV(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",{class:"comparative-main",style:t.normalizeStyle(i.customStyle)},[t.createElementVNode("div",FV,[RV,t.createElementVNode("div",PV,[t.createElementVNode("div",DV,[o.local?(t.openBlock(),t.createElementBlock("img",{key:0,class:"team-badge__image",src:o.local.team_logo,alt:o.local.team_name},null,8,LV)):t.createCommentVNode("",!0),jV]),vV,t.createElementVNode("div",MV,[o.away?(t.openBlock(),t.createElementBlock("img",{key:0,class:"team-badge__image",src:o.away.team_logo,alt:o.away.team_name},null,8,HV)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",UV,[o.away&&o.local?(t.openBlock(),t.createElementBlock("table",GV,[t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.table_position),1),WV,t.createElementVNode("td",null,t.toDisplayString(o.away.table_position),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.points),1),qV,t.createElementVNode("td",null,t.toDisplayString(o.away.points),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.games_played),1),JV,t.createElementVNode("td",null,t.toDisplayString(o.away.games_played),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.games_won),1),XV,t.createElementVNode("td",null,t.toDisplayString(o.away.games_won),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.games_lost),1),ZV,t.createElementVNode("td",null,t.toDisplayString(o.away.games_lost),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.games_tied),1),YV,t.createElementVNode("td",null,t.toDisplayString(o.away.games_tied),1)])])])):t.createCommentVNode("",!0)])])],4)}const QV=Ae(zV,[["render",KV],["__scopeId","data-v-c7dcae1a"]]),lMe="",eI=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},vd={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},_1=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},b1=vd.setup;vd.setup=b1?(e,a)=>(_1(),b1(e,a)):_1;const tI={ref:"gscScrollableContainer",class:"scrollable-container"},aI={class:"scrollable-arrows"},oI=["width","height","viewBox"],sI=["stroke"],nI={class:"scrollable-wrapper"},iI={class:"scrollable-arrows"},rI=["width","height","viewBox"],lI=["stroke"];function cI(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",tI,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[t.createElementVNode("div",aI,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:o.arrowsColor},null,8,sI)],8,oI))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[t.createElementVNode("div",nI,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[t.createElementVNode("div",iI,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:o.arrowsColor},null,8,lI)],8,rI))])],2)):t.createCommentVNode("",!0)],512)}const Md=eI(vd,[["render",cI],["__scopeId","data-v-b548a08d"]]),cMe="";let w1=null;const dI={name:"App",components:{GscLinearTeamStats:TV,TableComparative:QV,GSCSlider:Md},props:{seasonSelected:{type:Object,default:()=>({})}},computed:{...kt("nextGeneral",["gameForAnalysis","seasonId"]),...Te("nextGeneral",["arrayFilledDataSortedByPriority"])},watch:{gameForAnalysis:{handler:function(){this.getTableList()},immediate:!0}},data(){return{gamesContainerWidth:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",url:"https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/",gameId:79623,movil:!1,home:null,away:null}},methods:{openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)w1=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),w1.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getTableList(){try{const a=await Li.create({headers:{Authorization:`${this.token}`}}).get(this.url+this.seasonSelected.id),o=a.data.data.findIndex(n=>n.team_id===this.gameForAnalysis.home_team),s=a.data.data.findIndex(n=>n.team_id===this.gameForAnalysis.visiting_team);this.home=a.data.data[o],this.away=a.data.data[s]}catch(e){console.error(e)}}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},mI={class:"container",ref:"gamesContainer"},pI={key:0,class:"grid-container"},hI={key:0,class:"item"},gI={class:"item"},yI={class:"item"},uI={class:"item"},fI={class:"item"},_I={class:"item"},bI={class:"item"},wI={class:"grid-container"},CI={key:0,class:"item-comparative"},kI={class:"table-movil-container"};function SI(e,a,o,s,n,i){const r=t.resolveComponent("TableComparative"),c=t.resolveComponent("GscLinearTeamStats"),g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",mI,[n.movil?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",wI,[n.home&&n.away?(t.openBlock(),t.createElementBlock("div",CI,[t.createVNode(r,{local:n.home,away:n.away,fontFamily:"Poppins-Light"},null,8,["local","away"])])):t.createCommentVNode("",!0)]),t.createVNode(g,{backgroundColor:"none",pxScroll:300,scrollColor:"none",arrowsPosition:"relative",arrowsScrollHide:!1,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",kI,[t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(n.gamesContainerWidth<510&&n.gamesContainerWidth>450?"width: 400px":n.gamesContainerWidth<=450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[0]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(n.gamesContainerWidth<510?"width: 400px":n.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[1]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(n.gamesContainerWidth<510?"width: 400px":n.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[2]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(n.gamesContainerWidth<510?"width: 400px":n.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[3]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(n.gamesContainerWidth<510?"width: 400px":n.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[4]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(n.gamesContainerWidth<510?"width: 400px":n.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[5]},null,8,["onOpenmedia","data"])],4)])]),_:1})],64)):(t.openBlock(),t.createElementBlock("div",pI,[n.home&&n.away?(t.openBlock(),t.createElementBlock("div",hI,[t.createVNode(r,{local:n.home,away:n.away,fontFamily:"Poppins-Light"},null,8,["local","away"])])):t.createCommentVNode("",!0),t.createElementVNode("div",gI,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[0],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",yI,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[1],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",uI,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[2],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",fI,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[3],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",_I,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[4],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",bI,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[5],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])])]))],512)}const EI=Ae(dI,[["render",SI]]),dMe="",mMe="",C1=["#cbee6b","#0033C5"],NI={name:"distributionchart",components:{},props:{seasonSelected:{type:Object,default:()=>({})}},data(){return{arrayChartTypes:["General","Ofensivo","Defensivo","Posesión","Balón parado","Infracciones"],height:409,updateCategory:0,homeTeamSelectedPlaysType:0,visitingTeamSelectedPlaysType:0,chartKeyCounter:0,homeTeamPlaysTypes:{history:0,live:1},visitingTeamPlaysTypes:{history:0,live:1},tooltip:{show:!1,data:{},names:{},keyName:"",leagueAvg:"",showLiveData:!1,local:!1,x:0,y:0},globals:{x:0,y:0},arrayDataForCharts:[],arrayChartOptions:[],arrayFilledSeries:[]}},watch:{menuOptionActive(){this.idAssetSelected==3},idAssetSelected(){this.idAssetSelected===3&&this.chartKeyCounter++},isMobile(e){this.chartOptions.legend.horizontalAlign=e?"center":"left",this.chartKeyCounter++},arrayFilledDataSortedByPriority:{immediate:!0,deep:!0,handler(){this.fillData(),this.updateCategory++}},showLiveData(){this.fillData()}},computed:{...kt("nextGeneral",["showLiveData","gameForAnalysis"]),...Te("nextGeneral",["idAssetSelected","menuOptionActive","homeTeamStatisticsType","showPostMatchData","visitingTeamStatisticsType","homeTeam","visitingTeam","subcategoryName","accomplished","arrayFilledDataSortedByPriority","filledDataStructure","showPostMatchData"]),isMobile(){return this.$mq==="mobile"},timeLeft(){const e=new Date().getTime(),o=new Date(this.gameForAnalysis.date_time_utc).getTime()-e,s=Math.floor(o/(1e3*60*60*24)),n=Math.floor(o%(1e3*60*60*24)/(1e3*60*60)),i=Math.floor(o%(1e3*60*60)/(1e3*60)),r=Math.floor(o%(1e3*60)/1e3);let c="";return r>0&&(c=r==1?r+" segundo":r+" segundos"),i>0&&(c=i==1?i+" minuto":i+" minutos"),n>0&&(c=n==1?n+" hora":n+" horas"),s>0&&(c=s==1?s+" día":s+" días"),c}},methods:{avg(e,a){return a?e.leagueAccomplishedAvg:e.leagueReceivedAvg},fillData(){this.arrayChartOptions=[],this.arrayFilledDataSortedByPriority&&this.arrayFilledDataSortedByPriority.length&&typeof this.arrayFilledDataSortedByPriority[0].subcategories=="object"?(this.arrayChartOptions=[],this.arrayFilledSeries=[],this.arrayDataForCharts=this.arrayFilledDataSortedByPriority.map(e=>{const a=this.getChartOptions();return this.arrayFilledSeries.push(this.getChartSeries(e.subcategories,a)),this.arrayChartOptions.push(a),e})):this.arrayDataForCharts=[]},getChartOptions(){return{plotOptions:{radar:{size:132,polygons:{strokeColors:"#606971"}}},chart:{type:"radar",height:509,toolbar:{show:!1}},colors:C1,fill:{colors:C1,opacity:.4},legend:{show:!0,position:"bottom",horizontalAlign:"left",fontSize:"11px",fontFamily:"Poppins-Regular",labels:{colors:"#d9d9d9",useSeriesColors:!1}},xaxis:{categories:[],labels:{show:!0,style:{fontSize:"11px",fontFamily:"Poppins-Regular"}}},yaxis:{show:!1},responsive:[{breakpoint:770,options:{chart:{height:300},plotOptions:{radar:{size:100,offsetY:10,polygons:{strokeColors:"#606971"}},bar:{horizontal:!1}},legend:{position:"top",horizontalAlign:"center"},xaxis:{labels:{show:!0,style:{fontSize:"11px"}}}}},{breakpoint:450,options:{plotOptions:{radar:{size:70,offsetY:-20,polygons:{strokeColors:"#dcdcdc"}},bar:{horizontal:!1}},legend:{position:"top",horizontalAlign:"center"},xaxis:{labels:{show:!0,style:{fontSize:"10px"}}}}}],tooltip:{intersect:!0,followCursor:!0,shared:!1,theme:"dark",style:{fontSize:"12px"},custom:function({series:e,seriesIndex:a,dataPointIndex:o,w:s}){const n=s.config.arraySubcategories[o].name,i=s.config.series[a].name,r=s.config.series[a].dataTotal[o],c=e[a][o];return s.config.arraySubcategories[o].id==="3-0"?`
23
+ `+i):s.stack=i}throw s}}_request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=xo(this.defaults,o);const{transitional:s,paramsSerializer:n,headers:i}=o;s!==void 0&&Dd.assertOptions(s,{silentJSONParsing:Ga.transitional(Ga.boolean),forcedJSONParsing:Ga.transitional(Ga.boolean),clarifyTimeoutError:Ga.transitional(Ga.boolean)},!1),n!=null&&(L.isFunction(n)?o.paramsSerializer={serialize:n}:Dd.assertOptions(n,{encode:Ga.function,serialize:Ga.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let r=i&&L.merge(i.common,i[o.method]);i&&L.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),o.headers=Va.concat(r,i);const c=[];let g=!0;this.interceptors.request.forEach(function(u){typeof u.runWhen=="function"&&u.runWhen(o)===!1||(g=g&&u.synchronous,c.unshift(u.fulfilled,u.rejected))});const d=[];this.interceptors.response.forEach(function(u){d.push(u.fulfilled,u.rejected)});let l,m=0,h;if(!g){const p=[m1.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,d),h=p.length,l=Promise.resolve(o);m<h;)l=l.then(p[m++],p[m++]);return l}h=c.length;let y=o;for(m=0;m<h;){const p=c[m++],u=c[m++];try{y=p(y)}catch(f){u.call(this,f);break}}try{l=m1.call(this,y)}catch(p){return Promise.reject(p)}for(m=0,h=d.length;m<h;)l=l.then(d[m++],d[m++]);return l}getUri(a){a=xo(this.defaults,a);const o=r1(a.baseURL,a.url);return e1(o,a.params,a.paramsSerializer)}}L.forEach(["delete","get","head","options"],function(a){Pi.prototype[a]=function(o,s){return this.request(xo(s||{},{method:a,url:o,data:(s||{}).data}))}}),L.forEach(["post","put","patch"],function(a){function o(s){return function(i,r,c){return this.request(xo(c||{},{method:a,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}Pi.prototype[a]=o(),Pi.prototype[a+"Form"]=o(!0)});const Di=Pi;class Ld{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(i){o=i});const s=this;this.promise.then(n=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](n);s._listeners=null}),this.promise.then=n=>{let i;const r=new Promise(c=>{s.subscribe(c),i=c}).then(n);return r.cancel=function(){s.unsubscribe(i)},r},a(function(i,r,c){s.reason||(s.reason=new As(i,r,c),o(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const o=this._listeners.indexOf(a);o!==-1&&this._listeners.splice(o,1)}static source(){let a;return{token:new Ld(function(n){a=n}),cancel:a}}}const mV=Ld;function pV(e){return function(o){return e.apply(null,o)}}function hV(e){return L.isObject(e)&&e.isAxiosError===!0}const jd={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(jd).forEach(([e,a])=>{jd[a]=e});const gV=jd;function y1(e){const a=new Di(e),o=Du(Di.prototype.request,a);return L.extend(o,Di.prototype,a,{allOwnKeys:!0}),L.extend(o,a,null,{allOwnKeys:!0}),o.create=function(n){return y1(xo(e,n))},o}const Me=y1(Od);Me.Axios=Di,Me.CanceledError=As,Me.CancelToken=mV,Me.isCancel=i1,Me.VERSION=h1,Me.toFormData=zi,Me.AxiosError=me,Me.Cancel=Me.CanceledError,Me.all=function(a){return Promise.all(a)},Me.spread=pV,Me.isAxiosError=hV,Me.mergeConfig=xo,Me.AxiosHeaders=Va,Me.formToJSON=e=>s1(L.isHTMLForm(e)?new FormData(e):e),Me.getAdapter=d1.getAdapter,Me.HttpStatusCode=gV,Me.default=Me;const Li=Me,u1="/icn-play.svg",sMe="",yV={components:{BarraLeft:ZB,BarraRight:sx},props:{data:{type:Object,required:!1},showPlayButton:{type:Boolean,value:!0}},data(){return{gamesBySeason:{}}},computed:{...kt("nextGeneral",["gameForAnalysis","seasonId"]),...Te("nextGeneral",["homeTeam","visitingTeam"])},methods:{onclickPlayVideos(e){var a=[];e.type==2?e.position_id==1?e.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.category:e.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.category:e.type==3?e.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.category:e.category!=0?a=e.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const o=[1,2,3];let s={seasonId:e.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:this.gameForAnalysis.game_status!==4?[this.gameForAnalysis.game_id]:null,playerIds:e.position_id!=1?e.player_id?[e.player_id]:[]:[],goalkeeperIds:e.position_id==1?e.player_id?[e.player_id]:[]:[],teamId:e.team_id?e.team_id:0,matchResult:e.matchResult?[e.matchResult]:o,playData:{},advancedFilter:{playListTitle:""}};e.category!==0&&(s.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",s)},hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},deleteDecimalZero(e){const a=typeof e=="string"?parseFloat(e):e;return typeof a=="number"&&!isNaN(a)?a%1===0?a:a%1===0?Math.floor(a):a:e},formatNumbers(e){return e%1!==0?e.toFixed(1):e},getTeamValue(e,a,o){if(!a.game_id)return this.objectZeroValues;const s=e.generalCategoriesIds.accomplished===3;if(a.is_live){const n=e.homeTeam.accomplished.totalLive+e.visitingTeam.accomplished.totalLive;return n?{numberValue:s?e[o].accomplished.totalLive/n*100:e[o].accomplished.totalLive,numberBarPercent:e[o].accomplished.totalLive/n}:this.objectZeroValues}else if(a.is_live||a.game_status===1){const n=e.homeTeam.accomplished.totalPostGame+e.visitingTeam.accomplished.totalPostGame;return n?{numberValue:s?e[o].accomplished.totalPostGame/n*100:e[o].accomplished.totalPostGame,numberBarPercent:e[o].accomplished.totalPostGame/n}:this.objectZeroValues}if(s){const n=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,i=e[o].accomplished.avgPostGame/n;return e[o].accomplished.avgPostGame?{numberValue:i<1?i*100:i,numberBarPercent:e[o].accomplished.avgPostGame/n}:this.objectZeroValues}else{const n=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame;return e[o].accomplished.avgPostGame?{numberValue:e[o].accomplished.avgPostGame,numberBarPercent:e[o].accomplished.avgPostGame/n}:this.objectZeroValues}},async getGamesBySeasonV2(){try{const e={Authorization:this.token},o=`${this.apiUrl}${this.seasonId}/games/${this.gameId}`;return(await Li.get(o,{headers:e})).data}catch(e){return Promise.reject(e)}}},async mounted(){}},f1=e=>(t.pushScopeId("data-v-fec7a523"),e=e(),t.popScopeId(),e),uV={class:"card"},fV={class:"card__header"},_V={class:"card__stats"},bV=["onClick"],wV=[f1(()=>t.createElementVNode("img",{src:u1},null,-1))],CV={key:1,class:"card__stats__stat__button_empty"},kV={class:"card__stats__title"},SV={class:"card__stats__scores"},EV={key:0},NV={key:1},$V={key:2},BV={key:3},xV={class:"card__stats__bars"},VV=["onClick"],IV=[f1(()=>t.createElementVNode("img",{src:u1},null,-1))],AV={key:1,class:"card__stats__stat__button_empty"};function OV(e,a,o,s,n,i){const r=t.resolveComponent("BarraLeft"),c=t.resolveComponent("BarraRight");return t.openBlock(),t.createElementBlock("div",uV,[t.createElementVNode("span",fV,t.toDisplayString(o.data.name),1),t.createElementVNode("div",_V,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.data.subcategories,(g,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,class:"card__stats__stat"},[t.createElementVNode("div",null,[i.hVal(g)&&i.hVal(g).numberValue!="0"?(t.openBlock(),t.createElementBlock("div",{key:0,onClick:l=>i.onclickPlayVideos({category:g.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.homeTeam.team_id}),class:"card__stats__stat__button card__stats__stat__button_left"},wV,8,bV)):(t.openBlock(),t.createElementBlock("div",CV))]),t.createElementVNode("div",null,[t.createElementVNode("div",kV,t.toDisplayString(g.name)+t.toDisplayString(),1),t.createElementVNode("div",SV,[i.hVal(g)?(t.openBlock(),t.createElementBlock("span",EV,[t.createTextVNode(t.toDisplayString(i.deleteDecimalZero(i.formatNumbers(i.hVal(g).numberValue))),1),g.name=="Posesión"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",NV,"0")),i.aVal(g)?(t.openBlock(),t.createElementBlock("span",$V,[t.createTextVNode(t.toDisplayString(i.deleteDecimalZero(i.formatNumbers(i.aVal(g).numberValue))),1),g.name=="Posesión"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("%")],64)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",BV,"0"))]),t.createElementVNode("div",xV,[t.createElementVNode("div",null,[i.hVal(g)?(t.openBlock(),t.createBlock(r,{key:0,postmatch:i.hVal(g).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(r,{key:1,postmatch:0}))]),t.createElementVNode("div",null,[i.aVal(g)?(t.openBlock(),t.createBlock(c,{key:0,postmatch:i.aVal(g).numberBarPercent},null,8,["postmatch"])):(t.openBlock(),t.createBlock(c,{key:1,postmatch:0}))])])]),t.createElementVNode("div",null,[i.aVal(g)&&i.aVal(g).numberValue!="0"?(t.openBlock(),t.createElementBlock("div",{key:0,onClick:l=>i.onclickPlayVideos({category:g.accomplishedCategoryIds,type:3,season_id:e.seasonId,team_id:e.visitingTeam.team_id}),class:"card__stats__stat__button card__stats__stat__button_right"},IV,8,VV)):(t.openBlock(),t.createElementBlock("div",AV))])]))),128))])])}const TV=Ae(yV,[["render",OV],["__scopeId","data-v-fec7a523"]]),rMe="",zV={name:"GscComparative",props:{local:{type:Object,default:()=>{}},away:{type:Object,default:()=>{}},fontFamily:{type:String,default:"inherit"}},data(){return{}},computed:{customStyle(){const e={};return this.fontFamily&&(e["font-family"]=`${this.fontFamily}`),e}},methods:{}},Ia=e=>(t.pushScopeId("data-v-c7dcae1a"),e=e(),t.popScopeId(),e),FV={class:"comparative-card"},RV=Ia(()=>t.createElementVNode("div",{class:"header-title"},[t.createElementVNode("span",null,"Comparativa")],-1)),PV={class:"versus"},DV={class:"team-badge"},LV=["src","alt"],jV=Ia(()=>t.createElementVNode("div",null,[t.createElementVNode("div",null,[t.createElementVNode("div"),t.createElementVNode("div")]),t.createElementVNode("div",null,[t.createElementVNode("div"),t.createElementVNode("div")])],-1)),vV=Ia(()=>t.createElementVNode("span",{class:"vs-text"},"VS",-1)),MV={class:"team-badge"},HV=["src","alt"],UV={class:"details"},GV={key:0},WV=Ia(()=>t.createElementVNode("td",null,"Posición en la tabla",-1)),qV=Ia(()=>t.createElementVNode("td",null,"Puntos",-1)),JV=Ia(()=>t.createElementVNode("td",null,"Partidos jugados",-1)),XV=Ia(()=>t.createElementVNode("td",null,"Partidos ganados",-1)),ZV=Ia(()=>t.createElementVNode("td",null,"Partidos perdidos",-1)),YV=Ia(()=>t.createElementVNode("td",null,"Partidos empatados",-1));function KV(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",{class:"comparative-main",style:t.normalizeStyle(i.customStyle)},[t.createElementVNode("div",FV,[RV,t.createElementVNode("div",PV,[t.createElementVNode("div",DV,[o.local?(t.openBlock(),t.createElementBlock("img",{key:0,class:"team-badge__image",src:o.local.team_logo,alt:o.local.team_name},null,8,LV)):t.createCommentVNode("",!0),jV]),vV,t.createElementVNode("div",MV,[o.away?(t.openBlock(),t.createElementBlock("img",{key:0,class:"team-badge__image",src:o.away.team_logo,alt:o.away.team_name},null,8,HV)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",UV,[o.away&&o.local?(t.openBlock(),t.createElementBlock("table",GV,[t.createElementVNode("tbody",null,[t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.table_position),1),WV,t.createElementVNode("td",null,t.toDisplayString(o.away.table_position),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.points),1),qV,t.createElementVNode("td",null,t.toDisplayString(o.away.points),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.games_played),1),JV,t.createElementVNode("td",null,t.toDisplayString(o.away.games_played),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.games_won),1),XV,t.createElementVNode("td",null,t.toDisplayString(o.away.games_won),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.games_lost),1),ZV,t.createElementVNode("td",null,t.toDisplayString(o.away.games_lost),1)]),t.createElementVNode("tr",null,[t.createElementVNode("td",null,t.toDisplayString(o.local.games_tied),1),YV,t.createElementVNode("td",null,t.toDisplayString(o.away.games_tied),1)])])])):t.createCommentVNode("",!0)])])],4)}const QV=Ae(zV,[["render",KV],["__scopeId","data-v-c7dcae1a"]]),lMe="",eI=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},vd={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},_1=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},b1=vd.setup;vd.setup=b1?(e,a)=>(_1(),b1(e,a)):_1;const tI={ref:"gscScrollableContainer",class:"scrollable-container"},aI={class:"scrollable-arrows"},oI=["width","height","viewBox"],sI=["stroke"],nI={class:"scrollable-wrapper"},iI={class:"scrollable-arrows"},rI=["width","height","viewBox"],lI=["stroke"];function cI(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",tI,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[t.createElementVNode("div",aI,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:o.arrowsColor},null,8,sI)],8,oI))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[t.createElementVNode("div",nI,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[t.createElementVNode("div",iI,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:o.arrowsColor},null,8,lI)],8,rI))])],2)):t.createCommentVNode("",!0)],512)}const Md=eI(vd,[["render",cI],["__scopeId","data-v-b548a08d"]]),cMe="";let w1=null;const dI={name:"App",components:{GscLinearTeamStats:TV,TableComparative:QV,GSCSlider:Md},props:{seasonSelected:{type:Object,default:()=>({})}},computed:{...kt("nextGeneral",["gameForAnalysis","seasonId"]),...Te("nextGeneral",["arrayFilledDataSortedByPriority"])},watch:{gameForAnalysis:{handler:function(){this.getTableList()},immediate:!0}},data(){return{gamesContainerWidth:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",url:"https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/",gameId:79623,movil:!1,home:null,away:null}},methods:{openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)w1=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<680?this.movil=!0:this.movil=!1}),w1.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getTableList(){try{const a=await Li.create({headers:{Authorization:`${this.token}`}}).get(this.url+this.seasonSelected.id),o=a.data.data.findIndex(n=>n.team_id===this.gameForAnalysis.home_team),s=a.data.data.findIndex(n=>n.team_id===this.gameForAnalysis.visiting_team);this.home=a.data.data[o],this.away=a.data.data[s]}catch(e){console.error(e)}}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},mI={class:"container",ref:"gamesContainer"},pI={key:0,class:"grid-container"},hI={key:0,class:"item"},gI={class:"item"},yI={class:"item"},uI={class:"item"},fI={class:"item"},_I={class:"item"},bI={class:"item"},wI={class:"grid-container"},CI={key:0,class:"item-comparative"},kI={class:"table-movil-container"};function SI(e,a,o,s,n,i){const r=t.resolveComponent("TableComparative"),c=t.resolveComponent("GscLinearTeamStats"),g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",mI,[n.movil?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",wI,[n.home&&n.away?(t.openBlock(),t.createElementBlock("div",CI,[t.createVNode(r,{local:n.home,away:n.away,fontFamily:"Poppins-Light"},null,8,["local","away"])])):t.createCommentVNode("",!0)]),t.createVNode(g,{backgroundColor:"none",pxScroll:300,scrollColor:"none",arrowsPosition:"relative",arrowsScrollHide:!1,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",kI,[t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(n.gamesContainerWidth<510&&n.gamesContainerWidth>450?"width: 400px":n.gamesContainerWidth<=450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[0]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(n.gamesContainerWidth<510?"width: 400px":n.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[1]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(n.gamesContainerWidth<510?"width: 400px":n.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[2]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(n.gamesContainerWidth<510?"width: 400px":n.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[3]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(n.gamesContainerWidth<510?"width: 400px":n.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[4]},null,8,["onOpenmedia","data"])],4),t.createElementVNode("div",{class:"item-movil",style:t.normalizeStyle(n.gamesContainerWidth<510?"width: 400px":n.gamesContainerWidth<450?"width: 360px":"")},[t.createVNode(c,{onOpenmedia:i.openmedia,data:e.arrayFilledDataSortedByPriority[5]},null,8,["onOpenmedia","data"])],4)])]),_:1})],64)):(t.openBlock(),t.createElementBlock("div",pI,[n.home&&n.away?(t.openBlock(),t.createElementBlock("div",hI,[t.createVNode(r,{local:n.home,away:n.away,fontFamily:"Poppins-Light"},null,8,["local","away"])])):t.createCommentVNode("",!0),t.createElementVNode("div",gI,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[0],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",yI,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[1],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",uI,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[2],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",fI,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[3],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",_I,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[4],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])]),t.createElementVNode("div",bI,[t.createVNode(c,{data:e.arrayFilledDataSortedByPriority[5],onOpenmedia:i.openmedia},null,8,["data","onOpenmedia"])])]))],512)}const EI=Ae(dI,[["render",SI]]),dMe="",mMe="",C1=["#cbee6b","#0033C5"],NI={name:"distributionchart",components:{},props:{seasonSelected:{type:Object,default:()=>({})}},data(){return{arrayChartTypes:["General","Ofensivo","Defensivo","Posesión","Balón parado","Infracciones"],height:409,updateCategory:0,homeTeamSelectedPlaysType:0,visitingTeamSelectedPlaysType:0,chartKeyCounter:0,homeTeamPlaysTypes:{history:0,live:1},visitingTeamPlaysTypes:{history:0,live:1},tooltip:{show:!1,data:{},names:{},keyName:"",leagueAvg:"",showLiveData:!1,local:!1,x:0,y:0},globals:{x:0,y:0},arrayDataForCharts:[],arrayChartOptions:[],arrayFilledSeries:[]}},watch:{menuOptionActive(){this.idAssetSelected==3},idAssetSelected(){this.idAssetSelected===3&&this.chartKeyCounter++},isMobile(e){this.chartOptions.legend.horizontalAlign=e?"center":"left",this.chartKeyCounter++},arrayFilledDataSortedByPriority:{immediate:!0,deep:!0,handler(){this.fillData(),this.updateCategory++}},showLiveData(){this.fillData()}},computed:{...kt("nextGeneral",["showLiveData","gameForAnalysis"]),...Te("nextGeneral",["idAssetSelected","menuOptionActive","homeTeamStatisticsType","showPostMatchData","visitingTeamStatisticsType","homeTeam","visitingTeam","subcategoryName","accomplished","arrayFilledDataSortedByPriority","filledDataStructure","showPostMatchData"]),isMobile(){return this.$mq==="mobile"},timeLeft(){const e=new Date().getTime(),o=new Date(this.gameForAnalysis.date_time_utc).getTime()-e,s=Math.floor(o/(1e3*60*60*24)),n=Math.floor(o%(1e3*60*60*24)/(1e3*60*60)),i=Math.floor(o%(1e3*60*60)/(1e3*60)),r=Math.floor(o%(1e3*60)/1e3);let c="";return r>0&&(c=r==1?r+" segundo":r+" segundos"),i>0&&(c=i==1?i+" minuto":i+" minutos"),n>0&&(c=n==1?n+" hora":n+" horas"),s>0&&(c=s==1?s+" día":s+" días"),c}},methods:{avg(e,a){return a?e.leagueAccomplishedAvg:e.leagueReceivedAvg},fillData(){this.arrayChartOptions=[],this.arrayFilledDataSortedByPriority&&this.arrayFilledDataSortedByPriority.length&&typeof this.arrayFilledDataSortedByPriority[0].subcategories=="object"?(this.arrayChartOptions=[],this.arrayFilledSeries=[],this.arrayDataForCharts=this.arrayFilledDataSortedByPriority.map(e=>{const a=this.getChartOptions();return this.arrayFilledSeries.push(this.getChartSeries(e.subcategories,a)),this.arrayChartOptions.push(a),e})):this.arrayDataForCharts=[]},getChartOptions(){return{plotOptions:{radar:{size:132,polygons:{strokeColors:"#606971"}}},chart:{type:"radar",height:509,toolbar:{show:!1}},colors:C1,fill:{colors:C1,opacity:.4},legend:{show:!0,position:"bottom",horizontalAlign:"left",fontSize:"11px",fontFamily:"Poppins-Regular",labels:{colors:"#d9d9d9",useSeriesColors:!1}},xaxis:{categories:[],labels:{show:!0,style:{fontSize:"11px",fontFamily:"Poppins-Regular"}}},yaxis:{show:!1},responsive:[{breakpoint:770,options:{chart:{height:300},plotOptions:{radar:{size:100,offsetY:10,polygons:{strokeColors:"#606971"}},bar:{horizontal:!1}},legend:{position:"top",horizontalAlign:"center"},xaxis:{labels:{show:!0,style:{fontSize:"11px"}}}}},{breakpoint:450,options:{plotOptions:{radar:{size:70,offsetY:-20,polygons:{strokeColors:"#dcdcdc"}},bar:{horizontal:!1}},legend:{position:"top",horizontalAlign:"center"},xaxis:{labels:{show:!0,style:{fontSize:"10px"}}}}}],tooltip:{intersect:!0,followCursor:!0,shared:!1,theme:"dark",style:{fontSize:"12px"},custom:function({series:e,seriesIndex:a,dataPointIndex:o,w:s}){const n=s.config.arraySubcategories[o].name,i=s.config.series[a].name,r=s.config.series[a].dataTotal[o],c=e[a][o];return s.config.arraySubcategories[o].id==="3-0"?`
24
24
  <div class="custom-tooltip-apexchart" style="display: none !important;">
25
25
  <div class="__title">${n}:</div>
26
26
  <div class="__totals">${i}: ${c}%</div>
@@ -54,7 +54,7 @@
54
54
  * Vue 3 Carousel 0.3.1
55
55
  * (c) 2023
56
56
  * @license MIT
57
- */const ct={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"}},B2={itemsToShow:{default:ct.itemsToShow,type:Number},itemsToScroll:{default:ct.itemsToScroll,type:Number},wrapAround:{default:ct.wrapAround,type:Boolean},throttle:{default:ct.throttle,type:Number},snapAlign:{default:ct.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:ct.transition,type:Number},breakpoints:{default:ct.breakpoints,type:Object},autoplay:{default:ct.autoplay,type:Number},pauseAutoplayOnHover:{default:ct.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:ct.mouseDrag,type:Boolean},touchDrag:{default:ct.touchDrag,type:Boolean},dir:{default:ct.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:ct.i18n,type:Object},settings:{default(){return{}},type:Object}};function HK({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:s,itemsToShow:n=1}=e;if(s)return Math.max(a-1,0);let i;switch(o){case"start":i=a-n;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((n-.5)/2);break;case"center-even":i=a-Math.ceil(n/2);break;default:i=0;break}return Math.max(i,0)}function UK({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:s,itemsToShow:n=1}=e;let i=0;if(o||n>a)return i;switch(s){case"start":i=0;break;case"end":i=n-1;break;case"center":case"center-odd":i=Math.floor((n-1)/2);break;case"center-even":i=Math.floor((n-2)/2);break;default:i=0;break}return i}function hp({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function GK({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:s,wrapAround:n,itemsToShow:i=1}=e;let r=a;switch(s){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return n?r:hp({val:r,max:o-i,min:0})}function x2(e){return e?e.reduce((a,o)=>{var s;return o.type===t.Fragment?[...a,...x2(o.children)]:((s=o.type)===null||s===void 0?void 0:s.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function gp({val:e,max:a,min:o=0}){return e>a?gp({val:e-(a+1),max:a,min:o}):e<o?gp({val:e+(a+1),max:a,min:o}):e}function WK(e,a){let o;return a?function(...s){const n=this;o||(e.apply(n,s),o=!0,setTimeout(()=>o=!1,a))}:e}function qK(e,a){let o;return function(...s){o&&clearTimeout(o),o=setTimeout(()=>{e(...s),o=null},a)}}function JK(e="",a={}){return Object.entries(a).reduce((o,[s,n])=>o.replace(`{${s}}`,String(n)),e)}var XK=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},ct))),a=t.inject("currentSlide",t.ref(0)),o=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},JK(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),ZK=t.defineComponent({name:"Carousel",props:B2,setup(e,{slots:a,emit:o,expose:s}){var n;const i=t.ref(null),r=t.ref([]),c=t.ref(0),g=t.ref(0),d=t.reactive(Object.assign({},ct));let l=Object.assign({},ct),m;const h=t.ref((n=e.modelValue)!==null&&n!==void 0?n:0),y=t.ref(0),p=t.ref(0),u=t.ref(0),f=t.ref(0);let _,k;t.provide("config",d),t.provide("slidesCount",g),t.provide("currentSlide",h),t.provide("maxSlide",u),t.provide("minSlide",f),t.provide("slideWidth",c);function C(){m=Object.assign({},e.breakpoints),l=Object.assign(Object.assign(Object.assign({},l),e),{i18n:Object.assign(Object.assign({},l.i18n),e.i18n),breakpoints:void 0}),E(l)}function b(){if(!m||!Object.keys(m).length)return;const S=Object.keys(m).map(T=>Number(T)).sort((T,te)=>+te-+T);let z=Object.assign({},l);S.some(T=>{const te=window.matchMedia(`(min-width: ${T}px)`).matches;return te&&(z=Object.assign(Object.assign({},z),m[T])),te}),E(z)}function E(S){Object.entries(S).forEach(([z,T])=>d[z]=T)}const x=qK(()=>{b(),V()},16);function V(){if(!i.value)return;const S=i.value.getBoundingClientRect();c.value=S.width/d.itemsToShow}function B(){g.value<=0||(p.value=Math.ceil((g.value-1)/2),u.value=HK({config:d,slidesCount:g.value}),f.value=UK({config:d,slidesCount:g.value}),d.wrapAround||(h.value=hp({val:h.value,max:u.value,min:f.value})))}t.onMounted(()=>{t.nextTick(()=>V()),setTimeout(()=>V(),1e3),b(),oe(),window.addEventListener("resize",x,{passive:!0}),o("init")}),t.onUnmounted(()=>{k&&clearTimeout(k),_&&clearInterval(_),window.removeEventListener("resize",x,{passive:!0})});let $=!1;const F={x:0,y:0},A={x:0,y:0},I=t.reactive({x:0,y:0}),P=t.ref(!1),Q=t.ref(!1),K=()=>{P.value=!0},R=()=>{P.value=!1};function w(S){["INPUT","TEXTAREA","SELECT"].includes(S.target.tagName)||($=S.type==="touchstart",$||S.preventDefault(),!(!$&&S.button!==0||ee.value)&&(F.x=$?S.touches[0].clientX:S.clientX,F.y=$?S.touches[0].clientY:S.clientY,document.addEventListener($?"touchmove":"mousemove",N,!0),document.addEventListener($?"touchend":"mouseup",O,!0)))}const N=WK(S=>{Q.value=!0,A.x=$?S.touches[0].clientX:S.clientX,A.y=$?S.touches[0].clientY:S.clientY;const z=A.x-F.x,T=A.y-F.y;I.y=T,I.x=z},d.throttle);function O(){const S=d.dir==="rtl"?-1:1,z=Math.sign(I.x)*.4,T=Math.round(I.x/c.value+z)*S;if(T&&!$){const te=Be=>{Be.stopPropagation(),window.removeEventListener("click",te,!0)};window.addEventListener("click",te,!0)}ae(h.value-T),I.x=0,I.y=0,Q.value=!1,document.removeEventListener($?"touchmove":"mousemove",N,!0),document.removeEventListener($?"touchend":"mouseup",O,!0)}function oe(){!d.autoplay||d.autoplay<=0||(_=setInterval(()=>{d.pauseAutoplayOnHover&&P.value||ie()},d.autoplay))}function se(){_&&(clearInterval(_),_=null),oe()}const ee=t.ref(!1);function ae(S){const z=d.wrapAround?S:hp({val:S,max:u.value,min:f.value});h.value===z||ee.value||(o("slide-start",{slidingToIndex:S,currentSlideIndex:h.value,prevSlideIndex:y.value,slidesCount:g.value}),ee.value=!0,y.value=h.value,h.value=z,k=setTimeout(()=>{if(d.wrapAround){const T=gp({val:z,max:u.value,min:0});T!==h.value&&(h.value=T,o("loop",{currentSlideIndex:h.value,slidingToIndex:S}))}o("update:modelValue",h.value),o("slide-end",{currentSlideIndex:h.value,prevSlideIndex:y.value,slidesCount:g.value}),ee.value=!1,se()},d.transition))}function ie(){ae(h.value+d.itemsToScroll)}function Ee(){ae(h.value-d.itemsToScroll)}const ze={slideTo:ae,next:ie,prev:Ee};t.provide("nav",ze),t.provide("isSliding",ee);const Fe=t.computed(()=>GK({config:d,currentSlide:h.value,slidesCount:g.value}));t.provide("slidesToScroll",Fe);const ft=t.computed(()=>{const S=d.dir==="rtl"?-1:1,z=Fe.value*c.value*S;return{transform:`translateX(${I.x-z}px)`,transition:`${ee.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${g.value*c.value}px`:"",width:"100%"}});function Re(){C(),b(),B(),V(),se()}Object.keys(B2).forEach(S=>{["modelValue"].includes(S)||t.watch(()=>e[S],Re)}),t.watch(()=>e.modelValue,S=>{S!==h.value&&ae(Number(S))}),t.watch(g,B),o("before-init"),C();const Pe={config:d,slidesCount:g,slideWidth:c,next:ie,prev:Ee,slideTo:ae,currentSlide:h,maxSlide:u,minSlide:f,middleSlide:p};s({updateBreakpointsConfigs:b,updateSlidesData:B,updateSlideWidth:V,initDefaultConfigs:C,restartCarousel:Re,slideTo:ae,next:ie,prev:Ee,nav:ze,data:Pe});const De=a.default||a.slides,Le=a.addons,je=t.reactive(Pe);return()=>{const S=x2(De==null?void 0:De(je)),z=(Le==null?void 0:Le(je))||[];S.forEach((xe,Ve)=>xe.props.index=Ve);let T=S;if(d.wrapAround){const xe=S.map((Ie,ne)=>t.cloneVNode(Ie,{index:-S.length+ne,isClone:!0,key:`clone-before-${ne}`})),Ve=S.map((Ie,ne)=>t.cloneVNode(Ie,{index:S.length+ne,isClone:!0,key:`clone-after-${ne}`}));T=[...xe,...S,...Ve]}r.value=S,g.value=Math.max(S.length,1);const te=t.h("ol",{class:"carousel__track",style:ft.value,onMousedownCapture:d.mouseDrag?w:null,onTouchstartPassiveCapture:d.touchDrag?w:null},T),Be=t.h("div",{class:"carousel__viewport"},te);return t.h("section",{ref:i,class:{carousel:!0,"is-sliding":ee.value,"is-dragging":Q.value,"is-hover":P.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:K,onMouseleave:R},[Be,z,t.h(XK)])}}}),V2;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(V2||(V2={}));var YK=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const o=t.inject("config",t.reactive(Object.assign({},ct))),s=t.inject("currentSlide",t.ref(0)),n=t.inject("slidesToScroll",t.ref(0)),i=t.inject("isSliding",t.ref(!1)),r=()=>e.index===s.value,c=()=>e.index===s.value-1,g=()=>e.index===s.value+1,d=()=>{const l=Math.floor(n.value),m=Math.ceil(n.value+o.itemsToShow-1);return e.index>=l&&e.index<=m};return()=>{var l;return t.h("li",{style:{width:`${100/o.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d(),"carousel__slide--active":r(),"carousel__slide--prev":c(),"carousel__slide--next":g(),"carousel__slide--sliding":i.value},"aria-hidden":!d()},(l=a.default)===null||l===void 0?void 0:l.call(a))}}});const KK=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},QK=e=>(t.pushScopeId("data-v-dd3cbf69"),e=e(),t.popScopeId(),e),eQ={class:"gsc-carousel"},tQ={key:0},aQ=QK(()=>t.createElementVNode("div",null,"no hay",-1)),oQ=[aQ],sQ={class:"gsc-carousel__2d__slides"},nQ={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},iQ=["fill"],rQ={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lQ=["fill"],cQ={class:"gsc-carousel__2d__navigation"},dQ={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},mQ=["stroke"],pQ={key:1,class:"gsc-carousel__2d__navigation__pagination"},hQ=["onClick"],gQ={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},yQ=["stroke"],uQ={__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(a=>a 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"},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:a,emit:o}){const s=e;t.useCssVars(u=>({"0d808f0f":e.slideLeftArrowBackgroundImage,"1e0ef2e5":e.slidesArrowsLeftAndRight,"66d12b5c":e.slideRightArrowBackgroundImage,"2b22a85a":e.marginTop,"1a842b02":e.secondarySlidesOpacity}));const n=t.ref(null),i=t.ref({}),r=t.ref(0),c=t.ref(!1);t.watch(n,u=>{u&&c.value?(c.value=!1,g(s.items)):u&&u.slideTo&&u.slideTo(r.value)},{deep:!0}),t.watch(()=>s.currentItemIndex,u=>{r.value!==u&&h(u)}),t.watch(()=>s.items,u=>{n.value?g(u):c.value=!0},{immediate:!0});function g(u){if(u&&u.length&&n.value){if(s.defaultItemByProp){const f=s.items.findIndex(_=>_[s.defaultItemByProp.propName]===s.defaultItemByProp.value);f!==-1?(r.value=f,i.value=u[f]):(r.value=0,i.value=u[0])}else r.value=s.defaultItemByIndex,i.value=u[s.defaultItemByIndex];n.value.slideTo&&n.value.slideTo(r.value),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}}function d(){n.value&&n.value.next()}function l(){n.value&&n.value.prev()}function m(){n.value&&n.value.updateSlideWidth()}function h(u){n.value&&n.value.slideTo(u)}function y(u){n.value.slideTo(u)}function p(u){const f=u.slidingToIndex<0?s.items.length-1:u.slidingToIndex===s.items.length?0:u.slidingToIndex;r.value=f,i.value=s.items[f],o("update:currentItemIndex",f),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}return a({prev:l,next:d,updateSlideWidth:m,slideTo:h}),(u,f)=>(t.openBlock(),t.createElementBlock("div",eQ,[s.is3d?(t.openBlock(),t.createElementBlock("div",tQ,oQ)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",sQ,[t.createVNode(t.unref(ZK),{ref_key:"carousel2d",ref:n,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:p},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(_,k)=>(t.openBlock(),t.createBlock(t.unref(YK),{key:k},{default:t.withCtx(()=>[t.renderSlot(u.$slots,"default",{item:_},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:f[0]||(f[0]=_=>n.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",nQ,[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,iQ)]))],2)])):t.createCommentVNode("",!0),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:f[1]||(f[1]=_=>d())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",rQ,[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,lQ)]))],2)])):t.createCommentVNode("",!0),t.createElementVNode("div",cQ,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:f[2]||(f[2]=_=>l())},[(t.openBlock(),t.createElementBlock("svg",dQ,[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:s.arrowsColor},null,8,mQ)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",pQ,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(_,k)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${k}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${s.navigationHeight}px`,width:`${r.value===k?s.navigationActiveWidth:s.navigationActiveWidth/2}px`,borderRadius:`${s.navigationBorderRadius}px`,backgroundColor:`${r.value===k?s.navigationActiveColor:s.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:C=>y(k)},null,12,hQ))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:f[3]||(f[3]=_=>n.value.next())},[(t.openBlock(),t.createElementBlock("svg",gQ,[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:s.arrowsColor},null,8,yQ)]))])):t.createCommentVNode("",!0)])],2))]))}},fQ=KK(uQ,[["__scopeId","data-v-dd3cbf69"]]);function _Q(e){const a=t.ref({width:0,height:0});function o(){const s=e.value.getBoundingClientRect();a.value.width=s.width,a.value.height=s.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const bQ="_tarjetaDatosGsDesktoptype4_p1q9z_107",wQ="_tarjetaDatosGsDesktop500type4_p1q9z_127",CQ="_tarjetaDatosGs414type4_p1q9z_135",kQ="_tarjetaDatosGs414500type4_p1q9z_159",SQ="_tarjetaDatosGs414380type4_p1q9z_183",EQ="_tarjetaDatosGs320type4_p1q9z_191",NQ="_tarjetaDatosGs320380type4_p1q9z_215",$Q="_dataBox8type4_p1q9z_239",BQ="_dataBox8380type4_p1q9z_273",xQ="_dataBoxtype4_p1q9z_309",VQ="_dataBox520type4_p1q9z_349",IQ="_dataBox480type4_p1q9z_391",AQ="_dataBox3type4_p1q9z_431",OQ="_dataBox3520type4_p1q9z_471",TQ="_dataBox4type4_p1q9z_481",zQ="_dataBox4500type4_p1q9z_523",FQ="_dataBox6type4_p1q9z_569",RQ="_dataBox6500type4_p1q9z_613",PQ="_dataContainertype4_p1q9z_665",DQ="_dataContainer520type4_p1q9z_693",LQ="_dataContainer1type4_p1q9z_725",jQ="_dataContainer1500type4_p1q9z_753",vQ="_dataBox7type4_p1q9z_783",MQ="_dataBox7380type4_p1q9z_817",HQ="_div15type4_p1q9z_857",UQ="_div15380type4_p1q9z_875",GQ="_btnShareIcontype4_p1q9z_893",WQ="_btnSharetype4_p1q9z_905",qQ="_bakgBaseIcontype4_p1q9z_935",JQ="_roleCharacterIcontype4_p1q9z_959",XQ="_verVideostype4_p1q9z_975",ZQ="_btnVideostype4_p1q9z_989",YQ="_playerNametype4_p1q9z_1037",KQ="_elJugadortype4_p1q9z_1055",QQ="_aSeguirtype4_p1q9z_1063",eee="_elJugadorAContainertype4_p1q9z_1073",tee="_titletype4_p1q9z_1093",aee="_baseCardtype4_p1q9z_1121",oee="_imagePlayerIcontype4_p1q9z_1151",see="_arrowGraphIcontype4_p1q9z_1177",nee="_divtype4_p1q9z_1189",iee="_totaltype4_p1q9z_1203",ree="_div1type4_p1q9z_1219",lee="_btnShareIcon1type4_p1q9z_1241",cee="_btnShare1type4_p1q9z_1253",dee="_bakgBaseIcon1type4_p1q9z_1281",mee="_bakgBaseIcon2type4_p1q9z_1305",pee="_roleCharacterIcon1type4_p1q9z_1329",hee="_btnVideos1type4_p1q9z_1345",gee="_playerName1type4_p1q9z_1385",yee="_elJugadorAContainer1type4_p1q9z_1395",uee="_title1type4_p1q9z_1415",fee="_baseCard1type4_p1q9z_1441",_ee="_imagePlayerIcon1type4_p1q9z_1469",bee="_total4type4_p1q9z_1491",wee="_div9type4_p1q9z_1507",Cee="_roleCharacterIcon2type4_p1q9z_1523",kee="_btnVideos2type4_p1q9z_1539",See="_elJugadorAContainer2type4_p1q9z_1575",Eee="_title2type4_p1q9z_1595",Nee="_imagePlayerIcon2type4_p1q9z_1623",$ee="_dataContainer2type4_p1q9z_1645",Bee="_tarjetaDatosGstype4_p1q9z_1675",xee={tarjetaDatosGsDesktoptype4:bQ,tarjetaDatosGsDesktop500type4:wQ,tarjetaDatosGs414type4:CQ,tarjetaDatosGs414500type4:kQ,tarjetaDatosGs414380type4:SQ,tarjetaDatosGs320type4:EQ,tarjetaDatosGs320380type4:NQ,dataBox8type4:$Q,dataBox8380type4:BQ,dataBoxtype4:xQ,dataBox520type4:VQ,dataBox480type4:IQ,dataBox3type4:AQ,dataBox3520type4:OQ,dataBox4type4:TQ,dataBox4500type4:zQ,dataBox6type4:FQ,dataBox6500type4:RQ,dataContainertype4:PQ,dataContainer520type4:DQ,dataContainer1type4:LQ,dataContainer1500type4:jQ,dataBox7type4:vQ,dataBox7380type4:MQ,div15type4:HQ,div15380type4:UQ,btnShareIcontype4:GQ,btnSharetype4:WQ,bakgBaseIcontype4:qQ,roleCharacterIcontype4:JQ,verVideostype4:XQ,btnVideostype4:ZQ,playerNametype4:YQ,elJugadortype4:KQ,aSeguirtype4:QQ,elJugadorAContainertype4:eee,titletype4:tee,baseCardtype4:aee,imagePlayerIcontype4:oee,arrowGraphIcontype4:see,divtype4:nee,totaltype4:iee,div1type4:ree,btnShareIcon1type4:lee,btnShare1type4:cee,bakgBaseIcon1type4:dee,bakgBaseIcon2type4:mee,roleCharacterIcon1type4:pee,btnVideos1type4:hee,playerName1type4:gee,elJugadorAContainer1type4:yee,title1type4:uee,baseCard1type4:fee,imagePlayerIcon1type4:_ee,total4type4:bee,div9type4:wee,roleCharacterIcon2type4:Cee,btnVideos2type4:kee,elJugadorAContainer2type4:See,title2type4:Eee,imagePlayerIcon2type4:Nee,dataContainer2type4:$ee,tarjetaDatosGstype4:Bee},I2=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},yp={components:{},props:{data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},colorcard:{type:String,default:"#122736"},showShareButton:{type:Boolean,default:!1},customizeColors:{type:Boolean,default:!0}},data(){return{}},computed:{tarjetaDatosGsDesktopClass(){return this.elementSize.width<=500?this.$style.tarjetaDatosGsDesktop500type4:this.$style.tarjetaDatosGsDesktoptype4},tarjetaDatosGs414Class(){const e=this.elementSize.width;return e<=380?this.$style.tarjetaDatosGs414380type4:e<=500?this.$style.tarjetaDatosGs414500type4:this.$style.tarjetaDatosGs414type4},tarjetaDatosGs320Class(){return this.elementSize.width<=380?this.$style.tarjetaDatosGs320380type4:this.$style.tarjetaDatosGs320type4},dataBox8Class(){return this.elementSize.width<=380?this.$style.dataBox8380type4:this.$style.dataBox8type4},dataBoxClass(){const e=this.elementSize.width;return e<=480?this.$style.dataBox480type4:e<=520?this.$style.dataBox520type4:this.$style.dataBoxtype4},dataBox3Class(){return this.elementSize.width<=520?this.$style.dataBox3520type4:this.$style.dataBox3type4},dataBox4Class(){return this.elementSize.width<=500?this.$style.dataBox4500type4:this.$style.dataBox4type4},dataBox6Class(){return this.elementSize.width<=500?this.$style.dataBox6500type4:this.$style.dataBox6type4},dataBox7Class(){return this.elementSize.width<=380?this.$style.dataBox7380type4:this.$style.dataBox7type4},dataContainerClass(){return this.elementSize.width<=520?this.$style.dataContainer520type4:this.$style.dataContainertype4},dataContainer1Class(){return this.elementSize.width<=500?this.$style.dataContainer1500type4:this.$style.dataContainer1type4},div15Class(){return this.elementSize.width<=380?this.$style.div15380type4:this.$style.div15type4}},setup(){const e=t.ref("myDivRefCardtype4"),{elementSize:a}=_Q(e);return{myDivRefCardtype4:e,elementSize:a}},methods:{clickPlayer(e){this.clickCard&&this.$emit("onClickCard",e)},clickVideos(e){this.clickCard||this.$emit("onClickVideos",e)},clickCategory(e){this.clickCard||this.$emit("onClickCategory",e)}}},A2=()=>{t.useCssVars(e=>({"01071910":e.data.background_color_cards!=null&&e.customizeColors?e.data.background_color_cards:"#1b3649","59f43f5a":e.data.background_color_buttons!=null&&e.customizeColors?e.data.background_color_buttons:"#293744","6ab83eac":e.customizeColors?"":"#cbee6b","79e09a27":e.colorcard,"5882be5b":e.data.font_color!=null&&e.customizeColors?e.data.font_color:"#fff"}))},O2=yp.setup;yp.setup=O2?(e,a)=>(A2(),O2(e,a)):A2;const Vee=t.createElementVNode("path",{d:"M14.886 14.0466C14.1404 14.0466 13.4733 14.3409 12.9632 14.8019L5.96863 10.7308C6.01768 10.5052 6.05692 10.2795 6.05692 10.0441C6.05692 9.80867 6.01768 9.58304 5.96863 9.35741L12.8847 5.32551C13.4145 5.81601 14.111 6.12012 14.886 6.12012C15.6665 6.12012 16.4151 5.81005 16.967 5.25814C17.5189 4.70622 17.829 3.95765 17.829 3.17712C17.829 2.39659 17.5189 1.64803 16.967 1.09611C16.4151 0.544195 15.6665 0.234131 14.886 0.234131C14.1054 0.234131 13.3569 0.544195 12.8049 1.09611C12.253 1.64803 11.9429 2.39659 11.9429 3.17712C11.9429 3.41256 11.9822 3.63819 12.0312 3.86382L5.11516 7.89572C4.58542 7.40523 3.8889 7.10112 3.11391 7.10112C2.33337 7.10112 1.58481 7.41118 1.03289 7.9631C0.480965 8.51502 0.170898 9.26358 0.170898 10.0441C0.170898 10.8246 0.480965 11.5732 1.03289 12.1251C1.58481 12.677 2.33337 12.9871 3.11391 12.9871C3.8889 12.9871 4.58542 12.683 5.11516 12.1925L12.0999 16.2636C12.0509 16.4696 12.0214 16.6855 12.0214 16.9111C12.0214 18.4905 13.3065 19.7658 14.886 19.7658C16.4654 19.7658 17.7505 18.4905 17.7505 16.9111C17.7505 16.1514 17.4487 15.4228 16.9115 14.8856C16.3743 14.3484 15.6457 14.0466 14.886 14.0466Z",fill:"#F4F4F4","fill-opacity":"0.5"},null,-1),Iee=[Vee],Aee=["src"],Oee={"clip-path":"url(#clip0_59_831)"},Tee=["fill"],zee=t.createElementVNode("defs",null,[t.createElementVNode("clipPath",{id:"clip0_59_831"},[t.createElementVNode("rect",{width:"12",height:"12",fill:"white",transform:"translate(0.375 0.637695)"})])],-1),Fee=["src"],Ree=["fill"],Pee=["fill"],Dee=["fill"],Lee=t.createElementVNode("path",{d:"M10.2126 9.10136C9.73332 9.10136 9.30448 9.29055 8.97655 9.58695L4.48004 6.96979C4.51158 6.82474 4.5368 6.67969 4.5368 6.52834C4.5368 6.37699 4.51158 6.23194 4.48004 6.08689L8.92609 3.49495C9.26664 3.81027 9.7144 4.00577 10.2126 4.00577C10.7144 4.00577 11.1956 3.80645 11.5504 3.45164C11.9052 3.09684 12.1045 2.61562 12.1045 2.11385C12.1045 1.61208 11.9052 1.13086 11.5504 0.776056C11.1956 0.421251 10.7144 0.221924 10.2126 0.221924C9.71084 0.221924 9.22962 0.421251 8.87481 0.776056C8.52 1.13086 8.32067 1.61208 8.32067 2.11385C8.32067 2.2652 8.3459 2.41025 8.37743 2.5553L3.93138 5.14723C3.59083 4.83191 3.14308 4.63641 2.64487 4.63641C2.14309 4.63641 1.66187 4.83574 1.30706 5.19055C0.952258 5.54535 0.75293 6.02657 0.75293 6.52834C0.75293 7.03011 0.952258 7.51133 1.30706 7.86613C1.66187 8.22094 2.14309 8.42026 2.64487 8.42026C3.14308 8.42026 3.59083 8.22476 3.93138 7.90944L8.42158 10.5266C8.39004 10.659 8.37113 10.7978 8.37113 10.9428C8.37113 11.9582 9.19727 12.778 10.2126 12.778C11.2279 12.778 12.0541 11.9582 12.0541 10.9428C12.0541 10.4544 11.8601 9.98605 11.5147 9.64071C11.1694 9.29537 10.701 9.10136 10.2126 9.10136Z",fill:"#F4F4F4","fill-opacity":"0.5"},null,-1),jee=[Lee],vee=["src"],Mee=["fill"],Hee=["src"],Uee=["fill"],Gee=["fill"],Wee=["fill"],qee=t.createElementVNode("path",{d:"M10.2126 9.10111C9.73332 9.10111 9.30448 9.2903 8.97655 9.58671L4.48004 6.96954C4.51158 6.8245 4.5368 6.67945 4.5368 6.52809C4.5368 6.37674 4.51158 6.23169 4.48004 6.08665L8.92609 3.49471C9.26664 3.81003 9.7144 4.00553 10.2126 4.00553C10.7144 4.00553 11.1956 3.8062 11.5504 3.4514C11.9052 3.09659 12.1045 2.61537 12.1045 2.1136C12.1045 1.61183 11.9052 1.13062 11.5504 0.775812C11.1956 0.421007 10.7144 0.22168 10.2126 0.22168C9.71084 0.22168 9.22962 0.421007 8.87481 0.775812C8.52 1.13062 8.32067 1.61183 8.32067 2.1136C8.32067 2.26496 8.3459 2.41001 8.37743 2.55505L3.93138 5.14699C3.59083 4.83167 3.14308 4.63617 2.64487 4.63617C2.14309 4.63617 1.66187 4.8355 1.30706 5.1903C0.952258 5.54511 0.75293 6.02633 0.75293 6.52809C0.75293 7.02986 0.952258 7.51108 1.30706 7.86589C1.66187 8.22069 2.14309 8.42002 2.64487 8.42002C3.14308 8.42002 3.59083 8.22452 3.93138 7.9092L8.42158 10.5264C8.39004 10.6588 8.37113 10.7975 8.37113 10.9426C8.37113 11.9579 9.19727 12.7778 10.2126 12.7778C11.2279 12.7778 12.0541 11.9579 12.0541 10.9426C12.0541 10.4542 11.8601 9.98581 11.5147 9.64047C11.1694 9.29512 10.701 9.10111 10.2126 9.10111Z",fill:"#F4F4F4","fill-opacity":"0.5"},null,-1),Jee=[qee],Xee=["src"],Zee=["fill"],Yee=["src"],Kee=["fill"],Qee=["fill"],ete=["fill"];function tte(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.tarjetaDatosGstype4),ref:"myDivRefCardtype4",onClick:a[10]||(a[10]=r=>i.clickPlayer({season_id:o.data.id_season,player_id:o.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(i.tarjetaDatosGsDesktopClass),id:"card-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.baseCardtype4)},[o.showShareButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.btnSharetype4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.btnShareIcontype4),width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Iee,2))],2)):t.createCommentVNode("",!0),o.data.background!=""?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.bakgBaseIcontype4),alt:"",src:o.data.background},null,10,Aee)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideostype4),onClick:a[0]||(a[0]=r=>i.clickVideos({season_id:o.data.id_season,player_id:o.data.player_id,game_id:o.data.game_id,category:0,type:2}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcontype4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("g",Oee,[t.createElementVNode("path",{d:"M2.67705 12.0654C2.58553 12.0133 2.50903 11.9355 2.4558 11.8404C2.40257 11.7452 2.37464 11.6363 2.375 11.5255V1.74838C2.37513 1.63789 2.40325 1.5295 2.45637 1.43474C2.50949 1.33998 2.58563 1.26238 2.6767 1.21019C2.76776 1.15801 2.87035 1.13319 2.97355 1.13837C3.07675 1.14355 3.17671 1.17854 3.2628 1.23962L10.1203 6.12875C10.1987 6.18445 10.2629 6.25998 10.3073 6.34864C10.3518 6.4373 10.375 6.53633 10.375 6.63692C10.375 6.73751 10.3518 6.83654 10.3073 6.9252C10.2629 7.01386 10.1987 7.0894 10.1203 7.1451L3.2628 12.0354C3.17684 12.0966 3.07696 12.1317 2.9738 12.137C2.87065 12.1423 2.76809 12.1175 2.67705 12.0654V12.0654ZM2.94673 11.5266L9.80426 6.6375L2.94673 11.5266Z",fill:o.data.color_icon_play!=null&&o.customizeColors?o.data.color_icon_play:"#CBEE6B"},null,8,Tee)]),zee],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideostype4)},"Ver videos",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.titletype4),id:"title-info"},[t.createElementVNode("h4",{class:t.normalizeClass(e.$style.playerNametype4),id:"player-name"},t.toDisplayString(o.data.player_name),3),t.createElementVNode("h2",{class:t.normalizeClass(e.$style.elJugadorAContainertype4),id:"title-card"},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.elJugadortype4)},t.toDisplayString(o.data.main_title),3),t.createElementVNode("p",{class:t.normalizeClass(e.$style.aSeguirtype4)},t.toDisplayString(o.data.second_title),3)],2)],2)],2),o.data.player_photo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imagePlayerIcontype4),alt:"",src:o.data.player_photo},null,10,Fee)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.dataContainerClass),id:"data-container"},[o.data.category_stats_1!==""?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle("color:"+o.data.font_color_card+"!important"),class:t.normalizeClass(i.dataBoxClass),onClick:a[1]||(a[1]=r=>i.clickCategory({category:o.data.category_id_1,season_id:o.data.id_season,player_id:o.data.player_id,game_id:o.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.totaltype4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.font_color_card},null,8,Ree)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_1),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1type4)},t.toDisplayString(o.data.category_name_1),3)],6)):t.createCommentVNode("",!0),o.data.category_stats_2!==""?(t.openBlock(),t.createElementBlock("div",{key:1,style:t.normalizeStyle({color:o.data.font_color_card+"!important"}),class:t.normalizeClass(i.dataBoxClass),onClick:a[2]||(a[2]=r=>i.clickCategory({category:o.data.category_id_2,season_id:o.data.id_season,player_id:o.data.player_id,game_id:o.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.totaltype4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.font_color_card},null,8,Pee)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_2),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1type4)},t.toDisplayString(o.data.category_name_2),3)],6)):t.createCommentVNode("",!0),o.data.showlast_category&&o.data.category_stats_3!==""?(t.openBlock(),t.createElementBlock("div",{key:2,style:t.normalizeStyle({color:o.data.font_color_card+"!important"}),class:t.normalizeClass(i.dataBoxClass),onClick:a[3]||(a[3]=r=>i.clickCategory({category:o.data.category_id_3,season_id:o.data.id_season,player_id:o.data.player_id,game_id:o.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.totaltype4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.font_color_card},null,8,Dee)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_3),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1type4)},t.toDisplayString(o.data.category_name_3),3)],6)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.tarjetaDatosGs414Class),id:"card-mobile-414"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.baseCard1type4)},[o.showShareButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.btnShare1type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.btnShareIcon1type4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jee,2))],2)):t.createCommentVNode("",!0),o.data.background!=""?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.bakgBaseIcon1type4),alt:"",src:o.data.background},null,10,vee)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideos1type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcon1type4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.color_icon_play!=null&&o.customizeColors?o.data.color_icon_play:"#CBEE6B"},null,8,Mee)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideostype4)},"Ver videos",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.title1type4),id:"title-info"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerName1type4)},t.toDisplayString(o.data.player_name),3),t.createElementVNode("h2",{class:t.normalizeClass(e.$style.elJugadorAContainer1type4),id:"title-card"},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.elJugadortype4)},t.toDisplayString(o.data.main_title),3),t.createElementVNode("p",{class:t.normalizeClass(e.$style.aSeguirtype4)},t.toDisplayString(o.data.second_title),3)],2)],2)],2),o.data.player_photo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imagePlayerIcon1type4),alt:"",src:o.data.player_photo},null,10,Hee)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.dataContainer1Class),id:"data-container"},[o.data.category_stats_1!==""?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle("color:"+o.data.font_color_card+"!important"),class:t.normalizeClass(i.dataBox4Class),onClick:a[4]||(a[4]=r=>i.clickCategory({category:o.data.category_id_1,season_id:o.data.id_season,player_id:o.data.player_id,game_id:o.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.font_color_card},null,8,Uee)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_1),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div9type4)},t.toDisplayString(o.data.category_name_1),3)],6)):t.createCommentVNode("",!0),o.data.category_stats_2!==""?(t.openBlock(),t.createElementBlock("div",{key:1,style:t.normalizeStyle("color:"+o.data.font_color_card+"!important"),class:t.normalizeClass(i.dataBox4Class),onClick:a[5]||(a[5]=r=>i.clickCategory({category:o.data.category_id_2,season_id:o.data.id_season,player_id:o.data.player_id,game_id:o.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.font_color_card},null,8,Gee)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_2),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div9type4)},t.toDisplayString(o.data.category_name_2),3)],6)):t.createCommentVNode("",!0),o.data.showlast_category&&o.data.category_stats_3!==""?(t.openBlock(),t.createElementBlock("div",{key:2,style:t.normalizeStyle("color:"+o.data.font_color_card+"!important"),class:t.normalizeClass(i.dataBox6Class),onClick:a[6]||(a[6]=r=>i.clickCategory({category:o.data.category_id_3,season_id:o.data.id_season,player_id:o.data.player_id,game_id:o.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.font_color_card},null,8,Wee)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_3),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div9type4)},t.toDisplayString(o.data.category_name_3),3)],6)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.tarjetaDatosGs320Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.baseCard1type4)},[o.showShareButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.btnShare1type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.btnShareIcon1type4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Jee,2))],2)):t.createCommentVNode("",!0),o.data.background!=""?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.bakgBaseIcon2type4),alt:"",src:o.data.background},null,10,Xee)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideos2type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcon2type4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.color_icon_play!=null&&o.customizeColors?o.data.color_icon_play:"#CBEE6B"},null,8,Zee)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideostype4)},"Ver videos",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.title2type4),id:"title-info"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerName1type4)},t.toDisplayString(o.data.player_name),3),t.createElementVNode("h2",{class:t.normalizeClass(e.$style.elJugadorAContainer2type4),id:"title-card"},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.elJugadortype4)},t.toDisplayString(o.data.main_title),3),t.createElementVNode("p",{class:t.normalizeClass(e.$style.aSeguirtype4)},t.toDisplayString(o.data.second_title),3)],2)],2)],2),o.data.player_photo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imagePlayerIcon2type4),alt:"",src:o.data.player_photo},null,10,Yee)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.dataContainer2type4),id:"data-container"},[o.data.category_stats_1!==""?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle("color:"+o.data.font_color_card+"!important"),class:t.normalizeClass(i.dataBox7Class),onClick:a[7]||(a[7]=r=>i.clickCategory({category:o.data.category_id_1,season_id:o.data.id_season,player_id:o.data.player_id,game_id:o.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188777 8.8403C0.131575 8.80242 0.0837648 8.74584 0.0504989 8.67665C0.0172329 8.60746 -0.000226668 8.52828 2.22189e-06 8.44765V1.33719C8.08668e-05 1.25684 0.0176547 1.17801 0.0508556 1.10909C0.0840564 1.04018 0.131643 0.983741 0.188558 0.94579C0.245472 0.907838 0.309587 0.889787 0.374086 0.893556C0.438586 0.897325 0.501059 0.922773 0.554865 0.967195L4.84073 4.52284C4.88968 4.56335 4.92982 4.61829 4.95759 4.68277C4.98536 4.74724 4.99989 4.81926 4.99989 4.89242C4.99989 4.96557 4.98536 5.03759 4.95759 5.10207C4.92982 5.16655 4.88968 5.22149 4.84073 5.26199L0.554865 8.81848C0.501141 8.863 0.438716 8.88854 0.374245 8.89238C0.309774 8.89623 0.245673 8.87822 0.188777 8.8403V8.8403ZM0.357326 8.44849L4.64319 4.89284L0.357326 8.44849Z",fill:o.data.font_color_card},null,8,Kee)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_1),3)],2),t.createElementVNode("div",{class:t.normalizeClass(i.div15Class)},t.toDisplayString(o.data.category_name_1),3)],6)):t.createCommentVNode("",!0),o.data.category_stats_2!==""?(t.openBlock(),t.createElementBlock("div",{key:1,style:t.normalizeStyle("color:"+o.data.font_color_card+"!important"),class:t.normalizeClass(i.dataBox8Class),onClick:a[8]||(a[8]=r=>i.clickCategory({category:o.data.category_id_2,season_id:o.data.id_season,player_id:o.data.player_id,game_id:o.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188777 8.8403C0.131575 8.80242 0.0837648 8.74584 0.0504989 8.67665C0.0172329 8.60746 -0.000226668 8.52828 2.22189e-06 8.44765V1.33719C8.08668e-05 1.25684 0.0176547 1.17801 0.0508556 1.10909C0.0840564 1.04018 0.131643 0.983741 0.188558 0.94579C0.245472 0.907838 0.309587 0.889787 0.374086 0.893556C0.438586 0.897325 0.501059 0.922773 0.554865 0.967195L4.84073 4.52284C4.88968 4.56335 4.92982 4.61829 4.95759 4.68277C4.98536 4.74724 4.99989 4.81926 4.99989 4.89242C4.99989 4.96557 4.98536 5.03759 4.95759 5.10207C4.92982 5.16655 4.88968 5.22149 4.84073 5.26199L0.554865 8.81848C0.501141 8.863 0.438716 8.88854 0.374245 8.89238C0.309774 8.89623 0.245673 8.87822 0.188777 8.8403V8.8403ZM0.357326 8.44849L4.64319 4.89284L0.357326 8.44849Z",fill:o.data.font_color_card},null,8,Qee)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_2),3)],2),t.createElementVNode("div",{class:t.normalizeClass(i.div15Class)},t.toDisplayString(o.data.category_name_2),3)],6)):t.createCommentVNode("",!0),o.data.showlast_category&&o.data.category_stats_3!==""?(t.openBlock(),t.createElementBlock("div",{key:2,style:t.normalizeStyle("color:"+o.data.font_color_card+"!important"),class:t.normalizeClass(i.dataBox8Class),onClick:a[9]||(a[9]=r=>i.clickCategory({category:o.data.category_id_3,season_id:o.data.id_season,player_id:o.data.player_id,game_id:o.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"6",height:"9",viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.474421 8.8403C0.41722 8.80242 0.369409 8.74584 0.336143 8.67665C0.302877 8.60746 0.285418 8.52828 0.285647 8.44765V1.33719C0.285725 1.25684 0.303299 1.17801 0.3365 1.10909C0.369701 1.04018 0.417288 0.983741 0.474202 0.94579C0.531117 0.907838 0.595232 0.889787 0.659731 0.893556C0.72423 0.897325 0.786704 0.922773 0.84051 0.967195L5.12637 4.52284C5.17532 4.56335 5.21547 4.61829 5.24324 4.68277C5.271 4.74724 5.28554 4.81926 5.28554 4.89242C5.28554 4.96557 5.271 5.03759 5.24324 5.10207C5.21547 5.16655 5.17532 5.22149 5.12637 5.26199L0.84051 8.81848C0.786786 8.863 0.724361 8.88854 0.659889 8.89238C0.595418 8.89623 0.531318 8.87822 0.474421 8.8403V8.8403ZM0.64297 8.44849L4.92883 4.89284L0.64297 8.44849Z",fill:o.data.font_color_card},null,8,ete)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_3),3)],2),t.createElementVNode("div",{class:t.normalizeClass(i.div15Class)},t.toDisplayString(o.data.category_name_3),3)],6)):t.createCommentVNode("",!0)],2)],2)],2)}const ate={$style:xee},ote=I2(yp,[["render",tte],["__cssModules",ate]]),ste={components:{GSCCarousel:fQ,GSCCardData:ote},props:{type:{type:Number,default:0},data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},prematch:{type:Boolean,default:!1},teamSelected:{type:Number,default:0},colorCardByTeam:{type:Boolean,default:!1},showShareButton:{type:Boolean,default:!1},customizeColors:{type:Boolean,default:!0}},data(){return{token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",pages:[],homeTeam:[],awayTeam:[],playerInfo:{}}},computed:{},watch:{data:{immediate:!0,handler(e){this.getStats(e)}}},methods:{onclickPlayVideos(e){var a=[];e.type==2?e.position_id==1?e.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.category:e.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.category:e.type==3?e.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.category:e.category!=0?a=e.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const o=[1,2,3];a==="minutes_played"&&(a=[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]),a==="games_played"&&(a=[607,608,12,55,54,35,14,52,15,53,466,477]);let s={seasonId:e.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:e.game_id?[e.game_id]:null,playerIds:e.position_id!=1?e.player_id?[e.player_id]:[]:[],goalkeeperIds:e.position_id==1?e.player_id?[e.player_id]:[]:[],teamId:e.team_id?[e.team_id]:0,matchResult:e.matchResult?[e.matchResult]:o,playData:{},advancedFilter:{playListTitle:"",mainCategoryId:e.category||0}};this.$emit("openmedia",s)},async getStats(){const e=await MK.create({headers:{Authorization:`${this.token}`}}).get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+this.data.season+"/games/"+this.data.game);for(let a=0;a<e.data.games[0].players.length;a++)this.type==0?this.pages.push([{id_season:e.data.games[0].players[a].season_id,color:e.data.games[0].players[a].info_thumbnails.colors.background_color,player_id:e.data.games[0].players[a].player_id,player_name:e.data.games[0].players[a].player_name,game_id:e.data.games[0].game_status===4?null:e.data.games[0].game_id,background:e.data.games[0].players[a].info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+e.data.games[0].players[a].info_thumbnails.images.background_player_in_action[0]:"https://golstatsimages.blob.core.windows.net/images-library/"+e.data.games[0].players[a].info_thumbnails.images.background_default_players[0],player_photo:e.data.games[0].players[a].info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+e.data.games[0].players[a].info_thumbnails.images.player_in_action[0]:`https://az755631.vo.msecnd.net/players-profile/${e.data.games[0].players[a].player_id}.png`,category_stats_1:this.prematch?e.data.games[0].players[a].games_played:e.data.games[0].players[a].minutes_played,category_stats_2:this.prematch?e.data.games[0].players[a].minutes_played:e.data.games[0].players[a].categories[0].total,category_stats_3:this.prematch?e.data.games[0].players[a].categories[0].total:e.data.games[0].players[a].categories[1]?e.data.games[0].players[a].categories[1].total:"",category_id_1:this.prematch?"games_played":"minutes_played",category_id_2:this.prematch?"minutes_played":e.data.games[0].players[a].categories[0].categories,category_id_3:this.prematch?e.data.games[0].players[a].categories[0].categories:e.data.games[0].players[a].categories[1]?e.data.games[0].players[a].categories[1].categories:"",category_name_1:this.prematch?"Partidos Jugados":"Minutos Jugados",category_name_2:this.prematch?"Minutos Jugados":e.data.games[0].players[a].categories[0].category_name,category_name_3:this.prematch?e.data.games[0].players[a].categories[0].category_name:e.data.games[0].players[a].categories[1]?e.data.games[0].players[a].categories[1].category_name:"",showlast_category:!!e.data.games[0].players[a].categories[0],main_title:(this.prematch,"Jugador"),second_title:this.prematch?"A seguir":"Destacado",background_color_buttons:e.data.games[0].players[a].info_thumbnails.colors.background_color_buttons,background_color_cards:e.data.games[0].players[a].info_thumbnails.colors.background_color_cards,color_icon_play:e.data.games[0].players[a].info_thumbnails.colors.color_icon_play,color_next_back:e.data.games[0].players[a].info_thumbnails.colors.color_next_back,font_color:e.data.games[0].players[a].info_thumbnails.colors.font_color,font_color_card:e.data.games[0].players[a].info_thumbnails.colors.font_color_cards?e.data.games[0].players[a].info_thumbnails.colors.font_color_cards:"#FFFFFF"}]):this.teamSelected==e.data.games[0].players[a].team_id&&this.pages.push([{id_season:e.data.games[0].players[a].season_id,color:e.data.games[0].players[a].info_thumbnails.colors.background_color,player_id:e.data.games[0].players[a].player_id,player_name:e.data.games[0].players[a].player_name,game_id:e.data.games[0].game_status===4?null:e.data.games[0].game_id,background:e.data.games[0].players[a].info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+e.data.games[0].players[a].info_thumbnails.images.background_player_in_action[0]:"https://golstatsimages.blob.core.windows.net/images-library/"+e.data.games[0].players[a].info_thumbnails.images.background_default_players[0],player_photo:e.data.games[0].players[a].info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+e.data.games[0].players[a].info_thumbnails.images.player_in_action[0]:`https://az755631.vo.msecnd.net/players-profile/${e.data.games[0].players[a].player_id}.png`,category_stats_1:this.prematch?e.data.games[0].players[a].games_played:e.data.games[0].players[a].minutes_played,category_stats_2:this.prematch?e.data.games[0].players[a].minutes_played:e.data.games[0].players[a].categories[0].total,category_stats_3:this.prematch?e.data.games[0].players[a].categories[0].total:e.data.games[0].players[a].categories[1]?e.data.games[0].players[a].categories[1].total:"",category_id_1:this.prematch?"games_played":"minutes_played",category_id_2:this.prematch?"minutes_played":e.data.games[0].players[a].categories[0].categories,category_id_3:this.prematch?e.data.games[0].players[a].categories[0].categories:e.data.games[0].players[a].categories[1]?e.data.games[0].players[a].categories[1].categories:"",category_name_1:this.prematch?"Partidos Jugados":"Minutos Jugados",category_name_2:this.prematch?"Minutos Jugados":e.data.games[0].players[a].categories[0].category_name,category_name_3:this.prematch?e.data.games[0].players[a].categories[0].category_name:e.data.games[0].players[a].categories[1]?e.data.games[0].players[a].categories[1].category_name:"",showlast_category:!!e.data.games[0].players[a].categories[1],main_title:this.prematch?"El jugador":"Jugador",second_title:this.prematch?"A seguir":"Destacado",background_color_buttons:e.data.games[0].players[a].info_thumbnails.colors.background_color_buttons,background_color_cards:e.data.games[0].players[a].info_thumbnails.colors.background_color_cards,color_icon_play:e.data.games[0].players[a].info_thumbnails.colors.color_icon_play,color_next_back:e.data.games[0].players[a].info_thumbnails.colors.color_next_back,font_color:e.data.games[0].players[a].info_thumbnails.colors.font_color,font_color_card:e.data.games[0].players[a].info_thumbnails.colors.font_color_cards?e.data.games[0].players[a].info_thumbnails.colors.font_color_cards:"#FFFFFF"}])},onClickVideos(e){this.$emit("onClickVideos",e)},onClickCard(e){this.$emit("onClickCard",e)},onClickCategory(e){this.$emit("onClickCategory",e)},clickMore(){this.$emit("onViewMore",!0)}}},nte=e=>(t.pushScopeId("data-v-9fbf19b6"),e=e(),t.popScopeId(),e),ite={class:"gsdata"},rte={class:"gsc-gsdata-carrousel"},lte={key:0,class:"title-header"},cte=nte(()=>t.createElementVNode("div",{class:"title-header-title"},"Datos GolStats",-1)),dte={class:"row-table-carrousel"};function mte(e,a,o,s,n,i){const r=t.resolveComponent("GSCCardData"),c=t.resolveComponent("GSCCarousel");return t.openBlock(),t.createElementBlock("div",ite,[t.createElementVNode("div",rte,[o.teamSelected==0?(t.openBlock(),t.createElementBlock("div",lte,[cte,t.createElementVNode("div",{class:"title-header-btn",onClick:a[0]||(a[0]=(...g)=>i.clickMore&&i.clickMore(...g))},"Ver más")])):t.createCommentVNode("",!0),t.createVNode(c,{items:n.pages,wrapAround:!0,itemsToShow:1.1,areSlidesArrowsVisible:!0,areNavigationArrowsVisible:!1,isMainSlidePriority:!0,areSlidesArrowsRounded:!1,isPaginationVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:g})=>[t.createElementVNode("div",dte,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g,(d,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:l},[o.colorCardByTeam?(t.openBlock(),t.createBlock(r,{key:1,type:4,colorcard:d.color,"click-card":o.clickCard,"show-share-button":o.showShareButton,"customize-colors":o.customizeColors,data:d,onOnClickVideos:i.onclickPlayVideos,onOnClickCategory:i.onclickPlayVideos},null,8,["colorcard","click-card","show-share-button","customize-colors","data","onOnClickVideos","onOnClickCategory"])):(t.openBlock(),t.createBlock(r,{key:0,type:4,"click-card":o.clickCard,"show-share-button":o.showShareButton,"customize-colors":o.customizeColors,data:d,onOnClickVideos:i.onclickPlayVideos,onOnClickCategory:i.onclickPlayVideos},null,8,["click-card","show-share-button","customize-colors","data","onOnClickVideos","onOnClickCategory"]))],64))),128))])]),_:1},8,["items"])])])}const pte=I2(ste,[["render",mte],["__scopeId","data-v-9fbf19b6"]]),hte=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},up={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))}}},T2=()=>{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}))},z2=up.setup;up.setup=z2?(e,a)=>(T2(),z2(e,a)):T2;const gte=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),yte=["src"],ute={key:1,class:"text"},fte=["src"],_te={class:"stats"},bte=gte(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),wte={class:"numstats"},Cte={class:"leyend"};function kte(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",n.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([i.customStyle,n.status&&o.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,yte)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",ute,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,fte)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.createElementVNode("div",_te,[bte,t.createElementVNode("div",wte,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",Cte,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const Ste=hte(up,[["render",kte],["__scopeId","data-v-fb269a1e"]]);function ln(e){const a=t.ref({width:0,height:0});function o(){const s=e.value.getBoundingClientRect();a.value.width=s.width,a.value.height=s.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const Ete="_cardFrecuentConnectionstype0_8eub9_57",Nte="_cardFrecuentConnectionsDesktype0_8eub9_85",$te="_cardFrecuentConnectionsDesk360type0_8eub9_103",Bte="_imgPlayerParenttype0_8eub9_123",xte="_imgPlayerIcontype0_8eub9_149",Vte="_imgPlayerIcon360type0_8eub9_163",Ite="_playerInfotype0_8eub9_177",Ate="_benjaminEvalenttype0_8eub9_195",Ote="_frameParenttype0_8eub9_207",Tte="_union9Wrappertype0_8eub9_223",zte="_union9Icontype0_8eub9_251",Fte="_benjaminEvalent1type0_8eub9_263",Rte="_benjaminEvalent1360type0_8eub9_277",Pte={cardFrecuentConnectionstype0:Ete,cardFrecuentConnectionsDesktype0:Nte,cardFrecuentConnectionsDesk360type0:$te,imgPlayerParenttype0:Bte,imgPlayerIcontype0:xte,imgPlayerIcon360type0:Vte,playerInfotype0:Ite,benjaminEvalenttype0:Ate,frameParenttype0:Ote,union9Wrappertype0:Tte,union9Icontype0:zte,benjaminEvalent1type0:Fte,benjaminEvalent1360type0:Rte},Uo=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},Dte={components:{GSCButton:Ste},props:{data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1}},computed:{cardFrecuentConnectionsDeskClass(){return this.elementSize.width<=360?this.$style.cardFrecuentConnectionsDesk360type0:this.$style.cardFrecuentConnectionsDesktype0},imgPlayerIconClass(){return this.elementSize.width<=360?this.$style.imgPlayerIcon360type0:this.$style.imgPlayerIcontype0},benjaminEvalent1Class(){return this.elementSize.width<=360?this.$style.benjaminEvalent1360type0:this.$style.benjaminEvalent1type0}},data(){return{}},setup(){const e=t.ref("myDivRefCardtype0"),{elementSize:a}=ln(e);return{myDivRefCardtype0:e,elementSize:a}},methods:{clickPlayer(e){this.clickCard&&this.$emit("onClickPlayer",e)},clickVideos(e){this.clickCard||this.$emit("onClickVideos",e)}}},Lte={ref:"myDivRefCardtype0"},jte=["alt","src"];function vte(e,a,o,s,n,i){const r=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",Lte,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.cardFrecuentConnectionstype0),onClick:a[1]||(a[1]=c=>i.clickPlayer({player_id:o.data.player_id}))},[t.createElementVNode("div",{class:t.normalizeClass(i.cardFrecuentConnectionsDeskClass),id:"card-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgPlayerParenttype0)},[t.createElementVNode("img",{class:t.normalizeClass(i.imgPlayerIconClass),alt:o.data.player_name,src:o.data.player_photo},null,10,jte),t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerInfotype0)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.benjaminEvalenttype0)},t.toDisplayString(o.data.player_name),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.frameParenttype0)},[t.createVNode(r,{icon:"/play-icn.svg","icon-size":"9px","icon-position":"left",width:"18px",height:"18px","border-radius":"18px","border-width":"1","background-color":"transparent","border-color":"#FFFFFF",onClick:a[0]||(a[0]=c=>i.clickVideos({player_id:o.data.player_id}))}),t.createElementVNode("div",{class:t.normalizeClass(i.benjaminEvalent1Class)},t.toDisplayString(o.data.player_stat),3)],2)],2)],2)],2)],2)],512)}const Mte={$style:Pte},Hte=Uo(Dte,[["render",vte],["__cssModules",Mte]]),Ute="_cardVideosJugadorestype1_hyx6z_59",Gte="_cardDesktoptype1_hyx6z_87",Wte="_cardDesktop460type1_hyx6z_113",qte="_backgroundImageParenttype1_hyx6z_137",Jte="_backgroundImageParent460type1_hyx6z_171",Xte="_backgroundImageIcontype1_hyx6z_205",Zte="_loMejorDeContainertype1_hyx6z_225",Yte="_loMejorDeContainer460type1_hyx6z_249",Kte="_loMejorDeContainer420type1_hyx6z_273",Qte="_loMejorDetype1_hyx6z_297",eae="_btnPlaytype1_hyx6z_303",tae="_btnPlay460_hyx6z_357",aae="_btnPlay460type1_hyx6z_363",oae="_roleCharacterIcontype1_hyx6z_409",sae="_reproducirtype1_hyx6z_423",nae="_playerTeamDesktopIcontype1_hyx6z_435",iae="_playerTeamDesktopIcon1200type1_hyx6z_455",rae="_playerTeamDesktopIcon460type1_hyx6z_479",lae={cardVideosJugadorestype1:Ute,cardDesktoptype1:Gte,cardDesktop460type1:Wte,backgroundImageParenttype1:qte,backgroundImageParent460type1:Jte,backgroundImageIcontype1:Xte,loMejorDeContainertype1:Zte,loMejorDeContainer460type1:Yte,loMejorDeContainer420type1:Kte,loMejorDetype1:Qte,btnPlaytype1:eae,btnPlay460:tae,btnPlay460type1:aae,roleCharacterIcontype1:oae,reproducirtype1:sae,playerTeamDesktopIcontype1:nae,playerTeamDesktopIcon1200type1:iae,playerTeamDesktopIcon460type1:rae},fp={components:{},props:{data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#000000"},colorTitle:{type:String,default:"#000000"},borderColor:{type:String,default:"#000000"},backgroundImg:{type:String,default:""},customizeColors:{type:Boolean,default:!0}},data(){return{}},computed:{cardDesktopClass(){return this.elementSize.width<=460?this.$style.cardDesktop460type1:this.$style.cardDesktoptype1},backgroundImageParentClass(){return this.elementSize.width<=460?this.$style.backgroundImageParent460type1:this.$style.backgroundImageParenttype1},btnPlayClass(){return this.elementSize.width<=460?this.$style.btnPlay460type1:this.$style.btnPlaytype1},loMejorDeContainerClass(){const e=this.elementSize.width;return e<=420?this.$style.loMejorDeContainer420type1:e<=460?this.$style.loMejorDeContainer460type1:this.$style.loMejorDeContainertype1},playerTeamDesktopIconClass(){const e=this.elementSize.width;return e<=460?this.$style.playerTeamDesktopIcon460type1:e<=1200?this.$style.playerTeamDesktopIcon1200type1:this.$style.playerTeamDesktopIcontype1}},setup(){const e=t.ref("myDivRefCardtype1"),{elementSize:a}=ln(e);return{myDivRefCardtype1:e,elementSize:a}},methods:{clickPlayer(e){this.clickCard&&this.$emit("onClickCard",e)},clickVideos(e){this.clickCard||this.$emit("onClickVideos",e)}}},F2=()=>{t.useCssVars(e=>({"3c445abf":e.data.font_color!=null&&e.customizeColors?e.data.font_color:"#fff","418009b6":e.backgroundColor,"392b4ed3":e.data.background_color_buttons!=null&&e.customizeColors?e.data.background_color_buttons:"rgba(255, 255, 255, 0.08)","47279a32":e.borderColor}))},R2=fp.setup;fp.setup=R2?(e,a)=>(F2(),R2(e,a)):F2;const cae={ref:"myDivRefCardtype1"},dae=["src"],mae={"clip-path":"url(#clip0_59_831)"},pae=["fill"],hae=t.createElementVNode("defs",null,[t.createElementVNode("clipPath",{id:"clip0_59_831"},[t.createElementVNode("rect",{width:"12",height:"12",fill:"white",transform:"translate(0.375 0.637695)"})])],-1),gae=["src"];function yae(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",cae,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.cardVideosJugadorestype1),onClick:a[1]||(a[1]=r=>i.clickPlayer({player_id:o.data.player_id,team_id:o.data.team_id}))},[t.createElementVNode("div",{class:t.normalizeClass(i.cardDesktopClass),id:"card-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(i.backgroundImageParentClass)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.backgroundImageIcontype1),src:o.backgroundImg},null,10,dae),t.createElementVNode("h2",{class:t.normalizeClass(i.loMejorDeContainerClass),id:"title-card"},[s.elementSize.width>380?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(e.$style.loMejorDetype1)},"Lo mejor de ",2)):t.createCommentVNode("",!0),s.elementSize.width<=380?(t.openBlock(),t.createElementBlock("p",{key:1,class:t.normalizeClass(e.$style.loMejorDetype1)},"Lo mejor",2)):t.createCommentVNode("",!0),s.elementSize.width<=380?(t.openBlock(),t.createElementBlock("p",{key:2,class:t.normalizeClass(e.$style.loMejorDetype1)},"de ",2)):t.createCommentVNode("",!0),t.createElementVNode("p",{class:t.normalizeClass(e.$style.loMejorDetype1)},t.toDisplayString(o.data.team_name),3)],2),t.createElementVNode("div",{class:t.normalizeClass(i.btnPlayClass),onClick:a[0]||(a[0]=r=>i.clickVideos({player_id:o.data.player_id,team_id:o.data.team_id}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcontype4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("g",mae,[t.createElementVNode("path",{d:"M2.67705 12.0654C2.58553 12.0133 2.50903 11.9355 2.4558 11.8404C2.40257 11.7452 2.37464 11.6363 2.375 11.5255V1.74838C2.37513 1.63789 2.40325 1.5295 2.45637 1.43474C2.50949 1.33998 2.58563 1.26238 2.6767 1.21019C2.76776 1.15801 2.87035 1.13319 2.97355 1.13837C3.07675 1.14355 3.17671 1.17854 3.2628 1.23962L10.1203 6.12875C10.1987 6.18445 10.2629 6.25998 10.3073 6.34864C10.3518 6.4373 10.375 6.53633 10.375 6.63692C10.375 6.73751 10.3518 6.83654 10.3073 6.9252C10.2629 7.01386 10.1987 7.0894 10.1203 7.1451L3.2628 12.0354C3.17684 12.0966 3.07696 12.1317 2.9738 12.137C2.87065 12.1423 2.76809 12.1175 2.67705 12.0654V12.0654ZM2.94673 11.5266L9.80426 6.6375L2.94673 11.5266Z",fill:o.data.color_icon_play!=null&&o.customizeColors?o.data.color_icon_play:"#CBEE6B"},null,8,pae)]),hae],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.reproducirtype1)},"Reproducir",2)],2)],2),t.createElementVNode("img",{class:t.normalizeClass(i.playerTeamDesktopIconClass),src:o.data.player_photo},null,10,gae)],2)],2)],512)}const uae={$style:lae},fae=Uo(fp,[["render",yae],["__cssModules",uae]]),_ae="_tarjetaHighlightsPostmatchtype2_2xqhb_7",bae="_tarjetaHighlightsPostmatch780type2_2xqhb_35",wae="_tarjetaHighlightsPostmatch640type2_2xqhb_65",Cae="_tarjetaHighlightsPostmatch520type2_2xqhb_97",kae="_tarjetaHighlightsPostmatch350type2_2xqhb_131",Sae="_tarjetaHighlightsPostmatch420type2_2xqhb_161",Eae="_tarjetaHighlightsPostmatch320type2_2xqhb_197",Nae="_backgroundtype2_2xqhb_233",$ae="_background640type2_2xqhb_253",Bae="_btnPlaytype2_2xqhb_277",xae="_btnPlay1_2xqhb_301",Vae="_btnPlay1type2_2xqhb_309",Iae="_icnPlaytype2_2xqhb_351",Aae="_union6Icontype2_2xqhb_369",Oae={tarjetaHighlightsPostmatchtype2:_ae,tarjetaHighlightsPostmatch780type2:bae,tarjetaHighlightsPostmatch640type2:wae,tarjetaHighlightsPostmatch520type2:Cae,tarjetaHighlightsPostmatch350type2:kae,tarjetaHighlightsPostmatch420type2:Sae,tarjetaHighlightsPostmatch320type2:Eae,backgroundtype2:Nae,background640type2:$ae,btnPlaytype2:Bae,btnPlay1:xae,btnPlay1type2:Vae,icnPlaytype2:Iae,union6Icontype2:Aae},Tae={components:{},props:{data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},backgroundImg:{type:String,default:""}},computed:{tarjetaHighlightsPostmatchClass(){const e=this.elementSize.width;return e<=320?this.$style.tarjetaHighlightsPostmatch320type2:e<=350?this.$style.tarjetaHighlightsPostmatch350type2:e<=420?this.$style.tarjetaHighlightsPostmatch420type2:e<=520?this.$style.tarjetaHighlightsPostmatch520type2:e<=640?this.$style.tarjetaHighlightsPostmatch640type2:e<=780?this.$style.tarjetaHighlightsPostmatch780type2:this.$style.tarjetaHighlightsPostmatchtype2},backgroundClass(){return this.elementSize.width<=640?this.$style.background640type2:this.$style.backgroundtype2}},setup(){const e=t.ref("myDivRefCardtype2"),{elementSize:a}=ln(e);return{myDivRefCardtype2:e,elementSize:a}},data(){return{}},methods:{clickPlayer(e){this.clickCard&&this.$emit("onClickCard",e)},clickVideos(e){this.clickCard||this.$emit("onClickVideos",e)}}},zae={ref:"myDivRefCardtype2"},Fae=t.createStaticVNode('<svg width="20" height="20" viewBox="0 0 13 13" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_59_831)"><path d="M2.67705 12.0654C2.58553 12.0133 2.50903 11.9355 2.4558 11.8404C2.40257 11.7452 2.37464 11.6363 2.375 11.5255V1.74838C2.37513 1.63789 2.40325 1.5295 2.45637 1.43474C2.50949 1.33998 2.58563 1.26238 2.6767 1.21019C2.76776 1.15801 2.87035 1.13319 2.97355 1.13837C3.07675 1.14355 3.17671 1.17854 3.2628 1.23962L10.1203 6.12875C10.1987 6.18445 10.2629 6.25998 10.3073 6.34864C10.3518 6.4373 10.375 6.53633 10.375 6.63692C10.375 6.73751 10.3518 6.83654 10.3073 6.9252C10.2629 7.01386 10.1987 7.0894 10.1203 7.1451L3.2628 12.0354C3.17684 12.0966 3.07696 12.1317 2.9738 12.137C2.87065 12.1423 2.76809 12.1175 2.67705 12.0654V12.0654ZM2.94673 11.5266L9.80426 6.6375L2.94673 11.5266Z" fill="#CBEE6B"></path></g><defs><clipPath id="clip0_59_831"><rect width="12" height="12" fill="white" transform="translate(0.375 0.637695)"></rect></clipPath></defs></svg>',1),Rae=[Fae];function Pae(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",zae,[t.createElementVNode("div",{class:t.normalizeClass(i.tarjetaHighlightsPostmatchClass),onClick:a[1]||(a[1]=r=>i.clickPlayer({game_id:o.data.game_id}))},[t.createElementVNode("div",{class:t.normalizeClass(i.backgroundClass),id:"image-video",style:t.normalizeStyle({"background-image":"url("+o.backgroundImg+")"})},null,6),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnPlaytype2)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnPlay1type2),id:"btn-play",onClick:a[0]||(a[0]=r=>i.clickVideos({game_id:o.data.game_id}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.icnPlaytype2)},Rae,2)],2)],2)],2)],512)}const Dae={$style:Oae},Lae=Uo(Tae,[["render",Pae],["__cssModules",Dae]]),jae="_tarjetaDatosGsDesktoptype4_189dz_107",vae="_tarjetaDatosGsDesktop500type4_189dz_127",Mae="_tarjetaDatosGs414type4_189dz_135",Hae="_tarjetaDatosGs414500type4_189dz_159",Uae="_tarjetaDatosGs414380type4_189dz_183",Gae="_tarjetaDatosGs320type4_189dz_191",Wae="_tarjetaDatosGs320380type4_189dz_215",qae="_dataBox8type4_189dz_239",Jae="_dataBox8380type4_189dz_275",Xae="_dataBoxtype4_189dz_313",Zae="_dataBox520type4_189dz_353",Yae="_dataBox480type4_189dz_395",Kae="_dataBox3type4_189dz_437",Qae="_dataBox3520type4_189dz_479",eoe="_dataBox4type4_189dz_489",toe="_dataBox4500type4_189dz_533",aoe="_dataBox6type4_189dz_581",ooe="_dataBox6500type4_189dz_627",soe="_dataContainertype4_189dz_681",noe="_dataContainer520type4_189dz_709",ioe="_dataContainer1type4_189dz_741",roe="_dataContainer1500type4_189dz_769",loe="_dataBox7type4_189dz_799",coe="_dataBox7380type4_189dz_835",doe="_div15type4_189dz_877",moe="_div15380type4_189dz_895",poe="_btnShareIcontype4_189dz_913",hoe="_btnSharetype4_189dz_925",goe="_bakgBaseIcontype4_189dz_955",yoe="_roleCharacterIcontype4_189dz_979",uoe="_verVideostype4_189dz_995",foe="_btnVideostype4_189dz_1009",_oe="_playerNametype4_189dz_1059",boe="_elJugadortype4_189dz_1077",woe="_aSeguirtype4_189dz_1085",Coe="_elJugadorAContainertype4_189dz_1095",koe="_titletype4_189dz_1115",Soe="_baseCardtype4_189dz_1143",Eoe="_imagePlayerIcontype4_189dz_1173",Noe="_arrowGraphIcontype4_189dz_1199",$oe="_divtype4_189dz_1211",Boe="_totaltype4_189dz_1225",xoe="_div1type4_189dz_1241",Voe="_btnShareIcon1type4_189dz_1263",Ioe="_btnShare1type4_189dz_1275",Aoe="_bakgBaseIcon1type4_189dz_1303",Ooe="_bakgBaseIcon2type4_189dz_1327",Toe="_roleCharacterIcon1type4_189dz_1351",zoe="_btnVideos1type4_189dz_1367",Foe="_playerName1type4_189dz_1409",Roe="_elJugadorAContainer1type4_189dz_1419",Poe="_title1type4_189dz_1439",Doe="_baseCard1type4_189dz_1465",Loe="_imagePlayerIcon1type4_189dz_1493",joe="_total4type4_189dz_1515",voe="_div9type4_189dz_1531",Moe="_roleCharacterIcon2type4_189dz_1547",Hoe="_btnVideos2type4_189dz_1563",Uoe="_elJugadorAContainer2type4_189dz_1601",Goe="_title2type4_189dz_1621",Woe="_imagePlayerIcon2type4_189dz_1649",qoe="_dataContainer2type4_189dz_1671",Joe="_tarjetaDatosGstype4_189dz_1701",Xoe={tarjetaDatosGsDesktoptype4:jae,tarjetaDatosGsDesktop500type4:vae,tarjetaDatosGs414type4:Mae,tarjetaDatosGs414500type4:Hae,tarjetaDatosGs414380type4:Uae,tarjetaDatosGs320type4:Gae,tarjetaDatosGs320380type4:Wae,dataBox8type4:qae,dataBox8380type4:Jae,dataBoxtype4:Xae,dataBox520type4:Zae,dataBox480type4:Yae,dataBox3type4:Kae,dataBox3520type4:Qae,dataBox4type4:eoe,dataBox4500type4:toe,dataBox6type4:aoe,dataBox6500type4:ooe,dataContainertype4:soe,dataContainer520type4:noe,dataContainer1type4:ioe,dataContainer1500type4:roe,dataBox7type4:loe,dataBox7380type4:coe,div15type4:doe,div15380type4:moe,btnShareIcontype4:poe,btnSharetype4:hoe,bakgBaseIcontype4:goe,roleCharacterIcontype4:yoe,verVideostype4:uoe,btnVideostype4:foe,playerNametype4:_oe,elJugadortype4:boe,aSeguirtype4:woe,elJugadorAContainertype4:Coe,titletype4:koe,baseCardtype4:Soe,imagePlayerIcontype4:Eoe,arrowGraphIcontype4:Noe,divtype4:$oe,totaltype4:Boe,div1type4:xoe,btnShareIcon1type4:Voe,btnShare1type4:Ioe,bakgBaseIcon1type4:Aoe,bakgBaseIcon2type4:Ooe,roleCharacterIcon1type4:Toe,btnVideos1type4:zoe,playerName1type4:Foe,elJugadorAContainer1type4:Roe,title1type4:Poe,baseCard1type4:Doe,imagePlayerIcon1type4:Loe,total4type4:joe,div9type4:voe,roleCharacterIcon2type4:Moe,btnVideos2type4:Hoe,elJugadorAContainer2type4:Uoe,title2type4:Goe,imagePlayerIcon2type4:Woe,dataContainer2type4:qoe,tarjetaDatosGstype4:Joe},_p={components:{},props:{data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},colorcard:{type:String,default:"#122736"},showShareButton:{type:Boolean,default:!1}},data(){return{}},computed:{tarjetaDatosGsDesktopClass(){return this.elementSize.width<=500?this.$style.tarjetaDatosGsDesktop500type4:this.$style.tarjetaDatosGsDesktoptype4},tarjetaDatosGs414Class(){const e=this.elementSize.width;return e<=380?this.$style.tarjetaDatosGs414380type4:e<=500?this.$style.tarjetaDatosGs414500type4:this.$style.tarjetaDatosGs414type4},tarjetaDatosGs320Class(){return this.elementSize.width<=380?this.$style.tarjetaDatosGs320380type4:this.$style.tarjetaDatosGs320type4},dataBox8Class(){return this.elementSize.width<=380?this.$style.dataBox8380type4:this.$style.dataBox8type4},dataBoxClass(){const e=this.elementSize.width;return e<=480?this.$style.dataBox480type4:e<=520?this.$style.dataBox520type4:this.$style.dataBoxtype4},dataBox3Class(){return this.elementSize.width<=520?this.$style.dataBox3520type4:this.$style.dataBox3type4},dataBox4Class(){return this.elementSize.width<=500?this.$style.dataBox4500type4:this.$style.dataBox4type4},dataBox6Class(){return this.elementSize.width<=500?this.$style.dataBox6500type4:this.$style.dataBox6type4},dataBox7Class(){return this.elementSize.width<=380?this.$style.dataBox7380type4:this.$style.dataBox7type4},dataContainerClass(){return this.elementSize.width<=520?this.$style.dataContainer520type4:this.$style.dataContainertype4},dataContainer1Class(){return this.elementSize.width<=500?this.$style.dataContainer1500type4:this.$style.dataContainer1type4},div15Class(){return this.elementSize.width<=380?this.$style.div15380type4:this.$style.div15type4}},setup(){const e=t.ref("myDivRefCardtype4"),{elementSize:a}=ln(e);return{myDivRefCardtype4:e,elementSize:a}},methods:{clickPlayer(e){this.clickCard&&this.$emit("onClickCard",e)},clickVideos(e){this.clickCard||this.$emit("onClickVideos",e)},clickCategory(e){this.clickCard||this.$emit("onClickCategory",e)}}},P2=()=>{t.useCssVars(e=>({"2a32105c":e.data.background_color_cards!=null?e.data.background_color_cards:"rgba(255, 255, 255, 0.16)","6c73455c":e.data.background_color_buttons!=null?e.data.background_color_buttons:"rgba(255, 255, 255, 0.16)","5358662c":e.colorcard,"36a302f1":e.data.font_color!=null?e.data.font_color:"#fff"}))},D2=_p.setup;_p.setup=D2?(e,a)=>(P2(),D2(e,a)):P2;const Zoe=t.createElementVNode("path",{d:"M14.886 14.0466C14.1404 14.0466 13.4733 14.3409 12.9632 14.8019L5.96863 10.7308C6.01768 10.5052 6.05692 10.2795 6.05692 10.0441C6.05692 9.80867 6.01768 9.58304 5.96863 9.35741L12.8847 5.32551C13.4145 5.81601 14.111 6.12012 14.886 6.12012C15.6665 6.12012 16.4151 5.81005 16.967 5.25814C17.5189 4.70622 17.829 3.95765 17.829 3.17712C17.829 2.39659 17.5189 1.64803 16.967 1.09611C16.4151 0.544195 15.6665 0.234131 14.886 0.234131C14.1054 0.234131 13.3569 0.544195 12.8049 1.09611C12.253 1.64803 11.9429 2.39659 11.9429 3.17712C11.9429 3.41256 11.9822 3.63819 12.0312 3.86382L5.11516 7.89572C4.58542 7.40523 3.8889 7.10112 3.11391 7.10112C2.33337 7.10112 1.58481 7.41118 1.03289 7.9631C0.480965 8.51502 0.170898 9.26358 0.170898 10.0441C0.170898 10.8246 0.480965 11.5732 1.03289 12.1251C1.58481 12.677 2.33337 12.9871 3.11391 12.9871C3.8889 12.9871 4.58542 12.683 5.11516 12.1925L12.0999 16.2636C12.0509 16.4696 12.0214 16.6855 12.0214 16.9111C12.0214 18.4905 13.3065 19.7658 14.886 19.7658C16.4654 19.7658 17.7505 18.4905 17.7505 16.9111C17.7505 16.1514 17.4487 15.4228 16.9115 14.8856C16.3743 14.3484 15.6457 14.0466 14.886 14.0466Z",fill:"#F4F4F4","fill-opacity":"0.5"},null,-1),Yoe=[Zoe],Koe=["src"],Qoe={"clip-path":"url(#clip0_59_831)"},ese=["fill"],tse=t.createElementVNode("defs",null,[t.createElementVNode("clipPath",{id:"clip0_59_831"},[t.createElementVNode("rect",{width:"12",height:"12",fill:"white",transform:"translate(0.375 0.637695)"})])],-1),ase=["src"],ose=["fill"],sse=["fill"],nse=["fill"],ise=t.createElementVNode("path",{d:"M10.2126 9.10136C9.73332 9.10136 9.30448 9.29055 8.97655 9.58695L4.48004 6.96979C4.51158 6.82474 4.5368 6.67969 4.5368 6.52834C4.5368 6.37699 4.51158 6.23194 4.48004 6.08689L8.92609 3.49495C9.26664 3.81027 9.7144 4.00577 10.2126 4.00577C10.7144 4.00577 11.1956 3.80645 11.5504 3.45164C11.9052 3.09684 12.1045 2.61562 12.1045 2.11385C12.1045 1.61208 11.9052 1.13086 11.5504 0.776056C11.1956 0.421251 10.7144 0.221924 10.2126 0.221924C9.71084 0.221924 9.22962 0.421251 8.87481 0.776056C8.52 1.13086 8.32067 1.61208 8.32067 2.11385C8.32067 2.2652 8.3459 2.41025 8.37743 2.5553L3.93138 5.14723C3.59083 4.83191 3.14308 4.63641 2.64487 4.63641C2.14309 4.63641 1.66187 4.83574 1.30706 5.19055C0.952258 5.54535 0.75293 6.02657 0.75293 6.52834C0.75293 7.03011 0.952258 7.51133 1.30706 7.86613C1.66187 8.22094 2.14309 8.42026 2.64487 8.42026C3.14308 8.42026 3.59083 8.22476 3.93138 7.90944L8.42158 10.5266C8.39004 10.659 8.37113 10.7978 8.37113 10.9428C8.37113 11.9582 9.19727 12.778 10.2126 12.778C11.2279 12.778 12.0541 11.9582 12.0541 10.9428C12.0541 10.4544 11.8601 9.98605 11.5147 9.64071C11.1694 9.29537 10.701 9.10136 10.2126 9.10136Z",fill:"#F4F4F4","fill-opacity":"0.5"},null,-1),rse=[ise],lse=["src"],cse=["fill"],dse=["src"],mse=["fill"],pse=["fill"],hse=["fill"],gse=t.createElementVNode("path",{d:"M10.2126 9.10111C9.73332 9.10111 9.30448 9.2903 8.97655 9.58671L4.48004 6.96954C4.51158 6.8245 4.5368 6.67945 4.5368 6.52809C4.5368 6.37674 4.51158 6.23169 4.48004 6.08665L8.92609 3.49471C9.26664 3.81003 9.7144 4.00553 10.2126 4.00553C10.7144 4.00553 11.1956 3.8062 11.5504 3.4514C11.9052 3.09659 12.1045 2.61537 12.1045 2.1136C12.1045 1.61183 11.9052 1.13062 11.5504 0.775812C11.1956 0.421007 10.7144 0.22168 10.2126 0.22168C9.71084 0.22168 9.22962 0.421007 8.87481 0.775812C8.52 1.13062 8.32067 1.61183 8.32067 2.1136C8.32067 2.26496 8.3459 2.41001 8.37743 2.55505L3.93138 5.14699C3.59083 4.83167 3.14308 4.63617 2.64487 4.63617C2.14309 4.63617 1.66187 4.8355 1.30706 5.1903C0.952258 5.54511 0.75293 6.02633 0.75293 6.52809C0.75293 7.02986 0.952258 7.51108 1.30706 7.86589C1.66187 8.22069 2.14309 8.42002 2.64487 8.42002C3.14308 8.42002 3.59083 8.22452 3.93138 7.9092L8.42158 10.5264C8.39004 10.6588 8.37113 10.7975 8.37113 10.9426C8.37113 11.9579 9.19727 12.7778 10.2126 12.7778C11.2279 12.7778 12.0541 11.9579 12.0541 10.9426C12.0541 10.4542 11.8601 9.98581 11.5147 9.64047C11.1694 9.29512 10.701 9.10111 10.2126 9.10111Z",fill:"#F4F4F4","fill-opacity":"0.5"},null,-1),yse=[gse],use=["src"],fse=["fill"],_se=["src"],bse=["fill"],wse=["fill"],Cse=["fill"];function kse(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.tarjetaDatosGstype4),ref:"myDivRefCardtype4",onClick:a[10]||(a[10]=r=>i.clickPlayer({season_id:o.data.id_season,player_id:o.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(i.tarjetaDatosGsDesktopClass),id:"card-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.baseCardtype4)},[o.showShareButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.btnSharetype4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.btnShareIcontype4),width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yoe,2))],2)):t.createCommentVNode("",!0),o.data.background!=""?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.bakgBaseIcontype4),alt:"",src:o.data.background},null,10,Koe)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideostype4),onClick:a[0]||(a[0]=r=>i.clickVideos({season_id:o.data.id_season,player_id:o.data.player_id,category:0,type:2}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcontype4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("g",Qoe,[t.createElementVNode("path",{d:"M2.67705 12.0654C2.58553 12.0133 2.50903 11.9355 2.4558 11.8404C2.40257 11.7452 2.37464 11.6363 2.375 11.5255V1.74838C2.37513 1.63789 2.40325 1.5295 2.45637 1.43474C2.50949 1.33998 2.58563 1.26238 2.6767 1.21019C2.76776 1.15801 2.87035 1.13319 2.97355 1.13837C3.07675 1.14355 3.17671 1.17854 3.2628 1.23962L10.1203 6.12875C10.1987 6.18445 10.2629 6.25998 10.3073 6.34864C10.3518 6.4373 10.375 6.53633 10.375 6.63692C10.375 6.73751 10.3518 6.83654 10.3073 6.9252C10.2629 7.01386 10.1987 7.0894 10.1203 7.1451L3.2628 12.0354C3.17684 12.0966 3.07696 12.1317 2.9738 12.137C2.87065 12.1423 2.76809 12.1175 2.67705 12.0654V12.0654ZM2.94673 11.5266L9.80426 6.6375L2.94673 11.5266Z",fill:o.data.color_icon_play!=null?o.data.color_icon_play:"#CBEE6B"},null,8,ese)]),tse],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideostype4)},"Ver videos",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.titletype4),id:"title-info"},[t.createElementVNode("h4",{class:t.normalizeClass(e.$style.playerNametype4),id:"player-name"},t.toDisplayString(o.data.player_name),3),t.createElementVNode("h2",{class:t.normalizeClass(e.$style.elJugadorAContainertype4),id:"title-card"},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.elJugadortype4)},t.toDisplayString(o.data.main_title),3),t.createElementVNode("p",{class:t.normalizeClass(e.$style.aSeguirtype4)},t.toDisplayString(o.data.second_title),3)],2)],2)],2),o.data.player_photo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imagePlayerIcontype4),alt:"",src:o.data.player_photo},null,10,ase)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.dataContainerClass),id:"data-container"},[t.createElementVNode("div",{style:t.normalizeStyle({color:o.data.font_color_card+"!important"}),class:t.normalizeClass(i.dataBoxClass),onClick:a[1]||(a[1]=r=>i.clickCategory({category:o.data.category_id_1,season_id:o.data.id_season,player_id:o.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.totaltype4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.font_color_card},null,8,ose)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_1),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1type4)},t.toDisplayString(o.data.category_name_1),3)],6),t.createElementVNode("div",{style:t.normalizeStyle({color:o.data.font_color_card+"!important"}),class:t.normalizeClass(i.dataBoxClass),onClick:a[2]||(a[2]=r=>i.clickCategory({category:o.data.category_id_2,season_id:o.data.id_season,player_id:o.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.totaltype4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.font_color_card},null,8,sse)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_2),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1type4)},t.toDisplayString(o.data.category_name_2),3)],6),o.data.showlast_category?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle({color:o.data.font_color_card+"!important"}),class:t.normalizeClass(i.dataBoxClass),onClick:a[3]||(a[3]=r=>i.clickCategory({category:o.data.category_id_3,season_id:o.data.id_season,player_id:o.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.totaltype4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.font_color_card},null,8,nse)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_3),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1type4)},t.toDisplayString(o.data.category_name_3),3)],6)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.tarjetaDatosGs414Class),id:"card-mobile-414"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.baseCard1type4)},[o.showShareButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.btnShare1type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.btnShareIcon1type4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rse,2))],2)):t.createCommentVNode("",!0),o.data.background!=""?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.bakgBaseIcon1type4),alt:"",src:o.data.background},null,10,lse)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideos1type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcon1type4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.color_icon_play!=null?o.data.color_icon_play:"#CBEE6B"},null,8,cse)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideostype4)},"Ver videos",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.title1type4),id:"title-info"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerName1type4)},t.toDisplayString(o.data.player_name),3),t.createElementVNode("h2",{class:t.normalizeClass(e.$style.elJugadorAContainer1type4),id:"title-card"},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.elJugadortype4)},t.toDisplayString(o.data.main_title),3),t.createElementVNode("p",{class:t.normalizeClass(e.$style.aSeguirtype4)},t.toDisplayString(o.data.second_title),3)],2)],2)],2),o.data.player_photo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imagePlayerIcon1type4),alt:"",src:o.data.player_photo},null,10,dse)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.dataContainer1Class),id:"data-container"},[t.createElementVNode("div",{style:t.normalizeStyle({color:o.data.font_color_card+"!important"}),class:t.normalizeClass(i.dataBox4Class),onClick:a[4]||(a[4]=r=>i.clickCategory({category:o.data.category_id_1,season_id:o.data.id_season,player_id:o.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.font_color_card},null,8,mse)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_1),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div9type4)},t.toDisplayString(o.data.category_name_1),3)],6),t.createElementVNode("div",{style:t.normalizeStyle({color:o.data.font_color_card+"!important"}),class:t.normalizeClass(i.dataBox4Class),onClick:a[5]||(a[5]=r=>i.clickCategory({category:o.data.category_id_2,season_id:o.data.id_season,player_id:o.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.font_color_card},null,8,pse)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_2),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div9type4)},t.toDisplayString(o.data.category_name_2),3)],6),o.data.showlast_category?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle({color:o.data.font_color_card+"!important"}),class:t.normalizeClass(i.dataBox6Class),onClick:a[6]||(a[6]=r=>i.clickCategory({category:o.data.category_id_3,season_id:o.data.id_season,player_id:o.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.font_color_card},null,8,hse)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_3),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div9type4)},t.toDisplayString(o.data.category_name_3),3)],6)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.tarjetaDatosGs320Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.baseCard1type4)},[o.showShareButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.btnShare1type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.btnShareIcon1type4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},yse,2))],2)):t.createCommentVNode("",!0),o.data.background!=""?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.bakgBaseIcon2type4),alt:"",src:o.data.background},null,10,use)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideos2type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcon2type4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.color_icon_play!=null?o.data.color_icon_play:"#CBEE6B"},null,8,fse)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideostype4)},"Ver videos",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.title2type4),id:"title-info"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerName1type4)},t.toDisplayString(o.data.player_name),3),t.createElementVNode("h2",{class:t.normalizeClass(e.$style.elJugadorAContainer2type4),id:"title-card"},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.elJugadortype4)},t.toDisplayString(o.data.main_title),3),t.createElementVNode("p",{class:t.normalizeClass(e.$style.aSeguirtype4)},t.toDisplayString(o.data.second_title),3)],2)],2)],2),o.data.player_photo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imagePlayerIcon2type4),alt:"",src:o.data.player_photo},null,10,_se)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.dataContainer2type4),id:"data-container"},[t.createElementVNode("div",{style:t.normalizeStyle({color:o.data.font_color_card+"!important"}),class:t.normalizeClass(i.dataBox7Class),onClick:a[7]||(a[7]=r=>i.clickCategory({category:o.data.category_id_1,season_id:o.data.id_season,player_id:o.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188777 8.8403C0.131575 8.80242 0.0837648 8.74584 0.0504989 8.67665C0.0172329 8.60746 -0.000226668 8.52828 2.22189e-06 8.44765V1.33719C8.08668e-05 1.25684 0.0176547 1.17801 0.0508556 1.10909C0.0840564 1.04018 0.131643 0.983741 0.188558 0.94579C0.245472 0.907838 0.309587 0.889787 0.374086 0.893556C0.438586 0.897325 0.501059 0.922773 0.554865 0.967195L4.84073 4.52284C4.88968 4.56335 4.92982 4.61829 4.95759 4.68277C4.98536 4.74724 4.99989 4.81926 4.99989 4.89242C4.99989 4.96557 4.98536 5.03759 4.95759 5.10207C4.92982 5.16655 4.88968 5.22149 4.84073 5.26199L0.554865 8.81848C0.501141 8.863 0.438716 8.88854 0.374245 8.89238C0.309774 8.89623 0.245673 8.87822 0.188777 8.8403V8.8403ZM0.357326 8.44849L4.64319 4.89284L0.357326 8.44849Z",fill:o.data.font_color_card},null,8,bse)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_1),3)],2),t.createElementVNode("div",{class:t.normalizeClass(i.div15Class)},t.toDisplayString(o.data.category_name_1),3)],6),t.createElementVNode("div",{style:t.normalizeStyle({color:o.data.font_color_card+"!important"}),class:t.normalizeClass(i.dataBox8Class),onClick:a[8]||(a[8]=r=>i.clickCategory({category:o.data.category_id_2,season_id:o.data.id_season,player_id:o.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188777 8.8403C0.131575 8.80242 0.0837648 8.74584 0.0504989 8.67665C0.0172329 8.60746 -0.000226668 8.52828 2.22189e-06 8.44765V1.33719C8.08668e-05 1.25684 0.0176547 1.17801 0.0508556 1.10909C0.0840564 1.04018 0.131643 0.983741 0.188558 0.94579C0.245472 0.907838 0.309587 0.889787 0.374086 0.893556C0.438586 0.897325 0.501059 0.922773 0.554865 0.967195L4.84073 4.52284C4.88968 4.56335 4.92982 4.61829 4.95759 4.68277C4.98536 4.74724 4.99989 4.81926 4.99989 4.89242C4.99989 4.96557 4.98536 5.03759 4.95759 5.10207C4.92982 5.16655 4.88968 5.22149 4.84073 5.26199L0.554865 8.81848C0.501141 8.863 0.438716 8.88854 0.374245 8.89238C0.309774 8.89623 0.245673 8.87822 0.188777 8.8403V8.8403ZM0.357326 8.44849L4.64319 4.89284L0.357326 8.44849Z",fill:o.data.font_color_card},null,8,wse)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_2),3)],2),t.createElementVNode("div",{class:t.normalizeClass(i.div15Class)},t.toDisplayString(o.data.category_name_2),3)],6),o.data.showlast_category?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle({color:o.data.font_color_card+"!important"}),class:t.normalizeClass(i.dataBox8Class),onClick:a[9]||(a[9]=r=>i.clickCategory({category:o.data.category_id_3,season_id:o.data.id_season,player_id:o.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"6",height:"9",viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.474421 8.8403C0.41722 8.80242 0.369409 8.74584 0.336143 8.67665C0.302877 8.60746 0.285418 8.52828 0.285647 8.44765V1.33719C0.285725 1.25684 0.303299 1.17801 0.3365 1.10909C0.369701 1.04018 0.417288 0.983741 0.474202 0.94579C0.531117 0.907838 0.595232 0.889787 0.659731 0.893556C0.72423 0.897325 0.786704 0.922773 0.84051 0.967195L5.12637 4.52284C5.17532 4.56335 5.21547 4.61829 5.24324 4.68277C5.271 4.74724 5.28554 4.81926 5.28554 4.89242C5.28554 4.96557 5.271 5.03759 5.24324 5.10207C5.21547 5.16655 5.17532 5.22149 5.12637 5.26199L0.84051 8.81848C0.786786 8.863 0.724361 8.88854 0.659889 8.89238C0.595418 8.89623 0.531318 8.87822 0.474421 8.8403V8.8403ZM0.64297 8.44849L4.92883 4.89284L0.64297 8.44849Z",fill:o.data.font_color_card},null,8,Cse)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_3),3)],2),t.createElementVNode("div",{class:t.normalizeClass(i.div15Class)},t.toDisplayString(o.data.category_name_3),3)],6)):t.createCommentVNode("",!0)],2)],2)],2)}const Sse={$style:Xoe},Ese=Uo(_p,[["render",kse],["__cssModules",Sse]]),Nse="_cardVideotype3_1geoc_47",$se="_cardVideo540type3_1geoc_73",Bse="_ligaMx2Icontype3_1geoc_101",xse="_roleCharacterIcontype3_1geoc_121",Vse="_btnPlaytype3_1geoc_135",Ise="_videoThumbnailtype3_1geoc_183",Ase="_chivasIcontype3_1geoc_209",Ose="_teamtype3_1geoc_221",Tse="_playerChildtype3_1geoc_251",zse="_playertype3_1geoc_265",Fse="_teamPlayertype3_1geoc_297",Rse="_mintype3_1geoc_309",Pse="_teamPlayerParenttype3_1geoc_317",Dse="_icnGoalsIcontype3_1geoc_333",Lse="_min1type3_1geoc_343",jse="_actionstype3_1geoc_351",vse="_footerCardVideotype3_1geoc_367",Mse={cardVideotype3:Nse,cardVideo540type3:$se,ligaMx2Icontype3:Bse,roleCharacterIcontype3:xse,btnPlaytype3:Vse,videoThumbnailtype3:Ise,chivasIcontype3:Ase,teamtype3:Ose,playerChildtype3:Tse,playertype3:zse,teamPlayertype3:Fse,mintype3:Rse,teamPlayerParenttype3:Pse,icnGoalsIcontype3:Dse,min1type3:Lse,actionstype3:jse,footerCardVideotype3:vse},bp={components:{},props:{data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},categoryIcon:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#000000"},playerPhoto:{type:Boolean,default:!0}},data(){return{}},setup(){const e=t.ref("myDivRefCardtype3"),{elementSize:a}=ln(e);return{myDivRefCardtype3:e,elementSize:a}},computed:{cardVideoClass(){return this.elementSize.width<=540?this.$style.cardVideo540type3:this.$style.cardVideotype3}},methods:{clickPlayer(e){this.clickCard&&this.$emit("onClickCard",e)},clickVideos(e){this.clickCard||this.$emit("onClickVideos",e)}}},L2=()=>{t.useCssVars(e=>({fe7b7fd8:e.backgroundColor}))},j2=bp.setup;bp.setup=j2?(e,a)=>(L2(),j2(e,a)):L2;const Hse=["src"],Use=t.createElementVNode("g",{"clip-path":"url(#clip0_59_831)"},[t.createElementVNode("path",{d:"M2.67705 12.0654C2.58553 12.0133 2.50903 11.9355 2.4558 11.8404C2.40257 11.7452 2.37464 11.6363 2.375 11.5255V1.74838C2.37513 1.63789 2.40325 1.5295 2.45637 1.43474C2.50949 1.33998 2.58563 1.26238 2.6767 1.21019C2.76776 1.15801 2.87035 1.13319 2.97355 1.13837C3.07675 1.14355 3.17671 1.17854 3.2628 1.23962L10.1203 6.12875C10.1987 6.18445 10.2629 6.25998 10.3073 6.34864C10.3518 6.4373 10.375 6.53633 10.375 6.63692C10.375 6.73751 10.3518 6.83654 10.3073 6.9252C10.2629 7.01386 10.1987 7.0894 10.1203 7.1451L3.2628 12.0354C3.17684 12.0966 3.07696 12.1317 2.9738 12.137C2.87065 12.1423 2.76809 12.1175 2.67705 12.0654V12.0654ZM2.94673 11.5266L9.80426 6.6375L2.94673 11.5266Z",fill:"#CBEE6B"})],-1),Gse=t.createElementVNode("defs",null,[t.createElementVNode("clipPath",{id:"clip0_59_831"},[t.createElementVNode("rect",{width:"12",height:"12",fill:"white",transform:"translate(0.375 0.637695)"})])],-1),Wse=[Use,Gse],qse=["src"],Jse=["src"],Xse=["src"];function Zse(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(i.cardVideoClass),ref:"myDivRefCardtype3",onClick:a[1]||(a[1]=r=>i.clickPlayer({season_id:o.data.id_season,category_id:o.data.id_category,team_id:o.data.team_id,player_id:o.data.player_id}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.videoThumbnailtype3),id:"container-video"},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.ligaMx2Icontype3),alt:"",src:o.data.background_card},null,10,Hse),t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnPlaytype3),onClick:a[0]||(a[0]=r=>i.clickVideos({season_id:o.data.id_season,category_id:o.data.id_category,team_id:o.data.team_id,player_id:o.data.player_id})),id:"btn-play-video"},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcontype3),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wse,2))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.footerCardVideotype3),id:"footer-card-video",style:t.normalizeStyle({background:o.backgroundColor})},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamPlayerParenttype3)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamPlayertype3)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamtype3)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.chivasIcontype3),alt:"",src:o.data.team_logo},null,10,qse)],2),o.playerPhoto?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.playertype3)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.playerChildtype3),alt:"",src:o.data.player_photo},null,10,Jse)],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.mintype3)},t.toDisplayString(o.data.player_name),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.actionstype3)},[o.categoryIcon?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.icnGoalsIcontype3),alt:"",src:o.data.icon_stat},null,10,Xse)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.min1type3)},t.toDisplayString(o.data.stat),3)],2)],6)],2)}const Yse={$style:Mse},Kse=Uo(bp,[["render",Zse],["__cssModules",Yse]]),Qse={components:{GSCCardFrecuentConnections:Hte,GSCCardVideosPlayers:fae,GSCHighlightsPostmatch:Lae,GSCPlays:Kse,GSCDataGS:Ese},props:{type:{type:Number,default:0},data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},playerPhoto:{type:Boolean,default:!0},categoryIcon:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#cf152d"},backgroundImg:{type:String,default:""},colorTitle:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},colorCard:{type:String,default:"#122736"},showShareButton:{type:Boolean,default:!1},customizeColors:{type:Boolean,default:!0}},data(){return{}},computed:{},methods:{onClickPlayer(e){this.$emit("onClickCard",e)},onClickVideos(e){this.$emit("onClickVideos",e)},onClickCategory(e){this.$emit("onClickCategory",e)}}};function ene(e,a,o,s,n,i){const r=t.resolveComponent("GSCCardFrecuentConnections"),c=t.resolveComponent("GSCCardVideosPlayers"),g=t.resolveComponent("GSCHighlightsPostmatch"),d=t.resolveComponent("GSCPlays"),l=t.resolveComponent("GSCDataGS");return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createBlock(r,{key:0,data:o.data,"click-card":o.clickCard,onOnClickPlayer:i.onClickPlayer,onOnClickVideos:i.onClickVideos},null,8,["data","click-card","onOnClickPlayer","onOnClickVideos"])):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createBlock(c,{key:1,data:o.data,"click-card":o.clickCard,"background-color":o.backgroundColor,"color-title":o.colorTitle,"border-color":o.borderColor,"background-img":o.backgroundImg,"customize-colors":o.customizeColors,onOnClickCard:i.onClickPlayer,onOnClickVideos:i.onClickVideos},null,8,["data","click-card","background-color","color-title","border-color","background-img","customize-colors","onOnClickCard","onOnClickVideos"])):t.createCommentVNode("",!0),o.type==2?(t.openBlock(),t.createBlock(g,{key:2,data:o.data,"click-card":o.clickCard,"background-img":o.backgroundImg,onOnClickCard:i.onClickPlayer,onOnClickVideos:i.onClickVideos},null,8,["data","click-card","background-img","onOnClickCard","onOnClickVideos"])):t.createCommentVNode("",!0),o.type==3?(t.openBlock(),t.createBlock(d,{key:3,data:o.data,"click-card":o.clickCard,"player-photo":o.playerPhoto,"category-icon":o.categoryIcon,"background-color":o.backgroundColor,onOnClickCard:i.onClickPlayer,onOnClickVideos:i.onClickVideos},null,8,["data","click-card","player-photo","category-icon","background-color","onOnClickCard","onOnClickVideos"])):t.createCommentVNode("",!0),o.type==4?(t.openBlock(),t.createBlock(l,{key:4,data:o.data,"show-share-button":o.showShareButton,"click-card":o.clickCard,colorcard:o.colorCard,onOnClickCard:i.onClickPlayer,onOnClickVideos:i.onClickVideos,onOnClickCategory:i.onClickCategory},null,8,["data","show-share-button","click-card","colorcard","onOnClickCard","onOnClickVideos","onOnClickCategory"])):t.createCommentVNode("",!0)])}const tne=Uo(Qse,[["render",ene],["__scopeId","data-v-b1f26d64"]]),ane=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},wp={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},v2=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},M2=wp.setup;wp.setup=M2?(e,a)=>(v2(),M2(e,a)):v2;const one={ref:"gscScrollableContainer",class:"scrollable-container"},sne={class:"scrollable-arrows"},nne=["width","height","viewBox"],ine=["stroke"],rne={class:"scrollable-wrapper"},lne={class:"scrollable-arrows"},cne=["width","height","viewBox"],dne=["stroke"];function mne(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",one,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[t.createElementVNode("div",sne,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:o.arrowsColor},null,8,ine)],8,nne))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[t.createElementVNode("div",rne,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[t.createElementVNode("div",lne,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:o.arrowsColor},null,8,dne)],8,cne))])],2)):t.createCommentVNode("",!0)],512)}const pne=ane(wp,[["render",mne],["__scopeId","data-v-b548a08d"]]),hne="_templateDataGS_1w6kr_7",gne="_gridCompo480_1w6kr_33",yne="_gridCompo_1w6kr_33",une="_grid_1w6kr_33",fne="_grid768_1w6kr_115",_ne="_grid480_1w6kr_137",bne="_specialsMobile_1w6kr_161",wne="_gridClass_1w6kr_177",Cne={templateDataGS:hne,gridCompo480:gne,gridCompo:yne,grid:une,grid768:fne,grid480:_ne,specialsMobile:bne,gridClass:wne},kne={components:{GSCData:pte,GSCCard:tne,GSCSlider:pne,GSCMentionsCards:NY},props:{type:{type:Number,default:0},data:{type:Object,default:()=>{}}},setup(){const e=t.ref("myDivRef2GSDa"),{elementSize:a}=ZZ(e);return{myDivRef2GSDa:e,elementSize:a}},data(){return{token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",pages:[],homeTeam:[],awayTeam:[],playerInfo:{},specials:[]}},computed:{gridCompoClass(){return this.elementSize.width<=720?this.$style.gridCompo480:this.$style.gridCompo},gridClass(){const e=this.elementSize.width;return e<=620?this.$style.grid480:e<=900?this.$style.grid768:this.$style.grid}},watch:{data:{immediate:!0,handler(e){this.getStats(e)}}},methods:{openmedia(e){this.$emit("openmedia",e)},onclickPlayVideos(e){var a=[];e.type==2?e.position_id==1?e.category==0?a=[39,55,41,42,264,304,306,608,324,323,362,371,380,355,49,50,267,308]:a=e.category:e.category==0?a=[12,19,31,32,13,25,6,11,23,4,5,24,15,607,10,27,216,217,155,164,173,30,98,101,104,105,109,112,115,116,17,2,20]:a=e.category:e.type==3?e.category==0?a=[12,55,"35_r","54_r",19,31,32,13,25,6,312,11,23,4,5,24,18,49,607,608,10,324,27,323,216,217,155,164,173,362,371,380,30,355,98,101,104,105,109,112,115,116,17,50,2,20,267,308]:a=e.category:e.category!=0?a=e.category:a=[12,55,"35_r","54_r",19,31,32,13,25,6,312,11,23,4,5,24,18,49,607,608,10,324,27,323,216,217,155,164,173,362,371,380,30,355,98,101,104,105,109,112,115,116,17,50,2,20,267,308],a==="minutes_played"&&(a=[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]),a==="games_played"&&(a=[607,608,12,55,54,35,14,52,15,53,466,477]);const o=[1,2,3];let s={seasonId:e.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:e.game_id?[e.game_id]:null,playerIds:e.position_id!=1?e.player_id?[e.player_id]:[]:[],goalkeeperIds:e.position_id==1?e.player_id?[e.player_id]:[]:[],teamId:e.team_id?[e.team_id]:0,matchResult:e.matchResult?[e.matchResult]:o,playData:{},advancedFilter:{playListTitle:""}};e.category!==0&&(s.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",s)},async getStats(e){const a=XZ.create({headers:{Authorization:`${this.token}`}}),o=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/games/"+e.game),s=await a.get("https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/"+e.game);for(let n=0;n<o.data.games[0].players.length;n++)e.home_team_id==o.data.games[0].players[n].team_id&&this.homeTeam.push({id_season:o.data.games[0].players[n].season_id,color:o.data.games[0].players[n].info_thumbnails.colors.background_color,player_id:o.data.games[0].players[n].player_id,player_name:o.data.games[0].players[n].player_name,background:o.data.games[0].players[n].info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+o.data.games[0].players[n].info_thumbnails.images.background_player_in_action[0]:"https://golstatsimages.blob.core.windows.net/images-library/"+o.data.games[0].players[n].info_thumbnails.images.background_default_players[0],player_photo:o.data.games[0].players[n].info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+o.data.games[0].players[n].info_thumbnails.images.player_in_action[0]:`https://az755631.vo.msecnd.net/players-profile/${o.data.games[0].players[n].player_id}.png`,category_stats_1:this.prematch?o.data.games[0].players[n].games_played:o.data.games[0].players[n].minutes_played,category_stats_2:this.prematch?o.data.games[0].players[n].minutes_played:o.data.games[0].players[n].categories[0].total,category_stats_3:this.prematch?o.data.games[0].players[n].categories[0].total:o.data.games[0].players[n].categories[1]?o.data.games[0].players[n].categories[1].total:"",category_id_1:this.prematch?"games_played":"minutes_played",category_id_2:this.prematch?"minutes_played":o.data.games[0].players[n].categories[0].categories,category_id_3:this.prematch?o.data.games[0].players[n].categories[0].categories:o.data.games[0].players[n].categories[1]?o.data.games[0].players[n].categories[1].categories:"",category_name_1:this.prematch?"Partidos Jugados":"Minutos Jugados",category_name_2:this.prematch?"Minutos Jugados":o.data.games[0].players[n].categories[0].category_name,category_name_3:this.prematch?o.data.games[0].players[n].categories[0].category_name:o.data.games[0].players[n].categories[1]?o.data.games[0].players[n].categories[1].category_name:"",showlast_category:!!o.data.games[0].players[n].categories[1],main_title:"Jugador",second_title:"Destacado",background_color_buttons:o.data.games[0].players[n].info_thumbnails.colors.background_color_buttons,background_color_cards:o.data.games[0].players[n].info_thumbnails.colors.background_color_cards,color_icon_play:o.data.games[0].players[n].info_thumbnails.colors.color_icon_play,color_next_back:o.data.games[0].players[n].info_thumbnails.colors.color_next_back,font_color:o.data.games[0].players[n].info_thumbnails.colors.font_color,font_color_card:o.data.games[0].players[n].info_thumbnails.colors.font_color_cards?o.data.games[0].players[n].info_thumbnails.colors.font_color_cards:"#FFFFFF"}),e.away_team_id==o.data.games[0].players[n].team_id&&this.awayTeam.push({id_season:o.data.games[0].players[n].season_id,color:o.data.games[0].players[n].info_thumbnails.colors.background_color,player_id:o.data.games[0].players[n].player_id,player_name:o.data.games[0].players[n].player_name,background:o.data.games[0].players[n].info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+o.data.games[0].players[n].info_thumbnails.images.background_player_in_action[0]:"https://golstatsimages.blob.core.windows.net/images-library/"+o.data.games[0].players[n].info_thumbnails.images.background_default_players[0],player_photo:o.data.games[0].players[n].info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+o.data.games[0].players[n].info_thumbnails.images.player_in_action[0]:`https://az755631.vo.msecnd.net/players-profile/${o.data.games[0].players[n].player_id}.png`,category_stats_1:this.prematch?o.data.games[0].players[n].games_played:o.data.games[0].players[n].minutes_played,category_stats_2:this.prematch?o.data.games[0].players[n].minutes_played:o.data.games[0].players[n].categories[0].total,category_stats_3:this.prematch?o.data.games[0].players[n].categories[0].total:o.data.games[0].players[n].categories[1]?o.data.games[0].players[n].categories[1].total:"",category_id_1:this.prematch?"games_played":"minutes_played",category_id_2:this.prematch?"minutes_played":o.data.games[0].players[n].categories[0].categories,category_id_3:this.prematch?o.data.games[0].players[n].categories[0].categories:o.data.games[0].players[n].categories[1]?o.data.games[0].players[n].categories[1].categories:"",category_name_1:this.prematch?"Partidos Jugados":"Minutos Jugados",category_name_2:this.prematch?"Minutos Jugados":o.data.games[0].players[n].categories[0].category_name,category_name_3:this.prematch?o.data.games[0].players[n].categories[0].category_name:o.data.games[0].players[n].categories[1]?o.data.games[0].players[n].categories[1].category_name:"",showlast_category:!!o.data.games[0].players[n].categories[1],main_title:"Jugador",second_title:"Destacado",background_color_buttons:o.data.games[0].players[n].info_thumbnails.colors.background_color_buttons,background_color_cards:o.data.games[0].players[n].info_thumbnails.colors.background_color_cards,color_icon_play:o.data.games[0].players[n].info_thumbnails.colors.color_icon_play,color_next_back:o.data.games[0].players[n].info_thumbnails.colors.color_next_back,font_color:o.data.games[0].players[n].info_thumbnails.colors.font_color,font_color_card:o.data.games[0].players[n].info_thumbnails.colors.font_color_cards?o.data.games[0].players[n].info_thumbnails.colors.font_color_cards:"#FFFFFF"});this.specials=s.data.data}}},Sne={style:{margin:"0 auto",width:"100%"}},Ene={style:{margin:"0 auto",width:"100%"}};function Nne(e,a,o,s,n,i){const r=t.resolveComponent("GSCData"),c=t.resolveComponent("GSCMentionsCards"),g=t.resolveComponent("GSCSlider"),d=t.resolveComponent("GSCCard");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.templateDataGS),ref:"myDivRef2GSDa"},[o.type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(i.gridCompoClass)},[t.createElementVNode("div",{style:t.normalizeStyle(s.elementSize.width>720?"width:"+(s.elementSize.width-80)/2+"px":"width:"+(s.elementSize.width-40)+"px")},[t.createElementVNode("div",Sne,[t.createVNode(r,{type:1,prematch:!0,"click-card":!1,"team-selected":o.data.home_team_id,data:o.data,colorCardByTeam:!0,onOpenmedia:i.openmedia},null,8,["team-selected","data","onOpenmedia"])])],4),t.createElementVNode("div",{style:t.normalizeStyle(s.elementSize.width>720?"width:"+(s.elementSize.width-80)/2+"px":"width:"+(s.elementSize.width-40)+"px")},[t.createElementVNode("div",Ene,[t.createVNode(r,{type:1,prematch:!0,"click-card":!1,"team-selected":o.data.away_team_id,data:o.data,colorCardByTeam:!0,onOpenmedia:i.openmedia},null,8,["team-selected","data","onOpenmedia"])])],4)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.specialsMobile)},[t.createVNode(g,{"px-scroll":305,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd","background-color":"#172531"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.specials,(l,m)=>(t.openBlock(),t.createBlock(c,{key:m,data:l,"is-slider":!0},null,8,["data"]))),128))]),_:1})],2),t.createElementVNode("div",{class:t.normalizeClass([i.gridClass,e.$style.gridClass])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.specials,(l,m)=>(t.openBlock(),t.createBlock(c,{key:m,data:l},null,8,["data"]))),128))],2)],64)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.gridCompoClass)},[t.createElementVNode("div",{style:t.normalizeStyle(s.elementSize.width>720?"width:"+(s.elementSize.width-50)/2+"px":"width:"+(s.elementSize.width-40)+"px")},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.homeTeam,(l,m)=>(t.openBlock(),t.createBlock(d,{key:m,type:4,style:{"margin-top":"30px"},"click-card":!1,data:l,colorCard:l.color,onOnClickVideos:i.onclickPlayVideos,onOnClickCategory:i.onclickPlayVideos},null,8,["data","colorCard","onOnClickVideos","onOnClickCategory"]))),128))],4),t.createElementVNode("div",{style:t.normalizeStyle(s.elementSize.width>720?"width:"+(s.elementSize.width-50)/2+"px":"width:"+(s.elementSize.width-40)+"px")},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.awayTeam,(l,m)=>(t.openBlock(),t.createBlock(d,{key:m,type:4,style:{"margin-top":"30px"},"click-card":!1,data:l,colorCard:l.color,onOnClickVideos:i.onclickPlayVideos,onOnClickCategory:i.onclickPlayVideos},null,8,["data","colorCard","onOnClickVideos","onOnClickCategory"]))),128))],4)],2))],2)}const $ne={$style:Cne},H2=J_(kne,[["render",Nne],["__cssModules",$ne],["__scopeId","data-v-64d18036"]]),OMe="",TMe="",Bne={class:"datagame-container"},xne=Ae({__name:"GSCDatosGSMain",props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})}},emits:["openmedia"],setup(e,{emit:a}){const o=e,s=t.ref(0);t.watch(()=>o.game,i=>{s.value=i.gameId},{deep:!0,immediate:!0});function n(i){a("openmedia",i)}return(i,r)=>(t.openBlock(),t.createElementBlock("div",Bne,[e.game.status==4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(H2),{onOpenmedia:n,key:s.value,type:0,data:{season:e.game.seasonId,game:e.game.gameId,home_team_id:e.game.homeTeam.team_id,away_team_id:e.game.awayTeam.team_id,team_view:1}},null,8,["data"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(H2),{onOpenmedia:n,key:s.value,type:1,data:{season:e.game.seasonId,game:e.game.gameId,home_team_id:e.game.homeTeam.team_id,away_team_id:e.game.awayTeam.team_id,team_view:2}},null,8,["data"])):t.createCommentVNode("",!0)],64))]))}},[["__scopeId","data-v-564ded3f"]]);function U2(e,a){return function(){return e.apply(a,arguments)}}const{toString:Vne}=Object.prototype,{getPrototypeOf:Cp}=Object,Rr=(e=>a=>{const o=Vne.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),la=e=>(e=e.toLowerCase(),a=>Rr(a)===e),Pr=e=>a=>typeof a===e,{isArray:Go}=Array,cn=Pr("undefined");function Ine(e){return e!==null&&!cn(e)&&e.constructor!==null&&!cn(e.constructor)&&At(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const G2=la("ArrayBuffer");function Ane(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&G2(e.buffer),a}const One=Pr("string"),At=Pr("function"),W2=Pr("number"),Dr=e=>e!==null&&typeof e=="object",Tne=e=>e===!0||e===!1,Lr=e=>{if(Rr(e)!=="object")return!1;const a=Cp(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},zne=la("Date"),Fne=la("File"),Rne=la("Blob"),Pne=la("FileList"),Dne=e=>Dr(e)&&At(e.pipe),Lne=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||At(e.append)&&((a=Rr(e))==="formdata"||a==="object"&&At(e.toString)&&e.toString()==="[object FormData]"))},jne=la("URLSearchParams"),vne=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function dn(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let s,n;if(typeof e!="object"&&(e=[e]),Go(e))for(s=0,n=e.length;s<n;s++)a.call(null,e[s],s,e);else{const i=o?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let c;for(s=0;s<r;s++)c=i[s],a.call(null,e[c],c,e)}}function q2(e,a){a=a.toLowerCase();const o=Object.keys(e);let s=o.length,n;for(;s-- >0;)if(n=o[s],a===n.toLowerCase())return n;return null}const J2=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),X2=e=>!cn(e)&&e!==J2;function kp(){const{caseless:e}=X2(this)&&this||{},a={},o=(s,n)=>{const i=e&&q2(a,n)||n;Lr(a[i])&&Lr(s)?a[i]=kp(a[i],s):Lr(s)?a[i]=kp({},s):Go(s)?a[i]=s.slice():a[i]=s};for(let s=0,n=arguments.length;s<n;s++)arguments[s]&&dn(arguments[s],o);return a}const Mne=(e,a,o,{allOwnKeys:s}={})=>(dn(a,(n,i)=>{o&&At(n)?e[i]=U2(n,o):e[i]=n},{allOwnKeys:s}),e),Hne=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Une=(e,a,o,s)=>{e.prototype=Object.create(a.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},Gne=(e,a,o,s)=>{let n,i,r;const c={};if(a=a||{},e==null)return a;do{for(n=Object.getOwnPropertyNames(e),i=n.length;i-- >0;)r=n[i],(!s||s(r,e,a))&&!c[r]&&(a[r]=e[r],c[r]=!0);e=o!==!1&&Cp(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},Wne=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const s=e.indexOf(a,o);return s!==-1&&s===o},qne=e=>{if(!e)return null;if(Go(e))return e;let a=e.length;if(!W2(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},Jne=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Cp(Uint8Array)),Xne=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const n=s.value;a.call(e,n[0],n[1])}},Zne=(e,a)=>{let o;const s=[];for(;(o=e.exec(a))!==null;)s.push(o);return s},Yne=la("HTMLFormElement"),Kne=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,s){return o.toUpperCase()+s}),Z2=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),Qne=la("RegExp"),Y2=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),s={};dn(o,(n,i)=>{let r;(r=a(n,i,e))!==!1&&(s[i]=r||n)}),Object.defineProperties(e,s)},eie=e=>{Y2(e,(a,o)=>{if(At(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const s=e[o];if(At(s)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},tie=(e,a)=>{const o={},s=n=>{n.forEach(i=>{o[i]=!0})};return Go(e)?s(e):s(String(e).split(a)),o},aie=()=>{},oie=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Sp="abcdefghijklmnopqrstuvwxyz",K2="0123456789",Q2={DIGIT:K2,ALPHA:Sp,ALPHA_DIGIT:Sp+Sp.toUpperCase()+K2},sie=(e=16,a=Q2.ALPHA_DIGIT)=>{let o="";const{length:s}=a;for(;e--;)o+=a[Math.random()*s|0];return o};function nie(e){return!!(e&&At(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const iie=e=>{const a=new Array(10),o=(s,n)=>{if(Dr(s)){if(a.indexOf(s)>=0)return;if(!("toJSON"in s)){a[n]=s;const i=Go(s)?[]:{};return dn(s,(r,c)=>{const g=o(r,n+1);!cn(g)&&(i[c]=g)}),a[n]=void 0,i}}return s};return o(e,0)},rie=la("AsyncFunction"),lie=e=>e&&(Dr(e)||At(e))&&At(e.then)&&At(e.catch),H={isArray:Go,isArrayBuffer:G2,isBuffer:Ine,isFormData:Lne,isArrayBufferView:Ane,isString:One,isNumber:W2,isBoolean:Tne,isObject:Dr,isPlainObject:Lr,isUndefined:cn,isDate:zne,isFile:Fne,isBlob:Rne,isRegExp:Qne,isFunction:At,isStream:Dne,isURLSearchParams:jne,isTypedArray:Jne,isFileList:Pne,forEach:dn,merge:kp,extend:Mne,trim:vne,stripBOM:Hne,inherits:Une,toFlatObject:Gne,kindOf:Rr,kindOfTest:la,endsWith:Wne,toArray:qne,forEachEntry:Xne,matchAll:Zne,isHTMLForm:Yne,hasOwnProperty:Z2,hasOwnProp:Z2,reduceDescriptors:Y2,freezeMethods:eie,toObjectSet:tie,toCamelCase:Kne,noop:aie,toFiniteNumber:oie,findKey:q2,global:J2,isContextDefined:X2,ALPHABET:Q2,generateString:sie,isSpecCompliantForm:nie,toJSONObject:iie,isAsyncFn:rie,isThenable:lie};function ye(e,a,o,s,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),s&&(this.request=s),n&&(this.response=n)}H.inherits(ye,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:H.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const e5=ye.prototype,t5={};["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=>{t5[e]={value:e}}),Object.defineProperties(ye,t5),Object.defineProperty(e5,"isAxiosError",{value:!0}),ye.from=(e,a,o,s,n,i)=>{const r=Object.create(e5);return H.toFlatObject(e,r,function(c){return c!==Error.prototype},c=>c!=="isAxiosError"),ye.call(r,e.message,a,o,s,n),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const cie=null;function Ep(e){return H.isPlainObject(e)||H.isArray(e)}function a5(e){return H.endsWith(e,"[]")?e.slice(0,-2):e}function o5(e,a,o){return e?e.concat(a).map(function(s,n){return s=a5(s),!o&&n?"["+s+"]":s}).join(o?".":""):a}function die(e){return H.isArray(e)&&!e.some(Ep)}const mie=H.toFlatObject(H,{},null,function(e){return/^is[A-Z]/.test(e)});function jr(e,a,o){if(!H.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=H.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,p){return!H.isUndefined(p[y])});const s=o.metaTokens,n=o.visitor||d,i=o.dots,r=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&H.isSpecCompliantForm(a);if(!H.isFunction(n))throw new TypeError("visitor must be a function");function g(y){if(y===null)return"";if(H.isDate(y))return y.toISOString();if(!c&&H.isBlob(y))throw new ye("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(y)||H.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,p,u){let f=y;if(y&&!u&&typeof y=="object"){if(H.endsWith(p,"{}"))p=s?p:p.slice(0,-2),y=JSON.stringify(y);else if(H.isArray(y)&&die(y)||(H.isFileList(y)||H.endsWith(p,"[]"))&&(f=H.toArray(y)))return p=a5(p),f.forEach(function(_,k){!(H.isUndefined(_)||_===null)&&a.append(r===!0?o5([p],k,i):r===null?p:p+"[]",g(_))}),!1}return Ep(y)?!0:(a.append(o5(u,p,i),g(y)),!1)}const l=[],m=Object.assign(mie,{defaultVisitor:d,convertValue:g,isVisitable:Ep});function h(y,p){if(!H.isUndefined(y)){if(l.indexOf(y)!==-1)throw Error("Circular reference detected in "+p.join("."));l.push(y),H.forEach(y,function(u,f){(!(H.isUndefined(u)||u===null)&&n.call(a,u,H.isString(f)?f.trim():f,p,m))===!0&&h(u,p?p.concat(f):[f])}),l.pop()}}if(!H.isObject(e))throw new TypeError("data must be an object");return h(e),a}function s5(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function Np(e,a){this._pairs=[],e&&jr(e,this,a)}const n5=Np.prototype;n5.append=function(e,a){this._pairs.push([e,a])},n5.toString=function(e){const a=e?function(o){return e.call(this,o,s5)}:s5;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function pie(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function i5(e,a,o){if(!a)return e;const s=o&&o.encode||pie,n=o&&o.serialize;let i;if(n?i=n(a,o):i=H.isURLSearchParams(a)?a.toString():new Np(a,o).toString(s),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}const r5=class{constructor(){this.handlers=[]}use(a,o,s){return this.handlers.push({fulfilled:a,rejected:o,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){H.forEach(this.handlers,function(o){o!==null&&a(o)})}},l5={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},hie=typeof URLSearchParams<"u"?URLSearchParams:Np,gie=typeof FormData<"u"?FormData:null,yie=typeof Blob<"u"?Blob:null,uie={isBrowser:!0,classes:{URLSearchParams:hie,FormData:gie,Blob:yie},protocols:["http","https","file","blob","url","data"]},c5=typeof window<"u"&&typeof document<"u",fie=(e=>c5&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),_ie=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),bie=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:c5,hasStandardBrowserEnv:fie,hasStandardBrowserWebWorkerEnv:_ie},Symbol.toStringTag,{value:"Module"})),ca={...bie,...uie};function wie(e,a){return jr(e,new ca.classes.URLSearchParams,Object.assign({visitor:function(o,s,n,i){return ca.isNode&&H.isBuffer(o)?(this.append(s,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function Cie(e){return H.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function kie(e){const a={},o=Object.keys(e);let s;const n=o.length;let i;for(s=0;s<n;s++)i=o[s],a[i]=e[i];return a}function d5(e){function a(o,s,n,i){let r=o[i++];if(r==="__proto__")return!0;const c=Number.isFinite(+r),g=i>=o.length;return r=!r&&H.isArray(n)?n.length:r,g?(H.hasOwnProp(n,r)?n[r]=[n[r],s]:n[r]=s,!c):((!n[r]||!H.isObject(n[r]))&&(n[r]=[]),a(o,s,n[r],i)&&H.isArray(n[r])&&(n[r]=kie(n[r])),!c)}if(H.isFormData(e)&&H.isFunction(e.entries)){const o={};return H.forEachEntry(e,(s,n)=>{a(Cie(s),n,o,0)}),o}return null}function Sie(e,a,o){if(H.isString(e))try{return(a||JSON.parse)(e),H.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(o||JSON.stringify)(e)}const $p={transitional:l5,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",s=o.indexOf("application/json")>-1,n=H.isObject(e);if(n&&H.isHTMLForm(e)&&(e=new FormData(e)),H.isFormData(e))return s?JSON.stringify(d5(e)):e;if(H.isArrayBuffer(e)||H.isBuffer(e)||H.isStream(e)||H.isFile(e)||H.isBlob(e))return e;if(H.isArrayBufferView(e))return e.buffer;if(H.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(n){if(o.indexOf("application/x-www-form-urlencoded")>-1)return wie(e,this.formSerializer).toString();if((i=H.isFileList(e))||o.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return jr(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return n||s?(a.setContentType("application/json",!1),Sie(e)):e}],transformResponse:[function(e){const a=this.transitional||$p.transitional,o=a&&a.forcedJSONParsing,s=this.responseType==="json";if(e&&H.isString(e)&&(o&&!this.responseType||s)){const n=!(a&&a.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(i){if(n)throw i.name==="SyntaxError"?ye.from(i,ye.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ca.classes.FormData,Blob:ca.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],e=>{$p.headers[e]={}});const Bp=$p,Eie=H.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"]),Nie=e=>{const a={};let o,s,n;return e&&e.split(`
57
+ */const ct={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"}},B2={itemsToShow:{default:ct.itemsToShow,type:Number},itemsToScroll:{default:ct.itemsToScroll,type:Number},wrapAround:{default:ct.wrapAround,type:Boolean},throttle:{default:ct.throttle,type:Number},snapAlign:{default:ct.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:ct.transition,type:Number},breakpoints:{default:ct.breakpoints,type:Object},autoplay:{default:ct.autoplay,type:Number},pauseAutoplayOnHover:{default:ct.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:ct.mouseDrag,type:Boolean},touchDrag:{default:ct.touchDrag,type:Boolean},dir:{default:ct.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:ct.i18n,type:Object},settings:{default(){return{}},type:Object}};function HK({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:s,itemsToShow:n=1}=e;if(s)return Math.max(a-1,0);let i;switch(o){case"start":i=a-n;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((n-.5)/2);break;case"center-even":i=a-Math.ceil(n/2);break;default:i=0;break}return Math.max(i,0)}function UK({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:s,itemsToShow:n=1}=e;let i=0;if(o||n>a)return i;switch(s){case"start":i=0;break;case"end":i=n-1;break;case"center":case"center-odd":i=Math.floor((n-1)/2);break;case"center-even":i=Math.floor((n-2)/2);break;default:i=0;break}return i}function hp({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function GK({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:s,wrapAround:n,itemsToShow:i=1}=e;let r=a;switch(s){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return n?r:hp({val:r,max:o-i,min:0})}function x2(e){return e?e.reduce((a,o)=>{var s;return o.type===t.Fragment?[...a,...x2(o.children)]:((s=o.type)===null||s===void 0?void 0:s.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function gp({val:e,max:a,min:o=0}){return e>a?gp({val:e-(a+1),max:a,min:o}):e<o?gp({val:e+(a+1),max:a,min:o}):e}function WK(e,a){let o;return a?function(...s){const n=this;o||(e.apply(n,s),o=!0,setTimeout(()=>o=!1,a))}:e}function qK(e,a){let o;return function(...s){o&&clearTimeout(o),o=setTimeout(()=>{e(...s),o=null},a)}}function JK(e="",a={}){return Object.entries(a).reduce((o,[s,n])=>o.replace(`{${s}}`,String(n)),e)}var XK=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},ct))),a=t.inject("currentSlide",t.ref(0)),o=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},JK(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),ZK=t.defineComponent({name:"Carousel",props:B2,setup(e,{slots:a,emit:o,expose:s}){var n;const i=t.ref(null),r=t.ref([]),c=t.ref(0),g=t.ref(0),d=t.reactive(Object.assign({},ct));let l=Object.assign({},ct),m;const h=t.ref((n=e.modelValue)!==null&&n!==void 0?n:0),y=t.ref(0),p=t.ref(0),u=t.ref(0),f=t.ref(0);let _,k;t.provide("config",d),t.provide("slidesCount",g),t.provide("currentSlide",h),t.provide("maxSlide",u),t.provide("minSlide",f),t.provide("slideWidth",c);function C(){m=Object.assign({},e.breakpoints),l=Object.assign(Object.assign(Object.assign({},l),e),{i18n:Object.assign(Object.assign({},l.i18n),e.i18n),breakpoints:void 0}),E(l)}function b(){if(!m||!Object.keys(m).length)return;const S=Object.keys(m).map(T=>Number(T)).sort((T,te)=>+te-+T);let z=Object.assign({},l);S.some(T=>{const te=window.matchMedia(`(min-width: ${T}px)`).matches;return te&&(z=Object.assign(Object.assign({},z),m[T])),te}),E(z)}function E(S){Object.entries(S).forEach(([z,T])=>d[z]=T)}const x=qK(()=>{b(),V()},16);function V(){if(!i.value)return;const S=i.value.getBoundingClientRect();c.value=S.width/d.itemsToShow}function B(){g.value<=0||(p.value=Math.ceil((g.value-1)/2),u.value=HK({config:d,slidesCount:g.value}),f.value=UK({config:d,slidesCount:g.value}),d.wrapAround||(h.value=hp({val:h.value,max:u.value,min:f.value})))}t.onMounted(()=>{t.nextTick(()=>V()),setTimeout(()=>V(),1e3),b(),oe(),window.addEventListener("resize",x,{passive:!0}),o("init")}),t.onUnmounted(()=>{k&&clearTimeout(k),_&&clearInterval(_),window.removeEventListener("resize",x,{passive:!0})});let $=!1;const F={x:0,y:0},A={x:0,y:0},I=t.reactive({x:0,y:0}),P=t.ref(!1),Q=t.ref(!1),K=()=>{P.value=!0},R=()=>{P.value=!1};function w(S){["INPUT","TEXTAREA","SELECT"].includes(S.target.tagName)||($=S.type==="touchstart",$||S.preventDefault(),!(!$&&S.button!==0||ee.value)&&(F.x=$?S.touches[0].clientX:S.clientX,F.y=$?S.touches[0].clientY:S.clientY,document.addEventListener($?"touchmove":"mousemove",N,!0),document.addEventListener($?"touchend":"mouseup",O,!0)))}const N=WK(S=>{Q.value=!0,A.x=$?S.touches[0].clientX:S.clientX,A.y=$?S.touches[0].clientY:S.clientY;const z=A.x-F.x,T=A.y-F.y;I.y=T,I.x=z},d.throttle);function O(){const S=d.dir==="rtl"?-1:1,z=Math.sign(I.x)*.4,T=Math.round(I.x/c.value+z)*S;if(T&&!$){const te=Be=>{Be.stopPropagation(),window.removeEventListener("click",te,!0)};window.addEventListener("click",te,!0)}ae(h.value-T),I.x=0,I.y=0,Q.value=!1,document.removeEventListener($?"touchmove":"mousemove",N,!0),document.removeEventListener($?"touchend":"mouseup",O,!0)}function oe(){!d.autoplay||d.autoplay<=0||(_=setInterval(()=>{d.pauseAutoplayOnHover&&P.value||ie()},d.autoplay))}function se(){_&&(clearInterval(_),_=null),oe()}const ee=t.ref(!1);function ae(S){const z=d.wrapAround?S:hp({val:S,max:u.value,min:f.value});h.value===z||ee.value||(o("slide-start",{slidingToIndex:S,currentSlideIndex:h.value,prevSlideIndex:y.value,slidesCount:g.value}),ee.value=!0,y.value=h.value,h.value=z,k=setTimeout(()=>{if(d.wrapAround){const T=gp({val:z,max:u.value,min:0});T!==h.value&&(h.value=T,o("loop",{currentSlideIndex:h.value,slidingToIndex:S}))}o("update:modelValue",h.value),o("slide-end",{currentSlideIndex:h.value,prevSlideIndex:y.value,slidesCount:g.value}),ee.value=!1,se()},d.transition))}function ie(){ae(h.value+d.itemsToScroll)}function Ee(){ae(h.value-d.itemsToScroll)}const ze={slideTo:ae,next:ie,prev:Ee};t.provide("nav",ze),t.provide("isSliding",ee);const Fe=t.computed(()=>GK({config:d,currentSlide:h.value,slidesCount:g.value}));t.provide("slidesToScroll",Fe);const ft=t.computed(()=>{const S=d.dir==="rtl"?-1:1,z=Fe.value*c.value*S;return{transform:`translateX(${I.x-z}px)`,transition:`${ee.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${g.value*c.value}px`:"",width:"100%"}});function Re(){C(),b(),B(),V(),se()}Object.keys(B2).forEach(S=>{["modelValue"].includes(S)||t.watch(()=>e[S],Re)}),t.watch(()=>e.modelValue,S=>{S!==h.value&&ae(Number(S))}),t.watch(g,B),o("before-init"),C();const Pe={config:d,slidesCount:g,slideWidth:c,next:ie,prev:Ee,slideTo:ae,currentSlide:h,maxSlide:u,minSlide:f,middleSlide:p};s({updateBreakpointsConfigs:b,updateSlidesData:B,updateSlideWidth:V,initDefaultConfigs:C,restartCarousel:Re,slideTo:ae,next:ie,prev:Ee,nav:ze,data:Pe});const De=a.default||a.slides,Le=a.addons,je=t.reactive(Pe);return()=>{const S=x2(De==null?void 0:De(je)),z=(Le==null?void 0:Le(je))||[];S.forEach((xe,Ve)=>xe.props.index=Ve);let T=S;if(d.wrapAround){const xe=S.map((Ie,ne)=>t.cloneVNode(Ie,{index:-S.length+ne,isClone:!0,key:`clone-before-${ne}`})),Ve=S.map((Ie,ne)=>t.cloneVNode(Ie,{index:S.length+ne,isClone:!0,key:`clone-after-${ne}`}));T=[...xe,...S,...Ve]}r.value=S,g.value=Math.max(S.length,1);const te=t.h("ol",{class:"carousel__track",style:ft.value,onMousedownCapture:d.mouseDrag?w:null,onTouchstartPassiveCapture:d.touchDrag?w:null},T),Be=t.h("div",{class:"carousel__viewport"},te);return t.h("section",{ref:i,class:{carousel:!0,"is-sliding":ee.value,"is-dragging":Q.value,"is-hover":P.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:K,onMouseleave:R},[Be,z,t.h(XK)])}}}),V2;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(V2||(V2={}));var YK=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const o=t.inject("config",t.reactive(Object.assign({},ct))),s=t.inject("currentSlide",t.ref(0)),n=t.inject("slidesToScroll",t.ref(0)),i=t.inject("isSliding",t.ref(!1)),r=()=>e.index===s.value,c=()=>e.index===s.value-1,g=()=>e.index===s.value+1,d=()=>{const l=Math.floor(n.value),m=Math.ceil(n.value+o.itemsToShow-1);return e.index>=l&&e.index<=m};return()=>{var l;return t.h("li",{style:{width:`${100/o.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d(),"carousel__slide--active":r(),"carousel__slide--prev":c(),"carousel__slide--next":g(),"carousel__slide--sliding":i.value},"aria-hidden":!d()},(l=a.default)===null||l===void 0?void 0:l.call(a))}}});const KK=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},QK=e=>(t.pushScopeId("data-v-dd3cbf69"),e=e(),t.popScopeId(),e),eQ={class:"gsc-carousel"},tQ={key:0},aQ=QK(()=>t.createElementVNode("div",null,"no hay",-1)),oQ=[aQ],sQ={class:"gsc-carousel__2d__slides"},nQ={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},iQ=["fill"],rQ={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lQ=["fill"],cQ={class:"gsc-carousel__2d__navigation"},dQ={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},mQ=["stroke"],pQ={key:1,class:"gsc-carousel__2d__navigation__pagination"},hQ=["onClick"],gQ={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},yQ=["stroke"],uQ={__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(a=>a 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"},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:a,emit:o}){const s=e;t.useCssVars(u=>({"0d808f0f":e.slideLeftArrowBackgroundImage,"1e0ef2e5":e.slidesArrowsLeftAndRight,"66d12b5c":e.slideRightArrowBackgroundImage,"2b22a85a":e.marginTop,"1a842b02":e.secondarySlidesOpacity}));const n=t.ref(null),i=t.ref({}),r=t.ref(0),c=t.ref(!1);t.watch(n,u=>{u&&c.value?(c.value=!1,g(s.items)):u&&u.slideTo&&u.slideTo(r.value)},{deep:!0}),t.watch(()=>s.currentItemIndex,u=>{r.value!==u&&h(u)}),t.watch(()=>s.items,u=>{n.value?g(u):c.value=!0},{immediate:!0});function g(u){if(u&&u.length&&n.value){if(s.defaultItemByProp){const f=s.items.findIndex(_=>_[s.defaultItemByProp.propName]===s.defaultItemByProp.value);f!==-1?(r.value=f,i.value=u[f]):(r.value=0,i.value=u[0])}else r.value=s.defaultItemByIndex,i.value=u[s.defaultItemByIndex];n.value.slideTo&&n.value.slideTo(r.value),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}}function d(){n.value&&n.value.next()}function l(){n.value&&n.value.prev()}function m(){n.value&&n.value.updateSlideWidth()}function h(u){n.value&&n.value.slideTo(u)}function y(u){n.value.slideTo(u)}function p(u){const f=u.slidingToIndex<0?s.items.length-1:u.slidingToIndex===s.items.length?0:u.slidingToIndex;r.value=f,i.value=s.items[f],o("update:currentItemIndex",f),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}return a({prev:l,next:d,updateSlideWidth:m,slideTo:h}),(u,f)=>(t.openBlock(),t.createElementBlock("div",eQ,[s.is3d?(t.openBlock(),t.createElementBlock("div",tQ,oQ)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",sQ,[t.createVNode(t.unref(ZK),{ref_key:"carousel2d",ref:n,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:p},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(_,k)=>(t.openBlock(),t.createBlock(t.unref(YK),{key:k},{default:t.withCtx(()=>[t.renderSlot(u.$slots,"default",{item:_},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:f[0]||(f[0]=_=>n.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",nQ,[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,iQ)]))],2)])):t.createCommentVNode("",!0),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:f[1]||(f[1]=_=>d())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",rQ,[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,lQ)]))],2)])):t.createCommentVNode("",!0),t.createElementVNode("div",cQ,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:f[2]||(f[2]=_=>l())},[(t.openBlock(),t.createElementBlock("svg",dQ,[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:s.arrowsColor},null,8,mQ)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",pQ,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(_,k)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${k}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${s.navigationHeight}px`,width:`${r.value===k?s.navigationActiveWidth:s.navigationActiveWidth/2}px`,borderRadius:`${s.navigationBorderRadius}px`,backgroundColor:`${r.value===k?s.navigationActiveColor:s.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:C=>y(k)},null,12,hQ))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:f[3]||(f[3]=_=>n.value.next())},[(t.openBlock(),t.createElementBlock("svg",gQ,[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:s.arrowsColor},null,8,yQ)]))])):t.createCommentVNode("",!0)])],2))]))}},fQ=KK(uQ,[["__scopeId","data-v-dd3cbf69"]]);function _Q(e){const a=t.ref({width:0,height:0});function o(){const s=e.value.getBoundingClientRect();a.value.width=s.width,a.value.height=s.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const bQ="_tarjetaDatosGsDesktoptype4_p1q9z_107",wQ="_tarjetaDatosGsDesktop500type4_p1q9z_127",CQ="_tarjetaDatosGs414type4_p1q9z_135",kQ="_tarjetaDatosGs414500type4_p1q9z_159",SQ="_tarjetaDatosGs414380type4_p1q9z_183",EQ="_tarjetaDatosGs320type4_p1q9z_191",NQ="_tarjetaDatosGs320380type4_p1q9z_215",$Q="_dataBox8type4_p1q9z_239",BQ="_dataBox8380type4_p1q9z_273",xQ="_dataBoxtype4_p1q9z_309",VQ="_dataBox520type4_p1q9z_349",IQ="_dataBox480type4_p1q9z_391",AQ="_dataBox3type4_p1q9z_431",OQ="_dataBox3520type4_p1q9z_471",TQ="_dataBox4type4_p1q9z_481",zQ="_dataBox4500type4_p1q9z_523",FQ="_dataBox6type4_p1q9z_569",RQ="_dataBox6500type4_p1q9z_613",PQ="_dataContainertype4_p1q9z_665",DQ="_dataContainer520type4_p1q9z_693",LQ="_dataContainer1type4_p1q9z_725",jQ="_dataContainer1500type4_p1q9z_753",vQ="_dataBox7type4_p1q9z_783",MQ="_dataBox7380type4_p1q9z_817",HQ="_div15type4_p1q9z_857",UQ="_div15380type4_p1q9z_875",GQ="_btnShareIcontype4_p1q9z_893",WQ="_btnSharetype4_p1q9z_905",qQ="_bakgBaseIcontype4_p1q9z_935",JQ="_roleCharacterIcontype4_p1q9z_959",XQ="_verVideostype4_p1q9z_975",ZQ="_btnVideostype4_p1q9z_989",YQ="_playerNametype4_p1q9z_1037",KQ="_elJugadortype4_p1q9z_1055",QQ="_aSeguirtype4_p1q9z_1063",eee="_elJugadorAContainertype4_p1q9z_1073",tee="_titletype4_p1q9z_1093",aee="_baseCardtype4_p1q9z_1121",oee="_imagePlayerIcontype4_p1q9z_1151",see="_arrowGraphIcontype4_p1q9z_1177",nee="_divtype4_p1q9z_1189",iee="_totaltype4_p1q9z_1203",ree="_div1type4_p1q9z_1219",lee="_btnShareIcon1type4_p1q9z_1241",cee="_btnShare1type4_p1q9z_1253",dee="_bakgBaseIcon1type4_p1q9z_1281",mee="_bakgBaseIcon2type4_p1q9z_1305",pee="_roleCharacterIcon1type4_p1q9z_1329",hee="_btnVideos1type4_p1q9z_1345",gee="_playerName1type4_p1q9z_1385",yee="_elJugadorAContainer1type4_p1q9z_1395",uee="_title1type4_p1q9z_1415",fee="_baseCard1type4_p1q9z_1441",_ee="_imagePlayerIcon1type4_p1q9z_1469",bee="_total4type4_p1q9z_1491",wee="_div9type4_p1q9z_1507",Cee="_roleCharacterIcon2type4_p1q9z_1523",kee="_btnVideos2type4_p1q9z_1539",See="_elJugadorAContainer2type4_p1q9z_1575",Eee="_title2type4_p1q9z_1595",Nee="_imagePlayerIcon2type4_p1q9z_1623",$ee="_dataContainer2type4_p1q9z_1645",Bee="_tarjetaDatosGstype4_p1q9z_1675",xee={tarjetaDatosGsDesktoptype4:bQ,tarjetaDatosGsDesktop500type4:wQ,tarjetaDatosGs414type4:CQ,tarjetaDatosGs414500type4:kQ,tarjetaDatosGs414380type4:SQ,tarjetaDatosGs320type4:EQ,tarjetaDatosGs320380type4:NQ,dataBox8type4:$Q,dataBox8380type4:BQ,dataBoxtype4:xQ,dataBox520type4:VQ,dataBox480type4:IQ,dataBox3type4:AQ,dataBox3520type4:OQ,dataBox4type4:TQ,dataBox4500type4:zQ,dataBox6type4:FQ,dataBox6500type4:RQ,dataContainertype4:PQ,dataContainer520type4:DQ,dataContainer1type4:LQ,dataContainer1500type4:jQ,dataBox7type4:vQ,dataBox7380type4:MQ,div15type4:HQ,div15380type4:UQ,btnShareIcontype4:GQ,btnSharetype4:WQ,bakgBaseIcontype4:qQ,roleCharacterIcontype4:JQ,verVideostype4:XQ,btnVideostype4:ZQ,playerNametype4:YQ,elJugadortype4:KQ,aSeguirtype4:QQ,elJugadorAContainertype4:eee,titletype4:tee,baseCardtype4:aee,imagePlayerIcontype4:oee,arrowGraphIcontype4:see,divtype4:nee,totaltype4:iee,div1type4:ree,btnShareIcon1type4:lee,btnShare1type4:cee,bakgBaseIcon1type4:dee,bakgBaseIcon2type4:mee,roleCharacterIcon1type4:pee,btnVideos1type4:hee,playerName1type4:gee,elJugadorAContainer1type4:yee,title1type4:uee,baseCard1type4:fee,imagePlayerIcon1type4:_ee,total4type4:bee,div9type4:wee,roleCharacterIcon2type4:Cee,btnVideos2type4:kee,elJugadorAContainer2type4:See,title2type4:Eee,imagePlayerIcon2type4:Nee,dataContainer2type4:$ee,tarjetaDatosGstype4:Bee},I2=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},yp={components:{},props:{data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},colorcard:{type:String,default:"#122736"},showShareButton:{type:Boolean,default:!1},customizeColors:{type:Boolean,default:!0}},data(){return{}},computed:{tarjetaDatosGsDesktopClass(){return this.elementSize.width<=500?this.$style.tarjetaDatosGsDesktop500type4:this.$style.tarjetaDatosGsDesktoptype4},tarjetaDatosGs414Class(){const e=this.elementSize.width;return e<=380?this.$style.tarjetaDatosGs414380type4:e<=500?this.$style.tarjetaDatosGs414500type4:this.$style.tarjetaDatosGs414type4},tarjetaDatosGs320Class(){return this.elementSize.width<=380?this.$style.tarjetaDatosGs320380type4:this.$style.tarjetaDatosGs320type4},dataBox8Class(){return this.elementSize.width<=380?this.$style.dataBox8380type4:this.$style.dataBox8type4},dataBoxClass(){const e=this.elementSize.width;return e<=480?this.$style.dataBox480type4:e<=520?this.$style.dataBox520type4:this.$style.dataBoxtype4},dataBox3Class(){return this.elementSize.width<=520?this.$style.dataBox3520type4:this.$style.dataBox3type4},dataBox4Class(){return this.elementSize.width<=500?this.$style.dataBox4500type4:this.$style.dataBox4type4},dataBox6Class(){return this.elementSize.width<=500?this.$style.dataBox6500type4:this.$style.dataBox6type4},dataBox7Class(){return this.elementSize.width<=380?this.$style.dataBox7380type4:this.$style.dataBox7type4},dataContainerClass(){return this.elementSize.width<=520?this.$style.dataContainer520type4:this.$style.dataContainertype4},dataContainer1Class(){return this.elementSize.width<=500?this.$style.dataContainer1500type4:this.$style.dataContainer1type4},div15Class(){return this.elementSize.width<=380?this.$style.div15380type4:this.$style.div15type4}},setup(){const e=t.ref("myDivRefCardtype4"),{elementSize:a}=_Q(e);return{myDivRefCardtype4:e,elementSize:a}},methods:{clickPlayer(e){this.clickCard&&this.$emit("onClickCard",e)},clickVideos(e){this.clickCard||this.$emit("onClickVideos",e)},clickCategory(e){this.clickCard||this.$emit("onClickCategory",e)}}},A2=()=>{t.useCssVars(e=>({"01071910":e.data.background_color_cards!=null&&e.customizeColors?e.data.background_color_cards:"#1b3649","59f43f5a":e.data.background_color_buttons!=null&&e.customizeColors?e.data.background_color_buttons:"#293744","6ab83eac":e.customizeColors?"":"#cbee6b","79e09a27":e.colorcard,"5882be5b":e.data.font_color!=null&&e.customizeColors?e.data.font_color:"#fff"}))},O2=yp.setup;yp.setup=O2?(e,a)=>(A2(),O2(e,a)):A2;const Vee=t.createElementVNode("path",{d:"M14.886 14.0466C14.1404 14.0466 13.4733 14.3409 12.9632 14.8019L5.96863 10.7308C6.01768 10.5052 6.05692 10.2795 6.05692 10.0441C6.05692 9.80867 6.01768 9.58304 5.96863 9.35741L12.8847 5.32551C13.4145 5.81601 14.111 6.12012 14.886 6.12012C15.6665 6.12012 16.4151 5.81005 16.967 5.25814C17.5189 4.70622 17.829 3.95765 17.829 3.17712C17.829 2.39659 17.5189 1.64803 16.967 1.09611C16.4151 0.544195 15.6665 0.234131 14.886 0.234131C14.1054 0.234131 13.3569 0.544195 12.8049 1.09611C12.253 1.64803 11.9429 2.39659 11.9429 3.17712C11.9429 3.41256 11.9822 3.63819 12.0312 3.86382L5.11516 7.89572C4.58542 7.40523 3.8889 7.10112 3.11391 7.10112C2.33337 7.10112 1.58481 7.41118 1.03289 7.9631C0.480965 8.51502 0.170898 9.26358 0.170898 10.0441C0.170898 10.8246 0.480965 11.5732 1.03289 12.1251C1.58481 12.677 2.33337 12.9871 3.11391 12.9871C3.8889 12.9871 4.58542 12.683 5.11516 12.1925L12.0999 16.2636C12.0509 16.4696 12.0214 16.6855 12.0214 16.9111C12.0214 18.4905 13.3065 19.7658 14.886 19.7658C16.4654 19.7658 17.7505 18.4905 17.7505 16.9111C17.7505 16.1514 17.4487 15.4228 16.9115 14.8856C16.3743 14.3484 15.6457 14.0466 14.886 14.0466Z",fill:"#F4F4F4","fill-opacity":"0.5"},null,-1),Iee=[Vee],Aee=["src"],Oee={"clip-path":"url(#clip0_59_831)"},Tee=["fill"],zee=t.createElementVNode("defs",null,[t.createElementVNode("clipPath",{id:"clip0_59_831"},[t.createElementVNode("rect",{width:"12",height:"12",fill:"white",transform:"translate(0.375 0.637695)"})])],-1),Fee=["src"],Ree=["fill"],Pee=["fill"],Dee=["fill"],Lee=t.createElementVNode("path",{d:"M10.2126 9.10136C9.73332 9.10136 9.30448 9.29055 8.97655 9.58695L4.48004 6.96979C4.51158 6.82474 4.5368 6.67969 4.5368 6.52834C4.5368 6.37699 4.51158 6.23194 4.48004 6.08689L8.92609 3.49495C9.26664 3.81027 9.7144 4.00577 10.2126 4.00577C10.7144 4.00577 11.1956 3.80645 11.5504 3.45164C11.9052 3.09684 12.1045 2.61562 12.1045 2.11385C12.1045 1.61208 11.9052 1.13086 11.5504 0.776056C11.1956 0.421251 10.7144 0.221924 10.2126 0.221924C9.71084 0.221924 9.22962 0.421251 8.87481 0.776056C8.52 1.13086 8.32067 1.61208 8.32067 2.11385C8.32067 2.2652 8.3459 2.41025 8.37743 2.5553L3.93138 5.14723C3.59083 4.83191 3.14308 4.63641 2.64487 4.63641C2.14309 4.63641 1.66187 4.83574 1.30706 5.19055C0.952258 5.54535 0.75293 6.02657 0.75293 6.52834C0.75293 7.03011 0.952258 7.51133 1.30706 7.86613C1.66187 8.22094 2.14309 8.42026 2.64487 8.42026C3.14308 8.42026 3.59083 8.22476 3.93138 7.90944L8.42158 10.5266C8.39004 10.659 8.37113 10.7978 8.37113 10.9428C8.37113 11.9582 9.19727 12.778 10.2126 12.778C11.2279 12.778 12.0541 11.9582 12.0541 10.9428C12.0541 10.4544 11.8601 9.98605 11.5147 9.64071C11.1694 9.29537 10.701 9.10136 10.2126 9.10136Z",fill:"#F4F4F4","fill-opacity":"0.5"},null,-1),jee=[Lee],vee=["src"],Mee=["fill"],Hee=["src"],Uee=["fill"],Gee=["fill"],Wee=["fill"],qee=t.createElementVNode("path",{d:"M10.2126 9.10111C9.73332 9.10111 9.30448 9.2903 8.97655 9.58671L4.48004 6.96954C4.51158 6.8245 4.5368 6.67945 4.5368 6.52809C4.5368 6.37674 4.51158 6.23169 4.48004 6.08665L8.92609 3.49471C9.26664 3.81003 9.7144 4.00553 10.2126 4.00553C10.7144 4.00553 11.1956 3.8062 11.5504 3.4514C11.9052 3.09659 12.1045 2.61537 12.1045 2.1136C12.1045 1.61183 11.9052 1.13062 11.5504 0.775812C11.1956 0.421007 10.7144 0.22168 10.2126 0.22168C9.71084 0.22168 9.22962 0.421007 8.87481 0.775812C8.52 1.13062 8.32067 1.61183 8.32067 2.1136C8.32067 2.26496 8.3459 2.41001 8.37743 2.55505L3.93138 5.14699C3.59083 4.83167 3.14308 4.63617 2.64487 4.63617C2.14309 4.63617 1.66187 4.8355 1.30706 5.1903C0.952258 5.54511 0.75293 6.02633 0.75293 6.52809C0.75293 7.02986 0.952258 7.51108 1.30706 7.86589C1.66187 8.22069 2.14309 8.42002 2.64487 8.42002C3.14308 8.42002 3.59083 8.22452 3.93138 7.9092L8.42158 10.5264C8.39004 10.6588 8.37113 10.7975 8.37113 10.9426C8.37113 11.9579 9.19727 12.7778 10.2126 12.7778C11.2279 12.7778 12.0541 11.9579 12.0541 10.9426C12.0541 10.4542 11.8601 9.98581 11.5147 9.64047C11.1694 9.29512 10.701 9.10111 10.2126 9.10111Z",fill:"#F4F4F4","fill-opacity":"0.5"},null,-1),Jee=[qee],Xee=["src"],Zee=["fill"],Yee=["src"],Kee=["fill"],Qee=["fill"],ete=["fill"];function tte(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.tarjetaDatosGstype4),ref:"myDivRefCardtype4",onClick:a[10]||(a[10]=r=>i.clickPlayer({season_id:o.data.id_season,player_id:o.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(i.tarjetaDatosGsDesktopClass),id:"card-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.baseCardtype4)},[o.showShareButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.btnSharetype4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.btnShareIcontype4),width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Iee,2))],2)):t.createCommentVNode("",!0),o.data.background!=""?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.bakgBaseIcontype4),alt:"",src:o.data.background},null,10,Aee)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideostype4),onClick:a[0]||(a[0]=r=>i.clickVideos({season_id:o.data.id_season,player_id:o.data.player_id,game_id:o.data.game_id,category:0,type:2}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcontype4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("g",Oee,[t.createElementVNode("path",{d:"M2.67705 12.0654C2.58553 12.0133 2.50903 11.9355 2.4558 11.8404C2.40257 11.7452 2.37464 11.6363 2.375 11.5255V1.74838C2.37513 1.63789 2.40325 1.5295 2.45637 1.43474C2.50949 1.33998 2.58563 1.26238 2.6767 1.21019C2.76776 1.15801 2.87035 1.13319 2.97355 1.13837C3.07675 1.14355 3.17671 1.17854 3.2628 1.23962L10.1203 6.12875C10.1987 6.18445 10.2629 6.25998 10.3073 6.34864C10.3518 6.4373 10.375 6.53633 10.375 6.63692C10.375 6.73751 10.3518 6.83654 10.3073 6.9252C10.2629 7.01386 10.1987 7.0894 10.1203 7.1451L3.2628 12.0354C3.17684 12.0966 3.07696 12.1317 2.9738 12.137C2.87065 12.1423 2.76809 12.1175 2.67705 12.0654V12.0654ZM2.94673 11.5266L9.80426 6.6375L2.94673 11.5266Z",fill:o.data.color_icon_play!=null&&o.customizeColors?o.data.color_icon_play:"#CBEE6B"},null,8,Tee)]),zee],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideostype4)},"Ver videos",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.titletype4),id:"title-info"},[t.createElementVNode("h4",{class:t.normalizeClass(e.$style.playerNametype4),id:"player-name"},t.toDisplayString(o.data.player_name),3),t.createElementVNode("h2",{class:t.normalizeClass(e.$style.elJugadorAContainertype4),id:"title-card"},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.elJugadortype4)},t.toDisplayString(o.data.main_title),3),t.createElementVNode("p",{class:t.normalizeClass(e.$style.aSeguirtype4)},t.toDisplayString(o.data.second_title),3)],2)],2)],2),o.data.player_photo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imagePlayerIcontype4),alt:"",src:o.data.player_photo},null,10,Fee)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.dataContainerClass),id:"data-container"},[o.data.category_stats_1!==""?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle("color:"+o.data.font_color_card+"!important"),class:t.normalizeClass(i.dataBoxClass),onClick:a[1]||(a[1]=r=>i.clickCategory({category:o.data.category_id_1,season_id:o.data.id_season,player_id:o.data.player_id,game_id:o.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.totaltype4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.font_color_card},null,8,Ree)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_1),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1type4)},t.toDisplayString(o.data.category_name_1),3)],6)):t.createCommentVNode("",!0),o.data.category_stats_2!==""?(t.openBlock(),t.createElementBlock("div",{key:1,style:t.normalizeStyle({color:o.data.font_color_card+"!important"}),class:t.normalizeClass(i.dataBoxClass),onClick:a[2]||(a[2]=r=>i.clickCategory({category:o.data.category_id_2,season_id:o.data.id_season,player_id:o.data.player_id,game_id:o.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.totaltype4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.font_color_card},null,8,Pee)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_2),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1type4)},t.toDisplayString(o.data.category_name_2),3)],6)):t.createCommentVNode("",!0),o.data.showlast_category&&o.data.category_stats_3!==""?(t.openBlock(),t.createElementBlock("div",{key:2,style:t.normalizeStyle({color:o.data.font_color_card+"!important"}),class:t.normalizeClass(i.dataBoxClass),onClick:a[3]||(a[3]=r=>i.clickCategory({category:o.data.category_id_3,season_id:o.data.id_season,player_id:o.data.player_id,game_id:o.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.totaltype4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.font_color_card},null,8,Dee)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_3),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1type4)},t.toDisplayString(o.data.category_name_3),3)],6)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.tarjetaDatosGs414Class),id:"card-mobile-414"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.baseCard1type4)},[o.showShareButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.btnShare1type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.btnShareIcon1type4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jee,2))],2)):t.createCommentVNode("",!0),o.data.background!=""?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.bakgBaseIcon1type4),alt:"",src:o.data.background},null,10,vee)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideos1type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcon1type4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.color_icon_play!=null&&o.customizeColors?o.data.color_icon_play:"#CBEE6B"},null,8,Mee)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideostype4)},"Ver videos",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.title1type4),id:"title-info"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerName1type4)},t.toDisplayString(o.data.player_name),3),t.createElementVNode("h2",{class:t.normalizeClass(e.$style.elJugadorAContainer1type4),id:"title-card"},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.elJugadortype4)},t.toDisplayString(o.data.main_title),3),t.createElementVNode("p",{class:t.normalizeClass(e.$style.aSeguirtype4)},t.toDisplayString(o.data.second_title),3)],2)],2)],2),o.data.player_photo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imagePlayerIcon1type4),alt:"",src:o.data.player_photo},null,10,Hee)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.dataContainer1Class),id:"data-container"},[o.data.category_stats_1!==""?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle("color:"+o.data.font_color_card+"!important"),class:t.normalizeClass(i.dataBox4Class),onClick:a[4]||(a[4]=r=>i.clickCategory({category:o.data.category_id_1,season_id:o.data.id_season,player_id:o.data.player_id,game_id:o.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.font_color_card},null,8,Uee)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_1),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div9type4)},t.toDisplayString(o.data.category_name_1),3)],6)):t.createCommentVNode("",!0),o.data.category_stats_2!==""?(t.openBlock(),t.createElementBlock("div",{key:1,style:t.normalizeStyle("color:"+o.data.font_color_card+"!important"),class:t.normalizeClass(i.dataBox4Class),onClick:a[5]||(a[5]=r=>i.clickCategory({category:o.data.category_id_2,season_id:o.data.id_season,player_id:o.data.player_id,game_id:o.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.font_color_card},null,8,Gee)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_2),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div9type4)},t.toDisplayString(o.data.category_name_2),3)],6)):t.createCommentVNode("",!0),o.data.showlast_category&&o.data.category_stats_3!==""?(t.openBlock(),t.createElementBlock("div",{key:2,style:t.normalizeStyle("color:"+o.data.font_color_card+"!important"),class:t.normalizeClass(i.dataBox6Class),onClick:a[6]||(a[6]=r=>i.clickCategory({category:o.data.category_id_3,season_id:o.data.id_season,player_id:o.data.player_id,game_id:o.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.font_color_card},null,8,Wee)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_3),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div9type4)},t.toDisplayString(o.data.category_name_3),3)],6)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.tarjetaDatosGs320Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.baseCard1type4)},[o.showShareButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.btnShare1type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.btnShareIcon1type4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Jee,2))],2)):t.createCommentVNode("",!0),o.data.background!=""?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.bakgBaseIcon2type4),alt:"",src:o.data.background},null,10,Xee)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideos2type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcon2type4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.color_icon_play!=null&&o.customizeColors?o.data.color_icon_play:"#CBEE6B"},null,8,Zee)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideostype4)},"Ver videos",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.title2type4),id:"title-info"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerName1type4)},t.toDisplayString(o.data.player_name),3),t.createElementVNode("h2",{class:t.normalizeClass(e.$style.elJugadorAContainer2type4),id:"title-card"},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.elJugadortype4)},t.toDisplayString(o.data.main_title),3),t.createElementVNode("p",{class:t.normalizeClass(e.$style.aSeguirtype4)},t.toDisplayString(o.data.second_title),3)],2)],2)],2),o.data.player_photo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imagePlayerIcon2type4),alt:"",src:o.data.player_photo},null,10,Yee)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.dataContainer2type4),id:"data-container"},[o.data.category_stats_1!==""?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle("color:"+o.data.font_color_card+"!important"),class:t.normalizeClass(i.dataBox7Class),onClick:a[7]||(a[7]=r=>i.clickCategory({category:o.data.category_id_1,season_id:o.data.id_season,player_id:o.data.player_id,game_id:o.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188777 8.8403C0.131575 8.80242 0.0837648 8.74584 0.0504989 8.67665C0.0172329 8.60746 -0.000226668 8.52828 2.22189e-06 8.44765V1.33719C8.08668e-05 1.25684 0.0176547 1.17801 0.0508556 1.10909C0.0840564 1.04018 0.131643 0.983741 0.188558 0.94579C0.245472 0.907838 0.309587 0.889787 0.374086 0.893556C0.438586 0.897325 0.501059 0.922773 0.554865 0.967195L4.84073 4.52284C4.88968 4.56335 4.92982 4.61829 4.95759 4.68277C4.98536 4.74724 4.99989 4.81926 4.99989 4.89242C4.99989 4.96557 4.98536 5.03759 4.95759 5.10207C4.92982 5.16655 4.88968 5.22149 4.84073 5.26199L0.554865 8.81848C0.501141 8.863 0.438716 8.88854 0.374245 8.89238C0.309774 8.89623 0.245673 8.87822 0.188777 8.8403V8.8403ZM0.357326 8.44849L4.64319 4.89284L0.357326 8.44849Z",fill:o.data.font_color_card},null,8,Kee)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_1),3)],2),t.createElementVNode("div",{class:t.normalizeClass(i.div15Class)},t.toDisplayString(o.data.category_name_1),3)],6)):t.createCommentVNode("",!0),o.data.category_stats_2!==""?(t.openBlock(),t.createElementBlock("div",{key:1,style:t.normalizeStyle("color:"+o.data.font_color_card+"!important"),class:t.normalizeClass(i.dataBox8Class),onClick:a[8]||(a[8]=r=>i.clickCategory({category:o.data.category_id_2,season_id:o.data.id_season,player_id:o.data.player_id,game_id:o.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188777 8.8403C0.131575 8.80242 0.0837648 8.74584 0.0504989 8.67665C0.0172329 8.60746 -0.000226668 8.52828 2.22189e-06 8.44765V1.33719C8.08668e-05 1.25684 0.0176547 1.17801 0.0508556 1.10909C0.0840564 1.04018 0.131643 0.983741 0.188558 0.94579C0.245472 0.907838 0.309587 0.889787 0.374086 0.893556C0.438586 0.897325 0.501059 0.922773 0.554865 0.967195L4.84073 4.52284C4.88968 4.56335 4.92982 4.61829 4.95759 4.68277C4.98536 4.74724 4.99989 4.81926 4.99989 4.89242C4.99989 4.96557 4.98536 5.03759 4.95759 5.10207C4.92982 5.16655 4.88968 5.22149 4.84073 5.26199L0.554865 8.81848C0.501141 8.863 0.438716 8.88854 0.374245 8.89238C0.309774 8.89623 0.245673 8.87822 0.188777 8.8403V8.8403ZM0.357326 8.44849L4.64319 4.89284L0.357326 8.44849Z",fill:o.data.font_color_card},null,8,Qee)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_2),3)],2),t.createElementVNode("div",{class:t.normalizeClass(i.div15Class)},t.toDisplayString(o.data.category_name_2),3)],6)):t.createCommentVNode("",!0),o.data.showlast_category&&o.data.category_stats_3!==""?(t.openBlock(),t.createElementBlock("div",{key:2,style:t.normalizeStyle("color:"+o.data.font_color_card+"!important"),class:t.normalizeClass(i.dataBox8Class),onClick:a[9]||(a[9]=r=>i.clickCategory({category:o.data.category_id_3,season_id:o.data.id_season,player_id:o.data.player_id,game_id:o.data.game_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"6",height:"9",viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.474421 8.8403C0.41722 8.80242 0.369409 8.74584 0.336143 8.67665C0.302877 8.60746 0.285418 8.52828 0.285647 8.44765V1.33719C0.285725 1.25684 0.303299 1.17801 0.3365 1.10909C0.369701 1.04018 0.417288 0.983741 0.474202 0.94579C0.531117 0.907838 0.595232 0.889787 0.659731 0.893556C0.72423 0.897325 0.786704 0.922773 0.84051 0.967195L5.12637 4.52284C5.17532 4.56335 5.21547 4.61829 5.24324 4.68277C5.271 4.74724 5.28554 4.81926 5.28554 4.89242C5.28554 4.96557 5.271 5.03759 5.24324 5.10207C5.21547 5.16655 5.17532 5.22149 5.12637 5.26199L0.84051 8.81848C0.786786 8.863 0.724361 8.88854 0.659889 8.89238C0.595418 8.89623 0.531318 8.87822 0.474421 8.8403V8.8403ZM0.64297 8.44849L4.92883 4.89284L0.64297 8.44849Z",fill:o.data.font_color_card},null,8,ete)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_3),3)],2),t.createElementVNode("div",{class:t.normalizeClass(i.div15Class)},t.toDisplayString(o.data.category_name_3),3)],6)):t.createCommentVNode("",!0)],2)],2)],2)}const ate={$style:xee},ote=I2(yp,[["render",tte],["__cssModules",ate]]),ste={components:{GSCCarousel:fQ,GSCCardData:ote},props:{type:{type:Number,default:0},data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},prematch:{type:Boolean,default:!1},teamSelected:{type:Number,default:0},colorCardByTeam:{type:Boolean,default:!1},showShareButton:{type:Boolean,default:!1},customizeColors:{type:Boolean,default:!0}},data(){return{token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",pages:[],homeTeam:[],awayTeam:[],playerInfo:{}}},computed:{},watch:{data:{immediate:!0,handler(e){this.getStats(e)}}},methods:{onclickPlayVideos(e){var a=[];e.type==2?e.position_id==1?e.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.category:e.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.category:e.type==3?e.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.category:e.category!=0?a=e.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const o=[1,2,3];a==="minutes_played"&&(a=[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]),a==="games_played"&&(a=[607,608,12,55,54,35,14,52,15,53,466,477]);let s={seasonId:e.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:e.game_id?[e.game_id]:null,playerIds:e.position_id!=1?e.player_id?[e.player_id]:[]:[],goalkeeperIds:e.position_id==1?e.player_id?[e.player_id]:[]:[],teamId:e.team_id?[e.team_id]:0,matchResult:e.matchResult?[e.matchResult]:o,playData:{},advancedFilter:{playListTitle:"",mainCategoryId:e.category||0}};this.$emit("openmedia",s)},async getStats(){const e=await MK.create({headers:{Authorization:`${this.token}`}}).get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+this.data.season+"/games/"+this.data.game);for(let a=0;a<e.data.games[0].players.length;a++)this.type==0?this.pages.push([{id_season:e.data.games[0].players[a].season_id,color:e.data.games[0].players[a].info_thumbnails.colors.background_color,player_id:e.data.games[0].players[a].player_id,player_name:e.data.games[0].players[a].player_name,game_id:e.data.games[0].game_status===4?null:e.data.games[0].game_id,background:e.data.games[0].players[a].info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+e.data.games[0].players[a].info_thumbnails.images.background_player_in_action[0]:"https://golstatsimages.blob.core.windows.net/images-library/"+e.data.games[0].players[a].info_thumbnails.images.background_default_players[0],player_photo:e.data.games[0].players[a].info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+e.data.games[0].players[a].info_thumbnails.images.player_in_action[0]:`https://az755631.vo.msecnd.net/players-profile/${e.data.games[0].players[a].player_id}.png`,category_stats_1:this.prematch?e.data.games[0].players[a].games_played:e.data.games[0].players[a].minutes_played,category_stats_2:this.prematch?e.data.games[0].players[a].minutes_played:e.data.games[0].players[a].categories[0].total,category_stats_3:this.prematch?e.data.games[0].players[a].categories[0].total:e.data.games[0].players[a].categories[1]?e.data.games[0].players[a].categories[1].total:"",category_id_1:this.prematch?"games_played":"minutes_played",category_id_2:this.prematch?"minutes_played":e.data.games[0].players[a].categories[0].categories,category_id_3:this.prematch?e.data.games[0].players[a].categories[0].categories:e.data.games[0].players[a].categories[1]?e.data.games[0].players[a].categories[1].categories:"",category_name_1:this.prematch?"Partidos Jugados":"Minutos Jugados",category_name_2:this.prematch?"Minutos Jugados":e.data.games[0].players[a].categories[0].category_name,category_name_3:this.prematch?e.data.games[0].players[a].categories[0].category_name:e.data.games[0].players[a].categories[1]?e.data.games[0].players[a].categories[1].category_name:"",showlast_category:!!e.data.games[0].players[a].categories[0],main_title:(this.prematch,"Jugador"),second_title:this.prematch?"A seguir":"Destacado",background_color_buttons:e.data.games[0].players[a].info_thumbnails.colors.background_color_buttons,background_color_cards:e.data.games[0].players[a].info_thumbnails.colors.background_color_cards,color_icon_play:e.data.games[0].players[a].info_thumbnails.colors.color_icon_play,color_next_back:e.data.games[0].players[a].info_thumbnails.colors.color_next_back,font_color:e.data.games[0].players[a].info_thumbnails.colors.font_color,font_color_card:e.data.games[0].players[a].info_thumbnails.colors.font_color_cards?e.data.games[0].players[a].info_thumbnails.colors.font_color_cards:"#FFFFFF"}]):this.teamSelected==e.data.games[0].players[a].team_id&&this.pages.push([{id_season:e.data.games[0].players[a].season_id,color:e.data.games[0].players[a].info_thumbnails.colors.background_color,player_id:e.data.games[0].players[a].player_id,player_name:e.data.games[0].players[a].player_name,game_id:e.data.games[0].game_status===4?null:e.data.games[0].game_id,background:e.data.games[0].players[a].info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+e.data.games[0].players[a].info_thumbnails.images.background_player_in_action[0]:"https://golstatsimages.blob.core.windows.net/images-library/"+e.data.games[0].players[a].info_thumbnails.images.background_default_players[0],player_photo:e.data.games[0].players[a].info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+e.data.games[0].players[a].info_thumbnails.images.player_in_action[0]:`https://az755631.vo.msecnd.net/players-profile/${e.data.games[0].players[a].player_id}.png`,category_stats_1:this.prematch?e.data.games[0].players[a].games_played:e.data.games[0].players[a].minutes_played,category_stats_2:this.prematch?e.data.games[0].players[a].minutes_played:e.data.games[0].players[a].categories[0].total,category_stats_3:this.prematch?e.data.games[0].players[a].categories[0].total:e.data.games[0].players[a].categories[1]?e.data.games[0].players[a].categories[1].total:"",category_id_1:this.prematch?"games_played":"minutes_played",category_id_2:this.prematch?"minutes_played":e.data.games[0].players[a].categories[0].categories,category_id_3:this.prematch?e.data.games[0].players[a].categories[0].categories:e.data.games[0].players[a].categories[1]?e.data.games[0].players[a].categories[1].categories:"",category_name_1:this.prematch?"Partidos Jugados":"Minutos Jugados",category_name_2:this.prematch?"Minutos Jugados":e.data.games[0].players[a].categories[0].category_name,category_name_3:this.prematch?e.data.games[0].players[a].categories[0].category_name:e.data.games[0].players[a].categories[1]?e.data.games[0].players[a].categories[1].category_name:"",showlast_category:!!e.data.games[0].players[a].categories[1],main_title:this.prematch?"El jugador":"Jugador",second_title:this.prematch?"A seguir":"Destacado",background_color_buttons:e.data.games[0].players[a].info_thumbnails.colors.background_color_buttons,background_color_cards:e.data.games[0].players[a].info_thumbnails.colors.background_color_cards,color_icon_play:e.data.games[0].players[a].info_thumbnails.colors.color_icon_play,color_next_back:e.data.games[0].players[a].info_thumbnails.colors.color_next_back,font_color:e.data.games[0].players[a].info_thumbnails.colors.font_color,font_color_card:e.data.games[0].players[a].info_thumbnails.colors.font_color_cards?e.data.games[0].players[a].info_thumbnails.colors.font_color_cards:"#FFFFFF"}])},onClickVideos(e){this.$emit("onClickVideos",e)},onClickCard(e){this.$emit("onClickCard",e)},onClickCategory(e){this.$emit("onClickCategory",e)},clickMore(){this.$emit("onViewMore",!0)}}},nte=e=>(t.pushScopeId("data-v-9fbf19b6"),e=e(),t.popScopeId(),e),ite={class:"gsdata"},rte={class:"gsc-gsdata-carrousel"},lte={key:0,class:"title-header"},cte=nte(()=>t.createElementVNode("div",{class:"title-header-title"},"Datos GolStats",-1)),dte={class:"row-table-carrousel"};function mte(e,a,o,s,n,i){const r=t.resolveComponent("GSCCardData"),c=t.resolveComponent("GSCCarousel");return t.openBlock(),t.createElementBlock("div",ite,[t.createElementVNode("div",rte,[o.teamSelected==0?(t.openBlock(),t.createElementBlock("div",lte,[cte,t.createElementVNode("div",{class:"title-header-btn",onClick:a[0]||(a[0]=(...g)=>i.clickMore&&i.clickMore(...g))},"Ver más")])):t.createCommentVNode("",!0),t.createVNode(c,{items:n.pages,wrapAround:!0,itemsToShow:1.1,areSlidesArrowsVisible:!0,areNavigationArrowsVisible:!1,isMainSlidePriority:!0,areSlidesArrowsRounded:!1,isPaginationVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:g})=>[t.createElementVNode("div",dte,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g,(d,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:l},[o.colorCardByTeam?(t.openBlock(),t.createBlock(r,{key:1,type:4,colorcard:d.color,"click-card":o.clickCard,"show-share-button":o.showShareButton,"customize-colors":o.customizeColors,data:d,onOnClickVideos:i.onclickPlayVideos,onOnClickCategory:i.onclickPlayVideos},null,8,["colorcard","click-card","show-share-button","customize-colors","data","onOnClickVideos","onOnClickCategory"])):(t.openBlock(),t.createBlock(r,{key:0,type:4,"click-card":o.clickCard,"show-share-button":o.showShareButton,"customize-colors":o.customizeColors,data:d,onOnClickVideos:i.onclickPlayVideos,onOnClickCategory:i.onclickPlayVideos},null,8,["click-card","show-share-button","customize-colors","data","onOnClickVideos","onOnClickCategory"]))],64))),128))])]),_:1},8,["items"])])])}const pte=I2(ste,[["render",mte],["__scopeId","data-v-9fbf19b6"]]),hte=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},up={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))}}},T2=()=>{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}))},z2=up.setup;up.setup=z2?(e,a)=>(T2(),z2(e,a)):T2;const gte=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),yte=["src"],ute={key:1,class:"text"},fte=["src"],_te={class:"stats"},bte=gte(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),wte={class:"numstats"},Cte={class:"leyend"};function kte(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",n.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([i.customStyle,n.status&&o.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,yte)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",ute,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,fte)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.createElementVNode("div",_te,[bte,t.createElementVNode("div",wte,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",Cte,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const Ste=hte(up,[["render",kte],["__scopeId","data-v-fb269a1e"]]);function ln(e){const a=t.ref({width:0,height:0});function o(){const s=e.value.getBoundingClientRect();a.value.width=s.width,a.value.height=s.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const Ete="_cardFrecuentConnectionstype0_8eub9_57",Nte="_cardFrecuentConnectionsDesktype0_8eub9_85",$te="_cardFrecuentConnectionsDesk360type0_8eub9_103",Bte="_imgPlayerParenttype0_8eub9_123",xte="_imgPlayerIcontype0_8eub9_149",Vte="_imgPlayerIcon360type0_8eub9_163",Ite="_playerInfotype0_8eub9_177",Ate="_benjaminEvalenttype0_8eub9_195",Ote="_frameParenttype0_8eub9_207",Tte="_union9Wrappertype0_8eub9_223",zte="_union9Icontype0_8eub9_251",Fte="_benjaminEvalent1type0_8eub9_263",Rte="_benjaminEvalent1360type0_8eub9_277",Pte={cardFrecuentConnectionstype0:Ete,cardFrecuentConnectionsDesktype0:Nte,cardFrecuentConnectionsDesk360type0:$te,imgPlayerParenttype0:Bte,imgPlayerIcontype0:xte,imgPlayerIcon360type0:Vte,playerInfotype0:Ite,benjaminEvalenttype0:Ate,frameParenttype0:Ote,union9Wrappertype0:Tte,union9Icontype0:zte,benjaminEvalent1type0:Fte,benjaminEvalent1360type0:Rte},Uo=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},Dte={components:{GSCButton:Ste},props:{data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1}},computed:{cardFrecuentConnectionsDeskClass(){return this.elementSize.width<=360?this.$style.cardFrecuentConnectionsDesk360type0:this.$style.cardFrecuentConnectionsDesktype0},imgPlayerIconClass(){return this.elementSize.width<=360?this.$style.imgPlayerIcon360type0:this.$style.imgPlayerIcontype0},benjaminEvalent1Class(){return this.elementSize.width<=360?this.$style.benjaminEvalent1360type0:this.$style.benjaminEvalent1type0}},data(){return{}},setup(){const e=t.ref("myDivRefCardtype0"),{elementSize:a}=ln(e);return{myDivRefCardtype0:e,elementSize:a}},methods:{clickPlayer(e){this.clickCard&&this.$emit("onClickPlayer",e)},clickVideos(e){this.clickCard||this.$emit("onClickVideos",e)}}},Lte={ref:"myDivRefCardtype0"},jte=["alt","src"];function vte(e,a,o,s,n,i){const r=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",Lte,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.cardFrecuentConnectionstype0),onClick:a[1]||(a[1]=c=>i.clickPlayer({player_id:o.data.player_id}))},[t.createElementVNode("div",{class:t.normalizeClass(i.cardFrecuentConnectionsDeskClass),id:"card-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgPlayerParenttype0)},[t.createElementVNode("img",{class:t.normalizeClass(i.imgPlayerIconClass),alt:o.data.player_name,src:o.data.player_photo},null,10,jte),t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerInfotype0)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.benjaminEvalenttype0)},t.toDisplayString(o.data.player_name),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.frameParenttype0)},[t.createVNode(r,{icon:"/play-icn.svg","icon-size":"9px","icon-position":"left",width:"18px",height:"18px","border-radius":"18px","border-width":"1","background-color":"transparent","border-color":"#FFFFFF",onClick:a[0]||(a[0]=c=>i.clickVideos({player_id:o.data.player_id}))}),t.createElementVNode("div",{class:t.normalizeClass(i.benjaminEvalent1Class)},t.toDisplayString(o.data.player_stat),3)],2)],2)],2)],2)],2)],512)}const Mte={$style:Pte},Hte=Uo(Dte,[["render",vte],["__cssModules",Mte]]),Ute="_cardVideosJugadorestype1_hyx6z_59",Gte="_cardDesktoptype1_hyx6z_87",Wte="_cardDesktop460type1_hyx6z_113",qte="_backgroundImageParenttype1_hyx6z_137",Jte="_backgroundImageParent460type1_hyx6z_171",Xte="_backgroundImageIcontype1_hyx6z_205",Zte="_loMejorDeContainertype1_hyx6z_225",Yte="_loMejorDeContainer460type1_hyx6z_249",Kte="_loMejorDeContainer420type1_hyx6z_273",Qte="_loMejorDetype1_hyx6z_297",eae="_btnPlaytype1_hyx6z_303",tae="_btnPlay460_hyx6z_357",aae="_btnPlay460type1_hyx6z_363",oae="_roleCharacterIcontype1_hyx6z_409",sae="_reproducirtype1_hyx6z_423",nae="_playerTeamDesktopIcontype1_hyx6z_435",iae="_playerTeamDesktopIcon1200type1_hyx6z_455",rae="_playerTeamDesktopIcon460type1_hyx6z_479",lae={cardVideosJugadorestype1:Ute,cardDesktoptype1:Gte,cardDesktop460type1:Wte,backgroundImageParenttype1:qte,backgroundImageParent460type1:Jte,backgroundImageIcontype1:Xte,loMejorDeContainertype1:Zte,loMejorDeContainer460type1:Yte,loMejorDeContainer420type1:Kte,loMejorDetype1:Qte,btnPlaytype1:eae,btnPlay460:tae,btnPlay460type1:aae,roleCharacterIcontype1:oae,reproducirtype1:sae,playerTeamDesktopIcontype1:nae,playerTeamDesktopIcon1200type1:iae,playerTeamDesktopIcon460type1:rae},fp={components:{},props:{data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#000000"},colorTitle:{type:String,default:"#000000"},borderColor:{type:String,default:"#000000"},backgroundImg:{type:String,default:""},customizeColors:{type:Boolean,default:!0}},data(){return{}},computed:{cardDesktopClass(){return this.elementSize.width<=460?this.$style.cardDesktop460type1:this.$style.cardDesktoptype1},backgroundImageParentClass(){return this.elementSize.width<=460?this.$style.backgroundImageParent460type1:this.$style.backgroundImageParenttype1},btnPlayClass(){return this.elementSize.width<=460?this.$style.btnPlay460type1:this.$style.btnPlaytype1},loMejorDeContainerClass(){const e=this.elementSize.width;return e<=420?this.$style.loMejorDeContainer420type1:e<=460?this.$style.loMejorDeContainer460type1:this.$style.loMejorDeContainertype1},playerTeamDesktopIconClass(){const e=this.elementSize.width;return e<=460?this.$style.playerTeamDesktopIcon460type1:e<=1200?this.$style.playerTeamDesktopIcon1200type1:this.$style.playerTeamDesktopIcontype1}},setup(){const e=t.ref("myDivRefCardtype1"),{elementSize:a}=ln(e);return{myDivRefCardtype1:e,elementSize:a}},methods:{clickPlayer(e){this.clickCard&&this.$emit("onClickCard",e)},clickVideos(e){this.clickCard||this.$emit("onClickVideos",e)}}},F2=()=>{t.useCssVars(e=>({"3c445abf":e.data.font_color!=null&&e.customizeColors?e.data.font_color:"#fff","418009b6":e.backgroundColor,"392b4ed3":e.data.background_color_buttons!=null&&e.customizeColors?e.data.background_color_buttons:"rgba(255, 255, 255, 0.08)","47279a32":e.borderColor}))},R2=fp.setup;fp.setup=R2?(e,a)=>(F2(),R2(e,a)):F2;const cae={ref:"myDivRefCardtype1"},dae=["src"],mae={"clip-path":"url(#clip0_59_831)"},pae=["fill"],hae=t.createElementVNode("defs",null,[t.createElementVNode("clipPath",{id:"clip0_59_831"},[t.createElementVNode("rect",{width:"12",height:"12",fill:"white",transform:"translate(0.375 0.637695)"})])],-1),gae=["src"];function yae(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",cae,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.cardVideosJugadorestype1),onClick:a[1]||(a[1]=r=>i.clickPlayer({player_id:o.data.player_id,team_id:o.data.team_id}))},[t.createElementVNode("div",{class:t.normalizeClass(i.cardDesktopClass),id:"card-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(i.backgroundImageParentClass)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.backgroundImageIcontype1),src:o.backgroundImg},null,10,dae),t.createElementVNode("h2",{class:t.normalizeClass(i.loMejorDeContainerClass),id:"title-card"},[s.elementSize.width>380?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(e.$style.loMejorDetype1)},"Lo mejor de ",2)):t.createCommentVNode("",!0),s.elementSize.width<=380?(t.openBlock(),t.createElementBlock("p",{key:1,class:t.normalizeClass(e.$style.loMejorDetype1)},"Lo mejor",2)):t.createCommentVNode("",!0),s.elementSize.width<=380?(t.openBlock(),t.createElementBlock("p",{key:2,class:t.normalizeClass(e.$style.loMejorDetype1)},"de ",2)):t.createCommentVNode("",!0),t.createElementVNode("p",{class:t.normalizeClass(e.$style.loMejorDetype1)},t.toDisplayString(o.data.team_name),3)],2),t.createElementVNode("div",{class:t.normalizeClass(i.btnPlayClass),onClick:a[0]||(a[0]=r=>i.clickVideos({player_id:o.data.player_id,team_id:o.data.team_id}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcontype4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("g",mae,[t.createElementVNode("path",{d:"M2.67705 12.0654C2.58553 12.0133 2.50903 11.9355 2.4558 11.8404C2.40257 11.7452 2.37464 11.6363 2.375 11.5255V1.74838C2.37513 1.63789 2.40325 1.5295 2.45637 1.43474C2.50949 1.33998 2.58563 1.26238 2.6767 1.21019C2.76776 1.15801 2.87035 1.13319 2.97355 1.13837C3.07675 1.14355 3.17671 1.17854 3.2628 1.23962L10.1203 6.12875C10.1987 6.18445 10.2629 6.25998 10.3073 6.34864C10.3518 6.4373 10.375 6.53633 10.375 6.63692C10.375 6.73751 10.3518 6.83654 10.3073 6.9252C10.2629 7.01386 10.1987 7.0894 10.1203 7.1451L3.2628 12.0354C3.17684 12.0966 3.07696 12.1317 2.9738 12.137C2.87065 12.1423 2.76809 12.1175 2.67705 12.0654V12.0654ZM2.94673 11.5266L9.80426 6.6375L2.94673 11.5266Z",fill:o.data.color_icon_play!=null&&o.customizeColors?o.data.color_icon_play:"#CBEE6B"},null,8,pae)]),hae],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.reproducirtype1)},"Reproducir",2)],2)],2),t.createElementVNode("img",{class:t.normalizeClass(i.playerTeamDesktopIconClass),src:o.data.player_photo},null,10,gae)],2)],2)],512)}const uae={$style:lae},fae=Uo(fp,[["render",yae],["__cssModules",uae]]),_ae="_tarjetaHighlightsPostmatchtype2_2xqhb_7",bae="_tarjetaHighlightsPostmatch780type2_2xqhb_35",wae="_tarjetaHighlightsPostmatch640type2_2xqhb_65",Cae="_tarjetaHighlightsPostmatch520type2_2xqhb_97",kae="_tarjetaHighlightsPostmatch350type2_2xqhb_131",Sae="_tarjetaHighlightsPostmatch420type2_2xqhb_161",Eae="_tarjetaHighlightsPostmatch320type2_2xqhb_197",Nae="_backgroundtype2_2xqhb_233",$ae="_background640type2_2xqhb_253",Bae="_btnPlaytype2_2xqhb_277",xae="_btnPlay1_2xqhb_301",Vae="_btnPlay1type2_2xqhb_309",Iae="_icnPlaytype2_2xqhb_351",Aae="_union6Icontype2_2xqhb_369",Oae={tarjetaHighlightsPostmatchtype2:_ae,tarjetaHighlightsPostmatch780type2:bae,tarjetaHighlightsPostmatch640type2:wae,tarjetaHighlightsPostmatch520type2:Cae,tarjetaHighlightsPostmatch350type2:kae,tarjetaHighlightsPostmatch420type2:Sae,tarjetaHighlightsPostmatch320type2:Eae,backgroundtype2:Nae,background640type2:$ae,btnPlaytype2:Bae,btnPlay1:xae,btnPlay1type2:Vae,icnPlaytype2:Iae,union6Icontype2:Aae},Tae={components:{},props:{data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},backgroundImg:{type:String,default:""}},computed:{tarjetaHighlightsPostmatchClass(){const e=this.elementSize.width;return e<=320?this.$style.tarjetaHighlightsPostmatch320type2:e<=350?this.$style.tarjetaHighlightsPostmatch350type2:e<=420?this.$style.tarjetaHighlightsPostmatch420type2:e<=520?this.$style.tarjetaHighlightsPostmatch520type2:e<=640?this.$style.tarjetaHighlightsPostmatch640type2:e<=780?this.$style.tarjetaHighlightsPostmatch780type2:this.$style.tarjetaHighlightsPostmatchtype2},backgroundClass(){return this.elementSize.width<=640?this.$style.background640type2:this.$style.backgroundtype2}},setup(){const e=t.ref("myDivRefCardtype2"),{elementSize:a}=ln(e);return{myDivRefCardtype2:e,elementSize:a}},data(){return{}},methods:{clickPlayer(e){this.clickCard&&this.$emit("onClickCard",e)},clickVideos(e){this.clickCard||this.$emit("onClickVideos",e)}}},zae={ref:"myDivRefCardtype2"},Fae=t.createStaticVNode('<svg width="20" height="20" viewBox="0 0 13 13" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_59_831)"><path d="M2.67705 12.0654C2.58553 12.0133 2.50903 11.9355 2.4558 11.8404C2.40257 11.7452 2.37464 11.6363 2.375 11.5255V1.74838C2.37513 1.63789 2.40325 1.5295 2.45637 1.43474C2.50949 1.33998 2.58563 1.26238 2.6767 1.21019C2.76776 1.15801 2.87035 1.13319 2.97355 1.13837C3.07675 1.14355 3.17671 1.17854 3.2628 1.23962L10.1203 6.12875C10.1987 6.18445 10.2629 6.25998 10.3073 6.34864C10.3518 6.4373 10.375 6.53633 10.375 6.63692C10.375 6.73751 10.3518 6.83654 10.3073 6.9252C10.2629 7.01386 10.1987 7.0894 10.1203 7.1451L3.2628 12.0354C3.17684 12.0966 3.07696 12.1317 2.9738 12.137C2.87065 12.1423 2.76809 12.1175 2.67705 12.0654V12.0654ZM2.94673 11.5266L9.80426 6.6375L2.94673 11.5266Z" fill="#CBEE6B"></path></g><defs><clipPath id="clip0_59_831"><rect width="12" height="12" fill="white" transform="translate(0.375 0.637695)"></rect></clipPath></defs></svg>',1),Rae=[Fae];function Pae(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",zae,[t.createElementVNode("div",{class:t.normalizeClass(i.tarjetaHighlightsPostmatchClass),onClick:a[1]||(a[1]=r=>i.clickPlayer({game_id:o.data.game_id}))},[t.createElementVNode("div",{class:t.normalizeClass(i.backgroundClass),id:"image-video",style:t.normalizeStyle({"background-image":"url("+o.backgroundImg+")"})},null,6),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnPlaytype2)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnPlay1type2),id:"btn-play",onClick:a[0]||(a[0]=r=>i.clickVideos({game_id:o.data.game_id}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.icnPlaytype2)},Rae,2)],2)],2)],2)],512)}const Dae={$style:Oae},Lae=Uo(Tae,[["render",Pae],["__cssModules",Dae]]),jae="_tarjetaDatosGsDesktoptype4_189dz_107",vae="_tarjetaDatosGsDesktop500type4_189dz_127",Mae="_tarjetaDatosGs414type4_189dz_135",Hae="_tarjetaDatosGs414500type4_189dz_159",Uae="_tarjetaDatosGs414380type4_189dz_183",Gae="_tarjetaDatosGs320type4_189dz_191",Wae="_tarjetaDatosGs320380type4_189dz_215",qae="_dataBox8type4_189dz_239",Jae="_dataBox8380type4_189dz_275",Xae="_dataBoxtype4_189dz_313",Zae="_dataBox520type4_189dz_353",Yae="_dataBox480type4_189dz_395",Kae="_dataBox3type4_189dz_437",Qae="_dataBox3520type4_189dz_479",eoe="_dataBox4type4_189dz_489",toe="_dataBox4500type4_189dz_533",aoe="_dataBox6type4_189dz_581",ooe="_dataBox6500type4_189dz_627",soe="_dataContainertype4_189dz_681",noe="_dataContainer520type4_189dz_709",ioe="_dataContainer1type4_189dz_741",roe="_dataContainer1500type4_189dz_769",loe="_dataBox7type4_189dz_799",coe="_dataBox7380type4_189dz_835",doe="_div15type4_189dz_877",moe="_div15380type4_189dz_895",poe="_btnShareIcontype4_189dz_913",hoe="_btnSharetype4_189dz_925",goe="_bakgBaseIcontype4_189dz_955",yoe="_roleCharacterIcontype4_189dz_979",uoe="_verVideostype4_189dz_995",foe="_btnVideostype4_189dz_1009",_oe="_playerNametype4_189dz_1059",boe="_elJugadortype4_189dz_1077",woe="_aSeguirtype4_189dz_1085",Coe="_elJugadorAContainertype4_189dz_1095",koe="_titletype4_189dz_1115",Soe="_baseCardtype4_189dz_1143",Eoe="_imagePlayerIcontype4_189dz_1173",Noe="_arrowGraphIcontype4_189dz_1199",$oe="_divtype4_189dz_1211",Boe="_totaltype4_189dz_1225",xoe="_div1type4_189dz_1241",Voe="_btnShareIcon1type4_189dz_1263",Ioe="_btnShare1type4_189dz_1275",Aoe="_bakgBaseIcon1type4_189dz_1303",Ooe="_bakgBaseIcon2type4_189dz_1327",Toe="_roleCharacterIcon1type4_189dz_1351",zoe="_btnVideos1type4_189dz_1367",Foe="_playerName1type4_189dz_1409",Roe="_elJugadorAContainer1type4_189dz_1419",Poe="_title1type4_189dz_1439",Doe="_baseCard1type4_189dz_1465",Loe="_imagePlayerIcon1type4_189dz_1493",joe="_total4type4_189dz_1515",voe="_div9type4_189dz_1531",Moe="_roleCharacterIcon2type4_189dz_1547",Hoe="_btnVideos2type4_189dz_1563",Uoe="_elJugadorAContainer2type4_189dz_1601",Goe="_title2type4_189dz_1621",Woe="_imagePlayerIcon2type4_189dz_1649",qoe="_dataContainer2type4_189dz_1671",Joe="_tarjetaDatosGstype4_189dz_1701",Xoe={tarjetaDatosGsDesktoptype4:jae,tarjetaDatosGsDesktop500type4:vae,tarjetaDatosGs414type4:Mae,tarjetaDatosGs414500type4:Hae,tarjetaDatosGs414380type4:Uae,tarjetaDatosGs320type4:Gae,tarjetaDatosGs320380type4:Wae,dataBox8type4:qae,dataBox8380type4:Jae,dataBoxtype4:Xae,dataBox520type4:Zae,dataBox480type4:Yae,dataBox3type4:Kae,dataBox3520type4:Qae,dataBox4type4:eoe,dataBox4500type4:toe,dataBox6type4:aoe,dataBox6500type4:ooe,dataContainertype4:soe,dataContainer520type4:noe,dataContainer1type4:ioe,dataContainer1500type4:roe,dataBox7type4:loe,dataBox7380type4:coe,div15type4:doe,div15380type4:moe,btnShareIcontype4:poe,btnSharetype4:hoe,bakgBaseIcontype4:goe,roleCharacterIcontype4:yoe,verVideostype4:uoe,btnVideostype4:foe,playerNametype4:_oe,elJugadortype4:boe,aSeguirtype4:woe,elJugadorAContainertype4:Coe,titletype4:koe,baseCardtype4:Soe,imagePlayerIcontype4:Eoe,arrowGraphIcontype4:Noe,divtype4:$oe,totaltype4:Boe,div1type4:xoe,btnShareIcon1type4:Voe,btnShare1type4:Ioe,bakgBaseIcon1type4:Aoe,bakgBaseIcon2type4:Ooe,roleCharacterIcon1type4:Toe,btnVideos1type4:zoe,playerName1type4:Foe,elJugadorAContainer1type4:Roe,title1type4:Poe,baseCard1type4:Doe,imagePlayerIcon1type4:Loe,total4type4:joe,div9type4:voe,roleCharacterIcon2type4:Moe,btnVideos2type4:Hoe,elJugadorAContainer2type4:Uoe,title2type4:Goe,imagePlayerIcon2type4:Woe,dataContainer2type4:qoe,tarjetaDatosGstype4:Joe},_p={components:{},props:{data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},colorcard:{type:String,default:"#122736"},showShareButton:{type:Boolean,default:!1}},data(){return{}},computed:{tarjetaDatosGsDesktopClass(){return this.elementSize.width<=500?this.$style.tarjetaDatosGsDesktop500type4:this.$style.tarjetaDatosGsDesktoptype4},tarjetaDatosGs414Class(){const e=this.elementSize.width;return e<=380?this.$style.tarjetaDatosGs414380type4:e<=500?this.$style.tarjetaDatosGs414500type4:this.$style.tarjetaDatosGs414type4},tarjetaDatosGs320Class(){return this.elementSize.width<=380?this.$style.tarjetaDatosGs320380type4:this.$style.tarjetaDatosGs320type4},dataBox8Class(){return this.elementSize.width<=380?this.$style.dataBox8380type4:this.$style.dataBox8type4},dataBoxClass(){const e=this.elementSize.width;return e<=480?this.$style.dataBox480type4:e<=520?this.$style.dataBox520type4:this.$style.dataBoxtype4},dataBox3Class(){return this.elementSize.width<=520?this.$style.dataBox3520type4:this.$style.dataBox3type4},dataBox4Class(){return this.elementSize.width<=500?this.$style.dataBox4500type4:this.$style.dataBox4type4},dataBox6Class(){return this.elementSize.width<=500?this.$style.dataBox6500type4:this.$style.dataBox6type4},dataBox7Class(){return this.elementSize.width<=380?this.$style.dataBox7380type4:this.$style.dataBox7type4},dataContainerClass(){return this.elementSize.width<=520?this.$style.dataContainer520type4:this.$style.dataContainertype4},dataContainer1Class(){return this.elementSize.width<=500?this.$style.dataContainer1500type4:this.$style.dataContainer1type4},div15Class(){return this.elementSize.width<=380?this.$style.div15380type4:this.$style.div15type4}},setup(){const e=t.ref("myDivRefCardtype4"),{elementSize:a}=ln(e);return{myDivRefCardtype4:e,elementSize:a}},methods:{clickPlayer(e){this.clickCard&&this.$emit("onClickCard",e)},clickVideos(e){this.clickCard||this.$emit("onClickVideos",e)},clickCategory(e){this.clickCard||this.$emit("onClickCategory",e)}}},P2=()=>{t.useCssVars(e=>({"2a32105c":e.data.background_color_cards!=null?e.data.background_color_cards:"rgba(255, 255, 255, 0.16)","6c73455c":e.data.background_color_buttons!=null?e.data.background_color_buttons:"rgba(255, 255, 255, 0.16)","5358662c":e.colorcard,"36a302f1":e.data.font_color!=null?e.data.font_color:"#fff"}))},D2=_p.setup;_p.setup=D2?(e,a)=>(P2(),D2(e,a)):P2;const Zoe=t.createElementVNode("path",{d:"M14.886 14.0466C14.1404 14.0466 13.4733 14.3409 12.9632 14.8019L5.96863 10.7308C6.01768 10.5052 6.05692 10.2795 6.05692 10.0441C6.05692 9.80867 6.01768 9.58304 5.96863 9.35741L12.8847 5.32551C13.4145 5.81601 14.111 6.12012 14.886 6.12012C15.6665 6.12012 16.4151 5.81005 16.967 5.25814C17.5189 4.70622 17.829 3.95765 17.829 3.17712C17.829 2.39659 17.5189 1.64803 16.967 1.09611C16.4151 0.544195 15.6665 0.234131 14.886 0.234131C14.1054 0.234131 13.3569 0.544195 12.8049 1.09611C12.253 1.64803 11.9429 2.39659 11.9429 3.17712C11.9429 3.41256 11.9822 3.63819 12.0312 3.86382L5.11516 7.89572C4.58542 7.40523 3.8889 7.10112 3.11391 7.10112C2.33337 7.10112 1.58481 7.41118 1.03289 7.9631C0.480965 8.51502 0.170898 9.26358 0.170898 10.0441C0.170898 10.8246 0.480965 11.5732 1.03289 12.1251C1.58481 12.677 2.33337 12.9871 3.11391 12.9871C3.8889 12.9871 4.58542 12.683 5.11516 12.1925L12.0999 16.2636C12.0509 16.4696 12.0214 16.6855 12.0214 16.9111C12.0214 18.4905 13.3065 19.7658 14.886 19.7658C16.4654 19.7658 17.7505 18.4905 17.7505 16.9111C17.7505 16.1514 17.4487 15.4228 16.9115 14.8856C16.3743 14.3484 15.6457 14.0466 14.886 14.0466Z",fill:"#F4F4F4","fill-opacity":"0.5"},null,-1),Yoe=[Zoe],Koe=["src"],Qoe={"clip-path":"url(#clip0_59_831)"},ese=["fill"],tse=t.createElementVNode("defs",null,[t.createElementVNode("clipPath",{id:"clip0_59_831"},[t.createElementVNode("rect",{width:"12",height:"12",fill:"white",transform:"translate(0.375 0.637695)"})])],-1),ase=["src"],ose=["fill"],sse=["fill"],nse=["fill"],ise=t.createElementVNode("path",{d:"M10.2126 9.10136C9.73332 9.10136 9.30448 9.29055 8.97655 9.58695L4.48004 6.96979C4.51158 6.82474 4.5368 6.67969 4.5368 6.52834C4.5368 6.37699 4.51158 6.23194 4.48004 6.08689L8.92609 3.49495C9.26664 3.81027 9.7144 4.00577 10.2126 4.00577C10.7144 4.00577 11.1956 3.80645 11.5504 3.45164C11.9052 3.09684 12.1045 2.61562 12.1045 2.11385C12.1045 1.61208 11.9052 1.13086 11.5504 0.776056C11.1956 0.421251 10.7144 0.221924 10.2126 0.221924C9.71084 0.221924 9.22962 0.421251 8.87481 0.776056C8.52 1.13086 8.32067 1.61208 8.32067 2.11385C8.32067 2.2652 8.3459 2.41025 8.37743 2.5553L3.93138 5.14723C3.59083 4.83191 3.14308 4.63641 2.64487 4.63641C2.14309 4.63641 1.66187 4.83574 1.30706 5.19055C0.952258 5.54535 0.75293 6.02657 0.75293 6.52834C0.75293 7.03011 0.952258 7.51133 1.30706 7.86613C1.66187 8.22094 2.14309 8.42026 2.64487 8.42026C3.14308 8.42026 3.59083 8.22476 3.93138 7.90944L8.42158 10.5266C8.39004 10.659 8.37113 10.7978 8.37113 10.9428C8.37113 11.9582 9.19727 12.778 10.2126 12.778C11.2279 12.778 12.0541 11.9582 12.0541 10.9428C12.0541 10.4544 11.8601 9.98605 11.5147 9.64071C11.1694 9.29537 10.701 9.10136 10.2126 9.10136Z",fill:"#F4F4F4","fill-opacity":"0.5"},null,-1),rse=[ise],lse=["src"],cse=["fill"],dse=["src"],mse=["fill"],pse=["fill"],hse=["fill"],gse=t.createElementVNode("path",{d:"M10.2126 9.10111C9.73332 9.10111 9.30448 9.2903 8.97655 9.58671L4.48004 6.96954C4.51158 6.8245 4.5368 6.67945 4.5368 6.52809C4.5368 6.37674 4.51158 6.23169 4.48004 6.08665L8.92609 3.49471C9.26664 3.81003 9.7144 4.00553 10.2126 4.00553C10.7144 4.00553 11.1956 3.8062 11.5504 3.4514C11.9052 3.09659 12.1045 2.61537 12.1045 2.1136C12.1045 1.61183 11.9052 1.13062 11.5504 0.775812C11.1956 0.421007 10.7144 0.22168 10.2126 0.22168C9.71084 0.22168 9.22962 0.421007 8.87481 0.775812C8.52 1.13062 8.32067 1.61183 8.32067 2.1136C8.32067 2.26496 8.3459 2.41001 8.37743 2.55505L3.93138 5.14699C3.59083 4.83167 3.14308 4.63617 2.64487 4.63617C2.14309 4.63617 1.66187 4.8355 1.30706 5.1903C0.952258 5.54511 0.75293 6.02633 0.75293 6.52809C0.75293 7.02986 0.952258 7.51108 1.30706 7.86589C1.66187 8.22069 2.14309 8.42002 2.64487 8.42002C3.14308 8.42002 3.59083 8.22452 3.93138 7.9092L8.42158 10.5264C8.39004 10.6588 8.37113 10.7975 8.37113 10.9426C8.37113 11.9579 9.19727 12.7778 10.2126 12.7778C11.2279 12.7778 12.0541 11.9579 12.0541 10.9426C12.0541 10.4542 11.8601 9.98581 11.5147 9.64047C11.1694 9.29512 10.701 9.10111 10.2126 9.10111Z",fill:"#F4F4F4","fill-opacity":"0.5"},null,-1),yse=[gse],use=["src"],fse=["fill"],_se=["src"],bse=["fill"],wse=["fill"],Cse=["fill"];function kse(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.tarjetaDatosGstype4),ref:"myDivRefCardtype4",onClick:a[10]||(a[10]=r=>i.clickPlayer({season_id:o.data.id_season,player_id:o.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(i.tarjetaDatosGsDesktopClass),id:"card-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.baseCardtype4)},[o.showShareButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.btnSharetype4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.btnShareIcontype4),width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Yoe,2))],2)):t.createCommentVNode("",!0),o.data.background!=""?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.bakgBaseIcontype4),alt:"",src:o.data.background},null,10,Koe)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideostype4),onClick:a[0]||(a[0]=r=>i.clickVideos({season_id:o.data.id_season,player_id:o.data.player_id,category:0,type:2}))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcontype4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("g",Qoe,[t.createElementVNode("path",{d:"M2.67705 12.0654C2.58553 12.0133 2.50903 11.9355 2.4558 11.8404C2.40257 11.7452 2.37464 11.6363 2.375 11.5255V1.74838C2.37513 1.63789 2.40325 1.5295 2.45637 1.43474C2.50949 1.33998 2.58563 1.26238 2.6767 1.21019C2.76776 1.15801 2.87035 1.13319 2.97355 1.13837C3.07675 1.14355 3.17671 1.17854 3.2628 1.23962L10.1203 6.12875C10.1987 6.18445 10.2629 6.25998 10.3073 6.34864C10.3518 6.4373 10.375 6.53633 10.375 6.63692C10.375 6.73751 10.3518 6.83654 10.3073 6.9252C10.2629 7.01386 10.1987 7.0894 10.1203 7.1451L3.2628 12.0354C3.17684 12.0966 3.07696 12.1317 2.9738 12.137C2.87065 12.1423 2.76809 12.1175 2.67705 12.0654V12.0654ZM2.94673 11.5266L9.80426 6.6375L2.94673 11.5266Z",fill:o.data.color_icon_play!=null?o.data.color_icon_play:"#CBEE6B"},null,8,ese)]),tse],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideostype4)},"Ver videos",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.titletype4),id:"title-info"},[t.createElementVNode("h4",{class:t.normalizeClass(e.$style.playerNametype4),id:"player-name"},t.toDisplayString(o.data.player_name),3),t.createElementVNode("h2",{class:t.normalizeClass(e.$style.elJugadorAContainertype4),id:"title-card"},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.elJugadortype4)},t.toDisplayString(o.data.main_title),3),t.createElementVNode("p",{class:t.normalizeClass(e.$style.aSeguirtype4)},t.toDisplayString(o.data.second_title),3)],2)],2)],2),o.data.player_photo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imagePlayerIcontype4),alt:"",src:o.data.player_photo},null,10,ase)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.dataContainerClass),id:"data-container"},[t.createElementVNode("div",{style:t.normalizeStyle({color:o.data.font_color_card+"!important"}),class:t.normalizeClass(i.dataBoxClass),onClick:a[1]||(a[1]=r=>i.clickCategory({category:o.data.category_id_1,season_id:o.data.id_season,player_id:o.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.totaltype4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.font_color_card},null,8,ose)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_1),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1type4)},t.toDisplayString(o.data.category_name_1),3)],6),t.createElementVNode("div",{style:t.normalizeStyle({color:o.data.font_color_card+"!important"}),class:t.normalizeClass(i.dataBoxClass),onClick:a[2]||(a[2]=r=>i.clickCategory({category:o.data.category_id_2,season_id:o.data.id_season,player_id:o.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.totaltype4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.font_color_card},null,8,sse)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_2),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1type4)},t.toDisplayString(o.data.category_name_2),3)],6),o.data.showlast_category?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle({color:o.data.font_color_card+"!important"}),class:t.normalizeClass(i.dataBoxClass),onClick:a[3]||(a[3]=r=>i.clickCategory({category:o.data.category_id_3,season_id:o.data.id_season,player_id:o.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.totaltype4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.font_color_card},null,8,nse)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_3),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1type4)},t.toDisplayString(o.data.category_name_3),3)],6)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.tarjetaDatosGs414Class),id:"card-mobile-414"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.baseCard1type4)},[o.showShareButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.btnShare1type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.btnShareIcon1type4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rse,2))],2)):t.createCommentVNode("",!0),o.data.background!=""?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.bakgBaseIcon1type4),alt:"",src:o.data.background},null,10,lse)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideos1type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcon1type4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.color_icon_play!=null?o.data.color_icon_play:"#CBEE6B"},null,8,cse)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideostype4)},"Ver videos",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.title1type4),id:"title-info"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerName1type4)},t.toDisplayString(o.data.player_name),3),t.createElementVNode("h2",{class:t.normalizeClass(e.$style.elJugadorAContainer1type4),id:"title-card"},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.elJugadortype4)},t.toDisplayString(o.data.main_title),3),t.createElementVNode("p",{class:t.normalizeClass(e.$style.aSeguirtype4)},t.toDisplayString(o.data.second_title),3)],2)],2)],2),o.data.player_photo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imagePlayerIcon1type4),alt:"",src:o.data.player_photo},null,10,dse)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.dataContainer1Class),id:"data-container"},[t.createElementVNode("div",{style:t.normalizeStyle({color:o.data.font_color_card+"!important"}),class:t.normalizeClass(i.dataBox4Class),onClick:a[4]||(a[4]=r=>i.clickCategory({category:o.data.category_id_1,season_id:o.data.id_season,player_id:o.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.font_color_card},null,8,mse)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_1),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div9type4)},t.toDisplayString(o.data.category_name_1),3)],6),t.createElementVNode("div",{style:t.normalizeStyle({color:o.data.font_color_card+"!important"}),class:t.normalizeClass(i.dataBox4Class),onClick:a[5]||(a[5]=r=>i.clickCategory({category:o.data.category_id_2,season_id:o.data.id_season,player_id:o.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.font_color_card},null,8,pse)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_2),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div9type4)},t.toDisplayString(o.data.category_name_2),3)],6),o.data.showlast_category?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle({color:o.data.font_color_card+"!important"}),class:t.normalizeClass(i.dataBox6Class),onClick:a[6]||(a[6]=r=>i.clickCategory({category:o.data.category_id_3,season_id:o.data.id_season,player_id:o.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.font_color_card},null,8,hse)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_3),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div9type4)},t.toDisplayString(o.data.category_name_3),3)],6)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.tarjetaDatosGs320Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.baseCard1type4)},[o.showShareButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.btnShare1type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.btnShareIcon1type4),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},yse,2))],2)):t.createCommentVNode("",!0),o.data.background!=""?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.bakgBaseIcon2type4),alt:"",src:o.data.background},null,10,use)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideos2type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcon2type4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188781 8.4474C0.131578 8.40953 0.0837666 8.35295 0.0505 8.28375C0.0172333 8.21456 -0.000226673 8.13538 2.22194e-06 8.05474V0.944134C8.08686e-05 0.863779 0.0176551 0.784951 0.0508567 0.716032C0.0840582 0.647113 0.131646 0.590677 0.188562 0.552724C0.245478 0.514772 0.309594 0.49672 0.374094 0.50049C0.438595 0.504259 0.50107 0.529707 0.554877 0.57413L4.84083 4.12986C4.88978 4.17036 4.92993 4.2253 4.9577 4.28978C4.98547 4.35426 5 4.42628 5 4.49944C5 4.5726 4.98547 4.64462 4.9577 4.7091C4.92993 4.77358 4.88978 4.82852 4.84083 4.86902L0.554877 8.42559C0.501152 8.47011 0.438726 8.49565 0.374253 8.49949C0.30978 8.50333 0.245678 8.48533 0.188781 8.4474V8.4474ZM0.357334 8.05558L4.64329 4.49986L0.357334 8.05558Z",fill:o.data.color_icon_play!=null?o.data.color_icon_play:"#CBEE6B"},null,8,fse)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideostype4)},"Ver videos",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.title2type4),id:"title-info"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerName1type4)},t.toDisplayString(o.data.player_name),3),t.createElementVNode("h2",{class:t.normalizeClass(e.$style.elJugadorAContainer2type4),id:"title-card"},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.elJugadortype4)},t.toDisplayString(o.data.main_title),3),t.createElementVNode("p",{class:t.normalizeClass(e.$style.aSeguirtype4)},t.toDisplayString(o.data.second_title),3)],2)],2)],2),o.data.player_photo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imagePlayerIcon2type4),alt:"",src:o.data.player_photo},null,10,_se)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.dataContainer2type4),id:"data-container"},[t.createElementVNode("div",{style:t.normalizeStyle({color:o.data.font_color_card+"!important"}),class:t.normalizeClass(i.dataBox7Class),onClick:a[7]||(a[7]=r=>i.clickCategory({category:o.data.category_id_1,season_id:o.data.id_season,player_id:o.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188777 8.8403C0.131575 8.80242 0.0837648 8.74584 0.0504989 8.67665C0.0172329 8.60746 -0.000226668 8.52828 2.22189e-06 8.44765V1.33719C8.08668e-05 1.25684 0.0176547 1.17801 0.0508556 1.10909C0.0840564 1.04018 0.131643 0.983741 0.188558 0.94579C0.245472 0.907838 0.309587 0.889787 0.374086 0.893556C0.438586 0.897325 0.501059 0.922773 0.554865 0.967195L4.84073 4.52284C4.88968 4.56335 4.92982 4.61829 4.95759 4.68277C4.98536 4.74724 4.99989 4.81926 4.99989 4.89242C4.99989 4.96557 4.98536 5.03759 4.95759 5.10207C4.92982 5.16655 4.88968 5.22149 4.84073 5.26199L0.554865 8.81848C0.501141 8.863 0.438716 8.88854 0.374245 8.89238C0.309774 8.89623 0.245673 8.87822 0.188777 8.8403V8.8403ZM0.357326 8.44849L4.64319 4.89284L0.357326 8.44849Z",fill:o.data.font_color_card},null,8,bse)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_1),3)],2),t.createElementVNode("div",{class:t.normalizeClass(i.div15Class)},t.toDisplayString(o.data.category_name_1),3)],6),t.createElementVNode("div",{style:t.normalizeStyle({color:o.data.font_color_card+"!important"}),class:t.normalizeClass(i.dataBox8Class),onClick:a[8]||(a[8]=r=>i.clickCategory({category:o.data.category_id_2,season_id:o.data.id_season,player_id:o.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"5",height:"9",viewBox:"0 0 5 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.188777 8.8403C0.131575 8.80242 0.0837648 8.74584 0.0504989 8.67665C0.0172329 8.60746 -0.000226668 8.52828 2.22189e-06 8.44765V1.33719C8.08668e-05 1.25684 0.0176547 1.17801 0.0508556 1.10909C0.0840564 1.04018 0.131643 0.983741 0.188558 0.94579C0.245472 0.907838 0.309587 0.889787 0.374086 0.893556C0.438586 0.897325 0.501059 0.922773 0.554865 0.967195L4.84073 4.52284C4.88968 4.56335 4.92982 4.61829 4.95759 4.68277C4.98536 4.74724 4.99989 4.81926 4.99989 4.89242C4.99989 4.96557 4.98536 5.03759 4.95759 5.10207C4.92982 5.16655 4.88968 5.22149 4.84073 5.26199L0.554865 8.81848C0.501141 8.863 0.438716 8.88854 0.374245 8.89238C0.309774 8.89623 0.245673 8.87822 0.188777 8.8403V8.8403ZM0.357326 8.44849L4.64319 4.89284L0.357326 8.44849Z",fill:o.data.font_color_card},null,8,wse)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_2),3)],2),t.createElementVNode("div",{class:t.normalizeClass(i.div15Class)},t.toDisplayString(o.data.category_name_2),3)],6),o.data.showlast_category?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle({color:o.data.font_color_card+"!important"}),class:t.normalizeClass(i.dataBox8Class),onClick:a[9]||(a[9]=r=>i.clickCategory({category:o.data.category_id_3,season_id:o.data.id_season,player_id:o.data.player_id,type:2}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.total4type4)},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.arrowGraphIcontype4),width:"6",height:"9",viewBox:"0 0 6 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.474421 8.8403C0.41722 8.80242 0.369409 8.74584 0.336143 8.67665C0.302877 8.60746 0.285418 8.52828 0.285647 8.44765V1.33719C0.285725 1.25684 0.303299 1.17801 0.3365 1.10909C0.369701 1.04018 0.417288 0.983741 0.474202 0.94579C0.531117 0.907838 0.595232 0.889787 0.659731 0.893556C0.72423 0.897325 0.786704 0.922773 0.84051 0.967195L5.12637 4.52284C5.17532 4.56335 5.21547 4.61829 5.24324 4.68277C5.271 4.74724 5.28554 4.81926 5.28554 4.89242C5.28554 4.96557 5.271 5.03759 5.24324 5.10207C5.21547 5.16655 5.17532 5.22149 5.12637 5.26199L0.84051 8.81848C0.786786 8.863 0.724361 8.88854 0.659889 8.89238C0.595418 8.89623 0.531318 8.87822 0.474421 8.8403V8.8403ZM0.64297 8.44849L4.92883 4.89284L0.64297 8.44849Z",fill:o.data.font_color_card},null,8,Cse)],2)),t.createElementVNode("div",{class:t.normalizeClass(e.$style.divtype4)},t.toDisplayString(o.data.category_stats_3),3)],2),t.createElementVNode("div",{class:t.normalizeClass(i.div15Class)},t.toDisplayString(o.data.category_name_3),3)],6)):t.createCommentVNode("",!0)],2)],2)],2)}const Sse={$style:Xoe},Ese=Uo(_p,[["render",kse],["__cssModules",Sse]]),Nse="_cardVideotype3_1geoc_47",$se="_cardVideo540type3_1geoc_73",Bse="_ligaMx2Icontype3_1geoc_101",xse="_roleCharacterIcontype3_1geoc_121",Vse="_btnPlaytype3_1geoc_135",Ise="_videoThumbnailtype3_1geoc_183",Ase="_chivasIcontype3_1geoc_209",Ose="_teamtype3_1geoc_221",Tse="_playerChildtype3_1geoc_251",zse="_playertype3_1geoc_265",Fse="_teamPlayertype3_1geoc_297",Rse="_mintype3_1geoc_309",Pse="_teamPlayerParenttype3_1geoc_317",Dse="_icnGoalsIcontype3_1geoc_333",Lse="_min1type3_1geoc_343",jse="_actionstype3_1geoc_351",vse="_footerCardVideotype3_1geoc_367",Mse={cardVideotype3:Nse,cardVideo540type3:$se,ligaMx2Icontype3:Bse,roleCharacterIcontype3:xse,btnPlaytype3:Vse,videoThumbnailtype3:Ise,chivasIcontype3:Ase,teamtype3:Ose,playerChildtype3:Tse,playertype3:zse,teamPlayertype3:Fse,mintype3:Rse,teamPlayerParenttype3:Pse,icnGoalsIcontype3:Dse,min1type3:Lse,actionstype3:jse,footerCardVideotype3:vse},bp={components:{},props:{data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},categoryIcon:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#000000"},playerPhoto:{type:Boolean,default:!0}},data(){return{}},setup(){const e=t.ref("myDivRefCardtype3"),{elementSize:a}=ln(e);return{myDivRefCardtype3:e,elementSize:a}},computed:{cardVideoClass(){return this.elementSize.width<=540?this.$style.cardVideo540type3:this.$style.cardVideotype3}},methods:{clickPlayer(e){this.clickCard&&this.$emit("onClickCard",e)},clickVideos(e){this.clickCard||this.$emit("onClickVideos",e)}}},L2=()=>{t.useCssVars(e=>({fe7b7fd8:e.backgroundColor}))},j2=bp.setup;bp.setup=j2?(e,a)=>(L2(),j2(e,a)):L2;const Hse=["src"],Use=t.createElementVNode("g",{"clip-path":"url(#clip0_59_831)"},[t.createElementVNode("path",{d:"M2.67705 12.0654C2.58553 12.0133 2.50903 11.9355 2.4558 11.8404C2.40257 11.7452 2.37464 11.6363 2.375 11.5255V1.74838C2.37513 1.63789 2.40325 1.5295 2.45637 1.43474C2.50949 1.33998 2.58563 1.26238 2.6767 1.21019C2.76776 1.15801 2.87035 1.13319 2.97355 1.13837C3.07675 1.14355 3.17671 1.17854 3.2628 1.23962L10.1203 6.12875C10.1987 6.18445 10.2629 6.25998 10.3073 6.34864C10.3518 6.4373 10.375 6.53633 10.375 6.63692C10.375 6.73751 10.3518 6.83654 10.3073 6.9252C10.2629 7.01386 10.1987 7.0894 10.1203 7.1451L3.2628 12.0354C3.17684 12.0966 3.07696 12.1317 2.9738 12.137C2.87065 12.1423 2.76809 12.1175 2.67705 12.0654V12.0654ZM2.94673 11.5266L9.80426 6.6375L2.94673 11.5266Z",fill:"#CBEE6B"})],-1),Gse=t.createElementVNode("defs",null,[t.createElementVNode("clipPath",{id:"clip0_59_831"},[t.createElementVNode("rect",{width:"12",height:"12",fill:"white",transform:"translate(0.375 0.637695)"})])],-1),Wse=[Use,Gse],qse=["src"],Jse=["src"],Xse=["src"];function Zse(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(i.cardVideoClass),ref:"myDivRefCardtype3",onClick:a[1]||(a[1]=r=>i.clickPlayer({season_id:o.data.id_season,category_id:o.data.id_category,team_id:o.data.team_id,player_id:o.data.player_id}))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.videoThumbnailtype3),id:"container-video"},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.ligaMx2Icontype3),alt:"",src:o.data.background_card},null,10,Hse),t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnPlaytype3),onClick:a[0]||(a[0]=r=>i.clickVideos({season_id:o.data.id_season,category_id:o.data.id_category,team_id:o.data.team_id,player_id:o.data.player_id})),id:"btn-play-video"},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(e.$style.roleCharacterIcontype3),width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wse,2))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.footerCardVideotype3),id:"footer-card-video",style:t.normalizeStyle({background:o.backgroundColor})},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamPlayerParenttype3)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamPlayertype3)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamtype3)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.chivasIcontype3),alt:"",src:o.data.team_logo},null,10,qse)],2),o.playerPhoto?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.playertype3)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.playerChildtype3),alt:"",src:o.data.player_photo},null,10,Jse)],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.mintype3)},t.toDisplayString(o.data.player_name),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.actionstype3)},[o.categoryIcon?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.icnGoalsIcontype3),alt:"",src:o.data.icon_stat},null,10,Xse)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.min1type3)},t.toDisplayString(o.data.stat),3)],2)],6)],2)}const Yse={$style:Mse},Kse=Uo(bp,[["render",Zse],["__cssModules",Yse]]),Qse={components:{GSCCardFrecuentConnections:Hte,GSCCardVideosPlayers:fae,GSCHighlightsPostmatch:Lae,GSCPlays:Kse,GSCDataGS:Ese},props:{type:{type:Number,default:0},data:{type:Object,default:()=>{}},clickCard:{type:Boolean,default:!1},playerPhoto:{type:Boolean,default:!0},categoryIcon:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#cf152d"},backgroundImg:{type:String,default:""},colorTitle:{type:String,default:"#FFFFFF"},borderColor:{type:String,default:"#FFFFFF"},colorCard:{type:String,default:"#122736"},showShareButton:{type:Boolean,default:!1},customizeColors:{type:Boolean,default:!0}},data(){return{}},computed:{},methods:{onClickPlayer(e){this.$emit("onClickCard",e)},onClickVideos(e){this.$emit("onClickVideos",e)},onClickCategory(e){this.$emit("onClickCategory",e)}}};function ene(e,a,o,s,n,i){const r=t.resolveComponent("GSCCardFrecuentConnections"),c=t.resolveComponent("GSCCardVideosPlayers"),g=t.resolveComponent("GSCHighlightsPostmatch"),d=t.resolveComponent("GSCPlays"),l=t.resolveComponent("GSCDataGS");return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createBlock(r,{key:0,data:o.data,"click-card":o.clickCard,onOnClickPlayer:i.onClickPlayer,onOnClickVideos:i.onClickVideos},null,8,["data","click-card","onOnClickPlayer","onOnClickVideos"])):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createBlock(c,{key:1,data:o.data,"click-card":o.clickCard,"background-color":o.backgroundColor,"color-title":o.colorTitle,"border-color":o.borderColor,"background-img":o.backgroundImg,"customize-colors":o.customizeColors,onOnClickCard:i.onClickPlayer,onOnClickVideos:i.onClickVideos},null,8,["data","click-card","background-color","color-title","border-color","background-img","customize-colors","onOnClickCard","onOnClickVideos"])):t.createCommentVNode("",!0),o.type==2?(t.openBlock(),t.createBlock(g,{key:2,data:o.data,"click-card":o.clickCard,"background-img":o.backgroundImg,onOnClickCard:i.onClickPlayer,onOnClickVideos:i.onClickVideos},null,8,["data","click-card","background-img","onOnClickCard","onOnClickVideos"])):t.createCommentVNode("",!0),o.type==3?(t.openBlock(),t.createBlock(d,{key:3,data:o.data,"click-card":o.clickCard,"player-photo":o.playerPhoto,"category-icon":o.categoryIcon,"background-color":o.backgroundColor,onOnClickCard:i.onClickPlayer,onOnClickVideos:i.onClickVideos},null,8,["data","click-card","player-photo","category-icon","background-color","onOnClickCard","onOnClickVideos"])):t.createCommentVNode("",!0),o.type==4?(t.openBlock(),t.createBlock(l,{key:4,data:o.data,"show-share-button":o.showShareButton,"click-card":o.clickCard,colorcard:o.colorCard,onOnClickCard:i.onClickPlayer,onOnClickVideos:i.onClickVideos,onOnClickCategory:i.onClickCategory},null,8,["data","show-share-button","click-card","colorcard","onOnClickCard","onOnClickVideos","onOnClickCategory"])):t.createCommentVNode("",!0)])}const tne=Uo(Qse,[["render",ene],["__scopeId","data-v-b1f26d64"]]),ane=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},wp={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},v2=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},M2=wp.setup;wp.setup=M2?(e,a)=>(v2(),M2(e,a)):v2;const one={ref:"gscScrollableContainer",class:"scrollable-container"},sne={class:"scrollable-arrows"},nne=["width","height","viewBox"],ine=["stroke"],rne={class:"scrollable-wrapper"},lne={class:"scrollable-arrows"},cne=["width","height","viewBox"],dne=["stroke"];function mne(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",one,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[t.createElementVNode("div",sne,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:o.arrowsColor},null,8,ine)],8,nne))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[t.createElementVNode("div",rne,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[t.createElementVNode("div",lne,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:o.arrowsColor},null,8,dne)],8,cne))])],2)):t.createCommentVNode("",!0)],512)}const pne=ane(wp,[["render",mne],["__scopeId","data-v-b548a08d"]]),hne="_templateDataGS_1w6kr_7",gne="_gridCompo480_1w6kr_33",yne="_gridCompo_1w6kr_33",une="_grid_1w6kr_33",fne="_grid768_1w6kr_115",_ne="_grid480_1w6kr_137",bne="_specialsMobile_1w6kr_161",wne="_gridClass_1w6kr_177",Cne={templateDataGS:hne,gridCompo480:gne,gridCompo:yne,grid:une,grid768:fne,grid480:_ne,specialsMobile:bne,gridClass:wne},kne={components:{GSCData:pte,GSCCard:tne,GSCSlider:pne,GSCMentionsCards:NY},props:{type:{type:Number,default:0},data:{type:Object,default:()=>{}}},setup(){const e=t.ref("myDivRef2GSDa"),{elementSize:a}=ZZ(e);return{myDivRef2GSDa:e,elementSize:a}},data(){return{token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",pages:[],homeTeam:[],awayTeam:[],playerInfo:{},specials:[]}},computed:{gridCompoClass(){return this.elementSize.width<=720?this.$style.gridCompo480:this.$style.gridCompo},gridClass(){const e=this.elementSize.width;return e<=620?this.$style.grid480:e<=900?this.$style.grid768:this.$style.grid}},watch:{data:{immediate:!0,handler(e){this.getStats(e)}}},methods:{openmedia(e){this.$emit("openmedia",e)},onclickPlayVideos(e){var a=[];e.type==2?e.position_id==1?e.category==0?a=[39,55,41,42,264,304,306,608,324,323,362,371,380,355,49,50,267,308]:a=e.category:e.category==0?a=[12,19,31,32,13,25,6,11,23,4,5,24,15,607,10,27,216,217,155,164,173,30,98,101,104,105,109,112,115,116,17,2,20]:a=e.category:e.type==3?e.category==0?a=[12,55,"35_r","54_r",19,31,32,13,25,6,312,11,23,4,5,24,18,49,607,608,10,324,27,323,216,217,155,164,173,362,371,380,30,355,98,101,104,105,109,112,115,116,17,50,2,20,267,308]:a=e.category:e.category!=0?a=e.category:a=[12,55,"35_r","54_r",19,31,32,13,25,6,312,11,23,4,5,24,18,49,607,608,10,324,27,323,216,217,155,164,173,362,371,380,30,355,98,101,104,105,109,112,115,116,17,50,2,20,267,308],a==="minutes_played"&&(a=[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]),a==="games_played"&&(a=[607,608,12,55,54,35,14,52,15,53,466,477]);const o=[1,2,3];let s={seasonId:e.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:e.game_id?[e.game_id]:null,playerIds:e.position_id!=1?e.player_id?[e.player_id]:[]:[],goalkeeperIds:e.position_id==1?e.player_id?[e.player_id]:[]:[],teamId:e.team_id?[e.team_id]:0,matchResult:e.matchResult?[e.matchResult]:o,playData:{},advancedFilter:{playListTitle:""}};e.category!==0&&(s.advancedFilter.mainCategoryId=e.category),this.$emit("openmedia",s)},async getStats(e){const a=XZ.create({headers:{Authorization:`${this.token}`}}),o=await a.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+e.season+"/games/"+e.game),s=await a.get("https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/"+e.game);for(let n=0;n<o.data.games[0].players.length;n++)e.home_team_id==o.data.games[0].players[n].team_id&&this.homeTeam.push({id_season:o.data.games[0].players[n].season_id,color:o.data.games[0].players[n].info_thumbnails.colors.background_color,player_id:o.data.games[0].players[n].player_id,player_name:o.data.games[0].players[n].player_name,background:o.data.games[0].players[n].info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+o.data.games[0].players[n].info_thumbnails.images.background_player_in_action[0]:"https://golstatsimages.blob.core.windows.net/images-library/"+o.data.games[0].players[n].info_thumbnails.images.background_default_players[0],player_photo:o.data.games[0].players[n].info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+o.data.games[0].players[n].info_thumbnails.images.player_in_action[0]:`https://az755631.vo.msecnd.net/players-profile/${o.data.games[0].players[n].player_id}.png`,category_stats_1:this.prematch?o.data.games[0].players[n].games_played:o.data.games[0].players[n].minutes_played,category_stats_2:this.prematch?o.data.games[0].players[n].minutes_played:o.data.games[0].players[n].categories[0].total,category_stats_3:this.prematch?o.data.games[0].players[n].categories[0].total:o.data.games[0].players[n].categories[1]?o.data.games[0].players[n].categories[1].total:"",category_id_1:this.prematch?"games_played":"minutes_played",category_id_2:this.prematch?"minutes_played":o.data.games[0].players[n].categories[0].categories,category_id_3:this.prematch?o.data.games[0].players[n].categories[0].categories:o.data.games[0].players[n].categories[1]?o.data.games[0].players[n].categories[1].categories:"",category_name_1:this.prematch?"Partidos Jugados":"Minutos Jugados",category_name_2:this.prematch?"Minutos Jugados":o.data.games[0].players[n].categories[0].category_name,category_name_3:this.prematch?o.data.games[0].players[n].categories[0].category_name:o.data.games[0].players[n].categories[1]?o.data.games[0].players[n].categories[1].category_name:"",showlast_category:!!o.data.games[0].players[n].categories[1],main_title:"Jugador",second_title:"Destacado",background_color_buttons:o.data.games[0].players[n].info_thumbnails.colors.background_color_buttons,background_color_cards:o.data.games[0].players[n].info_thumbnails.colors.background_color_cards,color_icon_play:o.data.games[0].players[n].info_thumbnails.colors.color_icon_play,color_next_back:o.data.games[0].players[n].info_thumbnails.colors.color_next_back,font_color:o.data.games[0].players[n].info_thumbnails.colors.font_color,font_color_card:o.data.games[0].players[n].info_thumbnails.colors.font_color_cards?o.data.games[0].players[n].info_thumbnails.colors.font_color_cards:"#FFFFFF"}),e.away_team_id==o.data.games[0].players[n].team_id&&this.awayTeam.push({id_season:o.data.games[0].players[n].season_id,color:o.data.games[0].players[n].info_thumbnails.colors.background_color,player_id:o.data.games[0].players[n].player_id,player_name:o.data.games[0].players[n].player_name,background:o.data.games[0].players[n].info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+o.data.games[0].players[n].info_thumbnails.images.background_player_in_action[0]:"https://golstatsimages.blob.core.windows.net/images-library/"+o.data.games[0].players[n].info_thumbnails.images.background_default_players[0],player_photo:o.data.games[0].players[n].info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+o.data.games[0].players[n].info_thumbnails.images.player_in_action[0]:`https://az755631.vo.msecnd.net/players-profile/${o.data.games[0].players[n].player_id}.png`,category_stats_1:this.prematch?o.data.games[0].players[n].games_played:o.data.games[0].players[n].minutes_played,category_stats_2:this.prematch?o.data.games[0].players[n].minutes_played:o.data.games[0].players[n].categories[0].total,category_stats_3:this.prematch?o.data.games[0].players[n].categories[0].total:o.data.games[0].players[n].categories[1]?o.data.games[0].players[n].categories[1].total:"",category_id_1:this.prematch?"games_played":"minutes_played",category_id_2:this.prematch?"minutes_played":o.data.games[0].players[n].categories[0].categories,category_id_3:this.prematch?o.data.games[0].players[n].categories[0].categories:o.data.games[0].players[n].categories[1]?o.data.games[0].players[n].categories[1].categories:"",category_name_1:this.prematch?"Partidos Jugados":"Minutos Jugados",category_name_2:this.prematch?"Minutos Jugados":o.data.games[0].players[n].categories[0].category_name,category_name_3:this.prematch?o.data.games[0].players[n].categories[0].category_name:o.data.games[0].players[n].categories[1]?o.data.games[0].players[n].categories[1].category_name:"",showlast_category:!!o.data.games[0].players[n].categories[1],main_title:"Jugador",second_title:"Destacado",background_color_buttons:o.data.games[0].players[n].info_thumbnails.colors.background_color_buttons,background_color_cards:o.data.games[0].players[n].info_thumbnails.colors.background_color_cards,color_icon_play:o.data.games[0].players[n].info_thumbnails.colors.color_icon_play,color_next_back:o.data.games[0].players[n].info_thumbnails.colors.color_next_back,font_color:o.data.games[0].players[n].info_thumbnails.colors.font_color,font_color_card:o.data.games[0].players[n].info_thumbnails.colors.font_color_cards?o.data.games[0].players[n].info_thumbnails.colors.font_color_cards:"#FFFFFF"});this.specials=s.data.data}}},Sne={style:{margin:"0 auto",width:"100%"}},Ene={style:{margin:"0 auto",width:"100%"}};function Nne(e,a,o,s,n,i){const r=t.resolveComponent("GSCData"),c=t.resolveComponent("GSCMentionsCards"),g=t.resolveComponent("GSCSlider"),d=t.resolveComponent("GSCCard");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.templateDataGS),ref:"myDivRef2GSDa"},[o.type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(i.gridCompoClass)},[t.createElementVNode("div",{style:t.normalizeStyle(s.elementSize.width>720?"width:"+(s.elementSize.width-80)/2+"px":"width:"+(s.elementSize.width-40)+"px")},[t.createElementVNode("div",Sne,[t.createVNode(r,{type:1,prematch:!0,"click-card":!1,"team-selected":o.data.home_team_id,data:o.data,colorCardByTeam:!0,onOpenmedia:i.openmedia},null,8,["team-selected","data","onOpenmedia"])])],4),t.createElementVNode("div",{style:t.normalizeStyle(s.elementSize.width>720?"width:"+(s.elementSize.width-80)/2+"px":"width:"+(s.elementSize.width-40)+"px")},[t.createElementVNode("div",Ene,[t.createVNode(r,{type:1,prematch:!0,"click-card":!1,"team-selected":o.data.away_team_id,data:o.data,colorCardByTeam:!0,onOpenmedia:i.openmedia},null,8,["team-selected","data","onOpenmedia"])])],4)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.specialsMobile)},[t.createVNode(g,{"px-scroll":305,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd","background-color":"#172531"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.specials,(l,m)=>(t.openBlock(),t.createBlock(c,{key:m,data:l,"is-slider":!0},null,8,["data"]))),128))]),_:1})],2),t.createElementVNode("div",{class:t.normalizeClass([i.gridClass,e.$style.gridClass])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.specials,(l,m)=>(t.openBlock(),t.createBlock(c,{key:m,data:l},null,8,["data"]))),128))],2)],64)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.gridCompoClass)},[t.createElementVNode("div",{style:t.normalizeStyle(s.elementSize.width>720?"width:"+(s.elementSize.width-50)/2+"px":"width:"+(s.elementSize.width-40)+"px")},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.homeTeam,(l,m)=>(t.openBlock(),t.createBlock(d,{key:m,type:4,style:{"margin-top":"30px"},"click-card":!1,data:l,colorCard:l.color,onOnClickVideos:i.onclickPlayVideos,onOnClickCategory:i.onclickPlayVideos},null,8,["data","colorCard","onOnClickVideos","onOnClickCategory"]))),128))],4),t.createElementVNode("div",{style:t.normalizeStyle(s.elementSize.width>720?"width:"+(s.elementSize.width-50)/2+"px":"width:"+(s.elementSize.width-40)+"px")},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.awayTeam,(l,m)=>(t.openBlock(),t.createBlock(d,{key:m,type:4,style:{"margin-top":"30px"},"click-card":!1,data:l,colorCard:l.color,onOnClickVideos:i.onclickPlayVideos,onOnClickCategory:i.onclickPlayVideos},null,8,["data","colorCard","onOnClickVideos","onOnClickCategory"]))),128))],4)],2))],2)}const $ne={$style:Cne},H2=J_(kne,[["render",Nne],["__cssModules",$ne],["__scopeId","data-v-64d18036"]]),OMe="",TMe="",Bne={class:"datagame-container"},xne=Ae({__name:"GSCDatosGSMain",props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})}},emits:["openmedia"],setup(e,{emit:a}){const o=e,s=t.ref(0);t.watch(()=>o.game,i=>{s.value=i.gameId},{deep:!0,immediate:!0});function n(i){a("openmedia",i)}return(i,r)=>(t.openBlock(),t.createElementBlock("div",Bne,[e.game.game_status==4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(H2),{onOpenmedia:n,key:s.value,type:0,data:{season:e.game.seasonId,game:e.game.gameId,home_team_id:e.game.homeTeam.team_id,away_team_id:e.game.awayTeam.team_id,team_view:1}},null,8,["data"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(H2),{onOpenmedia:n,key:s.value,type:1,data:{season:e.game.seasonId,game:e.game.gameId,home_team_id:e.game.homeTeam.team_id,away_team_id:e.game.awayTeam.team_id,team_view:2}},null,8,["data"])):t.createCommentVNode("",!0)],64))]))}},[["__scopeId","data-v-ce673ad1"]]);function U2(e,a){return function(){return e.apply(a,arguments)}}const{toString:Vne}=Object.prototype,{getPrototypeOf:Cp}=Object,Rr=(e=>a=>{const o=Vne.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),la=e=>(e=e.toLowerCase(),a=>Rr(a)===e),Pr=e=>a=>typeof a===e,{isArray:Go}=Array,cn=Pr("undefined");function Ine(e){return e!==null&&!cn(e)&&e.constructor!==null&&!cn(e.constructor)&&At(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const G2=la("ArrayBuffer");function Ane(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&G2(e.buffer),a}const One=Pr("string"),At=Pr("function"),W2=Pr("number"),Dr=e=>e!==null&&typeof e=="object",Tne=e=>e===!0||e===!1,Lr=e=>{if(Rr(e)!=="object")return!1;const a=Cp(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},zne=la("Date"),Fne=la("File"),Rne=la("Blob"),Pne=la("FileList"),Dne=e=>Dr(e)&&At(e.pipe),Lne=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||At(e.append)&&((a=Rr(e))==="formdata"||a==="object"&&At(e.toString)&&e.toString()==="[object FormData]"))},jne=la("URLSearchParams"),vne=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function dn(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let s,n;if(typeof e!="object"&&(e=[e]),Go(e))for(s=0,n=e.length;s<n;s++)a.call(null,e[s],s,e);else{const i=o?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let c;for(s=0;s<r;s++)c=i[s],a.call(null,e[c],c,e)}}function q2(e,a){a=a.toLowerCase();const o=Object.keys(e);let s=o.length,n;for(;s-- >0;)if(n=o[s],a===n.toLowerCase())return n;return null}const J2=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),X2=e=>!cn(e)&&e!==J2;function kp(){const{caseless:e}=X2(this)&&this||{},a={},o=(s,n)=>{const i=e&&q2(a,n)||n;Lr(a[i])&&Lr(s)?a[i]=kp(a[i],s):Lr(s)?a[i]=kp({},s):Go(s)?a[i]=s.slice():a[i]=s};for(let s=0,n=arguments.length;s<n;s++)arguments[s]&&dn(arguments[s],o);return a}const Mne=(e,a,o,{allOwnKeys:s}={})=>(dn(a,(n,i)=>{o&&At(n)?e[i]=U2(n,o):e[i]=n},{allOwnKeys:s}),e),Hne=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Une=(e,a,o,s)=>{e.prototype=Object.create(a.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},Gne=(e,a,o,s)=>{let n,i,r;const c={};if(a=a||{},e==null)return a;do{for(n=Object.getOwnPropertyNames(e),i=n.length;i-- >0;)r=n[i],(!s||s(r,e,a))&&!c[r]&&(a[r]=e[r],c[r]=!0);e=o!==!1&&Cp(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},Wne=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const s=e.indexOf(a,o);return s!==-1&&s===o},qne=e=>{if(!e)return null;if(Go(e))return e;let a=e.length;if(!W2(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},Jne=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Cp(Uint8Array)),Xne=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const n=s.value;a.call(e,n[0],n[1])}},Zne=(e,a)=>{let o;const s=[];for(;(o=e.exec(a))!==null;)s.push(o);return s},Yne=la("HTMLFormElement"),Kne=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,s){return o.toUpperCase()+s}),Z2=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),Qne=la("RegExp"),Y2=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),s={};dn(o,(n,i)=>{let r;(r=a(n,i,e))!==!1&&(s[i]=r||n)}),Object.defineProperties(e,s)},eie=e=>{Y2(e,(a,o)=>{if(At(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const s=e[o];if(At(s)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},tie=(e,a)=>{const o={},s=n=>{n.forEach(i=>{o[i]=!0})};return Go(e)?s(e):s(String(e).split(a)),o},aie=()=>{},oie=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Sp="abcdefghijklmnopqrstuvwxyz",K2="0123456789",Q2={DIGIT:K2,ALPHA:Sp,ALPHA_DIGIT:Sp+Sp.toUpperCase()+K2},sie=(e=16,a=Q2.ALPHA_DIGIT)=>{let o="";const{length:s}=a;for(;e--;)o+=a[Math.random()*s|0];return o};function nie(e){return!!(e&&At(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const iie=e=>{const a=new Array(10),o=(s,n)=>{if(Dr(s)){if(a.indexOf(s)>=0)return;if(!("toJSON"in s)){a[n]=s;const i=Go(s)?[]:{};return dn(s,(r,c)=>{const g=o(r,n+1);!cn(g)&&(i[c]=g)}),a[n]=void 0,i}}return s};return o(e,0)},rie=la("AsyncFunction"),lie=e=>e&&(Dr(e)||At(e))&&At(e.then)&&At(e.catch),H={isArray:Go,isArrayBuffer:G2,isBuffer:Ine,isFormData:Lne,isArrayBufferView:Ane,isString:One,isNumber:W2,isBoolean:Tne,isObject:Dr,isPlainObject:Lr,isUndefined:cn,isDate:zne,isFile:Fne,isBlob:Rne,isRegExp:Qne,isFunction:At,isStream:Dne,isURLSearchParams:jne,isTypedArray:Jne,isFileList:Pne,forEach:dn,merge:kp,extend:Mne,trim:vne,stripBOM:Hne,inherits:Une,toFlatObject:Gne,kindOf:Rr,kindOfTest:la,endsWith:Wne,toArray:qne,forEachEntry:Xne,matchAll:Zne,isHTMLForm:Yne,hasOwnProperty:Z2,hasOwnProp:Z2,reduceDescriptors:Y2,freezeMethods:eie,toObjectSet:tie,toCamelCase:Kne,noop:aie,toFiniteNumber:oie,findKey:q2,global:J2,isContextDefined:X2,ALPHABET:Q2,generateString:sie,isSpecCompliantForm:nie,toJSONObject:iie,isAsyncFn:rie,isThenable:lie};function ye(e,a,o,s,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),s&&(this.request=s),n&&(this.response=n)}H.inherits(ye,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:H.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const e5=ye.prototype,t5={};["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=>{t5[e]={value:e}}),Object.defineProperties(ye,t5),Object.defineProperty(e5,"isAxiosError",{value:!0}),ye.from=(e,a,o,s,n,i)=>{const r=Object.create(e5);return H.toFlatObject(e,r,function(c){return c!==Error.prototype},c=>c!=="isAxiosError"),ye.call(r,e.message,a,o,s,n),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const cie=null;function Ep(e){return H.isPlainObject(e)||H.isArray(e)}function a5(e){return H.endsWith(e,"[]")?e.slice(0,-2):e}function o5(e,a,o){return e?e.concat(a).map(function(s,n){return s=a5(s),!o&&n?"["+s+"]":s}).join(o?".":""):a}function die(e){return H.isArray(e)&&!e.some(Ep)}const mie=H.toFlatObject(H,{},null,function(e){return/^is[A-Z]/.test(e)});function jr(e,a,o){if(!H.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=H.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,p){return!H.isUndefined(p[y])});const s=o.metaTokens,n=o.visitor||d,i=o.dots,r=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&H.isSpecCompliantForm(a);if(!H.isFunction(n))throw new TypeError("visitor must be a function");function g(y){if(y===null)return"";if(H.isDate(y))return y.toISOString();if(!c&&H.isBlob(y))throw new ye("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(y)||H.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,p,u){let f=y;if(y&&!u&&typeof y=="object"){if(H.endsWith(p,"{}"))p=s?p:p.slice(0,-2),y=JSON.stringify(y);else if(H.isArray(y)&&die(y)||(H.isFileList(y)||H.endsWith(p,"[]"))&&(f=H.toArray(y)))return p=a5(p),f.forEach(function(_,k){!(H.isUndefined(_)||_===null)&&a.append(r===!0?o5([p],k,i):r===null?p:p+"[]",g(_))}),!1}return Ep(y)?!0:(a.append(o5(u,p,i),g(y)),!1)}const l=[],m=Object.assign(mie,{defaultVisitor:d,convertValue:g,isVisitable:Ep});function h(y,p){if(!H.isUndefined(y)){if(l.indexOf(y)!==-1)throw Error("Circular reference detected in "+p.join("."));l.push(y),H.forEach(y,function(u,f){(!(H.isUndefined(u)||u===null)&&n.call(a,u,H.isString(f)?f.trim():f,p,m))===!0&&h(u,p?p.concat(f):[f])}),l.pop()}}if(!H.isObject(e))throw new TypeError("data must be an object");return h(e),a}function s5(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function Np(e,a){this._pairs=[],e&&jr(e,this,a)}const n5=Np.prototype;n5.append=function(e,a){this._pairs.push([e,a])},n5.toString=function(e){const a=e?function(o){return e.call(this,o,s5)}:s5;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function pie(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function i5(e,a,o){if(!a)return e;const s=o&&o.encode||pie,n=o&&o.serialize;let i;if(n?i=n(a,o):i=H.isURLSearchParams(a)?a.toString():new Np(a,o).toString(s),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}const r5=class{constructor(){this.handlers=[]}use(a,o,s){return this.handlers.push({fulfilled:a,rejected:o,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){H.forEach(this.handlers,function(o){o!==null&&a(o)})}},l5={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},hie=typeof URLSearchParams<"u"?URLSearchParams:Np,gie=typeof FormData<"u"?FormData:null,yie=typeof Blob<"u"?Blob:null,uie={isBrowser:!0,classes:{URLSearchParams:hie,FormData:gie,Blob:yie},protocols:["http","https","file","blob","url","data"]},c5=typeof window<"u"&&typeof document<"u",fie=(e=>c5&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),_ie=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),bie=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:c5,hasStandardBrowserEnv:fie,hasStandardBrowserWebWorkerEnv:_ie},Symbol.toStringTag,{value:"Module"})),ca={...bie,...uie};function wie(e,a){return jr(e,new ca.classes.URLSearchParams,Object.assign({visitor:function(o,s,n,i){return ca.isNode&&H.isBuffer(o)?(this.append(s,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function Cie(e){return H.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function kie(e){const a={},o=Object.keys(e);let s;const n=o.length;let i;for(s=0;s<n;s++)i=o[s],a[i]=e[i];return a}function d5(e){function a(o,s,n,i){let r=o[i++];if(r==="__proto__")return!0;const c=Number.isFinite(+r),g=i>=o.length;return r=!r&&H.isArray(n)?n.length:r,g?(H.hasOwnProp(n,r)?n[r]=[n[r],s]:n[r]=s,!c):((!n[r]||!H.isObject(n[r]))&&(n[r]=[]),a(o,s,n[r],i)&&H.isArray(n[r])&&(n[r]=kie(n[r])),!c)}if(H.isFormData(e)&&H.isFunction(e.entries)){const o={};return H.forEachEntry(e,(s,n)=>{a(Cie(s),n,o,0)}),o}return null}function Sie(e,a,o){if(H.isString(e))try{return(a||JSON.parse)(e),H.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(o||JSON.stringify)(e)}const $p={transitional:l5,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",s=o.indexOf("application/json")>-1,n=H.isObject(e);if(n&&H.isHTMLForm(e)&&(e=new FormData(e)),H.isFormData(e))return s?JSON.stringify(d5(e)):e;if(H.isArrayBuffer(e)||H.isBuffer(e)||H.isStream(e)||H.isFile(e)||H.isBlob(e))return e;if(H.isArrayBufferView(e))return e.buffer;if(H.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(n){if(o.indexOf("application/x-www-form-urlencoded")>-1)return wie(e,this.formSerializer).toString();if((i=H.isFileList(e))||o.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return jr(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return n||s?(a.setContentType("application/json",!1),Sie(e)):e}],transformResponse:[function(e){const a=this.transitional||$p.transitional,o=a&&a.forcedJSONParsing,s=this.responseType==="json";if(e&&H.isString(e)&&(o&&!this.responseType||s)){const n=!(a&&a.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(i){if(n)throw i.name==="SyntaxError"?ye.from(i,ye.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ca.classes.FormData,Blob:ca.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],e=>{$p.headers[e]={}});const Bp=$p,Eie=H.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"]),Nie=e=>{const a={};let o,s,n;return e&&e.split(`
58
58
  `).forEach(function(i){n=i.indexOf(":"),o=i.substring(0,n).trim().toLowerCase(),s=i.substring(n+1).trim(),!(!o||a[o]&&Eie[o])&&(o==="set-cookie"?a[o]?a[o].push(s):a[o]=[s]:a[o]=a[o]?a[o]+", "+s:s)}),a},m5=Symbol("internals");function mn(e){return e&&String(e).trim().toLowerCase()}function vr(e){return e===!1||e==null?e:H.isArray(e)?e.map(vr):String(e)}function $ie(e){const a=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=o.exec(e);)a[s[1]]=s[2];return a}const Bie=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function xp(e,a,o,s,n){if(H.isFunction(s))return s.call(this,a,o);if(n&&(a=o),!!H.isString(a)){if(H.isString(s))return a.indexOf(s)!==-1;if(H.isRegExp(s))return s.test(a)}}function xie(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,o,s)=>o.toUpperCase()+s)}function Vie(e,a){const o=H.toCamelCase(" "+a);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+o,{value:function(n,i,r){return this[s].call(this,a,n,i,r)},configurable:!0})})}let Mr=class{constructor(a){a&&this.set(a)}set(a,o,s){const n=this;function i(c,g,d){const l=mn(g);if(!l)throw new Error("header name must be a non-empty string");const m=H.findKey(n,l);(!m||n[m]===void 0||d===!0||d===void 0&&n[m]!==!1)&&(n[m||g]=vr(c))}const r=(c,g)=>H.forEach(c,(d,l)=>i(d,l,g));return H.isPlainObject(a)||a instanceof this.constructor?r(a,o):H.isString(a)&&(a=a.trim())&&!Bie(a)?r(Nie(a),o):a!=null&&i(o,a,s),this}get(a,o){if(a=mn(a),a){const s=H.findKey(this,a);if(s){const n=this[s];if(!o)return n;if(o===!0)return $ie(n);if(H.isFunction(o))return o.call(this,n,s);if(H.isRegExp(o))return o.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,o){if(a=mn(a),a){const s=H.findKey(this,a);return!!(s&&this[s]!==void 0&&(!o||xp(this,this[s],s,o)))}return!1}delete(a,o){const s=this;let n=!1;function i(r){if(r=mn(r),r){const c=H.findKey(s,r);c&&(!o||xp(s,s[c],c,o))&&(delete s[c],n=!0)}}return H.isArray(a)?a.forEach(i):i(a),n}clear(a){const o=Object.keys(this);let s=o.length,n=!1;for(;s--;){const i=o[s];(!a||xp(this,this[i],i,a,!0))&&(delete this[i],n=!0)}return n}normalize(a){const o=this,s={};return H.forEach(this,(n,i)=>{const r=H.findKey(s,i);if(r){o[r]=vr(n),delete o[i];return}const c=a?xie(i):String(i).trim();c!==i&&delete o[i],o[c]=vr(n),s[c]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const o=Object.create(null);return H.forEach(this,(s,n)=>{s!=null&&s!==!1&&(o[n]=a&&H.isArray(s)?s.join(", "):s)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,o])=>a+": "+o).join(`
59
59
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...o){const s=new this(a);return o.forEach(n=>s.set(n)),s}static accessor(a){const o=(this[m5]=this[m5]={accessors:{}}).accessors,s=this.prototype;function n(i){const r=mn(i);o[r]||(Vie(s,i),o[r]=!0)}return H.isArray(a)?a.forEach(n):n(a),this}};Mr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),H.reduceDescriptors(Mr.prototype,({value:e},a)=>{let o=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(s){this[o]=s}}}),H.freezeMethods(Mr);const za=Mr;function Vp(e,a){const o=this||Bp,s=a||o,n=za.from(s.headers);let i=s.data;return H.forEach(e,function(r){i=r.call(o,i,n.normalize(),a?a.status:void 0)}),n.normalize(),i}function p5(e){return!!(e&&e.__CANCEL__)}function pn(e,a,o){ye.call(this,e??"canceled",ye.ERR_CANCELED,a,o),this.name="CanceledError"}H.inherits(pn,ye,{__CANCEL__:!0});function Iie(e,a,o){const s=o.config.validateStatus;!o.status||!s||s(o.status)?e(o):a(new ye("Request failed with status code "+o.status,[ye.ERR_BAD_REQUEST,ye.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const Aie=ca.hasStandardBrowserEnv?{write(e,a,o,s,n,i){const r=[e+"="+encodeURIComponent(a)];H.isNumber(o)&&r.push("expires="+new Date(o).toGMTString()),H.isString(s)&&r.push("path="+s),H.isString(n)&&r.push("domain="+n),i===!0&&r.push("secure"),document.cookie=r.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Oie(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Tie(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function h5(e,a){return e&&!Oie(a)?Tie(e,a):a}const zie=ca.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let o;function s(n){let i=n;return e&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return o=s(window.location.href),function(n){const i=H.isString(n)?s(n):n;return i.protocol===o.protocol&&i.host===o.host}}():function(){return function(){return!0}}();function Fie(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function Rie(e,a){e=e||10;const o=new Array(e),s=new Array(e);let n=0,i=0,r;return a=a!==void 0?a:1e3,function(c){const g=Date.now(),d=s[i];r||(r=g),o[n]=c,s[n]=g;let l=i,m=0;for(;l!==n;)m+=o[l++],l=l%e;if(n=(n+1)%e,n===i&&(i=(i+1)%e),g-r<a)return;const h=d&&g-d;return h?Math.round(m*1e3/h):void 0}}function g5(e,a){let o=0;const s=Rie(50,250);return n=>{const i=n.loaded,r=n.lengthComputable?n.total:void 0,c=i-o,g=s(c),d=i<=r;o=i;const l={loaded:i,total:r,progress:r?i/r:void 0,bytes:c,rate:g||void 0,estimated:g&&r&&d?(r-i)/g:void 0,event:n};l[a?"download":"upload"]=!0,e(l)}}const Pie=typeof XMLHttpRequest<"u",Die=Pie&&function(e){return new Promise(function(a,o){let s=e.data;const n=za.from(e.headers).normalize();let{responseType:i,withXSRFToken:r}=e,c;function g(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let d;if(H.isFormData(s)){if(ca.hasStandardBrowserEnv||ca.hasStandardBrowserWebWorkerEnv)n.setContentType(!1);else if((d=n.getContentType())!==!1){const[p,...u]=d?d.split(";").map(f=>f.trim()).filter(Boolean):[];n.setContentType([p||"multipart/form-data",...u].join("; "))}}let l=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";n.set("Authorization","Basic "+btoa(p+":"+u))}const m=h5(e.baseURL,e.url);l.open(e.method.toUpperCase(),i5(m,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function h(){if(!l)return;const p=za.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),u={data:!i||i==="text"||i==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:p,config:e,request:l};Iie(function(f){a(f),g()},function(f){o(f),g()},u),l=null}if("onloadend"in l?l.onloadend=h:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(h)},l.onabort=function(){l&&(o(new ye("Request aborted",ye.ECONNABORTED,e,l)),l=null)},l.onerror=function(){o(new ye("Network Error",ye.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const u=e.transitional||l5;e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),o(new ye(p,u.clarifyTimeoutError?ye.ETIMEDOUT:ye.ECONNABORTED,e,l)),l=null},ca.hasStandardBrowserEnv&&(r&&H.isFunction(r)&&(r=r(e)),r||r!==!1&&zie(m))){const p=e.xsrfHeaderName&&e.xsrfCookieName&&Aie.read(e.xsrfCookieName);p&&n.set(e.xsrfHeaderName,p)}s===void 0&&n.setContentType(null),"setRequestHeader"in l&&H.forEach(n.toJSON(),function(p,u){l.setRequestHeader(u,p)}),H.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&i!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",g5(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",g5(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=p=>{l&&(o(!p||p.type?new pn(null,e,l):p),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const y=Fie(m);if(y&&ca.protocols.indexOf(y)===-1){o(new ye("Unsupported protocol "+y+":",ye.ERR_BAD_REQUEST,e));return}l.send(s||null)})},Ip={http:cie,xhr:Die};H.forEach(Ip,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const y5=e=>`- ${e}`,Lie=e=>H.isFunction(e)||e===null||e===!1,u5={getAdapter:e=>{e=H.isArray(e)?e:[e];const{length:a}=e;let o,s;const n={};for(let i=0;i<a;i++){o=e[i];let r;if(s=o,!Lie(o)&&(s=Ip[(r=String(o)).toLowerCase()],s===void 0))throw new ye(`Unknown adapter '${r}'`);if(s)break;n[r||"#"+i]=s}if(!s){const i=Object.entries(n).map(([c,g])=>`adapter ${c} `+(g===!1?"is not supported by the environment":"is not available in the build"));let r=a?i.length>1?`since :
60
60
  `+i.map(y5).join(`
@@ -71,7 +71,7 @@
71
71
  * Vue 3 Carousel 0.3.1
72
72
  * (c) 2023
73
73
  * @license MIT
74
- */const dt={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"}},p4={itemsToShow:{default:dt.itemsToShow,type:Number},itemsToScroll:{default:dt.itemsToScroll,type:Number},wrapAround:{default:dt.wrapAround,type:Boolean},throttle:{default:dt.throttle,type:Number},snapAlign:{default:dt.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:dt.transition,type:Number},breakpoints:{default:dt.breakpoints,type:Object},autoplay:{default:dt.autoplay,type:Number},pauseAutoplayOnHover:{default:dt.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:dt.mouseDrag,type:Boolean},touchDrag:{default:dt.touchDrag,type:Boolean},dir:{default:dt.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:dt.i18n,type:Object},settings:{default(){return{}},type:Object}};function Cye({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:s,itemsToShow:n=1}=e;if(s)return Math.max(a-1,0);let i;switch(o){case"start":i=a-n;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((n-.5)/2);break;case"center-even":i=a-Math.ceil(n/2);break;default:i=0;break}return Math.max(i,0)}function kye({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:s,itemsToShow:n=1}=e;let i=0;if(o||n>a)return i;switch(s){case"start":i=0;break;case"end":i=n-1;break;case"center":case"center-odd":i=Math.floor((n-1)/2);break;case"center-even":i=Math.floor((n-2)/2);break;default:i=0;break}return i}function Ch({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function Sye({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:s,wrapAround:n,itemsToShow:i=1}=e;let r=a;switch(s){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return n?r:Ch({val:r,max:o-i,min:0})}function h4(e){return e?e.reduce((a,o)=>{var s;return o.type===t.Fragment?[...a,...h4(o.children)]:((s=o.type)===null||s===void 0?void 0:s.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function kh({val:e,max:a,min:o=0}){return e>a?kh({val:e-(a+1),max:a,min:o}):e<o?kh({val:e+(a+1),max:a,min:o}):e}function Eye(e,a){let o;return a?function(...s){const n=this;o||(e.apply(n,s),o=!0,setTimeout(()=>o=!1,a))}:e}function Nye(e,a){let o;return function(...s){o&&clearTimeout(o),o=setTimeout(()=>{e(...s),o=null},a)}}function $ye(e="",a={}){return Object.entries(a).reduce((o,[s,n])=>o.replace(`{${s}}`,String(n)),e)}var Bye=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},dt))),a=t.inject("currentSlide",t.ref(0)),o=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},$ye(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),xye=t.defineComponent({name:"Carousel",props:p4,setup(e,{slots:a,emit:o,expose:s}){var n;const i=t.ref(null),r=t.ref([]),c=t.ref(0),g=t.ref(0),d=t.reactive(Object.assign({},dt));let l=Object.assign({},dt),m;const h=t.ref((n=e.modelValue)!==null&&n!==void 0?n:0),y=t.ref(0),p=t.ref(0),u=t.ref(0),f=t.ref(0);let _,k;t.provide("config",d),t.provide("slidesCount",g),t.provide("currentSlide",h),t.provide("maxSlide",u),t.provide("minSlide",f),t.provide("slideWidth",c);function C(){m=Object.assign({},e.breakpoints),l=Object.assign(Object.assign(Object.assign({},l),e),{i18n:Object.assign(Object.assign({},l.i18n),e.i18n),breakpoints:void 0}),E(l)}function b(){if(!m||!Object.keys(m).length)return;const S=Object.keys(m).map(T=>Number(T)).sort((T,te)=>+te-+T);let z=Object.assign({},l);S.some(T=>{const te=window.matchMedia(`(min-width: ${T}px)`).matches;return te&&(z=Object.assign(Object.assign({},z),m[T])),te}),E(z)}function E(S){Object.entries(S).forEach(([z,T])=>d[z]=T)}const x=Nye(()=>{b(),V()},16);function V(){if(!i.value)return;const S=i.value.getBoundingClientRect();c.value=S.width/d.itemsToShow}function B(){g.value<=0||(p.value=Math.ceil((g.value-1)/2),u.value=Cye({config:d,slidesCount:g.value}),f.value=kye({config:d,slidesCount:g.value}),d.wrapAround||(h.value=Ch({val:h.value,max:u.value,min:f.value})))}t.onMounted(()=>{t.nextTick(()=>V()),setTimeout(()=>V(),1e3),b(),oe(),window.addEventListener("resize",x,{passive:!0}),o("init")}),t.onUnmounted(()=>{k&&clearTimeout(k),_&&clearInterval(_),window.removeEventListener("resize",x,{passive:!0})});let $=!1;const F={x:0,y:0},A={x:0,y:0},I=t.reactive({x:0,y:0}),P=t.ref(!1),Q=t.ref(!1),K=()=>{P.value=!0},R=()=>{P.value=!1};function w(S){["INPUT","TEXTAREA","SELECT"].includes(S.target.tagName)||($=S.type==="touchstart",$||S.preventDefault(),!(!$&&S.button!==0||ee.value)&&(F.x=$?S.touches[0].clientX:S.clientX,F.y=$?S.touches[0].clientY:S.clientY,document.addEventListener($?"touchmove":"mousemove",N,!0),document.addEventListener($?"touchend":"mouseup",O,!0)))}const N=Eye(S=>{Q.value=!0,A.x=$?S.touches[0].clientX:S.clientX,A.y=$?S.touches[0].clientY:S.clientY;const z=A.x-F.x,T=A.y-F.y;I.y=T,I.x=z},d.throttle);function O(){const S=d.dir==="rtl"?-1:1,z=Math.sign(I.x)*.4,T=Math.round(I.x/c.value+z)*S;if(T&&!$){const te=Be=>{Be.stopPropagation(),window.removeEventListener("click",te,!0)};window.addEventListener("click",te,!0)}ae(h.value-T),I.x=0,I.y=0,Q.value=!1,document.removeEventListener($?"touchmove":"mousemove",N,!0),document.removeEventListener($?"touchend":"mouseup",O,!0)}function oe(){!d.autoplay||d.autoplay<=0||(_=setInterval(()=>{d.pauseAutoplayOnHover&&P.value||ie()},d.autoplay))}function se(){_&&(clearInterval(_),_=null),oe()}const ee=t.ref(!1);function ae(S){const z=d.wrapAround?S:Ch({val:S,max:u.value,min:f.value});h.value===z||ee.value||(o("slide-start",{slidingToIndex:S,currentSlideIndex:h.value,prevSlideIndex:y.value,slidesCount:g.value}),ee.value=!0,y.value=h.value,h.value=z,k=setTimeout(()=>{if(d.wrapAround){const T=kh({val:z,max:u.value,min:0});T!==h.value&&(h.value=T,o("loop",{currentSlideIndex:h.value,slidingToIndex:S}))}o("update:modelValue",h.value),o("slide-end",{currentSlideIndex:h.value,prevSlideIndex:y.value,slidesCount:g.value}),ee.value=!1,se()},d.transition))}function ie(){ae(h.value+d.itemsToScroll)}function Ee(){ae(h.value-d.itemsToScroll)}const ze={slideTo:ae,next:ie,prev:Ee};t.provide("nav",ze),t.provide("isSliding",ee);const Fe=t.computed(()=>Sye({config:d,currentSlide:h.value,slidesCount:g.value}));t.provide("slidesToScroll",Fe);const ft=t.computed(()=>{const S=d.dir==="rtl"?-1:1,z=Fe.value*c.value*S;return{transform:`translateX(${I.x-z}px)`,transition:`${ee.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${g.value*c.value}px`:"",width:"100%"}});function Re(){C(),b(),B(),V(),se()}Object.keys(p4).forEach(S=>{["modelValue"].includes(S)||t.watch(()=>e[S],Re)}),t.watch(()=>e.modelValue,S=>{S!==h.value&&ae(Number(S))}),t.watch(g,B),o("before-init"),C();const Pe={config:d,slidesCount:g,slideWidth:c,next:ie,prev:Ee,slideTo:ae,currentSlide:h,maxSlide:u,minSlide:f,middleSlide:p};s({updateBreakpointsConfigs:b,updateSlidesData:B,updateSlideWidth:V,initDefaultConfigs:C,restartCarousel:Re,slideTo:ae,next:ie,prev:Ee,nav:ze,data:Pe});const De=a.default||a.slides,Le=a.addons,je=t.reactive(Pe);return()=>{const S=h4(De==null?void 0:De(je)),z=(Le==null?void 0:Le(je))||[];S.forEach((xe,Ve)=>xe.props.index=Ve);let T=S;if(d.wrapAround){const xe=S.map((Ie,ne)=>t.cloneVNode(Ie,{index:-S.length+ne,isClone:!0,key:`clone-before-${ne}`})),Ve=S.map((Ie,ne)=>t.cloneVNode(Ie,{index:S.length+ne,isClone:!0,key:`clone-after-${ne}`}));T=[...xe,...S,...Ve]}r.value=S,g.value=Math.max(S.length,1);const te=t.h("ol",{class:"carousel__track",style:ft.value,onMousedownCapture:d.mouseDrag?w:null,onTouchstartPassiveCapture:d.touchDrag?w:null},T),Be=t.h("div",{class:"carousel__viewport"},te);return t.h("section",{ref:i,class:{carousel:!0,"is-sliding":ee.value,"is-dragging":Q.value,"is-hover":P.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:K,onMouseleave:R},[Be,z,t.h(Bye)])}}}),g4;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(g4||(g4={}));var Vye=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const o=t.inject("config",t.reactive(Object.assign({},dt))),s=t.inject("currentSlide",t.ref(0)),n=t.inject("slidesToScroll",t.ref(0)),i=t.inject("isSliding",t.ref(!1)),r=()=>e.index===s.value,c=()=>e.index===s.value-1,g=()=>e.index===s.value+1,d=()=>{const l=Math.floor(n.value),m=Math.ceil(n.value+o.itemsToShow-1);return e.index>=l&&e.index<=m};return()=>{var l;return t.h("li",{style:{width:`${100/o.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d(),"carousel__slide--active":r(),"carousel__slide--prev":c(),"carousel__slide--next":g(),"carousel__slide--sliding":i.value},"aria-hidden":!d()},(l=a.default)===null||l===void 0?void 0:l.call(a))}}});const Iye=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},Aye=e=>(t.pushScopeId("data-v-295ffea1"),e=e(),t.popScopeId(),e),Oye={class:"gsc-carousel"},Tye={key:0},zye=Aye(()=>t.createElementVNode("div",null,"no hay",-1)),Fye=[zye],Rye={class:"gsc-carousel__2d__slides"},Pye={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Dye=["fill"],Lye={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jye=["fill"],vye={class:"gsc-carousel__2d__navigation"},Mye={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Hye=["stroke"],Uye={key:1,class:"gsc-carousel__2d__navigation__pagination"},Gye=["onClick"],Wye={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},qye=["stroke"],Jye={__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(a=>a 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"},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:a,emit:o}){const s=e;t.useCssVars(p=>({"220e89df":e.slideLeftArrowBackgroundImage,"36c37615":e.slidesArrowsLeftAndRight,"37faeae8":e.slideRightArrowBackgroundImage,"1b83a9ac":e.marginTop,"1bdfba32":e.secondarySlidesOpacity}));const n=t.ref(null),i=t.ref({}),r=t.ref(0),c=t.ref(!1);t.watch(n,p=>{p&&c.value?(c.value=!1,g(s.items)):p&&p.slideTo&&p.slideTo(r.value)},{deep:!0}),t.watch(()=>s.currentItemIndex,p=>{r.value!==p&&m(p)}),t.watch(()=>s.items,p=>{n.value?g(p):c.value=!0},{immediate:!0});function g(p){if(p&&p.length&&n.value){if(s.defaultItemByProp){const u=s.items.findIndex(f=>f[s.defaultItemByProp.propName]===s.defaultItemByProp.value);u!==-1?(r.value=u,i.value=p[u]):(r.value=0,i.value=p[0])}else r.value=s.defaultItemByIndex,i.value=p[s.defaultItemByIndex];n.value.slideTo&&n.value.slideTo(r.value),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}}function d(){n.value&&n.value.next()}function l(){n.value&&n.value.prev()}function m(p){n.value&&n.value.slideTo(p)}function h(p){n.value.slideTo(p)}function y(p){const u=p.slidingToIndex<0?s.items.length-1:p.slidingToIndex===s.items.length?0:p.slidingToIndex;r.value=u,i.value=s.items[u],o("update:currentItemIndex",u),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}return a({prev:l,next:d,slideTo:m}),(p,u)=>(t.openBlock(),t.createElementBlock("div",Oye,[s.is3d?(t.openBlock(),t.createElementBlock("div",Tye,Fye)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",Rye,[t.createVNode(t.unref(xye),{ref_key:"carousel2d",ref:n,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:y},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(f,_)=>(t.openBlock(),t.createBlock(t.unref(Vye),{key:_},{default:t.withCtx(()=>[t.renderSlot(p.$slots,"default",{item:f},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:u[0]||(u[0]=f=>n.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Pye,[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,Dye)]))],2)])):t.createCommentVNode("",!0),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:u[1]||(u[1]=f=>d())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Lye,[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,jye)]))],2)])):t.createCommentVNode("",!0),t.createElementVNode("div",vye,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:u[2]||(u[2]=f=>l())},[(t.openBlock(),t.createElementBlock("svg",Mye,[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:s.arrowsColor},null,8,Hye)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",Uye,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(f,_)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${_}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${s.navigationHeight}px`,width:`${r.value===_?s.navigationActiveWidth:s.navigationActiveWidth/2}px`,borderRadius:`${s.navigationBorderRadius}px`,backgroundColor:`${r.value===_?s.navigationActiveColor:s.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:k=>h(_)},null,12,Gye))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:u[3]||(u[3]=f=>n.value.next())},[(t.openBlock(),t.createElementBlock("svg",Wye,[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:s.arrowsColor},null,8,qye)]))])):t.createCommentVNode("",!0)])],2))]))}},Xye=Iye(Jye,[["__scopeId","data-v-295ffea1"]]),Sh=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o};let y4=null;const Eh={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)y4=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),y4.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},u4=()=>{t.useCssVars(e=>({"30c6a434":e.colorBackgroundHome+"45","7fc59d92":e.colorBackgroundAway+"45","21945b84":e.colorBackgroundHome,21914993:e.colorBackgroundAway}))},f4=Eh.setup;Eh.setup=f4?(e,a)=>(u4(),f4(e,a)):u4;const yl=e=>(t.pushScopeId("data-v-947163bf"),e=e(),t.popScopeId(),e),Zye=yl(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),Yye=[Zye],Kye=yl(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Qye=["src"],e0e=yl(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),t0e=yl(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),a0e=["src"],o0e=["src"],s0e={class:"text-container"};function n0e(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(i.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},Yye,2),o.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.date)},t.toDisplayString(o.dateGame),3)):t.createCommentVNode("",!0),o.matchday!=""&&o.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.containerinfogame)},[o.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.matchcontainer)},t.toDisplayString(o.matchday),3)):t.createCommentVNode("",!0),o.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.seasoncontainer)},t.toDisplayString(o.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),Kye,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Qye),t.createElementVNode("div",{class:t.normalizeClass([i.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(i.baselogoright)},null,2),e0e,t0e,t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(i.teamlogo)},null,10,a0e),t.createElementVNode("img",{src:o.logoAway,alt:"",class:t.normalizeClass(i.logoright)},null,10,o0e),t.createElementVNode("div",s0e,[t.createElementVNode("span",{class:t.normalizeClass(i.secondline)},t.toDisplayString(o.score),3),t.createElementVNode("div",{class:t.normalizeClass(i.titlename)},t.toDisplayString(o.titleCategory),3)])],2)}const i0e=Sh(Eh,[["render",n0e],["__scopeId","data-v-947163bf"]]);let _4=null;const Nh={components:{},props:{type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},texttitle2(){const e=this.gamesContainerWidth;return e<=300?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)_4=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),_4.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},b4=()=>{t.useCssVars(e=>({a66b3a58:e.colorBackgroundHome,a6715e3a:e.colorBackgroundAway,"4117430c":e.colorBackgroundAway+"62","6896b4f4":e.colorBackgroundHome+"36"}))},w4=Nh.setup;Nh.setup=w4?(e,a)=>(b4(),w4(e,a)):b4;const ul=e=>(t.pushScopeId("data-v-cab435d8"),e=e(),t.popScopeId(),e),r0e=ul(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),l0e=ul(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),c0e=[l0e],d0e={class:"player-container"},m0e=["src"],p0e=["src"],h0e=["src"],g0e={class:"container-score"},y0e=["src"],u0e=["src"],f0e=["src"],_0e=ul(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),b0e=ul(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function w0e(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(i.thumbnailhighlights)},[r0e,t.createElementVNode("div",{class:t.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},c0e,2),t.createElementVNode("div",d0e,[o.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(i.texttitle)},t.toDisplayString(o.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(i.texttitle2)},t.toDisplayString(o.nameCategory),3)),o.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:o.photoProfile,class:t.normalizeClass(i.playerimage)},null,10,m0e)):t.createCommentVNode("",!0),o.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:o.photoProfile,alt:""},null,8,p0e)):t.createCommentVNode("",!0),o.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:o.photoProfile,class:"img-number"},null,8,h0e)):t.createCommentVNode("",!0),t.createElementVNode("div",g0e,[t.createElementVNode("div",{class:t.normalizeClass(i.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(i.teamname)},t.toDisplayString(o.nameHomeTeam),3),t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(i.teamlogo)},null,10,y0e),t.createElementVNode("span",{class:t.normalizeClass(i.teamscore)},t.toDisplayString(o.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(i.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(i.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(i.teamscore)},t.toDisplayString(o.scoreAway),3),t.createElementVNode("img",{src:o.logoAway,alt:"",class:t.normalizeClass(i.teamlogo)},null,10,u0e),t.createElementVNode("span",{class:t.normalizeClass(i.teamname)},t.toDisplayString(o.nameAwayTeam),3)],2)])]),t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,f0e),_0e,b0e],2)}const C0e=Sh(Nh,[["render",w0e],["__scopeId","data-v-cab435d8"]]),k0e={components:{GSCCarousel:Xye,GSCThumbnailHighlightGameHistoric:i0e,GSCThumbnailHighlightGamePlayer:C0e},props:{items:{type:Array,default:()=>[1,2,3]},data:{type:Object,default:()=>{}},title:{type:String,default:"TODAS SUS JUGADAS"}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{data:{immediate:!0,handler(e){this.getData(e)}}},computed:{isMobile(){return this.highlightsWidth<580},carouselProps(){return this.isMobile?{wrapAround:!0,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!1,areSlidesArrowsRounded:!1,areNavigationArrowsVisible:!1,isPaginationVisible:!0}:{wrapAround:!0,itemsToShow:1.8,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areSlidesArrowsRounded:!0,areNavigationArrowsVisible:!1}}},methods:{onclickPlayVideos(e){var a=[];e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const o=[1,2,3];let s={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[data.matchResult]:o,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(s.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",s)},play(e){this.$emit("play",e)},async getData(e){const a=wye.create({headers:{Authorization:`${this.token}`}});var o=[],s={};if(e.type=="player"){const n=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);for(let i=0;i<n.data.seasons[e.season].games_played.length;i++)Math.floor(Math.random()*n.data.seasons[e.season].games_played[i].info_thumbnails.images.background_default_games.length),s={category:0,player_id:n.data.player_id,position_id:n.data.position_id,color:n.data.info_thumbnails.colors.background_color,photo_profile:n.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+n.data.info_thumbnails.images.player_in_action[0]:"https://az755631.vo.msecnd.net/players-profile/"+n.data.player_id+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+n.data.seasons[e.season].games_played[i].home_team+".png",player_name:n.data.seasons[e.season].games_played[i].home_team_acronym+" "+n.data.seasons[e.season].games_played[i].home_team_score+" : "+n.data.seasons[e.season].games_played[i].visiting_team_score+" "+n.data.seasons[e.season].games_played[i].visiting_team_acronym,team_id:n.data.team_id,team_id_b:n.data.seasons[e.season].games_played[i].home_team,season_id:n.data.seasons[e.season].games_played[i].season_id,name:n.data.seasons[e.season].games_played[i].player_name,seasonname:n.data.seasons[e.season].name,match:n.data.seasons[e.season].games_played[i].matchday_name.replace("Matchday","Jor"),scorehome:n.data.seasons[e.season].games_played[i].home_team_score,scoreaway:n.data.seasons[e.season].games_played[i].visiting_team_score,hometeamacronym:n.data.seasons[e.season].games_played[i].home_team_acronym,visitingteamacronym:n.data.seasons[e.season].games_played[i].visiting_team_acronym,background:"https://golstatsimages.blob.core.windows.net/images-library/"+n.data.info_thumbnails.images.background_player_in_action[0],backgroundhome:n.data.seasons[e.season].games_played[i].info_thumbnails.home_colors.background_color,backgroundaway:n.data.seasons[e.season].games_played[i].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+n.data.seasons[e.season].games_played[i].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+n.data.seasons[e.season].games_played[i].visiting_team+".png",total:n.data.seasons[e.season].games_played[i].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+n.data.seasons[e.season].games_played[i].home_team+"_"+n.data.seasons[e.season].games_played[i].season_id+"_r1.jpg"},o.push(s)}else if(e.type=="historic"){const n=await a.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+e.game);for(let r=0;r<n.data.plays.length;r++)s={player:"Jornada "+n.data.plays[r][6],player_name:n.data.plays[r][4],season_id:n.data.plays[r][31],game_id:n.data.plays[r][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},o.length>0?!o.filter(c=>c.game_id===n.data.plays[r][3]).length>0&&o.push(s):o.push(s);const i=n.data.thumbnails;for(let r=0;r<o.length;r++){const c=Math.floor(Math.random()*i[o[r].game_id].info_thumbnails.images.background_default_games.length);o[r].background="https://golstatsimages.blob.core.windows.net/images-library/"+i[o[r].game_id].info_thumbnails.images.background_default_games[c],o[r].backgroundhome=i[o[r].game_id].info_thumbnails.home_colors.background_color,o[r].backgroundaway=i[o[r].game_id].info_thumbnails.away_colors.background_color,o[r].logoaway="https://az755631.vo.msecnd.net/teams-150/"+i[o[r].game_id].info_thumbnails.away_colors.team_id+".png",o[r].logohome="https://az755631.vo.msecnd.net/teams-150/"+i[o[r].game_id].info_thumbnails.home_colors.team_id+".png",o[r].match=i[o[r].game_id].matchday_name.replace("Matchday","Jor"),o[r].seasonname=i[o[r].game_id].season_name,o[r].score=i[o[r].game_id].score[0]+" - "+i[o[r].game_id].score[1],o[r].category=0}}else{const n=await a.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let i=0;i<n.data.seasons[e.season].games.length;i++){const r=Math.floor(Math.random()*n.data.seasons[e.season].games[i].info_thumbnails.images.background_default_games.length);s={category:0,game_id:n.data.seasons[e.season].games[i].game_id,photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+n.data.seasons[e.season].games[i].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+n.data.seasons[e.season].games[i].home_team+".png",player_name:n.data.seasons[e.season].games[i].home_team_acronym+" "+n.data.seasons[e.season].games[i].home_team_score+" : "+n.data.seasons[e.season].games[i].visiting_team_score+" "+n.data.seasons[e.season].games[i].visiting_team_acronym,team_id_b:n.data.seasons[e.season].games[i].home_team,season_id:n.data.seasons[e.season].games[i].season_id,name:"",seasonname:n.data.seasons[e.season].name,match:n.data.seasons[e.season].games[i].matchday_name.replace("Matchday","Jor"),score:n.data.seasons[e.season].games[i].home_team_score+" : "+n.data.seasons[e.season].games[i].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+n.data.seasons[e.season].games[i].info_thumbnails.images.background_default_games[r],backgroundhome:n.data.seasons[e.season].games[i].info_thumbnails.home_colors.background_color,backgroundaway:n.data.seasons[e.season].games[i].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+n.data.seasons[e.season].games[i].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+n.data.seasons[e.season].games[i].visiting_team+".png",total:n.data.seasons[e.season].games[i].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+n.data.seasons[e.season].games[i].home_team+"_"+n.data.seasons[e.season].games[i].season_id+"_r1.jpg"},o.push(s)}}this.printData=o},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(e=>{for(const a of e)this.highlightsWidth=a.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){this.setUpResizeObserver()}},S0e={ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function E0e(e,a,o,s,n,i){const r=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),c=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),g=t.resolveComponent("GSCCarousel");return t.openBlock(),t.createElementBlock("div",S0e,[t.createVNode(g,t.mergeProps(i.carouselProps,{items:n.printData,slideLeftArrowBackgroundImage:"linear-gradient(to right, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",slideRightArrowBackgroundImage:"linear-gradient(to left, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",secondarySlidesOpacity:"0.2"}),{default:t.withCtx(({item:d})=>[o.data.type=="team"||o.data.type=="historic"?(t.openBlock(),t.createBlock(r,{key:0,items:d,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,background:d.background,matchday:d.match,onOnclickPlayVideos:l=>i.onclickPlayVideos({data:d,type:1}),"season-name":d.seasonname,score:d.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(t.openBlock(),t.createBlock(c,{key:1,type:"player","name-player":d.name,"type-style":"game","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"type-img":"0",background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,"name-category":o.title,onOnclickPlayVideos:l=>i.onclickPlayVideos({data:d,type:2}),"logo-away":d.logoaway,"logo-home":d.logohome,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway},null,8,["name-player","color-background-home","color-background-away","background","name-home-team","name-away-team","name-category","onOnclickPlayVideos","logo-away","logo-home","score-home","photo-profile","score-away"]))]),_:1},16,["items"])],512)}const N0e=Sh(k0e,[["render",E0e]]);let C4=null;const $0e={components:{GSCHighlights:N0e,GSCPlayerTeamGame:Sb,GSCCard:Ob},props:{config:{type:Object,default:()=>{}}},computed:{gridcarrouselesitemsClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items900":"grid-carrouseles-items"},gridcarrouselesitemsitemunoClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items-itemuno900":"grid-carrouseles-items-itemuno"},gridcarrouselesitemsitemdosClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items-itemdos900":"grid-carrouseles-items-itemdos"},videopartidopltegadatosClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-datos900":"video-partido-pltega-datos"},videopartidopltegaplayersClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-players620":"video-partido-pltega-players"}},data(){return{gamesContainerWidth:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",gameInfo:{},printData:[]}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},100),this.fillData()},methods:{onclickPlayVideos(e){var a=[];e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const o=[1,2,3];let s={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[data.matchResult]:o,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(s.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",s)},openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)C4=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),C4.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async fillData(){const e=k5.create({headers:{Authorization:`${this.token}`}}),a=await e.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.config.season_id),o=a.data.games.findIndex(r=>r.game_id===this.config.game);this.gameInfo=a.data.games[o];var s=[],n={},i=await e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+this.config.season_id+"/games/"+this.config.game);for(let r=0;r<i.data.games[0].players.length;r++){const c=Math.floor(Math.random()*i.data.games[0].players[r].info_thumbnails.images.background_player_in_action.length),g=Math.floor(Math.random()*i.data.games[0].players[r].info_thumbnails.images.player_in_action.length);n={background_color_buttons:i.data.games[0].players[r].info_thumbnails.colors.background_color_buttons,background_color_cards:i.data.games[0].players[r].info_thumbnails.colors.background_color_cards,color_icon_play:i.data.games[0].players[r].info_thumbnails.colors.color_icon_play,color_next_back:i.data.games[0].players[r].info_thumbnails.colors.color_next_back,font_color:i.data.games[0].players[r].info_thumbnails.colors.font_color,colorbackgroundhome:i.data.games[0].players[r].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:i.data.games[0].players[r].player_name,background:i.data.games[0].players[r].info_thumbnails.images.background_player_in_action[c]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[r].info_thumbnails.images.background_player_in_action[c]:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[r].info_thumbnails.images.background_default_players[0],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",logohome:i.data.games[0].players[r].team_logo,photoprofile:i.data.games[0].players[r].info_thumbnails.images.player_in_action[g]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[r].info_thumbnails.images.player_in_action[g]:`https://az755631.vo.msecnd.net/players-profile/${i.data.games[0].players[r].player_id}.png`,logoaway:"",scoreaway:"",scorehome:"",game_id:i.data.games[0].game_id,season_id:i.data.games[0].players[r].season_id,category:0,team_id:i.data.games[0].players[r].team_id},s.push(n)}this.printData=s}}},B0e=e=>(t.pushScopeId("data-v-9946e369"),e=e(),t.popScopeId(),e),x0e={ref:"gamesContainer",class:"container"},V0e={class:"video-partido-container"},I0e={class:"video-partido-higthlights"},A0e=B0e(()=>t.createElementVNode("div",{class:"title-video-datos"},"Este torneo:",-1)),O0e={class:"video-partido-pltega-games"},T0e={class:"video-partido-pltega-games-team"};function z0e(e,a,o,s,n,i){const r=t.resolveComponent("GSCHighlights"),c=t.resolveComponent("GSCPlayerTeamGame"),g=t.resolveComponent("GSCCard");return t.openBlock(),t.createElementBlock("div",x0e,[t.createElementVNode("div",V0e,[t.createElementVNode("div",I0e,[t.createVNode(r,{onOpenmedia:i.openmedia,data:{game:o.config.game,season:o.config.season_id,type:"historic"}},null,8,["onOpenmedia","data"])]),t.createElementVNode("div",{class:t.normalizeClass(i.videopartidopltegaplayersClass)},[t.createVNode(c,{onOpenmedia:i.openmedia,style:{"margin-top":"0px"},"background-color":"#172531",type:3,"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",title:"Jugadores (sus mejores jugadas):",data:{season:o.config.season_id,game:o.config.game,isPrematch:1},onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","data","onOnClickVideos","onOnClickCard"])],2),t.createElementVNode("div",{class:t.normalizeClass(i.videopartidopltegadatosClass)},[A0e,t.createElementVNode("div",{class:t.normalizeClass(i.gridcarrouselesitemsClass)},[t.createElementVNode("div",{class:t.normalizeClass(i.gridcarrouselesitemsitemunoClass)},[n.printData[0]?(t.openBlock(),t.createBlock(g,{key:0,type:1,onOnClickVideos:a[0]||(a[0]=d=>i.onclickPlayVideos({data:n.printData[0],type:3})),onOnClickCard:a[1]||(a[1]=d=>i.onclickPlayVideos({data:n.printData[0],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:n.printData[0].colorbackgroundhome,"background-img":n.printData[0].background,data:{team_name:n.gameInfo.home_team_name,player_photo:n.printData[0].photoprofile,team_id:n.gameInfo.home_team,background_color_buttons:n.printData[0].background_color_buttons,background_color_cards:n.printData[0].background_color_cards,color_icon_play:n.printData[0].color_icon_play,color_next_back:n.printData[0].color_next_back,font_color:n.printData[0].font_color}},null,8,["backgroundColor","background-img","data"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(i.gridcarrouselesitemsitemdosClass)},[n.printData[1]?(t.openBlock(),t.createBlock(g,{key:0,type:1,onOnClickVideos:a[2]||(a[2]=d=>i.onclickPlayVideos({data:n.printData[1],type:3})),onOnClickCard:a[3]||(a[3]=d=>i.onclickPlayVideos({data:n.printData[1],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:n.printData[1].colorbackgroundhome,"background-img":n.printData[1].background,data:{team_name:n.gameInfo.visiting_team_name,player_photo:n.printData[1].photoprofile,team_id:n.gameInfo.visiting_team,background_color_buttons:n.printData[1].background_color_buttons,background_color_cards:n.printData[1].background_color_cards,color_icon_play:n.printData[1].color_icon_play,color_next_back:n.printData[1].color_next_back,font_color:n.printData[1].font_color}},null,8,["backgroundColor","background-img","data"])):t.createCommentVNode("",!0)],2)],2)],2),t.createElementVNode("div",O0e,[t.createVNode(c,{onOpenmedia:i.openmedia,style:{"margin-top":"0px"},"background-color":"#172531",type:1,"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",title:"Jugadas específicas "+n.gameInfo.home_team_name+":",data:{season:o.config.season_id,team:n.gameInfo.home_team,isPrematch:1},onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","title","data","onOnClickVideos","onOnClickCard"])]),t.createElementVNode("div",T0e,[t.createVNode(c,{onOpenmedia:i.openmedia,style:{"margin-top":"0px"},"background-color":"#172531",type:1,"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",title:"Jugadas específicas "+n.gameInfo.visiting_team_name+":",data:{season:o.config.season_id,team:n.gameInfo.visiting_team,isPrematch:1},onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","title","data","onOnClickVideos","onOnClickCard"])])])],512)}const F0e={components:{GSCVideoGamePreMatch:Gr($0e,[["render",z0e],["__scopeId","data-v-9946e369"]]),GSCVideoGamePostMatch:oge},props:{type:{type:String,default:"Prematch"},config:{type:Object,default:()=>{}}},data(){return{}},computed:{},methods:{openmedia(e){this.$emit("openmedia",e)}}},R0e={style:{margin:"0 auto"}};function P0e(e,a,o,s,n,i){const r=t.resolveComponent("GSCVideoGamePreMatch"),c=t.resolveComponent("GSCVideoGamePostMatch");return t.openBlock(),t.createElementBlock("div",R0e,[o.type==="Prematch"?(t.openBlock(),t.createBlock(r,{key:0,config:o.config,onOpenmedia:i.openmedia},null,8,["config","onOpenmedia"])):t.createCommentVNode("",!0),o.type==="Postmatch"?(t.openBlock(),t.createBlock(c,{key:1,config:o.config,onOpenmedia:i.openmedia},null,8,["config","onOpenmedia"])):t.createCommentVNode("",!0)])}const k4=Gr(F0e,[["render",P0e],["__scopeId","data-v-e9c7ad78"]]),MMe="",HMe="",D0e={class:"datagame-container"},L0e=Ae({__name:"GSCVideoGame",props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})}},emits:["openmedia"],setup(e,{emit:a}){const o=e,s=t.ref(0);t.watch(()=>o.game,i=>{s.value=i.gameId},{deep:!0,immediate:!0});function n(i){a("openmedia",i)}return(i,r)=>(t.openBlock(),t.createElementBlock("div",D0e,[e.game.status==4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(k4),{onOpenmedia:n,key:s.value,type:"Prematch",config:{season_id:e.game.seasonId,game:e.game.gameId}},null,8,["config"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(k4),{onOpenmedia:n,key:s.value,type:"Postmatch",config:{season_id:e.game.seasonId,game:e.game.gameId}},null,8,["config"])):t.createCommentVNode("",!0)],64))]))}},[["__scopeId","data-v-a3d46bfe"]]),j0e=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},$h={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},S4=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},E4=$h.setup;$h.setup=E4?(e,a)=>(S4(),E4(e,a)):S4;const v0e={ref:"gscScrollableContainer",class:"scrollable-container"},M0e={class:"scrollable-arrows"},H0e=["width","height","viewBox"],U0e=["stroke"],G0e={class:"scrollable-wrapper"},W0e={class:"scrollable-arrows"},q0e=["width","height","viewBox"],J0e=["stroke"];function X0e(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",v0e,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[t.createElementVNode("div",M0e,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:o.arrowsColor},null,8,U0e)],8,H0e))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[t.createElementVNode("div",G0e,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[t.createElementVNode("div",W0e,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:o.arrowsColor},null,8,J0e)],8,q0e))])],2)):t.createCommentVNode("",!0)],512)}const Z0e=j0e($h,[["render",X0e],["__scopeId","data-v-b548a08d"]]);function N4(e,a){return function(){return e.apply(a,arguments)}}const{toString:Y0e}=Object.prototype,{getPrototypeOf:Bh}=Object,fl=(e=>a=>{const o=Y0e.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),ga=e=>(e=e.toLowerCase(),a=>fl(a)===e),_l=e=>a=>typeof a===e,{isArray:Qo}=Array,En=_l("undefined");function K0e(e){return e!==null&&!En(e)&&e.constructor!==null&&!En(e.constructor)&&zt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const $4=ga("ArrayBuffer");function Q0e(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&$4(e.buffer),a}const eue=_l("string"),zt=_l("function"),B4=_l("number"),bl=e=>e!==null&&typeof e=="object",tue=e=>e===!0||e===!1,wl=e=>{if(fl(e)!=="object")return!1;const a=Bh(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},aue=ga("Date"),oue=ga("File"),sue=ga("Blob"),nue=ga("FileList"),iue=e=>bl(e)&&zt(e.pipe),rue=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||zt(e.append)&&((a=fl(e))==="formdata"||a==="object"&&zt(e.toString)&&e.toString()==="[object FormData]"))},lue=ga("URLSearchParams"),cue=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Nn(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let s,n;if(typeof e!="object"&&(e=[e]),Qo(e))for(s=0,n=e.length;s<n;s++)a.call(null,e[s],s,e);else{const i=o?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let c;for(s=0;s<r;s++)c=i[s],a.call(null,e[c],c,e)}}function x4(e,a){a=a.toLowerCase();const o=Object.keys(e);let s=o.length,n;for(;s-- >0;)if(n=o[s],a===n.toLowerCase())return n;return null}const V4=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),I4=e=>!En(e)&&e!==V4;function xh(){const{caseless:e}=I4(this)&&this||{},a={},o=(s,n)=>{const i=e&&x4(a,n)||n;wl(a[i])&&wl(s)?a[i]=xh(a[i],s):wl(s)?a[i]=xh({},s):Qo(s)?a[i]=s.slice():a[i]=s};for(let s=0,n=arguments.length;s<n;s++)arguments[s]&&Nn(arguments[s],o);return a}const due=(e,a,o,{allOwnKeys:s}={})=>(Nn(a,(n,i)=>{o&&zt(n)?e[i]=N4(n,o):e[i]=n},{allOwnKeys:s}),e),mue=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),pue=(e,a,o,s)=>{e.prototype=Object.create(a.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},hue=(e,a,o,s)=>{let n,i,r;const c={};if(a=a||{},e==null)return a;do{for(n=Object.getOwnPropertyNames(e),i=n.length;i-- >0;)r=n[i],(!s||s(r,e,a))&&!c[r]&&(a[r]=e[r],c[r]=!0);e=o!==!1&&Bh(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},gue=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const s=e.indexOf(a,o);return s!==-1&&s===o},yue=e=>{if(!e)return null;if(Qo(e))return e;let a=e.length;if(!B4(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},uue=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Bh(Uint8Array)),fue=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const n=s.value;a.call(e,n[0],n[1])}},_ue=(e,a)=>{let o;const s=[];for(;(o=e.exec(a))!==null;)s.push(o);return s},bue=ga("HTMLFormElement"),wue=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,s){return o.toUpperCase()+s}),A4=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),Cue=ga("RegExp"),O4=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),s={};Nn(o,(n,i)=>{let r;(r=a(n,i,e))!==!1&&(s[i]=r||n)}),Object.defineProperties(e,s)},kue=e=>{O4(e,(a,o)=>{if(zt(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const s=e[o];if(zt(s)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},Sue=(e,a)=>{const o={},s=n=>{n.forEach(i=>{o[i]=!0})};return Qo(e)?s(e):s(String(e).split(a)),o},Eue=()=>{},Nue=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Vh="abcdefghijklmnopqrstuvwxyz",T4="0123456789",z4={DIGIT:T4,ALPHA:Vh,ALPHA_DIGIT:Vh+Vh.toUpperCase()+T4},$ue=(e=16,a=z4.ALPHA_DIGIT)=>{let o="";const{length:s}=a;for(;e--;)o+=a[Math.random()*s|0];return o};function Bue(e){return!!(e&&zt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const xue=e=>{const a=new Array(10),o=(s,n)=>{if(bl(s)){if(a.indexOf(s)>=0)return;if(!("toJSON"in s)){a[n]=s;const i=Qo(s)?[]:{};return Nn(s,(r,c)=>{const g=o(r,n+1);!En(g)&&(i[c]=g)}),a[n]=void 0,i}}return s};return o(e,0)},Vue=ga("AsyncFunction"),Iue=e=>e&&(bl(e)||zt(e))&&zt(e.then)&&zt(e.catch),W={isArray:Qo,isArrayBuffer:$4,isBuffer:K0e,isFormData:rue,isArrayBufferView:Q0e,isString:eue,isNumber:B4,isBoolean:tue,isObject:bl,isPlainObject:wl,isUndefined:En,isDate:aue,isFile:oue,isBlob:sue,isRegExp:Cue,isFunction:zt,isStream:iue,isURLSearchParams:lue,isTypedArray:uue,isFileList:nue,forEach:Nn,merge:xh,extend:due,trim:cue,stripBOM:mue,inherits:pue,toFlatObject:hue,kindOf:fl,kindOfTest:ga,endsWith:gue,toArray:yue,forEachEntry:fue,matchAll:_ue,isHTMLForm:bue,hasOwnProperty:A4,hasOwnProp:A4,reduceDescriptors:O4,freezeMethods:kue,toObjectSet:Sue,toCamelCase:wue,noop:Eue,toFiniteNumber:Nue,findKey:x4,global:V4,isContextDefined:I4,ALPHABET:z4,generateString:$ue,isSpecCompliantForm:Bue,toJSONObject:xue,isAsyncFn:Vue,isThenable:Iue};function _e(e,a,o,s,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),s&&(this.request=s),n&&(this.response=n)}W.inherits(_e,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:W.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const F4=_e.prototype,R4={};["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=>{R4[e]={value:e}}),Object.defineProperties(_e,R4),Object.defineProperty(F4,"isAxiosError",{value:!0}),_e.from=(e,a,o,s,n,i)=>{const r=Object.create(F4);return W.toFlatObject(e,r,function(c){return c!==Error.prototype},c=>c!=="isAxiosError"),_e.call(r,e.message,a,o,s,n),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const Aue=null;function Ih(e){return W.isPlainObject(e)||W.isArray(e)}function P4(e){return W.endsWith(e,"[]")?e.slice(0,-2):e}function D4(e,a,o){return e?e.concat(a).map(function(s,n){return s=P4(s),!o&&n?"["+s+"]":s}).join(o?".":""):a}function Oue(e){return W.isArray(e)&&!e.some(Ih)}const Tue=W.toFlatObject(W,{},null,function(e){return/^is[A-Z]/.test(e)});function Cl(e,a,o){if(!W.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=W.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,p){return!W.isUndefined(p[y])});const s=o.metaTokens,n=o.visitor||d,i=o.dots,r=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&W.isSpecCompliantForm(a);if(!W.isFunction(n))throw new TypeError("visitor must be a function");function g(y){if(y===null)return"";if(W.isDate(y))return y.toISOString();if(!c&&W.isBlob(y))throw new _e("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(y)||W.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,p,u){let f=y;if(y&&!u&&typeof y=="object"){if(W.endsWith(p,"{}"))p=s?p:p.slice(0,-2),y=JSON.stringify(y);else if(W.isArray(y)&&Oue(y)||(W.isFileList(y)||W.endsWith(p,"[]"))&&(f=W.toArray(y)))return p=P4(p),f.forEach(function(_,k){!(W.isUndefined(_)||_===null)&&a.append(r===!0?D4([p],k,i):r===null?p:p+"[]",g(_))}),!1}return Ih(y)?!0:(a.append(D4(u,p,i),g(y)),!1)}const l=[],m=Object.assign(Tue,{defaultVisitor:d,convertValue:g,isVisitable:Ih});function h(y,p){if(!W.isUndefined(y)){if(l.indexOf(y)!==-1)throw Error("Circular reference detected in "+p.join("."));l.push(y),W.forEach(y,function(u,f){(!(W.isUndefined(u)||u===null)&&n.call(a,u,W.isString(f)?f.trim():f,p,m))===!0&&h(u,p?p.concat(f):[f])}),l.pop()}}if(!W.isObject(e))throw new TypeError("data must be an object");return h(e),a}function L4(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function Ah(e,a){this._pairs=[],e&&Cl(e,this,a)}const j4=Ah.prototype;j4.append=function(e,a){this._pairs.push([e,a])},j4.toString=function(e){const a=e?function(o){return e.call(this,o,L4)}:L4;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function zue(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function v4(e,a,o){if(!a)return e;const s=o&&o.encode||zue,n=o&&o.serialize;let i;if(n?i=n(a,o):i=W.isURLSearchParams(a)?a.toString():new Ah(a,o).toString(s),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}const M4=class{constructor(){this.handlers=[]}use(e,a,o){return this.handlers.push({fulfilled:e,rejected:a,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){W.forEach(this.handlers,function(a){a!==null&&e(a)})}},H4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Fue=typeof URLSearchParams<"u"?URLSearchParams:Ah,Rue=typeof FormData<"u"?FormData:null,Pue=typeof Blob<"u"?Blob:null,Due={isBrowser:!0,classes:{URLSearchParams:Fue,FormData:Rue,Blob:Pue},protocols:["http","https","file","blob","url","data"]},U4=typeof window<"u"&&typeof document<"u",Lue=(e=>U4&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),jue=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),vue=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:U4,hasStandardBrowserEnv:Lue,hasStandardBrowserWebWorkerEnv:jue},Symbol.toStringTag,{value:"Module"})),ya={...vue,...Due};function Mue(e,a){return Cl(e,new ya.classes.URLSearchParams,Object.assign({visitor:function(o,s,n,i){return ya.isNode&&W.isBuffer(o)?(this.append(s,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function Hue(e){return W.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function Uue(e){const a={},o=Object.keys(e);let s;const n=o.length;let i;for(s=0;s<n;s++)i=o[s],a[i]=e[i];return a}function G4(e){function a(o,s,n,i){let r=o[i++];if(r==="__proto__")return!0;const c=Number.isFinite(+r),g=i>=o.length;return r=!r&&W.isArray(n)?n.length:r,g?(W.hasOwnProp(n,r)?n[r]=[n[r],s]:n[r]=s,!c):((!n[r]||!W.isObject(n[r]))&&(n[r]=[]),a(o,s,n[r],i)&&W.isArray(n[r])&&(n[r]=Uue(n[r])),!c)}if(W.isFormData(e)&&W.isFunction(e.entries)){const o={};return W.forEachEntry(e,(s,n)=>{a(Hue(s),n,o,0)}),o}return null}function Gue(e,a,o){if(W.isString(e))try{return(a||JSON.parse)(e),W.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(o||JSON.stringify)(e)}const Oh={transitional:H4,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",s=o.indexOf("application/json")>-1,n=W.isObject(e);if(n&&W.isHTMLForm(e)&&(e=new FormData(e)),W.isFormData(e))return s?JSON.stringify(G4(e)):e;if(W.isArrayBuffer(e)||W.isBuffer(e)||W.isStream(e)||W.isFile(e)||W.isBlob(e))return e;if(W.isArrayBufferView(e))return e.buffer;if(W.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(n){if(o.indexOf("application/x-www-form-urlencoded")>-1)return Mue(e,this.formSerializer).toString();if((i=W.isFileList(e))||o.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return Cl(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return n||s?(a.setContentType("application/json",!1),Gue(e)):e}],transformResponse:[function(e){const a=this.transitional||Oh.transitional,o=a&&a.forcedJSONParsing,s=this.responseType==="json";if(e&&W.isString(e)&&(o&&!this.responseType||s)){const n=!(a&&a.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(i){if(n)throw i.name==="SyntaxError"?_e.from(i,_e.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ya.classes.FormData,Blob:ya.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],e=>{Oh.headers[e]={}});const Th=Oh,Wue=W.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"]),que=e=>{const a={};let o,s,n;return e&&e.split(`
74
+ */const dt={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"}},p4={itemsToShow:{default:dt.itemsToShow,type:Number},itemsToScroll:{default:dt.itemsToScroll,type:Number},wrapAround:{default:dt.wrapAround,type:Boolean},throttle:{default:dt.throttle,type:Number},snapAlign:{default:dt.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:dt.transition,type:Number},breakpoints:{default:dt.breakpoints,type:Object},autoplay:{default:dt.autoplay,type:Number},pauseAutoplayOnHover:{default:dt.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:dt.mouseDrag,type:Boolean},touchDrag:{default:dt.touchDrag,type:Boolean},dir:{default:dt.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:dt.i18n,type:Object},settings:{default(){return{}},type:Object}};function Cye({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:s,itemsToShow:n=1}=e;if(s)return Math.max(a-1,0);let i;switch(o){case"start":i=a-n;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((n-.5)/2);break;case"center-even":i=a-Math.ceil(n/2);break;default:i=0;break}return Math.max(i,0)}function kye({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:s,itemsToShow:n=1}=e;let i=0;if(o||n>a)return i;switch(s){case"start":i=0;break;case"end":i=n-1;break;case"center":case"center-odd":i=Math.floor((n-1)/2);break;case"center-even":i=Math.floor((n-2)/2);break;default:i=0;break}return i}function Ch({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function Sye({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:s,wrapAround:n,itemsToShow:i=1}=e;let r=a;switch(s){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return n?r:Ch({val:r,max:o-i,min:0})}function h4(e){return e?e.reduce((a,o)=>{var s;return o.type===t.Fragment?[...a,...h4(o.children)]:((s=o.type)===null||s===void 0?void 0:s.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function kh({val:e,max:a,min:o=0}){return e>a?kh({val:e-(a+1),max:a,min:o}):e<o?kh({val:e+(a+1),max:a,min:o}):e}function Eye(e,a){let o;return a?function(...s){const n=this;o||(e.apply(n,s),o=!0,setTimeout(()=>o=!1,a))}:e}function Nye(e,a){let o;return function(...s){o&&clearTimeout(o),o=setTimeout(()=>{e(...s),o=null},a)}}function $ye(e="",a={}){return Object.entries(a).reduce((o,[s,n])=>o.replace(`{${s}}`,String(n)),e)}var Bye=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},dt))),a=t.inject("currentSlide",t.ref(0)),o=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},$ye(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),xye=t.defineComponent({name:"Carousel",props:p4,setup(e,{slots:a,emit:o,expose:s}){var n;const i=t.ref(null),r=t.ref([]),c=t.ref(0),g=t.ref(0),d=t.reactive(Object.assign({},dt));let l=Object.assign({},dt),m;const h=t.ref((n=e.modelValue)!==null&&n!==void 0?n:0),y=t.ref(0),p=t.ref(0),u=t.ref(0),f=t.ref(0);let _,k;t.provide("config",d),t.provide("slidesCount",g),t.provide("currentSlide",h),t.provide("maxSlide",u),t.provide("minSlide",f),t.provide("slideWidth",c);function C(){m=Object.assign({},e.breakpoints),l=Object.assign(Object.assign(Object.assign({},l),e),{i18n:Object.assign(Object.assign({},l.i18n),e.i18n),breakpoints:void 0}),E(l)}function b(){if(!m||!Object.keys(m).length)return;const S=Object.keys(m).map(T=>Number(T)).sort((T,te)=>+te-+T);let z=Object.assign({},l);S.some(T=>{const te=window.matchMedia(`(min-width: ${T}px)`).matches;return te&&(z=Object.assign(Object.assign({},z),m[T])),te}),E(z)}function E(S){Object.entries(S).forEach(([z,T])=>d[z]=T)}const x=Nye(()=>{b(),V()},16);function V(){if(!i.value)return;const S=i.value.getBoundingClientRect();c.value=S.width/d.itemsToShow}function B(){g.value<=0||(p.value=Math.ceil((g.value-1)/2),u.value=Cye({config:d,slidesCount:g.value}),f.value=kye({config:d,slidesCount:g.value}),d.wrapAround||(h.value=Ch({val:h.value,max:u.value,min:f.value})))}t.onMounted(()=>{t.nextTick(()=>V()),setTimeout(()=>V(),1e3),b(),oe(),window.addEventListener("resize",x,{passive:!0}),o("init")}),t.onUnmounted(()=>{k&&clearTimeout(k),_&&clearInterval(_),window.removeEventListener("resize",x,{passive:!0})});let $=!1;const F={x:0,y:0},A={x:0,y:0},I=t.reactive({x:0,y:0}),P=t.ref(!1),Q=t.ref(!1),K=()=>{P.value=!0},R=()=>{P.value=!1};function w(S){["INPUT","TEXTAREA","SELECT"].includes(S.target.tagName)||($=S.type==="touchstart",$||S.preventDefault(),!(!$&&S.button!==0||ee.value)&&(F.x=$?S.touches[0].clientX:S.clientX,F.y=$?S.touches[0].clientY:S.clientY,document.addEventListener($?"touchmove":"mousemove",N,!0),document.addEventListener($?"touchend":"mouseup",O,!0)))}const N=Eye(S=>{Q.value=!0,A.x=$?S.touches[0].clientX:S.clientX,A.y=$?S.touches[0].clientY:S.clientY;const z=A.x-F.x,T=A.y-F.y;I.y=T,I.x=z},d.throttle);function O(){const S=d.dir==="rtl"?-1:1,z=Math.sign(I.x)*.4,T=Math.round(I.x/c.value+z)*S;if(T&&!$){const te=Be=>{Be.stopPropagation(),window.removeEventListener("click",te,!0)};window.addEventListener("click",te,!0)}ae(h.value-T),I.x=0,I.y=0,Q.value=!1,document.removeEventListener($?"touchmove":"mousemove",N,!0),document.removeEventListener($?"touchend":"mouseup",O,!0)}function oe(){!d.autoplay||d.autoplay<=0||(_=setInterval(()=>{d.pauseAutoplayOnHover&&P.value||ie()},d.autoplay))}function se(){_&&(clearInterval(_),_=null),oe()}const ee=t.ref(!1);function ae(S){const z=d.wrapAround?S:Ch({val:S,max:u.value,min:f.value});h.value===z||ee.value||(o("slide-start",{slidingToIndex:S,currentSlideIndex:h.value,prevSlideIndex:y.value,slidesCount:g.value}),ee.value=!0,y.value=h.value,h.value=z,k=setTimeout(()=>{if(d.wrapAround){const T=kh({val:z,max:u.value,min:0});T!==h.value&&(h.value=T,o("loop",{currentSlideIndex:h.value,slidingToIndex:S}))}o("update:modelValue",h.value),o("slide-end",{currentSlideIndex:h.value,prevSlideIndex:y.value,slidesCount:g.value}),ee.value=!1,se()},d.transition))}function ie(){ae(h.value+d.itemsToScroll)}function Ee(){ae(h.value-d.itemsToScroll)}const ze={slideTo:ae,next:ie,prev:Ee};t.provide("nav",ze),t.provide("isSliding",ee);const Fe=t.computed(()=>Sye({config:d,currentSlide:h.value,slidesCount:g.value}));t.provide("slidesToScroll",Fe);const ft=t.computed(()=>{const S=d.dir==="rtl"?-1:1,z=Fe.value*c.value*S;return{transform:`translateX(${I.x-z}px)`,transition:`${ee.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${g.value*c.value}px`:"",width:"100%"}});function Re(){C(),b(),B(),V(),se()}Object.keys(p4).forEach(S=>{["modelValue"].includes(S)||t.watch(()=>e[S],Re)}),t.watch(()=>e.modelValue,S=>{S!==h.value&&ae(Number(S))}),t.watch(g,B),o("before-init"),C();const Pe={config:d,slidesCount:g,slideWidth:c,next:ie,prev:Ee,slideTo:ae,currentSlide:h,maxSlide:u,minSlide:f,middleSlide:p};s({updateBreakpointsConfigs:b,updateSlidesData:B,updateSlideWidth:V,initDefaultConfigs:C,restartCarousel:Re,slideTo:ae,next:ie,prev:Ee,nav:ze,data:Pe});const De=a.default||a.slides,Le=a.addons,je=t.reactive(Pe);return()=>{const S=h4(De==null?void 0:De(je)),z=(Le==null?void 0:Le(je))||[];S.forEach((xe,Ve)=>xe.props.index=Ve);let T=S;if(d.wrapAround){const xe=S.map((Ie,ne)=>t.cloneVNode(Ie,{index:-S.length+ne,isClone:!0,key:`clone-before-${ne}`})),Ve=S.map((Ie,ne)=>t.cloneVNode(Ie,{index:S.length+ne,isClone:!0,key:`clone-after-${ne}`}));T=[...xe,...S,...Ve]}r.value=S,g.value=Math.max(S.length,1);const te=t.h("ol",{class:"carousel__track",style:ft.value,onMousedownCapture:d.mouseDrag?w:null,onTouchstartPassiveCapture:d.touchDrag?w:null},T),Be=t.h("div",{class:"carousel__viewport"},te);return t.h("section",{ref:i,class:{carousel:!0,"is-sliding":ee.value,"is-dragging":Q.value,"is-hover":P.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:K,onMouseleave:R},[Be,z,t.h(Bye)])}}}),g4;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(g4||(g4={}));var Vye=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const o=t.inject("config",t.reactive(Object.assign({},dt))),s=t.inject("currentSlide",t.ref(0)),n=t.inject("slidesToScroll",t.ref(0)),i=t.inject("isSliding",t.ref(!1)),r=()=>e.index===s.value,c=()=>e.index===s.value-1,g=()=>e.index===s.value+1,d=()=>{const l=Math.floor(n.value),m=Math.ceil(n.value+o.itemsToShow-1);return e.index>=l&&e.index<=m};return()=>{var l;return t.h("li",{style:{width:`${100/o.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d(),"carousel__slide--active":r(),"carousel__slide--prev":c(),"carousel__slide--next":g(),"carousel__slide--sliding":i.value},"aria-hidden":!d()},(l=a.default)===null||l===void 0?void 0:l.call(a))}}});const Iye=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},Aye=e=>(t.pushScopeId("data-v-295ffea1"),e=e(),t.popScopeId(),e),Oye={class:"gsc-carousel"},Tye={key:0},zye=Aye(()=>t.createElementVNode("div",null,"no hay",-1)),Fye=[zye],Rye={class:"gsc-carousel__2d__slides"},Pye={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Dye=["fill"],Lye={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jye=["fill"],vye={class:"gsc-carousel__2d__navigation"},Mye={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Hye=["stroke"],Uye={key:1,class:"gsc-carousel__2d__navigation__pagination"},Gye=["onClick"],Wye={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},qye=["stroke"],Jye={__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(a=>a 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"},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:a,emit:o}){const s=e;t.useCssVars(p=>({"220e89df":e.slideLeftArrowBackgroundImage,"36c37615":e.slidesArrowsLeftAndRight,"37faeae8":e.slideRightArrowBackgroundImage,"1b83a9ac":e.marginTop,"1bdfba32":e.secondarySlidesOpacity}));const n=t.ref(null),i=t.ref({}),r=t.ref(0),c=t.ref(!1);t.watch(n,p=>{p&&c.value?(c.value=!1,g(s.items)):p&&p.slideTo&&p.slideTo(r.value)},{deep:!0}),t.watch(()=>s.currentItemIndex,p=>{r.value!==p&&m(p)}),t.watch(()=>s.items,p=>{n.value?g(p):c.value=!0},{immediate:!0});function g(p){if(p&&p.length&&n.value){if(s.defaultItemByProp){const u=s.items.findIndex(f=>f[s.defaultItemByProp.propName]===s.defaultItemByProp.value);u!==-1?(r.value=u,i.value=p[u]):(r.value=0,i.value=p[0])}else r.value=s.defaultItemByIndex,i.value=p[s.defaultItemByIndex];n.value.slideTo&&n.value.slideTo(r.value),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}}function d(){n.value&&n.value.next()}function l(){n.value&&n.value.prev()}function m(p){n.value&&n.value.slideTo(p)}function h(p){n.value.slideTo(p)}function y(p){const u=p.slidingToIndex<0?s.items.length-1:p.slidingToIndex===s.items.length?0:p.slidingToIndex;r.value=u,i.value=s.items[u],o("update:currentItemIndex",u),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}return a({prev:l,next:d,slideTo:m}),(p,u)=>(t.openBlock(),t.createElementBlock("div",Oye,[s.is3d?(t.openBlock(),t.createElementBlock("div",Tye,Fye)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",Rye,[t.createVNode(t.unref(xye),{ref_key:"carousel2d",ref:n,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:y},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(f,_)=>(t.openBlock(),t.createBlock(t.unref(Vye),{key:_},{default:t.withCtx(()=>[t.renderSlot(p.$slots,"default",{item:f},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:u[0]||(u[0]=f=>n.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Pye,[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,Dye)]))],2)])):t.createCommentVNode("",!0),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:u[1]||(u[1]=f=>d())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Lye,[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,jye)]))],2)])):t.createCommentVNode("",!0),t.createElementVNode("div",vye,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:u[2]||(u[2]=f=>l())},[(t.openBlock(),t.createElementBlock("svg",Mye,[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:s.arrowsColor},null,8,Hye)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",Uye,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(f,_)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${_}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${s.navigationHeight}px`,width:`${r.value===_?s.navigationActiveWidth:s.navigationActiveWidth/2}px`,borderRadius:`${s.navigationBorderRadius}px`,backgroundColor:`${r.value===_?s.navigationActiveColor:s.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:k=>h(_)},null,12,Gye))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:u[3]||(u[3]=f=>n.value.next())},[(t.openBlock(),t.createElementBlock("svg",Wye,[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:s.arrowsColor},null,8,qye)]))])):t.createCommentVNode("",!0)])],2))]))}},Xye=Iye(Jye,[["__scopeId","data-v-295ffea1"]]),Sh=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o};let y4=null;const Eh={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)y4=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),y4.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},u4=()=>{t.useCssVars(e=>({"30c6a434":e.colorBackgroundHome+"45","7fc59d92":e.colorBackgroundAway+"45","21945b84":e.colorBackgroundHome,21914993:e.colorBackgroundAway}))},f4=Eh.setup;Eh.setup=f4?(e,a)=>(u4(),f4(e,a)):u4;const yl=e=>(t.pushScopeId("data-v-947163bf"),e=e(),t.popScopeId(),e),Zye=yl(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),Yye=[Zye],Kye=yl(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Qye=["src"],e0e=yl(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),t0e=yl(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),a0e=["src"],o0e=["src"],s0e={class:"text-container"};function n0e(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(i.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},Yye,2),o.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.date)},t.toDisplayString(o.dateGame),3)):t.createCommentVNode("",!0),o.matchday!=""&&o.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.containerinfogame)},[o.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.matchcontainer)},t.toDisplayString(o.matchday),3)):t.createCommentVNode("",!0),o.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.seasoncontainer)},t.toDisplayString(o.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),Kye,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Qye),t.createElementVNode("div",{class:t.normalizeClass([i.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(i.baselogoright)},null,2),e0e,t0e,t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(i.teamlogo)},null,10,a0e),t.createElementVNode("img",{src:o.logoAway,alt:"",class:t.normalizeClass(i.logoright)},null,10,o0e),t.createElementVNode("div",s0e,[t.createElementVNode("span",{class:t.normalizeClass(i.secondline)},t.toDisplayString(o.score),3),t.createElementVNode("div",{class:t.normalizeClass(i.titlename)},t.toDisplayString(o.titleCategory),3)])],2)}const i0e=Sh(Eh,[["render",n0e],["__scopeId","data-v-947163bf"]]);let _4=null;const Nh={components:{},props:{type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},texttitle2(){const e=this.gamesContainerWidth;return e<=300?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)_4=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),_4.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},b4=()=>{t.useCssVars(e=>({a66b3a58:e.colorBackgroundHome,a6715e3a:e.colorBackgroundAway,"4117430c":e.colorBackgroundAway+"62","6896b4f4":e.colorBackgroundHome+"36"}))},w4=Nh.setup;Nh.setup=w4?(e,a)=>(b4(),w4(e,a)):b4;const ul=e=>(t.pushScopeId("data-v-cab435d8"),e=e(),t.popScopeId(),e),r0e=ul(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),l0e=ul(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),c0e=[l0e],d0e={class:"player-container"},m0e=["src"],p0e=["src"],h0e=["src"],g0e={class:"container-score"},y0e=["src"],u0e=["src"],f0e=["src"],_0e=ul(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),b0e=ul(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function w0e(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(i.thumbnailhighlights)},[r0e,t.createElementVNode("div",{class:t.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},c0e,2),t.createElementVNode("div",d0e,[o.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(i.texttitle)},t.toDisplayString(o.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(i.texttitle2)},t.toDisplayString(o.nameCategory),3)),o.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:o.photoProfile,class:t.normalizeClass(i.playerimage)},null,10,m0e)):t.createCommentVNode("",!0),o.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:o.photoProfile,alt:""},null,8,p0e)):t.createCommentVNode("",!0),o.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:o.photoProfile,class:"img-number"},null,8,h0e)):t.createCommentVNode("",!0),t.createElementVNode("div",g0e,[t.createElementVNode("div",{class:t.normalizeClass(i.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(i.teamname)},t.toDisplayString(o.nameHomeTeam),3),t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(i.teamlogo)},null,10,y0e),t.createElementVNode("span",{class:t.normalizeClass(i.teamscore)},t.toDisplayString(o.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(i.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(i.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(i.teamscore)},t.toDisplayString(o.scoreAway),3),t.createElementVNode("img",{src:o.logoAway,alt:"",class:t.normalizeClass(i.teamlogo)},null,10,u0e),t.createElementVNode("span",{class:t.normalizeClass(i.teamname)},t.toDisplayString(o.nameAwayTeam),3)],2)])]),t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,f0e),_0e,b0e],2)}const C0e=Sh(Nh,[["render",w0e],["__scopeId","data-v-cab435d8"]]),k0e={components:{GSCCarousel:Xye,GSCThumbnailHighlightGameHistoric:i0e,GSCThumbnailHighlightGamePlayer:C0e},props:{items:{type:Array,default:()=>[1,2,3]},data:{type:Object,default:()=>{}},title:{type:String,default:"TODAS SUS JUGADAS"}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{data:{immediate:!0,handler(e){this.getData(e)}}},computed:{isMobile(){return this.highlightsWidth<580},carouselProps(){return this.isMobile?{wrapAround:!0,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!1,areSlidesArrowsRounded:!1,areNavigationArrowsVisible:!1,isPaginationVisible:!0}:{wrapAround:!0,itemsToShow:1.8,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areSlidesArrowsRounded:!0,areNavigationArrowsVisible:!1}}},methods:{onclickPlayVideos(e){var a=[];e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const o=[1,2,3];let s={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[data.matchResult]:o,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(s.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",s)},play(e){this.$emit("play",e)},async getData(e){const a=wye.create({headers:{Authorization:`${this.token}`}});var o=[],s={};if(e.type=="player"){const n=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);for(let i=0;i<n.data.seasons[e.season].games_played.length;i++)Math.floor(Math.random()*n.data.seasons[e.season].games_played[i].info_thumbnails.images.background_default_games.length),s={category:0,player_id:n.data.player_id,position_id:n.data.position_id,color:n.data.info_thumbnails.colors.background_color,photo_profile:n.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+n.data.info_thumbnails.images.player_in_action[0]:"https://az755631.vo.msecnd.net/players-profile/"+n.data.player_id+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+n.data.seasons[e.season].games_played[i].home_team+".png",player_name:n.data.seasons[e.season].games_played[i].home_team_acronym+" "+n.data.seasons[e.season].games_played[i].home_team_score+" : "+n.data.seasons[e.season].games_played[i].visiting_team_score+" "+n.data.seasons[e.season].games_played[i].visiting_team_acronym,team_id:n.data.team_id,team_id_b:n.data.seasons[e.season].games_played[i].home_team,season_id:n.data.seasons[e.season].games_played[i].season_id,name:n.data.seasons[e.season].games_played[i].player_name,seasonname:n.data.seasons[e.season].name,match:n.data.seasons[e.season].games_played[i].matchday_name.replace("Matchday","Jor"),scorehome:n.data.seasons[e.season].games_played[i].home_team_score,scoreaway:n.data.seasons[e.season].games_played[i].visiting_team_score,hometeamacronym:n.data.seasons[e.season].games_played[i].home_team_acronym,visitingteamacronym:n.data.seasons[e.season].games_played[i].visiting_team_acronym,background:"https://golstatsimages.blob.core.windows.net/images-library/"+n.data.info_thumbnails.images.background_player_in_action[0],backgroundhome:n.data.seasons[e.season].games_played[i].info_thumbnails.home_colors.background_color,backgroundaway:n.data.seasons[e.season].games_played[i].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+n.data.seasons[e.season].games_played[i].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+n.data.seasons[e.season].games_played[i].visiting_team+".png",total:n.data.seasons[e.season].games_played[i].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+n.data.seasons[e.season].games_played[i].home_team+"_"+n.data.seasons[e.season].games_played[i].season_id+"_r1.jpg"},o.push(s)}else if(e.type=="historic"){const n=await a.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+e.game);for(let r=0;r<n.data.plays.length;r++)s={player:"Jornada "+n.data.plays[r][6],player_name:n.data.plays[r][4],season_id:n.data.plays[r][31],game_id:n.data.plays[r][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},o.length>0?!o.filter(c=>c.game_id===n.data.plays[r][3]).length>0&&o.push(s):o.push(s);const i=n.data.thumbnails;for(let r=0;r<o.length;r++){const c=Math.floor(Math.random()*i[o[r].game_id].info_thumbnails.images.background_default_games.length);o[r].background="https://golstatsimages.blob.core.windows.net/images-library/"+i[o[r].game_id].info_thumbnails.images.background_default_games[c],o[r].backgroundhome=i[o[r].game_id].info_thumbnails.home_colors.background_color,o[r].backgroundaway=i[o[r].game_id].info_thumbnails.away_colors.background_color,o[r].logoaway="https://az755631.vo.msecnd.net/teams-150/"+i[o[r].game_id].info_thumbnails.away_colors.team_id+".png",o[r].logohome="https://az755631.vo.msecnd.net/teams-150/"+i[o[r].game_id].info_thumbnails.home_colors.team_id+".png",o[r].match=i[o[r].game_id].matchday_name.replace("Matchday","Jor"),o[r].seasonname=i[o[r].game_id].season_name,o[r].score=i[o[r].game_id].score[0]+" - "+i[o[r].game_id].score[1],o[r].category=0}}else{const n=await a.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let i=0;i<n.data.seasons[e.season].games.length;i++){const r=Math.floor(Math.random()*n.data.seasons[e.season].games[i].info_thumbnails.images.background_default_games.length);s={category:0,game_id:n.data.seasons[e.season].games[i].game_id,photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+n.data.seasons[e.season].games[i].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+n.data.seasons[e.season].games[i].home_team+".png",player_name:n.data.seasons[e.season].games[i].home_team_acronym+" "+n.data.seasons[e.season].games[i].home_team_score+" : "+n.data.seasons[e.season].games[i].visiting_team_score+" "+n.data.seasons[e.season].games[i].visiting_team_acronym,team_id_b:n.data.seasons[e.season].games[i].home_team,season_id:n.data.seasons[e.season].games[i].season_id,name:"",seasonname:n.data.seasons[e.season].name,match:n.data.seasons[e.season].games[i].matchday_name.replace("Matchday","Jor"),score:n.data.seasons[e.season].games[i].home_team_score+" : "+n.data.seasons[e.season].games[i].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+n.data.seasons[e.season].games[i].info_thumbnails.images.background_default_games[r],backgroundhome:n.data.seasons[e.season].games[i].info_thumbnails.home_colors.background_color,backgroundaway:n.data.seasons[e.season].games[i].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+n.data.seasons[e.season].games[i].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+n.data.seasons[e.season].games[i].visiting_team+".png",total:n.data.seasons[e.season].games[i].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+n.data.seasons[e.season].games[i].home_team+"_"+n.data.seasons[e.season].games[i].season_id+"_r1.jpg"},o.push(s)}}this.printData=o},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(e=>{for(const a of e)this.highlightsWidth=a.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){this.setUpResizeObserver()}},S0e={ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function E0e(e,a,o,s,n,i){const r=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),c=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),g=t.resolveComponent("GSCCarousel");return t.openBlock(),t.createElementBlock("div",S0e,[t.createVNode(g,t.mergeProps(i.carouselProps,{items:n.printData,slideLeftArrowBackgroundImage:"linear-gradient(to right, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",slideRightArrowBackgroundImage:"linear-gradient(to left, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",secondarySlidesOpacity:"0.2"}),{default:t.withCtx(({item:d})=>[o.data.type=="team"||o.data.type=="historic"?(t.openBlock(),t.createBlock(r,{key:0,items:d,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,background:d.background,matchday:d.match,onOnclickPlayVideos:l=>i.onclickPlayVideos({data:d,type:1}),"season-name":d.seasonname,score:d.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(t.openBlock(),t.createBlock(c,{key:1,type:"player","name-player":d.name,"type-style":"game","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"type-img":"0",background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,"name-category":o.title,onOnclickPlayVideos:l=>i.onclickPlayVideos({data:d,type:2}),"logo-away":d.logoaway,"logo-home":d.logohome,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway},null,8,["name-player","color-background-home","color-background-away","background","name-home-team","name-away-team","name-category","onOnclickPlayVideos","logo-away","logo-home","score-home","photo-profile","score-away"]))]),_:1},16,["items"])],512)}const N0e=Sh(k0e,[["render",E0e]]);let C4=null;const $0e={components:{GSCHighlights:N0e,GSCPlayerTeamGame:Sb,GSCCard:Ob},props:{config:{type:Object,default:()=>{}}},computed:{gridcarrouselesitemsClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items900":"grid-carrouseles-items"},gridcarrouselesitemsitemunoClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items-itemuno900":"grid-carrouseles-items-itemuno"},gridcarrouselesitemsitemdosClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items-itemdos900":"grid-carrouseles-items-itemdos"},videopartidopltegadatosClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-datos900":"video-partido-pltega-datos"},videopartidopltegaplayersClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-players620":"video-partido-pltega-players"}},data(){return{gamesContainerWidth:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",gameInfo:{},printData:[]}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},100),this.fillData()},methods:{onclickPlayVideos(e){var a=[];e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const o=[1,2,3];let s={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[data.matchResult]:o,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(s.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",s)},openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)C4=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),C4.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async fillData(){const e=k5.create({headers:{Authorization:`${this.token}`}}),a=await e.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.config.season_id),o=a.data.games.findIndex(r=>r.game_id===this.config.game);this.gameInfo=a.data.games[o];var s=[],n={},i=await e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+this.config.season_id+"/games/"+this.config.game);for(let r=0;r<i.data.games[0].players.length;r++){const c=Math.floor(Math.random()*i.data.games[0].players[r].info_thumbnails.images.background_player_in_action.length),g=Math.floor(Math.random()*i.data.games[0].players[r].info_thumbnails.images.player_in_action.length);n={background_color_buttons:i.data.games[0].players[r].info_thumbnails.colors.background_color_buttons,background_color_cards:i.data.games[0].players[r].info_thumbnails.colors.background_color_cards,color_icon_play:i.data.games[0].players[r].info_thumbnails.colors.color_icon_play,color_next_back:i.data.games[0].players[r].info_thumbnails.colors.color_next_back,font_color:i.data.games[0].players[r].info_thumbnails.colors.font_color,colorbackgroundhome:i.data.games[0].players[r].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:i.data.games[0].players[r].player_name,background:i.data.games[0].players[r].info_thumbnails.images.background_player_in_action[c]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[r].info_thumbnails.images.background_player_in_action[c]:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[r].info_thumbnails.images.background_default_players[0],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",logohome:i.data.games[0].players[r].team_logo,photoprofile:i.data.games[0].players[r].info_thumbnails.images.player_in_action[g]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[r].info_thumbnails.images.player_in_action[g]:`https://az755631.vo.msecnd.net/players-profile/${i.data.games[0].players[r].player_id}.png`,logoaway:"",scoreaway:"",scorehome:"",game_id:i.data.games[0].game_id,season_id:i.data.games[0].players[r].season_id,category:0,team_id:i.data.games[0].players[r].team_id},s.push(n)}this.printData=s}}},B0e=e=>(t.pushScopeId("data-v-9946e369"),e=e(),t.popScopeId(),e),x0e={ref:"gamesContainer",class:"container"},V0e={class:"video-partido-container"},I0e={class:"video-partido-higthlights"},A0e=B0e(()=>t.createElementVNode("div",{class:"title-video-datos"},"Este torneo:",-1)),O0e={class:"video-partido-pltega-games"},T0e={class:"video-partido-pltega-games-team"};function z0e(e,a,o,s,n,i){const r=t.resolveComponent("GSCHighlights"),c=t.resolveComponent("GSCPlayerTeamGame"),g=t.resolveComponent("GSCCard");return t.openBlock(),t.createElementBlock("div",x0e,[t.createElementVNode("div",V0e,[t.createElementVNode("div",I0e,[t.createVNode(r,{onOpenmedia:i.openmedia,data:{game:o.config.game,season:o.config.season_id,type:"historic"}},null,8,["onOpenmedia","data"])]),t.createElementVNode("div",{class:t.normalizeClass(i.videopartidopltegaplayersClass)},[t.createVNode(c,{onOpenmedia:i.openmedia,style:{"margin-top":"0px"},"background-color":"#172531",type:3,"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",title:"Jugadores (sus mejores jugadas):",data:{season:o.config.season_id,game:o.config.game,isPrematch:1},onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","data","onOnClickVideos","onOnClickCard"])],2),t.createElementVNode("div",{class:t.normalizeClass(i.videopartidopltegadatosClass)},[A0e,t.createElementVNode("div",{class:t.normalizeClass(i.gridcarrouselesitemsClass)},[t.createElementVNode("div",{class:t.normalizeClass(i.gridcarrouselesitemsitemunoClass)},[n.printData[0]?(t.openBlock(),t.createBlock(g,{key:0,type:1,onOnClickVideos:a[0]||(a[0]=d=>i.onclickPlayVideos({data:n.printData[0],type:3})),onOnClickCard:a[1]||(a[1]=d=>i.onclickPlayVideos({data:n.printData[0],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:n.printData[0].colorbackgroundhome,"background-img":n.printData[0].background,data:{team_name:n.gameInfo.home_team_name,player_photo:n.printData[0].photoprofile,team_id:n.gameInfo.home_team,background_color_buttons:n.printData[0].background_color_buttons,background_color_cards:n.printData[0].background_color_cards,color_icon_play:n.printData[0].color_icon_play,color_next_back:n.printData[0].color_next_back,font_color:n.printData[0].font_color}},null,8,["backgroundColor","background-img","data"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(i.gridcarrouselesitemsitemdosClass)},[n.printData[1]?(t.openBlock(),t.createBlock(g,{key:0,type:1,onOnClickVideos:a[2]||(a[2]=d=>i.onclickPlayVideos({data:n.printData[1],type:3})),onOnClickCard:a[3]||(a[3]=d=>i.onclickPlayVideos({data:n.printData[1],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:n.printData[1].colorbackgroundhome,"background-img":n.printData[1].background,data:{team_name:n.gameInfo.visiting_team_name,player_photo:n.printData[1].photoprofile,team_id:n.gameInfo.visiting_team,background_color_buttons:n.printData[1].background_color_buttons,background_color_cards:n.printData[1].background_color_cards,color_icon_play:n.printData[1].color_icon_play,color_next_back:n.printData[1].color_next_back,font_color:n.printData[1].font_color}},null,8,["backgroundColor","background-img","data"])):t.createCommentVNode("",!0)],2)],2)],2),t.createElementVNode("div",O0e,[t.createVNode(c,{onOpenmedia:i.openmedia,style:{"margin-top":"0px"},"background-color":"#172531",type:1,"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",title:"Jugadas específicas "+n.gameInfo.home_team_name+":",data:{season:o.config.season_id,team:n.gameInfo.home_team,isPrematch:1},onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","title","data","onOnClickVideos","onOnClickCard"])]),t.createElementVNode("div",T0e,[t.createVNode(c,{onOpenmedia:i.openmedia,style:{"margin-top":"0px"},"background-color":"#172531",type:1,"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",title:"Jugadas específicas "+n.gameInfo.visiting_team_name+":",data:{season:o.config.season_id,team:n.gameInfo.visiting_team,isPrematch:1},onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","title","data","onOnClickVideos","onOnClickCard"])])])],512)}const F0e={components:{GSCVideoGamePreMatch:Gr($0e,[["render",z0e],["__scopeId","data-v-9946e369"]]),GSCVideoGamePostMatch:oge},props:{type:{type:String,default:"Prematch"},config:{type:Object,default:()=>{}}},data(){return{}},computed:{},methods:{openmedia(e){this.$emit("openmedia",e)}}},R0e={style:{margin:"0 auto"}};function P0e(e,a,o,s,n,i){const r=t.resolveComponent("GSCVideoGamePreMatch"),c=t.resolveComponent("GSCVideoGamePostMatch");return t.openBlock(),t.createElementBlock("div",R0e,[o.type==="Prematch"?(t.openBlock(),t.createBlock(r,{key:0,config:o.config,onOpenmedia:i.openmedia},null,8,["config","onOpenmedia"])):t.createCommentVNode("",!0),o.type==="Postmatch"?(t.openBlock(),t.createBlock(c,{key:1,config:o.config,onOpenmedia:i.openmedia},null,8,["config","onOpenmedia"])):t.createCommentVNode("",!0)])}const k4=Gr(F0e,[["render",P0e],["__scopeId","data-v-e9c7ad78"]]),MMe="",HMe="",D0e={class:"datagame-container"},L0e=Ae({__name:"GSCVideoGame",props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})}},emits:["openmedia"],setup(e,{emit:a}){const o=e,s=t.ref(0);t.watch(()=>o.game,i=>{s.value=i.gameId},{deep:!0,immediate:!0});function n(i){a("openmedia",i)}return(i,r)=>(t.openBlock(),t.createElementBlock("div",D0e,[e.game.game_status==4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(k4),{onOpenmedia:n,key:s.value,type:"Prematch",config:{season_id:e.game.seasonId,game:e.game.gameId}},null,8,["config"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(k4),{onOpenmedia:n,key:s.value,type:"Postmatch",config:{season_id:e.game.seasonId,game:e.game.gameId}},null,8,["config"])):t.createCommentVNode("",!0)],64))]))}},[["__scopeId","data-v-fe6f377f"]]),j0e=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},$h={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},S4=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},E4=$h.setup;$h.setup=E4?(e,a)=>(S4(),E4(e,a)):S4;const v0e={ref:"gscScrollableContainer",class:"scrollable-container"},M0e={class:"scrollable-arrows"},H0e=["width","height","viewBox"],U0e=["stroke"],G0e={class:"scrollable-wrapper"},W0e={class:"scrollable-arrows"},q0e=["width","height","viewBox"],J0e=["stroke"];function X0e(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",v0e,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[t.createElementVNode("div",M0e,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:o.arrowsColor},null,8,U0e)],8,H0e))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[t.createElementVNode("div",G0e,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[t.createElementVNode("div",W0e,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:o.arrowsColor},null,8,J0e)],8,q0e))])],2)):t.createCommentVNode("",!0)],512)}const Z0e=j0e($h,[["render",X0e],["__scopeId","data-v-b548a08d"]]);function N4(e,a){return function(){return e.apply(a,arguments)}}const{toString:Y0e}=Object.prototype,{getPrototypeOf:Bh}=Object,fl=(e=>a=>{const o=Y0e.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),ga=e=>(e=e.toLowerCase(),a=>fl(a)===e),_l=e=>a=>typeof a===e,{isArray:Qo}=Array,En=_l("undefined");function K0e(e){return e!==null&&!En(e)&&e.constructor!==null&&!En(e.constructor)&&zt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const $4=ga("ArrayBuffer");function Q0e(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&$4(e.buffer),a}const eue=_l("string"),zt=_l("function"),B4=_l("number"),bl=e=>e!==null&&typeof e=="object",tue=e=>e===!0||e===!1,wl=e=>{if(fl(e)!=="object")return!1;const a=Bh(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},aue=ga("Date"),oue=ga("File"),sue=ga("Blob"),nue=ga("FileList"),iue=e=>bl(e)&&zt(e.pipe),rue=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||zt(e.append)&&((a=fl(e))==="formdata"||a==="object"&&zt(e.toString)&&e.toString()==="[object FormData]"))},lue=ga("URLSearchParams"),cue=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Nn(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let s,n;if(typeof e!="object"&&(e=[e]),Qo(e))for(s=0,n=e.length;s<n;s++)a.call(null,e[s],s,e);else{const i=o?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let c;for(s=0;s<r;s++)c=i[s],a.call(null,e[c],c,e)}}function x4(e,a){a=a.toLowerCase();const o=Object.keys(e);let s=o.length,n;for(;s-- >0;)if(n=o[s],a===n.toLowerCase())return n;return null}const V4=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),I4=e=>!En(e)&&e!==V4;function xh(){const{caseless:e}=I4(this)&&this||{},a={},o=(s,n)=>{const i=e&&x4(a,n)||n;wl(a[i])&&wl(s)?a[i]=xh(a[i],s):wl(s)?a[i]=xh({},s):Qo(s)?a[i]=s.slice():a[i]=s};for(let s=0,n=arguments.length;s<n;s++)arguments[s]&&Nn(arguments[s],o);return a}const due=(e,a,o,{allOwnKeys:s}={})=>(Nn(a,(n,i)=>{o&&zt(n)?e[i]=N4(n,o):e[i]=n},{allOwnKeys:s}),e),mue=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),pue=(e,a,o,s)=>{e.prototype=Object.create(a.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},hue=(e,a,o,s)=>{let n,i,r;const c={};if(a=a||{},e==null)return a;do{for(n=Object.getOwnPropertyNames(e),i=n.length;i-- >0;)r=n[i],(!s||s(r,e,a))&&!c[r]&&(a[r]=e[r],c[r]=!0);e=o!==!1&&Bh(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},gue=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const s=e.indexOf(a,o);return s!==-1&&s===o},yue=e=>{if(!e)return null;if(Qo(e))return e;let a=e.length;if(!B4(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},uue=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Bh(Uint8Array)),fue=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const n=s.value;a.call(e,n[0],n[1])}},_ue=(e,a)=>{let o;const s=[];for(;(o=e.exec(a))!==null;)s.push(o);return s},bue=ga("HTMLFormElement"),wue=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,s){return o.toUpperCase()+s}),A4=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),Cue=ga("RegExp"),O4=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),s={};Nn(o,(n,i)=>{let r;(r=a(n,i,e))!==!1&&(s[i]=r||n)}),Object.defineProperties(e,s)},kue=e=>{O4(e,(a,o)=>{if(zt(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const s=e[o];if(zt(s)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},Sue=(e,a)=>{const o={},s=n=>{n.forEach(i=>{o[i]=!0})};return Qo(e)?s(e):s(String(e).split(a)),o},Eue=()=>{},Nue=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Vh="abcdefghijklmnopqrstuvwxyz",T4="0123456789",z4={DIGIT:T4,ALPHA:Vh,ALPHA_DIGIT:Vh+Vh.toUpperCase()+T4},$ue=(e=16,a=z4.ALPHA_DIGIT)=>{let o="";const{length:s}=a;for(;e--;)o+=a[Math.random()*s|0];return o};function Bue(e){return!!(e&&zt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const xue=e=>{const a=new Array(10),o=(s,n)=>{if(bl(s)){if(a.indexOf(s)>=0)return;if(!("toJSON"in s)){a[n]=s;const i=Qo(s)?[]:{};return Nn(s,(r,c)=>{const g=o(r,n+1);!En(g)&&(i[c]=g)}),a[n]=void 0,i}}return s};return o(e,0)},Vue=ga("AsyncFunction"),Iue=e=>e&&(bl(e)||zt(e))&&zt(e.then)&&zt(e.catch),W={isArray:Qo,isArrayBuffer:$4,isBuffer:K0e,isFormData:rue,isArrayBufferView:Q0e,isString:eue,isNumber:B4,isBoolean:tue,isObject:bl,isPlainObject:wl,isUndefined:En,isDate:aue,isFile:oue,isBlob:sue,isRegExp:Cue,isFunction:zt,isStream:iue,isURLSearchParams:lue,isTypedArray:uue,isFileList:nue,forEach:Nn,merge:xh,extend:due,trim:cue,stripBOM:mue,inherits:pue,toFlatObject:hue,kindOf:fl,kindOfTest:ga,endsWith:gue,toArray:yue,forEachEntry:fue,matchAll:_ue,isHTMLForm:bue,hasOwnProperty:A4,hasOwnProp:A4,reduceDescriptors:O4,freezeMethods:kue,toObjectSet:Sue,toCamelCase:wue,noop:Eue,toFiniteNumber:Nue,findKey:x4,global:V4,isContextDefined:I4,ALPHABET:z4,generateString:$ue,isSpecCompliantForm:Bue,toJSONObject:xue,isAsyncFn:Vue,isThenable:Iue};function _e(e,a,o,s,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),s&&(this.request=s),n&&(this.response=n)}W.inherits(_e,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:W.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const F4=_e.prototype,R4={};["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=>{R4[e]={value:e}}),Object.defineProperties(_e,R4),Object.defineProperty(F4,"isAxiosError",{value:!0}),_e.from=(e,a,o,s,n,i)=>{const r=Object.create(F4);return W.toFlatObject(e,r,function(c){return c!==Error.prototype},c=>c!=="isAxiosError"),_e.call(r,e.message,a,o,s,n),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const Aue=null;function Ih(e){return W.isPlainObject(e)||W.isArray(e)}function P4(e){return W.endsWith(e,"[]")?e.slice(0,-2):e}function D4(e,a,o){return e?e.concat(a).map(function(s,n){return s=P4(s),!o&&n?"["+s+"]":s}).join(o?".":""):a}function Oue(e){return W.isArray(e)&&!e.some(Ih)}const Tue=W.toFlatObject(W,{},null,function(e){return/^is[A-Z]/.test(e)});function Cl(e,a,o){if(!W.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=W.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,p){return!W.isUndefined(p[y])});const s=o.metaTokens,n=o.visitor||d,i=o.dots,r=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&W.isSpecCompliantForm(a);if(!W.isFunction(n))throw new TypeError("visitor must be a function");function g(y){if(y===null)return"";if(W.isDate(y))return y.toISOString();if(!c&&W.isBlob(y))throw new _e("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(y)||W.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,p,u){let f=y;if(y&&!u&&typeof y=="object"){if(W.endsWith(p,"{}"))p=s?p:p.slice(0,-2),y=JSON.stringify(y);else if(W.isArray(y)&&Oue(y)||(W.isFileList(y)||W.endsWith(p,"[]"))&&(f=W.toArray(y)))return p=P4(p),f.forEach(function(_,k){!(W.isUndefined(_)||_===null)&&a.append(r===!0?D4([p],k,i):r===null?p:p+"[]",g(_))}),!1}return Ih(y)?!0:(a.append(D4(u,p,i),g(y)),!1)}const l=[],m=Object.assign(Tue,{defaultVisitor:d,convertValue:g,isVisitable:Ih});function h(y,p){if(!W.isUndefined(y)){if(l.indexOf(y)!==-1)throw Error("Circular reference detected in "+p.join("."));l.push(y),W.forEach(y,function(u,f){(!(W.isUndefined(u)||u===null)&&n.call(a,u,W.isString(f)?f.trim():f,p,m))===!0&&h(u,p?p.concat(f):[f])}),l.pop()}}if(!W.isObject(e))throw new TypeError("data must be an object");return h(e),a}function L4(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function Ah(e,a){this._pairs=[],e&&Cl(e,this,a)}const j4=Ah.prototype;j4.append=function(e,a){this._pairs.push([e,a])},j4.toString=function(e){const a=e?function(o){return e.call(this,o,L4)}:L4;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function zue(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function v4(e,a,o){if(!a)return e;const s=o&&o.encode||zue,n=o&&o.serialize;let i;if(n?i=n(a,o):i=W.isURLSearchParams(a)?a.toString():new Ah(a,o).toString(s),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}const M4=class{constructor(){this.handlers=[]}use(e,a,o){return this.handlers.push({fulfilled:e,rejected:a,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){W.forEach(this.handlers,function(a){a!==null&&e(a)})}},H4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Fue=typeof URLSearchParams<"u"?URLSearchParams:Ah,Rue=typeof FormData<"u"?FormData:null,Pue=typeof Blob<"u"?Blob:null,Due={isBrowser:!0,classes:{URLSearchParams:Fue,FormData:Rue,Blob:Pue},protocols:["http","https","file","blob","url","data"]},U4=typeof window<"u"&&typeof document<"u",Lue=(e=>U4&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),jue=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),vue=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:U4,hasStandardBrowserEnv:Lue,hasStandardBrowserWebWorkerEnv:jue},Symbol.toStringTag,{value:"Module"})),ya={...vue,...Due};function Mue(e,a){return Cl(e,new ya.classes.URLSearchParams,Object.assign({visitor:function(o,s,n,i){return ya.isNode&&W.isBuffer(o)?(this.append(s,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function Hue(e){return W.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function Uue(e){const a={},o=Object.keys(e);let s;const n=o.length;let i;for(s=0;s<n;s++)i=o[s],a[i]=e[i];return a}function G4(e){function a(o,s,n,i){let r=o[i++];if(r==="__proto__")return!0;const c=Number.isFinite(+r),g=i>=o.length;return r=!r&&W.isArray(n)?n.length:r,g?(W.hasOwnProp(n,r)?n[r]=[n[r],s]:n[r]=s,!c):((!n[r]||!W.isObject(n[r]))&&(n[r]=[]),a(o,s,n[r],i)&&W.isArray(n[r])&&(n[r]=Uue(n[r])),!c)}if(W.isFormData(e)&&W.isFunction(e.entries)){const o={};return W.forEachEntry(e,(s,n)=>{a(Hue(s),n,o,0)}),o}return null}function Gue(e,a,o){if(W.isString(e))try{return(a||JSON.parse)(e),W.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(o||JSON.stringify)(e)}const Oh={transitional:H4,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",s=o.indexOf("application/json")>-1,n=W.isObject(e);if(n&&W.isHTMLForm(e)&&(e=new FormData(e)),W.isFormData(e))return s?JSON.stringify(G4(e)):e;if(W.isArrayBuffer(e)||W.isBuffer(e)||W.isStream(e)||W.isFile(e)||W.isBlob(e))return e;if(W.isArrayBufferView(e))return e.buffer;if(W.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(n){if(o.indexOf("application/x-www-form-urlencoded")>-1)return Mue(e,this.formSerializer).toString();if((i=W.isFileList(e))||o.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return Cl(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return n||s?(a.setContentType("application/json",!1),Gue(e)):e}],transformResponse:[function(e){const a=this.transitional||Oh.transitional,o=a&&a.forcedJSONParsing,s=this.responseType==="json";if(e&&W.isString(e)&&(o&&!this.responseType||s)){const n=!(a&&a.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(i){if(n)throw i.name==="SyntaxError"?_e.from(i,_e.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ya.classes.FormData,Blob:ya.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],e=>{Oh.headers[e]={}});const Th=Oh,Wue=W.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"]),que=e=>{const a={};let o,s,n;return e&&e.split(`
75
75
  `).forEach(function(i){n=i.indexOf(":"),o=i.substring(0,n).trim().toLowerCase(),s=i.substring(n+1).trim(),!(!o||a[o]&&Wue[o])&&(o==="set-cookie"?a[o]?a[o].push(s):a[o]=[s]:a[o]=a[o]?a[o]+", "+s:s)}),a},W4=Symbol("internals");function $n(e){return e&&String(e).trim().toLowerCase()}function kl(e){return e===!1||e==null?e:W.isArray(e)?e.map(kl):String(e)}function Jue(e){const a=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=o.exec(e);)a[s[1]]=s[2];return a}const Xue=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function zh(e,a,o,s,n){if(W.isFunction(s))return s.call(this,a,o);if(n&&(a=o),!!W.isString(a)){if(W.isString(s))return a.indexOf(s)!==-1;if(W.isRegExp(s))return s.test(a)}}function Zue(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,o,s)=>o.toUpperCase()+s)}function Yue(e,a){const o=W.toCamelCase(" "+a);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+o,{value:function(n,i,r){return this[s].call(this,a,n,i,r)},configurable:!0})})}let Sl=class{constructor(e){e&&this.set(e)}set(e,a,o){const s=this;function n(r,c,g){const d=$n(c);if(!d)throw new Error("header name must be a non-empty string");const l=W.findKey(s,d);(!l||s[l]===void 0||g===!0||g===void 0&&s[l]!==!1)&&(s[l||c]=kl(r))}const i=(r,c)=>W.forEach(r,(g,d)=>n(g,d,c));return W.isPlainObject(e)||e instanceof this.constructor?i(e,a):W.isString(e)&&(e=e.trim())&&!Xue(e)?i(que(e),a):e!=null&&n(a,e,o),this}get(e,a){if(e=$n(e),e){const o=W.findKey(this,e);if(o){const s=this[o];if(!a)return s;if(a===!0)return Jue(s);if(W.isFunction(a))return a.call(this,s,o);if(W.isRegExp(a))return a.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,a){if(e=$n(e),e){const o=W.findKey(this,e);return!!(o&&this[o]!==void 0&&(!a||zh(this,this[o],o,a)))}return!1}delete(e,a){const o=this;let s=!1;function n(i){if(i=$n(i),i){const r=W.findKey(o,i);r&&(!a||zh(o,o[r],r,a))&&(delete o[r],s=!0)}}return W.isArray(e)?e.forEach(n):n(e),s}clear(e){const a=Object.keys(this);let o=a.length,s=!1;for(;o--;){const n=a[o];(!e||zh(this,this[n],n,e,!0))&&(delete this[n],s=!0)}return s}normalize(e){const a=this,o={};return W.forEach(this,(s,n)=>{const i=W.findKey(o,n);if(i){a[i]=kl(s),delete a[n];return}const r=e?Zue(n):String(n).trim();r!==n&&delete a[n],a[r]=kl(s),o[r]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const a=Object.create(null);return W.forEach(this,(o,s)=>{o!=null&&o!==!1&&(a[s]=e&&W.isArray(o)?o.join(", "):o)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,a])=>e+": "+a).join(`
76
76
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...a){const o=new this(e);return a.forEach(s=>o.set(s)),o}static accessor(e){const a=(this[W4]=this[W4]={accessors:{}}).accessors,o=this.prototype;function s(n){const i=$n(n);a[i]||(Yue(o,n),a[i]=!0)}return W.isArray(e)?e.forEach(s):s(e),this}};Sl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.reduceDescriptors(Sl.prototype,({value:e},a)=>{let o=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(s){this[o]=s}}}),W.freezeMethods(Sl);const Pa=Sl;function Fh(e,a){const o=this||Th,s=a||o,n=Pa.from(s.headers);let i=s.data;return W.forEach(e,function(r){i=r.call(o,i,n.normalize(),a?a.status:void 0)}),n.normalize(),i}function q4(e){return!!(e&&e.__CANCEL__)}function Bn(e,a,o){_e.call(this,e??"canceled",_e.ERR_CANCELED,a,o),this.name="CanceledError"}W.inherits(Bn,_e,{__CANCEL__:!0});function Kue(e,a,o){const s=o.config.validateStatus;!o.status||!s||s(o.status)?e(o):a(new _e("Request failed with status code "+o.status,[_e.ERR_BAD_REQUEST,_e.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const Que=ya.hasStandardBrowserEnv?{write(e,a,o,s,n,i){const r=[e+"="+encodeURIComponent(a)];W.isNumber(o)&&r.push("expires="+new Date(o).toGMTString()),W.isString(s)&&r.push("path="+s),W.isString(n)&&r.push("domain="+n),i===!0&&r.push("secure"),document.cookie=r.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function e1e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function t1e(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function J4(e,a){return e&&!e1e(a)?t1e(e,a):a}const a1e=ya.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let o;function s(n){let i=n;return e&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return o=s(window.location.href),function(n){const i=W.isString(n)?s(n):n;return i.protocol===o.protocol&&i.host===o.host}}():function(){return function(){return!0}}();function o1e(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function s1e(e,a){e=e||10;const o=new Array(e),s=new Array(e);let n=0,i=0,r;return a=a!==void 0?a:1e3,function(c){const g=Date.now(),d=s[i];r||(r=g),o[n]=c,s[n]=g;let l=i,m=0;for(;l!==n;)m+=o[l++],l=l%e;if(n=(n+1)%e,n===i&&(i=(i+1)%e),g-r<a)return;const h=d&&g-d;return h?Math.round(m*1e3/h):void 0}}function X4(e,a){let o=0;const s=s1e(50,250);return n=>{const i=n.loaded,r=n.lengthComputable?n.total:void 0,c=i-o,g=s(c),d=i<=r;o=i;const l={loaded:i,total:r,progress:r?i/r:void 0,bytes:c,rate:g||void 0,estimated:g&&r&&d?(r-i)/g:void 0,event:n};l[a?"download":"upload"]=!0,e(l)}}const n1e=typeof XMLHttpRequest<"u",i1e=n1e&&function(e){return new Promise(function(a,o){let s=e.data;const n=Pa.from(e.headers).normalize();let{responseType:i,withXSRFToken:r}=e,c;function g(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let d;if(W.isFormData(s)){if(ya.hasStandardBrowserEnv||ya.hasStandardBrowserWebWorkerEnv)n.setContentType(!1);else if((d=n.getContentType())!==!1){const[p,...u]=d?d.split(";").map(f=>f.trim()).filter(Boolean):[];n.setContentType([p||"multipart/form-data",...u].join("; "))}}let l=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";n.set("Authorization","Basic "+btoa(p+":"+u))}const m=J4(e.baseURL,e.url);l.open(e.method.toUpperCase(),v4(m,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function h(){if(!l)return;const p=Pa.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),u={data:!i||i==="text"||i==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:p,config:e,request:l};Kue(function(f){a(f),g()},function(f){o(f),g()},u),l=null}if("onloadend"in l?l.onloadend=h:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(h)},l.onabort=function(){l&&(o(new _e("Request aborted",_e.ECONNABORTED,e,l)),l=null)},l.onerror=function(){o(new _e("Network Error",_e.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const u=e.transitional||H4;e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),o(new _e(p,u.clarifyTimeoutError?_e.ETIMEDOUT:_e.ECONNABORTED,e,l)),l=null},ya.hasStandardBrowserEnv&&(r&&W.isFunction(r)&&(r=r(e)),r||r!==!1&&a1e(m))){const p=e.xsrfHeaderName&&e.xsrfCookieName&&Que.read(e.xsrfCookieName);p&&n.set(e.xsrfHeaderName,p)}s===void 0&&n.setContentType(null),"setRequestHeader"in l&&W.forEach(n.toJSON(),function(p,u){l.setRequestHeader(u,p)}),W.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&i!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",X4(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",X4(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=p=>{l&&(o(!p||p.type?new Bn(null,e,l):p),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const y=o1e(m);if(y&&ya.protocols.indexOf(y)===-1){o(new _e("Unsupported protocol "+y+":",_e.ERR_BAD_REQUEST,e));return}l.send(s||null)})},Rh={http:Aue,xhr:i1e};W.forEach(Rh,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const Z4=e=>`- ${e}`,r1e=e=>W.isFunction(e)||e===null||e===!1,Y4={getAdapter:e=>{e=W.isArray(e)?e:[e];const{length:a}=e;let o,s;const n={};for(let i=0;i<a;i++){o=e[i];let r;if(s=o,!r1e(o)&&(s=Rh[(r=String(o)).toLowerCase()],s===void 0))throw new _e(`Unknown adapter '${r}'`);if(s)break;n[r||"#"+i]=s}if(!s){const i=Object.entries(n).map(([c,g])=>`adapter ${c} `+(g===!1?"is not supported by the environment":"is not available in the build"));let r=a?i.length>1?`since :
77
77
  `+i.map(Z4).join(`
@@ -107,7 +107,7 @@
107
107
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...o){const s=new this(a);return o.forEach(n=>s.set(n)),s}static accessor(a){const o=(this[Q8]=this[Q8]={accessors:{}}).accessors,s=this.prototype;function n(i){const r=si(i);o[r]||(sRe(s,i),o[r]=!0)}return Z.isArray(a)?a.forEach(n):n(a),this}};Tc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Z.reduceDescriptors(Tc.prototype,({value:e},a)=>{let o=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(s){this[o]=s}}}),Z.freezeMethods(Tc);const va=Tc;function Fy(e,a){const o=this||Ty,s=a||o,n=va.from(s.headers);let i=s.data;return Z.forEach(e,function(r){i=r.call(o,i,n.normalize(),a?a.status:void 0)}),n.normalize(),i}function e6(e){return!!(e&&e.__CANCEL__)}function ni(e,a,o){ke.call(this,e??"canceled",ke.ERR_CANCELED,a,o),this.name="CanceledError"}Z.inherits(ni,ke,{__CANCEL__:!0});function nRe(e,a,o){const s=o.config.validateStatus;!o.status||!s||s(o.status)?e(o):a(new ke("Request failed with status code "+o.status,[ke.ERR_BAD_REQUEST,ke.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const iRe=Na.hasStandardBrowserEnv?{write(e,a,o,s,n,i){const r=[e+"="+encodeURIComponent(a)];Z.isNumber(o)&&r.push("expires="+new Date(o).toGMTString()),Z.isString(s)&&r.push("path="+s),Z.isString(n)&&r.push("domain="+n),i===!0&&r.push("secure"),document.cookie=r.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function rRe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function lRe(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function t6(e,a){return e&&!rRe(a)?lRe(e,a):a}const cRe=Na.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let o;function s(n){let i=n;return e&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return o=s(window.location.href),function(n){const i=Z.isString(n)?s(n):n;return i.protocol===o.protocol&&i.host===o.host}}():function(){return function(){return!0}}();function dRe(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function mRe(e,a){e=e||10;const o=new Array(e),s=new Array(e);let n=0,i=0,r;return a=a!==void 0?a:1e3,function(c){const g=Date.now(),d=s[i];r||(r=g),o[n]=c,s[n]=g;let l=i,m=0;for(;l!==n;)m+=o[l++],l=l%e;if(n=(n+1)%e,n===i&&(i=(i+1)%e),g-r<a)return;const h=d&&g-d;return h?Math.round(m*1e3/h):void 0}}function a6(e,a){let o=0;const s=mRe(50,250);return n=>{const i=n.loaded,r=n.lengthComputable?n.total:void 0,c=i-o,g=s(c),d=i<=r;o=i;const l={loaded:i,total:r,progress:r?i/r:void 0,bytes:c,rate:g||void 0,estimated:g&&r&&d?(r-i)/g:void 0,event:n};l[a?"download":"upload"]=!0,e(l)}}const pRe=typeof XMLHttpRequest<"u",hRe=pRe&&function(e){return new Promise(function(a,o){let s=e.data;const n=va.from(e.headers).normalize();let{responseType:i,withXSRFToken:r}=e,c;function g(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let d;if(Z.isFormData(s)){if(Na.hasStandardBrowserEnv||Na.hasStandardBrowserWebWorkerEnv)n.setContentType(!1);else if((d=n.getContentType())!==!1){const[p,...u]=d?d.split(";").map(f=>f.trim()).filter(Boolean):[];n.setContentType([p||"multipart/form-data",...u].join("; "))}}let l=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";n.set("Authorization","Basic "+btoa(p+":"+u))}const m=t6(e.baseURL,e.url);l.open(e.method.toUpperCase(),J8(m,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function h(){if(!l)return;const p=va.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),u={data:!i||i==="text"||i==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:p,config:e,request:l};nRe(function(f){a(f),g()},function(f){o(f),g()},u),l=null}if("onloadend"in l?l.onloadend=h:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(h)},l.onabort=function(){l&&(o(new ke("Request aborted",ke.ECONNABORTED,e,l)),l=null)},l.onerror=function(){o(new ke("Network Error",ke.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const u=e.transitional||Z8;e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),o(new ke(p,u.clarifyTimeoutError?ke.ETIMEDOUT:ke.ECONNABORTED,e,l)),l=null},Na.hasStandardBrowserEnv&&(r&&Z.isFunction(r)&&(r=r(e)),r||r!==!1&&cRe(m))){const p=e.xsrfHeaderName&&e.xsrfCookieName&&iRe.read(e.xsrfCookieName);p&&n.set(e.xsrfHeaderName,p)}s===void 0&&n.setContentType(null),"setRequestHeader"in l&&Z.forEach(n.toJSON(),function(p,u){l.setRequestHeader(u,p)}),Z.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&i!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",a6(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",a6(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=p=>{l&&(o(!p||p.type?new ni(null,e,l):p),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const y=dRe(m);if(y&&Na.protocols.indexOf(y)===-1){o(new ke("Unsupported protocol "+y+":",ke.ERR_BAD_REQUEST,e));return}l.send(s||null)})},Ry={http:PFe,xhr:hRe};Z.forEach(Ry,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const o6=e=>`- ${e}`,gRe=e=>Z.isFunction(e)||e===null||e===!1,s6={getAdapter:e=>{e=Z.isArray(e)?e:[e];const{length:a}=e;let o,s;const n={};for(let i=0;i<a;i++){o=e[i];let r;if(s=o,!gRe(o)&&(s=Ry[(r=String(o)).toLowerCase()],s===void 0))throw new ke(`Unknown adapter '${r}'`);if(s)break;n[r||"#"+i]=s}if(!s){const i=Object.entries(n).map(([c,g])=>`adapter ${c} `+(g===!1?"is not supported by the environment":"is not available in the build"));let r=a?i.length>1?`since :
108
108
  `+i.map(o6).join(`
109
109
  `):" "+o6(i[0]):"as no adapter specified";throw new ke("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return s},adapters:Ry};function Py(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ni(null,e)}function n6(e){return Py(e),e.headers=va.from(e.headers),e.data=Fy.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),s6.getAdapter(e.adapter||Ty.adapter)(e).then(function(a){return Py(e),a.data=Fy.call(e,e.transformResponse,a),a.headers=va.from(a.headers),a},function(a){return e6(a)||(Py(e),a&&a.response&&(a.response.data=Fy.call(e,e.transformResponse,a.response),a.response.headers=va.from(a.response.headers))),Promise.reject(a)})}const i6=e=>e instanceof va?e.toJSON():e;function bs(e,a){a=a||{};const o={};function s(d,l,m){return Z.isPlainObject(d)&&Z.isPlainObject(l)?Z.merge.call({caseless:m},d,l):Z.isPlainObject(l)?Z.merge({},l):Z.isArray(l)?l.slice():l}function n(d,l,m){if(Z.isUndefined(l)){if(!Z.isUndefined(d))return s(void 0,d,m)}else return s(d,l,m)}function i(d,l){if(!Z.isUndefined(l))return s(void 0,l)}function r(d,l){if(Z.isUndefined(l)){if(!Z.isUndefined(d))return s(void 0,d)}else return s(void 0,l)}function c(d,l,m){if(m in a)return s(d,l);if(m in e)return s(void 0,d)}const g={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:c,headers:(d,l)=>n(i6(d),i6(l),!0)};return Z.forEach(Object.keys(Object.assign({},e,a)),function(d){const l=g[d]||n,m=l(e[d],a[d],d);Z.isUndefined(m)&&l!==c||(o[d]=m)}),o}const r6="1.6.7",Dy={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{Dy[e]=function(o){return typeof o===e||"a"+(a<1?"n ":" ")+e}});const l6={};Dy.transitional=function(e,a,o){function s(n,i){return"[Axios v"+r6+"] Transitional option '"+n+"'"+i+(o?". "+o:"")}return(n,i,r)=>{if(e===!1)throw new ke(s(i," has been removed"+(a?" in "+a:"")),ke.ERR_DEPRECATED);return a&&!l6[i]&&(l6[i]=!0,console.warn(s(i," has been deprecated since v"+a+" and will be removed in the near future"))),e?e(n,i,r):!0}};function yRe(e,a,o){if(typeof e!="object")throw new ke("options must be an object",ke.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let n=s.length;for(;n-- >0;){const i=s[n],r=a[i];if(r){const c=e[i],g=c===void 0||r(c,i,e);if(g!==!0)throw new ke("option "+i+" must be "+g,ke.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new ke("Unknown option "+i,ke.ERR_BAD_OPTION)}}const Ly={assertOptions:yRe,validators:Dy},mo=Ly.validators;class zc{constructor(a){this.defaults=a,this.interceptors={request:new X8,response:new X8}}async request(a,o){try{return await this._request(a,o)}catch(s){if(s instanceof Error){let n;Error.captureStackTrace?Error.captureStackTrace(n={}):n=new Error;const i=n.stack?n.stack.replace(/^.+\n/,""):"";s.stack?i&&!String(s.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(s.stack+=`
110
- `+i):s.stack=i}throw s}}_request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=bs(this.defaults,o);const{transitional:s,paramsSerializer:n,headers:i}=o;s!==void 0&&Ly.assertOptions(s,{silentJSONParsing:mo.transitional(mo.boolean),forcedJSONParsing:mo.transitional(mo.boolean),clarifyTimeoutError:mo.transitional(mo.boolean)},!1),n!=null&&(Z.isFunction(n)?o.paramsSerializer={serialize:n}:Ly.assertOptions(n,{encode:mo.function,serialize:mo.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let r=i&&Z.merge(i.common,i[o.method]);i&&Z.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),o.headers=va.concat(r,i);const c=[];let g=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(o)===!1||(g=g&&p.synchronous,c.unshift(p.fulfilled,p.rejected))});const d=[];this.interceptors.response.forEach(function(p){d.push(p.fulfilled,p.rejected)});let l,m=0,h;if(!g){const p=[n6.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,d),h=p.length,l=Promise.resolve(o);m<h;)l=l.then(p[m++],p[m++]);return l}h=c.length;let y=o;for(m=0;m<h;){const p=c[m++],u=c[m++];try{y=p(y)}catch(f){u.call(this,f);break}}try{l=n6.call(this,y)}catch(p){return Promise.reject(p)}for(m=0,h=d.length;m<h;)l=l.then(d[m++],d[m++]);return l}getUri(a){a=bs(this.defaults,a);const o=t6(a.baseURL,a.url);return J8(o,a.params,a.paramsSerializer)}}Z.forEach(["delete","get","head","options"],function(e){zc.prototype[e]=function(a,o){return this.request(bs(o||{},{method:e,url:a,data:(o||{}).data}))}}),Z.forEach(["post","put","patch"],function(e){function a(o){return function(s,n,i){return this.request(bs(i||{},{method:e,headers:o?{"Content-Type":"multipart/form-data"}:{},url:s,data:n}))}}zc.prototype[e]=a(),zc.prototype[e+"Form"]=a(!0)});const Fc=zc;class jy{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(n){o=n});const s=this;this.promise.then(n=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](n);s._listeners=null}),this.promise.then=n=>{let i;const r=new Promise(c=>{s.subscribe(c),i=c}).then(n);return r.cancel=function(){s.unsubscribe(i)},r},a(function(n,i,r){s.reason||(s.reason=new ni(n,i,r),o(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const o=this._listeners.indexOf(a);o!==-1&&this._listeners.splice(o,1)}static source(){let a;return{token:new jy(function(o){a=o}),cancel:a}}}const uRe=jy;function fRe(e){return function(a){return e.apply(null,a)}}function _Re(e){return Z.isObject(e)&&e.isAxiosError===!0}const vy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(vy).forEach(([e,a])=>{vy[a]=e});const bRe=vy;function c6(e){const a=new Fc(e),o=O8(Fc.prototype.request,a);return Z.extend(o,Fc.prototype,a,{allOwnKeys:!0}),Z.extend(o,a,null,{allOwnKeys:!0}),o.create=function(s){return c6(bs(e,s))},o}const tt=c6(Ty);tt.Axios=Fc,tt.CanceledError=ni,tt.CancelToken=uRe,tt.isCancel=e6,tt.VERSION=r6,tt.toFormData=Ac,tt.AxiosError=ke,tt.Cancel=tt.CanceledError,tt.all=function(e){return Promise.all(e)},tt.spread=fRe,tt.isAxiosError=_Re,tt.mergeConfig=bs,tt.AxiosHeaders=va,tt.formToJSON=e=>K8(Z.isHTMLForm(e)?new FormData(e):e),tt.getAdapter=s6.getAdapter,tt.HttpStatusCode=bRe,tt.default=tt;const d6=tt;let m6=null;const wRe={components:{GSCPlayerTeamGame:fOe,GSCLineups:fVe,GSCData:P_e,GSCHighlights:nbe,GSCSlider:Z0e,TableComparative:KOe,GSCThumbnailHighlightGameHistoric:xOe,GscLinearTeamStats:aFe},props:{config:{type:Object,default:()=>{}},type:{type:String,default:"Postmatch"},showLineups:{type:Boolean,default:!0}},data(){return{update:0,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},stats:{},home:{},away:{},gameInfo:{},elementSize:{width:0,height:0},componentKey:0,homeXg:"",homeGoals:"",awayXg:"",awayGoals:"",url:"https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/",gamesContainerWidth:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{gridpartidosummaryClass(){return this.gamesContainerWidth<=820?"grid-partido-summary820":"grid-partido-summary"},videopartidopltegaplayersClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-players620":"video-partido-pltega-players"}},watch:{elementSize:{handler:function(e,a){a&&(a.width===0||a.width>700)&&this.componentKey<1&&this.componentKey++},immediate:!0,deep:!0}},methods:{getCarouselWidth(){const e=this.$refs.refDataContainer;if(e){const a=e.getBoundingClientRect(),o=a.width/1,s=Math.max(200,o);this.elementSize.width=s,this.elementSize.height=a.height}},onclickPlayVideos(e){var a=[];e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const o=[1,2,3];let s={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.data.matchResult]:o,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(s.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",s)},onViewMoreGs(){this.$emit("changeToTab","Datos Golstats")},changeToTab(){this.$emit("changeToTab","Estadísticas")},openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)m6=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),m6.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},getXg(e){let a={};const o=e.local_team.reduce((r,c)=>(a[c[16]]||(r+=c[14],a[c[16]]=!0),r),0);a={};const s=e.local_team.reduce((r,c)=>(!a[c[16]]&&(c[0]==12||c[0]==55||c[0]==35||c[0]==54)&&(r+=c[6],a[c[16]]=!0),r),0);a={};const n=e.visiting_team.reduce((r,c)=>(a[c[16]]||(r+=c[14],a[c[16]]=!0),r),0);a={};const i=e.visiting_team.reduce((r,c)=>(!a[c[16]]&&(c[0]==12||c[0]==55||c[0]==35||c[0]==54)&&(r+=c[6],a[c[16]]=!0),r),0);this.homeXg=A8(o,2),this.homeGoals=s,this.awayXg=A8(n,2),this.awayGoals=i},async fillData(){const e=d6.create({headers:{Authorization:`${this.token}`}}),a=await e.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.config.season_id),o=a.data.games.findIndex(r=>r.game_id===this.config.game);this.gameInfo=a.data.games[o];const s=await e.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+this.config.game);this.item.category=0,this.item.game_id=s.data.game_id,this.item.season_id=this.config.season_id,this.type==="Postmatch"&&(this.item.score=s.data.thumbnails[s.data.game_id].score[0]+" - "+s.data.thumbnails[s.data.game_id].score[1],this.item.backgroundhome=s.data.thumbnails[s.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=s.data.thumbnails[s.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome="https://az755631.vo.msecnd.net/teams-150/"+s.data.thumbnails[s.data.game_id].home_team+".png",this.item.logoaway="https://az755631.vo.msecnd.net/teams-150/"+s.data.thumbnails[s.data.game_id].visiting_team+".png",this.item.background="https://golstatsimages.blob.core.windows.net/images-library/"+s.data.thumbnails[s.data.game_id].info_thumbnails.images.background_default_games[0]);const n=await e.get("https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/"+this.config.season_id+"/teams/"+this.gameInfo.home_team+"/"+this.gameInfo.visiting_team);this.getXg(n.data),this.stats[this.gameInfo.home_team]=[],this.stats[this.gameInfo.visiting_team]=[];var i=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40];for(let r=0;r<i.length;r++)this.stats[this.gameInfo.home_team][i[r]]=[],this.stats[this.gameInfo.home_team][i[r]]=0,this.stats[this.gameInfo.visiting_team][i[r]]=[],this.stats[this.gameInfo.visiting_team][i[r]]=0;if(this.type==="Postmatch"){const r=await e.get("https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/"+this.config.game);for(let c=0;c<r.data.data.length;c++)r.data.data[c][1]==this.gameInfo.home_team?this.stats[this.gameInfo.home_team][r.data.data[c][0]]?this.stats[this.gameInfo.home_team][r.data.data[c][0]]=this.stats[this.gameInfo.home_team][r.data.data[c][0]]+r.data.data[c][6]:(this.stats[this.gameInfo.home_team][r.data.data[c][0]]=[],this.stats[this.gameInfo.home_team][r.data.data[c][0]]=r.data.data[c][6]):this.stats[this.gameInfo.visiting_team][r.data.data[c][0]]?this.stats[this.gameInfo.visiting_team][r.data.data[c][0]]=this.stats[this.gameInfo.visiting_team][r.data.data[c][0]]+r.data.data[c][6]:(this.stats[this.gameInfo.visiting_team][r.data.data[c][0]]=[],this.stats[this.gameInfo.visiting_team][r.data.data[c][0]]=r.data.data[c][6])}else if(this.type==="Prematch"){const r=await e.get("https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/"+this.config.season_id+"/"+this.gameInfo.home_team),c=await e.get("https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/"+this.config.season_id+"/"+this.gameInfo.visiting_team),g=r.data.games.played?r.data.games.played:1,d=c.data.games.played?c.data.games.played:1;for(let h=0;h<r.data.data.length;h++){const[y,,,,,,p]=r.data.data[h],u=this.stats[this.gameInfo.home_team];u[y]=(u[y]||0)+p}for(let h=0;h<c.data.data.length;h++){const[y,,,,,,p]=c.data.data[h],u=this.stats[this.gameInfo.visiting_team];u[y]=(u[y]||0)+p}const l=this.stats[this.gameInfo.home_team];for(const h in l)l[h]&&l[h]>0&&(l[h]/=g);const m=this.stats[this.gameInfo.visiting_team];for(const h in m)m[h]&&m[h]>0&&(m[h]/=d)}},async getTableList(){try{const e=await d6.create({headers:{Authorization:`${this.token}`}}).get(this.url+this.config.season_id),a=e.data.data.findIndex(s=>s.team_id===this.gameInfo.home_team),o=e.data.data.findIndex(s=>s.team_id===this.gameInfo.visiting_team);this.home=e.data.data[a],this.away=e.data.data[o],this.update+=1}catch(e){console.error(e)}}},async mounted(){setTimeout(()=>{this.setUpResizeObserver(),this.getCarouselWidth(),window.addEventListener("resize",this.getCarouselWidth)},1e3),await this.fillData(),await this.getTableList()},beforeUnmount(){window.removeEventListener("resize",this.getCarouselWidth)}},fo=e=>(t.pushScopeId("data-v-c9aa1620"),e=e(),t.popScopeId(),e),CRe={ref:"gamesContainer",class:"container",style:{}},kRe={class:"video-partido-container"},SRe={class:"video-partido-container__highlight"},ERe={key:0,class:"video-partido-container__ribbon"},NRe=fo(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"HIGHLIGHTS DEL",-1)),$Re=fo(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"PARTIDO",-1)),BRe={key:1,class:"video-partido-container__description"},xRe=fo(()=>t.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M2.30205 11.4277C2.21053 11.3756 2.13403 11.2978 2.0808 11.2027C2.02757 11.1075 1.99964 10.9986 2 10.8878V1.11068C2.00013 1.0002 2.02825 0.891808 2.08137 0.797044C2.13449 0.70228 2.21063 0.624681 2.3017 0.572496C2.39276 0.520311 2.49535 0.495491 2.59855 0.500673C2.70175 0.505856 2.80171 0.540848 2.8878 0.601929L9.74533 5.49105C9.82365 5.54675 9.88789 5.62229 9.93232 5.71095C9.97675 5.79961 10 5.89864 10 5.99923C10 6.09982 9.97675 6.19885 9.93232 6.28751C9.88789 6.37617 9.82365 6.45171 9.74533 6.50741L2.8878 11.3977C2.80184 11.4589 2.70196 11.494 2.5988 11.4993C2.49565 11.5046 2.39309 11.4798 2.30205 11.4277ZM2.57173 10.8889L9.42926 5.99981L2.57173 10.8889Z",fill:"#CBEE6B"})],-1)),VRe={class:"video-partido-container__image"},IRe=fo(()=>t.createElementVNode("p",{class:"video-partido-container__description"},"Las jugadas mas importantes del partido",-1)),ARe=fo(()=>t.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M2.30205 11.4277C2.21053 11.3756 2.13403 11.2978 2.0808 11.2027C2.02757 11.1075 1.99964 10.9986 2 10.8878V1.11068C2.00013 1.0002 2.02825 0.891808 2.08137 0.797044C2.13449 0.70228 2.21063 0.624681 2.3017 0.572496C2.39276 0.520311 2.49535 0.495491 2.59855 0.500673C2.70175 0.505856 2.80171 0.540848 2.8878 0.601929L9.74533 5.49105C9.82365 5.54675 9.88789 5.62229 9.93232 5.71095C9.97675 5.79961 10 5.89864 10 5.99923C10 6.09982 9.97675 6.19885 9.93232 6.28751C9.88789 6.37617 9.82365 6.45171 9.74533 6.50741L2.8878 11.3977C2.80184 11.4589 2.70196 11.494 2.5988 11.4993C2.49565 11.5046 2.39309 11.4798 2.30205 11.4277ZM2.57173 10.8889L9.42926 5.99981L2.57173 10.8889Z",fill:"#CBEE6B"})],-1)),ORe={key:1,style:{width:"100%"}},TRe={class:"gsdatacontainer",ref:"refDataContainer"},zRe={class:"staticsMovilContainerSlider"},FRe={class:"staticsMovilContainer"},RRe={class:"staticsMovilContainerComparative"},PRe={class:"staticscontainer__header"},DRe=fo(()=>t.createElementVNode("h2",{class:"staticscontainer__header__title"},"Estadísticas",-1)),LRe={class:"staticsMovilContainerStats"},jRe={key:0,class:"gslineupscontainer"},vRe={class:"staticscontainer__header"},MRe=fo(()=>t.createElementVNode("h2",{class:"staticscontainer__header__title"},"Estadísticas",-1)),HRe={class:"comparativecontainer"},URe={class:"statslinercontainer"};function GRe(e,a,o,s,n,i){const r=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),c=t.resolveComponent("GSCHighlights"),g=t.resolveComponent("GSCPlayerTeamGame"),d=t.resolveComponent("GSCData"),l=t.resolveComponent("TableComparative"),m=t.resolveComponent("GscLinearTeamStats"),h=t.resolveComponent("GSCSlider"),y=t.resolveComponent("GSCLineups");return t.openBlock(),t.createElementBlock("div",CRe,[t.createElementVNode("div",kRe,[t.createElementVNode("div",SRe,[o.type=="Postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:"video-partido-container__content",style:t.normalizeStyle(n.gamesContainerWidth<645?"margin-bottom: 30px":"")},[Object.keys(n.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",ERe,t.toDisplayString(n.gameInfo.matchday_name.replace("Matchday","Jornada")),1)):t.createCommentVNode("",!0),NRe,$Re,n.gamesContainerWidth>=645?(t.openBlock(),t.createElementBlock("p",BRe,"Las jugadas mas importantes del partido")):t.createCommentVNode("",!0),n.gamesContainerWidth>=645?(t.openBlock(),t.createElementBlock("button",{key:2,class:"video-partido-container__button",onClick:a[0]||(a[0]=p=>i.onclickPlayVideos({data:n.item,type:1}))},[xRe,t.createTextVNode(" Reproducir ahora ")])):t.createCommentVNode("",!0)],4),t.createElementVNode("div",VRe,[n.item.background!=""?(t.openBlock(),t.createBlock(r,{key:0,"color-background-home":n.item.backgroundhome,"color-background-away":n.item.backgroundaway,"logo-home":n.item.logohome,"logo-away":n.item.logoaway,background:n.item.background,matchday:n.item.match,"season-name":n.item.seasonname,onOnclickPlayVideos:a[1]||(a[1]=p=>i.onclickPlayVideos({data:n.item,type:1})),score:n.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","background","matchday","season-name","score"])):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"video-partido-container__content2",style:t.normalizeStyle(n.gamesContainerWidth<645?"display:block; width: 100%":"display:none")},[IRe,t.createElementVNode("button",{class:"video-partido-container__button",onClick:a[2]||(a[2]=p=>i.onclickPlayVideos({data:n.item,type:1}))},[ARe,t.createTextVNode(" Reproducir ahora ")])],4)],64)):(t.openBlock(),t.createElementBlock("div",ORe,[t.createVNode(c,{onOpenmedia:i.openmedia,data:{game:o.config.game,season:o.config.season_id,type:"historic"}},null,8,["onOpenmedia","data"])]))]),t.createElementVNode("div",{class:t.normalizeClass(i.videopartidopltegaplayersClass)},[t.createVNode(g,{"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",onOpenmedia:i.openmedia,"background-color":"#172531","background-footer":"#183143",style:{"margin-top":"10px"},type:3,title:"Jugadores (sus mejores jugadas):",data:{season:o.config.season_id,game:o.config.game,isPrematch:o.type==="Postmatch"?0:1},onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","data","onOnClickVideos","onOnClickCard"])],2),t.createElementVNode("div",{class:t.normalizeClass(i.gridpartidosummaryClass)},[t.createElementVNode("div",{class:t.normalizeClass(i.gridpartidosummaryClass+"__row1")},[t.createElementVNode("div",TRe,[(t.openBlock(),t.createElementBlock("div",{class:"gsWidthDataContainer",key:n.componentKey},[o.type=="Postmatch"?(t.openBlock(),t.createBlock(d,{key:0,onOpenmedia:i.openmedia,type:0,"customize-colors":!1,prematch:!1,"click-card":!1,data:{season:o.config.season_id,game:o.config.game,home_team_id:n.gameInfo.home_team,away_team_id:n.gameInfo.visiting_team,player:123,team_view:n.gameInfo.home_team},onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard,onOnClickCategory:e.onClickCategory,onOnViewMore:i.onViewMoreGs},null,8,["onOpenmedia","data","onOnClickVideos","onOnClickCard","onOnClickCategory","onOnViewMore"])):(t.openBlock(),t.createBlock(d,{key:1,onOpenmedia:i.openmedia,type:0,"customize-colors":!1,prematch:!0,"click-card":!1,data:{season:o.config.season_id,game:o.config.game,home_team_id:n.gameInfo.home_team,away_team_id:n.gameInfo.visiting_team,player:123,team_view:n.gameInfo.home_team},onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard,onOnClickCategory:e.onClickCategory,onOnViewMore:i.onViewMoreGs},null,8,["onOpenmedia","data","onOnClickVideos","onOnClickCard","onOnClickCategory","onOnViewMore"]))]))],512),t.createElementVNode("div",zRe,[t.createVNode(h,{pxScroll:420,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsHideOnNoScroll:!0,arrowsBackground:"none",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"0%",arrowsBorder:"none","background-color":"#172531"},{default:t.withCtx(()=>[t.createElementVNode("div",FRe,[t.createElementVNode("div",RRe,[t.createElementVNode("div",PRe,[DRe,t.createElementVNode("a",{class:"staticscontainer__header__button",onClick:a[3]||(a[3]=(...p)=>i.changeToTab&&i.changeToTab(...p))},"Ver más")]),t.createVNode(l,{local:n.home,away:n.away,"home-xg":n.homeXg,"home-goals":n.homeGoals,"away-xg":n.awayXg,"away-goals":n.awayGoals,fontFamily:"Poppins-Regular"},null,8,["local","away","home-xg","home-goals","away-xg","away-goals"])]),t.createElementVNode("div",LRe,[t.createVNode(m,{onOpenmedia:i.openmedia,stats:n.stats,"game-info":n.gameInfo},null,8,["onOpenmedia","stats","game-info"])])])]),_:1})]),o.showLineups?(t.openBlock(),t.createElementBlock("div",jRe,[o.type=="Postmatch"?(t.openBlock(),t.createBlock(y,{key:0,type:"2D","selected-option":"Postmatch",game:{game_id:o.config.game,season_id:o.config.season_id,prematch:!1}},null,8,["game"])):(t.openBlock(),t.createBlock(y,{key:1,type:"2D","selected-option":"Historicos",game:{game_id:o.config.game,season_id:o.config.season_id,prematch:!1}},null,8,["game"]))])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(i.gridpartidosummaryClass+"__row2")},[t.createElementVNode("div",vRe,[MRe,t.createElementVNode("a",{class:"staticscontainer__header__button",onClick:a[4]||(a[4]=(...p)=>i.changeToTab&&i.changeToTab(...p))},"Ver más")]),t.createElementVNode("div",HRe,[t.createVNode(l,{local:n.home,away:n.away,"home-xg":n.homeXg,"home-goals":n.homeGoals,"away-xg":n.awayXg,"away-goals":n.awayGoals,fontFamily:"Poppins-Regular"},null,8,["local","away","home-xg","home-goals","away-xg","away-goals"])]),t.createElementVNode("div",URe,[t.createVNode(m,{onOpenmedia:i.openmedia,stats:n.stats,"game-info":n.gameInfo},null,8,["onOpenmedia","stats","game-info"])])],2)],2)])],512)}const p6=fs(wRe,[["render",GRe],["__scopeId","data-v-c9aa1620"]]),ZMe="",YMe="",WRe={class:"datagame-container"},qRe=Ae({__name:"GSCSummaryMain",props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},showLineups:{type:Boolean,default:!0}},emits:["openmedia","changeToTab"],setup(e,{emit:a}){const o=e,s=t.ref(0);t.watch(()=>o.game,r=>{s.value=r.gameId},{deep:!0,immediate:!0});function n(r){a("openmedia",r)}function i(r){a("changeToTab",r)}return(r,c)=>(t.openBlock(),t.createElementBlock("div",WRe,[e.game.status==4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(p6),{onOpenmedia:n,onChangeToTab:i,type:"Prematch",key:s.value,config:{season_id:e.game.seasonId,game:e.game.gameId},showLineups:e.showLineups},null,8,["config","showLineups"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(p6),{onOpenmedia:n,onChangeToTab:i,type:"Postmatch",key:s.value,config:{season_id:e.game.seasonId,game:e.game.gameId},showLineups:e.showLineups},null,8,["config","showLineups"])):t.createCommentVNode("",!0)],64))]))}},[["__scopeId","data-v-52b7c6ea"]]),ii=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},JRe={__name:"ButtonCustom",props:{text:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},padding:{type:String,default:"0px"},borderRadius:{type:String,default:"0px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"#d9d9d9"},backgroundColor:{type:String,default:"#FFFFFF"},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},activeBorderWidth:{type:String,default:"1px"},activeFontColor:{type:String,default:""},fontColor:{type:String,default:"#000000"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular, sans-serif"},isActive:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:a}){const o=e,s=t.computed(()=>({"--height":o.height,"--width":o.width,"--padding":o.padding,"--border-radius":o.borderRadius,"--border":`solid ${o.borderWidth} ${o.borderColor}`,"--background-color":o.backgroundColor,"--font-color":o.fontColor,"--font-size":o.fontSize,"--font-family":o.fontFamily,"--active-background-color":o.activeBackgroundColor||o.backgroundColor,"--active-border-color":o.activeBorderColor||o.borderColor,"--active-font-color":o.activeFontColor||o.fontColor}));function n(){a("click")}return(i,r)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["button",{active:e.isActive}]),style:t.normalizeStyle(s.value),onClick:n},t.toDisplayString(e.text),7))}},XRe=ii(JRe,[["__scopeId","data-v-ba70584e"]]);function h6(e,a){return function(){return e.apply(a,arguments)}}const{toString:ZRe}=Object.prototype,{getPrototypeOf:My}=Object,Rc=(e=>a=>{const o=ZRe.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),$a=e=>(e=e.toLowerCase(),a=>Rc(a)===e),Pc=e=>a=>typeof a===e,{isArray:ws}=Array,ri=Pc("undefined");function YRe(e){return e!==null&&!ri(e)&&e.constructor!==null&&!ri(e.constructor)&&Mt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const g6=$a("ArrayBuffer");function KRe(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&g6(e.buffer),a}const QRe=Pc("string"),Mt=Pc("function"),y6=Pc("number"),Dc=e=>e!==null&&typeof e=="object",ePe=e=>e===!0||e===!1,Lc=e=>{if(Rc(e)!=="object")return!1;const a=My(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},tPe=$a("Date"),aPe=$a("File"),oPe=$a("Blob"),sPe=$a("FileList"),nPe=e=>Dc(e)&&Mt(e.pipe),iPe=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Mt(e.append)&&((a=Rc(e))==="formdata"||a==="object"&&Mt(e.toString)&&e.toString()==="[object FormData]"))},rPe=$a("URLSearchParams"),lPe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function li(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let s,n;if(typeof e!="object"&&(e=[e]),ws(e))for(s=0,n=e.length;s<n;s++)a.call(null,e[s],s,e);else{const i=o?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let c;for(s=0;s<r;s++)c=i[s],a.call(null,e[c],c,e)}}function u6(e,a){a=a.toLowerCase();const o=Object.keys(e);let s=o.length,n;for(;s-- >0;)if(n=o[s],a===n.toLowerCase())return n;return null}const f6=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),_6=e=>!ri(e)&&e!==f6;function Hy(){const{caseless:e}=_6(this)&&this||{},a={},o=(s,n)=>{const i=e&&u6(a,n)||n;Lc(a[i])&&Lc(s)?a[i]=Hy(a[i],s):Lc(s)?a[i]=Hy({},s):ws(s)?a[i]=s.slice():a[i]=s};for(let s=0,n=arguments.length;s<n;s++)arguments[s]&&li(arguments[s],o);return a}const cPe=(e,a,o,{allOwnKeys:s}={})=>(li(a,(n,i)=>{o&&Mt(n)?e[i]=h6(n,o):e[i]=n},{allOwnKeys:s}),e),dPe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mPe=(e,a,o,s)=>{e.prototype=Object.create(a.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},pPe=(e,a,o,s)=>{let n,i,r;const c={};if(a=a||{},e==null)return a;do{for(n=Object.getOwnPropertyNames(e),i=n.length;i-- >0;)r=n[i],(!s||s(r,e,a))&&!c[r]&&(a[r]=e[r],c[r]=!0);e=o!==!1&&My(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},hPe=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const s=e.indexOf(a,o);return s!==-1&&s===o},gPe=e=>{if(!e)return null;if(ws(e))return e;let a=e.length;if(!y6(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},yPe=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&My(Uint8Array)),uPe=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const n=s.value;a.call(e,n[0],n[1])}},fPe=(e,a)=>{let o;const s=[];for(;(o=e.exec(a))!==null;)s.push(o);return s},_Pe=$a("HTMLFormElement"),bPe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,s){return o.toUpperCase()+s}),b6=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),wPe=$a("RegExp"),w6=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),s={};li(o,(n,i)=>{let r;(r=a(n,i,e))!==!1&&(s[i]=r||n)}),Object.defineProperties(e,s)},CPe=e=>{w6(e,(a,o)=>{if(Mt(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const s=e[o];if(Mt(s)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},kPe=(e,a)=>{const o={},s=n=>{n.forEach(i=>{o[i]=!0})};return ws(e)?s(e):s(String(e).split(a)),o},SPe=()=>{},EPe=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Uy="abcdefghijklmnopqrstuvwxyz",C6="0123456789",k6={DIGIT:C6,ALPHA:Uy,ALPHA_DIGIT:Uy+Uy.toUpperCase()+C6},NPe=(e=16,a=k6.ALPHA_DIGIT)=>{let o="";const{length:s}=a;for(;e--;)o+=a[Math.random()*s|0];return o};function $Pe(e){return!!(e&&Mt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const BPe=e=>{const a=new Array(10),o=(s,n)=>{if(Dc(s)){if(a.indexOf(s)>=0)return;if(!("toJSON"in s)){a[n]=s;const i=ws(s)?[]:{};return li(s,(r,c)=>{const g=o(r,n+1);!ri(g)&&(i[c]=g)}),a[n]=void 0,i}}return s};return o(e,0)},xPe=$a("AsyncFunction"),VPe=e=>e&&(Dc(e)||Mt(e))&&Mt(e.then)&&Mt(e.catch),Y={isArray:ws,isArrayBuffer:g6,isBuffer:YRe,isFormData:iPe,isArrayBufferView:KRe,isString:QRe,isNumber:y6,isBoolean:ePe,isObject:Dc,isPlainObject:Lc,isUndefined:ri,isDate:tPe,isFile:aPe,isBlob:oPe,isRegExp:wPe,isFunction:Mt,isStream:nPe,isURLSearchParams:rPe,isTypedArray:yPe,isFileList:sPe,forEach:li,merge:Hy,extend:cPe,trim:lPe,stripBOM:dPe,inherits:mPe,toFlatObject:pPe,kindOf:Rc,kindOfTest:$a,endsWith:hPe,toArray:gPe,forEachEntry:uPe,matchAll:fPe,isHTMLForm:_Pe,hasOwnProperty:b6,hasOwnProp:b6,reduceDescriptors:w6,freezeMethods:CPe,toObjectSet:kPe,toCamelCase:bPe,noop:SPe,toFiniteNumber:EPe,findKey:u6,global:f6,isContextDefined:_6,ALPHABET:k6,generateString:NPe,isSpecCompliantForm:$Pe,toJSONObject:BPe,isAsyncFn:xPe,isThenable:VPe};function Se(e,a,o,s,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),s&&(this.request=s),n&&(this.response=n)}Y.inherits(Se,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:Y.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const S6=Se.prototype,E6={};["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=>{E6[e]={value:e}}),Object.defineProperties(Se,E6),Object.defineProperty(S6,"isAxiosError",{value:!0}),Se.from=(e,a,o,s,n,i)=>{const r=Object.create(S6);return Y.toFlatObject(e,r,function(c){return c!==Error.prototype},c=>c!=="isAxiosError"),Se.call(r,e.message,a,o,s,n),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const IPe=null;function Gy(e){return Y.isPlainObject(e)||Y.isArray(e)}function N6(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function $6(e,a,o){return e?e.concat(a).map(function(s,n){return s=N6(s),!o&&n?"["+s+"]":s}).join(o?".":""):a}function APe(e){return Y.isArray(e)&&!e.some(Gy)}const OPe=Y.toFlatObject(Y,{},null,function(e){return/^is[A-Z]/.test(e)});function jc(e,a,o){if(!Y.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=Y.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,p){return!Y.isUndefined(p[y])});const s=o.metaTokens,n=o.visitor||d,i=o.dots,r=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&Y.isSpecCompliantForm(a);if(!Y.isFunction(n))throw new TypeError("visitor must be a function");function g(y){if(y===null)return"";if(Y.isDate(y))return y.toISOString();if(!c&&Y.isBlob(y))throw new Se("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(y)||Y.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,p,u){let f=y;if(y&&!u&&typeof y=="object"){if(Y.endsWith(p,"{}"))p=s?p:p.slice(0,-2),y=JSON.stringify(y);else if(Y.isArray(y)&&APe(y)||(Y.isFileList(y)||Y.endsWith(p,"[]"))&&(f=Y.toArray(y)))return p=N6(p),f.forEach(function(_,k){!(Y.isUndefined(_)||_===null)&&a.append(r===!0?$6([p],k,i):r===null?p:p+"[]",g(_))}),!1}return Gy(y)?!0:(a.append($6(u,p,i),g(y)),!1)}const l=[],m=Object.assign(OPe,{defaultVisitor:d,convertValue:g,isVisitable:Gy});function h(y,p){if(!Y.isUndefined(y)){if(l.indexOf(y)!==-1)throw Error("Circular reference detected in "+p.join("."));l.push(y),Y.forEach(y,function(u,f){(!(Y.isUndefined(u)||u===null)&&n.call(a,u,Y.isString(f)?f.trim():f,p,m))===!0&&h(u,p?p.concat(f):[f])}),l.pop()}}if(!Y.isObject(e))throw new TypeError("data must be an object");return h(e),a}function B6(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function Wy(e,a){this._pairs=[],e&&jc(e,this,a)}const x6=Wy.prototype;x6.append=function(e,a){this._pairs.push([e,a])},x6.toString=function(e){const a=e?function(o){return e.call(this,o,B6)}:B6;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function TPe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function V6(e,a,o){if(!a)return e;const s=o&&o.encode||TPe,n=o&&o.serialize;let i;if(n?i=n(a,o):i=Y.isURLSearchParams(a)?a.toString():new Wy(a,o).toString(s),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class zPe{constructor(){this.handlers=[]}use(a,o,s){return this.handlers.push({fulfilled:a,rejected:o,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){Y.forEach(this.handlers,function(o){o!==null&&a(o)})}}const I6=zPe,A6={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},FPe=typeof URLSearchParams<"u"?URLSearchParams:Wy,RPe=typeof FormData<"u"?FormData:null,PPe=typeof Blob<"u"?Blob:null,DPe={isBrowser:!0,classes:{URLSearchParams:FPe,FormData:RPe,Blob:PPe},protocols:["http","https","file","blob","url","data"]},O6=typeof window<"u"&&typeof document<"u",LPe=(e=>O6&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),jPe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),vPe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:O6,hasStandardBrowserEnv:LPe,hasStandardBrowserWebWorkerEnv:jPe},Symbol.toStringTag,{value:"Module"})),Ba={...vPe,...DPe};function MPe(e,a){return jc(e,new Ba.classes.URLSearchParams,Object.assign({visitor:function(o,s,n,i){return Ba.isNode&&Y.isBuffer(o)?(this.append(s,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function HPe(e){return Y.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function UPe(e){const a={},o=Object.keys(e);let s;const n=o.length;let i;for(s=0;s<n;s++)i=o[s],a[i]=e[i];return a}function T6(e){function a(o,s,n,i){let r=o[i++];if(r==="__proto__")return!0;const c=Number.isFinite(+r),g=i>=o.length;return r=!r&&Y.isArray(n)?n.length:r,g?(Y.hasOwnProp(n,r)?n[r]=[n[r],s]:n[r]=s,!c):((!n[r]||!Y.isObject(n[r]))&&(n[r]=[]),a(o,s,n[r],i)&&Y.isArray(n[r])&&(n[r]=UPe(n[r])),!c)}if(Y.isFormData(e)&&Y.isFunction(e.entries)){const o={};return Y.forEachEntry(e,(s,n)=>{a(HPe(s),n,o,0)}),o}return null}function GPe(e,a,o){if(Y.isString(e))try{return(a||JSON.parse)(e),Y.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(o||JSON.stringify)(e)}const qy={transitional:A6,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",s=o.indexOf("application/json")>-1,n=Y.isObject(e);if(n&&Y.isHTMLForm(e)&&(e=new FormData(e)),Y.isFormData(e))return s?JSON.stringify(T6(e)):e;if(Y.isArrayBuffer(e)||Y.isBuffer(e)||Y.isStream(e)||Y.isFile(e)||Y.isBlob(e))return e;if(Y.isArrayBufferView(e))return e.buffer;if(Y.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(n){if(o.indexOf("application/x-www-form-urlencoded")>-1)return MPe(e,this.formSerializer).toString();if((i=Y.isFileList(e))||o.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return jc(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return n||s?(a.setContentType("application/json",!1),GPe(e)):e}],transformResponse:[function(e){const a=this.transitional||qy.transitional,o=a&&a.forcedJSONParsing,s=this.responseType==="json";if(e&&Y.isString(e)&&(o&&!this.responseType||s)){const n=!(a&&a.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(i){if(n)throw i.name==="SyntaxError"?Se.from(i,Se.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ba.classes.FormData,Blob:Ba.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],e=>{qy.headers[e]={}});const Jy=qy,WPe=Y.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"]),qPe=e=>{const a={};let o,s,n;return e&&e.split(`
110
+ `+i):s.stack=i}throw s}}_request(a,o){typeof a=="string"?(o=o||{},o.url=a):o=a||{},o=bs(this.defaults,o);const{transitional:s,paramsSerializer:n,headers:i}=o;s!==void 0&&Ly.assertOptions(s,{silentJSONParsing:mo.transitional(mo.boolean),forcedJSONParsing:mo.transitional(mo.boolean),clarifyTimeoutError:mo.transitional(mo.boolean)},!1),n!=null&&(Z.isFunction(n)?o.paramsSerializer={serialize:n}:Ly.assertOptions(n,{encode:mo.function,serialize:mo.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let r=i&&Z.merge(i.common,i[o.method]);i&&Z.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),o.headers=va.concat(r,i);const c=[];let g=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(o)===!1||(g=g&&p.synchronous,c.unshift(p.fulfilled,p.rejected))});const d=[];this.interceptors.response.forEach(function(p){d.push(p.fulfilled,p.rejected)});let l,m=0,h;if(!g){const p=[n6.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,d),h=p.length,l=Promise.resolve(o);m<h;)l=l.then(p[m++],p[m++]);return l}h=c.length;let y=o;for(m=0;m<h;){const p=c[m++],u=c[m++];try{y=p(y)}catch(f){u.call(this,f);break}}try{l=n6.call(this,y)}catch(p){return Promise.reject(p)}for(m=0,h=d.length;m<h;)l=l.then(d[m++],d[m++]);return l}getUri(a){a=bs(this.defaults,a);const o=t6(a.baseURL,a.url);return J8(o,a.params,a.paramsSerializer)}}Z.forEach(["delete","get","head","options"],function(e){zc.prototype[e]=function(a,o){return this.request(bs(o||{},{method:e,url:a,data:(o||{}).data}))}}),Z.forEach(["post","put","patch"],function(e){function a(o){return function(s,n,i){return this.request(bs(i||{},{method:e,headers:o?{"Content-Type":"multipart/form-data"}:{},url:s,data:n}))}}zc.prototype[e]=a(),zc.prototype[e+"Form"]=a(!0)});const Fc=zc;class jy{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(n){o=n});const s=this;this.promise.then(n=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](n);s._listeners=null}),this.promise.then=n=>{let i;const r=new Promise(c=>{s.subscribe(c),i=c}).then(n);return r.cancel=function(){s.unsubscribe(i)},r},a(function(n,i,r){s.reason||(s.reason=new ni(n,i,r),o(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const o=this._listeners.indexOf(a);o!==-1&&this._listeners.splice(o,1)}static source(){let a;return{token:new jy(function(o){a=o}),cancel:a}}}const uRe=jy;function fRe(e){return function(a){return e.apply(null,a)}}function _Re(e){return Z.isObject(e)&&e.isAxiosError===!0}const vy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(vy).forEach(([e,a])=>{vy[a]=e});const bRe=vy;function c6(e){const a=new Fc(e),o=O8(Fc.prototype.request,a);return Z.extend(o,Fc.prototype,a,{allOwnKeys:!0}),Z.extend(o,a,null,{allOwnKeys:!0}),o.create=function(s){return c6(bs(e,s))},o}const tt=c6(Ty);tt.Axios=Fc,tt.CanceledError=ni,tt.CancelToken=uRe,tt.isCancel=e6,tt.VERSION=r6,tt.toFormData=Ac,tt.AxiosError=ke,tt.Cancel=tt.CanceledError,tt.all=function(e){return Promise.all(e)},tt.spread=fRe,tt.isAxiosError=_Re,tt.mergeConfig=bs,tt.AxiosHeaders=va,tt.formToJSON=e=>K8(Z.isHTMLForm(e)?new FormData(e):e),tt.getAdapter=s6.getAdapter,tt.HttpStatusCode=bRe,tt.default=tt;const d6=tt;let m6=null;const wRe={components:{GSCPlayerTeamGame:fOe,GSCLineups:fVe,GSCData:P_e,GSCHighlights:nbe,GSCSlider:Z0e,TableComparative:KOe,GSCThumbnailHighlightGameHistoric:xOe,GscLinearTeamStats:aFe},props:{config:{type:Object,default:()=>{}},type:{type:String,default:"Postmatch"},showLineups:{type:Boolean,default:!0}},data(){return{update:0,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},stats:{},home:{},away:{},gameInfo:{},elementSize:{width:0,height:0},componentKey:0,homeXg:"",homeGoals:"",awayXg:"",awayGoals:"",url:"https://jfxv8fqkn3.execute-api.us-west-2.amazonaws.com/prod/generalTable/",gamesContainerWidth:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{gridpartidosummaryClass(){return this.gamesContainerWidth<=820?"grid-partido-summary820":"grid-partido-summary"},videopartidopltegaplayersClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-players620":"video-partido-pltega-players"}},watch:{elementSize:{handler:function(e,a){a&&(a.width===0||a.width>700)&&this.componentKey<1&&this.componentKey++},immediate:!0,deep:!0}},methods:{getCarouselWidth(){const e=this.$refs.refDataContainer;if(e){const a=e.getBoundingClientRect(),o=a.width/1,s=Math.max(200,o);this.elementSize.width=s,this.elementSize.height=a.height}},onclickPlayVideos(e){var a=[];e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const o=[1,2,3];let s={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.data.matchResult]:o,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(s.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",s)},onViewMoreGs(){this.$emit("changeToTab","Datos Golstats")},changeToTab(){this.$emit("changeToTab","Estadísticas")},openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)m6=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),m6.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},getXg(e){let a={};const o=e.local_team.reduce((r,c)=>(a[c[16]]||(r+=c[14],a[c[16]]=!0),r),0);a={};const s=e.local_team.reduce((r,c)=>(!a[c[16]]&&(c[0]==12||c[0]==55||c[0]==35||c[0]==54)&&(r+=c[6],a[c[16]]=!0),r),0);a={};const n=e.visiting_team.reduce((r,c)=>(a[c[16]]||(r+=c[14],a[c[16]]=!0),r),0);a={};const i=e.visiting_team.reduce((r,c)=>(!a[c[16]]&&(c[0]==12||c[0]==55||c[0]==35||c[0]==54)&&(r+=c[6],a[c[16]]=!0),r),0);this.homeXg=A8(o,2),this.homeGoals=s,this.awayXg=A8(n,2),this.awayGoals=i},async fillData(){const e=d6.create({headers:{Authorization:`${this.token}`}}),a=await e.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.config.season_id),o=a.data.games.findIndex(r=>r.game_id===this.config.game);this.gameInfo=a.data.games[o];const s=await e.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+this.config.game);this.item.category=0,this.item.game_id=s.data.game_id,this.item.season_id=this.config.season_id,this.type==="Postmatch"&&(this.item.score=s.data.thumbnails[s.data.game_id].score[0]+" - "+s.data.thumbnails[s.data.game_id].score[1],this.item.backgroundhome=s.data.thumbnails[s.data.game_id].info_thumbnails.home_colors.background_color,this.item.backgroundaway=s.data.thumbnails[s.data.game_id].info_thumbnails.away_colors.background_color,this.item.logohome="https://az755631.vo.msecnd.net/teams-150/"+s.data.thumbnails[s.data.game_id].home_team+".png",this.item.logoaway="https://az755631.vo.msecnd.net/teams-150/"+s.data.thumbnails[s.data.game_id].visiting_team+".png",this.item.background="https://golstatsimages.blob.core.windows.net/images-library/"+s.data.thumbnails[s.data.game_id].info_thumbnails.images.background_default_games[0]);const n=await e.get("https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/"+this.config.season_id+"/teams/"+this.gameInfo.home_team+"/"+this.gameInfo.visiting_team);this.getXg(n.data),this.stats[this.gameInfo.home_team]=[],this.stats[this.gameInfo.visiting_team]=[];var i=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40];for(let r=0;r<i.length;r++)this.stats[this.gameInfo.home_team][i[r]]=[],this.stats[this.gameInfo.home_team][i[r]]=0,this.stats[this.gameInfo.visiting_team][i[r]]=[],this.stats[this.gameInfo.visiting_team][i[r]]=0;if(this.type==="Postmatch"){const r=await e.get("https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/"+this.config.game);for(let c=0;c<r.data.data.length;c++)r.data.data[c][1]==this.gameInfo.home_team?this.stats[this.gameInfo.home_team][r.data.data[c][0]]?this.stats[this.gameInfo.home_team][r.data.data[c][0]]=this.stats[this.gameInfo.home_team][r.data.data[c][0]]+r.data.data[c][6]:(this.stats[this.gameInfo.home_team][r.data.data[c][0]]=[],this.stats[this.gameInfo.home_team][r.data.data[c][0]]=r.data.data[c][6]):this.stats[this.gameInfo.visiting_team][r.data.data[c][0]]?this.stats[this.gameInfo.visiting_team][r.data.data[c][0]]=this.stats[this.gameInfo.visiting_team][r.data.data[c][0]]+r.data.data[c][6]:(this.stats[this.gameInfo.visiting_team][r.data.data[c][0]]=[],this.stats[this.gameInfo.visiting_team][r.data.data[c][0]]=r.data.data[c][6])}else if(this.type==="Prematch"){const r=await e.get("https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/"+this.config.season_id+"/"+this.gameInfo.home_team),c=await e.get("https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/"+this.config.season_id+"/"+this.gameInfo.visiting_team),g=r.data.games.played?r.data.games.played:1,d=c.data.games.played?c.data.games.played:1;for(let h=0;h<r.data.data.length;h++){const[y,,,,,,p]=r.data.data[h],u=this.stats[this.gameInfo.home_team];u[y]=(u[y]||0)+p}for(let h=0;h<c.data.data.length;h++){const[y,,,,,,p]=c.data.data[h],u=this.stats[this.gameInfo.visiting_team];u[y]=(u[y]||0)+p}const l=this.stats[this.gameInfo.home_team];for(const h in l)l[h]&&l[h]>0&&(l[h]/=g);const m=this.stats[this.gameInfo.visiting_team];for(const h in m)m[h]&&m[h]>0&&(m[h]/=d)}},async getTableList(){try{const e=await d6.create({headers:{Authorization:`${this.token}`}}).get(this.url+this.config.season_id),a=e.data.data.findIndex(s=>s.team_id===this.gameInfo.home_team),o=e.data.data.findIndex(s=>s.team_id===this.gameInfo.visiting_team);this.home=e.data.data[a],this.away=e.data.data[o],this.update+=1}catch(e){console.error(e)}}},async mounted(){setTimeout(()=>{this.setUpResizeObserver(),this.getCarouselWidth(),window.addEventListener("resize",this.getCarouselWidth)},1e3),await this.fillData(),await this.getTableList()},beforeUnmount(){window.removeEventListener("resize",this.getCarouselWidth)}},fo=e=>(t.pushScopeId("data-v-c9aa1620"),e=e(),t.popScopeId(),e),CRe={ref:"gamesContainer",class:"container",style:{}},kRe={class:"video-partido-container"},SRe={class:"video-partido-container__highlight"},ERe={key:0,class:"video-partido-container__ribbon"},NRe=fo(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"HIGHLIGHTS DEL",-1)),$Re=fo(()=>t.createElementVNode("h2",{class:"video-partido-container__title"},"PARTIDO",-1)),BRe={key:1,class:"video-partido-container__description"},xRe=fo(()=>t.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M2.30205 11.4277C2.21053 11.3756 2.13403 11.2978 2.0808 11.2027C2.02757 11.1075 1.99964 10.9986 2 10.8878V1.11068C2.00013 1.0002 2.02825 0.891808 2.08137 0.797044C2.13449 0.70228 2.21063 0.624681 2.3017 0.572496C2.39276 0.520311 2.49535 0.495491 2.59855 0.500673C2.70175 0.505856 2.80171 0.540848 2.8878 0.601929L9.74533 5.49105C9.82365 5.54675 9.88789 5.62229 9.93232 5.71095C9.97675 5.79961 10 5.89864 10 5.99923C10 6.09982 9.97675 6.19885 9.93232 6.28751C9.88789 6.37617 9.82365 6.45171 9.74533 6.50741L2.8878 11.3977C2.80184 11.4589 2.70196 11.494 2.5988 11.4993C2.49565 11.5046 2.39309 11.4798 2.30205 11.4277ZM2.57173 10.8889L9.42926 5.99981L2.57173 10.8889Z",fill:"#CBEE6B"})],-1)),VRe={class:"video-partido-container__image"},IRe=fo(()=>t.createElementVNode("p",{class:"video-partido-container__description"},"Las jugadas mas importantes del partido",-1)),ARe=fo(()=>t.createElementVNode("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M2.30205 11.4277C2.21053 11.3756 2.13403 11.2978 2.0808 11.2027C2.02757 11.1075 1.99964 10.9986 2 10.8878V1.11068C2.00013 1.0002 2.02825 0.891808 2.08137 0.797044C2.13449 0.70228 2.21063 0.624681 2.3017 0.572496C2.39276 0.520311 2.49535 0.495491 2.59855 0.500673C2.70175 0.505856 2.80171 0.540848 2.8878 0.601929L9.74533 5.49105C9.82365 5.54675 9.88789 5.62229 9.93232 5.71095C9.97675 5.79961 10 5.89864 10 5.99923C10 6.09982 9.97675 6.19885 9.93232 6.28751C9.88789 6.37617 9.82365 6.45171 9.74533 6.50741L2.8878 11.3977C2.80184 11.4589 2.70196 11.494 2.5988 11.4993C2.49565 11.5046 2.39309 11.4798 2.30205 11.4277ZM2.57173 10.8889L9.42926 5.99981L2.57173 10.8889Z",fill:"#CBEE6B"})],-1)),ORe={key:1,style:{width:"100%"}},TRe={class:"gsdatacontainer",ref:"refDataContainer"},zRe={class:"staticsMovilContainerSlider"},FRe={class:"staticsMovilContainer"},RRe={class:"staticsMovilContainerComparative"},PRe={class:"staticscontainer__header"},DRe=fo(()=>t.createElementVNode("h2",{class:"staticscontainer__header__title"},"Estadísticas",-1)),LRe={class:"staticsMovilContainerStats"},jRe={key:0,class:"gslineupscontainer"},vRe={class:"staticscontainer__header"},MRe=fo(()=>t.createElementVNode("h2",{class:"staticscontainer__header__title"},"Estadísticas",-1)),HRe={class:"comparativecontainer"},URe={class:"statslinercontainer"};function GRe(e,a,o,s,n,i){const r=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),c=t.resolveComponent("GSCHighlights"),g=t.resolveComponent("GSCPlayerTeamGame"),d=t.resolveComponent("GSCData"),l=t.resolveComponent("TableComparative"),m=t.resolveComponent("GscLinearTeamStats"),h=t.resolveComponent("GSCSlider"),y=t.resolveComponent("GSCLineups");return t.openBlock(),t.createElementBlock("div",CRe,[t.createElementVNode("div",kRe,[t.createElementVNode("div",SRe,[o.type=="Postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:"video-partido-container__content",style:t.normalizeStyle(n.gamesContainerWidth<645?"margin-bottom: 30px":"")},[Object.keys(n.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",ERe,t.toDisplayString(n.gameInfo.matchday_name.replace("Matchday","Jornada")),1)):t.createCommentVNode("",!0),NRe,$Re,n.gamesContainerWidth>=645?(t.openBlock(),t.createElementBlock("p",BRe,"Las jugadas mas importantes del partido")):t.createCommentVNode("",!0),n.gamesContainerWidth>=645?(t.openBlock(),t.createElementBlock("button",{key:2,class:"video-partido-container__button",onClick:a[0]||(a[0]=p=>i.onclickPlayVideos({data:n.item,type:1}))},[xRe,t.createTextVNode(" Reproducir ahora ")])):t.createCommentVNode("",!0)],4),t.createElementVNode("div",VRe,[n.item.background!=""?(t.openBlock(),t.createBlock(r,{key:0,"color-background-home":n.item.backgroundhome,"color-background-away":n.item.backgroundaway,"logo-home":n.item.logohome,"logo-away":n.item.logoaway,background:n.item.background,matchday:n.item.match,"season-name":n.item.seasonname,onOnclickPlayVideos:a[1]||(a[1]=p=>i.onclickPlayVideos({data:n.item,type:1})),score:n.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","background","matchday","season-name","score"])):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"video-partido-container__content2",style:t.normalizeStyle(n.gamesContainerWidth<645?"display:block; width: 100%":"display:none")},[IRe,t.createElementVNode("button",{class:"video-partido-container__button",onClick:a[2]||(a[2]=p=>i.onclickPlayVideos({data:n.item,type:1}))},[ARe,t.createTextVNode(" Reproducir ahora ")])],4)],64)):(t.openBlock(),t.createElementBlock("div",ORe,[t.createVNode(c,{onOpenmedia:i.openmedia,data:{game:o.config.game,season:o.config.season_id,type:"historic"}},null,8,["onOpenmedia","data"])]))]),t.createElementVNode("div",{class:t.normalizeClass(i.videopartidopltegaplayersClass)},[t.createVNode(g,{"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",onOpenmedia:i.openmedia,"background-color":"#172531","background-footer":"#183143",style:{"margin-top":"10px"},type:3,title:"Jugadores (sus mejores jugadas):",data:{season:o.config.season_id,game:o.config.game,isPrematch:o.type==="Postmatch"?0:1},onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","data","onOnClickVideos","onOnClickCard"])],2),t.createElementVNode("div",{class:t.normalizeClass(i.gridpartidosummaryClass)},[t.createElementVNode("div",{class:t.normalizeClass(i.gridpartidosummaryClass+"__row1")},[t.createElementVNode("div",TRe,[(t.openBlock(),t.createElementBlock("div",{class:"gsWidthDataContainer",key:n.componentKey},[o.type=="Postmatch"?(t.openBlock(),t.createBlock(d,{key:0,onOpenmedia:i.openmedia,type:0,"customize-colors":!1,prematch:!1,"click-card":!1,data:{season:o.config.season_id,game:o.config.game,home_team_id:n.gameInfo.home_team,away_team_id:n.gameInfo.visiting_team,player:123,team_view:n.gameInfo.home_team},onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard,onOnClickCategory:e.onClickCategory,onOnViewMore:i.onViewMoreGs},null,8,["onOpenmedia","data","onOnClickVideos","onOnClickCard","onOnClickCategory","onOnViewMore"])):(t.openBlock(),t.createBlock(d,{key:1,onOpenmedia:i.openmedia,type:0,"customize-colors":!1,prematch:!0,"click-card":!1,data:{season:o.config.season_id,game:o.config.game,home_team_id:n.gameInfo.home_team,away_team_id:n.gameInfo.visiting_team,player:123,team_view:n.gameInfo.home_team},onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard,onOnClickCategory:e.onClickCategory,onOnViewMore:i.onViewMoreGs},null,8,["onOpenmedia","data","onOnClickVideos","onOnClickCard","onOnClickCategory","onOnViewMore"]))]))],512),t.createElementVNode("div",zRe,[t.createVNode(h,{pxScroll:420,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsHideOnNoScroll:!0,arrowsBackground:"none",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"0%",arrowsBorder:"none","background-color":"#172531"},{default:t.withCtx(()=>[t.createElementVNode("div",FRe,[t.createElementVNode("div",RRe,[t.createElementVNode("div",PRe,[DRe,t.createElementVNode("a",{class:"staticscontainer__header__button",onClick:a[3]||(a[3]=(...p)=>i.changeToTab&&i.changeToTab(...p))},"Ver más")]),t.createVNode(l,{local:n.home,away:n.away,"home-xg":n.homeXg,"home-goals":n.homeGoals,"away-xg":n.awayXg,"away-goals":n.awayGoals,fontFamily:"Poppins-Regular"},null,8,["local","away","home-xg","home-goals","away-xg","away-goals"])]),t.createElementVNode("div",LRe,[t.createVNode(m,{onOpenmedia:i.openmedia,stats:n.stats,"game-info":n.gameInfo},null,8,["onOpenmedia","stats","game-info"])])])]),_:1})]),o.showLineups?(t.openBlock(),t.createElementBlock("div",jRe,[o.type=="Postmatch"?(t.openBlock(),t.createBlock(y,{key:0,type:"2D","selected-option":"Postmatch",game:{game_id:o.config.game,season_id:o.config.season_id,prematch:!1}},null,8,["game"])):(t.openBlock(),t.createBlock(y,{key:1,type:"2D","selected-option":"Historicos",game:{game_id:o.config.game,season_id:o.config.season_id,prematch:!1}},null,8,["game"]))])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(i.gridpartidosummaryClass+"__row2")},[t.createElementVNode("div",vRe,[MRe,t.createElementVNode("a",{class:"staticscontainer__header__button",onClick:a[4]||(a[4]=(...p)=>i.changeToTab&&i.changeToTab(...p))},"Ver más")]),t.createElementVNode("div",HRe,[t.createVNode(l,{local:n.home,away:n.away,"home-xg":n.homeXg,"home-goals":n.homeGoals,"away-xg":n.awayXg,"away-goals":n.awayGoals,fontFamily:"Poppins-Regular"},null,8,["local","away","home-xg","home-goals","away-xg","away-goals"])]),t.createElementVNode("div",URe,[t.createVNode(m,{onOpenmedia:i.openmedia,stats:n.stats,"game-info":n.gameInfo},null,8,["onOpenmedia","stats","game-info"])])],2)],2)])],512)}const p6=fs(wRe,[["render",GRe],["__scopeId","data-v-c9aa1620"]]),ZMe="",YMe="",WRe={class:"datagame-container"},qRe=Ae({__name:"GSCSummaryMain",props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},showLineups:{type:Boolean,default:!0}},emits:["openmedia","changeToTab"],setup(e,{emit:a}){const o=e,s=t.ref(0);t.watch(()=>o.game,r=>{s.value=r.gameId},{deep:!0,immediate:!0});function n(r){a("openmedia",r)}function i(r){a("changeToTab",r)}return(r,c)=>(t.openBlock(),t.createElementBlock("div",WRe,[e.game.game_status==4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(p6),{onOpenmedia:n,onChangeToTab:i,type:"Prematch",key:s.value,config:{season_id:e.game.seasonId,game:e.game.gameId},showLineups:e.showLineups},null,8,["config","showLineups"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(p6),{onOpenmedia:n,onChangeToTab:i,type:"Postmatch",key:s.value,config:{season_id:e.game.seasonId,game:e.game.gameId},showLineups:e.showLineups},null,8,["config","showLineups"])):t.createCommentVNode("",!0)],64))]))}},[["__scopeId","data-v-e61b9884"]]),ii=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},JRe={__name:"ButtonCustom",props:{text:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},padding:{type:String,default:"0px"},borderRadius:{type:String,default:"0px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"#d9d9d9"},backgroundColor:{type:String,default:"#FFFFFF"},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},activeBorderWidth:{type:String,default:"1px"},activeFontColor:{type:String,default:""},fontColor:{type:String,default:"#000000"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular, sans-serif"},isActive:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:a}){const o=e,s=t.computed(()=>({"--height":o.height,"--width":o.width,"--padding":o.padding,"--border-radius":o.borderRadius,"--border":`solid ${o.borderWidth} ${o.borderColor}`,"--background-color":o.backgroundColor,"--font-color":o.fontColor,"--font-size":o.fontSize,"--font-family":o.fontFamily,"--active-background-color":o.activeBackgroundColor||o.backgroundColor,"--active-border-color":o.activeBorderColor||o.borderColor,"--active-font-color":o.activeFontColor||o.fontColor}));function n(){a("click")}return(i,r)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["button",{active:e.isActive}]),style:t.normalizeStyle(s.value),onClick:n},t.toDisplayString(e.text),7))}},XRe=ii(JRe,[["__scopeId","data-v-ba70584e"]]);function h6(e,a){return function(){return e.apply(a,arguments)}}const{toString:ZRe}=Object.prototype,{getPrototypeOf:My}=Object,Rc=(e=>a=>{const o=ZRe.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),$a=e=>(e=e.toLowerCase(),a=>Rc(a)===e),Pc=e=>a=>typeof a===e,{isArray:ws}=Array,ri=Pc("undefined");function YRe(e){return e!==null&&!ri(e)&&e.constructor!==null&&!ri(e.constructor)&&Mt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const g6=$a("ArrayBuffer");function KRe(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&g6(e.buffer),a}const QRe=Pc("string"),Mt=Pc("function"),y6=Pc("number"),Dc=e=>e!==null&&typeof e=="object",ePe=e=>e===!0||e===!1,Lc=e=>{if(Rc(e)!=="object")return!1;const a=My(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},tPe=$a("Date"),aPe=$a("File"),oPe=$a("Blob"),sPe=$a("FileList"),nPe=e=>Dc(e)&&Mt(e.pipe),iPe=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Mt(e.append)&&((a=Rc(e))==="formdata"||a==="object"&&Mt(e.toString)&&e.toString()==="[object FormData]"))},rPe=$a("URLSearchParams"),lPe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function li(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let s,n;if(typeof e!="object"&&(e=[e]),ws(e))for(s=0,n=e.length;s<n;s++)a.call(null,e[s],s,e);else{const i=o?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let c;for(s=0;s<r;s++)c=i[s],a.call(null,e[c],c,e)}}function u6(e,a){a=a.toLowerCase();const o=Object.keys(e);let s=o.length,n;for(;s-- >0;)if(n=o[s],a===n.toLowerCase())return n;return null}const f6=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),_6=e=>!ri(e)&&e!==f6;function Hy(){const{caseless:e}=_6(this)&&this||{},a={},o=(s,n)=>{const i=e&&u6(a,n)||n;Lc(a[i])&&Lc(s)?a[i]=Hy(a[i],s):Lc(s)?a[i]=Hy({},s):ws(s)?a[i]=s.slice():a[i]=s};for(let s=0,n=arguments.length;s<n;s++)arguments[s]&&li(arguments[s],o);return a}const cPe=(e,a,o,{allOwnKeys:s}={})=>(li(a,(n,i)=>{o&&Mt(n)?e[i]=h6(n,o):e[i]=n},{allOwnKeys:s}),e),dPe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mPe=(e,a,o,s)=>{e.prototype=Object.create(a.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},pPe=(e,a,o,s)=>{let n,i,r;const c={};if(a=a||{},e==null)return a;do{for(n=Object.getOwnPropertyNames(e),i=n.length;i-- >0;)r=n[i],(!s||s(r,e,a))&&!c[r]&&(a[r]=e[r],c[r]=!0);e=o!==!1&&My(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},hPe=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const s=e.indexOf(a,o);return s!==-1&&s===o},gPe=e=>{if(!e)return null;if(ws(e))return e;let a=e.length;if(!y6(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},yPe=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&My(Uint8Array)),uPe=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const n=s.value;a.call(e,n[0],n[1])}},fPe=(e,a)=>{let o;const s=[];for(;(o=e.exec(a))!==null;)s.push(o);return s},_Pe=$a("HTMLFormElement"),bPe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,s){return o.toUpperCase()+s}),b6=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),wPe=$a("RegExp"),w6=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),s={};li(o,(n,i)=>{let r;(r=a(n,i,e))!==!1&&(s[i]=r||n)}),Object.defineProperties(e,s)},CPe=e=>{w6(e,(a,o)=>{if(Mt(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const s=e[o];if(Mt(s)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},kPe=(e,a)=>{const o={},s=n=>{n.forEach(i=>{o[i]=!0})};return ws(e)?s(e):s(String(e).split(a)),o},SPe=()=>{},EPe=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Uy="abcdefghijklmnopqrstuvwxyz",C6="0123456789",k6={DIGIT:C6,ALPHA:Uy,ALPHA_DIGIT:Uy+Uy.toUpperCase()+C6},NPe=(e=16,a=k6.ALPHA_DIGIT)=>{let o="";const{length:s}=a;for(;e--;)o+=a[Math.random()*s|0];return o};function $Pe(e){return!!(e&&Mt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const BPe=e=>{const a=new Array(10),o=(s,n)=>{if(Dc(s)){if(a.indexOf(s)>=0)return;if(!("toJSON"in s)){a[n]=s;const i=ws(s)?[]:{};return li(s,(r,c)=>{const g=o(r,n+1);!ri(g)&&(i[c]=g)}),a[n]=void 0,i}}return s};return o(e,0)},xPe=$a("AsyncFunction"),VPe=e=>e&&(Dc(e)||Mt(e))&&Mt(e.then)&&Mt(e.catch),Y={isArray:ws,isArrayBuffer:g6,isBuffer:YRe,isFormData:iPe,isArrayBufferView:KRe,isString:QRe,isNumber:y6,isBoolean:ePe,isObject:Dc,isPlainObject:Lc,isUndefined:ri,isDate:tPe,isFile:aPe,isBlob:oPe,isRegExp:wPe,isFunction:Mt,isStream:nPe,isURLSearchParams:rPe,isTypedArray:yPe,isFileList:sPe,forEach:li,merge:Hy,extend:cPe,trim:lPe,stripBOM:dPe,inherits:mPe,toFlatObject:pPe,kindOf:Rc,kindOfTest:$a,endsWith:hPe,toArray:gPe,forEachEntry:uPe,matchAll:fPe,isHTMLForm:_Pe,hasOwnProperty:b6,hasOwnProp:b6,reduceDescriptors:w6,freezeMethods:CPe,toObjectSet:kPe,toCamelCase:bPe,noop:SPe,toFiniteNumber:EPe,findKey:u6,global:f6,isContextDefined:_6,ALPHABET:k6,generateString:NPe,isSpecCompliantForm:$Pe,toJSONObject:BPe,isAsyncFn:xPe,isThenable:VPe};function Se(e,a,o,s,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),s&&(this.request=s),n&&(this.response=n)}Y.inherits(Se,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:Y.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const S6=Se.prototype,E6={};["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=>{E6[e]={value:e}}),Object.defineProperties(Se,E6),Object.defineProperty(S6,"isAxiosError",{value:!0}),Se.from=(e,a,o,s,n,i)=>{const r=Object.create(S6);return Y.toFlatObject(e,r,function(c){return c!==Error.prototype},c=>c!=="isAxiosError"),Se.call(r,e.message,a,o,s,n),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const IPe=null;function Gy(e){return Y.isPlainObject(e)||Y.isArray(e)}function N6(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function $6(e,a,o){return e?e.concat(a).map(function(s,n){return s=N6(s),!o&&n?"["+s+"]":s}).join(o?".":""):a}function APe(e){return Y.isArray(e)&&!e.some(Gy)}const OPe=Y.toFlatObject(Y,{},null,function(e){return/^is[A-Z]/.test(e)});function jc(e,a,o){if(!Y.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=Y.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,p){return!Y.isUndefined(p[y])});const s=o.metaTokens,n=o.visitor||d,i=o.dots,r=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&Y.isSpecCompliantForm(a);if(!Y.isFunction(n))throw new TypeError("visitor must be a function");function g(y){if(y===null)return"";if(Y.isDate(y))return y.toISOString();if(!c&&Y.isBlob(y))throw new Se("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(y)||Y.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,p,u){let f=y;if(y&&!u&&typeof y=="object"){if(Y.endsWith(p,"{}"))p=s?p:p.slice(0,-2),y=JSON.stringify(y);else if(Y.isArray(y)&&APe(y)||(Y.isFileList(y)||Y.endsWith(p,"[]"))&&(f=Y.toArray(y)))return p=N6(p),f.forEach(function(_,k){!(Y.isUndefined(_)||_===null)&&a.append(r===!0?$6([p],k,i):r===null?p:p+"[]",g(_))}),!1}return Gy(y)?!0:(a.append($6(u,p,i),g(y)),!1)}const l=[],m=Object.assign(OPe,{defaultVisitor:d,convertValue:g,isVisitable:Gy});function h(y,p){if(!Y.isUndefined(y)){if(l.indexOf(y)!==-1)throw Error("Circular reference detected in "+p.join("."));l.push(y),Y.forEach(y,function(u,f){(!(Y.isUndefined(u)||u===null)&&n.call(a,u,Y.isString(f)?f.trim():f,p,m))===!0&&h(u,p?p.concat(f):[f])}),l.pop()}}if(!Y.isObject(e))throw new TypeError("data must be an object");return h(e),a}function B6(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function Wy(e,a){this._pairs=[],e&&jc(e,this,a)}const x6=Wy.prototype;x6.append=function(e,a){this._pairs.push([e,a])},x6.toString=function(e){const a=e?function(o){return e.call(this,o,B6)}:B6;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function TPe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function V6(e,a,o){if(!a)return e;const s=o&&o.encode||TPe,n=o&&o.serialize;let i;if(n?i=n(a,o):i=Y.isURLSearchParams(a)?a.toString():new Wy(a,o).toString(s),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class zPe{constructor(){this.handlers=[]}use(a,o,s){return this.handlers.push({fulfilled:a,rejected:o,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){Y.forEach(this.handlers,function(o){o!==null&&a(o)})}}const I6=zPe,A6={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},FPe=typeof URLSearchParams<"u"?URLSearchParams:Wy,RPe=typeof FormData<"u"?FormData:null,PPe=typeof Blob<"u"?Blob:null,DPe={isBrowser:!0,classes:{URLSearchParams:FPe,FormData:RPe,Blob:PPe},protocols:["http","https","file","blob","url","data"]},O6=typeof window<"u"&&typeof document<"u",LPe=(e=>O6&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),jPe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),vPe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:O6,hasStandardBrowserEnv:LPe,hasStandardBrowserWebWorkerEnv:jPe},Symbol.toStringTag,{value:"Module"})),Ba={...vPe,...DPe};function MPe(e,a){return jc(e,new Ba.classes.URLSearchParams,Object.assign({visitor:function(o,s,n,i){return Ba.isNode&&Y.isBuffer(o)?(this.append(s,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function HPe(e){return Y.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function UPe(e){const a={},o=Object.keys(e);let s;const n=o.length;let i;for(s=0;s<n;s++)i=o[s],a[i]=e[i];return a}function T6(e){function a(o,s,n,i){let r=o[i++];if(r==="__proto__")return!0;const c=Number.isFinite(+r),g=i>=o.length;return r=!r&&Y.isArray(n)?n.length:r,g?(Y.hasOwnProp(n,r)?n[r]=[n[r],s]:n[r]=s,!c):((!n[r]||!Y.isObject(n[r]))&&(n[r]=[]),a(o,s,n[r],i)&&Y.isArray(n[r])&&(n[r]=UPe(n[r])),!c)}if(Y.isFormData(e)&&Y.isFunction(e.entries)){const o={};return Y.forEachEntry(e,(s,n)=>{a(HPe(s),n,o,0)}),o}return null}function GPe(e,a,o){if(Y.isString(e))try{return(a||JSON.parse)(e),Y.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(o||JSON.stringify)(e)}const qy={transitional:A6,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",s=o.indexOf("application/json")>-1,n=Y.isObject(e);if(n&&Y.isHTMLForm(e)&&(e=new FormData(e)),Y.isFormData(e))return s?JSON.stringify(T6(e)):e;if(Y.isArrayBuffer(e)||Y.isBuffer(e)||Y.isStream(e)||Y.isFile(e)||Y.isBlob(e))return e;if(Y.isArrayBufferView(e))return e.buffer;if(Y.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(n){if(o.indexOf("application/x-www-form-urlencoded")>-1)return MPe(e,this.formSerializer).toString();if((i=Y.isFileList(e))||o.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return jc(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return n||s?(a.setContentType("application/json",!1),GPe(e)):e}],transformResponse:[function(e){const a=this.transitional||qy.transitional,o=a&&a.forcedJSONParsing,s=this.responseType==="json";if(e&&Y.isString(e)&&(o&&!this.responseType||s)){const n=!(a&&a.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(i){if(n)throw i.name==="SyntaxError"?Se.from(i,Se.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ba.classes.FormData,Blob:Ba.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],e=>{qy.headers[e]={}});const Jy=qy,WPe=Y.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"]),qPe=e=>{const a={};let o,s,n;return e&&e.split(`
111
111
  `).forEach(function(i){n=i.indexOf(":"),o=i.substring(0,n).trim().toLowerCase(),s=i.substring(n+1).trim(),!(!o||a[o]&&WPe[o])&&(o==="set-cookie"?a[o]?a[o].push(s):a[o]=[s]:a[o]=a[o]?a[o]+", "+s:s)}),a},z6=Symbol("internals");function ci(e){return e&&String(e).trim().toLowerCase()}function vc(e){return e===!1||e==null?e:Y.isArray(e)?e.map(vc):String(e)}function JPe(e){const a=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=o.exec(e);)a[s[1]]=s[2];return a}const XPe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Xy(e,a,o,s,n){if(Y.isFunction(s))return s.call(this,a,o);if(n&&(a=o),!!Y.isString(a)){if(Y.isString(s))return a.indexOf(s)!==-1;if(Y.isRegExp(s))return s.test(a)}}function ZPe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,o,s)=>o.toUpperCase()+s)}function YPe(e,a){const o=Y.toCamelCase(" "+a);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+o,{value:function(n,i,r){return this[s].call(this,a,n,i,r)},configurable:!0})})}class Mc{constructor(a){a&&this.set(a)}set(a,o,s){const n=this;function i(c,g,d){const l=ci(g);if(!l)throw new Error("header name must be a non-empty string");const m=Y.findKey(n,l);(!m||n[m]===void 0||d===!0||d===void 0&&n[m]!==!1)&&(n[m||g]=vc(c))}const r=(c,g)=>Y.forEach(c,(d,l)=>i(d,l,g));return Y.isPlainObject(a)||a instanceof this.constructor?r(a,o):Y.isString(a)&&(a=a.trim())&&!XPe(a)?r(qPe(a),o):a!=null&&i(o,a,s),this}get(a,o){if(a=ci(a),a){const s=Y.findKey(this,a);if(s){const n=this[s];if(!o)return n;if(o===!0)return JPe(n);if(Y.isFunction(o))return o.call(this,n,s);if(Y.isRegExp(o))return o.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,o){if(a=ci(a),a){const s=Y.findKey(this,a);return!!(s&&this[s]!==void 0&&(!o||Xy(this,this[s],s,o)))}return!1}delete(a,o){const s=this;let n=!1;function i(r){if(r=ci(r),r){const c=Y.findKey(s,r);c&&(!o||Xy(s,s[c],c,o))&&(delete s[c],n=!0)}}return Y.isArray(a)?a.forEach(i):i(a),n}clear(a){const o=Object.keys(this);let s=o.length,n=!1;for(;s--;){const i=o[s];(!a||Xy(this,this[i],i,a,!0))&&(delete this[i],n=!0)}return n}normalize(a){const o=this,s={};return Y.forEach(this,(n,i)=>{const r=Y.findKey(s,i);if(r){o[r]=vc(n),delete o[i];return}const c=a?ZPe(i):String(i).trim();c!==i&&delete o[i],o[c]=vc(n),s[c]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const o=Object.create(null);return Y.forEach(this,(s,n)=>{s!=null&&s!==!1&&(o[n]=a&&Y.isArray(s)?s.join(", "):s)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,o])=>a+": "+o).join(`
112
112
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...o){const s=new this(a);return o.forEach(n=>s.set(n)),s}static accessor(a){const o=(this[z6]=this[z6]={accessors:{}}).accessors,s=this.prototype;function n(i){const r=ci(i);o[r]||(YPe(s,i),o[r]=!0)}return Y.isArray(a)?a.forEach(n):n(a),this}}Mc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Y.reduceDescriptors(Mc.prototype,({value:e},a)=>{let o=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(s){this[o]=s}}}),Y.freezeMethods(Mc);const Ma=Mc;function Zy(e,a){const o=this||Jy,s=a||o,n=Ma.from(s.headers);let i=s.data;return Y.forEach(e,function(r){i=r.call(o,i,n.normalize(),a?a.status:void 0)}),n.normalize(),i}function F6(e){return!!(e&&e.__CANCEL__)}function di(e,a,o){Se.call(this,e??"canceled",Se.ERR_CANCELED,a,o),this.name="CanceledError"}Y.inherits(di,Se,{__CANCEL__:!0});function KPe(e,a,o){const s=o.config.validateStatus;!o.status||!s||s(o.status)?e(o):a(new Se("Request failed with status code "+o.status,[Se.ERR_BAD_REQUEST,Se.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const QPe=Ba.hasStandardBrowserEnv?{write(e,a,o,s,n,i){const r=[e+"="+encodeURIComponent(a)];Y.isNumber(o)&&r.push("expires="+new Date(o).toGMTString()),Y.isString(s)&&r.push("path="+s),Y.isString(n)&&r.push("domain="+n),i===!0&&r.push("secure"),document.cookie=r.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function eDe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function tDe(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function R6(e,a){return e&&!eDe(a)?tDe(e,a):a}const aDe=Ba.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let o;function s(n){let i=n;return e&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return o=s(window.location.href),function(n){const i=Y.isString(n)?s(n):n;return i.protocol===o.protocol&&i.host===o.host}}():function(){return function(){return!0}}();function oDe(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function sDe(e,a){e=e||10;const o=new Array(e),s=new Array(e);let n=0,i=0,r;return a=a!==void 0?a:1e3,function(c){const g=Date.now(),d=s[i];r||(r=g),o[n]=c,s[n]=g;let l=i,m=0;for(;l!==n;)m+=o[l++],l=l%e;if(n=(n+1)%e,n===i&&(i=(i+1)%e),g-r<a)return;const h=d&&g-d;return h?Math.round(m*1e3/h):void 0}}function P6(e,a){let o=0;const s=sDe(50,250);return n=>{const i=n.loaded,r=n.lengthComputable?n.total:void 0,c=i-o,g=s(c),d=i<=r;o=i;const l={loaded:i,total:r,progress:r?i/r:void 0,bytes:c,rate:g||void 0,estimated:g&&r&&d?(r-i)/g:void 0,event:n};l[a?"download":"upload"]=!0,e(l)}}const nDe=typeof XMLHttpRequest<"u",iDe=nDe&&function(e){return new Promise(function(a,o){let s=e.data;const n=Ma.from(e.headers).normalize();let{responseType:i,withXSRFToken:r}=e,c;function g(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let d;if(Y.isFormData(s)){if(Ba.hasStandardBrowserEnv||Ba.hasStandardBrowserWebWorkerEnv)n.setContentType(!1);else if((d=n.getContentType())!==!1){const[p,...u]=d?d.split(";").map(f=>f.trim()).filter(Boolean):[];n.setContentType([p||"multipart/form-data",...u].join("; "))}}let l=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";n.set("Authorization","Basic "+btoa(p+":"+u))}const m=R6(e.baseURL,e.url);l.open(e.method.toUpperCase(),V6(m,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function h(){if(!l)return;const p=Ma.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),u={data:!i||i==="text"||i==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:p,config:e,request:l};KPe(function(f){a(f),g()},function(f){o(f),g()},u),l=null}if("onloadend"in l?l.onloadend=h:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(h)},l.onabort=function(){l&&(o(new Se("Request aborted",Se.ECONNABORTED,e,l)),l=null)},l.onerror=function(){o(new Se("Network Error",Se.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const u=e.transitional||A6;e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),o(new Se(p,u.clarifyTimeoutError?Se.ETIMEDOUT:Se.ECONNABORTED,e,l)),l=null},Ba.hasStandardBrowserEnv&&(r&&Y.isFunction(r)&&(r=r(e)),r||r!==!1&&aDe(m))){const p=e.xsrfHeaderName&&e.xsrfCookieName&&QPe.read(e.xsrfCookieName);p&&n.set(e.xsrfHeaderName,p)}s===void 0&&n.setContentType(null),"setRequestHeader"in l&&Y.forEach(n.toJSON(),function(p,u){l.setRequestHeader(u,p)}),Y.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&i!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",P6(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",P6(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=p=>{l&&(o(!p||p.type?new di(null,e,l):p),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const y=oDe(m);if(y&&Ba.protocols.indexOf(y)===-1){o(new Se("Unsupported protocol "+y+":",Se.ERR_BAD_REQUEST,e));return}l.send(s||null)})},Yy={http:IPe,xhr:iDe};Y.forEach(Yy,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const D6=e=>`- ${e}`,rDe=e=>Y.isFunction(e)||e===null||e===!1,L6={getAdapter:e=>{e=Y.isArray(e)?e:[e];const{length:a}=e;let o,s;const n={};for(let i=0;i<a;i++){o=e[i];let r;if(s=o,!rDe(o)&&(s=Yy[(r=String(o)).toLowerCase()],s===void 0))throw new Se(`Unknown adapter '${r}'`);if(s)break;n[r||"#"+i]=s}if(!s){const i=Object.entries(n).map(([c,g])=>`adapter ${c} `+(g===!1?"is not supported by the environment":"is not available in the build"));let r=a?i.length>1?`since :
113
113
  `+i.map(D6).join(`
@@ -116,4 +116,4 @@
116
116
  * vuex v4.0.2
117
117
  * (c) 2021 Evan You
118
118
  * @license MIT
119
- */var xDe="store";function _o(e,a){Object.keys(e).forEach(function(o){return a(e[o],o)})}function X6(e){return e!==null&&typeof e=="object"}function VDe(e){return e&&typeof e.then=="function"}function Xt(e,a){if(!e)throw new Error("[vuex] "+a)}function IDe(e,a){return function(){return e(a)}}function Z6(e,a,o){return a.indexOf(e)<0&&(o&&o.prepend?a.unshift(e):a.push(e)),function(){var s=a.indexOf(e);s>-1&&a.splice(s,1)}}function Y6(e,a){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var o=e.state;Gc(e,o,[],e._modules.root,!0),i0(e,o,a)}function i0(e,a,o){var s=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var n=e._wrappedGetters,i={};_o(n,function(r,c){i[c]=IDe(r,e),Object.defineProperty(e.getters,c,{get:function(){return i[c]()},enumerable:!0})}),e._state=t.reactive({data:a}),e.strict&&FDe(e),s&&o&&e._withCommit(function(){s.data=null})}function Gc(e,a,o,s,n){var i=!o.length,r=e._modules.getNamespace(o);if(s.namespaced&&(e._modulesNamespaceMap[r]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+r+" for the namespaced module "+o.join("/")),e._modulesNamespaceMap[r]=s),!i&&!n){var c=r0(a,o.slice(0,-1)),g=o[o.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&g in c&&console.warn('[vuex] state field "'+g+'" was overridden by a module with the same name at "'+o.join(".")+'"'),c[g]=s.state})}var d=s.context=ADe(e,r,o);s.forEachMutation(function(l,m){var h=r+m;ODe(e,h,l,d)}),s.forEachAction(function(l,m){var h=l.root?m:r+m,y=l.handler||l;TDe(e,h,y,d)}),s.forEachGetter(function(l,m){var h=r+m;zDe(e,h,l,d)}),s.forEachChild(function(l,m){Gc(e,a,o.concat(m),l,n)})}function ADe(e,a,o){var s=a==="",n={dispatch:s?e.dispatch:function(i,r,c){var g=Wc(i,r,c),d=g.payload,l=g.options,m=g.type;if((!l||!l.root)&&(m=a+m,process.env.NODE_ENV!=="production"&&!e._actions[m])){console.error("[vuex] unknown local action type: "+g.type+", global type: "+m);return}return e.dispatch(m,d)},commit:s?e.commit:function(i,r,c){var g=Wc(i,r,c),d=g.payload,l=g.options,m=g.type;if((!l||!l.root)&&(m=a+m,process.env.NODE_ENV!=="production"&&!e._mutations[m])){console.error("[vuex] unknown local mutation type: "+g.type+", global type: "+m);return}e.commit(m,d,l)}};return Object.defineProperties(n,{getters:{get:s?function(){return e.getters}:function(){return K6(e,a)}},state:{get:function(){return r0(e.state,o)}}}),n}function K6(e,a){if(!e._makeLocalGettersCache[a]){var o={},s=a.length;Object.keys(e.getters).forEach(function(n){if(n.slice(0,s)===a){var i=n.slice(s);Object.defineProperty(o,i,{get:function(){return e.getters[n]},enumerable:!0})}}),e._makeLocalGettersCache[a]=o}return e._makeLocalGettersCache[a]}function ODe(e,a,o,s){var n=e._mutations[a]||(e._mutations[a]=[]);n.push(function(i){o.call(e,s.state,i)})}function TDe(e,a,o,s){var n=e._actions[a]||(e._actions[a]=[]);n.push(function(i){var r=o.call(e,{dispatch:s.dispatch,commit:s.commit,getters:s.getters,state:s.state,rootGetters:e.getters,rootState:e.state},i);return VDe(r)||(r=Promise.resolve(r)),e._devtoolHook?r.catch(function(c){throw e._devtoolHook.emit("vuex:error",c),c}):r})}function zDe(e,a,o,s){if(e._wrappedGetters[a]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+a);return}e._wrappedGetters[a]=function(n){return o(s.state,s.getters,n.state,n.getters)}}function FDe(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&Xt(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function r0(e,a){return a.reduce(function(o,s){return o[s]},e)}function Wc(e,a,o){return X6(e)&&e.type&&(o=a,a=e,e=e.type),process.env.NODE_ENV!=="production"&&Xt(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:a,options:o}}var RDe="vuex bindings",Q6="vuex:mutations",l0="vuex:actions",ks="vuex",PDe=0;function DDe(e,a){BDe({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[RDe]},function(o){o.addTimelineLayer({id:Q6,label:"Vuex Mutations",color:ek}),o.addTimelineLayer({id:l0,label:"Vuex Actions",color:ek}),o.addInspector({id:ks,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),o.on.getInspectorTree(function(s){if(s.app===e&&s.inspectorId===ks)if(s.filter){var n=[];sk(n,a._modules.root,s.filter,""),s.rootNodes=n}else s.rootNodes=[ok(a._modules.root,"")]}),o.on.getInspectorState(function(s){if(s.app===e&&s.inspectorId===ks){var n=s.nodeId;K6(a,n),s.state=vDe(HDe(a._modules,n),n==="root"?a.getters:a._makeLocalGettersCache,n)}}),o.on.editInspectorState(function(s){if(s.app===e&&s.inspectorId===ks){var n=s.nodeId,i=s.path;n!=="root"&&(i=n.split("/").filter(Boolean).concat(i)),a._withCommit(function(){s.set(a._state.data,i,s.state.value)})}}),a.subscribe(function(s,n){var i={};s.payload&&(i.payload=s.payload),i.state=n,o.notifyComponentUpdate(),o.sendInspectorTree(ks),o.sendInspectorState(ks),o.addTimelineEvent({layerId:Q6,event:{time:Date.now(),title:s.type,data:i}})}),a.subscribeAction({before:function(s,n){var i={};s.payload&&(i.payload=s.payload),s._id=PDe++,s._time=Date.now(),i.state=n,o.addTimelineEvent({layerId:l0,event:{time:s._time,title:s.type,groupId:s._id,subtitle:"start",data:i}})},after:function(s,n){var i={},r=Date.now()-s._time;i.duration={_custom:{type:"duration",display:r+"ms",tooltip:"Action duration",value:r}},s.payload&&(i.payload=s.payload),i.state=n,o.addTimelineEvent({layerId:l0,event:{time:Date.now(),title:s.type,groupId:s._id,subtitle:"end",data:i}})}})})}var ek=8702998,LDe=6710886,jDe=16777215,tk={label:"namespaced",textColor:jDe,backgroundColor:LDe};function ak(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function ok(e,a){return{id:a||"root",label:ak(a),tags:e.namespaced?[tk]:[],children:Object.keys(e._children).map(function(o){return ok(e._children[o],a+o+"/")})}}function sk(e,a,o,s){s.includes(o)&&e.push({id:s||"root",label:s.endsWith("/")?s.slice(0,s.length-1):s||"Root",tags:a.namespaced?[tk]:[]}),Object.keys(a._children).forEach(function(n){sk(e,a._children[n],o,s+n+"/")})}function vDe(e,a,o){a=o==="root"?a:a[o];var s=Object.keys(a),n={state:Object.keys(e.state).map(function(r){return{key:r,editable:!0,value:e.state[r]}})};if(s.length){var i=MDe(a);n.getters=Object.keys(i).map(function(r){return{key:r.endsWith("/")?ak(r):r,editable:!1,value:c0(function(){return i[r]})}})}return n}function MDe(e){var a={};return Object.keys(e).forEach(function(o){var s=o.split("/");if(s.length>1){var n=a,i=s.pop();s.forEach(function(r){n[r]||(n[r]={_custom:{value:{},display:r,tooltip:"Module",abstract:!0}}),n=n[r]._custom.value}),n[i]=c0(function(){return e[o]})}else a[o]=c0(function(){return e[o]})}),a}function HDe(e,a){var o=a.split("/").filter(function(s){return s});return o.reduce(function(s,n,i){var r=s[n];if(!r)throw new Error('Missing module "'+n+'" for path "'+a+'".');return i===o.length-1?r:r._children},a==="root"?e:e.root._children)}function c0(e){try{return e()}catch(a){return a}}var Zt=function(e,a){this.runtime=a,this._children=Object.create(null),this._rawModule=e;var o=e.state;this.state=(typeof o=="function"?o():o)||{}},nk={namespaced:{configurable:!0}};nk.namespaced.get=function(){return!!this._rawModule.namespaced},Zt.prototype.addChild=function(e,a){this._children[e]=a},Zt.prototype.removeChild=function(e){delete this._children[e]},Zt.prototype.getChild=function(e){return this._children[e]},Zt.prototype.hasChild=function(e){return e in this._children},Zt.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},Zt.prototype.forEachChild=function(e){_o(this._children,e)},Zt.prototype.forEachGetter=function(e){this._rawModule.getters&&_o(this._rawModule.getters,e)},Zt.prototype.forEachAction=function(e){this._rawModule.actions&&_o(this._rawModule.actions,e)},Zt.prototype.forEachMutation=function(e){this._rawModule.mutations&&_o(this._rawModule.mutations,e)},Object.defineProperties(Zt.prototype,nk);var bo=function(e){this.register([],e,!1)};bo.prototype.get=function(e){return e.reduce(function(a,o){return a.getChild(o)},this.root)},bo.prototype.getNamespace=function(e){var a=this.root;return e.reduce(function(o,s){return a=a.getChild(s),o+(a.namespaced?s+"/":"")},"")},bo.prototype.update=function(e){ik([],this.root,e)},bo.prototype.register=function(e,a,o){var s=this;o===void 0&&(o=!0),process.env.NODE_ENV!=="production"&&ck(e,a);var n=new Zt(a,o);if(e.length===0)this.root=n;else{var i=this.get(e.slice(0,-1));i.addChild(e[e.length-1],n)}a.modules&&_o(a.modules,function(r,c){s.register(e.concat(c),r,o)})},bo.prototype.unregister=function(e){var a=this.get(e.slice(0,-1)),o=e[e.length-1],s=a.getChild(o);if(!s){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+o+"', which is not registered");return}s.runtime&&a.removeChild(o)},bo.prototype.isRegistered=function(e){var a=this.get(e.slice(0,-1)),o=e[e.length-1];return a?a.hasChild(o):!1};function ik(e,a,o){if(process.env.NODE_ENV!=="production"&&ck(e,o),a.update(o),o.modules)for(var s in o.modules){if(!a.getChild(s)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+s+"' on hot reloading, manual reload is needed");return}ik(e.concat(s),a.getChild(s),o.modules[s])}}var rk={assert:function(e){return typeof e=="function"},expected:"function"},UDe={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},lk={getters:rk,mutations:rk,actions:UDe};function ck(e,a){Object.keys(lk).forEach(function(o){if(a[o]){var s=lk[o];_o(a[o],function(n,i){Xt(s.assert(n),GDe(e,o,i,n,s.expected))})}})}function GDe(e,a,o,s,n){var i=a+" should be "+n+' but "'+a+"."+o+'"';return e.length>0&&(i+=' in module "'+e.join(".")+'"'),i+=" is "+JSON.stringify(s)+".",i}var St=function e(a){var o=this;a===void 0&&(a={}),process.env.NODE_ENV!=="production"&&(Xt(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),Xt(this instanceof e,"store must be called with the new operator."));var s=a.plugins;s===void 0&&(s=[]);var n=a.strict;n===void 0&&(n=!1);var i=a.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new bo(a),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=i;var r=this,c=this,g=c.dispatch,d=c.commit;this.dispatch=function(m,h){return g.call(r,m,h)},this.commit=function(m,h,y){return d.call(r,m,h,y)},this.strict=n;var l=this._modules.root.state;Gc(this,l,[],this._modules.root),i0(this,l),s.forEach(function(m){return m(o)})},d0={state:{configurable:!0}};St.prototype.install=function(e,a){e.provide(a||xDe,this),e.config.globalProperties.$store=this;var o=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;o&&DDe(e,this)},d0.state.get=function(){return this._state.data},d0.state.set=function(e){process.env.NODE_ENV!=="production"&&Xt(!1,"use store.replaceState() to explicit replace store state.")},St.prototype.commit=function(e,a,o){var s=this,n=Wc(e,a,o),i=n.type,r=n.payload,c=n.options,g={type:i,payload:r},d=this._mutations[i];if(!d){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+i);return}this._withCommit(function(){d.forEach(function(l){l(r)})}),this._subscribers.slice().forEach(function(l){return l(g,s.state)}),process.env.NODE_ENV!=="production"&&c&&c.silent&&console.warn("[vuex] mutation type: "+i+". Silent option has been removed. Use the filter functionality in the vue-devtools")},St.prototype.dispatch=function(e,a){var o=this,s=Wc(e,a),n=s.type,i=s.payload,r={type:n,payload:i},c=this._actions[n];if(!c){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+n);return}try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(r,o.state)})}catch(d){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(d))}var g=c.length>1?Promise.all(c.map(function(d){return d(i)})):c[0](i);return new Promise(function(d,l){g.then(function(m){try{o._actionSubscribers.filter(function(h){return h.after}).forEach(function(h){return h.after(r,o.state)})}catch(h){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(h))}d(m)},function(m){try{o._actionSubscribers.filter(function(h){return h.error}).forEach(function(h){return h.error(r,o.state,m)})}catch(h){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(h))}l(m)})})},St.prototype.subscribe=function(e,a){return Z6(e,this._subscribers,a)},St.prototype.subscribeAction=function(e,a){var o=typeof e=="function"?{before:e}:e;return Z6(o,this._actionSubscribers,a)},St.prototype.watch=function(e,a,o){var s=this;return process.env.NODE_ENV!=="production"&&Xt(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(s.state,s.getters)},a,Object.assign({},o))},St.prototype.replaceState=function(e){var a=this;this._withCommit(function(){a._state.data=e})},St.prototype.registerModule=function(e,a,o){o===void 0&&(o={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(Xt(Array.isArray(e),"module path must be a string or an Array."),Xt(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,a),Gc(this,this.state,e,this._modules.get(e),o.preserveState),i0(this,this.state)},St.prototype.unregisterModule=function(e){var a=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&Xt(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var o=r0(a.state,e.slice(0,-1));delete o[e[e.length-1]]}),Y6(this)},St.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&Xt(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},St.prototype.hotUpdate=function(e){this._modules.update(e),Y6(this,!0)},St.prototype._withCommit=function(e){var a=this._committing;this._committing=!0,e(),this._committing=a},Object.defineProperties(St.prototype,d0);var WDe=JDe(function(e,a){var o={};return process.env.NODE_ENV!=="production"&&!dk(a)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),qDe(a).forEach(function(s){var n=s.key,i=s.val;o[n]=function(){for(var r=[],c=arguments.length;c--;)r[c]=arguments[c];var g=this.$store.commit;if(e){var d=XDe(this.$store,"mapMutations",e);if(!d)return;g=d.context.commit}return typeof i=="function"?i.apply(this,[g].concat(r)):g.apply(this.$store,[i].concat(r))}}),o});function qDe(e){return dk(e)?Array.isArray(e)?e.map(function(a){return{key:a,val:a}}):Object.keys(e).map(function(a){return{key:a,val:e[a]}}):[]}function dk(e){return Array.isArray(e)||X6(e)}function JDe(e){return function(a,o){return typeof a!="string"?(o=a,a=""):a.charAt(a.length-1)!=="/"&&(a+="/"),e(a,o)}}function XDe(e,a,o){var s=e._modulesNamespaceMap[o];return process.env.NODE_ENV!=="production"&&!s&&console.error("[vuex] module namespace not found in "+a+"(): "+o),s}const ZDe="/icn-play.svg",YDe="/icn-tiros-de-esquina.svg",KDe="/icn-tiro-a-porteria.svg",QDe="/icn-cambio.svg",eLe="/icn-falta.svg",tLe="/atajada.svg",aLe="/fuera-de-lugar.svg",m0="/gol.svg",oLe="/var.png",sLe="/tiempo-agregado.svg",nLe="/jugada-peligrosa.svg",iLe="/penal-marcado.svg",rLe="/penal-fallado.svg",lLe="/inicia-el-partido.svg",cLe="/fin-del-partido.svg",dLe="/icn-tarjeta-amarilla.svg",mLe="/icn-tarjeta-roja.svg",pLe=[1,2,3,4,6],hLe={name:"TimeLineEvent",props:{gameEvent:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},width:{type:Number,default:352},timeLineWidth:{type:Number,default:0}},data(){return{lastHeight:0,gameEventKey:0}},computed:{nameClasses(){const e=[],a=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return s0.GOAL_IDS.includes(a)?(e.push("is-main-event"),e.push("goal")):s0.YELLOW_CARD_IDS.includes(a)?(e.push("is-main-event"),e.push("yellow-card")):s0.RED_CARD_IDS.includes(a)&&(e.push("is-main-event"),e.push("red-card")),this.gameEvent.teamType===1?e.push("time-line-event--home-team"):e.push("time-line-event--away-team"),e},srcImgPlayers(){let e=null;return this.gameEvent.player_id&&this.gameEvent.player_id!=="-"&&(e=this.gameEvent.player_id.split("@"),e=e.map(a=>bDe(a))),e},teamTypeClasses(){const e=`time-line-event--${this.gameEvent.teamType===1?"home":"away"}-team`;return[e,`${e}-desktop`]},teamTypeClasses2(){return[`time-line-event--info--${this.gameEvent.teamType===1?"home":"away"}-team`]},minuteClasses(){const e=[`time-line-event__minute--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`];return e.push("time-line-event__minute--desktop"),e},playerName(){return this.gameEvent.category_id===28||pLe.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...WDe("general",["setVideoModalVisibility","setVideoSrc"]),thumbnailClick(e,a){(a==="Gol"||a==="Tarjeta")&&this.$emit("thumbnail-click",e)},showVideoTimeline(e){this.setVideoSrc(e),this.setVideoModalVisibility(!0)},getIconClasses(){return["time-line-event__icon--desktop",`time-line-event__icon--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`]},emitHeight(){setTimeout(()=>{this.$refs.timeLineEvent&&this.$refs.timeLineEvent.clientHeight&&this.$refs.timeLineEvent.clientHeight!==this.lastHeight&&(this.lastHeight=this.$refs.timeLineEvent.clientHeight,this.$emit("event-height",this.lastHeight))},500)}},mounted(){if(this.emitHeight(),this.gameEvent.event_type_id===3){const[e,a]=this.gameEvent.player_id.split("@");this.$emit("player-changed",{playerOut:Number(e),playerIn:Number(a),teamId:this.gameEvent.team_id})}}},gLe=e=>(t.pushScopeId("data-v-f8cd0c73"),e=e(),t.popScopeId(),e),yLe={class:"time-line-event__details"},uLe={width:"127",preload:"metadata",style:{"border-radius":"8px"}},fLe=["src"],_Le=gLe(()=>t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient"},[t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient__button-play"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})])])],-1)),bLe={class:"time-line-event__details__info"},wLe={key:0,class:"time-line-event__details__info__header__players"},CLe={class:"time-line-event__details__info__header__players__div-img"},kLe=["src"],SLe={class:"time-line-event__details__info__body"},ELe={class:"time-line-event__details__info__body__comment"},NLe={class:"time-line-event__minute__container"},$Le={class:"time-line-event__minute__container__text"},BLe={class:"time-line-event__minute__container__icon-container"},xLe={class:"time-line-event__minute__container__icon-container__icon"},VLe={key:0,src:YDe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},ILe={key:1,src:KDe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},ALe={key:2,src:QDe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},OLe={key:3,src:eLe,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},TLe={key:4,src:tLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},zLe={key:5,src:aLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},FLe={key:6,src:m0,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},RLe={key:7,src:m0,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},PLe={key:8,src:m0,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},DLe={key:9,src:oLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},LLe={key:10,src:sLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},jLe={key:11,src:nLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},vLe={key:12,src:iLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},MLe={key:13,src:rLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},HLe={key:14,src:lLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},ULe={key:15,src:cLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},GLe={key:16,src:dLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},WLe={key:17,src:mLe,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},qLe={key:18,src:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %23fff; %7D .cls-2 %7B fill: %23172531; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Cg id='Oval'%3E%3Ccircle class='cls-2' cx='24' cy='24' r='24'/%3E%3C/g%3E%3Cg id='Group-19'%3E%3Cg id='Path-16'%3E%3Cpath class='cls-1' d='M32.85,36.6H15.15c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h17.69c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z'/%3E%3C/g%3E%3C/g%3E%3Cg id='Rectangle'%3E%3Cg id='path-1'%3E%3Cpath class='cls-1' d='M38.02,32.62H9.98V13.43h28.04v19.19Zm-26.54-1.5h25.04V14.93H11.48V31.12Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",alt:"Event icon"};function JLe(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",i.teamTypeClasses]),style:t.normalizeStyle({width:`${o.width}px`}),key:n.gameEventKey},[t.createElementVNode("div",yLe,[o.gameEvent.video_link!=="-"&&o.timeLineWidth>700?(t.openBlock(),t.createElementBlock("div",{key:0,class:"time-line-event__details__video-thumbnail",onClick:a[0]||(a[0]=r=>i.thumbnailClick(o.gameEvent.video_link,o.gameEvent.event_type_name))},[t.createElementVNode("video",uLe,[t.createElementVNode("source",{src:o.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,fLe)]),_Le])):t.createCommentVNode("",!0),t.createElementVNode("div",bLe,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",i.teamTypeClasses2])},[o.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",wLe,[i.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(i.srcImgPlayers,(r,c)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":c===1}]),key:c},[t.createElementVNode("div",CLe,[t.createElementVNode("img",{src:r,alt:""},null,8,kLe)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",i.nameClasses]),onClick:a[1]||(a[1]=r=>i.thumbnailClick(o.gameEvent.video_link,o.gameEvent.event_type_name))},[t.createElementVNode("img",{src:ZDe,class:t.normalizeClass("time-line-event__details__info__header__event-play time-line-event__details__info__header__event-play__"+o.gameEvent.event_type_name)},null,2),t.createTextVNode(" "+t.toDisplayString(o.gameEvent.category_id?o.gameEvent.event_type_id===5?o.gameEvent.category_name:o.gameEvent.event_type_name==="Gol"?o.gameEvent.event_type_name+" de "+o.gameEvent.team_name:o.gameEvent.event_type_name:o.gameEvent.comments),1)],2)],2),t.createElementVNode("div",SLe,[t.createElementVNode("div",ELe,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",i.minuteClasses])},[t.createElementVNode("div",NLe,[t.createElementVNode("div",$Le,t.toDisplayString(o.gameEvent.minute)+"'",1),t.createElementVNode("div",BLe,[t.createElementVNode("div",xLe,[o.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",VLe)):o.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",ILe)):o.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",ALe)):o.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",OLe)):o.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",TLe)):o.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",zLe)):o.gameEvent.category_id==6&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==5&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==1&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==2&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==3&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==7&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==12&&o.gameEvent.event_type_id==1?(t.openBlock(),t.createElementBlock("img",FLe)):o.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",RLe)):o.gameEvent.category_id==13||o.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",PLe)):o.gameEvent.category_id==30||o.gameEvent.category_id==31||o.gameEvent.category_id==32||o.gameEvent.category_id==33||o.gameEvent.category_id==34||o.gameEvent.category_id==35||o.gameEvent.category_id==36||o.gameEvent.category_id==37||o.gameEvent.category_id==38||o.gameEvent.category_id==39||o.gameEvent.category_id==40?(t.openBlock(),t.createElementBlock("img",DLe)):o.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",LLe)):o.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",jLe)):o.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",vLe)):o.gameEvent.category_id==15||o.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",MLe)):o.gameEvent.category_id==0&&o.gameEvent.game_status_id==16||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==18||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==20||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==22?(t.openBlock(),t.createElementBlock("img",HLe)):o.gameEvent.category_id==0&&o.gameEvent.game_status_id==13||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==17||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==19||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==21||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==23?(t.openBlock(),t.createElementBlock("img",ULe)):o.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",GLe)):o.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",WLe)):(t.openBlock(),t.createElementBlock("img",qLe))])])])],2)],6)}const XLe=ii(hLe,[["render",JLe],["__scopeId","data-v-f8cd0c73"]]),ZLe={"1-1":"gol","1-2":"gol","1-3":"gol","1-4":"gol","1-5":"gol","1-6":"gol","1-7":"gol","1-12":"gol","1-13":"gol","1-16":"gol","2-8":"amonestacion","2-9":"expulsion","3-10":"cambio_de_jugador","3-11":"cambio_de_jugador","4-14":"gol","4-15":"penal_fallado","5-17":"fuera_de_lugar","5-18":"tiro_de_esquina","5-20":"tiro_a_gol","5-21":"falta_cometida","5-22":"penal_marcado","5-23":"penal_fallado","5-24":"","5-25":"","5-26":"jugada_peligro_dentro_area","5-27":"atajada","5-28":"tiempo_agregado","5-29":"presion_para_anotar","7-30":"revision_var","7-31":"revision_var","7-32":"revision_var","7-33":"revision_var","7-34":"revision_var"},YLe={3:{name:"Inicia Primer Tiempo",weight:1,playTimer:1,abbreviation:"1T:"},4:{name:"Final Primer Tiempo",weight:2,playTimer:0,abbreviation:"1T:"},5:{name:"Inicia Segundo Tiempo",weight:3,playTimer:1,abbreviation:"2T:"},8:{name:"Final Segundo Tiempo",weight:4,playTimer:0,abbreviation:"2T:"},9:{name:"Inicia Primer Tiempo Extra",weight:5,playTimer:1,abbreviation:"1T extra:"},12:{name:"Final Primer Tiempo Extra",weight:6,playTimer:0,abbreviation:"1T extra:"},10:{name:"Inicia Segundo Tiempo Extra",weight:7,playTimer:1,abbreviation:"2T extra:"},13:{name:"Final Segundo Tiempo Extra",weight:8,playTimer:0,abbreviation:"2T extra:"},11:{name:"Inicia Tanda de Penales",weight:9,playTimer:1,abbreviation:"Penales:"},15:{name:"Final Tanda de Penales",weight:10,playTimer:0,abbreviation:"Penales:"},6:{name:"Marcador Final",weight:11,playTimer:0,abbreviation:"Final"}};let qc=null;const KLe={name:"TimeLine",components:{Tooltip:yDe,TimeLineEvent:XLe},mixins:[fDe],props:{gameData:{type:Object,required:!0},timeLinePeriod:{type:String,default:"all"}},data(){return{gameEvents:[],gameEventsByPeriod:{firstHalf:[],secondHalf:[]},dataVideo:{visible:!1,link:""},gameEventsQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",transitionName:"",subscriptionInfo:{gameId:0,isSubscribed:!1},areGameEventsFilled:!1,timeLineWidth:812,eventContainerWidth:0,channelName:"",timeLineStatus:"awaiting",timeLeft:"",lastMinute:0,timeLineStatuses:[],currentStatus:{abbreviation:""},timer:"00:00"}},computed:{isMobile(){return this.timeLineWidth<580},gameEventWidth(){return this.timeLineWidth/2-30},gameEventsToShow(){return this.timeLinePeriod==="all"?this.gameEvents:this.gameEventsByPeriod[this.timeLinePeriod]}},watch:{gameData:{deep:!0,immediate:!0,handler(e){e&&e.id&&(this.gameDateTime=new Date(this.gameData.dateTimeUTC),this.gameEventsQueue=[],this.timeLineStatuses=[],this.transitionName="",this.checkTimeLeft(),e.status!==1||(this.timeLineStatus="finished"),this.fillGameEvents(e.id))}},"$socket.connected":{immediate:!0,handler(e){e&&this.gameData.id&&this.subscribeToMXMChannel()}},gameEvents(e){e.length&&this.gameData.status!==1&&(this.timeLineStatus="live")}},methods:{async fillGameEvents(e){try{const a=await this.fetchGameEvents(e);a?(this.gameEvents=[...a],this.checkGameEventsQueue(),this.sortGameEvents(),setTimeout(()=>{this.transitionName="list"},500)):this.gameEvents=[],this.gameData.status===1?this.lastMinute=`${this.gameEvents[this.gameEvents.length-1].minute}'`:this.checkTimeLineStatus()}catch(a){throw new Error(a)}},getGameEventClassAndSetIcon(e,a){return e.icon=a===0?"inicio_del_partido":ZLe[`${e.event_type_id}-${e.category_id}`],e.team_id===this.gameData.homeTeam.team_id||!e.team_id?(e.teamType=1,["home-team-event"]):(e.teamType=2,["away-team-event"])},getEventContainerClass(){return this.isMobile,["time-line-event__container--desktop"]},async fetchGameEvents(e){try{const{data:{plays:a}}=await G6.get(`${this.gameEventsUrl}${e}`);return a}catch(a){throw new Error(a)}},subscribeToMXMChannel(){this.channelName=`mxm.game.${this.gameData.id}`,this.$socket.client.emit("subscribe",{channel:this.channelName}),this.isSubscribed=!0},checkGameEventsQueue(){this.gameEventsQueue.length&&this.gameEvents.push(...this.gameEventsQueue),this.areGameEventsFilled=!0},setUpResizeObserver(){if(window.ResizeObserver)qc=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),qc.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,a){const o=this.$refs[`gameEventDiv${a}`][0],s=this.$refs[`gameEventLine${a}`]?this.$refs[`gameEventLine${a}`][0]:null,n=e+12;o&&(o.style.height=`${n}px`),s&&(s.style.height=`${n}px`)},sortGameEvents(){this.gameEvents.sort((e,a)=>this.getMatchLapseMinutes(e.match_lapse)+Number(e.minute)-(this.getMatchLapseMinutes(a.match_lapse)+Number(a.minute))),this.gameEvents.forEach(e=>{this.gameEventsByPeriod[e.match_lapse===1?"firstHalf":"secondHalf"].push(e)})},getMatchLapseMinutes(e){let a=0;switch(e){case 1:a=0;break;case 2:a=45;break;case 3:a=90;break;case 4:a=105;break;case 5:a=120;break}return a},addGameEventFromChannel(e){this.areGameEventsFilled?(this.gameEvents.push(e),this.sortGameEvents()):this.gameEventsQueue.push(e)},deleteGameEventFromChannel(e){const a=this.gameEvents.findIndex(o=>o.play_id===e.play_id);a&&this.gameEvents.splice(a,1)},checkTimeLineStatus(){this.gameEvents.forEach(a=>{const o=YLe[a.game_status];o&&this.timeLineStatuses.push({...o,gameEvent:a})}),this.timeLineStatuses.sort((a,o)=>o.weight-a.weight);const e=this.timeLineStatuses[0];e&&(this.currentStatus=e,e.playTimer&&this.startTimer())},startTimer(){},getTeamLogoSrc(e="homeTeam"){const a=this.gameData[e].team_id;return _De(a)},thumbnailClick(e){this.dataVideo.link=e,this.dataVideo.visible=!0}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){qc&&qc.unobserve(this.$refs.timeLine)},sockets:{new_mxm(e,a){this.channelName===e&&this.addGameEventFromChannel(a)},update_mxm(e,a){this.channelName===e&&(this.deleteGameEventFromChannel(a),this.addGameEventFromChannel(a))},delete_mxm(e,a){this.channelName===e&&this.deleteGameEventFromChannel(a)}}},mk=e=>(t.pushScopeId("data-v-a31f9d54"),e=e(),t.popScopeId(),e),QLe={ref:"timeLine",class:"time-line"},eje={class:"time-line__header"},tje={class:"time-line__header__dot"},aje={class:"time-line__header__dot__home-team team-logo"},oje=["src"],sje={class:"time-line__header__dot__away-team team-logo"},nje=["src"],ije={class:"time-line__game-events"},rje={key:1,class:"start-line"},lje=mk(()=>t.createElementVNode("div",null,null,-1)),cje=mk(()=>t.createElementVNode("div",null,null,-1)),dje=[lje,cje],mje={key:1,class:"noEventText"},pje={class:"tooltip-data"},hje=["src"];function gje(e,a,o,s,n,i){const r=t.resolveComponent("TimeLineEvent"),c=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",QLe,[t.createElementVNode("div",eje,[t.createElementVNode("div",tje,[t.createElementVNode("div",aje,[t.createElementVNode("img",{src:i.getTeamLogoSrc("homeTeam"),alt:""},null,8,oje)]),t.createElementVNode("div",sje,[t.createElementVNode("img",{src:i.getTeamLogoSrc("awayTeam"),alt:""},null,8,nje)])])]),t.createElementVNode("div",ije,[o.gameData.status!==4?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:0,name:n.transitionName,tag:"div"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.gameEventsToShow,(g,d)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:g.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${d}`,class:t.normalizeClass(i.getGameEventClassAndSetIcon(g,d))},[t.createElementVNode("div",{class:t.normalizeClass(i.getEventContainerClass(g))},[t.createVNode(r,{"game-event":g,"is-mobile":i.isMobile,"time-line-width":n.timeLineWidth,width:i.gameEventWidth,onEventHeight:l=>i.updateContainerHeight(l,d),onPlayerChanged:a[0]||(a[0]=l=>e.$emit("player-changed",l)),onThumbnailClick:i.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","onEventHeight","onThumbnailClick"])],2),d>0?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:`gameEventLine${d}`,class:"line"},null,512)):t.createCommentVNode("",!0),o.gameData.status===1&&d===i.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",rje,dje)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",mje," Aún no comienza el partido "))])],512),t.createVNode(c,{data:n.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",pje,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:n.dataVideo.link,format:"video/mp4"},null,8,hje)])])]),_:1},8,["data"])],64)}const yje=ii(KLe,[["render",gje],["__scopeId","data-v-a31f9d54"]]),uje={class:"game-time-line__options"},fje={class:"game-time-line__timeline"},_je={__name:"GSC-GameTimeLine",props:{game:{type:Object,default:()=>({id:79601,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:18,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})}},setup(e){G6.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const a=t.ref({width:"103px",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"}),o=t.ref({width:"auto",height:"30px",padding:"0px 20px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"});let s=null;const n=t.ref(["Todo","1er tiempo","2do tiempo"]),i=t.ref("Todo"),r=t.ref({}),c=t.ref(null),g=t.ref(0),d=t.computed(()=>{let p="all";return i.value==="1er tiempo"||i.value==="1er"?p="firstHalf":(i.value==="2do tiempo"||i.value==="2do")&&(p="secondHalf"),p}),l=t.computed(()=>g.value<500);function m(p){i.value=p}function h(p){r.value=p}function y(){if(window.ResizeObserver)s=new ResizeObserver(()=>{g.value=c.value.clientWidth}),s.observe(c.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{y()}),t.onBeforeUnmount(()=>{s&&s.unobserve(c.value)}),(p,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:c,class:"game-time-line"},[t.createElementVNode("div",uje,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,f=>(t.openBlock(),t.createElementBlock("div",{key:f,class:"game-time-line__options__option"},[t.createVNode(XRe,t.mergeProps(g.value<390?o.value:a.value,{text:f=="Todo"?f:g.value<390?f.substring(0,3):f,"is-active":i.value===f,onClick:_=>m(f)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",fje,[t.createVNode(yje,{"game-data":e.game,"time-line-period":d.value,"is-mobile":l.value,onGameEventsByPeriodFilled:h},null,8,["game-data","time-line-period","is-mobile"])])],512))}},bje=ii(_je,[["__scopeId","data-v-52261d5c"]]);function wje(e){const a=t.ref({width:0,height:0});function o(){const s=e.value.getBoundingClientRect();a.value.width=s.width,a.value.height=s.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const Cje=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},p0={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},pk=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},hk=p0.setup;p0.setup=hk?(e,a)=>(pk(),hk(e,a)):pk;const kje={ref:"gscScrollableContainer",class:"scrollable-container"},Sje={class:"scrollable-arrows"},Eje=["width","height","viewBox"],Nje=["stroke"],$je={class:"scrollable-wrapper"},Bje={class:"scrollable-arrows"},xje=["width","height","viewBox"],Vje=["stroke"];function Ije(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",kje,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[t.createElementVNode("div",Sje,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:o.arrowsColor},null,8,Nje)],8,Eje))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[t.createElementVNode("div",$je,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[t.createElementVNode("div",Bje,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:o.arrowsColor},null,8,Vje)],8,xje))])],2)):t.createCommentVNode("",!0)],512)}const Aje=Cje(p0,[["render",Ije],["__scopeId","data-v-b548a08d"]]),Oje=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},h0={components:{GSCSlider:Aje},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=wje(e);return{myDivRef:e,elementSize:a}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var a={};return e.width>768?a={fontSize:"16px"}:e.width>480?a={fontSize:"14px"}:a={fontSize:"12px"},a}}},gk=()=>{t.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},yk=h0.setup;h0.setup=yk?(e,a)=>(gk(),yk(e,a)):gk;const Tje={ref:"myDivRef"},zje={key:0,class:"gs-switch-container"},Fje=["onClick"],Rje={key:1,class:"gs-switch-container-type"},Pje=["onClick"],Dje={key:2,class:"gs-switch-container-carousel"},Lje=["onClick"];function jje(e,a,o,s,n,i){const r=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",Tje,[o.type==0?(t.openBlock(),t.createElementBlock("div",zje,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([i.customGrid(s.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.buttons,(c,g)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:o.height},o.selectedOption==c?{borderColor:o.colorOptionActive,color:o.colorFont+"!important",background:o.backgroundOptionActive}:{borderColor:o.colorOptionDisable,color:"grey !important"}]),key:g,onClick:d=>(o.selectedOption=c,i.clickEmitEvent(c))},t.toDisplayString(c),13,Fje))),128))],4),t.renderSlot(e.$slots,o.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",Rje,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([i.customGrid(s.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.buttons,(c,g)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:o.height},o.selectedOption==c?{borderColor:o.colorOptionActive,color:o.colorFont+"!important",background:o.backgroundOptionActive}:{borderColor:o.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:o.backgroundOptionDisable}]),key:g,onClick:d=>(o.selectedOption=c,i.clickEmitEvent(c))},t.toDisplayString(c),13,Pje))),128))],4)])):t.createCommentVNode("",!0),o.type==2?(t.openBlock(),t.createElementBlock("div",Dje,[t.createVNode(r,{arrows:o.arrow,"background-color":o.background,"px-scroll":o.pxScroll,"scroll-color":o.scrollColor,"arrows-position":o.arrowsPosition,arrowsScrollHide:o.arrowsScrollHide,"arrows-background":o.arrowsBackground,"arrows-container-bg-l":o.arrowsContainerBgL,"arrows-container-bg-r":o.arrowsContainerBgR,"arrows-margin":o.arrowsMargin,"arrows-radius":o.arrowsRadius,"arrows-border":o.arrowsBorder},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.buttons,(c,g)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:o.height},o.selectedOption==c?{borderColor:o.colorOptionActive,color:o.colorFont+"!important",background:o.backgroundOptionActive}:{borderColor:o.colorOptionDisable,color:"grey !important"}]),key:g,onClick:d=>(o.selectedOption=c,i.clickEmitEvent(c))},t.toDisplayString(c),13,Lje))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):t.createCommentVNode("",!0)],512)}const uk=Oje(h0,[["render",jje],["__scopeId","data-v-8a86dfaf"]]),QMe="",vje={class:"game-data__header"},Mje={class:"game-data__header__tournament-season-dropdown"},Hje={class:"game-data__header__teams-carousel"},Uje={class:"game-data__body"},Gje={class:"game-data__body__menu"},Wje={class:"game-data__body__menu__contmenuswitch"};Li.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const qje=t.defineComponent({name:"TemplateVideos",components:{StatisticsMain:wT,GSCGameTimeLine:bje,GscSwitchComponent:uk,GSCLineupsMain:OX,GSCDatosGSMain:xne,GSCVideoGame:L0e,GSCSummaryMain:qRe}}),Jje=Ae(Object.assign(qje,{props:{currentSeasonId:{type:Number,default:0},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}}},emits:["openmedia","change-season-id"],setup(e,{emit:a}){const o=e,s=t.ref({season:[]}),n=t.ref({}),i=t.ref({}),r=t.ref(!0),c=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),g=t.ref([{componentName:"GSCSummaryMain",name:"Resumen",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"GSCDatosGSMain",name:"Datos Golstats",id:3},{componentName:"StatisticsMain",name:"Estadísticas",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]);let d=null;const l=t.ref(null),m=t.ref(0),h=t.ref(g.value[0]);let y=t.ref("");const p=t.computed(()=>{const $=[];return n.value&&n.value.id&&($.push({id:n.value.id,name:n.value.name,type:n.value.type}),n.value.related_seasons&&n.value.related_seasons.forEach(F=>{$.push({id:F.id,type:F.type})})),$});function u(){d=new ResizeObserver($=>{for(const F of $)m.value=F.contentRect.width}),d.observe(l.value)}const f=t.computed(()=>{let $={};return i.value&&i.value.game_id&&($={gameId:i.value.game_id,id:i.value.game_id,seasonId:i.value.season_id,status:i.value.game_status==0?4:i.value.game_status,dateTimeUTC:i.value.date_time_utc,homeTeam:i.value.home_team,awayTeam:i.value.visiting_team}),$});function _($){s.value=$,$.is_captured===0?r.value=!1:r.value=!0,s.value.id!==$.id&&(s.value=$)}function k($){a("openmedia",$)}function C($){V($),$=="Estadísticas"&&(y.value="Comparativa")}function b(){y.value=""}function E($){n.value.id!==$.id&&(n.value=$,a("change-season-id",$.id))}const x=t.computed(()=>g.value.map($=>{if(r.value)return $.name;if($.id!==5&&$.id!==6)return $.name}).filter($=>$!=null));function V($){h.value=g.value.find(F=>F.name===$)||g.value[0]}t.onMounted(()=>{u()});function B($){i.value=$}return($,F)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:l},[t.createElementVNode("div",vje,[t.createElementVNode("div",Mje,[t.createVNode(t.unref(r7),{"current-season-id":e.currentSeasonId,onInput:_},null,8,["current-season-id"]),t.createVNode(t.unref(I7),{"current-season-id":e.currentSeasonId,seasons:s.value.seasons,onInput:E},null,8,["current-season-id","seasons"])]),t.createElementVNode("div",Hje,[t.createVNode(t.unref(LN),{token:c.value,"await-for-seasons":"",seasons:p.value,"is-pagination-visible":!1,"are-games-carousel-type":"",onChangeGameCarousel:B,"default-game-id":o.defaultGameId},null,8,["token","seasons","default-game-id"])])]),t.createElementVNode("div",Uje,[t.createElementVNode("div",Gje,[t.createElementVNode("div",Wje,[t.createVNode(t.unref(uk),{type:2,buttons:x.value,"font-family":"Poppins-Regular","font-size":"16px",width:m.value<400||m.value<700?"max-content":m.value<840||m.value<1050?"155px":"165px","selected-option":h.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:V},null,8,["buttons","width","selected-option"])])]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(h.value.componentName),{game:f.value,subsection:t.unref(y),seasonSelected:n.value,showLineups:r.value,onResetSubsection:b,onOpenmedia:k,onChangeToTab:C},null,40,["game","subsection","seasonSelected","showLineups"]))])],512))}}),[["__scopeId","data-v-7fc91b33"]]);async function ut({url:e,options:a={},retries:o=3}){return await Li.get(e,a).then(s=>s).catch(s=>o>0?ut({url:e,options:a,retries:o-1}):s)}async function fk({seasonId:e},a=!0){try{const o={url:`https://b5lrr2nc0h.execute-api.us-west-2.amazonaws.com/prod/statisticsLeagueBySeason/${e}`};a&&(o.url=`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`,o.retries=1);const{data:{data:s}}=await ut(o);return s}catch(o){if(a)return fk({seasonId:e},!1);throw new Error(o)}}async function Xje({seasonId:e}){try{return(await ut({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(a){return Promise.reject(a)}}async function Zje({seasonId:e}){try{return(await ut({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(a){return Promise.reject(a)}}function Yje(e,a,o,s,n,i,r=!1){const c=o.map(g=>g===1?2:g===2?1:3);return e.filter(g=>{const d=i&&g[n.teamId]?g[n.teamId]!==i:!1,l=a===1?2:1;return(r||s.includes(g[n.gameId]))&&(!a||(d?l:a)===g[n.playingAs])&&(o.includes(g[n.matchResult])&&g[n.teamId]===i||c.includes(g[n.matchResult])&&g[n.teamId]!==i)})}function _k(e,a,o,s,n){return a.length===2&&o.length===3&&s.length===6?e:e.filter(i=>a.includes(i[n.playingAs])&&o.includes(i[n.matchResult])&&s.includes(i[n.section]))}async function bk({seasonId:e}){try{const a=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await ut({url:a})).data}catch(a){return Promise.reject(a)}}async function Kje({seasonId:e,gameId:a}){try{const o=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${a}`,{data:s}=await ut({url:o});return s}catch(o){return Promise.reject(o)}}async function Qje({gameId:e}){try{const a=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await ut({url:a})).data.data}catch(a){return Promise.reject(a)}}async function eve({gameId:e}){try{const a=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await ut({url:a})).data.data||[]}catch(a){return Promise.reject(a)}}const tve=["categoryId","matchLapse","section","matchResult","playingAs","total"];let g0=null;function wk(){return g0||(g0=Vi(tve)),g0}async function ave(e){try{const a=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await ut({url:a})).data}catch(a){return Promise.reject(a)}}async function Ck({seasonId:e,teamId:a}){try{return await ut({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${a}`})}catch(o){return Promise.reject(o)}}async function ove(e){try{const a=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await ut({url:a})}catch(a){return Promise.reject(a)}}async function sve(e){try{return await ut({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(a){return Promise.reject(a)}}const nve={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,a,o,s){return Yje(e.seasonPlays,s["filterGeneral/getPlayingAs"],s["filterGeneral/getResults"],s["filterGeneral/getSelectedGamesIds"],wk(),s["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const a=e.currentSeasonGames.reduce((o,s)=>{const n={...s};return n.home_team=e.currentSeasonTeams.find(i=>i.team_id===s.home_team),n.visiting_team=e.currentSeasonTeams.find(i=>i.team_id===s.visiting_team),o[s.matchday_abbreviation]?o[s.matchday_abbreviation][s.game_status===3?"canceled":s.date]?o[s.matchday_abbreviation][s.game_status===3?"canceled":s.date].push(n):o[s.matchday_abbreviation][s.game_status===3?"canceled":s.date]=[n]:o[s.matchday_abbreviation]={[s.game_status===3?"canceled":s.date]:[n]},o},{});for(let[o,s]of Object.entries(a))a[o]=Object.entries(s).map(([n,i])=>({date:n,games:i})),a[o].sort((n,i)=>n.date<i.date?-1:n.date>i.date?1:0);return a},matchdaysDates(e,a){let o=[];if(a.nextGamesSchedule){let s=Object.keys(a.nextGamesSchedule);for(let n of s){let i=Number(n.replace("M","")),r=a.nextGamesSchedule[n].map(c=>({matchday:i,date:new Date(c.date)}));o=o.concat(r)}}return o},closestMatchDay(e,a){let o=new Date,s=0,n=-new Date(0,0,0).valueOf(),i=a.matchdaysDates,r=i.length;for(let c=0;c<i.length;c++)s=Math.abs(i[c].date-o),s<n&&(r=c,n=s);return i[r]?i[r].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,a){e.booleanIsLiveGamesModalOpen=a},setBooleanAreLiveGames(e,a){e.booleanAreLiveGames=a},updateSeasonPlays(e,a){e.seasonPlays=a},updateCurrentSeasonTeams(e,a){e.currentSeasonTeams=a},updateCurrentSeasonGames(e,a){e.currentSeasonGames=a},updateSelectedRound(e,a){e.selectedRound=a}},actions:{async getSeasonPlays({commit:e,rootGetters:a},o=!1){try{const s=await fk({seasonId:a["filterGeneral/getSeasonId"]});if(o)return s;e("updateSeasonPlays",s)}catch(s){return Promise.reject(s)}},async getCurrentSeasonGames({commit:e,rootGetters:a}){try{const o=await bk({seasonId:a["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",o)}catch(o){return Promise.reject(o)}},async getCurrentSeasonTeams({commit:e,rootGetters:a}){try{const o=await ave({seasonId:a["loginGeneral/seasonId"]});e("updateCurrentSeasonTeams",o.teams)}catch(o){return Promise.reject(o)}},async isDataFilled({state:e,dispatch:a,commit:o}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return o("setIsSectionLoading",!1,{root:!0}),!0;const s=[void 0,void 0];return e.currentSeasonGames.length===0&&(s[0]=a("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(s[1]=a("getCurrentSeasonTeams")),await Promise.all(s),!1}catch(s){throw new Error(s)}}}}};async function ive({filter:e}){try{const a=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:o}=await ut({url:a});return o}catch(a){return Promise.reject(a)}}const rve=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let y0=null;function lve(){return y0||(y0=Vi(rve)),y0}class Jc{constructor(){Oe(this,"maximumLiveSection",1);Oe(this,"accomplished",{totalPostGame:0,avgPostGame:0,avgPreGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{},arrayRankings:[]});Oe(this,"received",{totalPostGame:0,avgPostGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{}})}setMaximumLiveSection(a){a>this.maximumLiveSection&&(this.maximumLiveSection=a)}getZeroTotalsTrendSections(){return[0,0,0,0,0,0]}resetTotals(){this.accomplished.totalPostGame=0,this.accomplished.avgPostGame=0,this.received.totalPostGame=0,this.received.avgPostGame=0,this.accomplished.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections()}resetTotalsLive(){this.accomplished.totalLive=0,this.received.totalLive=0,this.accomplished.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections()}increaseAccomplishedByOne(a,o,s){s&&(this.setMaximumLiveSection(a),this.accomplished.totalLive+=o,this.accomplished.totalsLiveTrendLive.sections[a-1]+=o,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,a,o)),this.accomplished.totalPostGame+=o,this.accomplished.avgPostGameTrendLive.sections[a-1]+=o,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,a,o)}increaseReceivedByOne(a,o,s){s&&(this.setMaximumLiveSection(a),this.received.totalLive+=o,this.received.totalsLiveTrendLive.sections[a-1]+=o,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,a,o)),this.received.totalPostGame+=o,this.received.avgPostGameTrendLive.sections[a-1]+=o,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,a,o)}increaseTrendLiveAccumulatedByOne(a,o,s){for(let n=o-1;n<a.accumulated.length;n++)a.accumulated[n]+=s}decreaseAccomplishedLiveByOne(a,o){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=o),this.accomplished.totalsLiveTrendLive.sections[a-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[a-1]-=o,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,a,o))}decreaseReceivedLiveByOne(a,o){this.received.totalLive>0&&(this.received.totalLive-=o),this.received.totalsLiveTrendLive.sections[a-1]>0&&(this.received.totalsLiveTrendLive.sections[a-1]-=o,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,a,o))}decreaseTotalsLiveTrendLiveAccumulatedByOne(a,o,s){for(let n=a.accumulated.length-1;n>=o-1;n--)a.accumulated[n]-=s}calculateAvg(a){a&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/a,this.received.avgPostGame=this.received.totalPostGame/a,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,a),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,a),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,a),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,a))}getAvgPostGameTrendLiveAvg(a,o){return a.map(s=>s/o)}calculateRanking(a,o,s,n,i,r,c,g){let d=[];n===3&&a&&a.length&&(s.playingAs.length!==2||s.matchResult.length!==3)?d=Array.from(a.reduce((m,h)=>{const y=h[o.playingAs]===1,p=y?"1":"2",u=m.get(h[o.gameId]);if(u)u[p]?u[p].arrayPlays.push(h):u[p]={numberTeamId:h[o.teamId],arrayPlays:[h]};else{const f={numberMatchResult:h[o.matchResult]};y&&(f[1]={numberTeamId:h[o.teamId],arrayPlays:[h]}),m.set(h[o.gameId],f)}return m},new Map).values()).reduce((m,h)=>{const y=s.playingAs.length===2?"both":s.playingAs[0].toString();return(y==="both"&&(h[1].numberTeamId===s.teamId||h[2].numberTeamId===s.teamId)||y!=="both"&&h[y].numberTeamId===s.teamId)&&s.matchResult.includes(h.numberMatchResult)&&m.push(...h[1].arrayPlays,...h[2].arrayPlays),m},[]).filter(m=>s.sections.includes(m[o.section])):(d=a?[...a]:[],c&&a&&(d=a.filter(l=>s.playingAs.includes(l[o.playingAs])&&s.matchResult.includes(l[o.matchResult])&&s.sections.includes(l[o.section])))),this.setTeamRanking(d,n,o,s.teamId,r,"accomplished",g)}setTeamRanking(a,o,s,n,i,r,c){let g=null,d=null;o===3&&(g=new Map,d={},a.forEach(h=>{const y=g.get(h[s.gameId]);y?y[h[s.teamId.toString()]]?y[h[s.teamId.toString()]]+=h[s.total]:y[h[s.teamId.toString()]]=h[s.total]:g.set(h[s.gameId],{[h[s.teamId.toString()]]:h[s.total]})}),Array.from(g.values()).forEach(h=>{const[y,p]=Object.keys(h).map(f=>f),u=h[y]+h[p];this.addPassesAvgByTeam(d,y,u?h[y]/u:0),this.addPassesAvgByTeam(d,p,u?h[p]/u:0)}));const l=i.sort((h,y)=>h.team_id-y.team_id).map(h=>{if(o===3){const y=d[h.team_id.toString()];return{teamId:h.team_id,points:y?y.numberTotalPassesAvg/y.numberGamesCount:0,total:y?y.numberTotalPassesAvg:0}}else{const y=a.reduce((p,u)=>u[s.teamId]===h.team_id&&o===u[s.categoryId]?p+u[s.total]:p,0);return{teamId:h.team_id,points:h[`${c}FilterGames`]?y/h[`${c}FilterGames`]:0,total:y}}}).sort((h,y)=>y.points-h.points);this.accomplished.arrayRankings=l;const m=l.findIndex(h=>h.teamId===n);o===3&&(this.accomplished.avgPreGame=l[m].points),this[r].ranking=m+1,this[r].leader=l[0]}addPassesAvgByTeam(a,o,s){a[o]?(a[o].numberGamesCount+=1,a[o].numberTotalPassesAvg+=s):a[o]={numberGamesCount:1,numberTotalPassesAvg:s}}}class re{constructor(a,o,s,n,i,r,c,g,d,l){Oe(this,"id","");Oe(this,"generalId",0);Oe(this,"name","");Oe(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});Oe(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});Oe(this,"accomplishedCategoryIds",[]);Oe(this,"receivedCategoryIds",[]);Oe(this,"generalCategoriesIds",{accomplished:0,received:0});Oe(this,"specialMention","");Oe(this,"homeTeam",new Jc);Oe(this,"visitingTeam",new Jc);Oe(this,"isLeagueDataCalculated",!1);Oe(this,"leagueAccomplishedMax",0);Oe(this,"leagueReceivedMax",0);Oe(this,"leagueAccomplishedAvg",0);Oe(this,"leagueReceivedAvg",0);Oe(this,"leagueAccomplishedAccumulator",0);Oe(this,"leagueReceivedAccumulator",0);Oe(this,"homeTeamType","homeTeam");Oe(this,"visitingTeamType","visitingTeam");Oe(this,"betOnly",!1);Oe(this,"isPercent",!1);this.id=`${s.accomplished}-${s.received}`,this.accomplishedCategoryIds=a||[],this.receivedCategoryIds=o||[],this.generalCategoriesIds=s||{accomplished:0,received:0},this.name=n,this.names["0-0"]=n||"",this.names["1-1"]=i||"",this.names["0-1"]=r||"",this.names["1-0"]=c||"",this.generalId=g||0,this.betOnly=d||!1,this.isPercent=l||!1}addLeaguePlays(a,o,s){a.length===0||!s||this.isLeagueDataCalculated||(a.forEach(n=>{this.isAccomplishedLeaguePlay(n[o.categoryId])&&(this.leagueAccomplishedAccumulator+=n[o.total]),this.isReceivedLeaguePlay(n[o.categoryId])&&(this.leagueReceivedAccumulator+=n[o.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*s)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*s)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(a,o,s){let n="-";for(const[i,r]of Object.entries(this.generalCategoriesIds))a===r&&(n=`${i==="accomplished"?"0":"1"}${n}`),o===r&&(n=`${n}${i==="accomplished"?"0":"1"}`);n.length===3&&(this.mentions[n]=s)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(a,o,s,n,i){!s||!i||a!==this.homeTeamType&&a!==this.visitingTeamType||(s.forEach(r=>{this.isAccomplishedPlay(r[n.categoryId])?this[a].increaseAccomplishedByOne(r[n.section],r[n.total]):this.isReceivedPlay(r[n.categoryId])&&this[a].increaseReceivedByOne(r[n.section],r[n.total])}),this[a].calculateAvg(i))}addLivePlay(a,o,s,n,i=!1,r=!1){(a===this.homeTeamType||a===this.visitingTeamType)&&s[n.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[a].increaseAccomplishedByOne(s[n.section],s[n.total],!0)}subtractLivePlay(a,o,s,n,i){(a===this.homeTeamType||a===this.visitingTeamType)&&(this.isAccomplishedPlay(s[n.categoryId])&&!i?this[a].decreaseAccomplishedLiveByOne(s[n.section],s[n.total]):this.isReceivedPlay(s[n.categoryId])&&i&&this[a].decreaseReceivedLiveByOne(s[n.section],s[n.total]))}isAccomplishedLeaguePlay(a){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(s=>a===s||`${a}_r`===s)}isReceivedLeaguePlay(a){return!!this.receivedCategoryIds.find(o=>a===o)}isAccomplishedPlay(a){return this.generalCategoriesIds.accomplished===a}isReceivedPlay(a){return this.generalCategoriesIds.received===a}calcRankingLeague(a,o,s,n,i,r=!1){this[this.homeTeamType].calculateRanking(a,o,s,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,i,r,this.homeTeamType),this[this.visitingTeamType].calculateRanking(a,o,n,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,i,r,this.visitingTeamType)}resetData(){this.homeTeam=new Jc,this.visitingTeam=new Jc,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(a){return this.generalCategoriesIds.accomplished===a||this.generalCategoriesIds.received===a}}const cve={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new re([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new re([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new re([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0),yellowCards:new re([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new re([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new re([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new re([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new re([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new re([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new re([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new re([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new re([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new re([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new re([209],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new re([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new re([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new re([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new re([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new re([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new re([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new re([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new re([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new re([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new re([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new re([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new re([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new re([495],null,{accomplished:27,received:0},"Balones perdidos sin disputa","","","",1)}},stoppedBall:{name:"Balón parado",priority:5,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{freeKick44:new re([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new re([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new re([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new re([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new re([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new re([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new re([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new re([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new re([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new re([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new re([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},dve=[{parentAnalysis:[1,2,3],value:0,text:"Realizado",block:1},{parentAnalysis:[1,2,3],value:1,text:"Recibido",block:1},{parentAnalysis:[1],value:0,text:"Posesión",block:2},{parentAnalysis:[1,2],value:0,text:"Origen de gol realizado",block:3},{parentAnalysis:[1,2],value:1,text:"Origen de gol recibido",block:3}],mve=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let u0=null;function pve(){return u0||(u0=Vi(mve)),u0}const hve=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let f0=null;function gve(){return f0||(f0=Vi(hve)),f0}function Xc(e,a,o){return[o.get(e[a.categoryId])||[],e[a.teamId],e[a.matchResult],e[a.playingAs],e[a.matchLapse],e[a.section],e[a.total]]}function kk(e){return[[1,1,e.local.win],[1,2,e.local.lose],[1,3,e.local.draw],[2,1,e.visit.win],[2,2,e.visit.lose],[2,3,e.visit.draw]]}function _0(e,a,o){let s=[...a];return e[o.categoryId]===2&&(s[0]=14),e[o.categoryId]===20&&(s[0]=15),[14,15].includes(s[0])?s:null}const yve=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],uve={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:wk(),indexesTSP:lve(),indexesLS:pve(),indexesTLP:gve(),nextGamesDataStructure:cve,currentSeasonGames:[],currentSeasonTeams:[],gameForAnalysis:{},showPostMatch:!1,homeResultGame:null,awayResultGame:null,selectedAnalysis:{},selectedStatisticTypeBlock:1,gameId:null,game:{},games:[],homeTeamPlays:[],visitingTeamPlays:[],currentSeasonPlays:[],livePlays:new Map,totalSeasonFinishedGames:0,totalHomeTeamFinishedGames:0,totalVisitingTeamFinishedGames:0,homeGames:[],homeTeamInfo:{},awayTeamInfo:{},visitingGames:[],idAssetSelected:1,isLive:!1,menuOptionActive:"",showLiveData:!1,showAdvanceFilter:!1,homeTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},visitingTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},oldSeasonId:0,statistics:[],isRankingCalculating:!0,categoriesMap:new Map,defaultFilter:null,filterAux:null,betSubcategories:[],betDescription:{},regularSeasonName:"",betSubcategoriesObjects:[],currentTournamentName:"",toBackRouteName:"home"},getters:{betSubcategoriesIds(e){return e.betSubcategories.map(a=>a.id)},showPostMatchData:e=>e.showPostMatch,getHomeResultGame:e=>e.homeResultGame,getAwayResultGame:e=>e.awayResultGame,getSeasonId:e=>e.seasonId,isLive:e=>(e.isLive=!!e.gameForAnalysis.is_live,e.isLive),showLive:e=>e.gameForAnalysis.game_status===4&&e.gameForAnalysis.is_live,menuOptionActive:e=>e.menuOptionActive,showLiveData:e=>e.showLiveData,showAdvanceFilter:e=>e.showAdvanceFilter,idAssetSelected:e=>e.idAssetSelected,gameId:e=>e.gameId,game:e=>e.game,homeTeam(e){return e.homeTeamInfo},visitingTeam(e){return e.awayTeamInfo},rankingData(e){return e.statistics},homeTeamStatisticsType(e){return e.homeTeamFilter.statistics?"received":"accomplished"},visitingTeamStatisticsType(e){return e.visitingTeamFilter.statistics?"received":"accomplished"},subcategoryName(e){return`${e.homeTeamFilter.statistics}-${e.visitingTeamFilter.statistics}`},statisticsTypes(e){return dve.filter(a=>a.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return _k(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return _k(e.visitingTeamPlays,e.visitingTeamFilter.playingAs,e.visitingTeamFilter.matchResult,e.visitingTeamFilter.sections,e.indexesTSP)},currentSeasonTeamsIds(e){return e.currentSeasonTeams.map(a=>a.team_id)},canFilledStructure(e){return e.homeTeamFilter.requiresPlaysFiltering||e.visitingTeamFilter.requiresPlaysFiltering},totalFilteredHomeGames(e){return e.homeGames.filter(a=>e.homeTeamFilter.playingAs.includes(a[0])).filter(a=>e.homeTeamFilter.matchResult.includes(a[1])).reduce((a,o)=>a+o[2],0)},totalFilteredVisitingGames(e){return e.visitingGames.filter(a=>e.visitingTeamFilter.playingAs.includes(a[0])).filter(a=>e.visitingTeamFilter.matchResult.includes(a[1])).reduce((a,o)=>a+o[2],0)},filledDataStructure(e,a){if(e.currentSeasonPlays)for(const o of Object.values(e.nextGamesDataStructure))for(const s of Object.values(o.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&s.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&s.visitingTeam.resetTotals(),s.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),s.addTeamPlays(s.homeTeamType,e.gameForAnalysis.home_team,a.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:a.totalFilteredHomeGames),s.addTeamPlays(s.visitingTeamType,e.gameForAnalysis.visiting_team,a.visitingTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:a.totalFilteredVisitingGames);return e.nextGamesDataStructure},arrayFilledDataSortedByPriority(e,a){return Object.values(a.filledDataStructure).sort((o,s)=>o.priority-s.priority)},statisticData(e,a){for(const o of Object.values(a.filledDataStructure))if(o.parentInfo.parentAnalysis.includes(e.selectedAnalysis.id)&&o.parentInfo.analysisTypeBlocks.includes(e.selectedStatisticTypeBlock))return o.subcategories;return{}},accomplished(e){return e.homeTeamFilter.statistics===0}},mutations:{setCurrentTournamentName(e,a){e.currentTournamentName=a},setBetSubcategoriesObjects(e,a){e.betSubcategoriesObjects=a},setRegularSeasonName(e,a){e.regularSeasonName=a},setBetSubcategories(e,a){e.betSubcategories=a},setBetDescription(e,a){e.betDescription=a},setSeasonId(e,a){e.seasonId=Number(a)},setHome(e,a){e.homeTeamInfo=a},setAway(e,a){e.awayTeamInfo=a},setMenuOptionActive(e,a){e.menuOptionActive=a},setPastSeasonId(e,a){e.pastSeasonId=a},setUsePastSeasonId(e,a){e.usePastSeasonId=a,a&&(e.oldSeasonId=e.pastSeasonId)},updateShowPostMatchData(e,a){e.showPostMatch=a},setHomeResultGame(e,a){e.homeResultGame=a},setAwayResultGame(e,a){e.awayResultGame=a},updateIsSocketConnected(e,a){e.isSocketConnected=a,!a&&e.gameForAnalysis.is_live&&this._vm.$socket.client.emit("subscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`})},updateCurrentSeasonTeams(e,a){e.currentSeasonTeams=a,e.currentSeasonTeams.forEach(o=>{o.playedGames=e.currentSeasonGames.reduce((s,n)=>{if(n.game_status===1&&(n.home_team===o.team_id||n.visiting_team===o.team_id)){const i=n.score[0]-n.score[1],r=n.home_team===o.team_id;s.push({playingAs:r?1:2,matchResult:i===0?3:r?i>0?1:2:i<0?1:2})}return s},[])})},updateCurrentSeasonGames(e,a){e.currentSeasonGames=a},updateGameId(e,a){e.gameId=a},updateGameForAnalysis(e,a){e.gameForAnalysis=a,e.homeTeamFilter.teamId=e.gameForAnalysis.home_team,e.visitingTeamFilter.teamId=e.gameForAnalysis.visiting_team,e.gameForAnalysis.is_live===1&&e.isSocketConnected&&this._vm.$socket.client.emit("subscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`})},updateSelectedAnalysis(e,a){e.selectedAnalysis=a},updateShowLiveData(e,a){e.showLiveData=a},toggleShowLiveData(e){e.showLiveData=!e.showLiveData},toggleAdvanceFilter(e){e.showAdvanceFilter=!e.showAdvanceFilter},updateIdAssetSelected(e,a){e.idAssetSelected=a},updateStats(e,a){e.currentSeasonPlays=a},updateFilterAux(e){e.filterAux||(e.filterAux={homeTeamFilter:{...e.homeTeamFilter},visitingTeamFilter:{...e.visitingTeamFilter}})},updateFilters(e,{filters:a,needsFormat:o=!1}){if(o){if(!a||!a.local||!a.local.statistics||!a.visit||!a.visit.statistics)return;e.homeTeamFilter=Tu(e.homeTeamFilter,a.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=Tu(e.visitingTeamFilter,a.visit,e.gameForAnalysis.visiting_team),e.selectedStatisticTypeBlock!==a.local.statistics.block&&(e.selectedStatisticTypeBlock=a.local.statistics.block)}else e.homeTeamFilter={...a.homeTeamFilter,statistics:0},e.visitingTeamFilter={...a.visitingTeamFilter,statistics:0}},updateFinishedGames(e,a){e.totalSeasonFinishedGames=a},updateHomeTeamPlays(e,a){e.homeTeamPlays=a},updateVisitingTeamPlays(e,a){e.visitingTeamPlays=a},addSpecialMentions(e,a){const o=Object.values(e.nextGamesDataStructure);o.forEach(s=>{for(const n of Object.values(s.subcategories))n.resetMentions()}),o.forEach(s=>{for(const n of a)for(const i of Object.values(s.subcategories))i.addSpecialMention(n[0],n[1],n[2])})},setDefaultFilter(e,a){e.defaultFilter={homeTeamFilter:{...a.homeTeamFilter,teamId:e.gameForAnalysis.home_team},visitingTeamFilter:{...a.awayTeamFilter,teamId:e.gameForAnalysis.visiting_team}}},addLiveGamePlay(e,a){if(!e.livePlays.has(a[e.indexesTLP.playId])){e.livePlays.set(a[e.indexesTLP.playId],a);const s=Xc(a,e.indexesTLP,e.categoriesMap);for(const n of Object.values(e.nextGamesDataStructure))for(const i of Object.values(n.subcategories))i.addLivePlay(e.gameForAnalysis.home_team===s[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",s[e.indexesTSP.teamId],s,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,a){const o=!!a[e.indexesTLP.length],s=e.livePlays.get(a[e.indexesTLP.playId]);if(rB(s,a))return;let n="";const i=e.gameForAnalysis.home_team===a[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";s&&(n=e.gameForAnalysis.home_team===s[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const r=Xc(s,e.indexesTLP,e.categoriesMap),c=_0(s,r,e.indexesTLP),g=Xc(a,e.indexesTLP,e.categoriesMap),d=_0(a,g,e.indexesTLP);for(const l of Object.values(e.nextGamesDataStructure))for(const m of Object.values(l.subcategories))s&&(m.subtractLivePlay(n,r[e.indexesTSP.teamId],r,e.indexesTSP,o),c&&m.subtractLivePlay(n,c[e.indexesTSP.teamId],c,e.indexesTSP,o)),m.addLivePlay(i,g[e.indexesTSP.teamId],g,e.indexesTSP,e.isLive,o),d&&m.addLivePlay(i,d[e.indexesTSP.teamId],d,e.indexesTSP,e.isLive,o);e.livePlays.set(a[e.indexesTLP.playId],a)},deleteLiveGamePlay(e,a){const o=!!a[e.indexesTLP.length],s=e.livePlays.get(a[e.indexesTLP.playId]);let n="";if(s){n=e.gameForAnalysis.home_team===s[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(s[e.indexesTLP.playId]);const i=Xc(s,e.indexesTLP,e.categoriesMap),r=_0(a,i,e.indexesTLP);for(const c of Object.values(e.nextGamesDataStructure))for(const g of Object.values(c.subcategories))g.subtractLivePlay(n,i[e.indexesTSP.teamId],i,e.indexesTSP,o),r&&g.subtractLivePlay(n,r[e.indexesTSP.teamId],r,e.indexesTSP,o)}},clearLiveTotals(e){for(const a of Object.values(e.nextGamesDataStructure))for(const o of Object.values(a.subcategories))o.homeTeam.resetTotalsLive(),o.visitingTeam.resetTotalsLive()},updateSeasonStatistics(e,a){e.statistics=a},updateOldSeasonId(e,a){e.oldSeasonId=a},addRankingInSubcategories(e,{getters:a,isPremiumAccount:o}){if(!(e.homeTeamFilter.teamId&&e.visitingTeamFilter.teamId))return;e.isRankingCalculating=!1,e.currentSeasonTeams.forEach(i=>{i.homeTeamFilterGames=i.playedGames.filter(r=>e.homeTeamFilter.playingAs.includes(r.playingAs)&&e.homeTeamFilter.matchResult.includes(r.matchResult)).length,i.visitingTeamFilterGames=i.playedGames.filter(r=>e.visitingTeamFilter.playingAs.includes(r.playingAs)&&e.visitingTeamFilter.matchResult.includes(r.matchResult)).length});const s=[],n=new Map;for(const i of Object.values(e.nextGamesDataStructure))for(const r of Object.values(i.subcategories))s.push(r);a.rankingData.forEach(i=>{for(const r of s)if(r.isInGeneralCategory(i[e.indexesLS.categoryId])){n.has(r.id)?n.get(r.id).push(i):n.set(r.id,[i]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,a){e.homeGames=kk(a)},setVisitingGames(e,a){e.visitingGames=kk(a)},generateCategoriesMap(e){for(const a of Object.values(e.nextGamesDataStructure))for(const o of Object.values(a.subcategories))o.accomplishedCategoryIds.forEach(s=>{const n=e.categoriesMap.get(s);n?n.push(o.generalCategoriesIds.accomplished):e.categoriesMap.set(s,[o.generalCategoriesIds.accomplished])})},resetNextGamesDataStructure(e){for(const a of Object.values(e.nextGamesDataStructure))for(const o of Object.values(a.subcategories))o.resetData()}},actions:{turnOnOffDefaultFilters({state:e,commit:a},{command:o}){o==="on"?a("updateFilters",{filters:e.defaultFilter,needsFormat:!1}):a("updateFilters",{filters:e.filterAux,needsFormat:!1})},async setAndGetStatsPostMatch({commit:e},a){try{const r=await sve({gameId:a.gameId});if(r){var o=[],s=[],n={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}},i={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}};Object.keys(r.data).length!==0&&(o=r.data.data.filter(c=>c[1]==a.homeTeam),s=r.data.data.filter(c=>c[1]==a.awayTeam),n=r.data.games,i=r.data.games),e("updateHomeTeamPlays",o),e("updateVisitingTeamPlays",s),e("setHomeGames",n),e("setVisitingGames",i)}else e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[])}catch(r){return Promise.reject(r)}},async fillStatisticDataPostMatch({commit:e,dispatch:a},o){e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("setIsSectionLoading",!0,{root:!0});try{let s=[];e("updateGameForAnalysis",o.gameInfo),s.push(a("setAndGetStatsPostMatch",{gameId:o.game,homeTeam:o.homeTeam,awayTeam:o.awayTeam})),await Promise.all(s)}catch(s){throw new Error(s)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:a,commit:o},{gameId:s,isTeamsAnalysis:n,currentSeasonId:i,isLoginChanged:r=!1,defaultFilter:c=null,gameInfo:g=null,isCupGame:d=!1}){try{let l={},m=e.seasonId!==Number(i);const h=[];o("setIsSectionLoading",!0,{root:!0}),o("setUsePastSeasonId",!1),m&&o("setSeasonId",i),o("updateGameId",Number(s)),e.oldSeasonId!==e.seasonId&&o("resetNextGamesDataStructure");const y=await a("getCurrentSeasonGames",Number(s));if(o("leagueGeneral/updateCurrentSeasonGames",y,{root:!0}),l=y.find(p=>p.game_id===Number(s)),!l&&g&&(l=g),l&&o("updateGameForAnalysis",l),l.game_status!==1&&(d||await a("checkTeamsData",{gameId:s,isFromBet:!!c}),(r||e.oldSeasonId!==e.seasonId||e.statistics.length===0)&&h.push(a("getSeasonStatistics")),(r||e.categoriesMap.size===0)&&o("generateCategoriesMap")),e.usePastSeasonId){const p=await a("getCurrentSeasonGamesLast");o("leagueGeneral/updateCurrentSeasonGames",p,{root:!0})}(r||e.currentSeasonTeams.length===0||!e.currentSeasonTeams.find(p=>l.home_team===p.team_id))&&h.push(a("getCurrentSeasonTeams")),o("setHomeResultGame",l.score[0]),o("setAwayResultGame",l.score[1]),n?l.game_status!==1?(await a("fillStatisticData",{gameId:s,gameinfo:l,promises:h,defaultFilter:c}),o("updateShowPostMatchData",!1)):(o("updateStats",[]),o("updateShowPostMatchData",!0),h.push(a("fillStatisticDataPostMatch",{game:s,homeTeam:l.home_team,awayTeam:l.visiting_team,gameInfo:l})),await Promise.all(h)):o("setIsSectionLoading",!1,{root:!0})}catch(l){return Promise.reject(l)}},async fillStatisticData({commit:e,dispatch:a,getters:o,rootGetters:s,state:n},{gameId:i,gameinfo:r,promises:c=[],defaultFilter:g=null}){let d=null;try{e("setIsSectionLoading",!0,{root:!0}),e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("updateGameForAnalysis",r),r.is_live&&c.push(a("getCurrentLiveGamePlays",i)),c.push(a("getSpecialMentionsByGame",i)),c.push(a("getHomeTeamPlays")),c.push(a("getVisitingTeamPlays")),c.push(a("getCurrentSeasonPlays")),g&&c.push(ive(g)),d=await Promise.all(c)}catch(l){throw new Error(l)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:o,isPremiumAccount:s["loginGeneral/getPremiumAccount"]}),g){const[l]=d.pop();l&&(e("setBetSubcategories",l.categories),e("setBetDescription",l.sectionDescription),e("setDefaultFilter",l.params),e("updateFilterAux"),e("updateFilters",{filters:n.defaultFilter,needsFormat:!1}),a("updateRankingInSubcategories"))}},100),e("setIsSectionLoading",!1,{root:!0})}},async checkTeamsData({state:e,dispatch:a,rootState:o,commit:s},{gameId:n,isFromBet:i}){try{const r=Number(n);if(o.general.tournaments&&o.general.tournaments.length){await a("general/fetchTournaments",null,{root:!0});const c=o.general.tournaments.find(g=>{for(const d of g.seasons)if(d.id===e.seasonId)return!0;return!1});s("general/setTournamentSelected",c||{},{root:!0})}if(e.pastSeasonId){s("nextGeneral/setPastSeasonId",e.pastSeasonId,{root:!0});const c=o.leagueGeneral.currentSeasonGames.find(g=>g.game_id===r);c&&s("updateGameForAnalysis",c),await Promise.all([a("getHomeTeamPlays"),a("getVisitingTeamPlays")]),s("setUsePastSeasonId",i||(!e.homeTeamPlays||e.homeTeamPlays.length===0)&&(!e.visitingTeamPlays||e.visitingTeamPlays.length===0))}else s("setUsePastSeasonId",!1)}catch(r){throw new Error(r)}},async getSpecialMentionsByGame({commit:e},a){try{const o=await eve({gameId:a});e("addSpecialMentions",o)}catch(o){return Promise.reject(o)}},async getCurrentSeasonGames({commit:e,state:a},o){try{const{teams:s,games:n,past_season_id:i,tournament_id:r}=await Kje({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId,gameId:o}),c=yve.find(g=>g.id===r);return c&&e("setCurrentTournamentName",c.name),e("setHome",s[0]),e("setAway",s[1]),a.usePastSeasonId||e("setPastSeasonId",i),await e("updateCurrentSeasonGames",n),n&&Array.isArray(n)&&e("updateFinishedGames",n.reduce((g,d)=>(d.game_status===1&&(g+=1),g),0)),n}catch(s){return Promise.reject(s)}},async getCurrentSeasonGamesLast({commit:e,state:a}){try{const{games:o,past_season_id:s}=await bk({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId});return a.usePastSeasonId||e("setPastSeasonId",s),await e("updateCurrentSeasonGames",o),o&&Array.isArray(o)&&e("updateFinishedGames",o.reduce((n,i)=>(i.game_status===1&&(n+=1),n),0)),o}catch(o){return Promise.reject(o)}},async getCurrentSeasonTeams({commit:e,state:a}){try{const o=await ove({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId});e("updateCurrentSeasonTeams",o.data.teams)}catch{}},async getSeasonStatistics({commit:e,state:a}){try{const o=a.usePastSeasonId?a.pastSeasonId:a.seasonId,s=await Zje({seasonId:o});e("updateSeasonStatistics",s),e("updateOldSeasonId",o)}catch(o){return Promise.reject(o)}},updateRankingInSubcategories({state:e,commit:a,getters:o,rootGetters:s}){e.currentSeasonGames.length>0&&a("addRankingInSubcategories",{getters:o,isPremiumAccount:s["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:a}){try{const o=await Ck({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId,teamId:a.gameForAnalysis.home_team});o.data&&(e("updateHomeTeamPlays",o.data.data),e("setHomeGames",o.data.games))}catch(o){return Promise.reject(o)}},async getVisitingTeamPlays({commit:e,state:a}){try{const o=await Ck({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId,teamId:a.gameForAnalysis.visiting_team});o.data&&(e("updateVisitingTeamPlays",o.data.data),e("setVisitingGames",o.data.games))}catch(o){return Promise.reject(o)}},async getCurrentSeasonPlays({commit:e,state:a}){try{const o=await Xje({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId});e("updateStats",o)}catch(o){return Promise.reject(new Error(o))}},async getCurrentLiveGamePlays({state:e,commit:a},o){try{const s=await Qje({gameId:o});e.livePlays=new Map,s.forEach(n=>{e.gameForAnalysis.game_id===n[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===n[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===n[e.indexesTLP.teamId])&&a("addLiveGamePlay",n)})}catch(s){throw new Error(s)}},socket_new({state:e,commit:a},o){const s=o[1];(e.gameForAnalysis.home_team===s[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===s[e.indexesTLP.teamId])&&a("addLiveGamePlay",s)},socket_update({state:e,commit:a},o){const s=o[1];e.gameForAnalysis.game_id===s[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===s[e.indexesTLP.teamId]||e.gameForAnalysis.visitingTeam===s[e.indexesTLP.teamId])&&a("updateLiveGamePlay",s)},socket_delete({state:e,commit:a},o){const s=o[1];e.gameForAnalysis.game_id===s[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===s[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===s[e.indexesTLP.teamId])&&a("deleteLiveGamePlay",s)},exitChannel({state:e,getters:a,rootState:o,rootGetters:s,commit:n}){const i=s["loginGeneral/getPremiumAccount"];a.isLive&&i&&(n("updateShowLiveData",!1),n("clearLiveTotals"),e.livePlays.clear(),this._vm.$socket.client.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const o of Object.values(e.nextGamesDataStructure))for(const s of Object.values(o.subcategories))s.homeTeam.resetTotals(),s.visitingTeam.resetTotals(),s.homeTeam.resetTotalsLive(),s.visitingTeam.resetTotalsLive(),s.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(o=>{for(const s of Object.values(o.subcategories))s.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const o of Object.values(e.nextGamesDataStructure))for(const s of Object.values(o.subcategories))s.homeTeam.resetTotals(),s.visitingTeam.resetTotals(),s.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(o=>{for(const s of Object.values(o.subcategories))s.resetMentions()}),e.currentSeasonGames=[],e.currentSeasonTeams=[],e.gameForAnalysis={},e.homeTeamPlays=[],e.visitingTeamPlays=[],e.currentSeasonPlays=null,e.totalSeasonFinishedGames=0,e.totalHomeTeamFinishedGames=0,e.totalVisitingTeamFinishedGames=0,e.homeGames=[],e.showPostMatch=!1,e.homeResultGame=null,e.awayResultGame=null,e.visitingGames=[],e.idAssetSelected=1,e.showAdvanceFilter=!1,e.selectedAnalysis={},e.homeTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.visitingTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.isRankingCalculating=!0}}}};async function fve(){try{const{data:e}=await ut({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return e}catch(e){throw new Error(e)}}const _ve={namespaced:!0,state:{videoSrc:null,isVideoModalVisible:!1,tournaments:[],seccionBetsGolTipster:1,tournamentSelected:{},sectionAnalytics:"Banner_Home",previewSectionAnalytics:"",sectionRef:"",booleanIsStatisticModalOpen:!1},getters:{getSectionAnalytics(e){return e.sectionAnalytics},getPreviewSectionAnalytics(e){return e.previewSectionAnalytics},getSeccionBetsGolTipster(e){return e.seccionBetsGolTipster}},mutations:{setBooleanIsStatisticModalOpen(e,a){e.booleanIsStatisticModalOpen=a},setSectionRef(e,a){e.sectionRef=a},setSectionAnalytics(e,a){e.sectionAnalytics=a},setSeccionBetsGolTipster(e,a){e.seccionBetsGolTipster=a},setPreviewSectionAnalytics(e,a){e.previewSectionAnalytics=a},setVideoSrc(e,a){e.videoSrc=a},setVideoModalVisibility(e,a){e.isVideoModalVisible=a},setSelectedTournament(e,a){e.selectedTournament=a},setTournaments(e,a){e.tournaments=a.map(o=>({...o.tournament,seasons:o.seasons})),e.tournamentSelected=e.tournaments[0]},setTournamentSelected(e,a){e.tournamentSelected=a}},actions:{async fetchTournaments({state:e,commit:a}){try{if(e.tournaments.length===0){const o=await fve();a("setTournaments",o)}}catch(o){throw new Error(o)}}}};async function bve({seasonId:e,localTeamId:a,visitingTeamId:o}){try{const s=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${a}/${o}`;return(await ut({url:s})).data}catch(s){return Promise.reject(s)}}async function wve({seasonId:e,localTeamId:a,visitingTeamId:o}){try{const s=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${a}/${o}`;return(await ut({url:s})).data}catch(s){return Promise.reject(s)}}const Sk=(e,a)=>{let o={};return e.forEach((s,n)=>{n==3&&(a[0]==35||a[0]==54)&&(a[n]==2?a[n]=1:a[n]=2),n==2&&(a[0]==35||a[0]==54)&&(a[n]==1?a[n]=2:a[n]==2&&(a[n]=1)),o[s]=a[n]}),o},Ek=(e,a)=>e.filter(s=>{const n=a.playingAs.includes(s.playing_as),i=a.matchResult.includes(s.match_result),r=a.sections.includes(s.section);return n&&i&&r}),Nk=[{name:"Goles",color:"#4A90E2",points:[1,2,3],categories:[12,55,35,54],invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#FF8000",points:[1,2,3],categories:[12,55,35,54,510]}];(function(){function e(a,o,s){return typeof s>"u"||+s==0?Math[a](o):(o=+o,s=+s,isNaN(o)||!(typeof s=="number"&&s%1===0)?NaN:(o=o.toString().split("e"),o=Math[a](+(o[0]+"e"+(o[1]?+o[1]-s:-s))),o=o.toString().split("e"),+(o[0]+"e"+(o[1]?+o[1]+s:s))))}Math.ceil10||(Math.ceil10=function(a,o){return e("ceil",a,o)})})();function $k(e,a){let o=a*-1;return Math.ceil10(e,o)}const Cve={general:_ve,...nve,...uve,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{playsLocal:(e,a,o)=>{const s=e.xGLocalPlays,n="homeTeamFilter",i=o.nextGeneral[n];return Ek(s,i)},playsAway:(e,a,o)=>{const s=e.xGVisitingPlays,n="visitingTeamFilter",i=o.nextGeneral[n];return Ek(s,i)},goalsQtyLocal:(e,a)=>{const o=Nk.find(s=>s.name==="Goles");return a.playsLocal.filter(s=>o.categories.includes(s.category_id)).length},goalsQtyAway:(e,a)=>{const o=Nk.find(s=>s.name==="Goles");return a.playsAway.filter(s=>o.categories.includes(s.category_id)).length},shotsOnGoalQtyLocal:(e,a)=>a.playsLocal.filter(o=>o.category_id===510).length,shotsOnGoalQtyAway:(e,a)=>a.playsAway.filter(o=>o.category_id===510).length,xGLocal:(e,a)=>{const o=new Set;let s=a.playsLocal.reduce((n,i)=>(o.has(i.moment_of_play)||(o.add(i.moment_of_play),n+=i.xG2),n),0);return $k(s,2)},xGAway:(e,a)=>{const o=new Set;let s=a.playsAway.reduce((n,i)=>(o.has(i.moment_of_play)||(o.add(i.moment_of_play),n+=i.xG2),n),0);return $k(s,2)}},mutations:{setTeamSelected(e,a){e.teamSelected=a},setPlays(e,a){e.xGLocalPlays=a.local_team.map(o=>Sk(a.data_headers,o)),e.xGVisitingPlays=a.visiting_team.map(o=>Sk(a.data_headers,o))},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:e},{seasonId:a,localTeamId:o,visitingTeamId:s,postMatch:n=!1}){try{var i={};n?i=await wve({seasonId:a,localTeamId:o,visitingTeamId:s}):i=await bve({seasonId:a,localTeamId:o,visitingTeamId:s}),e("setPlays",i)}catch(r){return Promise.reject(r)}}}}}};function kve(e){for(const[a,o]of Object.entries(Cve))e.hasModule(a)||e.registerModule(a,o)}_t.GSCGameData=Jje,_t.registerStoreModules=kve,Object.defineProperty(_t,Symbol.toStringTag,{value:"Module"})});
119
+ */var xDe="store";function _o(e,a){Object.keys(e).forEach(function(o){return a(e[o],o)})}function X6(e){return e!==null&&typeof e=="object"}function VDe(e){return e&&typeof e.then=="function"}function Xt(e,a){if(!e)throw new Error("[vuex] "+a)}function IDe(e,a){return function(){return e(a)}}function Z6(e,a,o){return a.indexOf(e)<0&&(o&&o.prepend?a.unshift(e):a.push(e)),function(){var s=a.indexOf(e);s>-1&&a.splice(s,1)}}function Y6(e,a){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var o=e.state;Gc(e,o,[],e._modules.root,!0),i0(e,o,a)}function i0(e,a,o){var s=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var n=e._wrappedGetters,i={};_o(n,function(r,c){i[c]=IDe(r,e),Object.defineProperty(e.getters,c,{get:function(){return i[c]()},enumerable:!0})}),e._state=t.reactive({data:a}),e.strict&&FDe(e),s&&o&&e._withCommit(function(){s.data=null})}function Gc(e,a,o,s,n){var i=!o.length,r=e._modules.getNamespace(o);if(s.namespaced&&(e._modulesNamespaceMap[r]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+r+" for the namespaced module "+o.join("/")),e._modulesNamespaceMap[r]=s),!i&&!n){var c=r0(a,o.slice(0,-1)),g=o[o.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&g in c&&console.warn('[vuex] state field "'+g+'" was overridden by a module with the same name at "'+o.join(".")+'"'),c[g]=s.state})}var d=s.context=ADe(e,r,o);s.forEachMutation(function(l,m){var h=r+m;ODe(e,h,l,d)}),s.forEachAction(function(l,m){var h=l.root?m:r+m,y=l.handler||l;TDe(e,h,y,d)}),s.forEachGetter(function(l,m){var h=r+m;zDe(e,h,l,d)}),s.forEachChild(function(l,m){Gc(e,a,o.concat(m),l,n)})}function ADe(e,a,o){var s=a==="",n={dispatch:s?e.dispatch:function(i,r,c){var g=Wc(i,r,c),d=g.payload,l=g.options,m=g.type;if((!l||!l.root)&&(m=a+m,process.env.NODE_ENV!=="production"&&!e._actions[m])){console.error("[vuex] unknown local action type: "+g.type+", global type: "+m);return}return e.dispatch(m,d)},commit:s?e.commit:function(i,r,c){var g=Wc(i,r,c),d=g.payload,l=g.options,m=g.type;if((!l||!l.root)&&(m=a+m,process.env.NODE_ENV!=="production"&&!e._mutations[m])){console.error("[vuex] unknown local mutation type: "+g.type+", global type: "+m);return}e.commit(m,d,l)}};return Object.defineProperties(n,{getters:{get:s?function(){return e.getters}:function(){return K6(e,a)}},state:{get:function(){return r0(e.state,o)}}}),n}function K6(e,a){if(!e._makeLocalGettersCache[a]){var o={},s=a.length;Object.keys(e.getters).forEach(function(n){if(n.slice(0,s)===a){var i=n.slice(s);Object.defineProperty(o,i,{get:function(){return e.getters[n]},enumerable:!0})}}),e._makeLocalGettersCache[a]=o}return e._makeLocalGettersCache[a]}function ODe(e,a,o,s){var n=e._mutations[a]||(e._mutations[a]=[]);n.push(function(i){o.call(e,s.state,i)})}function TDe(e,a,o,s){var n=e._actions[a]||(e._actions[a]=[]);n.push(function(i){var r=o.call(e,{dispatch:s.dispatch,commit:s.commit,getters:s.getters,state:s.state,rootGetters:e.getters,rootState:e.state},i);return VDe(r)||(r=Promise.resolve(r)),e._devtoolHook?r.catch(function(c){throw e._devtoolHook.emit("vuex:error",c),c}):r})}function zDe(e,a,o,s){if(e._wrappedGetters[a]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+a);return}e._wrappedGetters[a]=function(n){return o(s.state,s.getters,n.state,n.getters)}}function FDe(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&Xt(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function r0(e,a){return a.reduce(function(o,s){return o[s]},e)}function Wc(e,a,o){return X6(e)&&e.type&&(o=a,a=e,e=e.type),process.env.NODE_ENV!=="production"&&Xt(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:a,options:o}}var RDe="vuex bindings",Q6="vuex:mutations",l0="vuex:actions",ks="vuex",PDe=0;function DDe(e,a){BDe({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[RDe]},function(o){o.addTimelineLayer({id:Q6,label:"Vuex Mutations",color:ek}),o.addTimelineLayer({id:l0,label:"Vuex Actions",color:ek}),o.addInspector({id:ks,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),o.on.getInspectorTree(function(s){if(s.app===e&&s.inspectorId===ks)if(s.filter){var n=[];sk(n,a._modules.root,s.filter,""),s.rootNodes=n}else s.rootNodes=[ok(a._modules.root,"")]}),o.on.getInspectorState(function(s){if(s.app===e&&s.inspectorId===ks){var n=s.nodeId;K6(a,n),s.state=vDe(HDe(a._modules,n),n==="root"?a.getters:a._makeLocalGettersCache,n)}}),o.on.editInspectorState(function(s){if(s.app===e&&s.inspectorId===ks){var n=s.nodeId,i=s.path;n!=="root"&&(i=n.split("/").filter(Boolean).concat(i)),a._withCommit(function(){s.set(a._state.data,i,s.state.value)})}}),a.subscribe(function(s,n){var i={};s.payload&&(i.payload=s.payload),i.state=n,o.notifyComponentUpdate(),o.sendInspectorTree(ks),o.sendInspectorState(ks),o.addTimelineEvent({layerId:Q6,event:{time:Date.now(),title:s.type,data:i}})}),a.subscribeAction({before:function(s,n){var i={};s.payload&&(i.payload=s.payload),s._id=PDe++,s._time=Date.now(),i.state=n,o.addTimelineEvent({layerId:l0,event:{time:s._time,title:s.type,groupId:s._id,subtitle:"start",data:i}})},after:function(s,n){var i={},r=Date.now()-s._time;i.duration={_custom:{type:"duration",display:r+"ms",tooltip:"Action duration",value:r}},s.payload&&(i.payload=s.payload),i.state=n,o.addTimelineEvent({layerId:l0,event:{time:Date.now(),title:s.type,groupId:s._id,subtitle:"end",data:i}})}})})}var ek=8702998,LDe=6710886,jDe=16777215,tk={label:"namespaced",textColor:jDe,backgroundColor:LDe};function ak(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function ok(e,a){return{id:a||"root",label:ak(a),tags:e.namespaced?[tk]:[],children:Object.keys(e._children).map(function(o){return ok(e._children[o],a+o+"/")})}}function sk(e,a,o,s){s.includes(o)&&e.push({id:s||"root",label:s.endsWith("/")?s.slice(0,s.length-1):s||"Root",tags:a.namespaced?[tk]:[]}),Object.keys(a._children).forEach(function(n){sk(e,a._children[n],o,s+n+"/")})}function vDe(e,a,o){a=o==="root"?a:a[o];var s=Object.keys(a),n={state:Object.keys(e.state).map(function(r){return{key:r,editable:!0,value:e.state[r]}})};if(s.length){var i=MDe(a);n.getters=Object.keys(i).map(function(r){return{key:r.endsWith("/")?ak(r):r,editable:!1,value:c0(function(){return i[r]})}})}return n}function MDe(e){var a={};return Object.keys(e).forEach(function(o){var s=o.split("/");if(s.length>1){var n=a,i=s.pop();s.forEach(function(r){n[r]||(n[r]={_custom:{value:{},display:r,tooltip:"Module",abstract:!0}}),n=n[r]._custom.value}),n[i]=c0(function(){return e[o]})}else a[o]=c0(function(){return e[o]})}),a}function HDe(e,a){var o=a.split("/").filter(function(s){return s});return o.reduce(function(s,n,i){var r=s[n];if(!r)throw new Error('Missing module "'+n+'" for path "'+a+'".');return i===o.length-1?r:r._children},a==="root"?e:e.root._children)}function c0(e){try{return e()}catch(a){return a}}var Zt=function(e,a){this.runtime=a,this._children=Object.create(null),this._rawModule=e;var o=e.state;this.state=(typeof o=="function"?o():o)||{}},nk={namespaced:{configurable:!0}};nk.namespaced.get=function(){return!!this._rawModule.namespaced},Zt.prototype.addChild=function(e,a){this._children[e]=a},Zt.prototype.removeChild=function(e){delete this._children[e]},Zt.prototype.getChild=function(e){return this._children[e]},Zt.prototype.hasChild=function(e){return e in this._children},Zt.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},Zt.prototype.forEachChild=function(e){_o(this._children,e)},Zt.prototype.forEachGetter=function(e){this._rawModule.getters&&_o(this._rawModule.getters,e)},Zt.prototype.forEachAction=function(e){this._rawModule.actions&&_o(this._rawModule.actions,e)},Zt.prototype.forEachMutation=function(e){this._rawModule.mutations&&_o(this._rawModule.mutations,e)},Object.defineProperties(Zt.prototype,nk);var bo=function(e){this.register([],e,!1)};bo.prototype.get=function(e){return e.reduce(function(a,o){return a.getChild(o)},this.root)},bo.prototype.getNamespace=function(e){var a=this.root;return e.reduce(function(o,s){return a=a.getChild(s),o+(a.namespaced?s+"/":"")},"")},bo.prototype.update=function(e){ik([],this.root,e)},bo.prototype.register=function(e,a,o){var s=this;o===void 0&&(o=!0),process.env.NODE_ENV!=="production"&&ck(e,a);var n=new Zt(a,o);if(e.length===0)this.root=n;else{var i=this.get(e.slice(0,-1));i.addChild(e[e.length-1],n)}a.modules&&_o(a.modules,function(r,c){s.register(e.concat(c),r,o)})},bo.prototype.unregister=function(e){var a=this.get(e.slice(0,-1)),o=e[e.length-1],s=a.getChild(o);if(!s){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+o+"', which is not registered");return}s.runtime&&a.removeChild(o)},bo.prototype.isRegistered=function(e){var a=this.get(e.slice(0,-1)),o=e[e.length-1];return a?a.hasChild(o):!1};function ik(e,a,o){if(process.env.NODE_ENV!=="production"&&ck(e,o),a.update(o),o.modules)for(var s in o.modules){if(!a.getChild(s)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+s+"' on hot reloading, manual reload is needed");return}ik(e.concat(s),a.getChild(s),o.modules[s])}}var rk={assert:function(e){return typeof e=="function"},expected:"function"},UDe={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},lk={getters:rk,mutations:rk,actions:UDe};function ck(e,a){Object.keys(lk).forEach(function(o){if(a[o]){var s=lk[o];_o(a[o],function(n,i){Xt(s.assert(n),GDe(e,o,i,n,s.expected))})}})}function GDe(e,a,o,s,n){var i=a+" should be "+n+' but "'+a+"."+o+'"';return e.length>0&&(i+=' in module "'+e.join(".")+'"'),i+=" is "+JSON.stringify(s)+".",i}var St=function e(a){var o=this;a===void 0&&(a={}),process.env.NODE_ENV!=="production"&&(Xt(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),Xt(this instanceof e,"store must be called with the new operator."));var s=a.plugins;s===void 0&&(s=[]);var n=a.strict;n===void 0&&(n=!1);var i=a.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new bo(a),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=i;var r=this,c=this,g=c.dispatch,d=c.commit;this.dispatch=function(m,h){return g.call(r,m,h)},this.commit=function(m,h,y){return d.call(r,m,h,y)},this.strict=n;var l=this._modules.root.state;Gc(this,l,[],this._modules.root),i0(this,l),s.forEach(function(m){return m(o)})},d0={state:{configurable:!0}};St.prototype.install=function(e,a){e.provide(a||xDe,this),e.config.globalProperties.$store=this;var o=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;o&&DDe(e,this)},d0.state.get=function(){return this._state.data},d0.state.set=function(e){process.env.NODE_ENV!=="production"&&Xt(!1,"use store.replaceState() to explicit replace store state.")},St.prototype.commit=function(e,a,o){var s=this,n=Wc(e,a,o),i=n.type,r=n.payload,c=n.options,g={type:i,payload:r},d=this._mutations[i];if(!d){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+i);return}this._withCommit(function(){d.forEach(function(l){l(r)})}),this._subscribers.slice().forEach(function(l){return l(g,s.state)}),process.env.NODE_ENV!=="production"&&c&&c.silent&&console.warn("[vuex] mutation type: "+i+". Silent option has been removed. Use the filter functionality in the vue-devtools")},St.prototype.dispatch=function(e,a){var o=this,s=Wc(e,a),n=s.type,i=s.payload,r={type:n,payload:i},c=this._actions[n];if(!c){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+n);return}try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(r,o.state)})}catch(d){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(d))}var g=c.length>1?Promise.all(c.map(function(d){return d(i)})):c[0](i);return new Promise(function(d,l){g.then(function(m){try{o._actionSubscribers.filter(function(h){return h.after}).forEach(function(h){return h.after(r,o.state)})}catch(h){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(h))}d(m)},function(m){try{o._actionSubscribers.filter(function(h){return h.error}).forEach(function(h){return h.error(r,o.state,m)})}catch(h){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(h))}l(m)})})},St.prototype.subscribe=function(e,a){return Z6(e,this._subscribers,a)},St.prototype.subscribeAction=function(e,a){var o=typeof e=="function"?{before:e}:e;return Z6(o,this._actionSubscribers,a)},St.prototype.watch=function(e,a,o){var s=this;return process.env.NODE_ENV!=="production"&&Xt(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(s.state,s.getters)},a,Object.assign({},o))},St.prototype.replaceState=function(e){var a=this;this._withCommit(function(){a._state.data=e})},St.prototype.registerModule=function(e,a,o){o===void 0&&(o={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(Xt(Array.isArray(e),"module path must be a string or an Array."),Xt(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,a),Gc(this,this.state,e,this._modules.get(e),o.preserveState),i0(this,this.state)},St.prototype.unregisterModule=function(e){var a=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&Xt(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var o=r0(a.state,e.slice(0,-1));delete o[e[e.length-1]]}),Y6(this)},St.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&Xt(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},St.prototype.hotUpdate=function(e){this._modules.update(e),Y6(this,!0)},St.prototype._withCommit=function(e){var a=this._committing;this._committing=!0,e(),this._committing=a},Object.defineProperties(St.prototype,d0);var WDe=JDe(function(e,a){var o={};return process.env.NODE_ENV!=="production"&&!dk(a)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),qDe(a).forEach(function(s){var n=s.key,i=s.val;o[n]=function(){for(var r=[],c=arguments.length;c--;)r[c]=arguments[c];var g=this.$store.commit;if(e){var d=XDe(this.$store,"mapMutations",e);if(!d)return;g=d.context.commit}return typeof i=="function"?i.apply(this,[g].concat(r)):g.apply(this.$store,[i].concat(r))}}),o});function qDe(e){return dk(e)?Array.isArray(e)?e.map(function(a){return{key:a,val:a}}):Object.keys(e).map(function(a){return{key:a,val:e[a]}}):[]}function dk(e){return Array.isArray(e)||X6(e)}function JDe(e){return function(a,o){return typeof a!="string"?(o=a,a=""):a.charAt(a.length-1)!=="/"&&(a+="/"),e(a,o)}}function XDe(e,a,o){var s=e._modulesNamespaceMap[o];return process.env.NODE_ENV!=="production"&&!s&&console.error("[vuex] module namespace not found in "+a+"(): "+o),s}const ZDe="/icn-play.svg",YDe="/icn-tiros-de-esquina.svg",KDe="/icn-tiro-a-porteria.svg",QDe="/icn-cambio.svg",eLe="/icn-falta.svg",tLe="/atajada.svg",aLe="/fuera-de-lugar.svg",m0="/gol.svg",oLe="/var.png",sLe="/tiempo-agregado.svg",nLe="/jugada-peligrosa.svg",iLe="/penal-marcado.svg",rLe="/penal-fallado.svg",lLe="/inicia-el-partido.svg",cLe="/fin-del-partido.svg",dLe="/icn-tarjeta-amarilla.svg",mLe="/icn-tarjeta-roja.svg",pLe=[1,2,3,4,6],hLe={name:"TimeLineEvent",props:{gameEvent:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},width:{type:Number,default:352},timeLineWidth:{type:Number,default:0}},data(){return{lastHeight:0,gameEventKey:0}},computed:{nameClasses(){const e=[],a=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return s0.GOAL_IDS.includes(a)?(e.push("is-main-event"),e.push("goal")):s0.YELLOW_CARD_IDS.includes(a)?(e.push("is-main-event"),e.push("yellow-card")):s0.RED_CARD_IDS.includes(a)&&(e.push("is-main-event"),e.push("red-card")),this.gameEvent.teamType===1?e.push("time-line-event--home-team"):e.push("time-line-event--away-team"),e},srcImgPlayers(){let e=null;return this.gameEvent.player_id&&this.gameEvent.player_id!=="-"&&(e=this.gameEvent.player_id.split("@"),e=e.map(a=>bDe(a))),e},teamTypeClasses(){const e=`time-line-event--${this.gameEvent.teamType===1?"home":"away"}-team`;return[e,`${e}-desktop`]},teamTypeClasses2(){return[`time-line-event--info--${this.gameEvent.teamType===1?"home":"away"}-team`]},minuteClasses(){const e=[`time-line-event__minute--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`];return e.push("time-line-event__minute--desktop"),e},playerName(){return this.gameEvent.category_id===28||pLe.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...WDe("general",["setVideoModalVisibility","setVideoSrc"]),thumbnailClick(e,a){(a==="Gol"||a==="Tarjeta")&&this.$emit("thumbnail-click",e)},showVideoTimeline(e){this.setVideoSrc(e),this.setVideoModalVisibility(!0)},getIconClasses(){return["time-line-event__icon--desktop",`time-line-event__icon--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`]},emitHeight(){setTimeout(()=>{this.$refs.timeLineEvent&&this.$refs.timeLineEvent.clientHeight&&this.$refs.timeLineEvent.clientHeight!==this.lastHeight&&(this.lastHeight=this.$refs.timeLineEvent.clientHeight,this.$emit("event-height",this.lastHeight))},500)}},mounted(){if(this.emitHeight(),this.gameEvent.event_type_id===3){const[e,a]=this.gameEvent.player_id.split("@");this.$emit("player-changed",{playerOut:Number(e),playerIn:Number(a),teamId:this.gameEvent.team_id})}}},gLe=e=>(t.pushScopeId("data-v-f8cd0c73"),e=e(),t.popScopeId(),e),yLe={class:"time-line-event__details"},uLe={width:"127",preload:"metadata",style:{"border-radius":"8px"}},fLe=["src"],_Le=gLe(()=>t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient"},[t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient__button-play"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})])])],-1)),bLe={class:"time-line-event__details__info"},wLe={key:0,class:"time-line-event__details__info__header__players"},CLe={class:"time-line-event__details__info__header__players__div-img"},kLe=["src"],SLe={class:"time-line-event__details__info__body"},ELe={class:"time-line-event__details__info__body__comment"},NLe={class:"time-line-event__minute__container"},$Le={class:"time-line-event__minute__container__text"},BLe={class:"time-line-event__minute__container__icon-container"},xLe={class:"time-line-event__minute__container__icon-container__icon"},VLe={key:0,src:YDe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},ILe={key:1,src:KDe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},ALe={key:2,src:QDe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},OLe={key:3,src:eLe,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},TLe={key:4,src:tLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},zLe={key:5,src:aLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},FLe={key:6,src:m0,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},RLe={key:7,src:m0,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},PLe={key:8,src:m0,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},DLe={key:9,src:oLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},LLe={key:10,src:sLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},jLe={key:11,src:nLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},vLe={key:12,src:iLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},MLe={key:13,src:rLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},HLe={key:14,src:lLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},ULe={key:15,src:cLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},GLe={key:16,src:dLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},WLe={key:17,src:mLe,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},qLe={key:18,src:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %23fff; %7D .cls-2 %7B fill: %23172531; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Cg id='Oval'%3E%3Ccircle class='cls-2' cx='24' cy='24' r='24'/%3E%3C/g%3E%3Cg id='Group-19'%3E%3Cg id='Path-16'%3E%3Cpath class='cls-1' d='M32.85,36.6H15.15c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h17.69c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z'/%3E%3C/g%3E%3C/g%3E%3Cg id='Rectangle'%3E%3Cg id='path-1'%3E%3Cpath class='cls-1' d='M38.02,32.62H9.98V13.43h28.04v19.19Zm-26.54-1.5h25.04V14.93H11.48V31.12Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",alt:"Event icon"};function JLe(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",i.teamTypeClasses]),style:t.normalizeStyle({width:`${o.width}px`}),key:n.gameEventKey},[t.createElementVNode("div",yLe,[o.gameEvent.video_link!=="-"&&o.timeLineWidth>700?(t.openBlock(),t.createElementBlock("div",{key:0,class:"time-line-event__details__video-thumbnail",onClick:a[0]||(a[0]=r=>i.thumbnailClick(o.gameEvent.video_link,o.gameEvent.event_type_name))},[t.createElementVNode("video",uLe,[t.createElementVNode("source",{src:o.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,fLe)]),_Le])):t.createCommentVNode("",!0),t.createElementVNode("div",bLe,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",i.teamTypeClasses2])},[o.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",wLe,[i.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(i.srcImgPlayers,(r,c)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":c===1}]),key:c},[t.createElementVNode("div",CLe,[t.createElementVNode("img",{src:r,alt:""},null,8,kLe)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",i.nameClasses]),onClick:a[1]||(a[1]=r=>i.thumbnailClick(o.gameEvent.video_link,o.gameEvent.event_type_name))},[t.createElementVNode("img",{src:ZDe,class:t.normalizeClass("time-line-event__details__info__header__event-play time-line-event__details__info__header__event-play__"+o.gameEvent.event_type_name)},null,2),t.createTextVNode(" "+t.toDisplayString(o.gameEvent.category_id?o.gameEvent.event_type_id===5?o.gameEvent.category_name:o.gameEvent.event_type_name==="Gol"?o.gameEvent.event_type_name+" de "+o.gameEvent.team_name:o.gameEvent.event_type_name:o.gameEvent.comments),1)],2)],2),t.createElementVNode("div",SLe,[t.createElementVNode("div",ELe,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",i.minuteClasses])},[t.createElementVNode("div",NLe,[t.createElementVNode("div",$Le,t.toDisplayString(o.gameEvent.minute)+"'",1),t.createElementVNode("div",BLe,[t.createElementVNode("div",xLe,[o.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",VLe)):o.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",ILe)):o.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",ALe)):o.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",OLe)):o.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",TLe)):o.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",zLe)):o.gameEvent.category_id==6&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==5&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==1&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==2&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==3&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==7&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==12&&o.gameEvent.event_type_id==1?(t.openBlock(),t.createElementBlock("img",FLe)):o.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",RLe)):o.gameEvent.category_id==13||o.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",PLe)):o.gameEvent.category_id==30||o.gameEvent.category_id==31||o.gameEvent.category_id==32||o.gameEvent.category_id==33||o.gameEvent.category_id==34||o.gameEvent.category_id==35||o.gameEvent.category_id==36||o.gameEvent.category_id==37||o.gameEvent.category_id==38||o.gameEvent.category_id==39||o.gameEvent.category_id==40?(t.openBlock(),t.createElementBlock("img",DLe)):o.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",LLe)):o.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",jLe)):o.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",vLe)):o.gameEvent.category_id==15||o.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",MLe)):o.gameEvent.category_id==0&&o.gameEvent.game_status_id==16||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==18||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==20||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==22?(t.openBlock(),t.createElementBlock("img",HLe)):o.gameEvent.category_id==0&&o.gameEvent.game_status_id==13||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==17||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==19||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==21||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==23?(t.openBlock(),t.createElementBlock("img",ULe)):o.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",GLe)):o.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",WLe)):(t.openBlock(),t.createElementBlock("img",qLe))])])])],2)],6)}const XLe=ii(hLe,[["render",JLe],["__scopeId","data-v-f8cd0c73"]]),ZLe={"1-1":"gol","1-2":"gol","1-3":"gol","1-4":"gol","1-5":"gol","1-6":"gol","1-7":"gol","1-12":"gol","1-13":"gol","1-16":"gol","2-8":"amonestacion","2-9":"expulsion","3-10":"cambio_de_jugador","3-11":"cambio_de_jugador","4-14":"gol","4-15":"penal_fallado","5-17":"fuera_de_lugar","5-18":"tiro_de_esquina","5-20":"tiro_a_gol","5-21":"falta_cometida","5-22":"penal_marcado","5-23":"penal_fallado","5-24":"","5-25":"","5-26":"jugada_peligro_dentro_area","5-27":"atajada","5-28":"tiempo_agregado","5-29":"presion_para_anotar","7-30":"revision_var","7-31":"revision_var","7-32":"revision_var","7-33":"revision_var","7-34":"revision_var"},YLe={3:{name:"Inicia Primer Tiempo",weight:1,playTimer:1,abbreviation:"1T:"},4:{name:"Final Primer Tiempo",weight:2,playTimer:0,abbreviation:"1T:"},5:{name:"Inicia Segundo Tiempo",weight:3,playTimer:1,abbreviation:"2T:"},8:{name:"Final Segundo Tiempo",weight:4,playTimer:0,abbreviation:"2T:"},9:{name:"Inicia Primer Tiempo Extra",weight:5,playTimer:1,abbreviation:"1T extra:"},12:{name:"Final Primer Tiempo Extra",weight:6,playTimer:0,abbreviation:"1T extra:"},10:{name:"Inicia Segundo Tiempo Extra",weight:7,playTimer:1,abbreviation:"2T extra:"},13:{name:"Final Segundo Tiempo Extra",weight:8,playTimer:0,abbreviation:"2T extra:"},11:{name:"Inicia Tanda de Penales",weight:9,playTimer:1,abbreviation:"Penales:"},15:{name:"Final Tanda de Penales",weight:10,playTimer:0,abbreviation:"Penales:"},6:{name:"Marcador Final",weight:11,playTimer:0,abbreviation:"Final"}};let qc=null;const KLe={name:"TimeLine",components:{Tooltip:yDe,TimeLineEvent:XLe},mixins:[fDe],props:{gameData:{type:Object,required:!0},timeLinePeriod:{type:String,default:"all"}},data(){return{gameEvents:[],gameEventsByPeriod:{firstHalf:[],secondHalf:[]},dataVideo:{visible:!1,link:""},gameEventsQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",transitionName:"",subscriptionInfo:{gameId:0,isSubscribed:!1},areGameEventsFilled:!1,timeLineWidth:812,eventContainerWidth:0,channelName:"",timeLineStatus:"awaiting",timeLeft:"",lastMinute:0,timeLineStatuses:[],currentStatus:{abbreviation:""},timer:"00:00"}},computed:{isMobile(){return this.timeLineWidth<580},gameEventWidth(){return this.timeLineWidth/2-30},gameEventsToShow(){return this.timeLinePeriod==="all"?this.gameEvents:this.gameEventsByPeriod[this.timeLinePeriod]}},watch:{gameData:{deep:!0,immediate:!0,handler(e){e&&e.id&&(this.gameDateTime=new Date(this.gameData.dateTimeUTC),this.gameEventsQueue=[],this.timeLineStatuses=[],this.transitionName="",this.checkTimeLeft(),e.status!==1||(this.timeLineStatus="finished"),this.fillGameEvents(e.id))}},"$socket.connected":{immediate:!0,handler(e){e&&this.gameData.id&&this.subscribeToMXMChannel()}},gameEvents(e){e.length&&this.gameData.status!==1&&(this.timeLineStatus="live")}},methods:{async fillGameEvents(e){try{const a=await this.fetchGameEvents(e);a?(this.gameEvents=[...a],this.checkGameEventsQueue(),this.sortGameEvents(),setTimeout(()=>{this.transitionName="list"},500)):this.gameEvents=[],this.gameData.status===1?this.lastMinute=`${this.gameEvents[this.gameEvents.length-1].minute}'`:this.checkTimeLineStatus()}catch(a){throw new Error(a)}},getGameEventClassAndSetIcon(e,a){return e.icon=a===0?"inicio_del_partido":ZLe[`${e.event_type_id}-${e.category_id}`],e.team_id===this.gameData.homeTeam.team_id||!e.team_id?(e.teamType=1,["home-team-event"]):(e.teamType=2,["away-team-event"])},getEventContainerClass(){return this.isMobile,["time-line-event__container--desktop"]},async fetchGameEvents(e){try{const{data:{plays:a}}=await G6.get(`${this.gameEventsUrl}${e}`);return a}catch(a){throw new Error(a)}},subscribeToMXMChannel(){this.channelName=`mxm.game.${this.gameData.id}`,this.$socket.client.emit("subscribe",{channel:this.channelName}),this.isSubscribed=!0},checkGameEventsQueue(){this.gameEventsQueue.length&&this.gameEvents.push(...this.gameEventsQueue),this.areGameEventsFilled=!0},setUpResizeObserver(){if(window.ResizeObserver)qc=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),qc.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,a){const o=this.$refs[`gameEventDiv${a}`][0],s=this.$refs[`gameEventLine${a}`]?this.$refs[`gameEventLine${a}`][0]:null,n=e+12;o&&(o.style.height=`${n}px`),s&&(s.style.height=`${n}px`)},sortGameEvents(){this.gameEvents.sort((e,a)=>this.getMatchLapseMinutes(e.match_lapse)+Number(e.minute)-(this.getMatchLapseMinutes(a.match_lapse)+Number(a.minute))),this.gameEvents.forEach(e=>{this.gameEventsByPeriod[e.match_lapse===1?"firstHalf":"secondHalf"].push(e)})},getMatchLapseMinutes(e){let a=0;switch(e){case 1:a=0;break;case 2:a=45;break;case 3:a=90;break;case 4:a=105;break;case 5:a=120;break}return a},addGameEventFromChannel(e){this.areGameEventsFilled?(this.gameEvents.push(e),this.sortGameEvents()):this.gameEventsQueue.push(e)},deleteGameEventFromChannel(e){const a=this.gameEvents.findIndex(o=>o.play_id===e.play_id);a&&this.gameEvents.splice(a,1)},checkTimeLineStatus(){this.gameEvents.forEach(a=>{const o=YLe[a.game_status];o&&this.timeLineStatuses.push({...o,gameEvent:a})}),this.timeLineStatuses.sort((a,o)=>o.weight-a.weight);const e=this.timeLineStatuses[0];e&&(this.currentStatus=e,e.playTimer&&this.startTimer())},startTimer(){},getTeamLogoSrc(e="homeTeam"){const a=this.gameData[e].team_id;return _De(a)},thumbnailClick(e){this.dataVideo.link=e,this.dataVideo.visible=!0}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){qc&&qc.unobserve(this.$refs.timeLine)},sockets:{new_mxm(e,a){this.channelName===e&&this.addGameEventFromChannel(a)},update_mxm(e,a){this.channelName===e&&(this.deleteGameEventFromChannel(a),this.addGameEventFromChannel(a))},delete_mxm(e,a){this.channelName===e&&this.deleteGameEventFromChannel(a)}}},mk=e=>(t.pushScopeId("data-v-a31f9d54"),e=e(),t.popScopeId(),e),QLe={ref:"timeLine",class:"time-line"},eje={class:"time-line__header"},tje={class:"time-line__header__dot"},aje={class:"time-line__header__dot__home-team team-logo"},oje=["src"],sje={class:"time-line__header__dot__away-team team-logo"},nje=["src"],ije={class:"time-line__game-events"},rje={key:1,class:"start-line"},lje=mk(()=>t.createElementVNode("div",null,null,-1)),cje=mk(()=>t.createElementVNode("div",null,null,-1)),dje=[lje,cje],mje={key:1,class:"noEventText"},pje={class:"tooltip-data"},hje=["src"];function gje(e,a,o,s,n,i){const r=t.resolveComponent("TimeLineEvent"),c=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",QLe,[t.createElementVNode("div",eje,[t.createElementVNode("div",tje,[t.createElementVNode("div",aje,[t.createElementVNode("img",{src:i.getTeamLogoSrc("homeTeam"),alt:""},null,8,oje)]),t.createElementVNode("div",sje,[t.createElementVNode("img",{src:i.getTeamLogoSrc("awayTeam"),alt:""},null,8,nje)])])]),t.createElementVNode("div",ije,[o.gameData.status!==4?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:0,name:n.transitionName,tag:"div"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.gameEventsToShow,(g,d)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:g.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${d}`,class:t.normalizeClass(i.getGameEventClassAndSetIcon(g,d))},[t.createElementVNode("div",{class:t.normalizeClass(i.getEventContainerClass(g))},[t.createVNode(r,{"game-event":g,"is-mobile":i.isMobile,"time-line-width":n.timeLineWidth,width:i.gameEventWidth,onEventHeight:l=>i.updateContainerHeight(l,d),onPlayerChanged:a[0]||(a[0]=l=>e.$emit("player-changed",l)),onThumbnailClick:i.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","onEventHeight","onThumbnailClick"])],2),d>0?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:`gameEventLine${d}`,class:"line"},null,512)):t.createCommentVNode("",!0),o.gameData.status===1&&d===i.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",rje,dje)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",mje," Aún no comienza el partido "))])],512),t.createVNode(c,{data:n.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",pje,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:n.dataVideo.link,format:"video/mp4"},null,8,hje)])])]),_:1},8,["data"])],64)}const yje=ii(KLe,[["render",gje],["__scopeId","data-v-a31f9d54"]]),uje={class:"game-time-line__options"},fje={class:"game-time-line__timeline"},_je={__name:"GSC-GameTimeLine",props:{game:{type:Object,default:()=>({id:79601,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:18,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})}},setup(e){G6.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const a=t.ref({width:"103px",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"}),o=t.ref({width:"auto",height:"30px",padding:"0px 20px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"});let s=null;const n=t.ref(["Todo","1er tiempo","2do tiempo"]),i=t.ref("Todo"),r=t.ref({}),c=t.ref(null),g=t.ref(0),d=t.computed(()=>{let p="all";return i.value==="1er tiempo"||i.value==="1er"?p="firstHalf":(i.value==="2do tiempo"||i.value==="2do")&&(p="secondHalf"),p}),l=t.computed(()=>g.value<500);function m(p){i.value=p}function h(p){r.value=p}function y(){if(window.ResizeObserver)s=new ResizeObserver(()=>{g.value=c.value.clientWidth}),s.observe(c.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{y()}),t.onBeforeUnmount(()=>{s&&s.unobserve(c.value)}),(p,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:c,class:"game-time-line"},[t.createElementVNode("div",uje,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,f=>(t.openBlock(),t.createElementBlock("div",{key:f,class:"game-time-line__options__option"},[t.createVNode(XRe,t.mergeProps(g.value<390?o.value:a.value,{text:f=="Todo"?f:g.value<390?f.substring(0,3):f,"is-active":i.value===f,onClick:_=>m(f)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",fje,[t.createVNode(yje,{"game-data":e.game,"time-line-period":d.value,"is-mobile":l.value,onGameEventsByPeriodFilled:h},null,8,["game-data","time-line-period","is-mobile"])])],512))}},bje=ii(_je,[["__scopeId","data-v-52261d5c"]]);function wje(e){const a=t.ref({width:0,height:0});function o(){const s=e.value.getBoundingClientRect();a.value.width=s.width,a.value.height=s.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const Cje=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},p0={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},pk=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},hk=p0.setup;p0.setup=hk?(e,a)=>(pk(),hk(e,a)):pk;const kje={ref:"gscScrollableContainer",class:"scrollable-container"},Sje={class:"scrollable-arrows"},Eje=["width","height","viewBox"],Nje=["stroke"],$je={class:"scrollable-wrapper"},Bje={class:"scrollable-arrows"},xje=["width","height","viewBox"],Vje=["stroke"];function Ije(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",kje,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[t.createElementVNode("div",Sje,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:o.arrowsColor},null,8,Nje)],8,Eje))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[t.createElementVNode("div",$je,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[t.createElementVNode("div",Bje,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:o.arrowsColor},null,8,Vje)],8,xje))])],2)):t.createCommentVNode("",!0)],512)}const Aje=Cje(p0,[["render",Ije],["__scopeId","data-v-b548a08d"]]),Oje=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},h0={components:{GSCSlider:Aje},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=wje(e);return{myDivRef:e,elementSize:a}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var a={};return e.width>768?a={fontSize:"16px"}:e.width>480?a={fontSize:"14px"}:a={fontSize:"12px"},a}}},gk=()=>{t.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},yk=h0.setup;h0.setup=yk?(e,a)=>(gk(),yk(e,a)):gk;const Tje={ref:"myDivRef"},zje={key:0,class:"gs-switch-container"},Fje=["onClick"],Rje={key:1,class:"gs-switch-container-type"},Pje=["onClick"],Dje={key:2,class:"gs-switch-container-carousel"},Lje=["onClick"];function jje(e,a,o,s,n,i){const r=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",Tje,[o.type==0?(t.openBlock(),t.createElementBlock("div",zje,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([i.customGrid(s.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.buttons,(c,g)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:o.height},o.selectedOption==c?{borderColor:o.colorOptionActive,color:o.colorFont+"!important",background:o.backgroundOptionActive}:{borderColor:o.colorOptionDisable,color:"grey !important"}]),key:g,onClick:d=>(o.selectedOption=c,i.clickEmitEvent(c))},t.toDisplayString(c),13,Fje))),128))],4),t.renderSlot(e.$slots,o.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",Rje,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([i.customGrid(s.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.buttons,(c,g)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:o.height},o.selectedOption==c?{borderColor:o.colorOptionActive,color:o.colorFont+"!important",background:o.backgroundOptionActive}:{borderColor:o.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:o.backgroundOptionDisable}]),key:g,onClick:d=>(o.selectedOption=c,i.clickEmitEvent(c))},t.toDisplayString(c),13,Pje))),128))],4)])):t.createCommentVNode("",!0),o.type==2?(t.openBlock(),t.createElementBlock("div",Dje,[t.createVNode(r,{arrows:o.arrow,"background-color":o.background,"px-scroll":o.pxScroll,"scroll-color":o.scrollColor,"arrows-position":o.arrowsPosition,arrowsScrollHide:o.arrowsScrollHide,"arrows-background":o.arrowsBackground,"arrows-container-bg-l":o.arrowsContainerBgL,"arrows-container-bg-r":o.arrowsContainerBgR,"arrows-margin":o.arrowsMargin,"arrows-radius":o.arrowsRadius,"arrows-border":o.arrowsBorder},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.buttons,(c,g)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:o.height},o.selectedOption==c?{borderColor:o.colorOptionActive,color:o.colorFont+"!important",background:o.backgroundOptionActive}:{borderColor:o.colorOptionDisable,color:"grey !important"}]),key:g,onClick:d=>(o.selectedOption=c,i.clickEmitEvent(c))},t.toDisplayString(c),13,Lje))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):t.createCommentVNode("",!0)],512)}const uk=Oje(h0,[["render",jje],["__scopeId","data-v-8a86dfaf"]]),QMe="",vje={class:"game-data__header"},Mje={class:"game-data__header__tournament-season-dropdown"},Hje={class:"game-data__header__teams-carousel"},Uje={class:"game-data__body"},Gje={class:"game-data__body__menu"},Wje={class:"game-data__body__menu__contmenuswitch"};Li.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const qje=t.defineComponent({name:"TemplateVideos",components:{StatisticsMain:wT,GSCGameTimeLine:bje,GscSwitchComponent:uk,GSCLineupsMain:OX,GSCDatosGSMain:xne,GSCVideoGame:L0e,GSCSummaryMain:qRe}}),Jje=Ae(Object.assign(qje,{props:{currentSeasonId:{type:Number,default:0},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}}},emits:["openmedia","change-season-id"],setup(e,{emit:a}){const o=e,s=t.ref({season:[]}),n=t.ref({}),i=t.ref({}),r=t.ref(!0),c=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),g=t.ref([{componentName:"GSCSummaryMain",name:"Resumen",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"GSCDatosGSMain",name:"Datos Golstats",id:3},{componentName:"StatisticsMain",name:"Estadísticas",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]);let d=null;const l=t.ref(null),m=t.ref(0),h=t.ref(g.value[0]);let y=t.ref("");const p=t.computed(()=>{const $=[];return n.value&&n.value.id&&($.push({id:n.value.id,name:n.value.name,type:n.value.type}),n.value.related_seasons&&n.value.related_seasons.forEach(F=>{$.push({id:F.id,type:F.type})})),$});function u(){d=new ResizeObserver($=>{for(const F of $)m.value=F.contentRect.width}),d.observe(l.value)}const f=t.computed(()=>{let $={};return i.value&&i.value.game_id&&($={gameId:i.value.game_id,id:i.value.game_id,seasonId:i.value.season_id,status:i.value.game_status,game_status:i.value.game_status==0?4:i.value.game_status,dateTimeUTC:i.value.date_time_utc,homeTeam:i.value.home_team,awayTeam:i.value.visiting_team}),$});function _($){s.value=$,$.is_captured===0?r.value=!1:r.value=!0,s.value.id!==$.id&&(s.value=$)}function k($){a("openmedia",$)}function C($){V($),$=="Estadísticas"&&(y.value="Comparativa")}function b(){y.value=""}function E($){n.value.id!==$.id&&(n.value=$,a("change-season-id",$.id))}const x=t.computed(()=>g.value.map($=>{if(r.value)return $.name;if($.id!==5&&$.id!==6)return $.name}).filter($=>$!=null));function V($){h.value=g.value.find(F=>F.name===$)||g.value[0]}t.onMounted(()=>{u()});function B($){i.value=$}return($,F)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:l},[t.createElementVNode("div",vje,[t.createElementVNode("div",Mje,[t.createVNode(t.unref(r7),{"current-season-id":e.currentSeasonId,onInput:_},null,8,["current-season-id"]),t.createVNode(t.unref(I7),{"current-season-id":e.currentSeasonId,seasons:s.value.seasons,onInput:E},null,8,["current-season-id","seasons"])]),t.createElementVNode("div",Hje,[t.createVNode(t.unref(LN),{token:c.value,"await-for-seasons":"",seasons:p.value,"is-pagination-visible":!1,"are-games-carousel-type":"",onChangeGameCarousel:B,"default-game-id":o.defaultGameId},null,8,["token","seasons","default-game-id"])])]),t.createElementVNode("div",Uje,[t.createElementVNode("div",Gje,[t.createElementVNode("div",Wje,[t.createVNode(t.unref(uk),{type:2,buttons:x.value,"font-family":"Poppins-Regular","font-size":"16px",width:m.value<400||m.value<700?"max-content":m.value<840||m.value<1050?"155px":"165px","selected-option":h.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:V},null,8,["buttons","width","selected-option"])])]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(h.value.componentName),{game:f.value,subsection:t.unref(y),seasonSelected:n.value,showLineups:r.value,onResetSubsection:b,onOpenmedia:k,onChangeToTab:C},null,40,["game","subsection","seasonSelected","showLineups"]))])],512))}}),[["__scopeId","data-v-7bbaaf14"]]);async function ut({url:e,options:a={},retries:o=3}){return await Li.get(e,a).then(s=>s).catch(s=>o>0?ut({url:e,options:a,retries:o-1}):s)}async function fk({seasonId:e},a=!0){try{const o={url:`https://b5lrr2nc0h.execute-api.us-west-2.amazonaws.com/prod/statisticsLeagueBySeason/${e}`};a&&(o.url=`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`,o.retries=1);const{data:{data:s}}=await ut(o);return s}catch(o){if(a)return fk({seasonId:e},!1);throw new Error(o)}}async function Xje({seasonId:e}){try{return(await ut({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(a){return Promise.reject(a)}}async function Zje({seasonId:e}){try{return(await ut({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(a){return Promise.reject(a)}}function Yje(e,a,o,s,n,i,r=!1){const c=o.map(g=>g===1?2:g===2?1:3);return e.filter(g=>{const d=i&&g[n.teamId]?g[n.teamId]!==i:!1,l=a===1?2:1;return(r||s.includes(g[n.gameId]))&&(!a||(d?l:a)===g[n.playingAs])&&(o.includes(g[n.matchResult])&&g[n.teamId]===i||c.includes(g[n.matchResult])&&g[n.teamId]!==i)})}function _k(e,a,o,s,n){return a.length===2&&o.length===3&&s.length===6?e:e.filter(i=>a.includes(i[n.playingAs])&&o.includes(i[n.matchResult])&&s.includes(i[n.section]))}async function bk({seasonId:e}){try{const a=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await ut({url:a})).data}catch(a){return Promise.reject(a)}}async function Kje({seasonId:e,gameId:a}){try{const o=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${a}`,{data:s}=await ut({url:o});return s}catch(o){return Promise.reject(o)}}async function Qje({gameId:e}){try{const a=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await ut({url:a})).data.data}catch(a){return Promise.reject(a)}}async function eve({gameId:e}){try{const a=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await ut({url:a})).data.data||[]}catch(a){return Promise.reject(a)}}const tve=["categoryId","matchLapse","section","matchResult","playingAs","total"];let g0=null;function wk(){return g0||(g0=Vi(tve)),g0}async function ave(e){try{const a=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await ut({url:a})).data}catch(a){return Promise.reject(a)}}async function Ck({seasonId:e,teamId:a}){try{return await ut({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${a}`})}catch(o){return Promise.reject(o)}}async function ove(e){try{const a=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await ut({url:a})}catch(a){return Promise.reject(a)}}async function sve(e){try{return await ut({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(a){return Promise.reject(a)}}const nve={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,a,o,s){return Yje(e.seasonPlays,s["filterGeneral/getPlayingAs"],s["filterGeneral/getResults"],s["filterGeneral/getSelectedGamesIds"],wk(),s["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const a=e.currentSeasonGames.reduce((o,s)=>{const n={...s};return n.home_team=e.currentSeasonTeams.find(i=>i.team_id===s.home_team),n.visiting_team=e.currentSeasonTeams.find(i=>i.team_id===s.visiting_team),o[s.matchday_abbreviation]?o[s.matchday_abbreviation][s.game_status===3?"canceled":s.date]?o[s.matchday_abbreviation][s.game_status===3?"canceled":s.date].push(n):o[s.matchday_abbreviation][s.game_status===3?"canceled":s.date]=[n]:o[s.matchday_abbreviation]={[s.game_status===3?"canceled":s.date]:[n]},o},{});for(let[o,s]of Object.entries(a))a[o]=Object.entries(s).map(([n,i])=>({date:n,games:i})),a[o].sort((n,i)=>n.date<i.date?-1:n.date>i.date?1:0);return a},matchdaysDates(e,a){let o=[];if(a.nextGamesSchedule){let s=Object.keys(a.nextGamesSchedule);for(let n of s){let i=Number(n.replace("M","")),r=a.nextGamesSchedule[n].map(c=>({matchday:i,date:new Date(c.date)}));o=o.concat(r)}}return o},closestMatchDay(e,a){let o=new Date,s=0,n=-new Date(0,0,0).valueOf(),i=a.matchdaysDates,r=i.length;for(let c=0;c<i.length;c++)s=Math.abs(i[c].date-o),s<n&&(r=c,n=s);return i[r]?i[r].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,a){e.booleanIsLiveGamesModalOpen=a},setBooleanAreLiveGames(e,a){e.booleanAreLiveGames=a},updateSeasonPlays(e,a){e.seasonPlays=a},updateCurrentSeasonTeams(e,a){e.currentSeasonTeams=a},updateCurrentSeasonGames(e,a){e.currentSeasonGames=a},updateSelectedRound(e,a){e.selectedRound=a}},actions:{async getSeasonPlays({commit:e,rootGetters:a},o=!1){try{const s=await fk({seasonId:a["filterGeneral/getSeasonId"]});if(o)return s;e("updateSeasonPlays",s)}catch(s){return Promise.reject(s)}},async getCurrentSeasonGames({commit:e,rootGetters:a}){try{const o=await bk({seasonId:a["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",o)}catch(o){return Promise.reject(o)}},async getCurrentSeasonTeams({commit:e,rootGetters:a}){try{const o=await ave({seasonId:a["loginGeneral/seasonId"]});e("updateCurrentSeasonTeams",o.teams)}catch(o){return Promise.reject(o)}},async isDataFilled({state:e,dispatch:a,commit:o}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return o("setIsSectionLoading",!1,{root:!0}),!0;const s=[void 0,void 0];return e.currentSeasonGames.length===0&&(s[0]=a("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(s[1]=a("getCurrentSeasonTeams")),await Promise.all(s),!1}catch(s){throw new Error(s)}}}}};async function ive({filter:e}){try{const a=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:o}=await ut({url:a});return o}catch(a){return Promise.reject(a)}}const rve=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let y0=null;function lve(){return y0||(y0=Vi(rve)),y0}class Jc{constructor(){Oe(this,"maximumLiveSection",1);Oe(this,"accomplished",{totalPostGame:0,avgPostGame:0,avgPreGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{},arrayRankings:[]});Oe(this,"received",{totalPostGame:0,avgPostGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{}})}setMaximumLiveSection(a){a>this.maximumLiveSection&&(this.maximumLiveSection=a)}getZeroTotalsTrendSections(){return[0,0,0,0,0,0]}resetTotals(){this.accomplished.totalPostGame=0,this.accomplished.avgPostGame=0,this.received.totalPostGame=0,this.received.avgPostGame=0,this.accomplished.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections()}resetTotalsLive(){this.accomplished.totalLive=0,this.received.totalLive=0,this.accomplished.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections()}increaseAccomplishedByOne(a,o,s){s&&(this.setMaximumLiveSection(a),this.accomplished.totalLive+=o,this.accomplished.totalsLiveTrendLive.sections[a-1]+=o,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,a,o)),this.accomplished.totalPostGame+=o,this.accomplished.avgPostGameTrendLive.sections[a-1]+=o,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,a,o)}increaseReceivedByOne(a,o,s){s&&(this.setMaximumLiveSection(a),this.received.totalLive+=o,this.received.totalsLiveTrendLive.sections[a-1]+=o,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,a,o)),this.received.totalPostGame+=o,this.received.avgPostGameTrendLive.sections[a-1]+=o,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,a,o)}increaseTrendLiveAccumulatedByOne(a,o,s){for(let n=o-1;n<a.accumulated.length;n++)a.accumulated[n]+=s}decreaseAccomplishedLiveByOne(a,o){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=o),this.accomplished.totalsLiveTrendLive.sections[a-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[a-1]-=o,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,a,o))}decreaseReceivedLiveByOne(a,o){this.received.totalLive>0&&(this.received.totalLive-=o),this.received.totalsLiveTrendLive.sections[a-1]>0&&(this.received.totalsLiveTrendLive.sections[a-1]-=o,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,a,o))}decreaseTotalsLiveTrendLiveAccumulatedByOne(a,o,s){for(let n=a.accumulated.length-1;n>=o-1;n--)a.accumulated[n]-=s}calculateAvg(a){a&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/a,this.received.avgPostGame=this.received.totalPostGame/a,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,a),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,a),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,a),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,a))}getAvgPostGameTrendLiveAvg(a,o){return a.map(s=>s/o)}calculateRanking(a,o,s,n,i,r,c,g){let d=[];n===3&&a&&a.length&&(s.playingAs.length!==2||s.matchResult.length!==3)?d=Array.from(a.reduce((m,h)=>{const y=h[o.playingAs]===1,p=y?"1":"2",u=m.get(h[o.gameId]);if(u)u[p]?u[p].arrayPlays.push(h):u[p]={numberTeamId:h[o.teamId],arrayPlays:[h]};else{const f={numberMatchResult:h[o.matchResult]};y&&(f[1]={numberTeamId:h[o.teamId],arrayPlays:[h]}),m.set(h[o.gameId],f)}return m},new Map).values()).reduce((m,h)=>{const y=s.playingAs.length===2?"both":s.playingAs[0].toString();return(y==="both"&&(h[1].numberTeamId===s.teamId||h[2].numberTeamId===s.teamId)||y!=="both"&&h[y].numberTeamId===s.teamId)&&s.matchResult.includes(h.numberMatchResult)&&m.push(...h[1].arrayPlays,...h[2].arrayPlays),m},[]).filter(m=>s.sections.includes(m[o.section])):(d=a?[...a]:[],c&&a&&(d=a.filter(l=>s.playingAs.includes(l[o.playingAs])&&s.matchResult.includes(l[o.matchResult])&&s.sections.includes(l[o.section])))),this.setTeamRanking(d,n,o,s.teamId,r,"accomplished",g)}setTeamRanking(a,o,s,n,i,r,c){let g=null,d=null;o===3&&(g=new Map,d={},a.forEach(h=>{const y=g.get(h[s.gameId]);y?y[h[s.teamId.toString()]]?y[h[s.teamId.toString()]]+=h[s.total]:y[h[s.teamId.toString()]]=h[s.total]:g.set(h[s.gameId],{[h[s.teamId.toString()]]:h[s.total]})}),Array.from(g.values()).forEach(h=>{const[y,p]=Object.keys(h).map(f=>f),u=h[y]+h[p];this.addPassesAvgByTeam(d,y,u?h[y]/u:0),this.addPassesAvgByTeam(d,p,u?h[p]/u:0)}));const l=i.sort((h,y)=>h.team_id-y.team_id).map(h=>{if(o===3){const y=d[h.team_id.toString()];return{teamId:h.team_id,points:y?y.numberTotalPassesAvg/y.numberGamesCount:0,total:y?y.numberTotalPassesAvg:0}}else{const y=a.reduce((p,u)=>u[s.teamId]===h.team_id&&o===u[s.categoryId]?p+u[s.total]:p,0);return{teamId:h.team_id,points:h[`${c}FilterGames`]?y/h[`${c}FilterGames`]:0,total:y}}}).sort((h,y)=>y.points-h.points);this.accomplished.arrayRankings=l;const m=l.findIndex(h=>h.teamId===n);o===3&&(this.accomplished.avgPreGame=l[m].points),this[r].ranking=m+1,this[r].leader=l[0]}addPassesAvgByTeam(a,o,s){a[o]?(a[o].numberGamesCount+=1,a[o].numberTotalPassesAvg+=s):a[o]={numberGamesCount:1,numberTotalPassesAvg:s}}}class re{constructor(a,o,s,n,i,r,c,g,d,l){Oe(this,"id","");Oe(this,"generalId",0);Oe(this,"name","");Oe(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});Oe(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});Oe(this,"accomplishedCategoryIds",[]);Oe(this,"receivedCategoryIds",[]);Oe(this,"generalCategoriesIds",{accomplished:0,received:0});Oe(this,"specialMention","");Oe(this,"homeTeam",new Jc);Oe(this,"visitingTeam",new Jc);Oe(this,"isLeagueDataCalculated",!1);Oe(this,"leagueAccomplishedMax",0);Oe(this,"leagueReceivedMax",0);Oe(this,"leagueAccomplishedAvg",0);Oe(this,"leagueReceivedAvg",0);Oe(this,"leagueAccomplishedAccumulator",0);Oe(this,"leagueReceivedAccumulator",0);Oe(this,"homeTeamType","homeTeam");Oe(this,"visitingTeamType","visitingTeam");Oe(this,"betOnly",!1);Oe(this,"isPercent",!1);this.id=`${s.accomplished}-${s.received}`,this.accomplishedCategoryIds=a||[],this.receivedCategoryIds=o||[],this.generalCategoriesIds=s||{accomplished:0,received:0},this.name=n,this.names["0-0"]=n||"",this.names["1-1"]=i||"",this.names["0-1"]=r||"",this.names["1-0"]=c||"",this.generalId=g||0,this.betOnly=d||!1,this.isPercent=l||!1}addLeaguePlays(a,o,s){a.length===0||!s||this.isLeagueDataCalculated||(a.forEach(n=>{this.isAccomplishedLeaguePlay(n[o.categoryId])&&(this.leagueAccomplishedAccumulator+=n[o.total]),this.isReceivedLeaguePlay(n[o.categoryId])&&(this.leagueReceivedAccumulator+=n[o.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*s)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*s)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(a,o,s){let n="-";for(const[i,r]of Object.entries(this.generalCategoriesIds))a===r&&(n=`${i==="accomplished"?"0":"1"}${n}`),o===r&&(n=`${n}${i==="accomplished"?"0":"1"}`);n.length===3&&(this.mentions[n]=s)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(a,o,s,n,i){!s||!i||a!==this.homeTeamType&&a!==this.visitingTeamType||(s.forEach(r=>{this.isAccomplishedPlay(r[n.categoryId])?this[a].increaseAccomplishedByOne(r[n.section],r[n.total]):this.isReceivedPlay(r[n.categoryId])&&this[a].increaseReceivedByOne(r[n.section],r[n.total])}),this[a].calculateAvg(i))}addLivePlay(a,o,s,n,i=!1,r=!1){(a===this.homeTeamType||a===this.visitingTeamType)&&s[n.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[a].increaseAccomplishedByOne(s[n.section],s[n.total],!0)}subtractLivePlay(a,o,s,n,i){(a===this.homeTeamType||a===this.visitingTeamType)&&(this.isAccomplishedPlay(s[n.categoryId])&&!i?this[a].decreaseAccomplishedLiveByOne(s[n.section],s[n.total]):this.isReceivedPlay(s[n.categoryId])&&i&&this[a].decreaseReceivedLiveByOne(s[n.section],s[n.total]))}isAccomplishedLeaguePlay(a){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(s=>a===s||`${a}_r`===s)}isReceivedLeaguePlay(a){return!!this.receivedCategoryIds.find(o=>a===o)}isAccomplishedPlay(a){return this.generalCategoriesIds.accomplished===a}isReceivedPlay(a){return this.generalCategoriesIds.received===a}calcRankingLeague(a,o,s,n,i,r=!1){this[this.homeTeamType].calculateRanking(a,o,s,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,i,r,this.homeTeamType),this[this.visitingTeamType].calculateRanking(a,o,n,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,i,r,this.visitingTeamType)}resetData(){this.homeTeam=new Jc,this.visitingTeam=new Jc,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(a){return this.generalCategoriesIds.accomplished===a||this.generalCategoriesIds.received===a}}const cve={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new re([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new re([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new re([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0),yellowCards:new re([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new re([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new re([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new re([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new re([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new re([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new re([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new re([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new re([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new re([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new re([209],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new re([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new re([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new re([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new re([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new re([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new re([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new re([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new re([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new re([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new re([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new re([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new re([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new re([495],null,{accomplished:27,received:0},"Balones perdidos sin disputa","","","",1)}},stoppedBall:{name:"Balón parado",priority:5,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{freeKick44:new re([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new re([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new re([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new re([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new re([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new re([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new re([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new re([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new re([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new re([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new re([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},dve=[{parentAnalysis:[1,2,3],value:0,text:"Realizado",block:1},{parentAnalysis:[1,2,3],value:1,text:"Recibido",block:1},{parentAnalysis:[1],value:0,text:"Posesión",block:2},{parentAnalysis:[1,2],value:0,text:"Origen de gol realizado",block:3},{parentAnalysis:[1,2],value:1,text:"Origen de gol recibido",block:3}],mve=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let u0=null;function pve(){return u0||(u0=Vi(mve)),u0}const hve=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let f0=null;function gve(){return f0||(f0=Vi(hve)),f0}function Xc(e,a,o){return[o.get(e[a.categoryId])||[],e[a.teamId],e[a.matchResult],e[a.playingAs],e[a.matchLapse],e[a.section],e[a.total]]}function kk(e){return[[1,1,e.local.win],[1,2,e.local.lose],[1,3,e.local.draw],[2,1,e.visit.win],[2,2,e.visit.lose],[2,3,e.visit.draw]]}function _0(e,a,o){let s=[...a];return e[o.categoryId]===2&&(s[0]=14),e[o.categoryId]===20&&(s[0]=15),[14,15].includes(s[0])?s:null}const yve=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],uve={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:wk(),indexesTSP:lve(),indexesLS:pve(),indexesTLP:gve(),nextGamesDataStructure:cve,currentSeasonGames:[],currentSeasonTeams:[],gameForAnalysis:{},showPostMatch:!1,homeResultGame:null,awayResultGame:null,selectedAnalysis:{},selectedStatisticTypeBlock:1,gameId:null,game:{},games:[],homeTeamPlays:[],visitingTeamPlays:[],currentSeasonPlays:[],livePlays:new Map,totalSeasonFinishedGames:0,totalHomeTeamFinishedGames:0,totalVisitingTeamFinishedGames:0,homeGames:[],homeTeamInfo:{},awayTeamInfo:{},visitingGames:[],idAssetSelected:1,isLive:!1,menuOptionActive:"",showLiveData:!1,showAdvanceFilter:!1,homeTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},visitingTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},oldSeasonId:0,statistics:[],isRankingCalculating:!0,categoriesMap:new Map,defaultFilter:null,filterAux:null,betSubcategories:[],betDescription:{},regularSeasonName:"",betSubcategoriesObjects:[],currentTournamentName:"",toBackRouteName:"home"},getters:{betSubcategoriesIds(e){return e.betSubcategories.map(a=>a.id)},showPostMatchData:e=>e.showPostMatch,getHomeResultGame:e=>e.homeResultGame,getAwayResultGame:e=>e.awayResultGame,getSeasonId:e=>e.seasonId,isLive:e=>(e.isLive=!!e.gameForAnalysis.is_live,e.isLive),showLive:e=>e.gameForAnalysis.game_status===4&&e.gameForAnalysis.is_live,menuOptionActive:e=>e.menuOptionActive,showLiveData:e=>e.showLiveData,showAdvanceFilter:e=>e.showAdvanceFilter,idAssetSelected:e=>e.idAssetSelected,gameId:e=>e.gameId,game:e=>e.game,homeTeam(e){return e.homeTeamInfo},visitingTeam(e){return e.awayTeamInfo},rankingData(e){return e.statistics},homeTeamStatisticsType(e){return e.homeTeamFilter.statistics?"received":"accomplished"},visitingTeamStatisticsType(e){return e.visitingTeamFilter.statistics?"received":"accomplished"},subcategoryName(e){return`${e.homeTeamFilter.statistics}-${e.visitingTeamFilter.statistics}`},statisticsTypes(e){return dve.filter(a=>a.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return _k(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return _k(e.visitingTeamPlays,e.visitingTeamFilter.playingAs,e.visitingTeamFilter.matchResult,e.visitingTeamFilter.sections,e.indexesTSP)},currentSeasonTeamsIds(e){return e.currentSeasonTeams.map(a=>a.team_id)},canFilledStructure(e){return e.homeTeamFilter.requiresPlaysFiltering||e.visitingTeamFilter.requiresPlaysFiltering},totalFilteredHomeGames(e){return e.homeGames.filter(a=>e.homeTeamFilter.playingAs.includes(a[0])).filter(a=>e.homeTeamFilter.matchResult.includes(a[1])).reduce((a,o)=>a+o[2],0)},totalFilteredVisitingGames(e){return e.visitingGames.filter(a=>e.visitingTeamFilter.playingAs.includes(a[0])).filter(a=>e.visitingTeamFilter.matchResult.includes(a[1])).reduce((a,o)=>a+o[2],0)},filledDataStructure(e,a){if(e.currentSeasonPlays)for(const o of Object.values(e.nextGamesDataStructure))for(const s of Object.values(o.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&s.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&s.visitingTeam.resetTotals(),s.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),s.addTeamPlays(s.homeTeamType,e.gameForAnalysis.home_team,a.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:a.totalFilteredHomeGames),s.addTeamPlays(s.visitingTeamType,e.gameForAnalysis.visiting_team,a.visitingTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:a.totalFilteredVisitingGames);return e.nextGamesDataStructure},arrayFilledDataSortedByPriority(e,a){return Object.values(a.filledDataStructure).sort((o,s)=>o.priority-s.priority)},statisticData(e,a){for(const o of Object.values(a.filledDataStructure))if(o.parentInfo.parentAnalysis.includes(e.selectedAnalysis.id)&&o.parentInfo.analysisTypeBlocks.includes(e.selectedStatisticTypeBlock))return o.subcategories;return{}},accomplished(e){return e.homeTeamFilter.statistics===0}},mutations:{setCurrentTournamentName(e,a){e.currentTournamentName=a},setBetSubcategoriesObjects(e,a){e.betSubcategoriesObjects=a},setRegularSeasonName(e,a){e.regularSeasonName=a},setBetSubcategories(e,a){e.betSubcategories=a},setBetDescription(e,a){e.betDescription=a},setSeasonId(e,a){e.seasonId=Number(a)},setHome(e,a){e.homeTeamInfo=a},setAway(e,a){e.awayTeamInfo=a},setMenuOptionActive(e,a){e.menuOptionActive=a},setPastSeasonId(e,a){e.pastSeasonId=a},setUsePastSeasonId(e,a){e.usePastSeasonId=a,a&&(e.oldSeasonId=e.pastSeasonId)},updateShowPostMatchData(e,a){e.showPostMatch=a},setHomeResultGame(e,a){e.homeResultGame=a},setAwayResultGame(e,a){e.awayResultGame=a},updateIsSocketConnected(e,a){e.isSocketConnected=a,!a&&e.gameForAnalysis.is_live&&this._vm.$socket.client.emit("subscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`})},updateCurrentSeasonTeams(e,a){e.currentSeasonTeams=a,e.currentSeasonTeams.forEach(o=>{o.playedGames=e.currentSeasonGames.reduce((s,n)=>{if(n.game_status===1&&(n.home_team===o.team_id||n.visiting_team===o.team_id)){const i=n.score[0]-n.score[1],r=n.home_team===o.team_id;s.push({playingAs:r?1:2,matchResult:i===0?3:r?i>0?1:2:i<0?1:2})}return s},[])})},updateCurrentSeasonGames(e,a){e.currentSeasonGames=a},updateGameId(e,a){e.gameId=a},updateGameForAnalysis(e,a){e.gameForAnalysis=a,e.homeTeamFilter.teamId=e.gameForAnalysis.home_team,e.visitingTeamFilter.teamId=e.gameForAnalysis.visiting_team,e.gameForAnalysis.is_live===1&&e.isSocketConnected&&this._vm.$socket.client.emit("subscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`})},updateSelectedAnalysis(e,a){e.selectedAnalysis=a},updateShowLiveData(e,a){e.showLiveData=a},toggleShowLiveData(e){e.showLiveData=!e.showLiveData},toggleAdvanceFilter(e){e.showAdvanceFilter=!e.showAdvanceFilter},updateIdAssetSelected(e,a){e.idAssetSelected=a},updateStats(e,a){e.currentSeasonPlays=a},updateFilterAux(e){e.filterAux||(e.filterAux={homeTeamFilter:{...e.homeTeamFilter},visitingTeamFilter:{...e.visitingTeamFilter}})},updateFilters(e,{filters:a,needsFormat:o=!1}){if(o){if(!a||!a.local||!a.local.statistics||!a.visit||!a.visit.statistics)return;e.homeTeamFilter=Tu(e.homeTeamFilter,a.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=Tu(e.visitingTeamFilter,a.visit,e.gameForAnalysis.visiting_team),e.selectedStatisticTypeBlock!==a.local.statistics.block&&(e.selectedStatisticTypeBlock=a.local.statistics.block)}else e.homeTeamFilter={...a.homeTeamFilter,statistics:0},e.visitingTeamFilter={...a.visitingTeamFilter,statistics:0}},updateFinishedGames(e,a){e.totalSeasonFinishedGames=a},updateHomeTeamPlays(e,a){e.homeTeamPlays=a},updateVisitingTeamPlays(e,a){e.visitingTeamPlays=a},addSpecialMentions(e,a){const o=Object.values(e.nextGamesDataStructure);o.forEach(s=>{for(const n of Object.values(s.subcategories))n.resetMentions()}),o.forEach(s=>{for(const n of a)for(const i of Object.values(s.subcategories))i.addSpecialMention(n[0],n[1],n[2])})},setDefaultFilter(e,a){e.defaultFilter={homeTeamFilter:{...a.homeTeamFilter,teamId:e.gameForAnalysis.home_team},visitingTeamFilter:{...a.awayTeamFilter,teamId:e.gameForAnalysis.visiting_team}}},addLiveGamePlay(e,a){if(!e.livePlays.has(a[e.indexesTLP.playId])){e.livePlays.set(a[e.indexesTLP.playId],a);const s=Xc(a,e.indexesTLP,e.categoriesMap);for(const n of Object.values(e.nextGamesDataStructure))for(const i of Object.values(n.subcategories))i.addLivePlay(e.gameForAnalysis.home_team===s[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",s[e.indexesTSP.teamId],s,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,a){const o=!!a[e.indexesTLP.length],s=e.livePlays.get(a[e.indexesTLP.playId]);if(rB(s,a))return;let n="";const i=e.gameForAnalysis.home_team===a[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";s&&(n=e.gameForAnalysis.home_team===s[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const r=Xc(s,e.indexesTLP,e.categoriesMap),c=_0(s,r,e.indexesTLP),g=Xc(a,e.indexesTLP,e.categoriesMap),d=_0(a,g,e.indexesTLP);for(const l of Object.values(e.nextGamesDataStructure))for(const m of Object.values(l.subcategories))s&&(m.subtractLivePlay(n,r[e.indexesTSP.teamId],r,e.indexesTSP,o),c&&m.subtractLivePlay(n,c[e.indexesTSP.teamId],c,e.indexesTSP,o)),m.addLivePlay(i,g[e.indexesTSP.teamId],g,e.indexesTSP,e.isLive,o),d&&m.addLivePlay(i,d[e.indexesTSP.teamId],d,e.indexesTSP,e.isLive,o);e.livePlays.set(a[e.indexesTLP.playId],a)},deleteLiveGamePlay(e,a){const o=!!a[e.indexesTLP.length],s=e.livePlays.get(a[e.indexesTLP.playId]);let n="";if(s){n=e.gameForAnalysis.home_team===s[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(s[e.indexesTLP.playId]);const i=Xc(s,e.indexesTLP,e.categoriesMap),r=_0(a,i,e.indexesTLP);for(const c of Object.values(e.nextGamesDataStructure))for(const g of Object.values(c.subcategories))g.subtractLivePlay(n,i[e.indexesTSP.teamId],i,e.indexesTSP,o),r&&g.subtractLivePlay(n,r[e.indexesTSP.teamId],r,e.indexesTSP,o)}},clearLiveTotals(e){for(const a of Object.values(e.nextGamesDataStructure))for(const o of Object.values(a.subcategories))o.homeTeam.resetTotalsLive(),o.visitingTeam.resetTotalsLive()},updateSeasonStatistics(e,a){e.statistics=a},updateOldSeasonId(e,a){e.oldSeasonId=a},addRankingInSubcategories(e,{getters:a,isPremiumAccount:o}){if(!(e.homeTeamFilter.teamId&&e.visitingTeamFilter.teamId))return;e.isRankingCalculating=!1,e.currentSeasonTeams.forEach(i=>{i.homeTeamFilterGames=i.playedGames.filter(r=>e.homeTeamFilter.playingAs.includes(r.playingAs)&&e.homeTeamFilter.matchResult.includes(r.matchResult)).length,i.visitingTeamFilterGames=i.playedGames.filter(r=>e.visitingTeamFilter.playingAs.includes(r.playingAs)&&e.visitingTeamFilter.matchResult.includes(r.matchResult)).length});const s=[],n=new Map;for(const i of Object.values(e.nextGamesDataStructure))for(const r of Object.values(i.subcategories))s.push(r);a.rankingData.forEach(i=>{for(const r of s)if(r.isInGeneralCategory(i[e.indexesLS.categoryId])){n.has(r.id)?n.get(r.id).push(i):n.set(r.id,[i]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,a){e.homeGames=kk(a)},setVisitingGames(e,a){e.visitingGames=kk(a)},generateCategoriesMap(e){for(const a of Object.values(e.nextGamesDataStructure))for(const o of Object.values(a.subcategories))o.accomplishedCategoryIds.forEach(s=>{const n=e.categoriesMap.get(s);n?n.push(o.generalCategoriesIds.accomplished):e.categoriesMap.set(s,[o.generalCategoriesIds.accomplished])})},resetNextGamesDataStructure(e){for(const a of Object.values(e.nextGamesDataStructure))for(const o of Object.values(a.subcategories))o.resetData()}},actions:{turnOnOffDefaultFilters({state:e,commit:a},{command:o}){o==="on"?a("updateFilters",{filters:e.defaultFilter,needsFormat:!1}):a("updateFilters",{filters:e.filterAux,needsFormat:!1})},async setAndGetStatsPostMatch({commit:e},a){try{const r=await sve({gameId:a.gameId});if(r){var o=[],s=[],n={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}},i={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}};Object.keys(r.data).length!==0&&(o=r.data.data.filter(c=>c[1]==a.homeTeam),s=r.data.data.filter(c=>c[1]==a.awayTeam),n=r.data.games,i=r.data.games),e("updateHomeTeamPlays",o),e("updateVisitingTeamPlays",s),e("setHomeGames",n),e("setVisitingGames",i)}else e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[])}catch(r){return Promise.reject(r)}},async fillStatisticDataPostMatch({commit:e,dispatch:a},o){e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("setIsSectionLoading",!0,{root:!0});try{let s=[];e("updateGameForAnalysis",o.gameInfo),s.push(a("setAndGetStatsPostMatch",{gameId:o.game,homeTeam:o.homeTeam,awayTeam:o.awayTeam})),await Promise.all(s)}catch(s){throw new Error(s)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:a,commit:o},{gameId:s,isTeamsAnalysis:n,currentSeasonId:i,isLoginChanged:r=!1,defaultFilter:c=null,gameInfo:g=null,isCupGame:d=!1}){try{let l={},m=e.seasonId!==Number(i);const h=[];o("setIsSectionLoading",!0,{root:!0}),o("setUsePastSeasonId",!1),m&&o("setSeasonId",i),o("updateGameId",Number(s)),e.oldSeasonId!==e.seasonId&&o("resetNextGamesDataStructure");const y=await a("getCurrentSeasonGames",Number(s));if(o("leagueGeneral/updateCurrentSeasonGames",y,{root:!0}),l=y.find(p=>p.game_id===Number(s)),!l&&g&&(l=g),l&&o("updateGameForAnalysis",l),l.game_status!==1&&(d||await a("checkTeamsData",{gameId:s,isFromBet:!!c}),(r||e.oldSeasonId!==e.seasonId||e.statistics.length===0)&&h.push(a("getSeasonStatistics")),(r||e.categoriesMap.size===0)&&o("generateCategoriesMap")),e.usePastSeasonId){const p=await a("getCurrentSeasonGamesLast");o("leagueGeneral/updateCurrentSeasonGames",p,{root:!0})}(r||e.currentSeasonTeams.length===0||!e.currentSeasonTeams.find(p=>l.home_team===p.team_id))&&h.push(a("getCurrentSeasonTeams")),o("setHomeResultGame",l.score[0]),o("setAwayResultGame",l.score[1]),n?l.game_status!==1?(await a("fillStatisticData",{gameId:s,gameinfo:l,promises:h,defaultFilter:c}),o("updateShowPostMatchData",!1)):(o("updateStats",[]),o("updateShowPostMatchData",!0),h.push(a("fillStatisticDataPostMatch",{game:s,homeTeam:l.home_team,awayTeam:l.visiting_team,gameInfo:l})),await Promise.all(h)):o("setIsSectionLoading",!1,{root:!0})}catch(l){return Promise.reject(l)}},async fillStatisticData({commit:e,dispatch:a,getters:o,rootGetters:s,state:n},{gameId:i,gameinfo:r,promises:c=[],defaultFilter:g=null}){let d=null;try{e("setIsSectionLoading",!0,{root:!0}),e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("updateGameForAnalysis",r),r.is_live&&c.push(a("getCurrentLiveGamePlays",i)),c.push(a("getSpecialMentionsByGame",i)),c.push(a("getHomeTeamPlays")),c.push(a("getVisitingTeamPlays")),c.push(a("getCurrentSeasonPlays")),g&&c.push(ive(g)),d=await Promise.all(c)}catch(l){throw new Error(l)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:o,isPremiumAccount:s["loginGeneral/getPremiumAccount"]}),g){const[l]=d.pop();l&&(e("setBetSubcategories",l.categories),e("setBetDescription",l.sectionDescription),e("setDefaultFilter",l.params),e("updateFilterAux"),e("updateFilters",{filters:n.defaultFilter,needsFormat:!1}),a("updateRankingInSubcategories"))}},100),e("setIsSectionLoading",!1,{root:!0})}},async checkTeamsData({state:e,dispatch:a,rootState:o,commit:s},{gameId:n,isFromBet:i}){try{const r=Number(n);if(o.general.tournaments&&o.general.tournaments.length){await a("general/fetchTournaments",null,{root:!0});const c=o.general.tournaments.find(g=>{for(const d of g.seasons)if(d.id===e.seasonId)return!0;return!1});s("general/setTournamentSelected",c||{},{root:!0})}if(e.pastSeasonId){s("nextGeneral/setPastSeasonId",e.pastSeasonId,{root:!0});const c=o.leagueGeneral.currentSeasonGames.find(g=>g.game_id===r);c&&s("updateGameForAnalysis",c),await Promise.all([a("getHomeTeamPlays"),a("getVisitingTeamPlays")]),s("setUsePastSeasonId",i||(!e.homeTeamPlays||e.homeTeamPlays.length===0)&&(!e.visitingTeamPlays||e.visitingTeamPlays.length===0))}else s("setUsePastSeasonId",!1)}catch(r){throw new Error(r)}},async getSpecialMentionsByGame({commit:e},a){try{const o=await eve({gameId:a});e("addSpecialMentions",o)}catch(o){return Promise.reject(o)}},async getCurrentSeasonGames({commit:e,state:a},o){try{const{teams:s,games:n,past_season_id:i,tournament_id:r}=await Kje({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId,gameId:o}),c=yve.find(g=>g.id===r);return c&&e("setCurrentTournamentName",c.name),e("setHome",s[0]),e("setAway",s[1]),a.usePastSeasonId||e("setPastSeasonId",i),await e("updateCurrentSeasonGames",n),n&&Array.isArray(n)&&e("updateFinishedGames",n.reduce((g,d)=>(d.game_status===1&&(g+=1),g),0)),n}catch(s){return Promise.reject(s)}},async getCurrentSeasonGamesLast({commit:e,state:a}){try{const{games:o,past_season_id:s}=await bk({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId});return a.usePastSeasonId||e("setPastSeasonId",s),await e("updateCurrentSeasonGames",o),o&&Array.isArray(o)&&e("updateFinishedGames",o.reduce((n,i)=>(i.game_status===1&&(n+=1),n),0)),o}catch(o){return Promise.reject(o)}},async getCurrentSeasonTeams({commit:e,state:a}){try{const o=await ove({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId});e("updateCurrentSeasonTeams",o.data.teams)}catch{}},async getSeasonStatistics({commit:e,state:a}){try{const o=a.usePastSeasonId?a.pastSeasonId:a.seasonId,s=await Zje({seasonId:o});e("updateSeasonStatistics",s),e("updateOldSeasonId",o)}catch(o){return Promise.reject(o)}},updateRankingInSubcategories({state:e,commit:a,getters:o,rootGetters:s}){e.currentSeasonGames.length>0&&a("addRankingInSubcategories",{getters:o,isPremiumAccount:s["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:a}){try{const o=await Ck({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId,teamId:a.gameForAnalysis.home_team});o.data&&(e("updateHomeTeamPlays",o.data.data),e("setHomeGames",o.data.games))}catch(o){return Promise.reject(o)}},async getVisitingTeamPlays({commit:e,state:a}){try{const o=await Ck({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId,teamId:a.gameForAnalysis.visiting_team});o.data&&(e("updateVisitingTeamPlays",o.data.data),e("setVisitingGames",o.data.games))}catch(o){return Promise.reject(o)}},async getCurrentSeasonPlays({commit:e,state:a}){try{const o=await Xje({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId});e("updateStats",o)}catch(o){return Promise.reject(new Error(o))}},async getCurrentLiveGamePlays({state:e,commit:a},o){try{const s=await Qje({gameId:o});e.livePlays=new Map,s.forEach(n=>{e.gameForAnalysis.game_id===n[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===n[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===n[e.indexesTLP.teamId])&&a("addLiveGamePlay",n)})}catch(s){throw new Error(s)}},socket_new({state:e,commit:a},o){const s=o[1];(e.gameForAnalysis.home_team===s[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===s[e.indexesTLP.teamId])&&a("addLiveGamePlay",s)},socket_update({state:e,commit:a},o){const s=o[1];e.gameForAnalysis.game_id===s[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===s[e.indexesTLP.teamId]||e.gameForAnalysis.visitingTeam===s[e.indexesTLP.teamId])&&a("updateLiveGamePlay",s)},socket_delete({state:e,commit:a},o){const s=o[1];e.gameForAnalysis.game_id===s[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===s[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===s[e.indexesTLP.teamId])&&a("deleteLiveGamePlay",s)},exitChannel({state:e,getters:a,rootState:o,rootGetters:s,commit:n}){const i=s["loginGeneral/getPremiumAccount"];a.isLive&&i&&(n("updateShowLiveData",!1),n("clearLiveTotals"),e.livePlays.clear(),this._vm.$socket.client.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const o of Object.values(e.nextGamesDataStructure))for(const s of Object.values(o.subcategories))s.homeTeam.resetTotals(),s.visitingTeam.resetTotals(),s.homeTeam.resetTotalsLive(),s.visitingTeam.resetTotalsLive(),s.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(o=>{for(const s of Object.values(o.subcategories))s.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const o of Object.values(e.nextGamesDataStructure))for(const s of Object.values(o.subcategories))s.homeTeam.resetTotals(),s.visitingTeam.resetTotals(),s.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(o=>{for(const s of Object.values(o.subcategories))s.resetMentions()}),e.currentSeasonGames=[],e.currentSeasonTeams=[],e.gameForAnalysis={},e.homeTeamPlays=[],e.visitingTeamPlays=[],e.currentSeasonPlays=null,e.totalSeasonFinishedGames=0,e.totalHomeTeamFinishedGames=0,e.totalVisitingTeamFinishedGames=0,e.homeGames=[],e.showPostMatch=!1,e.homeResultGame=null,e.awayResultGame=null,e.visitingGames=[],e.idAssetSelected=1,e.showAdvanceFilter=!1,e.selectedAnalysis={},e.homeTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.visitingTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.isRankingCalculating=!0}}}};async function fve(){try{const{data:e}=await ut({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return e}catch(e){throw new Error(e)}}const _ve={namespaced:!0,state:{videoSrc:null,isVideoModalVisible:!1,tournaments:[],seccionBetsGolTipster:1,tournamentSelected:{},sectionAnalytics:"Banner_Home",previewSectionAnalytics:"",sectionRef:"",booleanIsStatisticModalOpen:!1},getters:{getSectionAnalytics(e){return e.sectionAnalytics},getPreviewSectionAnalytics(e){return e.previewSectionAnalytics},getSeccionBetsGolTipster(e){return e.seccionBetsGolTipster}},mutations:{setBooleanIsStatisticModalOpen(e,a){e.booleanIsStatisticModalOpen=a},setSectionRef(e,a){e.sectionRef=a},setSectionAnalytics(e,a){e.sectionAnalytics=a},setSeccionBetsGolTipster(e,a){e.seccionBetsGolTipster=a},setPreviewSectionAnalytics(e,a){e.previewSectionAnalytics=a},setVideoSrc(e,a){e.videoSrc=a},setVideoModalVisibility(e,a){e.isVideoModalVisible=a},setSelectedTournament(e,a){e.selectedTournament=a},setTournaments(e,a){e.tournaments=a.map(o=>({...o.tournament,seasons:o.seasons})),e.tournamentSelected=e.tournaments[0]},setTournamentSelected(e,a){e.tournamentSelected=a}},actions:{async fetchTournaments({state:e,commit:a}){try{if(e.tournaments.length===0){const o=await fve();a("setTournaments",o)}}catch(o){throw new Error(o)}}}};async function bve({seasonId:e,localTeamId:a,visitingTeamId:o}){try{const s=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${a}/${o}`;return(await ut({url:s})).data}catch(s){return Promise.reject(s)}}async function wve({seasonId:e,localTeamId:a,visitingTeamId:o}){try{const s=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${a}/${o}`;return(await ut({url:s})).data}catch(s){return Promise.reject(s)}}const Sk=(e,a)=>{let o={};return e.forEach((s,n)=>{n==3&&(a[0]==35||a[0]==54)&&(a[n]==2?a[n]=1:a[n]=2),n==2&&(a[0]==35||a[0]==54)&&(a[n]==1?a[n]=2:a[n]==2&&(a[n]=1)),o[s]=a[n]}),o},Ek=(e,a)=>e.filter(s=>{const n=a.playingAs.includes(s.playing_as),i=a.matchResult.includes(s.match_result),r=a.sections.includes(s.section);return n&&i&&r}),Nk=[{name:"Goles",color:"#4A90E2",points:[1,2,3],categories:[12,55,35,54],invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#FF8000",points:[1,2,3],categories:[12,55,35,54,510]}];(function(){function e(a,o,s){return typeof s>"u"||+s==0?Math[a](o):(o=+o,s=+s,isNaN(o)||!(typeof s=="number"&&s%1===0)?NaN:(o=o.toString().split("e"),o=Math[a](+(o[0]+"e"+(o[1]?+o[1]-s:-s))),o=o.toString().split("e"),+(o[0]+"e"+(o[1]?+o[1]+s:s))))}Math.ceil10||(Math.ceil10=function(a,o){return e("ceil",a,o)})})();function $k(e,a){let o=a*-1;return Math.ceil10(e,o)}const Cve={general:_ve,...nve,...uve,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{playsLocal:(e,a,o)=>{const s=e.xGLocalPlays,n="homeTeamFilter",i=o.nextGeneral[n];return Ek(s,i)},playsAway:(e,a,o)=>{const s=e.xGVisitingPlays,n="visitingTeamFilter",i=o.nextGeneral[n];return Ek(s,i)},goalsQtyLocal:(e,a)=>{const o=Nk.find(s=>s.name==="Goles");return a.playsLocal.filter(s=>o.categories.includes(s.category_id)).length},goalsQtyAway:(e,a)=>{const o=Nk.find(s=>s.name==="Goles");return a.playsAway.filter(s=>o.categories.includes(s.category_id)).length},shotsOnGoalQtyLocal:(e,a)=>a.playsLocal.filter(o=>o.category_id===510).length,shotsOnGoalQtyAway:(e,a)=>a.playsAway.filter(o=>o.category_id===510).length,xGLocal:(e,a)=>{const o=new Set;let s=a.playsLocal.reduce((n,i)=>(o.has(i.moment_of_play)||(o.add(i.moment_of_play),n+=i.xG2),n),0);return $k(s,2)},xGAway:(e,a)=>{const o=new Set;let s=a.playsAway.reduce((n,i)=>(o.has(i.moment_of_play)||(o.add(i.moment_of_play),n+=i.xG2),n),0);return $k(s,2)}},mutations:{setTeamSelected(e,a){e.teamSelected=a},setPlays(e,a){e.xGLocalPlays=a.local_team.map(o=>Sk(a.data_headers,o)),e.xGVisitingPlays=a.visiting_team.map(o=>Sk(a.data_headers,o))},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:e},{seasonId:a,localTeamId:o,visitingTeamId:s,postMatch:n=!1}){try{var i={};n?i=await wve({seasonId:a,localTeamId:o,visitingTeamId:s}):i=await bve({seasonId:a,localTeamId:o,visitingTeamId:s}),e("setPlays",i)}catch(r){return Promise.reject(r)}}}}}};function kve(e){for(const[a,o]of Object.entries(Cve))e.hasModule(a)||e.registerModule(a,o)}_t.GSCGameData=Jje,_t.registerStoreModules=kve,Object.defineProperty(_t,Symbol.toStringTag,{value:"Module"})});